hash
stringlengths
40
40
date
stringdate
2020-07-28 17:26:48
2025-03-18 12:22:05
author
stringclasses
26 values
commit_message
stringlengths
10
196
is_merge
bool
1 class
masked_commit_message
stringlengths
2
183
type
stringclasses
7 values
git_diff
stringlengths
274
3.23M
4ee3d9e9886452fbf9151c0d39fee5b33c187638
2025-03-11 13:50:00
fxy060608
chore: add tsconfig.json
false
add tsconfig.json
chore
diff --git a/packages/uni-components/tsconfig.json b/packages/uni-components/tsconfig.json new file mode 100644 index 00000000000..596e2cf729a --- /dev/null +++ b/packages/uni-components/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "include": ["src"] +}
f8719b736d60c43b36c0d8afa20ec43439b93ab1
2024-01-15 16:42:28
hdx
fix(form:x-web): switch 表单提交的值需和界面一致
false
switch 表单提交的值需和界面一致
fix
diff --git a/packages/uni-components/src/vue/switch/index.tsx b/packages/uni-components/src/vue/switch/index.tsx index ecba1656f37..6288d007fcb 100644 --- a/packages/uni-components/src/vue/switch/index.tsx +++ b/packages/uni-components/src/vue/switch/index.tsx @@ -65,7 +65,13 @@ export default /*#__PURE__*/ defineBuiltInComponent({ const rootRef = ref<HTMLElement | null>(null) const switchChecked = ref(props.checked) - const uniLabel = useSwitchInject(props, switchChecked) + const uniLabel = useSwitchInject( + //#if _X_ && !_NODE_JS_ + rootRef, + //#endif + props, + switchChecked + ) const trigger = useCustomEvent<EmitEvent<typeof emit>>(rootRef, emit) watch( @@ -163,6 +169,9 @@ export default /*#__PURE__*/ defineBuiltInComponent({ }) function useSwitchInject( + //#if _X_ && !_NODE_JS_ + rootRef: Ref<HTMLElement | null>, + //#endif props: SwitchProps, switchChecked: Ref<string | boolean> ) { @@ -181,7 +190,12 @@ function useSwitchInject( const data: [string, any] = ['', null] if (props.name) { data[0] = props.name + //#if _X_ && !_NODE_JS_ + data[1] = (rootRef.value as UniSwitchElement as any).checked + //#else + // @ts-ignore data[1] = switchChecked.value + //#endif } return data },
3739066113c604f64abb3f4b0cc6b0fd1f8b9de0
2021-09-15 12:38:19
qiang
feat(h5): google map
false
google map
feat
diff --git a/packages/shims-uni-app.d.ts b/packages/shims-uni-app.d.ts index 860e43620e6..557c614b4f0 100644 --- a/packages/shims-uni-app.d.ts +++ b/packages/shims-uni-app.d.ts @@ -59,6 +59,7 @@ declare namespace UniApp { tabBar?: TabBarOptions subPackages?: { root: string }[] qqMapKey?: string + googleMapKey?: string // app-plus entryPagePath?: string entryPageQuery?: string diff --git a/packages/uni-h5-vite/src/plugins/manifestJson.ts b/packages/uni-h5-vite/src/plugins/manifestJson.ts index f2cd6e0a54f..bc70d9f3297 100644 --- a/packages/uni-h5-vite/src/plugins/manifestJson.ts +++ b/packages/uni-h5-vite/src/plugins/manifestJson.ts @@ -20,8 +20,6 @@ const defaultAsync = { suspensible: true, } -const defaultQQMapKey = 'XVXBZ-NDMC4-JOGUS-XGIEE-QVHDZ-AMFV2' - export function uniManifestJsonPlugin(): Plugin { return defineUniManifestJsonPlugin((opts) => { return { @@ -45,10 +43,12 @@ export function uniManifestJsonPlugin(): Plugin { const sdkConfigs = (h5 && h5.sdkConfigs) || {} const qqMapKey = - (sdkConfigs.maps && - sdkConfigs.maps.qqmap && - sdkConfigs.maps.qqmap.key) || - defaultQQMapKey + sdkConfigs.maps && sdkConfigs.maps.qqmap && sdkConfigs.maps.qqmap.key + + const googleMapKey = + sdkConfigs.maps && + sdkConfigs.maps.google && + sdkConfigs.maps.google.key let locale: string | null | undefined = manifest.locale locale = locale && locale.toUpperCase() !== 'AUTO' ? locale : '' @@ -77,7 +77,8 @@ export function uniManifestJsonPlugin(): Plugin { // h5 export const router = ${JSON.stringify(router)} export const async = ${JSON.stringify(async)} - export const qqMapKey = '${qqMapKey}' + export const qqMapKey = ${JSON.stringify(qqMapKey)} + export const googleMapKey = ${JSON.stringify(googleMapKey)} export const sdkConfigs = ${JSON.stringify(sdkConfigs)} export const locale = '${locale}' export const fallbackLocale = '${fallbackLocale}' diff --git a/packages/uni-h5-vite/src/plugins/pagesJson.ts b/packages/uni-h5-vite/src/plugins/pagesJson.ts index 7c5be737916..51c66bc79c4 100644 --- a/packages/uni-h5-vite/src/plugins/pagesJson.ts +++ b/packages/uni-h5-vite/src/plugins/pagesJson.ts @@ -55,7 +55,7 @@ function generatePagesJsonCode( return ` import { defineAsyncComponent, resolveComponent, createVNode, withCtx, openBlock, createBlock } from 'vue' import { PageComponent, AsyncLoadingComponent, AsyncErrorComponent, useI18n, setupWindow } from '@dcloudio/uni-h5' -import { appid, debug, networkTimeout, router, async, sdkConfigs, qqMapKey, nvue, locale, fallbackLocale } from '${manifestJsonPath}' +import { appid, debug, networkTimeout, router, async, sdkConfigs, qqMapKey, googleMapKey, nvue, locale, fallbackLocale } from '${manifestJsonPath}' const locales = import.meta.globEager('./locale/*.json') ${importLayoutComponentsCode} const extend = Object.assign @@ -259,6 +259,7 @@ delete ${globalName}['____'+appid+'____'] networkTimeout, sdkConfigs, qqMapKey, + googleMapKey, nvue, locale, fallbackLocale, diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index c411ac30f11..8c2d07d407a 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -7652,6 +7652,11 @@ var index$d = /* @__PURE__ */ defineBuiltInComponent({ }; } }); +var MapType; +(function(MapType2) { + MapType2["QQ"] = "qq"; + MapType2["GOOGLE"] = "google"; +})(MapType || (MapType = {})); const props$6 = { id: { type: [Number, String], @@ -7732,8 +7737,8 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ let w; let h; let top; - let x = anchor.x; - let y = anchor.y; + let x = typeof anchor.x === "number" ? anchor.x : 0.5; + let y = typeof anchor.y === "number" ? anchor.y : 1; if (option.iconPath && (option.width || option.height)) { w = option.width || img.width / img.height * option.height; h = option.height || img.height / img.width * option.width; @@ -7741,37 +7746,53 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ w = img.width / 2; h = img.height / 2; } - x = (typeof x === "number" ? x : 0.5) * w; - y = (typeof y === "number" ? y : 1) * h; top = h - (h - y); - icon = new maps.MarkerImage(img.src, null, null, new maps.Point(x, y), new maps.Size(w, h)); + if ("MarkerImage" in maps) { + icon = new maps.MarkerImage(img.src, null, null, new maps.Point(x * w, y * h), new maps.Size(w, h)); + } else { + icon = { + url: img.src, + anchor: new maps.Point(x, y), + size: new maps.Size(w, h) + }; + } marker.setPosition(position); marker.setIcon(icon); - marker.setRotation(option.rotate || 0); + if ("setRotation" in marker) { + marker.setRotation(option.rotate || 0); + } const labelOpt = option.label || {}; - if (marker.label) { + if ("label" in marker) { marker.label.setMap(null); delete marker.label; } let label; if (labelOpt.content) { - label = new maps.Label({ - position, - map, - clickable: false, - content: labelOpt.content, - style: { - border: "none", - padding: "8px", - background: "none", + if ("Label" in maps) { + label = new maps.Label({ + position, + map, + clickable: false, + content: labelOpt.content, + style: { + border: "none", + padding: "8px", + background: "none", + color: labelOpt.color, + fontSize: (labelOpt.fontSize || 14) + "px", + lineHeight: (labelOpt.fontSize || 14) + "px", + marginLeft: labelOpt.x, + marginTop: labelOpt.y + } + }); + marker.label = label; + } else if ("setLabel" in marker) { + marker.setLabel({ + text: labelOpt.content, color: labelOpt.color, - fontSize: (labelOpt.fontSize || 14) + "px", - lineHeight: (labelOpt.fontSize || 14) + "px", - marginLeft: labelOpt.x, - marginTop: labelOpt.y - } - }); - marker.label = label; + fontSize: (labelOpt.fontSize || 14) + "px" + }); + } } const calloutOpt = option.callout || {}; let callout = marker.callout; @@ -7860,7 +7881,10 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ const duration = data.duration; const autoRotate = !!data.autoRotate; let rotate = Number(data.rotate) || 0; - const rotation = marker.getRotation(); + let rotation = 0; + if ("getRotation" in marker) { + rotation = marker.getRotation(); + } const a = marker.getPosition(); const b = new maps.LatLng(destination.latitude, destination.longitude); const distance = maps.geometry.spherical.computeDistanceBetween(a, b) / 1e3; @@ -7902,8 +7926,15 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ } rotate = maps.geometry.spherical.computeHeading(a, b) - lastRtate; } - marker.setRotation(rotation + rotate); - marker.moveTo(b, speed); + if ("setRotation" in marker) { + marker.setRotation(rotation + rotate); + } + if ("moveTo" in marker) { + marker.moveTo(b, speed); + } else { + marker.setPosition(b); + maps.event.trigger(marker, "moveend", {}); + } }); } }; @@ -8062,11 +8093,14 @@ var MapCircle = /* @__PURE__ */ defineSystemComponent({ const center = new maps.LatLng(option.latitude, option.longitude); function getColor(color) { const c = color.match(/#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?/); - if (c && c.length) { - return maps.Color.fromHex(c[0], Number("0x" + c[1] || 255) / 255); - } else { - return void 0; + if ("Color" in maps) { + if (c && c.length) { + return maps.Color.fromHex(c[0], Number("0x" + c[1] || 255) / 255).toRGBA(); + } else { + return void 0; + } } + return color; } circle = new maps.Circle({ map, @@ -8250,6 +8284,20 @@ function getPoints(points) { } return newPoints; } +function getLat(latLng) { + if ("getLat" in latLng) { + return latLng.getLat(); + } else { + return latLng.lat(); + } +} +function getLng(latLng) { + if ("getLng" in latLng) { + return latLng.getLng(); + } else { + return latLng.lng(); + } +} function useMap(props2, rootRef, emit2) { const mapRef = vue.ref(null); let maps; @@ -8303,8 +8351,8 @@ function useMap(props2, rootRef, emit2) { onMapReady(() => { const center = map.getCenter(); uniShared.callOptions(data, { - latitude: center.getLat(), - longitude: center.getLng(), + latitude: getLat(center), + longitude: getLng(center), errMsg: `${type}:ok` }); }); @@ -8363,12 +8411,12 @@ function useMap(props2, rootRef, emit2) { const northeast = latLngBounds.getNorthEast(); uniShared.callOptions(data, { southwest: { - latitude: southwest.getLat(), - longitude: southwest.getLng() + latitude: getLat(southwest), + longitude: getLng(southwest) }, northeast: { - latitude: northeast.getLat(), - longitude: northeast.getLng() + latitude: getLat(northeast), + longitude: getLng(northeast) }, errMsg: `${type}:ok` }); diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 34ec8bbc9e5..67834474d27 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -588,14 +588,14 @@ function attrChange(attr2) { style[attr3] = elementComputedStyle[attr3]; }); changeAttrs.length = 0; - callbacks$1.forEach(function(callback) { + callbacks.forEach(function(callback) { callback(style); }); }, 0); } changeAttrs.push(attr2); } -var callbacks$1 = []; +var callbacks = []; function onChange(callback) { if (!getSupport()) { return; @@ -604,13 +604,13 @@ function onChange(callback) { init(); } if (typeof callback === "function") { - callbacks$1.push(callback); + callbacks.push(callback); } } function offChange(callback) { - var index2 = callbacks$1.indexOf(callback); + var index2 = callbacks.indexOf(callback); if (index2 >= 0) { - callbacks$1.splice(index2, 1); + callbacks.splice(index2, 1); } } var safeAreaInsets = { @@ -14741,7 +14741,18 @@ function useWebViewSize(rootRef, iframeRef) { return _resize; } function createCallout(maps2) { - const overlay = new maps2.Overlay(); + const overlay = new (maps2.OverlayView || maps2.Overlay)(); + function onAdd() { + const div = this.div; + const panes = this.getPanes(); + panes.floatPane.appendChild(div); + } + function onRemove() { + const parentNode = this.div.parentNode; + if (parentNode) { + parentNode.removeChild(this.div); + } + } class Callout { constructor(option = {}) { this.setMap = overlay.setMap; @@ -14751,13 +14762,18 @@ function createCallout(maps2) { this.map_changed = overlay.map_changed; this.set = overlay.set; this.get = overlay.get; - this.setOptions = overlay.setOptions; + this.setOptions = overlay.setValues; this.bindTo = overlay.bindTo; this.bindsTo = overlay.bindsTo; this.notify = overlay.notify; this.setValues = overlay.setValues; this.unbind = overlay.unbind; this.unbindAll = overlay.unbindAll; + this.addListener = overlay.addListener; + this.onAdd = onAdd; + this.construct = onAdd; + this.onRemove = onRemove; + this.destroy = onRemove; this.option = option || {}; const map = option.map; this.position = option.position; @@ -14785,11 +14801,6 @@ function createCallout(maps2) { get onclick() { return this.div.onclick; } - construct() { - const div = this.div; - const panes = this.getPanes(); - panes.floatPane.appendChild(div); - } setOption(option) { this.option = option; this.setPosition(option.position); @@ -14831,39 +14842,56 @@ function createCallout(maps2) { const divStyle = this.div.style; divStyle.display = this.visible ? "block" : "none"; } - destroy() { - const parentNode = this.div.parentNode; - if (parentNode) { - parentNode.removeChild(this.div); - } - } } return Callout; } +var MapType; +(function(MapType2) { + MapType2["QQ"] = "qq"; + MapType2["GOOGLE"] = "google"; +})(MapType || (MapType = {})); let maps; -const callbacks = []; -const QQ_MAP_CALLBACKNAME = "__qq_map_callback__"; +const callbacksMap = {}; +const GOOGLE_MAP_CALLBACKNAME = "__map_callback__"; function loadMaps(callback) { + let type; + let key; + if (__uniConfig.qqMapKey) { + type = MapType.QQ; + key = __uniConfig.qqMapKey; + } else if (__uniConfig.googleMapKey) { + type = MapType.GOOGLE; + key = __uniConfig.googleMapKey; + } else { + console.error("Map key not configured."); + return; + } + const callbacks2 = callbacksMap[type] = callbacksMap[type] || []; if (maps) { callback(maps); - } else if (window.qq && window.qq.maps) { - maps = window.qq.maps; + } else if (window[type] && window[type].maps) { + maps = window[type].maps; + maps.Callout = maps.Callout || createCallout(maps); callback(maps); - } else if (callbacks.length) { - callbacks.push(callback); + } else if (callbacks2.length) { + callbacks2.push(callback); } else { - callbacks.push(callback); - const key = __uniConfig.qqMapKey; + callbacks2.push(callback); const globalExt = window; - globalExt[QQ_MAP_CALLBACKNAME] = function() { - delete globalExt[QQ_MAP_CALLBACKNAME]; - maps = window.qq.maps; + const callbackName = GOOGLE_MAP_CALLBACKNAME + type; + globalExt[callbackName] = function() { + delete globalExt[callbackName]; + maps = window[type].maps; maps.Callout = createCallout(maps); - callbacks.forEach((callback2) => callback2(maps)); - callbacks.length = 0; + callbacks2.forEach((callback2) => callback2(maps)); + callbacks2.length = 0; }; const script = document.createElement("script"); - script.src = `https://map.qq.com/api/js?v=2.exp&key=${key}&callback=${QQ_MAP_CALLBACKNAME}&libraries=geometry`; + const src = type === MapType.GOOGLE ? "https://maps.googleapis.com/maps/api/js?" : "https://map.qq.com/api/js?v=2.exp&libraries=geometry&"; + script.src = `${src}key=${key}&callback=${callbackName}`; + script.onerror = function() { + console.error("Map load failed."); + }; document.body.appendChild(script); } } @@ -14958,8 +14986,8 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ let w; let h; let top; - let x = anchor.x; - let y = anchor.y; + let x = typeof anchor.x === "number" ? anchor.x : 0.5; + let y = typeof anchor.y === "number" ? anchor.y : 1; if (option.iconPath && (option.width || option.height)) { w = option.width || img.width / img.height * option.height; h = option.height || img.height / img.width * option.width; @@ -14967,37 +14995,53 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ w = img.width / 2; h = img.height / 2; } - x = (typeof x === "number" ? x : 0.5) * w; - y = (typeof y === "number" ? y : 1) * h; top = h - (h - y); - icon = new maps2.MarkerImage(img.src, null, null, new maps2.Point(x, y), new maps2.Size(w, h)); + if ("MarkerImage" in maps2) { + icon = new maps2.MarkerImage(img.src, null, null, new maps2.Point(x * w, y * h), new maps2.Size(w, h)); + } else { + icon = { + url: img.src, + anchor: new maps2.Point(x, y), + size: new maps2.Size(w, h) + }; + } marker.setPosition(position); marker.setIcon(icon); - marker.setRotation(option.rotate || 0); + if ("setRotation" in marker) { + marker.setRotation(option.rotate || 0); + } const labelOpt = option.label || {}; - if (marker.label) { + if ("label" in marker) { marker.label.setMap(null); delete marker.label; } let label; if (labelOpt.content) { - label = new maps2.Label({ - position, - map, - clickable: false, - content: labelOpt.content, - style: { - border: "none", - padding: "8px", - background: "none", + if ("Label" in maps2) { + label = new maps2.Label({ + position, + map, + clickable: false, + content: labelOpt.content, + style: { + border: "none", + padding: "8px", + background: "none", + color: labelOpt.color, + fontSize: (labelOpt.fontSize || 14) + "px", + lineHeight: (labelOpt.fontSize || 14) + "px", + marginLeft: labelOpt.x, + marginTop: labelOpt.y + } + }); + marker.label = label; + } else if ("setLabel" in marker) { + marker.setLabel({ + text: labelOpt.content, color: labelOpt.color, - fontSize: (labelOpt.fontSize || 14) + "px", - lineHeight: (labelOpt.fontSize || 14) + "px", - marginLeft: labelOpt.x, - marginTop: labelOpt.y - } - }); - marker.label = label; + fontSize: (labelOpt.fontSize || 14) + "px" + }); + } } const calloutOpt = option.callout || {}; let callout = marker.callout; @@ -15086,7 +15130,10 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ const duration = data.duration; const autoRotate = !!data.autoRotate; let rotate = Number(data.rotate) || 0; - const rotation = marker.getRotation(); + let rotation = 0; + if ("getRotation" in marker) { + rotation = marker.getRotation(); + } const a2 = marker.getPosition(); const b = new maps2.LatLng(destination.latitude, destination.longitude); const distance2 = maps2.geometry.spherical.computeDistanceBetween(a2, b) / 1e3; @@ -15128,8 +15175,15 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ } rotate = maps2.geometry.spherical.computeHeading(a2, b) - lastRtate; } - marker.setRotation(rotation + rotate); - marker.moveTo(b, speed); + if ("setRotation" in marker) { + marker.setRotation(rotation + rotate); + } + if ("moveTo" in marker) { + marker.moveTo(b, speed); + } else { + marker.setPosition(b); + maps2.event.trigger(marker, "moveend", {}); + } }); } }; @@ -15291,11 +15345,14 @@ var MapCircle = /* @__PURE__ */ defineSystemComponent({ const center = new maps2.LatLng(option.latitude, option.longitude); function getColor(color) { const c = color.match(/#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?/); - if (c && c.length) { - return maps2.Color.fromHex(c[0], Number("0x" + c[1] || 255) / 255); - } else { - return void 0; + if ("Color" in maps2) { + if (c && c.length) { + return maps2.Color.fromHex(c[0], Number("0x" + c[1] || 255) / 255).toRGBA(); + } else { + return void 0; + } } + return color; } circle = new maps2.Circle({ map, @@ -19356,6 +19413,20 @@ function getPoints(points) { } return newPoints; } +function getLat(latLng) { + if ("getLat" in latLng) { + return latLng.getLat(); + } else { + return latLng.lat(); + } +} +function getLng(latLng) { + if ("getLng" in latLng) { + return latLng.getLng(); + } else { + return latLng.lng(); + } +} function useMap(props2, rootRef, emit2) { const trigger = useCustomEvent(rootRef, emit2); const mapRef = ref(null); @@ -19425,8 +19496,8 @@ function useMap(props2, rootRef, emit2) { return { scale: map.getZoom(), centerLocation: { - latitude: center.getLat(), - longitude: center.getLng() + latitude: getLat(center), + longitude: getLng(center) } }; } @@ -19455,6 +19526,9 @@ function useMap(props2, rootRef, emit2) { zoomControl: false, scaleControl: false, panControl: false, + fullscreenControl: false, + streetViewControl: false, + keyboardShortcuts: false, minZoom: 5, maxZoom: 18, draggable: true @@ -19496,8 +19570,8 @@ function useMap(props2, rootRef, emit2) { }); maps2.event.addListener(map2, "center_changed", () => { const center2 = map2.getCenter(); - const latitude = center2.getLat(); - const longitude = center2.getLng(); + const latitude = getLat(center2); + const longitude = getLng(center2); emit2("update:latitude", latitude); emit2("update:longitude", longitude); }); @@ -19511,8 +19585,8 @@ function useMap(props2, rootRef, emit2) { onMapReady(() => { const center = map.getCenter(); callOptions(data, { - latitude: center.getLat(), - longitude: center.getLng(), + latitude: getLat(center), + longitude: getLng(center), errMsg: `${type}:ok` }); }); @@ -19573,12 +19647,12 @@ function useMap(props2, rootRef, emit2) { const northeast = latLngBounds.getNorthEast(); callOptions(data, { southwest: { - latitude: southwest.getLat(), - longitude: southwest.getLng() + latitude: getLat(southwest), + longitude: getLng(southwest) }, northeast: { - latitude: northeast.getLat(), - longitude: northeast.getLng() + latitude: getLat(northeast), + longitude: getLng(northeast) }, errMsg: `${type}:ok` }); diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index d1f27b3103b..5b4f2af009e 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -27,5 +27,8 @@ "safe-area-insets": "^1.4.1", "xmlhttprequest": "^1.8.0" }, - "gitHead": "453a3e6ead807864087692f4339ea3d667045fe7" + "gitHead": "453a3e6ead807864087692f4339ea3d667045fe7", + "devDependencies": { + "@types/google.maps": "^3.45.6" + } } diff --git a/packages/uni-h5/src/view/components/map/MapCircle.tsx b/packages/uni-h5/src/view/components/map/MapCircle.tsx index 9443598674b..a8f433680ca 100644 --- a/packages/uni-h5/src/view/components/map/MapCircle.tsx +++ b/packages/uni-h5/src/view/components/map/MapCircle.tsx @@ -1,7 +1,6 @@ import { inject, onUnmounted, watch } from 'vue' import { defineSystemComponent, useCustomEvent } from '@dcloudio/uni-components' -import { Map, Circle } from './qqMap/types' -import { QQMapsExt } from './qqMap' +import { Maps, Map, Circle } from './maps' const props = { latitude: { type: [Number, String], require: true }, @@ -17,7 +16,7 @@ export type Props = Partial<Record<keyof typeof props, any>> type CustomEventTrigger = ReturnType<typeof useCustomEvent> type OnMapReadyCallback = ( map: Map, - maps: QQMapsExt, + maps: Maps, trigger: CustomEventTrigger ) => void type OnMapReady = (callback: OnMapReadyCallback) => void @@ -42,15 +41,21 @@ export default /*#__PURE__*/ defineSystemComponent({ const center = new maps.LatLng(option.latitude, option.longitude) function getColor(color: string) { const c = color.match(/#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?/) - if (c && c.length) { - return maps.Color.fromHex(c[0], Number('0x' + c[1] || 255) / 255) - } else { - return undefined + if ('Color' in maps) { + if (c && c.length) { + return maps.Color.fromHex( + c[0], + Number('0x' + c[1] || 255) / 255 + ).toRGBA() + } else { + return undefined + } } + return color } circle = new maps.Circle({ - map, - center, + map: map as any, + center: center as any, clickable: false, radius: option.radius, strokeWeight: Number(option.strokeWidth) || 1, diff --git a/packages/uni-h5/src/view/components/map/MapControl.tsx b/packages/uni-h5/src/view/components/map/MapControl.tsx index 6e49d1a5bba..5302dda1dbe 100644 --- a/packages/uni-h5/src/view/components/map/MapControl.tsx +++ b/packages/uni-h5/src/view/components/map/MapControl.tsx @@ -1,8 +1,7 @@ import { inject, onUnmounted, watch, PropType } from 'vue' import { getRealPath } from '@dcloudio/uni-platform' import { defineSystemComponent, useCustomEvent } from '@dcloudio/uni-components' -import { Map } from './qqMap/types' -import { QQMapsExt } from './qqMap' +import { Maps, Map } from './maps' interface Position { left: number | string @@ -22,7 +21,7 @@ export type Props = Partial<Record<keyof typeof props, any>> type CustomEventTrigger = ReturnType<typeof useCustomEvent> type OnMapReadyCallback = ( map: Map, - maps: QQMapsExt, + maps: Maps, trigger: CustomEventTrigger ) => void type OnMapReady = (callback: OnMapReadyCallback) => void diff --git a/packages/uni-h5/src/view/components/map/MapLocation.tsx b/packages/uni-h5/src/view/components/map/MapLocation.tsx index 8277ff30f22..ed43e3c8081 100644 --- a/packages/uni-h5/src/view/components/map/MapLocation.tsx +++ b/packages/uni-h5/src/view/components/map/MapLocation.tsx @@ -7,14 +7,13 @@ import { getLocation, } from '../../../service/api' //#endif -import { Map } from './qqMap/types' -import { QQMapsExt } from './qqMap' +import { Maps, Map } from './maps' import MapMarker from './MapMarker' type CustomEventTrigger = ReturnType<typeof useCustomEvent> type OnMapReadyCallback = ( map: Map, - maps: QQMapsExt, + maps: Maps, trigger: CustomEventTrigger ) => void type OnMapReady = (callback: OnMapReadyCallback) => void diff --git a/packages/uni-h5/src/view/components/map/MapMarker.tsx b/packages/uni-h5/src/view/components/map/MapMarker.tsx index c5a3cd91ebf..eff4c778700 100644 --- a/packages/uni-h5/src/view/components/map/MapMarker.tsx +++ b/packages/uni-h5/src/view/components/map/MapMarker.tsx @@ -1,8 +1,21 @@ import { onUnmounted, inject, watch } from 'vue' import { getRealPath } from '@dcloudio/uni-platform' import { defineSystemComponent, useCustomEvent } from '@dcloudio/uni-components' -import { Map, Marker, Label, LatLng } from './qqMap/types' -import { Callout, CalloutOptions, QQMapsExt } from './qqMap' +import { Maps, Map, LatLng, Callout, CalloutOptions } from './maps' +import { + Map as GMap, + LatLng as GLatLng, + Marker as GMarker, + Label as GLabel, + Icon, +} from './maps/google/types' +import { + Map as QMap, + LatLng as QLatLng, + Marker as QMarker, + Label as QLabel, + MarkerImage, +} from './maps/qq/types' const props = { id: { @@ -74,7 +87,7 @@ export type Props = Partial<Record<keyof typeof props, any>> type CustomEventTrigger = ReturnType<typeof useCustomEvent> type OnMapReadyCallback = ( map: Map, - maps: QQMapsExt, + maps: Maps, trigger: CustomEventTrigger ) => void type OnMapReady = (callback: OnMapReadyCallback) => void @@ -92,11 +105,15 @@ export interface Context { type AddMapChidlContext = (context: Context) => void type RemoveMapChidlContext = (context: Context) => void -interface MarkerExt extends Marker { +type Label = GLabel | QLabel +interface MarkerExt { callout?: InstanceType<Callout> label?: Label lastPosition?: LatLng } +interface GMarkerExt extends GMarker, MarkerExt {} +interface QMarkerExt extends QMarker, MarkerExt {} +type Marker = GMarkerExt | QMarkerExt export default /*#__PURE__*/ defineSystemComponent({ name: 'MapMarker', @@ -104,11 +121,11 @@ export default /*#__PURE__*/ defineSystemComponent({ setup(props) { const id = String(Number(props.id) !== NaN ? props.id : '') const onMapReady: OnMapReady = inject('onMapReady') as OnMapReady - let marker: MarkerExt + let marker: Marker function removeMarker() { if (marker) { if (marker.label) { - marker.label.setMap(null) + ;(marker.label as QLabel).setMap(null) } if (marker.callout) { marker.callout.setMap(null) @@ -123,12 +140,12 @@ export default /*#__PURE__*/ defineSystemComponent({ const img = new Image() img.onload = () => { const anchor = option.anchor || {} - let icon + let icon: MarkerImage | Icon let w let h let top - let x = anchor.x - let y = anchor.y + let x = typeof anchor.x === 'number' ? anchor.x : 0.5 + let y = typeof anchor.y === 'number' ? anchor.y : 1 if (option.iconPath && (option.width || option.height)) { w = option.width || (img.width / img.height) * option.height h = option.height || (img.height / img.width) * option.width @@ -136,43 +153,59 @@ export default /*#__PURE__*/ defineSystemComponent({ w = img.width / 2 h = img.height / 2 } - x = (typeof x === 'number' ? x : 0.5) * w - y = (typeof y === 'number' ? y : 1) * h top = h - (h - y) - icon = new maps.MarkerImage( - img.src, - null, - null, - new maps.Point(x, y), - new maps.Size(w, h) - ) - marker.setPosition(position) - marker.setIcon(icon) - marker.setRotation(option.rotate || 0) + if ('MarkerImage' in maps) { + icon = new maps.MarkerImage( + img.src, + null, + null, + new maps.Point(x * w, y * h), + new maps.Size(w, h) + ) + } else { + icon = { + url: img.src, + anchor: new maps.Point(x, y), + size: new maps.Size(w, h), + } + } + marker.setPosition(position as any) + marker.setIcon(icon as any) + if ('setRotation' in marker) { + marker.setRotation(option.rotate || 0) + } const labelOpt = option.label || {} - if (marker.label) { - marker.label.setMap(null) + if ('label' in marker) { + ;(marker.label as QLabel).setMap(null) delete marker.label } let label if (labelOpt.content) { - label = new maps.Label({ - position, - map, - clickable: false, - content: labelOpt.content, - style: { - border: 'none', - padding: '8px', - background: 'none', + if ('Label' in maps) { + label = new maps.Label({ + position: position as QLatLng, + map: map as QMap, + clickable: false, + content: labelOpt.content, + style: { + border: 'none', + padding: '8px', + background: 'none', + color: labelOpt.color, + fontSize: (labelOpt.fontSize || 14) + 'px', + lineHeight: (labelOpt.fontSize || 14) + 'px', + marginLeft: labelOpt.x, + marginTop: labelOpt.y, + }, + }) + marker.label = label + } else if ('setLabel' in marker) { + marker.setLabel({ + text: labelOpt.content, color: labelOpt.color, fontSize: (labelOpt.fontSize || 14) + 'px', - lineHeight: (labelOpt.fontSize || 14) + 'px', - marginLeft: labelOpt.x, - marginTop: labelOpt.y, - }, - }) - marker.label = label + }) + } } const calloutOpt = option.callout || {} let callout = marker.callout @@ -224,7 +257,7 @@ export default /*#__PURE__*/ defineSystemComponent({ } function addMarker(props: Props) { marker = new maps.Marker({ - map, + map: map as GMap & QMap, flat: true, autoRotation: false, }) @@ -267,14 +300,20 @@ export default /*#__PURE__*/ defineSystemComponent({ const duration = data.duration const autoRotate = !!data.autoRotate let rotate: number = Number(data.rotate) || 0 - const rotation = marker.getRotation() + let rotation = 0 + if ('getRotation' in marker) { + rotation = marker.getRotation() + } const a = marker.getPosition() const b = new maps.LatLng( destination.latitude, destination.longitude ) const distance = - maps.geometry.spherical.computeDistanceBetween(a, b) / 1000 + maps.geometry.spherical.computeDistanceBetween( + a as any, + b as any + ) / 1000 const time = (typeof duration === 'number' ? duration : 1000) / (1000 * 60 * 60) @@ -286,7 +325,7 @@ export default /*#__PURE__*/ defineSystemComponent({ const latLng = e.latLng const label = marker.label if (label) { - label.setPosition(latLng) + ;(label as QLabel).setPosition(latLng) } const callout = marker.callout if (callout) { @@ -297,11 +336,11 @@ export default /*#__PURE__*/ defineSystemComponent({ const event = maps.event.addListener(marker, 'moveend', () => { event.remove() movingEvent.remove() - marker.lastPosition = a - marker.setPosition(b) + marker.lastPosition = a! + marker.setPosition(b as any) const label = marker.label if (label) { - label.setPosition(b) + ;(label as QLabel).setPosition(b as QLatLng) } const callout = marker.callout if (callout) { @@ -316,14 +355,23 @@ export default /*#__PURE__*/ defineSystemComponent({ if (autoRotate) { if (marker.lastPosition) { lastRtate = maps.geometry.spherical.computeHeading( - marker.lastPosition, - a + marker.lastPosition as any, + a as any ) } - rotate = maps.geometry.spherical.computeHeading(a, b) - lastRtate + rotate = + maps.geometry.spherical.computeHeading(a as any, b as any) - + lastRtate + } + if ('setRotation' in marker) { + marker.setRotation(rotation + rotate) + } + if ('moveTo' in marker) { + marker.moveTo(b as QLatLng, speed) + } else { + marker.setPosition(b as GLatLng) + maps.event.trigger(marker, 'moveend', {}) } - marker.setRotation(rotation + rotate) - marker.moveTo(b, speed) }) }, } diff --git a/packages/uni-h5/src/view/components/map/MapPolyline.tsx b/packages/uni-h5/src/view/components/map/MapPolyline.tsx index b00d35a924b..ceb1432e970 100644 --- a/packages/uni-h5/src/view/components/map/MapPolyline.tsx +++ b/packages/uni-h5/src/view/components/map/MapPolyline.tsx @@ -1,7 +1,6 @@ import { inject, PropType, onUnmounted, watch } from 'vue' import { defineSystemComponent, useCustomEvent } from '@dcloudio/uni-components' -import { Map, LatLng, Polyline } from './qqMap/types' -import { QQMapsExt } from './qqMap' +import { Maps, Map, LatLng, Polyline } from './maps' interface Point { latitude: number @@ -30,7 +29,7 @@ export type Props = Partial<Record<keyof typeof props, any>> type CustomEventTrigger = ReturnType<typeof useCustomEvent> type OnMapReadyCallback = ( map: Map, - maps: QQMapsExt, + maps: Maps, trigger: CustomEventTrigger ) => void type OnMapReady = (callback: OnMapReadyCallback) => void @@ -62,9 +61,9 @@ export default /*#__PURE__*/ defineSystemComponent({ }) const strokeWeight = Number(option.width) || 1 polyline = new maps.Polyline({ - map, + map: map as any, clickable: false, - path, + path: path as any, strokeWeight, strokeColor: option.color || undefined, strokeDashStyle: option.dottedLine ? 'dash' : 'solid', @@ -72,9 +71,9 @@ export default /*#__PURE__*/ defineSystemComponent({ const borderWidth = Number(option.borderWidth) || 0 if (borderWidth) { polylineBorder = new maps.Polyline({ - map, + map: map as any, clickable: false, - path, + path: path as any, strokeWeight: strokeWeight + borderWidth * 2, strokeColor: option.borderColor || undefined, strokeDashStyle: option.dottedLine ? 'dash' : 'solid', diff --git a/packages/uni-h5/src/view/components/map/index.tsx b/packages/uni-h5/src/view/components/map/index.tsx index 62ca0a525ce..d62b5ef11b0 100644 --- a/packages/uni-h5/src/view/components/map/index.tsx +++ b/packages/uni-h5/src/view/components/map/index.tsx @@ -16,8 +16,7 @@ import { useCustomEvent, } from '@dcloudio/uni-components' import { callOptions } from '@dcloudio/uni-shared' -import { QQMapsExt, loadMaps } from './qqMap' -import { Map } from './qqMap/types' +import { Maps, Map, loadMaps, LatLng } from './maps' import MapMarker, { Props as MapMarkerProps, Context as MapMarkerContext, @@ -110,6 +109,22 @@ function getPoints(points: Point[]): Point[] { return newPoints } +function getLat(latLng: LatLng) { + if ('getLat' in latLng) { + return latLng.getLat() + } else { + return latLng.lat() + } +} + +function getLng(latLng: LatLng) { + if ('getLng' in latLng) { + return latLng.getLng() + } else { + return latLng.lng() + } +} + function useMap( props: Props, rootRef: Ref<HTMLElement | null>, @@ -117,7 +132,7 @@ function useMap( ) { const trigger = useCustomEvent(rootRef, emit) const mapRef: Ref<HTMLDivElement | null> = ref(null) - let maps: QQMapsExt + let maps: Maps let map: Map const state: MapState = reactive({ latitude: Number(props.latitude), @@ -127,7 +142,7 @@ function useMap( type CustomEventTrigger = ReturnType<typeof useCustomEvent> type OnMapReadyCallback = ( map: Map, - maps: QQMapsExt, + maps: Maps, trigger: CustomEventTrigger ) => void const onMapReadyCallbacks: OnMapReadyCallback[] = [] @@ -172,7 +187,7 @@ function useMap( state.latitude = latitude state.longitude = longitude if (map) { - map.setCenter(new maps.LatLng(latitude, longitude)) + map.setCenter(new maps.LatLng(latitude, longitude) as any) } } } @@ -195,31 +210,31 @@ function useMap( onBoundsReadyCallbacks.length = 0 } function getMapInfo() { - const center = map.getCenter() + const center = map.getCenter()! return { scale: map.getZoom(), centerLocation: { - latitude: center.getLat(), - longitude: center.getLng(), + latitude: getLat(center), + longitude: getLng(center), }, } } function updateCenter() { - map.setCenter(new maps.LatLng(state.latitude, state.longitude)) + map.setCenter(new maps.LatLng(state.latitude, state.longitude) as any) } function updateBounds() { const bounds = new maps.LatLngBounds() state.includePoints.forEach(({ latitude, longitude }) => { const latLng = new maps.LatLng(latitude, longitude) - bounds.extend(latLng) + bounds.extend(latLng as any) }) - map.fitBounds(bounds) + map.fitBounds(bounds as any) } function initMap() { const mapEl = mapRef.value as HTMLDivElement const center = new maps.LatLng(state.latitude, state.longitude) const map = new maps.Map(mapEl, { - center, + center: center as any, zoom: Number(props.scale), // scrollwheel: false, disableDoubleClickZoom: true, @@ -227,6 +242,9 @@ function useMap( zoomControl: false, scaleControl: false, panControl: false, + fullscreenControl: false, + streetViewControl: false, + keyboardShortcuts: false, minZoom: 5, maxZoom: 18, draggable: true, @@ -291,9 +309,9 @@ function useMap( ) }) maps.event.addListener(map, 'center_changed', () => { - const center = map.getCenter() - const latitude = center.getLat() - const longitude = center.getLng() + const center = map.getCenter()! + const latitude = getLat(center) + const longitude = getLng(center) emit('update:latitude', latitude) emit('update:longitude', longitude) }) @@ -307,10 +325,10 @@ function useMap( switch (type) { case 'getCenterLocation': onMapReady(() => { - const center = map.getCenter() + const center = map.getCenter()! callOptions(data, { - latitude: center.getLat(), - longitude: center.getLng(), + latitude: getLat(center), + longitude: getLng(center), errMsg: `${type}:ok`, }) }) @@ -332,7 +350,7 @@ function useMap( state.latitude = latitude state.longitude = longitude if (map) { - map.setCenter(new maps.LatLng(latitude, longitude)) + map.setCenter(new maps.LatLng(latitude, longitude) as any) } onMapReady(() => { callOptions(data, `${type}:ok`) @@ -370,17 +388,17 @@ function useMap( break case 'getRegion': onBoundsReady(() => { - const latLngBounds = map.getBounds() + const latLngBounds = map.getBounds()! const southwest = latLngBounds.getSouthWest() const northeast = latLngBounds.getNorthEast() callOptions(data, { southwest: { - latitude: southwest.getLat(), - longitude: southwest.getLng(), + latitude: getLat(southwest), + longitude: getLng(southwest), }, northeast: { - latitude: northeast.getLat(), - longitude: northeast.getLng(), + latitude: getLat(northeast), + longitude: getLng(northeast), }, errMsg: `${type}:ok`, }) @@ -402,7 +420,7 @@ function useMap( } catch (error) {} onMounted(() => { loadMaps((result) => { - maps = result as QQMapsExt + maps = result map = initMap() emitMapReady() trigger('updated', {} as Event, {}) diff --git a/packages/uni-h5/src/view/components/map/qqMap/Callout.ts b/packages/uni-h5/src/view/components/map/maps/Callout.ts similarity index 73% rename from packages/uni-h5/src/view/components/map/qqMap/Callout.ts rename to packages/uni-h5/src/view/components/map/maps/Callout.ts index 2ca72283023..478e230d140 100644 --- a/packages/uni-h5/src/view/components/map/qqMap/Callout.ts +++ b/packages/uni-h5/src/view/components/map/maps/Callout.ts @@ -1,8 +1,9 @@ -import { LatLng, Overlay, QQMaps } from './types' +import { QQMaps, Overlay, LatLng as QLatLng } from './qq/types' +import { GoogleMaps, OverlayView, LatLng as GLatLng } from './google/types' export interface CalloutOptions { map?: any - position?: LatLng + position?: GLatLng | QLatLng display?: 'ALWAYS' boxShadow?: string content?: string @@ -14,30 +15,50 @@ export interface CalloutOptions { top?: number } -export function createCallout(maps: QQMaps) { - const overlay = new maps.Overlay() - class Callout implements Overlay { +export function createCallout(maps: QQMaps | GoogleMaps) { + const overlay: OverlayView | Overlay = new ((maps as GoogleMaps) + .OverlayView || (maps as QQMaps).Overlay)() + function onAdd(this: Callout) { + const div = this.div + const panes = this.getPanes()! + panes.floatPane.appendChild(div) + } + function onRemove(this: Callout) { + const parentNode = this.div.parentNode + if (parentNode) { + parentNode.removeChild(this.div) + } + } + + class Callout implements OverlayView, Overlay { option: CalloutOptions - position?: LatLng + position?: GLatLng | QLatLng index?: number visible?: boolean alwaysVisible?: boolean div: HTMLDivElement triangle: HTMLDivElement + // @ts-ignore setMap = overlay.setMap + // @ts-ignore getMap = overlay.getMap + // @ts-ignore getPanes = overlay.getPanes + // @ts-ignore getProjection = overlay.getProjection - map_changed = overlay.map_changed + map_changed = (overlay as any).map_changed set = overlay.set get = overlay.get - setOptions = overlay.setOptions + setOptions = overlay.setValues bindTo = overlay.bindTo - bindsTo = overlay.bindsTo + bindsTo = (overlay as any).bindsTo notify = overlay.notify setValues = overlay.setValues + // @ts-ignore unbind = overlay.unbind + // @ts-ignore unbindAll = overlay.unbindAll + addListener = (overlay as any).addListener set onclick(callback: any) { this.div.onclick = callback } @@ -72,11 +93,8 @@ export function createCallout(maps: QQMaps) { this.setMap(map) } } - construct() { - const div = this.div - const panes = this.getPanes() - panes.floatPane.appendChild(div) - } + onAdd = onAdd + construct = onAdd setOption(option: CalloutOptions) { this.option = option this.setPosition(option.position) @@ -102,7 +120,7 @@ export function createCallout(maps: QQMaps) { option.bgColor || '#fff' } transparent transparent` } - setPosition(position?: LatLng) { + setPosition(position?: GLatLng | QLatLng) { this.position = position this.draw() } @@ -111,7 +129,9 @@ export function createCallout(maps: QQMaps) { if (!this.position || !this.div || !overlayProjection) { return } - const pixel = overlayProjection.fromLatLngToDivPixel(this.position) + const pixel = overlayProjection.fromLatLngToDivPixel( + this.position as GLatLng & QLatLng + )! const divStyle = this.div.style divStyle.left = pixel.x + 'px' divStyle.top = pixel.y + 'px' @@ -120,12 +140,8 @@ export function createCallout(maps: QQMaps) { const divStyle = this.div.style divStyle.display = this.visible ? 'block' : 'none' } - destroy() { - const parentNode = this.div.parentNode - if (parentNode) { - parentNode.removeChild(this.div) - } - } + onRemove = onRemove + destroy = onRemove } return Callout } diff --git a/packages/uni-h5/src/view/components/map/maps/google/types.d.ts b/packages/uni-h5/src/view/components/map/maps/google/types.d.ts new file mode 100644 index 00000000000..cf6914d1693 --- /dev/null +++ b/packages/uni-h5/src/view/components/map/maps/google/types.d.ts @@ -0,0 +1,10 @@ +/// <reference types="google.maps" /> +export type GoogleMaps = typeof google.maps +export type OverlayView = google.maps.OverlayView +export type LatLng = google.maps.LatLng +export type Polyline = google.maps.Polyline +export type Map = google.maps.Map +export type Marker = google.maps.Marker +export type Label = google.maps.MarkerLabel +export type Circle = google.maps.Circle +export type Icon = google.maps.Icon diff --git a/packages/uni-h5/src/view/components/map/maps/index.ts b/packages/uni-h5/src/view/components/map/maps/index.ts new file mode 100644 index 00000000000..00a50f97784 --- /dev/null +++ b/packages/uni-h5/src/view/components/map/maps/index.ts @@ -0,0 +1,76 @@ +export * from './types' +import { QQMaps } from './qq/types' +import { GoogleMaps } from './google/types' + +import { createCallout } from './Callout' +export { CalloutOptions } from './Callout' + +export type Callout = ReturnType<typeof createCallout> + +interface MapsWithCallout { + Callout: Callout +} + +interface GoogleMapsWithCallout extends GoogleMaps, MapsWithCallout {} + +interface QQMapsWithCallout extends QQMaps, MapsWithCallout {} + +export type Maps = GoogleMapsWithCallout | QQMapsWithCallout + +export enum MapType { + QQ = 'qq', + GOOGLE = 'google', +} + +let maps: Maps +const callbacksMap: Partial<Record<MapType, Array<(maps: Maps) => void>>> = {} +const GOOGLE_MAP_CALLBACKNAME = '__map_callback__' +interface WindowExt extends Window { + [key: string]: any +} + +export function loadMaps(callback: (maps: Maps) => void) { + let type: MapType + let key: string + if (__uniConfig.qqMapKey) { + type = MapType.QQ + key = __uniConfig.qqMapKey + } else if (__uniConfig.googleMapKey) { + type = MapType.GOOGLE + key = __uniConfig.googleMapKey + } else { + console.error('Map key not configured.') + return + } + const callbacks = (callbacksMap[type] = callbacksMap[type] || []) + if (maps) { + callback(maps) + } else if ((window as WindowExt)[type] && (window as WindowExt)[type].maps) { + maps = (window as WindowExt)[type].maps + maps.Callout = maps.Callout || createCallout(maps) + callback(maps) + } else if (callbacks.length) { + callbacks.push(callback) + } else { + callbacks.push(callback) + const globalExt = window as WindowExt + const callbackName = GOOGLE_MAP_CALLBACKNAME + type + globalExt[callbackName] = function () { + delete globalExt[callbackName] + maps = (window as WindowExt)[type].maps + maps.Callout = createCallout(maps) + callbacks.forEach((callback) => callback(maps)) + callbacks.length = 0 + } + const script = document.createElement('script') + const src = + type === MapType.GOOGLE + ? 'https://maps.googleapis.com/maps/api/js?' + : 'https://map.qq.com/api/js?v=2.exp&libraries=geometry&' + script.src = `${src}key=${key}&callback=${callbackName}` + script.onerror = function () { + console.error('Map load failed.') + } + document.body.appendChild(script) + } +} diff --git a/packages/uni-h5/src/view/components/map/qqMap/types.d.ts b/packages/uni-h5/src/view/components/map/maps/qq/types.d.ts similarity index 99% rename from packages/uni-h5/src/view/components/map/qqMap/types.d.ts rename to packages/uni-h5/src/view/components/map/maps/qq/types.d.ts index 63e8746fabb..e08412be733 100644 --- a/packages/uni-h5/src/view/components/map/qqMap/types.d.ts +++ b/packages/uni-h5/src/view/components/map/maps/qq/types.d.ts @@ -3,7 +3,7 @@ class Base { set(key: string, val: any): void setOptions(options: any): void bindTo(a, b, c, e) - bindsTo(a, b, c, e) + bindsTo?: (a, b, c, e) => void changed(a) notify(a) setValues(a) @@ -94,7 +94,7 @@ export class Overlay extends Base { /** * */ - map_changed() + map_changed?: () => void } export class LatLng { diff --git a/packages/uni-h5/src/view/components/map/maps/types.ts b/packages/uni-h5/src/view/components/map/maps/types.ts new file mode 100644 index 00000000000..e6c8e045eab --- /dev/null +++ b/packages/uni-h5/src/view/components/map/maps/types.ts @@ -0,0 +1,17 @@ +import { + Map as GMap, + LatLng as GLatLng, + Polyline as GPolyline, + Circle as GCircle, +} from './google/types' +import { + Map as QMap, + LatLng as QLatLng, + Polyline as QPolyline, + Circle as QCircle, +} from './qq/types' + +export type Map = GMap | QMap +export type LatLng = GLatLng | QLatLng +export type Polyline = GPolyline | QPolyline +export type Circle = GCircle | QCircle diff --git a/packages/uni-h5/src/view/components/map/qqMap/index.ts b/packages/uni-h5/src/view/components/map/qqMap/index.ts deleted file mode 100644 index 3210e3bbf40..00000000000 --- a/packages/uni-h5/src/view/components/map/qqMap/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { QQMaps } from './types' -import { createCallout } from './Callout' -export { CalloutOptions } from './Callout' - -export type Callout = ReturnType<typeof createCallout> - -export interface QQMapsExt extends QQMaps { - Callout: Callout -} - -let maps: QQMapsExt -const callbacks: Array<(maps: QQMaps) => void> = [] -const QQ_MAP_CALLBACKNAME = '__qq_map_callback__' -interface WindowExt extends Window { - [key: string]: any -} -export function loadMaps(callback: (maps: QQMaps) => void) { - if (maps) { - callback(maps) - } else if (window.qq && window.qq.maps) { - maps = window.qq.maps - callback(maps) - } else if (callbacks.length) { - callbacks.push(callback) - } else { - callbacks.push(callback) - const key = __uniConfig.qqMapKey - const globalExt = window as WindowExt - globalExt[QQ_MAP_CALLBACKNAME] = function () { - delete globalExt[QQ_MAP_CALLBACKNAME] - maps = window.qq.maps - maps.Callout = createCallout(maps) - callbacks.forEach((callback) => callback(maps)) - callbacks.length = 0 - } - const script = document.createElement('script') - script.src = `https://map.qq.com/api/js?v=2.exp&key=${key}&callback=${QQ_MAP_CALLBACKNAME}&libraries=geometry` - document.body.appendChild(script) - } -} diff --git a/yarn.lock b/yarn.lock index 50269f49964..e6fc00a772c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2452,6 +2452,11 @@ "@types/minimatch" "*" "@types/node" "*" +"@types/google.maps@^3.45.6": + version "3.45.6" + resolved "https://registry.yarnpkg.com/@types/google.maps/-/google.maps-3.45.6.tgz#441a7bc76424243b307596fc8d282a435a979ebd" + integrity sha512-BzGzxs8UXFxeP8uN/0nRgGbsbpYQxSCKsv/7S8OitU7wwhfFcqQSm5aAcL1nbwueMiJ/VVmIZKPq69s0kX5W+Q== + "@types/graceful-fs@^4.1.2": version "4.1.5" resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15"
7f2d36cbfc882b19e320c737f1712837c7c8a5ee
2024-03-21 11:20:06
fxy060608
fix(x-h5): 修复 __X__ 不生效
false
修复 __X__ 不生效
fix
diff --git a/packages/uni-h5-vue/dist-x/vue.runtime.cjs.js b/packages/uni-h5-vue/dist-x/vue.runtime.cjs.js index d2e42392b51..73f8711fa52 100644 --- a/packages/uni-h5-vue/dist-x/vue.runtime.cjs.js +++ b/packages/uni-h5-vue/dist-x/vue.runtime.cjs.js @@ -4349,7 +4349,7 @@ const getPublicInstance = (i) => { return null; if (isStatefulComponent(i)) { const p = getExposeProxy(i) || i.proxy; - if (__X__ && isUniBuiltInComponentInstance(p)) { + if (isUniBuiltInComponentInstance(p)) { return getPublicInstance(i.parent); } return p; @@ -4374,9 +4374,6 @@ const publicPropertiesMap = ( // fixed by xxxxxx $forceUpdate: (i) => i.f || (i.f = () => { queueJob(i.update); - if (!__X__) { - return; - } const subTree = i.subTree; if (subTree.shapeFlag & 16) { const vnodes = subTree.children; @@ -5898,7 +5895,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { if (isAsyncWrapper(vnode) && !isUnmount) { return; } - const refValue = vnode.shapeFlag & 4 && !(__X__ && vnode.component.type.rootElement) ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; + const refValue = vnode.shapeFlag & 4 && !vnode.component.type.rootElement ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; const value = isUnmount ? null : refValue; const { i: owner, r: ref } = rawRef; if (!owner) { diff --git a/packages/uni-h5-vue/dist-x/vue.runtime.esm.js b/packages/uni-h5-vue/dist-x/vue.runtime.esm.js index d78f6422c8a..cf6105a5ac1 100644 --- a/packages/uni-h5-vue/dist-x/vue.runtime.esm.js +++ b/packages/uni-h5-vue/dist-x/vue.runtime.esm.js @@ -4353,7 +4353,7 @@ const getPublicInstance = (i) => { return null; if (isStatefulComponent(i)) { const p = getExposeProxy(i) || i.proxy; - if (__X__ && isUniBuiltInComponentInstance(p)) { + if (isUniBuiltInComponentInstance(p)) { return getPublicInstance(i.parent); } return p; @@ -4378,9 +4378,6 @@ const publicPropertiesMap = ( // fixed by xxxxxx $forceUpdate: (i) => i.f || (i.f = () => { queueJob(i.update); - if (!__X__) { - return; - } const subTree = i.subTree; if (subTree.shapeFlag & 16) { const vnodes = subTree.children; @@ -5906,7 +5903,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { if (isAsyncWrapper(vnode) && !isUnmount) { return; } - const refValue = vnode.shapeFlag & 4 && !(__X__ && vnode.component.type.rootElement) ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; + const refValue = vnode.shapeFlag & 4 && !vnode.component.type.rootElement ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; const value = isUnmount ? null : refValue; const { i: owner, r: ref } = rawRef; if (!!(process.env.NODE_ENV !== "production") && !owner) { diff --git a/packages/uni-h5-vue/dist/vue.runtime.cjs.js b/packages/uni-h5-vue/dist/vue.runtime.cjs.js index d592db156aa..d9509543745 100644 --- a/packages/uni-h5-vue/dist/vue.runtime.cjs.js +++ b/packages/uni-h5-vue/dist/vue.runtime.cjs.js @@ -4341,17 +4341,11 @@ function toHandlers(obj, preserveCaseIfNecessary) { return ret; } -function isUniBuiltInComponentInstance(p) { - return p && p.$options && (p.$options.__reserved || p.$options.rootElement); -} const getPublicInstance = (i) => { if (!i) return null; if (isStatefulComponent(i)) { const p = getExposeProxy(i) || i.proxy; - if (__X__ && isUniBuiltInComponentInstance(p)) { - return getPublicInstance(i.parent); - } return p; } return getPublicInstance(i.parent); @@ -4374,27 +4368,9 @@ const publicPropertiesMap = ( // fixed by xxxxxx $forceUpdate: (i) => i.f || (i.f = () => { queueJob(i.update); - if (!__X__) { + { return; } - const subTree = i.subTree; - if (subTree.shapeFlag & 16) { - const vnodes = subTree.children; - vnodes.forEach((vnode) => { - if (!vnode.component) { - return; - } - const p = getExposeProxy(vnode.component) || vnode.component.proxy; - if (isUniBuiltInComponentInstance(p)) { - p.$forceUpdate(); - } - }); - } else if (subTree.component) { - const p = getExposeProxy(subTree.component) || subTree.component.proxy; - if (isUniBuiltInComponentInstance(p)) { - p.$forceUpdate(); - } - } }), $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)), $watch: (i) => instanceWatch.bind(i) @@ -5898,7 +5874,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { if (isAsyncWrapper(vnode) && !isUnmount) { return; } - const refValue = vnode.shapeFlag & 4 && !(__X__ && vnode.component.type.rootElement) ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; + const refValue = vnode.shapeFlag & 4 && true ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; const value = isUnmount ? null : refValue; const { i: owner, r: ref } = rawRef; if (!owner) { diff --git a/packages/uni-h5-vue/dist/vue.runtime.esm.js b/packages/uni-h5-vue/dist/vue.runtime.esm.js index a02688a5b24..71688630cc1 100644 --- a/packages/uni-h5-vue/dist/vue.runtime.esm.js +++ b/packages/uni-h5-vue/dist/vue.runtime.esm.js @@ -4345,17 +4345,11 @@ function toHandlers(obj, preserveCaseIfNecessary) { return ret; } -function isUniBuiltInComponentInstance(p) { - return p && p.$options && (p.$options.__reserved || p.$options.rootElement); -} const getPublicInstance = (i) => { if (!i) return null; if (isStatefulComponent(i)) { const p = getExposeProxy(i) || i.proxy; - if (__X__ && isUniBuiltInComponentInstance(p)) { - return getPublicInstance(i.parent); - } return p; } return getPublicInstance(i.parent); @@ -4378,27 +4372,9 @@ const publicPropertiesMap = ( // fixed by xxxxxx $forceUpdate: (i) => i.f || (i.f = () => { queueJob(i.update); - if (!__X__) { + { return; } - const subTree = i.subTree; - if (subTree.shapeFlag & 16) { - const vnodes = subTree.children; - vnodes.forEach((vnode) => { - if (!vnode.component) { - return; - } - const p = getExposeProxy(vnode.component) || vnode.component.proxy; - if (isUniBuiltInComponentInstance(p)) { - p.$forceUpdate(); - } - }); - } else if (subTree.component) { - const p = getExposeProxy(subTree.component) || subTree.component.proxy; - if (isUniBuiltInComponentInstance(p)) { - p.$forceUpdate(); - } - } }), $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)), $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP @@ -5906,7 +5882,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { if (isAsyncWrapper(vnode) && !isUnmount) { return; } - const refValue = vnode.shapeFlag & 4 && !(__X__ && vnode.component.type.rootElement) ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; + const refValue = vnode.shapeFlag & 4 && true ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; const value = isUnmount ? null : refValue; const { i: owner, r: ref } = rawRef; if (!!(process.env.NODE_ENV !== "production") && !owner) {
f8d69861d5359b4a319f68bbfc6f318dc2423b6a
2020-09-04 11:12:00
fxy060608
chore: sync mp-vue
false
sync mp-vue
chore
diff --git a/.prettierignore b/.prettierignore index 53c37a16608..90d45b85ab6 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ -dist \ No newline at end of file +dist +lib \ No newline at end of file diff --git a/packages/uni-mp-vue/lib/vue.runtime.esm.js b/packages/uni-mp-vue/lib/vue.runtime.esm.js index ef400f16e7d..ab948e1d937 100644 --- a/packages/uni-mp-vue/lib/vue.runtime.esm.js +++ b/packages/uni-mp-vue/lib/vue.runtime.esm.js @@ -1,1846 +1,1720 @@ -import { - EMPTY_OBJ, - isArray, - isIntegerKey, - isSymbol, - extend, - hasOwn, - isObject, - hasChanged, - capitalize, - toRawType, - def, - isFunction, - NOOP, - isString, - isPromise, - hyphenate, - isOn, - isReservedProp, - camelize, - EMPTY_ARR, - makeMap, - remove, - NO, - isGloballyWhitelisted, - toTypeString, - invokeArrayFns -} from '@vue/shared' -export { camelize } from '@vue/shared' +import { EMPTY_OBJ, isArray, isIntegerKey, isSymbol, extend, hasOwn, isObject, hasChanged, capitalize, toRawType, def, isFunction, NOOP, isString, isPromise, hyphenate, isOn, isReservedProp, camelize, EMPTY_ARR, makeMap, remove, NO, isGloballyWhitelisted, toTypeString, invokeArrayFns } from '@vue/shared'; +export { camelize } from '@vue/shared'; -const targetMap = new WeakMap() -const effectStack = [] -let activeEffect -const ITERATE_KEY = Symbol( - process.env.NODE_ENV !== 'production' ? 'iterate' : '' -) -const MAP_KEY_ITERATE_KEY = Symbol( - process.env.NODE_ENV !== 'production' ? 'Map key iterate' : '' -) -function isEffect(fn) { - return fn && fn._isEffect === true -} -function effect(fn, options = EMPTY_OBJ) { - if (isEffect(fn)) { - fn = fn.raw - } - const effect = createReactiveEffect(fn, options) - if (!options.lazy) { - effect() - } - return effect -} -function stop(effect) { - if (effect.active) { - cleanup(effect) - if (effect.options.onStop) { - effect.options.onStop() - } - effect.active = false - } -} -let uid = 0 -function createReactiveEffect(fn, options) { - const effect = function reactiveEffect() { - if (!effect.active) { - return options.scheduler ? undefined : fn() - } - if (!effectStack.includes(effect)) { - cleanup(effect) - try { - enableTracking() - effectStack.push(effect) - activeEffect = effect - return fn() - } finally { - effectStack.pop() - resetTracking() - activeEffect = effectStack[effectStack.length - 1] - } - } - } - effect.id = uid++ - effect._isEffect = true - effect.active = true - effect.raw = fn - effect.deps = [] - effect.options = options - return effect -} -function cleanup(effect) { - const { deps } = effect - if (deps.length) { - for (let i = 0; i < deps.length; i++) { - deps[i].delete(effect) - } - deps.length = 0 - } -} -let shouldTrack = true -const trackStack = [] -function pauseTracking() { - trackStack.push(shouldTrack) - shouldTrack = false -} -function enableTracking() { - trackStack.push(shouldTrack) - shouldTrack = true -} -function resetTracking() { - const last = trackStack.pop() - shouldTrack = last === undefined ? true : last -} -function track(target, type, key) { - if (!shouldTrack || activeEffect === undefined) { - return - } - let depsMap = targetMap.get(target) - if (!depsMap) { - targetMap.set(target, (depsMap = new Map())) - } - let dep = depsMap.get(key) - if (!dep) { - depsMap.set(key, (dep = new Set())) - } - if (!dep.has(activeEffect)) { - dep.add(activeEffect) - activeEffect.deps.push(dep) - if (process.env.NODE_ENV !== 'production' && activeEffect.options.onTrack) { - activeEffect.options.onTrack({ - effect: activeEffect, - target, - type, - key - }) - } - } -} -function trigger(target, type, key, newValue, oldValue, oldTarget) { - const depsMap = targetMap.get(target) - if (!depsMap) { - // never been tracked - return - } - const effects = new Set() - const add = effectsToAdd => { - if (effectsToAdd) { - effectsToAdd.forEach(effect => { - if (effect !== activeEffect) { - effects.add(effect) - } - }) - } - } - if (type === 'clear' /* CLEAR */) { - // collection being cleared - // trigger all effects for target - depsMap.forEach(add) - } else if (key === 'length' && isArray(target)) { - depsMap.forEach((dep, key) => { - if (key === 'length' || key >= newValue) { - add(dep) - } - }) - } else { - // schedule runs for SET | ADD | DELETE - if (key !== void 0) { - add(depsMap.get(key)) - } - // also run for iteration key on ADD | DELETE | Map.SET - const shouldTriggerIteration = - (type === 'add' /* ADD */ && (!isArray(target) || isIntegerKey(key))) || - (type === 'delete' /* DELETE */ && !isArray(target)) - if ( - shouldTriggerIteration || - (type === 'set' /* SET */ && target instanceof Map) - ) { - add(depsMap.get(isArray(target) ? 'length' : ITERATE_KEY)) - } - if (shouldTriggerIteration && target instanceof Map) { - add(depsMap.get(MAP_KEY_ITERATE_KEY)) - } - } - const run = effect => { - if (process.env.NODE_ENV !== 'production' && effect.options.onTrigger) { - effect.options.onTrigger({ - effect, - target, - key, - type, - newValue, - oldValue, - oldTarget - }) - } - if (effect.options.scheduler) { - effect.options.scheduler(effect) - } else { - effect() - } - } - effects.forEach(run) +const targetMap = new WeakMap(); +const effectStack = []; +let activeEffect; +const ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'iterate' : ''); +const MAP_KEY_ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'Map key iterate' : ''); +function isEffect(fn) { + return fn && fn._isEffect === true; +} +function effect(fn, options = EMPTY_OBJ) { + if (isEffect(fn)) { + fn = fn.raw; + } + const effect = createReactiveEffect(fn, options); + if (!options.lazy) { + effect(); + } + return effect; +} +function stop(effect) { + if (effect.active) { + cleanup(effect); + if (effect.options.onStop) { + effect.options.onStop(); + } + effect.active = false; + } +} +let uid = 0; +function createReactiveEffect(fn, options) { + const effect = function reactiveEffect() { + if (!effect.active) { + return options.scheduler ? undefined : fn(); + } + if (!effectStack.includes(effect)) { + cleanup(effect); + try { + enableTracking(); + effectStack.push(effect); + activeEffect = effect; + return fn(); + } + finally { + effectStack.pop(); + resetTracking(); + activeEffect = effectStack[effectStack.length - 1]; + } + } + }; + effect.id = uid++; + effect._isEffect = true; + effect.active = true; + effect.raw = fn; + effect.deps = []; + effect.options = options; + return effect; +} +function cleanup(effect) { + const { deps } = effect; + if (deps.length) { + for (let i = 0; i < deps.length; i++) { + deps[i].delete(effect); + } + deps.length = 0; + } +} +let shouldTrack = true; +const trackStack = []; +function pauseTracking() { + trackStack.push(shouldTrack); + shouldTrack = false; +} +function enableTracking() { + trackStack.push(shouldTrack); + shouldTrack = true; +} +function resetTracking() { + const last = trackStack.pop(); + shouldTrack = last === undefined ? true : last; +} +function track(target, type, key) { + if (!shouldTrack || activeEffect === undefined) { + return; + } + let depsMap = targetMap.get(target); + if (!depsMap) { + targetMap.set(target, (depsMap = new Map())); + } + let dep = depsMap.get(key); + if (!dep) { + depsMap.set(key, (dep = new Set())); + } + if (!dep.has(activeEffect)) { + dep.add(activeEffect); + activeEffect.deps.push(dep); + if ((process.env.NODE_ENV !== 'production') && activeEffect.options.onTrack) { + activeEffect.options.onTrack({ + effect: activeEffect, + target, + type, + key + }); + } + } +} +function trigger(target, type, key, newValue, oldValue, oldTarget) { + const depsMap = targetMap.get(target); + if (!depsMap) { + // never been tracked + return; + } + const effects = new Set(); + const add = (effectsToAdd) => { + if (effectsToAdd) { + effectsToAdd.forEach(effect => { + if (effect !== activeEffect) { + effects.add(effect); + } + }); + } + }; + if (type === "clear" /* CLEAR */) { + // collection being cleared + // trigger all effects for target + depsMap.forEach(add); + } + else if (key === 'length' && isArray(target)) { + depsMap.forEach((dep, key) => { + if (key === 'length' || key >= newValue) { + add(dep); + } + }); + } + else { + // schedule runs for SET | ADD | DELETE + if (key !== void 0) { + add(depsMap.get(key)); + } + // also run for iteration key on ADD | DELETE | Map.SET + const shouldTriggerIteration = (type === "add" /* ADD */ && + (!isArray(target) || isIntegerKey(key))) || + (type === "delete" /* DELETE */ && !isArray(target)); + if (shouldTriggerIteration || + (type === "set" /* SET */ && target instanceof Map)) { + add(depsMap.get(isArray(target) ? 'length' : ITERATE_KEY)); + } + if (shouldTriggerIteration && target instanceof Map) { + add(depsMap.get(MAP_KEY_ITERATE_KEY)); + } + } + const run = (effect) => { + if ((process.env.NODE_ENV !== 'production') && effect.options.onTrigger) { + effect.options.onTrigger({ + effect, + target, + key, + type, + newValue, + oldValue, + oldTarget + }); + } + if (effect.options.scheduler) { + effect.options.scheduler(effect); + } + else { + effect(); + } + }; + effects.forEach(run); } -const builtInSymbols = new Set( - Object.getOwnPropertyNames(Symbol) - .map(key => Symbol[key]) - .filter(isSymbol) -) -const get = /*#__PURE__*/ createGetter() -const shallowGet = /*#__PURE__*/ createGetter(false, true) -const readonlyGet = /*#__PURE__*/ createGetter(true) -const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true) -const arrayInstrumentations = {} -;['includes', 'indexOf', 'lastIndexOf'].forEach(key => { - arrayInstrumentations[key] = function(...args) { - const arr = toRaw(this) - for (let i = 0, l = this.length; i < l; i++) { - track(arr, 'get' /* GET */, i + '') - } - // we run the method using the original args first (which may be reactive) - const res = arr[key](...args) - if (res === -1 || res === false) { - // if that didn't work, run it again using raw values. - return arr[key](...args.map(toRaw)) - } else { - return res - } - } -}) -function createGetter(isReadonly = false, shallow = false) { - return function get(target, key, receiver) { - if (key === '__v_isReactive' /* IS_REACTIVE */) { - return !isReadonly - } else if (key === '__v_isReadonly' /* IS_READONLY */) { - return isReadonly - } else if ( - key === '__v_raw' /* RAW */ && - receiver === (isReadonly ? readonlyMap : reactiveMap).get(target) - ) { - return target - } - const targetIsArray = isArray(target) - if (targetIsArray && hasOwn(arrayInstrumentations, key)) { - return Reflect.get(arrayInstrumentations, key, receiver) - } - const res = Reflect.get(target, key, receiver) - const keyIsSymbol = isSymbol(key) - if ( - keyIsSymbol - ? builtInSymbols.has(key) - : key === `__proto__` || key === `__v_isRef` - ) { - return res - } - if (!isReadonly) { - track(target, 'get' /* GET */, key) - } - if (shallow) { - return res - } - if (isRef(res)) { - // ref unwrapping - does not apply for Array + integer key. - const shouldUnwrap = !targetIsArray || !isIntegerKey(key) - return shouldUnwrap ? res.value : res - } - if (isObject(res)) { - // Convert returned value into a proxy as well. we do the isObject check - // here to avoid invalid value warning. Also need to lazy access readonly - // and reactive here to avoid circular dependency. - return isReadonly ? readonly(res) : reactive(res) - } - return res - } -} -const set = /*#__PURE__*/ createSetter() -const shallowSet = /*#__PURE__*/ createSetter(true) -function createSetter(shallow = false) { - return function set(target, key, value, receiver) { - const oldValue = target[key] - if (!shallow) { - value = toRaw(value) - if (!isArray(target) && isRef(oldValue) && !isRef(value)) { - oldValue.value = value - return true - } - } - const hadKey = - isArray(target) && isIntegerKey(key) - ? Number(key) < target.length - : hasOwn(target, key) - const result = Reflect.set(target, key, value, receiver) - // don't trigger if target is something up in the prototype chain of original - if (target === toRaw(receiver)) { - if (!hadKey) { - trigger(target, 'add' /* ADD */, key, value) - } else if (hasChanged(value, oldValue)) { - trigger(target, 'set' /* SET */, key, value, oldValue) - } - } - return result - } -} -function deleteProperty(target, key) { - const hadKey = hasOwn(target, key) - const oldValue = target[key] - const result = Reflect.deleteProperty(target, key) - if (result && hadKey) { - trigger(target, 'delete' /* DELETE */, key, undefined, oldValue) - } - return result -} -function has(target, key) { - const result = Reflect.has(target, key) - if (!isSymbol(key) || !builtInSymbols.has(key)) { - track(target, 'has' /* HAS */, key) - } - return result -} -function ownKeys(target) { - track(target, 'iterate' /* ITERATE */, ITERATE_KEY) - return Reflect.ownKeys(target) -} -const mutableHandlers = { - get, - set, - deleteProperty, - has, - ownKeys -} -const readonlyHandlers = { - get: readonlyGet, - set(target, key) { - if (process.env.NODE_ENV !== 'production') { - console.warn( - `Set operation on key "${String(key)}" failed: target is readonly.`, - target - ) - } - return true - }, - deleteProperty(target, key) { - if (process.env.NODE_ENV !== 'production') { - console.warn( - `Delete operation on key "${String(key)}" failed: target is readonly.`, - target - ) - } - return true - } -} -const shallowReactiveHandlers = extend({}, mutableHandlers, { - get: shallowGet, - set: shallowSet -}) -// Props handlers are special in the sense that it should not unwrap top-level -// refs (in order to allow refs to be explicitly passed down), but should -// retain the reactivity of the normal readonly object. -const shallowReadonlyHandlers = extend({}, readonlyHandlers, { - get: shallowReadonlyGet -}) +const builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol) + .map(key => Symbol[key]) + .filter(isSymbol)); +const get = /*#__PURE__*/ createGetter(); +const shallowGet = /*#__PURE__*/ createGetter(false, true); +const readonlyGet = /*#__PURE__*/ createGetter(true); +const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true); +const arrayInstrumentations = {}; +['includes', 'indexOf', 'lastIndexOf'].forEach(key => { + arrayInstrumentations[key] = function (...args) { + const arr = toRaw(this); + for (let i = 0, l = this.length; i < l; i++) { + track(arr, "get" /* GET */, i + ''); + } + // we run the method using the original args first (which may be reactive) + const res = arr[key](...args); + if (res === -1 || res === false) { + // if that didn't work, run it again using raw values. + return arr[key](...args.map(toRaw)); + } + else { + return res; + } + }; +}); +function createGetter(isReadonly = false, shallow = false) { + return function get(target, key, receiver) { + if (key === "__v_isReactive" /* IS_REACTIVE */) { + return !isReadonly; + } + else if (key === "__v_isReadonly" /* IS_READONLY */) { + return isReadonly; + } + else if (key === "__v_raw" /* RAW */ && + receiver === (isReadonly ? readonlyMap : reactiveMap).get(target)) { + return target; + } + const targetIsArray = isArray(target); + if (targetIsArray && hasOwn(arrayInstrumentations, key)) { + return Reflect.get(arrayInstrumentations, key, receiver); + } + const res = Reflect.get(target, key, receiver); + const keyIsSymbol = isSymbol(key); + if (keyIsSymbol + ? builtInSymbols.has(key) + : key === `__proto__` || key === `__v_isRef`) { + return res; + } + if (!isReadonly) { + track(target, "get" /* GET */, key); + } + if (shallow) { + return res; + } + if (isRef(res)) { + // ref unwrapping - does not apply for Array + integer key. + const shouldUnwrap = !targetIsArray || !isIntegerKey(key); + return shouldUnwrap ? res.value : res; + } + if (isObject(res)) { + // Convert returned value into a proxy as well. we do the isObject check + // here to avoid invalid value warning. Also need to lazy access readonly + // and reactive here to avoid circular dependency. + return isReadonly ? readonly(res) : reactive(res); + } + return res; + }; +} +const set = /*#__PURE__*/ createSetter(); +const shallowSet = /*#__PURE__*/ createSetter(true); +function createSetter(shallow = false) { + return function set(target, key, value, receiver) { + const oldValue = target[key]; + if (!shallow) { + value = toRaw(value); + if (!isArray(target) && isRef(oldValue) && !isRef(value)) { + oldValue.value = value; + return true; + } + } + const hadKey = isArray(target) && isIntegerKey(key) + ? Number(key) < target.length + : hasOwn(target, key); + const result = Reflect.set(target, key, value, receiver); + // don't trigger if target is something up in the prototype chain of original + if (target === toRaw(receiver)) { + if (!hadKey) { + trigger(target, "add" /* ADD */, key, value); + } + else if (hasChanged(value, oldValue)) { + trigger(target, "set" /* SET */, key, value, oldValue); + } + } + return result; + }; +} +function deleteProperty(target, key) { + const hadKey = hasOwn(target, key); + const oldValue = target[key]; + const result = Reflect.deleteProperty(target, key); + if (result && hadKey) { + trigger(target, "delete" /* DELETE */, key, undefined, oldValue); + } + return result; +} +function has(target, key) { + const result = Reflect.has(target, key); + if (!isSymbol(key) || !builtInSymbols.has(key)) { + track(target, "has" /* HAS */, key); + } + return result; +} +function ownKeys(target) { + track(target, "iterate" /* ITERATE */, ITERATE_KEY); + return Reflect.ownKeys(target); +} +const mutableHandlers = { + get, + set, + deleteProperty, + has, + ownKeys +}; +const readonlyHandlers = { + get: readonlyGet, + set(target, key) { + if ((process.env.NODE_ENV !== 'production')) { + console.warn(`Set operation on key "${String(key)}" failed: target is readonly.`, target); + } + return true; + }, + deleteProperty(target, key) { + if ((process.env.NODE_ENV !== 'production')) { + console.warn(`Delete operation on key "${String(key)}" failed: target is readonly.`, target); + } + return true; + } +}; +const shallowReactiveHandlers = extend({}, mutableHandlers, { + get: shallowGet, + set: shallowSet +}); +// Props handlers are special in the sense that it should not unwrap top-level +// refs (in order to allow refs to be explicitly passed down), but should +// retain the reactivity of the normal readonly object. +const shallowReadonlyHandlers = extend({}, readonlyHandlers, { + get: shallowReadonlyGet +}); -const toReactive = value => (isObject(value) ? reactive(value) : value) -const toReadonly = value => (isObject(value) ? readonly(value) : value) -const toShallow = value => value -const getProto = v => Reflect.getPrototypeOf(v) -function get$1(target, key, isReadonly = false, isShallow = false) { - // #1772: readonly(reactive(Map)) should return readonly + reactive version - // of the value - target = target['__v_raw' /* RAW */] - const rawTarget = toRaw(target) - const rawKey = toRaw(key) - if (key !== rawKey) { - !isReadonly && track(rawTarget, 'get' /* GET */, key) - } - !isReadonly && track(rawTarget, 'get' /* GET */, rawKey) - const { has } = getProto(rawTarget) - const wrap = isReadonly ? toReadonly : isShallow ? toShallow : toReactive - if (has.call(rawTarget, key)) { - return wrap(target.get(key)) - } else if (has.call(rawTarget, rawKey)) { - return wrap(target.get(rawKey)) - } -} -function has$1(key, isReadonly = false) { - const target = this['__v_raw' /* RAW */] - const rawTarget = toRaw(target) - const rawKey = toRaw(key) - if (key !== rawKey) { - !isReadonly && track(rawTarget, 'has' /* HAS */, key) - } - !isReadonly && track(rawTarget, 'has' /* HAS */, rawKey) - return key === rawKey - ? target.has(key) - : target.has(key) || target.has(rawKey) -} -function size(target, isReadonly = false) { - target = target['__v_raw' /* RAW */] - !isReadonly && track(toRaw(target), 'iterate' /* ITERATE */, ITERATE_KEY) - return Reflect.get(target, 'size', target) -} -function add(value) { - value = toRaw(value) - const target = toRaw(this) - const proto = getProto(target) - const hadKey = proto.has.call(target, value) - const result = proto.add.call(target, value) - if (!hadKey) { - trigger(target, 'add' /* ADD */, value, value) - } - return result -} -function set$1(key, value) { - value = toRaw(value) - const target = toRaw(this) - const { has, get, set } = getProto(target) - let hadKey = has.call(target, key) - if (!hadKey) { - key = toRaw(key) - hadKey = has.call(target, key) - } else if (process.env.NODE_ENV !== 'production') { - checkIdentityKeys(target, has, key) - } - const oldValue = get.call(target, key) - const result = set.call(target, key, value) - if (!hadKey) { - trigger(target, 'add' /* ADD */, key, value) - } else if (hasChanged(value, oldValue)) { - trigger(target, 'set' /* SET */, key, value, oldValue) - } - return result -} -function deleteEntry(key) { - const target = toRaw(this) - const { has, get, delete: del } = getProto(target) - let hadKey = has.call(target, key) - if (!hadKey) { - key = toRaw(key) - hadKey = has.call(target, key) - } else if (process.env.NODE_ENV !== 'production') { - checkIdentityKeys(target, has, key) - } - const oldValue = get ? get.call(target, key) : undefined - // forward the operation before queueing reactions - const result = del.call(target, key) - if (hadKey) { - trigger(target, 'delete' /* DELETE */, key, undefined, oldValue) - } - return result -} -function clear() { - const target = toRaw(this) - const hadItems = target.size !== 0 - const oldTarget = - process.env.NODE_ENV !== 'production' - ? target instanceof Map - ? new Map(target) - : new Set(target) - : undefined - // forward the operation before queueing reactions - const result = getProto(target).clear.call(target) - if (hadItems) { - trigger(target, 'clear' /* CLEAR */, undefined, undefined, oldTarget) - } - return result -} -function createForEach(isReadonly, isShallow) { - return function forEach(callback, thisArg) { - const observed = this - const target = observed['__v_raw' /* RAW */] - const rawTarget = toRaw(target) - const wrap = isReadonly ? toReadonly : isShallow ? toShallow : toReactive - !isReadonly && track(rawTarget, 'iterate' /* ITERATE */, ITERATE_KEY) - return target.forEach((value, key) => { - // important: make sure the callback is - // 1. invoked with the reactive map as `this` and 3rd arg - // 2. the value received should be a corresponding reactive/readonly. - return callback.call(thisArg, wrap(value), wrap(key), observed) - }) - } -} -function createIterableMethod(method, isReadonly, isShallow) { - return function(...args) { - const target = this['__v_raw' /* RAW */] - const rawTarget = toRaw(target) - const isMap = rawTarget instanceof Map - const isPair = method === 'entries' || (method === Symbol.iterator && isMap) - const isKeyOnly = method === 'keys' && isMap - const innerIterator = target[method](...args) - const wrap = isReadonly ? toReadonly : isShallow ? toShallow : toReactive - !isReadonly && - track( - rawTarget, - 'iterate' /* ITERATE */, - isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY - ) - // return a wrapped iterator which returns observed versions of the - // values emitted from the real iterator - return { - // iterator protocol - next() { - const { value, done } = innerIterator.next() - return done - ? { value, done } - : { - value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), - done - } - }, - // iterable protocol - [Symbol.iterator]() { - return this - } - } - } -} -function createReadonlyMethod(type) { - return function(...args) { - if (process.env.NODE_ENV !== 'production') { - const key = args[0] ? `on key "${args[0]}" ` : `` - console.warn( - `${capitalize(type)} operation ${key}failed: target is readonly.`, - toRaw(this) - ) - } - return type === 'delete' /* DELETE */ ? false : this - } -} -const mutableInstrumentations = { - get(key) { - return get$1(this, key) - }, - get size() { - return size(this) - }, - has: has$1, - add, - set: set$1, - delete: deleteEntry, - clear, - forEach: createForEach(false, false) -} -const shallowInstrumentations = { - get(key) { - return get$1(this, key, false, true) - }, - get size() { - return size(this) - }, - has: has$1, - add, - set: set$1, - delete: deleteEntry, - clear, - forEach: createForEach(false, true) -} -const readonlyInstrumentations = { - get(key) { - return get$1(this, key, true) - }, - get size() { - return size(this, true) - }, - has(key) { - return has$1.call(this, key, true) - }, - add: createReadonlyMethod('add' /* ADD */), - set: createReadonlyMethod('set' /* SET */), - delete: createReadonlyMethod('delete' /* DELETE */), - clear: createReadonlyMethod('clear' /* CLEAR */), - forEach: createForEach(true, false) -} -const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator] -iteratorMethods.forEach(method => { - mutableInstrumentations[method] = createIterableMethod(method, false, false) - readonlyInstrumentations[method] = createIterableMethod(method, true, false) - shallowInstrumentations[method] = createIterableMethod(method, false, true) -}) -function createInstrumentationGetter(isReadonly, shallow) { - const instrumentations = shallow - ? shallowInstrumentations - : isReadonly - ? readonlyInstrumentations - : mutableInstrumentations - return (target, key, receiver) => { - if (key === '__v_isReactive' /* IS_REACTIVE */) { - return !isReadonly - } else if (key === '__v_isReadonly' /* IS_READONLY */) { - return isReadonly - } else if (key === '__v_raw' /* RAW */) { - return target - } - return Reflect.get( - hasOwn(instrumentations, key) && key in target - ? instrumentations - : target, - key, - receiver - ) - } -} -const mutableCollectionHandlers = { - get: createInstrumentationGetter(false, false) -} -const shallowCollectionHandlers = { - get: createInstrumentationGetter(false, true) -} -const readonlyCollectionHandlers = { - get: createInstrumentationGetter(true, false) -} -function checkIdentityKeys(target, has, key) { - const rawKey = toRaw(key) - if (rawKey !== key && has.call(target, rawKey)) { - const type = toRawType(target) - console.warn( - `Reactive ${type} contains both the raw and reactive ` + - `versions of the same object${type === `Map` ? `as keys` : ``}, ` + - `which can lead to inconsistencies. ` + - `Avoid differentiating between the raw and reactive versions ` + - `of an object and only use the reactive version if possible.` - ) - } +const toReactive = (value) => isObject(value) ? reactive(value) : value; +const toReadonly = (value) => isObject(value) ? readonly(value) : value; +const toShallow = (value) => value; +const getProto = (v) => Reflect.getPrototypeOf(v); +function get$1(target, key, isReadonly = false, isShallow = false) { + // #1772: readonly(reactive(Map)) should return readonly + reactive version + // of the value + target = target["__v_raw" /* RAW */]; + const rawTarget = toRaw(target); + const rawKey = toRaw(key); + if (key !== rawKey) { + !isReadonly && track(rawTarget, "get" /* GET */, key); + } + !isReadonly && track(rawTarget, "get" /* GET */, rawKey); + const { has } = getProto(rawTarget); + const wrap = isReadonly ? toReadonly : isShallow ? toShallow : toReactive; + if (has.call(rawTarget, key)) { + return wrap(target.get(key)); + } + else if (has.call(rawTarget, rawKey)) { + return wrap(target.get(rawKey)); + } +} +function has$1(key, isReadonly = false) { + const target = this["__v_raw" /* RAW */]; + const rawTarget = toRaw(target); + const rawKey = toRaw(key); + if (key !== rawKey) { + !isReadonly && track(rawTarget, "has" /* HAS */, key); + } + !isReadonly && track(rawTarget, "has" /* HAS */, rawKey); + return key === rawKey + ? target.has(key) + : target.has(key) || target.has(rawKey); +} +function size(target, isReadonly = false) { + target = target["__v_raw" /* RAW */]; + !isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY); + return Reflect.get(target, 'size', target); +} +function add(value) { + value = toRaw(value); + const target = toRaw(this); + const proto = getProto(target); + const hadKey = proto.has.call(target, value); + const result = proto.add.call(target, value); + if (!hadKey) { + trigger(target, "add" /* ADD */, value, value); + } + return result; +} +function set$1(key, value) { + value = toRaw(value); + const target = toRaw(this); + const { has, get, set } = getProto(target); + let hadKey = has.call(target, key); + if (!hadKey) { + key = toRaw(key); + hadKey = has.call(target, key); + } + else if ((process.env.NODE_ENV !== 'production')) { + checkIdentityKeys(target, has, key); + } + const oldValue = get.call(target, key); + const result = set.call(target, key, value); + if (!hadKey) { + trigger(target, "add" /* ADD */, key, value); + } + else if (hasChanged(value, oldValue)) { + trigger(target, "set" /* SET */, key, value, oldValue); + } + return result; +} +function deleteEntry(key) { + const target = toRaw(this); + const { has, get, delete: del } = getProto(target); + let hadKey = has.call(target, key); + if (!hadKey) { + key = toRaw(key); + hadKey = has.call(target, key); + } + else if ((process.env.NODE_ENV !== 'production')) { + checkIdentityKeys(target, has, key); + } + const oldValue = get ? get.call(target, key) : undefined; + // forward the operation before queueing reactions + const result = del.call(target, key); + if (hadKey) { + trigger(target, "delete" /* DELETE */, key, undefined, oldValue); + } + return result; +} +function clear() { + const target = toRaw(this); + const hadItems = target.size !== 0; + const oldTarget = (process.env.NODE_ENV !== 'production') + ? target instanceof Map + ? new Map(target) + : new Set(target) + : undefined; + // forward the operation before queueing reactions + const result = getProto(target).clear.call(target); + if (hadItems) { + trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget); + } + return result; +} +function createForEach(isReadonly, isShallow) { + return function forEach(callback, thisArg) { + const observed = this; + const target = observed["__v_raw" /* RAW */]; + const rawTarget = toRaw(target); + const wrap = isReadonly ? toReadonly : isShallow ? toShallow : toReactive; + !isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY); + return target.forEach((value, key) => { + // important: make sure the callback is + // 1. invoked with the reactive map as `this` and 3rd arg + // 2. the value received should be a corresponding reactive/readonly. + return callback.call(thisArg, wrap(value), wrap(key), observed); + }); + }; +} +function createIterableMethod(method, isReadonly, isShallow) { + return function (...args) { + const target = this["__v_raw" /* RAW */]; + const rawTarget = toRaw(target); + const isMap = rawTarget instanceof Map; + const isPair = method === 'entries' || (method === Symbol.iterator && isMap); + const isKeyOnly = method === 'keys' && isMap; + const innerIterator = target[method](...args); + const wrap = isReadonly ? toReadonly : isShallow ? toShallow : toReactive; + !isReadonly && + track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY); + // return a wrapped iterator which returns observed versions of the + // values emitted from the real iterator + return { + // iterator protocol + next() { + const { value, done } = innerIterator.next(); + return done + ? { value, done } + : { + value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), + done + }; + }, + // iterable protocol + [Symbol.iterator]() { + return this; + } + }; + }; +} +function createReadonlyMethod(type) { + return function (...args) { + if ((process.env.NODE_ENV !== 'production')) { + const key = args[0] ? `on key "${args[0]}" ` : ``; + console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this)); + } + return type === "delete" /* DELETE */ ? false : this; + }; +} +const mutableInstrumentations = { + get(key) { + return get$1(this, key); + }, + get size() { + return size(this); + }, + has: has$1, + add, + set: set$1, + delete: deleteEntry, + clear, + forEach: createForEach(false, false) +}; +const shallowInstrumentations = { + get(key) { + return get$1(this, key, false, true); + }, + get size() { + return size(this); + }, + has: has$1, + add, + set: set$1, + delete: deleteEntry, + clear, + forEach: createForEach(false, true) +}; +const readonlyInstrumentations = { + get(key) { + return get$1(this, key, true); + }, + get size() { + return size(this, true); + }, + has(key) { + return has$1.call(this, key, true); + }, + add: createReadonlyMethod("add" /* ADD */), + set: createReadonlyMethod("set" /* SET */), + delete: createReadonlyMethod("delete" /* DELETE */), + clear: createReadonlyMethod("clear" /* CLEAR */), + forEach: createForEach(true, false) +}; +const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator]; +iteratorMethods.forEach(method => { + mutableInstrumentations[method] = createIterableMethod(method, false, false); + readonlyInstrumentations[method] = createIterableMethod(method, true, false); + shallowInstrumentations[method] = createIterableMethod(method, false, true); +}); +function createInstrumentationGetter(isReadonly, shallow) { + const instrumentations = shallow + ? shallowInstrumentations + : isReadonly + ? readonlyInstrumentations + : mutableInstrumentations; + return (target, key, receiver) => { + if (key === "__v_isReactive" /* IS_REACTIVE */) { + return !isReadonly; + } + else if (key === "__v_isReadonly" /* IS_READONLY */) { + return isReadonly; + } + else if (key === "__v_raw" /* RAW */) { + return target; + } + return Reflect.get(hasOwn(instrumentations, key) && key in target + ? instrumentations + : target, key, receiver); + }; +} +const mutableCollectionHandlers = { + get: createInstrumentationGetter(false, false) +}; +const shallowCollectionHandlers = { + get: createInstrumentationGetter(false, true) +}; +const readonlyCollectionHandlers = { + get: createInstrumentationGetter(true, false) +}; +function checkIdentityKeys(target, has, key) { + const rawKey = toRaw(key); + if (rawKey !== key && has.call(target, rawKey)) { + const type = toRawType(target); + console.warn(`Reactive ${type} contains both the raw and reactive ` + + `versions of the same object${type === `Map` ? `as keys` : ``}, ` + + `which can lead to inconsistencies. ` + + `Avoid differentiating between the raw and reactive versions ` + + `of an object and only use the reactive version if possible.`); + } } -const reactiveMap = new WeakMap() -const readonlyMap = new WeakMap() -function targetTypeMap(rawType) { - switch (rawType) { - case 'Object': - case 'Array': - return 1 /* COMMON */ - case 'Map': - case 'Set': - case 'WeakMap': - case 'WeakSet': - return 2 /* COLLECTION */ - default: - return 0 /* INVALID */ - } -} -function getTargetType(value) { - return value['__v_skip' /* SKIP */] || !Object.isExtensible(value) - ? 0 /* INVALID */ - : targetTypeMap(toRawType(value)) -} -function reactive(target) { - // if trying to observe a readonly proxy, return the readonly version. - if (target && target['__v_isReadonly' /* IS_READONLY */]) { - return target - } - return createReactiveObject( - target, - false, - mutableHandlers, - mutableCollectionHandlers - ) -} -// Return a reactive-copy of the original object, where only the root level -// properties are reactive, and does NOT unwrap refs nor recursively convert -// returned properties. -function shallowReactive(target) { - return createReactiveObject( - target, - false, - shallowReactiveHandlers, - shallowCollectionHandlers - ) -} -function readonly(target) { - return createReactiveObject( - target, - true, - readonlyHandlers, - readonlyCollectionHandlers - ) -} -// Return a reactive-copy of the original object, where only the root level -// properties are readonly, and does NOT unwrap refs nor recursively convert -// returned properties. -// This is used for creating the props proxy object for stateful components. -function shallowReadonly(target) { - return createReactiveObject( - target, - true, - shallowReadonlyHandlers, - readonlyCollectionHandlers - ) -} -function createReactiveObject( - target, - isReadonly, - baseHandlers, - collectionHandlers -) { - if (!isObject(target)) { - if (process.env.NODE_ENV !== 'production') { - console.warn(`value cannot be made reactive: ${String(target)}`) - } - return target - } - // target is already a Proxy, return it. - // exception: calling readonly() on a reactive object - if ( - target['__v_raw' /* RAW */] && - !(isReadonly && target['__v_isReactive' /* IS_REACTIVE */]) - ) { - return target - } - // target already has corresponding Proxy - const proxyMap = isReadonly ? readonlyMap : reactiveMap - const existingProxy = proxyMap.get(target) - if (existingProxy) { - return existingProxy - } - // only a whitelist of value types can be observed. - const targetType = getTargetType(target) - if (targetType === 0 /* INVALID */) { - return target - } - const proxy = new Proxy( - target, - targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers - ) - proxyMap.set(target, proxy) - return proxy -} -function isReactive(value) { - if (isReadonly(value)) { - return isReactive(value['__v_raw' /* RAW */]) - } - return !!(value && value['__v_isReactive' /* IS_REACTIVE */]) -} -function isReadonly(value) { - return !!(value && value['__v_isReadonly' /* IS_READONLY */]) -} -function isProxy(value) { - return isReactive(value) || isReadonly(value) -} -function toRaw(observed) { - return (observed && toRaw(observed['__v_raw' /* RAW */])) || observed -} -function markRaw(value) { - def(value, '__v_skip' /* SKIP */, true) - return value +const reactiveMap = new WeakMap(); +const readonlyMap = new WeakMap(); +function targetTypeMap(rawType) { + switch (rawType) { + case 'Object': + case 'Array': + return 1 /* COMMON */; + case 'Map': + case 'Set': + case 'WeakMap': + case 'WeakSet': + return 2 /* COLLECTION */; + default: + return 0 /* INVALID */; + } +} +function getTargetType(value) { + return value["__v_skip" /* SKIP */] || !Object.isExtensible(value) + ? 0 /* INVALID */ + : targetTypeMap(toRawType(value)); +} +function reactive(target) { + // if trying to observe a readonly proxy, return the readonly version. + if (target && target["__v_isReadonly" /* IS_READONLY */]) { + return target; + } + return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers); +} +// Return a reactive-copy of the original object, where only the root level +// properties are reactive, and does NOT unwrap refs nor recursively convert +// returned properties. +function shallowReactive(target) { + return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers); +} +function readonly(target) { + return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers); +} +// Return a reactive-copy of the original object, where only the root level +// properties are readonly, and does NOT unwrap refs nor recursively convert +// returned properties. +// This is used for creating the props proxy object for stateful components. +function shallowReadonly(target) { + return createReactiveObject(target, true, shallowReadonlyHandlers, readonlyCollectionHandlers); +} +function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers) { + if (!isObject(target)) { + if ((process.env.NODE_ENV !== 'production')) { + console.warn(`value cannot be made reactive: ${String(target)}`); + } + return target; + } + // target is already a Proxy, return it. + // exception: calling readonly() on a reactive object + if (target["__v_raw" /* RAW */] && + !(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) { + return target; + } + // target already has corresponding Proxy + const proxyMap = isReadonly ? readonlyMap : reactiveMap; + const existingProxy = proxyMap.get(target); + if (existingProxy) { + return existingProxy; + } + // only a whitelist of value types can be observed. + const targetType = getTargetType(target); + if (targetType === 0 /* INVALID */) { + return target; + } + const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers); + proxyMap.set(target, proxy); + return proxy; +} +function isReactive(value) { + if (isReadonly(value)) { + return isReactive(value["__v_raw" /* RAW */]); + } + return !!(value && value["__v_isReactive" /* IS_REACTIVE */]); +} +function isReadonly(value) { + return !!(value && value["__v_isReadonly" /* IS_READONLY */]); +} +function isProxy(value) { + return isReactive(value) || isReadonly(value); +} +function toRaw(observed) { + return ((observed && toRaw(observed["__v_raw" /* RAW */])) || observed); +} +function markRaw(value) { + def(value, "__v_skip" /* SKIP */, true); + return value; } -const convert = val => (isObject(val) ? reactive(val) : val) -function isRef(r) { - return Boolean(r && r.__v_isRef === true) -} -function ref(value) { - return createRef(value) -} -function shallowRef(value) { - return createRef(value, true) -} -class RefImpl { - constructor(_rawValue, _shallow = false) { - this._rawValue = _rawValue - this._shallow = _shallow - this.__v_isRef = true - this._value = _shallow ? _rawValue : convert(_rawValue) - } - get value() { - track(toRaw(this), 'get' /* GET */, 'value') - return this._value - } - set value(newVal) { - if (hasChanged(toRaw(newVal), this._rawValue)) { - this._rawValue = newVal - this._value = this._shallow ? newVal : convert(newVal) - trigger(toRaw(this), 'set' /* SET */, 'value', newVal) - } - } -} -function createRef(rawValue, shallow = false) { - if (isRef(rawValue)) { - return rawValue - } - return new RefImpl(rawValue, shallow) -} -function triggerRef(ref) { - trigger( - ref, - 'set' /* SET */, - 'value', - process.env.NODE_ENV !== 'production' ? ref.value : void 0 - ) -} -function unref(ref) { - return isRef(ref) ? ref.value : ref -} -const shallowUnwrapHandlers = { - get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)), - set: (target, key, value, receiver) => { - const oldValue = target[key] - if (isRef(oldValue) && !isRef(value)) { - oldValue.value = value - return true - } else { - return Reflect.set(target, key, value, receiver) - } - } -} -function proxyRefs(objectWithRefs) { - return isReactive(objectWithRefs) - ? objectWithRefs - : new Proxy(objectWithRefs, shallowUnwrapHandlers) -} -class CustomRefImpl { - constructor(factory) { - this.__v_isRef = true - const { get, set } = factory( - () => track(this, 'get' /* GET */, 'value'), - () => trigger(this, 'set' /* SET */, 'value') - ) - this._get = get - this._set = set - } - get value() { - return this._get() - } - set value(newVal) { - this._set(newVal) - } -} -function customRef(factory) { - return new CustomRefImpl(factory) -} -function toRefs(object) { - if (process.env.NODE_ENV !== 'production' && !isProxy(object)) { - console.warn(`toRefs() expects a reactive object but received a plain one.`) - } - const ret = isArray(object) ? new Array(object.length) : {} - for (const key in object) { - ret[key] = toRef(object, key) - } - return ret -} -class ObjectRefImpl { - constructor(_object, _key) { - this._object = _object - this._key = _key - this.__v_isRef = true - } - get value() { - return this._object[this._key] - } - set value(newVal) { - this._object[this._key] = newVal - } -} -function toRef(object, key) { - return new ObjectRefImpl(object, key) +const convert = (val) => isObject(val) ? reactive(val) : val; +function isRef(r) { + return Boolean(r && r.__v_isRef === true); +} +function ref(value) { + return createRef(value); +} +function shallowRef(value) { + return createRef(value, true); +} +class RefImpl { + constructor(_rawValue, _shallow = false) { + this._rawValue = _rawValue; + this._shallow = _shallow; + this.__v_isRef = true; + this._value = _shallow ? _rawValue : convert(_rawValue); + } + get value() { + track(toRaw(this), "get" /* GET */, 'value'); + return this._value; + } + set value(newVal) { + if (hasChanged(toRaw(newVal), this._rawValue)) { + this._rawValue = newVal; + this._value = this._shallow ? newVal : convert(newVal); + trigger(toRaw(this), "set" /* SET */, 'value', newVal); + } + } +} +function createRef(rawValue, shallow = false) { + if (isRef(rawValue)) { + return rawValue; + } + return new RefImpl(rawValue, shallow); +} +function triggerRef(ref) { + trigger(ref, "set" /* SET */, 'value', (process.env.NODE_ENV !== 'production') ? ref.value : void 0); +} +function unref(ref) { + return isRef(ref) ? ref.value : ref; +} +const shallowUnwrapHandlers = { + get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)), + set: (target, key, value, receiver) => { + const oldValue = target[key]; + if (isRef(oldValue) && !isRef(value)) { + oldValue.value = value; + return true; + } + else { + return Reflect.set(target, key, value, receiver); + } + } +}; +function proxyRefs(objectWithRefs) { + return isReactive(objectWithRefs) + ? objectWithRefs + : new Proxy(objectWithRefs, shallowUnwrapHandlers); +} +class CustomRefImpl { + constructor(factory) { + this.__v_isRef = true; + const { get, set } = factory(() => track(this, "get" /* GET */, 'value'), () => trigger(this, "set" /* SET */, 'value')); + this._get = get; + this._set = set; + } + get value() { + return this._get(); + } + set value(newVal) { + this._set(newVal); + } +} +function customRef(factory) { + return new CustomRefImpl(factory); +} +function toRefs(object) { + if ((process.env.NODE_ENV !== 'production') && !isProxy(object)) { + console.warn(`toRefs() expects a reactive object but received a plain one.`); + } + const ret = isArray(object) ? new Array(object.length) : {}; + for (const key in object) { + ret[key] = toRef(object, key); + } + return ret; +} +class ObjectRefImpl { + constructor(_object, _key) { + this._object = _object; + this._key = _key; + this.__v_isRef = true; + } + get value() { + return this._object[this._key]; + } + set value(newVal) { + this._object[this._key] = newVal; + } +} +function toRef(object, key) { + return new ObjectRefImpl(object, key); } -class ComputedRefImpl { - constructor(getter, _setter, isReadonly) { - this._setter = _setter - this._dirty = true - this.__v_isRef = true - this.effect = effect(getter, { - lazy: true, - scheduler: () => { - if (!this._dirty) { - this._dirty = true - trigger(toRaw(this), 'set' /* SET */, 'value') - } - } - }) - this['__v_isReadonly' /* IS_READONLY */] = isReadonly - } - get value() { - if (this._dirty) { - this._value = this.effect() - this._dirty = false - } - track(toRaw(this), 'get' /* GET */, 'value') - return this._value - } - set value(newValue) { - this._setter(newValue) - } -} -function computed(getterOrOptions) { - let getter - let setter - if (isFunction(getterOrOptions)) { - getter = getterOrOptions - setter = - process.env.NODE_ENV !== 'production' - ? () => { - console.warn('Write operation failed: computed value is readonly') - } - : NOOP - } else { - getter = getterOrOptions.get - setter = getterOrOptions.set - } - return new ComputedRefImpl( - getter, - setter, - isFunction(getterOrOptions) || !getterOrOptions.set - ) +class ComputedRefImpl { + constructor(getter, _setter, isReadonly) { + this._setter = _setter; + this._dirty = true; + this.__v_isRef = true; + this.effect = effect(getter, { + lazy: true, + scheduler: () => { + if (!this._dirty) { + this._dirty = true; + trigger(toRaw(this), "set" /* SET */, 'value'); + } + } + }); + this["__v_isReadonly" /* IS_READONLY */] = isReadonly; + } + get value() { + if (this._dirty) { + this._value = this.effect(); + this._dirty = false; + } + track(toRaw(this), "get" /* GET */, 'value'); + return this._value; + } + set value(newValue) { + this._setter(newValue); + } +} +function computed(getterOrOptions) { + let getter; + let setter; + if (isFunction(getterOrOptions)) { + getter = getterOrOptions; + setter = (process.env.NODE_ENV !== 'production') + ? () => { + console.warn('Write operation failed: computed value is readonly'); + } + : NOOP; + } + else { + getter = getterOrOptions.get; + setter = getterOrOptions.set; + } + return new ComputedRefImpl(getter, setter, isFunction(getterOrOptions) || !getterOrOptions.set); } -const stack = [] -function pushWarningContext(vnode) { - stack.push(vnode) -} -function popWarningContext() { - stack.pop() -} -function warn(msg, ...args) { - // avoid props formatting or warn handler tracking deps that might be mutated - // during patch, leading to infinite recursion. - pauseTracking() - const instance = stack.length ? stack[stack.length - 1].component : null - const appWarnHandler = instance && instance.appContext.config.warnHandler - const trace = getComponentTrace() - if (appWarnHandler) { - callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [ - msg + args.join(''), - instance && instance.proxy, - trace - .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`) - .join('\n'), - trace - ]) - } else { - const warnArgs = [`[Vue warn]: ${msg}`, ...args] - /* istanbul ignore if */ - if ( - trace.length && - // avoid spamming console during tests - !false - ) { - warnArgs.push(`\n`, ...formatTrace(trace)) - } - console.warn(...warnArgs) - } - resetTracking() -} -function getComponentTrace() { - let currentVNode = stack[stack.length - 1] - if (!currentVNode) { - return [] - } - // we can't just use the stack because it will be incomplete during updates - // that did not start from the root. Re-construct the parent chain using - // instance parent pointers. - const normalizedStack = [] - while (currentVNode) { - const last = normalizedStack[0] - if (last && last.vnode === currentVNode) { - last.recurseCount++ - } else { - normalizedStack.push({ - vnode: currentVNode, - recurseCount: 0 - }) - } - const parentInstance = - currentVNode.component && currentVNode.component.parent - currentVNode = parentInstance && parentInstance.vnode - } - return normalizedStack -} -/* istanbul ignore next */ -function formatTrace(trace) { - const logs = [] - trace.forEach((entry, i) => { - logs.push(...(i === 0 ? [] : [`\n`]), ...formatTraceEntry(entry)) - }) - return logs -} -function formatTraceEntry({ vnode, recurseCount }) { - const postfix = - recurseCount > 0 ? `... (${recurseCount} recursive calls)` : `` - const isRoot = vnode.component ? vnode.component.parent == null : false - const open = ` at <${formatComponentName( - vnode.component, - vnode.type, - isRoot - )}` - const close = `>` + postfix - return vnode.props - ? [open, ...formatProps(vnode.props), close] - : [open + close] -} -/* istanbul ignore next */ -function formatProps(props) { - const res = [] - const keys = Object.keys(props) - keys.slice(0, 3).forEach(key => { - res.push(...formatProp(key, props[key])) - }) - if (keys.length > 3) { - res.push(` ...`) - } - return res -} -/* istanbul ignore next */ -function formatProp(key, value, raw) { - if (isString(value)) { - value = JSON.stringify(value) - return raw ? value : [`${key}=${value}`] - } else if ( - typeof value === 'number' || - typeof value === 'boolean' || - value == null - ) { - return raw ? value : [`${key}=${value}`] - } else if (isRef(value)) { - value = formatProp(key, toRaw(value.value), true) - return raw ? value : [`${key}=Ref<`, value, `>`] - } else if (isFunction(value)) { - return [`${key}=fn${value.name ? `<${value.name}>` : ``}`] - } else { - value = toRaw(value) - return raw ? value : [`${key}=`, value] - } +const stack = []; +function pushWarningContext(vnode) { + stack.push(vnode); +} +function popWarningContext() { + stack.pop(); +} +function warn(msg, ...args) { + // avoid props formatting or warn handler tracking deps that might be mutated + // during patch, leading to infinite recursion. + pauseTracking(); + const instance = stack.length ? stack[stack.length - 1].component : null; + const appWarnHandler = instance && instance.appContext.config.warnHandler; + const trace = getComponentTrace(); + if (appWarnHandler) { + callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [ + msg + args.join(''), + instance && instance.proxy, + trace + .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`) + .join('\n'), + trace + ]); + } + else { + const warnArgs = [`[Vue warn]: ${msg}`, ...args]; + /* istanbul ignore if */ + if (trace.length && + // avoid spamming console during tests + !false) { + warnArgs.push(`\n`, ...formatTrace(trace)); + } + console.warn(...warnArgs); + } + resetTracking(); +} +function getComponentTrace() { + let currentVNode = stack[stack.length - 1]; + if (!currentVNode) { + return []; + } + // we can't just use the stack because it will be incomplete during updates + // that did not start from the root. Re-construct the parent chain using + // instance parent pointers. + const normalizedStack = []; + while (currentVNode) { + const last = normalizedStack[0]; + if (last && last.vnode === currentVNode) { + last.recurseCount++; + } + else { + normalizedStack.push({ + vnode: currentVNode, + recurseCount: 0 + }); + } + const parentInstance = currentVNode.component && currentVNode.component.parent; + currentVNode = parentInstance && parentInstance.vnode; + } + return normalizedStack; +} +/* istanbul ignore next */ +function formatTrace(trace) { + const logs = []; + trace.forEach((entry, i) => { + logs.push(...(i === 0 ? [] : [`\n`]), ...formatTraceEntry(entry)); + }); + return logs; +} +function formatTraceEntry({ vnode, recurseCount }) { + const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; + const isRoot = vnode.component ? vnode.component.parent == null : false; + const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`; + const close = `>` + postfix; + return vnode.props + ? [open, ...formatProps(vnode.props), close] + : [open + close]; +} +/* istanbul ignore next */ +function formatProps(props) { + const res = []; + const keys = Object.keys(props); + keys.slice(0, 3).forEach(key => { + res.push(...formatProp(key, props[key])); + }); + if (keys.length > 3) { + res.push(` ...`); + } + return res; +} +/* istanbul ignore next */ +function formatProp(key, value, raw) { + if (isString(value)) { + value = JSON.stringify(value); + return raw ? value : [`${key}=${value}`]; + } + else if (typeof value === 'number' || + typeof value === 'boolean' || + value == null) { + return raw ? value : [`${key}=${value}`]; + } + else if (isRef(value)) { + value = formatProp(key, toRaw(value.value), true); + return raw ? value : [`${key}=Ref<`, value, `>`]; + } + else if (isFunction(value)) { + return [`${key}=fn${value.name ? `<${value.name}>` : ``}`]; + } + else { + value = toRaw(value); + return raw ? value : [`${key}=`, value]; + } } -const ErrorTypeStrings = { - ['bc' /* BEFORE_CREATE */]: 'beforeCreate hook', - ['c' /* CREATED */]: 'created hook', - ['bm' /* BEFORE_MOUNT */]: 'beforeMount hook', - ['m' /* MOUNTED */]: 'mounted hook', - ['bu' /* BEFORE_UPDATE */]: 'beforeUpdate hook', - ['u' /* UPDATED */]: 'updated', - ['bum' /* BEFORE_UNMOUNT */]: 'beforeUnmount hook', - ['um' /* UNMOUNTED */]: 'unmounted hook', - ['a' /* ACTIVATED */]: 'activated hook', - ['da' /* DEACTIVATED */]: 'deactivated hook', - ['ec' /* ERROR_CAPTURED */]: 'errorCaptured hook', - ['rtc' /* RENDER_TRACKED */]: 'renderTracked hook', - ['rtg' /* RENDER_TRIGGERED */]: 'renderTriggered hook', - [0 /* SETUP_FUNCTION */]: 'setup function', - [1 /* RENDER_FUNCTION */]: 'render function', - [2 /* WATCH_GETTER */]: 'watcher getter', - [3 /* WATCH_CALLBACK */]: 'watcher callback', - [4 /* WATCH_CLEANUP */]: 'watcher cleanup function', - [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler', - [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler', - [7 /* VNODE_HOOK */]: 'vnode hook', - [8 /* DIRECTIVE_HOOK */]: 'directive hook', - [9 /* TRANSITION_HOOK */]: 'transition hook', - [10 /* APP_ERROR_HANDLER */]: 'app errorHandler', - [11 /* APP_WARN_HANDLER */]: 'app warnHandler', - [12 /* FUNCTION_REF */]: 'ref function', - [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader', - [14 /* SCHEDULER */]: - 'scheduler flush. This is likely a Vue internals bug. ' + - 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next' -} -function callWithErrorHandling(fn, instance, type, args) { - let res - try { - res = args ? fn(...args) : fn() - } catch (err) { - handleError(err, instance, type) - } - return res -} -function callWithAsyncErrorHandling(fn, instance, type, args) { - if (isFunction(fn)) { - const res = callWithErrorHandling(fn, instance, type, args) - if (res && isPromise(res)) { - res.catch(err => { - handleError(err, instance, type) - }) - } - return res - } - const values = [] - for (let i = 0; i < fn.length; i++) { - values.push(callWithAsyncErrorHandling(fn[i], instance, type, args)) - } - return values -} -function handleError(err, instance, type) { - const contextVNode = instance ? instance.vnode : null - if (instance) { - let cur = instance.parent - // the exposed instance is the render proxy to keep it consistent with 2.x - const exposedInstance = instance.proxy - // in production the hook receives only the error code - const errorInfo = - process.env.NODE_ENV !== 'production' - ? ErrorTypeStrings[type] || type - : type // fixed by xxxxxxx - while (cur) { - const errorCapturedHooks = cur.ec - if (errorCapturedHooks) { - for (let i = 0; i < errorCapturedHooks.length; i++) { - if (errorCapturedHooks[i](err, exposedInstance, errorInfo)) { - return - } - } - } - cur = cur.parent - } - // app-level handling - const appErrorHandler = instance.appContext.config.errorHandler - if (appErrorHandler) { - callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [ - err, - exposedInstance, - errorInfo - ]) - return - } - } - logError(err, type, contextVNode) -} -// fixed by xxxxxx -function logError(err, type, contextVNode) { - if (process.env.NODE_ENV !== 'production') { - const info = ErrorTypeStrings[type] || type // fixed by xxxxxx - if (contextVNode) { - pushWarningContext(contextVNode) - } - warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`) - if (contextVNode) { - popWarningContext() - } - // crash in dev so it's more noticeable - throw err - } else { - // recover in prod to reduce the impact on end-user - console.error(err) - } +const ErrorTypeStrings = { + ["bc" /* BEFORE_CREATE */]: 'beforeCreate hook', + ["c" /* CREATED */]: 'created hook', + ["bm" /* BEFORE_MOUNT */]: 'beforeMount hook', + ["m" /* MOUNTED */]: 'mounted hook', + ["bu" /* BEFORE_UPDATE */]: 'beforeUpdate hook', + ["u" /* UPDATED */]: 'updated', + ["bum" /* BEFORE_UNMOUNT */]: 'beforeUnmount hook', + ["um" /* UNMOUNTED */]: 'unmounted hook', + ["a" /* ACTIVATED */]: 'activated hook', + ["da" /* DEACTIVATED */]: 'deactivated hook', + ["ec" /* ERROR_CAPTURED */]: 'errorCaptured hook', + ["rtc" /* RENDER_TRACKED */]: 'renderTracked hook', + ["rtg" /* RENDER_TRIGGERED */]: 'renderTriggered hook', + [0 /* SETUP_FUNCTION */]: 'setup function', + [1 /* RENDER_FUNCTION */]: 'render function', + [2 /* WATCH_GETTER */]: 'watcher getter', + [3 /* WATCH_CALLBACK */]: 'watcher callback', + [4 /* WATCH_CLEANUP */]: 'watcher cleanup function', + [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler', + [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler', + [7 /* VNODE_HOOK */]: 'vnode hook', + [8 /* DIRECTIVE_HOOK */]: 'directive hook', + [9 /* TRANSITION_HOOK */]: 'transition hook', + [10 /* APP_ERROR_HANDLER */]: 'app errorHandler', + [11 /* APP_WARN_HANDLER */]: 'app warnHandler', + [12 /* FUNCTION_REF */]: 'ref function', + [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader', + [14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' + + 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next' +}; +function callWithErrorHandling(fn, instance, type, args) { + let res; + try { + res = args ? fn(...args) : fn(); + } + catch (err) { + handleError(err, instance, type); + } + return res; +} +function callWithAsyncErrorHandling(fn, instance, type, args) { + if (isFunction(fn)) { + const res = callWithErrorHandling(fn, instance, type, args); + if (res && isPromise(res)) { + res.catch(err => { + handleError(err, instance, type); + }); + } + return res; + } + const values = []; + for (let i = 0; i < fn.length; i++) { + values.push(callWithAsyncErrorHandling(fn[i], instance, type, args)); + } + return values; +} +function handleError(err, instance, type) { + const contextVNode = instance ? instance.vnode : null; + if (instance) { + let cur = instance.parent; + // the exposed instance is the render proxy to keep it consistent with 2.x + const exposedInstance = instance.proxy; + // in production the hook receives only the error code + const errorInfo = (process.env.NODE_ENV !== 'production') ? ErrorTypeStrings[type] || type : type; // fixed by xxxxxxx + while (cur) { + const errorCapturedHooks = cur.ec; + if (errorCapturedHooks) { + for (let i = 0; i < errorCapturedHooks.length; i++) { + if (errorCapturedHooks[i](err, exposedInstance, errorInfo)) { + return; + } + } + } + cur = cur.parent; + } + // app-level handling + const appErrorHandler = instance.appContext.config.errorHandler; + if (appErrorHandler) { + callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]); + return; + } + } + logError(err, type, contextVNode); +} +// fixed by xxxxxx +function logError(err, type, contextVNode) { + if ((process.env.NODE_ENV !== 'production')) { + const info = ErrorTypeStrings[type] || type; // fixed by xxxxxx + if (contextVNode) { + pushWarningContext(contextVNode); + } + warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`); + if (contextVNode) { + popWarningContext(); + } + // crash in dev so it's more noticeable + throw err; + } + else { + // recover in prod to reduce the impact on end-user + console.error(err); + } } -let isFlushing = false -let isFlushPending = false -// fixed by xxxxxx -const queue = [] -let flushIndex = 0 -const pendingPreFlushCbs = [] -let activePreFlushCbs = null -let preFlushIndex = 0 -const pendingPostFlushCbs = [] -let activePostFlushCbs = null -let postFlushIndex = 0 -const resolvedPromise = Promise.resolve() -let currentFlushPromise = null -let currentPreFlushParentJob = null -const RECURSION_LIMIT = 100 -function nextTick(fn) { - const p = currentFlushPromise || resolvedPromise - return fn ? p.then(fn) : p -} -function queueJob(job) { - // the dedupe search uses the startIndex argument of Array.includes() - // by default the search index includes the current job that is being run - // so it cannot recursively trigger itself again. - // if the job is a watch() callback, the search will start with a +1 index to - // allow it recursively trigger itself - it is the user's responsibility to - // ensure it doesn't end up in an infinite loop. - if ( - (!queue.length || - !queue.includes( - job, - isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex - )) && - job !== currentPreFlushParentJob - ) { - queue.push(job) - queueFlush() - } -} -function queueFlush() { - if (!isFlushing && !isFlushPending) { - isFlushPending = true - currentFlushPromise = resolvedPromise.then(flushJobs) - } -} -function queueCb(cb, activeQueue, pendingQueue, index) { - if (!isArray(cb)) { - if ( - !activeQueue || - !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index) - ) { - pendingQueue.push(cb) - } - } else { - // if cb is an array, it is a component lifecycle hook which can only be - // triggered by a job, which is already deduped in the main queue, so - // we can skip duplicate check here to improve perf - pendingQueue.push(...cb) - } - queueFlush() -} -function queuePreFlushCb(cb) { - queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex) -} -function queuePostFlushCb(cb) { - queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex) -} -function flushPreFlushCbs(seen, parentJob = null) { - if (pendingPreFlushCbs.length) { - currentPreFlushParentJob = parentJob - activePreFlushCbs = [...new Set(pendingPreFlushCbs)] - pendingPreFlushCbs.length = 0 - if (process.env.NODE_ENV !== 'production') { - seen = seen || new Map() - } - for ( - preFlushIndex = 0; - preFlushIndex < activePreFlushCbs.length; - preFlushIndex++ - ) { - if (process.env.NODE_ENV !== 'production') { - checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex]) - } - activePreFlushCbs[preFlushIndex]() - } - activePreFlushCbs = null - preFlushIndex = 0 - currentPreFlushParentJob = null - // recursively flush until it drains - flushPreFlushCbs(seen, parentJob) - } -} -function flushPostFlushCbs(seen) { - if (pendingPostFlushCbs.length) { - const deduped = [...new Set(pendingPostFlushCbs)] - pendingPostFlushCbs.length = 0 - // #1947 already has active queue, nested flushPostFlushCbs call - if (activePostFlushCbs) { - activePostFlushCbs.push(...deduped) - return - } - activePostFlushCbs = deduped - if (process.env.NODE_ENV !== 'production') { - seen = seen || new Map() - } - activePostFlushCbs.sort((a, b) => getId(a) - getId(b)) - for ( - postFlushIndex = 0; - postFlushIndex < activePostFlushCbs.length; - postFlushIndex++ - ) { - if (process.env.NODE_ENV !== 'production') { - checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex]) - } - activePostFlushCbs[postFlushIndex]() - } - activePostFlushCbs = null - postFlushIndex = 0 - } +let isFlushing = false; +let isFlushPending = false; +// fixed by xxxxxx +const queue = []; +let flushIndex = 0; +const pendingPreFlushCbs = []; +let activePreFlushCbs = null; +let preFlushIndex = 0; +const pendingPostFlushCbs = []; +let activePostFlushCbs = null; +let postFlushIndex = 0; +const resolvedPromise = Promise.resolve(); +let currentFlushPromise = null; +let currentPreFlushParentJob = null; +const RECURSION_LIMIT = 100; +function nextTick(fn) { + const p = currentFlushPromise || resolvedPromise; + return fn ? p.then(fn) : p; +} +function queueJob(job) { + // the dedupe search uses the startIndex argument of Array.includes() + // by default the search index includes the current job that is being run + // so it cannot recursively trigger itself again. + // if the job is a watch() callback, the search will start with a +1 index to + // allow it recursively trigger itself - it is the user's responsibility to + // ensure it doesn't end up in an infinite loop. + if ((!queue.length || + !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && + job !== currentPreFlushParentJob) { + queue.push(job); + queueFlush(); + } +} +function queueFlush() { + if (!isFlushing && !isFlushPending) { + isFlushPending = true; + currentFlushPromise = resolvedPromise.then(flushJobs); + } +} +function queueCb(cb, activeQueue, pendingQueue, index) { + if (!isArray(cb)) { + if (!activeQueue || + !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) { + pendingQueue.push(cb); + } + } + else { + // if cb is an array, it is a component lifecycle hook which can only be + // triggered by a job, which is already deduped in the main queue, so + // we can skip duplicate check here to improve perf + pendingQueue.push(...cb); + } + queueFlush(); +} +function queuePreFlushCb(cb) { + queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex); +} +function queuePostFlushCb(cb) { + queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex); +} +function flushPreFlushCbs(seen, parentJob = null) { + if (pendingPreFlushCbs.length) { + currentPreFlushParentJob = parentJob; + activePreFlushCbs = [...new Set(pendingPreFlushCbs)]; + pendingPreFlushCbs.length = 0; + if ((process.env.NODE_ENV !== 'production')) { + seen = seen || new Map(); + } + for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) { + if ((process.env.NODE_ENV !== 'production')) { + checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex]); + } + activePreFlushCbs[preFlushIndex](); + } + activePreFlushCbs = null; + preFlushIndex = 0; + currentPreFlushParentJob = null; + // recursively flush until it drains + flushPreFlushCbs(seen, parentJob); + } +} +function flushPostFlushCbs(seen) { + if (pendingPostFlushCbs.length) { + const deduped = [...new Set(pendingPostFlushCbs)]; + pendingPostFlushCbs.length = 0; + // #1947 already has active queue, nested flushPostFlushCbs call + if (activePostFlushCbs) { + activePostFlushCbs.push(...deduped); + return; + } + activePostFlushCbs = deduped; + if ((process.env.NODE_ENV !== 'production')) { + seen = seen || new Map(); + } + activePostFlushCbs.sort((a, b) => getId(a) - getId(b)); + for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { + if ((process.env.NODE_ENV !== 'production')) { + checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex]); + } + activePostFlushCbs[postFlushIndex](); + } + activePostFlushCbs = null; + postFlushIndex = 0; + } +} +const getId = (job) => job.id == null ? Infinity : job.id; +function flushJobs(seen) { + isFlushPending = false; + isFlushing = true; + if ((process.env.NODE_ENV !== 'production')) { + seen = seen || new Map(); + } + flushPreFlushCbs(seen); + // Sort queue before flush. + // This ensures that: + // 1. Components are updated from parent to child. (because parent is always + // created before the child so its render effect will have smaller + // priority number) + // 2. If a component is unmounted during a parent component's update, + // its update can be skipped. + // Jobs can never be null before flush starts, since they are only invalidated + // during execution of another flushed job. + queue.sort((a, b) => getId(a) - getId(b)); + try { + for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { + const job = queue[flushIndex]; + if (job) { + if ((process.env.NODE_ENV !== 'production')) { + checkRecursiveUpdates(seen, job); + } + callWithErrorHandling(job, null, 14 /* SCHEDULER */); + } + } + } + finally { + flushIndex = 0; + queue.length = 0; + flushPostFlushCbs(seen); + isFlushing = false; + currentFlushPromise = null; + // some postFlushCb queued jobs! + // keep flushing until it drains. + if (queue.length || pendingPostFlushCbs.length) { + flushJobs(seen); + } + } +} +function checkRecursiveUpdates(seen, fn) { + if (!seen.has(fn)) { + seen.set(fn, 1); + } + else { + const count = seen.get(fn); + if (count > RECURSION_LIMIT) { + throw new Error(`Maximum recursive updates exceeded. ` + + `This means you have a reactive effect that is mutating its own ` + + `dependencies and thus recursively triggering itself. Possible sources ` + + `include component template, render function, updated hook or ` + + `watcher source function.`); + } + else { + seen.set(fn, count + 1); + } + } } -const getId = job => (job.id == null ? Infinity : job.id) -function flushJobs(seen) { - isFlushPending = false - isFlushing = true - if (process.env.NODE_ENV !== 'production') { - seen = seen || new Map() - } - flushPreFlushCbs(seen) - // Sort queue before flush. - // This ensures that: - // 1. Components are updated from parent to child. (because parent is always - // created before the child so its render effect will have smaller - // priority number) - // 2. If a component is unmounted during a parent component's update, - // its update can be skipped. - // Jobs can never be null before flush starts, since they are only invalidated - // during execution of another flushed job. - queue.sort((a, b) => getId(a) - getId(b)) - try { - for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { - const job = queue[flushIndex] - if (job) { - if (process.env.NODE_ENV !== 'production') { - checkRecursiveUpdates(seen, job) - } - callWithErrorHandling(job, null, 14 /* SCHEDULER */) - } - } - } finally { - flushIndex = 0 - queue.length = 0 - flushPostFlushCbs(seen) - isFlushing = false - currentFlushPromise = null - // some postFlushCb queued jobs! - // keep flushing until it drains. - if (queue.length || pendingPostFlushCbs.length) { - flushJobs(seen) - } - } -} -function checkRecursiveUpdates(seen, fn) { - if (!seen.has(fn)) { - seen.set(fn, 1) - } else { - const count = seen.get(fn) - if (count > RECURSION_LIMIT) { - throw new Error( - `Maximum recursive updates exceeded. ` + - `This means you have a reactive effect that is mutating its own ` + - `dependencies and thus recursively triggering itself. Possible sources ` + - `include component template, render function, updated hook or ` + - `watcher source function.` - ) - } else { - seen.set(fn, count + 1) - } - } -} - -// mark the current rendering instance for asset resolution (e.g. -// resolveComponent, resolveDirective) during render -let currentRenderingInstance = null -function markAttrsAccessed() {} -function emit(instance, event, ...args) { - const props = instance.vnode.props || EMPTY_OBJ - if (process.env.NODE_ENV !== 'production') { - const { - emitsOptions, - propsOptions: [propsOptions] - } = instance - if (emitsOptions) { - if (!(event in emitsOptions)) { - if (!propsOptions || !(`on` + capitalize(event) in propsOptions)) { - warn( - `Component emitted event "${event}" but it is neither declared in ` + - `the emits option nor as an "on${capitalize(event)}" prop.` - ) - } - } else { - const validator = emitsOptions[event] - if (isFunction(validator)) { - const isValid = validator(...args) - if (!isValid) { - warn( - `Invalid event arguments: event validation failed for event "${event}".` - ) - } - } - } - } - } - if (process.env.NODE_ENV !== 'production' || false); - let handlerName = `on${capitalize(event)}` - let handler = props[handlerName] - // for v-model update:xxx events, also trigger kebab-case equivalent - // for props passed via kebab-case - if (!handler && event.startsWith('update:')) { - handlerName = `on${capitalize(hyphenate(event))}` - handler = props[handlerName] - } - if (!handler) { - handler = props[handlerName + `Once`] - if (!instance.emitted) { - ;(instance.emitted = {})[handlerName] = true - } else if (instance.emitted[handlerName]) { - return - } - } - if (handler) { - callWithAsyncErrorHandling( - handler, - instance, - 6 /* COMPONENT_EVENT_HANDLER */, - args - ) - } -} -function normalizeEmitsOptions(comp, appContext, asMixin = false) { - const appId = appContext.app ? appContext.app._uid : -1 - const cache = comp.__emits || (comp.__emits = {}) - const cached = cache[appId] - if (cached !== undefined) { - return cached - } - const raw = comp.emits - let normalized = {} - // apply mixin/extends props - let hasExtends = false - if (__VUE_OPTIONS_API__ && !isFunction(comp)) { - const extendEmits = raw => { - hasExtends = true - extend(normalized, normalizeEmitsOptions(raw, appContext, true)) - } - if (!asMixin && appContext.mixins.length) { - appContext.mixins.forEach(extendEmits) - } - if (comp.extends) { - extendEmits(comp.extends) - } - if (comp.mixins) { - comp.mixins.forEach(extendEmits) - } - } - if (!raw && !hasExtends) { - return (cache[appId] = null) - } - if (isArray(raw)) { - raw.forEach(key => (normalized[key] = null)) - } else { - extend(normalized, raw) - } - return (cache[appId] = normalized) -} -// Check if an incoming prop key is a declared emit event listener. -// e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are -// both considered matched listeners. -function isEmitListener(options, key) { - if (!options || !isOn(key)) { - return false - } - key = key.replace(/Once$/, '') - return ( - hasOwn(options, key[2].toLowerCase() + key.slice(3)) || - hasOwn(options, key.slice(2)) - ) +// mark the current rendering instance for asset resolution (e.g. +// resolveComponent, resolveDirective) during render +let currentRenderingInstance = null; +function markAttrsAccessed() { } -function initProps( - instance, - rawProps, - isStateful, // result of bitwise flag comparison - isSSR = false -) { - const props = {} - const attrs = {} - // def(attrs, InternalObjectKey, 1) // fixed by xxxxxx - def(attrs, '__vInternal', 1) - setFullProps(instance, rawProps, props, attrs) - // validation - if (process.env.NODE_ENV !== 'production') { - validateProps(props, instance) - } - if (isStateful) { - // stateful - instance.props = isSSR ? props : shallowReactive(props) - } else { - if (!instance.type.props) { - // functional w/ optional props, props === attrs - instance.props = attrs - } else { - // functional w/ declared props - instance.props = props - } - } - instance.attrs = attrs -} -function setFullProps(instance, rawProps, props, attrs) { - const [options, needCastKeys] = instance.propsOptions - if (rawProps) { - for (const key in rawProps) { - const value = rawProps[key] - // key, ref are reserved and never passed down - if (isReservedProp(key)) { - continue - } - // prop option names are camelized during normalization, so to support - // kebab -> camel conversion here we need to camelize the key. - let camelKey - if (options && hasOwn(options, (camelKey = camelize(key)))) { - props[camelKey] = value - } else if (!isEmitListener(instance.emitsOptions, key)) { - // Any non-declared (either as a prop or an emitted event) props are put - // into a separate `attrs` object for spreading. Make sure to preserve - // original key casing - attrs[key] = value - } - } - } - if (needCastKeys) { - const rawCurrentProps = toRaw(props) - for (let i = 0; i < needCastKeys.length; i++) { - const key = needCastKeys[i] - props[key] = resolvePropValue( - options, - rawCurrentProps, - key, - rawCurrentProps[key] - ) - } - } -} -function resolvePropValue(options, props, key, value) { - const opt = options[key] - if (opt != null) { - const hasDefault = hasOwn(opt, 'default') - // default values - if (hasDefault && value === undefined) { - const defaultValue = opt.default - value = - opt.type !== Function && isFunction(defaultValue) - ? defaultValue(props) - : defaultValue - } - // boolean casting - if (opt[0 /* shouldCast */]) { - if (!hasOwn(props, key) && !hasDefault) { - value = false - } else if ( - opt[1 /* shouldCastTrue */] && - (value === '' || value === hyphenate(key)) - ) { - value = true - } - } - } - return value -} -function normalizePropsOptions(comp, appContext, asMixin = false) { - const appId = appContext.app ? appContext.app._uid : -1 - const cache = comp.__props || (comp.__props = {}) - const cached = cache[appId] - if (cached) { - return cached - } - const raw = comp.props - const normalized = {} - const needCastKeys = [] - // apply mixin/extends props - let hasExtends = false - if (__VUE_OPTIONS_API__ && !isFunction(comp)) { - const extendProps = raw => { - hasExtends = true - const [props, keys] = normalizePropsOptions(raw, appContext, true) - extend(normalized, props) - if (keys) needCastKeys.push(...keys) - } - if (!asMixin && appContext.mixins.length) { - appContext.mixins.forEach(extendProps) - } - if (comp.extends) { - extendProps(comp.extends) - } - if (comp.mixins) { - comp.mixins.forEach(extendProps) - } - } - if (!raw && !hasExtends) { - return (cache[appId] = EMPTY_ARR) - } - if (isArray(raw)) { - for (let i = 0; i < raw.length; i++) { - if (process.env.NODE_ENV !== 'production' && !isString(raw[i])) { - warn(`props must be strings when using array syntax.`, raw[i]) - } - const normalizedKey = camelize(raw[i]) - if (validatePropName(normalizedKey)) { - normalized[normalizedKey] = EMPTY_OBJ - } - } - } else if (raw) { - if (process.env.NODE_ENV !== 'production' && !isObject(raw)) { - warn(`invalid props options`, raw) - } - for (const key in raw) { - const normalizedKey = camelize(key) - if (validatePropName(normalizedKey)) { - const opt = raw[key] - const prop = (normalized[normalizedKey] = - isArray(opt) || isFunction(opt) ? { type: opt } : opt) - if (prop) { - const booleanIndex = getTypeIndex(Boolean, prop.type) - const stringIndex = getTypeIndex(String, prop.type) - prop[0 /* shouldCast */] = booleanIndex > -1 - prop[1 /* shouldCastTrue */] = - stringIndex < 0 || booleanIndex < stringIndex - // if the prop needs boolean casting or default value - if (booleanIndex > -1 || hasOwn(prop, 'default')) { - needCastKeys.push(normalizedKey) - } - } - } - } - } - return (cache[appId] = [normalized, needCastKeys]) -} -// use function string name to check type constructors -// so that it works across vms / iframes. -function getType(ctor) { - const match = ctor && ctor.toString().match(/^\s*function (\w+)/) - return match ? match[1] : '' -} -function isSameType(a, b) { - return getType(a) === getType(b) -} -function getTypeIndex(type, expectedTypes) { - if (isArray(expectedTypes)) { - for (let i = 0, len = expectedTypes.length; i < len; i++) { - if (isSameType(expectedTypes[i], type)) { - return i - } - } - } else if (isFunction(expectedTypes)) { - return isSameType(expectedTypes, type) ? 0 : -1 - } - return -1 -} -/** - * dev only - */ -function validateProps(props, instance) { - const rawValues = toRaw(props) - const options = instance.propsOptions[0] - for (const key in options) { - let opt = options[key] - if (opt == null) continue - validateProp(key, rawValues[key], opt, !hasOwn(rawValues, key)) - } -} -/** - * dev only - */ -function validatePropName(key) { - if (key[0] !== '$') { - return true - } else if (process.env.NODE_ENV !== 'production') { - warn(`Invalid prop name: "${key}" is a reserved property.`) - } - return false -} -/** - * dev only - */ -function validateProp(name, value, prop, isAbsent) { - const { type, required, validator } = prop - // required! - if (required && isAbsent) { - warn('Missing required prop: "' + name + '"') - return - } - // missing but optional - if (value == null && !prop.required) { - return - } - // type check - if (type != null && type !== true) { - let isValid = false - const types = isArray(type) ? type : [type] - const expectedTypes = [] - // value is valid as long as one of the specified types match - for (let i = 0; i < types.length && !isValid; i++) { - const { valid, expectedType } = assertType(value, types[i]) - expectedTypes.push(expectedType || '') - isValid = valid - } - if (!isValid) { - warn(getInvalidTypeMessage(name, value, expectedTypes)) - return - } - } - // custom validator - if (validator && !validator(value)) { - warn('Invalid prop: custom validator check failed for prop "' + name + '".') - } -} -const isSimpleType = /*#__PURE__*/ makeMap( - 'String,Number,Boolean,Function,Symbol' -) -/** - * dev only - */ -function assertType(value, type) { - let valid - const expectedType = getType(type) - if (isSimpleType(expectedType)) { - const t = typeof value - valid = t === expectedType.toLowerCase() - // for primitive wrapper objects - if (!valid && t === 'object') { - valid = value instanceof type - } - } else if (expectedType === 'Object') { - valid = isObject(value) - } else if (expectedType === 'Array') { - valid = isArray(value) - } else { - valid = value instanceof type - } - return { - valid, - expectedType - } -} -/** - * dev only - */ -function getInvalidTypeMessage(name, value, expectedTypes) { - let message = - `Invalid prop: type check failed for prop "${name}".` + - ` Expected ${expectedTypes.map(capitalize).join(', ')}` - const expectedType = expectedTypes[0] - const receivedType = toRawType(value) - const expectedValue = styleValue(value, expectedType) - const receivedValue = styleValue(value, receivedType) - // check if we need to specify expected value - if ( - expectedTypes.length === 1 && - isExplicable(expectedType) && - !isBoolean(expectedType, receivedType) - ) { - message += ` with value ${expectedValue}` - } - message += `, got ${receivedType} ` - // check if we need to specify received value - if (isExplicable(receivedType)) { - message += `with value ${receivedValue}.` - } - return message -} -/** - * dev only - */ -function styleValue(value, type) { - if (type === 'String') { - return `"${value}"` - } else if (type === 'Number') { - return `${Number(value)}` - } else { - return `${value}` - } -} -/** - * dev only - */ -function isExplicable(type) { - const explicitTypes = ['string', 'number', 'boolean'] - return explicitTypes.some(elem => type.toLowerCase() === elem) -} -/** - * dev only - */ -function isBoolean(...args) { - return args.some(elem => elem.toLowerCase() === 'boolean') +function emit(instance, event, ...args) { + const props = instance.vnode.props || EMPTY_OBJ; + if ((process.env.NODE_ENV !== 'production')) { + const { emitsOptions, propsOptions: [propsOptions] } = instance; + if (emitsOptions) { + if (!(event in emitsOptions)) { + if (!propsOptions || !(`on` + capitalize(event) in propsOptions)) { + warn(`Component emitted event "${event}" but it is neither declared in ` + + `the emits option nor as an "on${capitalize(event)}" prop.`); + } + } + else { + const validator = emitsOptions[event]; + if (isFunction(validator)) { + const isValid = validator(...args); + if (!isValid) { + warn(`Invalid event arguments: event validation failed for event "${event}".`); + } + } + } + } + } + if ((process.env.NODE_ENV !== 'production') || false) ; + let handlerName = `on${capitalize(event)}`; + let handler = props[handlerName]; + // for v-model update:xxx events, also trigger kebab-case equivalent + // for props passed via kebab-case + if (!handler && event.startsWith('update:')) { + handlerName = `on${capitalize(hyphenate(event))}`; + handler = props[handlerName]; + } + if (!handler) { + handler = props[handlerName + `Once`]; + if (!instance.emitted) { + (instance.emitted = {})[handlerName] = true; + } + else if (instance.emitted[handlerName]) { + return; + } + } + if (handler) { + callWithAsyncErrorHandling(handler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args); + } +} +function normalizeEmitsOptions(comp, appContext, asMixin = false) { + const appId = appContext.app ? appContext.app._uid : -1; + const cache = comp.__emits || (comp.__emits = {}); + const cached = cache[appId]; + if (cached !== undefined) { + return cached; + } + const raw = comp.emits; + let normalized = {}; + // apply mixin/extends props + let hasExtends = false; + if (__VUE_OPTIONS_API__ && !isFunction(comp)) { + const extendEmits = (raw) => { + hasExtends = true; + extend(normalized, normalizeEmitsOptions(raw, appContext, true)); + }; + if (!asMixin && appContext.mixins.length) { + appContext.mixins.forEach(extendEmits); + } + if (comp.extends) { + extendEmits(comp.extends); + } + if (comp.mixins) { + comp.mixins.forEach(extendEmits); + } + } + if (!raw && !hasExtends) { + return (cache[appId] = null); + } + if (isArray(raw)) { + raw.forEach(key => (normalized[key] = null)); + } + else { + extend(normalized, raw); + } + return (cache[appId] = normalized); +} +// Check if an incoming prop key is a declared emit event listener. +// e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are +// both considered matched listeners. +function isEmitListener(options, key) { + if (!options || !isOn(key)) { + return false; + } + key = key.replace(/Once$/, ''); + return (hasOwn(options, key[2].toLowerCase() + key.slice(3)) || + hasOwn(options, key.slice(2))); } -function injectHook(type, hook, target = currentInstance, prepend = false) { - if (target) { - const hooks = target[type] || (target[type] = []) - // cache the error handling wrapper for injected hooks so the same hook - // can be properly deduped by the scheduler. "__weh" stands for "with error - // handling". - const wrappedHook = - hook.__weh || - (hook.__weh = (...args) => { - if (target.isUnmounted) { - return - } - // disable tracking inside all lifecycle hooks - // since they can potentially be called inside effects. - pauseTracking() - // Set currentInstance during hook invocation. - // This assumes the hook does not synchronously trigger other hooks, which - // can only be false when the user does something really funky. - setCurrentInstance(target) - const res = callWithAsyncErrorHandling(hook, target, type, args) - setCurrentInstance(null) - resetTracking() - return res - }) - if (prepend) { - hooks.unshift(wrappedHook) - } else { - hooks.push(wrappedHook) - } - return wrappedHook - } else if (process.env.NODE_ENV !== 'production') { - const apiName = `on${capitalize( - ErrorTypeStrings[type].replace(/ hook$/, '') - )}` - warn( - `${apiName} is called when there is no active component instance to be ` + - `associated with. ` + - `Lifecycle injection APIs can only be used during execution of setup().` + - `` - ) - } -} -const createHook = lifecycle => (hook, target = currentInstance) => - // post-create lifecycle registrations are noops during SSR - !isInSSRComponentSetup && injectHook(lifecycle, hook, target) -const onBeforeMount = createHook('bm' /* BEFORE_MOUNT */) -const onMounted = createHook('m' /* MOUNTED */) -const onBeforeUpdate = createHook('bu' /* BEFORE_UPDATE */) -const onUpdated = createHook('u' /* UPDATED */) -const onBeforeUnmount = createHook('bum' /* BEFORE_UNMOUNT */) -const onUnmounted = createHook('um' /* UNMOUNTED */) -const onRenderTriggered = createHook('rtg' /* RENDER_TRIGGERED */) -const onRenderTracked = createHook('rtc' /* RENDER_TRACKED */) -const onErrorCaptured = (hook, target = currentInstance) => { - injectHook('ec' /* ERROR_CAPTURED */, hook, target) +function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison +isSSR = false) { + const props = {}; + const attrs = {}; + // def(attrs, InternalObjectKey, 1) // fixed by xxxxxx + def(attrs, '__vInternal', 1); + setFullProps(instance, rawProps, props, attrs); + // validation + if ((process.env.NODE_ENV !== 'production')) { + validateProps(props, instance); + } + if (isStateful) { + // stateful + instance.props = isSSR ? props : shallowReactive(props); + } + else { + if (!instance.type.props) { + // functional w/ optional props, props === attrs + instance.props = attrs; + } + else { + // functional w/ declared props + instance.props = props; + } + } + instance.attrs = attrs; +} +function setFullProps(instance, rawProps, props, attrs) { + const [options, needCastKeys] = instance.propsOptions; + if (rawProps) { + for (const key in rawProps) { + const value = rawProps[key]; + // key, ref are reserved and never passed down + if (isReservedProp(key)) { + continue; + } + // prop option names are camelized during normalization, so to support + // kebab -> camel conversion here we need to camelize the key. + let camelKey; + if (options && hasOwn(options, (camelKey = camelize(key)))) { + props[camelKey] = value; + } + else if (!isEmitListener(instance.emitsOptions, key)) { + // Any non-declared (either as a prop or an emitted event) props are put + // into a separate `attrs` object for spreading. Make sure to preserve + // original key casing + attrs[key] = value; + } + } + } + if (needCastKeys) { + const rawCurrentProps = toRaw(props); + for (let i = 0; i < needCastKeys.length; i++) { + const key = needCastKeys[i]; + props[key] = resolvePropValue(options, rawCurrentProps, key, rawCurrentProps[key]); + } + } +} +function resolvePropValue(options, props, key, value) { + const opt = options[key]; + if (opt != null) { + const hasDefault = hasOwn(opt, 'default'); + // default values + if (hasDefault && value === undefined) { + const defaultValue = opt.default; + value = + opt.type !== Function && isFunction(defaultValue) + ? defaultValue(props) + : defaultValue; + } + // boolean casting + if (opt[0 /* shouldCast */]) { + if (!hasOwn(props, key) && !hasDefault) { + value = false; + } + else if (opt[1 /* shouldCastTrue */] && + (value === '' || value === hyphenate(key))) { + value = true; + } + } + } + return value; +} +function normalizePropsOptions(comp, appContext, asMixin = false) { + const appId = appContext.app ? appContext.app._uid : -1; + const cache = comp.__props || (comp.__props = {}); + const cached = cache[appId]; + if (cached) { + return cached; + } + const raw = comp.props; + const normalized = {}; + const needCastKeys = []; + // apply mixin/extends props + let hasExtends = false; + if (__VUE_OPTIONS_API__ && !isFunction(comp)) { + const extendProps = (raw) => { + hasExtends = true; + const [props, keys] = normalizePropsOptions(raw, appContext, true); + extend(normalized, props); + if (keys) + needCastKeys.push(...keys); + }; + if (!asMixin && appContext.mixins.length) { + appContext.mixins.forEach(extendProps); + } + if (comp.extends) { + extendProps(comp.extends); + } + if (comp.mixins) { + comp.mixins.forEach(extendProps); + } + } + if (!raw && !hasExtends) { + return (cache[appId] = EMPTY_ARR); + } + if (isArray(raw)) { + for (let i = 0; i < raw.length; i++) { + if ((process.env.NODE_ENV !== 'production') && !isString(raw[i])) { + warn(`props must be strings when using array syntax.`, raw[i]); + } + const normalizedKey = camelize(raw[i]); + if (validatePropName(normalizedKey)) { + normalized[normalizedKey] = EMPTY_OBJ; + } + } + } + else if (raw) { + if ((process.env.NODE_ENV !== 'production') && !isObject(raw)) { + warn(`invalid props options`, raw); + } + for (const key in raw) { + const normalizedKey = camelize(key); + if (validatePropName(normalizedKey)) { + const opt = raw[key]; + const prop = (normalized[normalizedKey] = + isArray(opt) || isFunction(opt) ? { type: opt } : opt); + if (prop) { + const booleanIndex = getTypeIndex(Boolean, prop.type); + const stringIndex = getTypeIndex(String, prop.type); + prop[0 /* shouldCast */] = booleanIndex > -1; + prop[1 /* shouldCastTrue */] = + stringIndex < 0 || booleanIndex < stringIndex; + // if the prop needs boolean casting or default value + if (booleanIndex > -1 || hasOwn(prop, 'default')) { + needCastKeys.push(normalizedKey); + } + } + } + } + } + return (cache[appId] = [normalized, needCastKeys]); +} +// use function string name to check type constructors +// so that it works across vms / iframes. +function getType(ctor) { + const match = ctor && ctor.toString().match(/^\s*function (\w+)/); + return match ? match[1] : ''; +} +function isSameType(a, b) { + return getType(a) === getType(b); +} +function getTypeIndex(type, expectedTypes) { + if (isArray(expectedTypes)) { + for (let i = 0, len = expectedTypes.length; i < len; i++) { + if (isSameType(expectedTypes[i], type)) { + return i; + } + } + } + else if (isFunction(expectedTypes)) { + return isSameType(expectedTypes, type) ? 0 : -1; + } + return -1; +} +/** + * dev only + */ +function validateProps(props, instance) { + const rawValues = toRaw(props); + const options = instance.propsOptions[0]; + for (const key in options) { + let opt = options[key]; + if (opt == null) + continue; + validateProp(key, rawValues[key], opt, !hasOwn(rawValues, key)); + } +} +/** + * dev only + */ +function validatePropName(key) { + if (key[0] !== '$') { + return true; + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`Invalid prop name: "${key}" is a reserved property.`); + } + return false; +} +/** + * dev only + */ +function validateProp(name, value, prop, isAbsent) { + const { type, required, validator } = prop; + // required! + if (required && isAbsent) { + warn('Missing required prop: "' + name + '"'); + return; + } + // missing but optional + if (value == null && !prop.required) { + return; + } + // type check + if (type != null && type !== true) { + let isValid = false; + const types = isArray(type) ? type : [type]; + const expectedTypes = []; + // value is valid as long as one of the specified types match + for (let i = 0; i < types.length && !isValid; i++) { + const { valid, expectedType } = assertType(value, types[i]); + expectedTypes.push(expectedType || ''); + isValid = valid; + } + if (!isValid) { + warn(getInvalidTypeMessage(name, value, expectedTypes)); + return; + } + } + // custom validator + if (validator && !validator(value)) { + warn('Invalid prop: custom validator check failed for prop "' + name + '".'); + } +} +const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol'); +/** + * dev only + */ +function assertType(value, type) { + let valid; + const expectedType = getType(type); + if (isSimpleType(expectedType)) { + const t = typeof value; + valid = t === expectedType.toLowerCase(); + // for primitive wrapper objects + if (!valid && t === 'object') { + valid = value instanceof type; + } + } + else if (expectedType === 'Object') { + valid = isObject(value); + } + else if (expectedType === 'Array') { + valid = isArray(value); + } + else { + valid = value instanceof type; + } + return { + valid, + expectedType + }; +} +/** + * dev only + */ +function getInvalidTypeMessage(name, value, expectedTypes) { + let message = `Invalid prop: type check failed for prop "${name}".` + + ` Expected ${expectedTypes.map(capitalize).join(', ')}`; + const expectedType = expectedTypes[0]; + const receivedType = toRawType(value); + const expectedValue = styleValue(value, expectedType); + const receivedValue = styleValue(value, receivedType); + // check if we need to specify expected value + if (expectedTypes.length === 1 && + isExplicable(expectedType) && + !isBoolean(expectedType, receivedType)) { + message += ` with value ${expectedValue}`; + } + message += `, got ${receivedType} `; + // check if we need to specify received value + if (isExplicable(receivedType)) { + message += `with value ${receivedValue}.`; + } + return message; +} +/** + * dev only + */ +function styleValue(value, type) { + if (type === 'String') { + return `"${value}"`; + } + else if (type === 'Number') { + return `${Number(value)}`; + } + else { + return `${value}`; + } +} +/** + * dev only + */ +function isExplicable(type) { + const explicitTypes = ['string', 'number', 'boolean']; + return explicitTypes.some(elem => type.toLowerCase() === elem); +} +/** + * dev only + */ +function isBoolean(...args) { + return args.some(elem => elem.toLowerCase() === 'boolean'); } -const isKeepAlive = vnode => vnode.type.__isKeepAlive -function onActivated(hook, target) { - registerKeepAliveHook(hook, 'a' /* ACTIVATED */, target) -} -function onDeactivated(hook, target) { - registerKeepAliveHook(hook, 'da' /* DEACTIVATED */, target) -} -function registerKeepAliveHook(hook, type, target = currentInstance) { - // cache the deactivate branch check wrapper for injected hooks so the same - // hook can be properly deduped by the scheduler. "__wdc" stands for "with - // deactivation check". - const wrappedHook = - hook.__wdc || - (hook.__wdc = () => { - // only fire the hook if the target instance is NOT in a deactivated branch. - let current = target - while (current) { - if (current.isDeactivated) { - return - } - current = current.parent - } - hook() - }) - injectHook(type, wrappedHook, target) - // In addition to registering it on the target instance, we walk up the parent - // chain and register it on all ancestor instances that are keep-alive roots. - // This avoids the need to walk the entire component tree when invoking these - // hooks, and more importantly, avoids the need to track child components in - // arrays. - if (target) { - let current = target.parent - while (current && current.parent) { - if (isKeepAlive(current.parent.vnode)) { - injectToKeepAliveRoot(wrappedHook, type, target, current) - } - current = current.parent - } - } -} -function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { - // injectHook wraps the original for error handling, so make sure to remove - // the wrapped version. - const injected = injectHook(type, hook, keepAliveRoot, true /* prepend */) - onUnmounted(() => { - remove(keepAliveRoot[type], injected) - }, target) +function injectHook(type, hook, target = currentInstance, prepend = false) { + if (target) { + const hooks = target[type] || (target[type] = []); + // cache the error handling wrapper for injected hooks so the same hook + // can be properly deduped by the scheduler. "__weh" stands for "with error + // handling". + const wrappedHook = hook.__weh || + (hook.__weh = (...args) => { + if (target.isUnmounted) { + return; + } + // disable tracking inside all lifecycle hooks + // since they can potentially be called inside effects. + pauseTracking(); + // Set currentInstance during hook invocation. + // This assumes the hook does not synchronously trigger other hooks, which + // can only be false when the user does something really funky. + setCurrentInstance(target); + const res = callWithAsyncErrorHandling(hook, target, type, args); + setCurrentInstance(null); + resetTracking(); + return res; + }); + if (prepend) { + hooks.unshift(wrappedHook); + } + else { + hooks.push(wrappedHook); + } + return wrappedHook; + } + else if ((process.env.NODE_ENV !== 'production')) { + const apiName = `on${capitalize(ErrorTypeStrings[type].replace(/ hook$/, ''))}`; + warn(`${apiName} is called when there is no active component instance to be ` + + `associated with. ` + + `Lifecycle injection APIs can only be used during execution of setup().` + + ( ``)); + } +} +const createHook = (lifecycle) => (hook, target = currentInstance) => +// post-create lifecycle registrations are noops during SSR +!isInSSRComponentSetup && injectHook(lifecycle, hook, target); +const onBeforeMount = createHook("bm" /* BEFORE_MOUNT */); +const onMounted = createHook("m" /* MOUNTED */); +const onBeforeUpdate = createHook("bu" /* BEFORE_UPDATE */); +const onUpdated = createHook("u" /* UPDATED */); +const onBeforeUnmount = createHook("bum" /* BEFORE_UNMOUNT */); +const onUnmounted = createHook("um" /* UNMOUNTED */); +const onRenderTriggered = createHook("rtg" /* RENDER_TRIGGERED */); +const onRenderTracked = createHook("rtc" /* RENDER_TRACKED */); +const onErrorCaptured = (hook, target = currentInstance) => { + injectHook("ec" /* ERROR_CAPTURED */, hook, target); +}; + +const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; +function onActivated(hook, target) { + registerKeepAliveHook(hook, "a" /* ACTIVATED */, target); +} +function onDeactivated(hook, target) { + registerKeepAliveHook(hook, "da" /* DEACTIVATED */, target); +} +function registerKeepAliveHook(hook, type, target = currentInstance) { + // cache the deactivate branch check wrapper for injected hooks so the same + // hook can be properly deduped by the scheduler. "__wdc" stands for "with + // deactivation check". + const wrappedHook = hook.__wdc || + (hook.__wdc = () => { + // only fire the hook if the target instance is NOT in a deactivated branch. + let current = target; + while (current) { + if (current.isDeactivated) { + return; + } + current = current.parent; + } + hook(); + }); + injectHook(type, wrappedHook, target); + // In addition to registering it on the target instance, we walk up the parent + // chain and register it on all ancestor instances that are keep-alive roots. + // This avoids the need to walk the entire component tree when invoking these + // hooks, and more importantly, avoids the need to track child components in + // arrays. + if (target) { + let current = target.parent; + while (current && current.parent) { + if (isKeepAlive(current.parent.vnode)) { + injectToKeepAliveRoot(wrappedHook, type, target, current); + } + current = current.parent; + } + } +} +function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { + // injectHook wraps the original for error handling, so make sure to remove + // the wrapped version. + const injected = injectHook(type, hook, keepAliveRoot, true /* prepend */); + onUnmounted(() => { + remove(keepAliveRoot[type], injected); + }, target); } /** @@ -1854,1882 +1728,1703 @@ return withDirectives(h(comp), [ [foo, this.x], [bar, this.y] ]) -*/ -const isBuiltInDirective = /*#__PURE__*/ makeMap( - 'bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text' -) -function validateDirectiveName(name) { - if (isBuiltInDirective(name)) { - warn('Do not use built-in directive ids as custom directive id: ' + name) - } +*/ +const isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text'); +function validateDirectiveName(name) { + if (isBuiltInDirective(name)) { + warn('Do not use built-in directive ids as custom directive id: ' + name); + } } -function createAppContext() { - return { - app: null, - config: { - isNativeTag: NO, - performance: false, - globalProperties: {}, - optionMergeStrategies: {}, - isCustomElement: NO, - errorHandler: undefined, - warnHandler: undefined - }, - mixins: [], - components: {}, - directives: {}, - provides: Object.create(null) - } -} -let uid$1 = 0 -// fixed by xxxxxx -function createAppAPI() { - return function createApp(rootComponent, rootProps = null) { - if (rootProps != null && !isObject(rootProps)) { - process.env.NODE_ENV !== 'production' && - warn(`root props passed to app.mount() must be an object.`) - rootProps = null - } - const context = createAppContext() - const installedPlugins = new Set() - // fixed by xxxxxx - // let isMounted = false - const app = (context.app = { - _uid: uid$1++, - _component: rootComponent, - _props: rootProps, - _container: null, - _context: context, - version, - get config() { - return context.config - }, - set config(v) { - if (process.env.NODE_ENV !== 'production') { - warn( - `app.config cannot be replaced. Modify individual options instead.` - ) - } - }, - use(plugin, ...options) { - if (installedPlugins.has(plugin)) { - process.env.NODE_ENV !== 'production' && - warn(`Plugin has already been applied to target app.`) - } else if (plugin && isFunction(plugin.install)) { - installedPlugins.add(plugin) - plugin.install(app, ...options) - } else if (isFunction(plugin)) { - installedPlugins.add(plugin) - plugin(app, ...options) - } else if (process.env.NODE_ENV !== 'production') { - warn( - `A plugin must either be a function or an object with an "install" ` + - `function.` - ) - } - return app - }, - mixin(mixin) { - if (__VUE_OPTIONS_API__) { - if (!context.mixins.includes(mixin)) { - context.mixins.push(mixin) - } else if (process.env.NODE_ENV !== 'production') { - warn( - 'Mixin has already been applied to target app' + - (mixin.name ? `: ${mixin.name}` : '') - ) - } - } else if (process.env.NODE_ENV !== 'production') { - warn('Mixins are only available in builds supporting Options API') - } - return app - }, - component(name, component) { - if (process.env.NODE_ENV !== 'production') { - validateComponentName(name, context.config) - } - if (!component) { - return context.components[name] - } - if (process.env.NODE_ENV !== 'production' && context.components[name]) { - warn(`Component "${name}" has already been registered in target app.`) - } - context.components[name] = component - return app - }, - directive(name, directive) { - if (process.env.NODE_ENV !== 'production') { - validateDirectiveName(name) - } - if (!directive) { - return context.directives[name] - } - if (process.env.NODE_ENV !== 'production' && context.directives[name]) { - warn(`Directive "${name}" has already been registered in target app.`) - } - context.directives[name] = directive - return app - }, - // fixed by xxxxxx - mount() {}, - // fixed by xxxxxx - unmount() {}, - provide(key, value) { - if (process.env.NODE_ENV !== 'production' && key in context.provides) { - warn( - `App already provides property with key "${String(key)}". ` + - `It will be overwritten with the new value.` - ) - } - // TypeScript doesn't allow symbols as index type - // https://github.com/Microsoft/TypeScript/issues/24587 - context.provides[key] = value - return app - } - }) - return app - } +function createAppContext() { + return { + app: null, + config: { + isNativeTag: NO, + performance: false, + globalProperties: {}, + optionMergeStrategies: {}, + isCustomElement: NO, + errorHandler: undefined, + warnHandler: undefined + }, + mixins: [], + components: {}, + directives: {}, + provides: Object.create(null) + }; +} +let uid$1 = 0; +// fixed by xxxxxx +function createAppAPI() { + return function createApp(rootComponent, rootProps = null) { + if (rootProps != null && !isObject(rootProps)) { + (process.env.NODE_ENV !== 'production') && warn(`root props passed to app.mount() must be an object.`); + rootProps = null; + } + const context = createAppContext(); + const installedPlugins = new Set(); + // fixed by xxxxxx + // let isMounted = false + const app = (context.app = { + _uid: uid$1++, + _component: rootComponent, + _props: rootProps, + _container: null, + _context: context, + version, + get config() { + return context.config; + }, + set config(v) { + if ((process.env.NODE_ENV !== 'production')) { + warn(`app.config cannot be replaced. Modify individual options instead.`); + } + }, + use(plugin, ...options) { + if (installedPlugins.has(plugin)) { + (process.env.NODE_ENV !== 'production') && warn(`Plugin has already been applied to target app.`); + } + else if (plugin && isFunction(plugin.install)) { + installedPlugins.add(plugin); + plugin.install(app, ...options); + } + else if (isFunction(plugin)) { + installedPlugins.add(plugin); + plugin(app, ...options); + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`A plugin must either be a function or an object with an "install" ` + + `function.`); + } + return app; + }, + mixin(mixin) { + if (__VUE_OPTIONS_API__) { + if (!context.mixins.includes(mixin)) { + context.mixins.push(mixin); + } + else if ((process.env.NODE_ENV !== 'production')) { + warn('Mixin has already been applied to target app' + + (mixin.name ? `: ${mixin.name}` : '')); + } + } + else if ((process.env.NODE_ENV !== 'production')) { + warn('Mixins are only available in builds supporting Options API'); + } + return app; + }, + component(name, component) { + if ((process.env.NODE_ENV !== 'production')) { + validateComponentName(name, context.config); + } + if (!component) { + return context.components[name]; + } + if ((process.env.NODE_ENV !== 'production') && context.components[name]) { + warn(`Component "${name}" has already been registered in target app.`); + } + context.components[name] = component; + return app; + }, + directive(name, directive) { + if ((process.env.NODE_ENV !== 'production')) { + validateDirectiveName(name); + } + if (!directive) { + return context.directives[name]; + } + if ((process.env.NODE_ENV !== 'production') && context.directives[name]) { + warn(`Directive "${name}" has already been registered in target app.`); + } + context.directives[name] = directive; + return app; + }, + // fixed by xxxxxx + mount() { }, + // fixed by xxxxxx + unmount() { }, + provide(key, value) { + if ((process.env.NODE_ENV !== 'production') && key in context.provides) { + warn(`App already provides property with key "${String(key)}". ` + + `It will be overwritten with the new value.`); + } + // TypeScript doesn't allow symbols as index type + // https://github.com/Microsoft/TypeScript/issues/24587 + context.provides[key] = value; + return app; + } + }); + return app; + }; } -const queuePostRenderEffect = queuePostFlushCb +const queuePostRenderEffect = queuePostFlushCb; -// Simple effect. -function watchEffect(effect, options) { - return doWatch(effect, null, options) -} -// initial value for watchers to trigger on undefined initial values -const INITIAL_WATCHER_VALUE = {} -// implementation -function watch(source, cb, options) { - if (process.env.NODE_ENV !== 'production' && !isFunction(cb)) { - warn( - `\`watch(fn, options?)\` signature has been moved to a separate API. ` + - `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` + - `supports \`watch(source, cb, options?) signature.` - ) - } - return doWatch(source, cb, options) -} -function doWatch( - source, - cb, - { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ, - instance = currentInstance -) { - if (process.env.NODE_ENV !== 'production' && !cb) { - if (immediate !== undefined) { - warn( - `watch() "immediate" option is only respected when using the ` + - `watch(source, callback, options?) signature.` - ) - } - if (deep !== undefined) { - warn( - `watch() "deep" option is only respected when using the ` + - `watch(source, callback, options?) signature.` - ) - } - } - const warnInvalidSource = s => { - warn( - `Invalid watch source: `, - s, - `A watch source can only be a getter/effect function, a ref, ` + - `a reactive object, or an array of these types.` - ) - } - let getter - const isRefSource = isRef(source) - if (isRefSource) { - getter = () => source.value - } else if (isReactive(source)) { - getter = () => source - deep = true - } else if (isArray(source)) { - getter = () => - source.map(s => { - if (isRef(s)) { - return s.value - } else if (isReactive(s)) { - return traverse(s) - } else if (isFunction(s)) { - return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */) - } else { - process.env.NODE_ENV !== 'production' && warnInvalidSource(s) - } - }) - } else if (isFunction(source)) { - if (cb) { - // getter with cb - getter = () => - callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */) - } else { - // no cb -> simple effect - getter = () => { - if (instance && instance.isUnmounted) { - return - } - if (cleanup) { - cleanup() - } - return callWithErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [ - onInvalidate - ]) - } - } - } else { - getter = NOOP - process.env.NODE_ENV !== 'production' && warnInvalidSource(source) - } - if (cb && deep) { - const baseGetter = getter - getter = () => traverse(baseGetter()) - } - let cleanup - const onInvalidate = fn => { - cleanup = runner.options.onStop = () => { - callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */) - } - } - let oldValue = isArray(source) ? [] : INITIAL_WATCHER_VALUE - const job = () => { - if (!runner.active) { - return - } - if (cb) { - // watch(source, cb) - const newValue = runner() - if (deep || isRefSource || hasChanged(newValue, oldValue)) { - // cleanup before running cb again - if (cleanup) { - cleanup() - } - callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [ - newValue, - // pass undefined as the old value when it's changed for the first time - oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, - onInvalidate - ]) - oldValue = newValue - } - } else { - // watchEffect - runner() - } - } - // important: mark the job as a watcher callback so that scheduler knows it - // it is allowed to self-trigger (#1727) - job.allowRecurse = !!cb - let scheduler - if (flush === 'sync') { - scheduler = job - } else if (flush === 'pre') { - // ensure it's queued before component updates (which have positive ids) - job.id = -1 - scheduler = () => { - if (!instance || instance.isMounted) { - queuePreFlushCb(job) - } else { - // with 'pre' option, the first call must happen before - // the component is mounted so it is called synchronously. - job() - } - } - } else { - scheduler = () => queuePostRenderEffect(job, instance && instance.suspense) - } - const runner = effect(getter, { - lazy: true, - onTrack, - onTrigger, - scheduler - }) - recordInstanceBoundEffect(runner) - // initial run - if (cb) { - if (immediate) { - job() - } else { - oldValue = runner() - } - } else { - runner() - } - return () => { - stop(runner) - if (instance) { - remove(instance.effects, runner) - } - } -} -// this.$watch -function instanceWatch(source, cb, options) { - const publicThis = this.proxy - const getter = isString(source) - ? () => publicThis[source] - : source.bind(publicThis) - return doWatch(getter, cb.bind(publicThis), options, this) -} -function traverse(value, seen = new Set()) { - if (!isObject(value) || seen.has(value)) { - return value - } - seen.add(value) - if (isRef(value)) { - traverse(value.value, seen) - } else if (isArray(value)) { - for (let i = 0; i < value.length; i++) { - traverse(value[i], seen) - } - } else if (value instanceof Map) { - value.forEach((v, key) => { - // to register mutation dep for existing keys - traverse(value.get(key), seen) - }) - } else if (value instanceof Set) { - value.forEach(v => { - traverse(v, seen) - }) - } else { - for (const key in value) { - traverse(value[key], seen) - } - } - return value +// Simple effect. +function watchEffect(effect, options) { + return doWatch(effect, null, options); +} +// initial value for watchers to trigger on undefined initial values +const INITIAL_WATCHER_VALUE = {}; +// implementation +function watch(source, cb, options) { + if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) { + warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` + + `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` + + `supports \`watch(source, cb, options?) signature.`); + } + return doWatch(source, cb, options); +} +function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ, instance = currentInstance) { + if ((process.env.NODE_ENV !== 'production') && !cb) { + if (immediate !== undefined) { + warn(`watch() "immediate" option is only respected when using the ` + + `watch(source, callback, options?) signature.`); + } + if (deep !== undefined) { + warn(`watch() "deep" option is only respected when using the ` + + `watch(source, callback, options?) signature.`); + } + } + const warnInvalidSource = (s) => { + warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` + + `a reactive object, or an array of these types.`); + }; + let getter; + const isRefSource = isRef(source); + if (isRefSource) { + getter = () => source.value; + } + else if (isReactive(source)) { + getter = () => source; + deep = true; + } + else if (isArray(source)) { + getter = () => source.map(s => { + if (isRef(s)) { + return s.value; + } + else if (isReactive(s)) { + return traverse(s); + } + else if (isFunction(s)) { + return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */); + } + else { + (process.env.NODE_ENV !== 'production') && warnInvalidSource(s); + } + }); + } + else if (isFunction(source)) { + if (cb) { + // getter with cb + getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */); + } + else { + // no cb -> simple effect + getter = () => { + if (instance && instance.isUnmounted) { + return; + } + if (cleanup) { + cleanup(); + } + return callWithErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onInvalidate]); + }; + } + } + else { + getter = NOOP; + (process.env.NODE_ENV !== 'production') && warnInvalidSource(source); + } + if (cb && deep) { + const baseGetter = getter; + getter = () => traverse(baseGetter()); + } + let cleanup; + const onInvalidate = (fn) => { + cleanup = runner.options.onStop = () => { + callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */); + }; + }; + let oldValue = isArray(source) ? [] : INITIAL_WATCHER_VALUE; + const job = () => { + if (!runner.active) { + return; + } + if (cb) { + // watch(source, cb) + const newValue = runner(); + if (deep || isRefSource || hasChanged(newValue, oldValue)) { + // cleanup before running cb again + if (cleanup) { + cleanup(); + } + callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [ + newValue, + // pass undefined as the old value when it's changed for the first time + oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, + onInvalidate + ]); + oldValue = newValue; + } + } + else { + // watchEffect + runner(); + } + }; + // important: mark the job as a watcher callback so that scheduler knows it + // it is allowed to self-trigger (#1727) + job.allowRecurse = !!cb; + let scheduler; + if (flush === 'sync') { + scheduler = job; + } + else if (flush === 'pre') { + // ensure it's queued before component updates (which have positive ids) + job.id = -1; + scheduler = () => { + if (!instance || instance.isMounted) { + queuePreFlushCb(job); + } + else { + // with 'pre' option, the first call must happen before + // the component is mounted so it is called synchronously. + job(); + } + }; + } + else { + scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); + } + const runner = effect(getter, { + lazy: true, + onTrack, + onTrigger, + scheduler + }); + recordInstanceBoundEffect(runner); + // initial run + if (cb) { + if (immediate) { + job(); + } + else { + oldValue = runner(); + } + } + else { + runner(); + } + return () => { + stop(runner); + if (instance) { + remove(instance.effects, runner); + } + }; +} +// this.$watch +function instanceWatch(source, cb, options) { + const publicThis = this.proxy; + const getter = isString(source) + ? () => publicThis[source] + : source.bind(publicThis); + return doWatch(getter, cb.bind(publicThis), options, this); +} +function traverse(value, seen = new Set()) { + if (!isObject(value) || seen.has(value)) { + return value; + } + seen.add(value); + if (isRef(value)) { + traverse(value.value, seen); + } + else if (isArray(value)) { + for (let i = 0; i < value.length; i++) { + traverse(value[i], seen); + } + } + else if (value instanceof Map) { + value.forEach((v, key) => { + // to register mutation dep for existing keys + traverse(value.get(key), seen); + }); + } + else if (value instanceof Set) { + value.forEach(v => { + traverse(v, seen); + }); + } + else { + for (const key in value) { + traverse(value[key], seen); + } + } + return value; } -function provide(key, value) { - if (!currentInstance) { - if (process.env.NODE_ENV !== 'production') { - warn(`provide() can only be used inside setup().`) - } - } else { - let provides = currentInstance.provides - // by default an instance inherits its parent's provides object - // but when it needs to provide values of its own, it creates its - // own provides object using parent provides object as prototype. - // this way in `inject` we can simply look up injections from direct - // parent and let the prototype chain do the work. - const parentProvides = - currentInstance.parent && currentInstance.parent.provides - if (parentProvides === provides) { - provides = currentInstance.provides = Object.create(parentProvides) - } - // TS doesn't allow symbol as index type - provides[key] = value - } -} -function inject(key, defaultValue) { - // fallback to `currentRenderingInstance` so that this can be called in - // a functional component - const instance = currentInstance || currentRenderingInstance - if (instance) { - const provides = instance.provides - if (key in provides) { - // TS doesn't allow symbol as index type - return provides[key] - } else if (arguments.length > 1) { - return defaultValue - } else if (process.env.NODE_ENV !== 'production') { - warn(`injection "${String(key)}" not found.`) - } - } else if (process.env.NODE_ENV !== 'production') { - warn(`inject() can only be used inside setup() or functional components.`) - } +function provide(key, value) { + if (!currentInstance) { + if ((process.env.NODE_ENV !== 'production')) { + warn(`provide() can only be used inside setup().`); + } + } + else { + let provides = currentInstance.provides; + // by default an instance inherits its parent's provides object + // but when it needs to provide values of its own, it creates its + // own provides object using parent provides object as prototype. + // this way in `inject` we can simply look up injections from direct + // parent and let the prototype chain do the work. + const parentProvides = currentInstance.parent && currentInstance.parent.provides; + if (parentProvides === provides) { + provides = currentInstance.provides = Object.create(parentProvides); + } + // TS doesn't allow symbol as index type + provides[key] = value; + } +} +function inject(key, defaultValue) { + // fallback to `currentRenderingInstance` so that this can be called in + // a functional component + const instance = currentInstance || currentRenderingInstance; + if (instance) { + const provides = instance.provides; + if (key in provides) { + // TS doesn't allow symbol as index type + return provides[key]; + } + else if (arguments.length > 1) { + return defaultValue; + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`injection "${String(key)}" not found.`); + } + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`inject() can only be used inside setup() or functional components.`); + } } -function createDuplicateChecker() { - const cache = Object.create(null) - return (type, key) => { - if (cache[key]) { - warn(`${type} property "${key}" is already defined in ${cache[key]}.`) - } else { - cache[key] = type - } - } -} -let isInBeforeCreate = false -function applyOptions( - instance, - options, - deferredData = [], - deferredWatch = [], - asMixin = false -) { - const { - // composition - mixins, - extends: extendsOptions, - // state - data: dataOptions, - computed: computedOptions, - methods, - watch: watchOptions, - provide: provideOptions, - inject: injectOptions, - // assets - components, - directives, - // lifecycle - beforeMount, - mounted, - beforeUpdate, - updated, - activated, - deactivated, - beforeUnmount, - unmounted, - render, - renderTracked, - renderTriggered, - errorCaptured - } = options - const publicThis = instance.proxy - const ctx = instance.ctx - const globalMixins = instance.appContext.mixins - if (asMixin && render && instance.render === NOOP) { - instance.render = render - } - // applyOptions is called non-as-mixin once per instance - if (!asMixin) { - isInBeforeCreate = true - callSyncHook('beforeCreate', options, publicThis, globalMixins) - isInBeforeCreate = false - // global mixins are applied first - applyMixins(instance, globalMixins, deferredData, deferredWatch) - } - // extending a base component... - if (extendsOptions) { - applyOptions(instance, extendsOptions, deferredData, deferredWatch, true) - } - // local mixins - if (mixins) { - applyMixins(instance, mixins, deferredData, deferredWatch) - } - const checkDuplicateProperties = - process.env.NODE_ENV !== 'production' ? createDuplicateChecker() : null - if (process.env.NODE_ENV !== 'production') { - const [propsOptions] = instance.propsOptions - if (propsOptions) { - for (const key in propsOptions) { - checkDuplicateProperties('Props' /* PROPS */, key) - } - } - } - // options initialization order (to be consistent with Vue 2): - // - props (already done outside of this function) - // - inject - // - methods - // - data (deferred since it relies on `this` access) - // - computed - // - watch (deferred since it relies on `this` access) - // fixed by xxxxxx - if (!__VUE_CREATED_DEFERRED__ && injectOptions) { - if (isArray(injectOptions)) { - for (let i = 0; i < injectOptions.length; i++) { - const key = injectOptions[i] - ctx[key] = inject(key) - if (process.env.NODE_ENV !== 'production') { - checkDuplicateProperties('Inject' /* INJECT */, key) - } - } - } else { - for (const key in injectOptions) { - const opt = injectOptions[key] - if (isObject(opt)) { - ctx[key] = inject(opt.from, opt.default) - } else { - ctx[key] = inject(opt) - } - if (process.env.NODE_ENV !== 'production') { - checkDuplicateProperties('Inject' /* INJECT */, key) - } - } - } - } - if (methods) { - for (const key in methods) { - const methodHandler = methods[key] - if (isFunction(methodHandler)) { - ctx[key] = methodHandler.bind(publicThis) - if (process.env.NODE_ENV !== 'production') { - checkDuplicateProperties('Methods' /* METHODS */, key) - } - } else if (process.env.NODE_ENV !== 'production') { - warn( - `Method "${key}" has type "${typeof methodHandler}" in the component definition. ` + - `Did you reference the function correctly?` - ) - } - } - } - if (!asMixin) { - if (deferredData.length) { - deferredData.forEach(dataFn => resolveData(instance, dataFn, publicThis)) - } - if (dataOptions) { - resolveData(instance, dataOptions, publicThis) - } - if (process.env.NODE_ENV !== 'production') { - const rawData = toRaw(instance.data) - for (const key in rawData) { - checkDuplicateProperties('Data' /* DATA */, key) - // expose data on ctx during dev - if (key[0] !== '$' && key[0] !== '_') { - Object.defineProperty(ctx, key, { - configurable: true, - enumerable: true, - get: () => rawData[key], - set: NOOP - }) - } - } - } - } else if (dataOptions) { - deferredData.push(dataOptions) - } - if (computedOptions) { - for (const key in computedOptions) { - const opt = computedOptions[key] - const get = isFunction(opt) - ? opt.bind(publicThis, publicThis) - : isFunction(opt.get) - ? opt.get.bind(publicThis, publicThis) - : NOOP - if (process.env.NODE_ENV !== 'production' && get === NOOP) { - warn(`Computed property "${key}" has no getter.`) - } - const set = - !isFunction(opt) && isFunction(opt.set) - ? opt.set.bind(publicThis) - : process.env.NODE_ENV !== 'production' - ? () => { - warn( - `Write operation failed: computed property "${key}" is readonly.` - ) - } - : NOOP - const c = computed$1({ - get, - set - }) - Object.defineProperty(ctx, key, { - enumerable: true, - configurable: true, - get: () => c.value, - set: v => (c.value = v) - }) - if (process.env.NODE_ENV !== 'production') { - checkDuplicateProperties('Computed' /* COMPUTED */, key) - } - } - } - if (watchOptions) { - deferredWatch.push(watchOptions) - } - if (!asMixin && deferredWatch.length) { - deferredWatch.forEach(watchOptions => { - for (const key in watchOptions) { - createWatcher(watchOptions[key], ctx, publicThis, key) - } - }) - } - // fixed by xxxxxx - if (!__VUE_CREATED_DEFERRED__ && provideOptions) { - const provides = isFunction(provideOptions) - ? provideOptions.call(publicThis) - : provideOptions - for (const key in provides) { - provide(key, provides[key]) - } - } - // asset options. - // To reduce memory usage, only components with mixins or extends will have - // resolved asset registry attached to instance. - if (asMixin) { - if (components) { - extend( - instance.components || - (instance.components = extend({}, instance.type.components)), - components - ) - } - if (directives) { - extend( - instance.directives || - (instance.directives = extend({}, instance.type.directives)), - directives - ) - } - } - // fixed by xxxxxx - // lifecycle options - if (__VUE_CREATED_DEFERRED__) { - ctx.$callSyncHook = function(name) { - return callSyncHook(name, options, publicThis, globalMixins) - } - } else if (!asMixin) { - callSyncHook('created', options, publicThis, globalMixins) - } - if (beforeMount) { - onBeforeMount(beforeMount.bind(publicThis)) - } - if (mounted) { - onMounted(mounted.bind(publicThis)) - } - if (beforeUpdate) { - onBeforeUpdate(beforeUpdate.bind(publicThis)) - } - if (updated) { - onUpdated(updated.bind(publicThis)) - } - if (activated) { - onActivated(activated.bind(publicThis)) - } - if (deactivated) { - onDeactivated(deactivated.bind(publicThis)) - } - if (errorCaptured) { - onErrorCaptured(errorCaptured.bind(publicThis)) - } - if (renderTracked) { - onRenderTracked(renderTracked.bind(publicThis)) - } - if (renderTriggered) { - onRenderTriggered(renderTriggered.bind(publicThis)) - } - if (beforeUnmount) { - onBeforeUnmount(beforeUnmount.bind(publicThis)) - } - if (unmounted) { - onUnmounted(unmounted.bind(publicThis)) - } - // fixed by xxxxxx - if (instance.ctx.$onApplyOptions) { - instance.ctx.$onApplyOptions(options, instance, publicThis) - } -} -function callSyncHook(name, options, ctx, globalMixins) { - callHookFromMixins(name, globalMixins, ctx) - const { extends: base, mixins } = options - if (base) { - callHookFromExtends(name, base, ctx) - } - if (mixins) { - callHookFromMixins(name, mixins, ctx) - } - const selfHook = options[name] - if (selfHook) { - selfHook.call(ctx) - } -} -function callHookFromExtends(name, base, ctx) { - if (base.extends) { - callHookFromExtends(name, base.extends, ctx) - } - const baseHook = base[name] - if (baseHook) { - baseHook.call(ctx) - } -} -function callHookFromMixins(name, mixins, ctx) { - for (let i = 0; i < mixins.length; i++) { - const chainedMixins = mixins[i].mixins - if (chainedMixins) { - callHookFromMixins(name, chainedMixins, ctx) - } - const fn = mixins[i][name] - if (fn) { - fn.call(ctx) - } - } -} -function applyMixins(instance, mixins, deferredData, deferredWatch) { - for (let i = 0; i < mixins.length; i++) { - applyOptions(instance, mixins[i], deferredData, deferredWatch, true) - } -} -function resolveData(instance, dataFn, publicThis) { - if (process.env.NODE_ENV !== 'production' && !isFunction(dataFn)) { - warn( - `The data option must be a function. ` + - `Plain object usage is no longer supported.` - ) - } - const data = dataFn.call(publicThis, publicThis) - if (process.env.NODE_ENV !== 'production' && isPromise(data)) { - warn( - `data() returned a Promise - note data() cannot be async; If you ` + - `intend to perform data fetching before component renders, use ` + - `async setup() + <Suspense>.` - ) - } - if (!isObject(data)) { - process.env.NODE_ENV !== 'production' && - warn(`data() should return an object.`) - } else if (instance.data === EMPTY_OBJ) { - instance.data = reactive(data) - } else { - // existing data: this is a mixin or extends. - extend(instance.data, data) - } -} -function createWatcher(raw, ctx, publicThis, key) { - const getter = () => publicThis[key] - if (isString(raw)) { - const handler = ctx[raw] - if (isFunction(handler)) { - watch(getter, handler) - } else if (process.env.NODE_ENV !== 'production') { - warn(`Invalid watch handler specified by key "${raw}"`, handler) - } - } else if (isFunction(raw)) { - watch(getter, raw.bind(publicThis)) - } else if (isObject(raw)) { - if (isArray(raw)) { - raw.forEach(r => createWatcher(r, ctx, publicThis, key)) - } else { - const handler = isFunction(raw.handler) - ? raw.handler.bind(publicThis) - : ctx[raw.handler] - if (isFunction(handler)) { - watch(getter, handler, raw) - } else if (process.env.NODE_ENV !== 'production') { - warn(`Invalid watch handler specified by key "${raw.handler}"`, handler) - } - } - } else if (process.env.NODE_ENV !== 'production') { - warn(`Invalid watch option: "${key}"`) - } -} -function resolveMergedOptions(instance) { - const raw = instance.type - const { __merged, mixins, extends: extendsOptions } = raw - if (__merged) return __merged - const globalMixins = instance.appContext.mixins - if (!globalMixins.length && !mixins && !extendsOptions) return raw - const options = {} - globalMixins.forEach(m => mergeOptions(options, m, instance)) - mergeOptions(options, raw, instance) - return (raw.__merged = options) -} -function mergeOptions(to, from, instance) { - const strats = instance.appContext.config.optionMergeStrategies - const { mixins, extends: extendsOptions } = from - extendsOptions && mergeOptions(to, extendsOptions, instance) - mixins && mixins.forEach(m => mergeOptions(to, m, instance)) - for (const key in from) { - if (strats && hasOwn(strats, key)) { - to[key] = strats[key](to[key], from[key], instance.proxy, key) - } else { - to[key] = from[key] - } - } +function createDuplicateChecker() { + const cache = Object.create(null); + return (type, key) => { + if (cache[key]) { + warn(`${type} property "${key}" is already defined in ${cache[key]}.`); + } + else { + cache[key] = type; + } + }; +} +let isInBeforeCreate = false; +function applyOptions(instance, options, deferredData = [], deferredWatch = [], asMixin = false) { + const { + // composition + mixins, extends: extendsOptions, + // state + data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, + // assets + components, directives, + // lifecycle + beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeUnmount, unmounted, render, renderTracked, renderTriggered, errorCaptured } = options; + const publicThis = instance.proxy; + const ctx = instance.ctx; + const globalMixins = instance.appContext.mixins; + if (asMixin && render && instance.render === NOOP) { + instance.render = render; + } + // applyOptions is called non-as-mixin once per instance + if (!asMixin) { + isInBeforeCreate = true; + callSyncHook('beforeCreate', options, publicThis, globalMixins); + isInBeforeCreate = false; + // global mixins are applied first + applyMixins(instance, globalMixins, deferredData, deferredWatch); + } + // extending a base component... + if (extendsOptions) { + applyOptions(instance, extendsOptions, deferredData, deferredWatch, true); + } + // local mixins + if (mixins) { + applyMixins(instance, mixins, deferredData, deferredWatch); + } + const checkDuplicateProperties = (process.env.NODE_ENV !== 'production') ? createDuplicateChecker() : null; + if ((process.env.NODE_ENV !== 'production')) { + const [propsOptions] = instance.propsOptions; + if (propsOptions) { + for (const key in propsOptions) { + checkDuplicateProperties("Props" /* PROPS */, key); + } + } + } + // options initialization order (to be consistent with Vue 2): + // - props (already done outside of this function) + // - inject + // - methods + // - data (deferred since it relies on `this` access) + // - computed + // - watch (deferred since it relies on `this` access) + // fixed by xxxxxx + if (!__VUE_CREATED_DEFERRED__ && injectOptions) { + if (isArray(injectOptions)) { + for (let i = 0; i < injectOptions.length; i++) { + const key = injectOptions[i]; + ctx[key] = inject(key); + if ((process.env.NODE_ENV !== 'production')) { + checkDuplicateProperties("Inject" /* INJECT */, key); + } + } + } + else { + for (const key in injectOptions) { + const opt = injectOptions[key]; + if (isObject(opt)) { + ctx[key] = inject(opt.from, opt.default); + } + else { + ctx[key] = inject(opt); + } + if ((process.env.NODE_ENV !== 'production')) { + checkDuplicateProperties("Inject" /* INJECT */, key); + } + } + } + } + if (methods) { + for (const key in methods) { + const methodHandler = methods[key]; + if (isFunction(methodHandler)) { + ctx[key] = methodHandler.bind(publicThis); + if ((process.env.NODE_ENV !== 'production')) { + checkDuplicateProperties("Methods" /* METHODS */, key); + } + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`Method "${key}" has type "${typeof methodHandler}" in the component definition. ` + + `Did you reference the function correctly?`); + } + } + } + if (!asMixin) { + if (deferredData.length) { + deferredData.forEach(dataFn => resolveData(instance, dataFn, publicThis)); + } + if (dataOptions) { + resolveData(instance, dataOptions, publicThis); + } + if ((process.env.NODE_ENV !== 'production')) { + const rawData = toRaw(instance.data); + for (const key in rawData) { + checkDuplicateProperties("Data" /* DATA */, key); + // expose data on ctx during dev + if (key[0] !== '$' && key[0] !== '_') { + Object.defineProperty(ctx, key, { + configurable: true, + enumerable: true, + get: () => rawData[key], + set: NOOP + }); + } + } + } + } + else if (dataOptions) { + deferredData.push(dataOptions); + } + if (computedOptions) { + for (const key in computedOptions) { + const opt = computedOptions[key]; + const get = isFunction(opt) + ? opt.bind(publicThis, publicThis) + : isFunction(opt.get) + ? opt.get.bind(publicThis, publicThis) + : NOOP; + if ((process.env.NODE_ENV !== 'production') && get === NOOP) { + warn(`Computed property "${key}" has no getter.`); + } + const set = !isFunction(opt) && isFunction(opt.set) + ? opt.set.bind(publicThis) + : (process.env.NODE_ENV !== 'production') + ? () => { + warn(`Write operation failed: computed property "${key}" is readonly.`); + } + : NOOP; + const c = computed$1({ + get, + set + }); + Object.defineProperty(ctx, key, { + enumerable: true, + configurable: true, + get: () => c.value, + set: v => (c.value = v) + }); + if ((process.env.NODE_ENV !== 'production')) { + checkDuplicateProperties("Computed" /* COMPUTED */, key); + } + } + } + if (watchOptions) { + deferredWatch.push(watchOptions); + } + if (!asMixin && deferredWatch.length) { + deferredWatch.forEach(watchOptions => { + for (const key in watchOptions) { + createWatcher(watchOptions[key], ctx, publicThis, key); + } + }); + } + // fixed by xxxxxx + if (!__VUE_CREATED_DEFERRED__ && provideOptions) { + const provides = isFunction(provideOptions) + ? provideOptions.call(publicThis) + : provideOptions; + for (const key in provides) { + provide(key, provides[key]); + } + } + // asset options. + // To reduce memory usage, only components with mixins or extends will have + // resolved asset registry attached to instance. + if (asMixin) { + if (components) { + extend(instance.components || + (instance.components = extend({}, instance.type.components)), components); + } + if (directives) { + extend(instance.directives || + (instance.directives = extend({}, instance.type.directives)), directives); + } + } + // fixed by xxxxxx + // lifecycle options + if (__VUE_CREATED_DEFERRED__) { + ctx.$callSyncHook = function (name) { + return callSyncHook(name, options, publicThis, globalMixins); + }; + } + else if (!asMixin) { + callSyncHook('created', options, publicThis, globalMixins); + } + if (beforeMount) { + onBeforeMount(beforeMount.bind(publicThis)); + } + if (mounted) { + onMounted(mounted.bind(publicThis)); + } + if (beforeUpdate) { + onBeforeUpdate(beforeUpdate.bind(publicThis)); + } + if (updated) { + onUpdated(updated.bind(publicThis)); + } + if (activated) { + onActivated(activated.bind(publicThis)); + } + if (deactivated) { + onDeactivated(deactivated.bind(publicThis)); + } + if (errorCaptured) { + onErrorCaptured(errorCaptured.bind(publicThis)); + } + if (renderTracked) { + onRenderTracked(renderTracked.bind(publicThis)); + } + if (renderTriggered) { + onRenderTriggered(renderTriggered.bind(publicThis)); + } + if (beforeUnmount) { + onBeforeUnmount(beforeUnmount.bind(publicThis)); + } + if (unmounted) { + onUnmounted(unmounted.bind(publicThis)); + } + // fixed by xxxxxx + if (instance.ctx.$onApplyOptions) { + instance.ctx.$onApplyOptions(options, instance, publicThis); + } +} +function callSyncHook(name, options, ctx, globalMixins) { + callHookFromMixins(name, globalMixins, ctx); + const { extends: base, mixins } = options; + if (base) { + callHookFromExtends(name, base, ctx); + } + if (mixins) { + callHookFromMixins(name, mixins, ctx); + } + const selfHook = options[name]; + if (selfHook) { + selfHook.call(ctx); + } +} +function callHookFromExtends(name, base, ctx) { + if (base.extends) { + callHookFromExtends(name, base.extends, ctx); + } + const baseHook = base[name]; + if (baseHook) { + baseHook.call(ctx); + } +} +function callHookFromMixins(name, mixins, ctx) { + for (let i = 0; i < mixins.length; i++) { + const chainedMixins = mixins[i].mixins; + if (chainedMixins) { + callHookFromMixins(name, chainedMixins, ctx); + } + const fn = mixins[i][name]; + if (fn) { + fn.call(ctx); + } + } +} +function applyMixins(instance, mixins, deferredData, deferredWatch) { + for (let i = 0; i < mixins.length; i++) { + applyOptions(instance, mixins[i], deferredData, deferredWatch, true); + } +} +function resolveData(instance, dataFn, publicThis) { + if ((process.env.NODE_ENV !== 'production') && !isFunction(dataFn)) { + warn(`The data option must be a function. ` + + `Plain object usage is no longer supported.`); + } + const data = dataFn.call(publicThis, publicThis); + if ((process.env.NODE_ENV !== 'production') && isPromise(data)) { + warn(`data() returned a Promise - note data() cannot be async; If you ` + + `intend to perform data fetching before component renders, use ` + + `async setup() + <Suspense>.`); + } + if (!isObject(data)) { + (process.env.NODE_ENV !== 'production') && warn(`data() should return an object.`); + } + else if (instance.data === EMPTY_OBJ) { + instance.data = reactive(data); + } + else { + // existing data: this is a mixin or extends. + extend(instance.data, data); + } +} +function createWatcher(raw, ctx, publicThis, key) { + const getter = () => publicThis[key]; + if (isString(raw)) { + const handler = ctx[raw]; + if (isFunction(handler)) { + watch(getter, handler); + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`Invalid watch handler specified by key "${raw}"`, handler); + } + } + else if (isFunction(raw)) { + watch(getter, raw.bind(publicThis)); + } + else if (isObject(raw)) { + if (isArray(raw)) { + raw.forEach(r => createWatcher(r, ctx, publicThis, key)); + } + else { + const handler = isFunction(raw.handler) + ? raw.handler.bind(publicThis) + : ctx[raw.handler]; + if (isFunction(handler)) { + watch(getter, handler, raw); + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`Invalid watch handler specified by key "${raw.handler}"`, handler); + } + } + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`Invalid watch option: "${key}"`); + } +} +function resolveMergedOptions(instance) { + const raw = instance.type; + const { __merged, mixins, extends: extendsOptions } = raw; + if (__merged) + return __merged; + const globalMixins = instance.appContext.mixins; + if (!globalMixins.length && !mixins && !extendsOptions) + return raw; + const options = {}; + globalMixins.forEach(m => mergeOptions(options, m, instance)); + mergeOptions(options, raw, instance); + return (raw.__merged = options); +} +function mergeOptions(to, from, instance) { + const strats = instance.appContext.config.optionMergeStrategies; + const { mixins, extends: extendsOptions } = from; + extendsOptions && mergeOptions(to, extendsOptions, instance); + mixins && + mixins.forEach((m) => mergeOptions(to, m, instance)); + for (const key in from) { + if (strats && hasOwn(strats, key)) { + to[key] = strats[key](to[key], from[key], instance.proxy, key); + } + else { + to[key] = from[key]; + } + } } -const publicPropertiesMap = extend(Object.create(null), { - $: i => i, - $el: i => i.vnode.el, - $data: i => i.data, - $props: i => - process.env.NODE_ENV !== 'production' ? shallowReadonly(i.props) : i.props, - $attrs: i => - process.env.NODE_ENV !== 'production' ? shallowReadonly(i.attrs) : i.attrs, - $slots: i => - process.env.NODE_ENV !== 'production' ? shallowReadonly(i.slots) : i.slots, - $refs: i => - process.env.NODE_ENV !== 'production' ? shallowReadonly(i.refs) : i.refs, - $parent: i => i.parent && i.parent.proxy, - $root: i => i.root && i.root.proxy, - $emit: i => i.emit, - $options: i => (__VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type), - $forceUpdate: i => () => queueJob(i.update), - // $nextTick: () => nextTick, // fixed by xxxxxx - $watch: i => (__VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP) -}) -const PublicInstanceProxyHandlers = { - get({ _: instance }, key) { - const { - ctx, - setupState, - data, - props, - accessCache, - type, - appContext - } = instance - // let @vue/reactivity know it should never observe Vue public instances. - if (key === '__v_skip' /* SKIP */) { - return true - } - // data / props / ctx - // This getter gets called for every property access on the render context - // during render and is a major hotspot. The most expensive part of this - // is the multiple hasOwn() calls. It's much faster to do a simple property - // access on a plain object, so we use an accessCache object (with null - // prototype) to memoize what access type a key corresponds to. - let normalizedProps - if (key[0] !== '$') { - const n = accessCache[key] - if (n !== undefined) { - switch (n) { - case 0 /* SETUP */: - return setupState[key] - case 1 /* DATA */: - return data[key] - case 3 /* CONTEXT */: - return ctx[key] - case 2 /* PROPS */: - return props[key] - // default: just fallthrough - } - } else if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) { - accessCache[key] = 0 /* SETUP */ - return setupState[key] - } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { - accessCache[key] = 1 /* DATA */ - return data[key] - } else if ( - // only cache other properties when instance has declared (thus stable) - // props - (normalizedProps = instance.propsOptions[0]) && - hasOwn(normalizedProps, key) - ) { - accessCache[key] = 2 /* PROPS */ - return props[key] - } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { - accessCache[key] = 3 /* CONTEXT */ - return ctx[key] - } else if (!__VUE_OPTIONS_API__ || !isInBeforeCreate) { - accessCache[key] = 4 /* OTHER */ - } - } - const publicGetter = publicPropertiesMap[key] - let cssModule, globalProperties - // public $xxx properties - if (publicGetter) { - if (key === '$attrs') { - track(instance, 'get' /* GET */, key) - process.env.NODE_ENV !== 'production' && markAttrsAccessed() - } - return publicGetter(instance) - } else if ( - // css module (injected by vue-loader) - (cssModule = type.__cssModules) && - (cssModule = cssModule[key]) - ) { - return cssModule - } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { - // user may set custom properties to `this` that start with `$` - accessCache[key] = 3 /* CONTEXT */ - return ctx[key] - } else if ( - // global properties - ((globalProperties = appContext.config.globalProperties), - hasOwn(globalProperties, key)) - ) { - return globalProperties[key] - } else if ( - process.env.NODE_ENV !== 'production' && - currentRenderingInstance && - (!isString(key) || - // #1091 avoid internal isRef/isVNode checks on component instance leading - // to infinite warning loop - key.indexOf('__v') !== 0) - ) { - if ( - data !== EMPTY_OBJ && - (key[0] === '$' || key[0] === '_') && - hasOwn(data, key) - ) { - warn( - `Property ${JSON.stringify( - key - )} must be accessed via $data because it starts with a reserved ` + - `character ("$" or "_") and is not proxied on the render context.` - ) - } else { - warn( - `Property ${JSON.stringify(key)} was accessed during render ` + - `but is not defined on instance.` - ) - } - } - }, - set({ _: instance }, key, value) { - const { data, setupState, ctx } = instance - if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) { - setupState[key] = value - } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { - data[key] = value - } else if (key in instance.props) { - process.env.NODE_ENV !== 'production' && - warn( - `Attempting to mutate prop "${key}". Props are readonly.`, - instance - ) - return false - } - if (key[0] === '$' && key.slice(1) in instance) { - process.env.NODE_ENV !== 'production' && - warn( - `Attempting to mutate public property "${key}". ` + - `Properties starting with $ are reserved and readonly.`, - instance - ) - return false - } else { - if ( - process.env.NODE_ENV !== 'production' && - key in instance.appContext.config.globalProperties - ) { - Object.defineProperty(ctx, key, { - enumerable: true, - configurable: true, - value - }) - } else { - ctx[key] = value - } - } - return true - }, - has( - { - _: { data, setupState, accessCache, ctx, appContext, propsOptions } - }, - key - ) { - let normalizedProps - return ( - accessCache[key] !== undefined || - (data !== EMPTY_OBJ && hasOwn(data, key)) || - (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) || - ((normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key)) || - hasOwn(ctx, key) || - hasOwn(publicPropertiesMap, key) || - hasOwn(appContext.config.globalProperties, key) - ) - } -} -if (process.env.NODE_ENV !== 'production' && !false) { - PublicInstanceProxyHandlers.ownKeys = target => { - warn( - `Avoid app logic that relies on enumerating keys on a component instance. ` + - `The keys will be empty in production mode to avoid performance overhead.` - ) - return Reflect.ownKeys(target) - } -} -const RuntimeCompiledPublicInstanceProxyHandlers = extend( - {}, - PublicInstanceProxyHandlers, - { - get(target, key) { - // fast path for unscopables when using `with` block - if (key === Symbol.unscopables) { - return - } - return PublicInstanceProxyHandlers.get(target, key, target) - }, - has(_, key) { - const has = key[0] !== '_' && !isGloballyWhitelisted(key) - if ( - process.env.NODE_ENV !== 'production' && - !has && - PublicInstanceProxyHandlers.has(_, key) - ) { - warn( - `Property ${JSON.stringify( - key - )} should not start with _ which is a reserved prefix for Vue internals.` - ) - } - return has - } - } -) -// In dev mode, the proxy target exposes the same properties as seen on `this` -// for easier console inspection. In prod mode it will be an empty object so -// these properties definitions can be skipped. -function createRenderContext(instance) { - const target = {} - // expose internal instance for proxy handlers - Object.defineProperty(target, `_`, { - configurable: true, - enumerable: false, - get: () => instance - }) - // expose public properties - Object.keys(publicPropertiesMap).forEach(key => { - Object.defineProperty(target, key, { - configurable: true, - enumerable: false, - get: () => publicPropertiesMap[key](instance), - // intercepted by the proxy so no need for implementation, - // but needed to prevent set errors - set: NOOP - }) - }) - // expose global properties - const { globalProperties } = instance.appContext.config - Object.keys(globalProperties).forEach(key => { - Object.defineProperty(target, key, { - configurable: true, - enumerable: false, - get: () => globalProperties[key], - set: NOOP - }) - }) - return target -} -// dev only -function exposePropsOnRenderContext(instance) { - const { - ctx, - propsOptions: [propsOptions] - } = instance - if (propsOptions) { - Object.keys(propsOptions).forEach(key => { - Object.defineProperty(ctx, key, { - enumerable: true, - configurable: true, - get: () => instance.props[key], - set: NOOP - }) - }) - } -} -// dev only -function exposeSetupStateOnRenderContext(instance) { - const { ctx, setupState } = instance - Object.keys(toRaw(setupState)).forEach(key => { - if (key[0] === '$' || key[0] === '_') { - warn( - `setup() return property ${JSON.stringify( - key - )} should not start with "$" or "_" ` + - `which are reserved prefixes for Vue internals.` - ) - return - } - Object.defineProperty(ctx, key, { - enumerable: true, - configurable: true, - get: () => setupState[key], - set: NOOP - }) - }) +const publicPropertiesMap = extend(Object.create(null), { + $: i => i, + $el: i => i.vnode.el, + $data: i => i.data, + $props: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.props) : i.props), + $attrs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.attrs) : i.attrs), + $slots: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.slots) : i.slots), + $refs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.refs) : i.refs), + $parent: i => i.parent && i.parent.proxy, + $root: i => i.root && i.root.proxy, + $emit: i => i.emit, + $options: i => (__VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type), + $forceUpdate: i => () => queueJob(i.update), + // $nextTick: () => nextTick, // fixed by xxxxxx + $watch: i => (__VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP) +}); +const PublicInstanceProxyHandlers = { + get({ _: instance }, key) { + const { ctx, setupState, data, props, accessCache, type, appContext } = instance; + // let @vue/reactivity know it should never observe Vue public instances. + if (key === "__v_skip" /* SKIP */) { + return true; + } + // data / props / ctx + // This getter gets called for every property access on the render context + // during render and is a major hotspot. The most expensive part of this + // is the multiple hasOwn() calls. It's much faster to do a simple property + // access on a plain object, so we use an accessCache object (with null + // prototype) to memoize what access type a key corresponds to. + let normalizedProps; + if (key[0] !== '$') { + const n = accessCache[key]; + if (n !== undefined) { + switch (n) { + case 0 /* SETUP */: + return setupState[key]; + case 1 /* DATA */: + return data[key]; + case 3 /* CONTEXT */: + return ctx[key]; + case 2 /* PROPS */: + return props[key]; + // default: just fallthrough + } + } + else if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) { + accessCache[key] = 0 /* SETUP */; + return setupState[key]; + } + else if (data !== EMPTY_OBJ && hasOwn(data, key)) { + accessCache[key] = 1 /* DATA */; + return data[key]; + } + else if ( + // only cache other properties when instance has declared (thus stable) + // props + (normalizedProps = instance.propsOptions[0]) && + hasOwn(normalizedProps, key)) { + accessCache[key] = 2 /* PROPS */; + return props[key]; + } + else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { + accessCache[key] = 3 /* CONTEXT */; + return ctx[key]; + } + else if (!__VUE_OPTIONS_API__ || !isInBeforeCreate) { + accessCache[key] = 4 /* OTHER */; + } + } + const publicGetter = publicPropertiesMap[key]; + let cssModule, globalProperties; + // public $xxx properties + if (publicGetter) { + if (key === '$attrs') { + track(instance, "get" /* GET */, key); + (process.env.NODE_ENV !== 'production') && markAttrsAccessed(); + } + return publicGetter(instance); + } + else if ( + // css module (injected by vue-loader) + (cssModule = type.__cssModules) && + (cssModule = cssModule[key])) { + return cssModule; + } + else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { + // user may set custom properties to `this` that start with `$` + accessCache[key] = 3 /* CONTEXT */; + return ctx[key]; + } + else if ( + // global properties + ((globalProperties = appContext.config.globalProperties), + hasOwn(globalProperties, key))) { + return globalProperties[key]; + } + else if ((process.env.NODE_ENV !== 'production') && + currentRenderingInstance && + (!isString(key) || + // #1091 avoid internal isRef/isVNode checks on component instance leading + // to infinite warning loop + key.indexOf('__v') !== 0)) { + if (data !== EMPTY_OBJ && + (key[0] === '$' || key[0] === '_') && + hasOwn(data, key)) { + warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` + + `character ("$" or "_") and is not proxied on the render context.`); + } + else { + warn(`Property ${JSON.stringify(key)} was accessed during render ` + + `but is not defined on instance.`); + } + } + }, + set({ _: instance }, key, value) { + const { data, setupState, ctx } = instance; + if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) { + setupState[key] = value; + } + else if (data !== EMPTY_OBJ && hasOwn(data, key)) { + data[key] = value; + } + else if (key in instance.props) { + (process.env.NODE_ENV !== 'production') && + warn(`Attempting to mutate prop "${key}". Props are readonly.`, instance); + return false; + } + if (key[0] === '$' && key.slice(1) in instance) { + (process.env.NODE_ENV !== 'production') && + warn(`Attempting to mutate public property "${key}". ` + + `Properties starting with $ are reserved and readonly.`, instance); + return false; + } + else { + if ((process.env.NODE_ENV !== 'production') && key in instance.appContext.config.globalProperties) { + Object.defineProperty(ctx, key, { + enumerable: true, + configurable: true, + value + }); + } + else { + ctx[key] = value; + } + } + return true; + }, + has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) { + let normalizedProps; + return (accessCache[key] !== undefined || + (data !== EMPTY_OBJ && hasOwn(data, key)) || + (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) || + ((normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key)) || + hasOwn(ctx, key) || + hasOwn(publicPropertiesMap, key) || + hasOwn(appContext.config.globalProperties, key)); + } +}; +if ((process.env.NODE_ENV !== 'production') && !false) { + PublicInstanceProxyHandlers.ownKeys = (target) => { + warn(`Avoid app logic that relies on enumerating keys on a component instance. ` + + `The keys will be empty in production mode to avoid performance overhead.`); + return Reflect.ownKeys(target); + }; +} +const RuntimeCompiledPublicInstanceProxyHandlers = extend({}, PublicInstanceProxyHandlers, { + get(target, key) { + // fast path for unscopables when using `with` block + if (key === Symbol.unscopables) { + return; + } + return PublicInstanceProxyHandlers.get(target, key, target); + }, + has(_, key) { + const has = key[0] !== '_' && !isGloballyWhitelisted(key); + if ((process.env.NODE_ENV !== 'production') && !has && PublicInstanceProxyHandlers.has(_, key)) { + warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`); + } + return has; + } +}); +// In dev mode, the proxy target exposes the same properties as seen on `this` +// for easier console inspection. In prod mode it will be an empty object so +// these properties definitions can be skipped. +function createRenderContext(instance) { + const target = {}; + // expose internal instance for proxy handlers + Object.defineProperty(target, `_`, { + configurable: true, + enumerable: false, + get: () => instance + }); + // expose public properties + Object.keys(publicPropertiesMap).forEach(key => { + Object.defineProperty(target, key, { + configurable: true, + enumerable: false, + get: () => publicPropertiesMap[key](instance), + // intercepted by the proxy so no need for implementation, + // but needed to prevent set errors + set: NOOP + }); + }); + // expose global properties + const { globalProperties } = instance.appContext.config; + Object.keys(globalProperties).forEach(key => { + Object.defineProperty(target, key, { + configurable: true, + enumerable: false, + get: () => globalProperties[key], + set: NOOP + }); + }); + return target; +} +// dev only +function exposePropsOnRenderContext(instance) { + const { ctx, propsOptions: [propsOptions] } = instance; + if (propsOptions) { + Object.keys(propsOptions).forEach(key => { + Object.defineProperty(ctx, key, { + enumerable: true, + configurable: true, + get: () => instance.props[key], + set: NOOP + }); + }); + } +} +// dev only +function exposeSetupStateOnRenderContext(instance) { + const { ctx, setupState } = instance; + Object.keys(toRaw(setupState)).forEach(key => { + if (key[0] === '$' || key[0] === '_') { + warn(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" ` + + `which are reserved prefixes for Vue internals.`); + return; + } + Object.defineProperty(ctx, key, { + enumerable: true, + configurable: true, + get: () => setupState[key], + set: NOOP + }); + }); } -const emptyAppContext = createAppContext() -let uid$2 = 0 -function createComponentInstance(vnode, parent, suspense) { - const type = vnode.type - // inherit parent app context - or - if root, adopt from root vnode - const appContext = - (parent ? parent.appContext : vnode.appContext) || emptyAppContext - const instance = { - uid: uid$2++, - vnode, - type, - parent, - appContext, - root: null, - next: null, - subTree: null, - update: null, - render: null, - proxy: null, - withProxy: null, - effects: null, - provides: parent ? parent.provides : Object.create(appContext.provides), - accessCache: null, - renderCache: [], - // local resovled assets - components: null, - directives: null, - // resolved props and emits options - propsOptions: normalizePropsOptions(type, appContext), - emitsOptions: normalizeEmitsOptions(type, appContext), - // emit - emit: null, - emitted: null, - // state - ctx: EMPTY_OBJ, - data: EMPTY_OBJ, - props: EMPTY_OBJ, - attrs: EMPTY_OBJ, - slots: EMPTY_OBJ, - refs: EMPTY_OBJ, - setupState: EMPTY_OBJ, - setupContext: null, - // suspense related - suspense, - asyncDep: null, - asyncResolved: false, - // lifecycle hooks - // not using enums here because it results in computed properties - isMounted: false, - isUnmounted: false, - isDeactivated: false, - bc: null, - c: null, - bm: null, - m: null, - bu: null, - u: null, - um: null, - bum: null, - da: null, - a: null, - rtg: null, - rtc: null, - ec: null - } - if (process.env.NODE_ENV !== 'production') { - instance.ctx = createRenderContext(instance) - } else { - instance.ctx = { _: instance } - } - instance.root = parent ? parent.root : instance - instance.emit = emit.bind(null, instance) - if (process.env.NODE_ENV !== 'production' || false); - return instance -} -let currentInstance = null -const setCurrentInstance = instance => { - currentInstance = instance -} -const isBuiltInTag = /*#__PURE__*/ makeMap('slot,component') -function validateComponentName(name, config) { - const appIsNativeTag = config.isNativeTag || NO - if (isBuiltInTag(name) || appIsNativeTag(name)) { - warn( - 'Do not use built-in or reserved HTML elements as component id: ' + name - ) - } -} -let isInSSRComponentSetup = false -function setupComponent(instance, isSSR = false) { - isInSSRComponentSetup = isSSR - const { props, /* children, */ shapeFlag } = instance.vnode - const isStateful = shapeFlag & 4 /* STATEFUL_COMPONENT */ - initProps(instance, props, isStateful, isSSR) - // initSlots(instance, children) // fixed by xxxxxx - const setupResult = isStateful - ? setupStatefulComponent(instance, isSSR) - : undefined - isInSSRComponentSetup = false - return setupResult -} -function setupStatefulComponent(instance, isSSR) { - const Component = instance.type - if (process.env.NODE_ENV !== 'production') { - if (Component.name) { - validateComponentName(Component.name, instance.appContext.config) - } - if (Component.components) { - const names = Object.keys(Component.components) - for (let i = 0; i < names.length; i++) { - validateComponentName(names[i], instance.appContext.config) - } - } - if (Component.directives) { - const names = Object.keys(Component.directives) - for (let i = 0; i < names.length; i++) { - validateDirectiveName(names[i]) - } - } - } - // 0. create render proxy property access cache - instance.accessCache = {} - // 1. create public instance / render proxy - // also mark it raw so it's never observed - instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers) - if (process.env.NODE_ENV !== 'production') { - exposePropsOnRenderContext(instance) - } - // 2. call setup() - const { setup } = Component - if (setup) { - const setupContext = (instance.setupContext = - setup.length > 1 ? createSetupContext(instance) : null) - currentInstance = instance - pauseTracking() - const setupResult = callWithErrorHandling( - setup, - instance, - 0 /* SETUP_FUNCTION */, - [ - process.env.NODE_ENV !== 'production' - ? shallowReadonly(instance.props) - : instance.props, - setupContext - ] - ) - resetTracking() - currentInstance = null - if (isPromise(setupResult)) { - if (isSSR) { - // return the promise so server-renderer can wait on it - return setupResult.then(resolvedResult => { - handleSetupResult(instance, resolvedResult) - }) - } else if (process.env.NODE_ENV !== 'production') { - warn( - `setup() returned a Promise, but the version of Vue you are using ` + - `does not support it yet.` - ) - } - } else { - handleSetupResult(instance, setupResult) - } - } else { - finishComponentSetup(instance) - } -} -function handleSetupResult(instance, setupResult, isSSR) { - if (isFunction(setupResult)) { - // setup returned an inline render function - instance.render = setupResult - } else if (isObject(setupResult)) { - // if ((process.env.NODE_ENV !== 'production') && isVNode(setupResult)) { - // warn( - // `setup() should not return VNodes directly - ` + - // `return a render function instead.` - // ) - // } - // setup returned bindings. - // assuming a render function compiled from template is present. - if (process.env.NODE_ENV !== 'production' || false) { - instance.devtoolsRawSetupState = setupResult - } - instance.setupState = proxyRefs(setupResult) - if (process.env.NODE_ENV !== 'production') { - exposeSetupStateOnRenderContext(instance) - } - } else if ( - process.env.NODE_ENV !== 'production' && - setupResult !== undefined - ) { - warn( - `setup() should return an object. Received: ${ - setupResult === null ? 'null' : typeof setupResult - }` - ) - } - finishComponentSetup(instance) -} -function finishComponentSetup(instance, isSSR) { - const Component = instance.type - // template / render function normalization - if (!instance.render) { - instance.render = Component.render || NOOP - // for runtime-compiled render functions using `with` blocks, the render - // proxy used needs a different `has` handler which is more performant and - // also only allows a whitelist of globals to fallthrough. - if (instance.render._rc) { - instance.withProxy = new Proxy( - instance.ctx, - RuntimeCompiledPublicInstanceProxyHandlers - ) - } - } - // support for 2.x options - if (__VUE_OPTIONS_API__) { - currentInstance = instance - applyOptions(instance, Component) - currentInstance = null - } - // warn missing template/render - if ( - process.env.NODE_ENV !== 'production' && - !Component.render && - instance.render === NOOP - ) { - /* istanbul ignore if */ - if (Component.template) { - warn( - `Component provided template option but ` + - `runtime compilation is not supported in this build of Vue.` + - ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` /* should not happen */ - ) - } else { - warn(`Component is missing template or render function.`) - } - } -} -const attrHandlers = { - get: (target, key) => { - if (process.env.NODE_ENV !== 'production'); - return target[key] - }, - set: () => { - warn(`setupContext.attrs is readonly.`) - return false - }, - deleteProperty: () => { - warn(`setupContext.attrs is readonly.`) - return false - } -} -function createSetupContext(instance) { - if (process.env.NODE_ENV !== 'production') { - // We use getters in dev in case libs like test-utils overwrite instance - // properties (overwrites should not be done in prod) - return Object.freeze({ - get attrs() { - return new Proxy(instance.attrs, attrHandlers) - }, - get slots() { - return shallowReadonly(instance.slots) - }, - get emit() { - return (event, ...args) => instance.emit(event, ...args) - } - }) - } else { - return { - attrs: instance.attrs, - slots: instance.slots, - emit: instance.emit - } - } -} -// record effects created during a component's setup() so that they can be -// stopped when the component unmounts -function recordInstanceBoundEffect(effect) { - if (currentInstance) { - ;(currentInstance.effects || (currentInstance.effects = [])).push(effect) - } -} -const classifyRE = /(?:^|[-_])(\w)/g -const classify = str => - str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '') -/* istanbul ignore next */ -function formatComponentName(instance, Component, isRoot = false) { - let name = isFunction(Component) - ? Component.displayName || Component.name - : Component.name - if (!name && Component.__file) { - const match = Component.__file.match(/([^/\\]+)\.vue$/) - if (match) { - name = match[1] - } - } - if (!name && instance && instance.parent) { - // try to infer the name based on reverse resolution - const inferFromRegistry = registry => { - for (const key in registry) { - if (registry[key] === Component) { - return key - } - } - } - name = - inferFromRegistry( - instance.components || instance.parent.type.components - ) || inferFromRegistry(instance.appContext.components) - } - return name ? classify(name) : isRoot ? `App` : `Anonymous` +const emptyAppContext = createAppContext(); +let uid$2 = 0; +function createComponentInstance(vnode, parent, suspense) { + const type = vnode.type; + // inherit parent app context - or - if root, adopt from root vnode + const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext; + const instance = { + uid: uid$2++, + vnode, + type, + parent, + appContext, + root: null, + next: null, + subTree: null, + update: null, + render: null, + proxy: null, + withProxy: null, + effects: null, + provides: parent ? parent.provides : Object.create(appContext.provides), + accessCache: null, + renderCache: [], + // local resovled assets + components: null, + directives: null, + // resolved props and emits options + propsOptions: normalizePropsOptions(type, appContext), + emitsOptions: normalizeEmitsOptions(type, appContext), + // emit + emit: null, + emitted: null, + // state + ctx: EMPTY_OBJ, + data: EMPTY_OBJ, + props: EMPTY_OBJ, + attrs: EMPTY_OBJ, + slots: EMPTY_OBJ, + refs: EMPTY_OBJ, + setupState: EMPTY_OBJ, + setupContext: null, + // suspense related + suspense, + asyncDep: null, + asyncResolved: false, + // lifecycle hooks + // not using enums here because it results in computed properties + isMounted: false, + isUnmounted: false, + isDeactivated: false, + bc: null, + c: null, + bm: null, + m: null, + bu: null, + u: null, + um: null, + bum: null, + da: null, + a: null, + rtg: null, + rtc: null, + ec: null + }; + if ((process.env.NODE_ENV !== 'production')) { + instance.ctx = createRenderContext(instance); + } + else { + instance.ctx = { _: instance }; + } + instance.root = parent ? parent.root : instance; + instance.emit = emit.bind(null, instance); + if ((process.env.NODE_ENV !== 'production') || false) ; + return instance; +} +let currentInstance = null; +const setCurrentInstance = (instance) => { + currentInstance = instance; +}; +const isBuiltInTag = /*#__PURE__*/ makeMap('slot,component'); +function validateComponentName(name, config) { + const appIsNativeTag = config.isNativeTag || NO; + if (isBuiltInTag(name) || appIsNativeTag(name)) { + warn('Do not use built-in or reserved HTML elements as component id: ' + name); + } +} +let isInSSRComponentSetup = false; +function setupComponent(instance, isSSR = false) { + isInSSRComponentSetup = isSSR; + const { props, /* children, */ shapeFlag } = instance.vnode; + const isStateful = shapeFlag & 4 /* STATEFUL_COMPONENT */; + initProps(instance, props, isStateful, isSSR); + // initSlots(instance, children) // fixed by xxxxxx + const setupResult = isStateful + ? setupStatefulComponent(instance, isSSR) + : undefined; + isInSSRComponentSetup = false; + return setupResult; +} +function setupStatefulComponent(instance, isSSR) { + const Component = instance.type; + if ((process.env.NODE_ENV !== 'production')) { + if (Component.name) { + validateComponentName(Component.name, instance.appContext.config); + } + if (Component.components) { + const names = Object.keys(Component.components); + for (let i = 0; i < names.length; i++) { + validateComponentName(names[i], instance.appContext.config); + } + } + if (Component.directives) { + const names = Object.keys(Component.directives); + for (let i = 0; i < names.length; i++) { + validateDirectiveName(names[i]); + } + } + } + // 0. create render proxy property access cache + instance.accessCache = {}; + // 1. create public instance / render proxy + // also mark it raw so it's never observed + instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers); + if ((process.env.NODE_ENV !== 'production')) { + exposePropsOnRenderContext(instance); + } + // 2. call setup() + const { setup } = Component; + if (setup) { + const setupContext = (instance.setupContext = + setup.length > 1 ? createSetupContext(instance) : null); + currentInstance = instance; + pauseTracking(); + const setupResult = callWithErrorHandling(setup, instance, 0 /* SETUP_FUNCTION */, [(process.env.NODE_ENV !== 'production') ? shallowReadonly(instance.props) : instance.props, setupContext]); + resetTracking(); + currentInstance = null; + if (isPromise(setupResult)) { + if (isSSR) { + // return the promise so server-renderer can wait on it + return setupResult.then((resolvedResult) => { + handleSetupResult(instance, resolvedResult); + }); + } + else if ((process.env.NODE_ENV !== 'production')) { + warn(`setup() returned a Promise, but the version of Vue you are using ` + + `does not support it yet.`); + } + } + else { + handleSetupResult(instance, setupResult); + } + } + else { + finishComponentSetup(instance); + } +} +function handleSetupResult(instance, setupResult, isSSR) { + if (isFunction(setupResult)) { + // setup returned an inline render function + instance.render = setupResult; + } + else if (isObject(setupResult)) { + // if ((process.env.NODE_ENV !== 'production') && isVNode(setupResult)) { + // warn( + // `setup() should not return VNodes directly - ` + + // `return a render function instead.` + // ) + // } + // setup returned bindings. + // assuming a render function compiled from template is present. + if ((process.env.NODE_ENV !== 'production') || false) { + instance.devtoolsRawSetupState = setupResult; + } + instance.setupState = proxyRefs(setupResult); + if ((process.env.NODE_ENV !== 'production')) { + exposeSetupStateOnRenderContext(instance); + } + } + else if ((process.env.NODE_ENV !== 'production') && setupResult !== undefined) { + warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`); + } + finishComponentSetup(instance); +} +function finishComponentSetup(instance, isSSR) { + const Component = instance.type; + // template / render function normalization + if (!instance.render) { + instance.render = (Component.render || NOOP); + // for runtime-compiled render functions using `with` blocks, the render + // proxy used needs a different `has` handler which is more performant and + // also only allows a whitelist of globals to fallthrough. + if (instance.render._rc) { + instance.withProxy = new Proxy(instance.ctx, RuntimeCompiledPublicInstanceProxyHandlers); + } + } + // support for 2.x options + if (__VUE_OPTIONS_API__) { + currentInstance = instance; + applyOptions(instance, Component); + currentInstance = null; + } + // warn missing template/render + if ((process.env.NODE_ENV !== 'production') && !Component.render && instance.render === NOOP) { + /* istanbul ignore if */ + if ( Component.template) { + warn(`Component provided template option but ` + + `runtime compilation is not supported in this build of Vue.` + + ( ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` + ) /* should not happen */); + } + else { + warn(`Component is missing template or render function.`); + } + } +} +const attrHandlers = { + get: (target, key) => { + if ((process.env.NODE_ENV !== 'production')) ; + return target[key]; + }, + set: () => { + warn(`setupContext.attrs is readonly.`); + return false; + }, + deleteProperty: () => { + warn(`setupContext.attrs is readonly.`); + return false; + } +}; +function createSetupContext(instance) { + if ((process.env.NODE_ENV !== 'production')) { + // We use getters in dev in case libs like test-utils overwrite instance + // properties (overwrites should not be done in prod) + return Object.freeze({ + get attrs() { + return new Proxy(instance.attrs, attrHandlers); + }, + get slots() { + return shallowReadonly(instance.slots); + }, + get emit() { + return (event, ...args) => instance.emit(event, ...args); + } + }); + } + else { + return { + attrs: instance.attrs, + slots: instance.slots, + emit: instance.emit + }; + } +} +// record effects created during a component's setup() so that they can be +// stopped when the component unmounts +function recordInstanceBoundEffect(effect) { + if (currentInstance) { + (currentInstance.effects || (currentInstance.effects = [])).push(effect); + } +} +const classifyRE = /(?:^|[-_])(\w)/g; +const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, ''); +/* istanbul ignore next */ +function formatComponentName(instance, Component, isRoot = false) { + let name = isFunction(Component) + ? Component.displayName || Component.name + : Component.name; + if (!name && Component.__file) { + const match = Component.__file.match(/([^/\\]+)\.vue$/); + if (match) { + name = match[1]; + } + } + if (!name && instance && instance.parent) { + // try to infer the name based on reverse resolution + const inferFromRegistry = (registry) => { + for (const key in registry) { + if (registry[key] === Component) { + return key; + } + } + }; + name = + inferFromRegistry(instance.components || + instance.parent.type.components) || inferFromRegistry(instance.appContext.components); + } + return name ? classify(name) : isRoot ? `App` : `Anonymous`; } -function computed$1(getterOrOptions) { - const c = computed(getterOrOptions) - recordInstanceBoundEffect(c.effect) - return c +function computed$1(getterOrOptions) { + const c = computed(getterOrOptions); + recordInstanceBoundEffect(c.effect); + return c; } -// Core API ------------------------------------------------------------------ -const version = '3.0.0-rc.10' +// Core API ------------------------------------------------------------------ +const version = "3.0.0-rc.10"; -// import deepCopy from './deepCopy' -/** - * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js - */ -const ARRAYTYPE = '[object Array]' -const OBJECTTYPE = '[object Object]' -// const FUNCTIONTYPE = '[object Function]' -function diff(current, pre) { - const result = {} - syncKeys(current, pre) - _diff(current, pre, '', result) - return result -} -function syncKeys(current, pre) { - current = unref(current) - if (current === pre) return - const rootCurrentType = toTypeString(current) - const rootPreType = toTypeString(pre) - if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) { - for (let key in pre) { - const currentValue = current[key] - if (currentValue === undefined) { - current[key] = null - } else { - syncKeys(currentValue, pre[key]) - } - } - } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) { - if (current.length >= pre.length) { - pre.forEach((item, index) => { - syncKeys(current[index], item) - }) - } - } -} -function _diff(current, pre, path, result) { - current = unref(current) - if (current === pre) return - const rootCurrentType = toTypeString(current) - const rootPreType = toTypeString(pre) - if (rootCurrentType == OBJECTTYPE) { - if ( - rootPreType != OBJECTTYPE || - Object.keys(current).length < Object.keys(pre).length - ) { - setResult(result, path, current) - } else { - for (let key in current) { - const currentValue = unref(current[key]) - const preValue = pre[key] - const currentType = toTypeString(currentValue) - const preType = toTypeString(preValue) - if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) { - if (currentValue != preValue) { - setResult( - result, - (path == '' ? '' : path + '.') + key, - currentValue - ) - } - } else if (currentType == ARRAYTYPE) { - if (preType != ARRAYTYPE) { - setResult( - result, - (path == '' ? '' : path + '.') + key, - currentValue - ) - } else { - if (currentValue.length < preValue.length) { - setResult( - result, - (path == '' ? '' : path + '.') + key, - currentValue - ) - } else { - currentValue.forEach((item, index) => { - _diff( - item, - preValue[index], - (path == '' ? '' : path + '.') + key + '[' + index + ']', - result - ) - }) - } - } - } else if (currentType == OBJECTTYPE) { - if ( - preType != OBJECTTYPE || - Object.keys(currentValue).length < Object.keys(preValue).length - ) { - setResult( - result, - (path == '' ? '' : path + '.') + key, - currentValue - ) - } else { - for (let subKey in currentValue) { - _diff( - currentValue[subKey], - preValue[subKey], - (path == '' ? '' : path + '.') + key + '.' + subKey, - result - ) - } - } - } - } - } - } else if (rootCurrentType == ARRAYTYPE) { - if (rootPreType != ARRAYTYPE) { - setResult(result, path, current) - } else { - if (current.length < pre.length) { - setResult(result, path, current) - } else { - current.forEach((item, index) => { - _diff(item, pre[index], path + '[' + index + ']', result) - }) - } - } - } else { - setResult(result, path, current) - } -} -function setResult(result, k, v) { - result[k] = v //deepCopy(v) +// import deepCopy from './deepCopy' +/** + * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js + */ +const ARRAYTYPE = '[object Array]'; +const OBJECTTYPE = '[object Object]'; +// const FUNCTIONTYPE = '[object Function]' +function diff(current, pre) { + const result = {}; + syncKeys(current, pre); + _diff(current, pre, '', result); + return result; +} +function syncKeys(current, pre) { + current = unref(current); + if (current === pre) + return; + const rootCurrentType = toTypeString(current); + const rootPreType = toTypeString(pre); + if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) { + for (let key in pre) { + const currentValue = current[key]; + if (currentValue === undefined) { + current[key] = null; + } + else { + syncKeys(currentValue, pre[key]); + } + } + } + else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) { + if (current.length >= pre.length) { + pre.forEach((item, index) => { + syncKeys(current[index], item); + }); + } + } +} +function _diff(current, pre, path, result) { + current = unref(current); + if (current === pre) + return; + const rootCurrentType = toTypeString(current); + const rootPreType = toTypeString(pre); + if (rootCurrentType == OBJECTTYPE) { + if (rootPreType != OBJECTTYPE || + Object.keys(current).length < Object.keys(pre).length) { + setResult(result, path, current); + } + else { + for (let key in current) { + const currentValue = unref(current[key]); + const preValue = pre[key]; + const currentType = toTypeString(currentValue); + const preType = toTypeString(preValue); + if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) { + if (currentValue != preValue) { + setResult(result, (path == '' ? '' : path + '.') + key, currentValue); + } + } + else if (currentType == ARRAYTYPE) { + if (preType != ARRAYTYPE) { + setResult(result, (path == '' ? '' : path + '.') + key, currentValue); + } + else { + if (currentValue.length < preValue.length) { + setResult(result, (path == '' ? '' : path + '.') + key, currentValue); + } + else { + currentValue.forEach((item, index) => { + _diff(item, preValue[index], (path == '' ? '' : path + '.') + key + '[' + index + ']', result); + }); + } + } + } + else if (currentType == OBJECTTYPE) { + if (preType != OBJECTTYPE || + Object.keys(currentValue).length < Object.keys(preValue).length) { + setResult(result, (path == '' ? '' : path + '.') + key, currentValue); + } + else { + for (let subKey in currentValue) { + _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + '.') + key + '.' + subKey, result); + } + } + } + } + } + } + else if (rootCurrentType == ARRAYTYPE) { + if (rootPreType != ARRAYTYPE) { + setResult(result, path, current); + } + else { + if (current.length < pre.length) { + setResult(result, path, current); + } + else { + current.forEach((item, index) => { + _diff(item, pre[index], path + '[' + index + ']', result); + }); + } + } + } + else { + setResult(result, path, current); + } +} +function setResult(result, k, v) { + result[k] = v; //deepCopy(v) } -function hasComponentEffect(instance) { - return queue.includes(instance.update) -} -function flushCallbacks(instance) { - const ctx = instance.ctx - const callbacks = ctx.__next_tick_callbacks - if (callbacks && callbacks.length) { - if (process.env.VUE_APP_DEBUG) { - const mpInstance = ctx.$scope - console.log( - '[' + - +new Date() + - '][' + - (mpInstance.is || mpInstance.route) + - '][' + - instance.uid + - ']:flushCallbacks[' + - callbacks.length + - ']' - ) - } - const copies = callbacks.slice(0) - callbacks.length = 0 - for (let i = 0; i < copies.length; i++) { - copies[i]() - } - } -} -function nextTick$1(instance, fn) { - const ctx = instance.ctx - if (!ctx.__next_tick_pending && !hasComponentEffect(instance)) { - if (process.env.VUE_APP_DEBUG) { - const mpInstance = ctx.$scope - console.log( - '[' + - +new Date() + - '][' + - (mpInstance.is || mpInstance.route) + - '][' + - instance.uid + - ']:nextVueTick' - ) - } - return nextTick(fn && fn.bind(instance.proxy)) - } - if (process.env.VUE_APP_DEBUG) { - const mpInstance = ctx.$scope - console.log( - '[' + - +new Date() + - '][' + - (mpInstance.is || mpInstance.route) + - '][' + - instance.uid + - ']:nextMPTick' - ) - } - let _resolve - if (!ctx.__next_tick_callbacks) { - ctx.__next_tick_callbacks = [] - } - ctx.__next_tick_callbacks.push(() => { - if (fn) { - callWithErrorHandling( - fn.bind(instance.proxy), - instance, - 14 /* SCHEDULER */ - ) - } else if (_resolve) { - _resolve(instance.proxy) - } - }) - return new Promise(resolve => { - _resolve = resolve - }) +function hasComponentEffect(instance) { + return queue.includes(instance.update); +} +function flushCallbacks(instance) { + const ctx = instance.ctx; + const callbacks = ctx.__next_tick_callbacks; + if (callbacks && callbacks.length) { + if (process.env.VUE_APP_DEBUG) { + const mpInstance = ctx.$scope; + console.log('[' + + +new Date() + + '][' + + (mpInstance.is || mpInstance.route) + + '][' + + instance.uid + + ']:flushCallbacks[' + + callbacks.length + + ']'); + } + const copies = callbacks.slice(0); + callbacks.length = 0; + for (let i = 0; i < copies.length; i++) { + copies[i](); + } + } +} +function nextTick$1(instance, fn) { + const ctx = instance.ctx; + if (!ctx.__next_tick_pending && !hasComponentEffect(instance)) { + if (process.env.VUE_APP_DEBUG) { + const mpInstance = ctx.$scope; + console.log('[' + + +new Date() + + '][' + + (mpInstance.is || mpInstance.route) + + '][' + + instance.uid + + ']:nextVueTick'); + } + return nextTick(fn && fn.bind(instance.proxy)); + } + if (process.env.VUE_APP_DEBUG) { + const mpInstance = ctx.$scope; + console.log('[' + + +new Date() + + '][' + + (mpInstance.is || mpInstance.route) + + '][' + + instance.uid + + ']:nextMPTick'); + } + let _resolve; + if (!ctx.__next_tick_callbacks) { + ctx.__next_tick_callbacks = []; + } + ctx.__next_tick_callbacks.push(() => { + if (fn) { + callWithErrorHandling(fn.bind(instance.proxy), instance, 14 /* SCHEDULER */); + } + else if (_resolve) { + _resolve(instance.proxy); + } + }); + return new Promise(resolve => { + _resolve = resolve; + }); } -function getMPInstanceData(instance, keys) { - const data = instance.data - const ret = Object.create(null) - //仅同步 data 中有的数据 - keys.forEach(key => { - ret[key] = data[key] - }) - return ret -} -function getVueInstanceData(instance) { - const { data, setupState, ctx } = instance - const keys = new Set() - const ret = Object.create(null) - Object.keys(setupState).forEach(key => { - keys.add(key) - ret[key] = setupState[key] - }) - if (data) { - Object.keys(data).forEach(key => { - if (!keys.has(key)) { - keys.add(key) - ret[key] = data[key] - } - }) - } - if (__VUE_OPTIONS_API__) { - if (ctx.$computedKeys) { - ctx.$computedKeys.forEach(key => { - if (!keys.has(key)) { - keys.add(key) - ret[key] = ctx[key] - } - }) - } - } - if (ctx.$mp) { - // TODO - extend(ret, ctx.$mp.data || {}) - } - // TODO form-field - // track - return { keys, data: JSON.parse(JSON.stringify(ret)) } -} -function patch(instance) { - const ctx = instance.ctx - const mpType = ctx.mpType - if (mpType === 'page' || mpType === 'component') { - const start = Date.now() - const mpInstance = ctx.$scope - const { keys, data } = getVueInstanceData(instance) - // data.__webviewId__ = mpInstance.data.__webviewId__ - const diffData = diff(data, getMPInstanceData(mpInstance, keys)) - if (Object.keys(diffData).length) { - if (process.env.VUE_APP_DEBUG) { - console.log( - '[' + - +new Date() + - '][' + - (mpInstance.is || mpInstance.route) + - '][' + - instance.uid + - '][耗时' + - (Date.now() - start) + - ']差量更新', - JSON.stringify(diffData) - ) - } - ctx.__next_tick_pending = true - mpInstance.setData(diffData, () => { - ctx.__next_tick_pending = false - flushCallbacks(instance) - }) - } else { - flushCallbacks(instance) - } - } +function getMPInstanceData(instance, keys) { + const data = instance.data; + const ret = Object.create(null); + //仅同步 data 中有的数据 + keys.forEach(key => { + ret[key] = data[key]; + }); + return ret; +} +function getVueInstanceData(instance) { + const { data, setupState, ctx } = instance; + const keys = new Set(); + const ret = Object.create(null); + Object.keys(setupState).forEach(key => { + keys.add(key); + ret[key] = setupState[key]; + }); + if (data) { + Object.keys(data).forEach(key => { + if (!keys.has(key)) { + keys.add(key); + ret[key] = data[key]; + } + }); + } + if (__VUE_OPTIONS_API__) { + if (ctx.$computedKeys) { + ctx.$computedKeys.forEach((key) => { + if (!keys.has(key)) { + keys.add(key); + ret[key] = ctx[key]; + } + }); + } + } + if (ctx.$mp) { + // TODO + extend(ret, ctx.$mp.data || {}); + } + // TODO form-field + // track + return { keys, data: JSON.parse(JSON.stringify(ret)) }; +} +function patch(instance) { + const ctx = instance.ctx; + const mpType = ctx.mpType; + if (mpType === 'page' || mpType === 'component') { + const start = Date.now(); + const mpInstance = ctx.$scope; + const { keys, data } = getVueInstanceData(instance); + // data.__webviewId__ = mpInstance.data.__webviewId__ + const diffData = diff(data, getMPInstanceData(mpInstance, keys)); + if (Object.keys(diffData).length) { + if (process.env.VUE_APP_DEBUG) { + console.log('[' + + +new Date() + + '][' + + (mpInstance.is || mpInstance.route) + + '][' + + instance.uid + + '][耗时' + + (Date.now() - start) + + ']差量更新', JSON.stringify(diffData)); + } + ctx.__next_tick_pending = true; + mpInstance.setData(diffData, () => { + ctx.__next_tick_pending = false; + flushCallbacks(instance); + }); + } + else { + flushCallbacks(instance); + } + } } -function initAppConfig(appConfig) { - appConfig.globalProperties.$nextTick = function $nextTick(fn) { - return nextTick$1(this.$, fn) - } +function initAppConfig(appConfig) { + appConfig.globalProperties.$nextTick = function $nextTick(fn) { + return nextTick$1(this.$, fn); + }; } -function onApplyOptions(options, instance, publicThis) { - instance.appContext.config.globalProperties.$applyOptions( - options, - instance, - publicThis - ) - const computedOptions = options.computed - if (computedOptions) { - const keys = Object.keys(computedOptions) - if (keys.length) { - const ctx = instance.ctx - if (!ctx.$computedKeys) { - ctx.$computedKeys = [] - } - ctx.$computedKeys.push(...keys) - } - } - // remove - delete instance.ctx.$onApplyOptions +function onApplyOptions(options, instance, publicThis) { + instance.appContext.config.globalProperties.$applyOptions(options, instance, publicThis); + const computedOptions = options.computed; + if (computedOptions) { + const keys = Object.keys(computedOptions); + if (keys.length) { + const ctx = instance.ctx; + if (!ctx.$computedKeys) { + ctx.$computedKeys = []; + } + ctx.$computedKeys.push(...keys); + } + } + // remove + delete instance.ctx.$onApplyOptions; } -var MPType -;(function(MPType) { - MPType['APP'] = 'app' - MPType['PAGE'] = 'page' - MPType['COMPONENT'] = 'component' -})(MPType || (MPType = {})) -const queuePostRenderEffect$1 = queuePostFlushCb -function mountComponent(initialVNode, options) { - const instance = (initialVNode.component = createComponentInstance( - initialVNode, - options.parentComponent, - null - )) - if (__VUE_OPTIONS_API__) { - instance.ctx.$onApplyOptions = onApplyOptions - instance.ctx.$children = [] - } - if (options.mpType === 'app') { - instance.render = NOOP - } - if (options.onBeforeSetup) { - options.onBeforeSetup(instance, options) - } - if (process.env.NODE_ENV !== 'production') { - pushWarningContext(initialVNode) - } - setupComponent(instance) - if (__VUE_OPTIONS_API__) { - // $children - if (options.parentComponent && instance.proxy) { - options.parentComponent.ctx.$children.push(instance.proxy) - } - } - setupRenderEffect(instance) - if (process.env.NODE_ENV !== 'production') { - popWarningContext() - } - return instance.proxy -} -const prodEffectOptions = { - scheduler: queueJob -} -function createDevEffectOptions(instance) { - return { - scheduler: queueJob, - onTrack: instance.rtc ? e => invokeArrayFns(instance.rtc, e) : void 0, - onTrigger: instance.rtg ? e => invokeArrayFns(instance.rtg, e) : void 0 - } -} -function setupRenderEffect(instance) { - // create reactive effect for rendering - instance.update = effect(function componentEffect() { - if (!instance.isMounted) { - instance.render && instance.render.call(instance.proxy) - patch(instance) - } else { - instance.render && instance.render.call(instance.proxy) - // updateComponent - const { bu, u } = instance - // beforeUpdate hook - if (bu) { - invokeArrayFns(bu) - } - patch(instance) - // updated hook - if (u) { - queuePostRenderEffect$1(u) - } - } - }, process.env.NODE_ENV !== 'production' - ? createDevEffectOptions(instance) - : prodEffectOptions) -} -function unmountComponent(instance) { - const { bum, effects, update, um } = instance - // beforeUnmount hook - if (bum) { - invokeArrayFns(bum) - } - if (effects) { - for (let i = 0; i < effects.length; i++) { - stop(effects[i]) - } - } - // update may be null if a component is unmounted before its async - // setup has resolved. - if (update) { - stop(update) - } - // unmounted hook - if (um) { - queuePostRenderEffect$1(um) - } - queuePostRenderEffect$1(() => { - instance.isUnmounted = true - }) -} -const oldCreateApp = createAppAPI() -function createVueApp(rootComponent, rootProps = null) { - const app = oldCreateApp(rootComponent, rootProps) - const appContext = app._context - initAppConfig(appContext.config) - const createVNode = initialVNode => { - initialVNode.appContext = appContext - initialVNode.shapeFlag = 6 /* COMPONENT */ - return initialVNode - } - const createComponent = function createComponent(initialVNode, options) { - return mountComponent(createVNode(initialVNode), options) - } - const destroyComponent = function destroyComponent(component) { - return component && unmountComponent(component.$) - } - app.mount = function mount() { - rootComponent.render = NOOP - const instance = mountComponent(createVNode({ type: rootComponent }), { - mpType: MPType.APP, - mpInstance: null, - parentComponent: null, - slots: [], - props: null - }) - instance.$app = app - instance.$createComponent = createComponent - instance.$destroyComponent = destroyComponent - appContext.$appInstance = instance - return instance - } - app.unmount = function unmount() { - warn(`Cannot unmount an app.`) - } - return app +var MPType; +(function (MPType) { + MPType["APP"] = "app"; + MPType["PAGE"] = "page"; + MPType["COMPONENT"] = "component"; +})(MPType || (MPType = {})); +const queuePostRenderEffect$1 = queuePostFlushCb; +function mountComponent(initialVNode, options) { + const instance = (initialVNode.component = createComponentInstance(initialVNode, options.parentComponent, null)); + if (__VUE_OPTIONS_API__) { + instance.ctx.$onApplyOptions = onApplyOptions; + instance.ctx.$children = []; + } + if (options.mpType === 'app') { + instance.render = NOOP; + } + if (options.onBeforeSetup) { + options.onBeforeSetup(instance, options); + } + if ((process.env.NODE_ENV !== 'production')) { + pushWarningContext(initialVNode); + } + setupComponent(instance); + if (__VUE_OPTIONS_API__) { + // $children + if (options.parentComponent && instance.proxy) { + options.parentComponent.ctx + .$children.push(instance.proxy); + } + } + setupRenderEffect(instance); + if ((process.env.NODE_ENV !== 'production')) { + popWarningContext(); + } + return instance.proxy; +} +const prodEffectOptions = { + scheduler: queueJob +}; +function createDevEffectOptions(instance) { + return { + scheduler: queueJob, + onTrack: instance.rtc ? e => invokeArrayFns(instance.rtc, e) : void 0, + onTrigger: instance.rtg ? e => invokeArrayFns(instance.rtg, e) : void 0 + }; +} +function setupRenderEffect(instance) { + // create reactive effect for rendering + instance.update = effect(function componentEffect() { + if (!instance.isMounted) { + instance.render && instance.render.call(instance.proxy); + patch(instance); + } + else { + instance.render && instance.render.call(instance.proxy); + // updateComponent + const { bu, u } = instance; + // beforeUpdate hook + if (bu) { + invokeArrayFns(bu); + } + patch(instance); + // updated hook + if (u) { + queuePostRenderEffect$1(u); + } + } + }, (process.env.NODE_ENV !== 'production') ? createDevEffectOptions(instance) : prodEffectOptions); +} +function unmountComponent(instance) { + const { bum, effects, update, um } = instance; + // beforeUnmount hook + if (bum) { + invokeArrayFns(bum); + } + if (effects) { + for (let i = 0; i < effects.length; i++) { + stop(effects[i]); + } + } + // update may be null if a component is unmounted before its async + // setup has resolved. + if (update) { + stop(update); + } + // unmounted hook + if (um) { + queuePostRenderEffect$1(um); + } + queuePostRenderEffect$1(() => { + instance.isUnmounted = true; + }); +} +const oldCreateApp = createAppAPI(); +function createVueApp(rootComponent, rootProps = null) { + const app = oldCreateApp(rootComponent, rootProps); + const appContext = app._context; + initAppConfig(appContext.config); + const createVNode = initialVNode => { + initialVNode.appContext = appContext; + initialVNode.shapeFlag = 6 /* COMPONENT */; + return initialVNode; + }; + const createComponent = function createComponent(initialVNode, options) { + return mountComponent(createVNode(initialVNode), options); + }; + const destroyComponent = function destroyComponent(component) { + return component && unmountComponent(component.$); + }; + app.mount = function mount() { + rootComponent.render = NOOP; + const instance = mountComponent(createVNode({ type: rootComponent }), { + mpType: MPType.APP, + mpInstance: null, + parentComponent: null, + slots: [], + props: null + }); + instance.$app = app; + instance.$createComponent = createComponent; + instance.$destroyComponent = destroyComponent; + appContext.$appInstance = instance; + return instance; + }; + app.unmount = function unmount() { + warn(`Cannot unmount an app.`); + }; + return app; } -export { - callWithAsyncErrorHandling, - callWithErrorHandling, - computed$1 as computed, - createVueApp, - customRef, - inject, - injectHook, - isInSSRComponentSetup, - isProxy, - isReactive, - isReadonly, - isRef, - logError, - markRaw, - nextTick, - onActivated, - onBeforeMount, - onBeforeUnmount, - onBeforeUpdate, - onDeactivated, - onErrorCaptured, - onMounted, - onRenderTracked, - onRenderTriggered, - onUnmounted, - onUpdated, - provide, - reactive, - readonly, - ref, - shallowReactive, - shallowReadonly, - shallowRef, - toRaw, - toRef, - toRefs, - triggerRef, - unref, - version, - warn, - watch, - watchEffect -} +export { callWithAsyncErrorHandling, callWithErrorHandling, computed$1 as computed, createVueApp, customRef, inject, injectHook, isInSSRComponentSetup, isProxy, isReactive, isReadonly, isRef, logError, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onUnmounted, onUpdated, provide, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, version, warn, watch, watchEffect };
f4878e0901d9a2c4bf0870c825350625bd26aeb2
2021-05-12 13:20:05
fxy060608
build(deps): bump vite from 2.2.3 to 2.3.0
false
bump vite from 2.2.3 to 2.3.0
build
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index cbbc48e5b1d..96d6d310cf0 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -61,7 +61,7 @@ jobs: - name: Cypress run uses: cypress-io/[email protected] with: - install: true + install: false start: npm run dev:ssr working-directory: ./packages/playground/ssr wait-on: 'http://localhost:3000' diff --git a/package.json b/package.json index af10630148f..eb6a4d1ca37 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,9 @@ "ls-lint": "ls-lint", "test": "jest", "preinstall": "node ./scripts/checkYarn.js", - "e2e:ssr:open": "cd packages/playground/ssr && npx cypress open", - "e2e:ssr:dev": "cd packages/playground/ssr && npm run dev:ssr" + "e2e:ssr:install": "cd packages/playground/ssr && rm -rf node_modules yarn.lock && yarn", + "e2e:ssr:dev": "cd packages/playground/ssr && npm run dev:ssr", + "e2e:ssr:open": "cd packages/playground/ssr && npx cypress open" }, "types": "test-dts/index.d.ts", "tsd": { @@ -74,7 +75,7 @@ "semver": "^7.3.4", "ts-jest": "^26.4.4", "typescript": "~4.1.3", - "vite": "^2.2.4", + "vite": "^2.3.0", "vue": "3.0.11", "yorkie": "^2.0.0" } diff --git a/packages/playground/ssr/package.json b/packages/playground/ssr/package.json index b11a703c39f..0ca0d5e98ba 100644 --- a/packages/playground/ssr/package.json +++ b/packages/playground/ssr/package.json @@ -21,12 +21,12 @@ "devDependencies": { "@dcloudio/uni-cli-shared": "../../uni-cli-shared", "@dcloudio/vite-plugin-uni": "../../vite-plugin-uni", - "@vitejs/plugin-vue": "^1.2.1", + "@vitejs/plugin-vue": "^1.2.2", "@vue/compiler-sfc": "^3.0.11", "@vue/server-renderer": "^3.0.11", "compression": "^1.7.4", "cypress": "^7.3.0", "serve-static": "^1.14.1", - "vite": "^2.2.3" + "vite": "^2.3.0" } } diff --git a/packages/playground/ssr/yarn.lock b/packages/playground/ssr/yarn.lock index 210f9ebb067..d551649c1f4 100644 --- a/packages/playground/ssr/yarn.lock +++ b/packages/playground/ssr/yarn.lock @@ -195,7 +195,7 @@ resolved "https://registry.yarnpkg.com/@types/sizzle/-/sizzle-2.3.3.tgz#ff5e2f1902969d305225a047c8a0fd5c915cebef" integrity sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ== -"@vitejs/plugin-vue@^1.2.1": +"@vitejs/plugin-vue@^1.2.2": version "1.2.2" resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.2.2.tgz#b0038fc11b9099f4cd01fcbf0ee419adda417b52" integrity sha512-5BI2WFfs/Z0pAV4S/IQf1oH3bmFYlL5ATMBHgTt1Lf7hAnfpNd5oUAAs6hZPfk3QhvyUQgtk0rJBlabwNFcBJQ== @@ -2449,7 +2449,7 @@ [email protected]: core-util-is "1.0.2" extsprintf "^1.2.0" -vite@^2.2.3: +vite@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.0.tgz#02b007c7aa4ac88cc18f854b9c68e4fbe76e3ef4" integrity sha512-gsCy0t3X9nGGYDoNiE2NJgYq6BPxrtKeo6FkpMXdMvtUluYxnRhl7xfpHaYDmQLCnMbYTWhvWS1L/Hpw/V9L5w== diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 5bda93c7931..f369cafbed4 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -44,7 +44,7 @@ "@dcloudio/uni-cli-shared": "^3.0.0", "@dcloudio/uni-shared": "^3.0.0", "@vue/shared": "^3.0.11", - "vite": "^2.2.3" + "vite": "^2.3.0" }, "devDependencies": { "@types/express": "^4.17.11", diff --git a/packages/vite-plugin-uni/src/config/index.ts b/packages/vite-plugin-uni/src/config/index.ts index 9aa2889dd49..cfd413a3496 100644 --- a/packages/vite-plugin-uni/src/config/index.ts +++ b/packages/vite-plugin-uni/src/config/index.ts @@ -31,6 +31,7 @@ export function createConfig( const { h5 } = parseManifestJsonOnce(options.inputDir) return { base: (h5 && h5.router && h5.router.base) || '', + publicDir: false, define: extend(define, options.compiler.define()), resolve: createResolve(options, config), optimizeDeps: createOptimizeDeps(options), diff --git a/yarn.lock b/yarn.lock index 30dbbee29e7..917d0db2cec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6309,7 +6309,7 @@ [email protected]: core-util-is "1.0.2" extsprintf "^1.2.0" -vite@^2.2.4: +vite@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.0.tgz#02b007c7aa4ac88cc18f854b9c68e4fbe76e3ef4" integrity sha512-gsCy0t3X9nGGYDoNiE2NJgYq6BPxrtKeo6FkpMXdMvtUluYxnRhl7xfpHaYDmQLCnMbYTWhvWS1L/Hpw/V9L5w==
e91211056cc6ceda94a8f57534c6a4154b374bb2
2024-05-30 11:54:03
fxy060608
fix: 修复 uni_modules 编译模式下css文件加载
false
修复 uni_modules 编译模式下css文件加载
fix
diff --git a/packages/uni-cli-shared/src/vite/plugins/uts/uni_modules.ts b/packages/uni-cli-shared/src/vite/plugins/uts/uni_modules.ts index ceceb1868e2..a743877354b 100644 --- a/packages/uni-cli-shared/src/vite/plugins/uts/uni_modules.ts +++ b/packages/uni-cli-shared/src/vite/plugins/uts/uni_modules.ts @@ -122,6 +122,10 @@ export function uniUTSUniModulesPlugin( if (isUTSProxy(id) || isUniHelpers(id)) { return id } + // 加密插件缓存目录的css文件 + if (id.endsWith('.css')) { + return + } const module = resolveUTSAppModule( id, importer ? path.dirname(importer) : inputDir, @@ -240,7 +244,11 @@ export function uniDecryptUniModulesPlugin(): Plugin { if (isUTSProxy(id) || isUniHelpers(id)) { return id } - if (isX && process.env.UNI_COMPILE_TARGET !== 'uni_modules') { + if ( + isX && + process.env.UNI_COMPILE_TARGET !== 'uni_modules' && + !id.endsWith('.css') + ) { const resolvedId = resolveEncryptUniModule( id, process.env.UNI_UTS_PLATFORM,
af107bddfdf5d4d0a10e383bd33d8f3819c1a97e
2021-05-12 14:39:57
fxy060608
fix(easycom): windows
false
windows
fix
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 96d6d310cf0..1d19c01d9f9 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -44,7 +44,7 @@ jobs: run: yarn install --frozen-lockfile - name: Build - run: npm run build uni-app uni-cli-shared uni-h5 uni-i18n uni-shared vite-plugin-uni + run: npm run build:h5 - name: Install ssr and verify Cypress working-directory: ./packages/playground/ssr @@ -56,16 +56,4 @@ jobs: npx cypress version --component package npx cypress version --component binary npx cypress version --component electron - npx cypress version --component node - - - name: Cypress run - uses: cypress-io/[email protected] - with: - install: false - start: npm run dev:ssr - working-directory: ./packages/playground/ssr - wait-on: 'http://localhost:3000' - wait-on-timeout: 120 - browser: chrome - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + npx cypress version --component node \ No newline at end of file diff --git a/.github/workflows/size-check.yml b/.github/workflows/size-check.yml index e89139d3bab..b1807d82787 100644 --- a/.github/workflows/size-check.yml +++ b/.github/workflows/size-check.yml @@ -31,6 +31,6 @@ jobs: - uses: fxy060608/[email protected] with: github_token: ${{ secrets.GITHUB_TOKEN }} - build_script: build + build_script: build:h5 files: packages/size-check/dist/size-check.es.js packages/size-check/dist/style.css packages/uni-app/dist/uni-app.es.js packages/uni-h5-vue/dist/vue.runtime.esm.js packages/uni-mp-vue/dist/vue.runtime.esm.js packages/uni-mp-alipay/dist/uni.api.esm.js packages/uni-mp-alipay/dist/uni.mp.esm.js packages/uni-mp-baidu/dist/uni.api.esm.js packages/uni-mp-baidu/dist/uni.mp.esm.js packages/uni-mp-qq/dist/uni.api.esm.js packages/uni-mp-qq/dist/uni.mp.esm.js packages/uni-mp-toutiao/dist/uni.api.esm.js packages/uni-mp-toutiao/dist/uni.mp.esm.js packages/uni-mp-weixin/dist/uni.api.esm.js packages/uni-mp-weixin/dist/uni.mp.esm.js packages/uni-quickapp-webview/dist/uni.api.esm.js packages/uni-quickapp-webview/dist/uni.mp.esm.js - run: npm run test diff --git a/package.json b/package.json index 8d22a0ecdcb..a0a1cc7c79e 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ ], "scripts": { "build": "node scripts/build.js", + "build:h5": "node scripts/build.js uni-app uni-cli-shared uni-h5 uni-i18n uni-shared vite-plugin-uni", "size": "npm run build size-check", "lint": "eslint packages/*/src/**/*.ts", "format": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"", diff --git a/packages/uni-cli-shared/src/api.ts b/packages/uni-cli-shared/src/api.ts new file mode 100644 index 00000000000..98240e9f93e --- /dev/null +++ b/packages/uni-cli-shared/src/api.ts @@ -0,0 +1,11 @@ +import { BASE_COMPONENTS_STYLE_PATH, H5_API_STYLE_PATH } from './constants' + +export const API_STYLES = { + showModal: [`${H5_API_STYLE_PATH}/modal.css`], + showToast: [`${H5_API_STYLE_PATH}/toast.css`], + showActionSheet: [`${H5_API_STYLE_PATH}/action-sheet.css`], + previewImage: [ + `${BASE_COMPONENTS_STYLE_PATH}/swiper.css`, + `${BASE_COMPONENTS_STYLE_PATH}/swiper-item.css`, + ], +} diff --git a/packages/uni-cli-shared/src/constants.ts b/packages/uni-cli-shared/src/constants.ts index 5a1a682b05b..497e6d0b9c5 100644 --- a/packages/uni-cli-shared/src/constants.ts +++ b/packages/uni-cli-shared/src/constants.ts @@ -1,3 +1,8 @@ export const PUBLIC_DIR = 'static' export const EXTNAME_JS = ['.js', '.ts'] export const EXTNAME_VUE = ['.vue', '.nvue', '.fvue'] + +export const H5_API_STYLE_PATH = '@dcloudio/uni-h5/style/api/' +export const H5_FRAMEWORK_STYLE_PATH = '@dcloudio/uni-h5/style/framework/' +export const H5_COMPONENTS_STYLE_PATH = '@dcloudio/uni-h5/style/' +export const BASE_COMPONENTS_STYLE_PATH = '@dcloudio/uni-components/style/' diff --git a/packages/uni-cli-shared/src/index.ts b/packages/uni-cli-shared/src/index.ts index c1bb9359ff2..fad767dec14 100644 --- a/packages/uni-cli-shared/src/index.ts +++ b/packages/uni-cli-shared/src/index.ts @@ -1,3 +1,4 @@ +export * from './api' export * from './ssr' export * from './uni' export * from './url' diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index d67f34cc883..17979e51a1b 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -1,10 +1,10 @@ "use strict"; var __defProp = Object.defineProperty; -var __hasOwnProp = Object.prototype.hasOwnProperty; var __getOwnPropSymbols = Object.getOwnPropertySymbols; +var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value; -var __assign = (a2, b) => { +var __spreadValues = (a2, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a2, prop, b[prop]); @@ -1417,7 +1417,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) { vue.createVNode("audio", { ref: "audio", loop: $props.loop, - style: {display: "none"} + style: {"display": "none"} }, null, 8, ["loop"]), vue.createVNode("div", _hoisted_1$6, [ vue.createVNode("div", { @@ -1630,12 +1630,12 @@ var index$q = /* @__PURE__ */ vue.defineComponent({ const booleanAttrs = useBooleanAttr(props2, "disabled"); if (hoverClass && hoverClass !== "none") { return vue.createVNode("uni-button", vue.mergeProps({ - onClick, - class: hovering.value ? hoverClass : "" + "onClick": onClick, + "class": hovering.value ? hoverClass : "" }, binding, booleanAttrs), [slots.default && slots.default()], 16, ["onClick"]); } return vue.createVNode("uni-button", vue.mergeProps({ - onClick + "onClick": onClick }, booleanAttrs), [slots.default && slots.default()], 16, ["onClick"]); }; } @@ -1656,12 +1656,12 @@ var ResizeSensor = /* @__PURE__ */ vue.defineComponent({ const reset = useResizeSensorReset(rootRef); const update = useResizeSensorUpdate(rootRef, emit2, reset); return () => vue.createVNode("uni-resize-sensor", { - ref: rootRef, - onAnimationstartOnce: update + "ref": rootRef, + "onAnimationstartOnce": update }, [vue.createVNode("div", { - onScroll: update + "onScroll": update }, [vue.createVNode("div", null, null)], 40, ["onScroll"]), vue.createVNode("div", { - onScroll: update + "onScroll": update }, [vue.createVNode("div", null, null)], 40, ["onScroll"])], 40, ["onAnimationstartOnce"]); } }); @@ -2207,13 +2207,13 @@ const _hoisted_1$5 = { width: "300", height: "150" }; -const _hoisted_2$2 = {style: {position: "absolute", top: "0", left: "0", width: "100%", height: "100%", overflow: "hidden"}}; +const _hoisted_2$2 = {style: {"position": "absolute", "top": "0", "left": "0", "width": "100%", "height": "100%", "overflow": "hidden"}}; function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) { const _component_ResizeSensor = vue.resolveComponent("ResizeSensor"); return vue.openBlock(), vue.createBlock("uni-canvas", vue.mergeProps({ "canvas-id": $props.canvasId, "disable-scroll": $props.disableScroll - }, __assign(__assign({}, $setup.Attrs), $setup.ExcludeAttrs), vue.toHandlers($options._listeners)), [ + }, __spreadValues(__spreadValues({}, $setup.Attrs), $setup.ExcludeAttrs), vue.toHandlers($options._listeners)), [ vue.createVNode("canvas", _hoisted_1$5, null, 512), vue.createVNode("div", _hoisted_2$2, [ vue.renderSlot(_ctx.$slots, "default") @@ -2245,7 +2245,7 @@ var index$p = /* @__PURE__ */ vue.defineComponent({ useProvideCheckGroup(props2, trigger); return () => { return vue.createVNode("uni-checkbox-group", { - ref: rootRef + "ref": rootRef }, [slots.default && slots.default()], 512); }; } @@ -2321,10 +2321,10 @@ var index$o = /* @__PURE__ */ vue.defineComponent({ } }); return () => vue.createVNode("uni-label", { - class: { + "class": { "uni-label-pointer": pointer }, - onClick: _onClick + "onClick": _onClick }, [slots.default && slots.default()], 10, ["onClick"]); } }); @@ -2396,11 +2396,11 @@ var index$n = /* @__PURE__ */ vue.defineComponent({ booleanAttrs } = useBooleanAttr(props2, "disabled"); return vue.createVNode("uni-checkbox", vue.mergeProps(booleanAttrs, { - onClick: _onClick + "onClick": _onClick }), [vue.createVNode("div", { - class: "uni-checkbox-wrapper" + "class": "uni-checkbox-wrapper" }, [vue.createVNode("div", { - class: ["uni-checkbox-input", { + "class": ["uni-checkbox-input", { "uni-checkbox-input-disabled": props2.disabled }] }, [checkboxChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 2), slots.default && slots.default()])], 16, ["onClick"]); @@ -2641,9 +2641,9 @@ var index$m = /* @__PURE__ */ vue.defineComponent({ useKeyboard(props2, rootRef); return () => { return vue.createVNode("uni-editor", { - ref: rootRef, - id: props2.id, - class: "ql-container" + "ref": rootRef, + "id": props2.id, + "class": "ql-container" }, null, 8, ["id"]); }; } @@ -2779,14 +2779,14 @@ var index$k = /* @__PURE__ */ vue.defineComponent({ modeStyle } = state; return vue.createVNode("uni-image", { - ref: rootRef + "ref": rootRef }, [vue.createVNode("div", { - style: modeStyle + "style": modeStyle }, null, 4), imgSrc ? vue.createVNode("img", { - src: imgSrc, - draggable: props2.draggable + "src": imgSrc, + "draggable": props2.draggable }, null, 8, ["src", "draggable"]) : vue.createVNode("img", null, null), FIX_MODES[mode] ? vue.createVNode(ResizeSensor, { - onResize: fixSize + "onResize": fixSize }, null, 8, ["onResize"]) : vue.createVNode("span", null, null)], 512); }; } @@ -3275,38 +3275,38 @@ var Input = /* @__PURE__ */ vue.defineComponent({ } return () => { let inputNode = props2.disabled && fixDisabledColor ? vue.createVNode("input", { - ref: fieldRef, - value: state.value, - tabindex: "-1", - readonly: !!props2.disabled, - type: type.value, - maxlength: state.maxlength, - step: step.value, - class: "uni-input-input", - onFocus: (event) => event.target.blur() + "ref": fieldRef, + "value": state.value, + "tabindex": "-1", + "readonly": !!props2.disabled, + "type": type.value, + "maxlength": state.maxlength, + "step": step.value, + "class": "uni-input-input", + "onFocus": (event) => event.target.blur() }, null, 40, ["value", "readonly", "type", "maxlength", "step", "onFocus"]) : vue.createVNode("input", { - ref: fieldRef, - value: state.value, - disabled: !!props2.disabled, - type: type.value, - maxlength: state.maxlength, - step: step.value, - enterkeyhint: props2.confirmType, - class: "uni-input-input", - autocomplete: "off", - onKeyup: onKeyUpEnter + "ref": fieldRef, + "value": state.value, + "disabled": !!props2.disabled, + "type": type.value, + "maxlength": state.maxlength, + "step": step.value, + "enterkeyhint": props2.confirmType, + "class": "uni-input-input", + "autocomplete": "off", + "onKeyup": onKeyUpEnter }, null, 40, ["value", "disabled", "type", "maxlength", "step", "enterkeyhint", "onKeyup"]); return vue.createVNode("uni-input", { - ref: rootRef + "ref": rootRef }, [vue.createVNode("div", { - class: "uni-input-wrapper" + "class": "uni-input-wrapper" }, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { - style: props2.placeholderStyle, - class: ["uni-input-placeholder", props2.placeholderClass] + "style": props2.placeholderStyle, + "class": ["uni-input-placeholder", props2.placeholderClass] }), [props2.placeholder], 16), [[vue.vShow, !(state.value.length || !valid.value)]]), props2.confirmType === "search" ? vue.createVNode("form", { - action: "", - onSubmit: () => false, - class: "uni-input-form" + "action": "", + "onSubmit": () => false, + "class": "uni-input-form" }, [inputNode], 40, ["onSubmit"]) : inputNode])], 512); }; } @@ -3374,9 +3374,9 @@ var index$j = /* @__PURE__ */ vue.defineComponent({ const defaultSlots = slots.default && slots.default(); movableViewItems = defaultSlots || []; return vue.createVNode("uni-movable-area", vue.mergeProps({ - ref: rootRef + "ref": rootRef }, $attrs.value, $excludeAttrs.value, _listeners), [vue.createVNode(ResizeSensor, { - onReize: movableAreaEvents._resize + "onReize": movableAreaEvents._resize }, null, 8, ["onReize"]), movableViewItems], 16); }; } @@ -3872,9 +3872,9 @@ var index$i = /* @__PURE__ */ vue.defineComponent({ } = useMovableViewState(props2, trigger, rootRef); return () => { return vue.createVNode("uni-movable-view", { - ref: rootRef + "ref": rootRef }, [vue.createVNode(ResizeSensor, { - onResize: setParent + "onResize": setParent }, null, 8, ["onResize"]), slots.default && slots.default()], 512); }; } @@ -4423,14 +4423,14 @@ var index$h = /* @__PURE__ */ vue.defineComponent({ const defaultSlots = slots.default && slots.default(); columnVNodes = columnVNodes = defaultSlots || []; return vue.createVNode("uni-picker-view", { - ref: rootRef + "ref": rootRef }, [vue.createVNode(ResizeSensor, { - initial: true, - onResize: ({ + "initial": true, + "onResize": ({ height }) => state.height = height }, null, 8, ["initial", "onResize"]), vue.createVNode("div", { - class: "uni-picker-view-wrapper" + "class": "uni-picker-view-wrapper" }, [columnVNodes])], 512); }; } @@ -4533,26 +4533,26 @@ var index$g = /* @__PURE__ */ vue.defineComponent({ state.length = flatVNode(defaultSlots).length; const padding = `${maskSize.value}px 0`; return vue.createVNode("uni-picker-view-column", { - ref: rootRef + "ref": rootRef }, [vue.createVNode("div", { - onWheel: handleWheel, - onClick: handleTap, - class: "uni-picker-view-group" + "onWheel": handleWheel, + "onClick": handleTap, + "class": "uni-picker-view-group" }, [vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { - class: ["uni-picker-view-mask", pickerViewProps.maskClass], - style: `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}` + "class": ["uni-picker-view-mask", pickerViewProps.maskClass], + "style": `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}` }), null, 16), vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { - class: ["uni-picker-view-indicator", pickerViewProps.indicatorClass], - style: pickerViewProps.indicatorStyle + "class": ["uni-picker-view-indicator", pickerViewProps.indicatorClass], + "style": pickerViewProps.indicatorStyle }), [vue.createVNode(ResizeSensor, { - initial: true, - onResize: ({ + "initial": true, + "onResize": ({ height }) => indicatorHeight.value = height }, null, 8, ["initial", "onResize"])], 16), vue.createVNode("div", { - ref: contentRef, - class: ["uni-picker-view-content", className], - style: { + "ref": contentRef, + "class": ["uni-picker-view-content", className], + "style": { padding } }, [defaultSlots], 6)], 40, ["onWheel", "onClick"])], 512); @@ -4632,15 +4632,15 @@ var index$f = /* @__PURE__ */ vue.defineComponent({ currentPercent } = state; return vue.createVNode("uni-progress", { - class: "uni-progress" + "class": "uni-progress" }, [vue.createVNode("div", { - style: outerBarStyle, - class: "uni-progress-bar" + "style": outerBarStyle, + "class": "uni-progress-bar" }, [vue.createVNode("div", { - style: innerBarStyle, - class: "uni-progress-inner-bar" + "style": innerBarStyle, + "class": "uni-progress-inner-bar" }, null, 4)], 4), showInfo ? vue.createVNode("p", { - class: "uni-progress-info" + "class": "uni-progress-info" }, [currentPercent + "%"]) : ""]); }; } @@ -4702,7 +4702,7 @@ var index$e = /* @__PURE__ */ vue.defineComponent({ useProvideRadioGroup(props2, trigger); return () => { return vue.createVNode("uni-radio-group", { - ref: rootRef + "ref": rootRef }, [slots.default && slots.default()], 512); }; } @@ -4826,14 +4826,14 @@ var index$d = /* @__PURE__ */ vue.defineComponent({ booleanAttrs } = useBooleanAttr(props2, "disabled"); return vue.createVNode("uni-radio", vue.mergeProps(booleanAttrs, { - onClick: _onClick + "onClick": _onClick }), [vue.createVNode("div", { - class: "uni-radio-wrapper" + "class": "uni-radio-wrapper" }, [vue.createVNode("div", { - class: ["uni-radio-input", { + "class": ["uni-radio-input", { "uni-radio-input-disabled": props2.disabled }], - style: radioChecked.value ? checkedStyle.value : "" + "style": radioChecked.value ? checkedStyle.value : "" }, [radioChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 18) : ""], 6), slots.default && slots.default()])], 16, ["onClick"]); }; } @@ -6235,7 +6235,7 @@ const _hoisted_9 = /* @__PURE__ */ vue.createVNode("circle", { cy: "50", r: "20", fill: "none", - style: {color: "#2bd009"}, + style: {"color": "#2bd009"}, "stroke-width": "3" }, null, -1); function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) { @@ -6366,28 +6366,28 @@ var index$c = /* @__PURE__ */ vue.defineComponent({ setBlockStyle } = state; return vue.createVNode("uni-slider", { - ref: sliderRef, - onClick: _onClick + "ref": sliderRef, + "onClick": _onClick }, [vue.createVNode("div", { - class: "uni-slider-wrapper" + "class": "uni-slider-wrapper" }, [vue.createVNode("div", { - class: "uni-slider-tap-area" + "class": "uni-slider-tap-area" }, [vue.createVNode("div", { - style: setBgColor.value, - class: "uni-slider-handle-wrapper" + "style": setBgColor.value, + "class": "uni-slider-handle-wrapper" }, [vue.createVNode("div", { - ref: sliderHandleRef, - style: setBlockBg.value, - class: "uni-slider-handle" + "ref": sliderHandleRef, + "style": setBlockBg.value, + "class": "uni-slider-handle" }, null, 4), vue.createVNode("div", { - style: setBlockStyle.value, - class: "uni-slider-thumb" + "style": setBlockStyle.value, + "class": "uni-slider-thumb" }, null, 4), vue.createVNode("div", { - style: setActiveColor.value, - class: "uni-slider-track" + "style": setActiveColor.value, + "class": "uni-slider-track" }, null, 4)], 4)]), vue.withDirectives(vue.createVNode("span", { - ref: sliderValueRef, - class: "uni-slider-value" + "ref": sliderValueRef, + "class": "uni-slider-value" }, [sliderValue.value], 512), [[vue.vShow, props2.showValue]])]), vue.createVNode("slot", null, null)], 8, ["onClick"]); }; } @@ -6954,26 +6954,26 @@ var index$b = /* @__PURE__ */ vue.defineComponent({ const defaultSlots = slots.default && slots.default(); swiperItems = flatVNode(defaultSlots); return vue.createVNode("uni-swiper", { - ref: rootRef + "ref": rootRef }, [vue.createVNode("div", { - ref: slidesWrapperRef, - class: "uni-swiper-wrapper" + "ref": slidesWrapperRef, + "class": "uni-swiper-wrapper" }, [vue.createVNode("div", { - class: "uni-swiper-slides", - style: slidesStyle.value + "class": "uni-swiper-slides", + "style": slidesStyle.value }, [vue.createVNode("div", { - ref: slideFrameRef, - class: "uni-swiper-slide-frame", - style: slideFrameStyle.value + "ref": slideFrameRef, + "class": "uni-swiper-slide-frame", + "style": slideFrameStyle.value }, [defaultSlots], 4)], 4), props2.indicatorDots && vue.createVNode("div", { - class: ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] + "class": ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] }, [swiperContexts.value.map((_, index2, array) => vue.createVNode("div", { - onClick: () => onSwiperDotClick(index2), - class: { + "onClick": () => onSwiperDotClick(index2), + "class": { "uni-swiper-dot": true, "uni-swiper-dot-active": index2 < state.current + state.displayMultipleItems && index2 >= state.current || index2 < state.current + state.displayMultipleItems - array.length }, - style: { + "style": { background: index2 === state.current ? props2.indicatorActiveColor : props2.indicatorColor } }, null, 14, ["onClick"]))], 2)], 512)], 512); @@ -6995,8 +6995,8 @@ var index$a = /* @__PURE__ */ vue.defineComponent({ const rootRef = vue.ref(null); return () => { return vue.createVNode("uni-swiper-item", { - ref: rootRef, - style: { + "ref": rootRef, + "style": { position: "absolute", width: "100%", height: "100%" @@ -7066,19 +7066,19 @@ var index$9 = /* @__PURE__ */ vue.defineComponent({ booleanAttrs } = useBooleanAttr(props2, "disabled"); return vue.createVNode("uni-switch", vue.mergeProps({ - ref: rootRef + "ref": rootRef }, booleanAttrs, { - onClick: _onClick + "onClick": _onClick }), [vue.createVNode("div", { - class: "uni-switch-wrapper" + "class": "uni-switch-wrapper" }, [vue.withDirectives(vue.createVNode("div", { - class: ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], - style: { + "class": ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], + "style": { backgroundColor: switchChecked.value ? color : "#DFDFDF", borderColor: switchChecked.value ? color : "#DFDFDF" } }, null, 6), [[vue.vShow, type === "switch"]]), vue.withDirectives(vue.createVNode("div", { - class: "uni-checkbox-input" + "class": "uni-checkbox-input" }, [switchChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 512), [[vue.vShow, type === "checkbox"]])])], 16, ["onClick"]); }; } @@ -7169,7 +7169,7 @@ var index$8 = /* @__PURE__ */ vue.defineComponent({ }); } return vue.createVNode("uni-text", { - selectable: props2.selectable + "selectable": props2.selectable }, [vue.createVNode("span", null, children)], 8, ["selectable"]); }; } @@ -7256,54 +7256,54 @@ var index$7 = /* @__PURE__ */ vue.defineComponent({ const fixMargin = String(navigator.platform).indexOf("iP") === 0 && String(navigator.vendor).indexOf("Apple") === 0 && window.matchMedia(DARK_TEST_STRING).media !== DARK_TEST_STRING; return () => { let textareaNode = props2.disabled && fixDisabledColor ? vue.createVNode("textarea", { - ref: fieldRef, - value: state.value, - tabindex: "-1", - readonly: !!props2.disabled, - maxlength: state.maxlength, - class: { + "ref": fieldRef, + "value": state.value, + "tabindex": "-1", + "readonly": !!props2.disabled, + "maxlength": state.maxlength, + "class": { "uni-textarea-textarea": true, "uni-textarea-textarea-fix-margin": fixMargin }, - style: { + "style": { overflowY: props2.autoHeight ? "hidden" : "auto" }, - onFocus: (event) => event.target.blur() + "onFocus": (event) => event.target.blur() }, null, 46, ["value", "readonly", "maxlength", "onFocus"]) : vue.createVNode("textarea", { - ref: fieldRef, - value: state.value, - disabled: !!props2.disabled, - maxlength: state.maxlength, - enterkeyhint: props2.confirmType, - class: { + "ref": fieldRef, + "value": state.value, + "disabled": !!props2.disabled, + "maxlength": state.maxlength, + "enterkeyhint": props2.confirmType, + "class": { "uni-textarea-textarea": true, "uni-textarea-textarea-fix-margin": fixMargin }, - style: { + "style": { overflowY: props2.autoHeight ? "hidden" : "auto" }, - onKeydown: onKeyDownEnter, - onKeyup: onKeyUpEnter + "onKeydown": onKeyDownEnter, + "onKeyup": onKeyUpEnter }, null, 46, ["value", "disabled", "maxlength", "enterkeyhint", "onKeydown", "onKeyup"]); return vue.createVNode("uni-textarea", { - ref: rootRef + "ref": rootRef }, [vue.createVNode("div", { - class: "uni-textarea-wrapper" + "class": "uni-textarea-wrapper" }, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { - style: props2.placeholderStyle, - class: ["uni-textarea-placeholder", props2.placeholderClass] + "style": props2.placeholderStyle, + "class": ["uni-textarea-placeholder", props2.placeholderClass] }), [props2.placeholder], 16), [[vue.vShow, !state.value.length]]), vue.createVNode("div", { - ref: lineRef, - class: "uni-textarea-line" + "ref": lineRef, + "class": "uni-textarea-line" }, [" "], 512), vue.createVNode("div", { - class: "uni-textarea-compute" + "class": "uni-textarea-compute" }, [valueCompute.value.map((item) => vue.createVNode("div", null, [item.trim() ? item : "."])), vue.createVNode(ResizeSensor, { - initial: true, - onResize + "initial": true, + "onResize": onResize }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? vue.createVNode("form", { - action: "", - onSubmit: () => false, - class: "uni-input-form" + "action": "", + "onSubmit": () => false, + "class": "uni-input-form" }, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); }; } @@ -7322,7 +7322,7 @@ var index$6 = /* @__PURE__ */ vue.defineComponent({ const hoverClass = props2.hoverClass; if (hoverClass && hoverClass !== "none") { return vue.createVNode("uni-view", vue.mergeProps({ - class: hovering.value ? hoverClass : "" + "class": hovering.value ? hoverClass : "" }, binding), [slots.default && slots.default()], 16); } return vue.createVNode("uni-view", null, [slots.default && slots.default()]); @@ -7994,144 +7994,144 @@ var index$5 = /* @__PURE__ */ vue.defineComponent({ useContext(); return () => { return vue.createVNode("uni-video", { - ref: rootRef, - id: props2.id + "ref": rootRef, + "id": props2.id }, [vue.createVNode("div", { - ref: containerRef, - class: "uni-video-container", - onTouchstart, - onTouchend, - onTouchmove, - onFullscreenchange: vue.withModifiers(onFullscreenChange, ["stop"]), - onWebkitfullscreenchange: vue.withModifiers(($event) => onFullscreenChange($event, true), ["stop"]) + "ref": containerRef, + "class": "uni-video-container", + "onTouchstart": onTouchstart, + "onTouchend": onTouchend, + "onTouchmove": onTouchmove, + "onFullscreenchange": vue.withModifiers(onFullscreenChange, ["stop"]), + "onWebkitfullscreenchange": vue.withModifiers(($event) => onFullscreenChange($event, true), ["stop"]) }, [vue.createVNode("video", vue.mergeProps({ - ref: videoRef, - style: { + "ref": videoRef, + "style": { "object-fit": props2.objectFit }, - muted: !!props2.muted, - loop: !!props2.loop, - src: videoState.src, - poster: props2.poster, - autoplay: !!props2.autoplay + "muted": !!props2.muted, + "loop": !!props2.loop, + "src": videoState.src, + "poster": props2.poster, + "autoplay": !!props2.autoplay }, videoAttrs.value, { - class: "uni-video-video", + "class": "uni-video-video", "webkit-playsinline": true, - playsinline: true, - onClick: toggleControls, - onDurationchange: onDurationChange, - onLoadedmetadata: onLoadedMetadata, - onProgress, - onWaiting, - onError: onVideoError, - onPlay, - onPause, - onEnded, - onTimeupdate: (event) => { + "playsinline": true, + "onClick": toggleControls, + "onDurationchange": onDurationChange, + "onLoadedmetadata": onLoadedMetadata, + "onProgress": onProgress, + "onWaiting": onWaiting, + "onError": onVideoError, + "onPlay": onPlay, + "onPause": onPause, + "onEnded": onEnded, + "onTimeupdate": (event) => { onTimeUpdate(event); updateDanmu(event); }, - onWebkitbeginfullscreen: () => emitFullscreenChange(true), - onX5videoenterfullscreen: () => emitFullscreenChange(true), - onWebkitendfullscreen: () => emitFullscreenChange(false), - onX5videoexitfullscreen: () => emitFullscreenChange(false) + "onWebkitbeginfullscreen": () => emitFullscreenChange(true), + "onX5videoenterfullscreen": () => emitFullscreenChange(true), + "onWebkitendfullscreen": () => emitFullscreenChange(false), + "onX5videoexitfullscreen": () => emitFullscreenChange(false) }), null, 16, ["muted", "loop", "src", "poster", "autoplay", "webkit-playsinline", "playsinline", "onClick", "onDurationchange", "onLoadedmetadata", "onProgress", "onWaiting", "onError", "onPlay", "onPause", "onEnded", "onTimeupdate", "onWebkitbeginfullscreen", "onX5videoenterfullscreen", "onWebkitendfullscreen", "onX5videoexitfullscreen"]), vue.withDirectives(vue.createVNode("div", { - class: "uni-video-bar uni-video-bar-full", - onClick: vue.withModifiers(() => { + "class": "uni-video-bar uni-video-bar-full", + "onClick": vue.withModifiers(() => { }, ["stop"]) }, [vue.createVNode("div", { - class: "uni-video-controls" + "class": "uni-video-controls" }, [vue.withDirectives(vue.createVNode("div", { - class: { + "class": { "uni-video-control-button": true, "uni-video-control-button-play": !videoState.playing, "uni-video-control-button-pause": videoState.playing }, - onClick: vue.withModifiers(toggle, ["stop"]) + "onClick": vue.withModifiers(toggle, ["stop"]) }, null, 10, ["onClick"]), [[vue.vShow, props2.showPlayBtn]]), vue.createVNode("div", { - class: "uni-video-current-time" + "class": "uni-video-current-time" }, [formatTime(videoState.currentTime)]), vue.createVNode("div", { - ref: progressRef, - class: "uni-video-progress-container", - onClick: vue.withModifiers(clickProgress, ["stop"]) + "ref": progressRef, + "class": "uni-video-progress-container", + "onClick": vue.withModifiers(clickProgress, ["stop"]) }, [vue.createVNode("div", { - class: "uni-video-progress" + "class": "uni-video-progress" }, [vue.createVNode("div", { - style: { + "style": { width: videoState.buffered + "%" }, - class: "uni-video-progress-buffered" + "class": "uni-video-progress-buffered" }, null, 4), vue.createVNode("div", { - ref: ballRef, - style: { + "ref": ballRef, + "style": { left: videoState.progress + "%" }, - class: "uni-video-ball" + "class": "uni-video-ball" }, [vue.createVNode("div", { - class: "uni-video-inner" + "class": "uni-video-inner" }, null)], 4)])], 8, ["onClick"]), vue.createVNode("div", { - class: "uni-video-duration" + "class": "uni-video-duration" }, [formatTime(Number(props2.duration) || videoState.duration)])]), vue.withDirectives(vue.createVNode("div", { - class: { + "class": { "uni-video-danmu-button": true, "uni-video-danmu-button-active": danmuState.enable }, - onClick: vue.withModifiers(toggleDanmu, ["stop"]) + "onClick": vue.withModifiers(toggleDanmu, ["stop"]) }, [t2("uni.video.danmu")], 10, ["onClick"]), [[vue.vShow, props2.danmuBtn]]), vue.withDirectives(vue.createVNode("div", { - class: { + "class": { "uni-video-fullscreen": true, "uni-video-type-fullscreen": fullscreenState.fullscreen }, - onClick: vue.withModifiers(() => toggleFullscreen(!fullscreenState.fullscreen), ["stop"]) + "onClick": vue.withModifiers(() => toggleFullscreen(!fullscreenState.fullscreen), ["stop"]) }, null, 10, ["onClick"]), [[vue.vShow, props2.showFullscreenBtn]])], 8, ["onClick"]), [[vue.vShow, controlsState.controlsShow]]), vue.withDirectives(vue.createVNode("div", { - ref: danmuRef, - style: "z-index: 0;", - class: "uni-video-danmu" + "ref": danmuRef, + "style": "z-index: 0;", + "class": "uni-video-danmu" }, null, 512), [[vue.vShow, videoState.start && danmuState.enable]]), controlsState.centerPlayBtnShow && vue.createVNode("div", { - class: "uni-video-cover", - onClick: vue.withModifiers(() => { + "class": "uni-video-cover", + "onClick": vue.withModifiers(() => { }, ["stop"]) }, [vue.createVNode("div", { - class: "uni-video-cover-play-button", - onClick: vue.withModifiers(play, ["stop"]) + "class": "uni-video-cover-play-button", + "onClick": vue.withModifiers(play, ["stop"]) }, null, 8, ["onClick"]), vue.createVNode("p", { - class: "uni-video-cover-duration" + "class": "uni-video-cover-duration" }, [formatTime(Number(props2.duration) || videoState.duration)])], 8, ["onClick"]), vue.createVNode("div", { - class: { + "class": { "uni-video-toast": true, "uni-video-toast-volume": gestureState.gestureType === "volume" } }, [vue.createVNode("div", { - class: "uni-video-toast-title" + "class": "uni-video-toast-title" }, [t2("uni.video.volume")]), vue.createVNode("svg", { - class: "uni-video-toast-icon", - width: "200px", - height: "200px", - viewBox: "0 0 1024 1024", - version: "1.1", - xmlns: "http://www.w3.org/2000/svg" + "class": "uni-video-toast-icon", + "width": "200px", + "height": "200px", + "viewBox": "0 0 1024 1024", + "version": "1.1", + "xmlns": "http://www.w3.org/2000/svg" }, [vue.createVNode("path", { - d: "M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z" + "d": "M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z" }, null)]), vue.createVNode("div", { - class: "uni-video-toast-value" + "class": "uni-video-toast-value" }, [vue.createVNode("div", { - style: { + "style": { width: gestureState.volumeNew * 100 + "%" }, - class: "uni-video-toast-value-content" + "class": "uni-video-toast-value-content" }, [vue.createVNode("div", { - class: "uni-video-toast-volume-grids" + "class": "uni-video-toast-volume-grids" }, [vue.renderList(10, () => vue.createVNode("div", { - class: "uni-video-toast-volume-grids-item" + "class": "uni-video-toast-volume-grids-item" }, null))])], 4)])], 2), vue.createVNode("div", { - class: { + "class": { "uni-video-toast": true, "uni-video-toast-progress": gestureState.gestureType === "progress" } }, [vue.createVNode("div", { - class: "uni-video-toast-title" + "class": "uni-video-toast-title" }, [formatTime(gestureState.currentTimeNew), " / ", formatTime(videoState.duration)])], 2), vue.createVNode("div", { - class: "uni-video-slots" + "class": "uni-video-slots" }, [slots.default && slots.default()])], 40, ["onTouchstart", "onTouchend", "onTouchmove", "onFullscreenchange", "onWebkitfullscreenchange"])], 8, ["id"]); }; } @@ -8161,15 +8161,15 @@ var index$4 = /* @__PURE__ */ vue.defineComponent({ }); return () => { return vue.createVNode(vue.Fragment, null, [vue.createVNode("uni-web-view", vue.mergeProps($listeners.value, $excludeAttrs.value, { - ref: rootRef + "ref": rootRef }), [vue.createVNode(ResizeSensor, { - onResize: _resize + "onResize": _resize }, null, 8, ["onResize"])], 16), vue.createVNode(vue.Teleport, { - to: "body" + "to": "body" }, { default: () => [vue.createVNode("iframe", vue.mergeProps({ - ref: iframeRef, - src: getRealPath(props2.src) + "ref": iframeRef, + "src": getRealPath(props2.src) }, $attrs.value), null, 16, ["src"])] })]); }; @@ -8715,13 +8715,13 @@ var MapLocation = /* @__PURE__ */ vue.defineComponent({ }); return () => { return state.latitude ? vue.createVNode(MapMarker, vue.mergeProps({ - anchor: { + "anchor": { x: 0.5, y: 0.5 }, - width: "44", - height: "44", - iconPath: ICON_PATH + "width": "44", + "height": "44", + "iconPath": ICON_PATH }, state), null, 16, ["iconPath"]) : null; }; } @@ -8844,15 +8844,15 @@ var index$3 = /* @__PURE__ */ vue.defineComponent({ } = useMap(props2); return () => { return vue.createVNode("uni-map", { - ref: rootRef, - id: props2.id + "ref": rootRef, + "id": props2.id }, [vue.createVNode("div", { - ref: mapRef, - style: "width: 100%; height: 100%; position: relative; overflow: hidden" + "ref": mapRef, + "style": "width: 100%; height: 100%; position: relative; overflow: hidden" }, null, 512), props2.markers.map((item) => item.id && vue.createVNode(MapMarker, vue.mergeProps({ - key: item.id + "key": item.id }, item), null, 16)), props2.polyline.map((item) => vue.createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => vue.createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => vue.createVNode(MapControl, item, null, 16)), props2.showLocation && vue.createVNode(MapLocation, null, null), vue.createVNode("div", { - style: "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" + "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" }, [slots.default && slots.default()])], 8, ["id"]); }; } @@ -9232,16 +9232,16 @@ var TabBar = /* @__PURE__ */ vue.defineComponent({ return () => { const tabBarItemsTsx = createTabBarItemsTsx(tabBar2, onSwitchTab); return vue.createVNode("uni-tabbar", { - class: "uni-tabbar-" + tabBar2.position + "class": "uni-tabbar-" + tabBar2.position }, [vue.createVNode("div", { - class: "uni-tabbar", - style: style.value + "class": "uni-tabbar", + "style": style.value }, [vue.createVNode("div", { - class: "uni-tabbar-border", - style: borderStyle.value + "class": "uni-tabbar-border", + "style": borderStyle.value }, null, 4), tabBarItemsTsx], 4), vue.createVNode("div", { - class: "uni-placeholder", - style: placeholderStyle.value + "class": "uni-placeholder", + "style": placeholderStyle.value }, null, 4)], 2); }; } @@ -9363,9 +9363,9 @@ function createTabBarItemsTsx(tabBar2, onSwitchTab) { } function createTabBarItemTsx(color, iconPath, tabBarItem, tabBar2, index2, onSwitchTab) { return vue.createVNode("div", { - key: index2, - class: "uni-tabbar__item", - onClick: onSwitchTab(tabBarItem, index2) + "key": index2, + "class": "uni-tabbar__item", + "onClick": onSwitchTab(tabBarItem, index2) }, [createTabBarItemBdTsx(color, iconPath || "", tabBarItem, tabBar2)], 8, ["onClick"]); } function createTabBarItemBdTsx(color, iconPath, tabBarItem, tabBar2) { @@ -9373,8 +9373,8 @@ function createTabBarItemBdTsx(color, iconPath, tabBarItem, tabBar2) { height } = tabBar2; return vue.createVNode("div", { - class: "uni-tabbar__bd", - style: { + "class": "uni-tabbar__bd", + "style": { height } }, [iconPath && createTabBarItemIconTsx(iconPath, tabBarItem, tabBar2), tabBarItem.text && createTabBarItemTextTsx(color, tabBarItem, tabBar2)], 4); @@ -9394,10 +9394,10 @@ function createTabBarItemIconTsx(iconPath, tabBarItem, tabBar2) { height: iconWidth }; return vue.createVNode("div", { - class: clazz2, - style + "class": clazz2, + "style": style }, [type !== "midButton" && vue.createVNode("img", { - src: getRealPath(iconPath) + "src": getRealPath(iconPath) }, null, 8, ["src"]), redDot && createTabBarItemRedDotTsx(tabBarItem.badge)], 6); } function createTabBarItemTextTsx(color, tabBarItem, tabBar2) { @@ -9417,14 +9417,14 @@ function createTabBarItemTextTsx(color, tabBarItem, tabBar2) { marginTop: !iconPath ? "inherit" : spacing }; return vue.createVNode("div", { - class: "uni-tabbar__label", - style + "class": "uni-tabbar__label", + "style": style }, [text, redDot && !iconPath && createTabBarItemRedDotTsx(tabBarItem.badge)], 4); } function createTabBarItemRedDotTsx(badge) { const clazz2 = "uni-tabbar__reddot" + (badge ? " uni-tabbar__badge" : ""); return vue.createVNode("div", { - class: clazz2 + "class": clazz2 }, [badge], 2); } function createTabBarMidButtonTsx(color, iconPath, midButton, tabBar2, index2, onSwitchTab) { @@ -9435,26 +9435,26 @@ function createTabBarMidButtonTsx(color, iconPath, midButton, tabBar2, index2, o iconWidth } = midButton; return vue.createVNode("div", { - key: index2, - class: "uni-tabbar__item", - style: { + "key": index2, + "class": "uni-tabbar__item", + "style": { flex: "0 0 " + width, position: "relative" }, - onClick: onSwitchTab(midButton, index2) + "onClick": onSwitchTab(midButton, index2) }, [vue.createVNode("div", { - class: "uni-tabbar__mid", - style: { + "class": "uni-tabbar__mid", + "style": { width, height, backgroundImage: backgroundImage ? "url('" + getRealPath(backgroundImage) + "')" : "none" } }, [iconPath && vue.createVNode("img", { - style: { + "style": { width: iconWidth, height: iconWidth }, - src: getRealPath(iconPath) + "src": getRealPath(iconPath) }, null, 12, ["src"])], 4), createTabBarItemBdTsx(color, iconPath, midButton, tabBar2)], 12, ["onClick"]); } var LayoutComponent = vue.defineComponent({ @@ -9472,7 +9472,7 @@ var LayoutComponent = vue.defineComponent({ const layoutTsx = createLayoutTsx(keepAliveRoute); const tabBarTsx = __UNI_FEATURE_TABBAR__ && createTabBarTsx(showTabBar); return vue.createVNode("uni-app", { - class: clazz2.value + "class": clazz2.value }, [layoutTsx, tabBarTsx], 2); }; } @@ -9631,7 +9631,7 @@ var PageHead = /* @__PURE__ */ vue.defineComponent({ const rightButtonsTsx = __UNI_FEATURE_NAVIGATIONBAR_BUTTONS__ ? createButtonsTsx(buttons.right) : []; const type = navigationBar.type || "default"; const placeholderTsx = type !== "transparent" && type !== "float" && vue.createVNode("div", { - class: { + "class": { "uni-placeholder": true, "uni-placeholder-titlePenetrate": navigationBar.titlePenetrate } @@ -9639,13 +9639,13 @@ var PageHead = /* @__PURE__ */ vue.defineComponent({ return vue.createVNode("uni-page-head", { "uni-page-head-type": type }, [vue.createVNode("div", { - ref: headRef, - class: clazz2.value, - style: style.value + "ref": headRef, + "class": clazz2.value, + "style": style.value }, [vue.createVNode("div", { - class: "uni-page-head-hd" + "class": "uni-page-head-hd" }, [backButtonTsx, ...leftButtonsTsx]), createPageHeadBdTsx(navigationBar, searchInput), vue.createVNode("div", { - class: "uni-page-head-ft" + "class": "uni-page-head-ft" }, [...rightButtonsTsx])], 6), placeholderTsx], 8, ["uni-page-head-type"]); }; } @@ -9657,8 +9657,8 @@ function createBackButtonTsx(pageMeta) { } = pageMeta; if (navigationBar.backButton && !isQuit) { return vue.createVNode("div", { - class: "uni-page-head-btn", - onClick: onPageHeadBackButton + "class": "uni-page-head-btn", + "onClick": onPageHeadBackButton }, [createSvgIconVNode(ICON_PATH_BACK, navigationBar.type === "transparent" ? "#fff" : navigationBar.titleColor, 27)], 8, ["onClick"]); } } @@ -9673,15 +9673,15 @@ function createButtonsTsx(btns) { iconStyle }, index2) => { return vue.createVNode("div", { - key: index2, - class: btnClass, - style: btnStyle, - onClick, + "key": index2, + "class": btnClass, + "style": btnStyle, + "onClick": onClick, "badge-text": badgeText }, [btnIconPath ? createSvgIconVNode(btnIconPath, iconStyle.color, iconStyle.fontSize) : vue.createVNode("i", { - class: "uni-btn-icon", - style: iconStyle, - innerHTML: btnText + "class": "uni-btn-icon", + "style": iconStyle, + "innerHTML": btnText }, null, 12, ["innerHTML"])], 14, ["onClick", "badge-text"]); }); } @@ -9699,18 +9699,18 @@ function createPageHeadTitleTextTsx({ titleImage }) { return vue.createVNode("div", { - class: "uni-page-head-bd" + "class": "uni-page-head-bd" }, [vue.createVNode("div", { - style: { + "style": { fontSize: titleSize, opacity: type === "transparent" ? 0 : 1 }, - class: "uni-page-head__title" + "class": "uni-page-head__title" }, [loading ? vue.createVNode("i", { - class: "uni-loading" + "class": "uni-loading" }, null) : titleImage ? vue.createVNode("img", { - src: titleImage, - class: "uni-page-head__title_image" + "src": titleImage, + "class": "uni-page-head__title_image" }, null, 8, ["src"]) : titleText], 4)]); } function createPageHeadSearchInputTsx(navigationBar, { @@ -9739,40 +9739,40 @@ function createPageHeadSearchInputTsx(navigationBar, { }; const placeholderClass = ["uni-page-head-search-placeholder", `uni-page-head-search-placeholder-${focus.value || text.value ? "left" : align}`]; return vue.createVNode("div", { - class: "uni-page-head-search", - style: searchStyle + "class": "uni-page-head-search", + "style": searchStyle }, [vue.createVNode("div", { - style: { + "style": { color: placeholderColor }, - class: placeholderClass + "class": placeholderClass }, [vue.createVNode("div", { - class: "uni-page-head-search-icon" + "class": "uni-page-head-search-icon" }, [createSvgIconVNode(ICON_PATH_SEARCH, placeholderColor, 20)]), text.value || composing.value ? "" : placeholder], 6), disabled ? vue.createVNode(Input, { - disabled: true, - style: { + "disabled": true, + "style": { color }, "placeholder-style": { color: placeholderColor }, - class: "uni-page-head-search-input", + "class": "uni-page-head-search-input", "confirm-type": "search", - onClick + "onClick": onClick }, null, 8, ["style", "placeholder-style", "onClick"]) : vue.createVNode(Input, { - focus: autoFocus, - style: { + "focus": autoFocus, + "style": { color }, "placeholder-style": { color: placeholderColor }, - class: "uni-page-head-search-input", + "class": "uni-page-head-search-input", "confirm-type": "search", - onFocus, - onBlur, - onInput, - onKeyup + "onFocus": onFocus, + "onBlur": onBlur, + "onInput": onInput, + "onKeyup": onKeyup }, null, 8, ["focus", "style", "placeholder-style", "onFocus", "onBlur", "onInput", "onKeyup"])], 4); } function onPageHeadBackButton() { @@ -10017,7 +10017,7 @@ function createPageRefreshTsx(refreshRef, pageMeta) { return null; } return vue.createVNode(_sfc_main, { - ref: refreshRef + "ref": refreshRef }, null, 512); } var index$2 = vue.defineComponent({ @@ -10044,8 +10044,8 @@ var index$1 = /* @__PURE__ */ vue.defineComponent({ t: t2 } = useI18n(); return () => vue.createVNode("div", { - class: "uni-async-error", - onClick: reload + "class": "uni-async-error", + "onClick": reload }, [t2("uni.async.error")], 8, ["onClick"]); } }); diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index ca4c4781089..eba7d0ef9c2 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -5000,7 +5000,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) { createVNode("audio", { ref: "audio", loop: $props.loop, - style: {display: "none"} + style: {"display": "none"} }, null, 8, ["loop"]), createVNode("div", _hoisted_1$6, [ createVNode("div", { @@ -5213,12 +5213,12 @@ var index$m = /* @__PURE__ */ defineComponent({ const booleanAttrs = useBooleanAttr(props2, "disabled"); if (hoverClass && hoverClass !== "none") { return createVNode("uni-button", mergeProps({ - onClick, - class: hovering.value ? hoverClass : "" + "onClick": onClick, + "class": hovering.value ? hoverClass : "" }, binding, booleanAttrs), [slots.default && slots.default()], 16, ["onClick"]); } return createVNode("uni-button", mergeProps({ - onClick + "onClick": onClick }, booleanAttrs), [slots.default && slots.default()], 16, ["onClick"]); }; } @@ -5240,12 +5240,12 @@ var ResizeSensor = /* @__PURE__ */ defineComponent({ const update = useResizeSensorUpdate(rootRef, emit2, reset); useResizeSensorLifecycle(rootRef, props2, update, reset); return () => createVNode("uni-resize-sensor", { - ref: rootRef, - onAnimationstartOnce: update + "ref": rootRef, + "onAnimationstartOnce": update }, [createVNode("div", { - onScroll: update + "onScroll": update }, [createVNode("div", null, null)], 40, ["onScroll"]), createVNode("div", { - onScroll: update + "onScroll": update }, [createVNode("div", null, null)], 40, ["onScroll"])], 40, ["onAnimationstartOnce"]); } }); @@ -5936,7 +5936,7 @@ const _hoisted_1$5 = { width: "300", height: "150" }; -const _hoisted_2$2 = {style: {position: "absolute", top: "0", left: "0", width: "100%", height: "100%", overflow: "hidden"}}; +const _hoisted_2$2 = {style: {"position": "absolute", "top": "0", "left": "0", "width": "100%", "height": "100%", "overflow": "hidden"}}; function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) { const _component_ResizeSensor = resolveComponent("ResizeSensor"); return openBlock(), createBlock("uni-canvas", mergeProps({ @@ -6028,7 +6028,7 @@ var index$l = /* @__PURE__ */ defineComponent({ useProvideCheckGroup(props2, trigger); return () => { return createVNode("uni-checkbox-group", { - ref: rootRef + "ref": rootRef }, [slots.default && slots.default()], 512); }; } @@ -6104,10 +6104,10 @@ var index$k = /* @__PURE__ */ defineComponent({ } }); return () => createVNode("uni-label", { - class: { + "class": { "uni-label-pointer": pointer }, - onClick: _onClick + "onClick": _onClick }, [slots.default && slots.default()], 10, ["onClick"]); } }); @@ -6185,11 +6185,11 @@ var index$j = /* @__PURE__ */ defineComponent({ booleanAttrs } = useBooleanAttr(props2, "disabled"); return createVNode("uni-checkbox", mergeProps(booleanAttrs, { - onClick: _onClick + "onClick": _onClick }), [createVNode("div", { - class: "uni-checkbox-wrapper" + "class": "uni-checkbox-wrapper" }, [createVNode("div", { - class: ["uni-checkbox-input", { + "class": ["uni-checkbox-input", { "uni-checkbox-input-disabled": props2.disabled }] }, [checkboxChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 2), slots.default && slots.default()])], 16, ["onClick"]); @@ -7009,9 +7009,9 @@ var index$i = /* @__PURE__ */ defineComponent({ useKeyboard$1(props2, rootRef); return () => { return createVNode("uni-editor", { - ref: rootRef, - id: props2.id, - class: "ql-container" + "ref": rootRef, + "id": props2.id, + "class": "ql-container" }, null, 8, ["id"]); }; } @@ -7147,14 +7147,14 @@ var index$g = /* @__PURE__ */ defineComponent({ modeStyle } = state2; return createVNode("uni-image", { - ref: rootRef + "ref": rootRef }, [createVNode("div", { - style: modeStyle + "style": modeStyle }, null, 4), imgSrc ? createVNode("img", { - src: imgSrc, - draggable: props2.draggable + "src": imgSrc, + "draggable": props2.draggable }, null, 8, ["src", "draggable"]) : createVNode("img", null, null), FIX_MODES[mode] ? createVNode(ResizeSensor, { - onResize: fixSize + "onResize": fixSize }, null, 8, ["onResize"]) : createVNode("span", null, null)], 512); }; } @@ -7719,38 +7719,38 @@ var Input = /* @__PURE__ */ defineComponent({ } return () => { let inputNode = props2.disabled && fixDisabledColor ? createVNode("input", { - ref: fieldRef, - value: state2.value, - tabindex: "-1", - readonly: !!props2.disabled, - type: type.value, - maxlength: state2.maxlength, - step: step.value, - class: "uni-input-input", - onFocus: (event) => event.target.blur() + "ref": fieldRef, + "value": state2.value, + "tabindex": "-1", + "readonly": !!props2.disabled, + "type": type.value, + "maxlength": state2.maxlength, + "step": step.value, + "class": "uni-input-input", + "onFocus": (event) => event.target.blur() }, null, 40, ["value", "readonly", "type", "maxlength", "step", "onFocus"]) : createVNode("input", { - ref: fieldRef, - value: state2.value, - disabled: !!props2.disabled, - type: type.value, - maxlength: state2.maxlength, - step: step.value, - enterkeyhint: props2.confirmType, - class: "uni-input-input", - autocomplete: "off", - onKeyup: onKeyUpEnter + "ref": fieldRef, + "value": state2.value, + "disabled": !!props2.disabled, + "type": type.value, + "maxlength": state2.maxlength, + "step": step.value, + "enterkeyhint": props2.confirmType, + "class": "uni-input-input", + "autocomplete": "off", + "onKeyup": onKeyUpEnter }, null, 40, ["value", "disabled", "type", "maxlength", "step", "enterkeyhint", "onKeyup"]); return createVNode("uni-input", { - ref: rootRef + "ref": rootRef }, [createVNode("div", { - class: "uni-input-wrapper" + "class": "uni-input-wrapper" }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { - style: props2.placeholderStyle, - class: ["uni-input-placeholder", props2.placeholderClass] + "style": props2.placeholderStyle, + "class": ["uni-input-placeholder", props2.placeholderClass] }), [props2.placeholder], 16), [[vShow, !(state2.value.length || !valid.value)]]), props2.confirmType === "search" ? createVNode("form", { - action: "", - onSubmit: () => false, - class: "uni-input-form" + "action": "", + "onSubmit": () => false, + "class": "uni-input-form" }, [inputNode], 40, ["onSubmit"]) : inputNode])], 512); }; } @@ -7822,9 +7822,9 @@ var MovableArea = /* @__PURE__ */ defineComponent({ const defaultSlots = slots.default && slots.default(); movableViewItems = defaultSlots || []; return createVNode("uni-movable-area", mergeProps({ - ref: rootRef + "ref": rootRef }, $attrs.value, $excludeAttrs.value, _listeners), [createVNode(ResizeSensor, { - onReize: movableAreaEvents._resize + "onReize": movableAreaEvents._resize }, null, 8, ["onReize"]), movableViewItems], 16); }; } @@ -8434,9 +8434,9 @@ var MovableView = /* @__PURE__ */ defineComponent({ } = useMovableViewState(props2, trigger, rootRef); return () => { return createVNode("uni-movable-view", { - ref: rootRef + "ref": rootRef }, [createVNode(ResizeSensor, { - onResize: setParent + "onResize": setParent }, null, 8, ["onResize"]), slots.default && slots.default()], 512); }; } @@ -9198,14 +9198,14 @@ var index$f = /* @__PURE__ */ defineComponent({ const defaultSlots = slots.default && slots.default(); columnVNodes = columnVNodes = defaultSlots || []; return createVNode("uni-picker-view", { - ref: rootRef + "ref": rootRef }, [createVNode(ResizeSensor, { - initial: true, - onResize: ({ + "initial": true, + "onResize": ({ height }) => state2.height = height }, null, 8, ["initial", "onResize"]), createVNode("div", { - class: "uni-picker-view-wrapper" + "class": "uni-picker-view-wrapper" }, [columnVNodes])], 512); }; } @@ -10061,26 +10061,26 @@ var index$e = /* @__PURE__ */ defineComponent({ state2.length = flatVNode(defaultSlots).length; const padding = `${maskSize.value}px 0`; return createVNode("uni-picker-view-column", { - ref: rootRef + "ref": rootRef }, [createVNode("div", { - onWheel: handleWheel, - onClick: handleTap, - class: "uni-picker-view-group" + "onWheel": handleWheel, + "onClick": handleTap, + "class": "uni-picker-view-group" }, [createVNode("div", mergeProps(scopedAttrsState.attrs, { - class: ["uni-picker-view-mask", pickerViewProps.maskClass], - style: `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}` + "class": ["uni-picker-view-mask", pickerViewProps.maskClass], + "style": `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}` }), null, 16), createVNode("div", mergeProps(scopedAttrsState.attrs, { - class: ["uni-picker-view-indicator", pickerViewProps.indicatorClass], - style: pickerViewProps.indicatorStyle + "class": ["uni-picker-view-indicator", pickerViewProps.indicatorClass], + "style": pickerViewProps.indicatorStyle }), [createVNode(ResizeSensor, { - initial: true, - onResize: ({ + "initial": true, + "onResize": ({ height }) => indicatorHeight.value = height }, null, 8, ["initial", "onResize"])], 16), createVNode("div", { - ref: contentRef, - class: ["uni-picker-view-content", className], - style: { + "ref": contentRef, + "class": ["uni-picker-view-content", className], + "style": { padding } }, [defaultSlots], 6)], 40, ["onWheel", "onClick"])], 512); @@ -10160,15 +10160,15 @@ var index$d = /* @__PURE__ */ defineComponent({ currentPercent } = state2; return createVNode("uni-progress", { - class: "uni-progress" + "class": "uni-progress" }, [createVNode("div", { - style: outerBarStyle, - class: "uni-progress-bar" + "style": outerBarStyle, + "class": "uni-progress-bar" }, [createVNode("div", { - style: innerBarStyle, - class: "uni-progress-inner-bar" + "style": innerBarStyle, + "class": "uni-progress-inner-bar" }, null, 4)], 4), showInfo ? createVNode("p", { - class: "uni-progress-info" + "class": "uni-progress-info" }, [currentPercent + "%"]) : ""]); }; } @@ -10230,7 +10230,7 @@ var index$c = /* @__PURE__ */ defineComponent({ useProvideRadioGroup(props2, trigger); return () => { return createVNode("uni-radio-group", { - ref: rootRef + "ref": rootRef }, [slots.default && slots.default()], 512); }; } @@ -10360,14 +10360,14 @@ var index$b = /* @__PURE__ */ defineComponent({ booleanAttrs } = useBooleanAttr(props2, "disabled"); return createVNode("uni-radio", mergeProps(booleanAttrs, { - onClick: _onClick + "onClick": _onClick }), [createVNode("div", { - class: "uni-radio-wrapper" + "class": "uni-radio-wrapper" }, [createVNode("div", { - class: ["uni-radio-input", { + "class": ["uni-radio-input", { "uni-radio-input-disabled": props2.disabled }], - style: radioChecked.value ? checkedStyle.value : "" + "style": radioChecked.value ? checkedStyle.value : "" }, [radioChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 18) : ""], 6), slots.default && slots.default()])], 16, ["onClick"]); }; } @@ -11773,7 +11773,7 @@ const _hoisted_9 = /* @__PURE__ */ createVNode("circle", { cy: "50", r: "20", fill: "none", - style: {color: "#2bd009"}, + style: {"color": "#2bd009"}, "stroke-width": "3" }, null, -1); function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) { @@ -11907,28 +11907,28 @@ var index$a = /* @__PURE__ */ defineComponent({ setBlockStyle } = state2; return createVNode("uni-slider", { - ref: sliderRef, - onClick: _onClick + "ref": sliderRef, + "onClick": _onClick }, [createVNode("div", { - class: "uni-slider-wrapper" + "class": "uni-slider-wrapper" }, [createVNode("div", { - class: "uni-slider-tap-area" + "class": "uni-slider-tap-area" }, [createVNode("div", { - style: setBgColor.value, - class: "uni-slider-handle-wrapper" + "style": setBgColor.value, + "class": "uni-slider-handle-wrapper" }, [createVNode("div", { - ref: sliderHandleRef, - style: setBlockBg.value, - class: "uni-slider-handle" + "ref": sliderHandleRef, + "style": setBlockBg.value, + "class": "uni-slider-handle" }, null, 4), createVNode("div", { - style: setBlockStyle.value, - class: "uni-slider-thumb" + "style": setBlockStyle.value, + "class": "uni-slider-thumb" }, null, 4), createVNode("div", { - style: setActiveColor.value, - class: "uni-slider-track" + "style": setActiveColor.value, + "class": "uni-slider-track" }, null, 4)], 4)]), withDirectives(createVNode("span", { - ref: sliderValueRef, - class: "uni-slider-value" + "ref": sliderValueRef, + "class": "uni-slider-value" }, [sliderValue.value], 512), [[vShow, props2.showValue]])]), createVNode("slot", null, null)], 8, ["onClick"]); }; } @@ -12604,26 +12604,26 @@ var Swiper = /* @__PURE__ */ defineComponent({ const defaultSlots = slots.default && slots.default(); swiperItems = flatVNode(defaultSlots); return createVNode("uni-swiper", { - ref: rootRef + "ref": rootRef }, [createVNode("div", { - ref: slidesWrapperRef, - class: "uni-swiper-wrapper" + "ref": slidesWrapperRef, + "class": "uni-swiper-wrapper" }, [createVNode("div", { - class: "uni-swiper-slides", - style: slidesStyle.value + "class": "uni-swiper-slides", + "style": slidesStyle.value }, [createVNode("div", { - ref: slideFrameRef, - class: "uni-swiper-slide-frame", - style: slideFrameStyle.value + "ref": slideFrameRef, + "class": "uni-swiper-slide-frame", + "style": slideFrameStyle.value }, [defaultSlots], 4)], 4), props2.indicatorDots && createVNode("div", { - class: ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] + "class": ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] }, [swiperContexts.value.map((_, index2, array) => createVNode("div", { - onClick: () => onSwiperDotClick(index2), - class: { + "onClick": () => onSwiperDotClick(index2), + "class": { "uni-swiper-dot": true, "uni-swiper-dot-active": index2 < state2.current + state2.displayMultipleItems && index2 >= state2.current || index2 < state2.current + state2.displayMultipleItems - array.length }, - style: { + "style": { background: index2 === state2.current ? props2.indicatorActiveColor : props2.indicatorColor } }, null, 14, ["onClick"]))], 2)], 512)], 512); @@ -12677,8 +12677,8 @@ var SwiperItem = /* @__PURE__ */ defineComponent({ }); return () => { return createVNode("uni-swiper-item", { - ref: rootRef, - style: { + "ref": rootRef, + "style": { position: "absolute", width: "100%", height: "100%" @@ -12754,19 +12754,19 @@ var index$9 = /* @__PURE__ */ defineComponent({ booleanAttrs } = useBooleanAttr(props2, "disabled"); return createVNode("uni-switch", mergeProps({ - ref: rootRef + "ref": rootRef }, booleanAttrs, { - onClick: _onClick + "onClick": _onClick }), [createVNode("div", { - class: "uni-switch-wrapper" + "class": "uni-switch-wrapper" }, [withDirectives(createVNode("div", { - class: ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], - style: { + "class": ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], + "style": { backgroundColor: switchChecked.value ? color : "#DFDFDF", borderColor: switchChecked.value ? color : "#DFDFDF" } }, null, 6), [[vShow, type === "switch"]]), withDirectives(createVNode("div", { - class: "uni-checkbox-input" + "class": "uni-checkbox-input" }, [switchChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 512), [[vShow, type === "checkbox"]])])], 16, ["onClick"]); }; } @@ -12860,7 +12860,7 @@ var index$8 = /* @__PURE__ */ defineComponent({ }); } return createVNode("uni-text", { - selectable: props2.selectable + "selectable": props2.selectable }, [createVNode("span", null, children)], 8, ["selectable"]); }; } @@ -12947,54 +12947,54 @@ var index$7 = /* @__PURE__ */ defineComponent({ const fixMargin = String(navigator.platform).indexOf("iP") === 0 && String(navigator.vendor).indexOf("Apple") === 0 && window.matchMedia(DARK_TEST_STRING).media !== DARK_TEST_STRING; return () => { let textareaNode = props2.disabled && fixDisabledColor ? createVNode("textarea", { - ref: fieldRef, - value: state2.value, - tabindex: "-1", - readonly: !!props2.disabled, - maxlength: state2.maxlength, - class: { + "ref": fieldRef, + "value": state2.value, + "tabindex": "-1", + "readonly": !!props2.disabled, + "maxlength": state2.maxlength, + "class": { "uni-textarea-textarea": true, "uni-textarea-textarea-fix-margin": fixMargin }, - style: { + "style": { overflowY: props2.autoHeight ? "hidden" : "auto" }, - onFocus: (event) => event.target.blur() + "onFocus": (event) => event.target.blur() }, null, 46, ["value", "readonly", "maxlength", "onFocus"]) : createVNode("textarea", { - ref: fieldRef, - value: state2.value, - disabled: !!props2.disabled, - maxlength: state2.maxlength, - enterkeyhint: props2.confirmType, - class: { + "ref": fieldRef, + "value": state2.value, + "disabled": !!props2.disabled, + "maxlength": state2.maxlength, + "enterkeyhint": props2.confirmType, + "class": { "uni-textarea-textarea": true, "uni-textarea-textarea-fix-margin": fixMargin }, - style: { + "style": { overflowY: props2.autoHeight ? "hidden" : "auto" }, - onKeydown: onKeyDownEnter, - onKeyup: onKeyUpEnter + "onKeydown": onKeyDownEnter, + "onKeyup": onKeyUpEnter }, null, 46, ["value", "disabled", "maxlength", "enterkeyhint", "onKeydown", "onKeyup"]); return createVNode("uni-textarea", { - ref: rootRef + "ref": rootRef }, [createVNode("div", { - class: "uni-textarea-wrapper" + "class": "uni-textarea-wrapper" }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { - style: props2.placeholderStyle, - class: ["uni-textarea-placeholder", props2.placeholderClass] + "style": props2.placeholderStyle, + "class": ["uni-textarea-placeholder", props2.placeholderClass] }), [props2.placeholder], 16), [[vShow, !state2.value.length]]), createVNode("div", { - ref: lineRef, - class: "uni-textarea-line" + "ref": lineRef, + "class": "uni-textarea-line" }, [" "], 512), createVNode("div", { - class: "uni-textarea-compute" + "class": "uni-textarea-compute" }, [valueCompute.value.map((item) => createVNode("div", null, [item.trim() ? item : "."])), createVNode(ResizeSensor, { - initial: true, - onResize + "initial": true, + "onResize": onResize }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? createVNode("form", { - action: "", - onSubmit: () => false, - class: "uni-input-form" + "action": "", + "onSubmit": () => false, + "class": "uni-input-form" }, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); }; } @@ -13013,7 +13013,7 @@ var index$6 = /* @__PURE__ */ defineComponent({ const hoverClass = props2.hoverClass; if (hoverClass && hoverClass !== "none") { return createVNode("uni-view", mergeProps({ - class: hovering.value ? hoverClass : "" + "class": hovering.value ? hoverClass : "" }, binding), [slots.default && slots.default()], 16); } return createVNode("uni-view", null, [slots.default && slots.default()]); @@ -13806,144 +13806,144 @@ var index$5 = /* @__PURE__ */ defineComponent({ useContext(play, pause, seek, sendDanmu, playbackRate, requestFullScreen, exitFullScreen); return () => { return createVNode("uni-video", { - ref: rootRef, - id: props2.id + "ref": rootRef, + "id": props2.id }, [createVNode("div", { - ref: containerRef, - class: "uni-video-container", - onTouchstart, - onTouchend, - onTouchmove, - onFullscreenchange: withModifiers(onFullscreenChange, ["stop"]), - onWebkitfullscreenchange: withModifiers(($event) => onFullscreenChange($event, true), ["stop"]) + "ref": containerRef, + "class": "uni-video-container", + "onTouchstart": onTouchstart, + "onTouchend": onTouchend, + "onTouchmove": onTouchmove, + "onFullscreenchange": withModifiers(onFullscreenChange, ["stop"]), + "onWebkitfullscreenchange": withModifiers(($event) => onFullscreenChange($event, true), ["stop"]) }, [createVNode("video", mergeProps({ - ref: videoRef, - style: { + "ref": videoRef, + "style": { "object-fit": props2.objectFit }, - muted: !!props2.muted, - loop: !!props2.loop, - src: videoState.src, - poster: props2.poster, - autoplay: !!props2.autoplay + "muted": !!props2.muted, + "loop": !!props2.loop, + "src": videoState.src, + "poster": props2.poster, + "autoplay": !!props2.autoplay }, videoAttrs.value, { - class: "uni-video-video", + "class": "uni-video-video", "webkit-playsinline": true, - playsinline: true, - onClick: toggleControls, - onDurationchange: onDurationChange, - onLoadedmetadata: onLoadedMetadata, - onProgress, - onWaiting, - onError: onVideoError, - onPlay, - onPause, - onEnded, - onTimeupdate: (event) => { + "playsinline": true, + "onClick": toggleControls, + "onDurationchange": onDurationChange, + "onLoadedmetadata": onLoadedMetadata, + "onProgress": onProgress, + "onWaiting": onWaiting, + "onError": onVideoError, + "onPlay": onPlay, + "onPause": onPause, + "onEnded": onEnded, + "onTimeupdate": (event) => { onTimeUpdate(event); updateDanmu(event); }, - onWebkitbeginfullscreen: () => emitFullscreenChange(true), - onX5videoenterfullscreen: () => emitFullscreenChange(true), - onWebkitendfullscreen: () => emitFullscreenChange(false), - onX5videoexitfullscreen: () => emitFullscreenChange(false) + "onWebkitbeginfullscreen": () => emitFullscreenChange(true), + "onX5videoenterfullscreen": () => emitFullscreenChange(true), + "onWebkitendfullscreen": () => emitFullscreenChange(false), + "onX5videoexitfullscreen": () => emitFullscreenChange(false) }), null, 16, ["muted", "loop", "src", "poster", "autoplay", "webkit-playsinline", "playsinline", "onClick", "onDurationchange", "onLoadedmetadata", "onProgress", "onWaiting", "onError", "onPlay", "onPause", "onEnded", "onTimeupdate", "onWebkitbeginfullscreen", "onX5videoenterfullscreen", "onWebkitendfullscreen", "onX5videoexitfullscreen"]), withDirectives(createVNode("div", { - class: "uni-video-bar uni-video-bar-full", - onClick: withModifiers(() => { + "class": "uni-video-bar uni-video-bar-full", + "onClick": withModifiers(() => { }, ["stop"]) }, [createVNode("div", { - class: "uni-video-controls" + "class": "uni-video-controls" }, [withDirectives(createVNode("div", { - class: { + "class": { "uni-video-control-button": true, "uni-video-control-button-play": !videoState.playing, "uni-video-control-button-pause": videoState.playing }, - onClick: withModifiers(toggle, ["stop"]) + "onClick": withModifiers(toggle, ["stop"]) }, null, 10, ["onClick"]), [[vShow, props2.showPlayBtn]]), createVNode("div", { - class: "uni-video-current-time" + "class": "uni-video-current-time" }, [formatTime(videoState.currentTime)]), createVNode("div", { - ref: progressRef, - class: "uni-video-progress-container", - onClick: withModifiers(clickProgress, ["stop"]) + "ref": progressRef, + "class": "uni-video-progress-container", + "onClick": withModifiers(clickProgress, ["stop"]) }, [createVNode("div", { - class: "uni-video-progress" + "class": "uni-video-progress" }, [createVNode("div", { - style: { + "style": { width: videoState.buffered + "%" }, - class: "uni-video-progress-buffered" + "class": "uni-video-progress-buffered" }, null, 4), createVNode("div", { - ref: ballRef, - style: { + "ref": ballRef, + "style": { left: videoState.progress + "%" }, - class: "uni-video-ball" + "class": "uni-video-ball" }, [createVNode("div", { - class: "uni-video-inner" + "class": "uni-video-inner" }, null)], 4)])], 8, ["onClick"]), createVNode("div", { - class: "uni-video-duration" + "class": "uni-video-duration" }, [formatTime(Number(props2.duration) || videoState.duration)])]), withDirectives(createVNode("div", { - class: { + "class": { "uni-video-danmu-button": true, "uni-video-danmu-button-active": danmuState.enable }, - onClick: withModifiers(toggleDanmu, ["stop"]) + "onClick": withModifiers(toggleDanmu, ["stop"]) }, [t2("uni.video.danmu")], 10, ["onClick"]), [[vShow, props2.danmuBtn]]), withDirectives(createVNode("div", { - class: { + "class": { "uni-video-fullscreen": true, "uni-video-type-fullscreen": fullscreenState.fullscreen }, - onClick: withModifiers(() => toggleFullscreen(!fullscreenState.fullscreen), ["stop"]) + "onClick": withModifiers(() => toggleFullscreen(!fullscreenState.fullscreen), ["stop"]) }, null, 10, ["onClick"]), [[vShow, props2.showFullscreenBtn]])], 8, ["onClick"]), [[vShow, controlsState.controlsShow]]), withDirectives(createVNode("div", { - ref: danmuRef, - style: "z-index: 0;", - class: "uni-video-danmu" + "ref": danmuRef, + "style": "z-index: 0;", + "class": "uni-video-danmu" }, null, 512), [[vShow, videoState.start && danmuState.enable]]), controlsState.centerPlayBtnShow && createVNode("div", { - class: "uni-video-cover", - onClick: withModifiers(() => { + "class": "uni-video-cover", + "onClick": withModifiers(() => { }, ["stop"]) }, [createVNode("div", { - class: "uni-video-cover-play-button", - onClick: withModifiers(play, ["stop"]) + "class": "uni-video-cover-play-button", + "onClick": withModifiers(play, ["stop"]) }, null, 8, ["onClick"]), createVNode("p", { - class: "uni-video-cover-duration" + "class": "uni-video-cover-duration" }, [formatTime(Number(props2.duration) || videoState.duration)])], 8, ["onClick"]), createVNode("div", { - class: { + "class": { "uni-video-toast": true, "uni-video-toast-volume": gestureState.gestureType === "volume" } }, [createVNode("div", { - class: "uni-video-toast-title" + "class": "uni-video-toast-title" }, [t2("uni.video.volume")]), createVNode("svg", { - class: "uni-video-toast-icon", - width: "200px", - height: "200px", - viewBox: "0 0 1024 1024", - version: "1.1", - xmlns: "http://www.w3.org/2000/svg" + "class": "uni-video-toast-icon", + "width": "200px", + "height": "200px", + "viewBox": "0 0 1024 1024", + "version": "1.1", + "xmlns": "http://www.w3.org/2000/svg" }, [createVNode("path", { - d: "M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z" + "d": "M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z" }, null)]), createVNode("div", { - class: "uni-video-toast-value" + "class": "uni-video-toast-value" }, [createVNode("div", { - style: { + "style": { width: gestureState.volumeNew * 100 + "%" }, - class: "uni-video-toast-value-content" + "class": "uni-video-toast-value-content" }, [createVNode("div", { - class: "uni-video-toast-volume-grids" + "class": "uni-video-toast-volume-grids" }, [renderList(10, () => createVNode("div", { - class: "uni-video-toast-volume-grids-item" + "class": "uni-video-toast-volume-grids-item" }, null))])], 4)])], 2), createVNode("div", { - class: { + "class": { "uni-video-toast": true, "uni-video-toast-progress": gestureState.gestureType === "progress" } }, [createVNode("div", { - class: "uni-video-toast-title" + "class": "uni-video-toast-title" }, [formatTime(gestureState.currentTimeNew), " / ", formatTime(videoState.duration)])], 2), createVNode("div", { - class: "uni-video-slots" + "class": "uni-video-slots" }, [slots.default && slots.default()])], 40, ["onTouchstart", "onTouchend", "onTouchmove", "onFullscreenchange", "onWebkitfullscreenchange"])], 8, ["id"]); }; } @@ -13982,15 +13982,15 @@ var index$4 = /* @__PURE__ */ defineComponent({ }); return () => { return createVNode(Fragment, null, [createVNode("uni-web-view", mergeProps($listeners.value, $excludeAttrs.value, { - ref: rootRef + "ref": rootRef }), [createVNode(ResizeSensor, { - onResize: _resize + "onResize": _resize }, null, 8, ["onResize"])], 16), createVNode(Teleport, { - to: "body" + "to": "body" }, { default: () => [createVNode("iframe", mergeProps({ - ref: iframeRef, - src: getRealPath(props2.src) + "ref": iframeRef, + "src": getRealPath(props2.src) }, $attrs.value), null, 16, ["src"])] })]); }; @@ -15644,23 +15644,23 @@ var ImageView = /* @__PURE__ */ defineComponent({ height: "100%" }; return createVNode(MovableArea, { - style: viewStyle, - onTouchstart: withWebEvent(onTouchStart), - onTouchmove: withWebEvent(checkDirection), - onTouchend: withWebEvent(onTouchEnd) + "style": viewStyle, + "onTouchstart": withWebEvent(onTouchStart), + "onTouchmove": withWebEvent(checkDirection), + "onTouchend": withWebEvent(onTouchEnd) }, { default: () => [createVNode(MovableView, { - style: viewStyle, - direction: state2.direction, - inertia: true, - scale: true, + "style": viewStyle, + "direction": state2.direction, + "inertia": true, + "scale": true, "scale-min": "1", "scale-max": "4", - onScale + "onScale": onScale }, { default: () => [createVNode("img", { - src: props2.src, - style: { + "src": props2.src, + "style": { position: "absolute", left: "50%", top: "50%", @@ -15668,7 +15668,7 @@ var ImageView = /* @__PURE__ */ defineComponent({ maxHeight: "100%", maxWidth: "100%" }, - onLoad: onImgLoad + "onLoad": onImgLoad }, null, 40, ["src", "onLoad"])] }, 8, ["style", "direction", "inertia", "scale", "onScale"])] }, 8, ["style", "onTouchstart", "onTouchmove", "onTouchend"]); @@ -15733,8 +15733,8 @@ var ImagePreview = /* @__PURE__ */ defineComponent({ return () => { let _slot; return createVNode("div", { - ref: rootRef, - style: { + "ref": rootRef, + "style": { display: "block", position: "fixed", left: "0", @@ -15744,13 +15744,13 @@ var ImagePreview = /* @__PURE__ */ defineComponent({ zIndex: 999, background: "rgba(0,0,0,0.8)" }, - onClick + "onClick": onClick }, [createVNode(Swiper, { - current: indexRef.value, - onChange: onChange2, + "current": indexRef.value, + "onChange": onChange2, "indicator-dots": false, - autoplay: false, - style: { + "autoplay": false, + "style": { position: "absolute", left: "0", top: "0", @@ -15759,7 +15759,7 @@ var ImagePreview = /* @__PURE__ */ defineComponent({ } }, _isSlot(_slot = props2.urls.map((src) => createVNode(SwiperItem, null, { default: () => [createVNode(ImageView, { - src + "src": src }, null, 8, ["src"])] }))) ? _slot : { default: () => [_slot], @@ -16536,35 +16536,35 @@ var modal = /* @__PURE__ */ defineComponent({ confirmColor } = props2; return createVNode(Transition, { - name: "uni-fade" + "name": "uni-fade" }, { default: () => [withDirectives(createVNode("uni-modal", { - onTouchmove: onEventPrevent + "onTouchmove": onEventPrevent }, [VNODE_MASK, createVNode("div", { - class: "uni-modal" + "class": "uni-modal" }, [title && createVNode("div", { - class: "uni-modal__hd" + "class": "uni-modal__hd" }, [createVNode("strong", { - class: "uni-modal__title", - textContent: title + "class": "uni-modal__title", + "textContent": title }, null, 8, ["textContent"])]), createVNode("div", { - class: "uni-modal__bd", - onTouchmovePassive: onEventStop, - textContent: content + "class": "uni-modal__bd", + "onTouchmovePassive": onEventStop, + "textContent": content }, null, 40, ["onTouchmovePassive", "textContent"]), createVNode("div", { - class: "uni-modal__ft" + "class": "uni-modal__ft" }, [showCancel && createVNode("div", { - style: { + "style": { color: props2.cancelColor }, - class: "uni-modal__btn uni-modal__btn_default", - onClick: cancel + "class": "uni-modal__btn uni-modal__btn_default", + "onClick": cancel }, [props2.cancelText], 12, ["onClick"]), createVNode("div", { - style: { + "style": { color: confirmColor }, - class: "uni-modal__btn uni-modal__btn_primary", - onClick: confirm + "class": "uni-modal__btn uni-modal__btn_primary", + "onClick": confirm }, [confirmText], 12, ["onClick"])])])], 40, ["onTouchmove"]), [[vShow, visible.value]])] }); }; @@ -16634,25 +16634,25 @@ var Toast = /* @__PURE__ */ defineComponent({ image: image2 } = props2; return createVNode(Transition, { - name: "uni-fade" + "name": "uni-fade" }, { default: () => [withDirectives(createVNode("uni-toast", { "data-duration": duration }, [mask ? createVNode("div", { - class: "uni-mask", - style: "background: transparent;", - onTouchmove: onEventPrevent + "class": "uni-mask", + "style": "background: transparent;", + "onTouchmove": onEventPrevent }, null, 40, ["onTouchmove"]) : "", !image2 && !Icon.value ? createVNode("div", { - class: "uni-sample-toast" + "class": "uni-sample-toast" }, [createVNode("p", { - class: "uni-simple-toast__text" + "class": "uni-simple-toast__text" }, [title])]) : createVNode("div", { - class: "uni-toast" + "class": "uni-toast" }, [image2 ? createVNode("img", { - src: image2, - class: ToastIconClassName + "src": image2, + "class": ToastIconClassName }, null, 10, ["src"]) : Icon.value, createVNode("p", { - class: "uni-toast__content" + "class": "uni-toast__content" }, [title])])], 8, ["data-duration"]), [[vShow, visible.value]])] }); }; @@ -16662,7 +16662,7 @@ function useToastIcon(props2) { const Icon = computed(() => props2.icon === "success" ? createVNode(createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 38), { class: ToastIconClassName }) : props2.icon === "loading" ? createVNode("i", { - class: [ToastIconClassName, "uni-loading"] + "class": [ToastIconClassName, "uni-loading"] }, null, 2) : null); return { Icon @@ -17044,13 +17044,13 @@ var MapLocation = /* @__PURE__ */ defineComponent({ } return () => { return state2.latitude ? createVNode(MapMarker, mergeProps({ - anchor: { + "anchor": { x: 0.5, y: 0.5 }, - width: "44", - height: "44", - iconPath: ICON_PATH + "width": "44", + "height": "44", + "iconPath": ICON_PATH }, state2), null, 16, ["iconPath"]) : null; }; } @@ -17387,15 +17387,15 @@ var index$3 = /* @__PURE__ */ defineComponent({ } = useMap(props2, rootRef, emit2); return () => { return createVNode("uni-map", { - ref: rootRef, - id: props2.id + "ref": rootRef, + "id": props2.id }, [createVNode("div", { - ref: mapRef, - style: "width: 100%; height: 100%; position: relative; overflow: hidden" + "ref": mapRef, + "style": "width: 100%; height: 100%; position: relative; overflow: hidden" }, null, 512), props2.markers.map((item) => item.id && createVNode(MapMarker, mergeProps({ - key: item.id + "key": item.id }, item), null, 16)), props2.polyline.map((item) => createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => createVNode(MapControl, item, null, 16)), props2.showLocation && createVNode(MapLocation, null, null), createVNode("div", { - style: "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" + "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" }, [slots.default && slots.default()])], 8, ["id"]); }; } @@ -17520,16 +17520,16 @@ var TabBar = /* @__PURE__ */ defineComponent({ return () => { const tabBarItemsTsx = createTabBarItemsTsx(tabBar2, onSwitchTab); return createVNode("uni-tabbar", { - class: "uni-tabbar-" + tabBar2.position + "class": "uni-tabbar-" + tabBar2.position }, [createVNode("div", { - class: "uni-tabbar", - style: style.value + "class": "uni-tabbar", + "style": style.value }, [createVNode("div", { - class: "uni-tabbar-border", - style: borderStyle.value + "class": "uni-tabbar-border", + "style": borderStyle.value }, null, 4), tabBarItemsTsx], 4), createVNode("div", { - class: "uni-placeholder", - style: placeholderStyle.value + "class": "uni-placeholder", + "style": placeholderStyle.value }, null, 4)], 2); }; } @@ -17651,9 +17651,9 @@ function createTabBarItemsTsx(tabBar2, onSwitchTab) { } function createTabBarItemTsx(color, iconPath, tabBarItem, tabBar2, index2, onSwitchTab) { return createVNode("div", { - key: index2, - class: "uni-tabbar__item", - onClick: onSwitchTab(tabBarItem, index2) + "key": index2, + "class": "uni-tabbar__item", + "onClick": onSwitchTab(tabBarItem, index2) }, [createTabBarItemBdTsx(color, iconPath || "", tabBarItem, tabBar2)], 8, ["onClick"]); } function createTabBarItemBdTsx(color, iconPath, tabBarItem, tabBar2) { @@ -17661,8 +17661,8 @@ function createTabBarItemBdTsx(color, iconPath, tabBarItem, tabBar2) { height } = tabBar2; return createVNode("div", { - class: "uni-tabbar__bd", - style: { + "class": "uni-tabbar__bd", + "style": { height } }, [iconPath && createTabBarItemIconTsx(iconPath, tabBarItem, tabBar2), tabBarItem.text && createTabBarItemTextTsx(color, tabBarItem, tabBar2)], 4); @@ -17682,10 +17682,10 @@ function createTabBarItemIconTsx(iconPath, tabBarItem, tabBar2) { height: iconWidth }; return createVNode("div", { - class: clazz2, - style + "class": clazz2, + "style": style }, [type !== "midButton" && createVNode("img", { - src: getRealPath(iconPath) + "src": getRealPath(iconPath) }, null, 8, ["src"]), redDot && createTabBarItemRedDotTsx(tabBarItem.badge)], 6); } function createTabBarItemTextTsx(color, tabBarItem, tabBar2) { @@ -17705,14 +17705,14 @@ function createTabBarItemTextTsx(color, tabBarItem, tabBar2) { marginTop: !iconPath ? "inherit" : spacing }; return createVNode("div", { - class: "uni-tabbar__label", - style + "class": "uni-tabbar__label", + "style": style }, [text2, redDot && !iconPath && createTabBarItemRedDotTsx(tabBarItem.badge)], 4); } function createTabBarItemRedDotTsx(badge) { const clazz2 = "uni-tabbar__reddot" + (badge ? " uni-tabbar__badge" : ""); return createVNode("div", { - class: clazz2 + "class": clazz2 }, [badge], 2); } function createTabBarMidButtonTsx(color, iconPath, midButton, tabBar2, index2, onSwitchTab) { @@ -17723,26 +17723,26 @@ function createTabBarMidButtonTsx(color, iconPath, midButton, tabBar2, index2, o iconWidth } = midButton; return createVNode("div", { - key: index2, - class: "uni-tabbar__item", - style: { + "key": index2, + "class": "uni-tabbar__item", + "style": { flex: "0 0 " + width, position: "relative" }, - onClick: onSwitchTab(midButton, index2) + "onClick": onSwitchTab(midButton, index2) }, [createVNode("div", { - class: "uni-tabbar__mid", - style: { + "class": "uni-tabbar__mid", + "style": { width, height, backgroundImage: backgroundImage ? "url('" + getRealPath(backgroundImage) + "')" : "none" } }, [iconPath && createVNode("img", { - style: { + "style": { width: iconWidth, height: iconWidth }, - src: getRealPath(iconPath) + "src": getRealPath(iconPath) }, null, 12, ["src"])], 4), createTabBarItemBdTsx(color, iconPath, midButton, tabBar2)], 12, ["onClick"]); } const DEFAULT_CSS_VAR_VALUE = "0px"; @@ -17762,7 +17762,7 @@ var LayoutComponent = defineComponent({ const layoutTsx = createLayoutTsx(keepAliveRoute); const tabBarTsx = __UNI_FEATURE_TABBAR__ && createTabBarTsx(showTabBar2); return createVNode("uni-app", { - class: clazz2.value + "class": clazz2.value }, [layoutTsx, tabBarTsx], 2); }; } @@ -17983,7 +17983,7 @@ var PageHead = /* @__PURE__ */ defineComponent({ const rightButtonsTsx = __UNI_FEATURE_NAVIGATIONBAR_BUTTONS__ ? createButtonsTsx(buttons.right) : []; const type = navigationBar.type || "default"; const placeholderTsx = type !== "transparent" && type !== "float" && createVNode("div", { - class: { + "class": { "uni-placeholder": true, "uni-placeholder-titlePenetrate": navigationBar.titlePenetrate } @@ -17991,13 +17991,13 @@ var PageHead = /* @__PURE__ */ defineComponent({ return createVNode("uni-page-head", { "uni-page-head-type": type }, [createVNode("div", { - ref: headRef, - class: clazz2.value, - style: style.value + "ref": headRef, + "class": clazz2.value, + "style": style.value }, [createVNode("div", { - class: "uni-page-head-hd" + "class": "uni-page-head-hd" }, [backButtonTsx, ...leftButtonsTsx]), createPageHeadBdTsx(navigationBar, searchInput), createVNode("div", { - class: "uni-page-head-ft" + "class": "uni-page-head-ft" }, [...rightButtonsTsx])], 6), placeholderTsx], 8, ["uni-page-head-type"]); }; } @@ -18009,8 +18009,8 @@ function createBackButtonTsx(pageMeta) { } = pageMeta; if (navigationBar.backButton && !isQuit) { return createVNode("div", { - class: "uni-page-head-btn", - onClick: onPageHeadBackButton + "class": "uni-page-head-btn", + "onClick": onPageHeadBackButton }, [createSvgIconVNode(ICON_PATH_BACK, navigationBar.type === "transparent" ? "#fff" : navigationBar.titleColor, 27)], 8, ["onClick"]); } } @@ -18025,15 +18025,15 @@ function createButtonsTsx(btns) { iconStyle }, index2) => { return createVNode("div", { - key: index2, - class: btnClass, - style: btnStyle, - onClick, + "key": index2, + "class": btnClass, + "style": btnStyle, + "onClick": onClick, "badge-text": badgeText }, [btnIconPath ? createSvgIconVNode(btnIconPath, iconStyle.color, iconStyle.fontSize) : createVNode("i", { - class: "uni-btn-icon", - style: iconStyle, - innerHTML: btnText + "class": "uni-btn-icon", + "style": iconStyle, + "innerHTML": btnText }, null, 12, ["innerHTML"])], 14, ["onClick", "badge-text"]); }); } @@ -18051,18 +18051,18 @@ function createPageHeadTitleTextTsx({ titleImage }) { return createVNode("div", { - class: "uni-page-head-bd" + "class": "uni-page-head-bd" }, [createVNode("div", { - style: { + "style": { fontSize: titleSize, opacity: type === "transparent" ? 0 : 1 }, - class: "uni-page-head__title" + "class": "uni-page-head__title" }, [loading ? createVNode("i", { - class: "uni-loading" + "class": "uni-loading" }, null) : titleImage ? createVNode("img", { - src: titleImage, - class: "uni-page-head__title_image" + "src": titleImage, + "class": "uni-page-head__title_image" }, null, 8, ["src"]) : titleText], 4)]); } function createPageHeadSearchInputTsx(navigationBar, { @@ -18091,40 +18091,40 @@ function createPageHeadSearchInputTsx(navigationBar, { }; const placeholderClass = ["uni-page-head-search-placeholder", `uni-page-head-search-placeholder-${focus.value || text2.value ? "left" : align2}`]; return createVNode("div", { - class: "uni-page-head-search", - style: searchStyle + "class": "uni-page-head-search", + "style": searchStyle }, [createVNode("div", { - style: { + "style": { color: placeholderColor }, - class: placeholderClass + "class": placeholderClass }, [createVNode("div", { - class: "uni-page-head-search-icon" + "class": "uni-page-head-search-icon" }, [createSvgIconVNode(ICON_PATH_SEARCH, placeholderColor, 20)]), text2.value || composing.value ? "" : placeholder], 6), disabled ? createVNode(Input, { - disabled: true, - style: { + "disabled": true, + "style": { color }, "placeholder-style": { color: placeholderColor }, - class: "uni-page-head-search-input", + "class": "uni-page-head-search-input", "confirm-type": "search", - onClick + "onClick": onClick }, null, 8, ["style", "placeholder-style", "onClick"]) : createVNode(Input, { - focus: autoFocus, - style: { + "focus": autoFocus, + "style": { color }, "placeholder-style": { color: placeholderColor }, - class: "uni-page-head-search-input", + "class": "uni-page-head-search-input", "confirm-type": "search", - onFocus, - onBlur, - onInput, - onKeyup + "onFocus": onFocus, + "onBlur": onBlur, + "onInput": onInput, + "onKeyup": onKeyup }, null, 8, ["focus", "style", "placeholder-style", "onFocus", "onBlur", "onInput", "onKeyup"])], 4); } function onPageHeadBackButton() { @@ -18568,7 +18568,7 @@ function createPageRefreshTsx(refreshRef, pageMeta) { return null; } return createVNode(_sfc_main, { - ref: refreshRef + "ref": refreshRef }, null, 512); } var index$2 = defineComponent({ @@ -18595,8 +18595,8 @@ var index$1 = /* @__PURE__ */ defineComponent({ t: t2 } = useI18n(); return () => createVNode("div", { - class: "uni-async-error", - onClick: reload + "class": "uni-async-error", + "onClick": reload }, [t2("uni.async.error")], 8, ["onClick"]); } }); diff --git a/packages/vite-plugin-uni/src/configResolved/plugins/easycom.ts b/packages/vite-plugin-uni/src/configResolved/plugins/easycom.ts index 27f1e4474ab..659139dcc62 100644 --- a/packages/vite-plugin-uni/src/configResolved/plugins/easycom.ts +++ b/packages/vite-plugin-uni/src/configResolved/plugins/easycom.ts @@ -4,15 +4,15 @@ import { createFilter } from '@rollup/pluginutils' import { camelize, capitalize } from '@vue/shared' import { isBuiltInComponent } from '@dcloudio/uni-shared' -import { EXTNAME_VUE, parseVueRequest } from '@dcloudio/uni-cli-shared' - -import { UniPluginFilterOptions } from '.' import { + EXTNAME_VUE, H5_COMPONENTS_STYLE_PATH, BASE_COMPONENTS_STYLE_PATH, - debugEasycom, - matchEasycom, -} from '../../utils' + parseVueRequest, +} from '@dcloudio/uni-cli-shared' + +import { UniPluginFilterOptions } from '.' +import { debugEasycom, matchEasycom } from '../../utils' const H5_COMPONENTS_PATH = '@dcloudio/uni-h5' diff --git a/packages/vite-plugin-uni/src/configResolved/plugins/index.ts b/packages/vite-plugin-uni/src/configResolved/plugins/index.ts index 08269e71ca0..4dd57c6dda9 100644 --- a/packages/vite-plugin-uni/src/configResolved/plugins/index.ts +++ b/packages/vite-plugin-uni/src/configResolved/plugins/index.ts @@ -2,6 +2,7 @@ import debug from 'debug' import { extend } from '@vue/shared' import { Plugin, ResolvedConfig } from 'vite' import { FilterPattern } from '@rollup/pluginutils' +import { API_STYLES } from '@dcloudio/uni-cli-shared' import { VitePluginUniResolvedOptions } from '../..' import { uniPrePlugin } from './pre' import { uniJsonPlugin } from './json' @@ -58,12 +59,6 @@ const uniEasycomPluginOptions: Partial<UniPluginFilterOptions> = { exclude: [APP_VUE_RE, UNI_H5_RE], } -const API_STYLES = { - showModal: 'modal', - showToast: 'toast', - showActionSheet: 'action-sheet', -} - const uniInjectPluginOptions: Partial<InjectOptions> = { exclude: [...COMMON_EXCLUDE], 'uni.': '@dcloudio/uni-h5', @@ -72,16 +67,17 @@ const uniInjectPluginOptions: Partial<InjectOptions> = { UniServiceJSBridge: ['@dcloudio/uni-h5', 'UniServiceJSBridge'], UniViewJSBridge: ['@dcloudio/uni-h5', 'UniViewJSBridge'], callback(imports, mod) { - const style = + const styles = mod[0] === '@dcloudio/uni-h5' && API_STYLES[mod[1] as keyof typeof API_STYLES] - if (!style) { + if (!styles) { return } - const hash = `${mod[0]}.${mod[1]}` - if (!imports.has(hash)) { - imports.set(hash, `import '@dcloudio/uni-h5/style/api/${style}.css';`) - } + styles.forEach((style) => { + if (!imports.has(style)) { + imports.set(style, `import '${style}';`) + } + }) }, } diff --git a/packages/vite-plugin-uni/src/configResolved/plugins/pagesJson.ts b/packages/vite-plugin-uni/src/configResolved/plugins/pagesJson.ts index b103ba998e3..9088cb85561 100644 --- a/packages/vite-plugin-uni/src/configResolved/plugins/pagesJson.ts +++ b/packages/vite-plugin-uni/src/configResolved/plugins/pagesJson.ts @@ -4,14 +4,14 @@ import slash from 'slash' import { Plugin, ResolvedConfig } from 'vite' import { parse } from 'jsonc-parser' import { camelize, capitalize } from '@vue/shared' -import { normalizePagesJson } from '@dcloudio/uni-cli-shared' -import { VitePluginUniResolvedOptions } from '../..' import { - BASE_COMPONENTS_STYLE_PATH, - FEATURE_DEFINES, - H5_API_STYLE_PATH, H5_FRAMEWORK_STYLE_PATH, -} from '../../utils' + BASE_COMPONENTS_STYLE_PATH, + normalizePagesJson, + API_STYLES, +} from '@dcloudio/uni-cli-shared' +import { VitePluginUniResolvedOptions } from '../..' +import { FEATURE_DEFINES } from '../../utils' const pkg = require('@dcloudio/vite-plugin-uni/package.json') @@ -146,9 +146,15 @@ function generateCssCode( cssFiles.push(BASE_COMPONENTS_STYLE_PATH + 'input.css') } if (options.command === 'serve') { - cssFiles.push(H5_API_STYLE_PATH + 'modal.css') - cssFiles.push(H5_API_STYLE_PATH + 'toast.css') - cssFiles.push(H5_API_STYLE_PATH + 'action-sheet.css') + // 开发模式,自动添加所有API相关css + Object.keys(API_STYLES).forEach((name) => { + const styles = API_STYLES[name as keyof typeof API_STYLES] + styles.forEach((style) => { + if (!cssFiles.includes(style)) { + cssFiles.push(style) + } + }) + }) } return cssFiles.map((file) => `import '${file}'`).join('\n') } diff --git a/packages/vite-plugin-uni/src/utils/constants.ts b/packages/vite-plugin-uni/src/utils/constants.ts index 011e059292e..21dd3c5494a 100644 --- a/packages/vite-plugin-uni/src/utils/constants.ts +++ b/packages/vite-plugin-uni/src/utils/constants.ts @@ -1,8 +1,3 @@ -export const H5_API_STYLE_PATH = '@dcloudio/uni-h5/style/api/' -export const H5_FRAMEWORK_STYLE_PATH = '@dcloudio/uni-h5/style/framework/' -export const H5_COMPONENTS_STYLE_PATH = '@dcloudio/uni-h5/style/' -export const BASE_COMPONENTS_STYLE_PATH = '@dcloudio/uni-components/style/' - // 其实应该直接通过 mainFields 来识别 export const BUILT_IN_MODULES = { 'vue-router': { diff --git a/packages/vite-plugin-uni/src/utils/easycom.ts b/packages/vite-plugin-uni/src/utils/easycom.ts index fbbf896bc70..c33b8b9d6a8 100644 --- a/packages/vite-plugin-uni/src/utils/easycom.ts +++ b/packages/vite-plugin-uni/src/utils/easycom.ts @@ -1,6 +1,7 @@ import fs from 'fs' import path from 'path' import debug from 'debug' +import slash from 'slash' import { createFilter } from '@rollup/pluginutils' @@ -171,7 +172,7 @@ function initAutoScanEasycom( if (!isDir(folder)) { return } - const importDir = path.relative(rootDir, folder) + const importDir = slash(path.relative(rootDir, folder)) const files = fs.readdirSync(folder) // 读取文件夹文件列表,比对文件名(fs.existsSync在大小写不敏感的系统会匹配不准确) for (let i = 0; i < extensions.length; i++) {
9503c36917f340a4e91252c3403519acce13b975
2025-02-27 14:04:20
uni
chore: update auto import config file
false
update auto import config file
chore
diff --git a/packages/uni-uts-v1/lib/arkts/external-module-exports.json b/packages/uni-uts-v1/lib/arkts/external-module-exports.json index 4fb1ef8cbaf..251e432c838 100644 --- a/packages/uni-uts-v1/lib/arkts/external-module-exports.json +++ b/packages/uni-uts-v1/lib/arkts/external-module-exports.json @@ -1,9 +1,4 @@ { - "@dcloudio/uni-getLocation-system": [ - [ - "UniLocationSystemProvider" - ] - ], "@dcloudio/uni-facialRecognitionVerify": [ [ "IFacialRecognitionVerifyError" @@ -36,6 +31,11 @@ "StartFacialRecognitionVerifyScreenOrientation" ] ], + "@dcloudio/uni-getLocation-system": [ + [ + "UniLocationSystemProvider" + ] + ], "@dcloudio/uni-oauth-huawei": [ [ "UniOAuthHuaweiProvider"
60b9e7b5ee588d6b4c8d5f6ea22bb03345716b4d
2021-07-08 12:22:39
fxy060608
chore(test): fix checkUpdate.spec.ts
false
fix checkUpdate.spec.ts
chore
diff --git a/packages/uni-cli-shared/__tests__/checkUpdate.spec.ts b/packages/uni-cli-shared/__tests__/checkUpdate.spec.ts index c966cb6d8e9..333c4a811d9 100644 --- a/packages/uni-cli-shared/__tests__/checkUpdate.spec.ts +++ b/packages/uni-cli-shared/__tests__/checkUpdate.spec.ts @@ -9,6 +9,7 @@ import { parseManifestJson } from '../src/json' const vid = 'test' const examplesDir = path.resolve(__dirname, 'examples') const basePostData = { + vv: 3, device: md5(getMac()), } describe('checkUpdate', () => {
c281c0bbd3f7dbd6f1694434749eb9859fe605e3
2023-10-13 12:03:08
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 1fea3f21037..8826efc02c1 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index 2bd6dc29258..115f0796d2a 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index acc4b8e6b1c..95772835ea5 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 7d549d19f75..56d50836a95 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
ff0e832c9ef2d6bd6d0c69cb8ea92f1564bfe36b
2023-07-10 12:32:16
yurj26
fix(uts): nested text
false
nested text
fix
diff --git a/packages/uni-app-uts/src/plugins/uvue/compiler/transforms/transformText.ts b/packages/uni-app-uts/src/plugins/uvue/compiler/transforms/transformText.ts index 5c249a29d95..9fc96cc9a11 100644 --- a/packages/uni-app-uts/src/plugins/uvue/compiler/transforms/transformText.ts +++ b/packages/uni-app-uts/src/plugins/uvue/compiler/transforms/transformText.ts @@ -12,7 +12,10 @@ import { import { NodeTransform } from '../transform' function isTextNode({ tag }: ElementNode) { - return tag === 'text' || tag === 'u-text' || tag === 'button' + // TODO 临时解决text节点嵌套的问题 + return ( + tag === 'text' || tag === 'button' || tag === 'radio' || tag === 'checkbox' + ) } function isTextElement(node: TemplateChildNode) {
d22c2217b4373b05284adf4182bb99412681da19
2024-04-29 17:57:04
fxy060608
feat(automator): 更新支持uts插件编译(iOS模拟器)
false
更新支持uts插件编译(iOS模拟器)
feat
diff --git a/packages/uni-app-plus/lib/uni.automator.js b/packages/uni-app-plus/lib/uni.automator.js index fb27cca3e07..34ca6dbf461 100644 --- a/packages/uni-app-plus/lib/uni.automator.js +++ b/packages/uni-app-plus/lib/uni.automator.js @@ -1 +1 @@ -"use strict";var t=require("fs"),e=require("debug"),s=require("postcss-selector-parser"),a=require("fs-extra"),i=require("licia/dateFormat"),r=require("path"),o=require("util"),n=require("jimp"),l=require("dns");function c(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var d=c(t),u=c(e),h=c(s),p=c(a),m=c(i),y=c(r),f=c(n),v=c(l);function g(t){t.walk((t=>{if("tag"===t.type){const e=t.value;t.value="page"===e?"body":"uni-"+e}}))}u.default("automator:devtool");const $=["Page.getElement","Page.getElements","Element.getElement","Element.getElements"];const w=/^win/.test(process.platform);function M(t){try{return require(t)}catch(e){return require(require.resolve(t,{paths:[process.cwd()]}))}}const P=u.default("automator:launcher"),_=o.promisify(d.default.readdir),A=o.promisify(d.default.stat);async function E(t){const e=await _(t);return(await Promise.all(e.map((async e=>{const s=r.resolve(t,e);return(await A(s)).isDirectory()?E(s):s})))).reduce(((t,e)=>t.concat(e)),[])}class S{constructor(t){this.isX=!1,"true"===process.env.UNI_APP_X&&(this.isX=!0),this.id=t.id,this.app=t.executablePath,this.appid=t.appid||process.env.UNI_APP_ID||(this.isX?"__UNI__uniappx":"HBuilder"),this.package=t.package||(this.isX?"io.dcloud.uniappx":"io.dcloud.HBuilder"),this.activity=t.activity||(this.isX?"io.dcloud.uniapp.UniAppActivity":"io.dcloud.PandoraEntry")}shouldPush(){return this.exists(this.FILE_APP_SERVICE).then((()=>(P(`${m.default("yyyy-mm-dd HH:MM:ss:l")} ${this.FILE_APP_SERVICE} exists`),!1))).catch((()=>(P(`${m.default("yyyy-mm-dd HH:MM:ss:l")} ${this.FILE_APP_SERVICE} not exists`),!0)))}push(t){return E(t).then((e=>{const s=e.map((e=>{const s=(t=>w?t.replace(/\\/g,"/"):t)(r.join(this.DIR_WWW,r.relative(t,e)));return P(`${m.default("yyyy-mm-dd HH:MM:ss:l")} push ${e} ${s}`),this.pushFile(e,s)}));return Promise.all(s)})).then((t=>!0))}get FILE_APP_SERVICE(){return`${this.DIR_WWW}/app-service.js`}}const b=u.default("automator:simctl");function H(t){const e=parseInt(t);return e>9?String(e):"0"+e}class x extends S{constructor(){super(...arguments),this.bundleVersion=""}async init(){const t=M("node-simctl").Simctl;this.tool=new t({udid:this.id});try{await this.tool.bootDevice()}catch(t){}await this.initSDCard(),b(`${m.default("yyyy-mm-dd HH:MM:ss:l")} init ${this.id}`)}async initSDCard(){const t=await this.tool.appInfo(this.package);b(`${m.default("yyyy-mm-dd HH:MM:ss:l")} appInfo ${t}`);const e=t.match(/DataContainer\s+=\s+"(.*)"/);if(!e)return Promise.resolve("");const s=t.match(/CFBundleVersion\s+=\s+(.*);/);if(!s)return Promise.resolve("");this.sdcard=e[1].replace("file:",""),this.bundleVersion=s[1],b(`${m.default("yyyy-mm-dd HH:MM:ss:l")} install ${this.sdcard}`)}async version(){return Promise.resolve(this.bundleVersion)}formatVersion(t){const e=t.split(".");return 3!==e.length?t:e[0]+H(e[1])+H(e[2])}async install(){return b(`${m.default("yyyy-mm-dd HH:MM:ss:l")} install ${this.app}`),await this.tool.installApp(this.app),await this.tool.grantPermission(this.package,"all"),await this.initSDCard(),Promise.resolve(!0)}async start(){console.log("ios simulator start");try{await this.tool.terminateApp(this.package)}catch(t){console.error("ios simulator start terminateApp fail",t)}try{await this.tool.launchApp(this.package)}catch(t){console.error("ios simulator start launchApp fail",t),console.error(t)}return Promise.resolve(!0)}async exit(){return await this.tool.terminateApp(this.package),await this.tool.shutdownDevice(),Promise.resolve(!0)}async captureScreenshot(t){const e=await Promise.resolve(await this.tool.getScreenshot());return new Promise(((s,a)=>{var i,r;void 0!==(null===(i=null==t?void 0:t.area)||void 0===i?void 0:i.x)&&void 0!==(null===(r=null==t?void 0:t.area)||void 0===r?void 0:r.y)?f.default.read(Buffer.from(e,"base64")).then((e=>{const i=t.area.x,r=t.area.y;let o=e.bitmap.width-i;t.area.width&&(o=Math.min(o,t.area.width));let n=e.bitmap.height-r;t.area.height&&(n=Math.min(n,t.area.height)),e.crop(i,r,o,n).getBase64Async(f.default.MIME_PNG).then((t=>{s(t.replace("data:image/png;base64,",""))})).catch((t=>{a(t)}))})).catch((t=>{a(t)})):s(e)}))}exists(t){return p.default.existsSync(t)?Promise.resolve(!0):Promise.reject(Error(`${t} not exists`))}pushFile(t,e){return Promise.resolve(p.default.copySync(t,e))}adbCommand(t){return new Promise((t=>{t("adbCommand only for App Android!")}))}get DIR_WWW(){return"true"===process.env.UNI_APP_X?`${this.sdcard}/Documents/uni-app-x/apps/__UNI__uniappx/www/`:`${this.sdcard}/Documents/Pandora/apps/${this.appid}/www/`}}const I=M("adbkit"),N=u.default("automator:adb");class D extends S{constructor(){super(...arguments),this.needStart=!0}async init(){if(void 0!==v.default.setDefaultResultOrder&&v.default.setDefaultResultOrder("ipv4first"),this.tool=I.createClient(),N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} init ${await this.tool.version()}`),!this.id){const t=await this.tool.listDevices();if(!t.length)throw Error("Device not found");this.id=t[0].id}console.log("before echo ${$EXTERNAL_STORAGE}"),this.sdcard=(await this.shell(this.COMMAND_EXTERNAL)).trim(),console.log("after echo ${$EXTERNAL_STORAGE}",this.sdcard),N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} init ${this.id} ${this.sdcard}`)}root(){return this.tool.root(this.id).then((()=>{N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} root ${this.id} ${this.sdcard}`)})).catch((t=>{N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} root ${this.id} ${t}`)}))}version(){return this.shell(this.COMMAND_VERSION).then((t=>{const e=t.match(/versionName=(.*)/);return e&&e.length>1?e[1]:""}))}formatVersion(t){return t}async install(){let t=!0;try{const e=(await this.tool.getProperties(this.id))["ro.build.version.release"].split(".")[0];parseInt(e)<6&&(t=!1)}catch(t){}if(N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} install ${this.app} permission=${t}`),t){const t=M("adbkit/lib/adb/command.js"),e=t.prototype._send;t.prototype._send=function(t){return 0===t.indexOf("shell:pm install -r ")&&(t=t.replace("shell:pm install -r ","shell:pm install -r -g "),N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} ${t} `)),e.call(this,t)}}return this.tool.install(this.id,this.app).then((()=>{N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} installed`),this.init()}))}start(){return this.needStart?this.exit().then((()=>this.shell(this.COMMAND_START))):Promise.resolve()}exit(){return this.shell(this.COMMAND_STOP)}captureScreenshot(t){return this.tool.screencap(this.id).then((e=>new Promise(((s,a)=>{const i=[];e.on("data",(function(t){i.push(t)})),e.on("end",(function(){var e,r;void 0!==(null===(e=t.area)||void 0===e?void 0:e.x)&&void 0!==(null===(r=t.area)||void 0===r?void 0:r.y)?f.default.read(Buffer.concat(i)).then((e=>{var i,r,o,n;const l=t.area.x,c=t.area.y;let d=e.bitmap.width-l;(null===(i=t.area)||void 0===i?void 0:i.width)&&(d=Math.min(d,null===(r=t.area)||void 0===r?void 0:r.width));let u=e.bitmap.height-c;(null===(o=t.area)||void 0===o?void 0:o.height)&&(u=Math.min(u,null===(n=t.area)||void 0===n?void 0:n.height)),e.crop(l,c,d,u).getBase64Async(f.default.MIME_PNG).then((t=>{s(t.replace("data:image/png;base64,",""))})).catch((t=>{a(t)}))})).catch((t=>{a(t)})):s(Buffer.concat(i).toString("base64"))}))}))))}adbCommand(t){return new Promise((e=>{this.tool.shell(this.id,t).then((t=>{let s,a="";t.on("data",(t=>{a+=t.toString(),s&&clearTimeout(s),s=setTimeout((()=>{e(a)}),50)})),setTimeout((()=>{e(a)}),1500)}))}))}exists(t){return this.tool.stat(this.id,t)}pushFile(t,e){return this.tool.push(this.id,t,e)}async push(t){if(!process.env.UNI_HBUILDERX_PLUGINS)return super.push(t);const e=y.default.join(process.env.UNI_HBUILDERX_PLUGINS,"launcher","out","export","pushResources.js"),s=process.env.HX_CONFIG_ADB_PATH||y.default.join(process.env.UNI_HBUILDERX_PLUGINS,"launcher-tools","tools","adbs","adb"),a=[e,s].map((t=>d.default.promises.access(t,d.default.constants.F_OK).then((()=>`${t} exists`)).catch((()=>`${t} not exists`))));return Promise.all(a).then((()=>{const{PushResources:a}=require(e);return new a({adbPath:s,appid:this.appid,uuid:this.id,packageName:this.package,sourcePath:t}).start(),this.needStart=!1,!0})).catch((async e=>(console.log("pushResources or adb not exists: ",e),await super.push(t))))}shell(t){return N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} SEND ► ${t}`),this.tool.shell(this.id,t).then(I.util.readAll).then((t=>{const e=t.toString();return N(`${m.default("yyyy-mm-dd HH:MM:ss:l")} ◀ RECV ${e}`),e}))}get DIR_WWW(){return`/storage/emulated/0/Android/data/${this.package}/apps/${this.appid}/www`}get COMMAND_EXTERNAL(){return"echo $EXTERNAL_STORAGE"}get COMMAND_VERSION(){return`dumpsys package ${this.package}`}get COMMAND_STOP(){return`am force-stop ${this.package}`}get COMMAND_START(){return`am start -n ${this.package}/${this.activity} --es appid ${this.appid} --ez needUpdateApp false --ez reload true --ez externalStorage true`}}const R=u.default("automator:devtool");let C,O=!1;const T={android:/android_version=(.*)/,ios:/iphone_version=(.*)/};const L={"Tool.close":{reflect:async()=>{}},"App.exit":{reflect:async()=>C.exit()},"App.enableLog":{reflect:()=>Promise.resolve()},"App.captureScreenshotWithDevice":{reflect:async(t,e)=>{const s=await C.captureScreenshot(e);return R(`App.captureScreenshot ${s.length}`),{data:s}}},"App.adbCommand":{reflect:async(t,e)=>{const s=await C.adbCommand(e);return R(`App.adbCommand ${s.length}`),{data:s}}}};!function(t){$.forEach((e=>{t[e]=function(t){return{reflect:async(e,s)=>e(t,s,!1),params:t=>(t.selector&&(t.selector=h.default(g).processSync(t.selector)),t)}}(e)}))}(L);const k={devtools:{name:"App",paths:[],required:["manifest.json","app-service.js"],validate:async function(t,e){t.platform=(t.platform||process.env.UNI_OS_NAME).toLocaleLowerCase(),Object.assign(t,t[t.platform]),C=function(t,e){return"ios"===t?new x(e):new D(e)}(t.platform,t),await C.init();const s=await C.version();if(s){if(t.version){const e=C.formatVersion(function(t,e){if(t.endsWith(".txt"))try{const s=d.default.readFileSync(t).toString().match(T[e]);if(s)return s[1]}catch(t){console.error(t)}return t}(t.version,t.platform));R(`version: ${s}`),R(`newVersion: ${e}`),e!==s&&(O=!0)}}else O=!0;if(O){if(!t.executablePath)throw Error(`app-plus->${t.platform}->executablePath is not provided`);if(!d.default.existsSync(t.executablePath))throw Error(`${t.executablePath} not exists`)}return t},create:async function(t,e,s){O&&await C.install(),(O||s.compiled||await C.shouldPush())&&await C.push(t),await C.start()}},adapter:L};module.exports=k; +"use strict";var e=require("fs"),t=require("path"),s=require("debug"),a=require("jsonc-parser"),r=require("fs-extra"),i=require("postcss-selector-parser"),o=require("licia/dateFormat"),n=require("util"),l=require("jimp"),c=require("dns"),d=require("child_process");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=u(e),h=u(t),m=u(s),f=u(r),y=u(i),_=u(o),v=u(l),I=u(c);function P(e){e.walk((e=>{if("tag"===e.type){const t=e.value;e.value="page"===t?"body":"uni-"+t}}))}m.default("automator:devtool");const N=["Page.getElement","Page.getElements","Element.getElement","Element.getElements"];const E=/^win/.test(process.platform);function S(e){try{return require(e)}catch(t){return require(require.resolve(e,{paths:[process.cwd()]}))}}const g=m.default("automator:launcher"),w=n.promisify(p.default.readdir),D=n.promisify(p.default.stat);async function U(e){const s=await w(e);return(await Promise.all(s.map((async s=>{const a=t.resolve(e,s);return(await D(a)).isDirectory()?U(a):a})))).reduce(((e,t)=>e.concat(t)),[])}class ${constructor(e){this.isX=!1,"true"===process.env.UNI_APP_X&&(this.isX=!0),this.id=e.id,this.app=e.executablePath,this.appid=e.appid||process.env.UNI_APP_ID||(this.isX?"__UNI__uniappx":"HBuilder"),this.package=e.package||(this.isX?"io.dcloud.uniappx":"io.dcloud.HBuilder"),this.activity=e.activity||(this.isX?"io.dcloud.uniapp.UniAppActivity":"io.dcloud.PandoraEntry")}shouldPush(){return this.exists(this.FILE_APP_SERVICE).then((()=>(g(`${_.default("yyyy-mm-dd HH:MM:ss:l")} ${this.FILE_APP_SERVICE} exists`),!1))).catch((()=>(g(`${_.default("yyyy-mm-dd HH:MM:ss:l")} ${this.FILE_APP_SERVICE} not exists`),!0)))}push(e){return U(e).then((s=>{const a=s.map((s=>{const a=(e=>E?e.replace(/\\/g,"/"):e)(t.join(this.DIR_WWW,t.relative(e,s)));return g(`${_.default("yyyy-mm-dd HH:MM:ss:l")} push ${s} ${a}`),this.pushFile(s,a)}));return Promise.all(a)})).then((e=>!0))}get FILE_APP_SERVICE(){return`${this.DIR_WWW}/app-service.js`}}const A=m.default("automator:simctl");function M(e){const t=parseInt(e);return t>9?String(t):"0"+t}class R extends ${constructor(){super(...arguments),this.bundleVersion=""}async init(){const e=S("node-simctl").Simctl;this.tool=new e({udid:this.id});try{await this.tool.bootDevice()}catch(e){}await this.initSDCard(),A(`${_.default("yyyy-mm-dd HH:MM:ss:l")} init ${this.id}`)}async initSDCard(){const e=await this.tool.appInfo(this.package);A(`${_.default("yyyy-mm-dd HH:MM:ss:l")} appInfo ${e}`);const t=e.match(/DataContainer\s+=\s+"(.*)"/);if(!t)return Promise.resolve("");const s=e.match(/CFBundleVersion\s+=\s+(.*);/);if(!s)return Promise.resolve("");this.sdcard=t[1].replace("file:",""),this.bundleVersion=s[1],A(`${_.default("yyyy-mm-dd HH:MM:ss:l")} install ${this.sdcard}`)}async version(){return Promise.resolve(this.bundleVersion)}formatVersion(e){const t=e.split(".");return 3!==t.length?e:t[0]+M(t[1])+M(t[2])}async install(){return A(`${_.default("yyyy-mm-dd HH:MM:ss:l")} install ${this.app}`),await this.tool.installApp(this.app),await this.tool.grantPermission(this.package,"all"),await this.initSDCard(),Promise.resolve(!0)}async start(){A("ios simulator start");try{await this.tool.terminateApp(this.package)}catch(e){console.error("ios simulator start terminateApp fail",e)}try{await this.tool.launchApp(this.package)}catch(e){console.error("ios simulator start launchApp fail",e),console.error(e)}return Promise.resolve(!0)}async exit(){return await this.tool.terminateApp(this.package),await this.tool.shutdownDevice(),Promise.resolve(!0)}async captureScreenshot(e){const t=await Promise.resolve(await this.tool.getScreenshot());return new Promise(((s,a)=>{var r,i;void 0!==(null===(r=null==e?void 0:e.area)||void 0===r?void 0:r.x)&&void 0!==(null===(i=null==e?void 0:e.area)||void 0===i?void 0:i.y)?v.default.read(Buffer.from(t,"base64")).then((t=>{const r=e.area.x,i=e.area.y;let o=t.bitmap.width-r;e.area.width&&(o=Math.min(o,e.area.width));let n=t.bitmap.height-i;e.area.height&&(n=Math.min(n,e.area.height)),t.crop(r,i,o,n).getBase64Async(v.default.MIME_PNG).then((e=>{s(e.replace("data:image/png;base64,",""))})).catch((e=>{a(e)}))})).catch((e=>{a(e)})):s(t)}))}exists(e){return f.default.existsSync(e)?Promise.resolve(!0):Promise.reject(Error(`${e} not exists`))}pushFile(e,t){return Promise.resolve(f.default.copySync(e,t))}adbCommand(e){return new Promise((e=>{e("adbCommand only for App Android!")}))}get DIR_WWW(){return"true"===process.env.UNI_APP_X?`${this.sdcard}/Documents/uni-app-x/apps/__UNI__uniappx/www/`:`${this.sdcard}/Documents/Pandora/apps/${this.appid}/www/`}}const H=S("adbkit"),b=m.default("automator:adb");class x extends ${constructor(){super(...arguments),this.needStart=!0}async init(){if(void 0!==I.default.setDefaultResultOrder&&I.default.setDefaultResultOrder("ipv4first"),this.tool=H.createClient(),b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} init ${await this.tool.version()}`),!this.id){const e=await this.tool.listDevices();if(!e.length)throw Error("Device not found");this.id=e[0].id}console.log("before echo ${$EXTERNAL_STORAGE}"),this.sdcard=(await this.shell(this.COMMAND_EXTERNAL)).trim(),console.log("after echo ${$EXTERNAL_STORAGE}",this.sdcard),b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} init ${this.id} ${this.sdcard}`)}root(){return this.tool.root(this.id).then((()=>{b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} root ${this.id} ${this.sdcard}`)})).catch((e=>{b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} root ${this.id} ${e}`)}))}version(){return this.shell(this.COMMAND_VERSION).then((e=>{const t=e.match(/versionName=(.*)/);return t&&t.length>1?t[1]:""}))}formatVersion(e){return e}async install(){let e=!0;try{const t=(await this.tool.getProperties(this.id))["ro.build.version.release"].split(".")[0];parseInt(t)<6&&(e=!1)}catch(e){}if(b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} install ${this.app} permission=${e}`),e){const e=S("adbkit/lib/adb/command.js"),t=e.prototype._send;e.prototype._send=function(e){return 0===e.indexOf("shell:pm install -r ")&&(e=e.replace("shell:pm install -r ","shell:pm install -r -g "),b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} ${e} `)),t.call(this,e)}}return this.tool.install(this.id,this.app).then((()=>{b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} installed`),this.init()}))}start(){return this.needStart?this.exit().then((()=>this.shell(this.COMMAND_START))):Promise.resolve()}exit(){return this.shell(this.COMMAND_STOP)}captureScreenshot(e){return this.tool.screencap(this.id).then((t=>new Promise(((s,a)=>{const r=[];t.on("data",(function(e){r.push(e)})),t.on("end",(function(){var t,i;void 0!==(null===(t=e.area)||void 0===t?void 0:t.x)&&void 0!==(null===(i=e.area)||void 0===i?void 0:i.y)?v.default.read(Buffer.concat(r)).then((t=>{var r,i,o,n;const l=e.area.x,c=e.area.y;let d=t.bitmap.width-l;(null===(r=e.area)||void 0===r?void 0:r.width)&&(d=Math.min(d,null===(i=e.area)||void 0===i?void 0:i.width));let u=t.bitmap.height-c;(null===(o=e.area)||void 0===o?void 0:o.height)&&(u=Math.min(u,null===(n=e.area)||void 0===n?void 0:n.height)),t.crop(l,c,d,u).getBase64Async(v.default.MIME_PNG).then((e=>{s(e.replace("data:image/png;base64,",""))})).catch((e=>{a(e)}))})).catch((e=>{a(e)})):s(Buffer.concat(r).toString("base64"))}))}))))}adbCommand(e){return new Promise((t=>{this.tool.shell(this.id,e).then((e=>{let s,a="";e.on("data",(e=>{a+=e.toString(),s&&clearTimeout(s),s=setTimeout((()=>{t(a)}),50)})),setTimeout((()=>{t(a)}),1500)}))}))}exists(e){return this.tool.stat(this.id,e)}pushFile(e,t){return this.tool.push(this.id,e,t)}async push(e){if(!process.env.UNI_HBUILDERX_PLUGINS)return super.push(e);const t=h.default.join(process.env.UNI_HBUILDERX_PLUGINS,"launcher","out","export","pushResources.js"),s=process.env.HX_CONFIG_ADB_PATH||h.default.join(process.env.UNI_HBUILDERX_PLUGINS,"launcher-tools","tools","adbs","adb"),a=[t,s].map((e=>p.default.promises.access(e,p.default.constants.F_OK).then((()=>`${e} exists`)).catch((()=>`${e} not exists`))));return Promise.all(a).then((()=>{const{PushResources:a}=require(t);return new a({adbPath:s,appid:this.appid,uuid:this.id,packageName:this.package,sourcePath:e}).start(),this.needStart=!1,!0})).catch((async t=>(console.log("pushResources or adb not exists: ",t),await super.push(e))))}shell(e){return b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} SEND ► ${e}`),this.tool.shell(this.id,e).then(H.util.readAll).then((e=>{const t=e.toString();return b(`${_.default("yyyy-mm-dd HH:MM:ss:l")} ◀ RECV ${t}`),t}))}get DIR_WWW(){return`/storage/emulated/0/Android/data/${this.package}/apps/${this.appid}/www`}get COMMAND_EXTERNAL(){return"echo $EXTERNAL_STORAGE"}get COMMAND_VERSION(){return`dumpsys package ${this.package}`}get COMMAND_STOP(){return`am force-stop ${this.package}`}get COMMAND_START(){return`am start -n ${this.package}/${this.activity} --es appid ${this.appid} --ez needUpdateApp false --ez reload true --ez externalStorage true`}}const T=m.default("automator:devtool");let C,O=!1;const X={android:/android_version=(.*)/,ios:/iphone_version=(.*)/};const k={"Tool.close":{reflect:async()=>{}},"App.exit":{reflect:async()=>C.exit()},"App.enableLog":{reflect:()=>Promise.resolve()},"App.captureScreenshotWithDevice":{reflect:async(e,t)=>{const s=await C.captureScreenshot(t);return T(`App.captureScreenshot ${s.length}`),{data:s}}},"App.adbCommand":{reflect:async(e,t)=>{const s=await C.adbCommand(t);return T(`App.adbCommand ${s.length}`),{data:s}}}};!function(e){N.forEach((t=>{e[t]=function(e){return{reflect:async(t,s)=>t(e,s,!1),params:e=>(e.selector&&(e.selector=y.default(P).processSync(e.selector)),e)}}(t)}))}(k);const j={devtools:{name:"App",paths:[],required:["manifest.json","app-service.js"],validate:async function(e,t){e.platform=(e.platform||process.env.UNI_OS_NAME).toLocaleLowerCase(),Object.assign(e,e[e.platform]),C=function(e,t){return"ios"===e?new R(t):new x(t)}(e.platform,e),await C.init();const s=await C.version();if(s){if(e.version){const t=C.formatVersion(function(e,t){if(e.endsWith(".txt"))try{const s=p.default.readFileSync(e).toString().match(X[t]);if(s)return s[1]}catch(e){console.error(e)}return e}(e.version,e.platform));T(`version: ${s}`),T(`newVersion: ${t}`),t!==s&&(O=!0)}}else O=!0;if(O){if(!e.executablePath)throw Error(`app-plus->${e.platform}->executablePath is not provided`);if(!p.default.existsSync(e.executablePath))throw Error(`${e.executablePath} not exists`)}return e},create:async function(e,t,s){O&&await C.install(),(O||s.compiled||await C.shouldPush())&&await C.push(e),await C.start()}},adapter:k,beforeCompile(){if(process.env.UNI_INPUT_DIR&&"true"===process.env.UNI_AUTOMATOR_APP_WEBVIEW){const e=a.parse(r.readFileSync(h.default.resolve(process.env.UNI_INPUT_DIR,"manifest.json"),"utf8")),t=h.default.resolve(process.env.UNI_INPUT_DIR,"unpackage",".automator","app-webview");process.env.UNI_INPUT_DIR=h.default.resolve(t,"src"),process.env.UNI_OUTPUT_DIR=h.default.resolve(t,"unpackage","dist","dev"),r.existsSync(process.env.UNI_INPUT_DIR)&&r.emptyDirSync(process.env.UNI_INPUT_DIR),r.copySync(h.default.resolve(__dirname,"..","lib","app-webview","project"),process.env.UNI_INPUT_DIR);const s=a.parse(r.readFileSync(h.default.resolve(process.env.UNI_INPUT_DIR,"manifest.json"),"utf8"));r.writeFileSync(h.default.resolve(process.env.UNI_INPUT_DIR,"manifest.json"),JSON.stringify(Object.assign(Object.assign({},s),{name:e.name||"",appid:e.appid||""}),null,2))}else if(process.env.UNI_INPUT_DIR&&"ios"===process.env.UNI_OS_NAME&&C.app&&C.app.endsWith(".app")){const e=h.default.resolve(process.env.UNI_INPUT_DIR,"uni_modules");if(!r.readdirSync(e).some((t=>r.existsSync(h.default.resolve(e,t,"utssdk")))))return;process.env.UNI_APP_X="true"===process.env.UNI_APP_X?"1":"0",process.env.HX_DEPENDENCIES_DIR=h.default.join(process.env.UNI_OUTPUT_DIR,"../../../cache/.automator/uts_standard_simulator"),process.env.HX_RUN_DEVICE_TYPE="ios_simulator",C.app&&(process.env.UTS_BASE_INFO=p.default.readFileSync(h.default.resolve(C.app,"Frameworks/DCloudUTSFoundation.framework/uts-info.json"),"utf8")),!process.env.HX_Version&&process.env.UNI_HBUILDERX_PLUGINS&&(process.env.HX_Version=require(h.default.join(process.env.UNI_HBUILDERX_PLUGINS,"about","package.json")).version),T("HX_DEPENDENCIES_DIR",process.env.HX_DEPENDENCIES_DIR),T("UTS_BASE_INFO",process.env.UTS_BASE_INFO)}},afterCompile(){if("ios_simulator"===process.env.HX_RUN_DEVICE_TYPE&&C.app){process.env.UNI_APP_X="1"===process.env.UNI_APP_X?"true":"false";const t=h.default.resolve(process.env.HX_DEPENDENCIES_DIR,"Resources"),s=h.default.resolve(process.env.HX_DEPENDENCIES_DIR,"modules"),a=p.default.existsSync(t),i=p.default.existsSync(s),o=(e=h.default.basename(C.app),h.default.resolve(process.env.HX_DEPENDENCIES_DIR,".automator/"+e));if(!a&&!i)return;if(r.existsSync(o)&&r.emptyDirSync(o),r.copySync(C.app,o),C.app=o,a&&r.copySync(t,h.default.resolve(C.app,"Resources")),i){const e=[];r.readdirSync(s).forEach((t=>{t.endsWith(".framework")&&(e.push(t),r.copySync(h.default.join(s,t),h.default.resolve(C.app,"Frameworks",t)))})),e.forEach((e=>{const t=`'${process.env.UNI_HBUILDERX_PLUGINS}/launcher-tools/tools/uts/optool' 'install' '-c' 'weak' '-p' '@rpath/${e}/${e.replace(".framework","")}' '-t' '${C.app}'`,s=d.execSync(t);T(t,s.toString())}))}if(a||i){const e=d.execSync(`codesign -fs "-" "${C.app}"`);T("codesign success",e.toString())}}var e}};module.exports=j; diff --git a/packages/uni-automator/dist/index.js b/packages/uni-automator/dist/index.js index a6e0952bd06..0ff81d8ab95 100644 --- a/packages/uni-automator/dist/index.js +++ b/packages/uni-automator/dist/index.js @@ -1,4 +1,4 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),t=require("path"),s=require("debug"),n=require("merge"),i=require("jsonc-parser"),o=require("licia/isRelative"),r=require("ws"),a=require("events"),c=require("licia/uuid"),p=require("licia/stringify"),l=require("licia/dateFormat"),u=require("licia/waitUntil"),h=require("os"),d=require("address"),m=require("default-gateway"),g=require("licia/isStr"),v=require("licia/getPort"),y=require("qrcode-terminal"),f=require("licia/fs"),w=require("licia/isFn"),P=require("licia/trim"),I=require("licia/startWith"),M=require("licia/isNum"),_=require("licia/sleep"),k=require("licia/isUndef"),E=require("child_process"),A=require("licia/toStr"),U=require("fs-extra");function T(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var N=T(e),b=T(t),C=T(s),R=T(o),O=T(r),D=T(c),S=T(p),j=T(l),x=T(u),$=T(h),q=T(d),F=T(m),L=T(g),H=T(v),W=T(y),X=T(f),B=T(w),V=T(P),J=T(I),G=T(M),z=T(_),Y=T(k),K=T(A);class Q extends a.EventEmitter{constructor(e){super(),this.ws=e,this.ws.addEventListener("message",(e=>{this.emit("message",e.data)})),this.ws.addEventListener("close",(()=>{this.emit("close")}))}send(e){this.ws.send(e)}close(){this.ws.close()}}const Z=new Map,ee=["onCompassChange","onThemeChange","onUserCaptureScreen","onWindowResize","onMemoryWarning","onAccelerometerChange","onKeyboardHeightChange","onNetworkStatusChange","onPushMessage","onLocationChange","onGetWifiList","onWifiConnected","onWifiConnectedWithPartialInfo","onSocketOpen","onSocketError","onSocketMessage","onSocketClose"];const te=new Map;function se(e,t){(null==e?void 0:e.success)&&"function"==typeof(null==e?void 0:e.success)&&(t?e.success(t):e.success()),(null==e?void 0:e.complete)&&"function"==typeof(null==e?void 0:e.complete)&&(t?e.complete(t):e.complete())}function ne(e,t){(null==e?void 0:e.fail)&&"function"==typeof(null==e?void 0:e.fail)&&(t?e.fail(t):e.fail()),(null==e?void 0:e.complete)&&"function"==typeof(null==e?void 0:e.complete)&&(t?e.complete(t):e.complete())}async function ie(e,t){const[s,n]=function(e){return L.default(e)?[!0,[e]]:[!1,e]}(t),i=await e(n);return s?i[0]:i}function oe(e){try{return require(e)}catch(t){return require(require.resolve(e,{paths:[process.cwd()]}))}}/^win/.test(process.platform);const re="Connection closed";class ae extends a.EventEmitter{constructor(e,t,s){super(),this.puppet=t,this.namespace=s,this.callbacks=new Map,this.transport=e,this.isAlive=!0,this.id=Date.now(),this.debug=C.default("automator:protocol:"+this.namespace),this.onMessage=e=>{var t,s;if(this.isAlive=!0,"true"===process.env.UNI_APP_X&&'"pong"'===e)return;this.debug(`${j.default("yyyy-mm-dd HH:MM:ss:l")} ◀ RECV ${e}`);const{id:n,method:i,error:o,result:r,params:a}=JSON.parse(e);if(null===(t=null==r?void 0:r.method)||void 0===t?void 0:t.startsWith("on"))return void((e,t)=>{const s=Z.get(e.method);(null==s?void 0:s.has(t))&&s.get(t)(e.data)})(r,n);if(null===(s=null==r?void 0:r.method)||void 0===s?void 0:s.startsWith("Socket.")){return void((e,t,s)=>{const n=te.get(t);(null==n?void 0:n.has(e))&&n.get(e)(s)})(r.method.replace("Socket.",""),r.id,r.data)}if(!n)return this.puppet.emit(i,a);const{callbacks:c}=this;if(n&&c.has(n)){const e=c.get(n);c.delete(n),o?e.reject(Error(o.message||o.detailMessage||o.errMsg)):e.resolve(r)}},this.onClose=()=>{this.callbacks.forEach((e=>{e.reject(Error(re))}))},this.transport.on("message",this.onMessage),this.transport.on("close",this.onClose)}send(e,t={},s=!0){if(s&&this.puppet.adapter.has(e))return this.puppet.adapter.send(this,e,t);const n=D.default(),i=S.default({id:n,method:e,params:t});return"ping"!==e&&this.debug(`${j.default("yyyy-mm-dd HH:MM:ss:l")} SEND ► ${i}`),new Promise(((e,t)=>{try{this.transport.send(i)}catch(e){t(Error(re))}this.callbacks.set(n,{resolve:e,reject:t})}))}dispose(){this.transport.close()}startHeartbeat(){"true"===process.env.UNI_APP_X&&("android"===process.env.UNI_APP_PLATFORM?this.startXAndroidHeartbeat():"ios"===process.env.UNI_APP_PLATFORM&&this.startXIosHeartbeat())}startXAndroidHeartbeat(){const e=new Map,t=oe("adbkit"),s=$.default.platform();let n="",i="";"darwin"===s?(n='dumpsys activity | grep "Run"',i="logcat -b crash | grep -C 10 io.dcloud.uniappx"):"win32"===s&&(n='dumpsys activity | findstr "Run"',i="logcat | findstr UncaughtExceptionHandler"),e.set(this.id,setInterval((async()=>{if(!this.isAlive){const o=t.createClient(),r=await o.listDevices();if(!r.length)throw Error("Device not found");const a=r[0].id,c=await o.getProperties(a);return("1"===c["ro.kernel.qemu"]||"goldfish"===c["ro.hardware"])&&"win32"===s&&(i="logcat | grep UncaughtExceptionHandler"),o.shell(a,n).then((function(e){let t,s="";e.on("data",(function(e){s+=e.toString(),t&&clearTimeout(t),t=setTimeout((()=>{s.includes("io.dcloud.uniapp")||console.log("Stop the test process.")}),50)}))})),o.shell(a,i).then((e=>{let t,s="";e.on("data",(e=>{s+=e.toString(),t&&clearTimeout(t),t=setTimeout((()=>{console.log(`crash log: ${s}`)}),50)}))})),clearInterval(e.get(this.id)),e.delete(this.id),void this.dispose()}this.send("ping"),this.isAlive=!1}),5e3))}startXIosHeartbeat(){const e=new Map;e.set(this.id,setInterval((async()=>{if(!this.isAlive)return console.log("Stop the test process."),clearInterval(e.get(this.id)),e.delete(this.id),void this.dispose();this.send("ping"),this.isAlive=!1}),5e3))}static createDevtoolConnection(e,t){return new Promise(((s,n)=>{const i=new O.default(e);i.addEventListener("open",(()=>{s(new ae(new Q(i),t,"devtool"))})),i.addEventListener("error",n)}))}static createRuntimeConnection(e,t,s){return new Promise(((n,i)=>{C.default("automator:runtime")(`${j.default("yyyy-mm-dd HH:MM:ss:l")} port=${e}`);const o=new O.default.Server({port:e});x.default((async()=>{if(t.runtimeConnection)return!0}),s,1e3).catch((()=>{o.close(),i("Failed to connect to runtime, please make sure the project is running")})),o.on("connection",(function(e){C.default("automator:runtime")(`${j.default("yyyy-mm-dd HH:MM:ss:l")} connected`);const s=new ae(new Q(e),t,"runtime");t.setRuntimeConnection(s),s.startHeartbeat(),n(s)})),t.setRuntimeServer(o)}))}} +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("fs"),e=require("path"),n=require("debug"),s=require("merge"),i=require("jsonc-parser"),o=require("licia/isRelative"),r=require("ws"),a=require("events"),c=require("licia/uuid"),p=require("licia/stringify"),l=require("licia/dateFormat"),u=require("licia/waitUntil"),h=require("os"),d=require("address"),m=require("default-gateway"),g=require("licia/isStr"),y=require("licia/getPort"),v=require("qrcode-terminal"),f=require("licia/fs"),w=require("licia/isFn"),P=require("licia/trim"),M=require("licia/startWith"),I=require("licia/isNum"),k=require("licia/sleep"),E=require("licia/isUndef"),A=require("child_process"),_=require("licia/toStr"),b=require("fs-extra");function T(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var C=T(t),U=T(e),N=T(n),O=T(o),R=T(r),S=T(c),D=T(p),j=T(l),x=T(u),$=T(h),q=T(d),L=T(m),F=T(g),H=T(y),W=T(v),X=T(f),B=T(w),V=T(P),J=T(M),G=T(I),z=T(k),Y=T(E),K=T(_);class Q extends a.EventEmitter{constructor(t){super(),this.ws=t,this.ws.addEventListener("message",(t=>{this.emit("message",t.data)})),this.ws.addEventListener("close",(()=>{this.emit("close")}))}send(t){this.ws.send(t)}close(){this.ws.close()}}const Z=new Map,tt=["onCompassChange","onThemeChange","onUserCaptureScreen","onWindowResize","onMemoryWarning","onAccelerometerChange","onKeyboardHeightChange","onNetworkStatusChange","onPushMessage","onLocationChange","onGetWifiList","onWifiConnected","onWifiConnectedWithPartialInfo","onSocketOpen","onSocketError","onSocketMessage","onSocketClose"];const et=new Map;function nt(t,e){(null==t?void 0:t.success)&&"function"==typeof(null==t?void 0:t.success)&&(e?t.success(e):t.success()),(null==t?void 0:t.complete)&&"function"==typeof(null==t?void 0:t.complete)&&(e?t.complete(e):t.complete())}function st(t,e){(null==t?void 0:t.fail)&&"function"==typeof(null==t?void 0:t.fail)&&(e?t.fail(e):t.fail()),(null==t?void 0:t.complete)&&"function"==typeof(null==t?void 0:t.complete)&&(e?t.complete(e):t.complete())}async function it(t,e){const[n,s]=function(t){return F.default(t)?[!0,[t]]:[!1,t]}(e),i=await t(s);return n?i[0]:i}function ot(t){try{return require(t)}catch(e){return require(require.resolve(t,{paths:[process.cwd()]}))}}/^win/.test(process.platform);const rt="Connection closed";class at extends a.EventEmitter{constructor(t,e,n){super(),this.puppet=e,this.namespace=n,this.callbacks=new Map,this.transport=t,this.isAlive=!0,this.id=Date.now(),this.debug=N.default("automator:protocol:"+this.namespace),this.onMessage=t=>{var e,n;if(this.isAlive=!0,"true"===process.env.UNI_APP_X&&'"pong"'===t)return;this.debug(`${j.default("yyyy-mm-dd HH:MM:ss:l")} ◀ RECV ${t}`);const{id:s,method:i,error:o,result:r,params:a}=JSON.parse(t);if(null===(e=null==r?void 0:r.method)||void 0===e?void 0:e.startsWith("on"))return void((t,e)=>{const n=Z.get(t.method);(null==n?void 0:n.has(e))&&n.get(e)(t.data)})(r,s);if(null===(n=null==r?void 0:r.method)||void 0===n?void 0:n.startsWith("Socket.")){return void((t,e,n)=>{const s=et.get(e);(null==s?void 0:s.has(t))&&s.get(t)(n)})(r.method.replace("Socket.",""),r.id,r.data)}if(!s)return this.puppet.emit(i,a);const{callbacks:c}=this;if(s&&c.has(s)){const t=c.get(s);c.delete(s),o?t.reject(Error(o.message||o.detailMessage||o.errMsg)):t.resolve(r)}},this.onClose=()=>{this.callbacks.forEach((t=>{t.reject(Error(rt))}))},this.transport.on("message",this.onMessage),this.transport.on("close",this.onClose)}send(t,e={},n=!0){if(n&&this.puppet.adapter.has(t))return this.puppet.adapter.send(this,t,e);const s=S.default(),i=D.default({id:s,method:t,params:e});return"ping"!==t&&this.debug(`${j.default("yyyy-mm-dd HH:MM:ss:l")} SEND ► ${i}`),new Promise(((t,e)=>{try{this.transport.send(i)}catch(t){e(Error(rt))}this.callbacks.set(s,{resolve:t,reject:e})}))}dispose(){this.transport.close()}startHeartbeat(){"true"===process.env.UNI_APP_X&&("android"===process.env.UNI_APP_PLATFORM?this.startXAndroidHeartbeat():"ios"===process.env.UNI_APP_PLATFORM&&this.startXIosHeartbeat())}startXAndroidHeartbeat(){const t=new Map,e=ot("adbkit"),n=$.default.platform();let s="",i="";"darwin"===n?(s='dumpsys activity | grep "Run"',i="logcat -b crash | grep -C 10 io.dcloud.uniappx"):"win32"===n&&(s='dumpsys activity | findstr "Run"',i="logcat | findstr UncaughtExceptionHandler"),t.set(this.id,setInterval((async()=>{if(!this.isAlive){const o=e.createClient(),r=await o.listDevices();if(!r.length)throw Error("Device not found");const a=r[0].id,c=await o.getProperties(a);return("1"===c["ro.kernel.qemu"]||"goldfish"===c["ro.hardware"])&&"win32"===n&&(i="logcat | grep UncaughtExceptionHandler"),o.shell(a,s).then((function(t){let e,n="";t.on("data",(function(t){n+=t.toString(),e&&clearTimeout(e),e=setTimeout((()=>{n.includes("io.dcloud.uniapp")||console.log("Stop the test process.")}),50)}))})),o.shell(a,i).then((t=>{let e,n="";t.on("data",(t=>{n+=t.toString(),e&&clearTimeout(e),e=setTimeout((()=>{console.log(`crash log: ${n}`)}),50)}))})),clearInterval(t.get(this.id)),t.delete(this.id),void this.dispose()}this.send("ping"),this.isAlive=!1}),5e3))}startXIosHeartbeat(){const t=new Map;t.set(this.id,setInterval((async()=>{if(!this.isAlive)return console.log("Stop the test process."),clearInterval(t.get(this.id)),t.delete(this.id),void this.dispose();this.send("ping"),this.isAlive=!1}),5e3))}static createDevtoolConnection(t,e){return new Promise(((n,s)=>{const i=new R.default(t);i.addEventListener("open",(()=>{n(new at(new Q(i),e,"devtool"))})),i.addEventListener("error",s)}))}static createRuntimeConnection(t,e,n){return new Promise(((s,i)=>{N.default("automator:runtime")(`${j.default("yyyy-mm-dd HH:MM:ss:l")} port=${t}`);const o=new R.default.Server({port:t});x.default((async()=>{if(e.runtimeConnection)return!0}),n,1e3).catch((()=>{o.close(),i("Failed to connect to runtime, please make sure the project is running")})),o.on("connection",(function(t){N.default("automator:runtime")(`${j.default("yyyy-mm-dd HH:MM:ss:l")} connected`);const n=new at(new Q(t),e,"runtime");e.setRuntimeConnection(n),n.startHeartbeat(),s(n)})),e.setRuntimeServer(o)}))}} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function ce(e,t,s,n){var i,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(r=(o<3?i(r):o>3?i(t,s,r):i(t,s))||r);return o>3&&r&&Object.defineProperty(t,s,r),r}var pe;function le(e,t){const s=t.value;return t.value=async function(t){return(await(null==s?void 0:s.call(this,t)))(e)},t}function ue(e,t,s){return le(pe.RUNTIME,s)}function he(e,t,s){return le(pe.DEVTOOL,s)}!function(e){e.RUNTIME="runtime",e.DEVTOOL="devtool"}(pe||(pe={}));class de{constructor(e){this.puppet=e}invoke(e,t){return async s=>this.puppet.devtoolConnection?(s===pe.DEVTOOL?this.puppet.devtoolConnection:this.puppet.runtimeConnection).send(e,t):this.puppet.runtimeConnection.send(e,t)}on(e,t){this.puppet.on(e,t)}}class me extends de{constructor(e,t){super(e),this.id=t.elementId,this.pageId=t.pageId,this.nodeId=t.nodeId,this.videoId=t.videoId}async getData(e){return this.invokeMethod("Element.getData",e)}async setData(e){return this.invokeMethod("Element.setData",e)}async callMethod(e){return this.invokeMethod("Element.callMethod",e)}async getElement(e){return this.invokeMethod("Element.getElement",e)}async getElements(e){return this.invokeMethod("Element.getElements",e)}async getOffset(){return this.invokeMethod("Element.getOffset")}async getHTML(e){return this.invokeMethod("Element.getHTML",e)}async getAttributes(e){return this.invokeMethod("Element.getAttributes",e)}async getStyles(e){return this.invokeMethod("Element.getStyles",e)}async getDOMProperties(e){return this.invokeMethod("Element.getDOMProperties",e)}async getProperties(e){return this.invokeMethod("Element.getProperties",e)}async tap(){return this.invokeMethod("Element.tap")}async longpress(){return this.invokeMethod("Element.longpress")}async touchstart(e){return this.invokeMethod("Element.touchstart",e)}async touchmove(e){return this.invokeMethod("Element.touchmove",e)}async touchend(e){return this.invokeMethod("Element.touchend",e)}async triggerEvent(e){return this.invokeMethod("Element.triggerEvent",e)}async callFunction(e){return this.invokeMethod("Element.callFunction",e)}async callContextMethod(e){return this.invokeMethod("Element.callContextMethod",e)}invokeMethod(e,t={}){return t.elementId=this.id,t.pageId=this.pageId,this.nodeId&&(t.nodeId=this.nodeId),this.videoId&&(t.videoId=this.videoId),this.invoke(e,t)}}ce([ue],me.prototype,"getData",null),ce([ue],me.prototype,"setData",null),ce([ue],me.prototype,"callMethod",null),ce([he],me.prototype,"getElement",null),ce([he],me.prototype,"getElements",null),ce([he],me.prototype,"getOffset",null),ce([he],me.prototype,"getHTML",null),ce([he],me.prototype,"getAttributes",null),ce([he],me.prototype,"getStyles",null),ce([he],me.prototype,"getDOMProperties",null),ce([he],me.prototype,"getProperties",null),ce([he],me.prototype,"tap",null),ce([he],me.prototype,"longpress",null),ce([he],me.prototype,"touchstart",null),ce([he],me.prototype,"touchmove",null),ce([he],me.prototype,"touchend",null),ce([he],me.prototype,"triggerEvent",null),ce([he],me.prototype,"callFunction",null),ce([he],me.prototype,"callContextMethod",null);const ge=Object.prototype.hasOwnProperty,ve=Array.isArray,ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function fe(e,t){if(ve(e))return e;if(t&&(s=t,n=e,ge.call(s,n)))return[e];var s,n;const i=[];return e.replace(ye,(function(e,t,s,n){return i.push(s?n.replace(/\\(\\)?/g,"$1"):t||e),n})),i}function we(e,t){const s=fe(t,e);let n;for(n=s.shift();null!=n;){if(null==(e=e[n]))return;n=s.shift()}return e}const Pe=require("util"),Ie=["scrollLeft","scrollTop","scrollWidth","scrollHeight"];class Me{constructor(e,t,s){this.puppet=e,this.id=t.elementId,this.pageId=t.pageId,this.nodeId=t.nodeId||null,this.videoId=t.videoId||null,this.tagName=t.tagName,this.nvue=t.nvue,this.elementMap=s,"body"!==this.tagName&&"page-body"!==this.tagName||(this.tagName="page"),this.api=new me(e,t)}toJSON(){return JSON.stringify({id:this.id,tagName:this.tagName,pageId:this.pageId,nodeId:this.nodeId,videoId:this.videoId})}toString(){return this.toJSON()}[Pe.inspect.custom](){return this.toJSON()}async $(e){try{const t=await this.api.getElement({selector:e});return Me.create(this.puppet,Object.assign({},t,{pageId:this.pageId}),this.elementMap)}catch(e){return null}}async $$(e){const{elements:t}=await this.api.getElements({selector:e});return t.map((e=>Me.create(this.puppet,Object.assign({},e,{pageId:this.pageId}),this.elementMap)))}async size(){const[e,t]=await this.domProperty(["offsetWidth","offsetHeight"]);return{width:e,height:t}}async offset(){const{left:e,top:t}=await this.api.getOffset();return{left:e,top:t}}async text(){return this.domProperty("innerText")}async attribute(e){if(!L.default(e))throw Error("name must be a string");return(await this.api.getAttributes({names:[e]})).attributes[0]}async value(){return this.puppet.isX?this.domProperty("value"):this.property("value")}async property(e){if(!L.default(e))throw Error("name must be a string");if(this.puppet.checkProperty){let t=this.publicProps;if(t||(this.publicProps=t=await this._property("__propPublic")),!t[e])throw Error(`${this.tagName}.${e} not exists`)}return this.puppet.isX&&"h5"===process.env.UNI_PLATFORM&&Ie.includes(e)?await this.domProperty(e):this._property(e)}async html(){return(await this.api.getHTML({type:"inner"})).html}async outerHtml(){return(await this.api.getHTML({type:"outer"})).html}async style(e){if(!L.default(e))throw Error("name must be a string");return(await this.api.getStyles({names:[e]})).styles[0]}async tap(){return this.api.tap()}async longpress(){return this.nvue||"true"===process.env.UNI_APP_X?this.api.longpress():(await this.touchstart(),await z.default(350),this.touchend())}async trigger(e,t){const s={type:e};return Y.default(t)||(s.detail=t),this.api.triggerEvent(s)}async touchstart(e){return this.api.touchstart(e)}async touchmove(e){return this.api.touchmove(e)}async touchend(e){return this.api.touchend(e)}async domProperty(e){return ie((async e=>(await this.api.getDOMProperties({names:e})).properties),e)}_property(e){return ie((async e=>(await this.api.getProperties({names:e})).properties),e)}send(e,t){return t.elementId=this.id,t.pageId=this.pageId,this.nodeId&&(t.nodeId=this.nodeId),this.videoId&&(t.videoId=this.videoId),this.puppet.send(e,t)}async callFunction(e,...t){return(await this.api.callFunction({functionName:e,args:t})).result}static create(e,t,s){let n,i=s.get(t.elementId);if(i)return i;if(t.nodeId)n=_e;else switch(t.tagName.toLowerCase()){case"input":n=ke;break;case"textarea":n=Ee;break;case"scroll-view":n=Ae;break;case"swiper":n=Ue;break;case"movable-view":n=Te;break;case"switch":n=Ne;break;case"slider":n=be;break;case"video":n=Ce;break;default:n=Me}return i=new n(e,t,s),s.set(t.elementId,i),i}}class _e extends Me{async setData(e){return this.api.setData({data:e})}async data(e){const t={};if(e&&(t.path=e),"true"===process.env.UNI_APP_X&&"android"===process.env.UNI_APP_PLATFORM&&"true"!==process.env.UNI_AUTOMATOR_APP_WEBVIEW){const s=(await this.api.getData(t)).data;return e?we(s,e):s}return(await this.api.getData(t)).data}async callMethod(e,...t){return(await this.api.callMethod({method:e,args:t})).result}}class ke extends Me{async input(e){return this.callFunction("input.input",e)}}class Ee extends Me{async input(e){return this.callFunction("textarea.input",e)}}class Ae extends Me{async scrollTo(e,t){return this.callFunction("scroll-view.scrollTo",e,t)}async property(e){return"scrollTop"===e?this.callFunction("scroll-view.scrollTop"):"scrollLeft"===e?this.callFunction("scroll-view.scrollLeft"):super.property(e)}async scrollWidth(){return this.callFunction("scroll-view.scrollWidth")}async scrollHeight(){return this.callFunction("scroll-view.scrollHeight")}}class Ue extends Me{async swipeTo(e){return this.callFunction("swiper.swipeTo",e)}}class Te extends Me{async moveTo(e,t){return this.callFunction("movable-view.moveTo",e,t)}async property(e){return"x"===e?this._property("_translateX"):"y"===e?this._property("_translateY"):super.property(e)}}class Ne extends Me{async tap(){return this.callFunction("switch.tap")}}class be extends Me{async slideTo(e){return this.callFunction("slider.slideTo",e)}}class Ce extends Me{async callContextMethod(e,...t){return await this.api.callContextMethod({method:e,args:t})}}class Re extends de{constructor(e,t){super(e),this.id=t.id}async getData(e){return this.invokeMethod("Page.getData",e)}async setData(e){return this.invokeMethod("Page.setData",e)}async callMethod(e){return this.invokeMethod("Page.callMethod",e)}async callMethodWithCallback(e){return this.invokeMethod("Page.callMethodWithCallback",e)}async getElement(e){return this.invokeMethod("Page.getElement",e)}async getElements(e){return this.invokeMethod("Page.getElements",e)}async getWindowProperties(e){return this.invokeMethod("Page.getWindowProperties",e)}invokeMethod(e,t={}){return t.pageId=this.id,this.invoke(e,t)}}ce([ue],Re.prototype,"getData",null),ce([ue],Re.prototype,"setData",null),ce([ue],Re.prototype,"callMethod",null),ce([ue],Re.prototype,"callMethodWithCallback",null),ce([he],Re.prototype,"getElement",null),ce([he],Re.prototype,"getElements",null),ce([he],Re.prototype,"getWindowProperties",null);const Oe=require("util");class De{constructor(e,t){this.puppet=e,this.id=t.id,this.path=t.path,this.query=t.query,this.elementMap=new Map,this.api=new Re(e,t)}toJSON(){return JSON.stringify({id:this.id,path:this.path,query:this.query})}toString(){return this.toJSON()}[Oe.inspect.custom](){return this.toJSON()}async waitFor(e){return G.default(e)?await z.default(e):B.default(e)?x.default(e,0,50):L.default(e)?x.default((async()=>{if("true"===process.env.UNI_APP_X){return!!await this.$(e)}return(await this.$$(e)).length>0}),0,50):void 0}async $(e){try{const t=await this.api.getElement({selector:e});return Me.create(this.puppet,Object.assign({selector:e},t,{pageId:this.id}),this.elementMap)}catch(e){return null}}async $$(e){const{elements:t}=await this.api.getElements({selector:e});return t.map((t=>Me.create(this.puppet,Object.assign({selector:e},t,{pageId:this.id}),this.elementMap)))}async data(e){const t={};if(e&&(t.path=e),"true"===process.env.UNI_APP_X&&"android"===process.env.UNI_APP_PLATFORM&&"true"!==process.env.UNI_AUTOMATOR_APP_WEBVIEW){const s=(await this.api.getData(t)).data;return e?we(s,e):s}return(await this.api.getData(t)).data}async setData(e){return this.api.setData({data:e})}async size(){const[e,t]=await this.windowProperty(["document.documentElement.scrollWidth","document.documentElement.scrollHeight"]);return{width:e,height:t}}async callMethod(e,...t){return(await this.api.callMethod({method:e,args:t})).result}async callMethodWithCallback(e,...t){return await this.api.callMethodWithCallback({method:e,args:t})}async scrollTop(){return this.windowProperty("document.documentElement.scrollTop")}async windowProperty(e){const t=L.default(e);t&&(e=[e]);const{properties:s}=await this.api.getWindowProperties({names:e});return t?s[0]:s}static create(e,t,s){let n=s.get(t.id);return n?(n.path=t.path,n.query=t.query,n):(n=new De(e,t),s.set(t.id,n),n)}}class Se extends de{async getPageStack(){return this.invoke("App.getPageStack")}async callUniMethod(e){return this.invoke("App.callUniMethod",e)}async getCurrentPage(){return this.invoke("App.getCurrentPage")}async mockUniMethod(e){return this.invoke("App.mockUniMethod",e)}async captureScreenshotByRuntime(e){return this.invoke("App.captureScreenshot",e)}async captureScreenshotWithDeviceByRuntime(e){return this.invoke("App.captureScreenshotWithDevice",e)}async socketEmitter(e){return this.invoke("App.socketEmitter",e)}async callFunction(e){return this.invoke("App.callFunction",e)}async captureScreenshot(e){return this.invoke("App.captureScreenshot",e)}async adbCommand(e){return this.invoke("App.adbCommand",e)}async exit(){return this.invoke("App.exit")}async addBinding(e){return this.invoke("App.addBinding",e)}async enableLog(){return this.invoke("App.enableLog")}onLogAdded(e){return this.on("App.logAdded",e)}onBindingCalled(e){return this.on("App.bindingCalled",e)}onExceptionThrown(e){return this.on("App.exceptionThrown",e)}}ce([ue],Se.prototype,"getPageStack",null),ce([ue],Se.prototype,"callUniMethod",null),ce([ue],Se.prototype,"getCurrentPage",null),ce([ue],Se.prototype,"mockUniMethod",null),ce([ue],Se.prototype,"captureScreenshotByRuntime",null),ce([ue],Se.prototype,"captureScreenshotWithDeviceByRuntime",null),ce([ue],Se.prototype,"socketEmitter",null),ce([he],Se.prototype,"callFunction",null),ce([he],Se.prototype,"captureScreenshot",null),ce([he],Se.prototype,"adbCommand",null),ce([he],Se.prototype,"exit",null),ce([he],Se.prototype,"addBinding",null),ce([he],Se.prototype,"enableLog",null);class je extends de{async getInfo(){return this.invoke("Tool.getInfo")}async enableRemoteDebug(e){return this.invoke("Tool.enableRemoteDebug")}async close(){return this.invoke("Tool.close")}async getTestAccounts(){return this.invoke("Tool.getTestAccounts")}onRemoteDebugConnected(e){this.puppet.once("Tool.onRemoteDebugConnected",e),this.puppet.once("Tool.onPreviewConnected",e)}}function xe(e){return new Promise((t=>setTimeout(t,e)))}ce([he],je.prototype,"getInfo",null),ce([he],je.prototype,"enableRemoteDebug",null),ce([he],je.prototype,"close",null),ce([he],je.prototype,"getTestAccounts",null);class $e extends a.EventEmitter{constructor(e,t){super(),this.puppet=e,this.options=t,this.pageMap=new Map,this.appBindings=new Map,this.appApi=new Se(e),this.toolApi=new je(e),this.appApi.onLogAdded((e=>{this.emit("console",e)})),this.appApi.onBindingCalled((({name:e,args:t})=>{try{const s=this.appBindings.get(e);s&&s(...t)}catch(e){}})),this.appApi.onExceptionThrown((e=>{this.emit("exception",e)}))}async pageStack(){return(await this.appApi.getPageStack()).pageStack.map((e=>De.create(this.puppet,e,this.pageMap)))}async navigateTo(e){return this.changeRoute("navigateTo",e)}async redirectTo(e){return this.changeRoute("redirectTo",e)}async navigateBack(){return this.changeRoute("navigateBack")}async reLaunch(e){return this.changeRoute("reLaunch",e)}async switchTab(e){return this.changeRoute("switchTab",e)}async currentPage(){const{id:e,path:t,query:s}=await this.appApi.getCurrentPage();return De.create(this.puppet,{id:e,path:t,query:s},this.pageMap)}async systemInfo(){return this.callUniMethod("getSystemInfoSync")}async callUniMethod(e,...t){return(await this.appApi.callUniMethod({method:e,args:t})).result}async mockUniMethod(e,t,...s){return B.default(t)||(n=t,L.default(n)&&(n=V.default(n),J.default(n,"function")||J.default(n,"() =>")))?this.appApi.mockUniMethod({method:e,functionDeclaration:t.toString(),args:s}):this.appApi.mockUniMethod({method:e,result:t});var n}async restoreUniMethod(e){return this.appApi.mockUniMethod({method:e})}async evaluate(e,...t){return(await this.appApi.callFunction({functionDeclaration:e.toString(),args:t})).result}async pageScrollTo(e){await this.callUniMethod("pageScrollTo",{scrollTop:e,duration:0})}async close(){try{await this.appApi.exit()}catch(e){}await xe(1e3),this.puppet.disposeRuntimeServer(),await this.toolApi.close(),this.disconnect()}async teardown(){return this["disconnect"===this.options.teardown?"disconnect":"close"]()}async remote(e){if(!this.puppet.devtools.remote)return console.warn(`Failed to enable remote, ${this.puppet.devtools.name} is unimplemented`);const{qrCode:t}=await this.toolApi.enableRemoteDebug({auto:e});var s;t&&await(s=t,new Promise((e=>{W.default.generate(s,{small:!0},(t=>{process.stdout.write(t),e(void 0)}))})));const n=new Promise((e=>{this.toolApi.onRemoteDebugConnected((async()=>{await xe(1e3),e(void 0)}))})),i=new Promise((e=>{this.puppet.setRemoteRuntimeConnectionCallback((()=>{e(void 0)}))}));return Promise.all([n,i])}disconnect(){this.puppet.dispose()}on(e,t){return"console"===e&&this.appApi.enableLog(),super.on(e,t),this}async exposeFunction(e,t){if(this.appBindings.has(e))throw Error(`Failed to expose function with name ${e}: already exists!`);this.appBindings.set(e,t),await this.appApi.addBinding({name:e})}async checkVersion(){}async screenshot(e){const t=this.puppet.isX&&"app-plus"===this.puppet.platform?(null==e?void 0:e.deviceShot)?"captureScreenshotWithDeviceByRuntime":"captureScreenshotByRuntime":"captureScreenshot",{data:s}=await this.appApi[t]({id:null==e?void 0:e.id,fullPage:null==e?void 0:e.fullPage,area:null==e?void 0:e.area,offsetX:null==e?void 0:e.offsetX,offsetY:null==e?void 0:e.offsetY});if(!(null==e?void 0:e.path))return s;await X.default.writeFile(e.path,s,"base64")}async testAccounts(){return(await this.toolApi.getTestAccounts()).accounts}async changeRoute(e,t){if(this.puppet.isVue3&&"h5"===process.env.UNI_PLATFORM&&"navigateBack"!==e){const{__id__:s}=await this.callUniMethod(e,{url:t,isAutomatedTesting:!0}),n=Date.now();return await x.default((async()=>{if(Date.now()-n>1e4)throw Error(`${e} to ${t} failed, unable to get the correct current page`);let i;try{i=await this.currentPage()}catch(e){return!1}return i.id===s&&i}),0,1e3)}return await this.callUniMethod(e,{url:t}),await xe(1e3),await this.currentPage()}async socketEmitter(e){return this.appApi.socketEmitter(e)}async adbCommand(e){return"android"===process.env.UNI_APP_PLATFORM?await this.appApi.adbCommand(e):Error("Program.adbCommand is only supported on the app android platform")}}class qe{constructor(e){this.options=e}has(e){return!!this.options[e]}send(e,t,s){const n=this.options[t];if(!n)return Promise.reject(Error(`adapter for ${t} not found`));const i=n.reflect;return i?(n.params&&(s=n.params(s)),"function"==typeof i?i(e.send.bind(e),s):(t=i,e.send(t,s))):Promise.reject(Error(`${t}'s reflect is required`))}}const Fe=C.default("automator:puppet"),Le=".automator.json";function He(e){try{return require(e)}catch(e){}}function We(e,t,s,n){const i=function(e,t,s){let n,i;return process.env.UNI_OUTPUT_DIR?(i=b.default.join(process.env.UNI_OUTPUT_DIR,`../.automator/${t}`,Le),n=He(i)):(i=b.default.join(e,`dist/${s}/.automator/${t}`,Le),n=He(i),n||(i=b.default.join(e,`unpackage/dist/${s}/.automator/${t}`,Le),n=He(i))),Fe(`${i}=>${JSON.stringify(n)}`),n}(e,s,n);if(!i||!i.wsEndpoint)return!1;const o=require("../package.json").version;if(i.version!==o)return Fe(`unmet=>${i.version}!==${o}`),!1;const r=function(e){let t;try{const e=F.default.v4.sync();t=q.default.ip(e&&e.interface),t&&(/^10[.]|^172[.](1[6-9]|2[0-9]|3[0-1])[.]|^192[.]168[.]/.test(t)||(t=void 0))}catch(e){}return"ws://"+(t||"localhost")+":"+e}(t);return Fe(`wsEndpoint=>${r}`),i.wsEndpoint===r}class Xe extends a.EventEmitter{constructor(e,t){if(super(),this.isX=!1,this.isVue3=!1,"true"===process.env.UNI_APP_X&&(this.isX=!0),t)this.target=t;else{if(this.target=null,"h5"===e)try{this.target=oe("@dcloudio/uni-h5/lib/h5/uni.automator.js")}catch(e){}this.target||(this.target=oe(`@dcloudio/uni-${"app"===e?"app-plus":e}/lib/uni.automator.js`))}if(!this.target)throw Error("puppet is not provided");this.platform=e,this.adapter=new qe(this.target.adapter||{})}setCompiler(e){this.compiler=e}setRuntimeServer(e){this.wss=e}setRemoteRuntimeConnectionCallback(e){this.remoteRuntimeConnectionCallback=e}setRuntimeConnection(e){this.runtimeConnection=e,this.remoteRuntimeConnectionCallback&&(this.remoteRuntimeConnectionCallback(),this.remoteRuntimeConnectionCallback=null)}setDevtoolConnection(e){this.devtoolConnection=e}disposeRuntimeServer(){this.wss&&this.wss.close()}disposeRuntime(){this.runtimeConnection.dispose()}disposeDevtool(){this.compiler&&this.compiler.stop(),this.devtoolConnection&&this.devtoolConnection.dispose()}dispose(){this.disposeRuntime(),this.disposeDevtool(),this.disposeRuntimeServer()}send(e,t){return this.runtimeConnection.send(e,t)}validateProject(e){const t=this.target.devtools.required;return!t||!t.find((t=>!N.default.existsSync(b.default.join(e,t))))}validateDevtools(e){const t=this.target.devtools.validate;return t?t(e,this):Promise.resolve(e)}createDevtools(e,t,s){const n=this.target.devtools.create;return n?(t.timeout=s,n(e,t,this)):Promise.resolve()}shouldCompile(e,t,s,n){this.compiled=!0;const i=this.target.shouldCompile;if(i)this.compiled=i(s,n);else if(!0===s.compile)this.compiled=!0;else{if("false"===process.env.UNI_AUTOMATOR_COMPILE)return!1;this.compiled=!We(e,t,this.platform,this.mode)}return this.compiled}get checkProperty(){return"mp-weixin"===this.platform}get devtools(){return this.target.devtools}get mode(){const e=this.target.mode;return e||("production"===process.env.NODE_ENV?"build":"dev")}}const Be=C.default("automator:compiler"),Ve=/The\s+(.*)\s+directory is ready/;class Je{constructor(e){this.puppet=e,this.puppet.setCompiler(this)}compile(e){const t=this.puppet.mode,s=this.puppet.platform;let n=e.silent;const i=e.port,o=e.host,r=`${t}:${s}`,a=e.projectPath,[c,p]=this.getSpawnArgs(e,r);p.push("--auto-port"),p.push(K.default(i)),o&&(p.push("--auto-host"),p.push(o));const l={cwd:e.cliPath,env:Object.assign(Object.assign({},process.env),{NODE_ENV:"build"===t?"production":"development"})};return new Promise(((e,i)=>{const o=o=>{const r=o.toString().trim();if(!n&&console.log(r),r.includes("- Network")||r.includes("> Network")||r.includes("➜ Network")){const t=r.match(/Network:(.*)/)[1].trim();Be(`url: ${t}`),e({path:t})}else if(r.includes("DONE Build failed"))i(r);else if(r.includes("DONE Build complete")){const i=r.match(Ve);let o="";if(i&&i.length>1)o=b.default.join(a,i[1]);else{const e=this.puppet.isX&&"app-plus"===s?"app":s;o=b.default.join(a,`dist/${t}/${e}`),U.existsSync(o)||(o=b.default.join(a,`unpackage/dist/${t}/${e}`))}n=!0,this.stop(),e({path:"true"===process.env.UNI_AUTOMATOR_APP_WEBVIEW?process.env.UNI_OUTPUT_DIR:o})}};Be(`${c} ${p.join(" ")} %o`,l),this.cliProcess=E.spawn(c,p,l),this.cliProcess.on("error",(e=>{i(e)})),this.cliProcess.stdout.on("data",o),this.cliProcess.stderr.on("data",o)}))}stop(){this.cliProcess&&this.cliProcess.kill("SIGTERM")}getSpawnArgs(e,t){let s;const n=e.cliPath;try{s=require(b.default.join(n,"package.json"))}catch(e){}let i=this.puppet.isX;if(s&&(s.devDependencies&&s.devDependencies["@dcloudio/vite-plugin-uni"]&&(i=!0),!i&&s.dependencies&&s.dependencies["@dcloudio/vite-plugin-uni"]&&(i=!0),s.scripts&&s.scripts[t]))return[process.env.UNI_NPM_PATH||(/^win/.test(process.platform)?"npm.cmd":"npm"),["run",t,"--"]];this.puppet.isVue3=i,["android","ios"].includes(process.env.UNI_OS_NAME)&&(process.env.UNI_APP_PLATFORM=process.env.UNI_OS_NAME);let o=this.puppet.platform;if("app-plus"===this.puppet.platform&&this.puppet.isX&&(o="app"),process.env.UNI_INPUT_DIR=e.projectPath,process.env.UNI_OUTPUT_DIR=b.default.join(e.projectPath,`unpackage/dist/${this.puppet.mode}/${o}`),this.prepare(),process.env.UNI_HBUILDERX_PLUGINS||U.existsSync(b.default.resolve(n,"../about"))&&(process.env.UNI_HBUILDERX_PLUGINS=b.default.dirname(n)),i){const e="app-plus"===this.puppet.platform?"app":this.puppet.platform;return process.env.UNI_PLATFORM=e,[process.env.UNI_NODE_PATH||"node",[require.resolve("@dcloudio/vite-plugin-uni/bin/uni.js",{paths:[n]}),"-p",e]]}return[process.env.UNI_NODE_PATH||"node",[b.default.join(n,"bin/uniapp-cli.js")]]}prepare(){if(process.env.UNI_INPUT_DIR&&"true"===process.env.UNI_AUTOMATOR_APP_WEBVIEW){const e=i.parse(U.readFileSync(b.default.resolve(process.env.UNI_INPUT_DIR,"manifest.json"),"utf8")),t=b.default.resolve(process.env.UNI_INPUT_DIR,"unpackage",".automator","app-webview");process.env.UNI_INPUT_DIR=b.default.resolve(t,"src"),process.env.UNI_OUTPUT_DIR=b.default.resolve(t,"unpackage","dist","dev"),U.existsSync(process.env.UNI_INPUT_DIR)&&U.emptyDirSync(process.env.UNI_INPUT_DIR),U.copySync(b.default.resolve(__dirname,"..","lib","app-webview","project"),process.env.UNI_INPUT_DIR);const s=i.parse(U.readFileSync(b.default.resolve(process.env.UNI_INPUT_DIR,"manifest.json"),"utf8"));U.writeFileSync(b.default.resolve(process.env.UNI_INPUT_DIR,"manifest.json"),JSON.stringify(Object.assign(Object.assign({},s),{name:e.name||"",appid:e.appid||""}),null,2))}}}const Ge=C.default("automator:launcher"),ze="true"===process.env.UNI_APP_X&&"android"===process.env.UNI_APP_PLATFORM?12e4:24e4;class Ye{async launch(e){const{port:t,cliPath:s,timeout:i,projectPath:o}=await this.validate(e);let r={};"app"===e.platform||"app-plus"===e.platform?(r=e.app||e["app-plus"],"true"===process.env.UNI_APP_X&&r["uni-app-x"]&&(r=n.recursive(!0,r,r["uni-app-x"])),delete r["uni-app-x"]):r=e[e.platform],r||(r={}),r.projectPath=o,Ge(r),this.puppet=new Xe(e.platform,r.puppet),r=await this.puppet.validateDevtools(r);let a=this.puppet.shouldCompile(o,t,e,r),c=process.env.UNI_OUTPUT_DIR||o;if(a||this.puppet.validateProject(c)||(c=b.default.join(o,"dist/"+this.puppet.mode+"/"+this.puppet.platform),this.puppet.validateProject(c)||(c=b.default.join(o,"unpackage/dist/"+this.puppet.mode+"/"+this.puppet.platform),this.puppet.validateProject(c)||(a=!0))),a){this.puppet.compiled=e.compile=!0,this.compiler=new Je(this.puppet);const n=await this.compiler.compile({host:e.host,port:t,cliPath:s,projectPath:o,silent:!!e.silent});n.path&&(c=n.path)}const p=[];return p.push(this.createRuntimeConnection(t,i)),p.push(this.puppet.createDevtools(c,r,i)),new Promise(((e,s)=>{Promise.all(p).then((([s,n])=>{s&&this.puppet.setRuntimeConnection(s),n&&this.puppet.setDevtoolConnection(n),C.default("automator:program")("ready");const i=r.teardown||"disconnect";e(new $e(this.puppet,{teardown:i,port:t}))})).catch((e=>s(e)))}))}resolveCliPath(e){if(!e)return e;try{const{dependencies:t,devDependencies:s}=require(b.default.join(e,"package.json"));if(Ke(s)||Ke(t))return e}catch(e){}}resolveProjectPath(e,t){return e||(e=process.env.UNI_INPUT_DIR||process.cwd()),R.default(e)&&(e=b.default.resolve(e)),N.default.existsSync(e)||function(e){throw Error(e)}(`Project path ${e} doesn't exist`),e}async validate(e){const t=this.resolveProjectPath(e.projectPath,e);let s=process.env.UNI_CLI_PATH||e.cliPath;if(s=this.resolveCliPath(s||""),!s&&(s=this.resolveCliPath(process.cwd())),!s&&(s=this.resolveCliPath(t)),!s)throw Error("cliPath is not provided");if("false"!==process.env.UNI_APP_X){const e=this.getManifestJson(t);("true"===process.env.UNI_APP_X||"uni-app-x"in e)&&(process.env.UNI_APP_X="true",e.appid&&(process.env.UNI_APP_ID=e.appid))}process.env.UNI_AUTOMATOR_HOST&&(e.host=process.env.UNI_AUTOMATOR_HOST),process.env.UNI_AUTOMATOR_PORT&&(e.port=parseInt(process.env.UNI_AUTOMATOR_PORT));return{port:await async function(e,t){const s=await H.default(e||t);if(e&&s!==e)throw Error(`Port ${e} is in use, please specify another port`);return s}(e.port||9520),cliPath:s,timeout:e.timeout||ze,projectPath:t}}getManifestJson(e){if(e){const t=b.default.join(e,"manifest.json");if(N.default.existsSync(t))return i.parse(N.default.readFileSync(t,"utf8"))}return{}}async createRuntimeConnection(e,t){return ae.createRuntimeConnection(e,this.puppet,t)}}function Ke(e){return!!e&&!(!e["@dcloudio/vue-cli-plugin-uni"]&&!e["@dcloudio/vite-plugin-uni"])}exports.Automator=class{constructor(){this.launcher=new Ye}async launch(e){return this.launcher.launch(e)}},exports.initUni=e=>new Proxy({},{get(t,s){return"connectSocket"===s?async(...t)=>{const n=`${Date.now()}-${Math.random()}`;return t[0].id=n,await e.callUniMethod(s,...t).then((s=>{se(t[0],s),te.set(n,new Map);const i={id:n,onMessage:t=>{e.socketEmitter({id:n,method:"onMessage"}),te.get(n).set("onMessage",t)},send:t=>{e.socketEmitter({id:n,method:"send",data:t.data}).then((e=>{se(t,e)})).catch((e=>{ne(t,e)}))},close:t=>{e.socketEmitter({id:n,method:"close",code:t.code,reason:t.reason}).then((e=>{se(t,e),te.delete(n)})).catch((e=>{ne(t,e)}))},onOpen:t=>{e.socketEmitter({id:n,method:"onOpen"}),te.get(n).set("onOpen",t)},onClose:t=>{e.socketEmitter({id:n,method:"onClose"}),te.get(n).set("onClose",t)},onError:t=>{e.socketEmitter({id:n,method:"onError"}),te.get(n).set("onError",t)}};return te.get(n).set("socketTask",i),i})).catch((e=>(ne(t[0],e),null)))}:(n=s,ee.includes(n)?t=>{Z.has(s)||Z.set(s,new Map);const n=Z.get(s),i=`${Date.now()}-${Math.random()}`;n.set(i,t),e.callUniMethod(s,i)}:function(e){return e.startsWith("off")&&ee.includes(e.replace("off","on"))}(s)?async t=>{const n=s.replace("off","on");if(Z.has(n))if(t){const i=Z.get(n);i.forEach(((n,o)=>{n===t&&(i.delete(o),e.callUniMethod(s,o))}))}else Z.delete(n),e.callUniMethod(s)}:async(...t)=>await e.callUniMethod(s,...t).then((e=>(se(t[0],e),e))).catch((e=>(ne(t[0],e),e))));var n}}); +***************************************************************************** */function ct(t,e,n,s){var i,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(o<3?i(r):o>3?i(e,n,r):i(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r}var pt;function lt(t,e){const n=e.value;return e.value=async function(e){return(await(null==n?void 0:n.call(this,e)))(t)},e}function ut(t,e,n){return lt(pt.RUNTIME,n)}function ht(t,e,n){return lt(pt.DEVTOOL,n)}!function(t){t.RUNTIME="runtime",t.DEVTOOL="devtool"}(pt||(pt={}));class dt{constructor(t){this.puppet=t}invoke(t,e){return async n=>this.puppet.devtoolConnection?(n===pt.DEVTOOL?this.puppet.devtoolConnection:this.puppet.runtimeConnection).send(t,e):this.puppet.runtimeConnection.send(t,e)}on(t,e){this.puppet.on(t,e)}}class mt extends dt{constructor(t,e){super(t),this.id=e.elementId,this.pageId=e.pageId,this.nodeId=e.nodeId,this.videoId=e.videoId}async getData(t){return this.invokeMethod("Element.getData",t)}async setData(t){return this.invokeMethod("Element.setData",t)}async callMethod(t){return this.invokeMethod("Element.callMethod",t)}async getElement(t){return this.invokeMethod("Element.getElement",t)}async getElements(t){return this.invokeMethod("Element.getElements",t)}async getOffset(){return this.invokeMethod("Element.getOffset")}async getHTML(t){return this.invokeMethod("Element.getHTML",t)}async getAttributes(t){return this.invokeMethod("Element.getAttributes",t)}async getStyles(t){return this.invokeMethod("Element.getStyles",t)}async getDOMProperties(t){return this.invokeMethod("Element.getDOMProperties",t)}async getProperties(t){return this.invokeMethod("Element.getProperties",t)}async tap(){return this.invokeMethod("Element.tap")}async longpress(){return this.invokeMethod("Element.longpress")}async touchstart(t){return this.invokeMethod("Element.touchstart",t)}async touchmove(t){return this.invokeMethod("Element.touchmove",t)}async touchend(t){return this.invokeMethod("Element.touchend",t)}async triggerEvent(t){return this.invokeMethod("Element.triggerEvent",t)}async callFunction(t){return this.invokeMethod("Element.callFunction",t)}async callContextMethod(t){return this.invokeMethod("Element.callContextMethod",t)}invokeMethod(t,e={}){return e.elementId=this.id,e.pageId=this.pageId,this.nodeId&&(e.nodeId=this.nodeId),this.videoId&&(e.videoId=this.videoId),this.invoke(t,e)}}ct([ut],mt.prototype,"getData",null),ct([ut],mt.prototype,"setData",null),ct([ut],mt.prototype,"callMethod",null),ct([ht],mt.prototype,"getElement",null),ct([ht],mt.prototype,"getElements",null),ct([ht],mt.prototype,"getOffset",null),ct([ht],mt.prototype,"getHTML",null),ct([ht],mt.prototype,"getAttributes",null),ct([ht],mt.prototype,"getStyles",null),ct([ht],mt.prototype,"getDOMProperties",null),ct([ht],mt.prototype,"getProperties",null),ct([ht],mt.prototype,"tap",null),ct([ht],mt.prototype,"longpress",null),ct([ht],mt.prototype,"touchstart",null),ct([ht],mt.prototype,"touchmove",null),ct([ht],mt.prototype,"touchend",null),ct([ht],mt.prototype,"triggerEvent",null),ct([ht],mt.prototype,"callFunction",null),ct([ht],mt.prototype,"callContextMethod",null);const gt=Object.prototype.hasOwnProperty,yt=Array.isArray,vt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function ft(t,e){if(yt(t))return t;if(e&&(n=e,s=t,gt.call(n,s)))return[t];var n,s;const i=[];return t.replace(vt,(function(t,e,n,s){return i.push(n?s.replace(/\\(\\)?/g,"$1"):e||t),s})),i}function wt(t,e){const n=ft(e,t);let s;for(s=n.shift();null!=s;){if(null==(t=t[s]))return;s=n.shift()}return t}const Pt=require("util"),Mt=["scrollLeft","scrollTop","scrollWidth","scrollHeight"];class It{constructor(t,e,n){this.puppet=t,this.id=e.elementId,this.pageId=e.pageId,this.nodeId=e.nodeId||null,this.videoId=e.videoId||null,this.tagName=e.tagName,this.nvue=e.nvue,this.elementMap=n,"body"!==this.tagName&&"page-body"!==this.tagName||(this.tagName="page"),this.api=new mt(t,e)}toJSON(){return JSON.stringify({id:this.id,tagName:this.tagName,pageId:this.pageId,nodeId:this.nodeId,videoId:this.videoId})}toString(){return this.toJSON()}[Pt.inspect.custom](){return this.toJSON()}async $(t){try{const e=await this.api.getElement({selector:t});return It.create(this.puppet,Object.assign({},e,{pageId:this.pageId}),this.elementMap)}catch(t){return null}}async $$(t){const{elements:e}=await this.api.getElements({selector:t});return e.map((t=>It.create(this.puppet,Object.assign({},t,{pageId:this.pageId}),this.elementMap)))}async size(){const[t,e]=await this.domProperty(["offsetWidth","offsetHeight"]);return{width:t,height:e}}async offset(){const{left:t,top:e}=await this.api.getOffset();return{left:t,top:e}}async text(){return this.domProperty("innerText")}async attribute(t){if(!F.default(t))throw Error("name must be a string");return(await this.api.getAttributes({names:[t]})).attributes[0]}async value(){return this.puppet.isX?this.domProperty("value"):this.property("value")}async property(t){if(!F.default(t))throw Error("name must be a string");if(this.puppet.checkProperty){let e=this.publicProps;if(e||(this.publicProps=e=await this._property("__propPublic")),!e[t])throw Error(`${this.tagName}.${t} not exists`)}return this.puppet.isX&&"h5"===process.env.UNI_PLATFORM&&Mt.includes(t)?await this.domProperty(t):this._property(t)}async html(){return(await this.api.getHTML({type:"inner"})).html}async outerHtml(){return(await this.api.getHTML({type:"outer"})).html}async style(t){if(!F.default(t))throw Error("name must be a string");return(await this.api.getStyles({names:[t]})).styles[0]}async tap(){return this.api.tap()}async longpress(){return this.nvue||"true"===process.env.UNI_APP_X?this.api.longpress():(await this.touchstart(),await z.default(350),this.touchend())}async trigger(t,e){const n={type:t};return Y.default(e)||(n.detail=e),this.api.triggerEvent(n)}async touchstart(t){return this.api.touchstart(t)}async touchmove(t){return this.api.touchmove(t)}async touchend(t){return this.api.touchend(t)}async domProperty(t){return it((async t=>(await this.api.getDOMProperties({names:t})).properties),t)}_property(t){return it((async t=>(await this.api.getProperties({names:t})).properties),t)}send(t,e){return e.elementId=this.id,e.pageId=this.pageId,this.nodeId&&(e.nodeId=this.nodeId),this.videoId&&(e.videoId=this.videoId),this.puppet.send(t,e)}async callFunction(t,...e){return(await this.api.callFunction({functionName:t,args:e})).result}static create(t,e,n){let s,i=n.get(e.elementId);if(i)return i;if(e.nodeId)s=kt;else switch(e.tagName.toLowerCase()){case"input":s=Et;break;case"textarea":s=At;break;case"scroll-view":s=_t;break;case"swiper":s=bt;break;case"movable-view":s=Tt;break;case"switch":s=Ct;break;case"slider":s=Ut;break;case"video":s=Nt;break;default:s=It}return i=new s(t,e,n),n.set(e.elementId,i),i}}class kt extends It{async setData(t){return this.api.setData({data:t})}async data(t){const e={};if(t&&(e.path=t),"true"===process.env.UNI_APP_X&&"android"===process.env.UNI_APP_PLATFORM&&"true"!==process.env.UNI_AUTOMATOR_APP_WEBVIEW){const n=(await this.api.getData(e)).data;return t?wt(n,t):n}return(await this.api.getData(e)).data}async callMethod(t,...e){return(await this.api.callMethod({method:t,args:e})).result}}class Et extends It{async input(t){return this.callFunction("input.input",t)}}class At extends It{async input(t){return this.callFunction("textarea.input",t)}}class _t extends It{async scrollTo(t,e){return this.callFunction("scroll-view.scrollTo",t,e)}async property(t){return"scrollTop"===t?this.callFunction("scroll-view.scrollTop"):"scrollLeft"===t?this.callFunction("scroll-view.scrollLeft"):super.property(t)}async scrollWidth(){return this.callFunction("scroll-view.scrollWidth")}async scrollHeight(){return this.callFunction("scroll-view.scrollHeight")}}class bt extends It{async swipeTo(t){return this.callFunction("swiper.swipeTo",t)}}class Tt extends It{async moveTo(t,e){return this.callFunction("movable-view.moveTo",t,e)}async property(t){return"x"===t?this._property("_translateX"):"y"===t?this._property("_translateY"):super.property(t)}}class Ct extends It{async tap(){return this.callFunction("switch.tap")}}class Ut extends It{async slideTo(t){return this.callFunction("slider.slideTo",t)}}class Nt extends It{async callContextMethod(t,...e){return await this.api.callContextMethod({method:t,args:e})}}class Ot extends dt{constructor(t,e){super(t),this.id=e.id}async getData(t){return this.invokeMethod("Page.getData",t)}async setData(t){return this.invokeMethod("Page.setData",t)}async callMethod(t){return this.invokeMethod("Page.callMethod",t)}async callMethodWithCallback(t){return this.invokeMethod("Page.callMethodWithCallback",t)}async getElement(t){return this.invokeMethod("Page.getElement",t)}async getElements(t){return this.invokeMethod("Page.getElements",t)}async getWindowProperties(t){return this.invokeMethod("Page.getWindowProperties",t)}invokeMethod(t,e={}){return e.pageId=this.id,this.invoke(t,e)}}ct([ut],Ot.prototype,"getData",null),ct([ut],Ot.prototype,"setData",null),ct([ut],Ot.prototype,"callMethod",null),ct([ut],Ot.prototype,"callMethodWithCallback",null),ct([ht],Ot.prototype,"getElement",null),ct([ht],Ot.prototype,"getElements",null),ct([ht],Ot.prototype,"getWindowProperties",null);const Rt=require("util");class St{constructor(t,e){this.puppet=t,this.id=e.id,this.path=e.path,this.query=e.query,this.elementMap=new Map,this.api=new Ot(t,e)}toJSON(){return JSON.stringify({id:this.id,path:this.path,query:this.query})}toString(){return this.toJSON()}[Rt.inspect.custom](){return this.toJSON()}async waitFor(t){return G.default(t)?await z.default(t):B.default(t)?x.default(t,0,50):F.default(t)?x.default((async()=>{if("true"===process.env.UNI_APP_X){return!!await this.$(t)}return(await this.$$(t)).length>0}),0,50):void 0}async $(t){try{const e=await this.api.getElement({selector:t});return It.create(this.puppet,Object.assign({selector:t},e,{pageId:this.id}),this.elementMap)}catch(t){return null}}async $$(t){const{elements:e}=await this.api.getElements({selector:t});return e.map((e=>It.create(this.puppet,Object.assign({selector:t},e,{pageId:this.id}),this.elementMap)))}async data(t){const e={};if(t&&(e.path=t),"true"===process.env.UNI_APP_X&&"android"===process.env.UNI_APP_PLATFORM&&"true"!==process.env.UNI_AUTOMATOR_APP_WEBVIEW){const n=(await this.api.getData(e)).data;return t?wt(n,t):n}return(await this.api.getData(e)).data}async setData(t){return this.api.setData({data:t})}async size(){const[t,e]=await this.windowProperty(["document.documentElement.scrollWidth","document.documentElement.scrollHeight"]);return{width:t,height:e}}async callMethod(t,...e){return(await this.api.callMethod({method:t,args:e})).result}async callMethodWithCallback(t,...e){return await this.api.callMethodWithCallback({method:t,args:e})}async scrollTop(){return this.windowProperty("document.documentElement.scrollTop")}async windowProperty(t){const e=F.default(t);e&&(t=[t]);const{properties:n}=await this.api.getWindowProperties({names:t});return e?n[0]:n}static create(t,e,n){let s=n.get(e.id);return s?(s.path=e.path,s.query=e.query,s):(s=new St(t,e),n.set(e.id,s),s)}}class Dt extends dt{async getPageStack(){return this.invoke("App.getPageStack")}async callUniMethod(t){return this.invoke("App.callUniMethod",t)}async getCurrentPage(){return this.invoke("App.getCurrentPage")}async mockUniMethod(t){return this.invoke("App.mockUniMethod",t)}async captureScreenshotByRuntime(t){return this.invoke("App.captureScreenshot",t)}async captureScreenshotWithDeviceByRuntime(t){return this.invoke("App.captureScreenshotWithDevice",t)}async socketEmitter(t){return this.invoke("App.socketEmitter",t)}async callFunction(t){return this.invoke("App.callFunction",t)}async captureScreenshot(t){return this.invoke("App.captureScreenshot",t)}async adbCommand(t){return this.invoke("App.adbCommand",t)}async exit(){return this.invoke("App.exit")}async addBinding(t){return this.invoke("App.addBinding",t)}async enableLog(){return this.invoke("App.enableLog")}onLogAdded(t){return this.on("App.logAdded",t)}onBindingCalled(t){return this.on("App.bindingCalled",t)}onExceptionThrown(t){return this.on("App.exceptionThrown",t)}}ct([ut],Dt.prototype,"getPageStack",null),ct([ut],Dt.prototype,"callUniMethod",null),ct([ut],Dt.prototype,"getCurrentPage",null),ct([ut],Dt.prototype,"mockUniMethod",null),ct([ut],Dt.prototype,"captureScreenshotByRuntime",null),ct([ut],Dt.prototype,"captureScreenshotWithDeviceByRuntime",null),ct([ut],Dt.prototype,"socketEmitter",null),ct([ht],Dt.prototype,"callFunction",null),ct([ht],Dt.prototype,"captureScreenshot",null),ct([ht],Dt.prototype,"adbCommand",null),ct([ht],Dt.prototype,"exit",null),ct([ht],Dt.prototype,"addBinding",null),ct([ht],Dt.prototype,"enableLog",null);class jt extends dt{async getInfo(){return this.invoke("Tool.getInfo")}async enableRemoteDebug(t){return this.invoke("Tool.enableRemoteDebug")}async close(){return this.invoke("Tool.close")}async getTestAccounts(){return this.invoke("Tool.getTestAccounts")}onRemoteDebugConnected(t){this.puppet.once("Tool.onRemoteDebugConnected",t),this.puppet.once("Tool.onPreviewConnected",t)}}function xt(t){return new Promise((e=>setTimeout(e,t)))}ct([ht],jt.prototype,"getInfo",null),ct([ht],jt.prototype,"enableRemoteDebug",null),ct([ht],jt.prototype,"close",null),ct([ht],jt.prototype,"getTestAccounts",null);class $t extends a.EventEmitter{constructor(t,e){super(),this.puppet=t,this.options=e,this.pageMap=new Map,this.appBindings=new Map,this.appApi=new Dt(t),this.toolApi=new jt(t),this.appApi.onLogAdded((t=>{this.emit("console",t)})),this.appApi.onBindingCalled((({name:t,args:e})=>{try{const n=this.appBindings.get(t);n&&n(...e)}catch(t){}})),this.appApi.onExceptionThrown((t=>{this.emit("exception",t)}))}async pageStack(){return(await this.appApi.getPageStack()).pageStack.map((t=>St.create(this.puppet,t,this.pageMap)))}async navigateTo(t){return this.changeRoute("navigateTo",t)}async redirectTo(t){return this.changeRoute("redirectTo",t)}async navigateBack(){return this.changeRoute("navigateBack")}async reLaunch(t){return this.changeRoute("reLaunch",t)}async switchTab(t){return this.changeRoute("switchTab",t)}async currentPage(){const{id:t,path:e,query:n}=await this.appApi.getCurrentPage();return St.create(this.puppet,{id:t,path:e,query:n},this.pageMap)}async systemInfo(){return this.callUniMethod("getSystemInfoSync")}async callUniMethod(t,...e){return(await this.appApi.callUniMethod({method:t,args:e})).result}async mockUniMethod(t,e,...n){return B.default(e)||(s=e,F.default(s)&&(s=V.default(s),J.default(s,"function")||J.default(s,"() =>")))?this.appApi.mockUniMethod({method:t,functionDeclaration:e.toString(),args:n}):this.appApi.mockUniMethod({method:t,result:e});var s}async restoreUniMethod(t){return this.appApi.mockUniMethod({method:t})}async evaluate(t,...e){return(await this.appApi.callFunction({functionDeclaration:t.toString(),args:e})).result}async pageScrollTo(t){await this.callUniMethod("pageScrollTo",{scrollTop:t,duration:0})}async close(){try{await this.appApi.exit()}catch(t){}await xt(1e3),this.puppet.disposeRuntimeServer(),await this.toolApi.close(),this.disconnect()}async teardown(){return this["disconnect"===this.options.teardown?"disconnect":"close"]()}async remote(t){if(!this.puppet.devtools.remote)return console.warn(`Failed to enable remote, ${this.puppet.devtools.name} is unimplemented`);const{qrCode:e}=await this.toolApi.enableRemoteDebug({auto:t});var n;e&&await(n=e,new Promise((t=>{W.default.generate(n,{small:!0},(e=>{process.stdout.write(e),t(void 0)}))})));const s=new Promise((t=>{this.toolApi.onRemoteDebugConnected((async()=>{await xt(1e3),t(void 0)}))})),i=new Promise((t=>{this.puppet.setRemoteRuntimeConnectionCallback((()=>{t(void 0)}))}));return Promise.all([s,i])}disconnect(){this.puppet.dispose()}on(t,e){return"console"===t&&this.appApi.enableLog(),super.on(t,e),this}async exposeFunction(t,e){if(this.appBindings.has(t))throw Error(`Failed to expose function with name ${t}: already exists!`);this.appBindings.set(t,e),await this.appApi.addBinding({name:t})}async checkVersion(){}async screenshot(t){const e=this.puppet.isX&&"app-plus"===this.puppet.platform?(null==t?void 0:t.deviceShot)?"captureScreenshotWithDeviceByRuntime":"captureScreenshotByRuntime":"captureScreenshot",{data:n}=await this.appApi[e]({id:null==t?void 0:t.id,fullPage:null==t?void 0:t.fullPage,area:null==t?void 0:t.area,offsetX:null==t?void 0:t.offsetX,offsetY:null==t?void 0:t.offsetY});if(!(null==t?void 0:t.path))return n;await X.default.writeFile(t.path,n,"base64")}async testAccounts(){return(await this.toolApi.getTestAccounts()).accounts}async changeRoute(t,e){if(this.puppet.isVue3&&"h5"===process.env.UNI_PLATFORM&&"navigateBack"!==t){const{__id__:n}=await this.callUniMethod(t,{url:e,isAutomatedTesting:!0}),s=Date.now();return await x.default((async()=>{if(Date.now()-s>1e4)throw Error(`${t} to ${e} failed, unable to get the correct current page`);let i;try{i=await this.currentPage()}catch(t){return!1}return i.id===n&&i}),0,1e3)}return await this.callUniMethod(t,{url:e}),await xt(1e3),await this.currentPage()}async socketEmitter(t){return this.appApi.socketEmitter(t)}async adbCommand(t){return"android"===process.env.UNI_APP_PLATFORM?await this.appApi.adbCommand(t):Error("Program.adbCommand is only supported on the app android platform")}}class qt{constructor(t){this.options=t}has(t){return!!this.options[t]}send(t,e,n){const s=this.options[e];if(!s)return Promise.reject(Error(`adapter for ${e} not found`));const i=s.reflect;return i?(s.params&&(n=s.params(n)),"function"==typeof i?i(t.send.bind(t),n):(e=i,t.send(e,n))):Promise.reject(Error(`${e}'s reflect is required`))}}const Lt=N.default("automator:puppet"),Ft=".automator.json";function Ht(t){try{return require(t)}catch(t){}}function Wt(t,e,n,s){const i=function(t,e,n){let s,i;return process.env.UNI_OUTPUT_DIR?(i=U.default.join(process.env.UNI_OUTPUT_DIR,`../.automator/${e}`,Ft),s=Ht(i)):(i=U.default.join(t,`dist/${n}/.automator/${e}`,Ft),s=Ht(i),s||(i=U.default.join(t,`unpackage/dist/${n}/.automator/${e}`,Ft),s=Ht(i))),Lt(`${i}=>${JSON.stringify(s)}`),s}(t,n,s);if(!i||!i.wsEndpoint)return!1;const o=require("../package.json").version;if(i.version!==o)return Lt(`unmet=>${i.version}!==${o}`),!1;const r=function(t){let e;try{const t=L.default.v4.sync();e=q.default.ip(t&&t.interface),e&&(/^10[.]|^172[.](1[6-9]|2[0-9]|3[0-1])[.]|^192[.]168[.]/.test(e)||(e=void 0))}catch(t){}return"ws://"+(e||"localhost")+":"+t}(e);return Lt(`wsEndpoint=>${r}`),i.wsEndpoint===r}class Xt extends a.EventEmitter{constructor(t,e){if(super(),this.isX=!1,this.isVue3=!1,"true"===process.env.UNI_APP_X&&(this.isX=!0),e)this.target=e;else{if(this.target=null,"h5"===t)try{this.target=ot("@dcloudio/uni-h5/lib/h5/uni.automator.js")}catch(t){}this.target||(this.target=ot(`@dcloudio/uni-${"app"===t?"app-plus":t}/lib/uni.automator.js`))}if(!this.target)throw Error("puppet is not provided");this.platform=t,this.adapter=new qt(this.target.adapter||{})}setCompiler(t){this.compiler=t}setRuntimeServer(t){this.wss=t}setRemoteRuntimeConnectionCallback(t){this.remoteRuntimeConnectionCallback=t}setRuntimeConnection(t){this.runtimeConnection=t,this.remoteRuntimeConnectionCallback&&(this.remoteRuntimeConnectionCallback(),this.remoteRuntimeConnectionCallback=null)}setDevtoolConnection(t){this.devtoolConnection=t}disposeRuntimeServer(){this.wss&&this.wss.close()}disposeRuntime(){this.runtimeConnection.dispose()}disposeDevtool(){this.compiler&&this.compiler.stop(),this.devtoolConnection&&this.devtoolConnection.dispose()}dispose(){this.disposeRuntime(),this.disposeDevtool(),this.disposeRuntimeServer()}send(t,e){return this.runtimeConnection.send(t,e)}validateProject(t){const e=this.target.devtools.required;return!e||!e.find((e=>!C.default.existsSync(U.default.join(t,e))))}validateDevtools(t){const e=this.target.devtools.validate;return e?e(t,this):Promise.resolve(t)}createDevtools(t,e,n){const s=this.target.devtools.create;return s?(e.timeout=n,s(t,e,this)):Promise.resolve()}shouldCompile(t,e,n,s){this.compiled=!0;const i=this.target.shouldCompile;if(i)this.compiled=i(n,s);else if(!0===n.compile)this.compiled=!0;else{if("false"===process.env.UNI_AUTOMATOR_COMPILE)return!1;this.compiled=!Wt(t,e,this.platform,this.mode)}return this.compiled}beforeCompile(){this.target.beforeCompile&&this.target.beforeCompile()}afterCompile(){this.target.afterCompile&&this.target.afterCompile()}get checkProperty(){return"mp-weixin"===this.platform}get devtools(){return this.target.devtools}get mode(){const t=this.target.mode;return t||("production"===process.env.NODE_ENV?"build":"dev")}}const Bt=N.default("automator:compiler"),Vt=/The\s+(.*)\s+directory is ready/;class Jt{constructor(t){this.puppet=t,this.puppet.setCompiler(this)}compile(t){const e=this.puppet.mode,n=this.puppet.platform;let s=t.silent;const i=t.port,o=t.host,r=`${e}:${n}`,a=t.projectPath,[c,p]=this.getSpawnArgs(t,r);p.push("--auto-port"),p.push(K.default(i)),o&&(p.push("--auto-host"),p.push(o));const l={cwd:t.cliPath,env:Object.assign(Object.assign({},process.env),{NODE_ENV:"build"===e?"production":"development"})};return new Promise(((t,i)=>{const o=o=>{const r=o.toString().trim();if(!s&&console.log(r),r.includes("- Network")||r.includes("> Network")||r.includes("➜ Network")){const e=r.match(/Network:(.*)/)[1].trim();Bt(`url: ${e}`),t({path:e})}else if(r.includes("DONE Build failed"))i(r);else if(r.includes("DONE Build complete")){const i=r.match(Vt);let o="";if(i&&i.length>1)o=U.default.join(a,i[1]);else{const t=this.puppet.isX&&"app-plus"===n?"app":n;o=U.default.join(a,`dist/${e}/${t}`),b.existsSync(o)||(o=U.default.join(a,`unpackage/dist/${e}/${t}`))}this.puppet.afterCompile(),s=!0,this.stop(),t({path:"true"===process.env.UNI_AUTOMATOR_APP_WEBVIEW?process.env.UNI_OUTPUT_DIR:o})}};Bt(`${c} ${p.join(" ")} %o`,l),this.cliProcess=A.spawn(c,p,l),this.cliProcess.on("error",(t=>{i(t)})),this.cliProcess.stdout.on("data",o),this.cliProcess.stderr.on("data",o)}))}stop(){this.cliProcess&&this.cliProcess.kill("SIGTERM")}getSpawnArgs(t,e){let n;const s=t.cliPath;try{n=require(U.default.join(s,"package.json"))}catch(t){}let i=this.puppet.isX;if(n&&(n.devDependencies&&n.devDependencies["@dcloudio/vite-plugin-uni"]&&(i=!0),!i&&n.dependencies&&n.dependencies["@dcloudio/vite-plugin-uni"]&&(i=!0),n.scripts&&n.scripts[e]))return[process.env.UNI_NPM_PATH||(/^win/.test(process.platform)?"npm.cmd":"npm"),["run",e,"--"]];this.puppet.isVue3=i,["android","ios"].includes(process.env.UNI_OS_NAME)&&(process.env.UNI_APP_PLATFORM=process.env.UNI_OS_NAME);let o=this.puppet.platform;if("app-plus"===this.puppet.platform&&this.puppet.isX&&(o="app"),process.env.UNI_INPUT_DIR=t.projectPath,process.env.UNI_OUTPUT_DIR=U.default.join(t.projectPath,`unpackage/dist/${this.puppet.mode}/${o}`),process.env.UNI_HBUILDERX_PLUGINS||b.existsSync(U.default.resolve(s,"../about"))&&(process.env.UNI_HBUILDERX_PLUGINS=U.default.dirname(s)),this.puppet.beforeCompile(),i){const t="app-plus"===this.puppet.platform?"app":this.puppet.platform;return process.env.UNI_PLATFORM=t,[process.env.UNI_NODE_PATH||"node",[require.resolve("@dcloudio/vite-plugin-uni/bin/uni.js",{paths:[s]}),"-p",t]]}return[process.env.UNI_NODE_PATH||"node",[U.default.join(s,"bin/uniapp-cli.js")]]}}const Gt=N.default("automator:launcher"),zt="true"===process.env.UNI_APP_X&&"android"===process.env.UNI_APP_PLATFORM?12e4:24e4;class Yt{async launch(t){const{port:e,cliPath:n,timeout:i,projectPath:o}=await this.validate(t);let r={};"app"===t.platform||"app-plus"===t.platform?(r=t.app||t["app-plus"],"true"===process.env.UNI_APP_X&&r["uni-app-x"]&&(r=s.recursive(!0,r,r["uni-app-x"])),delete r["uni-app-x"]):r=t[t.platform],r||(r={}),r.projectPath=o,Gt(r),this.puppet=new Xt(t.platform,r.puppet),r=await this.puppet.validateDevtools(r);let a=this.puppet.shouldCompile(o,e,t,r),c=process.env.UNI_OUTPUT_DIR||o;if(a||this.puppet.validateProject(c)||(c=U.default.join(o,"dist/"+this.puppet.mode+"/"+this.puppet.platform),this.puppet.validateProject(c)||(c=U.default.join(o,"unpackage/dist/"+this.puppet.mode+"/"+this.puppet.platform),this.puppet.validateProject(c)||(a=!0))),a){this.puppet.compiled=t.compile=!0,this.compiler=new Jt(this.puppet);const s=await this.compiler.compile({host:t.host,port:e,cliPath:n,projectPath:o,silent:!!t.silent});s.path&&(c=s.path)}const p=[];return p.push(this.createRuntimeConnection(e,i)),p.push(this.puppet.createDevtools(c,r,i)),new Promise(((t,n)=>{Promise.all(p).then((([n,s])=>{n&&this.puppet.setRuntimeConnection(n),s&&this.puppet.setDevtoolConnection(s),N.default("automator:program")("ready");const i=r.teardown||"disconnect";t(new $t(this.puppet,{teardown:i,port:e}))})).catch((t=>n(t)))}))}resolveCliPath(t){if(!t)return t;try{const{dependencies:e,devDependencies:n}=require(U.default.join(t,"package.json"));if(Kt(n)||Kt(e))return t}catch(t){}}resolveProjectPath(t,e){return t||(t=process.env.UNI_INPUT_DIR||process.cwd()),O.default(t)&&(t=U.default.resolve(t)),C.default.existsSync(t)||function(t){throw Error(t)}(`Project path ${t} doesn't exist`),t}async validate(t){const e=this.resolveProjectPath(t.projectPath,t);let n=process.env.UNI_CLI_PATH||t.cliPath;if(n=this.resolveCliPath(n||""),!n&&(n=this.resolveCliPath(process.cwd())),!n&&(n=this.resolveCliPath(e)),!n)throw Error("cliPath is not provided");if("false"!==process.env.UNI_APP_X){const t=this.getManifestJson(e);("true"===process.env.UNI_APP_X||"uni-app-x"in t)&&(process.env.UNI_APP_X="true",t.appid&&(process.env.UNI_APP_ID=t.appid))}process.env.UNI_AUTOMATOR_HOST&&(t.host=process.env.UNI_AUTOMATOR_HOST),process.env.UNI_AUTOMATOR_PORT&&(t.port=parseInt(process.env.UNI_AUTOMATOR_PORT));return{port:await async function(t,e){const n=await H.default(t||e);if(t&&n!==t)throw Error(`Port ${t} is in use, please specify another port`);return n}(t.port||9520),cliPath:n,timeout:t.timeout||zt,projectPath:e}}getManifestJson(t){if(t){const e=U.default.join(t,"manifest.json");if(C.default.existsSync(e))return i.parse(C.default.readFileSync(e,"utf8"))}return{}}async createRuntimeConnection(t,e){return at.createRuntimeConnection(t,this.puppet,e)}}function Kt(t){return!!t&&!(!t["@dcloudio/vue-cli-plugin-uni"]&&!t["@dcloudio/vite-plugin-uni"])}exports.Automator=class{constructor(){this.launcher=new Yt}async launch(t){return this.launcher.launch(t)}},exports.initUni=t=>new Proxy({},{get(e,n){return"connectSocket"===n?async(...e)=>{const s=`${Date.now()}-${Math.random()}`;return e[0].id=s,await t.callUniMethod(n,...e).then((n=>{nt(e[0],n),et.set(s,new Map);const i={id:s,onMessage:e=>{t.socketEmitter({id:s,method:"onMessage"}),et.get(s).set("onMessage",e)},send:e=>{t.socketEmitter({id:s,method:"send",data:e.data}).then((t=>{nt(e,t)})).catch((t=>{st(e,t)}))},close:e=>{t.socketEmitter({id:s,method:"close",code:e.code,reason:e.reason}).then((t=>{nt(e,t),et.delete(s)})).catch((t=>{st(e,t)}))},onOpen:e=>{t.socketEmitter({id:s,method:"onOpen"}),et.get(s).set("onOpen",e)},onClose:e=>{t.socketEmitter({id:s,method:"onClose"}),et.get(s).set("onClose",e)},onError:e=>{t.socketEmitter({id:s,method:"onError"}),et.get(s).set("onError",e)}};return et.get(s).set("socketTask",i),i})).catch((t=>(st(e[0],t),null)))}:(s=n,tt.includes(s)?e=>{Z.has(n)||Z.set(n,new Map);const s=Z.get(n),i=`${Date.now()}-${Math.random()}`;s.set(i,e),t.callUniMethod(n,i)}:function(t){return t.startsWith("off")&&tt.includes(t.replace("off","on"))}(n)?async e=>{const s=n.replace("off","on");if(Z.has(s))if(e){const i=Z.get(s);i.forEach(((s,o)=>{s===e&&(i.delete(o),t.callUniMethod(n,o))}))}else Z.delete(s),t.callUniMethod(n)}:async(...e)=>await t.callUniMethod(n,...e).then((t=>(nt(e[0],t),t))).catch((t=>(st(e[0],t),t))));var s}});
ed513b2a49862750b291240f6438ccf6191795bf
2024-05-16 14:22:38
im-robot
chore: update uts compiler
false
update uts compiler
chore
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 1cf1243614b..1707c13f6a1 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index ad94c3ffc21..71c983e99e4 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node index 79106b7a41d..ffbe45e2901 100755 Binary files a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node and b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node differ diff --git a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node index 20fdcf57dd4..6f99ff0d620 100755 Binary files a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node and b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index e62bcd8b345..b7d6573dec6 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 4f31fdb74e2..64f7ba90e55 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
ef1fd9be5342b6946ecb2d54131f0bab0fc38cc7
2023-05-24 11:38:43
fxy060608
wip(uts): automator
false
automator
wip
diff --git a/packages/shims-node.d.ts b/packages/shims-node.d.ts index 02b8035d32f..08107ef5488 100644 --- a/packages/shims-node.d.ts +++ b/packages/shims-node.d.ts @@ -49,6 +49,6 @@ declare namespace NodeJS { __VUE_DEVTOOLS_HOST__: string __VUE_DEVTOOLS_PORT__: string - UNI_APP_X?: 'true' + UNI_APP_X?: 'true' | 'false' } } diff --git a/packages/uni-automator/dist/index.js b/packages/uni-automator/dist/index.js index 18d26fb9f4d..f775e1d953c 100644 --- a/packages/uni-automator/dist/index.js +++ b/packages/uni-automator/dist/index.js @@ -1,4 +1,4 @@ -"use strict";var t=require("fs"),e=require("path"),n=require("debug"),s=require("jsonc-parser"),i=require("licia/isRelative"),o=require("ws"),r=require("events"),a=require("licia/uuid"),c=require("licia/stringify"),p=require("licia/dateFormat"),l=require("licia/waitUntil"),u=require("licia/fs"),h=require("licia/isFn"),d=require("licia/trim"),m=require("licia/isStr"),g=require("licia/startWith"),y=require("licia/isNum"),v=require("licia/sleep"),f=require("licia/isUndef"),w=require("address"),P=require("default-gateway"),M=require("licia/getPort"),k=require("qrcode-terminal"),E=require("child_process"),I=require("licia/toStr");function b(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var C=b(t),T=b(e),D=b(n),N=b(i),A=b(o),S=b(a),j=b(c),R=b(p),U=b(l),_=b(u),x=b(h),q=b(d),O=b(m),$=b(g),F=b(y),L=b(v),H=b(f),B=b(w),J=b(P),W=b(M),X=b(k),V=b(I);class G extends r.EventEmitter{constructor(t){super(),this.ws=t,this.ws.addEventListener("message",(t=>{this.emit("message",t.data)})),this.ws.addEventListener("close",(()=>{this.emit("close")}))}send(t){this.ws.send(t)}close(){this.ws.close()}}const z="Connection closed";class Y extends r.EventEmitter{constructor(t,e,n){super(),this.puppet=e,this.namespace=n,this.callbacks=new Map,this.transport=t,this.debug=D.default("automator:protocol:"+this.namespace),this.onMessage=t=>{this.debug(`${R.default("yyyy-mm-dd HH:MM:ss:l")} ◀ RECV ${t}`);const{id:e,method:n,error:s,result:i,params:o}=JSON.parse(t);if(!e)return this.puppet.emit(n,o);const{callbacks:r}=this;if(e&&r.has(e)){const t=r.get(e);r.delete(e),s?t.reject(Error(s.message)):t.resolve(i)}},this.onClose=()=>{this.callbacks.forEach((t=>{t.reject(Error(z))}))},this.transport.on("message",this.onMessage),this.transport.on("close",this.onClose)}send(t,e={},n=!0){if(n&&this.puppet.adapter.has(t))return this.puppet.adapter.send(this,t,e);const s=S.default(),i=j.default({id:s,method:t,params:e});return this.debug(`${R.default("yyyy-mm-dd HH:MM:ss:l")} SEND ► ${i}`),new Promise(((t,e)=>{try{this.transport.send(i)}catch(t){e(Error(z))}this.callbacks.set(s,{resolve:t,reject:e})}))}dispose(){this.transport.close()}static createDevtoolConnection(t,e){return new Promise(((n,s)=>{const i=new A.default(t);i.addEventListener("open",(()=>{n(new Y(new G(i),e,"devtool"))})),i.addEventListener("error",s)}))}static createRuntimeConnection(t,e,n){return new Promise(((s,i)=>{D.default("automator:runtime")(`${R.default("yyyy-mm-dd HH:MM:ss:l")} port=${t}`);const o=new A.default.Server({port:t});U.default((async()=>{if(e.runtimeConnection)return!0}),n,1e3).catch((()=>{o.close(),i("Failed to connect to runtime, please make sure the project is running")})),o.on("connection",(function(t){D.default("automator:runtime")(`${R.default("yyyy-mm-dd HH:MM:ss:l")} connected`);const n=new Y(new G(t),e,"runtime");e.setRuntimeConnection(n),s(n)})),e.setRuntimeServer(o)}))}}async function K(t,e){const[n,s]=function(t){return O.default(t)?[!0,[t]]:[!1,t]}(e),i=await t(s);return n?i[0]:i}function Q(t){try{return require(t)}catch(e){return require(require.resolve(t,{paths:[process.cwd()]}))}} +"use strict";var t=require("fs"),e=require("path"),n=require("debug"),s=require("jsonc-parser"),i=require("licia/isRelative"),o=require("ws"),r=require("events"),a=require("licia/uuid"),c=require("licia/stringify"),p=require("licia/dateFormat"),l=require("licia/waitUntil"),u=require("licia/fs"),h=require("licia/isFn"),d=require("licia/trim"),m=require("licia/isStr"),g=require("licia/startWith"),y=require("licia/isNum"),v=require("licia/sleep"),f=require("licia/isUndef"),w=require("address"),P=require("default-gateway"),M=require("licia/getPort"),k=require("qrcode-terminal"),E=require("child_process"),I=require("licia/toStr");function b(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var C=b(t),T=b(e),N=b(n),D=b(i),A=b(o),S=b(a),j=b(c),R=b(p),U=b(l),_=b(u),x=b(h),q=b(d),O=b(m),$=b(g),F=b(y),L=b(v),H=b(f),B=b(w),J=b(P),X=b(M),W=b(k),V=b(I);class G extends r.EventEmitter{constructor(t){super(),this.ws=t,this.ws.addEventListener("message",(t=>{this.emit("message",t.data)})),this.ws.addEventListener("close",(()=>{this.emit("close")}))}send(t){this.ws.send(t)}close(){this.ws.close()}}const z="Connection closed";class Y extends r.EventEmitter{constructor(t,e,n){super(),this.puppet=e,this.namespace=n,this.callbacks=new Map,this.transport=t,this.debug=N.default("automator:protocol:"+this.namespace),this.onMessage=t=>{this.debug(`${R.default("yyyy-mm-dd HH:MM:ss:l")} ◀ RECV ${t}`);const{id:e,method:n,error:s,result:i,params:o}=JSON.parse(t);if(!e)return this.puppet.emit(n,o);const{callbacks:r}=this;if(e&&r.has(e)){const t=r.get(e);r.delete(e),s?t.reject(Error(s.message)):t.resolve(i)}},this.onClose=()=>{this.callbacks.forEach((t=>{t.reject(Error(z))}))},this.transport.on("message",this.onMessage),this.transport.on("close",this.onClose)}send(t,e={},n=!0){if(n&&this.puppet.adapter.has(t))return this.puppet.adapter.send(this,t,e);const s=S.default(),i=j.default({id:s,method:t,params:e});return this.debug(`${R.default("yyyy-mm-dd HH:MM:ss:l")} SEND ► ${i}`),new Promise(((t,e)=>{try{this.transport.send(i)}catch(t){e(Error(z))}this.callbacks.set(s,{resolve:t,reject:e})}))}dispose(){this.transport.close()}static createDevtoolConnection(t,e){return new Promise(((n,s)=>{const i=new A.default(t);i.addEventListener("open",(()=>{n(new Y(new G(i),e,"devtool"))})),i.addEventListener("error",s)}))}static createRuntimeConnection(t,e,n){return new Promise(((s,i)=>{N.default("automator:runtime")(`${R.default("yyyy-mm-dd HH:MM:ss:l")} port=${t}`);const o=new A.default.Server({port:t});U.default((async()=>{if(e.runtimeConnection)return!0}),n,1e3).catch((()=>{o.close(),i("Failed to connect to runtime, please make sure the project is running")})),o.on("connection",(function(t){N.default("automator:runtime")(`${R.default("yyyy-mm-dd HH:MM:ss:l")} connected`);const n=new Y(new G(t),e,"runtime");e.setRuntimeConnection(n),s(n)})),e.setRuntimeServer(o)}))}}async function K(t,e){const[n,s]=function(t){return O.default(t)?[!0,[t]]:[!1,t]}(e),i=await t(s);return n?i[0]:i}function Q(t){try{return require(t)}catch(e){return require(require.resolve(t,{paths:[process.cwd()]}))}} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function Z(t,e,n,s){var i,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(o<3?i(r):o>3?i(e,n,r):i(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r}var tt;function et(t,e){const n=e.value;return e.value=async function(e){return(await(null==n?void 0:n.call(this,e)))(t)},e}function nt(t,e,n){return et(tt.RUNTIME,n)}function st(t,e,n){return et(tt.DEVTOOL,n)}/^win/.test(process.platform),function(t){t.RUNTIME="runtime",t.DEVTOOL="devtool"}(tt||(tt={}));class it{constructor(t){this.puppet=t}invoke(t,e){return async n=>this.puppet.devtoolConnection?(n===tt.DEVTOOL?this.puppet.devtoolConnection:this.puppet.runtimeConnection).send(t,e):this.puppet.runtimeConnection.send(t,e)}on(t,e){this.puppet.on(t,e)}}class ot extends it{constructor(t,e){super(t),this.id=e.elementId,this.pageId=e.pageId,this.nodeId=e.nodeId,this.videoId=e.videoId}async getData(t){return this.invokeMethod("Element.getData",t)}async setData(t){return this.invokeMethod("Element.setData",t)}async callMethod(t){return this.invokeMethod("Element.callMethod",t)}async getElement(t){return this.invokeMethod("Element.getElement",t)}async getElements(t){return this.invokeMethod("Element.getElements",t)}async getOffset(){return this.invokeMethod("Element.getOffset")}async getHTML(t){return this.invokeMethod("Element.getHTML",t)}async getAttributes(t){return this.invokeMethod("Element.getAttributes",t)}async getStyles(t){return this.invokeMethod("Element.getStyles",t)}async getDOMProperties(t){return this.invokeMethod("Element.getDOMProperties",t)}async getProperties(t){return this.invokeMethod("Element.getProperties",t)}async tap(){return this.invokeMethod("Element.tap")}async longpress(){return this.invokeMethod("Element.longpress")}async touchstart(t){return this.invokeMethod("Element.touchstart",t)}async touchmove(t){return this.invokeMethod("Element.touchmove",t)}async touchend(t){return this.invokeMethod("Element.touchend",t)}async triggerEvent(t){return this.invokeMethod("Element.triggerEvent",t)}async callFunction(t){return this.invokeMethod("Element.callFunction",t)}async callContextMethod(t){return this.invokeMethod("Element.callContextMethod",t)}invokeMethod(t,e={}){return e.elementId=this.id,e.pageId=this.pageId,this.nodeId&&(e.nodeId=this.nodeId),this.videoId&&(e.videoId=this.videoId),this.invoke(t,e)}}Z([nt],ot.prototype,"getData",null),Z([nt],ot.prototype,"setData",null),Z([nt],ot.prototype,"callMethod",null),Z([st],ot.prototype,"getElement",null),Z([st],ot.prototype,"getElements",null),Z([st],ot.prototype,"getOffset",null),Z([st],ot.prototype,"getHTML",null),Z([st],ot.prototype,"getAttributes",null),Z([st],ot.prototype,"getStyles",null),Z([st],ot.prototype,"getDOMProperties",null),Z([st],ot.prototype,"getProperties",null),Z([st],ot.prototype,"tap",null),Z([st],ot.prototype,"longpress",null),Z([st],ot.prototype,"touchstart",null),Z([st],ot.prototype,"touchmove",null),Z([st],ot.prototype,"touchend",null),Z([st],ot.prototype,"triggerEvent",null),Z([st],ot.prototype,"callFunction",null),Z([st],ot.prototype,"callContextMethod",null);const rt=require("util");class at{constructor(t,e,n){this.puppet=t,this.id=e.elementId,this.pageId=e.pageId,this.nodeId=e.nodeId||null,this.videoId=e.videoId||null,this.tagName=e.tagName,this.nvue=e.nvue,this.elementMap=n,"body"!==this.tagName&&"page-body"!==this.tagName||(this.tagName="page"),this.api=new ot(t,e)}toJSON(){return JSON.stringify({id:this.id,tagName:this.tagName,pageId:this.pageId,nodeId:this.nodeId,videoId:this.videoId})}toString(){return this.toJSON()}[rt.inspect.custom](){return this.toJSON()}async $(t){try{const e=await this.api.getElement({selector:t});return at.create(this.puppet,Object.assign({},e,{pageId:this.pageId}),this.elementMap)}catch(t){return null}}async $$(t){const{elements:e}=await this.api.getElements({selector:t});return e.map((t=>at.create(this.puppet,Object.assign({},t,{pageId:this.pageId}),this.elementMap)))}async size(){const[t,e]=await this.domProperty(["offsetWidth","offsetHeight"]);return{width:t,height:e}}async offset(){const{left:t,top:e}=await this.api.getOffset();return{left:t,top:e}}async text(){return this.domProperty("innerText")}async attribute(t){if(!O.default(t))throw Error("name must be a string");return(await this.api.getAttributes({names:[t]})).attributes[0]}async value(){return this.property("value")}async property(t){if(!O.default(t))throw Error("name must be a string");if(this.puppet.checkProperty){let e=this.publicProps;if(e||(this.publicProps=e=await this._property("__propPublic")),!e[t])throw Error(`${this.tagName}.${t} not exists`)}return this._property(t)}async html(){return(await this.api.getHTML({type:"inner"})).html}async outerHtml(){return(await this.api.getHTML({type:"outer"})).html}async style(t){if(!O.default(t))throw Error("name must be a string");return(await this.api.getStyles({names:[t]})).styles[0]}async tap(){return this.api.tap()}async longpress(){return this.nvue?this.api.longpress():(await this.touchstart(),await L.default(350),this.touchend())}async trigger(t,e){const n={type:t};return H.default(e)||(n.detail=e),this.api.triggerEvent(n)}async touchstart(t){return this.api.touchstart(t)}async touchmove(t){return this.api.touchmove(t)}async touchend(t){return this.api.touchend(t)}async domProperty(t){return K((async t=>(await this.api.getDOMProperties({names:t})).properties),t)}_property(t){return K((async t=>(await this.api.getProperties({names:t})).properties),t)}send(t,e){return e.elementId=this.id,e.pageId=this.pageId,this.nodeId&&(e.nodeId=this.nodeId),this.videoId&&(e.videoId=this.videoId),this.puppet.send(t,e)}async callFunction(t,...e){return(await this.api.callFunction({functionName:t,args:e})).result}static create(t,e,n){let s,i=n.get(e.elementId);if(i)return i;if(e.nodeId)s=ct;else switch(e.tagName){case"input":s=pt;break;case"textarea":s=lt;break;case"scroll-view":s=ut;break;case"swiper":s=ht;break;case"movable-view":s=dt;break;case"switch":s=mt;break;case"slider":s=gt;break;case"video":s=yt;break;default:s=at}return i=new s(t,e,n),n.set(e.elementId,i),i}}class ct extends at{async setData(t){return this.api.setData({data:t})}async data(t){const e={};return t&&(e.path=t),(await this.api.getData(e)).data}async callMethod(t,...e){return(await this.api.callMethod({method:t,args:e})).result}}class pt extends at{async input(t){return this.callFunction("input.input",t)}}class lt extends at{async input(t){return this.callFunction("textarea.input",t)}}class ut extends at{async scrollTo(t,e){return this.callFunction("scroll-view.scrollTo",t,e)}async property(t){return"scrollTop"===t?this.callFunction("scroll-view.scrollTop"):"scrollLeft"===t?this.callFunction("scroll-view.scrollLeft"):super.property(t)}async scrollWidth(){return this.callFunction("scroll-view.scrollWidth")}async scrollHeight(){return this.callFunction("scroll-view.scrollHeight")}}class ht extends at{async swipeTo(t){return this.callFunction("swiper.swipeTo",t)}}class dt extends at{async moveTo(t,e){return this.callFunction("movable-view.moveTo",t,e)}async property(t){return"x"===t?this._property("_translateX"):"y"===t?this._property("_translateY"):super.property(t)}}class mt extends at{async tap(){return this.callFunction("switch.tap")}}class gt extends at{async slideTo(t){return this.callFunction("slider.slideTo",t)}}class yt extends at{async callContextMethod(t,...e){return await this.api.callContextMethod({method:t,args:e})}}class vt extends it{constructor(t,e){super(t),this.id=e.id}async getData(t){return this.invokeMethod("Page.getData",t)}async setData(t){return this.invokeMethod("Page.setData",t)}async callMethod(t){return this.invokeMethod("Page.callMethod",t)}async getElement(t){return this.invokeMethod("Page.getElement",t)}async getElements(t){return this.invokeMethod("Page.getElements",t)}async getWindowProperties(t){return this.invokeMethod("Page.getWindowProperties",t)}invokeMethod(t,e={}){return e.pageId=this.id,this.invoke(t,e)}}Z([nt],vt.prototype,"getData",null),Z([nt],vt.prototype,"setData",null),Z([nt],vt.prototype,"callMethod",null),Z([st],vt.prototype,"getElement",null),Z([st],vt.prototype,"getElements",null),Z([st],vt.prototype,"getWindowProperties",null);const ft=require("util");class wt{constructor(t,e){this.puppet=t,this.id=e.id,this.path=e.path,this.query=e.query,this.elementMap=new Map,this.api=new vt(t,e)}toJSON(){return JSON.stringify({id:this.id,path:this.path,query:this.query})}toString(){return this.toJSON()}[ft.inspect.custom](){return this.toJSON()}async waitFor(t){return F.default(t)?await L.default(t):x.default(t)?U.default(t):O.default(t)?U.default((async()=>(await this.$$(t)).length>0)):void 0}async $(t){try{const e=await this.api.getElement({selector:t});return at.create(this.puppet,Object.assign({selector:t},e,{pageId:this.id}),this.elementMap)}catch(t){return null}}async $$(t){const{elements:e}=await this.api.getElements({selector:t});return e.map((e=>at.create(this.puppet,Object.assign({selector:t},e,{pageId:this.id}),this.elementMap)))}async data(t){const e={};return t&&(e.path=t),(await this.api.getData(e)).data}async setData(t){return this.api.setData({data:t})}async size(){const[t,e]=await this.windowProperty(["document.documentElement.scrollWidth","document.documentElement.scrollHeight"]);return{width:t,height:e}}async callMethod(t,...e){return(await this.api.callMethod({method:t,args:e})).result}async scrollTop(){return this.windowProperty("document.documentElement.scrollTop")}async windowProperty(t){const e=O.default(t);e&&(t=[t]);const{properties:n}=await this.api.getWindowProperties({names:t});return e?n[0]:n}static create(t,e,n){let s=n.get(e.id);return s?(s.query=e.query,s):(s=new wt(t,e),n.set(e.id,s),s)}}class Pt extends it{async getPageStack(){return this.invoke("App.getPageStack")}async callUniMethod(t){return this.invoke("App.callUniMethod",t)}async getCurrentPage(){return this.invoke("App.getCurrentPage")}async mockUniMethod(t){return this.invoke("App.mockUniMethod",t)}async captureScreenshotByRuntime(t){return this.invoke("App.captureScreenshot",t)}async callFunction(t){return this.invoke("App.callFunction",t)}async captureScreenshot(t){return this.invoke("App.captureScreenshot",t)}async exit(){return this.invoke("App.exit")}async addBinding(t){return this.invoke("App.addBinding",t)}async enableLog(){return this.invoke("App.enableLog")}onLogAdded(t){return this.on("App.logAdded",t)}onBindingCalled(t){return this.on("App.bindingCalled",t)}onExceptionThrown(t){return this.on("App.exceptionThrown",t)}}Z([nt],Pt.prototype,"getPageStack",null),Z([nt],Pt.prototype,"callUniMethod",null),Z([nt],Pt.prototype,"getCurrentPage",null),Z([nt],Pt.prototype,"mockUniMethod",null),Z([nt],Pt.prototype,"captureScreenshotByRuntime",null),Z([st],Pt.prototype,"callFunction",null),Z([st],Pt.prototype,"captureScreenshot",null),Z([st],Pt.prototype,"exit",null),Z([st],Pt.prototype,"addBinding",null),Z([st],Pt.prototype,"enableLog",null);class Mt extends it{async getInfo(){return this.invoke("Tool.getInfo")}async enableRemoteDebug(t){return this.invoke("Tool.enableRemoteDebug")}async close(){return this.invoke("Tool.close")}async getTestAccounts(){return this.invoke("Tool.getTestAccounts")}onRemoteDebugConnected(t){this.puppet.once("Tool.onRemoteDebugConnected",t),this.puppet.once("Tool.onPreviewConnected",t)}}function kt(t){return new Promise((e=>setTimeout(e,t)))}Z([st],Mt.prototype,"getInfo",null),Z([st],Mt.prototype,"enableRemoteDebug",null),Z([st],Mt.prototype,"close",null),Z([st],Mt.prototype,"getTestAccounts",null);class Et extends r.EventEmitter{constructor(t,e){super(),this.puppet=t,this.options=e,this.pageMap=new Map,this.appBindings=new Map,this.appApi=new Pt(t),this.toolApi=new Mt(t),this.appApi.onLogAdded((t=>{this.emit("console",t)})),this.appApi.onBindingCalled((({name:t,args:e})=>{try{const n=this.appBindings.get(t);n&&n(...e)}catch(t){}})),this.appApi.onExceptionThrown((t=>{this.emit("exception",t)}))}async pageStack(){return(await this.appApi.getPageStack()).pageStack.map((t=>wt.create(this.puppet,t,this.pageMap)))}async navigateTo(t){return this.changeRoute("navigateTo",t)}async redirectTo(t){return this.changeRoute("redirectTo",t)}async navigateBack(){return this.changeRoute("navigateBack")}async reLaunch(t){return this.changeRoute("reLaunch",t)}async switchTab(t){return this.changeRoute("switchTab",t)}async currentPage(){const{id:t,path:e,query:n}=await this.appApi.getCurrentPage();return wt.create(this.puppet,{id:t,path:e,query:n},this.pageMap)}async systemInfo(){return this.callUniMethod("getSystemInfoSync")}async callUniMethod(t,...e){return(await this.appApi.callUniMethod({method:t,args:e})).result}async mockUniMethod(t,e,...n){return x.default(e)||(s=e,O.default(s)&&(s=q.default(s),$.default(s,"function")||$.default(s,"() =>")))?this.appApi.mockUniMethod({method:t,functionDeclaration:e.toString(),args:n}):this.appApi.mockUniMethod({method:t,result:e});var s}async restoreUniMethod(t){return this.appApi.mockUniMethod({method:t})}async evaluate(t,...e){return(await this.appApi.callFunction({functionDeclaration:t.toString(),args:e})).result}async pageScrollTo(t){await this.callUniMethod("pageScrollTo",{scrollTop:t,duration:0})}async close(){try{await this.appApi.exit()}catch(t){}await kt(1e3),this.puppet.disposeRuntimeServer(),await this.toolApi.close(),this.disconnect()}async teardown(){return this["disconnect"===this.options.teardown?"disconnect":"close"]()}async remote(t){if(!this.puppet.devtools.remote)return console.warn(`Failed to enable remote, ${this.puppet.devtools.name} is unimplemented`);const{qrCode:e}=await this.toolApi.enableRemoteDebug({auto:t});var n;e&&await(n=e,new Promise((t=>{X.default.generate(n,{small:!0},(e=>{process.stdout.write(e),t(void 0)}))})));const s=new Promise((t=>{this.toolApi.onRemoteDebugConnected((async()=>{await kt(1e3),t(void 0)}))})),i=new Promise((t=>{this.puppet.setRemoteRuntimeConnectionCallback((()=>{t(void 0)}))}));return Promise.all([s,i])}disconnect(){this.puppet.dispose()}on(t,e){return"console"===t&&this.appApi.enableLog(),super.on(t,e),this}async exposeFunction(t,e){if(this.appBindings.has(t))throw Error(`Failed to expose function with name ${t}: already exists!`);this.appBindings.set(t,e),await this.appApi.addBinding({name:t})}async checkVersion(){}async screenshot(t){const e=this.puppet.isX?"captureScreenshotByRuntime":"captureScreenshot",{data:n}=await this.appApi[e]({fullPage:null==t?void 0:t.fullPage});if(!(null==t?void 0:t.path))return n;await _.default.writeFile(t.path,n,"base64")}async testAccounts(){return(await this.toolApi.getTestAccounts()).accounts}async changeRoute(t,e){return await this.callUniMethod(t,{url:e}),await kt(3e3),this.currentPage()}}class It{constructor(t){this.options=t}has(t){return!!this.options[t]}send(t,e,n){const s=this.options[e];if(!s)return Promise.reject(Error(`adapter for ${e} not found`));const i=s.reflect;return i?(s.params&&(n=s.params(n)),"function"==typeof i?i(t.send.bind(t),n):(e=i,t.send(e,n))):Promise.reject(Error(`${e}'s reflect is required`))}}const bt=D.default("automator:puppet"),Ct=".automator.json";function Tt(t){try{return require(t)}catch(t){}}function Dt(t,e,n,s){const i=function(t,e,n){let s,i;return process.env.UNI_OUTPUT_DIR?(i=T.default.join(process.env.UNI_OUTPUT_DIR,`../.automator/${e}`,Ct),s=Tt(i)):(i=T.default.join(t,`dist/${n}/.automator/${e}`,Ct),s=Tt(i),s||(i=T.default.join(t,`unpackage/dist/${n}/.automator/${e}`,Ct),s=Tt(i))),bt(`${i}=>${JSON.stringify(s)}`),s}(t,n,s);if(!i||!i.wsEndpoint)return!1;const o=require("../package.json").version;if(i.version!==o)return bt(`unmet=>${i.version}!==${o}`),!1;const r=function(t){let e;try{const t=J.default.v4.sync();e=B.default.ip(t&&t.interface),e&&(/^10[.]|^172[.](1[6-9]|2[0-9]|3[0-1])[.]|^192[.]168[.]/.test(e)||(e=void 0))}catch(t){}return"ws://"+(e||"localhost")+":"+t}(e);return bt(`wsEndpoint=>${r}`),i.wsEndpoint===r}class Nt extends r.EventEmitter{constructor(t,e){if(super(),this.isX=!1,"true"===process.env.UNI_APP_X&&(this.isX=!0),e)this.target=e;else{if(this.target=null,"h5"===t)try{this.target=Q("@dcloudio/uni-h5/lib/h5/uni.automator.js")}catch(t){}this.target||(this.target=Q(`@dcloudio/uni-${"app"===t?"app-plus":t}/lib/uni.automator.js`))}if(!this.target)throw Error("puppet is not provided");this.platform=t,this.adapter=new It(this.target.adapter||{})}setCompiler(t){this.compiler=t}setRuntimeServer(t){this.wss=t}setRemoteRuntimeConnectionCallback(t){this.remoteRuntimeConnectionCallback=t}setRuntimeConnection(t){this.runtimeConnection=t,this.remoteRuntimeConnectionCallback&&(this.remoteRuntimeConnectionCallback(),this.remoteRuntimeConnectionCallback=null)}setDevtoolConnection(t){this.devtoolConnection=t}disposeRuntimeServer(){this.wss&&this.wss.close()}disposeRuntime(){this.runtimeConnection.dispose()}disposeDevtool(){this.compiler&&this.compiler.stop(),this.devtoolConnection&&this.devtoolConnection.dispose()}dispose(){this.disposeRuntime(),this.disposeDevtool(),this.disposeRuntimeServer()}send(t,e){return this.runtimeConnection.send(t,e)}validateProject(t){const e=this.target.devtools.required;return!e||!e.find((e=>!C.default.existsSync(T.default.join(t,e))))}validateDevtools(t){const e=this.target.devtools.validate;return e?e(t,this):Promise.resolve(t)}createDevtools(t,e,n){const s=this.target.devtools.create;return s?(e.timeout=n,s(t,e,this)):Promise.resolve()}shouldCompile(t,e,n,s){this.compiled=!0;const i=this.target.shouldCompile;return i?this.compiled=i(n,s):!0===n.compile?this.compiled=!0:this.compiled=!Dt(t,e,this.platform,this.mode),this.compiled}get checkProperty(){return"mp-weixin"===this.platform}get devtools(){return this.target.devtools}get mode(){const t=this.target.mode;return t||("production"===process.env.NODE_ENV?"build":"dev")}}const At=D.default("automator:compiler"),St=/The\s+(.*)\s+directory is ready/;class jt{constructor(t){this.puppet=t,this.puppet.setCompiler(this)}compile(t){const e=this.puppet.mode,n=this.puppet.platform;let s=t.silent;const i=t.port,o=t.host,r=`${e}:${n}`,a=t.projectPath,[c,p]=this.getSpawnArgs(t,r);p.push("--auto-port"),p.push(V.default(i)),o&&(p.push("--auto-host"),p.push(o));const l={cwd:t.cliPath,env:Object.assign(Object.assign({},process.env),{NODE_ENV:"build"===e?"production":"development"})};return new Promise(((t,i)=>{const o=i=>{const o=i.toString().trim();if(!s&&console.log(o),o.includes("- Network")||o.includes("> Network")||o.includes("➜ Network")){const e=o.match(/Network:(.*)/)[1].trim();At(`url: ${e}`),t({path:e})}else if(o.includes("DONE Build complete")){const i=o.match(St);let r="";i&&i.length>1?r=T.default.join(a,i[1]):(r=T.default.join(a,`dist/${e}/${n}`),C.default.existsSync(r)||(r=T.default.join(a,`unpackage/dist/${e}/${n}`))),s=!0,this.stop(),t({path:r})}};At(`${c} ${p.join(" ")} %o`,l),this.cliProcess=E.spawn(c,p,l),this.cliProcess.on("error",(t=>{i(t)})),this.cliProcess.stdout.on("data",o),this.cliProcess.stderr.on("data",o)}))}stop(){this.cliProcess&&this.cliProcess.kill("SIGTERM")}getSpawnArgs(t,e){let n;const s=t.cliPath;try{n=require(T.default.join(s,"package.json"))}catch(t){}let i=!1;if(n&&(n.devDependencies&&n.devDependencies["@dcloudio/vite-plugin-uni"]&&(i=!0),!i&&n.dependencies&&n.dependencies["@dcloudio/vite-plugin-uni"]&&(i=!0),n.scripts&&n.scripts[e]))return[process.env.UNI_NPM_PATH||(/^win/.test(process.platform)?"npm.cmd":"npm"),["run",e,"--"]];if(["android","ios"].includes(process.env.UNI_OS_NAME)&&(process.env.UNI_APP_PLATFORM=process.env.UNI_OS_NAME),process.env.UNI_INPUT_DIR=t.projectPath,process.env.UNI_OUTPUT_DIR=T.default.join(t.projectPath,`unpackage/dist/${this.puppet.mode}/${this.puppet.platform}`),process.env.UNI_HBUILDERX_PLUGINS||C.default.existsSync(T.default.resolve(s,"../about"))&&(process.env.UNI_HBUILDERX_PLUGINS=T.default.dirname(s)),i){const t="app-plus"===this.puppet.platform?"app":this.puppet.platform;return process.env.UNI_PLATFORM=t,[process.env.UNI_NODE_PATH||"node",[require.resolve("@dcloudio/vite-plugin-uni/bin/uni.js",{paths:[s]}),"-p",t]]}return[process.env.UNI_NODE_PATH||"node",[T.default.join(s,"bin/uniapp-cli.js")]]}}class Rt{async launch(t){const{port:e,cliPath:n,timeout:s,projectPath:i}=await this.validate(t);let o={};o="app"===t.platform||"app-plus"===t.platform?"true"===process.env.UNI_APP_X?t["uni-app-x"]:t.app||t["app-plus"]:t[t.platform],o||(o={}),o.projectPath=i,this.puppet=new Nt(t.platform,o.puppet),o=await this.puppet.validateDevtools(o);let r=this.puppet.shouldCompile(i,e,t,o),a=process.env.UNI_OUTPUT_DIR||i;if(r||this.puppet.validateProject(a)||(a=T.default.join(i,"dist/"+this.puppet.mode+"/"+this.puppet.platform),this.puppet.validateProject(a)||(a=T.default.join(i,"unpackage/dist/"+this.puppet.mode+"/"+this.puppet.platform),this.puppet.validateProject(a)||(r=!0))),r){this.puppet.compiled=t.compile=!0,this.compiler=new jt(this.puppet);const s=await this.compiler.compile({host:t.host,port:e,cliPath:n,projectPath:i,silent:!!t.silent});s.path&&(a=s.path)}const c=[];return c.push(this.createRuntimeConnection(e,s)),c.push(this.puppet.createDevtools(a,o,s)),new Promise(((t,n)=>{Promise.all(c).then((([n,s])=>{n&&this.puppet.setRuntimeConnection(n),s&&this.puppet.setDevtoolConnection(s),D.default("automator:program")("ready");const i=o.teardown||"disconnect";t(new Et(this.puppet,{teardown:i,port:e}))})).catch((t=>n(t)))}))}resolveCliPath(t){if(!t)return t;try{const{dependencies:e,devDependencies:n}=require(T.default.join(t,"package.json"));if(Ut(n)||Ut(e))return t}catch(t){}}resolveProjectPath(t,e){return t||(t=process.env.UNI_INPUT_DIR||process.cwd()),N.default(t)&&(t=T.default.resolve(t)),C.default.existsSync(t)||function(t){throw Error(t)}(`Project path ${t} doesn't exist`),t}async validate(t){const e=this.resolveProjectPath(t.projectPath,t);let n=process.env.UNI_CLI_PATH||t.cliPath;if(n=this.resolveCliPath(n||""),!n&&(n=this.resolveCliPath(process.cwd())),!n&&(n=this.resolveCliPath(e)),!n)throw Error("cliPath is not provided");const s=this.getManifestJson(e);"uni-app-x"in s&&(process.env.UNI_APP_X="true",s.appid&&(process.env.UNI_APP_ID=s.appid));return{port:await async function(t,e){const n=await W.default(t||e);if(t&&n!==t)throw Error(`Port ${t} is in use, please specify another port`);return n}(t.port||9520),cliPath:n,timeout:t.timeout||6e5,projectPath:e}}getManifestJson(t){if(t){const e=T.default.join(t,"manifest.json");if(C.default.existsSync(e))return s.parse(C.default.readFileSync(e,"utf8"))}return{}}async createRuntimeConnection(t,e){return Y.createRuntimeConnection(t,this.puppet,e)}}function Ut(t){return!!t&&!(!t["@dcloudio/vue-cli-plugin-uni"]&&!t["@dcloudio/vite-plugin-uni"])}module.exports=class{constructor(){this.launcher=new Rt}async launch(t){return this.launcher.launch(t)}}; +***************************************************************************** */function Z(t,e,n,s){var i,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(o<3?i(r):o>3?i(e,n,r):i(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r}var tt;function et(t,e){const n=e.value;return e.value=async function(e){return(await(null==n?void 0:n.call(this,e)))(t)},e}function nt(t,e,n){return et(tt.RUNTIME,n)}function st(t,e,n){return et(tt.DEVTOOL,n)}/^win/.test(process.platform),function(t){t.RUNTIME="runtime",t.DEVTOOL="devtool"}(tt||(tt={}));class it{constructor(t){this.puppet=t}invoke(t,e){return async n=>this.puppet.devtoolConnection?(n===tt.DEVTOOL?this.puppet.devtoolConnection:this.puppet.runtimeConnection).send(t,e):this.puppet.runtimeConnection.send(t,e)}on(t,e){this.puppet.on(t,e)}}class ot extends it{constructor(t,e){super(t),this.id=e.elementId,this.pageId=e.pageId,this.nodeId=e.nodeId,this.videoId=e.videoId}async getData(t){return this.invokeMethod("Element.getData",t)}async setData(t){return this.invokeMethod("Element.setData",t)}async callMethod(t){return this.invokeMethod("Element.callMethod",t)}async getElement(t){return this.invokeMethod("Element.getElement",t)}async getElements(t){return this.invokeMethod("Element.getElements",t)}async getOffset(){return this.invokeMethod("Element.getOffset")}async getHTML(t){return this.invokeMethod("Element.getHTML",t)}async getAttributes(t){return this.invokeMethod("Element.getAttributes",t)}async getStyles(t){return this.invokeMethod("Element.getStyles",t)}async getDOMProperties(t){return this.invokeMethod("Element.getDOMProperties",t)}async getProperties(t){return this.invokeMethod("Element.getProperties",t)}async tap(){return this.invokeMethod("Element.tap")}async longpress(){return this.invokeMethod("Element.longpress")}async touchstart(t){return this.invokeMethod("Element.touchstart",t)}async touchmove(t){return this.invokeMethod("Element.touchmove",t)}async touchend(t){return this.invokeMethod("Element.touchend",t)}async triggerEvent(t){return this.invokeMethod("Element.triggerEvent",t)}async callFunction(t){return this.invokeMethod("Element.callFunction",t)}async callContextMethod(t){return this.invokeMethod("Element.callContextMethod",t)}invokeMethod(t,e={}){return e.elementId=this.id,e.pageId=this.pageId,this.nodeId&&(e.nodeId=this.nodeId),this.videoId&&(e.videoId=this.videoId),this.invoke(t,e)}}Z([nt],ot.prototype,"getData",null),Z([nt],ot.prototype,"setData",null),Z([nt],ot.prototype,"callMethod",null),Z([st],ot.prototype,"getElement",null),Z([st],ot.prototype,"getElements",null),Z([st],ot.prototype,"getOffset",null),Z([st],ot.prototype,"getHTML",null),Z([st],ot.prototype,"getAttributes",null),Z([st],ot.prototype,"getStyles",null),Z([st],ot.prototype,"getDOMProperties",null),Z([st],ot.prototype,"getProperties",null),Z([st],ot.prototype,"tap",null),Z([st],ot.prototype,"longpress",null),Z([st],ot.prototype,"touchstart",null),Z([st],ot.prototype,"touchmove",null),Z([st],ot.prototype,"touchend",null),Z([st],ot.prototype,"triggerEvent",null),Z([st],ot.prototype,"callFunction",null),Z([st],ot.prototype,"callContextMethod",null);const rt=require("util");class at{constructor(t,e,n){this.puppet=t,this.id=e.elementId,this.pageId=e.pageId,this.nodeId=e.nodeId||null,this.videoId=e.videoId||null,this.tagName=e.tagName,this.nvue=e.nvue,this.elementMap=n,"body"!==this.tagName&&"page-body"!==this.tagName||(this.tagName="page"),this.api=new ot(t,e)}toJSON(){return JSON.stringify({id:this.id,tagName:this.tagName,pageId:this.pageId,nodeId:this.nodeId,videoId:this.videoId})}toString(){return this.toJSON()}[rt.inspect.custom](){return this.toJSON()}async $(t){try{const e=await this.api.getElement({selector:t});return at.create(this.puppet,Object.assign({},e,{pageId:this.pageId}),this.elementMap)}catch(t){return null}}async $$(t){const{elements:e}=await this.api.getElements({selector:t});return e.map((t=>at.create(this.puppet,Object.assign({},t,{pageId:this.pageId}),this.elementMap)))}async size(){const[t,e]=await this.domProperty(["offsetWidth","offsetHeight"]);return{width:t,height:e}}async offset(){const{left:t,top:e}=await this.api.getOffset();return{left:t,top:e}}async text(){return this.domProperty("innerText")}async attribute(t){if(!O.default(t))throw Error("name must be a string");return(await this.api.getAttributes({names:[t]})).attributes[0]}async value(){return this.property("value")}async property(t){if(!O.default(t))throw Error("name must be a string");if(this.puppet.checkProperty){let e=this.publicProps;if(e||(this.publicProps=e=await this._property("__propPublic")),!e[t])throw Error(`${this.tagName}.${t} not exists`)}return this._property(t)}async html(){return(await this.api.getHTML({type:"inner"})).html}async outerHtml(){return(await this.api.getHTML({type:"outer"})).html}async style(t){if(!O.default(t))throw Error("name must be a string");return(await this.api.getStyles({names:[t]})).styles[0]}async tap(){return this.api.tap()}async longpress(){return this.nvue?this.api.longpress():(await this.touchstart(),await L.default(350),this.touchend())}async trigger(t,e){const n={type:t};return H.default(e)||(n.detail=e),this.api.triggerEvent(n)}async touchstart(t){return this.api.touchstart(t)}async touchmove(t){return this.api.touchmove(t)}async touchend(t){return this.api.touchend(t)}async domProperty(t){return K((async t=>(await this.api.getDOMProperties({names:t})).properties),t)}_property(t){return K((async t=>(await this.api.getProperties({names:t})).properties),t)}send(t,e){return e.elementId=this.id,e.pageId=this.pageId,this.nodeId&&(e.nodeId=this.nodeId),this.videoId&&(e.videoId=this.videoId),this.puppet.send(t,e)}async callFunction(t,...e){return(await this.api.callFunction({functionName:t,args:e})).result}static create(t,e,n){let s,i=n.get(e.elementId);if(i)return i;if(e.nodeId)s=ct;else switch(e.tagName){case"input":s=pt;break;case"textarea":s=lt;break;case"scroll-view":s=ut;break;case"swiper":s=ht;break;case"movable-view":s=dt;break;case"switch":s=mt;break;case"slider":s=gt;break;case"video":s=yt;break;default:s=at}return i=new s(t,e,n),n.set(e.elementId,i),i}}class ct extends at{async setData(t){return this.api.setData({data:t})}async data(t){const e={};return t&&(e.path=t),(await this.api.getData(e)).data}async callMethod(t,...e){return(await this.api.callMethod({method:t,args:e})).result}}class pt extends at{async input(t){return this.callFunction("input.input",t)}}class lt extends at{async input(t){return this.callFunction("textarea.input",t)}}class ut extends at{async scrollTo(t,e){return this.callFunction("scroll-view.scrollTo",t,e)}async property(t){return"scrollTop"===t?this.callFunction("scroll-view.scrollTop"):"scrollLeft"===t?this.callFunction("scroll-view.scrollLeft"):super.property(t)}async scrollWidth(){return this.callFunction("scroll-view.scrollWidth")}async scrollHeight(){return this.callFunction("scroll-view.scrollHeight")}}class ht extends at{async swipeTo(t){return this.callFunction("swiper.swipeTo",t)}}class dt extends at{async moveTo(t,e){return this.callFunction("movable-view.moveTo",t,e)}async property(t){return"x"===t?this._property("_translateX"):"y"===t?this._property("_translateY"):super.property(t)}}class mt extends at{async tap(){return this.callFunction("switch.tap")}}class gt extends at{async slideTo(t){return this.callFunction("slider.slideTo",t)}}class yt extends at{async callContextMethod(t,...e){return await this.api.callContextMethod({method:t,args:e})}}class vt extends it{constructor(t,e){super(t),this.id=e.id}async getData(t){return this.invokeMethod("Page.getData",t)}async setData(t){return this.invokeMethod("Page.setData",t)}async callMethod(t){return this.invokeMethod("Page.callMethod",t)}async getElement(t){return this.invokeMethod("Page.getElement",t)}async getElements(t){return this.invokeMethod("Page.getElements",t)}async getWindowProperties(t){return this.invokeMethod("Page.getWindowProperties",t)}invokeMethod(t,e={}){return e.pageId=this.id,this.invoke(t,e)}}Z([nt],vt.prototype,"getData",null),Z([nt],vt.prototype,"setData",null),Z([nt],vt.prototype,"callMethod",null),Z([st],vt.prototype,"getElement",null),Z([st],vt.prototype,"getElements",null),Z([st],vt.prototype,"getWindowProperties",null);const ft=require("util");class wt{constructor(t,e){this.puppet=t,this.id=e.id,this.path=e.path,this.query=e.query,this.elementMap=new Map,this.api=new vt(t,e)}toJSON(){return JSON.stringify({id:this.id,path:this.path,query:this.query})}toString(){return this.toJSON()}[ft.inspect.custom](){return this.toJSON()}async waitFor(t){return F.default(t)?await L.default(t):x.default(t)?U.default(t):O.default(t)?U.default((async()=>(await this.$$(t)).length>0)):void 0}async $(t){try{const e=await this.api.getElement({selector:t});return at.create(this.puppet,Object.assign({selector:t},e,{pageId:this.id}),this.elementMap)}catch(t){return null}}async $$(t){const{elements:e}=await this.api.getElements({selector:t});return e.map((e=>at.create(this.puppet,Object.assign({selector:t},e,{pageId:this.id}),this.elementMap)))}async data(t){const e={};return t&&(e.path=t),(await this.api.getData(e)).data}async setData(t){return this.api.setData({data:t})}async size(){const[t,e]=await this.windowProperty(["document.documentElement.scrollWidth","document.documentElement.scrollHeight"]);return{width:t,height:e}}async callMethod(t,...e){return(await this.api.callMethod({method:t,args:e})).result}async scrollTop(){return this.windowProperty("document.documentElement.scrollTop")}async windowProperty(t){const e=O.default(t);e&&(t=[t]);const{properties:n}=await this.api.getWindowProperties({names:t});return e?n[0]:n}static create(t,e,n){let s=n.get(e.id);return s?(s.query=e.query,s):(s=new wt(t,e),n.set(e.id,s),s)}}class Pt extends it{async getPageStack(){return this.invoke("App.getPageStack")}async callUniMethod(t){return this.invoke("App.callUniMethod",t)}async getCurrentPage(){return this.invoke("App.getCurrentPage")}async mockUniMethod(t){return this.invoke("App.mockUniMethod",t)}async captureScreenshotByRuntime(t){return this.invoke("App.captureScreenshot",t)}async callFunction(t){return this.invoke("App.callFunction",t)}async captureScreenshot(t){return this.invoke("App.captureScreenshot",t)}async exit(){return this.invoke("App.exit")}async addBinding(t){return this.invoke("App.addBinding",t)}async enableLog(){return this.invoke("App.enableLog")}onLogAdded(t){return this.on("App.logAdded",t)}onBindingCalled(t){return this.on("App.bindingCalled",t)}onExceptionThrown(t){return this.on("App.exceptionThrown",t)}}Z([nt],Pt.prototype,"getPageStack",null),Z([nt],Pt.prototype,"callUniMethod",null),Z([nt],Pt.prototype,"getCurrentPage",null),Z([nt],Pt.prototype,"mockUniMethod",null),Z([nt],Pt.prototype,"captureScreenshotByRuntime",null),Z([st],Pt.prototype,"callFunction",null),Z([st],Pt.prototype,"captureScreenshot",null),Z([st],Pt.prototype,"exit",null),Z([st],Pt.prototype,"addBinding",null),Z([st],Pt.prototype,"enableLog",null);class Mt extends it{async getInfo(){return this.invoke("Tool.getInfo")}async enableRemoteDebug(t){return this.invoke("Tool.enableRemoteDebug")}async close(){return this.invoke("Tool.close")}async getTestAccounts(){return this.invoke("Tool.getTestAccounts")}onRemoteDebugConnected(t){this.puppet.once("Tool.onRemoteDebugConnected",t),this.puppet.once("Tool.onPreviewConnected",t)}}function kt(t){return new Promise((e=>setTimeout(e,t)))}Z([st],Mt.prototype,"getInfo",null),Z([st],Mt.prototype,"enableRemoteDebug",null),Z([st],Mt.prototype,"close",null),Z([st],Mt.prototype,"getTestAccounts",null);class Et extends r.EventEmitter{constructor(t,e){super(),this.puppet=t,this.options=e,this.pageMap=new Map,this.appBindings=new Map,this.appApi=new Pt(t),this.toolApi=new Mt(t),this.appApi.onLogAdded((t=>{this.emit("console",t)})),this.appApi.onBindingCalled((({name:t,args:e})=>{try{const n=this.appBindings.get(t);n&&n(...e)}catch(t){}})),this.appApi.onExceptionThrown((t=>{this.emit("exception",t)}))}async pageStack(){return(await this.appApi.getPageStack()).pageStack.map((t=>wt.create(this.puppet,t,this.pageMap)))}async navigateTo(t){return this.changeRoute("navigateTo",t)}async redirectTo(t){return this.changeRoute("redirectTo",t)}async navigateBack(){return this.changeRoute("navigateBack")}async reLaunch(t){return this.changeRoute("reLaunch",t)}async switchTab(t){return this.changeRoute("switchTab",t)}async currentPage(){const{id:t,path:e,query:n}=await this.appApi.getCurrentPage();return wt.create(this.puppet,{id:t,path:e,query:n},this.pageMap)}async systemInfo(){return this.callUniMethod("getSystemInfoSync")}async callUniMethod(t,...e){return(await this.appApi.callUniMethod({method:t,args:e})).result}async mockUniMethod(t,e,...n){return x.default(e)||(s=e,O.default(s)&&(s=q.default(s),$.default(s,"function")||$.default(s,"() =>")))?this.appApi.mockUniMethod({method:t,functionDeclaration:e.toString(),args:n}):this.appApi.mockUniMethod({method:t,result:e});var s}async restoreUniMethod(t){return this.appApi.mockUniMethod({method:t})}async evaluate(t,...e){return(await this.appApi.callFunction({functionDeclaration:t.toString(),args:e})).result}async pageScrollTo(t){await this.callUniMethod("pageScrollTo",{scrollTop:t,duration:0})}async close(){try{await this.appApi.exit()}catch(t){}await kt(1e3),this.puppet.disposeRuntimeServer(),await this.toolApi.close(),this.disconnect()}async teardown(){return this["disconnect"===this.options.teardown?"disconnect":"close"]()}async remote(t){if(!this.puppet.devtools.remote)return console.warn(`Failed to enable remote, ${this.puppet.devtools.name} is unimplemented`);const{qrCode:e}=await this.toolApi.enableRemoteDebug({auto:t});var n;e&&await(n=e,new Promise((t=>{W.default.generate(n,{small:!0},(e=>{process.stdout.write(e),t(void 0)}))})));const s=new Promise((t=>{this.toolApi.onRemoteDebugConnected((async()=>{await kt(1e3),t(void 0)}))})),i=new Promise((t=>{this.puppet.setRemoteRuntimeConnectionCallback((()=>{t(void 0)}))}));return Promise.all([s,i])}disconnect(){this.puppet.dispose()}on(t,e){return"console"===t&&this.appApi.enableLog(),super.on(t,e),this}async exposeFunction(t,e){if(this.appBindings.has(t))throw Error(`Failed to expose function with name ${t}: already exists!`);this.appBindings.set(t,e),await this.appApi.addBinding({name:t})}async checkVersion(){}async screenshot(t){const e=this.puppet.isX?"captureScreenshotByRuntime":"captureScreenshot",{data:n}=await this.appApi[e]({fullPage:null==t?void 0:t.fullPage});if(!(null==t?void 0:t.path))return n;await _.default.writeFile(t.path,n,"base64")}async testAccounts(){return(await this.toolApi.getTestAccounts()).accounts}async changeRoute(t,e){return await this.callUniMethod(t,{url:e}),await kt(3e3),this.currentPage()}}class It{constructor(t){this.options=t}has(t){return!!this.options[t]}send(t,e,n){const s=this.options[e];if(!s)return Promise.reject(Error(`adapter for ${e} not found`));const i=s.reflect;return i?(s.params&&(n=s.params(n)),"function"==typeof i?i(t.send.bind(t),n):(e=i,t.send(e,n))):Promise.reject(Error(`${e}'s reflect is required`))}}const bt=N.default("automator:puppet"),Ct=".automator.json";function Tt(t){try{return require(t)}catch(t){}}function Nt(t,e,n,s){const i=function(t,e,n){let s,i;return process.env.UNI_OUTPUT_DIR?(i=T.default.join(process.env.UNI_OUTPUT_DIR,`../.automator/${e}`,Ct),s=Tt(i)):(i=T.default.join(t,`dist/${n}/.automator/${e}`,Ct),s=Tt(i),s||(i=T.default.join(t,`unpackage/dist/${n}/.automator/${e}`,Ct),s=Tt(i))),bt(`${i}=>${JSON.stringify(s)}`),s}(t,n,s);if(!i||!i.wsEndpoint)return!1;const o=require("../package.json").version;if(i.version!==o)return bt(`unmet=>${i.version}!==${o}`),!1;const r=function(t){let e;try{const t=J.default.v4.sync();e=B.default.ip(t&&t.interface),e&&(/^10[.]|^172[.](1[6-9]|2[0-9]|3[0-1])[.]|^192[.]168[.]/.test(e)||(e=void 0))}catch(t){}return"ws://"+(e||"localhost")+":"+t}(e);return bt(`wsEndpoint=>${r}`),i.wsEndpoint===r}class Dt extends r.EventEmitter{constructor(t,e){if(super(),this.isX=!1,"true"===process.env.UNI_APP_X&&(this.isX=!0),e)this.target=e;else{if(this.target=null,"h5"===t)try{this.target=Q("@dcloudio/uni-h5/lib/h5/uni.automator.js")}catch(t){}this.target||(this.target=Q(`@dcloudio/uni-${"app"===t?"app-plus":t}/lib/uni.automator.js`))}if(!this.target)throw Error("puppet is not provided");this.platform=t,this.adapter=new It(this.target.adapter||{})}setCompiler(t){this.compiler=t}setRuntimeServer(t){this.wss=t}setRemoteRuntimeConnectionCallback(t){this.remoteRuntimeConnectionCallback=t}setRuntimeConnection(t){this.runtimeConnection=t,this.remoteRuntimeConnectionCallback&&(this.remoteRuntimeConnectionCallback(),this.remoteRuntimeConnectionCallback=null)}setDevtoolConnection(t){this.devtoolConnection=t}disposeRuntimeServer(){this.wss&&this.wss.close()}disposeRuntime(){this.runtimeConnection.dispose()}disposeDevtool(){this.compiler&&this.compiler.stop(),this.devtoolConnection&&this.devtoolConnection.dispose()}dispose(){this.disposeRuntime(),this.disposeDevtool(),this.disposeRuntimeServer()}send(t,e){return this.runtimeConnection.send(t,e)}validateProject(t){const e=this.target.devtools.required;return!e||!e.find((e=>!C.default.existsSync(T.default.join(t,e))))}validateDevtools(t){const e=this.target.devtools.validate;return e?e(t,this):Promise.resolve(t)}createDevtools(t,e,n){const s=this.target.devtools.create;return s?(e.timeout=n,s(t,e,this)):Promise.resolve()}shouldCompile(t,e,n,s){this.compiled=!0;const i=this.target.shouldCompile;return i?this.compiled=i(n,s):!0===n.compile?this.compiled=!0:this.compiled=!Nt(t,e,this.platform,this.mode),this.compiled}get checkProperty(){return"mp-weixin"===this.platform}get devtools(){return this.target.devtools}get mode(){const t=this.target.mode;return t||("production"===process.env.NODE_ENV?"build":"dev")}}const At=N.default("automator:compiler"),St=/The\s+(.*)\s+directory is ready/;class jt{constructor(t){this.puppet=t,this.puppet.setCompiler(this)}compile(t){const e=this.puppet.mode,n=this.puppet.platform;let s=t.silent;const i=t.port,o=t.host,r=`${e}:${n}`,a=t.projectPath,[c,p]=this.getSpawnArgs(t,r);p.push("--auto-port"),p.push(V.default(i)),o&&(p.push("--auto-host"),p.push(o));const l={cwd:t.cliPath,env:Object.assign(Object.assign({},process.env),{NODE_ENV:"build"===e?"production":"development"})};return new Promise(((t,i)=>{const o=i=>{const o=i.toString().trim();if(!s&&console.log(o),o.includes("- Network")||o.includes("> Network")||o.includes("➜ Network")){const e=o.match(/Network:(.*)/)[1].trim();At(`url: ${e}`),t({path:e})}else if(o.includes("DONE Build complete")){const i=o.match(St);let r="";i&&i.length>1?r=T.default.join(a,i[1]):(r=T.default.join(a,`dist/${e}/${n}`),C.default.existsSync(r)||(r=T.default.join(a,`unpackage/dist/${e}/${n}`))),s=!0,this.stop(),t({path:r})}};At(`${c} ${p.join(" ")} %o`,l),this.cliProcess=E.spawn(c,p,l),this.cliProcess.on("error",(t=>{i(t)})),this.cliProcess.stdout.on("data",o),this.cliProcess.stderr.on("data",o)}))}stop(){this.cliProcess&&this.cliProcess.kill("SIGTERM")}getSpawnArgs(t,e){let n;const s=t.cliPath;try{n=require(T.default.join(s,"package.json"))}catch(t){}let i=!1;if(n&&(n.devDependencies&&n.devDependencies["@dcloudio/vite-plugin-uni"]&&(i=!0),!i&&n.dependencies&&n.dependencies["@dcloudio/vite-plugin-uni"]&&(i=!0),n.scripts&&n.scripts[e]))return[process.env.UNI_NPM_PATH||(/^win/.test(process.platform)?"npm.cmd":"npm"),["run",e,"--"]];if(["android","ios"].includes(process.env.UNI_OS_NAME)&&(process.env.UNI_APP_PLATFORM=process.env.UNI_OS_NAME),process.env.UNI_INPUT_DIR=t.projectPath,process.env.UNI_OUTPUT_DIR=T.default.join(t.projectPath,`unpackage/dist/${this.puppet.mode}/${this.puppet.platform}`),process.env.UNI_HBUILDERX_PLUGINS||C.default.existsSync(T.default.resolve(s,"../about"))&&(process.env.UNI_HBUILDERX_PLUGINS=T.default.dirname(s)),i){const t="app-plus"===this.puppet.platform?"app":this.puppet.platform;return process.env.UNI_PLATFORM=t,[process.env.UNI_NODE_PATH||"node",[require.resolve("@dcloudio/vite-plugin-uni/bin/uni.js",{paths:[s]}),"-p",t]]}return[process.env.UNI_NODE_PATH||"node",[T.default.join(s,"bin/uniapp-cli.js")]]}}class Rt{async launch(t){const{port:e,cliPath:n,timeout:s,projectPath:i}=await this.validate(t);let o={};o="app"===t.platform||"app-plus"===t.platform?"true"===process.env.UNI_APP_X?t["uni-app-x"]:t.app||t["app-plus"]:t[t.platform],o||(o={}),o.projectPath=i,this.puppet=new Dt(t.platform,o.puppet),o=await this.puppet.validateDevtools(o);let r=this.puppet.shouldCompile(i,e,t,o),a=process.env.UNI_OUTPUT_DIR||i;if(r||this.puppet.validateProject(a)||(a=T.default.join(i,"dist/"+this.puppet.mode+"/"+this.puppet.platform),this.puppet.validateProject(a)||(a=T.default.join(i,"unpackage/dist/"+this.puppet.mode+"/"+this.puppet.platform),this.puppet.validateProject(a)||(r=!0))),r){this.puppet.compiled=t.compile=!0,this.compiler=new jt(this.puppet);const s=await this.compiler.compile({host:t.host,port:e,cliPath:n,projectPath:i,silent:!!t.silent});s.path&&(a=s.path)}const c=[];return c.push(this.createRuntimeConnection(e,s)),c.push(this.puppet.createDevtools(a,o,s)),new Promise(((t,n)=>{Promise.all(c).then((([n,s])=>{n&&this.puppet.setRuntimeConnection(n),s&&this.puppet.setDevtoolConnection(s),N.default("automator:program")("ready");const i=o.teardown||"disconnect";t(new Et(this.puppet,{teardown:i,port:e}))})).catch((t=>n(t)))}))}resolveCliPath(t){if(!t)return t;try{const{dependencies:e,devDependencies:n}=require(T.default.join(t,"package.json"));if(Ut(n)||Ut(e))return t}catch(t){}}resolveProjectPath(t,e){return t||(t=process.env.UNI_INPUT_DIR||process.cwd()),D.default(t)&&(t=T.default.resolve(t)),C.default.existsSync(t)||function(t){throw Error(t)}(`Project path ${t} doesn't exist`),t}async validate(t){const e=this.resolveProjectPath(t.projectPath,t);let n=process.env.UNI_CLI_PATH||t.cliPath;if(n=this.resolveCliPath(n||""),!n&&(n=this.resolveCliPath(process.cwd())),!n&&(n=this.resolveCliPath(e)),!n)throw Error("cliPath is not provided");if("false"!==process.env.UNI_APP_X){const t=this.getManifestJson(e);"uni-app-x"in t&&(process.env.UNI_APP_X="true",t.appid&&(process.env.UNI_APP_ID=t.appid))}return{port:await async function(t,e){const n=await X.default(t||e);if(t&&n!==t)throw Error(`Port ${t} is in use, please specify another port`);return n}(t.port||9520),cliPath:n,timeout:t.timeout||6e5,projectPath:e}}getManifestJson(t){if(t){const e=T.default.join(t,"manifest.json");if(C.default.existsSync(e))return s.parse(C.default.readFileSync(e,"utf8"))}return{}}async createRuntimeConnection(t,e){return Y.createRuntimeConnection(t,this.puppet,e)}}function Ut(t){return!!t&&!(!t["@dcloudio/vue-cli-plugin-uni"]&&!t["@dcloudio/vite-plugin-uni"])}module.exports=class{constructor(){this.launcher=new Rt}async launch(t){return this.launcher.launch(t)}}; diff --git a/packages/vite-plugin-uni/src/cli/uvue.ts b/packages/vite-plugin-uni/src/cli/uvue.ts index b819918b745..784d3b6f6d7 100644 --- a/packages/vite-plugin-uni/src/cli/uvue.ts +++ b/packages/vite-plugin-uni/src/cli/uvue.ts @@ -8,6 +8,10 @@ import { buildByVite, initBuildOptions } from './build' import { addConfigFile, cleanOptions, printStartupDuration } from './utils' export function initUVueEnv() { + // 直接指定了 + if (process.env.UNI_APP_X === 'false') { + return + } const manifestJson = parseManifestJsonOnce(process.env.UNI_INPUT_DIR) const isNVueEnabled = hasOwn(manifestJson, 'uni-app-x') if (!isNVueEnabled) {
532e580d6b259bda3188d5302fef83f826bcde1f
2021-03-08 16:54:17
fxy060608
build(deps): bump vue from 3.0.5 to 3.0.7
false
bump vue from 3.0.5 to 3.0.7
build
diff --git a/packages/uni-mp-vue/dist/vue.runtime.esm.js b/packages/uni-mp-vue/dist/vue.runtime.esm.js index 50a27b3752c..805c964f8f6 100644 --- a/packages/uni-mp-vue/dist/vue.runtime.esm.js +++ b/packages/uni-mp-vue/dist/vue.runtime.esm.js @@ -1,4 +1,4 @@ -import { isSymbol, extend, isMap, isObject, toRawType, def, isArray, isString, isFunction, isPromise, capitalize, toHandlerKey, remove, EMPTY_OBJ, NOOP, isGloballyWhitelisted, isIntegerKey, hasOwn, hasChanged, camelize, NO, invokeArrayFns, isSet, makeMap, toNumber, hyphenate, isReservedProp, EMPTY_ARR, toTypeString, isOn } from '@vue/shared'; +import { isSymbol, extend, isMap, isObject, toRawType, def, isArray, isString, isFunction, isPromise, toHandlerKey, remove, EMPTY_OBJ, camelize, capitalize, normalizeClass, normalizeStyle, isOn, NOOP, isGloballyWhitelisted, isIntegerKey, hasOwn, hasChanged, NO, invokeArrayFns, makeMap, isSet, toNumber, hyphenate, isReservedProp, EMPTY_ARR, toTypeString } from '@vue/shared'; export { camelize } from '@vue/shared'; const targetMap = new WeakMap(); @@ -190,6 +190,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) { effects.forEach(run); } +const isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`); const builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol) .map(key => Symbol[key]) .filter(isSymbol)); @@ -244,7 +245,7 @@ function createGetter(isReadonly = false, shallow = false) { const res = Reflect.get(target, key, receiver); if (isSymbol(key) ? builtInSymbols.has(key) - : key === `__proto__` || key === `__v_isRef`) { + : isNonTrackableKeys(key)) { return res; } if (!isReadonly) { @@ -393,8 +394,8 @@ function add(value) { const target = toRaw(this); const proto = getProto(target); const hadKey = proto.has.call(target, value); - target.add(value); if (!hadKey) { + target.add(value); trigger(target, "add" /* ADD */, value, value); } return this; @@ -1096,6 +1097,22 @@ function nextTick(fn) { const p = currentFlushPromise || resolvedPromise; return fn ? p.then(this ? fn.bind(this) : fn) : p; } +// #2768 +// Use binary-search to find a suitable position in the queue, +// so that the queue maintains the increasing order of job's id, +// which can prevent the job from being skipped and also can avoid repeated patching. +function findInsertionIndex(job) { + // the start index should be `flushIndex + 1` + let start = flushIndex + 1; + let end = queue.length; + const jobId = getId(job); + while (start < end) { + const middle = (start + end) >>> 1; + const middleJobId = getId(queue[middle]); + middleJobId < jobId ? (start = middle + 1) : (end = middle); + } + return start; +} function queueJob(job) { // the dedupe search uses the startIndex argument of Array.includes() // by default the search index includes the current job that is being run @@ -1106,7 +1123,13 @@ function queueJob(job) { if ((!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && job !== currentPreFlushParentJob) { - queue.push(job); + const pos = findInsertionIndex(job); + if (pos > -1) { + queue.splice(pos, 0, job); + } + else { + queue.push(job); + } queueFlush(); } } @@ -1358,63 +1381,17 @@ function isEmitListener(options, key) { hasOwn(options, key)); } +let isRenderingCompiledSlot = 0; +const setCompiledSlotRendering = (n) => (isRenderingCompiledSlot += n); + /** * mark the current rendering instance for asset resolution (e.g. * resolveComponent, resolveDirective) during render */ let currentRenderingInstance = null; -function markAttrsAccessed() { -} +let currentScopeId = null; -const COMPONENTS = 'components'; -const DIRECTIVES = 'directives'; -/** - * @private - */ -function resolveDirective(name) { - return resolveAsset(DIRECTIVES, name); -} -// implementation -function resolveAsset(type, name, warnMissing = true) { - const instance = currentInstance; - if (instance) { - const Component = instance.type; - // self name has highest priority - if (type === COMPONENTS) { - // special self referencing call generated by compiler - // inferred from SFC filename - if (name === `_self`) { - return Component; - } - const selfName = getComponentName(Component); - if (selfName && - (selfName === name || - selfName === camelize(name) || - selfName === capitalize(camelize(name)))) { - return Component; - } - } - const res = - // local registration - // check instance[type] first for components with mixin or extends. - resolve(instance[type] || Component[type], name) || - // global registration - resolve(instance.appContext[type], name); - if ((process.env.NODE_ENV !== 'production') && warnMissing && !res) { - warn(`Failed to resolve ${type.slice(0, -1)}: ${name}`); - } - return res; - } - else if ((process.env.NODE_ENV !== 'production')) { - warn(`resolve${capitalize(type.slice(0, -1))} ` + - `can only be used in render() or setup().`); - } -} -function resolve(registry, name) { - return (registry && - (registry[name] || - registry[camelize(name)] || - registry[capitalize(camelize(name))])); +function markAttrsAccessed() { } function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison @@ -1650,7 +1627,7 @@ function validateProp(name, value, prop, isAbsent) { warn('Invalid prop: custom validator check failed for prop "' + name + '".'); } } -const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol'); +const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol,BigInt'); /** * dev only */ @@ -1766,7 +1743,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) { warn(`${apiName} is called when there is no active component instance to be ` + `associated with. ` + `Lifecycle injection APIs can only be used during execution of setup().` + - ( ``)); + (``)); } } const createHook = (lifecycle) => (hook, target = currentInstance) => @@ -1784,6 +1761,211 @@ const onErrorCaptured = (hook, target = currentInstance) => { injectHook("ec" /* ERROR_CAPTURED */, hook, target); }; +// Simple effect. +function watchEffect(effect, options) { + return doWatch(effect, null, options); +} +// initial value for watchers to trigger on undefined initial values +const INITIAL_WATCHER_VALUE = {}; +// implementation +function watch(source, cb, options) { + if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) { + warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` + + `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` + + `supports \`watch(source, cb, options?) signature.`); + } + return doWatch(source, cb, options); +} +function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ, instance = currentInstance) { + if ((process.env.NODE_ENV !== 'production') && !cb) { + if (immediate !== undefined) { + warn(`watch() "immediate" option is only respected when using the ` + + `watch(source, callback, options?) signature.`); + } + if (deep !== undefined) { + warn(`watch() "deep" option is only respected when using the ` + + `watch(source, callback, options?) signature.`); + } + } + const warnInvalidSource = (s) => { + warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` + + `a reactive object, or an array of these types.`); + }; + let getter; + let forceTrigger = false; + if (isRef(source)) { + getter = () => source.value; + forceTrigger = !!source._shallow; + } + else if (isReactive(source)) { + getter = () => source; + deep = true; + } + else if (isArray(source)) { + getter = () => source.map(s => { + if (isRef(s)) { + return s.value; + } + else if (isReactive(s)) { + return traverse(s); + } + else if (isFunction(s)) { + return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */, [ + instance && instance.proxy + ]); + } + else { + (process.env.NODE_ENV !== 'production') && warnInvalidSource(s); + } + }); + } + else if (isFunction(source)) { + if (cb) { + // getter with cb + getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */, [ + instance && instance.proxy + ]); + } + else { + // no cb -> simple effect + getter = () => { + if (instance && instance.isUnmounted) { + return; + } + if (cleanup) { + cleanup(); + } + return callWithErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onInvalidate]); + }; + } + } + else { + getter = NOOP; + (process.env.NODE_ENV !== 'production') && warnInvalidSource(source); + } + if (cb && deep) { + const baseGetter = getter; + getter = () => traverse(baseGetter()); + } + let cleanup; + const onInvalidate = (fn) => { + cleanup = runner.options.onStop = () => { + callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */); + }; + }; + let oldValue = isArray(source) ? [] : INITIAL_WATCHER_VALUE; + const job = () => { + if (!runner.active) { + return; + } + if (cb) { + // watch(source, cb) + const newValue = runner(); + if (deep || forceTrigger || hasChanged(newValue, oldValue)) { + // cleanup before running cb again + if (cleanup) { + cleanup(); + } + callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [ + newValue, + // pass undefined as the old value when it's changed for the first time + oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, + onInvalidate + ]); + oldValue = newValue; + } + } + else { + // watchEffect + runner(); + } + }; + // important: mark the job as a watcher callback so that scheduler knows + // it is allowed to self-trigger (#1727) + job.allowRecurse = !!cb; + let scheduler; + if (flush === 'sync') { + scheduler = job; + } + else if (flush === 'post') { + scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); + } + else { + // default: 'pre' + scheduler = () => { + if (!instance || instance.isMounted) { + queuePreFlushCb(job); + } + else { + // with 'pre' option, the first call must happen before + // the component is mounted so it is called synchronously. + job(); + } + }; + } + const runner = effect(getter, { + lazy: true, + onTrack, + onTrigger, + scheduler + }); + recordInstanceBoundEffect(runner, instance); + // initial run + if (cb) { + if (immediate) { + job(); + } + else { + oldValue = runner(); + } + } + else if (flush === 'post') { + queuePostRenderEffect(runner, instance && instance.suspense); + } + else { + runner(); + } + return () => { + stop(runner); + if (instance) { + remove(instance.effects, runner); + } + }; +} +// this.$watch +function instanceWatch(source, cb, options) { + const publicThis = this.proxy; + const getter = isString(source) + ? () => publicThis[source] + : source.bind(publicThis); + return doWatch(getter, cb.bind(publicThis), options, this); +} +function traverse(value, seen = new Set()) { + if (!isObject(value) || seen.has(value)) { + return value; + } + seen.add(value); + if (isRef(value)) { + traverse(value.value, seen); + } + else if (isArray(value)) { + for (let i = 0; i < value.length; i++) { + traverse(value[i], seen); + } + } + else if (isSet(value) || isMap(value)) { + value.forEach((v) => { + traverse(v, seen); + }); + } + else { + for (const key in value) { + traverse(value[key], seen); + } + } + return value; +} + const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; function onActivated(hook, target) { registerKeepAliveHook(hook, "a" /* ACTIVATED */, target); @@ -1880,7 +2062,10 @@ function createAppContext() { } let uid$1 = 0; // fixed by xxxxxx -function createAppAPI() { +function createAppAPI( +// render: RootRenderFunction, +// hydrate?: RootHydrateFunction +) { return function createApp(rootComponent, rootProps = null) { if (rootProps != null && !isObject(rootProps)) { (process.env.NODE_ENV !== 'production') && warn(`root props passed to app.mount() must be an object.`); @@ -1993,207 +2178,349 @@ function defineComponent(options) { return isFunction(options) ? { setup: options, name: options.name } : options; } -const queuePostRenderEffect = queuePostFlushCb; +const queuePostRenderEffect = queuePostFlushCb; -// Simple effect. -function watchEffect(effect, options) { - return doWatch(effect, null, options); +const isTeleport = (type) => type.__isTeleport; + +const COMPONENTS = 'components'; +const DIRECTIVES = 'directives'; +const NULL_DYNAMIC_COMPONENT = Symbol(); +/** + * @private + */ +function resolveDirective(name) { + return resolveAsset(DIRECTIVES, name); } -// initial value for watchers to trigger on undefined initial values -const INITIAL_WATCHER_VALUE = {}; // implementation -function watch(source, cb, options) { - if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) { - warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` + - `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` + - `supports \`watch(source, cb, options?) signature.`); - } - return doWatch(source, cb, options); -} -function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ, instance = currentInstance) { - if ((process.env.NODE_ENV !== 'production') && !cb) { - if (immediate !== undefined) { - warn(`watch() "immediate" option is only respected when using the ` + - `watch(source, callback, options?) signature.`); - } - if (deep !== undefined) { - warn(`watch() "deep" option is only respected when using the ` + - `watch(source, callback, options?) signature.`); - } - } - const warnInvalidSource = (s) => { - warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` + - `a reactive object, or an array of these types.`); - }; - let getter; - let forceTrigger = false; - if (isRef(source)) { - getter = () => source.value; - forceTrigger = !!source._shallow; - } - else if (isReactive(source)) { - getter = () => source; - deep = true; - } - else if (isArray(source)) { - getter = () => source.map(s => { - if (isRef(s)) { - return s.value; - } - else if (isReactive(s)) { - return traverse(s); - } - else if (isFunction(s)) { - return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */); +function resolveAsset(type, name, warnMissing = true) { + const instance = currentInstance; + if (instance) { + const Component = instance.type; + // self name has highest priority + if (type === COMPONENTS) { + // special self referencing call generated by compiler + // inferred from SFC filename + if (name === `_self`) { + return Component; } - else { - (process.env.NODE_ENV !== 'production') && warnInvalidSource(s); + const selfName = getComponentName(Component); + if (selfName && + (selfName === name || + selfName === camelize(name) || + selfName === capitalize(camelize(name)))) { + return Component; } - }); - } - else if (isFunction(source)) { - if (cb) { - // getter with cb - getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */); } - else { - // no cb -> simple effect - getter = () => { - if (instance && instance.isUnmounted) { - return; - } - if (cleanup) { - cleanup(); - } - return callWithErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onInvalidate]); - }; + const res = + // local registration + // check instance[type] first for components with mixin or extends. + resolve(instance[type] || Component[type], name) || + // global registration + resolve(instance.appContext[type], name); + if ((process.env.NODE_ENV !== 'production') && warnMissing && !res) { + warn(`Failed to resolve ${type.slice(0, -1)}: ${name}`); } + return res; } - else { - getter = NOOP; - (process.env.NODE_ENV !== 'production') && warnInvalidSource(source); - } - if (cb && deep) { - const baseGetter = getter; - getter = () => traverse(baseGetter()); + else if ((process.env.NODE_ENV !== 'production')) { + warn(`resolve${capitalize(type.slice(0, -1))} ` + + `can only be used in render() or setup().`); } - let cleanup; - const onInvalidate = (fn) => { - cleanup = runner.options.onStop = () => { - callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */); - }; +} +function resolve(registry, name) { + return (registry && + (registry[name] || + registry[camelize(name)] || + registry[capitalize(camelize(name))])); +} + +const Fragment = Symbol((process.env.NODE_ENV !== 'production') ? 'Fragment' : undefined); +const Text = Symbol((process.env.NODE_ENV !== 'production') ? 'Text' : undefined); +const Comment = Symbol((process.env.NODE_ENV !== 'production') ? 'Comment' : undefined); +Symbol((process.env.NODE_ENV !== 'production') ? 'Static' : undefined); +let currentBlock = null; +function isVNode(value) { + return value ? value.__v_isVNode === true : false; +} +const createVNodeWithArgsTransform = (...args) => { + return _createVNode(...(args)); +}; +const InternalObjectKey = `__vInternal`; +const normalizeKey = ({ key }) => key != null ? key : null; +const normalizeRef = ({ ref }) => { + return (ref != null + ? isString(ref) || isRef(ref) || isFunction(ref) + ? { i: currentRenderingInstance, r: ref } + : ref + : null); +}; +const createVNode = ((process.env.NODE_ENV !== 'production') + ? createVNodeWithArgsTransform + : _createVNode); +function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { + if (!type || type === NULL_DYNAMIC_COMPONENT) { + if ((process.env.NODE_ENV !== 'production') && !type) { + warn(`Invalid vnode type when creating vnode: ${type}.`); + } + type = Comment; + } + if (isVNode(type)) { + // createVNode receiving an existing vnode. This happens in cases like + // <component :is="vnode"/> + // #2078 make sure to merge refs during the clone instead of overwriting it + const cloned = cloneVNode(type, props, true /* mergeRef: true */); + if (children) { + normalizeChildren(cloned, children); + } + return cloned; + } + // class component normalization. + if (isClassComponent(type)) { + type = type.__vccOpts; + } + // class & style normalization. + if (props) { + // for reactive or proxy objects, we need to clone it to enable mutation. + if (isProxy(props) || InternalObjectKey in props) { + props = extend({}, props); + } + let { class: klass, style } = props; + if (klass && !isString(klass)) { + props.class = normalizeClass(klass); + } + if (isObject(style)) { + // reactive state objects need to be cloned since they are likely to be + // mutated + if (isProxy(style) && !isArray(style)) { + style = extend({}, style); + } + props.style = normalizeStyle(style); + } + } + // encode the vnode type information into a bitmap + const shapeFlag = isString(type) + ? 1 /* ELEMENT */ + : isTeleport(type) + ? 64 /* TELEPORT */ + : isObject(type) + ? 4 /* STATEFUL_COMPONENT */ + : isFunction(type) + ? 2 /* FUNCTIONAL_COMPONENT */ + : 0; + if ((process.env.NODE_ENV !== 'production') && shapeFlag & 4 /* STATEFUL_COMPONENT */ && isProxy(type)) { + type = toRaw(type); + warn(`Vue received a Component which was made a reactive object. This can ` + + `lead to unnecessary performance overhead, and should be avoided by ` + + `marking the component with \`markRaw\` or using \`shallowRef\` ` + + `instead of \`ref\`.`, `\nComponent that was made reactive: `, type); + } + const vnode = { + __v_isVNode: true, + ["__v_skip" /* SKIP */]: true, + type, + props, + key: props && normalizeKey(props), + ref: props && normalizeRef(props), + scopeId: currentScopeId, + slotScopeIds: null, + children: null, + component: null, + suspense: null, + ssContent: null, + ssFallback: null, + dirs: null, + transition: null, + el: null, + anchor: null, + target: null, + targetAnchor: null, + staticCount: 0, + shapeFlag, + patchFlag, + dynamicProps, + dynamicChildren: null, + appContext: null }; - let oldValue = isArray(source) ? [] : INITIAL_WATCHER_VALUE; - const job = () => { - if (!runner.active) { + // validate key + if ((process.env.NODE_ENV !== 'production') && vnode.key !== vnode.key) { + warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type); + } + normalizeChildren(vnode, children); + if (// avoid a block node from tracking itself + !isBlockNode && + // has current parent block + currentBlock && + // presence of a patch flag indicates this node needs patching on updates. + // component nodes also should always be patched, because even if the + // component doesn't need to update, it needs to persist the instance on to + // the next vnode so that it can be properly unmounted later. + (patchFlag > 0 || shapeFlag & 6 /* COMPONENT */) && + // the EVENTS flag is only for hydration and if it is the only flag, the + // vnode should not be considered dynamic due to handler caching. + patchFlag !== 32 /* HYDRATE_EVENTS */) { + currentBlock.push(vnode); + } + return vnode; +} +function cloneVNode(vnode, extraProps, mergeRef = false) { + // This is intentionally NOT using spread or extend to avoid the runtime + // key enumeration cost. + const { props, ref, patchFlag, children } = vnode; + const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props; + return { + __v_isVNode: true, + ["__v_skip" /* SKIP */]: true, + type: vnode.type, + props: mergedProps, + key: mergedProps && normalizeKey(mergedProps), + ref: extraProps && extraProps.ref + ? // #2078 in the case of <component :is="vnode" ref="extra"/> + // if the vnode itself already has a ref, cloneVNode will need to merge + // the refs so the single vnode can be set on multiple refs + mergeRef && ref + ? isArray(ref) + ? ref.concat(normalizeRef(extraProps)) + : [ref, normalizeRef(extraProps)] + : normalizeRef(extraProps) + : ref, + scopeId: vnode.scopeId, + slotScopeIds: vnode.slotScopeIds, + children: (process.env.NODE_ENV !== 'production') && patchFlag === -1 /* HOISTED */ && isArray(children) + ? children.map(deepCloneVNode) + : children, + target: vnode.target, + targetAnchor: vnode.targetAnchor, + staticCount: vnode.staticCount, + shapeFlag: vnode.shapeFlag, + // if the vnode is cloned with extra props, we can no longer assume its + // existing patch flag to be reliable and need to add the FULL_PROPS flag. + // note: perserve flag for fragments since they use the flag for children + // fast paths only. + patchFlag: extraProps && vnode.type !== Fragment + ? patchFlag === -1 // hoisted node + ? 16 /* FULL_PROPS */ + : patchFlag | 16 /* FULL_PROPS */ + : patchFlag, + dynamicProps: vnode.dynamicProps, + dynamicChildren: vnode.dynamicChildren, + appContext: vnode.appContext, + dirs: vnode.dirs, + transition: vnode.transition, + // These should technically only be non-null on mounted VNodes. However, + // they *should* be copied for kept-alive vnodes. So we just always copy + // them since them being non-null during a mount doesn't affect the logic as + // they will simply be overwritten. + component: vnode.component, + suspense: vnode.suspense, + ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), + ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), + el: vnode.el, + anchor: vnode.anchor + }; +} +/** + * Dev only, for HMR of hoisted vnodes reused in v-for + * https://github.com/vitejs/vite/issues/2022 + */ +function deepCloneVNode(vnode) { + const cloned = cloneVNode(vnode); + if (isArray(vnode.children)) { + cloned.children = vnode.children.map(deepCloneVNode); + } + return cloned; +} +/** + * @private + */ +function createTextVNode(text = ' ', flag = 0) { + return createVNode(Text, null, text, flag); +} +function normalizeChildren(vnode, children) { + let type = 0; + const { shapeFlag } = vnode; + if (children == null) { + children = null; + } + else if (isArray(children)) { + type = 16 /* ARRAY_CHILDREN */; + } + else if (typeof children === 'object') { + if (shapeFlag & 1 /* ELEMENT */ || shapeFlag & 64 /* TELEPORT */) { + // Normalize slot to plain children for plain element and Teleport + const slot = children.default; + if (slot) { + // _c marker is added by withCtx() indicating this is a compiled slot + slot._c && setCompiledSlotRendering(1); + normalizeChildren(vnode, slot()); + slot._c && setCompiledSlotRendering(-1); + } return; } - if (cb) { - // watch(source, cb) - const newValue = runner(); - if (deep || forceTrigger || hasChanged(newValue, oldValue)) { - // cleanup before running cb again - if (cleanup) { - cleanup(); + else { + type = 32 /* SLOTS_CHILDREN */; + const slotFlag = children._; + if (!slotFlag && !(InternalObjectKey in children)) { + children._ctx = currentRenderingInstance; + } + else if (slotFlag === 3 /* FORWARDED */ && currentRenderingInstance) { + // a child component receives forwarded slots from the parent. + // its slot type is determined by its parent's slot type. + if (currentRenderingInstance.vnode.patchFlag & 1024 /* DYNAMIC_SLOTS */) { + children._ = 2 /* DYNAMIC */; + vnode.patchFlag |= 1024 /* DYNAMIC_SLOTS */; + } + else { + children._ = 1 /* STABLE */; } - callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [ - newValue, - // pass undefined as the old value when it's changed for the first time - oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, - onInvalidate - ]); - oldValue = newValue; } } - else { - // watchEffect - runner(); - } - }; - // important: mark the job as a watcher callback so that scheduler knows - // it is allowed to self-trigger (#1727) - job.allowRecurse = !!cb; - let scheduler; - if (flush === 'sync') { - scheduler = job; } - else if (flush === 'post') { - scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); + else if (isFunction(children)) { + children = { default: children, _ctx: currentRenderingInstance }; + type = 32 /* SLOTS_CHILDREN */; } else { - // default: 'pre' - scheduler = () => { - if (!instance || instance.isMounted) { - queuePreFlushCb(job); - } - else { - // with 'pre' option, the first call must happen before - // the component is mounted so it is called synchronously. - job(); - } - }; - } - const runner = effect(getter, { - lazy: true, - onTrack, - onTrigger, - scheduler - }); - recordInstanceBoundEffect(runner, instance); - // initial run - if (cb) { - if (immediate) { - job(); + children = String(children); + // force teleport children to array so it can be moved around + if (shapeFlag & 64 /* TELEPORT */) { + type = 16 /* ARRAY_CHILDREN */; + children = [createTextVNode(children)]; } else { - oldValue = runner(); + type = 8 /* TEXT_CHILDREN */; } } - else if (flush === 'post') { - queuePostRenderEffect(runner, instance && instance.suspense); - } - else { - runner(); - } - return () => { - stop(runner); - if (instance) { - remove(instance.effects, runner); - } - }; -} -// this.$watch -function instanceWatch(source, cb, options) { - const publicThis = this.proxy; - const getter = isString(source) - ? () => publicThis[source] - : source.bind(publicThis); - return doWatch(getter, cb.bind(publicThis), options, this); + vnode.children = children; + vnode.shapeFlag |= type; } -function traverse(value, seen = new Set()) { - if (!isObject(value) || seen.has(value)) { - return value; - } - seen.add(value); - if (isRef(value)) { - traverse(value.value, seen); - } - else if (isArray(value)) { - for (let i = 0; i < value.length; i++) { - traverse(value[i], seen); - } - } - else if (isSet(value) || isMap(value)) { - value.forEach((v) => { - traverse(v, seen); - }); - } - else { - for (const key in value) { - traverse(value[key], seen); +function mergeProps(...args) { + const ret = extend({}, args[0]); + for (let i = 1; i < args.length; i++) { + const toMerge = args[i]; + for (const key in toMerge) { + if (key === 'class') { + if (ret.class !== toMerge.class) { + ret.class = normalizeClass([ret.class, toMerge.class]); + } + } + else if (key === 'style') { + ret.style = normalizeStyle([ret.style, toMerge.style]); + } + else if (isOn(key)) { + const existing = ret[key]; + const incoming = toMerge[key]; + if (existing !== incoming) { + ret[key] = existing + ? [].concat(existing, toMerge[key]) + : incoming; + } + } + else if (key !== '') { + ret[key] = toMerge[key]; + } } } - return value; + return ret; } function provide(key, value) { @@ -2338,7 +2665,19 @@ function applyOptions(instance, options, deferredData = [], deferredWatch = [], for (const key in methods) { const methodHandler = methods[key]; if (isFunction(methodHandler)) { - ctx[key] = methodHandler.bind(publicThis); + // In dev mode, we use the `createRenderContext` function to define methods to the proxy target, + // and those are read-only but reconfigurable, so it needs to be redefined here + if ((process.env.NODE_ENV !== 'production')) { + Object.defineProperty(ctx, key, { + value: methodHandler.bind(publicThis), + configurable: true, + enumerable: true, + writable: true + }); + } + else { + ctx[key] = methodHandler.bind(publicThis); + } if ((process.env.NODE_ENV !== 'production')) { checkDuplicateProperties("Methods" /* METHODS */, key); } @@ -2660,7 +2999,13 @@ function mergeOptions(to, from, instance) { * they exist in the internal parent chain. For code that relies on traversing * public $parent chains, skip functional ones and go to the parent instead. */ -const getPublicInstance = (i) => i && (i.proxy ? i.proxy : getPublicInstance(i.parent)); +const getPublicInstance = (i) => { + if (!i) + return null; + if (isStatefulComponent(i)) + return i.exposed ? i.exposed : i.proxy; + return getPublicInstance(i.parent); +}; const publicPropertiesMap = extend(Object.create(null), { $: i => i, $el: i => i.vnode.el, @@ -2670,7 +3015,7 @@ const publicPropertiesMap = extend(Object.create(null), { $slots: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.slots) : i.slots), $refs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.refs) : i.refs), $parent: i => getPublicInstance(i.parent), - $root: i => i.root && i.root.proxy, + $root: i => getPublicInstance(i.root), $emit: i => i.emit, $options: i => (__VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type), $forceUpdate: i => () => queueJob(i.update), @@ -2773,7 +3118,7 @@ const PublicInstanceProxyHandlers = { warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` + `character ("$" or "_") and is not proxied on the render context.`); } - else { + else if (instance === currentRenderingInstance) { warn(`Property ${JSON.stringify(key)} was accessed during render ` + `but is not defined on instance.`); } @@ -2787,7 +3132,7 @@ const PublicInstanceProxyHandlers = { else if (data !== EMPTY_OBJ && hasOwn(data, key)) { data[key] = value; } - else if (key in instance.props) { + else if (hasOwn(instance.props, key)) { (process.env.NODE_ENV !== 'production') && warn(`Attempting to mutate prop "${key}". Props are readonly.`, instance); return false; @@ -2986,7 +3331,6 @@ function createComponentInstance(vnode, parent, suspense) { } instance.root = parent ? parent.root : instance; instance.emit = emit.bind(null, instance); - if ((process.env.NODE_ENV !== 'production') || false) ; return instance; } let currentInstance = null; @@ -3001,11 +3345,14 @@ function validateComponentName(name, config) { warn('Do not use built-in or reserved HTML elements as component id: ' + name); } } +function isStatefulComponent(instance) { + return instance.vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */; +} let isInSSRComponentSetup = false; function setupComponent(instance, isSSR = false) { isInSSRComponentSetup = isSSR; - const { props, /* children, */ shapeFlag } = instance.vnode; - const isStateful = shapeFlag & 4 /* STATEFUL_COMPONENT */; + const { props /*, children*/ } = instance.vnode; + const isStateful = isStatefulComponent(instance); initProps(instance, props, isStateful, isSSR); // initSlots(instance, children) // fixed by xxxxxx const setupResult = isStateful @@ -3079,12 +3426,10 @@ function handleSetupResult(instance, setupResult, isSSR) { } } else if (isObject(setupResult)) { - // if ((process.env.NODE_ENV !== 'production') && isVNode(setupResult)) { - // warn( - // `setup() should not return VNodes directly - ` + - // `return a render function instead.` - // ) - // } + if ((process.env.NODE_ENV !== 'production') && isVNode(setupResult)) { + warn(`setup() should not return VNodes directly - ` + + `return a render function instead.`); + } // setup returned bindings. // assuming a render function compiled from template is present. if ((process.env.NODE_ENV !== 'production') || false) { @@ -3123,10 +3468,10 @@ function finishComponentSetup(instance, isSSR) { // warn missing template/render if ((process.env.NODE_ENV !== 'production') && !Component.render && instance.render === NOOP) { /* istanbul ignore if */ - if ( Component.template) { + if (Component.template) { warn(`Component provided template option but ` + `runtime compilation is not supported in this build of Vue.` + - ( ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` ) /* should not happen */); } else { @@ -3220,6 +3565,9 @@ function formatComponentName(instance, Component, isRoot = false) { instance.parent.type.components) || inferFromRegistry(instance.appContext.components); } return name ? classify(name) : isRoot ? `App` : `Anonymous`; +} +function isClassComponent(value) { + return isFunction(value) && '__vccOpts' in value; } function computed$1(getterOrOptions) { @@ -3248,7 +3596,7 @@ function defineEmit() { } // Core API ------------------------------------------------------------------ -const version = "3.0.5"; +const version = "3.0.7"; // import deepCopy from './deepCopy' /** diff --git a/packages/uni-mp-vue/lib/vue.runtime.esm.js b/packages/uni-mp-vue/lib/vue.runtime.esm.js index cda585f211b..5b1d0b1e96a 100644 --- a/packages/uni-mp-vue/lib/vue.runtime.esm.js +++ b/packages/uni-mp-vue/lib/vue.runtime.esm.js @@ -1,4 +1,4 @@ -import { EMPTY_OBJ, isArray, isMap, isIntegerKey, isSymbol, extend, hasOwn, isObject, hasChanged, capitalize, toRawType, def, isFunction, NOOP, isString, isPromise, toHandlerKey, toNumber, hyphenate, camelize, isOn, isReservedProp, EMPTY_ARR, makeMap, remove, NO, isSet, isGloballyWhitelisted, toTypeString, invokeArrayFns } from '@vue/shared'; +import { EMPTY_OBJ, isArray, isMap, isIntegerKey, isSymbol, extend, hasOwn, isObject, hasChanged, makeMap, capitalize, toRawType, def, isFunction, NOOP, isString, isPromise, toHandlerKey, toNumber, hyphenate, camelize, isOn, isReservedProp, EMPTY_ARR, remove, isSet, NO, normalizeClass, normalizeStyle, isGloballyWhitelisted, toTypeString, invokeArrayFns } from '@vue/shared'; export { camelize } from '@vue/shared'; const targetMap = new WeakMap(); @@ -190,6 +190,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) { effects.forEach(run); } +const isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`); const builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol) .map(key => Symbol[key]) .filter(isSymbol)); @@ -244,7 +245,7 @@ function createGetter(isReadonly = false, shallow = false) { const res = Reflect.get(target, key, receiver); if (isSymbol(key) ? builtInSymbols.has(key) - : key === `__proto__` || key === `__v_isRef`) { + : isNonTrackableKeys(key)) { return res; } if (!isReadonly) { @@ -393,8 +394,8 @@ function add(value) { const target = toRaw(this); const proto = getProto(target); const hadKey = proto.has.call(target, value); - target.add(value); if (!hadKey) { + target.add(value); trigger(target, "add" /* ADD */, value, value); } return this; @@ -1096,6 +1097,22 @@ function nextTick(fn) { const p = currentFlushPromise || resolvedPromise; return fn ? p.then(this ? fn.bind(this) : fn) : p; } +// #2768 +// Use binary-search to find a suitable position in the queue, +// so that the queue maintains the increasing order of job's id, +// which can prevent the job from being skipped and also can avoid repeated patching. +function findInsertionIndex(job) { + // the start index should be `flushIndex + 1` + let start = flushIndex + 1; + let end = queue.length; + const jobId = getId(job); + while (start < end) { + const middle = (start + end) >>> 1; + const middleJobId = getId(queue[middle]); + middleJobId < jobId ? (start = middle + 1) : (end = middle); + } + return start; +} function queueJob(job) { // the dedupe search uses the startIndex argument of Array.includes() // by default the search index includes the current job that is being run @@ -1106,7 +1123,13 @@ function queueJob(job) { if ((!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && job !== currentPreFlushParentJob) { - queue.push(job); + const pos = findInsertionIndex(job); + if (pos > -1) { + queue.splice(pos, 0, job); + } + else { + queue.push(job); + } queueFlush(); } } @@ -1358,63 +1381,17 @@ function isEmitListener(options, key) { hasOwn(options, key)); } +let isRenderingCompiledSlot = 0; +const setCompiledSlotRendering = (n) => (isRenderingCompiledSlot += n); + /** * mark the current rendering instance for asset resolution (e.g. * resolveComponent, resolveDirective) during render */ let currentRenderingInstance = null; -function markAttrsAccessed() { -} +let currentScopeId = null; -const COMPONENTS = 'components'; -const DIRECTIVES = 'directives'; -/** - * @private - */ -function resolveDirective(name) { - return resolveAsset(DIRECTIVES, name); -} -// implementation -function resolveAsset(type, name, warnMissing = true) { - const instance = currentInstance; - if (instance) { - const Component = instance.type; - // self name has highest priority - if (type === COMPONENTS) { - // special self referencing call generated by compiler - // inferred from SFC filename - if (name === `_self`) { - return Component; - } - const selfName = getComponentName(Component); - if (selfName && - (selfName === name || - selfName === camelize(name) || - selfName === capitalize(camelize(name)))) { - return Component; - } - } - const res = - // local registration - // check instance[type] first for components with mixin or extends. - resolve(instance[type] || Component[type], name) || - // global registration - resolve(instance.appContext[type], name); - if ((process.env.NODE_ENV !== 'production') && warnMissing && !res) { - warn(`Failed to resolve ${type.slice(0, -1)}: ${name}`); - } - return res; - } - else if ((process.env.NODE_ENV !== 'production')) { - warn(`resolve${capitalize(type.slice(0, -1))} ` + - `can only be used in render() or setup().`); - } -} -function resolve(registry, name) { - return (registry && - (registry[name] || - registry[camelize(name)] || - registry[capitalize(camelize(name))])); +function markAttrsAccessed() { } function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison @@ -1650,7 +1627,7 @@ function validateProp(name, value, prop, isAbsent) { warn('Invalid prop: custom validator check failed for prop "' + name + '".'); } } -const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol'); +const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol,BigInt'); /** * dev only */ @@ -1766,7 +1743,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) { warn(`${apiName} is called when there is no active component instance to be ` + `associated with. ` + `Lifecycle injection APIs can only be used during execution of setup().` + - ( ``)); + (``)); } } const createHook = (lifecycle) => (hook, target = currentInstance) => @@ -1784,6 +1761,211 @@ const onErrorCaptured = (hook, target = currentInstance) => { injectHook("ec" /* ERROR_CAPTURED */, hook, target); }; +// Simple effect. +function watchEffect(effect, options) { + return doWatch(effect, null, options); +} +// initial value for watchers to trigger on undefined initial values +const INITIAL_WATCHER_VALUE = {}; +// implementation +function watch(source, cb, options) { + if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) { + warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` + + `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` + + `supports \`watch(source, cb, options?) signature.`); + } + return doWatch(source, cb, options); +} +function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ, instance = currentInstance) { + if ((process.env.NODE_ENV !== 'production') && !cb) { + if (immediate !== undefined) { + warn(`watch() "immediate" option is only respected when using the ` + + `watch(source, callback, options?) signature.`); + } + if (deep !== undefined) { + warn(`watch() "deep" option is only respected when using the ` + + `watch(source, callback, options?) signature.`); + } + } + const warnInvalidSource = (s) => { + warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` + + `a reactive object, or an array of these types.`); + }; + let getter; + let forceTrigger = false; + if (isRef(source)) { + getter = () => source.value; + forceTrigger = !!source._shallow; + } + else if (isReactive(source)) { + getter = () => source; + deep = true; + } + else if (isArray(source)) { + getter = () => source.map(s => { + if (isRef(s)) { + return s.value; + } + else if (isReactive(s)) { + return traverse(s); + } + else if (isFunction(s)) { + return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */, [ + instance && instance.proxy + ]); + } + else { + (process.env.NODE_ENV !== 'production') && warnInvalidSource(s); + } + }); + } + else if (isFunction(source)) { + if (cb) { + // getter with cb + getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */, [ + instance && instance.proxy + ]); + } + else { + // no cb -> simple effect + getter = () => { + if (instance && instance.isUnmounted) { + return; + } + if (cleanup) { + cleanup(); + } + return callWithErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onInvalidate]); + }; + } + } + else { + getter = NOOP; + (process.env.NODE_ENV !== 'production') && warnInvalidSource(source); + } + if (cb && deep) { + const baseGetter = getter; + getter = () => traverse(baseGetter()); + } + let cleanup; + const onInvalidate = (fn) => { + cleanup = runner.options.onStop = () => { + callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */); + }; + }; + let oldValue = isArray(source) ? [] : INITIAL_WATCHER_VALUE; + const job = () => { + if (!runner.active) { + return; + } + if (cb) { + // watch(source, cb) + const newValue = runner(); + if (deep || forceTrigger || hasChanged(newValue, oldValue)) { + // cleanup before running cb again + if (cleanup) { + cleanup(); + } + callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [ + newValue, + // pass undefined as the old value when it's changed for the first time + oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, + onInvalidate + ]); + oldValue = newValue; + } + } + else { + // watchEffect + runner(); + } + }; + // important: mark the job as a watcher callback so that scheduler knows + // it is allowed to self-trigger (#1727) + job.allowRecurse = !!cb; + let scheduler; + if (flush === 'sync') { + scheduler = job; + } + else if (flush === 'post') { + scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); + } + else { + // default: 'pre' + scheduler = () => { + if (!instance || instance.isMounted) { + queuePreFlushCb(job); + } + else { + // with 'pre' option, the first call must happen before + // the component is mounted so it is called synchronously. + job(); + } + }; + } + const runner = effect(getter, { + lazy: true, + onTrack, + onTrigger, + scheduler + }); + recordInstanceBoundEffect(runner, instance); + // initial run + if (cb) { + if (immediate) { + job(); + } + else { + oldValue = runner(); + } + } + else if (flush === 'post') { + queuePostRenderEffect(runner, instance && instance.suspense); + } + else { + runner(); + } + return () => { + stop(runner); + if (instance) { + remove(instance.effects, runner); + } + }; +} +// this.$watch +function instanceWatch(source, cb, options) { + const publicThis = this.proxy; + const getter = isString(source) + ? () => publicThis[source] + : source.bind(publicThis); + return doWatch(getter, cb.bind(publicThis), options, this); +} +function traverse(value, seen = new Set()) { + if (!isObject(value) || seen.has(value)) { + return value; + } + seen.add(value); + if (isRef(value)) { + traverse(value.value, seen); + } + else if (isArray(value)) { + for (let i = 0; i < value.length; i++) { + traverse(value[i], seen); + } + } + else if (isSet(value) || isMap(value)) { + value.forEach((v) => { + traverse(v, seen); + }); + } + else { + for (const key in value) { + traverse(value[key], seen); + } + } + return value; +} + const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; function onActivated(hook, target) { registerKeepAliveHook(hook, "a" /* ACTIVATED */, target); @@ -1880,7 +2062,10 @@ function createAppContext() { } let uid$1 = 0; // fixed by xxxxxx -function createAppAPI() { +function createAppAPI( +// render: RootRenderFunction, +// hydrate?: RootHydrateFunction +) { return function createApp(rootComponent, rootProps = null) { if (rootProps != null && !isObject(rootProps)) { (process.env.NODE_ENV !== 'production') && warn(`root props passed to app.mount() must be an object.`); @@ -1993,207 +2178,349 @@ function defineComponent(options) { return isFunction(options) ? { setup: options, name: options.name } : options; } -const queuePostRenderEffect = queuePostFlushCb; +const queuePostRenderEffect = queuePostFlushCb; -// Simple effect. -function watchEffect(effect, options) { - return doWatch(effect, null, options); +const isTeleport = (type) => type.__isTeleport; + +const COMPONENTS = 'components'; +const DIRECTIVES = 'directives'; +const NULL_DYNAMIC_COMPONENT = Symbol(); +/** + * @private + */ +function resolveDirective(name) { + return resolveAsset(DIRECTIVES, name); } -// initial value for watchers to trigger on undefined initial values -const INITIAL_WATCHER_VALUE = {}; // implementation -function watch(source, cb, options) { - if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) { - warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` + - `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` + - `supports \`watch(source, cb, options?) signature.`); - } - return doWatch(source, cb, options); -} -function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ, instance = currentInstance) { - if ((process.env.NODE_ENV !== 'production') && !cb) { - if (immediate !== undefined) { - warn(`watch() "immediate" option is only respected when using the ` + - `watch(source, callback, options?) signature.`); - } - if (deep !== undefined) { - warn(`watch() "deep" option is only respected when using the ` + - `watch(source, callback, options?) signature.`); - } - } - const warnInvalidSource = (s) => { - warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` + - `a reactive object, or an array of these types.`); - }; - let getter; - let forceTrigger = false; - if (isRef(source)) { - getter = () => source.value; - forceTrigger = !!source._shallow; - } - else if (isReactive(source)) { - getter = () => source; - deep = true; - } - else if (isArray(source)) { - getter = () => source.map(s => { - if (isRef(s)) { - return s.value; - } - else if (isReactive(s)) { - return traverse(s); - } - else if (isFunction(s)) { - return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */); +function resolveAsset(type, name, warnMissing = true) { + const instance = currentInstance; + if (instance) { + const Component = instance.type; + // self name has highest priority + if (type === COMPONENTS) { + // special self referencing call generated by compiler + // inferred from SFC filename + if (name === `_self`) { + return Component; } - else { - (process.env.NODE_ENV !== 'production') && warnInvalidSource(s); + const selfName = getComponentName(Component); + if (selfName && + (selfName === name || + selfName === camelize(name) || + selfName === capitalize(camelize(name)))) { + return Component; } - }); - } - else if (isFunction(source)) { - if (cb) { - // getter with cb - getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */); } - else { - // no cb -> simple effect - getter = () => { - if (instance && instance.isUnmounted) { - return; - } - if (cleanup) { - cleanup(); - } - return callWithErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onInvalidate]); - }; + const res = + // local registration + // check instance[type] first for components with mixin or extends. + resolve(instance[type] || Component[type], name) || + // global registration + resolve(instance.appContext[type], name); + if ((process.env.NODE_ENV !== 'production') && warnMissing && !res) { + warn(`Failed to resolve ${type.slice(0, -1)}: ${name}`); } + return res; } - else { - getter = NOOP; - (process.env.NODE_ENV !== 'production') && warnInvalidSource(source); - } - if (cb && deep) { - const baseGetter = getter; - getter = () => traverse(baseGetter()); + else if ((process.env.NODE_ENV !== 'production')) { + warn(`resolve${capitalize(type.slice(0, -1))} ` + + `can only be used in render() or setup().`); } - let cleanup; - const onInvalidate = (fn) => { - cleanup = runner.options.onStop = () => { - callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */); - }; +} +function resolve(registry, name) { + return (registry && + (registry[name] || + registry[camelize(name)] || + registry[capitalize(camelize(name))])); +} + +const Fragment = Symbol((process.env.NODE_ENV !== 'production') ? 'Fragment' : undefined); +const Text = Symbol((process.env.NODE_ENV !== 'production') ? 'Text' : undefined); +const Comment = Symbol((process.env.NODE_ENV !== 'production') ? 'Comment' : undefined); +Symbol((process.env.NODE_ENV !== 'production') ? 'Static' : undefined); +let currentBlock = null; +function isVNode(value) { + return value ? value.__v_isVNode === true : false; +} +const createVNodeWithArgsTransform = (...args) => { + return _createVNode(...(args)); +}; +const InternalObjectKey = `__vInternal`; +const normalizeKey = ({ key }) => key != null ? key : null; +const normalizeRef = ({ ref }) => { + return (ref != null + ? isString(ref) || isRef(ref) || isFunction(ref) + ? { i: currentRenderingInstance, r: ref } + : ref + : null); +}; +const createVNode = ((process.env.NODE_ENV !== 'production') + ? createVNodeWithArgsTransform + : _createVNode); +function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { + if (!type || type === NULL_DYNAMIC_COMPONENT) { + if ((process.env.NODE_ENV !== 'production') && !type) { + warn(`Invalid vnode type when creating vnode: ${type}.`); + } + type = Comment; + } + if (isVNode(type)) { + // createVNode receiving an existing vnode. This happens in cases like + // <component :is="vnode"/> + // #2078 make sure to merge refs during the clone instead of overwriting it + const cloned = cloneVNode(type, props, true /* mergeRef: true */); + if (children) { + normalizeChildren(cloned, children); + } + return cloned; + } + // class component normalization. + if (isClassComponent(type)) { + type = type.__vccOpts; + } + // class & style normalization. + if (props) { + // for reactive or proxy objects, we need to clone it to enable mutation. + if (isProxy(props) || InternalObjectKey in props) { + props = extend({}, props); + } + let { class: klass, style } = props; + if (klass && !isString(klass)) { + props.class = normalizeClass(klass); + } + if (isObject(style)) { + // reactive state objects need to be cloned since they are likely to be + // mutated + if (isProxy(style) && !isArray(style)) { + style = extend({}, style); + } + props.style = normalizeStyle(style); + } + } + // encode the vnode type information into a bitmap + const shapeFlag = isString(type) + ? 1 /* ELEMENT */ + : isTeleport(type) + ? 64 /* TELEPORT */ + : isObject(type) + ? 4 /* STATEFUL_COMPONENT */ + : isFunction(type) + ? 2 /* FUNCTIONAL_COMPONENT */ + : 0; + if ((process.env.NODE_ENV !== 'production') && shapeFlag & 4 /* STATEFUL_COMPONENT */ && isProxy(type)) { + type = toRaw(type); + warn(`Vue received a Component which was made a reactive object. This can ` + + `lead to unnecessary performance overhead, and should be avoided by ` + + `marking the component with \`markRaw\` or using \`shallowRef\` ` + + `instead of \`ref\`.`, `\nComponent that was made reactive: `, type); + } + const vnode = { + __v_isVNode: true, + ["__v_skip" /* SKIP */]: true, + type, + props, + key: props && normalizeKey(props), + ref: props && normalizeRef(props), + scopeId: currentScopeId, + slotScopeIds: null, + children: null, + component: null, + suspense: null, + ssContent: null, + ssFallback: null, + dirs: null, + transition: null, + el: null, + anchor: null, + target: null, + targetAnchor: null, + staticCount: 0, + shapeFlag, + patchFlag, + dynamicProps, + dynamicChildren: null, + appContext: null }; - let oldValue = isArray(source) ? [] : INITIAL_WATCHER_VALUE; - const job = () => { - if (!runner.active) { + // validate key + if ((process.env.NODE_ENV !== 'production') && vnode.key !== vnode.key) { + warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type); + } + normalizeChildren(vnode, children); + if (// avoid a block node from tracking itself + !isBlockNode && + // has current parent block + currentBlock && + // presence of a patch flag indicates this node needs patching on updates. + // component nodes also should always be patched, because even if the + // component doesn't need to update, it needs to persist the instance on to + // the next vnode so that it can be properly unmounted later. + (patchFlag > 0 || shapeFlag & 6 /* COMPONENT */) && + // the EVENTS flag is only for hydration and if it is the only flag, the + // vnode should not be considered dynamic due to handler caching. + patchFlag !== 32 /* HYDRATE_EVENTS */) { + currentBlock.push(vnode); + } + return vnode; +} +function cloneVNode(vnode, extraProps, mergeRef = false) { + // This is intentionally NOT using spread or extend to avoid the runtime + // key enumeration cost. + const { props, ref, patchFlag, children } = vnode; + const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props; + return { + __v_isVNode: true, + ["__v_skip" /* SKIP */]: true, + type: vnode.type, + props: mergedProps, + key: mergedProps && normalizeKey(mergedProps), + ref: extraProps && extraProps.ref + ? // #2078 in the case of <component :is="vnode" ref="extra"/> + // if the vnode itself already has a ref, cloneVNode will need to merge + // the refs so the single vnode can be set on multiple refs + mergeRef && ref + ? isArray(ref) + ? ref.concat(normalizeRef(extraProps)) + : [ref, normalizeRef(extraProps)] + : normalizeRef(extraProps) + : ref, + scopeId: vnode.scopeId, + slotScopeIds: vnode.slotScopeIds, + children: (process.env.NODE_ENV !== 'production') && patchFlag === -1 /* HOISTED */ && isArray(children) + ? children.map(deepCloneVNode) + : children, + target: vnode.target, + targetAnchor: vnode.targetAnchor, + staticCount: vnode.staticCount, + shapeFlag: vnode.shapeFlag, + // if the vnode is cloned with extra props, we can no longer assume its + // existing patch flag to be reliable and need to add the FULL_PROPS flag. + // note: perserve flag for fragments since they use the flag for children + // fast paths only. + patchFlag: extraProps && vnode.type !== Fragment + ? patchFlag === -1 // hoisted node + ? 16 /* FULL_PROPS */ + : patchFlag | 16 /* FULL_PROPS */ + : patchFlag, + dynamicProps: vnode.dynamicProps, + dynamicChildren: vnode.dynamicChildren, + appContext: vnode.appContext, + dirs: vnode.dirs, + transition: vnode.transition, + // These should technically only be non-null on mounted VNodes. However, + // they *should* be copied for kept-alive vnodes. So we just always copy + // them since them being non-null during a mount doesn't affect the logic as + // they will simply be overwritten. + component: vnode.component, + suspense: vnode.suspense, + ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), + ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), + el: vnode.el, + anchor: vnode.anchor + }; +} +/** + * Dev only, for HMR of hoisted vnodes reused in v-for + * https://github.com/vitejs/vite/issues/2022 + */ +function deepCloneVNode(vnode) { + const cloned = cloneVNode(vnode); + if (isArray(vnode.children)) { + cloned.children = vnode.children.map(deepCloneVNode); + } + return cloned; +} +/** + * @private + */ +function createTextVNode(text = ' ', flag = 0) { + return createVNode(Text, null, text, flag); +} +function normalizeChildren(vnode, children) { + let type = 0; + const { shapeFlag } = vnode; + if (children == null) { + children = null; + } + else if (isArray(children)) { + type = 16 /* ARRAY_CHILDREN */; + } + else if (typeof children === 'object') { + if (shapeFlag & 1 /* ELEMENT */ || shapeFlag & 64 /* TELEPORT */) { + // Normalize slot to plain children for plain element and Teleport + const slot = children.default; + if (slot) { + // _c marker is added by withCtx() indicating this is a compiled slot + slot._c && setCompiledSlotRendering(1); + normalizeChildren(vnode, slot()); + slot._c && setCompiledSlotRendering(-1); + } return; } - if (cb) { - // watch(source, cb) - const newValue = runner(); - if (deep || forceTrigger || hasChanged(newValue, oldValue)) { - // cleanup before running cb again - if (cleanup) { - cleanup(); + else { + type = 32 /* SLOTS_CHILDREN */; + const slotFlag = children._; + if (!slotFlag && !(InternalObjectKey in children)) { + children._ctx = currentRenderingInstance; + } + else if (slotFlag === 3 /* FORWARDED */ && currentRenderingInstance) { + // a child component receives forwarded slots from the parent. + // its slot type is determined by its parent's slot type. + if (currentRenderingInstance.vnode.patchFlag & 1024 /* DYNAMIC_SLOTS */) { + children._ = 2 /* DYNAMIC */; + vnode.patchFlag |= 1024 /* DYNAMIC_SLOTS */; + } + else { + children._ = 1 /* STABLE */; } - callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [ - newValue, - // pass undefined as the old value when it's changed for the first time - oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, - onInvalidate - ]); - oldValue = newValue; } } - else { - // watchEffect - runner(); - } - }; - // important: mark the job as a watcher callback so that scheduler knows - // it is allowed to self-trigger (#1727) - job.allowRecurse = !!cb; - let scheduler; - if (flush === 'sync') { - scheduler = job; } - else if (flush === 'post') { - scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); + else if (isFunction(children)) { + children = { default: children, _ctx: currentRenderingInstance }; + type = 32 /* SLOTS_CHILDREN */; } else { - // default: 'pre' - scheduler = () => { - if (!instance || instance.isMounted) { - queuePreFlushCb(job); - } - else { - // with 'pre' option, the first call must happen before - // the component is mounted so it is called synchronously. - job(); - } - }; - } - const runner = effect(getter, { - lazy: true, - onTrack, - onTrigger, - scheduler - }); - recordInstanceBoundEffect(runner, instance); - // initial run - if (cb) { - if (immediate) { - job(); + children = String(children); + // force teleport children to array so it can be moved around + if (shapeFlag & 64 /* TELEPORT */) { + type = 16 /* ARRAY_CHILDREN */; + children = [createTextVNode(children)]; } else { - oldValue = runner(); + type = 8 /* TEXT_CHILDREN */; } } - else if (flush === 'post') { - queuePostRenderEffect(runner, instance && instance.suspense); - } - else { - runner(); - } - return () => { - stop(runner); - if (instance) { - remove(instance.effects, runner); - } - }; -} -// this.$watch -function instanceWatch(source, cb, options) { - const publicThis = this.proxy; - const getter = isString(source) - ? () => publicThis[source] - : source.bind(publicThis); - return doWatch(getter, cb.bind(publicThis), options, this); + vnode.children = children; + vnode.shapeFlag |= type; } -function traverse(value, seen = new Set()) { - if (!isObject(value) || seen.has(value)) { - return value; - } - seen.add(value); - if (isRef(value)) { - traverse(value.value, seen); - } - else if (isArray(value)) { - for (let i = 0; i < value.length; i++) { - traverse(value[i], seen); - } - } - else if (isSet(value) || isMap(value)) { - value.forEach((v) => { - traverse(v, seen); - }); - } - else { - for (const key in value) { - traverse(value[key], seen); +function mergeProps(...args) { + const ret = extend({}, args[0]); + for (let i = 1; i < args.length; i++) { + const toMerge = args[i]; + for (const key in toMerge) { + if (key === 'class') { + if (ret.class !== toMerge.class) { + ret.class = normalizeClass([ret.class, toMerge.class]); + } + } + else if (key === 'style') { + ret.style = normalizeStyle([ret.style, toMerge.style]); + } + else if (isOn(key)) { + const existing = ret[key]; + const incoming = toMerge[key]; + if (existing !== incoming) { + ret[key] = existing + ? [].concat(existing, toMerge[key]) + : incoming; + } + } + else if (key !== '') { + ret[key] = toMerge[key]; + } } } - return value; + return ret; } function provide(key, value) { @@ -2338,7 +2665,19 @@ function applyOptions(instance, options, deferredData = [], deferredWatch = [], for (const key in methods) { const methodHandler = methods[key]; if (isFunction(methodHandler)) { - ctx[key] = methodHandler.bind(publicThis); + // In dev mode, we use the `createRenderContext` function to define methods to the proxy target, + // and those are read-only but reconfigurable, so it needs to be redefined here + if ((process.env.NODE_ENV !== 'production')) { + Object.defineProperty(ctx, key, { + value: methodHandler.bind(publicThis), + configurable: true, + enumerable: true, + writable: true + }); + } + else { + ctx[key] = methodHandler.bind(publicThis); + } if ((process.env.NODE_ENV !== 'production')) { checkDuplicateProperties("Methods" /* METHODS */, key); } @@ -2660,7 +2999,13 @@ function mergeOptions(to, from, instance) { * they exist in the internal parent chain. For code that relies on traversing * public $parent chains, skip functional ones and go to the parent instead. */ -const getPublicInstance = (i) => i && (i.proxy ? i.proxy : getPublicInstance(i.parent)); +const getPublicInstance = (i) => { + if (!i) + return null; + if (isStatefulComponent(i)) + return i.exposed ? i.exposed : i.proxy; + return getPublicInstance(i.parent); +}; const publicPropertiesMap = extend(Object.create(null), { $: i => i, $el: i => i.vnode.el, @@ -2670,7 +3015,7 @@ const publicPropertiesMap = extend(Object.create(null), { $slots: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.slots) : i.slots), $refs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.refs) : i.refs), $parent: i => getPublicInstance(i.parent), - $root: i => i.root && i.root.proxy, + $root: i => getPublicInstance(i.root), $emit: i => i.emit, $options: i => (__VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type), $forceUpdate: i => () => queueJob(i.update), @@ -2773,7 +3118,7 @@ const PublicInstanceProxyHandlers = { warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` + `character ("$" or "_") and is not proxied on the render context.`); } - else { + else if (instance === currentRenderingInstance) { warn(`Property ${JSON.stringify(key)} was accessed during render ` + `but is not defined on instance.`); } @@ -2787,7 +3132,7 @@ const PublicInstanceProxyHandlers = { else if (data !== EMPTY_OBJ && hasOwn(data, key)) { data[key] = value; } - else if (key in instance.props) { + else if (hasOwn(instance.props, key)) { (process.env.NODE_ENV !== 'production') && warn(`Attempting to mutate prop "${key}". Props are readonly.`, instance); return false; @@ -2986,7 +3331,6 @@ function createComponentInstance(vnode, parent, suspense) { } instance.root = parent ? parent.root : instance; instance.emit = emit.bind(null, instance); - if ((process.env.NODE_ENV !== 'production') || false) ; return instance; } let currentInstance = null; @@ -3001,11 +3345,14 @@ function validateComponentName(name, config) { warn('Do not use built-in or reserved HTML elements as component id: ' + name); } } +function isStatefulComponent(instance) { + return instance.vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */; +} let isInSSRComponentSetup = false; function setupComponent(instance, isSSR = false) { isInSSRComponentSetup = isSSR; - const { props, /* children, */ shapeFlag } = instance.vnode; - const isStateful = shapeFlag & 4 /* STATEFUL_COMPONENT */; + const { props /*, children*/ } = instance.vnode; + const isStateful = isStatefulComponent(instance); initProps(instance, props, isStateful, isSSR); // initSlots(instance, children) // fixed by xxxxxx const setupResult = isStateful @@ -3079,12 +3426,10 @@ function handleSetupResult(instance, setupResult, isSSR) { } } else if (isObject(setupResult)) { - // if ((process.env.NODE_ENV !== 'production') && isVNode(setupResult)) { - // warn( - // `setup() should not return VNodes directly - ` + - // `return a render function instead.` - // ) - // } + if ((process.env.NODE_ENV !== 'production') && isVNode(setupResult)) { + warn(`setup() should not return VNodes directly - ` + + `return a render function instead.`); + } // setup returned bindings. // assuming a render function compiled from template is present. if ((process.env.NODE_ENV !== 'production') || false) { @@ -3123,10 +3468,10 @@ function finishComponentSetup(instance, isSSR) { // warn missing template/render if ((process.env.NODE_ENV !== 'production') && !Component.render && instance.render === NOOP) { /* istanbul ignore if */ - if ( Component.template) { + if (Component.template) { warn(`Component provided template option but ` + `runtime compilation is not supported in this build of Vue.` + - ( ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` ) /* should not happen */); } else { @@ -3220,6 +3565,9 @@ function formatComponentName(instance, Component, isRoot = false) { instance.parent.type.components) || inferFromRegistry(instance.appContext.components); } return name ? classify(name) : isRoot ? `App` : `Anonymous`; +} +function isClassComponent(value) { + return isFunction(value) && '__vccOpts' in value; } function computed$1(getterOrOptions) { @@ -3248,7 +3596,7 @@ function defineEmit() { } // Core API ------------------------------------------------------------------ -const version = "3.0.5"; +const version = "3.0.7"; // import deepCopy from './deepCopy' /**
c330c956ff17f8a62bb47629d2034ab5cfdcf97c
2024-11-16 09:26:42
zhenyuWang
fix(x-ios): 修复 dialogPage 侧滑导致父页面关闭问题
false
修复 dialogPage 侧滑导致父页面关闭问题
fix
diff --git a/packages/uni-app-plus/src/x/framework/page/register.ts b/packages/uni-app-plus/src/x/framework/page/register.ts index 6f6ea366aa5..f6af5acd0c5 100644 --- a/packages/uni-app-plus/src/x/framework/page/register.ts +++ b/packages/uni-app-plus/src/x/framework/page/register.ts @@ -29,6 +29,7 @@ import { getAppThemeFallbackOS, normalizePageStyles } from '../theme' import { invokePageReadyHooks } from '../../api/route/performance' import { homeDialogPages, homeSystemDialogPages } from './dialogPage' import type { UniDialogPage } from '@dcloudio/uni-app-x/types/page' +import { closeDialogPage } from '../../api' type PageNodeOptions = {} @@ -304,14 +305,7 @@ export function registerDialogPage( // invokeHook(page, ON_SHOW) // }) nativePage.addPageEventListener(ON_POP_GESTURE, function (e) { - uni.navigateBack({ - from: 'popGesture', - fail(e) { - if (e.errMsg.endsWith('cancel')) { - nativePage.show() - } - }, - } as UniApp.NavigateBackOptions) + closeDialogPage({ dialogPage }) }) nativePage.addPageEventListener(ON_UNLOAD, (_) => { invokeHook(page, ON_UNLOAD)
567b6c0743742dc35fc2137292a0f78de641d528
2022-06-06 17:20:04
fxy060608
chore(push): update gtpush
false
update gtpush
chore
diff --git a/packages/uni-push/dist/uni-push.es.js b/packages/uni-push/dist/uni-push.es.js index f2b8f3b68d0..6b8ec3148a1 100644 --- a/packages/uni-push/dist/uni-push.es.js +++ b/packages/uni-push/dist/uni-push.es.js @@ -10,7 +10,7 @@ function createCommonjsModule(fn) { /*! For license information please see gtpush-min.js.LICENSE.txt */ var gtpushMin = createCommonjsModule(function (module, exports) { -(function t(e,r){module.exports=r();})(self,(()=>(()=>{var t={4736:(t,e,r)=>{t=r.nmd(t);var i;var n=function(t){var e=1e7,r=7,i=9007199254740992,s=d(i),a="0123456789abcdefghijklmnopqrstuvwxyz";var o="function"===typeof BigInt;function u(t,e,r,i){if("undefined"===typeof t)return u[0];if("undefined"!==typeof e)return 10===+e&&!r?st(t):X(t,e,r,i);return st(t)}function c(t,e){this.value=t;this.sign=e;this.isSmall=false;}c.prototype=Object.create(u.prototype);function l(t){this.value=t;this.sign=t<0;this.isSmall=true;}l.prototype=Object.create(u.prototype);function f(t){this.value=t;}f.prototype=Object.create(u.prototype);function h(t){return -i<t&&t<i}function d(t){if(t<1e7)return [t];if(t<1e14)return [t%1e7,Math.floor(t/1e7)];return [t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function p(t){v(t);var r=t.length;if(r<4&&N(t,s)<0)switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*e;default:return t[0]+(t[1]+t[2]*e)*e}return t}function v(t){var e=t.length;while(0===t[--e]);t.length=e+1;}function g(t){var e=new Array(t);var r=-1;while(++r<t)e[r]=0;return e}function y(t){if(t>0)return Math.floor(t);return Math.ceil(t)}function m(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(c=0;c<n;c++){u=t[c]+r[c]+a;a=u>=o?1:0;s[c]=u-a*o;}while(c<i){u=t[c]+a;a=u===o?1:0;s[c++]=u-a*o;}if(a>0)s.push(a);return s}function _(t,e){if(t.length>=e.length)return m(t,e);return m(e,t)}function w(t,r){var i=t.length,n=new Array(i),s=e,a,o;for(o=0;o<i;o++){a=t[o]-s+r;r=Math.floor(a/s);n[o]=a-r*s;r+=1;}while(r>0){n[o++]=r%s;r=Math.floor(r/s);}return n}c.prototype.add=function(t){var e=st(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,i=e.value;if(e.isSmall)return new c(w(r,Math.abs(i)),this.sign);return new c(_(r,i),this.sign)};c.prototype.plus=c.prototype.add;l.prototype.add=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var i=e.value;if(e.isSmall){if(h(r+i))return new l(r+i);i=d(Math.abs(i));}return new c(w(i,Math.abs(r)),r<0)};l.prototype.plus=l.prototype.add;f.prototype.add=function(t){return new f(this.value+st(t).value)};f.prototype.plus=f.prototype.add;function S(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(u=0;u<n;u++){c=t[u]-a-r[u];if(c<0){c+=o;a=1;}else a=0;s[u]=c;}for(u=n;u<i;u++){c=t[u]-a;if(c<0)c+=o;else {s[u++]=c;break}s[u]=c;}for(;u<i;u++)s[u]=t[u];v(s);return s}function b(t,e,r){var i;if(N(t,e)>=0)i=S(t,e);else {i=S(e,t);r=!r;}i=p(i);if("number"===typeof i){if(r)i=-i;return new l(i)}return new c(i,r)}function E(t,r,i){var n=t.length,s=new Array(n),a=-r,o=e,u,f;for(u=0;u<n;u++){f=t[u]+a;a=Math.floor(f/o);f%=o;s[u]=f<0?f+o:f;}s=p(s);if("number"===typeof s){if(i)s=-s;return new l(s)}return new c(s,i)}c.prototype.subtract=function(t){var e=st(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,i=e.value;if(e.isSmall)return E(r,Math.abs(i),this.sign);return b(r,i,this.sign)};c.prototype.minus=c.prototype.subtract;l.prototype.subtract=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.add(e.negate());var i=e.value;if(e.isSmall)return new l(r-i);return E(i,Math.abs(r),r>=0)};l.prototype.minus=l.prototype.subtract;f.prototype.subtract=function(t){return new f(this.value-st(t).value)};f.prototype.minus=f.prototype.subtract;c.prototype.negate=function(){return new c(this.value,!this.sign)};l.prototype.negate=function(){var t=this.sign;var e=new l(-this.value);e.sign=!t;return e};f.prototype.negate=function(){return new f(-this.value)};c.prototype.abs=function(){return new c(this.value,false)};l.prototype.abs=function(){return new l(Math.abs(this.value))};f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)};function D(t,r){var i=t.length,n=r.length,s=i+n,a=g(s),o=e,u,c,l,f,h;for(l=0;l<i;++l){f=t[l];for(var d=0;d<n;++d){h=r[d];u=f*h+a[l+d];c=Math.floor(u/o);a[l+d]=u-c*o;a[l+d+1]+=c;}}v(a);return a}function T(t,r){var i=t.length,n=new Array(i),s=e,a=0,o,u;for(u=0;u<i;u++){o=t[u]*r+a;a=Math.floor(o/s);n[u]=o-a*s;}while(a>0){n[u++]=a%s;a=Math.floor(a/s);}return n}function M(t,e){var r=[];while(e-- >0)r.push(0);return r.concat(t)}function I(t,e){var r=Math.max(t.length,e.length);if(r<=30)return D(t,e);r=Math.ceil(r/2);var i=t.slice(r),n=t.slice(0,r),s=e.slice(r),a=e.slice(0,r);var o=I(n,a),u=I(i,s),c=I(_(n,i),_(a,s));var l=_(_(o,M(S(S(c,o),u),r)),M(u,2*r));v(l);return l}function A(t,e){return -.012*t-.012*e+15e-6*t*e>0}c.prototype.multiply=function(t){var r=st(t),i=this.value,n=r.value,s=this.sign!==r.sign,a;if(r.isSmall){if(0===n)return u[0];if(1===n)return this;if(-1===n)return this.negate();a=Math.abs(n);if(a<e)return new c(T(i,a),s);n=d(a);}if(A(i.length,n.length))return new c(I(i,n),s);return new c(D(i,n),s)};c.prototype.times=c.prototype.multiply;function x(t,r,i){if(t<e)return new c(T(r,t),i);return new c(D(r,d(t)),i)}l.prototype._multiplyBySmall=function(t){if(h(t.value*this.value))return new l(t.value*this.value);return x(Math.abs(t.value),d(Math.abs(this.value)),this.sign!==t.sign)};c.prototype._multiplyBySmall=function(t){if(0===t.value)return u[0];if(1===t.value)return this;if(-1===t.value)return this.negate();return x(Math.abs(t.value),this.value,this.sign!==t.sign)};l.prototype.multiply=function(t){return st(t)._multiplyBySmall(this)};l.prototype.times=l.prototype.multiply;f.prototype.multiply=function(t){return new f(this.value*st(t).value)};f.prototype.times=f.prototype.multiply;function R(t){var r=t.length,i=g(r+r),n=e,s,a,o,u,c;for(o=0;o<r;o++){u=t[o];a=0-u*u;for(var l=o;l<r;l++){c=t[l];s=2*(u*c)+i[o+l]+a;a=Math.floor(s/n);i[o+l]=s-a*n;}i[o+r]=a;}v(i);return i}c.prototype.square=function(){return new c(R(this.value),false)};l.prototype.square=function(){var t=this.value*this.value;if(h(t))return new l(t);return new c(R(d(Math.abs(this.value))),false)};f.prototype.square=function(t){return new f(this.value*this.value)};function B(t,r){var i=t.length,n=r.length,s=e,a=g(r.length),o=r[n-1],u=Math.ceil(s/(2*o)),c=T(t,u),l=T(r,u),f,h,d,v,y,m,_;if(c.length<=i)c.push(0);l.push(0);o=l[n-1];for(h=i-n;h>=0;h--){f=s-1;if(c[h+n]!==o)f=Math.floor((c[h+n]*s+c[h+n-1])/o);d=0;v=0;m=l.length;for(y=0;y<m;y++){d+=f*l[y];_=Math.floor(d/s);v+=c[h+y]-(d-_*s);d=_;if(v<0){c[h+y]=v+s;v=-1;}else {c[h+y]=v;v=0;}}while(0!==v){f-=1;d=0;for(y=0;y<m;y++){d+=c[h+y]-s+l[y];if(d<0){c[h+y]=d+s;d=0;}else {c[h+y]=d;d=1;}}v+=d;}a[h]=f;}c=k(c,u)[0];return [p(a),p(c)]}function O(t,r){var i=t.length,n=r.length,s=[],a=[],o=e,u,c,l,f,h;while(i){a.unshift(t[--i]);v(a);if(N(a,r)<0){s.push(0);continue}c=a.length;l=a[c-1]*o+a[c-2];f=r[n-1]*o+r[n-2];if(c>n)l=(l+1)*o;u=Math.ceil(l/f);do{h=T(r,u);if(N(h,a)<=0)break;u--;}while(u);s.push(u);a=S(a,h);}s.reverse();return [p(s),p(a)]}function k(t,r){var i=t.length,n=g(i),s=e,a,o,u,c;u=0;for(a=i-1;a>=0;--a){c=u*s+t[a];o=y(c/r);u=c-o*r;n[a]=0|o;}return [n,0|u]}function C(t,r){var i,n=st(r);if(o)return [new f(t.value/n.value),new f(t.value%n.value)];var s=t.value,a=n.value;var h;if(0===a)throw new Error("Cannot divide by zero");if(t.isSmall){if(n.isSmall)return [new l(y(s/a)),new l(s%a)];return [u[0],t]}if(n.isSmall){if(1===a)return [t,u[0]];if(-1==a)return [t.negate(),u[0]];var v=Math.abs(a);if(v<e){i=k(s,v);h=p(i[0]);var g=i[1];if(t.sign)g=-g;if("number"===typeof h){if(t.sign!==n.sign)h=-h;return [new l(h),new l(g)]}return [new c(h,t.sign!==n.sign),new l(g)]}a=d(v);}var m=N(s,a);if(-1===m)return [u[0],t];if(0===m)return [u[t.sign===n.sign?1:-1],u[0]];if(s.length+a.length<=200)i=B(s,a);else i=O(s,a);h=i[0];var _=t.sign!==n.sign,w=i[1],S=t.sign;if("number"===typeof h){if(_)h=-h;h=new l(h);}else h=new c(h,_);if("number"===typeof w){if(S)w=-w;w=new l(w);}else w=new c(w,S);return [h,w]}c.prototype.divmod=function(t){var e=C(this,t);return {quotient:e[0],remainder:e[1]}};f.prototype.divmod=l.prototype.divmod=c.prototype.divmod;c.prototype.divide=function(t){return C(this,t)[0]};f.prototype.over=f.prototype.divide=function(t){return new f(this.value/st(t).value)};l.prototype.over=l.prototype.divide=c.prototype.over=c.prototype.divide;c.prototype.mod=function(t){return C(this,t)[1]};f.prototype.mod=f.prototype.remainder=function(t){return new f(this.value%st(t).value)};l.prototype.remainder=l.prototype.mod=c.prototype.remainder=c.prototype.mod;c.prototype.pow=function(t){var e=st(t),r=this.value,i=e.value,n,s,a;if(0===i)return u[1];if(0===r)return u[0];if(1===r)return u[1];if(-1===r)return e.isEven()?u[1]:u[-1];if(e.sign)return u[0];if(!e.isSmall)throw new Error("The exponent "+e.toString()+" is too large.");if(this.isSmall)if(h(n=Math.pow(r,i)))return new l(y(n));s=this;a=u[1];while(true){if(i&1===1){a=a.times(s);--i;}if(0===i)break;i/=2;s=s.square();}return a};l.prototype.pow=c.prototype.pow;f.prototype.pow=function(t){var e=st(t);var r=this.value,i=e.value;var n=BigInt(0),s=BigInt(1),a=BigInt(2);if(i===n)return u[1];if(r===n)return u[0];if(r===s)return u[1];if(r===BigInt(-1))return e.isEven()?u[1]:u[-1];if(e.isNegative())return new f(n);var o=this;var c=u[1];while(true){if((i&s)===s){c=c.times(o);--i;}if(i===n)break;i/=a;o=o.square();}return c};c.prototype.modPow=function(t,e){t=st(t);e=st(e);if(e.isZero())throw new Error("Cannot take modPow with modulus 0");var r=u[1],i=this.mod(e);if(t.isNegative()){t=t.multiply(u[-1]);i=i.modInv(e);}while(t.isPositive()){if(i.isZero())return u[0];if(t.isOdd())r=r.multiply(i).mod(e);t=t.divide(2);i=i.square().mod(e);}return r};f.prototype.modPow=l.prototype.modPow=c.prototype.modPow;function N(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}c.prototype.compareAbs=function(t){var e=st(t),r=this.value,i=e.value;if(e.isSmall)return 1;return N(r,i)};l.prototype.compareAbs=function(t){var e=st(t),r=Math.abs(this.value),i=e.value;if(e.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return -1};f.prototype.compareAbs=function(t){var e=this.value;var r=st(t).value;e=e>=0?e:-e;r=r>=0?r:-r;return e===r?0:e>r?1:-1};c.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(this.sign!==e.sign)return e.sign?1:-1;if(e.isSmall)return this.sign?-1:1;return N(r,i)*(this.sign?-1:1)};c.prototype.compareTo=c.prototype.compare;l.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(e.isSmall)return r==i?0:r>i?1:-1;if(r<0!==e.sign)return r<0?-1:1;return r<0?1:-1};l.prototype.compareTo=l.prototype.compare;f.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=this.value;var r=st(t).value;return e===r?0:e>r?1:-1};f.prototype.compareTo=f.prototype.compare;c.prototype.equals=function(t){return 0===this.compare(t)};f.prototype.eq=f.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals;c.prototype.notEquals=function(t){return 0!==this.compare(t)};f.prototype.neq=f.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals;c.prototype.greater=function(t){return this.compare(t)>0};f.prototype.gt=f.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater;c.prototype.lesser=function(t){return this.compare(t)<0};f.prototype.lt=f.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser;c.prototype.greaterOrEquals=function(t){return this.compare(t)>=0};f.prototype.geq=f.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals;c.prototype.lesserOrEquals=function(t){return this.compare(t)<=0};f.prototype.leq=f.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals;c.prototype.isEven=function(){return 0===(1&this.value[0])};l.prototype.isEven=function(){return 0===(1&this.value)};f.prototype.isEven=function(){return (this.value&BigInt(1))===BigInt(0)};c.prototype.isOdd=function(){return 1===(1&this.value[0])};l.prototype.isOdd=function(){return 1===(1&this.value)};f.prototype.isOdd=function(){return (this.value&BigInt(1))===BigInt(1)};c.prototype.isPositive=function(){return !this.sign};l.prototype.isPositive=function(){return this.value>0};f.prototype.isPositive=l.prototype.isPositive;c.prototype.isNegative=function(){return this.sign};l.prototype.isNegative=function(){return this.value<0};f.prototype.isNegative=l.prototype.isNegative;c.prototype.isUnit=function(){return false};l.prototype.isUnit=function(){return 1===Math.abs(this.value)};f.prototype.isUnit=function(){return this.abs().value===BigInt(1)};c.prototype.isZero=function(){return false};l.prototype.isZero=function(){return 0===this.value};f.prototype.isZero=function(){return this.value===BigInt(0)};c.prototype.isDivisibleBy=function(t){var e=st(t);if(e.isZero())return false;if(e.isUnit())return true;if(0===e.compareAbs(2))return this.isEven();return this.mod(e).isZero()};f.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function P(t){var e=t.abs();if(e.isUnit())return false;if(e.equals(2)||e.equals(3)||e.equals(5))return true;if(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))return false;if(e.lesser(49))return true}function V(t,e){var r=t.prev(),i=r,s=0,a,u,c;while(i.isEven())i=i.divide(2),s++;t:for(u=0;u<e.length;u++){if(t.lesser(e[u]))continue;c=n(e[u]).modPow(i,t);if(c.isUnit()||c.equals(r))continue;for(a=s-1;0!=a;a--){c=c.square().mod(t);if(c.isUnit())return false;if(c.equals(r))continue t}return false}return true}c.prototype.isPrime=function(e){var r=P(this);if(r!==t)return r;var i=this.abs();var s=i.bitLength();if(s<=64)return V(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var a=Math.log(2)*s.toJSNumber();var o=Math.ceil(true===e?2*Math.pow(a,2):a);for(var u=[],c=0;c<o;c++)u.push(n(c+2));return V(i,u)};f.prototype.isPrime=l.prototype.isPrime=c.prototype.isPrime;c.prototype.isProbablePrime=function(e,r){var i=P(this);if(i!==t)return i;var s=this.abs();var a=e===t?5:e;for(var o=[],u=0;u<a;u++)o.push(n.randBetween(2,s.minus(2),r));return V(s,o)};f.prototype.isProbablePrime=l.prototype.isProbablePrime=c.prototype.isProbablePrime;c.prototype.modInv=function(t){var e=n.zero,r=n.one,i=st(t),s=this.abs(),a,o,u;while(!s.isZero()){a=i.divide(s);o=e;u=i;e=r;i=s;r=o.subtract(a.multiply(r));s=u.subtract(a.multiply(s));}if(!i.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");if(-1===e.compare(0))e=e.add(t);if(this.isNegative())return e.negate();return e};f.prototype.modInv=l.prototype.modInv=c.prototype.modInv;c.prototype.next=function(){var t=this.value;if(this.sign)return E(t,1,this.sign);return new c(w(t,1),this.sign)};l.prototype.next=function(){var t=this.value;if(t+1<i)return new l(t+1);return new c(s,false)};f.prototype.next=function(){return new f(this.value+BigInt(1))};c.prototype.prev=function(){var t=this.value;if(this.sign)return new c(w(t,1),true);return E(t,1,this.sign)};l.prototype.prev=function(){var t=this.value;if(t-1>-i)return new l(t-1);return new c(s,true)};f.prototype.prev=function(){return new f(this.value-BigInt(1))};var L=[1];while(2*L[L.length-1]<=e)L.push(2*L[L.length-1]);var H=L.length,U=L[H-1];function j(t){return Math.abs(t)<=e}c.prototype.shiftLeft=function(t){var e=st(t).toJSNumber();if(!j(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;while(e>=H){r=r.multiply(U);e-=H-1;}return r.multiply(L[e])};f.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft;c.prototype.shiftRight=function(t){var e;var r=st(t).toJSNumber();if(!j(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);var i=this;while(r>=H){if(i.isZero()||i.isNegative()&&i.isUnit())return i;e=C(i,U);i=e[1].isNegative()?e[0].prev():e[0];r-=H-1;}e=C(i,L[r]);return e[1].isNegative()?e[0].prev():e[0]};f.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function K(t,e,r){e=st(e);var i=t.isNegative(),s=e.isNegative();var a=i?t.not():t,o=s?e.not():e;var u=0,c=0;var l=null,f=null;var h=[];while(!a.isZero()||!o.isZero()){l=C(a,U);u=l[1].toJSNumber();if(i)u=U-1-u;f=C(o,U);c=f[1].toJSNumber();if(s)c=U-1-c;a=l[0];o=f[0];h.push(r(u,c));}var d=0!==r(i?1:0,s?1:0)?n(-1):n(0);for(var p=h.length-1;p>=0;p-=1)d=d.multiply(U).add(n(h[p]));return d}c.prototype.not=function(){return this.negate().prev()};f.prototype.not=l.prototype.not=c.prototype.not;c.prototype.and=function(t){return K(this,t,(function(t,e){return t&e}))};f.prototype.and=l.prototype.and=c.prototype.and;c.prototype.or=function(t){return K(this,t,(function(t,e){return t|e}))};f.prototype.or=l.prototype.or=c.prototype.or;c.prototype.xor=function(t){return K(this,t,(function(t,e){return t^e}))};f.prototype.xor=l.prototype.xor=c.prototype.xor;var q=1<<30,F=(e&-e)*(e&-e)|q;function z(t){var r=t.value,i="number"===typeof r?r|q:"bigint"===typeof r?r|BigInt(q):r[0]+r[1]*e|F;return i&-i}function G(t,e){if(e.compareTo(t)<=0){var r=G(t,e.square(e));var i=r.p;var s=r.e;var a=i.multiply(e);return a.compareTo(t)<=0?{p:a,e:2*s+1}:{p:i,e:2*s}}return {p:n(1),e:0}}c.prototype.bitLength=function(){var t=this;if(t.compareTo(n(0))<0)t=t.negate().subtract(n(1));if(0===t.compareTo(n(0)))return n(0);return n(G(t,n(2)).e).add(n(1))};f.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function Y(t,e){t=st(t);e=st(e);return t.greater(e)?t:e}function W(t,e){t=st(t);e=st(e);return t.lesser(e)?t:e}function J(t,e){t=st(t).abs();e=st(e).abs();if(t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;var r=u[1],i,n;while(t.isEven()&&e.isEven()){i=W(z(t),z(e));t=t.divide(i);e=e.divide(i);r=r.multiply(i);}while(t.isEven())t=t.divide(z(t));do{while(e.isEven())e=e.divide(z(e));if(t.greater(e)){n=e;e=t;t=n;}e=e.subtract(t);}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}function Z(t,e){t=st(t).abs();e=st(e).abs();return t.divide(J(t,e)).multiply(e)}function $(t,r,i){t=st(t);r=st(r);var n=i||Math.random;var s=W(t,r),a=Y(t,r);var o=a.subtract(s).add(1);if(o.isSmall)return s.add(Math.floor(n()*o));var c=et(o,e).value;var l=[],f=true;for(var h=0;h<c.length;h++){var d=f?c[h]+(h+1<c.length?c[h+1]/e:0):e;var p=y(n()*d);l.push(p);if(p<c[h])f=false;}return s.add(u.fromArray(l,e,false))}var X=function(t,e,r,i){r=r||a;t=String(t);if(!i){t=t.toLowerCase();r=r.toLowerCase();}var n=t.length;var s;var o=Math.abs(e);var u={};for(s=0;s<r.length;s++)u[r[s]]=s;for(s=0;s<n;s++){var c=t[s];if("-"===c)continue;if(c in u)if(u[c]>=o){if("1"===c&&1===o)continue;throw new Error(c+" is not a valid digit in base "+e+".")}}e=st(e);var l=[];var f="-"===t[0];for(s=f?1:0;s<t.length;s++){var c=t[s];if(c in u)l.push(st(u[c]));else if("<"===c){var h=s;do{s++;}while(">"!==t[s]&&s<t.length);l.push(st(t.slice(h+1,s)));}else throw new Error(c+" is not a valid character")}return Q(l,e,f)};function Q(t,e,r){var i=u[0],n=u[1],s;for(s=t.length-1;s>=0;s--){i=i.add(t[s].times(n));n=n.times(e);}return r?i.negate():i}function tt(t,e){e=e||a;if(t<e.length)return e[t];return "<"+t+">"}function et(t,e){e=n(e);if(e.isZero()){if(t.isZero())return {value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return {value:[0],isNegative:false};if(t.isNegative())return {value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return {value:[].concat.apply([],r),isNegative:false}}var i=false;if(t.isNegative()&&e.isPositive()){i=true;t=t.abs();}if(e.isUnit()){if(t.isZero())return {value:[0],isNegative:false};return {value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var s=[];var a=t,o;while(a.isNegative()||a.compareAbs(e)>=0){o=a.divmod(e);a=o.quotient;var u=o.remainder;if(u.isNegative()){u=e.minus(u).abs();a=a.next();}s.push(u.toJSNumber());}s.push(a.toJSNumber());return {value:s.reverse(),isNegative:i}}function rt(t,e,r){var i=et(t,e);return (i.isNegative?"-":"")+i.value.map((function(t){return tt(t,r)})).join("")}c.prototype.toArray=function(t){return et(this,t)};l.prototype.toArray=function(t){return et(this,t)};f.prototype.toArray=function(t){return et(this,t)};c.prototype.toString=function(e,r){if(e===t)e=10;if(10!==e)return rt(this,e,r);var i=this.value,n=i.length,s=String(i[--n]),a="0000000",o;while(--n>=0){o=String(i[n]);s+=a.slice(o.length)+o;}var u=this.sign?"-":"";return u+s};l.prototype.toString=function(e,r){if(e===t)e=10;if(10!=e)return rt(this,e,r);return String(this.value)};f.prototype.toString=l.prototype.toString;f.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()};c.prototype.valueOf=function(){return parseInt(this.toString(),10)};c.prototype.toJSNumber=c.prototype.valueOf;l.prototype.valueOf=function(){return this.value};l.prototype.toJSNumber=l.prototype.valueOf;f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function it(t){if(h(+t)){var e=+t;if(e===y(e))return o?new f(BigInt(e)):new l(e);throw new Error("Invalid integer: "+t)}var i="-"===t[0];if(i)t=t.slice(1);var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var s=n[1];if("+"===s[0])s=s.slice(1);s=+s;if(s!==y(s)||!h(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var a=n[0];var u=a.indexOf(".");if(u>=0){s-=a.length-u-1;a=a.slice(0,u)+a.slice(u+1);}if(s<0)throw new Error("Cannot include negative exponent part for integers");a+=new Array(s+1).join("0");t=a;}var d=/^([0-9][0-9]*)$/.test(t);if(!d)throw new Error("Invalid integer: "+t);if(o)return new f(BigInt(i?"-"+t:t));var p=[],g=t.length,m=r,_=g-m;while(g>0){p.push(+t.slice(_,g));_-=m;if(_<0)_=0;g-=m;}v(p);return new c(p,i)}function nt(t){if(o)return new f(BigInt(t));if(h(t)){if(t!==y(t))throw new Error(t+" is not an integer.");return new l(t)}return it(t.toString())}function st(t){if("number"===typeof t)return nt(t);if("string"===typeof t)return it(t);if("bigint"===typeof t)return new f(t);return t}for(var at=0;at<1e3;at++){u[at]=st(at);if(at>0)u[-at]=st(-at);}u.one=u[1];u.zero=u[0];u.minusOne=u[-1];u.max=Y;u.min=W;u.gcd=J;u.lcm=Z;u.isInstance=function(t){return t instanceof c||t instanceof l||t instanceof f};u.randBetween=$;u.fromArray=function(t,e,r){return Q(t.map(st),st(e||10),r)};return u}();if(t.hasOwnProperty("exports"))t.exports=n;i=function(){return n}.call(e,r,e,t),void 0!==i&&(t.exports=i);},452:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.BlockCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=[];var c=[];var l=[];var f=[];var h=[];var d=[];var p=[];(function(){var t=[];for(var e=0;e<256;e++)if(e<128)t[e]=e<<1;else t[e]=e<<1^283;var r=0;var i=0;for(var e=0;e<256;e++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99;s[r]=n;a[n]=r;var v=t[r];var g=t[v];var y=t[g];var m=257*t[n]^16843008*n;o[r]=m<<24|m>>>8;u[r]=m<<16|m>>>16;c[r]=m<<8|m>>>24;l[r]=m;var m=16843009*y^65537*g^257*v^16843008*r;f[n]=m<<24|m>>>8;h[n]=m<<16|m>>>16;d[n]=m<<8|m>>>24;p[n]=m;if(!r)r=i=1;else {r=v^t[t[t[y^v]]];i^=t[t[i]];}}})();var v=[0,1,2,4,8,16,32,64,128,27,54];var g=n.AES=i.extend({_doReset:function(){var t;if(this._nRounds&&this._keyPriorReset===this._key)return;var e=this._keyPriorReset=this._key;var r=e.words;var i=e.sigBytes/4;var n=this._nRounds=i+6;var a=4*(n+1);var o=this._keySchedule=[];for(var u=0;u<a;u++)if(u<i)o[u]=r[u];else {t=o[u-1];if(!(u%i)){t=t<<8|t>>>24;t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];t^=v[u/i|0]<<24;}else if(i>6&&u%i==4)t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];o[u]=o[u-i]^t;}var c=this._invKeySchedule=[];for(var l=0;l<a;l++){var u=a-l;if(l%4)var t=o[u];else var t=o[u-4];if(l<4||u<=4)c[l]=t;else c[l]=f[s[t>>>24]]^h[s[t>>>16&255]]^d[s[t>>>8&255]]^p[s[255&t]];}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,c,l,s);},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,p,a);var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;},_doCryptBlock:function(t,e,r,i,n,s,a,o){var u=this._nRounds;var c=t[e]^r[0];var l=t[e+1]^r[1];var f=t[e+2]^r[2];var h=t[e+3]^r[3];var d=4;for(var p=1;p<u;p++){var v=i[c>>>24]^n[l>>>16&255]^s[f>>>8&255]^a[255&h]^r[d++];var g=i[l>>>24]^n[f>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++];var y=i[f>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&l]^r[d++];var m=i[h>>>24]^n[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[d++];c=v;l=g;f=y;h=m;}var v=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&h])^r[d++];var g=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++];var y=(o[f>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[d++];var m=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[d++];t[e]=v;t[e+1]=g;t[e+2]=y;t[e+3]=m;},keySize:256/32});e.AES=i._createHelper(g);})();return t.AES}));},5109:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(888));})(this,(function(t){t.lib.Cipher||function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=i.BufferedBlockAlgorithm;var o=r.enc;o.Utf8;var c=o.Base64;var l=r.algo;var f=l.EvpKDF;var h=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r);this._xformMode=t;this._key=e;this.reset();},reset:function(){a.reset.call(this);this._doReset();},process:function(t){this._append(t);return this._process()},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){if("string"==typeof t)return M;else return E}return function(e){return {encrypt:function(r,i,n){return t(i).encrypt(e,r,i,n)},decrypt:function(r,i,n){return t(i).decrypt(e,r,i,n)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!!"flush");return t},blockSize:1});var p=r.mode={};var v=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t;this._iv=e;}});var g=p.CBC=function(){var t=v.extend();t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n);i.encryptBlock(t,e);this._prevBlock=t.slice(e,e+n);}});t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);i.decryptBlock(t,e);r.call(this,t,e,n);this._prevBlock=s;}});function r(t,r,i){var n;var s=this._iv;if(s){n=s;this._iv=e;}else n=this._prevBlock;for(var a=0;a<i;a++)t[r+a]^=n[a];}return t}();var y=r.pad={};var m=y.Pkcs7={pad:function(t,e){var r=4*e;var i=r-t.sigBytes%r;var n=i<<24|i<<16|i<<8|i;var a=[];for(var o=0;o<i;o+=4)a.push(n);var u=s.create(a,i);t.concat(u);},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var t;h.reset.call(this);var e=this.cfg;var r=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)t=i.createEncryptor;else {t=i.createDecryptor;this._minBufferSize=1;}if(this._mode&&this._mode.__creator==t)this._mode.init(this,r&&r.words);else {this._mode=t.call(i,this,r&&r.words);this._mode.__creator=t;}},_doProcessBlock:function(t,e){this._mode.processBlock(t,e);},_doFinalize:function(){var t;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);t=this._process(!!"flush");}else {t=this._process(!!"flush");e.unpad(t);}return t},blockSize:128/32});var w=i.CipherParams=n.extend({init:function(t){this.mixIn(t);},toString:function(t){return (t||this.formatter).stringify(this)}});var S=r.format={};var b=S.OpenSSL={stringify:function(t){var e;var r=t.ciphertext;var i=t.salt;if(i)e=s.create([1398893684,1701076831]).concat(i).concat(r);else e=r;return e.toString(c)},parse:function(t){var e;var r=c.parse(t);var i=r.words;if(1398893684==i[0]&&1701076831==i[1]){e=s.create(i.slice(2,4));i.splice(0,4);r.sigBytes-=16;}return w.create({ciphertext:r,salt:e})}};var E=i.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i);var s=n.finalize(e);var a=n.cfg;return w.create({ciphertext:s,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=t.createDecryptor(r,i).finalize(e.ciphertext);return n},_parse:function(t,e){if("string"==typeof t)return e.parse(t,this);else return t}});var D=r.kdf={};var T=D.OpenSSL={execute:function(t,e,r,i){if(!i)i=s.random(64/8);var n=f.create({keySize:e+r}).compute(t,i);var a=s.create(n.words.slice(e),4*r);n.sigBytes=4*e;return w.create({key:n,iv:a,salt:i})}};var M=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:T}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var s=E.encrypt.call(this,t,e,n.key,i);s.mixIn(n);return s},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=i.kdf.execute(r,t.keySize,t.ivSize,e.salt);i.iv=n.iv;var s=E.decrypt.call(this,t,e,n.key,i);return s}});}();}));},8249:function(t,e,r){(function(r,i){t.exports=i();})(this,(function(){var t=t||function(t,e){var i;if("undefined"!==typeof window&&window.crypto)i=window.crypto;if("undefined"!==typeof self&&self.crypto)i=self.crypto;if("undefined"!==typeof globalThis&&globalThis.crypto)i=globalThis.crypto;if(!i&&"undefined"!==typeof window&&window.msCrypto)i=window.msCrypto;if(!i&&"undefined"!==typeof r.g&&r.g.crypto)i=r.g.crypto;if(!i&&"function"==="function")try{i=r(2480);}catch(t){}var n=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")};var s=Object.create||function(){function t(){}return function(e){var r;t.prototype=e;r=new t;t.prototype=null;return r}}();var a={};var o=a.lib={};var u=o.Base=function(){return {extend:function(t){var e=s(this);if(t)e.mixIn(t);if(!e.hasOwnProperty("init")||this.init===e.init)e.init=function(){e.$super.init.apply(this,arguments);};e.init.prototype=e;e.$super=this;return e},create:function(){var t=this.extend();t.init.apply(t,arguments);return t},init:function(){},mixIn:function(t){for(var e in t)if(t.hasOwnProperty(e))this[e]=t[e];if(t.hasOwnProperty("toString"))this.toString=t.toString;},clone:function(){return this.init.prototype.extend(this)}}}();var c=o.WordArray=u.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=4*t.length;},toString:function(t){return (t||f).stringify(this)},concat:function(t){var e=this.words;var r=t.words;var i=this.sigBytes;var n=t.sigBytes;this.clamp();if(i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;e[i+s>>>2]|=a<<24-(i+s)%4*8;}else for(var o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];this.sigBytes+=n;return this},clamp:function(){var e=this.words;var r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8;e.length=t.ceil(r/4);},clone:function(){var t=u.clone.call(this);t.words=this.words.slice(0);return t},random:function(t){var e=[];for(var r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}});var l=a.enc={};var f=l.Hex={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16));i.push((15&s).toString(16));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}};var h=l.Latin1={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}};var d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}};var p=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init;this._nDataBytes=0;},_append:function(t){if("string"==typeof t)t=d.parse(t);this._data.concat(t);this._nDataBytes+=t.sigBytes;},_process:function(e){var r;var i=this._data;var n=i.words;var s=i.sigBytes;var a=this.blockSize;var o=4*a;var u=s/o;if(e)u=t.ceil(u);else u=t.max((0|u)-this._minBufferSize,0);var l=u*a;var f=t.min(4*l,s);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(n,h);r=n.splice(0,l);i.sigBytes-=f;}return new c.init(r,f)},clone:function(){var t=u.clone.call(this);t._data=this._data.clone();return t},_minBufferSize:0});o.Hasher=p.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t);this.reset();},reset:function(){p.reset.call(this);this._doReset();},update:function(t){this._append(t);this._process();return this},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},blockSize:512/32,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new g.HMAC.init(t,r).finalize(e)}}});var g=a.algo={};return a}(Math);return t}));},8269:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=this._map;t.clamp();var n=[];for(var s=0;s<r;s+=3){var a=e[s>>>2]>>>24-s%4*8&255;var o=e[s+1>>>2]>>>24-(s+1)%4*8&255;var u=e[s+2>>>2]>>>24-(s+2)%4*8&255;var c=a<<16|o<<8|u;for(var l=0;l<4&&s+.75*l<r;l++)n.push(i.charAt(c>>>6*(3-l)&63));}var f=i.charAt(64);if(f)while(n.length%4)n.push(f);return n.join("")},parse:function(t){var e=t.length;var r=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n;}var s=r.charAt(64);if(s){var o=t.indexOf(s);if(-1!==o)e=o;}return a(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64}));},3786:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64url={stringify:function(t,e=true){var r=t.words;var i=t.sigBytes;var n=e?this._safe_map:this._map;t.clamp();var s=[];for(var a=0;a<i;a+=3){var o=r[a>>>2]>>>24-a%4*8&255;var u=r[a+1>>>2]>>>24-(a+1)%4*8&255;var c=r[a+2>>>2]>>>24-(a+2)%4*8&255;var l=o<<16|u<<8|c;for(var f=0;f<4&&a+.75*f<i;f++)s.push(n.charAt(l>>>6*(3-f)&63));}var h=n.charAt(64);if(h)while(s.length%4)s.push(h);return s.join("")},parse:function(t,e=true){var r=t.length;var i=e?this._safe_map:this._map;var n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s<i.length;s++)n[i.charCodeAt(s)]=s;}var o=i.charAt(64);if(o){var u=t.indexOf(o);if(-1!==u)r=u;}return a(t,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64url}));},298:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Utf16=n.Utf16BE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=e[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}};n.Utf16LE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=a(e[n>>>2]>>>16-n%4*8&65535);i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=a(t.charCodeAt(n)<<16-n%2*16);return i.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}})();return t.enc.Utf16}));},888:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.MD5;var o=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r;var i=this.cfg;var s=i.hasher.create();var a=n.create();var o=a.words;var u=i.keySize;var c=i.iterations;while(o.length<u){if(r)s.update(r);r=s.update(t).finalize(e);s.reset();for(var l=1;l<c;l++){r=s.finalize(r);s.reset();}a.concat(r);}a.sigBytes=4*u;return a}});e.EvpKDF=function(t,e,r){return o.create(r).compute(t,e)};})();return t.EvpKDF}));},2209:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.CipherParams;var s=r.enc;var a=s.Hex;var o=r.format;o.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return n.create({ciphertext:e})}};})();return t.format.Hex}));},9824:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=e.enc;var s=n.Utf8;var a=e.algo;a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init;if("string"==typeof e)e=s.parse(e);var r=t.blockSize;var i=4*r;if(e.sigBytes>i)e=t.finalize(e);e.clamp();var n=this._oKey=e.clone();var a=this._iKey=e.clone();var o=n.words;var u=a.words;for(var c=0;c<r;c++){o[c]^=1549556828;u[c]^=909522486;}n.sigBytes=a.sigBytes=i;this.reset();},reset:function(){var t=this._hasher;t.reset();t.update(this._iKey);},update:function(t){this._hasher.update(t);return this},finalize:function(t){var e=this._hasher;var r=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(r));return i}});})();}));},1354:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(4433),r(298),r(8269),r(3786),r(8214),r(2783),r(2153),r(7792),r(34),r(7460),r(3327),r(706),r(9824),r(2112),r(888),r(5109),r(8568),r(4242),r(9968),r(7660),r(1148),r(3615),r(2807),r(1077),r(6475),r(6991),r(2209),r(452),r(4253),r(1857),r(4454),r(3974));})(this,(function(t){return t}));},4433:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){if("function"!=typeof ArrayBuffer)return;var e=t;var r=e.lib;var i=r.WordArray;var n=i.init;var s=i.init=function(t){if(t instanceof ArrayBuffer)t=new Uint8Array(t);if(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);if(t instanceof Uint8Array){var e=t.byteLength;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=t[i]<<24-i%4*8;n.call(this,r,e);}else n.apply(this,arguments);};s.prototype=i;})();return t.lib.WordArray}));},8214:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0;})();var u=a.MD5=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=t[e+0];var u=t[e+1];var d=t[e+2];var p=t[e+3];var v=t[e+4];var g=t[e+5];var y=t[e+6];var m=t[e+7];var _=t[e+8];var w=t[e+9];var S=t[e+10];var b=t[e+11];var E=t[e+12];var D=t[e+13];var T=t[e+14];var M=t[e+15];var I=s[0];var A=s[1];var x=s[2];var R=s[3];I=c(I,A,x,R,a,7,o[0]);R=c(R,I,A,x,u,12,o[1]);x=c(x,R,I,A,d,17,o[2]);A=c(A,x,R,I,p,22,o[3]);I=c(I,A,x,R,v,7,o[4]);R=c(R,I,A,x,g,12,o[5]);x=c(x,R,I,A,y,17,o[6]);A=c(A,x,R,I,m,22,o[7]);I=c(I,A,x,R,_,7,o[8]);R=c(R,I,A,x,w,12,o[9]);x=c(x,R,I,A,S,17,o[10]);A=c(A,x,R,I,b,22,o[11]);I=c(I,A,x,R,E,7,o[12]);R=c(R,I,A,x,D,12,o[13]);x=c(x,R,I,A,T,17,o[14]);A=c(A,x,R,I,M,22,o[15]);I=l(I,A,x,R,u,5,o[16]);R=l(R,I,A,x,y,9,o[17]);x=l(x,R,I,A,b,14,o[18]);A=l(A,x,R,I,a,20,o[19]);I=l(I,A,x,R,g,5,o[20]);R=l(R,I,A,x,S,9,o[21]);x=l(x,R,I,A,M,14,o[22]);A=l(A,x,R,I,v,20,o[23]);I=l(I,A,x,R,w,5,o[24]);R=l(R,I,A,x,T,9,o[25]);x=l(x,R,I,A,p,14,o[26]);A=l(A,x,R,I,_,20,o[27]);I=l(I,A,x,R,D,5,o[28]);R=l(R,I,A,x,d,9,o[29]);x=l(x,R,I,A,m,14,o[30]);A=l(A,x,R,I,E,20,o[31]);I=f(I,A,x,R,g,4,o[32]);R=f(R,I,A,x,_,11,o[33]);x=f(x,R,I,A,b,16,o[34]);A=f(A,x,R,I,T,23,o[35]);I=f(I,A,x,R,u,4,o[36]);R=f(R,I,A,x,v,11,o[37]);x=f(x,R,I,A,m,16,o[38]);A=f(A,x,R,I,S,23,o[39]);I=f(I,A,x,R,D,4,o[40]);R=f(R,I,A,x,a,11,o[41]);x=f(x,R,I,A,p,16,o[42]);A=f(A,x,R,I,y,23,o[43]);I=f(I,A,x,R,w,4,o[44]);R=f(R,I,A,x,E,11,o[45]);x=f(x,R,I,A,M,16,o[46]);A=f(A,x,R,I,d,23,o[47]);I=h(I,A,x,R,a,6,o[48]);R=h(R,I,A,x,m,10,o[49]);x=h(x,R,I,A,T,15,o[50]);A=h(A,x,R,I,g,21,o[51]);I=h(I,A,x,R,E,6,o[52]);R=h(R,I,A,x,p,10,o[53]);x=h(x,R,I,A,S,15,o[54]);A=h(A,x,R,I,u,21,o[55]);I=h(I,A,x,R,_,6,o[56]);R=h(R,I,A,x,M,10,o[57]);x=h(x,R,I,A,y,15,o[58]);A=h(A,x,R,I,D,21,o[59]);I=h(I,A,x,R,v,6,o[60]);R=h(R,I,A,x,b,10,o[61]);x=h(x,R,I,A,d,15,o[62]);A=h(A,x,R,I,w,21,o[63]);s[0]=s[0]+I|0;s[1]=s[1]+A|0;s[2]=s[2]+x|0;s[3]=s[3]+R|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296);var a=i;r[(n+64>>>9<<4)+15]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);r[(n+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);t.sigBytes=4*(r.length+1);this._process();var o=this._hash;var u=o.words;for(var c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8);}return o},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function c(t,e,r,i,n,s,a){var o=t+(e&r|~e&i)+n+a;return (o<<s|o>>>32-s)+e}function l(t,e,r,i,n,s,a){var o=t+(e&i|r&~i)+n+a;return (o<<s|o>>>32-s)+e}function f(t,e,r,i,n,s,a){var o=t+(e^r^i)+n+a;return (o<<s|o>>>32-s)+e}function h(t,e,r,i,n,s,a){var o=t+(r^(e|~i))+n+a;return (o<<s|o>>>32-s)+e}r.MD5=s._createHelper(u);r.HmacMD5=s._createHmacHelper(u);})(Math);return t.MD5}));},8568:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n,i);this._prevBlock=t.slice(e,e+n);}});e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);r.call(this,t,e,n,i);this._prevBlock=s;}});function r(t,e,r,i){var n;var s=this._iv;if(s){n=s.slice(0);this._iv=void 0;}else n=this._prevBlock;i.encryptBlock(n,0);for(var a=0;a<r;a++)t[e+a]^=n[a];}return e}();return t.mode.CFB}));},9968:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255;var r=t>>8&255;var i=255&t;if(255===e){e=0;if(255===r){r=0;if(255===i)i=0;else ++i;}else ++r;}else ++e;t=0;t+=e<<16;t+=r<<8;t+=i;}else t+=1<<24;return t}function i(t){if(0===(t[0]=r(t[0])))t[1]=r(t[1]);return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var n=r.blockSize;var s=this._iv;var a=this._counter;if(s){a=this._counter=s.slice(0);this._iv=void 0;}i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u<n;u++)t[e+u]^=o[u];}});e.Decryptor=n;return e}();return t.mode.CTRGladman}));},4242:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._counter;if(n){s=this._counter=n.slice(0);this._iv=void 0;}var a=s.slice(0);r.encryptBlock(a,0);s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)t[e+o]^=a[o];}});e.Decryptor=r;return e}();return t.mode.CTR}));},1148:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e);}});e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e);}});return e}();return t.mode.ECB}));},7660:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._keystream;if(n){s=this._keystream=n.slice(0);this._iv=void 0;}r.encryptBlock(s,0);for(var a=0;a<i;a++)t[e+a]^=s[a];}});e.Decryptor=r;return e}();return t.mode.OFB}));},3615:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes;var i=4*e;var n=i-r%i;var s=r+n-1;t.clamp();t.words[s>>>2]|=n<<24-s%4*8;t.sigBytes+=n;},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Ansix923}));},2807:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso10126={pad:function(e,r){var i=4*r;var n=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1));},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Iso10126}));},1077:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1));t.pad.ZeroPadding.pad(e,r);},unpad:function(e){t.pad.ZeroPadding.unpad(e);e.sigBytes--;}};return t.pad.Iso97971}));},6991:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.NoPadding={pad:function(){},unpad:function(){}};return t.pad.NoPadding}));},6475:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp();t.sigBytes+=r-(t.sigBytes%r||r);},unpad:function(t){var e=t.words;var r=t.sigBytes-1;for(var r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}};return t.pad.ZeroPadding}));},2112:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.SHA1;var o=s.HMAC;var u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r=this.cfg;var i=o.create(r.hasher,t);var s=n.create();var a=n.create([1]);var u=s.words;var c=a.words;var l=r.keySize;var f=r.iterations;while(u.length<l){var h=i.update(e).finalize(a);i.reset();var d=h.words;var p=d.length;var v=h;for(var g=1;g<f;g++){v=i.finalize(v);i.reset();var y=v.words;for(var m=0;m<p;m++)d[m]^=y[m];}s.concat(h);c[0]++;}s.sigBytes=4*l;return s}});e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)};})();return t.PBKDF2}));},3974:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;i[0]^=u;i[1]^=f;i[2]^=l;i[3]^=h;i[4]^=u;i[5]^=f;i[6]^=l;i[7]^=h;for(var n=0;n<4;n++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.RabbitLegacy=i._createHelper(u);})();return t.RabbitLegacy}));},4454:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.Rabbit=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;for(var r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;n[0]^=u;n[1]^=f;n[2]^=l;n[3]^=h;n[4]^=u;n[5]^=f;n[6]^=l;n[7]^=h;for(var r=0;r<4;r++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.Rabbit=i._createHelper(u);})();return t.Rabbit}));},1857:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=n.RC4=i.extend({_doReset:function(){var t=this._key;var e=t.words;var r=t.sigBytes;var i=this._S=[];for(var n=0;n<256;n++)i[n]=n;for(var n=0,s=0;n<256;n++){var a=n%r;var o=e[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s];i[s]=u;}this._i=this._j=0;},_doProcessBlock:function(t,e){t[e]^=a.call(this);},keySize:256/32,ivSize:0});function a(){var t=this._S;var e=this._i;var r=this._j;var i=0;for(var n=0;n<4;n++){e=(e+1)%256;r=(r+t[e])%256;var s=t[e];t[e]=t[r];t[r]=s;i|=t[(t[e]+t[r])%256]<<24-8*n;}this._i=e;this._j=r;return i}e.RC4=i._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this);}});e.RC4Drop=i._createHelper(o);})();return t.RC4}));},706:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var u=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var f=n.create([0,1518500249,1859775393,2400959708,2840853838]);var h=n.create([1352829926,1548603684,1836072691,2053994217,0]);var d=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=f.words;var d=h.words;var w=o.words;var S=u.words;var b=c.words;var E=l.words;var D,T,M,I,A;var x,R,B,O,k;x=D=s[0];R=T=s[1];B=M=s[2];O=I=s[3];k=A=s[4];var C;for(var r=0;r<80;r+=1){C=D+t[e+w[r]]|0;if(r<16)C+=p(T,M,I)+a[0];else if(r<32)C+=v(T,M,I)+a[1];else if(r<48)C+=g(T,M,I)+a[2];else if(r<64)C+=y(T,M,I)+a[3];else C+=m(T,M,I)+a[4];C|=0;C=_(C,b[r]);C=C+A|0;D=A;A=I;I=_(M,10);M=T;T=C;C=x+t[e+S[r]]|0;if(r<16)C+=m(R,B,O)+d[0];else if(r<32)C+=y(R,B,O)+d[1];else if(r<48)C+=g(R,B,O)+d[2];else if(r<64)C+=v(R,B,O)+d[3];else C+=p(R,B,O)+d[4];C|=0;C=_(C,E[r]);C=C+k|0;x=k;k=O;O=_(B,10);B=R;R=C;}C=s[1]+M+O|0;s[1]=s[2]+I+k|0;s[2]=s[3]+A+x|0;s[3]=s[4]+D+R|0;s[4]=s[0]+T+B|0;s[0]=C;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);t.sigBytes=4*(e.length+1);this._process();var n=this._hash;var s=n.words;for(var a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);}return n},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function p(t,e,r){return t^e^r}function v(t,e,r){return t&e|~t&r}function g(t,e,r){return (t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}r.RIPEMD160=s._createHelper(d);r.HmacRIPEMD160=s._createHmacHelper(d);})();return t.RIPEMD160}));},2783:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.Hasher;var s=e.algo;var a=[];var o=s.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var o=r[3];var u=r[4];for(var c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else {var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31;}var f=(i<<5|i>>>27)+u+a[c];if(c<20)f+=(n&s|~n&o)+1518500249;else if(c<40)f+=(n^s^o)+1859775393;else if(c<60)f+=(n&s|n&o|s&o)-1894007588;else f+=(n^s^o)-899497514;u=o;o=s;s=n<<30|n>>>2;n=i;i=f;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+o|0;r[4]=r[4]+u|0;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(r/4294967296);e[(i+64>>>9<<4)+15]=r;t.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var t=n.clone.call(this);t._hash=this._hash.clone();return t}});e.SHA1=n._createHelper(o);e.HmacSHA1=n._createHmacHelper(o);})();return t.SHA1}));},7792:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2153));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.algo;var s=n.SHA256;var a=n.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);},_doFinalize:function(){var t=s._doFinalize.call(this);t.sigBytes-=4;return t}});e.SHA224=s._createHelper(a);e.HmacSHA224=s._createHmacHelper(a);})();return t.SHA224}));},2153:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];var u=[];(function(){function t(t){var r=e.sqrt(t);for(var i=2;i<=r;i++)if(!(t%i))return false;return true}function r(t){return 4294967296*(t-(0|t))|0}var i=2;var n=0;while(n<64){if(t(i)){if(n<8)o[n]=r(e.pow(i,1/2));u[n]=r(e.pow(i,1/3));n++;}i++;}})();var c=[];var l=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0));},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var l=r[5];var f=r[6];var h=r[7];for(var d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else {var p=c[d-15];var v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3;var g=c[d-2];var y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=v+c[d-7]+y+c[d-16];}var m=o&l^~o&f;var _=i&n^i&s^n&s;var w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var S=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25);var b=h+S+m+u[d]+c[d];var E=w+_;h=f;f=l;l=o;o=a+b|0;a=s;s=n;n=i;i=b+E|0;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+a|0;r[4]=r[4]+o|0;r[5]=r[5]+l|0;r[6]=r[6]+f|0;r[7]=r[7]+h|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;r[(n+64>>>9<<4)+14]=e.floor(i/4294967296);r[(n+64>>>9<<4)+15]=i;t.sigBytes=4*r.length;this._process();return this._hash},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});r.SHA256=s._createHelper(l);r.HmacSHA256=s._createHmacHelper(l);})(Math);return t.SHA256}));},3327:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.x64;var o=a.Word;var u=r.algo;var c=[];var l=[];var f=[];(function(){var t=1,e=0;for(var r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=e%5;var n=(2*t+3*e)%5;t=i;e=n;}for(var t=0;t<5;t++)for(var e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;var s=1;for(var a=0;a<24;a++){var u=0;var h=0;for(var d=0;d<7;d++){if(1&s){var p=(1<<d)-1;if(p<32)h^=1<<p;else u^=1<<p-32;}if(128&s)s=s<<1^113;else s<<=1;}f[a]=o.create(u,h);}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=o.create();})();var d=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){var t=this._state=[];for(var e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32;},_doProcessBlock:function(t,e){var r=this._state;var i=this.blockSize/2;for(var n=0;n<i;n++){var s=t[e+2*n];var a=t[e+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var o=r[n];o.high^=a;o.low^=s;}for(var u=0;u<24;u++){for(var d=0;d<5;d++){var p=0,v=0;for(var g=0;g<5;g++){var o=r[d+5*g];p^=o.high;v^=o.low;}var y=h[d];y.high=p;y.low=v;}for(var d=0;d<5;d++){var m=h[(d+4)%5];var _=h[(d+1)%5];var w=_.high;var S=_.low;var p=m.high^(w<<1|S>>>31);var v=m.low^(S<<1|w>>>31);for(var g=0;g<5;g++){var o=r[d+5*g];o.high^=p;o.low^=v;}}for(var b=1;b<25;b++){var p;var v;var o=r[b];var E=o.high;var D=o.low;var T=c[b];if(T<32){p=E<<T|D>>>32-T;v=D<<T|E>>>32-T;}else {p=D<<T-32|E>>>64-T;v=E<<T-32|D>>>64-T;}var M=h[l[b]];M.high=p;M.low=v;}var I=h[0];var A=r[0];I.high=A.high;I.low=A.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var b=d+5*g;var o=r[b];var x=h[b];var R=h[(d+1)%5+5*g];var B=h[(d+2)%5+5*g];o.high=x.high^~R.high&B.high;o.low=x.low^~R.low&B.low;}var o=r[0];var O=f[u];o.high^=O.high;o.low^=O.low;}},_doFinalize:function(){var t=this._data;var r=t.words;8*this._nDataBytes;var s=8*t.sigBytes;var a=32*this.blockSize;r[s>>>5]|=1<<24-s%32;r[(e.ceil((s+1)/a)*a>>>5)-1]|=128;t.sigBytes=4*r.length;this._process();var o=this._state;var u=this.cfg.outputLength/8;var c=u/8;var l=[];for(var f=0;f<c;f++){var h=o[f];var d=h.high;var p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8);p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8);l.push(p);l.push(d);}return new n.init(l,u)},clone:function(){var t=s.clone.call(this);var e=t._state=this._state.slice(0);for(var r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=s._createHelper(d);r.HmacSHA3=s._createHmacHelper(d);})(Math);return t.SHA3}));},7460:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(34));})(this,(function(t){(function(){var e=t;var r=e.x64;var i=r.Word;var n=r.WordArray;var s=e.algo;var a=s.SHA512;var o=s.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)]);},_doFinalize:function(){var t=a._doFinalize.call(this);t.sigBytes-=16;return t}});e.SHA384=a._createHelper(o);e.HmacSHA384=a._createHmacHelper(o);})();return t.SHA384}));},34:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Hasher;var n=e.x64;var s=n.Word;var a=n.WordArray;var o=e.algo;function u(){return s.create.apply(s,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)];var l=[];(function(){for(var t=0;t<80;t++)l[t]=u();})();var f=o.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var u=r[5];var f=r[6];var h=r[7];var d=i.high;var p=i.low;var v=n.high;var g=n.low;var y=s.high;var m=s.low;var _=a.high;var w=a.low;var S=o.high;var b=o.low;var E=u.high;var D=u.low;var T=f.high;var M=f.low;var I=h.high;var A=h.low;var x=d;var R=p;var B=v;var O=g;var k=y;var C=m;var N=_;var P=w;var V=S;var L=b;var H=E;var U=D;var j=T;var K=M;var q=I;var F=A;for(var z=0;z<80;z++){var G;var Y;var W=l[z];if(z<16){Y=W.high=0|t[e+2*z];G=W.low=0|t[e+2*z+1];}else {var J=l[z-15];var Z=J.high;var $=J.low;var X=(Z>>>1|$<<31)^(Z>>>8|$<<24)^Z>>>7;var Q=($>>>1|Z<<31)^($>>>8|Z<<24)^($>>>7|Z<<25);var tt=l[z-2];var et=tt.high;var rt=tt.low;var it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6;var nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26);var st=l[z-7];var at=st.high;var ot=st.low;var ut=l[z-16];var ct=ut.high;var lt=ut.low;G=Q+ot;Y=X+at+(G>>>0<Q>>>0?1:0);G+=nt;Y=Y+it+(G>>>0<nt>>>0?1:0);G+=lt;Y=Y+ct+(G>>>0<lt>>>0?1:0);W.high=Y;W.low=G;}var ft=V&H^~V&j;var ht=L&U^~L&K;var dt=x&B^x&k^B&k;var pt=R&O^R&C^O&C;var vt=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7);var gt=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7);var yt=(V>>>14|L<<18)^(V>>>18|L<<14)^(V<<23|L>>>9);var mt=(L>>>14|V<<18)^(L>>>18|V<<14)^(L<<23|V>>>9);var _t=c[z];var wt=_t.high;var St=_t.low;var bt=F+mt;var Et=q+yt+(bt>>>0<F>>>0?1:0);var bt=bt+ht;var Et=Et+ft+(bt>>>0<ht>>>0?1:0);var bt=bt+St;var Et=Et+wt+(bt>>>0<St>>>0?1:0);var bt=bt+G;var Et=Et+Y+(bt>>>0<G>>>0?1:0);var Dt=gt+pt;var Tt=vt+dt+(Dt>>>0<gt>>>0?1:0);q=j;F=K;j=H;K=U;H=V;U=L;L=P+bt|0;V=N+Et+(L>>>0<P>>>0?1:0)|0;N=k;P=C;k=B;C=O;B=x;O=R;R=bt+Dt|0;x=Et+Tt+(R>>>0<bt>>>0?1:0)|0;}p=i.low=p+R;i.high=d+x+(p>>>0<R>>>0?1:0);g=n.low=g+O;n.high=v+B+(g>>>0<O>>>0?1:0);m=s.low=m+C;s.high=y+k+(m>>>0<C>>>0?1:0);w=a.low=w+P;a.high=_+N+(w>>>0<P>>>0?1:0);b=o.low=b+L;o.high=S+V+(b>>>0<L>>>0?1:0);D=u.low=D+U;u.high=E+H+(D>>>0<U>>>0?1:0);M=f.low=M+K;f.high=T+j+(M>>>0<K>>>0?1:0);A=h.low=A+F;h.high=I+q+(A>>>0<F>>>0?1:0);},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(r/4294967296);e[(i+128>>>10<<5)+31]=r;t.sigBytes=4*e.length;this._process();var n=this._hash.toX32();return n},clone:function(){var t=i.clone.call(this);t._hash=this._hash.clone();return t},blockSize:1024/32});e.SHA512=i._createHelper(f);e.HmacSHA512=i._createHmacHelper(f);})();return t.SHA512}));},4253:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.BlockCipher;var s=e.algo;var a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4];var o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32];var u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}];var l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var f=s.DES=n.extend({_doReset:function(){var t=this._key;var e=t.words;var r=[];for(var i=0;i<56;i++){var n=a[i]-1;r[i]=e[n>>>5]>>>31-n%32&1;}var s=this._subKeys=[];for(var c=0;c<16;c++){var l=s[c]=[];var f=u[c];for(var i=0;i<24;i++){l[i/6|0]|=r[(o[i]-1+f)%28]<<31-i%6;l[4+(i/6|0)]|=r[28+(o[i+24]-1+f)%28]<<31-i%6;}l[0]=l[0]<<1|l[0]>>>31;for(var i=1;i<7;i++)l[i]=l[i]>>>4*(i-1)+3;l[7]=l[7]<<5|l[7]>>>27;}var h=this._invSubKeys=[];for(var i=0;i<16;i++)h[i]=s[15-i];},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys);},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys);},_doCryptBlock:function(t,e,r){this._lBlock=t[e];this._rBlock=t[e+1];h.call(this,4,252645135);h.call(this,16,65535);d.call(this,2,858993459);d.call(this,8,16711935);h.call(this,1,1431655765);for(var i=0;i<16;i++){var n=r[i];var s=this._lBlock;var a=this._rBlock;var o=0;for(var u=0;u<8;u++)o|=c[u][((a^n[u])&l[u])>>>0];this._lBlock=a;this._rBlock=s^o;}var f=this._lBlock;this._lBlock=this._rBlock;this._rBlock=f;h.call(this,1,1431655765);d.call(this,8,16711935);d.call(this,2,858993459);h.call(this,16,65535);h.call(this,4,252645135);t[e]=this._lBlock;t[e+1]=this._rBlock;},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r;this._lBlock^=r<<t;}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r;this._rBlock^=r<<t;}e.DES=n._createHelper(f);var p=s.TripleDES=n.extend({_doReset:function(){var t=this._key;var e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2);var n=e.length<4?e.slice(0,2):e.slice(2,4);var s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(i.create(r));this._des2=f.createEncryptor(i.create(n));this._des3=f.createEncryptor(i.create(s));},encryptBlock:function(t,e){this._des1.encryptBlock(t,e);this._des2.decryptBlock(t,e);this._des3.encryptBlock(t,e);},decryptBlock:function(t,e){this._des3.decryptBlock(t,e);this._des2.encryptBlock(t,e);this._des1.decryptBlock(t,e);},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=n._createHelper(p);})();return t.TripleDES}));},4938:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=r.x64={};a.Word=n.extend({init:function(t,e){this.high=t;this.low=e;}});a.WordArray=n.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=8*t.length;},toX32:function(){var t=this.words;var e=t.length;var r=[];for(var i=0;i<e;i++){var n=t[i];r.push(n.high);r.push(n.low);}return s.create(r,this.sigBytes)},clone:function(){var t=n.clone.call(this);var e=t.words=this.words.slice(0);var r=e.length;for(var i=0;i<r;i++)e[i]=e[i].clone();return t}});})();return t}));},3118:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ErrorCode=void 0;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["CLIENT_ID_NOT_FOUND"]=1]="CLIENT_ID_NOT_FOUND";t[t["OPERATION_TOO_OFTEN"]=2]="OPERATION_TOO_OFTEN";t[t["REPEAT_MESSAGE"]=3]="REPEAT_MESSAGE";t[t["TIME_OUT"]=4]="TIME_OUT";})(e.ErrorCode||(e.ErrorCode={}));},5987:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const n=i(r(1901));const s=i(r(1754));const a=i(r(1237));var o;(function(t){function e(t){a.default.debugMode=t;a.default.info(`setDebugMode: ${t}`);}t.setDebugMode=e;function r(t){try{n.default.init(t);}catch(t){a.default.error(`init error`,t);}}t.init=r;function i(t){try{n.default.setTag(t);}catch(t){a.default.error(`setTag error`,t);}}t.setTag=i;function o(t){try{n.default.bindAlias(t);}catch(t){a.default.error(`bindAlias error`,t);}}t.bindAlias=o;function u(t){try{n.default.unbindAlias(t);}catch(t){a.default.error(`unbindAlias error`,t);}}t.unbindAlias=u;function c(t){try{if(!t.url)throw new Error("invalid url");if(!t.key||!t.keyId)throw new Error("invalid key or keyId");s.default.socketUrl=t.url;s.default.publicKeyId=t.keyId;s.default.publicKey=t.key;}catch(t){a.default.error(`setSocketServer error`,t);}}t.setSocketServer=c;function l(t){try{n.default.enableSocket(t);}catch(t){a.default.error(`enableSocket error`,t);}}t.enableSocket=l;})(o||(o={}));t.exports=o;},2852:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4806));const s=i(r(3396));const a=i(r(6565));const o=i(r(5912));const u=i(r(3174));const c=i(r(4698));const l=i(r(87));const f=i(r(523));const h=i(r(7252));const d=i(r(4668));const p=i(r(3072));const v=i(r(1996));const g=i(r(9342));const y=i(r(155));const m=i(r(3751));var _;(function(t){let e;let r;let i;function _(){if("undefined"!=typeof uni){e=new d.default;r=new p.default;i=new v.default;}else if("undefined"!=typeof tt){e=new l.default;r=new f.default;i=new h.default;}else if("undefined"!=typeof my){e=new n.default;r=new s.default;i=new a.default;}else if("undefined"!=typeof wx){e=new g.default;r=new y.default;i=new m.default;}else if("undefined"!=typeof window){e=new o.default;r=new u.default;i=new c.default;}}function w(){if(!e)_();return e}t.getDevice=w;function S(){if(!r)_();return r}t.getStorage=S;function b(){if(!i)_();return i}t.getWebSocket=b;})(_||(_={}));e["default"]=_;},7406:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){function e(){return n.default.getDevice().os()}t.os=e;function r(){return n.default.getDevice().osVersion()}t.osVersion=r;function i(){return n.default.getDevice().model()}t.model=i;function s(){return n.default.getDevice().brand()}t.brand=s;function a(){return n.default.getDevice().platform()}t.platform=a;function o(){return n.default.getDevice().platformVersion()}t.platformVersion=o;function u(){return n.default.getDevice().platformId()}t.platformId=u;function c(){return n.default.getDevice().language()}t.language=c;function l(){let t=n.default.getDevice().userAgent;if(t)return t();return ""}t.userAgent=l;function f(t){n.default.getDevice().getNetworkType(t);}t.getNetworkType=f;function h(t){n.default.getDevice().onNetworkStatusChange(t);}t.onNetworkStatusChange=h;})(s||(s={}));e["default"]=s;},7071:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(358));const a=i(r(1236));const o=r(53);const u=i(r(1571));const c=i(r(1237));const l=i(r(2852));const f=i(r(9934));var h;(function(t){let e;let r=false;let i=false;t.allowReconnect=true;function h(){return r&&i}t.isAvailable=h;function d(e){if(!t.allowReconnect)return;setTimeout((function(){p();}),e);}t.reconnect=d;function p(){t.allowReconnect=true;if(!n.default.networkConnected){c.default.info(`connect failed, network is not available`);return}if(i||r)return;let s=n.default.socketUrl;try{let t=f.default.getSync(f.default.KEY_REDIRECT_SERVER,"");if(t){let e=o.RedirectServerData.parse(t);let r=e.addressList[0].split(",");let i=r[0];let n=Number(r[1]);let a=(new Date).getTime();if(a-e.time<1e3*n)s=i;}}catch(t){}e=l.default.getWebSocket().connect({url:s,success:function(){i=true;v();},fail:function(){i=false;m();}});e.onOpen(_);e.onClose(b);e.onError(S);e.onMessage(w);}t.connect=p;function v(){if(i&&r){s.default.create().send();u.default.getInstance().start();}}function g(t){e?.close({reason:t,success:function(t){},fail:function(t){m();}});}t.close=g;function y(t){if(r&&r)e?.send({data:t,success:function(t){},fail:function(t){}});else throw new Error(`socket not connect`)}t.send=y;function m(t){i=false;r=false;u.default.getInstance().cancel();if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online});}if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online});}d(1e3);}let _=function(t){r=true;v();};let w=function(t){try{t.data;u.default.getInstance().refresh();a.default.receiveMessage(t.data);}catch(t){}};let S=function(t){g(`socket error`);};let b=function(t){m();};})(h||(h={}));e["default"]=h;},9934:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){t.KEY_APPID="getui_appid";t.KEY_CID="getui_cid";t.KEY_SESSION="getui_session";t.KEY_REGID="getui_regid";t.KEY_SOCKET_URL="getui_socket_url";t.KEY_DEVICE_ID="getui_deviceid";t.KEY_ADD_PHONE_INFO_TIME="getui_api_time";t.KEY_BIND_ALIAS_TIME="getui_ba_time";t.KEY_SET_TAG_TIME="getui_st_time";t.KEY_REDIRECT_SERVER="getui_redirect_server";function e(t){n.default.getStorage().set(t);}t.set=e;function r(t,e){n.default.getStorage().setSync(t,e);}t.setSync=r;function i(t){n.default.getStorage().get(t);}t.get=i;function s(t,e){let r=n.default.getStorage().getSync(t);return r?r:e}t.getSync=s;})(s||(s={}));e["default"]=s;},4806:t=>{class e{constructor(){this.systemInfo=my.getSystemInfoSync();}os(){return this.systemInfo?.platform}osVersion(){return this.systemInfo?.system}model(){return this.systemInfo?.model}brand(){return this.systemInfo?.brand}platform(){return "MP-ALIPAY"}platformVersion(){return this.systemInfo.app+" "+this.systemInfo.version}platformId(){return my.getAppIdSync()}language(){return this.systemInfo?.language}getNetworkType(t){my.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType});},fail:()=>{t.fail?.call(t.fail,"");}});}onNetworkStatusChange(t){my.onNetworkStatusChange(t);}}t.exports=e;},3396:t=>{class e{set(t){my.setStorage({key:t.key,data:t.data,success:t.success,fail:t.fail});}setSync(t,e){my.setStorageSync({key:t,data:e});}get(t){my.getStorage({key:t.key,success:t.success,fail:t.fail,complete:t.complete});}getSync(t){return my.getStorageSync({key:t}).data}}t.exports=e;},6565:t=>{class e{connect(t){my.connectSocket({url:t.url,header:t.header,method:t.method,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:t=>{my.onSocketMessage.call(my.onSocketMessage,(e=>{t.call(t,{data:e?e.data:""});}));},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}t.exports=e;},5912:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{os(){let t=window.navigator.userAgent.toLowerCase();if(t.indexOf("android")>0||t.indexOf("adr")>0)return "android";if(!!t.match(/\(i[^;]+;( u;)? cpu.+mac os x/))return "ios";if(t.indexOf("windows")>0||t.indexOf("win32")>0||t.indexOf("win64")>0)return "windows";if(t.indexOf("macintosh")>0||t.indexOf("mac os")>0)return "mac os";if(t.indexOf("linux")>0)return "linux";if(t.indexOf("unix")>0)return "linux";return "other"}osVersion(){let t=window.navigator.userAgent.toLowerCase();let e=t.substring(t.indexOf(";")+1).trim();if(e.indexOf(";")>0)return e.substring(0,e.indexOf(";")).trim();return e.substring(0,e.indexOf(")")).trim()}model(){return ""}brand(){return ""}platform(){return "H5"}platformVersion(){return ""}platformId(){return ""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(t){t.success?.call(t.success,{networkType:window.navigator.connection.type});}onNetworkStatusChange(t){}}e["default"]=r;},3174:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){window.localStorage.setItem(t.key,t.data);t.success?.call(t.success,"");}setSync(t,e){window.localStorage.setItem(t,e);}get(t){let e=window.localStorage.getItem(t.key);t.success?.call(t.success,e);}getSync(t){return window.localStorage.getItem(t)}}e["default"]=r;},4698:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=new WebSocket(t.url);return {send:t=>{try{e.send(t.data);t.success?.call(t.success,{errMsg:""});}catch(e){t.fail?.call(t.fail,{errMsg:e+""});}},close:t=>{try{e.close(t.code,t.reason);t.success?.call(t.success,{errMsg:""});}catch(e){t.fail?.call(t.fail,{errMsg:e+""});}},onOpen:r=>{e.onopen=e=>{t.success?.call(t.success,"");r({header:""});};},onError:r=>{e.onerror=e=>{t.fail?.call(t.fail,"");r({errMsg:""});};},onMessage:t=>{e.onmessage=e=>{t({data:e.data});};},onClose:t=>{e.onclose=e=>{t(e);};}}}}e["default"]=r;},87:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=tt.getSystemInfoSync();}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return "MP-TOUTIAO"}platformVersion(){return this.systemInfo.appName+" "+this.systemInfo.version}language(){return ""}platformId(){return ""}getNetworkType(t){tt.getNetworkType(t);}onNetworkStatusChange(t){tt.onNetworkStatusChange(t);}}e["default"]=r;},523:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){tt.setStorage(t);}setSync(t,e){tt.setStorageSync(t,e);}get(t){tt.getStorage(t);}getSync(t){return tt.getStorageSync(t)}}e["default"]=r;},7252:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=tt.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r;},4668:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){try{this.systemInfo=uni.getSystemInfoSync();this.accountInfo=uni.getAccountInfoSync();}catch(t){}}os(){return this.systemInfo?this.systemInfo.platform:""}model(){return this.systemInfo?this.systemInfo.model:""}brand(){return this.systemInfo?.brand?this.systemInfo.brand:""}osVersion(){return this.systemInfo?this.systemInfo.system:""}platform(){let t=""; +(function t(e,r){module.exports=r();})(self,(()=>(()=>{var t={4736:(t,e,r)=>{t=r.nmd(t);var i;var n=function(t){var e=1e7,r=7,i=9007199254740992,s=d(i),a="0123456789abcdefghijklmnopqrstuvwxyz";var o="function"===typeof BigInt;function u(t,e,r,i){if("undefined"===typeof t)return u[0];if("undefined"!==typeof e)return 10===+e&&!r?st(t):X(t,e,r,i);return st(t)}function c(t,e){this.value=t;this.sign=e;this.isSmall=false;}c.prototype=Object.create(u.prototype);function l(t){this.value=t;this.sign=t<0;this.isSmall=true;}l.prototype=Object.create(u.prototype);function f(t){this.value=t;}f.prototype=Object.create(u.prototype);function h(t){return -i<t&&t<i}function d(t){if(t<1e7)return [t];if(t<1e14)return [t%1e7,Math.floor(t/1e7)];return [t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function p(t){v(t);var r=t.length;if(r<4&&N(t,s)<0)switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*e;default:return t[0]+(t[1]+t[2]*e)*e}return t}function v(t){var e=t.length;while(0===t[--e]);t.length=e+1;}function g(t){var e=new Array(t);var r=-1;while(++r<t)e[r]=0;return e}function y(t){if(t>0)return Math.floor(t);return Math.ceil(t)}function m(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(c=0;c<n;c++){u=t[c]+r[c]+a;a=u>=o?1:0;s[c]=u-a*o;}while(c<i){u=t[c]+a;a=u===o?1:0;s[c++]=u-a*o;}if(a>0)s.push(a);return s}function w(t,e){if(t.length>=e.length)return m(t,e);return m(e,t)}function S(t,r){var i=t.length,n=new Array(i),s=e,a,o;for(o=0;o<i;o++){a=t[o]-s+r;r=Math.floor(a/s);n[o]=a-r*s;r+=1;}while(r>0){n[o++]=r%s;r=Math.floor(r/s);}return n}c.prototype.add=function(t){var e=st(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,i=e.value;if(e.isSmall)return new c(S(r,Math.abs(i)),this.sign);return new c(w(r,i),this.sign)};c.prototype.plus=c.prototype.add;l.prototype.add=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var i=e.value;if(e.isSmall){if(h(r+i))return new l(r+i);i=d(Math.abs(i));}return new c(S(i,Math.abs(r)),r<0)};l.prototype.plus=l.prototype.add;f.prototype.add=function(t){return new f(this.value+st(t).value)};f.prototype.plus=f.prototype.add;function _(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(u=0;u<n;u++){c=t[u]-a-r[u];if(c<0){c+=o;a=1;}else a=0;s[u]=c;}for(u=n;u<i;u++){c=t[u]-a;if(c<0)c+=o;else {s[u++]=c;break}s[u]=c;}for(;u<i;u++)s[u]=t[u];v(s);return s}function b(t,e,r){var i;if(N(t,e)>=0)i=_(t,e);else {i=_(e,t);r=!r;}i=p(i);if("number"===typeof i){if(r)i=-i;return new l(i)}return new c(i,r)}function E(t,r,i){var n=t.length,s=new Array(n),a=-r,o=e,u,f;for(u=0;u<n;u++){f=t[u]+a;a=Math.floor(f/o);f%=o;s[u]=f<0?f+o:f;}s=p(s);if("number"===typeof s){if(i)s=-s;return new l(s)}return new c(s,i)}c.prototype.subtract=function(t){var e=st(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,i=e.value;if(e.isSmall)return E(r,Math.abs(i),this.sign);return b(r,i,this.sign)};c.prototype.minus=c.prototype.subtract;l.prototype.subtract=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.add(e.negate());var i=e.value;if(e.isSmall)return new l(r-i);return E(i,Math.abs(r),r>=0)};l.prototype.minus=l.prototype.subtract;f.prototype.subtract=function(t){return new f(this.value-st(t).value)};f.prototype.minus=f.prototype.subtract;c.prototype.negate=function(){return new c(this.value,!this.sign)};l.prototype.negate=function(){var t=this.sign;var e=new l(-this.value);e.sign=!t;return e};f.prototype.negate=function(){return new f(-this.value)};c.prototype.abs=function(){return new c(this.value,false)};l.prototype.abs=function(){return new l(Math.abs(this.value))};f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)};function D(t,r){var i=t.length,n=r.length,s=i+n,a=g(s),o=e,u,c,l,f,h;for(l=0;l<i;++l){f=t[l];for(var d=0;d<n;++d){h=r[d];u=f*h+a[l+d];c=Math.floor(u/o);a[l+d]=u-c*o;a[l+d+1]+=c;}}v(a);return a}function M(t,r){var i=t.length,n=new Array(i),s=e,a=0,o,u;for(u=0;u<i;u++){o=t[u]*r+a;a=Math.floor(o/s);n[u]=o-a*s;}while(a>0){n[u++]=a%s;a=Math.floor(a/s);}return n}function T(t,e){var r=[];while(e-- >0)r.push(0);return r.concat(t)}function I(t,e){var r=Math.max(t.length,e.length);if(r<=30)return D(t,e);r=Math.ceil(r/2);var i=t.slice(r),n=t.slice(0,r),s=e.slice(r),a=e.slice(0,r);var o=I(n,a),u=I(i,s),c=I(w(n,i),w(a,s));var l=w(w(o,T(_(_(c,o),u),r)),T(u,2*r));v(l);return l}function A(t,e){return -.012*t-.012*e+15e-6*t*e>0}c.prototype.multiply=function(t){var r=st(t),i=this.value,n=r.value,s=this.sign!==r.sign,a;if(r.isSmall){if(0===n)return u[0];if(1===n)return this;if(-1===n)return this.negate();a=Math.abs(n);if(a<e)return new c(M(i,a),s);n=d(a);}if(A(i.length,n.length))return new c(I(i,n),s);return new c(D(i,n),s)};c.prototype.times=c.prototype.multiply;function x(t,r,i){if(t<e)return new c(M(r,t),i);return new c(D(r,d(t)),i)}l.prototype._multiplyBySmall=function(t){if(h(t.value*this.value))return new l(t.value*this.value);return x(Math.abs(t.value),d(Math.abs(this.value)),this.sign!==t.sign)};c.prototype._multiplyBySmall=function(t){if(0===t.value)return u[0];if(1===t.value)return this;if(-1===t.value)return this.negate();return x(Math.abs(t.value),this.value,this.sign!==t.sign)};l.prototype.multiply=function(t){return st(t)._multiplyBySmall(this)};l.prototype.times=l.prototype.multiply;f.prototype.multiply=function(t){return new f(this.value*st(t).value)};f.prototype.times=f.prototype.multiply;function R(t){var r=t.length,i=g(r+r),n=e,s,a,o,u,c;for(o=0;o<r;o++){u=t[o];a=0-u*u;for(var l=o;l<r;l++){c=t[l];s=2*(u*c)+i[o+l]+a;a=Math.floor(s/n);i[o+l]=s-a*n;}i[o+r]=a;}v(i);return i}c.prototype.square=function(){return new c(R(this.value),false)};l.prototype.square=function(){var t=this.value*this.value;if(h(t))return new l(t);return new c(R(d(Math.abs(this.value))),false)};f.prototype.square=function(t){return new f(this.value*this.value)};function B(t,r){var i=t.length,n=r.length,s=e,a=g(r.length),o=r[n-1],u=Math.ceil(s/(2*o)),c=M(t,u),l=M(r,u),f,h,d,v,y,m,w;if(c.length<=i)c.push(0);l.push(0);o=l[n-1];for(h=i-n;h>=0;h--){f=s-1;if(c[h+n]!==o)f=Math.floor((c[h+n]*s+c[h+n-1])/o);d=0;v=0;m=l.length;for(y=0;y<m;y++){d+=f*l[y];w=Math.floor(d/s);v+=c[h+y]-(d-w*s);d=w;if(v<0){c[h+y]=v+s;v=-1;}else {c[h+y]=v;v=0;}}while(0!==v){f-=1;d=0;for(y=0;y<m;y++){d+=c[h+y]-s+l[y];if(d<0){c[h+y]=d+s;d=0;}else {c[h+y]=d;d=1;}}v+=d;}a[h]=f;}c=k(c,u)[0];return [p(a),p(c)]}function O(t,r){var i=t.length,n=r.length,s=[],a=[],o=e,u,c,l,f,h;while(i){a.unshift(t[--i]);v(a);if(N(a,r)<0){s.push(0);continue}c=a.length;l=a[c-1]*o+a[c-2];f=r[n-1]*o+r[n-2];if(c>n)l=(l+1)*o;u=Math.ceil(l/f);do{h=M(r,u);if(N(h,a)<=0)break;u--;}while(u);s.push(u);a=_(a,h);}s.reverse();return [p(s),p(a)]}function k(t,r){var i=t.length,n=g(i),s=e,a,o,u,c;u=0;for(a=i-1;a>=0;--a){c=u*s+t[a];o=y(c/r);u=c-o*r;n[a]=0|o;}return [n,0|u]}function C(t,r){var i,n=st(r);if(o)return [new f(t.value/n.value),new f(t.value%n.value)];var s=t.value,a=n.value;var h;if(0===a)throw new Error("Cannot divide by zero");if(t.isSmall){if(n.isSmall)return [new l(y(s/a)),new l(s%a)];return [u[0],t]}if(n.isSmall){if(1===a)return [t,u[0]];if(-1==a)return [t.negate(),u[0]];var v=Math.abs(a);if(v<e){i=k(s,v);h=p(i[0]);var g=i[1];if(t.sign)g=-g;if("number"===typeof h){if(t.sign!==n.sign)h=-h;return [new l(h),new l(g)]}return [new c(h,t.sign!==n.sign),new l(g)]}a=d(v);}var m=N(s,a);if(-1===m)return [u[0],t];if(0===m)return [u[t.sign===n.sign?1:-1],u[0]];if(s.length+a.length<=200)i=B(s,a);else i=O(s,a);h=i[0];var w=t.sign!==n.sign,S=i[1],_=t.sign;if("number"===typeof h){if(w)h=-h;h=new l(h);}else h=new c(h,w);if("number"===typeof S){if(_)S=-S;S=new l(S);}else S=new c(S,_);return [h,S]}c.prototype.divmod=function(t){var e=C(this,t);return {quotient:e[0],remainder:e[1]}};f.prototype.divmod=l.prototype.divmod=c.prototype.divmod;c.prototype.divide=function(t){return C(this,t)[0]};f.prototype.over=f.prototype.divide=function(t){return new f(this.value/st(t).value)};l.prototype.over=l.prototype.divide=c.prototype.over=c.prototype.divide;c.prototype.mod=function(t){return C(this,t)[1]};f.prototype.mod=f.prototype.remainder=function(t){return new f(this.value%st(t).value)};l.prototype.remainder=l.prototype.mod=c.prototype.remainder=c.prototype.mod;c.prototype.pow=function(t){var e=st(t),r=this.value,i=e.value,n,s,a;if(0===i)return u[1];if(0===r)return u[0];if(1===r)return u[1];if(-1===r)return e.isEven()?u[1]:u[-1];if(e.sign)return u[0];if(!e.isSmall)throw new Error("The exponent "+e.toString()+" is too large.");if(this.isSmall)if(h(n=Math.pow(r,i)))return new l(y(n));s=this;a=u[1];while(true){if(i&1===1){a=a.times(s);--i;}if(0===i)break;i/=2;s=s.square();}return a};l.prototype.pow=c.prototype.pow;f.prototype.pow=function(t){var e=st(t);var r=this.value,i=e.value;var n=BigInt(0),s=BigInt(1),a=BigInt(2);if(i===n)return u[1];if(r===n)return u[0];if(r===s)return u[1];if(r===BigInt(-1))return e.isEven()?u[1]:u[-1];if(e.isNegative())return new f(n);var o=this;var c=u[1];while(true){if((i&s)===s){c=c.times(o);--i;}if(i===n)break;i/=a;o=o.square();}return c};c.prototype.modPow=function(t,e){t=st(t);e=st(e);if(e.isZero())throw new Error("Cannot take modPow with modulus 0");var r=u[1],i=this.mod(e);if(t.isNegative()){t=t.multiply(u[-1]);i=i.modInv(e);}while(t.isPositive()){if(i.isZero())return u[0];if(t.isOdd())r=r.multiply(i).mod(e);t=t.divide(2);i=i.square().mod(e);}return r};f.prototype.modPow=l.prototype.modPow=c.prototype.modPow;function N(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}c.prototype.compareAbs=function(t){var e=st(t),r=this.value,i=e.value;if(e.isSmall)return 1;return N(r,i)};l.prototype.compareAbs=function(t){var e=st(t),r=Math.abs(this.value),i=e.value;if(e.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return -1};f.prototype.compareAbs=function(t){var e=this.value;var r=st(t).value;e=e>=0?e:-e;r=r>=0?r:-r;return e===r?0:e>r?1:-1};c.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(this.sign!==e.sign)return e.sign?1:-1;if(e.isSmall)return this.sign?-1:1;return N(r,i)*(this.sign?-1:1)};c.prototype.compareTo=c.prototype.compare;l.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(e.isSmall)return r==i?0:r>i?1:-1;if(r<0!==e.sign)return r<0?-1:1;return r<0?1:-1};l.prototype.compareTo=l.prototype.compare;f.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=this.value;var r=st(t).value;return e===r?0:e>r?1:-1};f.prototype.compareTo=f.prototype.compare;c.prototype.equals=function(t){return 0===this.compare(t)};f.prototype.eq=f.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals;c.prototype.notEquals=function(t){return 0!==this.compare(t)};f.prototype.neq=f.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals;c.prototype.greater=function(t){return this.compare(t)>0};f.prototype.gt=f.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater;c.prototype.lesser=function(t){return this.compare(t)<0};f.prototype.lt=f.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser;c.prototype.greaterOrEquals=function(t){return this.compare(t)>=0};f.prototype.geq=f.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals;c.prototype.lesserOrEquals=function(t){return this.compare(t)<=0};f.prototype.leq=f.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals;c.prototype.isEven=function(){return 0===(1&this.value[0])};l.prototype.isEven=function(){return 0===(1&this.value)};f.prototype.isEven=function(){return (this.value&BigInt(1))===BigInt(0)};c.prototype.isOdd=function(){return 1===(1&this.value[0])};l.prototype.isOdd=function(){return 1===(1&this.value)};f.prototype.isOdd=function(){return (this.value&BigInt(1))===BigInt(1)};c.prototype.isPositive=function(){return !this.sign};l.prototype.isPositive=function(){return this.value>0};f.prototype.isPositive=l.prototype.isPositive;c.prototype.isNegative=function(){return this.sign};l.prototype.isNegative=function(){return this.value<0};f.prototype.isNegative=l.prototype.isNegative;c.prototype.isUnit=function(){return false};l.prototype.isUnit=function(){return 1===Math.abs(this.value)};f.prototype.isUnit=function(){return this.abs().value===BigInt(1)};c.prototype.isZero=function(){return false};l.prototype.isZero=function(){return 0===this.value};f.prototype.isZero=function(){return this.value===BigInt(0)};c.prototype.isDivisibleBy=function(t){var e=st(t);if(e.isZero())return false;if(e.isUnit())return true;if(0===e.compareAbs(2))return this.isEven();return this.mod(e).isZero()};f.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function P(t){var e=t.abs();if(e.isUnit())return false;if(e.equals(2)||e.equals(3)||e.equals(5))return true;if(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))return false;if(e.lesser(49))return true}function V(t,e){var r=t.prev(),i=r,s=0,a,u,c;while(i.isEven())i=i.divide(2),s++;t:for(u=0;u<e.length;u++){if(t.lesser(e[u]))continue;c=n(e[u]).modPow(i,t);if(c.isUnit()||c.equals(r))continue;for(a=s-1;0!=a;a--){c=c.square().mod(t);if(c.isUnit())return false;if(c.equals(r))continue t}return false}return true}c.prototype.isPrime=function(e){var r=P(this);if(r!==t)return r;var i=this.abs();var s=i.bitLength();if(s<=64)return V(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var a=Math.log(2)*s.toJSNumber();var o=Math.ceil(true===e?2*Math.pow(a,2):a);for(var u=[],c=0;c<o;c++)u.push(n(c+2));return V(i,u)};f.prototype.isPrime=l.prototype.isPrime=c.prototype.isPrime;c.prototype.isProbablePrime=function(e,r){var i=P(this);if(i!==t)return i;var s=this.abs();var a=e===t?5:e;for(var o=[],u=0;u<a;u++)o.push(n.randBetween(2,s.minus(2),r));return V(s,o)};f.prototype.isProbablePrime=l.prototype.isProbablePrime=c.prototype.isProbablePrime;c.prototype.modInv=function(t){var e=n.zero,r=n.one,i=st(t),s=this.abs(),a,o,u;while(!s.isZero()){a=i.divide(s);o=e;u=i;e=r;i=s;r=o.subtract(a.multiply(r));s=u.subtract(a.multiply(s));}if(!i.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");if(-1===e.compare(0))e=e.add(t);if(this.isNegative())return e.negate();return e};f.prototype.modInv=l.prototype.modInv=c.prototype.modInv;c.prototype.next=function(){var t=this.value;if(this.sign)return E(t,1,this.sign);return new c(S(t,1),this.sign)};l.prototype.next=function(){var t=this.value;if(t+1<i)return new l(t+1);return new c(s,false)};f.prototype.next=function(){return new f(this.value+BigInt(1))};c.prototype.prev=function(){var t=this.value;if(this.sign)return new c(S(t,1),true);return E(t,1,this.sign)};l.prototype.prev=function(){var t=this.value;if(t-1>-i)return new l(t-1);return new c(s,true)};f.prototype.prev=function(){return new f(this.value-BigInt(1))};var L=[1];while(2*L[L.length-1]<=e)L.push(2*L[L.length-1]);var H=L.length,K=L[H-1];function U(t){return Math.abs(t)<=e}c.prototype.shiftLeft=function(t){var e=st(t).toJSNumber();if(!U(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;while(e>=H){r=r.multiply(K);e-=H-1;}return r.multiply(L[e])};f.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft;c.prototype.shiftRight=function(t){var e;var r=st(t).toJSNumber();if(!U(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);var i=this;while(r>=H){if(i.isZero()||i.isNegative()&&i.isUnit())return i;e=C(i,K);i=e[1].isNegative()?e[0].prev():e[0];r-=H-1;}e=C(i,L[r]);return e[1].isNegative()?e[0].prev():e[0]};f.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function j(t,e,r){e=st(e);var i=t.isNegative(),s=e.isNegative();var a=i?t.not():t,o=s?e.not():e;var u=0,c=0;var l=null,f=null;var h=[];while(!a.isZero()||!o.isZero()){l=C(a,K);u=l[1].toJSNumber();if(i)u=K-1-u;f=C(o,K);c=f[1].toJSNumber();if(s)c=K-1-c;a=l[0];o=f[0];h.push(r(u,c));}var d=0!==r(i?1:0,s?1:0)?n(-1):n(0);for(var p=h.length-1;p>=0;p-=1)d=d.multiply(K).add(n(h[p]));return d}c.prototype.not=function(){return this.negate().prev()};f.prototype.not=l.prototype.not=c.prototype.not;c.prototype.and=function(t){return j(this,t,(function(t,e){return t&e}))};f.prototype.and=l.prototype.and=c.prototype.and;c.prototype.or=function(t){return j(this,t,(function(t,e){return t|e}))};f.prototype.or=l.prototype.or=c.prototype.or;c.prototype.xor=function(t){return j(this,t,(function(t,e){return t^e}))};f.prototype.xor=l.prototype.xor=c.prototype.xor;var q=1<<30,F=(e&-e)*(e&-e)|q;function z(t){var r=t.value,i="number"===typeof r?r|q:"bigint"===typeof r?r|BigInt(q):r[0]+r[1]*e|F;return i&-i}function G(t,e){if(e.compareTo(t)<=0){var r=G(t,e.square(e));var i=r.p;var s=r.e;var a=i.multiply(e);return a.compareTo(t)<=0?{p:a,e:2*s+1}:{p:i,e:2*s}}return {p:n(1),e:0}}c.prototype.bitLength=function(){var t=this;if(t.compareTo(n(0))<0)t=t.negate().subtract(n(1));if(0===t.compareTo(n(0)))return n(0);return n(G(t,n(2)).e).add(n(1))};f.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function Y(t,e){t=st(t);e=st(e);return t.greater(e)?t:e}function W(t,e){t=st(t);e=st(e);return t.lesser(e)?t:e}function J(t,e){t=st(t).abs();e=st(e).abs();if(t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;var r=u[1],i,n;while(t.isEven()&&e.isEven()){i=W(z(t),z(e));t=t.divide(i);e=e.divide(i);r=r.multiply(i);}while(t.isEven())t=t.divide(z(t));do{while(e.isEven())e=e.divide(z(e));if(t.greater(e)){n=e;e=t;t=n;}e=e.subtract(t);}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}function Z(t,e){t=st(t).abs();e=st(e).abs();return t.divide(J(t,e)).multiply(e)}function $(t,r,i){t=st(t);r=st(r);var n=i||Math.random;var s=W(t,r),a=Y(t,r);var o=a.subtract(s).add(1);if(o.isSmall)return s.add(Math.floor(n()*o));var c=et(o,e).value;var l=[],f=true;for(var h=0;h<c.length;h++){var d=f?c[h]+(h+1<c.length?c[h+1]/e:0):e;var p=y(n()*d);l.push(p);if(p<c[h])f=false;}return s.add(u.fromArray(l,e,false))}var X=function(t,e,r,i){r=r||a;t=String(t);if(!i){t=t.toLowerCase();r=r.toLowerCase();}var n=t.length;var s;var o=Math.abs(e);var u={};for(s=0;s<r.length;s++)u[r[s]]=s;for(s=0;s<n;s++){var c=t[s];if("-"===c)continue;if(c in u)if(u[c]>=o){if("1"===c&&1===o)continue;throw new Error(c+" is not a valid digit in base "+e+".")}}e=st(e);var l=[];var f="-"===t[0];for(s=f?1:0;s<t.length;s++){var c=t[s];if(c in u)l.push(st(u[c]));else if("<"===c){var h=s;do{s++;}while(">"!==t[s]&&s<t.length);l.push(st(t.slice(h+1,s)));}else throw new Error(c+" is not a valid character")}return Q(l,e,f)};function Q(t,e,r){var i=u[0],n=u[1],s;for(s=t.length-1;s>=0;s--){i=i.add(t[s].times(n));n=n.times(e);}return r?i.negate():i}function tt(t,e){e=e||a;if(t<e.length)return e[t];return "<"+t+">"}function et(t,e){e=n(e);if(e.isZero()){if(t.isZero())return {value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return {value:[0],isNegative:false};if(t.isNegative())return {value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return {value:[].concat.apply([],r),isNegative:false}}var i=false;if(t.isNegative()&&e.isPositive()){i=true;t=t.abs();}if(e.isUnit()){if(t.isZero())return {value:[0],isNegative:false};return {value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var s=[];var a=t,o;while(a.isNegative()||a.compareAbs(e)>=0){o=a.divmod(e);a=o.quotient;var u=o.remainder;if(u.isNegative()){u=e.minus(u).abs();a=a.next();}s.push(u.toJSNumber());}s.push(a.toJSNumber());return {value:s.reverse(),isNegative:i}}function rt(t,e,r){var i=et(t,e);return (i.isNegative?"-":"")+i.value.map((function(t){return tt(t,r)})).join("")}c.prototype.toArray=function(t){return et(this,t)};l.prototype.toArray=function(t){return et(this,t)};f.prototype.toArray=function(t){return et(this,t)};c.prototype.toString=function(e,r){if(e===t)e=10;if(10!==e)return rt(this,e,r);var i=this.value,n=i.length,s=String(i[--n]),a="0000000",o;while(--n>=0){o=String(i[n]);s+=a.slice(o.length)+o;}var u=this.sign?"-":"";return u+s};l.prototype.toString=function(e,r){if(e===t)e=10;if(10!=e)return rt(this,e,r);return String(this.value)};f.prototype.toString=l.prototype.toString;f.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()};c.prototype.valueOf=function(){return parseInt(this.toString(),10)};c.prototype.toJSNumber=c.prototype.valueOf;l.prototype.valueOf=function(){return this.value};l.prototype.toJSNumber=l.prototype.valueOf;f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function it(t){if(h(+t)){var e=+t;if(e===y(e))return o?new f(BigInt(e)):new l(e);throw new Error("Invalid integer: "+t)}var i="-"===t[0];if(i)t=t.slice(1);var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var s=n[1];if("+"===s[0])s=s.slice(1);s=+s;if(s!==y(s)||!h(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var a=n[0];var u=a.indexOf(".");if(u>=0){s-=a.length-u-1;a=a.slice(0,u)+a.slice(u+1);}if(s<0)throw new Error("Cannot include negative exponent part for integers");a+=new Array(s+1).join("0");t=a;}var d=/^([0-9][0-9]*)$/.test(t);if(!d)throw new Error("Invalid integer: "+t);if(o)return new f(BigInt(i?"-"+t:t));var p=[],g=t.length,m=r,w=g-m;while(g>0){p.push(+t.slice(w,g));w-=m;if(w<0)w=0;g-=m;}v(p);return new c(p,i)}function nt(t){if(o)return new f(BigInt(t));if(h(t)){if(t!==y(t))throw new Error(t+" is not an integer.");return new l(t)}return it(t.toString())}function st(t){if("number"===typeof t)return nt(t);if("string"===typeof t)return it(t);if("bigint"===typeof t)return new f(t);return t}for(var at=0;at<1e3;at++){u[at]=st(at);if(at>0)u[-at]=st(-at);}u.one=u[1];u.zero=u[0];u.minusOne=u[-1];u.max=Y;u.min=W;u.gcd=J;u.lcm=Z;u.isInstance=function(t){return t instanceof c||t instanceof l||t instanceof f};u.randBetween=$;u.fromArray=function(t,e,r){return Q(t.map(st),st(e||10),r)};return u}();if(t.hasOwnProperty("exports"))t.exports=n;i=function(){return n}.call(e,r,e,t),void 0!==i&&(t.exports=i);},452:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.BlockCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=[];var c=[];var l=[];var f=[];var h=[];var d=[];var p=[];(function(){var t=[];for(var e=0;e<256;e++)if(e<128)t[e]=e<<1;else t[e]=e<<1^283;var r=0;var i=0;for(var e=0;e<256;e++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99;s[r]=n;a[n]=r;var v=t[r];var g=t[v];var y=t[g];var m=257*t[n]^16843008*n;o[r]=m<<24|m>>>8;u[r]=m<<16|m>>>16;c[r]=m<<8|m>>>24;l[r]=m;var m=16843009*y^65537*g^257*v^16843008*r;f[n]=m<<24|m>>>8;h[n]=m<<16|m>>>16;d[n]=m<<8|m>>>24;p[n]=m;if(!r)r=i=1;else {r=v^t[t[t[y^v]]];i^=t[t[i]];}}})();var v=[0,1,2,4,8,16,32,64,128,27,54];var g=n.AES=i.extend({_doReset:function(){var t;if(this._nRounds&&this._keyPriorReset===this._key)return;var e=this._keyPriorReset=this._key;var r=e.words;var i=e.sigBytes/4;var n=this._nRounds=i+6;var a=4*(n+1);var o=this._keySchedule=[];for(var u=0;u<a;u++)if(u<i)o[u]=r[u];else {t=o[u-1];if(!(u%i)){t=t<<8|t>>>24;t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];t^=v[u/i|0]<<24;}else if(i>6&&u%i==4)t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];o[u]=o[u-i]^t;}var c=this._invKeySchedule=[];for(var l=0;l<a;l++){var u=a-l;if(l%4)var t=o[u];else var t=o[u-4];if(l<4||u<=4)c[l]=t;else c[l]=f[s[t>>>24]]^h[s[t>>>16&255]]^d[s[t>>>8&255]]^p[s[255&t]];}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,c,l,s);},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,p,a);var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;},_doCryptBlock:function(t,e,r,i,n,s,a,o){var u=this._nRounds;var c=t[e]^r[0];var l=t[e+1]^r[1];var f=t[e+2]^r[2];var h=t[e+3]^r[3];var d=4;for(var p=1;p<u;p++){var v=i[c>>>24]^n[l>>>16&255]^s[f>>>8&255]^a[255&h]^r[d++];var g=i[l>>>24]^n[f>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++];var y=i[f>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&l]^r[d++];var m=i[h>>>24]^n[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[d++];c=v;l=g;f=y;h=m;}var v=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&h])^r[d++];var g=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++];var y=(o[f>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[d++];var m=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[d++];t[e]=v;t[e+1]=g;t[e+2]=y;t[e+3]=m;},keySize:256/32});e.AES=i._createHelper(g);})();return t.AES}));},5109:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(888));})(this,(function(t){t.lib.Cipher||function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=i.BufferedBlockAlgorithm;var o=r.enc;o.Utf8;var c=o.Base64;var l=r.algo;var f=l.EvpKDF;var h=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r);this._xformMode=t;this._key=e;this.reset();},reset:function(){a.reset.call(this);this._doReset();},process:function(t){this._append(t);return this._process()},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){if("string"==typeof t)return T;else return E}return function(e){return {encrypt:function(r,i,n){return t(i).encrypt(e,r,i,n)},decrypt:function(r,i,n){return t(i).decrypt(e,r,i,n)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!!"flush");return t},blockSize:1});var p=r.mode={};var v=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t;this._iv=e;}});var g=p.CBC=function(){var t=v.extend();t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n);i.encryptBlock(t,e);this._prevBlock=t.slice(e,e+n);}});t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);i.decryptBlock(t,e);r.call(this,t,e,n);this._prevBlock=s;}});function r(t,r,i){var n;var s=this._iv;if(s){n=s;this._iv=e;}else n=this._prevBlock;for(var a=0;a<i;a++)t[r+a]^=n[a];}return t}();var y=r.pad={};var m=y.Pkcs7={pad:function(t,e){var r=4*e;var i=r-t.sigBytes%r;var n=i<<24|i<<16|i<<8|i;var a=[];for(var o=0;o<i;o+=4)a.push(n);var u=s.create(a,i);t.concat(u);},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var t;h.reset.call(this);var e=this.cfg;var r=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)t=i.createEncryptor;else {t=i.createDecryptor;this._minBufferSize=1;}if(this._mode&&this._mode.__creator==t)this._mode.init(this,r&&r.words);else {this._mode=t.call(i,this,r&&r.words);this._mode.__creator=t;}},_doProcessBlock:function(t,e){this._mode.processBlock(t,e);},_doFinalize:function(){var t;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);t=this._process(!!"flush");}else {t=this._process(!!"flush");e.unpad(t);}return t},blockSize:128/32});var S=i.CipherParams=n.extend({init:function(t){this.mixIn(t);},toString:function(t){return (t||this.formatter).stringify(this)}});var _=r.format={};var b=_.OpenSSL={stringify:function(t){var e;var r=t.ciphertext;var i=t.salt;if(i)e=s.create([1398893684,1701076831]).concat(i).concat(r);else e=r;return e.toString(c)},parse:function(t){var e;var r=c.parse(t);var i=r.words;if(1398893684==i[0]&&1701076831==i[1]){e=s.create(i.slice(2,4));i.splice(0,4);r.sigBytes-=16;}return S.create({ciphertext:r,salt:e})}};var E=i.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i);var s=n.finalize(e);var a=n.cfg;return S.create({ciphertext:s,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=t.createDecryptor(r,i).finalize(e.ciphertext);return n},_parse:function(t,e){if("string"==typeof t)return e.parse(t,this);else return t}});var D=r.kdf={};var M=D.OpenSSL={execute:function(t,e,r,i){if(!i)i=s.random(64/8);var n=f.create({keySize:e+r}).compute(t,i);var a=s.create(n.words.slice(e),4*r);n.sigBytes=4*e;return S.create({key:n,iv:a,salt:i})}};var T=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:M}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var s=E.encrypt.call(this,t,e,n.key,i);s.mixIn(n);return s},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=i.kdf.execute(r,t.keySize,t.ivSize,e.salt);i.iv=n.iv;var s=E.decrypt.call(this,t,e,n.key,i);return s}});}();}));},8249:function(t,e,r){(function(r,i){t.exports=i();})(this,(function(){var t=t||function(t,e){var i;if("undefined"!==typeof window&&window.crypto)i=window.crypto;if("undefined"!==typeof self&&self.crypto)i=self.crypto;if("undefined"!==typeof globalThis&&globalThis.crypto)i=globalThis.crypto;if(!i&&"undefined"!==typeof window&&window.msCrypto)i=window.msCrypto;if(!i&&"undefined"!==typeof r.g&&r.g.crypto)i=r.g.crypto;if(!i&&"function"==="function")try{i=r(2480);}catch(t){}var n=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")};var s=Object.create||function(){function t(){}return function(e){var r;t.prototype=e;r=new t;t.prototype=null;return r}}();var a={};var o=a.lib={};var u=o.Base=function(){return {extend:function(t){var e=s(this);if(t)e.mixIn(t);if(!e.hasOwnProperty("init")||this.init===e.init)e.init=function(){e.$super.init.apply(this,arguments);};e.init.prototype=e;e.$super=this;return e},create:function(){var t=this.extend();t.init.apply(t,arguments);return t},init:function(){},mixIn:function(t){for(var e in t)if(t.hasOwnProperty(e))this[e]=t[e];if(t.hasOwnProperty("toString"))this.toString=t.toString;},clone:function(){return this.init.prototype.extend(this)}}}();var c=o.WordArray=u.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=4*t.length;},toString:function(t){return (t||f).stringify(this)},concat:function(t){var e=this.words;var r=t.words;var i=this.sigBytes;var n=t.sigBytes;this.clamp();if(i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;e[i+s>>>2]|=a<<24-(i+s)%4*8;}else for(var o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];this.sigBytes+=n;return this},clamp:function(){var e=this.words;var r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8;e.length=t.ceil(r/4);},clone:function(){var t=u.clone.call(this);t.words=this.words.slice(0);return t},random:function(t){var e=[];for(var r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}});var l=a.enc={};var f=l.Hex={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16));i.push((15&s).toString(16));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}};var h=l.Latin1={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}};var d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}};var p=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init;this._nDataBytes=0;},_append:function(t){if("string"==typeof t)t=d.parse(t);this._data.concat(t);this._nDataBytes+=t.sigBytes;},_process:function(e){var r;var i=this._data;var n=i.words;var s=i.sigBytes;var a=this.blockSize;var o=4*a;var u=s/o;if(e)u=t.ceil(u);else u=t.max((0|u)-this._minBufferSize,0);var l=u*a;var f=t.min(4*l,s);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(n,h);r=n.splice(0,l);i.sigBytes-=f;}return new c.init(r,f)},clone:function(){var t=u.clone.call(this);t._data=this._data.clone();return t},_minBufferSize:0});o.Hasher=p.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t);this.reset();},reset:function(){p.reset.call(this);this._doReset();},update:function(t){this._append(t);this._process();return this},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},blockSize:512/32,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new g.HMAC.init(t,r).finalize(e)}}});var g=a.algo={};return a}(Math);return t}));},8269:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=this._map;t.clamp();var n=[];for(var s=0;s<r;s+=3){var a=e[s>>>2]>>>24-s%4*8&255;var o=e[s+1>>>2]>>>24-(s+1)%4*8&255;var u=e[s+2>>>2]>>>24-(s+2)%4*8&255;var c=a<<16|o<<8|u;for(var l=0;l<4&&s+.75*l<r;l++)n.push(i.charAt(c>>>6*(3-l)&63));}var f=i.charAt(64);if(f)while(n.length%4)n.push(f);return n.join("")},parse:function(t){var e=t.length;var r=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n;}var s=r.charAt(64);if(s){var o=t.indexOf(s);if(-1!==o)e=o;}return a(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64}));},3786:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64url={stringify:function(t,e=true){var r=t.words;var i=t.sigBytes;var n=e?this._safe_map:this._map;t.clamp();var s=[];for(var a=0;a<i;a+=3){var o=r[a>>>2]>>>24-a%4*8&255;var u=r[a+1>>>2]>>>24-(a+1)%4*8&255;var c=r[a+2>>>2]>>>24-(a+2)%4*8&255;var l=o<<16|u<<8|c;for(var f=0;f<4&&a+.75*f<i;f++)s.push(n.charAt(l>>>6*(3-f)&63));}var h=n.charAt(64);if(h)while(s.length%4)s.push(h);return s.join("")},parse:function(t,e=true){var r=t.length;var i=e?this._safe_map:this._map;var n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s<i.length;s++)n[i.charCodeAt(s)]=s;}var o=i.charAt(64);if(o){var u=t.indexOf(o);if(-1!==u)r=u;}return a(t,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64url}));},298:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Utf16=n.Utf16BE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=e[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}};n.Utf16LE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=a(e[n>>>2]>>>16-n%4*8&65535);i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=a(t.charCodeAt(n)<<16-n%2*16);return i.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}})();return t.enc.Utf16}));},888:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.MD5;var o=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r;var i=this.cfg;var s=i.hasher.create();var a=n.create();var o=a.words;var u=i.keySize;var c=i.iterations;while(o.length<u){if(r)s.update(r);r=s.update(t).finalize(e);s.reset();for(var l=1;l<c;l++){r=s.finalize(r);s.reset();}a.concat(r);}a.sigBytes=4*u;return a}});e.EvpKDF=function(t,e,r){return o.create(r).compute(t,e)};})();return t.EvpKDF}));},2209:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.CipherParams;var s=r.enc;var a=s.Hex;var o=r.format;o.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return n.create({ciphertext:e})}};})();return t.format.Hex}));},9824:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=e.enc;var s=n.Utf8;var a=e.algo;a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init;if("string"==typeof e)e=s.parse(e);var r=t.blockSize;var i=4*r;if(e.sigBytes>i)e=t.finalize(e);e.clamp();var n=this._oKey=e.clone();var a=this._iKey=e.clone();var o=n.words;var u=a.words;for(var c=0;c<r;c++){o[c]^=1549556828;u[c]^=909522486;}n.sigBytes=a.sigBytes=i;this.reset();},reset:function(){var t=this._hasher;t.reset();t.update(this._iKey);},update:function(t){this._hasher.update(t);return this},finalize:function(t){var e=this._hasher;var r=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(r));return i}});})();}));},1354:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(4433),r(298),r(8269),r(3786),r(8214),r(2783),r(2153),r(7792),r(34),r(7460),r(3327),r(706),r(9824),r(2112),r(888),r(5109),r(8568),r(4242),r(9968),r(7660),r(1148),r(3615),r(2807),r(1077),r(6475),r(6991),r(2209),r(452),r(4253),r(1857),r(4454),r(3974));})(this,(function(t){return t}));},4433:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){if("function"!=typeof ArrayBuffer)return;var e=t;var r=e.lib;var i=r.WordArray;var n=i.init;var s=i.init=function(t){if(t instanceof ArrayBuffer)t=new Uint8Array(t);if(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);if(t instanceof Uint8Array){var e=t.byteLength;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=t[i]<<24-i%4*8;n.call(this,r,e);}else n.apply(this,arguments);};s.prototype=i;})();return t.lib.WordArray}));},8214:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0;})();var u=a.MD5=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=t[e+0];var u=t[e+1];var d=t[e+2];var p=t[e+3];var v=t[e+4];var g=t[e+5];var y=t[e+6];var m=t[e+7];var w=t[e+8];var S=t[e+9];var _=t[e+10];var b=t[e+11];var E=t[e+12];var D=t[e+13];var M=t[e+14];var T=t[e+15];var I=s[0];var A=s[1];var x=s[2];var R=s[3];I=c(I,A,x,R,a,7,o[0]);R=c(R,I,A,x,u,12,o[1]);x=c(x,R,I,A,d,17,o[2]);A=c(A,x,R,I,p,22,o[3]);I=c(I,A,x,R,v,7,o[4]);R=c(R,I,A,x,g,12,o[5]);x=c(x,R,I,A,y,17,o[6]);A=c(A,x,R,I,m,22,o[7]);I=c(I,A,x,R,w,7,o[8]);R=c(R,I,A,x,S,12,o[9]);x=c(x,R,I,A,_,17,o[10]);A=c(A,x,R,I,b,22,o[11]);I=c(I,A,x,R,E,7,o[12]);R=c(R,I,A,x,D,12,o[13]);x=c(x,R,I,A,M,17,o[14]);A=c(A,x,R,I,T,22,o[15]);I=l(I,A,x,R,u,5,o[16]);R=l(R,I,A,x,y,9,o[17]);x=l(x,R,I,A,b,14,o[18]);A=l(A,x,R,I,a,20,o[19]);I=l(I,A,x,R,g,5,o[20]);R=l(R,I,A,x,_,9,o[21]);x=l(x,R,I,A,T,14,o[22]);A=l(A,x,R,I,v,20,o[23]);I=l(I,A,x,R,S,5,o[24]);R=l(R,I,A,x,M,9,o[25]);x=l(x,R,I,A,p,14,o[26]);A=l(A,x,R,I,w,20,o[27]);I=l(I,A,x,R,D,5,o[28]);R=l(R,I,A,x,d,9,o[29]);x=l(x,R,I,A,m,14,o[30]);A=l(A,x,R,I,E,20,o[31]);I=f(I,A,x,R,g,4,o[32]);R=f(R,I,A,x,w,11,o[33]);x=f(x,R,I,A,b,16,o[34]);A=f(A,x,R,I,M,23,o[35]);I=f(I,A,x,R,u,4,o[36]);R=f(R,I,A,x,v,11,o[37]);x=f(x,R,I,A,m,16,o[38]);A=f(A,x,R,I,_,23,o[39]);I=f(I,A,x,R,D,4,o[40]);R=f(R,I,A,x,a,11,o[41]);x=f(x,R,I,A,p,16,o[42]);A=f(A,x,R,I,y,23,o[43]);I=f(I,A,x,R,S,4,o[44]);R=f(R,I,A,x,E,11,o[45]);x=f(x,R,I,A,T,16,o[46]);A=f(A,x,R,I,d,23,o[47]);I=h(I,A,x,R,a,6,o[48]);R=h(R,I,A,x,m,10,o[49]);x=h(x,R,I,A,M,15,o[50]);A=h(A,x,R,I,g,21,o[51]);I=h(I,A,x,R,E,6,o[52]);R=h(R,I,A,x,p,10,o[53]);x=h(x,R,I,A,_,15,o[54]);A=h(A,x,R,I,u,21,o[55]);I=h(I,A,x,R,w,6,o[56]);R=h(R,I,A,x,T,10,o[57]);x=h(x,R,I,A,y,15,o[58]);A=h(A,x,R,I,D,21,o[59]);I=h(I,A,x,R,v,6,o[60]);R=h(R,I,A,x,b,10,o[61]);x=h(x,R,I,A,d,15,o[62]);A=h(A,x,R,I,S,21,o[63]);s[0]=s[0]+I|0;s[1]=s[1]+A|0;s[2]=s[2]+x|0;s[3]=s[3]+R|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296);var a=i;r[(n+64>>>9<<4)+15]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);r[(n+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);t.sigBytes=4*(r.length+1);this._process();var o=this._hash;var u=o.words;for(var c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8);}return o},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function c(t,e,r,i,n,s,a){var o=t+(e&r|~e&i)+n+a;return (o<<s|o>>>32-s)+e}function l(t,e,r,i,n,s,a){var o=t+(e&i|r&~i)+n+a;return (o<<s|o>>>32-s)+e}function f(t,e,r,i,n,s,a){var o=t+(e^r^i)+n+a;return (o<<s|o>>>32-s)+e}function h(t,e,r,i,n,s,a){var o=t+(r^(e|~i))+n+a;return (o<<s|o>>>32-s)+e}r.MD5=s._createHelper(u);r.HmacMD5=s._createHmacHelper(u);})(Math);return t.MD5}));},8568:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n,i);this._prevBlock=t.slice(e,e+n);}});e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);r.call(this,t,e,n,i);this._prevBlock=s;}});function r(t,e,r,i){var n;var s=this._iv;if(s){n=s.slice(0);this._iv=void 0;}else n=this._prevBlock;i.encryptBlock(n,0);for(var a=0;a<r;a++)t[e+a]^=n[a];}return e}();return t.mode.CFB}));},9968:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255;var r=t>>8&255;var i=255&t;if(255===e){e=0;if(255===r){r=0;if(255===i)i=0;else ++i;}else ++r;}else ++e;t=0;t+=e<<16;t+=r<<8;t+=i;}else t+=1<<24;return t}function i(t){if(0===(t[0]=r(t[0])))t[1]=r(t[1]);return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var n=r.blockSize;var s=this._iv;var a=this._counter;if(s){a=this._counter=s.slice(0);this._iv=void 0;}i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u<n;u++)t[e+u]^=o[u];}});e.Decryptor=n;return e}();return t.mode.CTRGladman}));},4242:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._counter;if(n){s=this._counter=n.slice(0);this._iv=void 0;}var a=s.slice(0);r.encryptBlock(a,0);s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)t[e+o]^=a[o];}});e.Decryptor=r;return e}();return t.mode.CTR}));},1148:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e);}});e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e);}});return e}();return t.mode.ECB}));},7660:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._keystream;if(n){s=this._keystream=n.slice(0);this._iv=void 0;}r.encryptBlock(s,0);for(var a=0;a<i;a++)t[e+a]^=s[a];}});e.Decryptor=r;return e}();return t.mode.OFB}));},3615:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes;var i=4*e;var n=i-r%i;var s=r+n-1;t.clamp();t.words[s>>>2]|=n<<24-s%4*8;t.sigBytes+=n;},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Ansix923}));},2807:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso10126={pad:function(e,r){var i=4*r;var n=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1));},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Iso10126}));},1077:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1));t.pad.ZeroPadding.pad(e,r);},unpad:function(e){t.pad.ZeroPadding.unpad(e);e.sigBytes--;}};return t.pad.Iso97971}));},6991:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.NoPadding={pad:function(){},unpad:function(){}};return t.pad.NoPadding}));},6475:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp();t.sigBytes+=r-(t.sigBytes%r||r);},unpad:function(t){var e=t.words;var r=t.sigBytes-1;for(var r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}};return t.pad.ZeroPadding}));},2112:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.SHA1;var o=s.HMAC;var u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r=this.cfg;var i=o.create(r.hasher,t);var s=n.create();var a=n.create([1]);var u=s.words;var c=a.words;var l=r.keySize;var f=r.iterations;while(u.length<l){var h=i.update(e).finalize(a);i.reset();var d=h.words;var p=d.length;var v=h;for(var g=1;g<f;g++){v=i.finalize(v);i.reset();var y=v.words;for(var m=0;m<p;m++)d[m]^=y[m];}s.concat(h);c[0]++;}s.sigBytes=4*l;return s}});e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)};})();return t.PBKDF2}));},3974:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;i[0]^=u;i[1]^=f;i[2]^=l;i[3]^=h;i[4]^=u;i[5]^=f;i[6]^=l;i[7]^=h;for(var n=0;n<4;n++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.RabbitLegacy=i._createHelper(u);})();return t.RabbitLegacy}));},4454:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.Rabbit=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;for(var r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;n[0]^=u;n[1]^=f;n[2]^=l;n[3]^=h;n[4]^=u;n[5]^=f;n[6]^=l;n[7]^=h;for(var r=0;r<4;r++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.Rabbit=i._createHelper(u);})();return t.Rabbit}));},1857:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=n.RC4=i.extend({_doReset:function(){var t=this._key;var e=t.words;var r=t.sigBytes;var i=this._S=[];for(var n=0;n<256;n++)i[n]=n;for(var n=0,s=0;n<256;n++){var a=n%r;var o=e[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s];i[s]=u;}this._i=this._j=0;},_doProcessBlock:function(t,e){t[e]^=a.call(this);},keySize:256/32,ivSize:0});function a(){var t=this._S;var e=this._i;var r=this._j;var i=0;for(var n=0;n<4;n++){e=(e+1)%256;r=(r+t[e])%256;var s=t[e];t[e]=t[r];t[r]=s;i|=t[(t[e]+t[r])%256]<<24-8*n;}this._i=e;this._j=r;return i}e.RC4=i._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this);}});e.RC4Drop=i._createHelper(o);})();return t.RC4}));},706:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var u=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var f=n.create([0,1518500249,1859775393,2400959708,2840853838]);var h=n.create([1352829926,1548603684,1836072691,2053994217,0]);var d=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=f.words;var d=h.words;var S=o.words;var _=u.words;var b=c.words;var E=l.words;var D,M,T,I,A;var x,R,B,O,k;x=D=s[0];R=M=s[1];B=T=s[2];O=I=s[3];k=A=s[4];var C;for(var r=0;r<80;r+=1){C=D+t[e+S[r]]|0;if(r<16)C+=p(M,T,I)+a[0];else if(r<32)C+=v(M,T,I)+a[1];else if(r<48)C+=g(M,T,I)+a[2];else if(r<64)C+=y(M,T,I)+a[3];else C+=m(M,T,I)+a[4];C|=0;C=w(C,b[r]);C=C+A|0;D=A;A=I;I=w(T,10);T=M;M=C;C=x+t[e+_[r]]|0;if(r<16)C+=m(R,B,O)+d[0];else if(r<32)C+=y(R,B,O)+d[1];else if(r<48)C+=g(R,B,O)+d[2];else if(r<64)C+=v(R,B,O)+d[3];else C+=p(R,B,O)+d[4];C|=0;C=w(C,E[r]);C=C+k|0;x=k;k=O;O=w(B,10);B=R;R=C;}C=s[1]+T+O|0;s[1]=s[2]+I+k|0;s[2]=s[3]+A+x|0;s[3]=s[4]+D+R|0;s[4]=s[0]+M+B|0;s[0]=C;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);t.sigBytes=4*(e.length+1);this._process();var n=this._hash;var s=n.words;for(var a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);}return n},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function p(t,e,r){return t^e^r}function v(t,e,r){return t&e|~t&r}function g(t,e,r){return (t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function w(t,e){return t<<e|t>>>32-e}r.RIPEMD160=s._createHelper(d);r.HmacRIPEMD160=s._createHmacHelper(d);})();return t.RIPEMD160}));},2783:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.Hasher;var s=e.algo;var a=[];var o=s.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var o=r[3];var u=r[4];for(var c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else {var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31;}var f=(i<<5|i>>>27)+u+a[c];if(c<20)f+=(n&s|~n&o)+1518500249;else if(c<40)f+=(n^s^o)+1859775393;else if(c<60)f+=(n&s|n&o|s&o)-1894007588;else f+=(n^s^o)-899497514;u=o;o=s;s=n<<30|n>>>2;n=i;i=f;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+o|0;r[4]=r[4]+u|0;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(r/4294967296);e[(i+64>>>9<<4)+15]=r;t.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var t=n.clone.call(this);t._hash=this._hash.clone();return t}});e.SHA1=n._createHelper(o);e.HmacSHA1=n._createHmacHelper(o);})();return t.SHA1}));},7792:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2153));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.algo;var s=n.SHA256;var a=n.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);},_doFinalize:function(){var t=s._doFinalize.call(this);t.sigBytes-=4;return t}});e.SHA224=s._createHelper(a);e.HmacSHA224=s._createHmacHelper(a);})();return t.SHA224}));},2153:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];var u=[];(function(){function t(t){var r=e.sqrt(t);for(var i=2;i<=r;i++)if(!(t%i))return false;return true}function r(t){return 4294967296*(t-(0|t))|0}var i=2;var n=0;while(n<64){if(t(i)){if(n<8)o[n]=r(e.pow(i,1/2));u[n]=r(e.pow(i,1/3));n++;}i++;}})();var c=[];var l=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0));},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var l=r[5];var f=r[6];var h=r[7];for(var d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else {var p=c[d-15];var v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3;var g=c[d-2];var y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=v+c[d-7]+y+c[d-16];}var m=o&l^~o&f;var w=i&n^i&s^n&s;var S=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var _=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25);var b=h+_+m+u[d]+c[d];var E=S+w;h=f;f=l;l=o;o=a+b|0;a=s;s=n;n=i;i=b+E|0;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+a|0;r[4]=r[4]+o|0;r[5]=r[5]+l|0;r[6]=r[6]+f|0;r[7]=r[7]+h|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;r[(n+64>>>9<<4)+14]=e.floor(i/4294967296);r[(n+64>>>9<<4)+15]=i;t.sigBytes=4*r.length;this._process();return this._hash},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});r.SHA256=s._createHelper(l);r.HmacSHA256=s._createHmacHelper(l);})(Math);return t.SHA256}));},3327:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.x64;var o=a.Word;var u=r.algo;var c=[];var l=[];var f=[];(function(){var t=1,e=0;for(var r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=e%5;var n=(2*t+3*e)%5;t=i;e=n;}for(var t=0;t<5;t++)for(var e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;var s=1;for(var a=0;a<24;a++){var u=0;var h=0;for(var d=0;d<7;d++){if(1&s){var p=(1<<d)-1;if(p<32)h^=1<<p;else u^=1<<p-32;}if(128&s)s=s<<1^113;else s<<=1;}f[a]=o.create(u,h);}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=o.create();})();var d=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){var t=this._state=[];for(var e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32;},_doProcessBlock:function(t,e){var r=this._state;var i=this.blockSize/2;for(var n=0;n<i;n++){var s=t[e+2*n];var a=t[e+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var o=r[n];o.high^=a;o.low^=s;}for(var u=0;u<24;u++){for(var d=0;d<5;d++){var p=0,v=0;for(var g=0;g<5;g++){var o=r[d+5*g];p^=o.high;v^=o.low;}var y=h[d];y.high=p;y.low=v;}for(var d=0;d<5;d++){var m=h[(d+4)%5];var w=h[(d+1)%5];var S=w.high;var _=w.low;var p=m.high^(S<<1|_>>>31);var v=m.low^(_<<1|S>>>31);for(var g=0;g<5;g++){var o=r[d+5*g];o.high^=p;o.low^=v;}}for(var b=1;b<25;b++){var p;var v;var o=r[b];var E=o.high;var D=o.low;var M=c[b];if(M<32){p=E<<M|D>>>32-M;v=D<<M|E>>>32-M;}else {p=D<<M-32|E>>>64-M;v=E<<M-32|D>>>64-M;}var T=h[l[b]];T.high=p;T.low=v;}var I=h[0];var A=r[0];I.high=A.high;I.low=A.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var b=d+5*g;var o=r[b];var x=h[b];var R=h[(d+1)%5+5*g];var B=h[(d+2)%5+5*g];o.high=x.high^~R.high&B.high;o.low=x.low^~R.low&B.low;}var o=r[0];var O=f[u];o.high^=O.high;o.low^=O.low;}},_doFinalize:function(){var t=this._data;var r=t.words;8*this._nDataBytes;var s=8*t.sigBytes;var a=32*this.blockSize;r[s>>>5]|=1<<24-s%32;r[(e.ceil((s+1)/a)*a>>>5)-1]|=128;t.sigBytes=4*r.length;this._process();var o=this._state;var u=this.cfg.outputLength/8;var c=u/8;var l=[];for(var f=0;f<c;f++){var h=o[f];var d=h.high;var p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8);p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8);l.push(p);l.push(d);}return new n.init(l,u)},clone:function(){var t=s.clone.call(this);var e=t._state=this._state.slice(0);for(var r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=s._createHelper(d);r.HmacSHA3=s._createHmacHelper(d);})(Math);return t.SHA3}));},7460:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(34));})(this,(function(t){(function(){var e=t;var r=e.x64;var i=r.Word;var n=r.WordArray;var s=e.algo;var a=s.SHA512;var o=s.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)]);},_doFinalize:function(){var t=a._doFinalize.call(this);t.sigBytes-=16;return t}});e.SHA384=a._createHelper(o);e.HmacSHA384=a._createHmacHelper(o);})();return t.SHA384}));},34:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Hasher;var n=e.x64;var s=n.Word;var a=n.WordArray;var o=e.algo;function u(){return s.create.apply(s,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)];var l=[];(function(){for(var t=0;t<80;t++)l[t]=u();})();var f=o.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var u=r[5];var f=r[6];var h=r[7];var d=i.high;var p=i.low;var v=n.high;var g=n.low;var y=s.high;var m=s.low;var w=a.high;var S=a.low;var _=o.high;var b=o.low;var E=u.high;var D=u.low;var M=f.high;var T=f.low;var I=h.high;var A=h.low;var x=d;var R=p;var B=v;var O=g;var k=y;var C=m;var N=w;var P=S;var V=_;var L=b;var H=E;var K=D;var U=M;var j=T;var q=I;var F=A;for(var z=0;z<80;z++){var G;var Y;var W=l[z];if(z<16){Y=W.high=0|t[e+2*z];G=W.low=0|t[e+2*z+1];}else {var J=l[z-15];var Z=J.high;var $=J.low;var X=(Z>>>1|$<<31)^(Z>>>8|$<<24)^Z>>>7;var Q=($>>>1|Z<<31)^($>>>8|Z<<24)^($>>>7|Z<<25);var tt=l[z-2];var et=tt.high;var rt=tt.low;var it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6;var nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26);var st=l[z-7];var at=st.high;var ot=st.low;var ut=l[z-16];var ct=ut.high;var lt=ut.low;G=Q+ot;Y=X+at+(G>>>0<Q>>>0?1:0);G+=nt;Y=Y+it+(G>>>0<nt>>>0?1:0);G+=lt;Y=Y+ct+(G>>>0<lt>>>0?1:0);W.high=Y;W.low=G;}var ft=V&H^~V&U;var ht=L&K^~L&j;var dt=x&B^x&k^B&k;var pt=R&O^R&C^O&C;var vt=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7);var gt=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7);var yt=(V>>>14|L<<18)^(V>>>18|L<<14)^(V<<23|L>>>9);var mt=(L>>>14|V<<18)^(L>>>18|V<<14)^(L<<23|V>>>9);var wt=c[z];var St=wt.high;var _t=wt.low;var bt=F+mt;var Et=q+yt+(bt>>>0<F>>>0?1:0);var bt=bt+ht;var Et=Et+ft+(bt>>>0<ht>>>0?1:0);var bt=bt+_t;var Et=Et+St+(bt>>>0<_t>>>0?1:0);var bt=bt+G;var Et=Et+Y+(bt>>>0<G>>>0?1:0);var Dt=gt+pt;var Mt=vt+dt+(Dt>>>0<gt>>>0?1:0);q=U;F=j;U=H;j=K;H=V;K=L;L=P+bt|0;V=N+Et+(L>>>0<P>>>0?1:0)|0;N=k;P=C;k=B;C=O;B=x;O=R;R=bt+Dt|0;x=Et+Mt+(R>>>0<bt>>>0?1:0)|0;}p=i.low=p+R;i.high=d+x+(p>>>0<R>>>0?1:0);g=n.low=g+O;n.high=v+B+(g>>>0<O>>>0?1:0);m=s.low=m+C;s.high=y+k+(m>>>0<C>>>0?1:0);S=a.low=S+P;a.high=w+N+(S>>>0<P>>>0?1:0);b=o.low=b+L;o.high=_+V+(b>>>0<L>>>0?1:0);D=u.low=D+K;u.high=E+H+(D>>>0<K>>>0?1:0);T=f.low=T+j;f.high=M+U+(T>>>0<j>>>0?1:0);A=h.low=A+F;h.high=I+q+(A>>>0<F>>>0?1:0);},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(r/4294967296);e[(i+128>>>10<<5)+31]=r;t.sigBytes=4*e.length;this._process();var n=this._hash.toX32();return n},clone:function(){var t=i.clone.call(this);t._hash=this._hash.clone();return t},blockSize:1024/32});e.SHA512=i._createHelper(f);e.HmacSHA512=i._createHmacHelper(f);})();return t.SHA512}));},4253:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.BlockCipher;var s=e.algo;var a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4];var o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32];var u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}];var l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var f=s.DES=n.extend({_doReset:function(){var t=this._key;var e=t.words;var r=[];for(var i=0;i<56;i++){var n=a[i]-1;r[i]=e[n>>>5]>>>31-n%32&1;}var s=this._subKeys=[];for(var c=0;c<16;c++){var l=s[c]=[];var f=u[c];for(var i=0;i<24;i++){l[i/6|0]|=r[(o[i]-1+f)%28]<<31-i%6;l[4+(i/6|0)]|=r[28+(o[i+24]-1+f)%28]<<31-i%6;}l[0]=l[0]<<1|l[0]>>>31;for(var i=1;i<7;i++)l[i]=l[i]>>>4*(i-1)+3;l[7]=l[7]<<5|l[7]>>>27;}var h=this._invSubKeys=[];for(var i=0;i<16;i++)h[i]=s[15-i];},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys);},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys);},_doCryptBlock:function(t,e,r){this._lBlock=t[e];this._rBlock=t[e+1];h.call(this,4,252645135);h.call(this,16,65535);d.call(this,2,858993459);d.call(this,8,16711935);h.call(this,1,1431655765);for(var i=0;i<16;i++){var n=r[i];var s=this._lBlock;var a=this._rBlock;var o=0;for(var u=0;u<8;u++)o|=c[u][((a^n[u])&l[u])>>>0];this._lBlock=a;this._rBlock=s^o;}var f=this._lBlock;this._lBlock=this._rBlock;this._rBlock=f;h.call(this,1,1431655765);d.call(this,8,16711935);d.call(this,2,858993459);h.call(this,16,65535);h.call(this,4,252645135);t[e]=this._lBlock;t[e+1]=this._rBlock;},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r;this._lBlock^=r<<t;}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r;this._rBlock^=r<<t;}e.DES=n._createHelper(f);var p=s.TripleDES=n.extend({_doReset:function(){var t=this._key;var e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2);var n=e.length<4?e.slice(0,2):e.slice(2,4);var s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(i.create(r));this._des2=f.createEncryptor(i.create(n));this._des3=f.createEncryptor(i.create(s));},encryptBlock:function(t,e){this._des1.encryptBlock(t,e);this._des2.decryptBlock(t,e);this._des3.encryptBlock(t,e);},decryptBlock:function(t,e){this._des3.decryptBlock(t,e);this._des2.encryptBlock(t,e);this._des1.decryptBlock(t,e);},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=n._createHelper(p);})();return t.TripleDES}));},4938:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=r.x64={};a.Word=n.extend({init:function(t,e){this.high=t;this.low=e;}});a.WordArray=n.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=8*t.length;},toX32:function(){var t=this.words;var e=t.length;var r=[];for(var i=0;i<e;i++){var n=t[i];r.push(n.high);r.push(n.low);}return s.create(r,this.sigBytes)},clone:function(){var t=n.clone.call(this);var e=t.words=this.words.slice(0);var r=e.length;for(var i=0;i<r;i++)e[i]=e[i].clone();return t}});})();return t}));},3118:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ErrorCode=void 0;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["CLIENT_ID_NOT_FOUND"]=1]="CLIENT_ID_NOT_FOUND";t[t["OPERATION_TOO_OFTEN"]=2]="OPERATION_TOO_OFTEN";t[t["REPEAT_MESSAGE"]=3]="REPEAT_MESSAGE";t[t["TIME_OUT"]=4]="TIME_OUT";})(e.ErrorCode||(e.ErrorCode={}));},5987:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const n=i(r(127));const s=i(r(1901));const a=i(r(1754));const o=i(r(1237));var u;(function(t){function e(t){o.default.debugMode=t;o.default.info(`setDebugMode: ${t}`);}t.setDebugMode=e;function r(t){try{s.default.init(t);}catch(t){o.default.error(`init error`,t);}}t.init=r;function i(t){try{if(!t.url)throw new Error("invalid url");if(!t.key||!t.keyId)throw new Error("invalid key or keyId");a.default.socketUrl=t.url;a.default.publicKeyId=t.keyId;a.default.publicKey=t.key;}catch(t){o.default.error(`setSocketServer error`,t);}}t.setSocketServer=i;function u(t){try{s.default.enableSocket(t);}catch(t){o.default.error(`enableSocket error`,t);}}t.enableSocket=u;function c(){return n.default.SDK_VERSION}t.getVersion=c;})(u||(u={}));t.exports=u;},2852:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4806));const s=i(r(3396));const a=i(r(6565));const o=i(r(5912));const u=i(r(3174));const c=i(r(4698));const l=i(r(87));const f=i(r(523));const h=i(r(7252));const d=i(r(4668));const p=i(r(3072));const v=i(r(1996));const g=i(r(9342));const y=i(r(155));const m=i(r(3751));var w;(function(t){let e;let r;let i;function w(){if("undefined"!=typeof uni){e=new d.default;r=new p.default;i=new v.default;}else if("undefined"!=typeof tt){e=new l.default;r=new f.default;i=new h.default;}else if("undefined"!=typeof my){e=new n.default;r=new s.default;i=new a.default;}else if("undefined"!=typeof wx){e=new g.default;r=new y.default;i=new m.default;}else if("undefined"!=typeof window){e=new o.default;r=new u.default;i=new c.default;}}function S(){if(!e)w();return e}t.getDevice=S;function _(){if(!r)w();return r}t.getStorage=_;function b(){if(!i)w();return i}t.getWebSocket=b;})(w||(w={}));e["default"]=w;},7406:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){function e(){return n.default.getDevice().os()}t.os=e;function r(){return n.default.getDevice().osVersion()}t.osVersion=r;function i(){return n.default.getDevice().model()}t.model=i;function s(){return n.default.getDevice().brand()}t.brand=s;function a(){return n.default.getDevice().platform()}t.platform=a;function o(){return n.default.getDevice().platformVersion()}t.platformVersion=o;function u(){return n.default.getDevice().platformId()}t.platformId=u;function c(){return n.default.getDevice().language()}t.language=c;function l(){let t=n.default.getDevice().userAgent;if(t)return t();return ""}t.userAgent=l;function f(t){n.default.getDevice().getNetworkType(t);}t.getNetworkType=f;function h(t){n.default.getDevice().onNetworkStatusChange(t);}t.onNetworkStatusChange=h;})(s||(s={}));e["default"]=s;},7071:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(358));const a=i(r(1236));const o=r(53);const u=i(r(1571));const c=i(r(1237));const l=i(r(2852));const f=i(r(9934));var h;(function(t){let e;let r=false;let i=false;t.allowReconnect=true;function h(){return r&&i}t.isAvailable=h;function d(e){if(!t.allowReconnect)return;setTimeout((function(){p();}),e);}t.reconnect=d;function p(){t.allowReconnect=true;if(!n.default.networkConnected){c.default.info(`connect failed, network is not available`);return}if(i||r)return;let s=n.default.socketUrl;try{let t=f.default.getSync(f.default.KEY_REDIRECT_SERVER,"");if(t){let e=o.RedirectServerData.parse(t);let r=e.addressList[0].split(",");let i=r[0];let n=Number(r[1]);let a=(new Date).getTime();if(a-e.time<1e3*n)s=i;}}catch(t){}e=l.default.getWebSocket().connect({url:s,success:function(){i=true;v();},fail:function(){i=false;m();}});e.onOpen(w);e.onClose(b);e.onError(_);e.onMessage(S);}t.connect=p;function v(){if(i&&r){s.default.create().send();u.default.getInstance().start();}}function g(t){e?.close({reason:t,success:function(t){},fail:function(t){m();}});}t.close=g;function y(t){if(r&&r)e?.send({data:t,success:function(t){},fail:function(t){}});else throw new Error(`socket not connect`)}t.send=y;function m(t){i=false;r=false;u.default.getInstance().cancel();if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online});}if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online});}d(1e3);}let w=function(t){r=true;v();};let S=function(t){try{t.data;u.default.getInstance().refresh();a.default.receiveMessage(t.data);}catch(t){}};let _=function(t){g(`socket error`);};let b=function(t){m();};})(h||(h={}));e["default"]=h;},9934:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){t.KEY_APPID="getui_appid";t.KEY_CID="getui_cid";t.KEY_SESSION="getui_session";t.KEY_REGID="getui_regid";t.KEY_SOCKET_URL="getui_socket_url";t.KEY_DEVICE_ID="getui_deviceid";t.KEY_ADD_PHONE_INFO_TIME="getui_api_time";t.KEY_BIND_ALIAS_TIME="getui_ba_time";t.KEY_SET_TAG_TIME="getui_st_time";t.KEY_REDIRECT_SERVER="getui_redirect_server";function e(t){n.default.getStorage().set(t);}t.set=e;function r(t,e){n.default.getStorage().setSync(t,e);}t.setSync=r;function i(t){n.default.getStorage().get(t);}t.get=i;function s(t,e){let r=n.default.getStorage().getSync(t);return r?r:e}t.getSync=s;})(s||(s={}));e["default"]=s;},4806:t=>{class e{constructor(){this.systemInfo=my.getSystemInfoSync();}os(){return this.systemInfo?.platform}osVersion(){return this.systemInfo?.system}model(){return this.systemInfo?.model}brand(){return this.systemInfo?.brand}platform(){return "MP-ALIPAY"}platformVersion(){return this.systemInfo.app+" "+this.systemInfo.version}platformId(){return my.getAppIdSync()}language(){return this.systemInfo?.language}getNetworkType(t){my.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType});},fail:()=>{t.fail?.call(t.fail,"");}});}onNetworkStatusChange(t){my.onNetworkStatusChange(t);}}t.exports=e;},3396:t=>{class e{set(t){my.setStorage({key:t.key,data:t.data,success:t.success,fail:t.fail});}setSync(t,e){my.setStorageSync({key:t,data:e});}get(t){my.getStorage({key:t.key,success:t.success,fail:t.fail,complete:t.complete});}getSync(t){return my.getStorageSync({key:t}).data}}t.exports=e;},6565:t=>{class e{connect(t){my.connectSocket({url:t.url,header:t.header,method:t.method,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:t=>{my.onSocketMessage.call(my.onSocketMessage,(e=>{t.call(t,{data:e?e.data:""});}));},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}t.exports=e;},5912:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{os(){let t=window.navigator.userAgent.toLowerCase();if(t.indexOf("android")>0||t.indexOf("adr")>0)return "android";if(!!t.match(/\(i[^;]+;( u;)? cpu.+mac os x/))return "ios";if(t.indexOf("windows")>0||t.indexOf("win32")>0||t.indexOf("win64")>0)return "windows";if(t.indexOf("macintosh")>0||t.indexOf("mac os")>0)return "mac os";if(t.indexOf("linux")>0)return "linux";if(t.indexOf("unix")>0)return "linux";return "other"}osVersion(){let t=window.navigator.userAgent.toLowerCase();let e=t.substring(t.indexOf(";")+1).trim();if(e.indexOf(";")>0)return e.substring(0,e.indexOf(";")).trim();return e.substring(0,e.indexOf(")")).trim()}model(){return ""}brand(){return ""}platform(){return "H5"}platformVersion(){return ""}platformId(){return ""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(t){t.success?.call(t.success,{networkType:window.navigator.connection.type});}onNetworkStatusChange(t){}}e["default"]=r;},3174:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){window.localStorage.setItem(t.key,t.data);t.success?.call(t.success,"");}setSync(t,e){window.localStorage.setItem(t,e);}get(t){let e=window.localStorage.getItem(t.key);t.success?.call(t.success,e);}getSync(t){return window.localStorage.getItem(t)}}e["default"]=r;},4698:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=new WebSocket(t.url);return {send:t=>{try{e.send(t.data);t.success?.call(t.success,{errMsg:""});}catch(e){t.fail?.call(t.fail,{errMsg:e+""});}},close:t=>{try{e.close(t.code,t.reason);t.success?.call(t.success,{errMsg:""});}catch(e){t.fail?.call(t.fail,{errMsg:e+""});}},onOpen:r=>{e.onopen=e=>{t.success?.call(t.success,"");r({header:""});};},onError:r=>{e.onerror=e=>{t.fail?.call(t.fail,"");r({errMsg:""});};},onMessage:t=>{e.onmessage=e=>{t({data:e.data});};},onClose:t=>{e.onclose=e=>{t(e);};}}}}e["default"]=r;},87:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=tt.getSystemInfoSync();}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return "MP-TOUTIAO"}platformVersion(){return this.systemInfo.appName+" "+this.systemInfo.version}language(){return ""}platformId(){return ""}getNetworkType(t){tt.getNetworkType(t);}onNetworkStatusChange(t){tt.onNetworkStatusChange(t);}}e["default"]=r;},523:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){tt.setStorage(t);}setSync(t,e){tt.setStorageSync(t,e);}get(t){tt.getStorage(t);}getSync(t){return tt.getStorageSync(t)}}e["default"]=r;},7252:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=tt.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r;},4668:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){try{this.systemInfo=uni.getSystemInfoSync();this.accountInfo=uni.getAccountInfoSync();}catch(t){}}os(){return this.systemInfo?this.systemInfo.platform:""}model(){return this.systemInfo?this.systemInfo.model:""}brand(){return this.systemInfo?.brand?this.systemInfo.brand:""}osVersion(){return this.systemInfo?this.systemInfo.system:""}platform(){let t=""; // #ifdef APP-PLUS t="APP-PLUS"; // #endif @@ -95,8 +95,7 @@ uni.onSocketClose(t); // #ifndef MP-ALIPAY e?.onClose(t); // #endif -}}}}e["default"]=r;},9342:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=wx.getSystemInfoSync();}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return "MP-WEIXIN"}platformVersion(){return this.systemInfo.version}language(){return this.systemInfo.language}platformId(){if(wx.canIUse("getAccountInfoSync"))return wx.getAccountInfoSync().miniProgram.appId;return ""}getNetworkType(t){wx.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType});},fail:t.fail});}onNetworkStatusChange(t){wx.onNetworkStatusChange(t);}}e["default"]=r;},155:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){wx.setStorage(t);}setSync(t,e){wx.setStorageSync(t,e);}get(t){wx.getStorage(t);}getSync(t){return wx.getStorageSync(t)}}e["default"]=r;},3751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=wx.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r;},127:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.SDK_VERSION="GTMP-2.0.0";t.DEFAULT_SOCKET_URL="wss://wshz.getui.net:5223/nws";t.SOCKET_PROTOCOL_VERSION="1.0";t.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";t.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b";})(r||(r={}));e["default"]=r;},1901:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(1237));const a=r(3118);const o=i(r(1754));const u=i(r(3854));const c=i(r(9018));const l=i(r(5084));class f{static init(t){if(this.inited)return;try{this.checkAppid(t.appid);this.inited=true;s.default.info(`init: appid=${t.appid}`);o.default.init(t);n.default.connect();}catch(e){this.inited=false;t.onError?.call(t.onError,{error:e});throw e}}static enableSocket(t){this.checkInit();n.default.allowReconnect=t;if(t)n.default.reconnect(0);else n.default.close(`enableSocket ${t}`);}static setTag(t){this.checkInit();if(!o.default.cid){t.setTagResult?.call(t.setTagResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}c.default.create(t.tags,t.setTagResult).send();}static bindAlias(t){this.checkInit();if(!o.default.cid){t.bindAliasResult?.call(t.bindAliasResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}let e=(new Date).getTime();if(e-o.default.lastAliasTime<1*1e3){s.default.error(`bind alias fail: alias option can only be called once a second`);t.bindAliasResult?.call(t.bindAliasResult,{resultCode:a.ErrorCode.OPERATION_TOO_OFTEN,message:"alias option can only be called once a second"});return}u.default.create(t.alias,true,t.bindAliasResult).send();o.default.lastAliasTime=e;}static unbindAlias(t){this.checkInit();if(!o.default.cid){t.unbindAliasResult?.call(t.unbindAliasResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}let e=(new Date).getTime();if(e-o.default.lastAliasTime<1*1e3){s.default.error(`unbindAlias alias fail: alias option can only be called once a second`);t.unbindAliasResult?.call(t.unbindAliasResult,{resultCode:a.ErrorCode.OPERATION_TOO_OFTEN,message:"alias option can only be called once a second"});return}l.default.create(t.alias,t.onlySelf,t.unbindAliasResult).send();o.default.lastAliasTime=e;}static checkInit(){if(!this.inited)throw new Error(`not init, please invoke init method firstly`)}static checkAppid(t){if(null==t||void 0==t||""==t.trim())throw new Error(`invalid appid ${t}`)}}f.inited=false;e["default"]=f;},1754:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(9934));const a=i(r(127));const o=i(r(7071));const u=i(r(1237));const c=i(r(5574));const l=i(r(7406));class f{static init(t){this.appid=c.default.to_getui(t.appid);u.default.info(`getui appid: ${this.appid}`);this.onError=t.onError;this.onClientId=t.onClientId;this.onlineState=t.onlineState;this.onPushMsg=t.onPushMsg;if(this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)){u.default.info("appid changed, clear session and cid");s.default.setSync(s.default.KEY_CID,"");s.default.setSync(s.default.KEY_SESSION,"");}s.default.setSync(s.default.KEY_APPID,this.appid);this.cid=s.default.getSync(s.default.KEY_CID,this.cid);if(this.cid)this.onClientId?.call(this.onClientId,{cid:f.cid});this.session=s.default.getSync(s.default.KEY_SESSION,this.session);this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId);this.regId=s.default.getSync(s.default.KEY_REGID,this.regId);if(!this.regId){this.regId=this.createRegId();s.default.set({key:s.default.KEY_REGID,data:this.regId});}this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let e=this;l.default.getNetworkType({success:t=>{e.networkType=t.networkType;e.networkConnected="none"!=e.networkType&&""!=e.networkType;}});l.default.onNetworkStatusChange((t=>{e.networkConnected=t.isConnected;e.networkType=t.networkType;if(e.networkConnected)o.default.reconnect(0);}));}static createRegId(){return `M-V${n.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let e=16*Math.random()|0,r="x"===t?e:3&e|8;return r.toString(16)}))}}f.appid="";f.cid="";f.regId="";f.session="";f.deviceId="";f.packetId=1;f.online=false;f.socketUrl=a.default.DEFAULT_SOCKET_URL;f.publicKeyId=a.default.SERVER_PUBLIC_KEY_ID;f.publicKey=a.default.SERVER_PUBLIC_KEY;f.lastAliasTime=0;f.networkConnected=true;f.networkType="none";e["default"]=f;},9214:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(9800));const o=r(3118);const u=i(r(1754));class c extends a.default{constructor(){super(...arguments);this.actionMsgData=new l;}static initActionMsg(t,...e){super.initMsg(t);t.command=a.default.Command.CLIENT_MSG;t.data=t.actionMsgData=l.create();return t}static parseActionMsg(t,e){super.parseMsg(t,e);t.actionMsgData=l.parse(t.data);return t}send(){setTimeout((()=>{if(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId)){c.waitingLoginMsgMap.delete(this.actionMsgData.msgId);c.waitingResponseMsgMap.delete(this.actionMsgData.msgId);this.callback?.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"});}}),1e4);if(!u.default.online){c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this);return}if(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED)c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this);super.send();}receive(){}static sendWaitingMessages(){let t=this.waitingLoginMsgMap.keys();let e;while(e=t.next(),!e.done){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value);t?.send();}}static getWaitingResponseMessage(t){return c.waitingResponseMsgMap.get(t)}static removeWaitingResponseMessage(t){let e=c.waitingResponseMsgMap.get(t);if(e)c.waitingResponseMsgMap.delete(t);return e}}c.ServerAction=(n=class{},n.PUSH_MESSAGE="pushmessage",n.REDIRECT_SERVER="redirect_server",n.ADD_PHONE_INFO_RESULT="addphoneinfo",n.SET_MODE_RESULT="set_mode_result",n.SET_TAG_RESULT="settag_result",n.BIND_ALIAS_RESULT="response_bind",n.UNBIND_ALIAS_RESULT="response_unbind",n.FEED_BACK_RESULT="pushmessage_feedback",n.RECEIVED="received",n);c.ClientAction=(s=class{},s.ADD_PHONE_INFO="addphoneinfo",s.SET_MODE="set_mode",s.FEED_BACK="pushmessage_feedback",s.SET_TAGS="set_tag",s.BIND_ALIAS="bind_alias",s.UNBIND_ALIAS="unbind_alias",s.RECEIVED="received",s);c.waitingLoginMsgMap=new Map;c.waitingResponseMsgMap=new Map;class l{constructor(){this.appId="";this.cid="";this.msgId="";this.msgAction="";this.msgData="";this.msgExtraData="";}static create(){let t=new l;t.appId=u.default.appid;t.cid=u.default.cid;t.msgId=(2147483647&(new Date).getTime()).toString();return t}static parse(t){let e=new l;let r=JSON.parse(t);e.appId=r.appId;e.cid=r.cid;e.msgId=r.msgId;e.msgAction=r.msgAction;e.msgData=r.msgData;e.msgExtraData=r.msgExtraData;return e}}e["default"]=c;},708:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7406));const s=i(r(9934));const a=i(r(127));const o=r(3118);const u=i(r(9214));const c=i(r(1754));class l extends u.default{constructor(){super(...arguments);this.addPhoneInfoData=new f;}static create(){let t=new l;super.initActionMsg(t);t.callback=e=>{if(e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){t.send();}),30*1e3);else s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});};t.actionMsgData.msgAction=u.default.ClientAction.ADD_PHONE_INFO;t.addPhoneInfoData=f.create();t.actionMsgData.msgData=JSON.stringify(t.addPhoneInfoData);return t}send(){let t=(new Date).getTime();let e=s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);if(t-e<24*60*60*1e3)return;super.send();}}class f{constructor(){this.model="";this.brand="";this.system_version="";this.version="";this.deviceid="";this.type="";}static create(){let t=new f;t.model=n.default.model();t.brand=n.default.brand();t.system_version=n.default.osVersion();t.version=a.default.SDK_VERSION;t.device_token="";t.imei="";t.oaid="";t.mac="";t.idfa="";t.type="MINIPROGRAM";t.deviceid=`${t.type}-${c.default.deviceId}`;t.extra={os:n.default.os(),platform:n.default.platform(),platformVersion:n.default.platformVersion(),platformId:n.default.platformId(),language:n.default.language(),userAgent:n.default.userAgent()};return t}}e["default"]=l;},3854:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.bindAliasTagData=new o;}static create(t,e,r){let i=new a;super.initActionMsg(i);i.bindAliasTagData=o.create(t,e);i.callback=r;i.actionMsgData.msgAction=s.default.ClientAction.BIND_ALIAS;i.actionMsgData.msgData=JSON.stringify(i.bindAliasTagData);return i}}class o{constructor(){this.alias="";this.cid="";this.appid="";this.sn="";this.is_self="";}static create(t,e){let r=new o;r.alias=t;r.cid=n.default.cid;r.appid=n.default.appid;r.sn=(new Date).getTime().toString();r.is_self=e?"1":"0";return r}}e["default"]=a;},652:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(1754));const o=r(3118);const u=i(r(9214));class c extends u.default{constructor(){super(...arguments);this.feedbackData=new l;}static create(t,e){let r=new c;super.initActionMsg(r);r.callback=t=>{if(t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){r.send();}),30*1e3);};r.feedbackData=l.create(t,e);r.actionMsgData.msgAction=u.default.ClientAction.FEED_BACK;r.actionMsgData.msgData=JSON.stringify(r.feedbackData);return r}send(){super.send();}}c.ActionId=(n=class{},n.RECEIVE="0",n.MP_RECEIVE="210000",n.WEB_RECEIVE="220000",n.BEGIN="1",n);c.RESULT=(s=class{},s.OK="ok",s);class l{constructor(){this.messageid="";this.appkey="";this.appid="";this.taskid="";this.actionid="";this.result="";this.timestamp="";}static create(t,e){let r=new l;r.messageid=t.pushMessageData.messageid;r.appkey=t.pushMessageData.appKey;r.appid=a.default.appid;r.taskid=t.pushMessageData.taskId;r.actionid=e;r.result=c.RESULT.OK;r.timestamp=(new Date).getTime().toString();return r}}e["default"]=c;},9018:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.setTagData=new o;}static create(t,e){let r=new a;super.initActionMsg(r);r.setTagData=o.create(t);r.callback=e;r.actionMsgData.msgAction=s.default.ClientAction.SET_TAGS;r.actionMsgData.msgData=JSON.stringify(r.setTagData);return r}}class o{constructor(){this.appid="";this.tags="";this.sn="";}static create(t){let e=new o;e.appid=n.default.appid;e.tags=u(t);e.sn=(new Date).getTime().toString();return e}}function u(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}e["default"]=a;},5084:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.unbindAliasData=new o;}static create(t,e,r){let i=new a;super.initActionMsg(i);i.unbindAliasData=o.create(t,e);i.callback=r;i.actionMsgData.msgAction=s.default.ClientAction.UNBIND_ALIAS;i.actionMsgData.msgData=JSON.stringify(i.unbindAliasData);return i}}class o{constructor(){this.alias="";this.cid="";this.appid="";this.sn="";this.is_self="";}static create(t,e){let r=new o;r.alias=t;r.cid=n.default.cid;r.appid=n.default.appid;r.sn=(new Date).getTime().toString();r.is_self=e?"1":"0";return r}}e["default"]=a;},6561:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));class s extends n.default{static create(){let t=new s;super.initMsg(t);t.command=n.default.Command.HEART_BEAT;return t}}e["default"]=s;},358:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(1754));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.keyNegotiateData=new u;}static create(){let t=new o;super.initMsg(t);t.command=a.default.Command.KEY_NEGOTIATE;n.default.resetKey();t.data=t.keyNegotiateData=u.create();return t}send(){super.send();}}class u{constructor(){this.appId="";this.rsaPublicKeyId="";this.algorithm="";this.secretKey="";this.iv="";}static create(){let t=new u;t.appId=s.default.appid;t.rsaPublicKeyId=s.default.publicKeyId;t.algorithm="AES";t.secretKey=n.default.getEncryptedSecretKey();t.iv=n.default.getEncryptedIV();return t}}e["default"]=o;},5301:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(323));const a=i(r(2544));const o=i(r(1237));const u=i(r(1754));class c extends n.default{constructor(){super(...arguments);this.keyNegotiateResultData=new l;}static parse(t){let e=new c;super.parseMsg(e,t);e.keyNegotiateResultData=l.parse(e.data);return e}receive(){if(0!=this.keyNegotiateResultData.errorCode){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}let t=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(t[0].trim().toLowerCase())||!s.default.modeMap.has(t[1].trim().toLowerCase())||!s.default.paddingMap.has(t[2].trim().toLowerCase())){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}s.default.setEncryptParams(t[0].trim().toLowerCase(),t[1].trim().toLowerCase(),t[2].trim().toLowerCase());a.default.create().send();}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.encryptType="";}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.encryptType=r.encryptType;return e}}e["default"]=c;},2544:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(323));const a=i(r(9800));const o=i(r(3527));class u extends a.default{constructor(){super(...arguments);this.loginData=new c;}static create(){let t=new u;super.initMsg(t);t.command=a.default.Command.LOGIN;t.data=t.loginData=c.create();return t}send(){if(!this.loginData.session||n.default.cid!=s.default.md5Hex(this.loginData.session)){o.default.create().send();return}super.send();}}class c{constructor(){this.appId="";this.session="";}static create(){let t=new c;t.appId=n.default.appid;t.session=n.default.session;return t}}e["default"]=u;},8734:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9800));const a=i(r(1754));const o=i(r(9214));const u=i(r(708));const c=i(r(2544));class l extends s.default{constructor(){super(...arguments);this.loginResultData=new f;}static parse(t){let e=new l;super.parseMsg(e,t);e.loginResultData=f.parse(e.data);return e}receive(){if(0!=this.loginResultData.errorCode){this.data;a.default.session=a.default.cid="";n.default.setSync(n.default.KEY_CID,"");n.default.setSync(n.default.KEY_SESSION,"");c.default.create().send();return}if(!a.default.online){a.default.online=true;a.default.onlineState?.call(a.default.onlineState,{online:a.default.online});}o.default.sendWaitingMessages();u.default.create().send();}}class f{constructor(){this.errorCode=-1;this.errorMsg="";this.session="";}static parse(t){let e=new f;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.session=r.session;return e}}e["default"]=l;},9800:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(350));const a=i(r(7071));const o=i(r(127));const u=i(r(1754));class c{constructor(){this.version="";this.command=0;this.packetId=0;this.timeStamp=0;this.data="";this.signature="";}static initMsg(t,...e){t.version=o.default.SOCKET_PROTOCOL_VERSION;t.command=0;t.timeStamp=(new Date).getTime();return t}static parseMsg(t,e){let r=JSON.parse(e);t.version=r.version;t.command=r.command;t.packetId=r.packetId;t.timeStamp=r.timeStamp;t.data=r.data;t.signature=r.signature;return t}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){if(!a.default.isAvailable())return;this.packetId=u.default.packetId++;this.data=JSON.stringify(this.data);this.stringify();if(this.command!=c.Command.HEART_BEAT){s.default.sign(this);if(this.data&&this.command!=c.Command.KEY_NEGOTIATE)s.default.encrypt(this);}a.default.send(this.stringify());}}c.Command=(n=class{},n.HEART_BEAT=0,n.KEY_NEGOTIATE=1,n.KEY_NEGOTIATE_RESULT=16,n.REGISTER=2,n.REGISTER_RESULT=32,n.LOGIN=3,n.LOGIN_RESULT=48,n.LOGOUT=4,n.LOGOUT_RESULT=64,n.CLIENT_MSG=5,n.SERVER_MSG=80,n.SERVER_CLOSE=96,n.REDIRECT_SERVER=112,n);e["default"]=c;},350:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));var s;(function(t){function e(t){t.data=n.default.encrypt(t.data);}t.encrypt=e;function r(t){t.data=n.default.decrypt(t.data);}t.decrypt=r;function i(t){t.signature=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);}t.sign=i;function s(t){let e=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);if(t.signature!=e)throw new Error(`msg signature vierfy failed`)}t.verify=s;})(s||(s={}));e["default"]=s;},1236:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(5301));const s=i(r(8734));const a=i(r(9800));const o=i(r(7078));const u=i(r(538));const c=i(r(7821));const l=i(r(217));const f=i(r(7156));const h=i(r(53));const d=i(r(9214));const p=i(r(7303));const v=i(r(6063));const g=i(r(7923));const y=i(r(350));const m=i(r(9214));const _=i(r(6254));const w=i(r(5035));class S{static receiveMessage(t){let e=a.default.parseMsg(new a.default,t);if(e.command==a.default.Command.HEART_BEAT)return;if(e.command!=a.default.Command.KEY_NEGOTIATE_RESULT&&e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.decrypt(e);if(e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.verify(e);switch(e.command){case a.default.Command.KEY_NEGOTIATE_RESULT:n.default.parse(e.stringify()).receive();break;case a.default.Command.REGISTER_RESULT:o.default.parse(e.stringify()).receive();break;case a.default.Command.LOGIN_RESULT:s.default.parse(e.stringify()).receive();break;case a.default.Command.SERVER_MSG:this.receiveActionMsg(e.stringify());break;case a.default.Command.SERVER_CLOSE:w.default.parse(e.stringify()).receive();break;case a.default.Command.REDIRECT_SERVER:h.default.parse(e.stringify()).receive();break;}}static receiveActionMsg(t){let e=m.default.parseActionMsg(new m.default,t);if(e.actionMsgData.msgAction!=d.default.ServerAction.RECEIVED&&e.actionMsgData.msgAction!=d.default.ServerAction.REDIRECT_SERVER){let t=JSON.parse(e.actionMsgData.msgData);_.default.create(t.id).send();}switch(e.actionMsgData.msgAction){case d.default.ServerAction.PUSH_MESSAGE:f.default.parse(t).receive();break;case d.default.ServerAction.ADD_PHONE_INFO_RESULT:u.default.parse(t).receive();break;case d.default.ServerAction.SET_MODE_RESULT:p.default.parse(t).receive();break;case d.default.ServerAction.SET_TAG_RESULT:v.default.parse(t).receive();break;case d.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(t).receive();break;case d.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(t).receive();break;case d.default.ServerAction.FEED_BACK_RESULT:l.default.parse(t).receive();break;case d.default.ServerAction.RECEIVED:_.default.parse(t).receive();break}}}e["default"]=S;},6254:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.receivedData=new u;}static create(t){let e=new o;super.initActionMsg(e);e.callback=t=>{if(t.resultCode!=n.ErrorCode.SUCCESS&&t.resultCode!=n.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){e.send();}),3*1e3);};e.actionMsgData.msgAction=a.default.ClientAction.RECEIVED;e.receivedData=u.create(t);e.actionMsgData.msgData=JSON.stringify(e.receivedData);return e}static parse(t){let e=new o;super.parseActionMsg(e,t);e.receivedData=u.parse(e.data);return e}receive(){let t=a.default.getWaitingResponseMessage(this.actionMsgData.msgId);if(t&&t.actionMsgData.msgAction==a.default.ClientAction.ADD_PHONE_INFO||t&&t.actionMsgData.msgAction==a.default.ClientAction.FEED_BACK){a.default.removeWaitingResponseMessage(t.actionMsgData.msgId);t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}send(){super.send();}}class u{constructor(){this.msgId="";this.cid="";}static create(t){let e=new u;e.cid=s.default.cid;e.msgId=t;return e}static parse(t){let e=new u;let r=JSON.parse(t);e.cid=r.cid;e.msgId=r.msgId;return e}}e["default"]=o;},53:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.RedirectServerData=void 0;const n=i(r(7071));const s=i(r(9934));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.redirectServerData=new u;}static parse(t){let e=new o;super.parseMsg(e,t);e.redirectServerData=u.parse(e.data);return e}receive(){this.redirectServerData;s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData));n.default.close("redirect server");n.default.reconnect(this.redirectServerData.delay);}}class u{constructor(){this.addressList=[];this.delay=0;this.loc="";this.conf="";this.time=0;}static parse(t){let e=new u;let r=JSON.parse(t);e.addressList=r.addressList;e.delay=r.delay;e.loc=r.loc;e.conf=r.conf;e.time=r.time?r.time:(new Date).getTime();return e}}e.RedirectServerData=u;e["default"]=o;},3527:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.registerData=new o;}static create(){let t=new a;super.initMsg(t);t.command=s.default.Command.REGISTER;t.data=t.registerData=o.create();return t}send(){super.send();}}class o{constructor(){this.appId="";this.regId="";}static create(){let t=new o;t.appId=n.default.appid;t.regId=n.default.regId;return t}}e["default"]=a;},7078:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(9934));const a=i(r(1754));const o=i(r(2544));const u=i(r(1237));class c extends n.default{constructor(){super(...arguments);this.registerResultData=new l;}static parse(t){let e=new c;super.parseMsg(e,t);e.registerResultData=l.parse(e.data);return e}receive(){if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session){u.default.error(`register fail: ${this.data}`);a.default.onError?.call(a.default.onError,{error:`register fail: ${this.data}`});return}if(a.default.cid!=this.registerResultData.cid)s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);a.default.cid=this.registerResultData.cid;a.default.onClientId?.call(a.default.onClientId,{cid:a.default.cid});s.default.set({key:s.default.KEY_CID,data:a.default.cid});a.default.session=this.registerResultData.session;s.default.set({key:s.default.KEY_SESSION,data:a.default.session});a.default.deviceId=this.registerResultData.deviceId;s.default.set({key:s.default.KEY_DEVICE_ID,data:a.default.deviceId});o.default.create().send();}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.cid="";this.session="";this.deviceId="";this.regId="";}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.cid=r.cid;e.session=r.session;e.deviceId=r.deviceId;e.regId=r.regId;return e}}e["default"]=c;},5035:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.serverCloseData=new o;}static parse(t){let e=new a;super.parseMsg(e,t);e.serverCloseData=o.parse(e.data);return e}receive(){this.data;if(20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code)n.default.allowReconnect=false;n.default.close();}}class o{constructor(){this.code=-1;this.msg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.code=r.code;e.msg=r.msg;return e}}e["default"]=a;},538:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.addPhoneInfoResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.addPhoneInfoResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.addPhoneInfoResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg});n.default.set({key:n.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});}}class o{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=a;},7821:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.bindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.bindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`bind alias result`,this.bindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},217:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.feedbackResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.feedbackResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.feedbackResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}class o{constructor(){this.actionId="";this.taskId="";this.result="";}static parse(t){let e=new o;let r=JSON.parse(t);e.actionId=r.actionId;e.taskId=r.taskId;e.result=r.result;return e}}e["default"]=a;},7156:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(1754));const a=i(r(9214));const o=i(r(652));class u extends a.default{constructor(){super(...arguments);this.pushMessageData=new c;}static parse(t){let e=new u;super.parseActionMsg(e,t);e.pushMessageData=c.parse(e.actionMsgData.msgData);return e}receive(){this.pushMessageData;if(this.pushMessageData.appId!=s.default.appid||!this.pushMessageData.messageid||!this.pushMessageData.taskId)this.stringify();o.default.create(this,o.default.ActionId.RECEIVE).send();o.default.create(this,o.default.ActionId.MP_RECEIVE).send();if(this.actionMsgData.msgExtraData&&s.default.onPushMsg)s.default.onPushMsg?.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData});}}class c{constructor(){this.id="";this.appKey="";this.appId="";this.messageid="";this.taskId="";this.actionChain=[];this.cdnType="";}static parse(t){let e=new c;let r=JSON.parse(t);e.id=r.id;e.appKey=r.appKey;e.appId=r.appId;e.messageid=r.messageid;e.taskId=r.taskId;e.actionChain=r.actionChain;e.cdnType=r.cdnType;return e}}(n=class{},n.GO_TO="goto",n.TRANSMIT="transmit",n);e["default"]=u;},7303:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9214));class s extends n.default{constructor(){super(...arguments);this.setModeResultData=new a;}static parse(t){let e=new s;super.parseActionMsg(e,t);e.setModeResultData=a.parse(e.actionMsgData.msgData);return e}receive(){this.setModeResultData;let t=n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg});}}class a{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new a;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=s;},6063:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.setTagResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.setTagResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`set tag result`,this.setTagResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg});n.default.set({key:n.default.KEY_SET_TAG_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=0;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},7923:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.unbindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.unbindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`unbind alias result`,this.unbindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},9285:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(t){this.delay=10;this.delay=t;}start(){this.cancel();let t=this;this.timer=setInterval((function(){t.run();}),this.delay);}cancel(){if(this.timer)clearInterval(this.timer);}}e["default"]=r;},1571:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6561));const a=i(r(9285));class o extends a.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send();}refresh(){this.delay=60*1e3;this.start();}}o.INTERVAL=60*1e3;o.InstanceHolder=(n=class{},n.instance=new o(o.INTERVAL),n);e["default"]=o;},5574:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4736));const s=i(r(323));var a;(function(t){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let r=(0, n.default)("9223372036854775808");function i(t){let e=a(t);let r=o(e);let i=r[1];let n=r[0];return u(i)+u(n)}t.to_getui=i;function a(t){let e=s.default.md5Hex(t);let r=c(e);r[6]&=15;r[6]|=48;r[8]&=63;r[8]|=128;return r}function o(t){let e=(0, n.default)(0);let r=(0, n.default)(0);for(let r=0;r<8;r++)e=e.multiply(256).plus((0, n.default)(255&t[r]));for(let e=8;e<16;e++)r=r.multiply(256).plus((0, n.default)(255&t[e]));return [e,r]}function u(t){if(t>=r)t=r.multiply(2).minus(t);let i="";for(;t>(0, n.default)(0);t=t.divide(62))i+=e.charAt(Number(t.divmod(62).remainder));return i}function c(t){let e=t.length;if(e%2!=0)return [];let r=new Array;for(let i=0;i<e;i+=2)r.push(parseInt(t.substring(i,i+2),16));return r}})(a||(a={}));e["default"]=a;},323:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2620));const s=i(r(1354));const a=i(r(1754));var o;(function(t){let e;let r;let i;let o;let u=new n.default;let c=s.default.mode.CBC;let l=s.default.pad.Pkcs7;let f=s.default.AES;t.algorithmMap=new Map([["aes",s.default.AES]]);t.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]);t.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]);function h(){e=s.default.MD5((new Date).getTime().toString());r=s.default.MD5(e);u.setPublicKey(a.default.publicKey);e.toString(s.default.enc.Hex);r.toString(s.default.enc.Hex);i=u.encrypt(e.toString(s.default.enc.Hex));o=u.encrypt(r.toString(s.default.enc.Hex));}t.resetKey=h;function d(e,r,i){f=t.algorithmMap.get(e);c=t.modeMap.get(r);l=t.paddingMap.get(i);}t.setEncryptParams=d;function p(t){return f.encrypt(t,e,{iv:r,mode:c,padding:l}).toString()}t.encrypt=p;function v(t){return f.decrypt(t,e,{iv:r,mode:c,padding:l}).toString(s.default.enc.Utf8)}t.decrypt=v;function g(t){return s.default.SHA256(t).toString(s.default.enc.Base64)}t.sha256=g;function y(t){return s.default.MD5(t).toString(s.default.enc.Hex)}t.md5Hex=y;function m(){return i?i:""}t.getEncryptedSecretKey=m;function _(){return o?o:""}t.getEncryptedIV=_;})(o||(o={}));e["default"]=o;},1237:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{static info(...t){if(this.debugMode)console.info(`[GtPush]`,t);}static error(...t){console.error(`[GtPush]`,t);}}r.debugMode=false;e["default"]=r;},2620:(t,e,r)=>{r.r(e);r.d(e,{JSEncrypt:()=>_t,default:()=>wt});var i="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return i.charAt(t)}function s(t,e){return t&e}function a(t,e){return t|e}function o(t,e){return t^e}function u(t,e){return t&~e}function c(t){if(0==t)return -1;var e=0;if(0==(65535&t)){t>>=16;e+=16;}if(0==(255&t)){t>>=8;e+=8;}if(0==(15&t)){t>>=4;e+=4;}if(0==(3&t)){t>>=2;e+=2;}if(0==(1&t))++e;return e}function l(t){var e=0;while(0!=t){t&=t-1;++e;}return e}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="=";function d(t){var e;var r;var i="";for(e=0;e+3<=t.length;e+=3){r=parseInt(t.substring(e,e+3),16);i+=f.charAt(r>>6)+f.charAt(63&r);}if(e+1==t.length){r=parseInt(t.substring(e,e+1),16);i+=f.charAt(r<<2);}else if(e+2==t.length){r=parseInt(t.substring(e,e+2),16);i+=f.charAt(r>>2)+f.charAt((3&r)<<4);}while((3&i.length)>0)i+=h;return i}function p(t){var e="";var r;var i=0;var s=0;for(r=0;r<t.length;++r){if(t.charAt(r)==h)break;var a=f.indexOf(t.charAt(r));if(a<0)continue;if(0==i){e+=n(a>>2);s=3&a;i=1;}else if(1==i){e+=n(s<<2|a>>4);s=15&a;i=2;}else if(2==i){e+=n(s);e+=n(a>>2);s=3&a;i=3;}else {e+=n(s<<2|a>>4);e+=n(15&a);i=0;}}if(1==i)e+=n(s<<2);return e}var g;var y={decode:function(t){var e;if(void 0===g){var r="0123456789ABCDEF";var i=" \f\n\r\t \u2028\u2029";g={};for(e=0;e<16;++e)g[r.charAt(e)]=e;r=r.toLowerCase();for(e=10;e<16;++e)g[r.charAt(e)]=e;for(e=0;e<i.length;++e)g[i.charAt(e)]=-1;}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=g[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=2){n[n.length]=s;s=0;a=0;}else s<<=4;}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var m;var _={decode:function(t){var e;if(void 0===m){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i="= \f\n\r\t \u2028\u2029";m=Object.create(null);for(e=0;e<64;++e)m[r.charAt(e)]=e;m["-"]=62;m["_"]=63;for(e=0;e<i.length;++e)m[i.charAt(e)]=-1;}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=m[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=4){n[n.length]=s>>16;n[n.length]=s>>8&255;n[n.length]=255&s;s=0;a=0;}else s<<=6;}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16;n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=_.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return _.decode(t)}};var w=1e13;var S=function(){function t(t){this.buf=[+t||0];}t.prototype.mulAdd=function(t,e){var r=this.buf;var i=r.length;var n;var s;for(n=0;n<i;++n){s=r[n]*t+e;if(s<w)e=0;else {e=0|s/w;s-=e*w;}r[n]=s;}if(e>0)r[n]=e;};t.prototype.sub=function(t){var e=this.buf;var r=e.length;var i;var n;for(i=0;i<r;++i){n=e[i]-t;if(n<0){n+=w;t=1;}else t=0;e[i]=n;}while(0===e[e.length-1])e.pop();};t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");var e=this.buf;var r=e[e.length-1].toString();for(var i=e.length-2;i>=0;--i)r+=(w+e[i]).toString().substring(1);return r};t.prototype.valueOf=function(){var t=this.buf;var e=0;for(var r=t.length-1;r>=0;--r)e=e*w+t[r];return e};t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this};return t}();var b="…";var E=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;var D=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function T(t,e){if(t.length>e)t=t.substring(0,e)+b;return t}var M=function(){function t(e,r){this.hexDigits="0123456789ABCDEF";if(e instanceof t){this.enc=e.enc;this.pos=e.pos;}else {this.enc=e;this.pos=r;}}t.prototype.get=function(t){if(void 0===t)t=this.pos++;if(t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return "string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]};t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)};t.prototype.hexDump=function(t,e,r){var i="";for(var n=t;n<e;++n){i+=this.hexByte(this.get(n));if(true!==r)switch(15&n){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" ";}}return i};t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return false}return true};t.prototype.parseStringISO=function(t,e){var r="";for(var i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r};t.prototype.parseStringUTF=function(t,e){var r="";for(var i=t;i<e;){var n=this.get(i++);if(n<128)r+=String.fromCharCode(n);else if(n>191&&n<224)r+=String.fromCharCode((31&n)<<6|63&this.get(i++));else r+=String.fromCharCode((15&n)<<12|(63&this.get(i++))<<6|63&this.get(i++));}return r};t.prototype.parseStringBMP=function(t,e){var r="";var i;var n;for(var s=t;s<e;){i=this.get(s++);n=this.get(s++);r+=String.fromCharCode(i<<8|n);}return r};t.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e);var n=(r?E:D).exec(i);if(!n)return "Unrecognized time: "+i;if(r){n[1]=+n[1];n[1]+=+n[1]<70?2e3:1900;}i=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4];if(n[5]){i+=":"+n[5];if(n[6]){i+=":"+n[6];if(n[7])i+="."+n[7];}}if(n[8]){i+=" UTC";if("Z"!=n[8]){i+=n[8];if(n[9])i+=":"+n[9];}}return i};t.prototype.parseInteger=function(t,e){var r=this.get(t);var i=r>127;var n=i?255:0;var s;var a="";while(r==n&&++t<e)r=this.get(t);s=e-t;if(0===s)return i?-1:0;if(s>4){a=r;s<<=3;while(0==(128&(+a^n))){a=+a<<1;--s;}a="("+s+" bit)\n";}if(i)r-=256;var o=new S(r);for(var u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return a+o.toString()};t.prototype.parseBitString=function(t,e,r){var i=this.get(t);var n=(e-t-1<<3)-i;var s="("+n+" bit)\n";var a="";for(var o=t+1;o<e;++o){var u=this.get(o);var c=o==e-1?i:0;for(var l=7;l>=c;--l)a+=u>>l&1?"1":"0";if(a.length>r)return s+T(a,r)}return s+a};t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return T(this.parseStringISO(t,e),r);var i=e-t;var n="("+i+" byte)\n";r/=2;if(i>r)e=t+r;for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));if(i>r)n+=b;return n};t.prototype.parseOID=function(t,e,r){var i="";var n=new S;var s=0;for(var a=t;a<e;++a){var o=this.get(a);n.mulAdd(128,127&o);s+=7;if(!(128&o)){if(""===i){n=n.simplify();if(n instanceof S){n.sub(80);i="2."+n.toString();}else {var u=n<80?n<40?0:1:2;i=u+"."+(n-40*u);}}else i+="."+n.toString();if(i.length>r)return T(i,r);n=new S;s=0;}}if(s>0)i+=".incomplete";return i};return t}();var I=function(){function t(t,e,r,i,n){if(!(i instanceof A))throw new Error("Invalid tag value.");this.stream=t;this.header=e;this.length=r;this.tag=i;this.sub=n;}t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return "EOC";case 1:return "BOOLEAN";case 2:return "INTEGER";case 3:return "BIT_STRING";case 4:return "OCTET_STRING";case 5:return "NULL";case 6:return "OBJECT_IDENTIFIER";case 7:return "ObjectDescriptor";case 8:return "EXTERNAL";case 9:return "REAL";case 10:return "ENUMERATED";case 11:return "EMBEDDED_PDV";case 12:return "UTF8String";case 16:return "SEQUENCE";case 17:return "SET";case 18:return "NumericString";case 19:return "PrintableString";case 20:return "TeletexString";case 21:return "VideotexString";case 22:return "IA5String";case 23:return "UTCTime";case 24:return "GeneralizedTime";case 25:return "GraphicString";case 26:return "VisibleString";case 27:return "GeneralString";case 28:return "UniversalString";case 30:return "BMPString"}return "Universal_"+this.tag.tagNumber.toString();case 1:return "Application_"+this.tag.tagNumber.toString();case 2:return "["+this.tag.tagNumber.toString()+"]";case 3:return "Private_"+this.tag.tagNumber.toString()}};t.prototype.content=function(t){if(void 0===this.tag)return null;if(void 0===t)t=1/0;var e=this.posContent();var r=Math.abs(this.length);if(!this.tag.isUniversal()){if(null!==this.sub)return "("+this.sub.length+" elem)";return this.stream.parseOctetString(e,e+r,t)}switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:if(null!==this.sub)return "("+this.sub.length+" elem)";else return "(no elem)";case 12:return T(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return T(this.stream.parseStringISO(e,e+r),t);case 30:return T(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null};t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"};t.prototype.toPrettyString=function(t){if(void 0===t)t="";var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0)e+="+";e+=this.length;if(this.tag.tagConstructed)e+=" (constructed)";else if(this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub)e+=" (encapsulates)";e+="\n";if(null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t);}return e};t.prototype.posStart=function(){return this.stream.pos};t.prototype.posContent=function(){return this.stream.pos+this.header};t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)};t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),true)};t.decodeLength=function(t){var e=t.get();var r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i<r;++i)e=256*e+t.get();return e};t.prototype.getHexStringValue=function(){var t=this.toHexString();var e=2*this.header;var r=2*this.length;return t.substr(e,r)};t.decode=function(e){var r;if(!(e instanceof M))r=new M(e,0);else r=e;var i=new M(r);var n=new A(r);var s=t.decodeLength(r);var a=r.pos;var o=a-i.pos;var u=null;var c=function(){var e=[];if(null!==s){var i=a+s;while(r.pos<i)e[e.length]=t.decode(r);if(r.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var n=t.decode(r);if(n.tag.isEOC())break;e[e.length]=n;}s=a-r.pos;}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(n.tagConstructed)u=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber)if(0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null;}if(null===u){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s);}return new t(i,o,s,n,u)};return t}();var A=function(){function t(t){var e=t.get();this.tagClass=e>>6;this.tagConstructed=0!==(32&e);this.tagNumber=31&e;if(31==this.tagNumber){var r=new S;do{e=t.get();r.mulAdd(128,127&e);}while(128&e);this.tagNumber=r.simplify();}}t.prototype.isUniversal=function(){return 0===this.tagClass};t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber};return t}();var x;var R=0xdeadbeefcafe;var B=15715070==(16777215&R);var O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var k=(1<<26)/O[O.length-1];var C=function(){function t(t,e,r){if(null!=t)if("number"==typeof t)this.fromNumber(t,e,r);else if(null==e&&"string"!=typeof t)this.fromString(t,256);else this.fromString(t,e);}t.prototype.toString=function(t){if(this.s<0)return "-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(4==t)e=2;else return this.toRadix(t);var r=(1<<e)-1;var i;var s=false;var a="";var o=this.t;var u=this.DB-o*this.DB%e;if(o-- >0){if(u<this.DB&&(i=this[o]>>u)>0){s=true;a=n(i);}while(o>=0){if(u<e){i=(this[o]&(1<<u)-1)<<e-u;i|=this[--o]>>(u+=this.DB-e);}else {i=this[o]>>(u-=e)&r;if(u<=0){u+=this.DB;--o;}}if(i>0)s=true;if(s)a+=n(i);}}return s?a:"0"};t.prototype.negate=function(){var e=H();t.ZERO.subTo(this,e);return e};t.prototype.abs=function(){return this.s<0?this.negate():this};t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;e=r-t.t;if(0!=e)return this.s<0?-e:e;while(--r>=0)if(0!=(e=this[r]-t[r]))return e;return 0};t.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};t.prototype.mod=function(e){var r=H();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(t.ZERO)>0)e.subTo(r,r);return r};t.prototype.modPowInt=function(t,e){var r;if(t<256||e.isEven())r=new P(e);else r=new V(e);return this.exp(t,r)};t.prototype.clone=function(){var t=H();this.copyTo(t);return t};t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;else if(0==this.t)return -1}else if(1==this.t)return this[0];else if(0==this.t)return 0;return (this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]};t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24};t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};t.prototype.signum=function(){if(this.s<0)return -1;else if(this.t<=0||1==this.t&&this[0]<=0)return 0;else return 1};t.prototype.toByteArray=function(){var t=this.t;var e=[];e[0]=this.s;var r=this.DB-t*this.DB%8;var i;var n=0;if(t-- >0){if(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r)e[n++]=i|this.s<<this.DB-r;while(t>=0){if(r<8){i=(this[t]&(1<<r)-1)<<8-r;i|=this[--t]>>(r+=this.DB-8);}else {i=this[t]>>(r-=8)&255;if(r<=0){r+=this.DB;--t;}}if(0!=(128&i))i|=-256;if(0==n&&(128&this.s)!=(128&i))++n;if(n>0||i!=this.s)e[n++]=i;}}return e};t.prototype.equals=function(t){return 0==this.compareTo(t)};t.prototype.min=function(t){return this.compareTo(t)<0?this:t};t.prototype.max=function(t){return this.compareTo(t)>0?this:t};t.prototype.and=function(t){var e=H();this.bitwiseTo(t,s,e);return e};t.prototype.or=function(t){var e=H();this.bitwiseTo(t,a,e);return e};t.prototype.xor=function(t){var e=H();this.bitwiseTo(t,o,e);return e};t.prototype.andNot=function(t){var e=H();this.bitwiseTo(t,u,e);return e};t.prototype.not=function(){var t=H();for(var e=0;e<this.t;++e)t[e]=this.DM&~this[e];t.t=this.t;t.s=~this.s;return t};t.prototype.shiftLeft=function(t){var e=H();if(t<0)this.rShiftTo(-t,e);else this.lShiftTo(t,e);return e};t.prototype.shiftRight=function(t){var e=H();if(t<0)this.lShiftTo(-t,e);else this.rShiftTo(t,e);return e};t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+c(this[t]);if(this.s<0)return this.t*this.DB;return -1};t.prototype.bitCount=function(){var t=0;var e=this.s&this.DM;for(var r=0;r<this.t;++r)t+=l(this[r]^e);return t};t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);if(e>=this.t)return 0!=this.s;return 0!=(this[e]&1<<t%this.DB)};t.prototype.setBit=function(t){return this.changeBit(t,a)};t.prototype.clearBit=function(t){return this.changeBit(t,u)};t.prototype.flipBit=function(t){return this.changeBit(t,o)};t.prototype.add=function(t){var e=H();this.addTo(t,e);return e};t.prototype.subtract=function(t){var e=H();this.subTo(t,e);return e};t.prototype.multiply=function(t){var e=H();this.multiplyTo(t,e);return e};t.prototype.divide=function(t){var e=H();this.divRemTo(t,e,null);return e};t.prototype.remainder=function(t){var e=H();this.divRemTo(t,null,e);return e};t.prototype.divideAndRemainder=function(t){var e=H();var r=H();this.divRemTo(t,e,r);return [e,r]};t.prototype.modPow=function(t,e){var r=t.bitLength();var i;var n=Y(1);var s;if(r<=0)return n;else if(r<18)i=1;else if(r<48)i=3;else if(r<144)i=4;else if(r<768)i=5;else i=6;if(r<8)s=new P(e);else if(e.isEven())s=new L(e);else s=new V(e);var a=[];var o=3;var u=i-1;var c=(1<<i)-1;a[1]=s.convert(this);if(i>1){var l=H();s.sqrTo(a[1],l);while(o<=c){a[o]=H();s.mulTo(l,a[o-2],a[o]);o+=2;}}var f=t.t-1;var h;var d=true;var p=H();var v;r=W(t[f])-1;while(f>=0){if(r>=u)h=t[f]>>r-u&c;else {h=(t[f]&(1<<r+1)-1)<<u-r;if(f>0)h|=t[f-1]>>this.DB+r-u;}o=i;while(0==(1&h)){h>>=1;--o;}if((r-=o)<0){r+=this.DB;--f;}if(d){a[h].copyTo(n);d=false;}else {while(o>1){s.sqrTo(n,p);s.sqrTo(p,n);o-=2;}if(o>0)s.sqrTo(n,p);else {v=n;n=p;p=v;}s.mulTo(p,a[h],n);}while(f>=0&&0==(t[f]&1<<r)){s.sqrTo(n,p);v=n;n=p;p=v;if(--r<0){r=this.DB-1;--f;}}}return s.revert(n)};t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||0==e.signum())return t.ZERO;var i=e.clone();var n=this.clone();var s=Y(1);var a=Y(0);var o=Y(0);var u=Y(1);while(0!=i.signum()){while(i.isEven()){i.rShiftTo(1,i);if(r){if(!s.isEven()||!a.isEven()){s.addTo(this,s);a.subTo(e,a);}s.rShiftTo(1,s);}else if(!a.isEven())a.subTo(e,a);a.rShiftTo(1,a);}while(n.isEven()){n.rShiftTo(1,n);if(r){if(!o.isEven()||!u.isEven()){o.addTo(this,o);u.subTo(e,u);}o.rShiftTo(1,o);}else if(!u.isEven())u.subTo(e,u);u.rShiftTo(1,u);}if(i.compareTo(n)>=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(u,a);}else {n.subTo(i,n);if(r)o.subTo(s,o);u.subTo(a,u);}}if(0!=n.compareTo(t.ONE))return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;if(u.signum()<0)return u.add(e);else return u};t.prototype.pow=function(t){return this.exp(t,new N)};t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone();var r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r;r=i;}var n=e.getLowestSetBit();var s=r.getLowestSetBit();if(s<0)return e;if(n<s)s=n;if(s>0){e.rShiftTo(s,e);r.rShiftTo(s,r);}while(e.signum()>0){if((n=e.getLowestSetBit())>0)e.rShiftTo(n,e);if((n=r.getLowestSetBit())>0)r.rShiftTo(n,r);if(e.compareTo(r)>=0){e.subTo(r,e);e.rShiftTo(1,e);}else {r.subTo(e,r);r.rShiftTo(1,r);}}if(s>0)r.lShiftTo(s,r);return r};t.prototype.isProbablePrime=function(t){var e;var r=this.abs();if(1==r.t&&r[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(r[0]==O[e])return true;return false}if(r.isEven())return false;e=1;while(e<O.length){var i=O[e];var n=e+1;while(n<O.length&&i<k)i*=O[n++];i=r.modInt(i);while(e<n)if(i%O[e++]==0)return false}return r.millerRabin(t)};t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t;t.s=this.s;};t.prototype.fromInt=function(t){this.t=1;this.s=t<0?-1:0;if(t>0)this[0]=t;else if(t<-1)this[0]=t+this.DV;else this.t=0;};t.prototype.fromString=function(e,r){var i;if(16==r)i=4;else if(8==r)i=3;else if(256==r)i=8;else if(2==r)i=1;else if(32==r)i=5;else if(4==r)i=2;else {this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length;var s=false;var a=0;while(--n>=0){var o=8==i?255&+e[n]:G(e,n);if(o<0){if("-"==e.charAt(n))s=true;continue}s=false;if(0==a)this[this.t++]=o;else if(a+i>this.DB){this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a;this[this.t++]=o>>this.DB-a;}else this[this.t-1]|=o<<a;a+=i;if(a>=this.DB)a-=this.DB;}if(8==i&&0!=(128&+e[0])){this.s=-1;if(a>0)this[this.t-1]|=(1<<this.DB-a)-1<<a;}this.clamp();if(s)t.ZERO.subTo(this,this);};t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t;};t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t;e.s=this.s;};t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0);e.s=this.s;};t.prototype.lShiftTo=function(t,e){var r=t%this.DB;var i=this.DB-r;var n=(1<<i)-1;var s=Math.floor(t/this.DB);var a=this.s<<r&this.DM;for(var o=this.t-1;o>=0;--o){e[o+s+1]=this[o]>>i|a;a=(this[o]&n)<<r;}for(var o=s-1;o>=0;--o)e[o]=0;e[s]=a;e.t=this.t+s+1;e.s=this.s;e.clamp();};t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB;var n=this.DB-i;var s=(1<<i)-1;e[0]=this[r]>>i;for(var a=r+1;a<this.t;++a){e[a-r-1]|=(this[a]&s)<<n;e[a-r]=this[a]>>i;}if(i>0)e[this.t-r-1]|=(this.s&s)<<n;e.t=this.t-r;e.clamp();};t.prototype.subTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]-t[r];e[r++]=i&this.DM;i>>=this.DB;}if(t.t<this.t){i-=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB;}i+=this.s;}else {i+=this.s;while(r<t.t){i-=t[r];e[r++]=i&this.DM;i>>=this.DB;}i-=t.s;}e.s=i<0?-1:0;if(i<-1)e[r++]=this.DV+i;else if(i>0)e[r++]=i;e.t=r;e.clamp();};t.prototype.multiplyTo=function(e,r){var i=this.abs();var n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r[s]=0;for(s=0;s<n.t;++s)r[s+i.t]=i.am(0,n[s],r,s,0,i.t);r.s=0;r.clamp();if(this.s!=e.s)t.ZERO.subTo(r,r);};t.prototype.squareTo=function(t){var e=this.abs();var r=t.t=2*e.t;while(--r>=0)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);if((t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV){t[r+e.t]-=e.DV;t[r+e.t+1]=1;}}if(t.t>0)t[t.t-1]+=e.am(r,e[r],t,2*r,0,1);t.s=0;t.clamp();};t.prototype.divRemTo=function(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t<n.t){if(null!=r)r.fromInt(0);if(null!=i)this.copyTo(i);return}if(null==i)i=H();var a=H();var o=this.s;var u=e.s;var c=this.DB-W(n[n.t-1]);if(c>0){n.lShiftTo(c,a);s.lShiftTo(c,i);}else {n.copyTo(a);s.copyTo(i);}var l=a.t;var f=a[l-1];if(0==f)return;var h=f*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0);var d=this.FV/h;var p=(1<<this.F1)/h;var v=1<<this.F2;var g=i.t;var y=g-l;var m=null==r?H():r;a.dlShiftTo(y,m);if(i.compareTo(m)>=0){i[i.t++]=1;i.subTo(m,i);}t.ONE.dlShiftTo(l,m);m.subTo(a,a);while(a.t<l)a[a.t++]=0;while(--y>=0){var _=i[--g]==f?this.DM:Math.floor(i[g]*d+(i[g-1]+v)*p);if((i[g]+=a.am(0,_,i,y,0,l))<_){a.dlShiftTo(y,m);i.subTo(m,i);while(i[g]<--_)i.subTo(m,i);}}if(null!=r){i.drShiftTo(l,r);if(o!=u)t.ZERO.subTo(r,r);}i.t=l;i.clamp();if(c>0)i.rShiftTo(c,i);if(o<0)t.ZERO.subTo(i,i);};t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;e=e*(2-(15&t)*e)&15;e=e*(2-(255&t)*e)&255;e=e*(2-((65535&t)*e&65535))&65535;e=e*(2-t*e%this.DV)%this.DV;return e>0?this.DV-e:-e};t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)};t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=H();var n=H();var s=r.convert(this);var a=W(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<<a)>0)r.mulTo(n,s,i);else {var o=i;i=n;n=o;}}return r.revert(i)};t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))};t.prototype.toRadix=function(t){if(null==t)t=10;if(0==this.signum()||t<2||t>36)return "0";var e=this.chunkSize(t);var r=Math.pow(t,e);var i=Y(r);var n=H();var s=H();var a="";this.divRemTo(i,n,s);while(n.signum()>0){a=(r+s.intValue()).toString(t).substr(1)+a;n.divRemTo(i,n,s);}return s.intValue().toString(t)+a};t.prototype.fromRadix=function(e,r){this.fromInt(0);if(null==r)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i);var s=false;var a=0;var o=0;for(var u=0;u<e.length;++u){var c=G(e,u);if(c<0){if("-"==e.charAt(u)&&0==this.signum())s=true;continue}o=r*o+c;if(++a>=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0;}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0);}if(s)t.ZERO.subTo(this,this);};t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(t.ONE.shiftLeft(e-1),this);}}else {var n=[];var s=7&e;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<<s)-1;else n[0]=0;this.fromString(n,256);}};t.prototype.bitwiseTo=function(t,e,r){var i;var n;var s=Math.min(t.t,this.t);for(i=0;i<s;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){n=t.s&this.DM;for(i=s;i<this.t;++i)r[i]=e(this[i],n);r.t=this.t;}else {n=this.s&this.DM;for(i=s;i<t.t;++i)r[i]=e(n,t[i]);r.t=t.t;}r.s=e(this.s,t.s);r.clamp();};t.prototype.changeBit=function(e,r){var i=t.ONE.shiftLeft(e);this.bitwiseTo(i,r,i);return i};t.prototype.addTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]+t[r];e[r++]=i&this.DM;i>>=this.DB;}if(t.t<this.t){i+=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB;}i+=this.s;}else {i+=this.s;while(r<t.t){i+=t[r];e[r++]=i&this.DM;i>>=this.DB;}i+=t.s;}e.s=i<0?-1:0;if(i>0)e[r++]=i;else if(i<-1)e[r++]=this.DV+i;e.t=r;e.clamp();};t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t);++this.t;this.clamp();};t.prototype.dAddOffset=function(t,e){if(0==t)return;while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV){this[e]-=this.DV;if(++e>=this.t)this[this.t++]=0;++this[e];}};t.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);r.s=0;r.t=i;while(i>0)r[--i]=0;for(var n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp();};t.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;r.s=0;while(--i>=0)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp();r.drShiftTo(1,r);};t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t;var r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r};t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE);var i=r.getLowestSetBit();if(i<=0)return false;var n=r.shiftRight(i);e=e+1>>1;if(e>O.length)e=O.length;var s=H();for(var a=0;a<e;++a){s.fromInt(O[Math.floor(Math.random()*O.length)]);var o=s.modPow(n,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(r)){var u=1;while(u++<i&&0!=o.compareTo(r)){o=o.modPowInt(2,this);if(0==o.compareTo(t.ONE))return false}if(0!=o.compareTo(r))return false}}return true};t.prototype.square=function(){var t=H();this.squareTo(t);return t};t.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone();var i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var n=r;r=i;i=n;}var s=r.getLowestSetBit();var a=i.getLowestSetBit();if(a<0){e(r);return}if(s<a)a=s;if(a>0){r.rShiftTo(a,r);i.rShiftTo(a,i);}var o=function(){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r);}else {i.subTo(r,i);i.rShiftTo(1,i);}if(!(r.signum()>0)){if(a>0)i.lShiftTo(a,i);setTimeout((function(){e(i);}),0);}else setTimeout(o,0);};setTimeout(o,10);};t.prototype.fromNumberAsync=function(e,r,i,n){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);var s=this;var o=function(){s.dAddOffset(2,0);if(s.bitLength()>e)s.subTo(t.ONE.shiftLeft(e-1),s);if(s.isProbablePrime(r))setTimeout((function(){n();}),0);else setTimeout(o,0);};setTimeout(o,0);}else {var u=[];var c=7&e;u.length=(e>>3)+1;r.nextBytes(u);if(c>0)u[0]&=(1<<c)-1;else u[0]=0;this.fromString(u,256);}};return t}();var N=function(){function t(){}t.prototype.convert=function(t){return t};t.prototype.revert=function(t){return t};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);};return t}();var P=function(){function t(t){this.m=t;}t.prototype.convert=function(t){if(t.s<0||t.compareTo(this.m)>=0)return t.mod(this.m);else return t};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.divRemTo(this.m,null,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var V=function(){function t(t){this.m=t;this.mp=t.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<<t.DB-15)-1;this.mt2=2*t.t;}t.prototype.convert=function(t){var e=H();t.abs().dlShiftTo(this.m.t,e);e.divRemTo(this.m,null,e);if(t.s<0&&e.compareTo(C.ZERO)>0)this.m.subTo(e,e);return e};t.prototype.revert=function(t){var e=H();t.copyTo(e);this.reduce(e);return e};t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e];var i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;r=e+this.m.t;t[r]+=this.m.am(0,i,t,e,0,this.m.t);while(t[r]>=t.DV){t[r]-=t.DV;t[++r]++;}}t.clamp();t.drShiftTo(this.m.t,t);if(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var L=function(){function t(t){this.m=t;this.r2=H();this.q3=H();C.ONE.dlShiftTo(2*t.t,this.r2);this.mu=this.r2.divide(t);}t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);else if(t.compareTo(this.m)<0)return t;else {var e=H();t.copyTo(e);this.reduce(e);return e}};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2);if(t.t>this.m.t+1){t.t=this.m.t+1;t.clamp();}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();function H(){return new C(null)}function U(t,e){return new C(t,e)}var j="undefined"!==typeof navigator;if(j&&B&&"Microsoft Internet Explorer"==navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){var o=32767&r;var u=r>>15;while(--a>=0){var c=32767&this[e];var l=this[e++]>>15;var f=u*c+l*o;c=o*c+((32767&f)<<15)+i[n]+(1073741823&s);s=(c>>>30)+(f>>>15)+u*l+(s>>>30);i[n++]=1073741823&c;}return s};x=30;}else if(j&&B&&"Netscape"!=navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){while(--a>=0){var o=r*this[e++]+i[n]+s;s=Math.floor(o/67108864);i[n++]=67108863&o;}return s};x=26;}else {C.prototype.am=function t(e,r,i,n,s,a){var o=16383&r;var u=r>>14;while(--a>=0){var c=16383&this[e];var l=this[e++]>>14;var f=u*c+l*o;c=o*c+((16383&f)<<14)+i[n]+s;s=(c>>28)+(f>>14)+u*l;i[n++]=268435455&c;}return s};x=28;}C.prototype.DB=x;C.prototype.DM=(1<<x)-1;C.prototype.DV=1<<x;var K=52;C.prototype.FV=Math.pow(2,K);C.prototype.F1=K-x;C.prototype.F2=2*x-K;var q=[];var F;var z;F="0".charCodeAt(0);for(z=0;z<=9;++z)q[F++]=z;F="a".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;F="A".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;function G(t,e){var r=q[t.charCodeAt(e)];return null==r?-1:r}function Y(t){var e=H();e.fromInt(t);return e}function W(t){var e=1;var r;if(0!=(r=t>>>16)){t=r;e+=16;}if(0!=(r=t>>8)){t=r;e+=8;}if(0!=(r=t>>4)){t=r;e+=4;}if(0!=(r=t>>2)){t=r;e+=2;}if(0!=(r=t>>1)){t=r;e+=1;}return e}C.ZERO=Y(0);C.ONE=Y(1);var J=function(){function t(){this.i=0;this.j=0;this.S=[];}t.prototype.init=function(t){var e;var r;var i;for(e=0;e<256;++e)this.S[e]=e;r=0;for(e=0;e<256;++e){r=r+this.S[e]+t[e%t.length]&255;i=this.S[e];this.S[e]=this.S[r];this.S[r]=i;}this.i=0;this.j=0;};t.prototype.next=function(){var t;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;t=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=t;return this.S[t+this.S[this.i]&255]};return t}();function Z(){return new J}var $=256;var X;var Q=null;var tt;if(null==Q){Q=[];tt=0;}function nt(){if(null==X){X=Z();while(tt<$){var t=Math.floor(65536*Math.random());Q[tt++]=255&t;}X.init(Q);for(tt=0;tt<Q.length;++tt)Q[tt]=0;tt=0;}return X.next()}var st=function(){function t(){}t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=nt();};return t}();function at(t,e){if(e<t.length+22){console.error("Message too long for RSA");return null}var r=e-t.length-6;var i="";for(var n=0;n<r;n+=2)i+="ff";var s="0001"+i+"00"+t;return U(s,16)}function ot(t,e){if(e<t.length+11){console.error("Message too long for RSA");return null}var r=[];var i=t.length-1;while(i>=0&&e>0){var n=t.charCodeAt(i--);if(n<128)r[--e]=n;else if(n>127&&n<2048){r[--e]=63&n|128;r[--e]=n>>6|192;}else {r[--e]=63&n|128;r[--e]=n>>6&63|128;r[--e]=n>>12|224;}}r[--e]=0;var s=new st;var a=[];while(e>2){a[0]=0;while(0==a[0])s.nextBytes(a);r[--e]=a[0];}r[--e]=2;r[--e]=0;return new C(r)}var ut=function(){function t(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null;}t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)};t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);var r=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(r)<0)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)};t.prototype.setPublic=function(t,e){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16);}else console.error("Invalid RSA public key");};t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3;var r=ot(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var n=i.toString(16);var s=n.length;for(var a=0;a<2*e-s;a++)n="0"+n;return n};t.prototype.setPrivate=function(t,e,r){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16);this.d=U(r,16);}else console.error("Invalid RSA private key");};t.prototype.setPrivateEx=function(t,e,r,i,n,s,a,o){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16);this.d=U(r,16);this.p=U(i,16);this.q=U(n,16);this.dmp1=U(s,16);this.dmq1=U(a,16);this.coeff=U(o,16);}else console.error("Invalid RSA private key");};t.prototype.generate=function(t,e){var r=new st;var i=t>>1;this.e=parseInt(e,16);var n=new C(e,16);for(;;){for(;;){this.p=new C(t-i,1,r);if(0==this.p.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.p.isProbablePrime(10))break}for(;;){this.q=new C(i,1,r);if(0==this.q.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q;this.q=s;}var a=this.p.subtract(C.ONE);var o=this.q.subtract(C.ONE);var u=a.multiply(o);if(0==u.gcd(n).compareTo(C.ONE)){this.n=this.p.multiply(this.q);this.d=n.modInverse(u);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}};t.prototype.decrypt=function(t){var e=U(t,16);var r=this.doPrivate(e);if(null==r)return null;return ct(r,this.n.bitLength()+7>>3)};t.prototype.generateAsync=function(t,e,r){var i=new st;var n=t>>1;this.e=parseInt(e,16);var s=new C(e,16);var a=this;var o=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q;a.q=t;}var e=a.p.subtract(C.ONE);var i=a.q.subtract(C.ONE);var n=e.multiply(i);if(0==n.gcd(s).compareTo(C.ONE)){a.n=a.p.multiply(a.q);a.d=s.modInverse(n);a.dmp1=a.d.mod(e);a.dmq1=a.d.mod(i);a.coeff=a.q.modInverse(a.p);setTimeout((function(){r();}),0);}else setTimeout(o,0);};var u=function(){a.q=H();a.q.fromNumberAsync(n,1,i,(function(){a.q.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.q.isProbablePrime(10))setTimeout(e,0);else setTimeout(u,0);}));}));};var c=function(){a.p=H();a.p.fromNumberAsync(t-n,1,i,(function(){a.p.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.p.isProbablePrime(10))setTimeout(u,0);else setTimeout(c,0);}));}));};setTimeout(c,0);};setTimeout(o,0);};t.prototype.sign=function(t,e,r){var i=ht(r);var n=i+e(t).toString();var s=at(n,this.n.bitLength()/4);if(null==s)return null;var a=this.doPrivate(s);if(null==a)return null;var o=a.toString(16);if(0==(1&o.length))return o;else return "0"+o};t.prototype.verify=function(t,e,r){var i=U(e,16);var n=this.doPublic(i);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,"");var a=dt(s);return a==r(t).toString()};t.prototype.encryptLong=function(t){var e=this;var r="";var i=(this.n.bitLength()+7>>3)-11;var n=this.setSplitChn(t,i);n.forEach((function(t){r+=e.encrypt(t);}));return r};t.prototype.decryptLong=function(t){var e="";var r=this.n.bitLength()+7>>3;var i=2*r;if(t.length>i){var n=t.match(new RegExp(".{1,"+i+"}","g"))||[];var s=[];for(var a=0;a<n.length;a++){var o=U(n[a],16);var u=this.doPrivate(o);if(null==u)return null;s.push(u);}e=lt(s,r);}else e=this.decrypt(t);return e};t.prototype.setSplitChn=function(t,e,r){if(void 0===r)r=[];var i=t.split("");var n=0;for(var s=0;s<i.length;s++){var a=i[s].charCodeAt(0);if(a<=127)n+=1;else if(a<=2047)n+=2;else if(a<=65535)n+=3;else n+=4;if(n>e){var o=t.substring(0,s);r.push(o);return this.setSplitChn(t.substring(s),e,r)}}r.push(t);return r};return t}();function ct(t,e){var r=t.toByteArray();var i=0;while(i<r.length&&0==r[i])++i;if(r.length-i!=e-1||2!=r[i])return null;++i;while(0!=r[i])if(++i>=r.length)return null;var n="";while(++i<r.length){var s=255&r[i];if(s<128)n+=String.fromCharCode(s);else if(s>191&&s<224){n+=String.fromCharCode((31&s)<<6|63&r[i+1]);++i;}else {n+=String.fromCharCode((15&s)<<12|(63&r[i+1])<<6|63&r[i+2]);i+=2;}}return n}function lt(t,e){var r=[];for(var i=0;i<t.length;i++){var n=t[i];var s=n.toByteArray();var a=0;while(a<s.length&&0==s[a])++a;if(s.length-a!=e-1||2!=s[a])return null;++a;while(0!=s[a])if(++a>=s.length)return null;r=r.concat(s.slice(a+1));}var o=r;var u=-1;var c="";while(++u<o.length){var l=255&o[u];if(l<128)c+=String.fromCharCode(l);else if(l>191&&l<224){c+=String.fromCharCode((31&l)<<6|63&o[u+1]);++u;}else {c+=String.fromCharCode((15&l)<<12|(63&o[u+1])<<6|63&o[u+2]);u+=2;}}return c}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ft[t]||""}function dt(t){for(var e in ft)if(ft.hasOwnProperty(e)){var r=ft[e];var i=r.length;if(t.substr(0,i)==r)return t.substr(i)}return t}var pt={};pt.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");var i=function(){};i.prototype=e.prototype;t.prototype=new i;t.prototype.constructor=t;t.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor)e.prototype.constructor=e;if(r){var n;for(n in r)t.prototype[n]=r[n];var s=function(){},a=["toString","valueOf"];try{if(/MSIE/.test(navigator.userAgent))s=function(t,e){for(n=0;n<a.length;n+=1){var r=a[n],i=e[r];if("function"===typeof i&&i!=Object.prototype[r])t[r]=i;}};}catch(t){}s(t.prototype,r);}}};var vt={};if("undefined"==typeof vt.asn1||!vt.asn1)vt.asn1={};vt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);if(e.length%2==1)e="0"+e;return e};this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1)){if(e.length%2==1)e="0"+e;else if(!e.match(/^[0-7]/))e="00"+e;}else {var r=e.substr(1);var i=r.length;if(i%2==1)i+=1;else if(!e.match(/^[0-7]/))i+=2;var n="";for(var s=0;s<i;s++)n+="f";var a=new C(n,16);var o=a.xor(t).add(C.ONE);e=o.toString(16).replace(/^-/,"");}return e};this.getPEMStringFromHex=function(t,e){return hextopem(t,e)};this.newObject=function(t){var e=vt,r=e.asn1,i=r.DERBoolean,n=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,d=r.DERTeletexString,p=r.DERIA5String,v=r.DERUTCTime,g=r.DERGeneralizedTime,y=r.DERSequence,m=r.DERSet,_=r.DERTaggedObject,w=r.ASN1Util.newObject;var S=Object.keys(t);if(1!=S.length)throw "key of param shall be only one.";var b=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":"))throw "undefined key: "+b;if("bool"==b)return new i(t[b]);if("int"==b)return new n(t[b]);if("bitstr"==b)return new s(t[b]);if("octstr"==b)return new a(t[b]);if("null"==b)return new o(t[b]);if("oid"==b)return new u(t[b]);if("enum"==b)return new c(t[b]);if("utf8str"==b)return new l(t[b]);if("numstr"==b)return new f(t[b]);if("prnstr"==b)return new h(t[b]);if("telstr"==b)return new d(t[b]);if("ia5str"==b)return new p(t[b]);if("utctime"==b)return new v(t[b]);if("gentime"==b)return new g(t[b]);if("seq"==b){var E=t[b];var D=[];for(var T=0;T<E.length;T++){var M=w(E[T]);D.push(M);}return new y({array:D})}if("set"==b){var E=t[b];var D=[];for(var T=0;T<E.length;T++){var M=w(E[T]);D.push(M);}return new m({array:D})}if("tag"==b){var I=t[b];if("[object Array]"===Object.prototype.toString.call(I)&&3==I.length){var A=w(I[2]);return new _({tag:I[0],explicit:I[1],obj:A})}else {var x={};if(void 0!==I.explicit)x.explicit=I.explicit;if(void 0!==I.tag)x.tag=I.tag;if(void 0===I.obj)throw "obj shall be specified for 'tag'.";x.obj=w(I.obj);return new _(x)}}};this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()};};vt.asn1.ASN1Util.oidHexToInt=function(t){var e="";var r=parseInt(t.substr(0,2),16);var i=Math.floor(r/40);var n=r%40;var e=i+"."+n;var s="";for(var a=2;a<t.length;a+=2){var o=parseInt(t.substr(a,2),16);var u=("00000000"+o.toString(2)).slice(-8);s+=u.substr(1,7);if("0"==u.substr(0,1)){var c=new C(s,2);e=e+"."+c.toString(10);s="";}}return e};vt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2));}return r};if(!t.match(/^[0-9.]+$/))throw "malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);return i};vt.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw "this.hV is null or undefined.";if(this.hV.length%2==1)throw "value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2;var e=t.toString(16);if(e.length%2==1)e="0"+e;if(t<128)return e;else {var r=e.length/2;if(r>15)throw "ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e}};this.getEncodedHex=function(){if(null==this.hTLV||this.isModified){this.hV=this.getFreshValueHex();this.hL=this.getLengthHexFromValue();this.hTLV=this.hT+this.hL+this.hV;this.isModified=false;}return this.hTLV};this.getValueHex=function(){this.getEncodedHex();return this.hV};this.getFreshValueHex=function(){return ""};};vt.asn1.DERAbstractString=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(this.s);};this.setStringHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t)this.setString(t);else if("undefined"!=typeof t["str"])this.setString(t["str"]);else if("undefined"!=typeof t["hex"])this.setStringHex(t["hex"]);};pt.lang.extend(vt.asn1.DERAbstractString,vt.asn1.ASN1Object);vt.asn1.DERAbstractTime=function(t){vt.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e};this.formatDate=function(t,e,r){var i=this.zeroPadding;var n=this.localDateToUTC(t);var s=String(n.getFullYear());if("utc"==e)s=s.substr(2,2);var a=i(String(n.getMonth()+1),2);var o=i(String(n.getDate()),2);var u=i(String(n.getHours()),2);var c=i(String(n.getMinutes()),2);var l=i(String(n.getSeconds()),2);var f=s+a+o+u+c+l;if(true===r){var h=n.getMilliseconds();if(0!=h){var d=i(String(h),3);d=d.replace(/[0]+$/,"");f=f+"."+d;}}return f+"Z"};this.zeroPadding=function(t,e){if(t.length>=e)return t;return new Array(e-t.length+1).join("0")+t};this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(t);};this.setByDateValue=function(t,e,r,i,n,s){var a=new Date(Date.UTC(t,e-1,r,i,n,s,0));this.setByDate(a);};this.getFreshValueHex=function(){return this.hV};};pt.lang.extend(vt.asn1.DERAbstractTime,vt.asn1.ASN1Object);vt.asn1.DERAbstractStructured=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null;this.isModified=true;this.asn1Array=t;};this.appendASN1Object=function(t){this.hTLV=null;this.isModified=true;this.asn1Array.push(t);};this.asn1Array=new Array;if("undefined"!=typeof t)if("undefined"!=typeof t["array"])this.asn1Array=t["array"];};pt.lang.extend(vt.asn1.DERAbstractStructured,vt.asn1.ASN1Object);vt.asn1.DERBoolean=function(){vt.asn1.DERBoolean.superclass.constructor.call(this);this.hT="01";this.hTLV="0101ff";};pt.lang.extend(vt.asn1.DERBoolean,vt.asn1.ASN1Object);vt.asn1.DERInteger=function(t){vt.asn1.DERInteger.superclass.constructor.call(this);this.hT="02";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["bigint"])this.setByBigInteger(t["bigint"]);else if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};pt.lang.extend(vt.asn1.DERInteger,vt.asn1.ASN1Object);vt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex();}vt.asn1.DERBitString.superclass.constructor.call(this);this.hT="03";this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null;this.isModified=true;this.hV=t;};this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw "unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null;this.isModified=true;this.hV=r+e;};this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;if(8==e)e=0;for(var r=0;r<=e;r++)t+="0";var i="";for(var r=0;r<t.length-1;r+=8){var n=t.substr(r,8);var s=parseInt(n,2).toString(16);if(1==s.length)s="0"+s;i+=s;}this.hTLV=null;this.isModified=true;this.hV="0"+e+i;};this.setByBooleanArray=function(t){var e="";for(var r=0;r<t.length;r++)if(true==t[r])e+="1";else e+="0";this.setByBinaryString(e);};this.newFalseArray=function(t){var e=new Array(t);for(var r=0;r<t;r++)e[r]=false;return e};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/))this.setHexValueIncludingUnusedBits(t);else if("undefined"!=typeof t["hex"])this.setHexValueIncludingUnusedBits(t["hex"]);else if("undefined"!=typeof t["bin"])this.setByBinaryString(t["bin"]);else if("undefined"!=typeof t["array"])this.setByBooleanArray(t["array"]);};pt.lang.extend(vt.asn1.DERBitString,vt.asn1.ASN1Object);vt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex();}vt.asn1.DEROctetString.superclass.constructor.call(this,t);this.hT="04";};pt.lang.extend(vt.asn1.DEROctetString,vt.asn1.DERAbstractString);vt.asn1.DERNull=function(){vt.asn1.DERNull.superclass.constructor.call(this);this.hT="05";this.hTLV="0500";};pt.lang.extend(vt.asn1.DERNull,vt.asn1.ASN1Object);vt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2));}return r};vt.asn1.DERObjectIdentifier.superclass.constructor.call(this);this.hT="06";this.setValueHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw "malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);this.hTLV=null;this.isModified=true;this.s=null;this.hV=i;};this.setValueName=function(t){var e=vt.asn1.x509.OID.name2oid(t);if(""!==e)this.setValueOidString(e);else throw "DERObjectIdentifier oidName undefined: "+t};this.getFreshValueHex=function(){return this.hV};if(void 0!==t)if("string"===typeof t)if(t.match(/^[0-2].[0-9.]+$/))this.setValueOidString(t);else this.setValueName(t);else if(void 0!==t.oid)this.setValueOidString(t.oid);else if(void 0!==t.hex)this.setValueHex(t.hex);else if(void 0!==t.name)this.setValueName(t.name);};pt.lang.extend(vt.asn1.DERObjectIdentifier,vt.asn1.ASN1Object);vt.asn1.DEREnumerated=function(t){vt.asn1.DEREnumerated.superclass.constructor.call(this);this.hT="0a";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};pt.lang.extend(vt.asn1.DEREnumerated,vt.asn1.ASN1Object);vt.asn1.DERUTF8String=function(t){vt.asn1.DERUTF8String.superclass.constructor.call(this,t);this.hT="0c";};pt.lang.extend(vt.asn1.DERUTF8String,vt.asn1.DERAbstractString);vt.asn1.DERNumericString=function(t){vt.asn1.DERNumericString.superclass.constructor.call(this,t);this.hT="12";};pt.lang.extend(vt.asn1.DERNumericString,vt.asn1.DERAbstractString);vt.asn1.DERPrintableString=function(t){vt.asn1.DERPrintableString.superclass.constructor.call(this,t);this.hT="13";};pt.lang.extend(vt.asn1.DERPrintableString,vt.asn1.DERAbstractString);vt.asn1.DERTeletexString=function(t){vt.asn1.DERTeletexString.superclass.constructor.call(this,t);this.hT="14";};pt.lang.extend(vt.asn1.DERTeletexString,vt.asn1.DERAbstractString);vt.asn1.DERIA5String=function(t){vt.asn1.DERIA5String.superclass.constructor.call(this,t);this.hT="16";};pt.lang.extend(vt.asn1.DERIA5String,vt.asn1.DERAbstractString);vt.asn1.DERUTCTime=function(t){vt.asn1.DERUTCTime.superclass.constructor.call(this,t);this.hT="17";this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s);};this.getFreshValueHex=function(){if("undefined"==typeof this.date&&"undefined"==typeof this.s){this.date=new Date;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s);}return this.hV};if(void 0!==t)if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{12}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);};pt.lang.extend(vt.asn1.DERUTCTime,vt.asn1.DERAbstractTime);vt.asn1.DERGeneralizedTime=function(t){vt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t);this.hT="18";this.withMillis=false;this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s);};this.getFreshValueHex=function(){if(void 0===this.date&&void 0===this.s){this.date=new Date;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s);}return this.hV};if(void 0!==t){if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{14}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);if(true===t.millis)this.withMillis=true;}};pt.lang.extend(vt.asn1.DERGeneralizedTime,vt.asn1.DERAbstractTime);vt.asn1.DERSequence=function(t){vt.asn1.DERSequence.superclass.constructor.call(this,t);this.hT="30";this.getFreshValueHex=function(){var t="";for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex();}this.hV=t;return this.hV};};pt.lang.extend(vt.asn1.DERSequence,vt.asn1.DERAbstractStructured);vt.asn1.DERSet=function(t){vt.asn1.DERSet.superclass.constructor.call(this,t);this.hT="31";this.sortFlag=true;this.getFreshValueHex=function(){var t=new Array;for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex());}if(true==this.sortFlag)t.sort();this.hV=t.join("");return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t.sortflag&&false==t.sortflag)this.sortFlag=false;};pt.lang.extend(vt.asn1.DERSet,vt.asn1.DERAbstractStructured);vt.asn1.DERTaggedObject=function(t){vt.asn1.DERTaggedObject.superclass.constructor.call(this);this.hT="a0";this.hV="";this.isExplicit=true;this.asn1Object=null;this.setASN1Object=function(t,e,r){this.hT=e;this.isExplicit=t;this.asn1Object=r;if(this.isExplicit){this.hV=this.asn1Object.getEncodedHex();this.hTLV=null;this.isModified=true;}else {this.hV=null;this.hTLV=r.getEncodedHex();this.hTLV=this.hTLV.replace(/^../,e);this.isModified=false;}};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t){if("undefined"!=typeof t["tag"])this.hT=t["tag"];if("undefined"!=typeof t["explicit"])this.isExplicit=t["explicit"];if("undefined"!=typeof t["obj"]){this.asn1Object=t["obj"];this.setASN1Object(this.isExplicit,this.hT,this.asn1Object);}}};pt.lang.extend(vt.asn1.DERTaggedObject,vt.asn1.ASN1Object);var gt=function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r];};return t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e;}e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i);}}();var yt=function(t){gt(e,t);function e(r){var i=t.call(this)||this;if(r)if("string"===typeof r)i.parseKey(r);else if(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))i.parsePropertiesFrom(r);return i}e.prototype.parseKey=function(t){try{var e=0;var r=0;var i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/;var n=i.test(t)?y.decode(t):_.unarmor(t);var s=I.decode(n);if(3===s.sub.length)s=s.sub[2].sub[0];if(9===s.sub.length){e=s.sub[1].getHexStringValue();this.n=U(e,16);r=s.sub[2].getHexStringValue();this.e=parseInt(r,16);var a=s.sub[3].getHexStringValue();this.d=U(a,16);var o=s.sub[4].getHexStringValue();this.p=U(o,16);var u=s.sub[5].getHexStringValue();this.q=U(u,16);var c=s.sub[6].getHexStringValue();this.dmp1=U(c,16);var l=s.sub[7].getHexStringValue();this.dmq1=U(l,16);var f=s.sub[8].getHexStringValue();this.coeff=U(f,16);}else if(2===s.sub.length){var h=s.sub[1];var d=h.sub[0];e=d.sub[0].getHexStringValue();this.n=U(e,16);r=d.sub[1].getHexStringValue();this.e=parseInt(r,16);}else return false;return true}catch(t){return false}};e.prototype.getPrivateBaseKey=function(){var t={array:[new vt.asn1.DERInteger({int:0}),new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e}),new vt.asn1.DERInteger({bigint:this.d}),new vt.asn1.DERInteger({bigint:this.p}),new vt.asn1.DERInteger({bigint:this.q}),new vt.asn1.DERInteger({bigint:this.dmp1}),new vt.asn1.DERInteger({bigint:this.dmq1}),new vt.asn1.DERInteger({bigint:this.coeff})]};var e=new vt.asn1.DERSequence(t);return e.getEncodedHex()};e.prototype.getPrivateBaseKeyB64=function(){return d(this.getPrivateBaseKey())};e.prototype.getPublicBaseKey=function(){var t=new vt.asn1.DERSequence({array:[new vt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new vt.asn1.DERNull]});var e=new vt.asn1.DERSequence({array:[new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e})]});var r=new vt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});var i=new vt.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()};e.prototype.getPublicBaseKeyB64=function(){return d(this.getPublicBaseKey())};e.wordwrap=function(t,e){e=e||64;if(!t)return t;var r="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")};e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n";t+="-----END RSA PRIVATE KEY-----";return t};e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n";t+="-----END PUBLIC KEY-----";return t};e.hasPublicKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")};e.hasPrivateKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")};e.prototype.parsePropertiesFrom=function(t){this.n=t.n;this.e=t.e;if(t.hasOwnProperty("d")){this.d=t.d;this.p=t.p;this.q=t.q;this.dmp1=t.dmp1;this.dmq1=t.dmq1;this.coeff=t.coeff;}};return e}(ut);const mt={i:"3.2.1"};var _t=function(){function t(t){if(void 0===t)t={};t=t||{};this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024;this.default_public_exponent=t.default_public_exponent||"010001";this.log=t.log||false;this.key=null;}t.prototype.setKey=function(t){if(this.log&&this.key)console.warn("A key was already set, overriding existing.");this.key=new yt(t);};t.prototype.setPrivateKey=function(t){this.setKey(t);};t.prototype.setPublicKey=function(t){this.setKey(t);};t.prototype.decrypt=function(t){try{return this.getKey().decrypt(p(t))}catch(t){return false}};t.prototype.encrypt=function(t){try{return this.getKey().encrypt(t)}catch(t){return false}};t.prototype.encryptLong=function(t){try{return d(this.getKey().encryptLong(t))}catch(t){return false}};t.prototype.decryptLong=function(t){try{return this.getKey().decryptLong(t)}catch(t){return false}};t.prototype.sign=function(t,e,r){try{return d(this.getKey().sign(t,e,r))}catch(t){return false}};t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,p(e),r)}catch(t){return false}};t.prototype.getKey=function(t){if(!this.key){this.key=new yt;if(t&&"[object Function]"==={}.toString.call(t)){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent);}return this.key};t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()};t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()};t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()};t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()};t.version=mt.i;return t}();const wt=_t;},2480:()=>{}};var e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={id:i,loaded:false,exports:{}};t[i].call(s.exports,s,s.exports,r);s.loaded=true;return s.exports}(()=>{r.d=(t,e)=>{for(var i in e)if(r.o(e,i)&&!r.o(t,i))Object.defineProperty(t,i,{enumerable:true,get:e[i]});};})();(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}();})();(()=>{r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);})();(()=>{r.r=t=>{if("undefined"!==typeof Symbol&&Symbol.toStringTag)Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:true});};})();(()=>{r.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t};})();var i=r(5987);return i})())); - +}}}}e["default"]=r;},9342:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=wx.getSystemInfoSync();}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return "MP-WEIXIN"}platformVersion(){return this.systemInfo.version}language(){return this.systemInfo.language}platformId(){if(wx.canIUse("getAccountInfoSync"))return wx.getAccountInfoSync().miniProgram.appId;return ""}getNetworkType(t){wx.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType});},fail:t.fail});}onNetworkStatusChange(t){wx.onNetworkStatusChange(t);}}e["default"]=r;},155:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){wx.setStorage(t);}setSync(t,e){wx.setStorageSync(t,e);}get(t){wx.getStorage(t);}getSync(t){return wx.getStorageSync(t)}}e["default"]=r;},3751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=wx.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r;},127:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.SDK_VERSION="GTMP-2.0.1.dcloud";t.DEFAULT_SOCKET_URL="wss://wshz.getui.net:5223/nws";t.SOCKET_PROTOCOL_VERSION="1.0";t.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";t.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b";})(r||(r={}));e["default"]=r;},1901:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(1237));const a=i(r(1754));class o{static init(t){if(this.inited)return;try{this.checkAppid(t.appid);this.inited=true;s.default.info(`init: appid=${t.appid}`);a.default.init(t);n.default.connect();}catch(e){this.inited=false;t.onError?.call(t.onError,{error:e});throw e}}static enableSocket(t){this.checkInit();n.default.allowReconnect=t;if(t)n.default.reconnect(0);else n.default.close(`enableSocket ${t}`);}static checkInit(){if(!this.inited)throw new Error(`not init, please invoke init method firstly`)}static checkAppid(t){if(null==t||void 0==t||""==t.trim())throw new Error(`invalid appid ${t}`)}}o.inited=false;e["default"]=o;},1754:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(9934));const a=i(r(127));const o=i(r(7071));const u=i(r(1237));const c=i(r(5574));const l=i(r(7406));class f{static init(t){this.appid=c.default.to_getui(t.appid);u.default.info(`getui appid: ${this.appid}`);this.onError=t.onError;this.onClientId=t.onClientId;this.onlineState=t.onlineState;this.onPushMsg=t.onPushMsg;if(this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)){u.default.info("appid changed, clear session and cid");s.default.setSync(s.default.KEY_CID,"");s.default.setSync(s.default.KEY_SESSION,"");}s.default.setSync(s.default.KEY_APPID,this.appid);this.cid=s.default.getSync(s.default.KEY_CID,this.cid);if(this.cid)this.onClientId?.call(this.onClientId,{cid:f.cid});this.session=s.default.getSync(s.default.KEY_SESSION,this.session);this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId);this.regId=s.default.getSync(s.default.KEY_REGID,this.regId);if(!this.regId){this.regId=this.createRegId();s.default.set({key:s.default.KEY_REGID,data:this.regId});}this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let e=this;l.default.getNetworkType({success:t=>{e.networkType=t.networkType;e.networkConnected="none"!=e.networkType&&""!=e.networkType;}});l.default.onNetworkStatusChange((t=>{e.networkConnected=t.isConnected;e.networkType=t.networkType;if(e.networkConnected)o.default.reconnect(0);}));}static createRegId(){return `M-V${n.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let e=16*Math.random()|0,r="x"===t?e:3&e|8;return r.toString(16)}))}}f.appid="";f.cid="";f.regId="";f.session="";f.deviceId="";f.packetId=1;f.online=false;f.socketUrl=a.default.DEFAULT_SOCKET_URL;f.publicKeyId=a.default.SERVER_PUBLIC_KEY_ID;f.publicKey=a.default.SERVER_PUBLIC_KEY;f.lastAliasTime=0;f.networkConnected=true;f.networkType="none";e["default"]=f;},9214:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(9800));const o=r(3118);const u=i(r(1754));class c extends a.default{constructor(){super(...arguments);this.actionMsgData=new l;}static initActionMsg(t,...e){super.initMsg(t);t.command=a.default.Command.CLIENT_MSG;t.data=t.actionMsgData=l.create();return t}static parseActionMsg(t,e){super.parseMsg(t,e);t.actionMsgData=l.parse(t.data);return t}send(){setTimeout((()=>{if(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId)){c.waitingLoginMsgMap.delete(this.actionMsgData.msgId);c.waitingResponseMsgMap.delete(this.actionMsgData.msgId);this.callback?.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"});}}),1e4);if(!u.default.online){c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this);return}if(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED)c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this);super.send();}receive(){}static sendWaitingMessages(){let t=this.waitingLoginMsgMap.keys();let e;while(e=t.next(),!e.done){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value);t?.send();}}static getWaitingResponseMessage(t){return c.waitingResponseMsgMap.get(t)}static removeWaitingResponseMessage(t){let e=c.waitingResponseMsgMap.get(t);if(e)c.waitingResponseMsgMap.delete(t);return e}}c.ServerAction=(n=class{},n.PUSH_MESSAGE="pushmessage",n.REDIRECT_SERVER="redirect_server",n.ADD_PHONE_INFO_RESULT="addphoneinfo",n.SET_MODE_RESULT="set_mode_result",n.SET_TAG_RESULT="settag_result",n.BIND_ALIAS_RESULT="response_bind",n.UNBIND_ALIAS_RESULT="response_unbind",n.FEED_BACK_RESULT="pushmessage_feedback",n.RECEIVED="received",n);c.ClientAction=(s=class{},s.ADD_PHONE_INFO="addphoneinfo",s.SET_MODE="set_mode",s.FEED_BACK="pushmessage_feedback",s.SET_TAGS="set_tag",s.BIND_ALIAS="bind_alias",s.UNBIND_ALIAS="unbind_alias",s.RECEIVED="received",s);c.waitingLoginMsgMap=new Map;c.waitingResponseMsgMap=new Map;class l{constructor(){this.appId="";this.cid="";this.msgId="";this.msgAction="";this.msgData="";this.msgExtraData="";}static create(){let t=new l;t.appId=u.default.appid;t.cid=u.default.cid;t.msgId=(2147483647&(new Date).getTime()).toString();return t}static parse(t){let e=new l;let r=JSON.parse(t);e.appId=r.appId;e.cid=r.cid;e.msgId=r.msgId;e.msgAction=r.msgAction;e.msgData=r.msgData;e.msgExtraData=r.msgExtraData;return e}}e["default"]=c;},708:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7406));const s=i(r(9934));const a=i(r(127));const o=r(3118);const u=i(r(9214));const c=i(r(1754));class l extends u.default{constructor(){super(...arguments);this.addPhoneInfoData=new f;}static create(){let t=new l;super.initActionMsg(t);t.callback=e=>{if(e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){t.send();}),30*1e3);else s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});};t.actionMsgData.msgAction=u.default.ClientAction.ADD_PHONE_INFO;t.addPhoneInfoData=f.create();t.actionMsgData.msgData=JSON.stringify(t.addPhoneInfoData);return t}send(){let t=(new Date).getTime();let e=s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);if(t-e<24*60*60*1e3)return;super.send();}}class f{constructor(){this.model="";this.brand="";this.system_version="";this.version="";this.deviceid="";this.type="";}static create(){let t=new f;t.model=n.default.model();t.brand=n.default.brand();t.system_version=n.default.osVersion();t.version=a.default.SDK_VERSION;t.device_token="";t.imei="";t.oaid="";t.mac="";t.idfa="";t.type="MINIPROGRAM";t.deviceid=`${t.type}-${c.default.deviceId}`;t.extra={os:n.default.os(),platform:n.default.platform(),platformVersion:n.default.platformVersion(),platformId:n.default.platformId(),language:n.default.language(),userAgent:n.default.userAgent()};return t}}e["default"]=l;},652:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(1754));const o=r(3118);const u=i(r(9214));class c extends u.default{constructor(){super(...arguments);this.feedbackData=new l;}static create(t,e){let r=new c;super.initActionMsg(r);r.callback=t=>{if(t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){r.send();}),30*1e3);};r.feedbackData=l.create(t,e);r.actionMsgData.msgAction=u.default.ClientAction.FEED_BACK;r.actionMsgData.msgData=JSON.stringify(r.feedbackData);return r}send(){super.send();}}c.ActionId=(n=class{},n.RECEIVE="0",n.MP_RECEIVE="210000",n.WEB_RECEIVE="220000",n.BEGIN="1",n);c.RESULT=(s=class{},s.OK="ok",s);class l{constructor(){this.messageid="";this.appkey="";this.appid="";this.taskid="";this.actionid="";this.result="";this.timestamp="";}static create(t,e){let r=new l;r.messageid=t.pushMessageData.messageid;r.appkey=t.pushMessageData.appKey;r.appid=a.default.appid;r.taskid=t.pushMessageData.taskId;r.actionid=e;r.result=c.RESULT.OK;r.timestamp=(new Date).getTime().toString();return r}}e["default"]=c;},6561:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));class s extends n.default{static create(){let t=new s;super.initMsg(t);t.command=n.default.Command.HEART_BEAT;return t}}e["default"]=s;},358:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(1754));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.keyNegotiateData=new u;}static create(){let t=new o;super.initMsg(t);t.command=a.default.Command.KEY_NEGOTIATE;n.default.resetKey();t.data=t.keyNegotiateData=u.create();return t}send(){super.send();}}class u{constructor(){this.appId="";this.rsaPublicKeyId="";this.algorithm="";this.secretKey="";this.iv="";}static create(){let t=new u;t.appId=s.default.appid;t.rsaPublicKeyId=s.default.publicKeyId;t.algorithm="AES";t.secretKey=n.default.getEncryptedSecretKey();t.iv=n.default.getEncryptedIV();return t}}e["default"]=o;},5301:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(323));const a=i(r(2544));const o=i(r(1237));const u=i(r(1754));class c extends n.default{constructor(){super(...arguments);this.keyNegotiateResultData=new l;}static parse(t){let e=new c;super.parseMsg(e,t);e.keyNegotiateResultData=l.parse(e.data);return e}receive(){if(0!=this.keyNegotiateResultData.errorCode){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}let t=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(t[0].trim().toLowerCase())||!s.default.modeMap.has(t[1].trim().toLowerCase())||!s.default.paddingMap.has(t[2].trim().toLowerCase())){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}s.default.setEncryptParams(t[0].trim().toLowerCase(),t[1].trim().toLowerCase(),t[2].trim().toLowerCase());a.default.create().send();}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.encryptType="";}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.encryptType=r.encryptType;return e}}e["default"]=c;},2544:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(323));const a=i(r(9800));const o=i(r(3527));class u extends a.default{constructor(){super(...arguments);this.loginData=new c;}static create(){let t=new u;super.initMsg(t);t.command=a.default.Command.LOGIN;t.data=t.loginData=c.create();return t}send(){if(!this.loginData.session||n.default.cid!=s.default.md5Hex(this.loginData.session)){o.default.create().send();return}super.send();}}class c{constructor(){this.appId="";this.session="";}static create(){let t=new c;t.appId=n.default.appid;t.session=n.default.session;return t}}e["default"]=u;},8734:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9800));const a=i(r(1754));const o=i(r(9214));const u=i(r(708));const c=i(r(2544));class l extends s.default{constructor(){super(...arguments);this.loginResultData=new f;}static parse(t){let e=new l;super.parseMsg(e,t);e.loginResultData=f.parse(e.data);return e}receive(){if(0!=this.loginResultData.errorCode){this.data;a.default.session=a.default.cid="";n.default.setSync(n.default.KEY_CID,"");n.default.setSync(n.default.KEY_SESSION,"");c.default.create().send();return}if(!a.default.online){a.default.online=true;a.default.onlineState?.call(a.default.onlineState,{online:a.default.online});}o.default.sendWaitingMessages();u.default.create().send();}}class f{constructor(){this.errorCode=-1;this.errorMsg="";this.session="";}static parse(t){let e=new f;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.session=r.session;return e}}e["default"]=l;},9800:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(350));const a=i(r(7071));const o=i(r(127));const u=i(r(1754));class c{constructor(){this.version="";this.command=0;this.packetId=0;this.timeStamp=0;this.data="";this.signature="";}static initMsg(t,...e){t.version=o.default.SOCKET_PROTOCOL_VERSION;t.command=0;t.timeStamp=(new Date).getTime();return t}static parseMsg(t,e){let r=JSON.parse(e);t.version=r.version;t.command=r.command;t.packetId=r.packetId;t.timeStamp=r.timeStamp;t.data=r.data;t.signature=r.signature;return t}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){if(!a.default.isAvailable())return;this.packetId=u.default.packetId++;this.data=JSON.stringify(this.data);this.stringify();if(this.command!=c.Command.HEART_BEAT){s.default.sign(this);if(this.data&&this.command!=c.Command.KEY_NEGOTIATE)s.default.encrypt(this);}a.default.send(this.stringify());}}c.Command=(n=class{},n.HEART_BEAT=0,n.KEY_NEGOTIATE=1,n.KEY_NEGOTIATE_RESULT=16,n.REGISTER=2,n.REGISTER_RESULT=32,n.LOGIN=3,n.LOGIN_RESULT=48,n.LOGOUT=4,n.LOGOUT_RESULT=64,n.CLIENT_MSG=5,n.SERVER_MSG=80,n.SERVER_CLOSE=96,n.REDIRECT_SERVER=112,n);e["default"]=c;},350:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));var s;(function(t){function e(t){t.data=n.default.encrypt(t.data);}t.encrypt=e;function r(t){t.data=n.default.decrypt(t.data);}t.decrypt=r;function i(t){t.signature=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);}t.sign=i;function s(t){let e=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);if(t.signature!=e)throw new Error(`msg signature vierfy failed`)}t.verify=s;})(s||(s={}));e["default"]=s;},1236:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(5301));const s=i(r(8734));const a=i(r(9800));const o=i(r(7078));const u=i(r(538));const c=i(r(7821));const l=i(r(217));const f=i(r(7156));const h=i(r(53));const d=i(r(9214));const p=i(r(7303));const v=i(r(6063));const g=i(r(7923));const y=i(r(350));const m=i(r(9214));const w=i(r(6254));const S=i(r(5035));class _{static receiveMessage(t){let e=a.default.parseMsg(new a.default,t);if(e.command==a.default.Command.HEART_BEAT)return;if(e.command!=a.default.Command.KEY_NEGOTIATE_RESULT&&e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.decrypt(e);if(e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.verify(e);switch(e.command){case a.default.Command.KEY_NEGOTIATE_RESULT:n.default.parse(e.stringify()).receive();break;case a.default.Command.REGISTER_RESULT:o.default.parse(e.stringify()).receive();break;case a.default.Command.LOGIN_RESULT:s.default.parse(e.stringify()).receive();break;case a.default.Command.SERVER_MSG:this.receiveActionMsg(e.stringify());break;case a.default.Command.SERVER_CLOSE:S.default.parse(e.stringify()).receive();break;case a.default.Command.REDIRECT_SERVER:h.default.parse(e.stringify()).receive();break;}}static receiveActionMsg(t){let e=m.default.parseActionMsg(new m.default,t);if(e.actionMsgData.msgAction!=d.default.ServerAction.RECEIVED&&e.actionMsgData.msgAction!=d.default.ServerAction.REDIRECT_SERVER){let t=JSON.parse(e.actionMsgData.msgData);w.default.create(t.id).send();}switch(e.actionMsgData.msgAction){case d.default.ServerAction.PUSH_MESSAGE:f.default.parse(t).receive();break;case d.default.ServerAction.ADD_PHONE_INFO_RESULT:u.default.parse(t).receive();break;case d.default.ServerAction.SET_MODE_RESULT:p.default.parse(t).receive();break;case d.default.ServerAction.SET_TAG_RESULT:v.default.parse(t).receive();break;case d.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(t).receive();break;case d.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(t).receive();break;case d.default.ServerAction.FEED_BACK_RESULT:l.default.parse(t).receive();break;case d.default.ServerAction.RECEIVED:w.default.parse(t).receive();break}}}e["default"]=_;},6254:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.receivedData=new u;}static create(t){let e=new o;super.initActionMsg(e);e.callback=t=>{if(t.resultCode!=n.ErrorCode.SUCCESS&&t.resultCode!=n.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){e.send();}),3*1e3);};e.actionMsgData.msgAction=a.default.ClientAction.RECEIVED;e.receivedData=u.create(t);e.actionMsgData.msgData=JSON.stringify(e.receivedData);return e}static parse(t){let e=new o;super.parseActionMsg(e,t);e.receivedData=u.parse(e.data);return e}receive(){let t=a.default.getWaitingResponseMessage(this.actionMsgData.msgId);if(t&&t.actionMsgData.msgAction==a.default.ClientAction.ADD_PHONE_INFO||t&&t.actionMsgData.msgAction==a.default.ClientAction.FEED_BACK){a.default.removeWaitingResponseMessage(t.actionMsgData.msgId);t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}send(){super.send();}}class u{constructor(){this.msgId="";this.cid="";}static create(t){let e=new u;e.cid=s.default.cid;e.msgId=t;return e}static parse(t){let e=new u;let r=JSON.parse(t);e.cid=r.cid;e.msgId=r.msgId;return e}}e["default"]=o;},53:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.RedirectServerData=void 0;const n=i(r(7071));const s=i(r(9934));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.redirectServerData=new u;}static parse(t){let e=new o;super.parseMsg(e,t);e.redirectServerData=u.parse(e.data);return e}receive(){this.redirectServerData;s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData));n.default.close("redirect server");n.default.reconnect(this.redirectServerData.delay);}}class u{constructor(){this.addressList=[];this.delay=0;this.loc="";this.conf="";this.time=0;}static parse(t){let e=new u;let r=JSON.parse(t);e.addressList=r.addressList;e.delay=r.delay;e.loc=r.loc;e.conf=r.conf;e.time=r.time?r.time:(new Date).getTime();return e}}e.RedirectServerData=u;e["default"]=o;},3527:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.registerData=new o;}static create(){let t=new a;super.initMsg(t);t.command=s.default.Command.REGISTER;t.data=t.registerData=o.create();return t}send(){super.send();}}class o{constructor(){this.appId="";this.regId="";}static create(){let t=new o;t.appId=n.default.appid;t.regId=n.default.regId;return t}}e["default"]=a;},7078:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(9934));const a=i(r(1754));const o=i(r(2544));const u=i(r(1237));class c extends n.default{constructor(){super(...arguments);this.registerResultData=new l;}static parse(t){let e=new c;super.parseMsg(e,t);e.registerResultData=l.parse(e.data);return e}receive(){if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session){u.default.error(`register fail: ${this.data}`);a.default.onError?.call(a.default.onError,{error:`register fail: ${this.data}`});return}if(a.default.cid!=this.registerResultData.cid)s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);a.default.cid=this.registerResultData.cid;a.default.onClientId?.call(a.default.onClientId,{cid:a.default.cid});s.default.set({key:s.default.KEY_CID,data:a.default.cid});a.default.session=this.registerResultData.session;s.default.set({key:s.default.KEY_SESSION,data:a.default.session});a.default.deviceId=this.registerResultData.deviceId;s.default.set({key:s.default.KEY_DEVICE_ID,data:a.default.deviceId});o.default.create().send();}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.cid="";this.session="";this.deviceId="";this.regId="";}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.cid=r.cid;e.session=r.session;e.deviceId=r.deviceId;e.regId=r.regId;return e}}e["default"]=c;},5035:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.serverCloseData=new o;}static parse(t){let e=new a;super.parseMsg(e,t);e.serverCloseData=o.parse(e.data);return e}receive(){this.data;if(20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code)n.default.allowReconnect=false;n.default.close();}}class o{constructor(){this.code=-1;this.msg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.code=r.code;e.msg=r.msg;return e}}e["default"]=a;},538:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.addPhoneInfoResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.addPhoneInfoResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.addPhoneInfoResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg});n.default.set({key:n.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});}}class o{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=a;},7821:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.bindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.bindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`bind alias result`,this.bindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},217:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.feedbackResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.feedbackResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.feedbackResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}class o{constructor(){this.actionId="";this.taskId="";this.result="";}static parse(t){let e=new o;let r=JSON.parse(t);e.actionId=r.actionId;e.taskId=r.taskId;e.result=r.result;return e}}e["default"]=a;},7156:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(1754));const a=i(r(9214));const o=i(r(652));class u extends a.default{constructor(){super(...arguments);this.pushMessageData=new c;}static parse(t){let e=new u;super.parseActionMsg(e,t);e.pushMessageData=c.parse(e.actionMsgData.msgData);return e}receive(){this.pushMessageData;if(this.pushMessageData.appId!=s.default.appid||!this.pushMessageData.messageid||!this.pushMessageData.taskId)this.stringify();o.default.create(this,o.default.ActionId.RECEIVE).send();o.default.create(this,o.default.ActionId.MP_RECEIVE).send();if(this.actionMsgData.msgExtraData&&s.default.onPushMsg)s.default.onPushMsg?.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData});}}class c{constructor(){this.id="";this.appKey="";this.appId="";this.messageid="";this.taskId="";this.actionChain=[];this.cdnType="";}static parse(t){let e=new c;let r=JSON.parse(t);e.id=r.id;e.appKey=r.appKey;e.appId=r.appId;e.messageid=r.messageid;e.taskId=r.taskId;e.actionChain=r.actionChain;e.cdnType=r.cdnType;return e}}(n=class{},n.GO_TO="goto",n.TRANSMIT="transmit",n);e["default"]=u;},7303:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9214));class s extends n.default{constructor(){super(...arguments);this.setModeResultData=new a;}static parse(t){let e=new s;super.parseActionMsg(e,t);e.setModeResultData=a.parse(e.actionMsgData.msgData);return e}receive(){this.setModeResultData;let t=n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg});}}class a{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new a;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=s;},6063:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.setTagResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.setTagResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`set tag result`,this.setTagResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg});n.default.set({key:n.default.KEY_SET_TAG_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=0;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},7923:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.unbindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.unbindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`unbind alias result`,this.unbindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},9285:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(t){this.delay=10;this.delay=t;}start(){this.cancel();let t=this;this.timer=setInterval((function(){t.run();}),this.delay);}cancel(){if(this.timer)clearInterval(this.timer);}}e["default"]=r;},1571:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6561));const a=i(r(9285));class o extends a.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send();}refresh(){this.delay=60*1e3;this.start();}}o.INTERVAL=60*1e3;o.InstanceHolder=(n=class{},n.instance=new o(o.INTERVAL),n);e["default"]=o;},5574:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4736));const s=i(r(323));var a;(function(t){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let r=(0, n.default)("9223372036854775808");function i(t){let e=a(t);let r=o(e);let i=r[1];let n=r[0];return u(i)+u(n)}t.to_getui=i;function a(t){let e=s.default.md5Hex(t);let r=c(e);r[6]&=15;r[6]|=48;r[8]&=63;r[8]|=128;return r}function o(t){let e=(0, n.default)(0);let r=(0, n.default)(0);for(let r=0;r<8;r++)e=e.multiply(256).plus((0, n.default)(255&t[r]));for(let e=8;e<16;e++)r=r.multiply(256).plus((0, n.default)(255&t[e]));return [e,r]}function u(t){if(t>=r)t=r.multiply(2).minus(t);let i="";for(;t>(0, n.default)(0);t=t.divide(62))i+=e.charAt(Number(t.divmod(62).remainder));return i}function c(t){let e=t.length;if(e%2!=0)return [];let r=new Array;for(let i=0;i<e;i+=2)r.push(parseInt(t.substring(i,i+2),16));return r}})(a||(a={}));e["default"]=a;},323:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2620));const s=i(r(1354));const a=i(r(1754));var o;(function(t){let e;let r;let i;let o;let u=new n.default;let c=s.default.mode.CBC;let l=s.default.pad.Pkcs7;let f=s.default.AES;t.algorithmMap=new Map([["aes",s.default.AES]]);t.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]);t.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]);function h(){e=s.default.MD5((new Date).getTime().toString());r=s.default.MD5(e);u.setPublicKey(a.default.publicKey);e.toString(s.default.enc.Hex);r.toString(s.default.enc.Hex);i=u.encrypt(e.toString(s.default.enc.Hex));o=u.encrypt(r.toString(s.default.enc.Hex));}t.resetKey=h;function d(e,r,i){f=t.algorithmMap.get(e);c=t.modeMap.get(r);l=t.paddingMap.get(i);}t.setEncryptParams=d;function p(t){return f.encrypt(t,e,{iv:r,mode:c,padding:l}).toString()}t.encrypt=p;function v(t){return f.decrypt(t,e,{iv:r,mode:c,padding:l}).toString(s.default.enc.Utf8)}t.decrypt=v;function g(t){return s.default.SHA256(t).toString(s.default.enc.Base64)}t.sha256=g;function y(t){return s.default.MD5(t).toString(s.default.enc.Hex)}t.md5Hex=y;function m(){return i?i:""}t.getEncryptedSecretKey=m;function w(){return o?o:""}t.getEncryptedIV=w;})(o||(o={}));e["default"]=o;},1237:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{static info(...t){if(this.debugMode)console.info(`[GtPush]`,t);}static error(...t){console.error(`[GtPush]`,t);}}r.debugMode=false;e["default"]=r;},2620:(t,e,r)=>{r.r(e);r.d(e,{JSEncrypt:()=>wt,default:()=>St});var i="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return i.charAt(t)}function s(t,e){return t&e}function a(t,e){return t|e}function o(t,e){return t^e}function u(t,e){return t&~e}function c(t){if(0==t)return -1;var e=0;if(0==(65535&t)){t>>=16;e+=16;}if(0==(255&t)){t>>=8;e+=8;}if(0==(15&t)){t>>=4;e+=4;}if(0==(3&t)){t>>=2;e+=2;}if(0==(1&t))++e;return e}function l(t){var e=0;while(0!=t){t&=t-1;++e;}return e}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="=";function d(t){var e;var r;var i="";for(e=0;e+3<=t.length;e+=3){r=parseInt(t.substring(e,e+3),16);i+=f.charAt(r>>6)+f.charAt(63&r);}if(e+1==t.length){r=parseInt(t.substring(e,e+1),16);i+=f.charAt(r<<2);}else if(e+2==t.length){r=parseInt(t.substring(e,e+2),16);i+=f.charAt(r>>2)+f.charAt((3&r)<<4);}while((3&i.length)>0)i+=h;return i}function p(t){var e="";var r;var i=0;var s=0;for(r=0;r<t.length;++r){if(t.charAt(r)==h)break;var a=f.indexOf(t.charAt(r));if(a<0)continue;if(0==i){e+=n(a>>2);s=3&a;i=1;}else if(1==i){e+=n(s<<2|a>>4);s=15&a;i=2;}else if(2==i){e+=n(s);e+=n(a>>2);s=3&a;i=3;}else {e+=n(s<<2|a>>4);e+=n(15&a);i=0;}}if(1==i)e+=n(s<<2);return e}var g;var y={decode:function(t){var e;if(void 0===g){var r="0123456789ABCDEF";var i=" \f\n\r\t \u2028\u2029";g={};for(e=0;e<16;++e)g[r.charAt(e)]=e;r=r.toLowerCase();for(e=10;e<16;++e)g[r.charAt(e)]=e;for(e=0;e<i.length;++e)g[i.charAt(e)]=-1;}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=g[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=2){n[n.length]=s;s=0;a=0;}else s<<=4;}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var m;var w={decode:function(t){var e;if(void 0===m){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i="= \f\n\r\t \u2028\u2029";m=Object.create(null);for(e=0;e<64;++e)m[r.charAt(e)]=e;m["-"]=62;m["_"]=63;for(e=0;e<i.length;++e)m[i.charAt(e)]=-1;}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=m[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=4){n[n.length]=s>>16;n[n.length]=s>>8&255;n[n.length]=255&s;s=0;a=0;}else s<<=6;}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16;n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=w.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return w.decode(t)}};var S=1e13;var _=function(){function t(t){this.buf=[+t||0];}t.prototype.mulAdd=function(t,e){var r=this.buf;var i=r.length;var n;var s;for(n=0;n<i;++n){s=r[n]*t+e;if(s<S)e=0;else {e=0|s/S;s-=e*S;}r[n]=s;}if(e>0)r[n]=e;};t.prototype.sub=function(t){var e=this.buf;var r=e.length;var i;var n;for(i=0;i<r;++i){n=e[i]-t;if(n<0){n+=S;t=1;}else t=0;e[i]=n;}while(0===e[e.length-1])e.pop();};t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");var e=this.buf;var r=e[e.length-1].toString();for(var i=e.length-2;i>=0;--i)r+=(S+e[i]).toString().substring(1);return r};t.prototype.valueOf=function(){var t=this.buf;var e=0;for(var r=t.length-1;r>=0;--r)e=e*S+t[r];return e};t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this};return t}();var b="…";var E=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;var D=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function M(t,e){if(t.length>e)t=t.substring(0,e)+b;return t}var T=function(){function t(e,r){this.hexDigits="0123456789ABCDEF";if(e instanceof t){this.enc=e.enc;this.pos=e.pos;}else {this.enc=e;this.pos=r;}}t.prototype.get=function(t){if(void 0===t)t=this.pos++;if(t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return "string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]};t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)};t.prototype.hexDump=function(t,e,r){var i="";for(var n=t;n<e;++n){i+=this.hexByte(this.get(n));if(true!==r)switch(15&n){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" ";}}return i};t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return false}return true};t.prototype.parseStringISO=function(t,e){var r="";for(var i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r};t.prototype.parseStringUTF=function(t,e){var r="";for(var i=t;i<e;){var n=this.get(i++);if(n<128)r+=String.fromCharCode(n);else if(n>191&&n<224)r+=String.fromCharCode((31&n)<<6|63&this.get(i++));else r+=String.fromCharCode((15&n)<<12|(63&this.get(i++))<<6|63&this.get(i++));}return r};t.prototype.parseStringBMP=function(t,e){var r="";var i;var n;for(var s=t;s<e;){i=this.get(s++);n=this.get(s++);r+=String.fromCharCode(i<<8|n);}return r};t.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e);var n=(r?E:D).exec(i);if(!n)return "Unrecognized time: "+i;if(r){n[1]=+n[1];n[1]+=+n[1]<70?2e3:1900;}i=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4];if(n[5]){i+=":"+n[5];if(n[6]){i+=":"+n[6];if(n[7])i+="."+n[7];}}if(n[8]){i+=" UTC";if("Z"!=n[8]){i+=n[8];if(n[9])i+=":"+n[9];}}return i};t.prototype.parseInteger=function(t,e){var r=this.get(t);var i=r>127;var n=i?255:0;var s;var a="";while(r==n&&++t<e)r=this.get(t);s=e-t;if(0===s)return i?-1:0;if(s>4){a=r;s<<=3;while(0==(128&(+a^n))){a=+a<<1;--s;}a="("+s+" bit)\n";}if(i)r-=256;var o=new _(r);for(var u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return a+o.toString()};t.prototype.parseBitString=function(t,e,r){var i=this.get(t);var n=(e-t-1<<3)-i;var s="("+n+" bit)\n";var a="";for(var o=t+1;o<e;++o){var u=this.get(o);var c=o==e-1?i:0;for(var l=7;l>=c;--l)a+=u>>l&1?"1":"0";if(a.length>r)return s+M(a,r)}return s+a};t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return M(this.parseStringISO(t,e),r);var i=e-t;var n="("+i+" byte)\n";r/=2;if(i>r)e=t+r;for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));if(i>r)n+=b;return n};t.prototype.parseOID=function(t,e,r){var i="";var n=new _;var s=0;for(var a=t;a<e;++a){var o=this.get(a);n.mulAdd(128,127&o);s+=7;if(!(128&o)){if(""===i){n=n.simplify();if(n instanceof _){n.sub(80);i="2."+n.toString();}else {var u=n<80?n<40?0:1:2;i=u+"."+(n-40*u);}}else i+="."+n.toString();if(i.length>r)return M(i,r);n=new _;s=0;}}if(s>0)i+=".incomplete";return i};return t}();var I=function(){function t(t,e,r,i,n){if(!(i instanceof A))throw new Error("Invalid tag value.");this.stream=t;this.header=e;this.length=r;this.tag=i;this.sub=n;}t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return "EOC";case 1:return "BOOLEAN";case 2:return "INTEGER";case 3:return "BIT_STRING";case 4:return "OCTET_STRING";case 5:return "NULL";case 6:return "OBJECT_IDENTIFIER";case 7:return "ObjectDescriptor";case 8:return "EXTERNAL";case 9:return "REAL";case 10:return "ENUMERATED";case 11:return "EMBEDDED_PDV";case 12:return "UTF8String";case 16:return "SEQUENCE";case 17:return "SET";case 18:return "NumericString";case 19:return "PrintableString";case 20:return "TeletexString";case 21:return "VideotexString";case 22:return "IA5String";case 23:return "UTCTime";case 24:return "GeneralizedTime";case 25:return "GraphicString";case 26:return "VisibleString";case 27:return "GeneralString";case 28:return "UniversalString";case 30:return "BMPString"}return "Universal_"+this.tag.tagNumber.toString();case 1:return "Application_"+this.tag.tagNumber.toString();case 2:return "["+this.tag.tagNumber.toString()+"]";case 3:return "Private_"+this.tag.tagNumber.toString()}};t.prototype.content=function(t){if(void 0===this.tag)return null;if(void 0===t)t=1/0;var e=this.posContent();var r=Math.abs(this.length);if(!this.tag.isUniversal()){if(null!==this.sub)return "("+this.sub.length+" elem)";return this.stream.parseOctetString(e,e+r,t)}switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:if(null!==this.sub)return "("+this.sub.length+" elem)";else return "(no elem)";case 12:return M(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return M(this.stream.parseStringISO(e,e+r),t);case 30:return M(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null};t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"};t.prototype.toPrettyString=function(t){if(void 0===t)t="";var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0)e+="+";e+=this.length;if(this.tag.tagConstructed)e+=" (constructed)";else if(this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub)e+=" (encapsulates)";e+="\n";if(null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t);}return e};t.prototype.posStart=function(){return this.stream.pos};t.prototype.posContent=function(){return this.stream.pos+this.header};t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)};t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),true)};t.decodeLength=function(t){var e=t.get();var r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i<r;++i)e=256*e+t.get();return e};t.prototype.getHexStringValue=function(){var t=this.toHexString();var e=2*this.header;var r=2*this.length;return t.substr(e,r)};t.decode=function(e){var r;if(!(e instanceof T))r=new T(e,0);else r=e;var i=new T(r);var n=new A(r);var s=t.decodeLength(r);var a=r.pos;var o=a-i.pos;var u=null;var c=function(){var e=[];if(null!==s){var i=a+s;while(r.pos<i)e[e.length]=t.decode(r);if(r.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var n=t.decode(r);if(n.tag.isEOC())break;e[e.length]=n;}s=a-r.pos;}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(n.tagConstructed)u=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber)if(0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null;}if(null===u){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s);}return new t(i,o,s,n,u)};return t}();var A=function(){function t(t){var e=t.get();this.tagClass=e>>6;this.tagConstructed=0!==(32&e);this.tagNumber=31&e;if(31==this.tagNumber){var r=new _;do{e=t.get();r.mulAdd(128,127&e);}while(128&e);this.tagNumber=r.simplify();}}t.prototype.isUniversal=function(){return 0===this.tagClass};t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber};return t}();var x;var R=0xdeadbeefcafe;var B=15715070==(16777215&R);var O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var k=(1<<26)/O[O.length-1];var C=function(){function t(t,e,r){if(null!=t)if("number"==typeof t)this.fromNumber(t,e,r);else if(null==e&&"string"!=typeof t)this.fromString(t,256);else this.fromString(t,e);}t.prototype.toString=function(t){if(this.s<0)return "-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(4==t)e=2;else return this.toRadix(t);var r=(1<<e)-1;var i;var s=false;var a="";var o=this.t;var u=this.DB-o*this.DB%e;if(o-- >0){if(u<this.DB&&(i=this[o]>>u)>0){s=true;a=n(i);}while(o>=0){if(u<e){i=(this[o]&(1<<u)-1)<<e-u;i|=this[--o]>>(u+=this.DB-e);}else {i=this[o]>>(u-=e)&r;if(u<=0){u+=this.DB;--o;}}if(i>0)s=true;if(s)a+=n(i);}}return s?a:"0"};t.prototype.negate=function(){var e=H();t.ZERO.subTo(this,e);return e};t.prototype.abs=function(){return this.s<0?this.negate():this};t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;e=r-t.t;if(0!=e)return this.s<0?-e:e;while(--r>=0)if(0!=(e=this[r]-t[r]))return e;return 0};t.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};t.prototype.mod=function(e){var r=H();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(t.ZERO)>0)e.subTo(r,r);return r};t.prototype.modPowInt=function(t,e){var r;if(t<256||e.isEven())r=new P(e);else r=new V(e);return this.exp(t,r)};t.prototype.clone=function(){var t=H();this.copyTo(t);return t};t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;else if(0==this.t)return -1}else if(1==this.t)return this[0];else if(0==this.t)return 0;return (this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]};t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24};t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};t.prototype.signum=function(){if(this.s<0)return -1;else if(this.t<=0||1==this.t&&this[0]<=0)return 0;else return 1};t.prototype.toByteArray=function(){var t=this.t;var e=[];e[0]=this.s;var r=this.DB-t*this.DB%8;var i;var n=0;if(t-- >0){if(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r)e[n++]=i|this.s<<this.DB-r;while(t>=0){if(r<8){i=(this[t]&(1<<r)-1)<<8-r;i|=this[--t]>>(r+=this.DB-8);}else {i=this[t]>>(r-=8)&255;if(r<=0){r+=this.DB;--t;}}if(0!=(128&i))i|=-256;if(0==n&&(128&this.s)!=(128&i))++n;if(n>0||i!=this.s)e[n++]=i;}}return e};t.prototype.equals=function(t){return 0==this.compareTo(t)};t.prototype.min=function(t){return this.compareTo(t)<0?this:t};t.prototype.max=function(t){return this.compareTo(t)>0?this:t};t.prototype.and=function(t){var e=H();this.bitwiseTo(t,s,e);return e};t.prototype.or=function(t){var e=H();this.bitwiseTo(t,a,e);return e};t.prototype.xor=function(t){var e=H();this.bitwiseTo(t,o,e);return e};t.prototype.andNot=function(t){var e=H();this.bitwiseTo(t,u,e);return e};t.prototype.not=function(){var t=H();for(var e=0;e<this.t;++e)t[e]=this.DM&~this[e];t.t=this.t;t.s=~this.s;return t};t.prototype.shiftLeft=function(t){var e=H();if(t<0)this.rShiftTo(-t,e);else this.lShiftTo(t,e);return e};t.prototype.shiftRight=function(t){var e=H();if(t<0)this.lShiftTo(-t,e);else this.rShiftTo(t,e);return e};t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+c(this[t]);if(this.s<0)return this.t*this.DB;return -1};t.prototype.bitCount=function(){var t=0;var e=this.s&this.DM;for(var r=0;r<this.t;++r)t+=l(this[r]^e);return t};t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);if(e>=this.t)return 0!=this.s;return 0!=(this[e]&1<<t%this.DB)};t.prototype.setBit=function(t){return this.changeBit(t,a)};t.prototype.clearBit=function(t){return this.changeBit(t,u)};t.prototype.flipBit=function(t){return this.changeBit(t,o)};t.prototype.add=function(t){var e=H();this.addTo(t,e);return e};t.prototype.subtract=function(t){var e=H();this.subTo(t,e);return e};t.prototype.multiply=function(t){var e=H();this.multiplyTo(t,e);return e};t.prototype.divide=function(t){var e=H();this.divRemTo(t,e,null);return e};t.prototype.remainder=function(t){var e=H();this.divRemTo(t,null,e);return e};t.prototype.divideAndRemainder=function(t){var e=H();var r=H();this.divRemTo(t,e,r);return [e,r]};t.prototype.modPow=function(t,e){var r=t.bitLength();var i;var n=Y(1);var s;if(r<=0)return n;else if(r<18)i=1;else if(r<48)i=3;else if(r<144)i=4;else if(r<768)i=5;else i=6;if(r<8)s=new P(e);else if(e.isEven())s=new L(e);else s=new V(e);var a=[];var o=3;var u=i-1;var c=(1<<i)-1;a[1]=s.convert(this);if(i>1){var l=H();s.sqrTo(a[1],l);while(o<=c){a[o]=H();s.mulTo(l,a[o-2],a[o]);o+=2;}}var f=t.t-1;var h;var d=true;var p=H();var v;r=W(t[f])-1;while(f>=0){if(r>=u)h=t[f]>>r-u&c;else {h=(t[f]&(1<<r+1)-1)<<u-r;if(f>0)h|=t[f-1]>>this.DB+r-u;}o=i;while(0==(1&h)){h>>=1;--o;}if((r-=o)<0){r+=this.DB;--f;}if(d){a[h].copyTo(n);d=false;}else {while(o>1){s.sqrTo(n,p);s.sqrTo(p,n);o-=2;}if(o>0)s.sqrTo(n,p);else {v=n;n=p;p=v;}s.mulTo(p,a[h],n);}while(f>=0&&0==(t[f]&1<<r)){s.sqrTo(n,p);v=n;n=p;p=v;if(--r<0){r=this.DB-1;--f;}}}return s.revert(n)};t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||0==e.signum())return t.ZERO;var i=e.clone();var n=this.clone();var s=Y(1);var a=Y(0);var o=Y(0);var u=Y(1);while(0!=i.signum()){while(i.isEven()){i.rShiftTo(1,i);if(r){if(!s.isEven()||!a.isEven()){s.addTo(this,s);a.subTo(e,a);}s.rShiftTo(1,s);}else if(!a.isEven())a.subTo(e,a);a.rShiftTo(1,a);}while(n.isEven()){n.rShiftTo(1,n);if(r){if(!o.isEven()||!u.isEven()){o.addTo(this,o);u.subTo(e,u);}o.rShiftTo(1,o);}else if(!u.isEven())u.subTo(e,u);u.rShiftTo(1,u);}if(i.compareTo(n)>=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(u,a);}else {n.subTo(i,n);if(r)o.subTo(s,o);u.subTo(a,u);}}if(0!=n.compareTo(t.ONE))return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;if(u.signum()<0)return u.add(e);else return u};t.prototype.pow=function(t){return this.exp(t,new N)};t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone();var r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r;r=i;}var n=e.getLowestSetBit();var s=r.getLowestSetBit();if(s<0)return e;if(n<s)s=n;if(s>0){e.rShiftTo(s,e);r.rShiftTo(s,r);}while(e.signum()>0){if((n=e.getLowestSetBit())>0)e.rShiftTo(n,e);if((n=r.getLowestSetBit())>0)r.rShiftTo(n,r);if(e.compareTo(r)>=0){e.subTo(r,e);e.rShiftTo(1,e);}else {r.subTo(e,r);r.rShiftTo(1,r);}}if(s>0)r.lShiftTo(s,r);return r};t.prototype.isProbablePrime=function(t){var e;var r=this.abs();if(1==r.t&&r[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(r[0]==O[e])return true;return false}if(r.isEven())return false;e=1;while(e<O.length){var i=O[e];var n=e+1;while(n<O.length&&i<k)i*=O[n++];i=r.modInt(i);while(e<n)if(i%O[e++]==0)return false}return r.millerRabin(t)};t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t;t.s=this.s;};t.prototype.fromInt=function(t){this.t=1;this.s=t<0?-1:0;if(t>0)this[0]=t;else if(t<-1)this[0]=t+this.DV;else this.t=0;};t.prototype.fromString=function(e,r){var i;if(16==r)i=4;else if(8==r)i=3;else if(256==r)i=8;else if(2==r)i=1;else if(32==r)i=5;else if(4==r)i=2;else {this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length;var s=false;var a=0;while(--n>=0){var o=8==i?255&+e[n]:G(e,n);if(o<0){if("-"==e.charAt(n))s=true;continue}s=false;if(0==a)this[this.t++]=o;else if(a+i>this.DB){this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a;this[this.t++]=o>>this.DB-a;}else this[this.t-1]|=o<<a;a+=i;if(a>=this.DB)a-=this.DB;}if(8==i&&0!=(128&+e[0])){this.s=-1;if(a>0)this[this.t-1]|=(1<<this.DB-a)-1<<a;}this.clamp();if(s)t.ZERO.subTo(this,this);};t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t;};t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t;e.s=this.s;};t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0);e.s=this.s;};t.prototype.lShiftTo=function(t,e){var r=t%this.DB;var i=this.DB-r;var n=(1<<i)-1;var s=Math.floor(t/this.DB);var a=this.s<<r&this.DM;for(var o=this.t-1;o>=0;--o){e[o+s+1]=this[o]>>i|a;a=(this[o]&n)<<r;}for(var o=s-1;o>=0;--o)e[o]=0;e[s]=a;e.t=this.t+s+1;e.s=this.s;e.clamp();};t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB;var n=this.DB-i;var s=(1<<i)-1;e[0]=this[r]>>i;for(var a=r+1;a<this.t;++a){e[a-r-1]|=(this[a]&s)<<n;e[a-r]=this[a]>>i;}if(i>0)e[this.t-r-1]|=(this.s&s)<<n;e.t=this.t-r;e.clamp();};t.prototype.subTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]-t[r];e[r++]=i&this.DM;i>>=this.DB;}if(t.t<this.t){i-=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB;}i+=this.s;}else {i+=this.s;while(r<t.t){i-=t[r];e[r++]=i&this.DM;i>>=this.DB;}i-=t.s;}e.s=i<0?-1:0;if(i<-1)e[r++]=this.DV+i;else if(i>0)e[r++]=i;e.t=r;e.clamp();};t.prototype.multiplyTo=function(e,r){var i=this.abs();var n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r[s]=0;for(s=0;s<n.t;++s)r[s+i.t]=i.am(0,n[s],r,s,0,i.t);r.s=0;r.clamp();if(this.s!=e.s)t.ZERO.subTo(r,r);};t.prototype.squareTo=function(t){var e=this.abs();var r=t.t=2*e.t;while(--r>=0)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);if((t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV){t[r+e.t]-=e.DV;t[r+e.t+1]=1;}}if(t.t>0)t[t.t-1]+=e.am(r,e[r],t,2*r,0,1);t.s=0;t.clamp();};t.prototype.divRemTo=function(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t<n.t){if(null!=r)r.fromInt(0);if(null!=i)this.copyTo(i);return}if(null==i)i=H();var a=H();var o=this.s;var u=e.s;var c=this.DB-W(n[n.t-1]);if(c>0){n.lShiftTo(c,a);s.lShiftTo(c,i);}else {n.copyTo(a);s.copyTo(i);}var l=a.t;var f=a[l-1];if(0==f)return;var h=f*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0);var d=this.FV/h;var p=(1<<this.F1)/h;var v=1<<this.F2;var g=i.t;var y=g-l;var m=null==r?H():r;a.dlShiftTo(y,m);if(i.compareTo(m)>=0){i[i.t++]=1;i.subTo(m,i);}t.ONE.dlShiftTo(l,m);m.subTo(a,a);while(a.t<l)a[a.t++]=0;while(--y>=0){var w=i[--g]==f?this.DM:Math.floor(i[g]*d+(i[g-1]+v)*p);if((i[g]+=a.am(0,w,i,y,0,l))<w){a.dlShiftTo(y,m);i.subTo(m,i);while(i[g]<--w)i.subTo(m,i);}}if(null!=r){i.drShiftTo(l,r);if(o!=u)t.ZERO.subTo(r,r);}i.t=l;i.clamp();if(c>0)i.rShiftTo(c,i);if(o<0)t.ZERO.subTo(i,i);};t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;e=e*(2-(15&t)*e)&15;e=e*(2-(255&t)*e)&255;e=e*(2-((65535&t)*e&65535))&65535;e=e*(2-t*e%this.DV)%this.DV;return e>0?this.DV-e:-e};t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)};t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=H();var n=H();var s=r.convert(this);var a=W(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<<a)>0)r.mulTo(n,s,i);else {var o=i;i=n;n=o;}}return r.revert(i)};t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))};t.prototype.toRadix=function(t){if(null==t)t=10;if(0==this.signum()||t<2||t>36)return "0";var e=this.chunkSize(t);var r=Math.pow(t,e);var i=Y(r);var n=H();var s=H();var a="";this.divRemTo(i,n,s);while(n.signum()>0){a=(r+s.intValue()).toString(t).substr(1)+a;n.divRemTo(i,n,s);}return s.intValue().toString(t)+a};t.prototype.fromRadix=function(e,r){this.fromInt(0);if(null==r)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i);var s=false;var a=0;var o=0;for(var u=0;u<e.length;++u){var c=G(e,u);if(c<0){if("-"==e.charAt(u)&&0==this.signum())s=true;continue}o=r*o+c;if(++a>=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0;}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0);}if(s)t.ZERO.subTo(this,this);};t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(t.ONE.shiftLeft(e-1),this);}}else {var n=[];var s=7&e;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<<s)-1;else n[0]=0;this.fromString(n,256);}};t.prototype.bitwiseTo=function(t,e,r){var i;var n;var s=Math.min(t.t,this.t);for(i=0;i<s;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){n=t.s&this.DM;for(i=s;i<this.t;++i)r[i]=e(this[i],n);r.t=this.t;}else {n=this.s&this.DM;for(i=s;i<t.t;++i)r[i]=e(n,t[i]);r.t=t.t;}r.s=e(this.s,t.s);r.clamp();};t.prototype.changeBit=function(e,r){var i=t.ONE.shiftLeft(e);this.bitwiseTo(i,r,i);return i};t.prototype.addTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]+t[r];e[r++]=i&this.DM;i>>=this.DB;}if(t.t<this.t){i+=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB;}i+=this.s;}else {i+=this.s;while(r<t.t){i+=t[r];e[r++]=i&this.DM;i>>=this.DB;}i+=t.s;}e.s=i<0?-1:0;if(i>0)e[r++]=i;else if(i<-1)e[r++]=this.DV+i;e.t=r;e.clamp();};t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t);++this.t;this.clamp();};t.prototype.dAddOffset=function(t,e){if(0==t)return;while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV){this[e]-=this.DV;if(++e>=this.t)this[this.t++]=0;++this[e];}};t.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);r.s=0;r.t=i;while(i>0)r[--i]=0;for(var n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp();};t.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;r.s=0;while(--i>=0)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp();r.drShiftTo(1,r);};t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t;var r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r};t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE);var i=r.getLowestSetBit();if(i<=0)return false;var n=r.shiftRight(i);e=e+1>>1;if(e>O.length)e=O.length;var s=H();for(var a=0;a<e;++a){s.fromInt(O[Math.floor(Math.random()*O.length)]);var o=s.modPow(n,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(r)){var u=1;while(u++<i&&0!=o.compareTo(r)){o=o.modPowInt(2,this);if(0==o.compareTo(t.ONE))return false}if(0!=o.compareTo(r))return false}}return true};t.prototype.square=function(){var t=H();this.squareTo(t);return t};t.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone();var i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var n=r;r=i;i=n;}var s=r.getLowestSetBit();var a=i.getLowestSetBit();if(a<0){e(r);return}if(s<a)a=s;if(a>0){r.rShiftTo(a,r);i.rShiftTo(a,i);}var o=function(){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r);}else {i.subTo(r,i);i.rShiftTo(1,i);}if(!(r.signum()>0)){if(a>0)i.lShiftTo(a,i);setTimeout((function(){e(i);}),0);}else setTimeout(o,0);};setTimeout(o,10);};t.prototype.fromNumberAsync=function(e,r,i,n){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);var s=this;var o=function(){s.dAddOffset(2,0);if(s.bitLength()>e)s.subTo(t.ONE.shiftLeft(e-1),s);if(s.isProbablePrime(r))setTimeout((function(){n();}),0);else setTimeout(o,0);};setTimeout(o,0);}else {var u=[];var c=7&e;u.length=(e>>3)+1;r.nextBytes(u);if(c>0)u[0]&=(1<<c)-1;else u[0]=0;this.fromString(u,256);}};return t}();var N=function(){function t(){}t.prototype.convert=function(t){return t};t.prototype.revert=function(t){return t};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);};return t}();var P=function(){function t(t){this.m=t;}t.prototype.convert=function(t){if(t.s<0||t.compareTo(this.m)>=0)return t.mod(this.m);else return t};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.divRemTo(this.m,null,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var V=function(){function t(t){this.m=t;this.mp=t.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<<t.DB-15)-1;this.mt2=2*t.t;}t.prototype.convert=function(t){var e=H();t.abs().dlShiftTo(this.m.t,e);e.divRemTo(this.m,null,e);if(t.s<0&&e.compareTo(C.ZERO)>0)this.m.subTo(e,e);return e};t.prototype.revert=function(t){var e=H();t.copyTo(e);this.reduce(e);return e};t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e];var i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;r=e+this.m.t;t[r]+=this.m.am(0,i,t,e,0,this.m.t);while(t[r]>=t.DV){t[r]-=t.DV;t[++r]++;}}t.clamp();t.drShiftTo(this.m.t,t);if(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var L=function(){function t(t){this.m=t;this.r2=H();this.q3=H();C.ONE.dlShiftTo(2*t.t,this.r2);this.mu=this.r2.divide(t);}t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);else if(t.compareTo(this.m)<0)return t;else {var e=H();t.copyTo(e);this.reduce(e);return e}};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2);if(t.t>this.m.t+1){t.t=this.m.t+1;t.clamp();}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();function H(){return new C(null)}function K(t,e){return new C(t,e)}var U="undefined"!==typeof navigator;if(U&&B&&"Microsoft Internet Explorer"==navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){var o=32767&r;var u=r>>15;while(--a>=0){var c=32767&this[e];var l=this[e++]>>15;var f=u*c+l*o;c=o*c+((32767&f)<<15)+i[n]+(1073741823&s);s=(c>>>30)+(f>>>15)+u*l+(s>>>30);i[n++]=1073741823&c;}return s};x=30;}else if(U&&B&&"Netscape"!=navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){while(--a>=0){var o=r*this[e++]+i[n]+s;s=Math.floor(o/67108864);i[n++]=67108863&o;}return s};x=26;}else {C.prototype.am=function t(e,r,i,n,s,a){var o=16383&r;var u=r>>14;while(--a>=0){var c=16383&this[e];var l=this[e++]>>14;var f=u*c+l*o;c=o*c+((16383&f)<<14)+i[n]+s;s=(c>>28)+(f>>14)+u*l;i[n++]=268435455&c;}return s};x=28;}C.prototype.DB=x;C.prototype.DM=(1<<x)-1;C.prototype.DV=1<<x;var j=52;C.prototype.FV=Math.pow(2,j);C.prototype.F1=j-x;C.prototype.F2=2*x-j;var q=[];var F;var z;F="0".charCodeAt(0);for(z=0;z<=9;++z)q[F++]=z;F="a".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;F="A".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;function G(t,e){var r=q[t.charCodeAt(e)];return null==r?-1:r}function Y(t){var e=H();e.fromInt(t);return e}function W(t){var e=1;var r;if(0!=(r=t>>>16)){t=r;e+=16;}if(0!=(r=t>>8)){t=r;e+=8;}if(0!=(r=t>>4)){t=r;e+=4;}if(0!=(r=t>>2)){t=r;e+=2;}if(0!=(r=t>>1)){t=r;e+=1;}return e}C.ZERO=Y(0);C.ONE=Y(1);var J=function(){function t(){this.i=0;this.j=0;this.S=[];}t.prototype.init=function(t){var e;var r;var i;for(e=0;e<256;++e)this.S[e]=e;r=0;for(e=0;e<256;++e){r=r+this.S[e]+t[e%t.length]&255;i=this.S[e];this.S[e]=this.S[r];this.S[r]=i;}this.i=0;this.j=0;};t.prototype.next=function(){var t;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;t=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=t;return this.S[t+this.S[this.i]&255]};return t}();function Z(){return new J}var $=256;var X;var Q=null;var tt;if(null==Q){Q=[];tt=0;}function nt(){if(null==X){X=Z();while(tt<$){var t=Math.floor(65536*Math.random());Q[tt++]=255&t;}X.init(Q);for(tt=0;tt<Q.length;++tt)Q[tt]=0;tt=0;}return X.next()}var st=function(){function t(){}t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=nt();};return t}();function at(t,e){if(e<t.length+22){console.error("Message too long for RSA");return null}var r=e-t.length-6;var i="";for(var n=0;n<r;n+=2)i+="ff";var s="0001"+i+"00"+t;return K(s,16)}function ot(t,e){if(e<t.length+11){console.error("Message too long for RSA");return null}var r=[];var i=t.length-1;while(i>=0&&e>0){var n=t.charCodeAt(i--);if(n<128)r[--e]=n;else if(n>127&&n<2048){r[--e]=63&n|128;r[--e]=n>>6|192;}else {r[--e]=63&n|128;r[--e]=n>>6&63|128;r[--e]=n>>12|224;}}r[--e]=0;var s=new st;var a=[];while(e>2){a[0]=0;while(0==a[0])s.nextBytes(a);r[--e]=a[0];}r[--e]=2;r[--e]=0;return new C(r)}var ut=function(){function t(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null;}t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)};t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);var r=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(r)<0)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)};t.prototype.setPublic=function(t,e){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);}else console.error("Invalid RSA public key");};t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3;var r=ot(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var n=i.toString(16);var s=n.length;for(var a=0;a<2*e-s;a++)n="0"+n;return n};t.prototype.setPrivate=function(t,e,r){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16);}else console.error("Invalid RSA private key");};t.prototype.setPrivateEx=function(t,e,r,i,n,s,a,o){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16);this.p=K(i,16);this.q=K(n,16);this.dmp1=K(s,16);this.dmq1=K(a,16);this.coeff=K(o,16);}else console.error("Invalid RSA private key");};t.prototype.generate=function(t,e){var r=new st;var i=t>>1;this.e=parseInt(e,16);var n=new C(e,16);for(;;){for(;;){this.p=new C(t-i,1,r);if(0==this.p.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.p.isProbablePrime(10))break}for(;;){this.q=new C(i,1,r);if(0==this.q.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q;this.q=s;}var a=this.p.subtract(C.ONE);var o=this.q.subtract(C.ONE);var u=a.multiply(o);if(0==u.gcd(n).compareTo(C.ONE)){this.n=this.p.multiply(this.q);this.d=n.modInverse(u);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}};t.prototype.decrypt=function(t){var e=K(t,16);var r=this.doPrivate(e);if(null==r)return null;return ct(r,this.n.bitLength()+7>>3)};t.prototype.generateAsync=function(t,e,r){var i=new st;var n=t>>1;this.e=parseInt(e,16);var s=new C(e,16);var a=this;var o=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q;a.q=t;}var e=a.p.subtract(C.ONE);var i=a.q.subtract(C.ONE);var n=e.multiply(i);if(0==n.gcd(s).compareTo(C.ONE)){a.n=a.p.multiply(a.q);a.d=s.modInverse(n);a.dmp1=a.d.mod(e);a.dmq1=a.d.mod(i);a.coeff=a.q.modInverse(a.p);setTimeout((function(){r();}),0);}else setTimeout(o,0);};var u=function(){a.q=H();a.q.fromNumberAsync(n,1,i,(function(){a.q.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.q.isProbablePrime(10))setTimeout(e,0);else setTimeout(u,0);}));}));};var c=function(){a.p=H();a.p.fromNumberAsync(t-n,1,i,(function(){a.p.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.p.isProbablePrime(10))setTimeout(u,0);else setTimeout(c,0);}));}));};setTimeout(c,0);};setTimeout(o,0);};t.prototype.sign=function(t,e,r){var i=ht(r);var n=i+e(t).toString();var s=at(n,this.n.bitLength()/4);if(null==s)return null;var a=this.doPrivate(s);if(null==a)return null;var o=a.toString(16);if(0==(1&o.length))return o;else return "0"+o};t.prototype.verify=function(t,e,r){var i=K(e,16);var n=this.doPublic(i);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,"");var a=dt(s);return a==r(t).toString()};t.prototype.encryptLong=function(t){var e=this;var r="";var i=(this.n.bitLength()+7>>3)-11;var n=this.setSplitChn(t,i);n.forEach((function(t){r+=e.encrypt(t);}));return r};t.prototype.decryptLong=function(t){var e="";var r=this.n.bitLength()+7>>3;var i=2*r;if(t.length>i){var n=t.match(new RegExp(".{1,"+i+"}","g"))||[];var s=[];for(var a=0;a<n.length;a++){var o=K(n[a],16);var u=this.doPrivate(o);if(null==u)return null;s.push(u);}e=lt(s,r);}else e=this.decrypt(t);return e};t.prototype.setSplitChn=function(t,e,r){if(void 0===r)r=[];var i=t.split("");var n=0;for(var s=0;s<i.length;s++){var a=i[s].charCodeAt(0);if(a<=127)n+=1;else if(a<=2047)n+=2;else if(a<=65535)n+=3;else n+=4;if(n>e){var o=t.substring(0,s);r.push(o);return this.setSplitChn(t.substring(s),e,r)}}r.push(t);return r};return t}();function ct(t,e){var r=t.toByteArray();var i=0;while(i<r.length&&0==r[i])++i;if(r.length-i!=e-1||2!=r[i])return null;++i;while(0!=r[i])if(++i>=r.length)return null;var n="";while(++i<r.length){var s=255&r[i];if(s<128)n+=String.fromCharCode(s);else if(s>191&&s<224){n+=String.fromCharCode((31&s)<<6|63&r[i+1]);++i;}else {n+=String.fromCharCode((15&s)<<12|(63&r[i+1])<<6|63&r[i+2]);i+=2;}}return n}function lt(t,e){var r=[];for(var i=0;i<t.length;i++){var n=t[i];var s=n.toByteArray();var a=0;while(a<s.length&&0==s[a])++a;if(s.length-a!=e-1||2!=s[a])return null;++a;while(0!=s[a])if(++a>=s.length)return null;r=r.concat(s.slice(a+1));}var o=r;var u=-1;var c="";while(++u<o.length){var l=255&o[u];if(l<128)c+=String.fromCharCode(l);else if(l>191&&l<224){c+=String.fromCharCode((31&l)<<6|63&o[u+1]);++u;}else {c+=String.fromCharCode((15&l)<<12|(63&o[u+1])<<6|63&o[u+2]);u+=2;}}return c}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ft[t]||""}function dt(t){for(var e in ft)if(ft.hasOwnProperty(e)){var r=ft[e];var i=r.length;if(t.substr(0,i)==r)return t.substr(i)}return t}var pt={};pt.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");var i=function(){};i.prototype=e.prototype;t.prototype=new i;t.prototype.constructor=t;t.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor)e.prototype.constructor=e;if(r){var n;for(n in r)t.prototype[n]=r[n];var s=function(){},a=["toString","valueOf"];try{if(/MSIE/.test(navigator.userAgent))s=function(t,e){for(n=0;n<a.length;n+=1){var r=a[n],i=e[r];if("function"===typeof i&&i!=Object.prototype[r])t[r]=i;}};}catch(t){}s(t.prototype,r);}}};var vt={};if("undefined"==typeof vt.asn1||!vt.asn1)vt.asn1={};vt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);if(e.length%2==1)e="0"+e;return e};this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1)){if(e.length%2==1)e="0"+e;else if(!e.match(/^[0-7]/))e="00"+e;}else {var r=e.substr(1);var i=r.length;if(i%2==1)i+=1;else if(!e.match(/^[0-7]/))i+=2;var n="";for(var s=0;s<i;s++)n+="f";var a=new C(n,16);var o=a.xor(t).add(C.ONE);e=o.toString(16).replace(/^-/,"");}return e};this.getPEMStringFromHex=function(t,e){return hextopem(t,e)};this.newObject=function(t){var e=vt,r=e.asn1,i=r.DERBoolean,n=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,d=r.DERTeletexString,p=r.DERIA5String,v=r.DERUTCTime,g=r.DERGeneralizedTime,y=r.DERSequence,m=r.DERSet,w=r.DERTaggedObject,S=r.ASN1Util.newObject;var _=Object.keys(t);if(1!=_.length)throw "key of param shall be only one.";var b=_[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":"))throw "undefined key: "+b;if("bool"==b)return new i(t[b]);if("int"==b)return new n(t[b]);if("bitstr"==b)return new s(t[b]);if("octstr"==b)return new a(t[b]);if("null"==b)return new o(t[b]);if("oid"==b)return new u(t[b]);if("enum"==b)return new c(t[b]);if("utf8str"==b)return new l(t[b]);if("numstr"==b)return new f(t[b]);if("prnstr"==b)return new h(t[b]);if("telstr"==b)return new d(t[b]);if("ia5str"==b)return new p(t[b]);if("utctime"==b)return new v(t[b]);if("gentime"==b)return new g(t[b]);if("seq"==b){var E=t[b];var D=[];for(var M=0;M<E.length;M++){var T=S(E[M]);D.push(T);}return new y({array:D})}if("set"==b){var E=t[b];var D=[];for(var M=0;M<E.length;M++){var T=S(E[M]);D.push(T);}return new m({array:D})}if("tag"==b){var I=t[b];if("[object Array]"===Object.prototype.toString.call(I)&&3==I.length){var A=S(I[2]);return new w({tag:I[0],explicit:I[1],obj:A})}else {var x={};if(void 0!==I.explicit)x.explicit=I.explicit;if(void 0!==I.tag)x.tag=I.tag;if(void 0===I.obj)throw "obj shall be specified for 'tag'.";x.obj=S(I.obj);return new w(x)}}};this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()};};vt.asn1.ASN1Util.oidHexToInt=function(t){var e="";var r=parseInt(t.substr(0,2),16);var i=Math.floor(r/40);var n=r%40;var e=i+"."+n;var s="";for(var a=2;a<t.length;a+=2){var o=parseInt(t.substr(a,2),16);var u=("00000000"+o.toString(2)).slice(-8);s+=u.substr(1,7);if("0"==u.substr(0,1)){var c=new C(s,2);e=e+"."+c.toString(10);s="";}}return e};vt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2));}return r};if(!t.match(/^[0-9.]+$/))throw "malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);return i};vt.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw "this.hV is null or undefined.";if(this.hV.length%2==1)throw "value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2;var e=t.toString(16);if(e.length%2==1)e="0"+e;if(t<128)return e;else {var r=e.length/2;if(r>15)throw "ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e}};this.getEncodedHex=function(){if(null==this.hTLV||this.isModified){this.hV=this.getFreshValueHex();this.hL=this.getLengthHexFromValue();this.hTLV=this.hT+this.hL+this.hV;this.isModified=false;}return this.hTLV};this.getValueHex=function(){this.getEncodedHex();return this.hV};this.getFreshValueHex=function(){return ""};};vt.asn1.DERAbstractString=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(this.s);};this.setStringHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t)this.setString(t);else if("undefined"!=typeof t["str"])this.setString(t["str"]);else if("undefined"!=typeof t["hex"])this.setStringHex(t["hex"]);};pt.lang.extend(vt.asn1.DERAbstractString,vt.asn1.ASN1Object);vt.asn1.DERAbstractTime=function(t){vt.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e};this.formatDate=function(t,e,r){var i=this.zeroPadding;var n=this.localDateToUTC(t);var s=String(n.getFullYear());if("utc"==e)s=s.substr(2,2);var a=i(String(n.getMonth()+1),2);var o=i(String(n.getDate()),2);var u=i(String(n.getHours()),2);var c=i(String(n.getMinutes()),2);var l=i(String(n.getSeconds()),2);var f=s+a+o+u+c+l;if(true===r){var h=n.getMilliseconds();if(0!=h){var d=i(String(h),3);d=d.replace(/[0]+$/,"");f=f+"."+d;}}return f+"Z"};this.zeroPadding=function(t,e){if(t.length>=e)return t;return new Array(e-t.length+1).join("0")+t};this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(t);};this.setByDateValue=function(t,e,r,i,n,s){var a=new Date(Date.UTC(t,e-1,r,i,n,s,0));this.setByDate(a);};this.getFreshValueHex=function(){return this.hV};};pt.lang.extend(vt.asn1.DERAbstractTime,vt.asn1.ASN1Object);vt.asn1.DERAbstractStructured=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null;this.isModified=true;this.asn1Array=t;};this.appendASN1Object=function(t){this.hTLV=null;this.isModified=true;this.asn1Array.push(t);};this.asn1Array=new Array;if("undefined"!=typeof t)if("undefined"!=typeof t["array"])this.asn1Array=t["array"];};pt.lang.extend(vt.asn1.DERAbstractStructured,vt.asn1.ASN1Object);vt.asn1.DERBoolean=function(){vt.asn1.DERBoolean.superclass.constructor.call(this);this.hT="01";this.hTLV="0101ff";};pt.lang.extend(vt.asn1.DERBoolean,vt.asn1.ASN1Object);vt.asn1.DERInteger=function(t){vt.asn1.DERInteger.superclass.constructor.call(this);this.hT="02";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["bigint"])this.setByBigInteger(t["bigint"]);else if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};pt.lang.extend(vt.asn1.DERInteger,vt.asn1.ASN1Object);vt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex();}vt.asn1.DERBitString.superclass.constructor.call(this);this.hT="03";this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null;this.isModified=true;this.hV=t;};this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw "unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null;this.isModified=true;this.hV=r+e;};this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;if(8==e)e=0;for(var r=0;r<=e;r++)t+="0";var i="";for(var r=0;r<t.length-1;r+=8){var n=t.substr(r,8);var s=parseInt(n,2).toString(16);if(1==s.length)s="0"+s;i+=s;}this.hTLV=null;this.isModified=true;this.hV="0"+e+i;};this.setByBooleanArray=function(t){var e="";for(var r=0;r<t.length;r++)if(true==t[r])e+="1";else e+="0";this.setByBinaryString(e);};this.newFalseArray=function(t){var e=new Array(t);for(var r=0;r<t;r++)e[r]=false;return e};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/))this.setHexValueIncludingUnusedBits(t);else if("undefined"!=typeof t["hex"])this.setHexValueIncludingUnusedBits(t["hex"]);else if("undefined"!=typeof t["bin"])this.setByBinaryString(t["bin"]);else if("undefined"!=typeof t["array"])this.setByBooleanArray(t["array"]);};pt.lang.extend(vt.asn1.DERBitString,vt.asn1.ASN1Object);vt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex();}vt.asn1.DEROctetString.superclass.constructor.call(this,t);this.hT="04";};pt.lang.extend(vt.asn1.DEROctetString,vt.asn1.DERAbstractString);vt.asn1.DERNull=function(){vt.asn1.DERNull.superclass.constructor.call(this);this.hT="05";this.hTLV="0500";};pt.lang.extend(vt.asn1.DERNull,vt.asn1.ASN1Object);vt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2));}return r};vt.asn1.DERObjectIdentifier.superclass.constructor.call(this);this.hT="06";this.setValueHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw "malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);this.hTLV=null;this.isModified=true;this.s=null;this.hV=i;};this.setValueName=function(t){var e=vt.asn1.x509.OID.name2oid(t);if(""!==e)this.setValueOidString(e);else throw "DERObjectIdentifier oidName undefined: "+t};this.getFreshValueHex=function(){return this.hV};if(void 0!==t)if("string"===typeof t)if(t.match(/^[0-2].[0-9.]+$/))this.setValueOidString(t);else this.setValueName(t);else if(void 0!==t.oid)this.setValueOidString(t.oid);else if(void 0!==t.hex)this.setValueHex(t.hex);else if(void 0!==t.name)this.setValueName(t.name);};pt.lang.extend(vt.asn1.DERObjectIdentifier,vt.asn1.ASN1Object);vt.asn1.DEREnumerated=function(t){vt.asn1.DEREnumerated.superclass.constructor.call(this);this.hT="0a";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};pt.lang.extend(vt.asn1.DEREnumerated,vt.asn1.ASN1Object);vt.asn1.DERUTF8String=function(t){vt.asn1.DERUTF8String.superclass.constructor.call(this,t);this.hT="0c";};pt.lang.extend(vt.asn1.DERUTF8String,vt.asn1.DERAbstractString);vt.asn1.DERNumericString=function(t){vt.asn1.DERNumericString.superclass.constructor.call(this,t);this.hT="12";};pt.lang.extend(vt.asn1.DERNumericString,vt.asn1.DERAbstractString);vt.asn1.DERPrintableString=function(t){vt.asn1.DERPrintableString.superclass.constructor.call(this,t);this.hT="13";};pt.lang.extend(vt.asn1.DERPrintableString,vt.asn1.DERAbstractString);vt.asn1.DERTeletexString=function(t){vt.asn1.DERTeletexString.superclass.constructor.call(this,t);this.hT="14";};pt.lang.extend(vt.asn1.DERTeletexString,vt.asn1.DERAbstractString);vt.asn1.DERIA5String=function(t){vt.asn1.DERIA5String.superclass.constructor.call(this,t);this.hT="16";};pt.lang.extend(vt.asn1.DERIA5String,vt.asn1.DERAbstractString);vt.asn1.DERUTCTime=function(t){vt.asn1.DERUTCTime.superclass.constructor.call(this,t);this.hT="17";this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s);};this.getFreshValueHex=function(){if("undefined"==typeof this.date&&"undefined"==typeof this.s){this.date=new Date;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s);}return this.hV};if(void 0!==t)if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{12}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);};pt.lang.extend(vt.asn1.DERUTCTime,vt.asn1.DERAbstractTime);vt.asn1.DERGeneralizedTime=function(t){vt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t);this.hT="18";this.withMillis=false;this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s);};this.getFreshValueHex=function(){if(void 0===this.date&&void 0===this.s){this.date=new Date;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s);}return this.hV};if(void 0!==t){if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{14}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);if(true===t.millis)this.withMillis=true;}};pt.lang.extend(vt.asn1.DERGeneralizedTime,vt.asn1.DERAbstractTime);vt.asn1.DERSequence=function(t){vt.asn1.DERSequence.superclass.constructor.call(this,t);this.hT="30";this.getFreshValueHex=function(){var t="";for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex();}this.hV=t;return this.hV};};pt.lang.extend(vt.asn1.DERSequence,vt.asn1.DERAbstractStructured);vt.asn1.DERSet=function(t){vt.asn1.DERSet.superclass.constructor.call(this,t);this.hT="31";this.sortFlag=true;this.getFreshValueHex=function(){var t=new Array;for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex());}if(true==this.sortFlag)t.sort();this.hV=t.join("");return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t.sortflag&&false==t.sortflag)this.sortFlag=false;};pt.lang.extend(vt.asn1.DERSet,vt.asn1.DERAbstractStructured);vt.asn1.DERTaggedObject=function(t){vt.asn1.DERTaggedObject.superclass.constructor.call(this);this.hT="a0";this.hV="";this.isExplicit=true;this.asn1Object=null;this.setASN1Object=function(t,e,r){this.hT=e;this.isExplicit=t;this.asn1Object=r;if(this.isExplicit){this.hV=this.asn1Object.getEncodedHex();this.hTLV=null;this.isModified=true;}else {this.hV=null;this.hTLV=r.getEncodedHex();this.hTLV=this.hTLV.replace(/^../,e);this.isModified=false;}};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t){if("undefined"!=typeof t["tag"])this.hT=t["tag"];if("undefined"!=typeof t["explicit"])this.isExplicit=t["explicit"];if("undefined"!=typeof t["obj"]){this.asn1Object=t["obj"];this.setASN1Object(this.isExplicit,this.hT,this.asn1Object);}}};pt.lang.extend(vt.asn1.DERTaggedObject,vt.asn1.ASN1Object);var gt=function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r];};return t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e;}e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i);}}();var yt=function(t){gt(e,t);function e(r){var i=t.call(this)||this;if(r)if("string"===typeof r)i.parseKey(r);else if(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))i.parsePropertiesFrom(r);return i}e.prototype.parseKey=function(t){try{var e=0;var r=0;var i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/;var n=i.test(t)?y.decode(t):w.unarmor(t);var s=I.decode(n);if(3===s.sub.length)s=s.sub[2].sub[0];if(9===s.sub.length){e=s.sub[1].getHexStringValue();this.n=K(e,16);r=s.sub[2].getHexStringValue();this.e=parseInt(r,16);var a=s.sub[3].getHexStringValue();this.d=K(a,16);var o=s.sub[4].getHexStringValue();this.p=K(o,16);var u=s.sub[5].getHexStringValue();this.q=K(u,16);var c=s.sub[6].getHexStringValue();this.dmp1=K(c,16);var l=s.sub[7].getHexStringValue();this.dmq1=K(l,16);var f=s.sub[8].getHexStringValue();this.coeff=K(f,16);}else if(2===s.sub.length){var h=s.sub[1];var d=h.sub[0];e=d.sub[0].getHexStringValue();this.n=K(e,16);r=d.sub[1].getHexStringValue();this.e=parseInt(r,16);}else return false;return true}catch(t){return false}};e.prototype.getPrivateBaseKey=function(){var t={array:[new vt.asn1.DERInteger({int:0}),new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e}),new vt.asn1.DERInteger({bigint:this.d}),new vt.asn1.DERInteger({bigint:this.p}),new vt.asn1.DERInteger({bigint:this.q}),new vt.asn1.DERInteger({bigint:this.dmp1}),new vt.asn1.DERInteger({bigint:this.dmq1}),new vt.asn1.DERInteger({bigint:this.coeff})]};var e=new vt.asn1.DERSequence(t);return e.getEncodedHex()};e.prototype.getPrivateBaseKeyB64=function(){return d(this.getPrivateBaseKey())};e.prototype.getPublicBaseKey=function(){var t=new vt.asn1.DERSequence({array:[new vt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new vt.asn1.DERNull]});var e=new vt.asn1.DERSequence({array:[new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e})]});var r=new vt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});var i=new vt.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()};e.prototype.getPublicBaseKeyB64=function(){return d(this.getPublicBaseKey())};e.wordwrap=function(t,e){e=e||64;if(!t)return t;var r="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")};e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n";t+="-----END RSA PRIVATE KEY-----";return t};e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n";t+="-----END PUBLIC KEY-----";return t};e.hasPublicKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")};e.hasPrivateKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")};e.prototype.parsePropertiesFrom=function(t){this.n=t.n;this.e=t.e;if(t.hasOwnProperty("d")){this.d=t.d;this.p=t.p;this.q=t.q;this.dmp1=t.dmp1;this.dmq1=t.dmq1;this.coeff=t.coeff;}};return e}(ut);const mt={i:"3.2.1"};var wt=function(){function t(t){if(void 0===t)t={};t=t||{};this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024;this.default_public_exponent=t.default_public_exponent||"010001";this.log=t.log||false;this.key=null;}t.prototype.setKey=function(t){if(this.log&&this.key)console.warn("A key was already set, overriding existing.");this.key=new yt(t);};t.prototype.setPrivateKey=function(t){this.setKey(t);};t.prototype.setPublicKey=function(t){this.setKey(t);};t.prototype.decrypt=function(t){try{return this.getKey().decrypt(p(t))}catch(t){return false}};t.prototype.encrypt=function(t){try{return this.getKey().encrypt(t)}catch(t){return false}};t.prototype.encryptLong=function(t){try{return d(this.getKey().encryptLong(t))}catch(t){return false}};t.prototype.decryptLong=function(t){try{return this.getKey().decryptLong(t)}catch(t){return false}};t.prototype.sign=function(t,e,r){try{return d(this.getKey().sign(t,e,r))}catch(t){return false}};t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,p(e),r)}catch(t){return false}};t.prototype.getKey=function(t){if(!this.key){this.key=new yt;if(t&&"[object Function]"==={}.toString.call(t)){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent);}return this.key};t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()};t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()};t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()};t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()};t.version=mt.i;return t}();const St=wt;},2480:()=>{}};var e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={id:i,loaded:false,exports:{}};t[i].call(s.exports,s,s.exports,r);s.loaded=true;return s.exports}(()=>{r.d=(t,e)=>{for(var i in e)if(r.o(e,i)&&!r.o(t,i))Object.defineProperty(t,i,{enumerable:true,get:e[i]});};})();(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}();})();(()=>{r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);})();(()=>{r.r=t=>{if("undefined"!==typeof Symbol&&Symbol.toStringTag)Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:true});};})();(()=>{r.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t};})();var i=r(5987);return i})())); }); var GtPush = /*@__PURE__*/getDefaultExportFromCjs(gtpushMin); diff --git a/packages/uni-push/lib/gtpush-min.js b/packages/uni-push/lib/gtpush-min.js index 80e90e5440d..4fa25871a8d 100644 --- a/packages/uni-push/lib/gtpush-min.js +++ b/packages/uni-push/lib/gtpush-min.js @@ -1,5 +1,5 @@ /*! For license information please see gtpush-min.js.LICENSE.txt */ -(function t(e,r){if("object"===typeof exports&&"object"===typeof module)module.exports=r();else if("function"===typeof define&&define.amd)define([],r);else if("object"===typeof exports)exports["GtPush"]=r();else e["GtPush"]=r()})(self,(()=>(()=>{var t={4736:(t,e,r)=>{t=r.nmd(t);var i;var n=function(t){"use strict";var e=1e7,r=7,i=9007199254740992,s=d(i),a="0123456789abcdefghijklmnopqrstuvwxyz";var o="function"===typeof BigInt;function u(t,e,r,i){if("undefined"===typeof t)return u[0];if("undefined"!==typeof e)return 10===+e&&!r?st(t):X(t,e,r,i);return st(t)}function c(t,e){this.value=t;this.sign=e;this.isSmall=false}c.prototype=Object.create(u.prototype);function l(t){this.value=t;this.sign=t<0;this.isSmall=true}l.prototype=Object.create(u.prototype);function f(t){this.value=t}f.prototype=Object.create(u.prototype);function h(t){return-i<t&&t<i}function d(t){if(t<1e7)return[t];if(t<1e14)return[t%1e7,Math.floor(t/1e7)];return[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function p(t){v(t);var r=t.length;if(r<4&&N(t,s)<0)switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*e;default:return t[0]+(t[1]+t[2]*e)*e}return t}function v(t){var e=t.length;while(0===t[--e]);t.length=e+1}function g(t){var e=new Array(t);var r=-1;while(++r<t)e[r]=0;return e}function y(t){if(t>0)return Math.floor(t);return Math.ceil(t)}function m(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(c=0;c<n;c++){u=t[c]+r[c]+a;a=u>=o?1:0;s[c]=u-a*o}while(c<i){u=t[c]+a;a=u===o?1:0;s[c++]=u-a*o}if(a>0)s.push(a);return s}function _(t,e){if(t.length>=e.length)return m(t,e);return m(e,t)}function w(t,r){var i=t.length,n=new Array(i),s=e,a,o;for(o=0;o<i;o++){a=t[o]-s+r;r=Math.floor(a/s);n[o]=a-r*s;r+=1}while(r>0){n[o++]=r%s;r=Math.floor(r/s)}return n}c.prototype.add=function(t){var e=st(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,i=e.value;if(e.isSmall)return new c(w(r,Math.abs(i)),this.sign);return new c(_(r,i),this.sign)};c.prototype.plus=c.prototype.add;l.prototype.add=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var i=e.value;if(e.isSmall){if(h(r+i))return new l(r+i);i=d(Math.abs(i))}return new c(w(i,Math.abs(r)),r<0)};l.prototype.plus=l.prototype.add;f.prototype.add=function(t){return new f(this.value+st(t).value)};f.prototype.plus=f.prototype.add;function S(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(u=0;u<n;u++){c=t[u]-a-r[u];if(c<0){c+=o;a=1}else a=0;s[u]=c}for(u=n;u<i;u++){c=t[u]-a;if(c<0)c+=o;else{s[u++]=c;break}s[u]=c}for(;u<i;u++)s[u]=t[u];v(s);return s}function b(t,e,r){var i;if(N(t,e)>=0)i=S(t,e);else{i=S(e,t);r=!r}i=p(i);if("number"===typeof i){if(r)i=-i;return new l(i)}return new c(i,r)}function E(t,r,i){var n=t.length,s=new Array(n),a=-r,o=e,u,f;for(u=0;u<n;u++){f=t[u]+a;a=Math.floor(f/o);f%=o;s[u]=f<0?f+o:f}s=p(s);if("number"===typeof s){if(i)s=-s;return new l(s)}return new c(s,i)}c.prototype.subtract=function(t){var e=st(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,i=e.value;if(e.isSmall)return E(r,Math.abs(i),this.sign);return b(r,i,this.sign)};c.prototype.minus=c.prototype.subtract;l.prototype.subtract=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.add(e.negate());var i=e.value;if(e.isSmall)return new l(r-i);return E(i,Math.abs(r),r>=0)};l.prototype.minus=l.prototype.subtract;f.prototype.subtract=function(t){return new f(this.value-st(t).value)};f.prototype.minus=f.prototype.subtract;c.prototype.negate=function(){return new c(this.value,!this.sign)};l.prototype.negate=function(){var t=this.sign;var e=new l(-this.value);e.sign=!t;return e};f.prototype.negate=function(){return new f(-this.value)};c.prototype.abs=function(){return new c(this.value,false)};l.prototype.abs=function(){return new l(Math.abs(this.value))};f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)};function D(t,r){var i=t.length,n=r.length,s=i+n,a=g(s),o=e,u,c,l,f,h;for(l=0;l<i;++l){f=t[l];for(var d=0;d<n;++d){h=r[d];u=f*h+a[l+d];c=Math.floor(u/o);a[l+d]=u-c*o;a[l+d+1]+=c}}v(a);return a}function T(t,r){var i=t.length,n=new Array(i),s=e,a=0,o,u;for(u=0;u<i;u++){o=t[u]*r+a;a=Math.floor(o/s);n[u]=o-a*s}while(a>0){n[u++]=a%s;a=Math.floor(a/s)}return n}function M(t,e){var r=[];while(e-- >0)r.push(0);return r.concat(t)}function I(t,e){var r=Math.max(t.length,e.length);if(r<=30)return D(t,e);r=Math.ceil(r/2);var i=t.slice(r),n=t.slice(0,r),s=e.slice(r),a=e.slice(0,r);var o=I(n,a),u=I(i,s),c=I(_(n,i),_(a,s));var l=_(_(o,M(S(S(c,o),u),r)),M(u,2*r));v(l);return l}function A(t,e){return-.012*t-.012*e+15e-6*t*e>0}c.prototype.multiply=function(t){var r=st(t),i=this.value,n=r.value,s=this.sign!==r.sign,a;if(r.isSmall){if(0===n)return u[0];if(1===n)return this;if(-1===n)return this.negate();a=Math.abs(n);if(a<e)return new c(T(i,a),s);n=d(a)}if(A(i.length,n.length))return new c(I(i,n),s);return new c(D(i,n),s)};c.prototype.times=c.prototype.multiply;function x(t,r,i){if(t<e)return new c(T(r,t),i);return new c(D(r,d(t)),i)}l.prototype._multiplyBySmall=function(t){if(h(t.value*this.value))return new l(t.value*this.value);return x(Math.abs(t.value),d(Math.abs(this.value)),this.sign!==t.sign)};c.prototype._multiplyBySmall=function(t){if(0===t.value)return u[0];if(1===t.value)return this;if(-1===t.value)return this.negate();return x(Math.abs(t.value),this.value,this.sign!==t.sign)};l.prototype.multiply=function(t){return st(t)._multiplyBySmall(this)};l.prototype.times=l.prototype.multiply;f.prototype.multiply=function(t){return new f(this.value*st(t).value)};f.prototype.times=f.prototype.multiply;function R(t){var r=t.length,i=g(r+r),n=e,s,a,o,u,c;for(o=0;o<r;o++){u=t[o];a=0-u*u;for(var l=o;l<r;l++){c=t[l];s=2*(u*c)+i[o+l]+a;a=Math.floor(s/n);i[o+l]=s-a*n}i[o+r]=a}v(i);return i}c.prototype.square=function(){return new c(R(this.value),false)};l.prototype.square=function(){var t=this.value*this.value;if(h(t))return new l(t);return new c(R(d(Math.abs(this.value))),false)};f.prototype.square=function(t){return new f(this.value*this.value)};function B(t,r){var i=t.length,n=r.length,s=e,a=g(r.length),o=r[n-1],u=Math.ceil(s/(2*o)),c=T(t,u),l=T(r,u),f,h,d,v,y,m,_;if(c.length<=i)c.push(0);l.push(0);o=l[n-1];for(h=i-n;h>=0;h--){f=s-1;if(c[h+n]!==o)f=Math.floor((c[h+n]*s+c[h+n-1])/o);d=0;v=0;m=l.length;for(y=0;y<m;y++){d+=f*l[y];_=Math.floor(d/s);v+=c[h+y]-(d-_*s);d=_;if(v<0){c[h+y]=v+s;v=-1}else{c[h+y]=v;v=0}}while(0!==v){f-=1;d=0;for(y=0;y<m;y++){d+=c[h+y]-s+l[y];if(d<0){c[h+y]=d+s;d=0}else{c[h+y]=d;d=1}}v+=d}a[h]=f}c=k(c,u)[0];return[p(a),p(c)]}function O(t,r){var i=t.length,n=r.length,s=[],a=[],o=e,u,c,l,f,h;while(i){a.unshift(t[--i]);v(a);if(N(a,r)<0){s.push(0);continue}c=a.length;l=a[c-1]*o+a[c-2];f=r[n-1]*o+r[n-2];if(c>n)l=(l+1)*o;u=Math.ceil(l/f);do{h=T(r,u);if(N(h,a)<=0)break;u--}while(u);s.push(u);a=S(a,h)}s.reverse();return[p(s),p(a)]}function k(t,r){var i=t.length,n=g(i),s=e,a,o,u,c;u=0;for(a=i-1;a>=0;--a){c=u*s+t[a];o=y(c/r);u=c-o*r;n[a]=0|o}return[n,0|u]}function C(t,r){var i,n=st(r);if(o)return[new f(t.value/n.value),new f(t.value%n.value)];var s=t.value,a=n.value;var h;if(0===a)throw new Error("Cannot divide by zero");if(t.isSmall){if(n.isSmall)return[new l(y(s/a)),new l(s%a)];return[u[0],t]}if(n.isSmall){if(1===a)return[t,u[0]];if(-1==a)return[t.negate(),u[0]];var v=Math.abs(a);if(v<e){i=k(s,v);h=p(i[0]);var g=i[1];if(t.sign)g=-g;if("number"===typeof h){if(t.sign!==n.sign)h=-h;return[new l(h),new l(g)]}return[new c(h,t.sign!==n.sign),new l(g)]}a=d(v)}var m=N(s,a);if(-1===m)return[u[0],t];if(0===m)return[u[t.sign===n.sign?1:-1],u[0]];if(s.length+a.length<=200)i=B(s,a);else i=O(s,a);h=i[0];var _=t.sign!==n.sign,w=i[1],S=t.sign;if("number"===typeof h){if(_)h=-h;h=new l(h)}else h=new c(h,_);if("number"===typeof w){if(S)w=-w;w=new l(w)}else w=new c(w,S);return[h,w]}c.prototype.divmod=function(t){var e=C(this,t);return{quotient:e[0],remainder:e[1]}};f.prototype.divmod=l.prototype.divmod=c.prototype.divmod;c.prototype.divide=function(t){return C(this,t)[0]};f.prototype.over=f.prototype.divide=function(t){return new f(this.value/st(t).value)};l.prototype.over=l.prototype.divide=c.prototype.over=c.prototype.divide;c.prototype.mod=function(t){return C(this,t)[1]};f.prototype.mod=f.prototype.remainder=function(t){return new f(this.value%st(t).value)};l.prototype.remainder=l.prototype.mod=c.prototype.remainder=c.prototype.mod;c.prototype.pow=function(t){var e=st(t),r=this.value,i=e.value,n,s,a;if(0===i)return u[1];if(0===r)return u[0];if(1===r)return u[1];if(-1===r)return e.isEven()?u[1]:u[-1];if(e.sign)return u[0];if(!e.isSmall)throw new Error("The exponent "+e.toString()+" is too large.");if(this.isSmall)if(h(n=Math.pow(r,i)))return new l(y(n));s=this;a=u[1];while(true){if(i&1===1){a=a.times(s);--i}if(0===i)break;i/=2;s=s.square()}return a};l.prototype.pow=c.prototype.pow;f.prototype.pow=function(t){var e=st(t);var r=this.value,i=e.value;var n=BigInt(0),s=BigInt(1),a=BigInt(2);if(i===n)return u[1];if(r===n)return u[0];if(r===s)return u[1];if(r===BigInt(-1))return e.isEven()?u[1]:u[-1];if(e.isNegative())return new f(n);var o=this;var c=u[1];while(true){if((i&s)===s){c=c.times(o);--i}if(i===n)break;i/=a;o=o.square()}return c};c.prototype.modPow=function(t,e){t=st(t);e=st(e);if(e.isZero())throw new Error("Cannot take modPow with modulus 0");var r=u[1],i=this.mod(e);if(t.isNegative()){t=t.multiply(u[-1]);i=i.modInv(e)}while(t.isPositive()){if(i.isZero())return u[0];if(t.isOdd())r=r.multiply(i).mod(e);t=t.divide(2);i=i.square().mod(e)}return r};f.prototype.modPow=l.prototype.modPow=c.prototype.modPow;function N(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}c.prototype.compareAbs=function(t){var e=st(t),r=this.value,i=e.value;if(e.isSmall)return 1;return N(r,i)};l.prototype.compareAbs=function(t){var e=st(t),r=Math.abs(this.value),i=e.value;if(e.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return-1};f.prototype.compareAbs=function(t){var e=this.value;var r=st(t).value;e=e>=0?e:-e;r=r>=0?r:-r;return e===r?0:e>r?1:-1};c.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(this.sign!==e.sign)return e.sign?1:-1;if(e.isSmall)return this.sign?-1:1;return N(r,i)*(this.sign?-1:1)};c.prototype.compareTo=c.prototype.compare;l.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(e.isSmall)return r==i?0:r>i?1:-1;if(r<0!==e.sign)return r<0?-1:1;return r<0?1:-1};l.prototype.compareTo=l.prototype.compare;f.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value;var r=st(t).value;return e===r?0:e>r?1:-1};f.prototype.compareTo=f.prototype.compare;c.prototype.equals=function(t){return 0===this.compare(t)};f.prototype.eq=f.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals;c.prototype.notEquals=function(t){return 0!==this.compare(t)};f.prototype.neq=f.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals;c.prototype.greater=function(t){return this.compare(t)>0};f.prototype.gt=f.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater;c.prototype.lesser=function(t){return this.compare(t)<0};f.prototype.lt=f.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser;c.prototype.greaterOrEquals=function(t){return this.compare(t)>=0};f.prototype.geq=f.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals;c.prototype.lesserOrEquals=function(t){return this.compare(t)<=0};f.prototype.leq=f.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals;c.prototype.isEven=function(){return 0===(1&this.value[0])};l.prototype.isEven=function(){return 0===(1&this.value)};f.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};c.prototype.isOdd=function(){return 1===(1&this.value[0])};l.prototype.isOdd=function(){return 1===(1&this.value)};f.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};c.prototype.isPositive=function(){return!this.sign};l.prototype.isPositive=function(){return this.value>0};f.prototype.isPositive=l.prototype.isPositive;c.prototype.isNegative=function(){return this.sign};l.prototype.isNegative=function(){return this.value<0};f.prototype.isNegative=l.prototype.isNegative;c.prototype.isUnit=function(){return false};l.prototype.isUnit=function(){return 1===Math.abs(this.value)};f.prototype.isUnit=function(){return this.abs().value===BigInt(1)};c.prototype.isZero=function(){return false};l.prototype.isZero=function(){return 0===this.value};f.prototype.isZero=function(){return this.value===BigInt(0)};c.prototype.isDivisibleBy=function(t){var e=st(t);if(e.isZero())return false;if(e.isUnit())return true;if(0===e.compareAbs(2))return this.isEven();return this.mod(e).isZero()};f.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function P(t){var e=t.abs();if(e.isUnit())return false;if(e.equals(2)||e.equals(3)||e.equals(5))return true;if(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))return false;if(e.lesser(49))return true}function V(t,e){var r=t.prev(),i=r,s=0,a,o,u,c;while(i.isEven())i=i.divide(2),s++;t:for(u=0;u<e.length;u++){if(t.lesser(e[u]))continue;c=n(e[u]).modPow(i,t);if(c.isUnit()||c.equals(r))continue;for(a=s-1;0!=a;a--){c=c.square().mod(t);if(c.isUnit())return false;if(c.equals(r))continue t}return false}return true}c.prototype.isPrime=function(e){var r=P(this);if(r!==t)return r;var i=this.abs();var s=i.bitLength();if(s<=64)return V(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var a=Math.log(2)*s.toJSNumber();var o=Math.ceil(true===e?2*Math.pow(a,2):a);for(var u=[],c=0;c<o;c++)u.push(n(c+2));return V(i,u)};f.prototype.isPrime=l.prototype.isPrime=c.prototype.isPrime;c.prototype.isProbablePrime=function(e,r){var i=P(this);if(i!==t)return i;var s=this.abs();var a=e===t?5:e;for(var o=[],u=0;u<a;u++)o.push(n.randBetween(2,s.minus(2),r));return V(s,o)};f.prototype.isProbablePrime=l.prototype.isProbablePrime=c.prototype.isProbablePrime;c.prototype.modInv=function(t){var e=n.zero,r=n.one,i=st(t),s=this.abs(),a,o,u;while(!s.isZero()){a=i.divide(s);o=e;u=i;e=r;i=s;r=o.subtract(a.multiply(r));s=u.subtract(a.multiply(s))}if(!i.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");if(-1===e.compare(0))e=e.add(t);if(this.isNegative())return e.negate();return e};f.prototype.modInv=l.prototype.modInv=c.prototype.modInv;c.prototype.next=function(){var t=this.value;if(this.sign)return E(t,1,this.sign);return new c(w(t,1),this.sign)};l.prototype.next=function(){var t=this.value;if(t+1<i)return new l(t+1);return new c(s,false)};f.prototype.next=function(){return new f(this.value+BigInt(1))};c.prototype.prev=function(){var t=this.value;if(this.sign)return new c(w(t,1),true);return E(t,1,this.sign)};l.prototype.prev=function(){var t=this.value;if(t-1>-i)return new l(t-1);return new c(s,true)};f.prototype.prev=function(){return new f(this.value-BigInt(1))};var L=[1];while(2*L[L.length-1]<=e)L.push(2*L[L.length-1]);var H=L.length,U=L[H-1];function j(t){return Math.abs(t)<=e}c.prototype.shiftLeft=function(t){var e=st(t).toJSNumber();if(!j(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;while(e>=H){r=r.multiply(U);e-=H-1}return r.multiply(L[e])};f.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft;c.prototype.shiftRight=function(t){var e;var r=st(t).toJSNumber();if(!j(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);var i=this;while(r>=H){if(i.isZero()||i.isNegative()&&i.isUnit())return i;e=C(i,U);i=e[1].isNegative()?e[0].prev():e[0];r-=H-1}e=C(i,L[r]);return e[1].isNegative()?e[0].prev():e[0]};f.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function K(t,e,r){e=st(e);var i=t.isNegative(),s=e.isNegative();var a=i?t.not():t,o=s?e.not():e;var u=0,c=0;var l=null,f=null;var h=[];while(!a.isZero()||!o.isZero()){l=C(a,U);u=l[1].toJSNumber();if(i)u=U-1-u;f=C(o,U);c=f[1].toJSNumber();if(s)c=U-1-c;a=l[0];o=f[0];h.push(r(u,c))}var d=0!==r(i?1:0,s?1:0)?n(-1):n(0);for(var p=h.length-1;p>=0;p-=1)d=d.multiply(U).add(n(h[p]));return d}c.prototype.not=function(){return this.negate().prev()};f.prototype.not=l.prototype.not=c.prototype.not;c.prototype.and=function(t){return K(this,t,(function(t,e){return t&e}))};f.prototype.and=l.prototype.and=c.prototype.and;c.prototype.or=function(t){return K(this,t,(function(t,e){return t|e}))};f.prototype.or=l.prototype.or=c.prototype.or;c.prototype.xor=function(t){return K(this,t,(function(t,e){return t^e}))};f.prototype.xor=l.prototype.xor=c.prototype.xor;var q=1<<30,F=(e&-e)*(e&-e)|q;function z(t){var r=t.value,i="number"===typeof r?r|q:"bigint"===typeof r?r|BigInt(q):r[0]+r[1]*e|F;return i&-i}function G(t,e){if(e.compareTo(t)<=0){var r=G(t,e.square(e));var i=r.p;var s=r.e;var a=i.multiply(e);return a.compareTo(t)<=0?{p:a,e:2*s+1}:{p:i,e:2*s}}return{p:n(1),e:0}}c.prototype.bitLength=function(){var t=this;if(t.compareTo(n(0))<0)t=t.negate().subtract(n(1));if(0===t.compareTo(n(0)))return n(0);return n(G(t,n(2)).e).add(n(1))};f.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function Y(t,e){t=st(t);e=st(e);return t.greater(e)?t:e}function W(t,e){t=st(t);e=st(e);return t.lesser(e)?t:e}function J(t,e){t=st(t).abs();e=st(e).abs();if(t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;var r=u[1],i,n;while(t.isEven()&&e.isEven()){i=W(z(t),z(e));t=t.divide(i);e=e.divide(i);r=r.multiply(i)}while(t.isEven())t=t.divide(z(t));do{while(e.isEven())e=e.divide(z(e));if(t.greater(e)){n=e;e=t;t=n}e=e.subtract(t)}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}function Z(t,e){t=st(t).abs();e=st(e).abs();return t.divide(J(t,e)).multiply(e)}function $(t,r,i){t=st(t);r=st(r);var n=i||Math.random;var s=W(t,r),a=Y(t,r);var o=a.subtract(s).add(1);if(o.isSmall)return s.add(Math.floor(n()*o));var c=et(o,e).value;var l=[],f=true;for(var h=0;h<c.length;h++){var d=f?c[h]+(h+1<c.length?c[h+1]/e:0):e;var p=y(n()*d);l.push(p);if(p<c[h])f=false}return s.add(u.fromArray(l,e,false))}var X=function(t,e,r,i){r=r||a;t=String(t);if(!i){t=t.toLowerCase();r=r.toLowerCase()}var n=t.length;var s;var o=Math.abs(e);var u={};for(s=0;s<r.length;s++)u[r[s]]=s;for(s=0;s<n;s++){var c=t[s];if("-"===c)continue;if(c in u)if(u[c]>=o){if("1"===c&&1===o)continue;throw new Error(c+" is not a valid digit in base "+e+".")}}e=st(e);var l=[];var f="-"===t[0];for(s=f?1:0;s<t.length;s++){var c=t[s];if(c in u)l.push(st(u[c]));else if("<"===c){var h=s;do{s++}while(">"!==t[s]&&s<t.length);l.push(st(t.slice(h+1,s)))}else throw new Error(c+" is not a valid character")}return Q(l,e,f)};function Q(t,e,r){var i=u[0],n=u[1],s;for(s=t.length-1;s>=0;s--){i=i.add(t[s].times(n));n=n.times(e)}return r?i.negate():i}function tt(t,e){e=e||a;if(t<e.length)return e[t];return"<"+t+">"}function et(t,e){e=n(e);if(e.isZero()){if(t.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return{value:[0],isNegative:false};if(t.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return{value:[].concat.apply([],r),isNegative:false}}var i=false;if(t.isNegative()&&e.isPositive()){i=true;t=t.abs()}if(e.isUnit()){if(t.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var s=[];var a=t,o;while(a.isNegative()||a.compareAbs(e)>=0){o=a.divmod(e);a=o.quotient;var u=o.remainder;if(u.isNegative()){u=e.minus(u).abs();a=a.next()}s.push(u.toJSNumber())}s.push(a.toJSNumber());return{value:s.reverse(),isNegative:i}}function rt(t,e,r){var i=et(t,e);return(i.isNegative?"-":"")+i.value.map((function(t){return tt(t,r)})).join("")}c.prototype.toArray=function(t){return et(this,t)};l.prototype.toArray=function(t){return et(this,t)};f.prototype.toArray=function(t){return et(this,t)};c.prototype.toString=function(e,r){if(e===t)e=10;if(10!==e)return rt(this,e,r);var i=this.value,n=i.length,s=String(i[--n]),a="0000000",o;while(--n>=0){o=String(i[n]);s+=a.slice(o.length)+o}var u=this.sign?"-":"";return u+s};l.prototype.toString=function(e,r){if(e===t)e=10;if(10!=e)return rt(this,e,r);return String(this.value)};f.prototype.toString=l.prototype.toString;f.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()};c.prototype.valueOf=function(){return parseInt(this.toString(),10)};c.prototype.toJSNumber=c.prototype.valueOf;l.prototype.valueOf=function(){return this.value};l.prototype.toJSNumber=l.prototype.valueOf;f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function it(t){if(h(+t)){var e=+t;if(e===y(e))return o?new f(BigInt(e)):new l(e);throw new Error("Invalid integer: "+t)}var i="-"===t[0];if(i)t=t.slice(1);var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var s=n[1];if("+"===s[0])s=s.slice(1);s=+s;if(s!==y(s)||!h(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var a=n[0];var u=a.indexOf(".");if(u>=0){s-=a.length-u-1;a=a.slice(0,u)+a.slice(u+1)}if(s<0)throw new Error("Cannot include negative exponent part for integers");a+=new Array(s+1).join("0");t=a}var d=/^([0-9][0-9]*)$/.test(t);if(!d)throw new Error("Invalid integer: "+t);if(o)return new f(BigInt(i?"-"+t:t));var p=[],g=t.length,m=r,_=g-m;while(g>0){p.push(+t.slice(_,g));_-=m;if(_<0)_=0;g-=m}v(p);return new c(p,i)}function nt(t){if(o)return new f(BigInt(t));if(h(t)){if(t!==y(t))throw new Error(t+" is not an integer.");return new l(t)}return it(t.toString())}function st(t){if("number"===typeof t)return nt(t);if("string"===typeof t)return it(t);if("bigint"===typeof t)return new f(t);return t}for(var at=0;at<1e3;at++){u[at]=st(at);if(at>0)u[-at]=st(-at)}u.one=u[1];u.zero=u[0];u.minusOne=u[-1];u.max=Y;u.min=W;u.gcd=J;u.lcm=Z;u.isInstance=function(t){return t instanceof c||t instanceof l||t instanceof f};u.randBetween=$;u.fromArray=function(t,e,r){return Q(t.map(st),st(e||10),r)};return u}();if(true&&t.hasOwnProperty("exports"))t.exports=n;if(true)i=function(){return n}.call(e,r,e,t),void 0!==i&&(t.exports=i)},452:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.BlockCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=[];var c=[];var l=[];var f=[];var h=[];var d=[];var p=[];(function(){var t=[];for(var e=0;e<256;e++)if(e<128)t[e]=e<<1;else t[e]=e<<1^283;var r=0;var i=0;for(var e=0;e<256;e++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99;s[r]=n;a[n]=r;var v=t[r];var g=t[v];var y=t[g];var m=257*t[n]^16843008*n;o[r]=m<<24|m>>>8;u[r]=m<<16|m>>>16;c[r]=m<<8|m>>>24;l[r]=m;var m=16843009*y^65537*g^257*v^16843008*r;f[n]=m<<24|m>>>8;h[n]=m<<16|m>>>16;d[n]=m<<8|m>>>24;p[n]=m;if(!r)r=i=1;else{r=v^t[t[t[y^v]]];i^=t[t[i]]}}})();var v=[0,1,2,4,8,16,32,64,128,27,54];var g=n.AES=i.extend({_doReset:function(){var t;if(this._nRounds&&this._keyPriorReset===this._key)return;var e=this._keyPriorReset=this._key;var r=e.words;var i=e.sigBytes/4;var n=this._nRounds=i+6;var a=4*(n+1);var o=this._keySchedule=[];for(var u=0;u<a;u++)if(u<i)o[u]=r[u];else{t=o[u-1];if(!(u%i)){t=t<<8|t>>>24;t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];t^=v[u/i|0]<<24}else if(i>6&&u%i==4)t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];o[u]=o[u-i]^t}var c=this._invKeySchedule=[];for(var l=0;l<a;l++){var u=a-l;if(l%4)var t=o[u];else var t=o[u-4];if(l<4||u<=4)c[l]=t;else c[l]=f[s[t>>>24]]^h[s[t>>>16&255]]^d[s[t>>>8&255]]^p[s[255&t]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,c,l,s)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,p,a);var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r},_doCryptBlock:function(t,e,r,i,n,s,a,o){var u=this._nRounds;var c=t[e]^r[0];var l=t[e+1]^r[1];var f=t[e+2]^r[2];var h=t[e+3]^r[3];var d=4;for(var p=1;p<u;p++){var v=i[c>>>24]^n[l>>>16&255]^s[f>>>8&255]^a[255&h]^r[d++];var g=i[l>>>24]^n[f>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++];var y=i[f>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&l]^r[d++];var m=i[h>>>24]^n[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[d++];c=v;l=g;f=y;h=m}var v=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&h])^r[d++];var g=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++];var y=(o[f>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[d++];var m=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[d++];t[e]=v;t[e+1]=g;t[e+2]=y;t[e+3]=m},keySize:256/32});e.AES=i._createHelper(g)})();return t.AES}))},5109:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(888))})(this,(function(t){t.lib.Cipher||function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=i.BufferedBlockAlgorithm;var o=r.enc;var u=o.Utf8;var c=o.Base64;var l=r.algo;var f=l.EvpKDF;var h=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r);this._xformMode=t;this._key=e;this.reset()},reset:function(){a.reset.call(this);this._doReset()},process:function(t){this._append(t);return this._process()},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){if("string"==typeof t)return M;else return E}return function(e){return{encrypt:function(r,i,n){return t(i).encrypt(e,r,i,n)},decrypt:function(r,i,n){return t(i).decrypt(e,r,i,n)}}}}()});var d=i.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!!"flush");return t},blockSize:1});var p=r.mode={};var v=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t;this._iv=e}});var g=p.CBC=function(){var t=v.extend();t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n);i.encryptBlock(t,e);this._prevBlock=t.slice(e,e+n)}});t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);i.decryptBlock(t,e);r.call(this,t,e,n);this._prevBlock=s}});function r(t,r,i){var n;var s=this._iv;if(s){n=s;this._iv=e}else n=this._prevBlock;for(var a=0;a<i;a++)t[r+a]^=n[a]}return t}();var y=r.pad={};var m=y.Pkcs7={pad:function(t,e){var r=4*e;var i=r-t.sigBytes%r;var n=i<<24|i<<16|i<<8|i;var a=[];for(var o=0;o<i;o+=4)a.push(n);var u=s.create(a,i);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};var _=i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var t;h.reset.call(this);var e=this.cfg;var r=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)t=i.createEncryptor;else{t=i.createDecryptor;this._minBufferSize=1}if(this._mode&&this._mode.__creator==t)this._mode.init(this,r&&r.words);else{this._mode=t.call(i,this,r&&r.words);this._mode.__creator=t}},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);t=this._process(!!"flush")}else{t=this._process(!!"flush");e.unpad(t)}return t},blockSize:128/32});var w=i.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}});var S=r.format={};var b=S.OpenSSL={stringify:function(t){var e;var r=t.ciphertext;var i=t.salt;if(i)e=s.create([1398893684,1701076831]).concat(i).concat(r);else e=r;return e.toString(c)},parse:function(t){var e;var r=c.parse(t);var i=r.words;if(1398893684==i[0]&&1701076831==i[1]){e=s.create(i.slice(2,4));i.splice(0,4);r.sigBytes-=16}return w.create({ciphertext:r,salt:e})}};var E=i.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i);var s=n.finalize(e);var a=n.cfg;return w.create({ciphertext:s,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=t.createDecryptor(r,i).finalize(e.ciphertext);return n},_parse:function(t,e){if("string"==typeof t)return e.parse(t,this);else return t}});var D=r.kdf={};var T=D.OpenSSL={execute:function(t,e,r,i){if(!i)i=s.random(64/8);var n=f.create({keySize:e+r}).compute(t,i);var a=s.create(n.words.slice(e),4*r);n.sigBytes=4*e;return w.create({key:n,iv:a,salt:i})}};var M=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:T}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var s=E.encrypt.call(this,t,e,n.key,i);s.mixIn(n);return s},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=i.kdf.execute(r,t.keySize,t.ivSize,e.salt);i.iv=n.iv;var s=E.decrypt.call(this,t,e,n.key,i);return s}})}()}))},8249:function(t,e,r){(function(r,i){if(true)t.exports=e=i()})(this,(function(){var t=t||function(t,e){var i;if("undefined"!==typeof window&&window.crypto)i=window.crypto;if("undefined"!==typeof self&&self.crypto)i=self.crypto;if("undefined"!==typeof globalThis&&globalThis.crypto)i=globalThis.crypto;if(!i&&"undefined"!==typeof window&&window.msCrypto)i=window.msCrypto;if(!i&&"undefined"!==typeof r.g&&r.g.crypto)i=r.g.crypto;if(!i&&"function"==="function")try{i=r(2480)}catch(t){}var n=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")};var s=Object.create||function(){function t(){}return function(e){var r;t.prototype=e;r=new t;t.prototype=null;return r}}();var a={};var o=a.lib={};var u=o.Base=function(){return{extend:function(t){var e=s(this);if(t)e.mixIn(t);if(!e.hasOwnProperty("init")||this.init===e.init)e.init=function(){e.$super.init.apply(this,arguments)};e.init.prototype=e;e.$super=this;return e},create:function(){var t=this.extend();t.init.apply(t,arguments);return t},init:function(){},mixIn:function(t){for(var e in t)if(t.hasOwnProperty(e))this[e]=t[e];if(t.hasOwnProperty("toString"))this.toString=t.toString},clone:function(){return this.init.prototype.extend(this)}}}();var c=o.WordArray=u.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words;var r=t.words;var i=this.sigBytes;var n=t.sigBytes;this.clamp();if(i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;e[i+s>>>2]|=a<<24-(i+s)%4*8}else for(var o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];this.sigBytes+=n;return this},clamp:function(){var e=this.words;var r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8;e.length=t.ceil(r/4)},clone:function(){var t=u.clone.call(this);t.words=this.words.slice(0);return t},random:function(t){var e=[];for(var r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}});var l=a.enc={};var f=l.Hex={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16));i.push((15&s).toString(16))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}};var h=l.Latin1={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}};var d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}};var p=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init;this._nDataBytes=0},_append:function(t){if("string"==typeof t)t=d.parse(t);this._data.concat(t);this._nDataBytes+=t.sigBytes},_process:function(e){var r;var i=this._data;var n=i.words;var s=i.sigBytes;var a=this.blockSize;var o=4*a;var u=s/o;if(e)u=t.ceil(u);else u=t.max((0|u)-this._minBufferSize,0);var l=u*a;var f=t.min(4*l,s);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(n,h);r=n.splice(0,l);i.sigBytes-=f}return new c.init(r,f)},clone:function(){var t=u.clone.call(this);t._data=this._data.clone();return t},_minBufferSize:0});var v=o.Hasher=p.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t);this.reset()},reset:function(){p.reset.call(this);this._doReset()},update:function(t){this._append(t);this._process();return this},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},blockSize:512/32,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new g.HMAC.init(t,r).finalize(e)}}});var g=a.algo={};return a}(Math);return t}))},8269:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;var s=n.Base64={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=this._map;t.clamp();var n=[];for(var s=0;s<r;s+=3){var a=e[s>>>2]>>>24-s%4*8&255;var o=e[s+1>>>2]>>>24-(s+1)%4*8&255;var u=e[s+2>>>2]>>>24-(s+2)%4*8&255;var c=a<<16|o<<8|u;for(var l=0;l<4&&s+.75*l<r;l++)n.push(i.charAt(c>>>6*(3-l)&63))}var f=i.charAt(64);if(f)while(n.length%4)n.push(f);return n.join("")},parse:function(t){var e=t.length;var r=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n}var s=r.charAt(64);if(s){var o=t.indexOf(s);if(-1!==o)e=o}return a(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++}return i.create(n,s)}})();return t.enc.Base64}))},3786:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;var s=n.Base64url={stringify:function(t,e=true){var r=t.words;var i=t.sigBytes;var n=e?this._safe_map:this._map;t.clamp();var s=[];for(var a=0;a<i;a+=3){var o=r[a>>>2]>>>24-a%4*8&255;var u=r[a+1>>>2]>>>24-(a+1)%4*8&255;var c=r[a+2>>>2]>>>24-(a+2)%4*8&255;var l=o<<16|u<<8|c;for(var f=0;f<4&&a+.75*f<i;f++)s.push(n.charAt(l>>>6*(3-f)&63))}var h=n.charAt(64);if(h)while(s.length%4)s.push(h);return s.join("")},parse:function(t,e=true){var r=t.length;var i=e?this._safe_map:this._map;var n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s<i.length;s++)n[i.charCodeAt(s)]=s}var o=i.charAt(64);if(o){var u=t.indexOf(o);if(-1!==u)r=u}return a(t,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++}return i.create(n,s)}})();return t.enc.Base64url}))},298:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;var s=n.Utf16=n.Utf16BE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=e[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}};n.Utf16LE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=a(e[n>>>2]>>>16-n%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=a(t.charCodeAt(n)<<16-n%2*16);return i.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}})();return t.enc.Utf16}))},888:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2783),r(9824))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.MD5;var o=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r;var i=this.cfg;var s=i.hasher.create();var a=n.create();var o=a.words;var u=i.keySize;var c=i.iterations;while(o.length<u){if(r)s.update(r);r=s.update(t).finalize(e);s.reset();for(var l=1;l<c;l++){r=s.finalize(r);s.reset()}a.concat(r)}a.sigBytes=4*u;return a}});e.EvpKDF=function(t,e,r){return o.create(r).compute(t,e)}})();return t.EvpKDF}))},2209:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.CipherParams;var s=r.enc;var a=s.Hex;var o=r.format;var u=o.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return n.create({ciphertext:e})}}})();return t.format.Hex}))},9824:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=e.enc;var s=n.Utf8;var a=e.algo;var o=a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init;if("string"==typeof e)e=s.parse(e);var r=t.blockSize;var i=4*r;if(e.sigBytes>i)e=t.finalize(e);e.clamp();var n=this._oKey=e.clone();var a=this._iKey=e.clone();var o=n.words;var u=a.words;for(var c=0;c<r;c++){o[c]^=1549556828;u[c]^=909522486}n.sigBytes=a.sigBytes=i;this.reset()},reset:function(){var t=this._hasher;t.reset();t.update(this._iKey)},update:function(t){this._hasher.update(t);return this},finalize:function(t){var e=this._hasher;var r=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(r));return i}})})()}))},1354:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938),r(4433),r(298),r(8269),r(3786),r(8214),r(2783),r(2153),r(7792),r(34),r(7460),r(3327),r(706),r(9824),r(2112),r(888),r(5109),r(8568),r(4242),r(9968),r(7660),r(1148),r(3615),r(2807),r(1077),r(6475),r(6991),r(2209),r(452),r(4253),r(1857),r(4454),r(3974))})(this,(function(t){return t}))},4433:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){if("function"!=typeof ArrayBuffer)return;var e=t;var r=e.lib;var i=r.WordArray;var n=i.init;var s=i.init=function(t){if(t instanceof ArrayBuffer)t=new Uint8Array(t);if(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);if(t instanceof Uint8Array){var e=t.byteLength;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=t[i]<<24-i%4*8;n.call(this,r,e)}else n.apply(this,arguments)};s.prototype=i})();return t.lib.WordArray}))},8214:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0})();var u=a.MD5=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this._hash.words;var a=t[e+0];var u=t[e+1];var d=t[e+2];var p=t[e+3];var v=t[e+4];var g=t[e+5];var y=t[e+6];var m=t[e+7];var _=t[e+8];var w=t[e+9];var S=t[e+10];var b=t[e+11];var E=t[e+12];var D=t[e+13];var T=t[e+14];var M=t[e+15];var I=s[0];var A=s[1];var x=s[2];var R=s[3];I=c(I,A,x,R,a,7,o[0]);R=c(R,I,A,x,u,12,o[1]);x=c(x,R,I,A,d,17,o[2]);A=c(A,x,R,I,p,22,o[3]);I=c(I,A,x,R,v,7,o[4]);R=c(R,I,A,x,g,12,o[5]);x=c(x,R,I,A,y,17,o[6]);A=c(A,x,R,I,m,22,o[7]);I=c(I,A,x,R,_,7,o[8]);R=c(R,I,A,x,w,12,o[9]);x=c(x,R,I,A,S,17,o[10]);A=c(A,x,R,I,b,22,o[11]);I=c(I,A,x,R,E,7,o[12]);R=c(R,I,A,x,D,12,o[13]);x=c(x,R,I,A,T,17,o[14]);A=c(A,x,R,I,M,22,o[15]);I=l(I,A,x,R,u,5,o[16]);R=l(R,I,A,x,y,9,o[17]);x=l(x,R,I,A,b,14,o[18]);A=l(A,x,R,I,a,20,o[19]);I=l(I,A,x,R,g,5,o[20]);R=l(R,I,A,x,S,9,o[21]);x=l(x,R,I,A,M,14,o[22]);A=l(A,x,R,I,v,20,o[23]);I=l(I,A,x,R,w,5,o[24]);R=l(R,I,A,x,T,9,o[25]);x=l(x,R,I,A,p,14,o[26]);A=l(A,x,R,I,_,20,o[27]);I=l(I,A,x,R,D,5,o[28]);R=l(R,I,A,x,d,9,o[29]);x=l(x,R,I,A,m,14,o[30]);A=l(A,x,R,I,E,20,o[31]);I=f(I,A,x,R,g,4,o[32]);R=f(R,I,A,x,_,11,o[33]);x=f(x,R,I,A,b,16,o[34]);A=f(A,x,R,I,T,23,o[35]);I=f(I,A,x,R,u,4,o[36]);R=f(R,I,A,x,v,11,o[37]);x=f(x,R,I,A,m,16,o[38]);A=f(A,x,R,I,S,23,o[39]);I=f(I,A,x,R,D,4,o[40]);R=f(R,I,A,x,a,11,o[41]);x=f(x,R,I,A,p,16,o[42]);A=f(A,x,R,I,y,23,o[43]);I=f(I,A,x,R,w,4,o[44]);R=f(R,I,A,x,E,11,o[45]);x=f(x,R,I,A,M,16,o[46]);A=f(A,x,R,I,d,23,o[47]);I=h(I,A,x,R,a,6,o[48]);R=h(R,I,A,x,m,10,o[49]);x=h(x,R,I,A,T,15,o[50]);A=h(A,x,R,I,g,21,o[51]);I=h(I,A,x,R,E,6,o[52]);R=h(R,I,A,x,p,10,o[53]);x=h(x,R,I,A,S,15,o[54]);A=h(A,x,R,I,u,21,o[55]);I=h(I,A,x,R,_,6,o[56]);R=h(R,I,A,x,M,10,o[57]);x=h(x,R,I,A,y,15,o[58]);A=h(A,x,R,I,D,21,o[59]);I=h(I,A,x,R,v,6,o[60]);R=h(R,I,A,x,b,10,o[61]);x=h(x,R,I,A,d,15,o[62]);A=h(A,x,R,I,w,21,o[63]);s[0]=s[0]+I|0;s[1]=s[1]+A|0;s[2]=s[2]+x|0;s[3]=s[3]+R|0},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296);var a=i;r[(n+64>>>9<<4)+15]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);r[(n+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);t.sigBytes=4*(r.length+1);this._process();var o=this._hash;var u=o.words;for(var c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return o},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function c(t,e,r,i,n,s,a){var o=t+(e&r|~e&i)+n+a;return(o<<s|o>>>32-s)+e}function l(t,e,r,i,n,s,a){var o=t+(e&i|r&~i)+n+a;return(o<<s|o>>>32-s)+e}function f(t,e,r,i,n,s,a){var o=t+(e^r^i)+n+a;return(o<<s|o>>>32-s)+e}function h(t,e,r,i,n,s,a){var o=t+(r^(e|~i))+n+a;return(o<<s|o>>>32-s)+e}r.MD5=s._createHelper(u);r.HmacMD5=s._createHmacHelper(u)})(Math);return t.MD5}))},8568:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n,i);this._prevBlock=t.slice(e,e+n)}});e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);r.call(this,t,e,n,i);this._prevBlock=s}});function r(t,e,r,i){var n;var s=this._iv;if(s){n=s.slice(0);this._iv=void 0}else n=this._prevBlock;i.encryptBlock(n,0);for(var a=0;a<r;a++)t[e+a]^=n[a]}return e}();return t.mode.CFB}))},9968:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255;var r=t>>8&255;var i=255&t;if(255===e){e=0;if(255===r){r=0;if(255===i)i=0;else++i}else++r}else++e;t=0;t+=e<<16;t+=r<<8;t+=i}else t+=1<<24;return t}function i(t){if(0===(t[0]=r(t[0])))t[1]=r(t[1]);return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var n=r.blockSize;var s=this._iv;var a=this._counter;if(s){a=this._counter=s.slice(0);this._iv=void 0}i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u<n;u++)t[e+u]^=o[u]}});e.Decryptor=n;return e}();return t.mode.CTRGladman}))},4242:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._counter;if(n){s=this._counter=n.slice(0);this._iv=void 0}var a=s.slice(0);r.encryptBlock(a,0);s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)t[e+o]^=a[o]}});e.Decryptor=r;return e}();return t.mode.CTR}))},1148:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}});e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}});return e}();return t.mode.ECB}))},7660:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._keystream;if(n){s=this._keystream=n.slice(0);this._iv=void 0}r.encryptBlock(s,0);for(var a=0;a<i;a++)t[e+a]^=s[a]}});e.Decryptor=r;return e}();return t.mode.OFB}))},3615:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes;var i=4*e;var n=i-r%i;var s=r+n-1;t.clamp();t.words[s>>>2]|=n<<24-s%4*8;t.sigBytes+=n},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};return t.pad.Ansix923}))},2807:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.Iso10126={pad:function(e,r){var i=4*r;var n=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};return t.pad.Iso10126}))},1077:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1));t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e);e.sigBytes--}};return t.pad.Iso97971}))},6991:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.NoPadding={pad:function(){},unpad:function(){}};return t.pad.NoPadding}))},6475:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp();t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words;var r=t.sigBytes-1;for(var r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}};return t.pad.ZeroPadding}))},2112:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2783),r(9824))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.SHA1;var o=s.HMAC;var u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg;var i=o.create(r.hasher,t);var s=n.create();var a=n.create([1]);var u=s.words;var c=a.words;var l=r.keySize;var f=r.iterations;while(u.length<l){var h=i.update(e).finalize(a);i.reset();var d=h.words;var p=d.length;var v=h;for(var g=1;g<f;g++){v=i.finalize(v);i.reset();var y=v.words;for(var m=0;m<p;m++)d[m]^=y[m]}s.concat(h);c[0]++}s.sigBytes=4*l;return s}});e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)}})();return t.PBKDF2}))},3974:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;i[0]^=u;i[1]^=f;i[2]^=l;i[3]^=h;i[4]^=u;i[5]^=f;i[6]^=l;i[7]^=h;for(var n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i]}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=i._createHelper(u)})();return t.RabbitLegacy}))},4454:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.Rabbit=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;for(var r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;n[0]^=u;n[1]^=f;n[2]^=l;n[3]^=h;n[4]^=u;n[5]^=f;n[6]^=l;n[7]^=h;for(var r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i]}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=i._createHelper(u)})();return t.Rabbit}))},1857:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=n.RC4=i.extend({_doReset:function(){var t=this._key;var e=t.words;var r=t.sigBytes;var i=this._S=[];for(var n=0;n<256;n++)i[n]=n;for(var n=0,s=0;n<256;n++){var a=n%r;var o=e[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s];i[s]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:256/32,ivSize:0});function a(){var t=this._S;var e=this._i;var r=this._j;var i=0;for(var n=0;n<4;n++){e=(e+1)%256;r=(r+t[e])%256;var s=t[e];t[e]=t[r];t[r]=s;i|=t[(t[e]+t[r])%256]<<24-8*n}this._i=e;this._j=r;return i}e.RC4=i._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(o)})();return t.RC4}))},706:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var u=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var f=n.create([0,1518500249,1859775393,2400959708,2840853838]);var h=n.create([1352829926,1548603684,1836072691,2053994217,0]);var d=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this._hash.words;var a=f.words;var d=h.words;var w=o.words;var S=u.words;var b=c.words;var E=l.words;var D,T,M,I,A;var x,R,B,O,k;x=D=s[0];R=T=s[1];B=M=s[2];O=I=s[3];k=A=s[4];var C;for(var r=0;r<80;r+=1){C=D+t[e+w[r]]|0;if(r<16)C+=p(T,M,I)+a[0];else if(r<32)C+=v(T,M,I)+a[1];else if(r<48)C+=g(T,M,I)+a[2];else if(r<64)C+=y(T,M,I)+a[3];else C+=m(T,M,I)+a[4];C|=0;C=_(C,b[r]);C=C+A|0;D=A;A=I;I=_(M,10);M=T;T=C;C=x+t[e+S[r]]|0;if(r<16)C+=m(R,B,O)+d[0];else if(r<32)C+=y(R,B,O)+d[1];else if(r<48)C+=g(R,B,O)+d[2];else if(r<64)C+=v(R,B,O)+d[3];else C+=p(R,B,O)+d[4];C|=0;C=_(C,E[r]);C=C+k|0;x=k;k=O;O=_(B,10);B=R;R=C}C=s[1]+M+O|0;s[1]=s[2]+I+k|0;s[2]=s[3]+A+x|0;s[3]=s[4]+D+R|0;s[4]=s[0]+T+B|0;s[0]=C},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);t.sigBytes=4*(e.length+1);this._process();var n=this._hash;var s=n.words;for(var a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return n},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function p(t,e,r){return t^e^r}function v(t,e,r){return t&e|~t&r}function g(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}r.RIPEMD160=s._createHelper(d);r.HmacRIPEMD160=s._createHmacHelper(d)})(Math);return t.RIPEMD160}))},2783:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.Hasher;var s=e.algo;var a=[];var o=s.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var o=r[3];var u=r[4];for(var c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(i<<5|i>>>27)+u+a[c];if(c<20)f+=(n&s|~n&o)+1518500249;else if(c<40)f+=(n^s^o)+1859775393;else if(c<60)f+=(n&s|n&o|s&o)-1894007588;else f+=(n^s^o)-899497514;u=o;o=s;s=n<<30|n>>>2;n=i;i=f}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+o|0;r[4]=r[4]+u|0},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(r/4294967296);e[(i+64>>>9<<4)+15]=r;t.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var t=n.clone.call(this);t._hash=this._hash.clone();return t}});e.SHA1=n._createHelper(o);e.HmacSHA1=n._createHmacHelper(o)})();return t.SHA1}))},7792:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2153))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.algo;var s=n.SHA256;var a=n.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=s._doFinalize.call(this);t.sigBytes-=4;return t}});e.SHA224=s._createHelper(a);e.HmacSHA224=s._createHmacHelper(a)})();return t.SHA224}))},2153:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];var u=[];(function(){function t(t){var r=e.sqrt(t);for(var i=2;i<=r;i++)if(!(t%i))return false;return true}function r(t){return 4294967296*(t-(0|t))|0}var i=2;var n=0;while(n<64){if(t(i)){if(n<8)o[n]=r(e.pow(i,1/2));u[n]=r(e.pow(i,1/3));n++}i++}})();var c=[];var l=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var l=r[5];var f=r[6];var h=r[7];for(var d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else{var p=c[d-15];var v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3;var g=c[d-2];var y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=v+c[d-7]+y+c[d-16]}var m=o&l^~o&f;var _=i&n^i&s^n&s;var w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var S=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25);var b=h+S+m+u[d]+c[d];var E=w+_;h=f;f=l;l=o;o=a+b|0;a=s;s=n;n=i;i=b+E|0}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+a|0;r[4]=r[4]+o|0;r[5]=r[5]+l|0;r[6]=r[6]+f|0;r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;r[(n+64>>>9<<4)+14]=e.floor(i/4294967296);r[(n+64>>>9<<4)+15]=i;t.sigBytes=4*r.length;this._process();return this._hash},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});r.SHA256=s._createHelper(l);r.HmacSHA256=s._createHmacHelper(l)})(Math);return t.SHA256}))},3327:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.x64;var o=a.Word;var u=r.algo;var c=[];var l=[];var f=[];(function(){var t=1,e=0;for(var r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=e%5;var n=(2*t+3*e)%5;t=i;e=n}for(var t=0;t<5;t++)for(var e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;var s=1;for(var a=0;a<24;a++){var u=0;var h=0;for(var d=0;d<7;d++){if(1&s){var p=(1<<d)-1;if(p<32)h^=1<<p;else u^=1<<p-32}if(128&s)s=s<<1^113;else s<<=1}f[a]=o.create(u,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=o.create()})();var d=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){var t=this._state=[];for(var e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){var r=this._state;var i=this.blockSize/2;for(var n=0;n<i;n++){var s=t[e+2*n];var a=t[e+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var o=r[n];o.high^=a;o.low^=s}for(var u=0;u<24;u++){for(var d=0;d<5;d++){var p=0,v=0;for(var g=0;g<5;g++){var o=r[d+5*g];p^=o.high;v^=o.low}var y=h[d];y.high=p;y.low=v}for(var d=0;d<5;d++){var m=h[(d+4)%5];var _=h[(d+1)%5];var w=_.high;var S=_.low;var p=m.high^(w<<1|S>>>31);var v=m.low^(S<<1|w>>>31);for(var g=0;g<5;g++){var o=r[d+5*g];o.high^=p;o.low^=v}}for(var b=1;b<25;b++){var p;var v;var o=r[b];var E=o.high;var D=o.low;var T=c[b];if(T<32){p=E<<T|D>>>32-T;v=D<<T|E>>>32-T}else{p=D<<T-32|E>>>64-T;v=E<<T-32|D>>>64-T}var M=h[l[b]];M.high=p;M.low=v}var I=h[0];var A=r[0];I.high=A.high;I.low=A.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var b=d+5*g;var o=r[b];var x=h[b];var R=h[(d+1)%5+5*g];var B=h[(d+2)%5+5*g];o.high=x.high^~R.high&B.high;o.low=x.low^~R.low&B.low}var o=r[0];var O=f[u];o.high^=O.high;o.low^=O.low}},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var s=8*t.sigBytes;var a=32*this.blockSize;r[s>>>5]|=1<<24-s%32;r[(e.ceil((s+1)/a)*a>>>5)-1]|=128;t.sigBytes=4*r.length;this._process();var o=this._state;var u=this.cfg.outputLength/8;var c=u/8;var l=[];for(var f=0;f<c;f++){var h=o[f];var d=h.high;var p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8);p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8);l.push(p);l.push(d)}return new n.init(l,u)},clone:function(){var t=s.clone.call(this);var e=t._state=this._state.slice(0);for(var r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=s._createHelper(d);r.HmacSHA3=s._createHmacHelper(d)})(Math);return t.SHA3}))},7460:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938),r(34))})(this,(function(t){(function(){var e=t;var r=e.x64;var i=r.Word;var n=r.WordArray;var s=e.algo;var a=s.SHA512;var o=s.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);t.sigBytes-=16;return t}});e.SHA384=a._createHelper(o);e.HmacSHA384=a._createHmacHelper(o)})();return t.SHA384}))},34:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Hasher;var n=e.x64;var s=n.Word;var a=n.WordArray;var o=e.algo;function u(){return s.create.apply(s,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)];var l=[];(function(){for(var t=0;t<80;t++)l[t]=u()})();var f=o.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var u=r[5];var f=r[6];var h=r[7];var d=i.high;var p=i.low;var v=n.high;var g=n.low;var y=s.high;var m=s.low;var _=a.high;var w=a.low;var S=o.high;var b=o.low;var E=u.high;var D=u.low;var T=f.high;var M=f.low;var I=h.high;var A=h.low;var x=d;var R=p;var B=v;var O=g;var k=y;var C=m;var N=_;var P=w;var V=S;var L=b;var H=E;var U=D;var j=T;var K=M;var q=I;var F=A;for(var z=0;z<80;z++){var G;var Y;var W=l[z];if(z<16){Y=W.high=0|t[e+2*z];G=W.low=0|t[e+2*z+1]}else{var J=l[z-15];var Z=J.high;var $=J.low;var X=(Z>>>1|$<<31)^(Z>>>8|$<<24)^Z>>>7;var Q=($>>>1|Z<<31)^($>>>8|Z<<24)^($>>>7|Z<<25);var tt=l[z-2];var et=tt.high;var rt=tt.low;var it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6;var nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26);var st=l[z-7];var at=st.high;var ot=st.low;var ut=l[z-16];var ct=ut.high;var lt=ut.low;G=Q+ot;Y=X+at+(G>>>0<Q>>>0?1:0);G+=nt;Y=Y+it+(G>>>0<nt>>>0?1:0);G+=lt;Y=Y+ct+(G>>>0<lt>>>0?1:0);W.high=Y;W.low=G}var ft=V&H^~V&j;var ht=L&U^~L&K;var dt=x&B^x&k^B&k;var pt=R&O^R&C^O&C;var vt=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7);var gt=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7);var yt=(V>>>14|L<<18)^(V>>>18|L<<14)^(V<<23|L>>>9);var mt=(L>>>14|V<<18)^(L>>>18|V<<14)^(L<<23|V>>>9);var _t=c[z];var wt=_t.high;var St=_t.low;var bt=F+mt;var Et=q+yt+(bt>>>0<F>>>0?1:0);var bt=bt+ht;var Et=Et+ft+(bt>>>0<ht>>>0?1:0);var bt=bt+St;var Et=Et+wt+(bt>>>0<St>>>0?1:0);var bt=bt+G;var Et=Et+Y+(bt>>>0<G>>>0?1:0);var Dt=gt+pt;var Tt=vt+dt+(Dt>>>0<gt>>>0?1:0);q=j;F=K;j=H;K=U;H=V;U=L;L=P+bt|0;V=N+Et+(L>>>0<P>>>0?1:0)|0;N=k;P=C;k=B;C=O;B=x;O=R;R=bt+Dt|0;x=Et+Tt+(R>>>0<bt>>>0?1:0)|0}p=i.low=p+R;i.high=d+x+(p>>>0<R>>>0?1:0);g=n.low=g+O;n.high=v+B+(g>>>0<O>>>0?1:0);m=s.low=m+C;s.high=y+k+(m>>>0<C>>>0?1:0);w=a.low=w+P;a.high=_+N+(w>>>0<P>>>0?1:0);b=o.low=b+L;o.high=S+V+(b>>>0<L>>>0?1:0);D=u.low=D+U;u.high=E+H+(D>>>0<U>>>0?1:0);M=f.low=M+K;f.high=T+j+(M>>>0<K>>>0?1:0);A=h.low=A+F;h.high=I+q+(A>>>0<F>>>0?1:0)},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(r/4294967296);e[(i+128>>>10<<5)+31]=r;t.sigBytes=4*e.length;this._process();var n=this._hash.toX32();return n},clone:function(){var t=i.clone.call(this);t._hash=this._hash.clone();return t},blockSize:1024/32});e.SHA512=i._createHelper(f);e.HmacSHA512=i._createHmacHelper(f)})();return t.SHA512}))},4253:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.BlockCipher;var s=e.algo;var a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4];var o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32];var u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}];var l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var f=s.DES=n.extend({_doReset:function(){var t=this._key;var e=t.words;var r=[];for(var i=0;i<56;i++){var n=a[i]-1;r[i]=e[n>>>5]>>>31-n%32&1}var s=this._subKeys=[];for(var c=0;c<16;c++){var l=s[c]=[];var f=u[c];for(var i=0;i<24;i++){l[i/6|0]|=r[(o[i]-1+f)%28]<<31-i%6;l[4+(i/6|0)]|=r[28+(o[i+24]-1+f)%28]<<31-i%6}l[0]=l[0]<<1|l[0]>>>31;for(var i=1;i<7;i++)l[i]=l[i]>>>4*(i-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(var i=0;i<16;i++)h[i]=s[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e];this._rBlock=t[e+1];h.call(this,4,252645135);h.call(this,16,65535);d.call(this,2,858993459);d.call(this,8,16711935);h.call(this,1,1431655765);for(var i=0;i<16;i++){var n=r[i];var s=this._lBlock;var a=this._rBlock;var o=0;for(var u=0;u<8;u++)o|=c[u][((a^n[u])&l[u])>>>0];this._lBlock=a;this._rBlock=s^o}var f=this._lBlock;this._lBlock=this._rBlock;this._rBlock=f;h.call(this,1,1431655765);d.call(this,8,16711935);d.call(this,2,858993459);h.call(this,16,65535);h.call(this,4,252645135);t[e]=this._lBlock;t[e+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r;this._lBlock^=r<<t}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r;this._rBlock^=r<<t}e.DES=n._createHelper(f);var p=s.TripleDES=n.extend({_doReset:function(){var t=this._key;var e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2);var n=e.length<4?e.slice(0,2):e.slice(2,4);var s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(i.create(r));this._des2=f.createEncryptor(i.create(n));this._des3=f.createEncryptor(i.create(s))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e);this._des2.decryptBlock(t,e);this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e);this._des2.encryptBlock(t,e);this._des1.decryptBlock(t,e)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=n._createHelper(p)})();return t.TripleDES}))},4938:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=r.x64={};var o=a.Word=n.extend({init:function(t,e){this.high=t;this.low=e}});var u=a.WordArray=n.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=8*t.length},toX32:function(){var t=this.words;var e=t.length;var r=[];for(var i=0;i<e;i++){var n=t[i];r.push(n.high);r.push(n.low)}return s.create(r,this.sigBytes)},clone:function(){var t=n.clone.call(this);var e=t.words=this.words.slice(0);var r=e.length;for(var i=0;i<r;i++)e[i]=e[i].clone();return t}})})();return t}))},3118:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ErrorCode=void 0;var r;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["CLIENT_ID_NOT_FOUND"]=1]="CLIENT_ID_NOT_FOUND";t[t["OPERATION_TOO_OFTEN"]=2]="OPERATION_TOO_OFTEN";t[t["REPEAT_MESSAGE"]=3]="REPEAT_MESSAGE";t[t["TIME_OUT"]=4]="TIME_OUT"})(r=e.ErrorCode||(e.ErrorCode={}))},5987:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const n=i(r(1901));const s=i(r(1754));const a=i(r(1237));var o;(function(t){function e(t){a.default.debugMode=t;a.default.info(`setDebugMode: ${t}`)}t.setDebugMode=e;function r(t){try{n.default.init(t)}catch(t){a.default.error(`init error`,t)}}t.init=r;function i(t){try{n.default.setTag(t)}catch(t){a.default.error(`setTag error`,t)}}t.setTag=i;function o(t){try{n.default.bindAlias(t)}catch(t){a.default.error(`bindAlias error`,t)}}t.bindAlias=o;function u(t){try{n.default.unbindAlias(t)}catch(t){a.default.error(`unbindAlias error`,t)}}t.unbindAlias=u;function c(t){try{if(!t.url)throw new Error("invalid url");if(!t.key||!t.keyId)throw new Error("invalid key or keyId");s.default.socketUrl=t.url;s.default.publicKeyId=t.keyId;s.default.publicKey=t.key}catch(t){a.default.error(`setSocketServer error`,t)}}t.setSocketServer=c;function l(t){try{n.default.enableSocket(t)}catch(t){a.default.error(`enableSocket error`,t)}}t.enableSocket=l})(o||(o={}));t.exports=o},2852:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4806));const s=i(r(3396));const a=i(r(6565));const o=i(r(5912));const u=i(r(3174));const c=i(r(4698));const l=i(r(87));const f=i(r(523));const h=i(r(7252));const d=i(r(4668));const p=i(r(3072));const v=i(r(1996));const g=i(r(9342));const y=i(r(155));const m=i(r(3751));var _;(function(t){let e;let r;let i;function _(){if("undefined"!=typeof uni){e=new d.default;r=new p.default;i=new v.default}else if("undefined"!=typeof tt){e=new l.default;r=new f.default;i=new h.default}else if("undefined"!=typeof my){e=new n.default;r=new s.default;i=new a.default}else if("undefined"!=typeof wx){e=new g.default;r=new y.default;i=new m.default}else if("undefined"!=typeof window){e=new o.default;r=new u.default;i=new c.default}}function w(){if(!e)_();return e}t.getDevice=w;function S(){if(!r)_();return r}t.getStorage=S;function b(){if(!i)_();return i}t.getWebSocket=b})(_||(_={}));e["default"]=_},7406:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){function e(){return n.default.getDevice().os()}t.os=e;function r(){return n.default.getDevice().osVersion()}t.osVersion=r;function i(){return n.default.getDevice().model()}t.model=i;function s(){return n.default.getDevice().brand()}t.brand=s;function a(){return n.default.getDevice().platform()}t.platform=a;function o(){return n.default.getDevice().platformVersion()}t.platformVersion=o;function u(){return n.default.getDevice().platformId()}t.platformId=u;function c(){return n.default.getDevice().language()}t.language=c;function l(){let t=n.default.getDevice().userAgent;if(t)return t();return""}t.userAgent=l;function f(t){n.default.getDevice().getNetworkType(t)}t.getNetworkType=f;function h(t){n.default.getDevice().onNetworkStatusChange(t)}t.onNetworkStatusChange=h})(s||(s={}));e["default"]=s},7071:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(358));const a=i(r(1236));const o=r(53);const u=i(r(1571));const c=i(r(1237));const l=i(r(2852));const f=i(r(9934));var h;(function(t){let e;let r=false;let i=false;t.allowReconnect=true;function h(){return r&&i}t.isAvailable=h;function d(e){if(!t.allowReconnect)return;setTimeout((function(){p()}),e)}t.reconnect=d;function p(){t.allowReconnect=true;if(!n.default.networkConnected){c.default.info(`connect failed, network is not available`);return}if(i||r)return;let s=n.default.socketUrl;try{let t=f.default.getSync(f.default.KEY_REDIRECT_SERVER,"");if(t){let e=o.RedirectServerData.parse(t);let r=e.addressList[0].split(",");let i=r[0];let n=Number(r[1]);let a=(new Date).getTime();if(a-e.time<1e3*n)s=i}}catch(t){}e=l.default.getWebSocket().connect({url:s,success:function(){i=true;v()},fail:function(){i=false;m("")}});e.onOpen(_);e.onClose(b);e.onError(S);e.onMessage(w)}t.connect=p;function v(){if(i&&r){s.default.create().send();u.default.getInstance().start()}}function g(t){e?.close({reason:t,success:function(t){},fail:function(t){m(t)}})}t.close=g;function y(t){if(r&&r)e?.send({data:t,success:function(t){},fail:function(t){}});else throw new Error(`socket not connect`)}t.send=y;function m(t){i=false;r=false;u.default.getInstance().cancel();if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online})}if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online})}d(1e3)}let _=function(t){r=true;v()};let w=function(t){try{t.data;u.default.getInstance().refresh();a.default.receiveMessage(t.data)}catch(t){}};let S=function(t){g(`socket error`)};let b=function(t){m(t)}})(h||(h={}));e["default"]=h},9934:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){t.KEY_APPID="getui_appid";t.KEY_CID="getui_cid";t.KEY_SESSION="getui_session";t.KEY_REGID="getui_regid";t.KEY_SOCKET_URL="getui_socket_url";t.KEY_DEVICE_ID="getui_deviceid";t.KEY_ADD_PHONE_INFO_TIME="getui_api_time";t.KEY_BIND_ALIAS_TIME="getui_ba_time";t.KEY_SET_TAG_TIME="getui_st_time";t.KEY_REDIRECT_SERVER="getui_redirect_server";function e(t){n.default.getStorage().set(t)}t.set=e;function r(t,e){n.default.getStorage().setSync(t,e)}t.setSync=r;function i(t){n.default.getStorage().get(t)}t.get=i;function s(t,e){let r=n.default.getStorage().getSync(t);return r?r:e}t.getSync=s})(s||(s={}));e["default"]=s},4806:t=>{"use strict";class e{constructor(){this.systemInfo=my.getSystemInfoSync()}os(){return this.systemInfo?.platform}osVersion(){return this.systemInfo?.system}model(){return this.systemInfo?.model}brand(){return this.systemInfo?.brand}platform(){return"MP-ALIPAY"}platformVersion(){return this.systemInfo.app+" "+this.systemInfo.version}platformId(){return my.getAppIdSync()}language(){return this.systemInfo?.language}getNetworkType(t){my.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType})},fail:()=>{t.fail?.call(t.fail,"")}})}onNetworkStatusChange(t){my.onNetworkStatusChange(t)}}t.exports=e},3396:t=>{"use strict";class e{set(t){my.setStorage({key:t.key,data:t.data,success:t.success,fail:t.fail})}setSync(t,e){my.setStorageSync({key:t,data:e})}get(t){my.getStorage({key:t.key,success:t.success,fail:t.fail,complete:t.complete})}getSync(t){return my.getStorageSync({key:t}).data}}t.exports=e},6565:t=>{"use strict";class e{connect(t){my.connectSocket({url:t.url,header:t.header,method:t.method,success:t.success,fail:t.fail,complete:t.complete});return{onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:t=>{my.onSocketMessage.call(my.onSocketMessage,(e=>{t.call(t,{data:e?e.data:""})}))},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}t.exports=e},5912:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{os(){let t=window.navigator.userAgent.toLowerCase();if(t.indexOf("android")>0||t.indexOf("adr")>0)return"android";if(!!t.match(/\(i[^;]+;( u;)? cpu.+mac os x/))return"ios";if(t.indexOf("windows")>0||t.indexOf("win32")>0||t.indexOf("win64")>0)return"windows";if(t.indexOf("macintosh")>0||t.indexOf("mac os")>0)return"mac os";if(t.indexOf("linux")>0)return"linux";if(t.indexOf("unix")>0)return"linux";return"other"}osVersion(){let t=window.navigator.userAgent.toLowerCase();let e=t.substring(t.indexOf(";")+1).trim();if(e.indexOf(";")>0)return e.substring(0,e.indexOf(";")).trim();return e.substring(0,e.indexOf(")")).trim()}model(){return""}brand(){return""}platform(){return"H5"}platformVersion(){return""}platformId(){return""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(t){t.success?.call(t.success,{networkType:window.navigator.connection.type})}onNetworkStatusChange(t){}}e["default"]=r},3174:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{set(t){window.localStorage.setItem(t.key,t.data);t.success?.call(t.success,"")}setSync(t,e){window.localStorage.setItem(t,e)}get(t){let e=window.localStorage.getItem(t.key);t.success?.call(t.success,e)}getSync(t){return window.localStorage.getItem(t)}}e["default"]=r},4698:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=new WebSocket(t.url);return{send:t=>{try{e.send(t.data);t.success?.call(t.success,{errMsg:""})}catch(e){t.fail?.call(t.fail,{errMsg:e+""})}},close:t=>{try{e.close(t.code,t.reason);t.success?.call(t.success,{errMsg:""})}catch(e){t.fail?.call(t.fail,{errMsg:e+""})}},onOpen:r=>{e.onopen=e=>{t.success?.call(t.success,"");r({header:""})}},onError:r=>{e.onerror=e=>{t.fail?.call(t.fail,"");r({errMsg:""})}},onMessage:t=>{e.onmessage=e=>{t({data:e.data})}},onClose:t=>{e.onclose=e=>{t(e)}}}}}e["default"]=r},87:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=tt.getSystemInfoSync()}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return"MP-TOUTIAO"}platformVersion(){return this.systemInfo.appName+" "+this.systemInfo.version}language(){return""}platformId(){return""}getNetworkType(t){tt.getNetworkType(t)}onNetworkStatusChange(t){tt.onNetworkStatusChange(t)}}e["default"]=r},523:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{set(t){tt.setStorage(t)}setSync(t,e){tt.setStorageSync(t,e)}get(t){tt.getStorage(t)}getSync(t){return tt.getStorageSync(t)}}e["default"]=r},7252:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=tt.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return{onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r},4668:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){try{this.systemInfo=uni.getSystemInfoSync();this.accountInfo=uni.getAccountInfoSync()}catch(t){}}os(){return this.systemInfo?this.systemInfo.platform:""}model(){return this.systemInfo?this.systemInfo.model:""}brand(){return this.systemInfo?.brand?this.systemInfo.brand:""}osVersion(){return this.systemInfo?this.systemInfo.system:""}platform(){let t=""; +(function t(e,r){if("object"===typeof exports&&"object"===typeof module)module.exports=r();else if("function"===typeof define&&define.amd)define([],r);else if("object"===typeof exports)exports["GtPush"]=r();else e["GtPush"]=r()})(self,(()=>(()=>{var t={4736:(t,e,r)=>{t=r.nmd(t);var i;var n=function(t){"use strict";var e=1e7,r=7,i=9007199254740992,s=d(i),a="0123456789abcdefghijklmnopqrstuvwxyz";var o="function"===typeof BigInt;function u(t,e,r,i){if("undefined"===typeof t)return u[0];if("undefined"!==typeof e)return 10===+e&&!r?st(t):X(t,e,r,i);return st(t)}function c(t,e){this.value=t;this.sign=e;this.isSmall=false}c.prototype=Object.create(u.prototype);function l(t){this.value=t;this.sign=t<0;this.isSmall=true}l.prototype=Object.create(u.prototype);function f(t){this.value=t}f.prototype=Object.create(u.prototype);function h(t){return-i<t&&t<i}function d(t){if(t<1e7)return[t];if(t<1e14)return[t%1e7,Math.floor(t/1e7)];return[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function p(t){v(t);var r=t.length;if(r<4&&N(t,s)<0)switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*e;default:return t[0]+(t[1]+t[2]*e)*e}return t}function v(t){var e=t.length;while(0===t[--e]);t.length=e+1}function g(t){var e=new Array(t);var r=-1;while(++r<t)e[r]=0;return e}function y(t){if(t>0)return Math.floor(t);return Math.ceil(t)}function m(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(c=0;c<n;c++){u=t[c]+r[c]+a;a=u>=o?1:0;s[c]=u-a*o}while(c<i){u=t[c]+a;a=u===o?1:0;s[c++]=u-a*o}if(a>0)s.push(a);return s}function w(t,e){if(t.length>=e.length)return m(t,e);return m(e,t)}function S(t,r){var i=t.length,n=new Array(i),s=e,a,o;for(o=0;o<i;o++){a=t[o]-s+r;r=Math.floor(a/s);n[o]=a-r*s;r+=1}while(r>0){n[o++]=r%s;r=Math.floor(r/s)}return n}c.prototype.add=function(t){var e=st(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,i=e.value;if(e.isSmall)return new c(S(r,Math.abs(i)),this.sign);return new c(w(r,i),this.sign)};c.prototype.plus=c.prototype.add;l.prototype.add=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var i=e.value;if(e.isSmall){if(h(r+i))return new l(r+i);i=d(Math.abs(i))}return new c(S(i,Math.abs(r)),r<0)};l.prototype.plus=l.prototype.add;f.prototype.add=function(t){return new f(this.value+st(t).value)};f.prototype.plus=f.prototype.add;function _(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(u=0;u<n;u++){c=t[u]-a-r[u];if(c<0){c+=o;a=1}else a=0;s[u]=c}for(u=n;u<i;u++){c=t[u]-a;if(c<0)c+=o;else{s[u++]=c;break}s[u]=c}for(;u<i;u++)s[u]=t[u];v(s);return s}function b(t,e,r){var i;if(N(t,e)>=0)i=_(t,e);else{i=_(e,t);r=!r}i=p(i);if("number"===typeof i){if(r)i=-i;return new l(i)}return new c(i,r)}function E(t,r,i){var n=t.length,s=new Array(n),a=-r,o=e,u,f;for(u=0;u<n;u++){f=t[u]+a;a=Math.floor(f/o);f%=o;s[u]=f<0?f+o:f}s=p(s);if("number"===typeof s){if(i)s=-s;return new l(s)}return new c(s,i)}c.prototype.subtract=function(t){var e=st(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,i=e.value;if(e.isSmall)return E(r,Math.abs(i),this.sign);return b(r,i,this.sign)};c.prototype.minus=c.prototype.subtract;l.prototype.subtract=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.add(e.negate());var i=e.value;if(e.isSmall)return new l(r-i);return E(i,Math.abs(r),r>=0)};l.prototype.minus=l.prototype.subtract;f.prototype.subtract=function(t){return new f(this.value-st(t).value)};f.prototype.minus=f.prototype.subtract;c.prototype.negate=function(){return new c(this.value,!this.sign)};l.prototype.negate=function(){var t=this.sign;var e=new l(-this.value);e.sign=!t;return e};f.prototype.negate=function(){return new f(-this.value)};c.prototype.abs=function(){return new c(this.value,false)};l.prototype.abs=function(){return new l(Math.abs(this.value))};f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)};function D(t,r){var i=t.length,n=r.length,s=i+n,a=g(s),o=e,u,c,l,f,h;for(l=0;l<i;++l){f=t[l];for(var d=0;d<n;++d){h=r[d];u=f*h+a[l+d];c=Math.floor(u/o);a[l+d]=u-c*o;a[l+d+1]+=c}}v(a);return a}function M(t,r){var i=t.length,n=new Array(i),s=e,a=0,o,u;for(u=0;u<i;u++){o=t[u]*r+a;a=Math.floor(o/s);n[u]=o-a*s}while(a>0){n[u++]=a%s;a=Math.floor(a/s)}return n}function T(t,e){var r=[];while(e-- >0)r.push(0);return r.concat(t)}function I(t,e){var r=Math.max(t.length,e.length);if(r<=30)return D(t,e);r=Math.ceil(r/2);var i=t.slice(r),n=t.slice(0,r),s=e.slice(r),a=e.slice(0,r);var o=I(n,a),u=I(i,s),c=I(w(n,i),w(a,s));var l=w(w(o,T(_(_(c,o),u),r)),T(u,2*r));v(l);return l}function A(t,e){return-.012*t-.012*e+15e-6*t*e>0}c.prototype.multiply=function(t){var r=st(t),i=this.value,n=r.value,s=this.sign!==r.sign,a;if(r.isSmall){if(0===n)return u[0];if(1===n)return this;if(-1===n)return this.negate();a=Math.abs(n);if(a<e)return new c(M(i,a),s);n=d(a)}if(A(i.length,n.length))return new c(I(i,n),s);return new c(D(i,n),s)};c.prototype.times=c.prototype.multiply;function x(t,r,i){if(t<e)return new c(M(r,t),i);return new c(D(r,d(t)),i)}l.prototype._multiplyBySmall=function(t){if(h(t.value*this.value))return new l(t.value*this.value);return x(Math.abs(t.value),d(Math.abs(this.value)),this.sign!==t.sign)};c.prototype._multiplyBySmall=function(t){if(0===t.value)return u[0];if(1===t.value)return this;if(-1===t.value)return this.negate();return x(Math.abs(t.value),this.value,this.sign!==t.sign)};l.prototype.multiply=function(t){return st(t)._multiplyBySmall(this)};l.prototype.times=l.prototype.multiply;f.prototype.multiply=function(t){return new f(this.value*st(t).value)};f.prototype.times=f.prototype.multiply;function R(t){var r=t.length,i=g(r+r),n=e,s,a,o,u,c;for(o=0;o<r;o++){u=t[o];a=0-u*u;for(var l=o;l<r;l++){c=t[l];s=2*(u*c)+i[o+l]+a;a=Math.floor(s/n);i[o+l]=s-a*n}i[o+r]=a}v(i);return i}c.prototype.square=function(){return new c(R(this.value),false)};l.prototype.square=function(){var t=this.value*this.value;if(h(t))return new l(t);return new c(R(d(Math.abs(this.value))),false)};f.prototype.square=function(t){return new f(this.value*this.value)};function B(t,r){var i=t.length,n=r.length,s=e,a=g(r.length),o=r[n-1],u=Math.ceil(s/(2*o)),c=M(t,u),l=M(r,u),f,h,d,v,y,m,w;if(c.length<=i)c.push(0);l.push(0);o=l[n-1];for(h=i-n;h>=0;h--){f=s-1;if(c[h+n]!==o)f=Math.floor((c[h+n]*s+c[h+n-1])/o);d=0;v=0;m=l.length;for(y=0;y<m;y++){d+=f*l[y];w=Math.floor(d/s);v+=c[h+y]-(d-w*s);d=w;if(v<0){c[h+y]=v+s;v=-1}else{c[h+y]=v;v=0}}while(0!==v){f-=1;d=0;for(y=0;y<m;y++){d+=c[h+y]-s+l[y];if(d<0){c[h+y]=d+s;d=0}else{c[h+y]=d;d=1}}v+=d}a[h]=f}c=k(c,u)[0];return[p(a),p(c)]}function O(t,r){var i=t.length,n=r.length,s=[],a=[],o=e,u,c,l,f,h;while(i){a.unshift(t[--i]);v(a);if(N(a,r)<0){s.push(0);continue}c=a.length;l=a[c-1]*o+a[c-2];f=r[n-1]*o+r[n-2];if(c>n)l=(l+1)*o;u=Math.ceil(l/f);do{h=M(r,u);if(N(h,a)<=0)break;u--}while(u);s.push(u);a=_(a,h)}s.reverse();return[p(s),p(a)]}function k(t,r){var i=t.length,n=g(i),s=e,a,o,u,c;u=0;for(a=i-1;a>=0;--a){c=u*s+t[a];o=y(c/r);u=c-o*r;n[a]=0|o}return[n,0|u]}function C(t,r){var i,n=st(r);if(o)return[new f(t.value/n.value),new f(t.value%n.value)];var s=t.value,a=n.value;var h;if(0===a)throw new Error("Cannot divide by zero");if(t.isSmall){if(n.isSmall)return[new l(y(s/a)),new l(s%a)];return[u[0],t]}if(n.isSmall){if(1===a)return[t,u[0]];if(-1==a)return[t.negate(),u[0]];var v=Math.abs(a);if(v<e){i=k(s,v);h=p(i[0]);var g=i[1];if(t.sign)g=-g;if("number"===typeof h){if(t.sign!==n.sign)h=-h;return[new l(h),new l(g)]}return[new c(h,t.sign!==n.sign),new l(g)]}a=d(v)}var m=N(s,a);if(-1===m)return[u[0],t];if(0===m)return[u[t.sign===n.sign?1:-1],u[0]];if(s.length+a.length<=200)i=B(s,a);else i=O(s,a);h=i[0];var w=t.sign!==n.sign,S=i[1],_=t.sign;if("number"===typeof h){if(w)h=-h;h=new l(h)}else h=new c(h,w);if("number"===typeof S){if(_)S=-S;S=new l(S)}else S=new c(S,_);return[h,S]}c.prototype.divmod=function(t){var e=C(this,t);return{quotient:e[0],remainder:e[1]}};f.prototype.divmod=l.prototype.divmod=c.prototype.divmod;c.prototype.divide=function(t){return C(this,t)[0]};f.prototype.over=f.prototype.divide=function(t){return new f(this.value/st(t).value)};l.prototype.over=l.prototype.divide=c.prototype.over=c.prototype.divide;c.prototype.mod=function(t){return C(this,t)[1]};f.prototype.mod=f.prototype.remainder=function(t){return new f(this.value%st(t).value)};l.prototype.remainder=l.prototype.mod=c.prototype.remainder=c.prototype.mod;c.prototype.pow=function(t){var e=st(t),r=this.value,i=e.value,n,s,a;if(0===i)return u[1];if(0===r)return u[0];if(1===r)return u[1];if(-1===r)return e.isEven()?u[1]:u[-1];if(e.sign)return u[0];if(!e.isSmall)throw new Error("The exponent "+e.toString()+" is too large.");if(this.isSmall)if(h(n=Math.pow(r,i)))return new l(y(n));s=this;a=u[1];while(true){if(i&1===1){a=a.times(s);--i}if(0===i)break;i/=2;s=s.square()}return a};l.prototype.pow=c.prototype.pow;f.prototype.pow=function(t){var e=st(t);var r=this.value,i=e.value;var n=BigInt(0),s=BigInt(1),a=BigInt(2);if(i===n)return u[1];if(r===n)return u[0];if(r===s)return u[1];if(r===BigInt(-1))return e.isEven()?u[1]:u[-1];if(e.isNegative())return new f(n);var o=this;var c=u[1];while(true){if((i&s)===s){c=c.times(o);--i}if(i===n)break;i/=a;o=o.square()}return c};c.prototype.modPow=function(t,e){t=st(t);e=st(e);if(e.isZero())throw new Error("Cannot take modPow with modulus 0");var r=u[1],i=this.mod(e);if(t.isNegative()){t=t.multiply(u[-1]);i=i.modInv(e)}while(t.isPositive()){if(i.isZero())return u[0];if(t.isOdd())r=r.multiply(i).mod(e);t=t.divide(2);i=i.square().mod(e)}return r};f.prototype.modPow=l.prototype.modPow=c.prototype.modPow;function N(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}c.prototype.compareAbs=function(t){var e=st(t),r=this.value,i=e.value;if(e.isSmall)return 1;return N(r,i)};l.prototype.compareAbs=function(t){var e=st(t),r=Math.abs(this.value),i=e.value;if(e.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return-1};f.prototype.compareAbs=function(t){var e=this.value;var r=st(t).value;e=e>=0?e:-e;r=r>=0?r:-r;return e===r?0:e>r?1:-1};c.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(this.sign!==e.sign)return e.sign?1:-1;if(e.isSmall)return this.sign?-1:1;return N(r,i)*(this.sign?-1:1)};c.prototype.compareTo=c.prototype.compare;l.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(e.isSmall)return r==i?0:r>i?1:-1;if(r<0!==e.sign)return r<0?-1:1;return r<0?1:-1};l.prototype.compareTo=l.prototype.compare;f.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value;var r=st(t).value;return e===r?0:e>r?1:-1};f.prototype.compareTo=f.prototype.compare;c.prototype.equals=function(t){return 0===this.compare(t)};f.prototype.eq=f.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals;c.prototype.notEquals=function(t){return 0!==this.compare(t)};f.prototype.neq=f.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals;c.prototype.greater=function(t){return this.compare(t)>0};f.prototype.gt=f.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater;c.prototype.lesser=function(t){return this.compare(t)<0};f.prototype.lt=f.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser;c.prototype.greaterOrEquals=function(t){return this.compare(t)>=0};f.prototype.geq=f.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals;c.prototype.lesserOrEquals=function(t){return this.compare(t)<=0};f.prototype.leq=f.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals;c.prototype.isEven=function(){return 0===(1&this.value[0])};l.prototype.isEven=function(){return 0===(1&this.value)};f.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};c.prototype.isOdd=function(){return 1===(1&this.value[0])};l.prototype.isOdd=function(){return 1===(1&this.value)};f.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};c.prototype.isPositive=function(){return!this.sign};l.prototype.isPositive=function(){return this.value>0};f.prototype.isPositive=l.prototype.isPositive;c.prototype.isNegative=function(){return this.sign};l.prototype.isNegative=function(){return this.value<0};f.prototype.isNegative=l.prototype.isNegative;c.prototype.isUnit=function(){return false};l.prototype.isUnit=function(){return 1===Math.abs(this.value)};f.prototype.isUnit=function(){return this.abs().value===BigInt(1)};c.prototype.isZero=function(){return false};l.prototype.isZero=function(){return 0===this.value};f.prototype.isZero=function(){return this.value===BigInt(0)};c.prototype.isDivisibleBy=function(t){var e=st(t);if(e.isZero())return false;if(e.isUnit())return true;if(0===e.compareAbs(2))return this.isEven();return this.mod(e).isZero()};f.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function P(t){var e=t.abs();if(e.isUnit())return false;if(e.equals(2)||e.equals(3)||e.equals(5))return true;if(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))return false;if(e.lesser(49))return true}function V(t,e){var r=t.prev(),i=r,s=0,a,o,u,c;while(i.isEven())i=i.divide(2),s++;t:for(u=0;u<e.length;u++){if(t.lesser(e[u]))continue;c=n(e[u]).modPow(i,t);if(c.isUnit()||c.equals(r))continue;for(a=s-1;0!=a;a--){c=c.square().mod(t);if(c.isUnit())return false;if(c.equals(r))continue t}return false}return true}c.prototype.isPrime=function(e){var r=P(this);if(r!==t)return r;var i=this.abs();var s=i.bitLength();if(s<=64)return V(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var a=Math.log(2)*s.toJSNumber();var o=Math.ceil(true===e?2*Math.pow(a,2):a);for(var u=[],c=0;c<o;c++)u.push(n(c+2));return V(i,u)};f.prototype.isPrime=l.prototype.isPrime=c.prototype.isPrime;c.prototype.isProbablePrime=function(e,r){var i=P(this);if(i!==t)return i;var s=this.abs();var a=e===t?5:e;for(var o=[],u=0;u<a;u++)o.push(n.randBetween(2,s.minus(2),r));return V(s,o)};f.prototype.isProbablePrime=l.prototype.isProbablePrime=c.prototype.isProbablePrime;c.prototype.modInv=function(t){var e=n.zero,r=n.one,i=st(t),s=this.abs(),a,o,u;while(!s.isZero()){a=i.divide(s);o=e;u=i;e=r;i=s;r=o.subtract(a.multiply(r));s=u.subtract(a.multiply(s))}if(!i.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");if(-1===e.compare(0))e=e.add(t);if(this.isNegative())return e.negate();return e};f.prototype.modInv=l.prototype.modInv=c.prototype.modInv;c.prototype.next=function(){var t=this.value;if(this.sign)return E(t,1,this.sign);return new c(S(t,1),this.sign)};l.prototype.next=function(){var t=this.value;if(t+1<i)return new l(t+1);return new c(s,false)};f.prototype.next=function(){return new f(this.value+BigInt(1))};c.prototype.prev=function(){var t=this.value;if(this.sign)return new c(S(t,1),true);return E(t,1,this.sign)};l.prototype.prev=function(){var t=this.value;if(t-1>-i)return new l(t-1);return new c(s,true)};f.prototype.prev=function(){return new f(this.value-BigInt(1))};var L=[1];while(2*L[L.length-1]<=e)L.push(2*L[L.length-1]);var H=L.length,K=L[H-1];function U(t){return Math.abs(t)<=e}c.prototype.shiftLeft=function(t){var e=st(t).toJSNumber();if(!U(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;while(e>=H){r=r.multiply(K);e-=H-1}return r.multiply(L[e])};f.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft;c.prototype.shiftRight=function(t){var e;var r=st(t).toJSNumber();if(!U(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);var i=this;while(r>=H){if(i.isZero()||i.isNegative()&&i.isUnit())return i;e=C(i,K);i=e[1].isNegative()?e[0].prev():e[0];r-=H-1}e=C(i,L[r]);return e[1].isNegative()?e[0].prev():e[0]};f.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function j(t,e,r){e=st(e);var i=t.isNegative(),s=e.isNegative();var a=i?t.not():t,o=s?e.not():e;var u=0,c=0;var l=null,f=null;var h=[];while(!a.isZero()||!o.isZero()){l=C(a,K);u=l[1].toJSNumber();if(i)u=K-1-u;f=C(o,K);c=f[1].toJSNumber();if(s)c=K-1-c;a=l[0];o=f[0];h.push(r(u,c))}var d=0!==r(i?1:0,s?1:0)?n(-1):n(0);for(var p=h.length-1;p>=0;p-=1)d=d.multiply(K).add(n(h[p]));return d}c.prototype.not=function(){return this.negate().prev()};f.prototype.not=l.prototype.not=c.prototype.not;c.prototype.and=function(t){return j(this,t,(function(t,e){return t&e}))};f.prototype.and=l.prototype.and=c.prototype.and;c.prototype.or=function(t){return j(this,t,(function(t,e){return t|e}))};f.prototype.or=l.prototype.or=c.prototype.or;c.prototype.xor=function(t){return j(this,t,(function(t,e){return t^e}))};f.prototype.xor=l.prototype.xor=c.prototype.xor;var q=1<<30,F=(e&-e)*(e&-e)|q;function z(t){var r=t.value,i="number"===typeof r?r|q:"bigint"===typeof r?r|BigInt(q):r[0]+r[1]*e|F;return i&-i}function G(t,e){if(e.compareTo(t)<=0){var r=G(t,e.square(e));var i=r.p;var s=r.e;var a=i.multiply(e);return a.compareTo(t)<=0?{p:a,e:2*s+1}:{p:i,e:2*s}}return{p:n(1),e:0}}c.prototype.bitLength=function(){var t=this;if(t.compareTo(n(0))<0)t=t.negate().subtract(n(1));if(0===t.compareTo(n(0)))return n(0);return n(G(t,n(2)).e).add(n(1))};f.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function Y(t,e){t=st(t);e=st(e);return t.greater(e)?t:e}function W(t,e){t=st(t);e=st(e);return t.lesser(e)?t:e}function J(t,e){t=st(t).abs();e=st(e).abs();if(t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;var r=u[1],i,n;while(t.isEven()&&e.isEven()){i=W(z(t),z(e));t=t.divide(i);e=e.divide(i);r=r.multiply(i)}while(t.isEven())t=t.divide(z(t));do{while(e.isEven())e=e.divide(z(e));if(t.greater(e)){n=e;e=t;t=n}e=e.subtract(t)}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}function Z(t,e){t=st(t).abs();e=st(e).abs();return t.divide(J(t,e)).multiply(e)}function $(t,r,i){t=st(t);r=st(r);var n=i||Math.random;var s=W(t,r),a=Y(t,r);var o=a.subtract(s).add(1);if(o.isSmall)return s.add(Math.floor(n()*o));var c=et(o,e).value;var l=[],f=true;for(var h=0;h<c.length;h++){var d=f?c[h]+(h+1<c.length?c[h+1]/e:0):e;var p=y(n()*d);l.push(p);if(p<c[h])f=false}return s.add(u.fromArray(l,e,false))}var X=function(t,e,r,i){r=r||a;t=String(t);if(!i){t=t.toLowerCase();r=r.toLowerCase()}var n=t.length;var s;var o=Math.abs(e);var u={};for(s=0;s<r.length;s++)u[r[s]]=s;for(s=0;s<n;s++){var c=t[s];if("-"===c)continue;if(c in u)if(u[c]>=o){if("1"===c&&1===o)continue;throw new Error(c+" is not a valid digit in base "+e+".")}}e=st(e);var l=[];var f="-"===t[0];for(s=f?1:0;s<t.length;s++){var c=t[s];if(c in u)l.push(st(u[c]));else if("<"===c){var h=s;do{s++}while(">"!==t[s]&&s<t.length);l.push(st(t.slice(h+1,s)))}else throw new Error(c+" is not a valid character")}return Q(l,e,f)};function Q(t,e,r){var i=u[0],n=u[1],s;for(s=t.length-1;s>=0;s--){i=i.add(t[s].times(n));n=n.times(e)}return r?i.negate():i}function tt(t,e){e=e||a;if(t<e.length)return e[t];return"<"+t+">"}function et(t,e){e=n(e);if(e.isZero()){if(t.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return{value:[0],isNegative:false};if(t.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return{value:[].concat.apply([],r),isNegative:false}}var i=false;if(t.isNegative()&&e.isPositive()){i=true;t=t.abs()}if(e.isUnit()){if(t.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var s=[];var a=t,o;while(a.isNegative()||a.compareAbs(e)>=0){o=a.divmod(e);a=o.quotient;var u=o.remainder;if(u.isNegative()){u=e.minus(u).abs();a=a.next()}s.push(u.toJSNumber())}s.push(a.toJSNumber());return{value:s.reverse(),isNegative:i}}function rt(t,e,r){var i=et(t,e);return(i.isNegative?"-":"")+i.value.map((function(t){return tt(t,r)})).join("")}c.prototype.toArray=function(t){return et(this,t)};l.prototype.toArray=function(t){return et(this,t)};f.prototype.toArray=function(t){return et(this,t)};c.prototype.toString=function(e,r){if(e===t)e=10;if(10!==e)return rt(this,e,r);var i=this.value,n=i.length,s=String(i[--n]),a="0000000",o;while(--n>=0){o=String(i[n]);s+=a.slice(o.length)+o}var u=this.sign?"-":"";return u+s};l.prototype.toString=function(e,r){if(e===t)e=10;if(10!=e)return rt(this,e,r);return String(this.value)};f.prototype.toString=l.prototype.toString;f.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()};c.prototype.valueOf=function(){return parseInt(this.toString(),10)};c.prototype.toJSNumber=c.prototype.valueOf;l.prototype.valueOf=function(){return this.value};l.prototype.toJSNumber=l.prototype.valueOf;f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function it(t){if(h(+t)){var e=+t;if(e===y(e))return o?new f(BigInt(e)):new l(e);throw new Error("Invalid integer: "+t)}var i="-"===t[0];if(i)t=t.slice(1);var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var s=n[1];if("+"===s[0])s=s.slice(1);s=+s;if(s!==y(s)||!h(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var a=n[0];var u=a.indexOf(".");if(u>=0){s-=a.length-u-1;a=a.slice(0,u)+a.slice(u+1)}if(s<0)throw new Error("Cannot include negative exponent part for integers");a+=new Array(s+1).join("0");t=a}var d=/^([0-9][0-9]*)$/.test(t);if(!d)throw new Error("Invalid integer: "+t);if(o)return new f(BigInt(i?"-"+t:t));var p=[],g=t.length,m=r,w=g-m;while(g>0){p.push(+t.slice(w,g));w-=m;if(w<0)w=0;g-=m}v(p);return new c(p,i)}function nt(t){if(o)return new f(BigInt(t));if(h(t)){if(t!==y(t))throw new Error(t+" is not an integer.");return new l(t)}return it(t.toString())}function st(t){if("number"===typeof t)return nt(t);if("string"===typeof t)return it(t);if("bigint"===typeof t)return new f(t);return t}for(var at=0;at<1e3;at++){u[at]=st(at);if(at>0)u[-at]=st(-at)}u.one=u[1];u.zero=u[0];u.minusOne=u[-1];u.max=Y;u.min=W;u.gcd=J;u.lcm=Z;u.isInstance=function(t){return t instanceof c||t instanceof l||t instanceof f};u.randBetween=$;u.fromArray=function(t,e,r){return Q(t.map(st),st(e||10),r)};return u}();if(true&&t.hasOwnProperty("exports"))t.exports=n;if(true)i=function(){return n}.call(e,r,e,t),void 0!==i&&(t.exports=i)},452:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.BlockCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=[];var c=[];var l=[];var f=[];var h=[];var d=[];var p=[];(function(){var t=[];for(var e=0;e<256;e++)if(e<128)t[e]=e<<1;else t[e]=e<<1^283;var r=0;var i=0;for(var e=0;e<256;e++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99;s[r]=n;a[n]=r;var v=t[r];var g=t[v];var y=t[g];var m=257*t[n]^16843008*n;o[r]=m<<24|m>>>8;u[r]=m<<16|m>>>16;c[r]=m<<8|m>>>24;l[r]=m;var m=16843009*y^65537*g^257*v^16843008*r;f[n]=m<<24|m>>>8;h[n]=m<<16|m>>>16;d[n]=m<<8|m>>>24;p[n]=m;if(!r)r=i=1;else{r=v^t[t[t[y^v]]];i^=t[t[i]]}}})();var v=[0,1,2,4,8,16,32,64,128,27,54];var g=n.AES=i.extend({_doReset:function(){var t;if(this._nRounds&&this._keyPriorReset===this._key)return;var e=this._keyPriorReset=this._key;var r=e.words;var i=e.sigBytes/4;var n=this._nRounds=i+6;var a=4*(n+1);var o=this._keySchedule=[];for(var u=0;u<a;u++)if(u<i)o[u]=r[u];else{t=o[u-1];if(!(u%i)){t=t<<8|t>>>24;t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];t^=v[u/i|0]<<24}else if(i>6&&u%i==4)t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];o[u]=o[u-i]^t}var c=this._invKeySchedule=[];for(var l=0;l<a;l++){var u=a-l;if(l%4)var t=o[u];else var t=o[u-4];if(l<4||u<=4)c[l]=t;else c[l]=f[s[t>>>24]]^h[s[t>>>16&255]]^d[s[t>>>8&255]]^p[s[255&t]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,c,l,s)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,p,a);var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r},_doCryptBlock:function(t,e,r,i,n,s,a,o){var u=this._nRounds;var c=t[e]^r[0];var l=t[e+1]^r[1];var f=t[e+2]^r[2];var h=t[e+3]^r[3];var d=4;for(var p=1;p<u;p++){var v=i[c>>>24]^n[l>>>16&255]^s[f>>>8&255]^a[255&h]^r[d++];var g=i[l>>>24]^n[f>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++];var y=i[f>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&l]^r[d++];var m=i[h>>>24]^n[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[d++];c=v;l=g;f=y;h=m}var v=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&h])^r[d++];var g=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++];var y=(o[f>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[d++];var m=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[d++];t[e]=v;t[e+1]=g;t[e+2]=y;t[e+3]=m},keySize:256/32});e.AES=i._createHelper(g)})();return t.AES}))},5109:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(888))})(this,(function(t){t.lib.Cipher||function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=i.BufferedBlockAlgorithm;var o=r.enc;var u=o.Utf8;var c=o.Base64;var l=r.algo;var f=l.EvpKDF;var h=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r);this._xformMode=t;this._key=e;this.reset()},reset:function(){a.reset.call(this);this._doReset()},process:function(t){this._append(t);return this._process()},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){if("string"==typeof t)return T;else return E}return function(e){return{encrypt:function(r,i,n){return t(i).encrypt(e,r,i,n)},decrypt:function(r,i,n){return t(i).decrypt(e,r,i,n)}}}}()});var d=i.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!!"flush");return t},blockSize:1});var p=r.mode={};var v=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t;this._iv=e}});var g=p.CBC=function(){var t=v.extend();t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n);i.encryptBlock(t,e);this._prevBlock=t.slice(e,e+n)}});t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);i.decryptBlock(t,e);r.call(this,t,e,n);this._prevBlock=s}});function r(t,r,i){var n;var s=this._iv;if(s){n=s;this._iv=e}else n=this._prevBlock;for(var a=0;a<i;a++)t[r+a]^=n[a]}return t}();var y=r.pad={};var m=y.Pkcs7={pad:function(t,e){var r=4*e;var i=r-t.sigBytes%r;var n=i<<24|i<<16|i<<8|i;var a=[];for(var o=0;o<i;o+=4)a.push(n);var u=s.create(a,i);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};var w=i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var t;h.reset.call(this);var e=this.cfg;var r=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)t=i.createEncryptor;else{t=i.createDecryptor;this._minBufferSize=1}if(this._mode&&this._mode.__creator==t)this._mode.init(this,r&&r.words);else{this._mode=t.call(i,this,r&&r.words);this._mode.__creator=t}},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);t=this._process(!!"flush")}else{t=this._process(!!"flush");e.unpad(t)}return t},blockSize:128/32});var S=i.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}});var _=r.format={};var b=_.OpenSSL={stringify:function(t){var e;var r=t.ciphertext;var i=t.salt;if(i)e=s.create([1398893684,1701076831]).concat(i).concat(r);else e=r;return e.toString(c)},parse:function(t){var e;var r=c.parse(t);var i=r.words;if(1398893684==i[0]&&1701076831==i[1]){e=s.create(i.slice(2,4));i.splice(0,4);r.sigBytes-=16}return S.create({ciphertext:r,salt:e})}};var E=i.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i);var s=n.finalize(e);var a=n.cfg;return S.create({ciphertext:s,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=t.createDecryptor(r,i).finalize(e.ciphertext);return n},_parse:function(t,e){if("string"==typeof t)return e.parse(t,this);else return t}});var D=r.kdf={};var M=D.OpenSSL={execute:function(t,e,r,i){if(!i)i=s.random(64/8);var n=f.create({keySize:e+r}).compute(t,i);var a=s.create(n.words.slice(e),4*r);n.sigBytes=4*e;return S.create({key:n,iv:a,salt:i})}};var T=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:M}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var s=E.encrypt.call(this,t,e,n.key,i);s.mixIn(n);return s},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=i.kdf.execute(r,t.keySize,t.ivSize,e.salt);i.iv=n.iv;var s=E.decrypt.call(this,t,e,n.key,i);return s}})}()}))},8249:function(t,e,r){(function(r,i){if(true)t.exports=e=i()})(this,(function(){var t=t||function(t,e){var i;if("undefined"!==typeof window&&window.crypto)i=window.crypto;if("undefined"!==typeof self&&self.crypto)i=self.crypto;if("undefined"!==typeof globalThis&&globalThis.crypto)i=globalThis.crypto;if(!i&&"undefined"!==typeof window&&window.msCrypto)i=window.msCrypto;if(!i&&"undefined"!==typeof r.g&&r.g.crypto)i=r.g.crypto;if(!i&&"function"==="function")try{i=r(2480)}catch(t){}var n=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")};var s=Object.create||function(){function t(){}return function(e){var r;t.prototype=e;r=new t;t.prototype=null;return r}}();var a={};var o=a.lib={};var u=o.Base=function(){return{extend:function(t){var e=s(this);if(t)e.mixIn(t);if(!e.hasOwnProperty("init")||this.init===e.init)e.init=function(){e.$super.init.apply(this,arguments)};e.init.prototype=e;e.$super=this;return e},create:function(){var t=this.extend();t.init.apply(t,arguments);return t},init:function(){},mixIn:function(t){for(var e in t)if(t.hasOwnProperty(e))this[e]=t[e];if(t.hasOwnProperty("toString"))this.toString=t.toString},clone:function(){return this.init.prototype.extend(this)}}}();var c=o.WordArray=u.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words;var r=t.words;var i=this.sigBytes;var n=t.sigBytes;this.clamp();if(i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;e[i+s>>>2]|=a<<24-(i+s)%4*8}else for(var o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];this.sigBytes+=n;return this},clamp:function(){var e=this.words;var r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8;e.length=t.ceil(r/4)},clone:function(){var t=u.clone.call(this);t.words=this.words.slice(0);return t},random:function(t){var e=[];for(var r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}});var l=a.enc={};var f=l.Hex={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16));i.push((15&s).toString(16))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}};var h=l.Latin1={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}};var d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}};var p=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init;this._nDataBytes=0},_append:function(t){if("string"==typeof t)t=d.parse(t);this._data.concat(t);this._nDataBytes+=t.sigBytes},_process:function(e){var r;var i=this._data;var n=i.words;var s=i.sigBytes;var a=this.blockSize;var o=4*a;var u=s/o;if(e)u=t.ceil(u);else u=t.max((0|u)-this._minBufferSize,0);var l=u*a;var f=t.min(4*l,s);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(n,h);r=n.splice(0,l);i.sigBytes-=f}return new c.init(r,f)},clone:function(){var t=u.clone.call(this);t._data=this._data.clone();return t},_minBufferSize:0});var v=o.Hasher=p.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t);this.reset()},reset:function(){p.reset.call(this);this._doReset()},update:function(t){this._append(t);this._process();return this},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},blockSize:512/32,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new g.HMAC.init(t,r).finalize(e)}}});var g=a.algo={};return a}(Math);return t}))},8269:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;var s=n.Base64={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=this._map;t.clamp();var n=[];for(var s=0;s<r;s+=3){var a=e[s>>>2]>>>24-s%4*8&255;var o=e[s+1>>>2]>>>24-(s+1)%4*8&255;var u=e[s+2>>>2]>>>24-(s+2)%4*8&255;var c=a<<16|o<<8|u;for(var l=0;l<4&&s+.75*l<r;l++)n.push(i.charAt(c>>>6*(3-l)&63))}var f=i.charAt(64);if(f)while(n.length%4)n.push(f);return n.join("")},parse:function(t){var e=t.length;var r=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n}var s=r.charAt(64);if(s){var o=t.indexOf(s);if(-1!==o)e=o}return a(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++}return i.create(n,s)}})();return t.enc.Base64}))},3786:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;var s=n.Base64url={stringify:function(t,e=true){var r=t.words;var i=t.sigBytes;var n=e?this._safe_map:this._map;t.clamp();var s=[];for(var a=0;a<i;a+=3){var o=r[a>>>2]>>>24-a%4*8&255;var u=r[a+1>>>2]>>>24-(a+1)%4*8&255;var c=r[a+2>>>2]>>>24-(a+2)%4*8&255;var l=o<<16|u<<8|c;for(var f=0;f<4&&a+.75*f<i;f++)s.push(n.charAt(l>>>6*(3-f)&63))}var h=n.charAt(64);if(h)while(s.length%4)s.push(h);return s.join("")},parse:function(t,e=true){var r=t.length;var i=e?this._safe_map:this._map;var n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s<i.length;s++)n[i.charCodeAt(s)]=s}var o=i.charAt(64);if(o){var u=t.indexOf(o);if(-1!==u)r=u}return a(t,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++}return i.create(n,s)}})();return t.enc.Base64url}))},298:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;var s=n.Utf16=n.Utf16BE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=e[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}};n.Utf16LE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=a(e[n>>>2]>>>16-n%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=a(t.charCodeAt(n)<<16-n%2*16);return i.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}})();return t.enc.Utf16}))},888:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2783),r(9824))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.MD5;var o=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r;var i=this.cfg;var s=i.hasher.create();var a=n.create();var o=a.words;var u=i.keySize;var c=i.iterations;while(o.length<u){if(r)s.update(r);r=s.update(t).finalize(e);s.reset();for(var l=1;l<c;l++){r=s.finalize(r);s.reset()}a.concat(r)}a.sigBytes=4*u;return a}});e.EvpKDF=function(t,e,r){return o.create(r).compute(t,e)}})();return t.EvpKDF}))},2209:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.CipherParams;var s=r.enc;var a=s.Hex;var o=r.format;var u=o.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return n.create({ciphertext:e})}}})();return t.format.Hex}))},9824:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=e.enc;var s=n.Utf8;var a=e.algo;var o=a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init;if("string"==typeof e)e=s.parse(e);var r=t.blockSize;var i=4*r;if(e.sigBytes>i)e=t.finalize(e);e.clamp();var n=this._oKey=e.clone();var a=this._iKey=e.clone();var o=n.words;var u=a.words;for(var c=0;c<r;c++){o[c]^=1549556828;u[c]^=909522486}n.sigBytes=a.sigBytes=i;this.reset()},reset:function(){var t=this._hasher;t.reset();t.update(this._iKey)},update:function(t){this._hasher.update(t);return this},finalize:function(t){var e=this._hasher;var r=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(r));return i}})})()}))},1354:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938),r(4433),r(298),r(8269),r(3786),r(8214),r(2783),r(2153),r(7792),r(34),r(7460),r(3327),r(706),r(9824),r(2112),r(888),r(5109),r(8568),r(4242),r(9968),r(7660),r(1148),r(3615),r(2807),r(1077),r(6475),r(6991),r(2209),r(452),r(4253),r(1857),r(4454),r(3974))})(this,(function(t){return t}))},4433:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){if("function"!=typeof ArrayBuffer)return;var e=t;var r=e.lib;var i=r.WordArray;var n=i.init;var s=i.init=function(t){if(t instanceof ArrayBuffer)t=new Uint8Array(t);if(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);if(t instanceof Uint8Array){var e=t.byteLength;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=t[i]<<24-i%4*8;n.call(this,r,e)}else n.apply(this,arguments)};s.prototype=i})();return t.lib.WordArray}))},8214:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0})();var u=a.MD5=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this._hash.words;var a=t[e+0];var u=t[e+1];var d=t[e+2];var p=t[e+3];var v=t[e+4];var g=t[e+5];var y=t[e+6];var m=t[e+7];var w=t[e+8];var S=t[e+9];var _=t[e+10];var b=t[e+11];var E=t[e+12];var D=t[e+13];var M=t[e+14];var T=t[e+15];var I=s[0];var A=s[1];var x=s[2];var R=s[3];I=c(I,A,x,R,a,7,o[0]);R=c(R,I,A,x,u,12,o[1]);x=c(x,R,I,A,d,17,o[2]);A=c(A,x,R,I,p,22,o[3]);I=c(I,A,x,R,v,7,o[4]);R=c(R,I,A,x,g,12,o[5]);x=c(x,R,I,A,y,17,o[6]);A=c(A,x,R,I,m,22,o[7]);I=c(I,A,x,R,w,7,o[8]);R=c(R,I,A,x,S,12,o[9]);x=c(x,R,I,A,_,17,o[10]);A=c(A,x,R,I,b,22,o[11]);I=c(I,A,x,R,E,7,o[12]);R=c(R,I,A,x,D,12,o[13]);x=c(x,R,I,A,M,17,o[14]);A=c(A,x,R,I,T,22,o[15]);I=l(I,A,x,R,u,5,o[16]);R=l(R,I,A,x,y,9,o[17]);x=l(x,R,I,A,b,14,o[18]);A=l(A,x,R,I,a,20,o[19]);I=l(I,A,x,R,g,5,o[20]);R=l(R,I,A,x,_,9,o[21]);x=l(x,R,I,A,T,14,o[22]);A=l(A,x,R,I,v,20,o[23]);I=l(I,A,x,R,S,5,o[24]);R=l(R,I,A,x,M,9,o[25]);x=l(x,R,I,A,p,14,o[26]);A=l(A,x,R,I,w,20,o[27]);I=l(I,A,x,R,D,5,o[28]);R=l(R,I,A,x,d,9,o[29]);x=l(x,R,I,A,m,14,o[30]);A=l(A,x,R,I,E,20,o[31]);I=f(I,A,x,R,g,4,o[32]);R=f(R,I,A,x,w,11,o[33]);x=f(x,R,I,A,b,16,o[34]);A=f(A,x,R,I,M,23,o[35]);I=f(I,A,x,R,u,4,o[36]);R=f(R,I,A,x,v,11,o[37]);x=f(x,R,I,A,m,16,o[38]);A=f(A,x,R,I,_,23,o[39]);I=f(I,A,x,R,D,4,o[40]);R=f(R,I,A,x,a,11,o[41]);x=f(x,R,I,A,p,16,o[42]);A=f(A,x,R,I,y,23,o[43]);I=f(I,A,x,R,S,4,o[44]);R=f(R,I,A,x,E,11,o[45]);x=f(x,R,I,A,T,16,o[46]);A=f(A,x,R,I,d,23,o[47]);I=h(I,A,x,R,a,6,o[48]);R=h(R,I,A,x,m,10,o[49]);x=h(x,R,I,A,M,15,o[50]);A=h(A,x,R,I,g,21,o[51]);I=h(I,A,x,R,E,6,o[52]);R=h(R,I,A,x,p,10,o[53]);x=h(x,R,I,A,_,15,o[54]);A=h(A,x,R,I,u,21,o[55]);I=h(I,A,x,R,w,6,o[56]);R=h(R,I,A,x,T,10,o[57]);x=h(x,R,I,A,y,15,o[58]);A=h(A,x,R,I,D,21,o[59]);I=h(I,A,x,R,v,6,o[60]);R=h(R,I,A,x,b,10,o[61]);x=h(x,R,I,A,d,15,o[62]);A=h(A,x,R,I,S,21,o[63]);s[0]=s[0]+I|0;s[1]=s[1]+A|0;s[2]=s[2]+x|0;s[3]=s[3]+R|0},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296);var a=i;r[(n+64>>>9<<4)+15]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);r[(n+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);t.sigBytes=4*(r.length+1);this._process();var o=this._hash;var u=o.words;for(var c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return o},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function c(t,e,r,i,n,s,a){var o=t+(e&r|~e&i)+n+a;return(o<<s|o>>>32-s)+e}function l(t,e,r,i,n,s,a){var o=t+(e&i|r&~i)+n+a;return(o<<s|o>>>32-s)+e}function f(t,e,r,i,n,s,a){var o=t+(e^r^i)+n+a;return(o<<s|o>>>32-s)+e}function h(t,e,r,i,n,s,a){var o=t+(r^(e|~i))+n+a;return(o<<s|o>>>32-s)+e}r.MD5=s._createHelper(u);r.HmacMD5=s._createHmacHelper(u)})(Math);return t.MD5}))},8568:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n,i);this._prevBlock=t.slice(e,e+n)}});e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);r.call(this,t,e,n,i);this._prevBlock=s}});function r(t,e,r,i){var n;var s=this._iv;if(s){n=s.slice(0);this._iv=void 0}else n=this._prevBlock;i.encryptBlock(n,0);for(var a=0;a<r;a++)t[e+a]^=n[a]}return e}();return t.mode.CFB}))},9968:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255;var r=t>>8&255;var i=255&t;if(255===e){e=0;if(255===r){r=0;if(255===i)i=0;else++i}else++r}else++e;t=0;t+=e<<16;t+=r<<8;t+=i}else t+=1<<24;return t}function i(t){if(0===(t[0]=r(t[0])))t[1]=r(t[1]);return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var n=r.blockSize;var s=this._iv;var a=this._counter;if(s){a=this._counter=s.slice(0);this._iv=void 0}i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u<n;u++)t[e+u]^=o[u]}});e.Decryptor=n;return e}();return t.mode.CTRGladman}))},4242:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._counter;if(n){s=this._counter=n.slice(0);this._iv=void 0}var a=s.slice(0);r.encryptBlock(a,0);s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)t[e+o]^=a[o]}});e.Decryptor=r;return e}();return t.mode.CTR}))},1148:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}});e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}});return e}();return t.mode.ECB}))},7660:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._keystream;if(n){s=this._keystream=n.slice(0);this._iv=void 0}r.encryptBlock(s,0);for(var a=0;a<i;a++)t[e+a]^=s[a]}});e.Decryptor=r;return e}();return t.mode.OFB}))},3615:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes;var i=4*e;var n=i-r%i;var s=r+n-1;t.clamp();t.words[s>>>2]|=n<<24-s%4*8;t.sigBytes+=n},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};return t.pad.Ansix923}))},2807:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.Iso10126={pad:function(e,r){var i=4*r;var n=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};return t.pad.Iso10126}))},1077:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1));t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e);e.sigBytes--}};return t.pad.Iso97971}))},6991:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.NoPadding={pad:function(){},unpad:function(){}};return t.pad.NoPadding}))},6475:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp();t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words;var r=t.sigBytes-1;for(var r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}};return t.pad.ZeroPadding}))},2112:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2783),r(9824))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.SHA1;var o=s.HMAC;var u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg;var i=o.create(r.hasher,t);var s=n.create();var a=n.create([1]);var u=s.words;var c=a.words;var l=r.keySize;var f=r.iterations;while(u.length<l){var h=i.update(e).finalize(a);i.reset();var d=h.words;var p=d.length;var v=h;for(var g=1;g<f;g++){v=i.finalize(v);i.reset();var y=v.words;for(var m=0;m<p;m++)d[m]^=y[m]}s.concat(h);c[0]++}s.sigBytes=4*l;return s}});e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)}})();return t.PBKDF2}))},3974:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;i[0]^=u;i[1]^=f;i[2]^=l;i[3]^=h;i[4]^=u;i[5]^=f;i[6]^=l;i[7]^=h;for(var n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i]}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=i._createHelper(u)})();return t.RabbitLegacy}))},4454:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.Rabbit=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;for(var r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;n[0]^=u;n[1]^=f;n[2]^=l;n[3]^=h;n[4]^=u;n[5]^=f;n[6]^=l;n[7]^=h;for(var r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i]}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=i._createHelper(u)})();return t.Rabbit}))},1857:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=n.RC4=i.extend({_doReset:function(){var t=this._key;var e=t.words;var r=t.sigBytes;var i=this._S=[];for(var n=0;n<256;n++)i[n]=n;for(var n=0,s=0;n<256;n++){var a=n%r;var o=e[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s];i[s]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:256/32,ivSize:0});function a(){var t=this._S;var e=this._i;var r=this._j;var i=0;for(var n=0;n<4;n++){e=(e+1)%256;r=(r+t[e])%256;var s=t[e];t[e]=t[r];t[r]=s;i|=t[(t[e]+t[r])%256]<<24-8*n}this._i=e;this._j=r;return i}e.RC4=i._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(o)})();return t.RC4}))},706:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var u=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var f=n.create([0,1518500249,1859775393,2400959708,2840853838]);var h=n.create([1352829926,1548603684,1836072691,2053994217,0]);var d=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this._hash.words;var a=f.words;var d=h.words;var S=o.words;var _=u.words;var b=c.words;var E=l.words;var D,M,T,I,A;var x,R,B,O,k;x=D=s[0];R=M=s[1];B=T=s[2];O=I=s[3];k=A=s[4];var C;for(var r=0;r<80;r+=1){C=D+t[e+S[r]]|0;if(r<16)C+=p(M,T,I)+a[0];else if(r<32)C+=v(M,T,I)+a[1];else if(r<48)C+=g(M,T,I)+a[2];else if(r<64)C+=y(M,T,I)+a[3];else C+=m(M,T,I)+a[4];C|=0;C=w(C,b[r]);C=C+A|0;D=A;A=I;I=w(T,10);T=M;M=C;C=x+t[e+_[r]]|0;if(r<16)C+=m(R,B,O)+d[0];else if(r<32)C+=y(R,B,O)+d[1];else if(r<48)C+=g(R,B,O)+d[2];else if(r<64)C+=v(R,B,O)+d[3];else C+=p(R,B,O)+d[4];C|=0;C=w(C,E[r]);C=C+k|0;x=k;k=O;O=w(B,10);B=R;R=C}C=s[1]+T+O|0;s[1]=s[2]+I+k|0;s[2]=s[3]+A+x|0;s[3]=s[4]+D+R|0;s[4]=s[0]+M+B|0;s[0]=C},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);t.sigBytes=4*(e.length+1);this._process();var n=this._hash;var s=n.words;for(var a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return n},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function p(t,e,r){return t^e^r}function v(t,e,r){return t&e|~t&r}function g(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function w(t,e){return t<<e|t>>>32-e}r.RIPEMD160=s._createHelper(d);r.HmacRIPEMD160=s._createHmacHelper(d)})(Math);return t.RIPEMD160}))},2783:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.Hasher;var s=e.algo;var a=[];var o=s.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var o=r[3];var u=r[4];for(var c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(i<<5|i>>>27)+u+a[c];if(c<20)f+=(n&s|~n&o)+1518500249;else if(c<40)f+=(n^s^o)+1859775393;else if(c<60)f+=(n&s|n&o|s&o)-1894007588;else f+=(n^s^o)-899497514;u=o;o=s;s=n<<30|n>>>2;n=i;i=f}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+o|0;r[4]=r[4]+u|0},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(r/4294967296);e[(i+64>>>9<<4)+15]=r;t.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var t=n.clone.call(this);t._hash=this._hash.clone();return t}});e.SHA1=n._createHelper(o);e.HmacSHA1=n._createHmacHelper(o)})();return t.SHA1}))},7792:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2153))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.algo;var s=n.SHA256;var a=n.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=s._doFinalize.call(this);t.sigBytes-=4;return t}});e.SHA224=s._createHelper(a);e.HmacSHA224=s._createHmacHelper(a)})();return t.SHA224}))},2153:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];var u=[];(function(){function t(t){var r=e.sqrt(t);for(var i=2;i<=r;i++)if(!(t%i))return false;return true}function r(t){return 4294967296*(t-(0|t))|0}var i=2;var n=0;while(n<64){if(t(i)){if(n<8)o[n]=r(e.pow(i,1/2));u[n]=r(e.pow(i,1/3));n++}i++}})();var c=[];var l=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var l=r[5];var f=r[6];var h=r[7];for(var d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else{var p=c[d-15];var v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3;var g=c[d-2];var y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=v+c[d-7]+y+c[d-16]}var m=o&l^~o&f;var w=i&n^i&s^n&s;var S=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var _=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25);var b=h+_+m+u[d]+c[d];var E=S+w;h=f;f=l;l=o;o=a+b|0;a=s;s=n;n=i;i=b+E|0}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+a|0;r[4]=r[4]+o|0;r[5]=r[5]+l|0;r[6]=r[6]+f|0;r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;r[(n+64>>>9<<4)+14]=e.floor(i/4294967296);r[(n+64>>>9<<4)+15]=i;t.sigBytes=4*r.length;this._process();return this._hash},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});r.SHA256=s._createHelper(l);r.HmacSHA256=s._createHmacHelper(l)})(Math);return t.SHA256}))},3327:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.x64;var o=a.Word;var u=r.algo;var c=[];var l=[];var f=[];(function(){var t=1,e=0;for(var r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=e%5;var n=(2*t+3*e)%5;t=i;e=n}for(var t=0;t<5;t++)for(var e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;var s=1;for(var a=0;a<24;a++){var u=0;var h=0;for(var d=0;d<7;d++){if(1&s){var p=(1<<d)-1;if(p<32)h^=1<<p;else u^=1<<p-32}if(128&s)s=s<<1^113;else s<<=1}f[a]=o.create(u,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=o.create()})();var d=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){var t=this._state=[];for(var e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){var r=this._state;var i=this.blockSize/2;for(var n=0;n<i;n++){var s=t[e+2*n];var a=t[e+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var o=r[n];o.high^=a;o.low^=s}for(var u=0;u<24;u++){for(var d=0;d<5;d++){var p=0,v=0;for(var g=0;g<5;g++){var o=r[d+5*g];p^=o.high;v^=o.low}var y=h[d];y.high=p;y.low=v}for(var d=0;d<5;d++){var m=h[(d+4)%5];var w=h[(d+1)%5];var S=w.high;var _=w.low;var p=m.high^(S<<1|_>>>31);var v=m.low^(_<<1|S>>>31);for(var g=0;g<5;g++){var o=r[d+5*g];o.high^=p;o.low^=v}}for(var b=1;b<25;b++){var p;var v;var o=r[b];var E=o.high;var D=o.low;var M=c[b];if(M<32){p=E<<M|D>>>32-M;v=D<<M|E>>>32-M}else{p=D<<M-32|E>>>64-M;v=E<<M-32|D>>>64-M}var T=h[l[b]];T.high=p;T.low=v}var I=h[0];var A=r[0];I.high=A.high;I.low=A.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var b=d+5*g;var o=r[b];var x=h[b];var R=h[(d+1)%5+5*g];var B=h[(d+2)%5+5*g];o.high=x.high^~R.high&B.high;o.low=x.low^~R.low&B.low}var o=r[0];var O=f[u];o.high^=O.high;o.low^=O.low}},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var s=8*t.sigBytes;var a=32*this.blockSize;r[s>>>5]|=1<<24-s%32;r[(e.ceil((s+1)/a)*a>>>5)-1]|=128;t.sigBytes=4*r.length;this._process();var o=this._state;var u=this.cfg.outputLength/8;var c=u/8;var l=[];for(var f=0;f<c;f++){var h=o[f];var d=h.high;var p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8);p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8);l.push(p);l.push(d)}return new n.init(l,u)},clone:function(){var t=s.clone.call(this);var e=t._state=this._state.slice(0);for(var r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=s._createHelper(d);r.HmacSHA3=s._createHmacHelper(d)})(Math);return t.SHA3}))},7460:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938),r(34))})(this,(function(t){(function(){var e=t;var r=e.x64;var i=r.Word;var n=r.WordArray;var s=e.algo;var a=s.SHA512;var o=s.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);t.sigBytes-=16;return t}});e.SHA384=a._createHelper(o);e.HmacSHA384=a._createHmacHelper(o)})();return t.SHA384}))},34:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Hasher;var n=e.x64;var s=n.Word;var a=n.WordArray;var o=e.algo;function u(){return s.create.apply(s,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)];var l=[];(function(){for(var t=0;t<80;t++)l[t]=u()})();var f=o.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var u=r[5];var f=r[6];var h=r[7];var d=i.high;var p=i.low;var v=n.high;var g=n.low;var y=s.high;var m=s.low;var w=a.high;var S=a.low;var _=o.high;var b=o.low;var E=u.high;var D=u.low;var M=f.high;var T=f.low;var I=h.high;var A=h.low;var x=d;var R=p;var B=v;var O=g;var k=y;var C=m;var N=w;var P=S;var V=_;var L=b;var H=E;var K=D;var U=M;var j=T;var q=I;var F=A;for(var z=0;z<80;z++){var G;var Y;var W=l[z];if(z<16){Y=W.high=0|t[e+2*z];G=W.low=0|t[e+2*z+1]}else{var J=l[z-15];var Z=J.high;var $=J.low;var X=(Z>>>1|$<<31)^(Z>>>8|$<<24)^Z>>>7;var Q=($>>>1|Z<<31)^($>>>8|Z<<24)^($>>>7|Z<<25);var tt=l[z-2];var et=tt.high;var rt=tt.low;var it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6;var nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26);var st=l[z-7];var at=st.high;var ot=st.low;var ut=l[z-16];var ct=ut.high;var lt=ut.low;G=Q+ot;Y=X+at+(G>>>0<Q>>>0?1:0);G+=nt;Y=Y+it+(G>>>0<nt>>>0?1:0);G+=lt;Y=Y+ct+(G>>>0<lt>>>0?1:0);W.high=Y;W.low=G}var ft=V&H^~V&U;var ht=L&K^~L&j;var dt=x&B^x&k^B&k;var pt=R&O^R&C^O&C;var vt=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7);var gt=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7);var yt=(V>>>14|L<<18)^(V>>>18|L<<14)^(V<<23|L>>>9);var mt=(L>>>14|V<<18)^(L>>>18|V<<14)^(L<<23|V>>>9);var wt=c[z];var St=wt.high;var _t=wt.low;var bt=F+mt;var Et=q+yt+(bt>>>0<F>>>0?1:0);var bt=bt+ht;var Et=Et+ft+(bt>>>0<ht>>>0?1:0);var bt=bt+_t;var Et=Et+St+(bt>>>0<_t>>>0?1:0);var bt=bt+G;var Et=Et+Y+(bt>>>0<G>>>0?1:0);var Dt=gt+pt;var Mt=vt+dt+(Dt>>>0<gt>>>0?1:0);q=U;F=j;U=H;j=K;H=V;K=L;L=P+bt|0;V=N+Et+(L>>>0<P>>>0?1:0)|0;N=k;P=C;k=B;C=O;B=x;O=R;R=bt+Dt|0;x=Et+Mt+(R>>>0<bt>>>0?1:0)|0}p=i.low=p+R;i.high=d+x+(p>>>0<R>>>0?1:0);g=n.low=g+O;n.high=v+B+(g>>>0<O>>>0?1:0);m=s.low=m+C;s.high=y+k+(m>>>0<C>>>0?1:0);S=a.low=S+P;a.high=w+N+(S>>>0<P>>>0?1:0);b=o.low=b+L;o.high=_+V+(b>>>0<L>>>0?1:0);D=u.low=D+K;u.high=E+H+(D>>>0<K>>>0?1:0);T=f.low=T+j;f.high=M+U+(T>>>0<j>>>0?1:0);A=h.low=A+F;h.high=I+q+(A>>>0<F>>>0?1:0)},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(r/4294967296);e[(i+128>>>10<<5)+31]=r;t.sigBytes=4*e.length;this._process();var n=this._hash.toX32();return n},clone:function(){var t=i.clone.call(this);t._hash=this._hash.clone();return t},blockSize:1024/32});e.SHA512=i._createHelper(f);e.HmacSHA512=i._createHmacHelper(f)})();return t.SHA512}))},4253:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.BlockCipher;var s=e.algo;var a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4];var o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32];var u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}];var l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var f=s.DES=n.extend({_doReset:function(){var t=this._key;var e=t.words;var r=[];for(var i=0;i<56;i++){var n=a[i]-1;r[i]=e[n>>>5]>>>31-n%32&1}var s=this._subKeys=[];for(var c=0;c<16;c++){var l=s[c]=[];var f=u[c];for(var i=0;i<24;i++){l[i/6|0]|=r[(o[i]-1+f)%28]<<31-i%6;l[4+(i/6|0)]|=r[28+(o[i+24]-1+f)%28]<<31-i%6}l[0]=l[0]<<1|l[0]>>>31;for(var i=1;i<7;i++)l[i]=l[i]>>>4*(i-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(var i=0;i<16;i++)h[i]=s[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e];this._rBlock=t[e+1];h.call(this,4,252645135);h.call(this,16,65535);d.call(this,2,858993459);d.call(this,8,16711935);h.call(this,1,1431655765);for(var i=0;i<16;i++){var n=r[i];var s=this._lBlock;var a=this._rBlock;var o=0;for(var u=0;u<8;u++)o|=c[u][((a^n[u])&l[u])>>>0];this._lBlock=a;this._rBlock=s^o}var f=this._lBlock;this._lBlock=this._rBlock;this._rBlock=f;h.call(this,1,1431655765);d.call(this,8,16711935);d.call(this,2,858993459);h.call(this,16,65535);h.call(this,4,252645135);t[e]=this._lBlock;t[e+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r;this._lBlock^=r<<t}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r;this._rBlock^=r<<t}e.DES=n._createHelper(f);var p=s.TripleDES=n.extend({_doReset:function(){var t=this._key;var e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2);var n=e.length<4?e.slice(0,2):e.slice(2,4);var s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(i.create(r));this._des2=f.createEncryptor(i.create(n));this._des3=f.createEncryptor(i.create(s))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e);this._des2.decryptBlock(t,e);this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e);this._des2.encryptBlock(t,e);this._des1.decryptBlock(t,e)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=n._createHelper(p)})();return t.TripleDES}))},4938:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=r.x64={};var o=a.Word=n.extend({init:function(t,e){this.high=t;this.low=e}});var u=a.WordArray=n.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=8*t.length},toX32:function(){var t=this.words;var e=t.length;var r=[];for(var i=0;i<e;i++){var n=t[i];r.push(n.high);r.push(n.low)}return s.create(r,this.sigBytes)},clone:function(){var t=n.clone.call(this);var e=t.words=this.words.slice(0);var r=e.length;for(var i=0;i<r;i++)e[i]=e[i].clone();return t}})})();return t}))},3118:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ErrorCode=void 0;var r;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["CLIENT_ID_NOT_FOUND"]=1]="CLIENT_ID_NOT_FOUND";t[t["OPERATION_TOO_OFTEN"]=2]="OPERATION_TOO_OFTEN";t[t["REPEAT_MESSAGE"]=3]="REPEAT_MESSAGE";t[t["TIME_OUT"]=4]="TIME_OUT"})(r=e.ErrorCode||(e.ErrorCode={}))},5987:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const n=i(r(127));const s=i(r(1901));const a=i(r(1754));const o=i(r(1237));var u;(function(t){function e(t){o.default.debugMode=t;o.default.info(`setDebugMode: ${t}`)}t.setDebugMode=e;function r(t){try{s.default.init(t)}catch(t){o.default.error(`init error`,t)}}t.init=r;function i(t){try{if(!t.url)throw new Error("invalid url");if(!t.key||!t.keyId)throw new Error("invalid key or keyId");a.default.socketUrl=t.url;a.default.publicKeyId=t.keyId;a.default.publicKey=t.key}catch(t){o.default.error(`setSocketServer error`,t)}}t.setSocketServer=i;function u(t){try{s.default.enableSocket(t)}catch(t){o.default.error(`enableSocket error`,t)}}t.enableSocket=u;function c(){return n.default.SDK_VERSION}t.getVersion=c})(u||(u={}));t.exports=u},2852:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4806));const s=i(r(3396));const a=i(r(6565));const o=i(r(5912));const u=i(r(3174));const c=i(r(4698));const l=i(r(87));const f=i(r(523));const h=i(r(7252));const d=i(r(4668));const p=i(r(3072));const v=i(r(1996));const g=i(r(9342));const y=i(r(155));const m=i(r(3751));var w;(function(t){let e;let r;let i;function w(){if("undefined"!=typeof uni){e=new d.default;r=new p.default;i=new v.default}else if("undefined"!=typeof tt){e=new l.default;r=new f.default;i=new h.default}else if("undefined"!=typeof my){e=new n.default;r=new s.default;i=new a.default}else if("undefined"!=typeof wx){e=new g.default;r=new y.default;i=new m.default}else if("undefined"!=typeof window){e=new o.default;r=new u.default;i=new c.default}}function S(){if(!e)w();return e}t.getDevice=S;function _(){if(!r)w();return r}t.getStorage=_;function b(){if(!i)w();return i}t.getWebSocket=b})(w||(w={}));e["default"]=w},7406:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){function e(){return n.default.getDevice().os()}t.os=e;function r(){return n.default.getDevice().osVersion()}t.osVersion=r;function i(){return n.default.getDevice().model()}t.model=i;function s(){return n.default.getDevice().brand()}t.brand=s;function a(){return n.default.getDevice().platform()}t.platform=a;function o(){return n.default.getDevice().platformVersion()}t.platformVersion=o;function u(){return n.default.getDevice().platformId()}t.platformId=u;function c(){return n.default.getDevice().language()}t.language=c;function l(){let t=n.default.getDevice().userAgent;if(t)return t();return""}t.userAgent=l;function f(t){n.default.getDevice().getNetworkType(t)}t.getNetworkType=f;function h(t){n.default.getDevice().onNetworkStatusChange(t)}t.onNetworkStatusChange=h})(s||(s={}));e["default"]=s},7071:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(358));const a=i(r(1236));const o=r(53);const u=i(r(1571));const c=i(r(1237));const l=i(r(2852));const f=i(r(9934));var h;(function(t){let e;let r=false;let i=false;t.allowReconnect=true;function h(){return r&&i}t.isAvailable=h;function d(e){if(!t.allowReconnect)return;setTimeout((function(){p()}),e)}t.reconnect=d;function p(){t.allowReconnect=true;if(!n.default.networkConnected){c.default.info(`connect failed, network is not available`);return}if(i||r)return;let s=n.default.socketUrl;try{let t=f.default.getSync(f.default.KEY_REDIRECT_SERVER,"");if(t){let e=o.RedirectServerData.parse(t);let r=e.addressList[0].split(",");let i=r[0];let n=Number(r[1]);let a=(new Date).getTime();if(a-e.time<1e3*n)s=i}}catch(t){}e=l.default.getWebSocket().connect({url:s,success:function(){i=true;v()},fail:function(){i=false;m("")}});e.onOpen(w);e.onClose(b);e.onError(_);e.onMessage(S)}t.connect=p;function v(){if(i&&r){s.default.create().send();u.default.getInstance().start()}}function g(t){e?.close({reason:t,success:function(t){},fail:function(t){m(t)}})}t.close=g;function y(t){if(r&&r)e?.send({data:t,success:function(t){},fail:function(t){}});else throw new Error(`socket not connect`)}t.send=y;function m(t){i=false;r=false;u.default.getInstance().cancel();if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online})}if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online})}d(1e3)}let w=function(t){r=true;v()};let S=function(t){try{t.data;u.default.getInstance().refresh();a.default.receiveMessage(t.data)}catch(t){}};let _=function(t){g(`socket error`)};let b=function(t){m(t)}})(h||(h={}));e["default"]=h},9934:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){t.KEY_APPID="getui_appid";t.KEY_CID="getui_cid";t.KEY_SESSION="getui_session";t.KEY_REGID="getui_regid";t.KEY_SOCKET_URL="getui_socket_url";t.KEY_DEVICE_ID="getui_deviceid";t.KEY_ADD_PHONE_INFO_TIME="getui_api_time";t.KEY_BIND_ALIAS_TIME="getui_ba_time";t.KEY_SET_TAG_TIME="getui_st_time";t.KEY_REDIRECT_SERVER="getui_redirect_server";function e(t){n.default.getStorage().set(t)}t.set=e;function r(t,e){n.default.getStorage().setSync(t,e)}t.setSync=r;function i(t){n.default.getStorage().get(t)}t.get=i;function s(t,e){let r=n.default.getStorage().getSync(t);return r?r:e}t.getSync=s})(s||(s={}));e["default"]=s},4806:t=>{"use strict";class e{constructor(){this.systemInfo=my.getSystemInfoSync()}os(){return this.systemInfo?.platform}osVersion(){return this.systemInfo?.system}model(){return this.systemInfo?.model}brand(){return this.systemInfo?.brand}platform(){return"MP-ALIPAY"}platformVersion(){return this.systemInfo.app+" "+this.systemInfo.version}platformId(){return my.getAppIdSync()}language(){return this.systemInfo?.language}getNetworkType(t){my.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType})},fail:()=>{t.fail?.call(t.fail,"")}})}onNetworkStatusChange(t){my.onNetworkStatusChange(t)}}t.exports=e},3396:t=>{"use strict";class e{set(t){my.setStorage({key:t.key,data:t.data,success:t.success,fail:t.fail})}setSync(t,e){my.setStorageSync({key:t,data:e})}get(t){my.getStorage({key:t.key,success:t.success,fail:t.fail,complete:t.complete})}getSync(t){return my.getStorageSync({key:t}).data}}t.exports=e},6565:t=>{"use strict";class e{connect(t){my.connectSocket({url:t.url,header:t.header,method:t.method,success:t.success,fail:t.fail,complete:t.complete});return{onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:t=>{my.onSocketMessage.call(my.onSocketMessage,(e=>{t.call(t,{data:e?e.data:""})}))},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}t.exports=e},5912:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{os(){let t=window.navigator.userAgent.toLowerCase();if(t.indexOf("android")>0||t.indexOf("adr")>0)return"android";if(!!t.match(/\(i[^;]+;( u;)? cpu.+mac os x/))return"ios";if(t.indexOf("windows")>0||t.indexOf("win32")>0||t.indexOf("win64")>0)return"windows";if(t.indexOf("macintosh")>0||t.indexOf("mac os")>0)return"mac os";if(t.indexOf("linux")>0)return"linux";if(t.indexOf("unix")>0)return"linux";return"other"}osVersion(){let t=window.navigator.userAgent.toLowerCase();let e=t.substring(t.indexOf(";")+1).trim();if(e.indexOf(";")>0)return e.substring(0,e.indexOf(";")).trim();return e.substring(0,e.indexOf(")")).trim()}model(){return""}brand(){return""}platform(){return"H5"}platformVersion(){return""}platformId(){return""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(t){t.success?.call(t.success,{networkType:window.navigator.connection.type})}onNetworkStatusChange(t){}}e["default"]=r},3174:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{set(t){window.localStorage.setItem(t.key,t.data);t.success?.call(t.success,"")}setSync(t,e){window.localStorage.setItem(t,e)}get(t){let e=window.localStorage.getItem(t.key);t.success?.call(t.success,e)}getSync(t){return window.localStorage.getItem(t)}}e["default"]=r},4698:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=new WebSocket(t.url);return{send:t=>{try{e.send(t.data);t.success?.call(t.success,{errMsg:""})}catch(e){t.fail?.call(t.fail,{errMsg:e+""})}},close:t=>{try{e.close(t.code,t.reason);t.success?.call(t.success,{errMsg:""})}catch(e){t.fail?.call(t.fail,{errMsg:e+""})}},onOpen:r=>{e.onopen=e=>{t.success?.call(t.success,"");r({header:""})}},onError:r=>{e.onerror=e=>{t.fail?.call(t.fail,"");r({errMsg:""})}},onMessage:t=>{e.onmessage=e=>{t({data:e.data})}},onClose:t=>{e.onclose=e=>{t(e)}}}}}e["default"]=r},87:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=tt.getSystemInfoSync()}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return"MP-TOUTIAO"}platformVersion(){return this.systemInfo.appName+" "+this.systemInfo.version}language(){return""}platformId(){return""}getNetworkType(t){tt.getNetworkType(t)}onNetworkStatusChange(t){tt.onNetworkStatusChange(t)}}e["default"]=r},523:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{set(t){tt.setStorage(t)}setSync(t,e){tt.setStorageSync(t,e)}get(t){tt.getStorage(t)}getSync(t){return tt.getStorageSync(t)}}e["default"]=r},7252:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=tt.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return{onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r},4668:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){try{this.systemInfo=uni.getSystemInfoSync();this.accountInfo=uni.getAccountInfoSync()}catch(t){}}os(){return this.systemInfo?this.systemInfo.platform:""}model(){return this.systemInfo?this.systemInfo.model:""}brand(){return this.systemInfo?.brand?this.systemInfo.brand:""}osVersion(){return this.systemInfo?this.systemInfo.system:""}platform(){let t=""; // #ifdef APP-PLUS t="APP-PLUS"; // #endif @@ -84,5 +84,4 @@ uni.onSocketClose(t); // #ifndef MP-ALIPAY e?.onClose(t); // #endif -}}}}e["default"]=r},9342:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=wx.getSystemInfoSync()}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return"MP-WEIXIN"}platformVersion(){return this.systemInfo.version}language(){return this.systemInfo.language}platformId(){if(wx.canIUse("getAccountInfoSync"))return wx.getAccountInfoSync().miniProgram.appId;return""}getNetworkType(t){wx.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType})},fail:t.fail})}onNetworkStatusChange(t){wx.onNetworkStatusChange(t)}}e["default"]=r},155:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{set(t){wx.setStorage(t)}setSync(t,e){wx.setStorageSync(t,e)}get(t){wx.getStorage(t)}getSync(t){return wx.getStorageSync(t)}}e["default"]=r},3751:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=wx.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return{onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r},127:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.SDK_VERSION="GTMP-2.0.0";t.DEFAULT_SOCKET_URL="wss://wshz.getui.net:5223/nws";t.SOCKET_PROTOCOL_VERSION="1.0";t.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";t.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b"})(r||(r={}));e["default"]=r},1901:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(1237));const a=r(3118);const o=i(r(1754));const u=i(r(3854));const c=i(r(9018));const l=i(r(5084));class f{static init(t){if(this.inited)return;try{this.checkAppid(t.appid);this.inited=true;s.default.info(`init: appid=${t.appid}`);o.default.init(t);n.default.connect()}catch(e){this.inited=false;t.onError?.call(t.onError,{error:e});throw e}}static enableSocket(t){this.checkInit();n.default.allowReconnect=t;if(t)n.default.reconnect(0);else n.default.close(`enableSocket ${t}`)}static setTag(t){this.checkInit();if(!o.default.cid){t.setTagResult?.call(t.setTagResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}c.default.create(t.tags,t.setTagResult).send()}static bindAlias(t){this.checkInit();if(!o.default.cid){t.bindAliasResult?.call(t.bindAliasResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}let e=(new Date).getTime();if(e-o.default.lastAliasTime<1*1e3){s.default.error(`bind alias fail: alias option can only be called once a second`);t.bindAliasResult?.call(t.bindAliasResult,{resultCode:a.ErrorCode.OPERATION_TOO_OFTEN,message:"alias option can only be called once a second"});return}u.default.create(t.alias,true,t.bindAliasResult).send();o.default.lastAliasTime=e}static unbindAlias(t){this.checkInit();if(!o.default.cid){t.unbindAliasResult?.call(t.unbindAliasResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}let e=(new Date).getTime();if(e-o.default.lastAliasTime<1*1e3){s.default.error(`unbindAlias alias fail: alias option can only be called once a second`);t.unbindAliasResult?.call(t.unbindAliasResult,{resultCode:a.ErrorCode.OPERATION_TOO_OFTEN,message:"alias option can only be called once a second"});return}l.default.create(t.alias,t.onlySelf,t.unbindAliasResult).send();o.default.lastAliasTime=e}static checkInit(){if(!this.inited)throw new Error(`not init, please invoke init method firstly`)}static checkAppid(t){if(null==t||void 0==t||""==t.trim())throw new Error(`invalid appid ${t}`)}}f.inited=false;e["default"]=f},1754:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(9934));const a=i(r(127));const o=i(r(7071));const u=i(r(1237));const c=i(r(5574));const l=i(r(7406));class f{static init(t){this.appid=c.default.to_getui(t.appid);u.default.info(`getui appid: ${this.appid}`);this.onError=t.onError;this.onClientId=t.onClientId;this.onlineState=t.onlineState;this.onPushMsg=t.onPushMsg;if(this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)){u.default.info("appid changed, clear session and cid");s.default.setSync(s.default.KEY_CID,"");s.default.setSync(s.default.KEY_SESSION,"")}s.default.setSync(s.default.KEY_APPID,this.appid);this.cid=s.default.getSync(s.default.KEY_CID,this.cid);if(this.cid)this.onClientId?.call(this.onClientId,{cid:f.cid});this.session=s.default.getSync(s.default.KEY_SESSION,this.session);this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId);this.regId=s.default.getSync(s.default.KEY_REGID,this.regId);if(!this.regId){this.regId=this.createRegId();s.default.set({key:s.default.KEY_REGID,data:this.regId})}this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let e=this;l.default.getNetworkType({success:t=>{e.networkType=t.networkType;e.networkConnected="none"!=e.networkType&&""!=e.networkType}});l.default.onNetworkStatusChange((t=>{e.networkConnected=t.isConnected;e.networkType=t.networkType;if(e.networkConnected)o.default.reconnect(0)}))}static createRegId(){return`M-V${n.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let e=16*Math.random()|0,r="x"===t?e:3&e|8;return r.toString(16)}))}}f.appid="";f.cid="";f.regId="";f.session="";f.deviceId="";f.packetId=1;f.online=false;f.socketUrl=a.default.DEFAULT_SOCKET_URL;f.publicKeyId=a.default.SERVER_PUBLIC_KEY_ID;f.publicKey=a.default.SERVER_PUBLIC_KEY;f.lastAliasTime=0;f.networkConnected=true;f.networkType="none";e["default"]=f},9214:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(9800));const o=r(3118);const u=i(r(1754));class c extends a.default{constructor(){super(...arguments);this.actionMsgData=new l}static initActionMsg(t,...e){super.initMsg(t);t.command=a.default.Command.CLIENT_MSG;t.data=t.actionMsgData=l.create();return t}static parseActionMsg(t,e){super.parseMsg(t,e);t.actionMsgData=l.parse(t.data);return t}send(){let t=setTimeout((()=>{if(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId)){c.waitingLoginMsgMap.delete(this.actionMsgData.msgId);c.waitingResponseMsgMap.delete(this.actionMsgData.msgId);this.callback?.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"})}}),1e4);if(!u.default.online){c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this);return}if(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED)c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this);super.send()}receive(){}static sendWaitingMessages(){let t=this.waitingLoginMsgMap.keys();let e;while(e=t.next(),!e.done){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value);t?.send()}}static getWaitingResponseMessage(t){return c.waitingResponseMsgMap.get(t)}static removeWaitingResponseMessage(t){let e=c.waitingResponseMsgMap.get(t);if(e)c.waitingResponseMsgMap.delete(t);return e}}c.ServerAction=(n=class{},n.PUSH_MESSAGE="pushmessage",n.REDIRECT_SERVER="redirect_server",n.ADD_PHONE_INFO_RESULT="addphoneinfo",n.SET_MODE_RESULT="set_mode_result",n.SET_TAG_RESULT="settag_result",n.BIND_ALIAS_RESULT="response_bind",n.UNBIND_ALIAS_RESULT="response_unbind",n.FEED_BACK_RESULT="pushmessage_feedback",n.RECEIVED="received",n);c.ClientAction=(s=class{},s.ADD_PHONE_INFO="addphoneinfo",s.SET_MODE="set_mode",s.FEED_BACK="pushmessage_feedback",s.SET_TAGS="set_tag",s.BIND_ALIAS="bind_alias",s.UNBIND_ALIAS="unbind_alias",s.RECEIVED="received",s);c.waitingLoginMsgMap=new Map;c.waitingResponseMsgMap=new Map;class l{constructor(){this.appId="";this.cid="";this.msgId="";this.msgAction="";this.msgData="";this.msgExtraData=""}static create(){let t=new l;t.appId=u.default.appid;t.cid=u.default.cid;t.msgId=(2147483647&(new Date).getTime()).toString();return t}static parse(t){let e=new l;let r=JSON.parse(t);e.appId=r.appId;e.cid=r.cid;e.msgId=r.msgId;e.msgAction=r.msgAction;e.msgData=r.msgData;e.msgExtraData=r.msgExtraData;return e}}e["default"]=c},708:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7406));const s=i(r(9934));const a=i(r(127));const o=r(3118);const u=i(r(9214));const c=i(r(1754));class l extends u.default{constructor(){super(...arguments);this.addPhoneInfoData=new f}static create(){let t=new l;super.initActionMsg(t);t.callback=e=>{if(e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){t.send()}),30*1e3);else s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})};t.actionMsgData.msgAction=u.default.ClientAction.ADD_PHONE_INFO;t.addPhoneInfoData=f.create();t.actionMsgData.msgData=JSON.stringify(t.addPhoneInfoData);return t}send(){let t=(new Date).getTime();let e=s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);if(t-e<24*60*60*1e3)return;super.send()}}class f{constructor(){this.model="";this.brand="";this.system_version="";this.version="";this.deviceid="";this.type=""}static create(){let t=new f;t.model=n.default.model();t.brand=n.default.brand();t.system_version=n.default.osVersion();t.version=a.default.SDK_VERSION;t.device_token="";t.imei="";t.oaid="";t.mac="";t.idfa="";t.type="MINIPROGRAM";t.deviceid=`${t.type}-${c.default.deviceId}`;t.extra={os:n.default.os(),platform:n.default.platform(),platformVersion:n.default.platformVersion(),platformId:n.default.platformId(),language:n.default.language(),userAgent:n.default.userAgent()};return t}}e["default"]=l},3854:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.bindAliasTagData=new o}static create(t,e,r){let i=new a;super.initActionMsg(i);i.bindAliasTagData=o.create(t,e);i.callback=r;i.actionMsgData.msgAction=s.default.ClientAction.BIND_ALIAS;i.actionMsgData.msgData=JSON.stringify(i.bindAliasTagData);return i}}class o{constructor(){this.alias="";this.cid="";this.appid="";this.sn="";this.is_self=""}static create(t,e){let r=new o;r.alias=t;r.cid=n.default.cid;r.appid=n.default.appid;r.sn=(new Date).getTime().toString();r.is_self=e?"1":"0";return r}}e["default"]=a},652:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(1754));const o=r(3118);const u=i(r(9214));class c extends u.default{constructor(){super(...arguments);this.feedbackData=new l}static create(t,e){let r=new c;super.initActionMsg(r);r.callback=t=>{if(t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){r.send()}),30*1e3)};r.feedbackData=l.create(t,e);r.actionMsgData.msgAction=u.default.ClientAction.FEED_BACK;r.actionMsgData.msgData=JSON.stringify(r.feedbackData);return r}send(){super.send()}}c.ActionId=(n=class{},n.RECEIVE="0",n.MP_RECEIVE="210000",n.WEB_RECEIVE="220000",n.BEGIN="1",n);c.RESULT=(s=class{},s.OK="ok",s);class l{constructor(){this.messageid="";this.appkey="";this.appid="";this.taskid="";this.actionid="";this.result="";this.timestamp=""}static create(t,e){let r=new l;r.messageid=t.pushMessageData.messageid;r.appkey=t.pushMessageData.appKey;r.appid=a.default.appid;r.taskid=t.pushMessageData.taskId;r.actionid=e;r.result=c.RESULT.OK;r.timestamp=(new Date).getTime().toString();return r}}e["default"]=c},9018:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.setTagData=new o}static create(t,e){let r=new a;super.initActionMsg(r);r.setTagData=o.create(t);r.callback=e;r.actionMsgData.msgAction=s.default.ClientAction.SET_TAGS;r.actionMsgData.msgData=JSON.stringify(r.setTagData);return r}}class o{constructor(){this.appid="";this.tags="";this.sn=""}static create(t){let e=new o;e.appid=n.default.appid;e.tags=u(t);e.sn=(new Date).getTime().toString();return e}}function u(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}e["default"]=a},5084:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.unbindAliasData=new o}static create(t,e,r){let i=new a;super.initActionMsg(i);i.unbindAliasData=o.create(t,e);i.callback=r;i.actionMsgData.msgAction=s.default.ClientAction.UNBIND_ALIAS;i.actionMsgData.msgData=JSON.stringify(i.unbindAliasData);return i}}class o{constructor(){this.alias="";this.cid="";this.appid="";this.sn="";this.is_self=""}static create(t,e){let r=new o;r.alias=t;r.cid=n.default.cid;r.appid=n.default.appid;r.sn=(new Date).getTime().toString();r.is_self=e?"1":"0";return r}}e["default"]=a},6561:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));class s extends n.default{static create(){let t=new s;super.initMsg(t);t.command=n.default.Command.HEART_BEAT;return t}}e["default"]=s},358:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(1754));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.keyNegotiateData=new u}static create(){let t=new o;super.initMsg(t);t.command=a.default.Command.KEY_NEGOTIATE;n.default.resetKey();t.data=t.keyNegotiateData=u.create();return t}send(){super.send()}}class u{constructor(){this.appId="";this.rsaPublicKeyId="";this.algorithm="";this.secretKey="";this.iv=""}static create(){let t=new u;t.appId=s.default.appid;t.rsaPublicKeyId=s.default.publicKeyId;t.algorithm="AES";t.secretKey=n.default.getEncryptedSecretKey();t.iv=n.default.getEncryptedIV();return t}}e["default"]=o},5301:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(323));const a=i(r(2544));const o=i(r(1237));const u=i(r(1754));class c extends n.default{constructor(){super(...arguments);this.keyNegotiateResultData=new l}static parse(t){let e=new c;super.parseMsg(e,t);e.keyNegotiateResultData=l.parse(e.data);return e}receive(){if(0!=this.keyNegotiateResultData.errorCode){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}let t=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(t[0].trim().toLowerCase())||!s.default.modeMap.has(t[1].trim().toLowerCase())||!s.default.paddingMap.has(t[2].trim().toLowerCase())){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}s.default.setEncryptParams(t[0].trim().toLowerCase(),t[1].trim().toLowerCase(),t[2].trim().toLowerCase());a.default.create().send()}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.encryptType=""}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.encryptType=r.encryptType;return e}}e["default"]=c},2544:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(323));const a=i(r(9800));const o=i(r(3527));class u extends a.default{constructor(){super(...arguments);this.loginData=new c}static create(){let t=new u;super.initMsg(t);t.command=a.default.Command.LOGIN;t.data=t.loginData=c.create();return t}send(){if(!this.loginData.session||n.default.cid!=s.default.md5Hex(this.loginData.session)){o.default.create().send();return}super.send()}}class c{constructor(){this.appId="";this.session=""}static create(){let t=new c;t.appId=n.default.appid;t.session=n.default.session;return t}}e["default"]=u},8734:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9800));const a=i(r(1754));const o=i(r(9214));const u=i(r(708));const c=i(r(2544));class l extends s.default{constructor(){super(...arguments);this.loginResultData=new f}static parse(t){let e=new l;super.parseMsg(e,t);e.loginResultData=f.parse(e.data);return e}receive(){if(0!=this.loginResultData.errorCode){this.data;a.default.session=a.default.cid="";n.default.setSync(n.default.KEY_CID,"");n.default.setSync(n.default.KEY_SESSION,"");c.default.create().send();return}if(!a.default.online){a.default.online=true;a.default.onlineState?.call(a.default.onlineState,{online:a.default.online})}o.default.sendWaitingMessages();u.default.create().send()}}class f{constructor(){this.errorCode=-1;this.errorMsg="";this.session=""}static parse(t){let e=new f;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.session=r.session;return e}}e["default"]=l},9800:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(350));const a=i(r(7071));const o=i(r(127));const u=i(r(1754));class c{constructor(){this.version="";this.command=0;this.packetId=0;this.timeStamp=0;this.data="";this.signature=""}static initMsg(t,...e){t.version=o.default.SOCKET_PROTOCOL_VERSION;t.command=0;t.timeStamp=(new Date).getTime();return t}static parseMsg(t,e){let r=JSON.parse(e);t.version=r.version;t.command=r.command;t.packetId=r.packetId;t.timeStamp=r.timeStamp;t.data=r.data;t.signature=r.signature;return t}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){if(!a.default.isAvailable())return;this.packetId=u.default.packetId++;this.data=JSON.stringify(this.data);this.stringify();if(this.command!=c.Command.HEART_BEAT){s.default.sign(this);if(this.data&&this.command!=c.Command.KEY_NEGOTIATE)s.default.encrypt(this)}a.default.send(this.stringify())}}c.Command=(n=class{},n.HEART_BEAT=0,n.KEY_NEGOTIATE=1,n.KEY_NEGOTIATE_RESULT=16,n.REGISTER=2,n.REGISTER_RESULT=32,n.LOGIN=3,n.LOGIN_RESULT=48,n.LOGOUT=4,n.LOGOUT_RESULT=64,n.CLIENT_MSG=5,n.SERVER_MSG=80,n.SERVER_CLOSE=96,n.REDIRECT_SERVER=112,n);e["default"]=c},350:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));var s;(function(t){function e(t){t.data=n.default.encrypt(t.data)}t.encrypt=e;function r(t){t.data=n.default.decrypt(t.data)}t.decrypt=r;function i(t){t.signature=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`)}t.sign=i;function s(t){let e=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);if(t.signature!=e)throw new Error(`msg signature vierfy failed`)}t.verify=s})(s||(s={}));e["default"]=s},1236:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(5301));const s=i(r(8734));const a=i(r(9800));const o=i(r(7078));const u=i(r(538));const c=i(r(7821));const l=i(r(217));const f=i(r(7156));const h=i(r(53));const d=i(r(9214));const p=i(r(7303));const v=i(r(6063));const g=i(r(7923));const y=i(r(350));const m=i(r(9214));const _=i(r(6254));const w=i(r(5035));class S{static receiveMessage(t){let e=a.default.parseMsg(new a.default,t);if(e.command==a.default.Command.HEART_BEAT)return;if(e.command!=a.default.Command.KEY_NEGOTIATE_RESULT&&e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.decrypt(e);if(e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.verify(e);switch(e.command){case a.default.Command.KEY_NEGOTIATE_RESULT:n.default.parse(e.stringify()).receive();break;case a.default.Command.REGISTER_RESULT:o.default.parse(e.stringify()).receive();break;case a.default.Command.LOGIN_RESULT:s.default.parse(e.stringify()).receive();break;case a.default.Command.SERVER_MSG:this.receiveActionMsg(e.stringify());break;case a.default.Command.SERVER_CLOSE:w.default.parse(e.stringify()).receive();break;case a.default.Command.REDIRECT_SERVER:h.default.parse(e.stringify()).receive();break;default:break}}static receiveActionMsg(t){let e=m.default.parseActionMsg(new m.default,t);if(e.actionMsgData.msgAction!=d.default.ServerAction.RECEIVED&&e.actionMsgData.msgAction!=d.default.ServerAction.REDIRECT_SERVER){let t=JSON.parse(e.actionMsgData.msgData);_.default.create(t.id).send()}switch(e.actionMsgData.msgAction){case d.default.ServerAction.PUSH_MESSAGE:f.default.parse(t).receive();break;case d.default.ServerAction.ADD_PHONE_INFO_RESULT:u.default.parse(t).receive();break;case d.default.ServerAction.SET_MODE_RESULT:p.default.parse(t).receive();break;case d.default.ServerAction.SET_TAG_RESULT:v.default.parse(t).receive();break;case d.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(t).receive();break;case d.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(t).receive();break;case d.default.ServerAction.FEED_BACK_RESULT:l.default.parse(t).receive();break;case d.default.ServerAction.RECEIVED:_.default.parse(t).receive();break}}}e["default"]=S},6254:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.receivedData=new u}static create(t){let e=new o;super.initActionMsg(e);e.callback=t=>{if(t.resultCode!=n.ErrorCode.SUCCESS&&t.resultCode!=n.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){e.send()}),3*1e3)};e.actionMsgData.msgAction=a.default.ClientAction.RECEIVED;e.receivedData=u.create(t);e.actionMsgData.msgData=JSON.stringify(e.receivedData);return e}static parse(t){let e=new o;super.parseActionMsg(e,t);e.receivedData=u.parse(e.data);return e}receive(){let t=a.default.getWaitingResponseMessage(this.actionMsgData.msgId);if(t&&t.actionMsgData.msgAction==a.default.ClientAction.ADD_PHONE_INFO||t&&t.actionMsgData.msgAction==a.default.ClientAction.FEED_BACK){a.default.removeWaitingResponseMessage(t.actionMsgData.msgId);t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"})}}send(){super.send()}}class u{constructor(){this.msgId="";this.cid=""}static create(t){let e=new u;e.cid=s.default.cid;e.msgId=t;return e}static parse(t){let e=new u;let r=JSON.parse(t);e.cid=r.cid;e.msgId=r.msgId;return e}}e["default"]=o},53:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.RedirectServerData=void 0;const n=i(r(7071));const s=i(r(9934));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.redirectServerData=new u}static parse(t){let e=new o;super.parseMsg(e,t);e.redirectServerData=u.parse(e.data);return e}receive(){this.redirectServerData;s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData));n.default.close("redirect server");n.default.reconnect(this.redirectServerData.delay)}}class u{constructor(){this.addressList=[];this.delay=0;this.loc="";this.conf="";this.time=0}static parse(t){let e=new u;let r=JSON.parse(t);e.addressList=r.addressList;e.delay=r.delay;e.loc=r.loc;e.conf=r.conf;e.time=r.time?r.time:(new Date).getTime();return e}}e.RedirectServerData=u;e["default"]=o},3527:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.registerData=new o}static create(){let t=new a;super.initMsg(t);t.command=s.default.Command.REGISTER;t.data=t.registerData=o.create();return t}send(){super.send()}}class o{constructor(){this.appId="";this.regId=""}static create(){let t=new o;t.appId=n.default.appid;t.regId=n.default.regId;return t}}e["default"]=a},7078:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(9934));const a=i(r(1754));const o=i(r(2544));const u=i(r(1237));class c extends n.default{constructor(){super(...arguments);this.registerResultData=new l}static parse(t){let e=new c;super.parseMsg(e,t);e.registerResultData=l.parse(e.data);return e}receive(){if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session){u.default.error(`register fail: ${this.data}`);a.default.onError?.call(a.default.onError,{error:`register fail: ${this.data}`});return}if(a.default.cid!=this.registerResultData.cid)s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);a.default.cid=this.registerResultData.cid;a.default.onClientId?.call(a.default.onClientId,{cid:a.default.cid});s.default.set({key:s.default.KEY_CID,data:a.default.cid});a.default.session=this.registerResultData.session;s.default.set({key:s.default.KEY_SESSION,data:a.default.session});a.default.deviceId=this.registerResultData.deviceId;s.default.set({key:s.default.KEY_DEVICE_ID,data:a.default.deviceId});o.default.create().send()}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.cid="";this.session="";this.deviceId="";this.regId=""}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.cid=r.cid;e.session=r.session;e.deviceId=r.deviceId;e.regId=r.regId;return e}}e["default"]=c},5035:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.serverCloseData=new o}static parse(t){let e=new a;super.parseMsg(e,t);e.serverCloseData=o.parse(e.data);return e}receive(){this.data;if(20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code)n.default.allowReconnect=false;n.default.close()}}class o{constructor(){this.code=-1;this.msg=""}static parse(t){let e=new o;let r=JSON.parse(t);e.code=r.code;e.msg=r.msg;return e}}e["default"]=a},538:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.addPhoneInfoResultData=new o}static parse(t){let e=new a;super.parseActionMsg(e,t);e.addPhoneInfoResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.addPhoneInfoResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg});n.default.set({key:n.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})}}class o{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new o;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=a},7821:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.bindAliasResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.bindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`bind alias result`,this.bindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},217:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.feedbackResultData=new o}static parse(t){let e=new a;super.parseActionMsg(e,t);e.feedbackResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.feedbackResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"})}}class o{constructor(){this.actionId="";this.taskId="";this.result=""}static parse(t){let e=new o;let r=JSON.parse(t);e.actionId=r.actionId;e.taskId=r.taskId;e.result=r.result;return e}}e["default"]=a},7156:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(1754));const a=i(r(9214));const o=i(r(652));class u extends a.default{constructor(){super(...arguments);this.pushMessageData=new c}static parse(t){let e=new u;super.parseActionMsg(e,t);e.pushMessageData=c.parse(e.actionMsgData.msgData);return e}receive(){this.pushMessageData;if(this.pushMessageData.appId!=s.default.appid||!this.pushMessageData.messageid||!this.pushMessageData.taskId)this.stringify();o.default.create(this,o.default.ActionId.RECEIVE).send();o.default.create(this,o.default.ActionId.MP_RECEIVE).send();if(this.actionMsgData.msgExtraData&&s.default.onPushMsg)s.default.onPushMsg?.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData})}}class c{constructor(){this.id="";this.appKey="";this.appId="";this.messageid="";this.taskId="";this.actionChain=[];this.cdnType=""}static parse(t){let e=new c;let r=JSON.parse(t);e.id=r.id;e.appKey=r.appKey;e.appId=r.appId;e.messageid=r.messageid;e.taskId=r.taskId;e.actionChain=r.actionChain;e.cdnType=r.cdnType;return e}}class l{constructor(){this.type="";this.actionid="";this.do=""}}l.Type=(n=class{},n.GO_TO="goto",n.TRANSMIT="transmit",n);e["default"]=u},7303:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9214));class s extends n.default{constructor(){super(...arguments);this.setModeResultData=new a}static parse(t){let e=new s;super.parseActionMsg(e,t);e.setModeResultData=a.parse(e.actionMsgData.msgData);return e}receive(){this.setModeResultData;let t=n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg})}}class a{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new a;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=s},6063:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.setTagResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.setTagResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`set tag result`,this.setTagResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg});n.default.set({key:n.default.KEY_SET_TAG_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=0;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},7923:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.unbindAliasResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.unbindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`unbind alias result`,this.unbindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},9285:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(t){this.delay=10;this.delay=t}start(){this.cancel();let t=this;this.timer=setInterval((function(){t.run()}),this.delay)}cancel(){if(this.timer)clearInterval(this.timer)}}e["default"]=r},1571:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6561));const a=i(r(9285));class o extends a.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send()}refresh(){this.delay=60*1e3;this.start()}}o.INTERVAL=60*1e3;o.InstanceHolder=(n=class{},n.instance=new o(o.INTERVAL),n);e["default"]=o},5574:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4736));const s=i(r(323));var a;(function(t){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let r=(0,n.default)("9223372036854775808");function i(t){let e=a(t);let r=o(e);let i=r[1];let n=r[0];return u(i)+u(n)}t.to_getui=i;function a(t){let e=s.default.md5Hex(t);let r=c(e);r[6]&=15;r[6]|=48;r[8]&=63;r[8]|=128;return r}function o(t){let e=(0,n.default)(0);let r=(0,n.default)(0);for(let r=0;r<8;r++)e=e.multiply(256).plus((0,n.default)(255&t[r]));for(let e=8;e<16;e++)r=r.multiply(256).plus((0,n.default)(255&t[e]));return[e,r]}function u(t){if(t>=r)t=r.multiply(2).minus(t);let i="";for(;t>(0,n.default)(0);t=t.divide(62))i+=e.charAt(Number(t.divmod(62).remainder));return i}function c(t){let e=t.length;if(e%2!=0)return[];let r=new Array;for(let i=0;i<e;i+=2)r.push(parseInt(t.substring(i,i+2),16));return r}})(a||(a={}));e["default"]=a},323:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2620));const s=i(r(1354));const a=i(r(1754));var o;(function(t){let e;let r;let i;let o;let u=new n.default;let c=s.default.mode.CBC;let l=s.default.pad.Pkcs7;let f=s.default.AES;t.algorithmMap=new Map([["aes",s.default.AES]]);t.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]);t.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]);function h(){e=s.default.MD5((new Date).getTime().toString());r=s.default.MD5(e);u.setPublicKey(a.default.publicKey);e.toString(s.default.enc.Hex);r.toString(s.default.enc.Hex);i=u.encrypt(e.toString(s.default.enc.Hex));o=u.encrypt(r.toString(s.default.enc.Hex))}t.resetKey=h;function d(e,r,i){f=t.algorithmMap.get(e);c=t.modeMap.get(r);l=t.paddingMap.get(i)}t.setEncryptParams=d;function p(t){return f.encrypt(t,e,{iv:r,mode:c,padding:l}).toString()}t.encrypt=p;function v(t){return f.decrypt(t,e,{iv:r,mode:c,padding:l}).toString(s.default.enc.Utf8)}t.decrypt=v;function g(t){return s.default.SHA256(t).toString(s.default.enc.Base64)}t.sha256=g;function y(t){return s.default.MD5(t).toString(s.default.enc.Hex)}t.md5Hex=y;function m(){return i?i:""}t.getEncryptedSecretKey=m;function _(){return o?o:""}t.getEncryptedIV=_})(o||(o={}));e["default"]=o},1237:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{static info(...t){if(this.debugMode)console.info(`[GtPush]`,t)}static error(...t){console.error(`[GtPush]`,t)}}r.debugMode=false;e["default"]=r},2620:(t,e,r)=>{"use strict";r.r(e);r.d(e,{JSEncrypt:()=>_t,default:()=>wt});var i="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return i.charAt(t)}function s(t,e){return t&e}function a(t,e){return t|e}function o(t,e){return t^e}function u(t,e){return t&~e}function c(t){if(0==t)return-1;var e=0;if(0==(65535&t)){t>>=16;e+=16}if(0==(255&t)){t>>=8;e+=8}if(0==(15&t)){t>>=4;e+=4}if(0==(3&t)){t>>=2;e+=2}if(0==(1&t))++e;return e}function l(t){var e=0;while(0!=t){t&=t-1;++e}return e}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="=";function d(t){var e;var r;var i="";for(e=0;e+3<=t.length;e+=3){r=parseInt(t.substring(e,e+3),16);i+=f.charAt(r>>6)+f.charAt(63&r)}if(e+1==t.length){r=parseInt(t.substring(e,e+1),16);i+=f.charAt(r<<2)}else if(e+2==t.length){r=parseInt(t.substring(e,e+2),16);i+=f.charAt(r>>2)+f.charAt((3&r)<<4)}while((3&i.length)>0)i+=h;return i}function p(t){var e="";var r;var i=0;var s=0;for(r=0;r<t.length;++r){if(t.charAt(r)==h)break;var a=f.indexOf(t.charAt(r));if(a<0)continue;if(0==i){e+=n(a>>2);s=3&a;i=1}else if(1==i){e+=n(s<<2|a>>4);s=15&a;i=2}else if(2==i){e+=n(s);e+=n(a>>2);s=3&a;i=3}else{e+=n(s<<2|a>>4);e+=n(15&a);i=0}}if(1==i)e+=n(s<<2);return e}function v(t){var e=p(t);var r;var i=[];for(r=0;2*r<e.length;++r)i[r]=parseInt(e.substring(2*r,2*r+2),16);return i}var g;var y={decode:function(t){var e;if(void 0===g){var r="0123456789ABCDEF";var i=" \f\n\r\t \u2028\u2029";g={};for(e=0;e<16;++e)g[r.charAt(e)]=e;r=r.toLowerCase();for(e=10;e<16;++e)g[r.charAt(e)]=e;for(e=0;e<i.length;++e)g[i.charAt(e)]=-1}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=g[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=2){n[n.length]=s;s=0;a=0}else s<<=4}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var m;var _={decode:function(t){var e;if(void 0===m){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i="= \f\n\r\t \u2028\u2029";m=Object.create(null);for(e=0;e<64;++e)m[r.charAt(e)]=e;m["-"]=62;m["_"]=63;for(e=0;e<i.length;++e)m[i.charAt(e)]=-1}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=m[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=4){n[n.length]=s>>16;n[n.length]=s>>8&255;n[n.length]=255&s;s=0;a=0}else s<<=6}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16;n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=_.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return _.decode(t)}};var w=1e13;var S=function(){function t(t){this.buf=[+t||0]}t.prototype.mulAdd=function(t,e){var r=this.buf;var i=r.length;var n;var s;for(n=0;n<i;++n){s=r[n]*t+e;if(s<w)e=0;else{e=0|s/w;s-=e*w}r[n]=s}if(e>0)r[n]=e};t.prototype.sub=function(t){var e=this.buf;var r=e.length;var i;var n;for(i=0;i<r;++i){n=e[i]-t;if(n<0){n+=w;t=1}else t=0;e[i]=n}while(0===e[e.length-1])e.pop()};t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");var e=this.buf;var r=e[e.length-1].toString();for(var i=e.length-2;i>=0;--i)r+=(w+e[i]).toString().substring(1);return r};t.prototype.valueOf=function(){var t=this.buf;var e=0;for(var r=t.length-1;r>=0;--r)e=e*w+t[r];return e};t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this};return t}();var b="…";var E=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;var D=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function T(t,e){if(t.length>e)t=t.substring(0,e)+b;return t}var M=function(){function t(e,r){this.hexDigits="0123456789ABCDEF";if(e instanceof t){this.enc=e.enc;this.pos=e.pos}else{this.enc=e;this.pos=r}}t.prototype.get=function(t){if(void 0===t)t=this.pos++;if(t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]};t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)};t.prototype.hexDump=function(t,e,r){var i="";for(var n=t;n<e;++n){i+=this.hexByte(this.get(n));if(true!==r)switch(15&n){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}}return i};t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return false}return true};t.prototype.parseStringISO=function(t,e){var r="";for(var i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r};t.prototype.parseStringUTF=function(t,e){var r="";for(var i=t;i<e;){var n=this.get(i++);if(n<128)r+=String.fromCharCode(n);else if(n>191&&n<224)r+=String.fromCharCode((31&n)<<6|63&this.get(i++));else r+=String.fromCharCode((15&n)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return r};t.prototype.parseStringBMP=function(t,e){var r="";var i;var n;for(var s=t;s<e;){i=this.get(s++);n=this.get(s++);r+=String.fromCharCode(i<<8|n)}return r};t.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e);var n=(r?E:D).exec(i);if(!n)return"Unrecognized time: "+i;if(r){n[1]=+n[1];n[1]+=+n[1]<70?2e3:1900}i=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4];if(n[5]){i+=":"+n[5];if(n[6]){i+=":"+n[6];if(n[7])i+="."+n[7]}}if(n[8]){i+=" UTC";if("Z"!=n[8]){i+=n[8];if(n[9])i+=":"+n[9]}}return i};t.prototype.parseInteger=function(t,e){var r=this.get(t);var i=r>127;var n=i?255:0;var s;var a="";while(r==n&&++t<e)r=this.get(t);s=e-t;if(0===s)return i?-1:0;if(s>4){a=r;s<<=3;while(0==(128&(+a^n))){a=+a<<1;--s}a="("+s+" bit)\n"}if(i)r-=256;var o=new S(r);for(var u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return a+o.toString()};t.prototype.parseBitString=function(t,e,r){var i=this.get(t);var n=(e-t-1<<3)-i;var s="("+n+" bit)\n";var a="";for(var o=t+1;o<e;++o){var u=this.get(o);var c=o==e-1?i:0;for(var l=7;l>=c;--l)a+=u>>l&1?"1":"0";if(a.length>r)return s+T(a,r)}return s+a};t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return T(this.parseStringISO(t,e),r);var i=e-t;var n="("+i+" byte)\n";r/=2;if(i>r)e=t+r;for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));if(i>r)n+=b;return n};t.prototype.parseOID=function(t,e,r){var i="";var n=new S;var s=0;for(var a=t;a<e;++a){var o=this.get(a);n.mulAdd(128,127&o);s+=7;if(!(128&o)){if(""===i){n=n.simplify();if(n instanceof S){n.sub(80);i="2."+n.toString()}else{var u=n<80?n<40?0:1:2;i=u+"."+(n-40*u)}}else i+="."+n.toString();if(i.length>r)return T(i,r);n=new S;s=0}}if(s>0)i+=".incomplete";return i};return t}();var I=function(){function t(t,e,r,i,n){if(!(i instanceof A))throw new Error("Invalid tag value.");this.stream=t;this.header=e;this.length=r;this.tag=i;this.sub=n}t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}};t.prototype.content=function(t){if(void 0===this.tag)return null;if(void 0===t)t=1/0;var e=this.posContent();var r=Math.abs(this.length);if(!this.tag.isUniversal()){if(null!==this.sub)return"("+this.sub.length+" elem)";return this.stream.parseOctetString(e,e+r,t)}switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:if(null!==this.sub)return"("+this.sub.length+" elem)";else return"(no elem)";case 12:return T(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return T(this.stream.parseStringISO(e,e+r),t);case 30:return T(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null};t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"};t.prototype.toPrettyString=function(t){if(void 0===t)t="";var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0)e+="+";e+=this.length;if(this.tag.tagConstructed)e+=" (constructed)";else if(this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub)e+=" (encapsulates)";e+="\n";if(null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t)}return e};t.prototype.posStart=function(){return this.stream.pos};t.prototype.posContent=function(){return this.stream.pos+this.header};t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)};t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),true)};t.decodeLength=function(t){var e=t.get();var r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i<r;++i)e=256*e+t.get();return e};t.prototype.getHexStringValue=function(){var t=this.toHexString();var e=2*this.header;var r=2*this.length;return t.substr(e,r)};t.decode=function(e){var r;if(!(e instanceof M))r=new M(e,0);else r=e;var i=new M(r);var n=new A(r);var s=t.decodeLength(r);var a=r.pos;var o=a-i.pos;var u=null;var c=function(){var e=[];if(null!==s){var i=a+s;while(r.pos<i)e[e.length]=t.decode(r);if(r.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var n=t.decode(r);if(n.tag.isEOC())break;e[e.length]=n}s=a-r.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(n.tagConstructed)u=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber)if(0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s)}return new t(i,o,s,n,u)};return t}();var A=function(){function t(t){var e=t.get();this.tagClass=e>>6;this.tagConstructed=0!==(32&e);this.tagNumber=31&e;if(31==this.tagNumber){var r=new S;do{e=t.get();r.mulAdd(128,127&e)}while(128&e);this.tagNumber=r.simplify()}}t.prototype.isUniversal=function(){return 0===this.tagClass};t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber};return t}();var x;var R=0xdeadbeefcafe;var B=15715070==(16777215&R);var O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var k=(1<<26)/O[O.length-1];var C=function(){function t(t,e,r){if(null!=t)if("number"==typeof t)this.fromNumber(t,e,r);else if(null==e&&"string"!=typeof t)this.fromString(t,256);else this.fromString(t,e)}t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(4==t)e=2;else return this.toRadix(t);var r=(1<<e)-1;var i;var s=false;var a="";var o=this.t;var u=this.DB-o*this.DB%e;if(o-- >0){if(u<this.DB&&(i=this[o]>>u)>0){s=true;a=n(i)}while(o>=0){if(u<e){i=(this[o]&(1<<u)-1)<<e-u;i|=this[--o]>>(u+=this.DB-e)}else{i=this[o]>>(u-=e)&r;if(u<=0){u+=this.DB;--o}}if(i>0)s=true;if(s)a+=n(i)}}return s?a:"0"};t.prototype.negate=function(){var e=H();t.ZERO.subTo(this,e);return e};t.prototype.abs=function(){return this.s<0?this.negate():this};t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;e=r-t.t;if(0!=e)return this.s<0?-e:e;while(--r>=0)if(0!=(e=this[r]-t[r]))return e;return 0};t.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};t.prototype.mod=function(e){var r=H();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(t.ZERO)>0)e.subTo(r,r);return r};t.prototype.modPowInt=function(t,e){var r;if(t<256||e.isEven())r=new P(e);else r=new V(e);return this.exp(t,r)};t.prototype.clone=function(){var t=H();this.copyTo(t);return t};t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;else if(0==this.t)return-1}else if(1==this.t)return this[0];else if(0==this.t)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]};t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24};t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};t.prototype.signum=function(){if(this.s<0)return-1;else if(this.t<=0||1==this.t&&this[0]<=0)return 0;else return 1};t.prototype.toByteArray=function(){var t=this.t;var e=[];e[0]=this.s;var r=this.DB-t*this.DB%8;var i;var n=0;if(t-- >0){if(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r)e[n++]=i|this.s<<this.DB-r;while(t>=0){if(r<8){i=(this[t]&(1<<r)-1)<<8-r;i|=this[--t]>>(r+=this.DB-8)}else{i=this[t]>>(r-=8)&255;if(r<=0){r+=this.DB;--t}}if(0!=(128&i))i|=-256;if(0==n&&(128&this.s)!=(128&i))++n;if(n>0||i!=this.s)e[n++]=i}}return e};t.prototype.equals=function(t){return 0==this.compareTo(t)};t.prototype.min=function(t){return this.compareTo(t)<0?this:t};t.prototype.max=function(t){return this.compareTo(t)>0?this:t};t.prototype.and=function(t){var e=H();this.bitwiseTo(t,s,e);return e};t.prototype.or=function(t){var e=H();this.bitwiseTo(t,a,e);return e};t.prototype.xor=function(t){var e=H();this.bitwiseTo(t,o,e);return e};t.prototype.andNot=function(t){var e=H();this.bitwiseTo(t,u,e);return e};t.prototype.not=function(){var t=H();for(var e=0;e<this.t;++e)t[e]=this.DM&~this[e];t.t=this.t;t.s=~this.s;return t};t.prototype.shiftLeft=function(t){var e=H();if(t<0)this.rShiftTo(-t,e);else this.lShiftTo(t,e);return e};t.prototype.shiftRight=function(t){var e=H();if(t<0)this.lShiftTo(-t,e);else this.rShiftTo(t,e);return e};t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+c(this[t]);if(this.s<0)return this.t*this.DB;return-1};t.prototype.bitCount=function(){var t=0;var e=this.s&this.DM;for(var r=0;r<this.t;++r)t+=l(this[r]^e);return t};t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);if(e>=this.t)return 0!=this.s;return 0!=(this[e]&1<<t%this.DB)};t.prototype.setBit=function(t){return this.changeBit(t,a)};t.prototype.clearBit=function(t){return this.changeBit(t,u)};t.prototype.flipBit=function(t){return this.changeBit(t,o)};t.prototype.add=function(t){var e=H();this.addTo(t,e);return e};t.prototype.subtract=function(t){var e=H();this.subTo(t,e);return e};t.prototype.multiply=function(t){var e=H();this.multiplyTo(t,e);return e};t.prototype.divide=function(t){var e=H();this.divRemTo(t,e,null);return e};t.prototype.remainder=function(t){var e=H();this.divRemTo(t,null,e);return e};t.prototype.divideAndRemainder=function(t){var e=H();var r=H();this.divRemTo(t,e,r);return[e,r]};t.prototype.modPow=function(t,e){var r=t.bitLength();var i;var n=Y(1);var s;if(r<=0)return n;else if(r<18)i=1;else if(r<48)i=3;else if(r<144)i=4;else if(r<768)i=5;else i=6;if(r<8)s=new P(e);else if(e.isEven())s=new L(e);else s=new V(e);var a=[];var o=3;var u=i-1;var c=(1<<i)-1;a[1]=s.convert(this);if(i>1){var l=H();s.sqrTo(a[1],l);while(o<=c){a[o]=H();s.mulTo(l,a[o-2],a[o]);o+=2}}var f=t.t-1;var h;var d=true;var p=H();var v;r=W(t[f])-1;while(f>=0){if(r>=u)h=t[f]>>r-u&c;else{h=(t[f]&(1<<r+1)-1)<<u-r;if(f>0)h|=t[f-1]>>this.DB+r-u}o=i;while(0==(1&h)){h>>=1;--o}if((r-=o)<0){r+=this.DB;--f}if(d){a[h].copyTo(n);d=false}else{while(o>1){s.sqrTo(n,p);s.sqrTo(p,n);o-=2}if(o>0)s.sqrTo(n,p);else{v=n;n=p;p=v}s.mulTo(p,a[h],n)}while(f>=0&&0==(t[f]&1<<r)){s.sqrTo(n,p);v=n;n=p;p=v;if(--r<0){r=this.DB-1;--f}}}return s.revert(n)};t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||0==e.signum())return t.ZERO;var i=e.clone();var n=this.clone();var s=Y(1);var a=Y(0);var o=Y(0);var u=Y(1);while(0!=i.signum()){while(i.isEven()){i.rShiftTo(1,i);if(r){if(!s.isEven()||!a.isEven()){s.addTo(this,s);a.subTo(e,a)}s.rShiftTo(1,s)}else if(!a.isEven())a.subTo(e,a);a.rShiftTo(1,a)}while(n.isEven()){n.rShiftTo(1,n);if(r){if(!o.isEven()||!u.isEven()){o.addTo(this,o);u.subTo(e,u)}o.rShiftTo(1,o)}else if(!u.isEven())u.subTo(e,u);u.rShiftTo(1,u)}if(i.compareTo(n)>=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(u,a)}else{n.subTo(i,n);if(r)o.subTo(s,o);u.subTo(a,u)}}if(0!=n.compareTo(t.ONE))return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;if(u.signum()<0)return u.add(e);else return u};t.prototype.pow=function(t){return this.exp(t,new N)};t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone();var r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r;r=i}var n=e.getLowestSetBit();var s=r.getLowestSetBit();if(s<0)return e;if(n<s)s=n;if(s>0){e.rShiftTo(s,e);r.rShiftTo(s,r)}while(e.signum()>0){if((n=e.getLowestSetBit())>0)e.rShiftTo(n,e);if((n=r.getLowestSetBit())>0)r.rShiftTo(n,r);if(e.compareTo(r)>=0){e.subTo(r,e);e.rShiftTo(1,e)}else{r.subTo(e,r);r.rShiftTo(1,r)}}if(s>0)r.lShiftTo(s,r);return r};t.prototype.isProbablePrime=function(t){var e;var r=this.abs();if(1==r.t&&r[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(r[0]==O[e])return true;return false}if(r.isEven())return false;e=1;while(e<O.length){var i=O[e];var n=e+1;while(n<O.length&&i<k)i*=O[n++];i=r.modInt(i);while(e<n)if(i%O[e++]==0)return false}return r.millerRabin(t)};t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t;t.s=this.s};t.prototype.fromInt=function(t){this.t=1;this.s=t<0?-1:0;if(t>0)this[0]=t;else if(t<-1)this[0]=t+this.DV;else this.t=0};t.prototype.fromString=function(e,r){var i;if(16==r)i=4;else if(8==r)i=3;else if(256==r)i=8;else if(2==r)i=1;else if(32==r)i=5;else if(4==r)i=2;else{this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length;var s=false;var a=0;while(--n>=0){var o=8==i?255&+e[n]:G(e,n);if(o<0){if("-"==e.charAt(n))s=true;continue}s=false;if(0==a)this[this.t++]=o;else if(a+i>this.DB){this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a;this[this.t++]=o>>this.DB-a}else this[this.t-1]|=o<<a;a+=i;if(a>=this.DB)a-=this.DB}if(8==i&&0!=(128&+e[0])){this.s=-1;if(a>0)this[this.t-1]|=(1<<this.DB-a)-1<<a}this.clamp();if(s)t.ZERO.subTo(this,this)};t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t};t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t;e.s=this.s};t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0);e.s=this.s};t.prototype.lShiftTo=function(t,e){var r=t%this.DB;var i=this.DB-r;var n=(1<<i)-1;var s=Math.floor(t/this.DB);var a=this.s<<r&this.DM;for(var o=this.t-1;o>=0;--o){e[o+s+1]=this[o]>>i|a;a=(this[o]&n)<<r}for(var o=s-1;o>=0;--o)e[o]=0;e[s]=a;e.t=this.t+s+1;e.s=this.s;e.clamp()};t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB;var n=this.DB-i;var s=(1<<i)-1;e[0]=this[r]>>i;for(var a=r+1;a<this.t;++a){e[a-r-1]|=(this[a]&s)<<n;e[a-r]=this[a]>>i}if(i>0)e[this.t-r-1]|=(this.s&s)<<n;e.t=this.t-r;e.clamp()};t.prototype.subTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]-t[r];e[r++]=i&this.DM;i>>=this.DB}if(t.t<this.t){i-=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB}i+=this.s}else{i+=this.s;while(r<t.t){i-=t[r];e[r++]=i&this.DM;i>>=this.DB}i-=t.s}e.s=i<0?-1:0;if(i<-1)e[r++]=this.DV+i;else if(i>0)e[r++]=i;e.t=r;e.clamp()};t.prototype.multiplyTo=function(e,r){var i=this.abs();var n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r[s]=0;for(s=0;s<n.t;++s)r[s+i.t]=i.am(0,n[s],r,s,0,i.t);r.s=0;r.clamp();if(this.s!=e.s)t.ZERO.subTo(r,r)};t.prototype.squareTo=function(t){var e=this.abs();var r=t.t=2*e.t;while(--r>=0)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);if((t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV){t[r+e.t]-=e.DV;t[r+e.t+1]=1}}if(t.t>0)t[t.t-1]+=e.am(r,e[r],t,2*r,0,1);t.s=0;t.clamp()};t.prototype.divRemTo=function(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t<n.t){if(null!=r)r.fromInt(0);if(null!=i)this.copyTo(i);return}if(null==i)i=H();var a=H();var o=this.s;var u=e.s;var c=this.DB-W(n[n.t-1]);if(c>0){n.lShiftTo(c,a);s.lShiftTo(c,i)}else{n.copyTo(a);s.copyTo(i)}var l=a.t;var f=a[l-1];if(0==f)return;var h=f*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0);var d=this.FV/h;var p=(1<<this.F1)/h;var v=1<<this.F2;var g=i.t;var y=g-l;var m=null==r?H():r;a.dlShiftTo(y,m);if(i.compareTo(m)>=0){i[i.t++]=1;i.subTo(m,i)}t.ONE.dlShiftTo(l,m);m.subTo(a,a);while(a.t<l)a[a.t++]=0;while(--y>=0){var _=i[--g]==f?this.DM:Math.floor(i[g]*d+(i[g-1]+v)*p);if((i[g]+=a.am(0,_,i,y,0,l))<_){a.dlShiftTo(y,m);i.subTo(m,i);while(i[g]<--_)i.subTo(m,i)}}if(null!=r){i.drShiftTo(l,r);if(o!=u)t.ZERO.subTo(r,r)}i.t=l;i.clamp();if(c>0)i.rShiftTo(c,i);if(o<0)t.ZERO.subTo(i,i)};t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;e=e*(2-(15&t)*e)&15;e=e*(2-(255&t)*e)&255;e=e*(2-((65535&t)*e&65535))&65535;e=e*(2-t*e%this.DV)%this.DV;return e>0?this.DV-e:-e};t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)};t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=H();var n=H();var s=r.convert(this);var a=W(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<<a)>0)r.mulTo(n,s,i);else{var o=i;i=n;n=o}}return r.revert(i)};t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))};t.prototype.toRadix=function(t){if(null==t)t=10;if(0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t);var r=Math.pow(t,e);var i=Y(r);var n=H();var s=H();var a="";this.divRemTo(i,n,s);while(n.signum()>0){a=(r+s.intValue()).toString(t).substr(1)+a;n.divRemTo(i,n,s)}return s.intValue().toString(t)+a};t.prototype.fromRadix=function(e,r){this.fromInt(0);if(null==r)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i);var s=false;var a=0;var o=0;for(var u=0;u<e.length;++u){var c=G(e,u);if(c<0){if("-"==e.charAt(u)&&0==this.signum())s=true;continue}o=r*o+c;if(++a>=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0)}if(s)t.ZERO.subTo(this,this)};t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(t.ONE.shiftLeft(e-1),this)}}else{var n=[];var s=7&e;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<<s)-1;else n[0]=0;this.fromString(n,256)}};t.prototype.bitwiseTo=function(t,e,r){var i;var n;var s=Math.min(t.t,this.t);for(i=0;i<s;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){n=t.s&this.DM;for(i=s;i<this.t;++i)r[i]=e(this[i],n);r.t=this.t}else{n=this.s&this.DM;for(i=s;i<t.t;++i)r[i]=e(n,t[i]);r.t=t.t}r.s=e(this.s,t.s);r.clamp()};t.prototype.changeBit=function(e,r){var i=t.ONE.shiftLeft(e);this.bitwiseTo(i,r,i);return i};t.prototype.addTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]+t[r];e[r++]=i&this.DM;i>>=this.DB}if(t.t<this.t){i+=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB}i+=this.s}else{i+=this.s;while(r<t.t){i+=t[r];e[r++]=i&this.DM;i>>=this.DB}i+=t.s}e.s=i<0?-1:0;if(i>0)e[r++]=i;else if(i<-1)e[r++]=this.DV+i;e.t=r;e.clamp()};t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t);++this.t;this.clamp()};t.prototype.dAddOffset=function(t,e){if(0==t)return;while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV){this[e]-=this.DV;if(++e>=this.t)this[this.t++]=0;++this[e]}};t.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);r.s=0;r.t=i;while(i>0)r[--i]=0;for(var n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()};t.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;r.s=0;while(--i>=0)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp();r.drShiftTo(1,r)};t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t;var r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r};t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE);var i=r.getLowestSetBit();if(i<=0)return false;var n=r.shiftRight(i);e=e+1>>1;if(e>O.length)e=O.length;var s=H();for(var a=0;a<e;++a){s.fromInt(O[Math.floor(Math.random()*O.length)]);var o=s.modPow(n,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(r)){var u=1;while(u++<i&&0!=o.compareTo(r)){o=o.modPowInt(2,this);if(0==o.compareTo(t.ONE))return false}if(0!=o.compareTo(r))return false}}return true};t.prototype.square=function(){var t=H();this.squareTo(t);return t};t.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone();var i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var n=r;r=i;i=n}var s=r.getLowestSetBit();var a=i.getLowestSetBit();if(a<0){e(r);return}if(s<a)a=s;if(a>0){r.rShiftTo(a,r);i.rShiftTo(a,i)}var o=function(){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r)}else{i.subTo(r,i);i.rShiftTo(1,i)}if(!(r.signum()>0)){if(a>0)i.lShiftTo(a,i);setTimeout((function(){e(i)}),0)}else setTimeout(o,0)};setTimeout(o,10)};t.prototype.fromNumberAsync=function(e,r,i,n){if("number"==typeof r)if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);var s=this;var o=function(){s.dAddOffset(2,0);if(s.bitLength()>e)s.subTo(t.ONE.shiftLeft(e-1),s);if(s.isProbablePrime(r))setTimeout((function(){n()}),0);else setTimeout(o,0)};setTimeout(o,0)}else{var u=[];var c=7&e;u.length=(e>>3)+1;r.nextBytes(u);if(c>0)u[0]&=(1<<c)-1;else u[0]=0;this.fromString(u,256)}};return t}();var N=function(){function t(){}t.prototype.convert=function(t){return t};t.prototype.revert=function(t){return t};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)};t.prototype.sqrTo=function(t,e){t.squareTo(e)};return t}();var P=function(){function t(t){this.m=t}t.prototype.convert=function(t){if(t.s<0||t.compareTo(this.m)>=0)return t.mod(this.m);else return t};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();var V=function(){function t(t){this.m=t;this.mp=t.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<<t.DB-15)-1;this.mt2=2*t.t}t.prototype.convert=function(t){var e=H();t.abs().dlShiftTo(this.m.t,e);e.divRemTo(this.m,null,e);if(t.s<0&&e.compareTo(C.ZERO)>0)this.m.subTo(e,e);return e};t.prototype.revert=function(t){var e=H();t.copyTo(e);this.reduce(e);return e};t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e];var i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;r=e+this.m.t;t[r]+=this.m.am(0,i,t,e,0,this.m.t);while(t[r]>=t.DV){t[r]-=t.DV;t[++r]++}}t.clamp();t.drShiftTo(this.m.t,t);if(t.compareTo(this.m)>=0)t.subTo(this.m,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();var L=function(){function t(t){this.m=t;this.r2=H();this.q3=H();C.ONE.dlShiftTo(2*t.t,this.r2);this.mu=this.r2.divide(t)}t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);else if(t.compareTo(this.m)<0)return t;else{var e=H();t.copyTo(e);this.reduce(e);return e}};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2);if(t.t>this.m.t+1){t.t=this.m.t+1;t.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();function H(){return new C(null)}function U(t,e){return new C(t,e)}var j="undefined"!==typeof navigator;if(j&&B&&"Microsoft Internet Explorer"==navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){var o=32767&r;var u=r>>15;while(--a>=0){var c=32767&this[e];var l=this[e++]>>15;var f=u*c+l*o;c=o*c+((32767&f)<<15)+i[n]+(1073741823&s);s=(c>>>30)+(f>>>15)+u*l+(s>>>30);i[n++]=1073741823&c}return s};x=30}else if(j&&B&&"Netscape"!=navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){while(--a>=0){var o=r*this[e++]+i[n]+s;s=Math.floor(o/67108864);i[n++]=67108863&o}return s};x=26}else{C.prototype.am=function t(e,r,i,n,s,a){var o=16383&r;var u=r>>14;while(--a>=0){var c=16383&this[e];var l=this[e++]>>14;var f=u*c+l*o;c=o*c+((16383&f)<<14)+i[n]+s;s=(c>>28)+(f>>14)+u*l;i[n++]=268435455&c}return s};x=28}C.prototype.DB=x;C.prototype.DM=(1<<x)-1;C.prototype.DV=1<<x;var K=52;C.prototype.FV=Math.pow(2,K);C.prototype.F1=K-x;C.prototype.F2=2*x-K;var q=[];var F;var z;F="0".charCodeAt(0);for(z=0;z<=9;++z)q[F++]=z;F="a".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;F="A".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;function G(t,e){var r=q[t.charCodeAt(e)];return null==r?-1:r}function Y(t){var e=H();e.fromInt(t);return e}function W(t){var e=1;var r;if(0!=(r=t>>>16)){t=r;e+=16}if(0!=(r=t>>8)){t=r;e+=8}if(0!=(r=t>>4)){t=r;e+=4}if(0!=(r=t>>2)){t=r;e+=2}if(0!=(r=t>>1)){t=r;e+=1}return e}C.ZERO=Y(0);C.ONE=Y(1);var J=function(){function t(){this.i=0;this.j=0;this.S=[]}t.prototype.init=function(t){var e;var r;var i;for(e=0;e<256;++e)this.S[e]=e;r=0;for(e=0;e<256;++e){r=r+this.S[e]+t[e%t.length]&255;i=this.S[e];this.S[e]=this.S[r];this.S[r]=i}this.i=0;this.j=0};t.prototype.next=function(){var t;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;t=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=t;return this.S[t+this.S[this.i]&255]};return t}();function Z(){return new J}var $=256;var X;var Q=null;var tt;if(null==Q){Q=[];tt=0;var et=void 0;var rt=0;var it=function(t){rt=rt||0;if(rt>=256||tt>=rng_psize)return;try{var e=t.x+t.y;Q[tt++]=255&e;rt+=1}catch(t){}}}function nt(){if(null==X){X=Z();while(tt<$){var t=Math.floor(65536*Math.random());Q[tt++]=255&t}X.init(Q);for(tt=0;tt<Q.length;++tt)Q[tt]=0;tt=0}return X.next()}var st=function(){function t(){}t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=nt()};return t}();function at(t,e){if(e<t.length+22){console.error("Message too long for RSA");return null}var r=e-t.length-6;var i="";for(var n=0;n<r;n+=2)i+="ff";var s="0001"+i+"00"+t;return U(s,16)}function ot(t,e){if(e<t.length+11){console.error("Message too long for RSA");return null}var r=[];var i=t.length-1;while(i>=0&&e>0){var n=t.charCodeAt(i--);if(n<128)r[--e]=n;else if(n>127&&n<2048){r[--e]=63&n|128;r[--e]=n>>6|192}else{r[--e]=63&n|128;r[--e]=n>>6&63|128;r[--e]=n>>12|224}}r[--e]=0;var s=new st;var a=[];while(e>2){a[0]=0;while(0==a[0])s.nextBytes(a);r[--e]=a[0]}r[--e]=2;r[--e]=0;return new C(r)}var ut=function(){function t(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null}t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)};t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);var r=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(r)<0)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)};t.prototype.setPublic=function(t,e){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16)}else console.error("Invalid RSA public key")};t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3;var r=ot(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var n=i.toString(16);var s=n.length;for(var a=0;a<2*e-s;a++)n="0"+n;return n};t.prototype.setPrivate=function(t,e,r){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16);this.d=U(r,16)}else console.error("Invalid RSA private key")};t.prototype.setPrivateEx=function(t,e,r,i,n,s,a,o){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16);this.d=U(r,16);this.p=U(i,16);this.q=U(n,16);this.dmp1=U(s,16);this.dmq1=U(a,16);this.coeff=U(o,16)}else console.error("Invalid RSA private key")};t.prototype.generate=function(t,e){var r=new st;var i=t>>1;this.e=parseInt(e,16);var n=new C(e,16);for(;;){for(;;){this.p=new C(t-i,1,r);if(0==this.p.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.p.isProbablePrime(10))break}for(;;){this.q=new C(i,1,r);if(0==this.q.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q;this.q=s}var a=this.p.subtract(C.ONE);var o=this.q.subtract(C.ONE);var u=a.multiply(o);if(0==u.gcd(n).compareTo(C.ONE)){this.n=this.p.multiply(this.q);this.d=n.modInverse(u);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}};t.prototype.decrypt=function(t){var e=U(t,16);var r=this.doPrivate(e);if(null==r)return null;return ct(r,this.n.bitLength()+7>>3)};t.prototype.generateAsync=function(t,e,r){var i=new st;var n=t>>1;this.e=parseInt(e,16);var s=new C(e,16);var a=this;var o=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q;a.q=t}var e=a.p.subtract(C.ONE);var i=a.q.subtract(C.ONE);var n=e.multiply(i);if(0==n.gcd(s).compareTo(C.ONE)){a.n=a.p.multiply(a.q);a.d=s.modInverse(n);a.dmp1=a.d.mod(e);a.dmq1=a.d.mod(i);a.coeff=a.q.modInverse(a.p);setTimeout((function(){r()}),0)}else setTimeout(o,0)};var u=function(){a.q=H();a.q.fromNumberAsync(n,1,i,(function(){a.q.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.q.isProbablePrime(10))setTimeout(e,0);else setTimeout(u,0)}))}))};var c=function(){a.p=H();a.p.fromNumberAsync(t-n,1,i,(function(){a.p.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.p.isProbablePrime(10))setTimeout(u,0);else setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(o,0)};t.prototype.sign=function(t,e,r){var i=ht(r);var n=i+e(t).toString();var s=at(n,this.n.bitLength()/4);if(null==s)return null;var a=this.doPrivate(s);if(null==a)return null;var o=a.toString(16);if(0==(1&o.length))return o;else return"0"+o};t.prototype.verify=function(t,e,r){var i=U(e,16);var n=this.doPublic(i);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,"");var a=dt(s);return a==r(t).toString()};t.prototype.encryptLong=function(t){var e=this;var r="";var i=(this.n.bitLength()+7>>3)-11;var n=this.setSplitChn(t,i);n.forEach((function(t){r+=e.encrypt(t)}));return r};t.prototype.decryptLong=function(t){var e="";var r=this.n.bitLength()+7>>3;var i=2*r;if(t.length>i){var n=t.match(new RegExp(".{1,"+i+"}","g"))||[];var s=[];for(var a=0;a<n.length;a++){var o=U(n[a],16);var u=this.doPrivate(o);if(null==u)return null;s.push(u)}e=lt(s,r)}else e=this.decrypt(t);return e};t.prototype.setSplitChn=function(t,e,r){if(void 0===r)r=[];var i=t.split("");var n=0;for(var s=0;s<i.length;s++){var a=i[s].charCodeAt(0);if(a<=127)n+=1;else if(a<=2047)n+=2;else if(a<=65535)n+=3;else n+=4;if(n>e){var o=t.substring(0,s);r.push(o);return this.setSplitChn(t.substring(s),e,r)}}r.push(t);return r};return t}();function ct(t,e){var r=t.toByteArray();var i=0;while(i<r.length&&0==r[i])++i;if(r.length-i!=e-1||2!=r[i])return null;++i;while(0!=r[i])if(++i>=r.length)return null;var n="";while(++i<r.length){var s=255&r[i];if(s<128)n+=String.fromCharCode(s);else if(s>191&&s<224){n+=String.fromCharCode((31&s)<<6|63&r[i+1]);++i}else{n+=String.fromCharCode((15&s)<<12|(63&r[i+1])<<6|63&r[i+2]);i+=2}}return n}function lt(t,e){var r=[];for(var i=0;i<t.length;i++){var n=t[i];var s=n.toByteArray();var a=0;while(a<s.length&&0==s[a])++a;if(s.length-a!=e-1||2!=s[a])return null;++a;while(0!=s[a])if(++a>=s.length)return null;r=r.concat(s.slice(a+1))}var o=r;var u=-1;var c="";while(++u<o.length){var l=255&o[u];if(l<128)c+=String.fromCharCode(l);else if(l>191&&l<224){c+=String.fromCharCode((31&l)<<6|63&o[u+1]);++u}else{c+=String.fromCharCode((15&l)<<12|(63&o[u+1])<<6|63&o[u+2]);u+=2}}return c}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ft[t]||""}function dt(t){for(var e in ft)if(ft.hasOwnProperty(e)){var r=ft[e];var i=r.length;if(t.substr(0,i)==r)return t.substr(i)}return t}var pt={};pt.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");var i=function(){};i.prototype=e.prototype;t.prototype=new i;t.prototype.constructor=t;t.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor)e.prototype.constructor=e;if(r){var n;for(n in r)t.prototype[n]=r[n];var s=function(){},a=["toString","valueOf"];try{if(/MSIE/.test(navigator.userAgent))s=function(t,e){for(n=0;n<a.length;n+=1){var r=a[n],i=e[r];if("function"===typeof i&&i!=Object.prototype[r])t[r]=i}}}catch(t){}s(t.prototype,r)}}};var vt={};if("undefined"==typeof vt.asn1||!vt.asn1)vt.asn1={};vt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);if(e.length%2==1)e="0"+e;return e};this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1)){if(e.length%2==1)e="0"+e;else if(!e.match(/^[0-7]/))e="00"+e}else{var r=e.substr(1);var i=r.length;if(i%2==1)i+=1;else if(!e.match(/^[0-7]/))i+=2;var n="";for(var s=0;s<i;s++)n+="f";var a=new C(n,16);var o=a.xor(t).add(C.ONE);e=o.toString(16).replace(/^-/,"")}return e};this.getPEMStringFromHex=function(t,e){return hextopem(t,e)};this.newObject=function(t){var e=vt,r=e.asn1,i=r.DERBoolean,n=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,d=r.DERTeletexString,p=r.DERIA5String,v=r.DERUTCTime,g=r.DERGeneralizedTime,y=r.DERSequence,m=r.DERSet,_=r.DERTaggedObject,w=r.ASN1Util.newObject;var S=Object.keys(t);if(1!=S.length)throw"key of param shall be only one.";var b=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":"))throw"undefined key: "+b;if("bool"==b)return new i(t[b]);if("int"==b)return new n(t[b]);if("bitstr"==b)return new s(t[b]);if("octstr"==b)return new a(t[b]);if("null"==b)return new o(t[b]);if("oid"==b)return new u(t[b]);if("enum"==b)return new c(t[b]);if("utf8str"==b)return new l(t[b]);if("numstr"==b)return new f(t[b]);if("prnstr"==b)return new h(t[b]);if("telstr"==b)return new d(t[b]);if("ia5str"==b)return new p(t[b]);if("utctime"==b)return new v(t[b]);if("gentime"==b)return new g(t[b]);if("seq"==b){var E=t[b];var D=[];for(var T=0;T<E.length;T++){var M=w(E[T]);D.push(M)}return new y({array:D})}if("set"==b){var E=t[b];var D=[];for(var T=0;T<E.length;T++){var M=w(E[T]);D.push(M)}return new m({array:D})}if("tag"==b){var I=t[b];if("[object Array]"===Object.prototype.toString.call(I)&&3==I.length){var A=w(I[2]);return new _({tag:I[0],explicit:I[1],obj:A})}else{var x={};if(void 0!==I.explicit)x.explicit=I.explicit;if(void 0!==I.tag)x.tag=I.tag;if(void 0===I.obj)throw"obj shall be specified for 'tag'.";x.obj=w(I.obj);return new _(x)}}};this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};vt.asn1.ASN1Util.oidHexToInt=function(t){var e="";var r=parseInt(t.substr(0,2),16);var i=Math.floor(r/40);var n=r%40;var e=i+"."+n;var s="";for(var a=2;a<t.length;a+=2){var o=parseInt(t.substr(a,2),16);var u=("00000000"+o.toString(2)).slice(-8);s+=u.substr(1,7);if("0"==u.substr(0,1)){var c=new C(s,2);e=e+"."+c.toString(10);s=""}}return e};vt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2))}return r};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);return i};vt.asn1.ASN1Object=function(){var t=true;var e=null;var r="00";var i="00";var n="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2;var e=t.toString(16);if(e.length%2==1)e="0"+e;if(t<128)return e;else{var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e}};this.getEncodedHex=function(){if(null==this.hTLV||this.isModified){this.hV=this.getFreshValueHex();this.hL=this.getLengthHexFromValue();this.hTLV=this.hT+this.hL+this.hV;this.isModified=false}return this.hTLV};this.getValueHex=function(){this.getEncodedHex();return this.hV};this.getFreshValueHex=function(){return""}};vt.asn1.DERAbstractString=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);var e=null;var r=null;this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(this.s)};this.setStringHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t)this.setString(t);else if("undefined"!=typeof t["str"])this.setString(t["str"]);else if("undefined"!=typeof t["hex"])this.setStringHex(t["hex"])};pt.lang.extend(vt.asn1.DERAbstractString,vt.asn1.ASN1Object);vt.asn1.DERAbstractTime=function(t){vt.asn1.DERAbstractTime.superclass.constructor.call(this);var e=null;var r=null;this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e};this.formatDate=function(t,e,r){var i=this.zeroPadding;var n=this.localDateToUTC(t);var s=String(n.getFullYear());if("utc"==e)s=s.substr(2,2);var a=i(String(n.getMonth()+1),2);var o=i(String(n.getDate()),2);var u=i(String(n.getHours()),2);var c=i(String(n.getMinutes()),2);var l=i(String(n.getSeconds()),2);var f=s+a+o+u+c+l;if(true===r){var h=n.getMilliseconds();if(0!=h){var d=i(String(h),3);d=d.replace(/[0]+$/,"");f=f+"."+d}}return f+"Z"};this.zeroPadding=function(t,e){if(t.length>=e)return t;return new Array(e-t.length+1).join("0")+t};this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(t)};this.setByDateValue=function(t,e,r,i,n,s){var a=new Date(Date.UTC(t,e-1,r,i,n,s,0));this.setByDate(a)};this.getFreshValueHex=function(){return this.hV}};pt.lang.extend(vt.asn1.DERAbstractTime,vt.asn1.ASN1Object);vt.asn1.DERAbstractStructured=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);var e=null;this.setByASN1ObjectArray=function(t){this.hTLV=null;this.isModified=true;this.asn1Array=t};this.appendASN1Object=function(t){this.hTLV=null;this.isModified=true;this.asn1Array.push(t)};this.asn1Array=new Array;if("undefined"!=typeof t)if("undefined"!=typeof t["array"])this.asn1Array=t["array"]};pt.lang.extend(vt.asn1.DERAbstractStructured,vt.asn1.ASN1Object);vt.asn1.DERBoolean=function(){vt.asn1.DERBoolean.superclass.constructor.call(this);this.hT="01";this.hTLV="0101ff"};pt.lang.extend(vt.asn1.DERBoolean,vt.asn1.ASN1Object);vt.asn1.DERInteger=function(t){vt.asn1.DERInteger.superclass.constructor.call(this);this.hT="02";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e)};this.setValueHex=function(t){this.hV=t};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["bigint"])this.setByBigInteger(t["bigint"]);else if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"])};pt.lang.extend(vt.asn1.DERInteger,vt.asn1.ASN1Object);vt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}vt.asn1.DERBitString.superclass.constructor.call(this);this.hT="03";this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null;this.isModified=true;this.hV=t};this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null;this.isModified=true;this.hV=r+e};this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;if(8==e)e=0;for(var r=0;r<=e;r++)t+="0";var i="";for(var r=0;r<t.length-1;r+=8){var n=t.substr(r,8);var s=parseInt(n,2).toString(16);if(1==s.length)s="0"+s;i+=s}this.hTLV=null;this.isModified=true;this.hV="0"+e+i};this.setByBooleanArray=function(t){var e="";for(var r=0;r<t.length;r++)if(true==t[r])e+="1";else e+="0";this.setByBinaryString(e)};this.newFalseArray=function(t){var e=new Array(t);for(var r=0;r<t;r++)e[r]=false;return e};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/))this.setHexValueIncludingUnusedBits(t);else if("undefined"!=typeof t["hex"])this.setHexValueIncludingUnusedBits(t["hex"]);else if("undefined"!=typeof t["bin"])this.setByBinaryString(t["bin"]);else if("undefined"!=typeof t["array"])this.setByBooleanArray(t["array"])};pt.lang.extend(vt.asn1.DERBitString,vt.asn1.ASN1Object);vt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}vt.asn1.DEROctetString.superclass.constructor.call(this,t);this.hT="04"};pt.lang.extend(vt.asn1.DEROctetString,vt.asn1.DERAbstractString);vt.asn1.DERNull=function(){vt.asn1.DERNull.superclass.constructor.call(this);this.hT="05";this.hTLV="0500"};pt.lang.extend(vt.asn1.DERNull,vt.asn1.ASN1Object);vt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2))}return r};vt.asn1.DERObjectIdentifier.superclass.constructor.call(this);this.hT="06";this.setValueHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t};this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);this.hTLV=null;this.isModified=true;this.s=null;this.hV=i};this.setValueName=function(t){var e=vt.asn1.x509.OID.name2oid(t);if(""!==e)this.setValueOidString(e);else throw"DERObjectIdentifier oidName undefined: "+t};this.getFreshValueHex=function(){return this.hV};if(void 0!==t)if("string"===typeof t)if(t.match(/^[0-2].[0-9.]+$/))this.setValueOidString(t);else this.setValueName(t);else if(void 0!==t.oid)this.setValueOidString(t.oid);else if(void 0!==t.hex)this.setValueHex(t.hex);else if(void 0!==t.name)this.setValueName(t.name)};pt.lang.extend(vt.asn1.DERObjectIdentifier,vt.asn1.ASN1Object);vt.asn1.DEREnumerated=function(t){vt.asn1.DEREnumerated.superclass.constructor.call(this);this.hT="0a";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e)};this.setValueHex=function(t){this.hV=t};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"])};pt.lang.extend(vt.asn1.DEREnumerated,vt.asn1.ASN1Object);vt.asn1.DERUTF8String=function(t){vt.asn1.DERUTF8String.superclass.constructor.call(this,t);this.hT="0c"};pt.lang.extend(vt.asn1.DERUTF8String,vt.asn1.DERAbstractString);vt.asn1.DERNumericString=function(t){vt.asn1.DERNumericString.superclass.constructor.call(this,t);this.hT="12"};pt.lang.extend(vt.asn1.DERNumericString,vt.asn1.DERAbstractString);vt.asn1.DERPrintableString=function(t){vt.asn1.DERPrintableString.superclass.constructor.call(this,t);this.hT="13"};pt.lang.extend(vt.asn1.DERPrintableString,vt.asn1.DERAbstractString);vt.asn1.DERTeletexString=function(t){vt.asn1.DERTeletexString.superclass.constructor.call(this,t);this.hT="14"};pt.lang.extend(vt.asn1.DERTeletexString,vt.asn1.DERAbstractString);vt.asn1.DERIA5String=function(t){vt.asn1.DERIA5String.superclass.constructor.call(this,t);this.hT="16"};pt.lang.extend(vt.asn1.DERIA5String,vt.asn1.DERAbstractString);vt.asn1.DERUTCTime=function(t){vt.asn1.DERUTCTime.superclass.constructor.call(this,t);this.hT="17";this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s)};this.getFreshValueHex=function(){if("undefined"==typeof this.date&&"undefined"==typeof this.s){this.date=new Date;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s)}return this.hV};if(void 0!==t)if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{12}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date)};pt.lang.extend(vt.asn1.DERUTCTime,vt.asn1.DERAbstractTime);vt.asn1.DERGeneralizedTime=function(t){vt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t);this.hT="18";this.withMillis=false;this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s)};this.getFreshValueHex=function(){if(void 0===this.date&&void 0===this.s){this.date=new Date;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s)}return this.hV};if(void 0!==t){if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{14}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);if(true===t.millis)this.withMillis=true}};pt.lang.extend(vt.asn1.DERGeneralizedTime,vt.asn1.DERAbstractTime);vt.asn1.DERSequence=function(t){vt.asn1.DERSequence.superclass.constructor.call(this,t);this.hT="30";this.getFreshValueHex=function(){var t="";for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex()}this.hV=t;return this.hV}};pt.lang.extend(vt.asn1.DERSequence,vt.asn1.DERAbstractStructured);vt.asn1.DERSet=function(t){vt.asn1.DERSet.superclass.constructor.call(this,t);this.hT="31";this.sortFlag=true;this.getFreshValueHex=function(){var t=new Array;for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}if(true==this.sortFlag)t.sort();this.hV=t.join("");return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t.sortflag&&false==t.sortflag)this.sortFlag=false};pt.lang.extend(vt.asn1.DERSet,vt.asn1.DERAbstractStructured);vt.asn1.DERTaggedObject=function(t){vt.asn1.DERTaggedObject.superclass.constructor.call(this);this.hT="a0";this.hV="";this.isExplicit=true;this.asn1Object=null;this.setASN1Object=function(t,e,r){this.hT=e;this.isExplicit=t;this.asn1Object=r;if(this.isExplicit){this.hV=this.asn1Object.getEncodedHex();this.hTLV=null;this.isModified=true}else{this.hV=null;this.hTLV=r.getEncodedHex();this.hTLV=this.hTLV.replace(/^../,e);this.isModified=false}};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t){if("undefined"!=typeof t["tag"])this.hT=t["tag"];if("undefined"!=typeof t["explicit"])this.isExplicit=t["explicit"];if("undefined"!=typeof t["obj"]){this.asn1Object=t["obj"];this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)}}};pt.lang.extend(vt.asn1.DERTaggedObject,vt.asn1.ASN1Object);var gt=void 0&&(void 0).__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();var yt=function(t){gt(e,t);function e(r){var i=t.call(this)||this;if(r)if("string"===typeof r)i.parseKey(r);else if(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))i.parsePropertiesFrom(r);return i}e.prototype.parseKey=function(t){try{var e=0;var r=0;var i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/;var n=i.test(t)?y.decode(t):_.unarmor(t);var s=I.decode(n);if(3===s.sub.length)s=s.sub[2].sub[0];if(9===s.sub.length){e=s.sub[1].getHexStringValue();this.n=U(e,16);r=s.sub[2].getHexStringValue();this.e=parseInt(r,16);var a=s.sub[3].getHexStringValue();this.d=U(a,16);var o=s.sub[4].getHexStringValue();this.p=U(o,16);var u=s.sub[5].getHexStringValue();this.q=U(u,16);var c=s.sub[6].getHexStringValue();this.dmp1=U(c,16);var l=s.sub[7].getHexStringValue();this.dmq1=U(l,16);var f=s.sub[8].getHexStringValue();this.coeff=U(f,16)}else if(2===s.sub.length){var h=s.sub[1];var d=h.sub[0];e=d.sub[0].getHexStringValue();this.n=U(e,16);r=d.sub[1].getHexStringValue();this.e=parseInt(r,16)}else return false;return true}catch(t){return false}};e.prototype.getPrivateBaseKey=function(){var t={array:[new vt.asn1.DERInteger({int:0}),new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e}),new vt.asn1.DERInteger({bigint:this.d}),new vt.asn1.DERInteger({bigint:this.p}),new vt.asn1.DERInteger({bigint:this.q}),new vt.asn1.DERInteger({bigint:this.dmp1}),new vt.asn1.DERInteger({bigint:this.dmq1}),new vt.asn1.DERInteger({bigint:this.coeff})]};var e=new vt.asn1.DERSequence(t);return e.getEncodedHex()};e.prototype.getPrivateBaseKeyB64=function(){return d(this.getPrivateBaseKey())};e.prototype.getPublicBaseKey=function(){var t=new vt.asn1.DERSequence({array:[new vt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new vt.asn1.DERNull]});var e=new vt.asn1.DERSequence({array:[new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e})]});var r=new vt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});var i=new vt.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()};e.prototype.getPublicBaseKeyB64=function(){return d(this.getPublicBaseKey())};e.wordwrap=function(t,e){e=e||64;if(!t)return t;var r="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")};e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n";t+="-----END RSA PRIVATE KEY-----";return t};e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n";t+="-----END PUBLIC KEY-----";return t};e.hasPublicKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")};e.hasPrivateKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")};e.prototype.parsePropertiesFrom=function(t){this.n=t.n;this.e=t.e;if(t.hasOwnProperty("d")){this.d=t.d;this.p=t.p;this.q=t.q;this.dmp1=t.dmp1;this.dmq1=t.dmq1;this.coeff=t.coeff}};return e}(ut);const mt={i:"3.2.1"};var _t=function(){function t(t){if(void 0===t)t={};t=t||{};this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024;this.default_public_exponent=t.default_public_exponent||"010001";this.log=t.log||false;this.key=null}t.prototype.setKey=function(t){if(this.log&&this.key)console.warn("A key was already set, overriding existing.");this.key=new yt(t)};t.prototype.setPrivateKey=function(t){this.setKey(t)};t.prototype.setPublicKey=function(t){this.setKey(t)};t.prototype.decrypt=function(t){try{return this.getKey().decrypt(p(t))}catch(t){return false}};t.prototype.encrypt=function(t){try{return this.getKey().encrypt(t)}catch(t){return false}};t.prototype.encryptLong=function(t){try{return d(this.getKey().encryptLong(t))}catch(t){return false}};t.prototype.decryptLong=function(t){try{return this.getKey().decryptLong(t)}catch(t){return false}};t.prototype.sign=function(t,e,r){try{return d(this.getKey().sign(t,e,r))}catch(t){return false}};t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,p(e),r)}catch(t){return false}};t.prototype.getKey=function(t){if(!this.key){this.key=new yt;if(t&&"[object Function]"==={}.toString.call(t)){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key};t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()};t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()};t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()};t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()};t.version=mt.i;return t}();const wt=_t},2480:()=>{}};var e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={id:i,loaded:false,exports:{}};t[i].call(s.exports,s,s.exports,r);s.loaded=true;return s.exports}(()=>{r.d=(t,e)=>{for(var i in e)if(r.o(e,i)&&!r.o(t,i))Object.defineProperty(t,i,{enumerable:true,get:e[i]})}})();(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()})();(()=>{r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})();(()=>{r.r=t=>{if("undefined"!==typeof Symbol&&Symbol.toStringTag)Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:true})}})();(()=>{r.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();var i=r(5987);return i})())); -//# sourceMappingURL=gtpush.map \ No newline at end of file +}}}}e["default"]=r},9342:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=wx.getSystemInfoSync()}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return"MP-WEIXIN"}platformVersion(){return this.systemInfo.version}language(){return this.systemInfo.language}platformId(){if(wx.canIUse("getAccountInfoSync"))return wx.getAccountInfoSync().miniProgram.appId;return""}getNetworkType(t){wx.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType})},fail:t.fail})}onNetworkStatusChange(t){wx.onNetworkStatusChange(t)}}e["default"]=r},155:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{set(t){wx.setStorage(t)}setSync(t,e){wx.setStorageSync(t,e)}get(t){wx.getStorage(t)}getSync(t){return wx.getStorageSync(t)}}e["default"]=r},3751:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=wx.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return{onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r},127:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.SDK_VERSION="GTMP-2.0.1.dcloud";t.DEFAULT_SOCKET_URL="wss://wshz.getui.net:5223/nws";t.SOCKET_PROTOCOL_VERSION="1.0";t.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";t.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b"})(r||(r={}));e["default"]=r},1901:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(1237));const a=i(r(1754));class o{static init(t){if(this.inited)return;try{this.checkAppid(t.appid);this.inited=true;s.default.info(`init: appid=${t.appid}`);a.default.init(t);n.default.connect()}catch(e){this.inited=false;t.onError?.call(t.onError,{error:e});throw e}}static enableSocket(t){this.checkInit();n.default.allowReconnect=t;if(t)n.default.reconnect(0);else n.default.close(`enableSocket ${t}`)}static checkInit(){if(!this.inited)throw new Error(`not init, please invoke init method firstly`)}static checkAppid(t){if(null==t||void 0==t||""==t.trim())throw new Error(`invalid appid ${t}`)}}o.inited=false;e["default"]=o},1754:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(9934));const a=i(r(127));const o=i(r(7071));const u=i(r(1237));const c=i(r(5574));const l=i(r(7406));class f{static init(t){this.appid=c.default.to_getui(t.appid);u.default.info(`getui appid: ${this.appid}`);this.onError=t.onError;this.onClientId=t.onClientId;this.onlineState=t.onlineState;this.onPushMsg=t.onPushMsg;if(this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)){u.default.info("appid changed, clear session and cid");s.default.setSync(s.default.KEY_CID,"");s.default.setSync(s.default.KEY_SESSION,"")}s.default.setSync(s.default.KEY_APPID,this.appid);this.cid=s.default.getSync(s.default.KEY_CID,this.cid);if(this.cid)this.onClientId?.call(this.onClientId,{cid:f.cid});this.session=s.default.getSync(s.default.KEY_SESSION,this.session);this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId);this.regId=s.default.getSync(s.default.KEY_REGID,this.regId);if(!this.regId){this.regId=this.createRegId();s.default.set({key:s.default.KEY_REGID,data:this.regId})}this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let e=this;l.default.getNetworkType({success:t=>{e.networkType=t.networkType;e.networkConnected="none"!=e.networkType&&""!=e.networkType}});l.default.onNetworkStatusChange((t=>{e.networkConnected=t.isConnected;e.networkType=t.networkType;if(e.networkConnected)o.default.reconnect(0)}))}static createRegId(){return`M-V${n.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let e=16*Math.random()|0,r="x"===t?e:3&e|8;return r.toString(16)}))}}f.appid="";f.cid="";f.regId="";f.session="";f.deviceId="";f.packetId=1;f.online=false;f.socketUrl=a.default.DEFAULT_SOCKET_URL;f.publicKeyId=a.default.SERVER_PUBLIC_KEY_ID;f.publicKey=a.default.SERVER_PUBLIC_KEY;f.lastAliasTime=0;f.networkConnected=true;f.networkType="none";e["default"]=f},9214:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(9800));const o=r(3118);const u=i(r(1754));class c extends a.default{constructor(){super(...arguments);this.actionMsgData=new l}static initActionMsg(t,...e){super.initMsg(t);t.command=a.default.Command.CLIENT_MSG;t.data=t.actionMsgData=l.create();return t}static parseActionMsg(t,e){super.parseMsg(t,e);t.actionMsgData=l.parse(t.data);return t}send(){let t=setTimeout((()=>{if(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId)){c.waitingLoginMsgMap.delete(this.actionMsgData.msgId);c.waitingResponseMsgMap.delete(this.actionMsgData.msgId);this.callback?.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"})}}),1e4);if(!u.default.online){c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this);return}if(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED)c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this);super.send()}receive(){}static sendWaitingMessages(){let t=this.waitingLoginMsgMap.keys();let e;while(e=t.next(),!e.done){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value);t?.send()}}static getWaitingResponseMessage(t){return c.waitingResponseMsgMap.get(t)}static removeWaitingResponseMessage(t){let e=c.waitingResponseMsgMap.get(t);if(e)c.waitingResponseMsgMap.delete(t);return e}}c.ServerAction=(n=class{},n.PUSH_MESSAGE="pushmessage",n.REDIRECT_SERVER="redirect_server",n.ADD_PHONE_INFO_RESULT="addphoneinfo",n.SET_MODE_RESULT="set_mode_result",n.SET_TAG_RESULT="settag_result",n.BIND_ALIAS_RESULT="response_bind",n.UNBIND_ALIAS_RESULT="response_unbind",n.FEED_BACK_RESULT="pushmessage_feedback",n.RECEIVED="received",n);c.ClientAction=(s=class{},s.ADD_PHONE_INFO="addphoneinfo",s.SET_MODE="set_mode",s.FEED_BACK="pushmessage_feedback",s.SET_TAGS="set_tag",s.BIND_ALIAS="bind_alias",s.UNBIND_ALIAS="unbind_alias",s.RECEIVED="received",s);c.waitingLoginMsgMap=new Map;c.waitingResponseMsgMap=new Map;class l{constructor(){this.appId="";this.cid="";this.msgId="";this.msgAction="";this.msgData="";this.msgExtraData=""}static create(){let t=new l;t.appId=u.default.appid;t.cid=u.default.cid;t.msgId=(2147483647&(new Date).getTime()).toString();return t}static parse(t){let e=new l;let r=JSON.parse(t);e.appId=r.appId;e.cid=r.cid;e.msgId=r.msgId;e.msgAction=r.msgAction;e.msgData=r.msgData;e.msgExtraData=r.msgExtraData;return e}}e["default"]=c},708:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7406));const s=i(r(9934));const a=i(r(127));const o=r(3118);const u=i(r(9214));const c=i(r(1754));class l extends u.default{constructor(){super(...arguments);this.addPhoneInfoData=new f}static create(){let t=new l;super.initActionMsg(t);t.callback=e=>{if(e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){t.send()}),30*1e3);else s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})};t.actionMsgData.msgAction=u.default.ClientAction.ADD_PHONE_INFO;t.addPhoneInfoData=f.create();t.actionMsgData.msgData=JSON.stringify(t.addPhoneInfoData);return t}send(){let t=(new Date).getTime();let e=s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);if(t-e<24*60*60*1e3)return;super.send()}}class f{constructor(){this.model="";this.brand="";this.system_version="";this.version="";this.deviceid="";this.type=""}static create(){let t=new f;t.model=n.default.model();t.brand=n.default.brand();t.system_version=n.default.osVersion();t.version=a.default.SDK_VERSION;t.device_token="";t.imei="";t.oaid="";t.mac="";t.idfa="";t.type="MINIPROGRAM";t.deviceid=`${t.type}-${c.default.deviceId}`;t.extra={os:n.default.os(),platform:n.default.platform(),platformVersion:n.default.platformVersion(),platformId:n.default.platformId(),language:n.default.language(),userAgent:n.default.userAgent()};return t}}e["default"]=l},652:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(1754));const o=r(3118);const u=i(r(9214));class c extends u.default{constructor(){super(...arguments);this.feedbackData=new l}static create(t,e){let r=new c;super.initActionMsg(r);r.callback=t=>{if(t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){r.send()}),30*1e3)};r.feedbackData=l.create(t,e);r.actionMsgData.msgAction=u.default.ClientAction.FEED_BACK;r.actionMsgData.msgData=JSON.stringify(r.feedbackData);return r}send(){super.send()}}c.ActionId=(n=class{},n.RECEIVE="0",n.MP_RECEIVE="210000",n.WEB_RECEIVE="220000",n.BEGIN="1",n);c.RESULT=(s=class{},s.OK="ok",s);class l{constructor(){this.messageid="";this.appkey="";this.appid="";this.taskid="";this.actionid="";this.result="";this.timestamp=""}static create(t,e){let r=new l;r.messageid=t.pushMessageData.messageid;r.appkey=t.pushMessageData.appKey;r.appid=a.default.appid;r.taskid=t.pushMessageData.taskId;r.actionid=e;r.result=c.RESULT.OK;r.timestamp=(new Date).getTime().toString();return r}}e["default"]=c},6561:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));class s extends n.default{static create(){let t=new s;super.initMsg(t);t.command=n.default.Command.HEART_BEAT;return t}}e["default"]=s},358:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(1754));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.keyNegotiateData=new u}static create(){let t=new o;super.initMsg(t);t.command=a.default.Command.KEY_NEGOTIATE;n.default.resetKey();t.data=t.keyNegotiateData=u.create();return t}send(){super.send()}}class u{constructor(){this.appId="";this.rsaPublicKeyId="";this.algorithm="";this.secretKey="";this.iv=""}static create(){let t=new u;t.appId=s.default.appid;t.rsaPublicKeyId=s.default.publicKeyId;t.algorithm="AES";t.secretKey=n.default.getEncryptedSecretKey();t.iv=n.default.getEncryptedIV();return t}}e["default"]=o},5301:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(323));const a=i(r(2544));const o=i(r(1237));const u=i(r(1754));class c extends n.default{constructor(){super(...arguments);this.keyNegotiateResultData=new l}static parse(t){let e=new c;super.parseMsg(e,t);e.keyNegotiateResultData=l.parse(e.data);return e}receive(){if(0!=this.keyNegotiateResultData.errorCode){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}let t=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(t[0].trim().toLowerCase())||!s.default.modeMap.has(t[1].trim().toLowerCase())||!s.default.paddingMap.has(t[2].trim().toLowerCase())){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}s.default.setEncryptParams(t[0].trim().toLowerCase(),t[1].trim().toLowerCase(),t[2].trim().toLowerCase());a.default.create().send()}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.encryptType=""}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.encryptType=r.encryptType;return e}}e["default"]=c},2544:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(323));const a=i(r(9800));const o=i(r(3527));class u extends a.default{constructor(){super(...arguments);this.loginData=new c}static create(){let t=new u;super.initMsg(t);t.command=a.default.Command.LOGIN;t.data=t.loginData=c.create();return t}send(){if(!this.loginData.session||n.default.cid!=s.default.md5Hex(this.loginData.session)){o.default.create().send();return}super.send()}}class c{constructor(){this.appId="";this.session=""}static create(){let t=new c;t.appId=n.default.appid;t.session=n.default.session;return t}}e["default"]=u},8734:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9800));const a=i(r(1754));const o=i(r(9214));const u=i(r(708));const c=i(r(2544));class l extends s.default{constructor(){super(...arguments);this.loginResultData=new f}static parse(t){let e=new l;super.parseMsg(e,t);e.loginResultData=f.parse(e.data);return e}receive(){if(0!=this.loginResultData.errorCode){this.data;a.default.session=a.default.cid="";n.default.setSync(n.default.KEY_CID,"");n.default.setSync(n.default.KEY_SESSION,"");c.default.create().send();return}if(!a.default.online){a.default.online=true;a.default.onlineState?.call(a.default.onlineState,{online:a.default.online})}o.default.sendWaitingMessages();u.default.create().send()}}class f{constructor(){this.errorCode=-1;this.errorMsg="";this.session=""}static parse(t){let e=new f;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.session=r.session;return e}}e["default"]=l},9800:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(350));const a=i(r(7071));const o=i(r(127));const u=i(r(1754));class c{constructor(){this.version="";this.command=0;this.packetId=0;this.timeStamp=0;this.data="";this.signature=""}static initMsg(t,...e){t.version=o.default.SOCKET_PROTOCOL_VERSION;t.command=0;t.timeStamp=(new Date).getTime();return t}static parseMsg(t,e){let r=JSON.parse(e);t.version=r.version;t.command=r.command;t.packetId=r.packetId;t.timeStamp=r.timeStamp;t.data=r.data;t.signature=r.signature;return t}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){if(!a.default.isAvailable())return;this.packetId=u.default.packetId++;this.data=JSON.stringify(this.data);this.stringify();if(this.command!=c.Command.HEART_BEAT){s.default.sign(this);if(this.data&&this.command!=c.Command.KEY_NEGOTIATE)s.default.encrypt(this)}a.default.send(this.stringify())}}c.Command=(n=class{},n.HEART_BEAT=0,n.KEY_NEGOTIATE=1,n.KEY_NEGOTIATE_RESULT=16,n.REGISTER=2,n.REGISTER_RESULT=32,n.LOGIN=3,n.LOGIN_RESULT=48,n.LOGOUT=4,n.LOGOUT_RESULT=64,n.CLIENT_MSG=5,n.SERVER_MSG=80,n.SERVER_CLOSE=96,n.REDIRECT_SERVER=112,n);e["default"]=c},350:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));var s;(function(t){function e(t){t.data=n.default.encrypt(t.data)}t.encrypt=e;function r(t){t.data=n.default.decrypt(t.data)}t.decrypt=r;function i(t){t.signature=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`)}t.sign=i;function s(t){let e=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);if(t.signature!=e)throw new Error(`msg signature vierfy failed`)}t.verify=s})(s||(s={}));e["default"]=s},1236:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(5301));const s=i(r(8734));const a=i(r(9800));const o=i(r(7078));const u=i(r(538));const c=i(r(7821));const l=i(r(217));const f=i(r(7156));const h=i(r(53));const d=i(r(9214));const p=i(r(7303));const v=i(r(6063));const g=i(r(7923));const y=i(r(350));const m=i(r(9214));const w=i(r(6254));const S=i(r(5035));class _{static receiveMessage(t){let e=a.default.parseMsg(new a.default,t);if(e.command==a.default.Command.HEART_BEAT)return;if(e.command!=a.default.Command.KEY_NEGOTIATE_RESULT&&e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.decrypt(e);if(e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.verify(e);switch(e.command){case a.default.Command.KEY_NEGOTIATE_RESULT:n.default.parse(e.stringify()).receive();break;case a.default.Command.REGISTER_RESULT:o.default.parse(e.stringify()).receive();break;case a.default.Command.LOGIN_RESULT:s.default.parse(e.stringify()).receive();break;case a.default.Command.SERVER_MSG:this.receiveActionMsg(e.stringify());break;case a.default.Command.SERVER_CLOSE:S.default.parse(e.stringify()).receive();break;case a.default.Command.REDIRECT_SERVER:h.default.parse(e.stringify()).receive();break;default:break}}static receiveActionMsg(t){let e=m.default.parseActionMsg(new m.default,t);if(e.actionMsgData.msgAction!=d.default.ServerAction.RECEIVED&&e.actionMsgData.msgAction!=d.default.ServerAction.REDIRECT_SERVER){let t=JSON.parse(e.actionMsgData.msgData);w.default.create(t.id).send()}switch(e.actionMsgData.msgAction){case d.default.ServerAction.PUSH_MESSAGE:f.default.parse(t).receive();break;case d.default.ServerAction.ADD_PHONE_INFO_RESULT:u.default.parse(t).receive();break;case d.default.ServerAction.SET_MODE_RESULT:p.default.parse(t).receive();break;case d.default.ServerAction.SET_TAG_RESULT:v.default.parse(t).receive();break;case d.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(t).receive();break;case d.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(t).receive();break;case d.default.ServerAction.FEED_BACK_RESULT:l.default.parse(t).receive();break;case d.default.ServerAction.RECEIVED:w.default.parse(t).receive();break}}}e["default"]=_},6254:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.receivedData=new u}static create(t){let e=new o;super.initActionMsg(e);e.callback=t=>{if(t.resultCode!=n.ErrorCode.SUCCESS&&t.resultCode!=n.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){e.send()}),3*1e3)};e.actionMsgData.msgAction=a.default.ClientAction.RECEIVED;e.receivedData=u.create(t);e.actionMsgData.msgData=JSON.stringify(e.receivedData);return e}static parse(t){let e=new o;super.parseActionMsg(e,t);e.receivedData=u.parse(e.data);return e}receive(){let t=a.default.getWaitingResponseMessage(this.actionMsgData.msgId);if(t&&t.actionMsgData.msgAction==a.default.ClientAction.ADD_PHONE_INFO||t&&t.actionMsgData.msgAction==a.default.ClientAction.FEED_BACK){a.default.removeWaitingResponseMessage(t.actionMsgData.msgId);t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"})}}send(){super.send()}}class u{constructor(){this.msgId="";this.cid=""}static create(t){let e=new u;e.cid=s.default.cid;e.msgId=t;return e}static parse(t){let e=new u;let r=JSON.parse(t);e.cid=r.cid;e.msgId=r.msgId;return e}}e["default"]=o},53:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.RedirectServerData=void 0;const n=i(r(7071));const s=i(r(9934));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.redirectServerData=new u}static parse(t){let e=new o;super.parseMsg(e,t);e.redirectServerData=u.parse(e.data);return e}receive(){this.redirectServerData;s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData));n.default.close("redirect server");n.default.reconnect(this.redirectServerData.delay)}}class u{constructor(){this.addressList=[];this.delay=0;this.loc="";this.conf="";this.time=0}static parse(t){let e=new u;let r=JSON.parse(t);e.addressList=r.addressList;e.delay=r.delay;e.loc=r.loc;e.conf=r.conf;e.time=r.time?r.time:(new Date).getTime();return e}}e.RedirectServerData=u;e["default"]=o},3527:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.registerData=new o}static create(){let t=new a;super.initMsg(t);t.command=s.default.Command.REGISTER;t.data=t.registerData=o.create();return t}send(){super.send()}}class o{constructor(){this.appId="";this.regId=""}static create(){let t=new o;t.appId=n.default.appid;t.regId=n.default.regId;return t}}e["default"]=a},7078:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(9934));const a=i(r(1754));const o=i(r(2544));const u=i(r(1237));class c extends n.default{constructor(){super(...arguments);this.registerResultData=new l}static parse(t){let e=new c;super.parseMsg(e,t);e.registerResultData=l.parse(e.data);return e}receive(){if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session){u.default.error(`register fail: ${this.data}`);a.default.onError?.call(a.default.onError,{error:`register fail: ${this.data}`});return}if(a.default.cid!=this.registerResultData.cid)s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);a.default.cid=this.registerResultData.cid;a.default.onClientId?.call(a.default.onClientId,{cid:a.default.cid});s.default.set({key:s.default.KEY_CID,data:a.default.cid});a.default.session=this.registerResultData.session;s.default.set({key:s.default.KEY_SESSION,data:a.default.session});a.default.deviceId=this.registerResultData.deviceId;s.default.set({key:s.default.KEY_DEVICE_ID,data:a.default.deviceId});o.default.create().send()}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.cid="";this.session="";this.deviceId="";this.regId=""}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.cid=r.cid;e.session=r.session;e.deviceId=r.deviceId;e.regId=r.regId;return e}}e["default"]=c},5035:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.serverCloseData=new o}static parse(t){let e=new a;super.parseMsg(e,t);e.serverCloseData=o.parse(e.data);return e}receive(){this.data;if(20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code)n.default.allowReconnect=false;n.default.close()}}class o{constructor(){this.code=-1;this.msg=""}static parse(t){let e=new o;let r=JSON.parse(t);e.code=r.code;e.msg=r.msg;return e}}e["default"]=a},538:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.addPhoneInfoResultData=new o}static parse(t){let e=new a;super.parseActionMsg(e,t);e.addPhoneInfoResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.addPhoneInfoResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg});n.default.set({key:n.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})}}class o{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new o;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=a},7821:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.bindAliasResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.bindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`bind alias result`,this.bindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},217:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.feedbackResultData=new o}static parse(t){let e=new a;super.parseActionMsg(e,t);e.feedbackResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.feedbackResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"})}}class o{constructor(){this.actionId="";this.taskId="";this.result=""}static parse(t){let e=new o;let r=JSON.parse(t);e.actionId=r.actionId;e.taskId=r.taskId;e.result=r.result;return e}}e["default"]=a},7156:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(1754));const a=i(r(9214));const o=i(r(652));class u extends a.default{constructor(){super(...arguments);this.pushMessageData=new c}static parse(t){let e=new u;super.parseActionMsg(e,t);e.pushMessageData=c.parse(e.actionMsgData.msgData);return e}receive(){this.pushMessageData;if(this.pushMessageData.appId!=s.default.appid||!this.pushMessageData.messageid||!this.pushMessageData.taskId)this.stringify();o.default.create(this,o.default.ActionId.RECEIVE).send();o.default.create(this,o.default.ActionId.MP_RECEIVE).send();if(this.actionMsgData.msgExtraData&&s.default.onPushMsg)s.default.onPushMsg?.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData})}}class c{constructor(){this.id="";this.appKey="";this.appId="";this.messageid="";this.taskId="";this.actionChain=[];this.cdnType=""}static parse(t){let e=new c;let r=JSON.parse(t);e.id=r.id;e.appKey=r.appKey;e.appId=r.appId;e.messageid=r.messageid;e.taskId=r.taskId;e.actionChain=r.actionChain;e.cdnType=r.cdnType;return e}}class l{constructor(){this.type="";this.actionid="";this.do=""}}l.Type=(n=class{},n.GO_TO="goto",n.TRANSMIT="transmit",n);e["default"]=u},7303:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9214));class s extends n.default{constructor(){super(...arguments);this.setModeResultData=new a}static parse(t){let e=new s;super.parseActionMsg(e,t);e.setModeResultData=a.parse(e.actionMsgData.msgData);return e}receive(){this.setModeResultData;let t=n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg})}}class a{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new a;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=s},6063:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.setTagResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.setTagResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`set tag result`,this.setTagResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg});n.default.set({key:n.default.KEY_SET_TAG_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=0;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},7923:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.unbindAliasResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.unbindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`unbind alias result`,this.unbindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},9285:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(t){this.delay=10;this.delay=t}start(){this.cancel();let t=this;this.timer=setInterval((function(){t.run()}),this.delay)}cancel(){if(this.timer)clearInterval(this.timer)}}e["default"]=r},1571:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6561));const a=i(r(9285));class o extends a.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send()}refresh(){this.delay=60*1e3;this.start()}}o.INTERVAL=60*1e3;o.InstanceHolder=(n=class{},n.instance=new o(o.INTERVAL),n);e["default"]=o},5574:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4736));const s=i(r(323));var a;(function(t){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let r=(0,n.default)("9223372036854775808");function i(t){let e=a(t);let r=o(e);let i=r[1];let n=r[0];return u(i)+u(n)}t.to_getui=i;function a(t){let e=s.default.md5Hex(t);let r=c(e);r[6]&=15;r[6]|=48;r[8]&=63;r[8]|=128;return r}function o(t){let e=(0,n.default)(0);let r=(0,n.default)(0);for(let r=0;r<8;r++)e=e.multiply(256).plus((0,n.default)(255&t[r]));for(let e=8;e<16;e++)r=r.multiply(256).plus((0,n.default)(255&t[e]));return[e,r]}function u(t){if(t>=r)t=r.multiply(2).minus(t);let i="";for(;t>(0,n.default)(0);t=t.divide(62))i+=e.charAt(Number(t.divmod(62).remainder));return i}function c(t){let e=t.length;if(e%2!=0)return[];let r=new Array;for(let i=0;i<e;i+=2)r.push(parseInt(t.substring(i,i+2),16));return r}})(a||(a={}));e["default"]=a},323:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2620));const s=i(r(1354));const a=i(r(1754));var o;(function(t){let e;let r;let i;let o;let u=new n.default;let c=s.default.mode.CBC;let l=s.default.pad.Pkcs7;let f=s.default.AES;t.algorithmMap=new Map([["aes",s.default.AES]]);t.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]);t.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]);function h(){e=s.default.MD5((new Date).getTime().toString());r=s.default.MD5(e);u.setPublicKey(a.default.publicKey);e.toString(s.default.enc.Hex);r.toString(s.default.enc.Hex);i=u.encrypt(e.toString(s.default.enc.Hex));o=u.encrypt(r.toString(s.default.enc.Hex))}t.resetKey=h;function d(e,r,i){f=t.algorithmMap.get(e);c=t.modeMap.get(r);l=t.paddingMap.get(i)}t.setEncryptParams=d;function p(t){return f.encrypt(t,e,{iv:r,mode:c,padding:l}).toString()}t.encrypt=p;function v(t){return f.decrypt(t,e,{iv:r,mode:c,padding:l}).toString(s.default.enc.Utf8)}t.decrypt=v;function g(t){return s.default.SHA256(t).toString(s.default.enc.Base64)}t.sha256=g;function y(t){return s.default.MD5(t).toString(s.default.enc.Hex)}t.md5Hex=y;function m(){return i?i:""}t.getEncryptedSecretKey=m;function w(){return o?o:""}t.getEncryptedIV=w})(o||(o={}));e["default"]=o},1237:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{static info(...t){if(this.debugMode)console.info(`[GtPush]`,t)}static error(...t){console.error(`[GtPush]`,t)}}r.debugMode=false;e["default"]=r},2620:(t,e,r)=>{"use strict";r.r(e);r.d(e,{JSEncrypt:()=>wt,default:()=>St});var i="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return i.charAt(t)}function s(t,e){return t&e}function a(t,e){return t|e}function o(t,e){return t^e}function u(t,e){return t&~e}function c(t){if(0==t)return-1;var e=0;if(0==(65535&t)){t>>=16;e+=16}if(0==(255&t)){t>>=8;e+=8}if(0==(15&t)){t>>=4;e+=4}if(0==(3&t)){t>>=2;e+=2}if(0==(1&t))++e;return e}function l(t){var e=0;while(0!=t){t&=t-1;++e}return e}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="=";function d(t){var e;var r;var i="";for(e=0;e+3<=t.length;e+=3){r=parseInt(t.substring(e,e+3),16);i+=f.charAt(r>>6)+f.charAt(63&r)}if(e+1==t.length){r=parseInt(t.substring(e,e+1),16);i+=f.charAt(r<<2)}else if(e+2==t.length){r=parseInt(t.substring(e,e+2),16);i+=f.charAt(r>>2)+f.charAt((3&r)<<4)}while((3&i.length)>0)i+=h;return i}function p(t){var e="";var r;var i=0;var s=0;for(r=0;r<t.length;++r){if(t.charAt(r)==h)break;var a=f.indexOf(t.charAt(r));if(a<0)continue;if(0==i){e+=n(a>>2);s=3&a;i=1}else if(1==i){e+=n(s<<2|a>>4);s=15&a;i=2}else if(2==i){e+=n(s);e+=n(a>>2);s=3&a;i=3}else{e+=n(s<<2|a>>4);e+=n(15&a);i=0}}if(1==i)e+=n(s<<2);return e}function v(t){var e=p(t);var r;var i=[];for(r=0;2*r<e.length;++r)i[r]=parseInt(e.substring(2*r,2*r+2),16);return i}var g;var y={decode:function(t){var e;if(void 0===g){var r="0123456789ABCDEF";var i=" \f\n\r\t \u2028\u2029";g={};for(e=0;e<16;++e)g[r.charAt(e)]=e;r=r.toLowerCase();for(e=10;e<16;++e)g[r.charAt(e)]=e;for(e=0;e<i.length;++e)g[i.charAt(e)]=-1}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=g[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=2){n[n.length]=s;s=0;a=0}else s<<=4}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var m;var w={decode:function(t){var e;if(void 0===m){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i="= \f\n\r\t \u2028\u2029";m=Object.create(null);for(e=0;e<64;++e)m[r.charAt(e)]=e;m["-"]=62;m["_"]=63;for(e=0;e<i.length;++e)m[i.charAt(e)]=-1}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=m[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=4){n[n.length]=s>>16;n[n.length]=s>>8&255;n[n.length]=255&s;s=0;a=0}else s<<=6}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16;n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=w.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return w.decode(t)}};var S=1e13;var _=function(){function t(t){this.buf=[+t||0]}t.prototype.mulAdd=function(t,e){var r=this.buf;var i=r.length;var n;var s;for(n=0;n<i;++n){s=r[n]*t+e;if(s<S)e=0;else{e=0|s/S;s-=e*S}r[n]=s}if(e>0)r[n]=e};t.prototype.sub=function(t){var e=this.buf;var r=e.length;var i;var n;for(i=0;i<r;++i){n=e[i]-t;if(n<0){n+=S;t=1}else t=0;e[i]=n}while(0===e[e.length-1])e.pop()};t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");var e=this.buf;var r=e[e.length-1].toString();for(var i=e.length-2;i>=0;--i)r+=(S+e[i]).toString().substring(1);return r};t.prototype.valueOf=function(){var t=this.buf;var e=0;for(var r=t.length-1;r>=0;--r)e=e*S+t[r];return e};t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this};return t}();var b="…";var E=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;var D=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function M(t,e){if(t.length>e)t=t.substring(0,e)+b;return t}var T=function(){function t(e,r){this.hexDigits="0123456789ABCDEF";if(e instanceof t){this.enc=e.enc;this.pos=e.pos}else{this.enc=e;this.pos=r}}t.prototype.get=function(t){if(void 0===t)t=this.pos++;if(t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]};t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)};t.prototype.hexDump=function(t,e,r){var i="";for(var n=t;n<e;++n){i+=this.hexByte(this.get(n));if(true!==r)switch(15&n){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}}return i};t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return false}return true};t.prototype.parseStringISO=function(t,e){var r="";for(var i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r};t.prototype.parseStringUTF=function(t,e){var r="";for(var i=t;i<e;){var n=this.get(i++);if(n<128)r+=String.fromCharCode(n);else if(n>191&&n<224)r+=String.fromCharCode((31&n)<<6|63&this.get(i++));else r+=String.fromCharCode((15&n)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return r};t.prototype.parseStringBMP=function(t,e){var r="";var i;var n;for(var s=t;s<e;){i=this.get(s++);n=this.get(s++);r+=String.fromCharCode(i<<8|n)}return r};t.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e);var n=(r?E:D).exec(i);if(!n)return"Unrecognized time: "+i;if(r){n[1]=+n[1];n[1]+=+n[1]<70?2e3:1900}i=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4];if(n[5]){i+=":"+n[5];if(n[6]){i+=":"+n[6];if(n[7])i+="."+n[7]}}if(n[8]){i+=" UTC";if("Z"!=n[8]){i+=n[8];if(n[9])i+=":"+n[9]}}return i};t.prototype.parseInteger=function(t,e){var r=this.get(t);var i=r>127;var n=i?255:0;var s;var a="";while(r==n&&++t<e)r=this.get(t);s=e-t;if(0===s)return i?-1:0;if(s>4){a=r;s<<=3;while(0==(128&(+a^n))){a=+a<<1;--s}a="("+s+" bit)\n"}if(i)r-=256;var o=new _(r);for(var u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return a+o.toString()};t.prototype.parseBitString=function(t,e,r){var i=this.get(t);var n=(e-t-1<<3)-i;var s="("+n+" bit)\n";var a="";for(var o=t+1;o<e;++o){var u=this.get(o);var c=o==e-1?i:0;for(var l=7;l>=c;--l)a+=u>>l&1?"1":"0";if(a.length>r)return s+M(a,r)}return s+a};t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return M(this.parseStringISO(t,e),r);var i=e-t;var n="("+i+" byte)\n";r/=2;if(i>r)e=t+r;for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));if(i>r)n+=b;return n};t.prototype.parseOID=function(t,e,r){var i="";var n=new _;var s=0;for(var a=t;a<e;++a){var o=this.get(a);n.mulAdd(128,127&o);s+=7;if(!(128&o)){if(""===i){n=n.simplify();if(n instanceof _){n.sub(80);i="2."+n.toString()}else{var u=n<80?n<40?0:1:2;i=u+"."+(n-40*u)}}else i+="."+n.toString();if(i.length>r)return M(i,r);n=new _;s=0}}if(s>0)i+=".incomplete";return i};return t}();var I=function(){function t(t,e,r,i,n){if(!(i instanceof A))throw new Error("Invalid tag value.");this.stream=t;this.header=e;this.length=r;this.tag=i;this.sub=n}t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}};t.prototype.content=function(t){if(void 0===this.tag)return null;if(void 0===t)t=1/0;var e=this.posContent();var r=Math.abs(this.length);if(!this.tag.isUniversal()){if(null!==this.sub)return"("+this.sub.length+" elem)";return this.stream.parseOctetString(e,e+r,t)}switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:if(null!==this.sub)return"("+this.sub.length+" elem)";else return"(no elem)";case 12:return M(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return M(this.stream.parseStringISO(e,e+r),t);case 30:return M(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null};t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"};t.prototype.toPrettyString=function(t){if(void 0===t)t="";var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0)e+="+";e+=this.length;if(this.tag.tagConstructed)e+=" (constructed)";else if(this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub)e+=" (encapsulates)";e+="\n";if(null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t)}return e};t.prototype.posStart=function(){return this.stream.pos};t.prototype.posContent=function(){return this.stream.pos+this.header};t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)};t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),true)};t.decodeLength=function(t){var e=t.get();var r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i<r;++i)e=256*e+t.get();return e};t.prototype.getHexStringValue=function(){var t=this.toHexString();var e=2*this.header;var r=2*this.length;return t.substr(e,r)};t.decode=function(e){var r;if(!(e instanceof T))r=new T(e,0);else r=e;var i=new T(r);var n=new A(r);var s=t.decodeLength(r);var a=r.pos;var o=a-i.pos;var u=null;var c=function(){var e=[];if(null!==s){var i=a+s;while(r.pos<i)e[e.length]=t.decode(r);if(r.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var n=t.decode(r);if(n.tag.isEOC())break;e[e.length]=n}s=a-r.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(n.tagConstructed)u=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber)if(0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s)}return new t(i,o,s,n,u)};return t}();var A=function(){function t(t){var e=t.get();this.tagClass=e>>6;this.tagConstructed=0!==(32&e);this.tagNumber=31&e;if(31==this.tagNumber){var r=new _;do{e=t.get();r.mulAdd(128,127&e)}while(128&e);this.tagNumber=r.simplify()}}t.prototype.isUniversal=function(){return 0===this.tagClass};t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber};return t}();var x;var R=0xdeadbeefcafe;var B=15715070==(16777215&R);var O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var k=(1<<26)/O[O.length-1];var C=function(){function t(t,e,r){if(null!=t)if("number"==typeof t)this.fromNumber(t,e,r);else if(null==e&&"string"!=typeof t)this.fromString(t,256);else this.fromString(t,e)}t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(4==t)e=2;else return this.toRadix(t);var r=(1<<e)-1;var i;var s=false;var a="";var o=this.t;var u=this.DB-o*this.DB%e;if(o-- >0){if(u<this.DB&&(i=this[o]>>u)>0){s=true;a=n(i)}while(o>=0){if(u<e){i=(this[o]&(1<<u)-1)<<e-u;i|=this[--o]>>(u+=this.DB-e)}else{i=this[o]>>(u-=e)&r;if(u<=0){u+=this.DB;--o}}if(i>0)s=true;if(s)a+=n(i)}}return s?a:"0"};t.prototype.negate=function(){var e=H();t.ZERO.subTo(this,e);return e};t.prototype.abs=function(){return this.s<0?this.negate():this};t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;e=r-t.t;if(0!=e)return this.s<0?-e:e;while(--r>=0)if(0!=(e=this[r]-t[r]))return e;return 0};t.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};t.prototype.mod=function(e){var r=H();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(t.ZERO)>0)e.subTo(r,r);return r};t.prototype.modPowInt=function(t,e){var r;if(t<256||e.isEven())r=new P(e);else r=new V(e);return this.exp(t,r)};t.prototype.clone=function(){var t=H();this.copyTo(t);return t};t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;else if(0==this.t)return-1}else if(1==this.t)return this[0];else if(0==this.t)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]};t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24};t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};t.prototype.signum=function(){if(this.s<0)return-1;else if(this.t<=0||1==this.t&&this[0]<=0)return 0;else return 1};t.prototype.toByteArray=function(){var t=this.t;var e=[];e[0]=this.s;var r=this.DB-t*this.DB%8;var i;var n=0;if(t-- >0){if(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r)e[n++]=i|this.s<<this.DB-r;while(t>=0){if(r<8){i=(this[t]&(1<<r)-1)<<8-r;i|=this[--t]>>(r+=this.DB-8)}else{i=this[t]>>(r-=8)&255;if(r<=0){r+=this.DB;--t}}if(0!=(128&i))i|=-256;if(0==n&&(128&this.s)!=(128&i))++n;if(n>0||i!=this.s)e[n++]=i}}return e};t.prototype.equals=function(t){return 0==this.compareTo(t)};t.prototype.min=function(t){return this.compareTo(t)<0?this:t};t.prototype.max=function(t){return this.compareTo(t)>0?this:t};t.prototype.and=function(t){var e=H();this.bitwiseTo(t,s,e);return e};t.prototype.or=function(t){var e=H();this.bitwiseTo(t,a,e);return e};t.prototype.xor=function(t){var e=H();this.bitwiseTo(t,o,e);return e};t.prototype.andNot=function(t){var e=H();this.bitwiseTo(t,u,e);return e};t.prototype.not=function(){var t=H();for(var e=0;e<this.t;++e)t[e]=this.DM&~this[e];t.t=this.t;t.s=~this.s;return t};t.prototype.shiftLeft=function(t){var e=H();if(t<0)this.rShiftTo(-t,e);else this.lShiftTo(t,e);return e};t.prototype.shiftRight=function(t){var e=H();if(t<0)this.lShiftTo(-t,e);else this.rShiftTo(t,e);return e};t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+c(this[t]);if(this.s<0)return this.t*this.DB;return-1};t.prototype.bitCount=function(){var t=0;var e=this.s&this.DM;for(var r=0;r<this.t;++r)t+=l(this[r]^e);return t};t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);if(e>=this.t)return 0!=this.s;return 0!=(this[e]&1<<t%this.DB)};t.prototype.setBit=function(t){return this.changeBit(t,a)};t.prototype.clearBit=function(t){return this.changeBit(t,u)};t.prototype.flipBit=function(t){return this.changeBit(t,o)};t.prototype.add=function(t){var e=H();this.addTo(t,e);return e};t.prototype.subtract=function(t){var e=H();this.subTo(t,e);return e};t.prototype.multiply=function(t){var e=H();this.multiplyTo(t,e);return e};t.prototype.divide=function(t){var e=H();this.divRemTo(t,e,null);return e};t.prototype.remainder=function(t){var e=H();this.divRemTo(t,null,e);return e};t.prototype.divideAndRemainder=function(t){var e=H();var r=H();this.divRemTo(t,e,r);return[e,r]};t.prototype.modPow=function(t,e){var r=t.bitLength();var i;var n=Y(1);var s;if(r<=0)return n;else if(r<18)i=1;else if(r<48)i=3;else if(r<144)i=4;else if(r<768)i=5;else i=6;if(r<8)s=new P(e);else if(e.isEven())s=new L(e);else s=new V(e);var a=[];var o=3;var u=i-1;var c=(1<<i)-1;a[1]=s.convert(this);if(i>1){var l=H();s.sqrTo(a[1],l);while(o<=c){a[o]=H();s.mulTo(l,a[o-2],a[o]);o+=2}}var f=t.t-1;var h;var d=true;var p=H();var v;r=W(t[f])-1;while(f>=0){if(r>=u)h=t[f]>>r-u&c;else{h=(t[f]&(1<<r+1)-1)<<u-r;if(f>0)h|=t[f-1]>>this.DB+r-u}o=i;while(0==(1&h)){h>>=1;--o}if((r-=o)<0){r+=this.DB;--f}if(d){a[h].copyTo(n);d=false}else{while(o>1){s.sqrTo(n,p);s.sqrTo(p,n);o-=2}if(o>0)s.sqrTo(n,p);else{v=n;n=p;p=v}s.mulTo(p,a[h],n)}while(f>=0&&0==(t[f]&1<<r)){s.sqrTo(n,p);v=n;n=p;p=v;if(--r<0){r=this.DB-1;--f}}}return s.revert(n)};t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||0==e.signum())return t.ZERO;var i=e.clone();var n=this.clone();var s=Y(1);var a=Y(0);var o=Y(0);var u=Y(1);while(0!=i.signum()){while(i.isEven()){i.rShiftTo(1,i);if(r){if(!s.isEven()||!a.isEven()){s.addTo(this,s);a.subTo(e,a)}s.rShiftTo(1,s)}else if(!a.isEven())a.subTo(e,a);a.rShiftTo(1,a)}while(n.isEven()){n.rShiftTo(1,n);if(r){if(!o.isEven()||!u.isEven()){o.addTo(this,o);u.subTo(e,u)}o.rShiftTo(1,o)}else if(!u.isEven())u.subTo(e,u);u.rShiftTo(1,u)}if(i.compareTo(n)>=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(u,a)}else{n.subTo(i,n);if(r)o.subTo(s,o);u.subTo(a,u)}}if(0!=n.compareTo(t.ONE))return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;if(u.signum()<0)return u.add(e);else return u};t.prototype.pow=function(t){return this.exp(t,new N)};t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone();var r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r;r=i}var n=e.getLowestSetBit();var s=r.getLowestSetBit();if(s<0)return e;if(n<s)s=n;if(s>0){e.rShiftTo(s,e);r.rShiftTo(s,r)}while(e.signum()>0){if((n=e.getLowestSetBit())>0)e.rShiftTo(n,e);if((n=r.getLowestSetBit())>0)r.rShiftTo(n,r);if(e.compareTo(r)>=0){e.subTo(r,e);e.rShiftTo(1,e)}else{r.subTo(e,r);r.rShiftTo(1,r)}}if(s>0)r.lShiftTo(s,r);return r};t.prototype.isProbablePrime=function(t){var e;var r=this.abs();if(1==r.t&&r[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(r[0]==O[e])return true;return false}if(r.isEven())return false;e=1;while(e<O.length){var i=O[e];var n=e+1;while(n<O.length&&i<k)i*=O[n++];i=r.modInt(i);while(e<n)if(i%O[e++]==0)return false}return r.millerRabin(t)};t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t;t.s=this.s};t.prototype.fromInt=function(t){this.t=1;this.s=t<0?-1:0;if(t>0)this[0]=t;else if(t<-1)this[0]=t+this.DV;else this.t=0};t.prototype.fromString=function(e,r){var i;if(16==r)i=4;else if(8==r)i=3;else if(256==r)i=8;else if(2==r)i=1;else if(32==r)i=5;else if(4==r)i=2;else{this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length;var s=false;var a=0;while(--n>=0){var o=8==i?255&+e[n]:G(e,n);if(o<0){if("-"==e.charAt(n))s=true;continue}s=false;if(0==a)this[this.t++]=o;else if(a+i>this.DB){this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a;this[this.t++]=o>>this.DB-a}else this[this.t-1]|=o<<a;a+=i;if(a>=this.DB)a-=this.DB}if(8==i&&0!=(128&+e[0])){this.s=-1;if(a>0)this[this.t-1]|=(1<<this.DB-a)-1<<a}this.clamp();if(s)t.ZERO.subTo(this,this)};t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t};t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t;e.s=this.s};t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0);e.s=this.s};t.prototype.lShiftTo=function(t,e){var r=t%this.DB;var i=this.DB-r;var n=(1<<i)-1;var s=Math.floor(t/this.DB);var a=this.s<<r&this.DM;for(var o=this.t-1;o>=0;--o){e[o+s+1]=this[o]>>i|a;a=(this[o]&n)<<r}for(var o=s-1;o>=0;--o)e[o]=0;e[s]=a;e.t=this.t+s+1;e.s=this.s;e.clamp()};t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB;var n=this.DB-i;var s=(1<<i)-1;e[0]=this[r]>>i;for(var a=r+1;a<this.t;++a){e[a-r-1]|=(this[a]&s)<<n;e[a-r]=this[a]>>i}if(i>0)e[this.t-r-1]|=(this.s&s)<<n;e.t=this.t-r;e.clamp()};t.prototype.subTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]-t[r];e[r++]=i&this.DM;i>>=this.DB}if(t.t<this.t){i-=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB}i+=this.s}else{i+=this.s;while(r<t.t){i-=t[r];e[r++]=i&this.DM;i>>=this.DB}i-=t.s}e.s=i<0?-1:0;if(i<-1)e[r++]=this.DV+i;else if(i>0)e[r++]=i;e.t=r;e.clamp()};t.prototype.multiplyTo=function(e,r){var i=this.abs();var n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r[s]=0;for(s=0;s<n.t;++s)r[s+i.t]=i.am(0,n[s],r,s,0,i.t);r.s=0;r.clamp();if(this.s!=e.s)t.ZERO.subTo(r,r)};t.prototype.squareTo=function(t){var e=this.abs();var r=t.t=2*e.t;while(--r>=0)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);if((t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV){t[r+e.t]-=e.DV;t[r+e.t+1]=1}}if(t.t>0)t[t.t-1]+=e.am(r,e[r],t,2*r,0,1);t.s=0;t.clamp()};t.prototype.divRemTo=function(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t<n.t){if(null!=r)r.fromInt(0);if(null!=i)this.copyTo(i);return}if(null==i)i=H();var a=H();var o=this.s;var u=e.s;var c=this.DB-W(n[n.t-1]);if(c>0){n.lShiftTo(c,a);s.lShiftTo(c,i)}else{n.copyTo(a);s.copyTo(i)}var l=a.t;var f=a[l-1];if(0==f)return;var h=f*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0);var d=this.FV/h;var p=(1<<this.F1)/h;var v=1<<this.F2;var g=i.t;var y=g-l;var m=null==r?H():r;a.dlShiftTo(y,m);if(i.compareTo(m)>=0){i[i.t++]=1;i.subTo(m,i)}t.ONE.dlShiftTo(l,m);m.subTo(a,a);while(a.t<l)a[a.t++]=0;while(--y>=0){var w=i[--g]==f?this.DM:Math.floor(i[g]*d+(i[g-1]+v)*p);if((i[g]+=a.am(0,w,i,y,0,l))<w){a.dlShiftTo(y,m);i.subTo(m,i);while(i[g]<--w)i.subTo(m,i)}}if(null!=r){i.drShiftTo(l,r);if(o!=u)t.ZERO.subTo(r,r)}i.t=l;i.clamp();if(c>0)i.rShiftTo(c,i);if(o<0)t.ZERO.subTo(i,i)};t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;e=e*(2-(15&t)*e)&15;e=e*(2-(255&t)*e)&255;e=e*(2-((65535&t)*e&65535))&65535;e=e*(2-t*e%this.DV)%this.DV;return e>0?this.DV-e:-e};t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)};t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=H();var n=H();var s=r.convert(this);var a=W(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<<a)>0)r.mulTo(n,s,i);else{var o=i;i=n;n=o}}return r.revert(i)};t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))};t.prototype.toRadix=function(t){if(null==t)t=10;if(0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t);var r=Math.pow(t,e);var i=Y(r);var n=H();var s=H();var a="";this.divRemTo(i,n,s);while(n.signum()>0){a=(r+s.intValue()).toString(t).substr(1)+a;n.divRemTo(i,n,s)}return s.intValue().toString(t)+a};t.prototype.fromRadix=function(e,r){this.fromInt(0);if(null==r)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i);var s=false;var a=0;var o=0;for(var u=0;u<e.length;++u){var c=G(e,u);if(c<0){if("-"==e.charAt(u)&&0==this.signum())s=true;continue}o=r*o+c;if(++a>=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0)}if(s)t.ZERO.subTo(this,this)};t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(t.ONE.shiftLeft(e-1),this)}}else{var n=[];var s=7&e;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<<s)-1;else n[0]=0;this.fromString(n,256)}};t.prototype.bitwiseTo=function(t,e,r){var i;var n;var s=Math.min(t.t,this.t);for(i=0;i<s;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){n=t.s&this.DM;for(i=s;i<this.t;++i)r[i]=e(this[i],n);r.t=this.t}else{n=this.s&this.DM;for(i=s;i<t.t;++i)r[i]=e(n,t[i]);r.t=t.t}r.s=e(this.s,t.s);r.clamp()};t.prototype.changeBit=function(e,r){var i=t.ONE.shiftLeft(e);this.bitwiseTo(i,r,i);return i};t.prototype.addTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]+t[r];e[r++]=i&this.DM;i>>=this.DB}if(t.t<this.t){i+=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB}i+=this.s}else{i+=this.s;while(r<t.t){i+=t[r];e[r++]=i&this.DM;i>>=this.DB}i+=t.s}e.s=i<0?-1:0;if(i>0)e[r++]=i;else if(i<-1)e[r++]=this.DV+i;e.t=r;e.clamp()};t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t);++this.t;this.clamp()};t.prototype.dAddOffset=function(t,e){if(0==t)return;while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV){this[e]-=this.DV;if(++e>=this.t)this[this.t++]=0;++this[e]}};t.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);r.s=0;r.t=i;while(i>0)r[--i]=0;for(var n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()};t.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;r.s=0;while(--i>=0)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp();r.drShiftTo(1,r)};t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t;var r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r};t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE);var i=r.getLowestSetBit();if(i<=0)return false;var n=r.shiftRight(i);e=e+1>>1;if(e>O.length)e=O.length;var s=H();for(var a=0;a<e;++a){s.fromInt(O[Math.floor(Math.random()*O.length)]);var o=s.modPow(n,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(r)){var u=1;while(u++<i&&0!=o.compareTo(r)){o=o.modPowInt(2,this);if(0==o.compareTo(t.ONE))return false}if(0!=o.compareTo(r))return false}}return true};t.prototype.square=function(){var t=H();this.squareTo(t);return t};t.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone();var i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var n=r;r=i;i=n}var s=r.getLowestSetBit();var a=i.getLowestSetBit();if(a<0){e(r);return}if(s<a)a=s;if(a>0){r.rShiftTo(a,r);i.rShiftTo(a,i)}var o=function(){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r)}else{i.subTo(r,i);i.rShiftTo(1,i)}if(!(r.signum()>0)){if(a>0)i.lShiftTo(a,i);setTimeout((function(){e(i)}),0)}else setTimeout(o,0)};setTimeout(o,10)};t.prototype.fromNumberAsync=function(e,r,i,n){if("number"==typeof r)if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);var s=this;var o=function(){s.dAddOffset(2,0);if(s.bitLength()>e)s.subTo(t.ONE.shiftLeft(e-1),s);if(s.isProbablePrime(r))setTimeout((function(){n()}),0);else setTimeout(o,0)};setTimeout(o,0)}else{var u=[];var c=7&e;u.length=(e>>3)+1;r.nextBytes(u);if(c>0)u[0]&=(1<<c)-1;else u[0]=0;this.fromString(u,256)}};return t}();var N=function(){function t(){}t.prototype.convert=function(t){return t};t.prototype.revert=function(t){return t};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)};t.prototype.sqrTo=function(t,e){t.squareTo(e)};return t}();var P=function(){function t(t){this.m=t}t.prototype.convert=function(t){if(t.s<0||t.compareTo(this.m)>=0)return t.mod(this.m);else return t};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();var V=function(){function t(t){this.m=t;this.mp=t.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<<t.DB-15)-1;this.mt2=2*t.t}t.prototype.convert=function(t){var e=H();t.abs().dlShiftTo(this.m.t,e);e.divRemTo(this.m,null,e);if(t.s<0&&e.compareTo(C.ZERO)>0)this.m.subTo(e,e);return e};t.prototype.revert=function(t){var e=H();t.copyTo(e);this.reduce(e);return e};t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e];var i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;r=e+this.m.t;t[r]+=this.m.am(0,i,t,e,0,this.m.t);while(t[r]>=t.DV){t[r]-=t.DV;t[++r]++}}t.clamp();t.drShiftTo(this.m.t,t);if(t.compareTo(this.m)>=0)t.subTo(this.m,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();var L=function(){function t(t){this.m=t;this.r2=H();this.q3=H();C.ONE.dlShiftTo(2*t.t,this.r2);this.mu=this.r2.divide(t)}t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);else if(t.compareTo(this.m)<0)return t;else{var e=H();t.copyTo(e);this.reduce(e);return e}};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2);if(t.t>this.m.t+1){t.t=this.m.t+1;t.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();function H(){return new C(null)}function K(t,e){return new C(t,e)}var U="undefined"!==typeof navigator;if(U&&B&&"Microsoft Internet Explorer"==navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){var o=32767&r;var u=r>>15;while(--a>=0){var c=32767&this[e];var l=this[e++]>>15;var f=u*c+l*o;c=o*c+((32767&f)<<15)+i[n]+(1073741823&s);s=(c>>>30)+(f>>>15)+u*l+(s>>>30);i[n++]=1073741823&c}return s};x=30}else if(U&&B&&"Netscape"!=navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){while(--a>=0){var o=r*this[e++]+i[n]+s;s=Math.floor(o/67108864);i[n++]=67108863&o}return s};x=26}else{C.prototype.am=function t(e,r,i,n,s,a){var o=16383&r;var u=r>>14;while(--a>=0){var c=16383&this[e];var l=this[e++]>>14;var f=u*c+l*o;c=o*c+((16383&f)<<14)+i[n]+s;s=(c>>28)+(f>>14)+u*l;i[n++]=268435455&c}return s};x=28}C.prototype.DB=x;C.prototype.DM=(1<<x)-1;C.prototype.DV=1<<x;var j=52;C.prototype.FV=Math.pow(2,j);C.prototype.F1=j-x;C.prototype.F2=2*x-j;var q=[];var F;var z;F="0".charCodeAt(0);for(z=0;z<=9;++z)q[F++]=z;F="a".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;F="A".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;function G(t,e){var r=q[t.charCodeAt(e)];return null==r?-1:r}function Y(t){var e=H();e.fromInt(t);return e}function W(t){var e=1;var r;if(0!=(r=t>>>16)){t=r;e+=16}if(0!=(r=t>>8)){t=r;e+=8}if(0!=(r=t>>4)){t=r;e+=4}if(0!=(r=t>>2)){t=r;e+=2}if(0!=(r=t>>1)){t=r;e+=1}return e}C.ZERO=Y(0);C.ONE=Y(1);var J=function(){function t(){this.i=0;this.j=0;this.S=[]}t.prototype.init=function(t){var e;var r;var i;for(e=0;e<256;++e)this.S[e]=e;r=0;for(e=0;e<256;++e){r=r+this.S[e]+t[e%t.length]&255;i=this.S[e];this.S[e]=this.S[r];this.S[r]=i}this.i=0;this.j=0};t.prototype.next=function(){var t;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;t=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=t;return this.S[t+this.S[this.i]&255]};return t}();function Z(){return new J}var $=256;var X;var Q=null;var tt;if(null==Q){Q=[];tt=0;var et=void 0;var rt=0;var it=function(t){rt=rt||0;if(rt>=256||tt>=rng_psize)return;try{var e=t.x+t.y;Q[tt++]=255&e;rt+=1}catch(t){}}}function nt(){if(null==X){X=Z();while(tt<$){var t=Math.floor(65536*Math.random());Q[tt++]=255&t}X.init(Q);for(tt=0;tt<Q.length;++tt)Q[tt]=0;tt=0}return X.next()}var st=function(){function t(){}t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=nt()};return t}();function at(t,e){if(e<t.length+22){console.error("Message too long for RSA");return null}var r=e-t.length-6;var i="";for(var n=0;n<r;n+=2)i+="ff";var s="0001"+i+"00"+t;return K(s,16)}function ot(t,e){if(e<t.length+11){console.error("Message too long for RSA");return null}var r=[];var i=t.length-1;while(i>=0&&e>0){var n=t.charCodeAt(i--);if(n<128)r[--e]=n;else if(n>127&&n<2048){r[--e]=63&n|128;r[--e]=n>>6|192}else{r[--e]=63&n|128;r[--e]=n>>6&63|128;r[--e]=n>>12|224}}r[--e]=0;var s=new st;var a=[];while(e>2){a[0]=0;while(0==a[0])s.nextBytes(a);r[--e]=a[0]}r[--e]=2;r[--e]=0;return new C(r)}var ut=function(){function t(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null}t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)};t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);var r=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(r)<0)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)};t.prototype.setPublic=function(t,e){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16)}else console.error("Invalid RSA public key")};t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3;var r=ot(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var n=i.toString(16);var s=n.length;for(var a=0;a<2*e-s;a++)n="0"+n;return n};t.prototype.setPrivate=function(t,e,r){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16)}else console.error("Invalid RSA private key")};t.prototype.setPrivateEx=function(t,e,r,i,n,s,a,o){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16);this.p=K(i,16);this.q=K(n,16);this.dmp1=K(s,16);this.dmq1=K(a,16);this.coeff=K(o,16)}else console.error("Invalid RSA private key")};t.prototype.generate=function(t,e){var r=new st;var i=t>>1;this.e=parseInt(e,16);var n=new C(e,16);for(;;){for(;;){this.p=new C(t-i,1,r);if(0==this.p.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.p.isProbablePrime(10))break}for(;;){this.q=new C(i,1,r);if(0==this.q.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q;this.q=s}var a=this.p.subtract(C.ONE);var o=this.q.subtract(C.ONE);var u=a.multiply(o);if(0==u.gcd(n).compareTo(C.ONE)){this.n=this.p.multiply(this.q);this.d=n.modInverse(u);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}};t.prototype.decrypt=function(t){var e=K(t,16);var r=this.doPrivate(e);if(null==r)return null;return ct(r,this.n.bitLength()+7>>3)};t.prototype.generateAsync=function(t,e,r){var i=new st;var n=t>>1;this.e=parseInt(e,16);var s=new C(e,16);var a=this;var o=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q;a.q=t}var e=a.p.subtract(C.ONE);var i=a.q.subtract(C.ONE);var n=e.multiply(i);if(0==n.gcd(s).compareTo(C.ONE)){a.n=a.p.multiply(a.q);a.d=s.modInverse(n);a.dmp1=a.d.mod(e);a.dmq1=a.d.mod(i);a.coeff=a.q.modInverse(a.p);setTimeout((function(){r()}),0)}else setTimeout(o,0)};var u=function(){a.q=H();a.q.fromNumberAsync(n,1,i,(function(){a.q.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.q.isProbablePrime(10))setTimeout(e,0);else setTimeout(u,0)}))}))};var c=function(){a.p=H();a.p.fromNumberAsync(t-n,1,i,(function(){a.p.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.p.isProbablePrime(10))setTimeout(u,0);else setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(o,0)};t.prototype.sign=function(t,e,r){var i=ht(r);var n=i+e(t).toString();var s=at(n,this.n.bitLength()/4);if(null==s)return null;var a=this.doPrivate(s);if(null==a)return null;var o=a.toString(16);if(0==(1&o.length))return o;else return"0"+o};t.prototype.verify=function(t,e,r){var i=K(e,16);var n=this.doPublic(i);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,"");var a=dt(s);return a==r(t).toString()};t.prototype.encryptLong=function(t){var e=this;var r="";var i=(this.n.bitLength()+7>>3)-11;var n=this.setSplitChn(t,i);n.forEach((function(t){r+=e.encrypt(t)}));return r};t.prototype.decryptLong=function(t){var e="";var r=this.n.bitLength()+7>>3;var i=2*r;if(t.length>i){var n=t.match(new RegExp(".{1,"+i+"}","g"))||[];var s=[];for(var a=0;a<n.length;a++){var o=K(n[a],16);var u=this.doPrivate(o);if(null==u)return null;s.push(u)}e=lt(s,r)}else e=this.decrypt(t);return e};t.prototype.setSplitChn=function(t,e,r){if(void 0===r)r=[];var i=t.split("");var n=0;for(var s=0;s<i.length;s++){var a=i[s].charCodeAt(0);if(a<=127)n+=1;else if(a<=2047)n+=2;else if(a<=65535)n+=3;else n+=4;if(n>e){var o=t.substring(0,s);r.push(o);return this.setSplitChn(t.substring(s),e,r)}}r.push(t);return r};return t}();function ct(t,e){var r=t.toByteArray();var i=0;while(i<r.length&&0==r[i])++i;if(r.length-i!=e-1||2!=r[i])return null;++i;while(0!=r[i])if(++i>=r.length)return null;var n="";while(++i<r.length){var s=255&r[i];if(s<128)n+=String.fromCharCode(s);else if(s>191&&s<224){n+=String.fromCharCode((31&s)<<6|63&r[i+1]);++i}else{n+=String.fromCharCode((15&s)<<12|(63&r[i+1])<<6|63&r[i+2]);i+=2}}return n}function lt(t,e){var r=[];for(var i=0;i<t.length;i++){var n=t[i];var s=n.toByteArray();var a=0;while(a<s.length&&0==s[a])++a;if(s.length-a!=e-1||2!=s[a])return null;++a;while(0!=s[a])if(++a>=s.length)return null;r=r.concat(s.slice(a+1))}var o=r;var u=-1;var c="";while(++u<o.length){var l=255&o[u];if(l<128)c+=String.fromCharCode(l);else if(l>191&&l<224){c+=String.fromCharCode((31&l)<<6|63&o[u+1]);++u}else{c+=String.fromCharCode((15&l)<<12|(63&o[u+1])<<6|63&o[u+2]);u+=2}}return c}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ft[t]||""}function dt(t){for(var e in ft)if(ft.hasOwnProperty(e)){var r=ft[e];var i=r.length;if(t.substr(0,i)==r)return t.substr(i)}return t}var pt={};pt.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");var i=function(){};i.prototype=e.prototype;t.prototype=new i;t.prototype.constructor=t;t.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor)e.prototype.constructor=e;if(r){var n;for(n in r)t.prototype[n]=r[n];var s=function(){},a=["toString","valueOf"];try{if(/MSIE/.test(navigator.userAgent))s=function(t,e){for(n=0;n<a.length;n+=1){var r=a[n],i=e[r];if("function"===typeof i&&i!=Object.prototype[r])t[r]=i}}}catch(t){}s(t.prototype,r)}}};var vt={};if("undefined"==typeof vt.asn1||!vt.asn1)vt.asn1={};vt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);if(e.length%2==1)e="0"+e;return e};this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1)){if(e.length%2==1)e="0"+e;else if(!e.match(/^[0-7]/))e="00"+e}else{var r=e.substr(1);var i=r.length;if(i%2==1)i+=1;else if(!e.match(/^[0-7]/))i+=2;var n="";for(var s=0;s<i;s++)n+="f";var a=new C(n,16);var o=a.xor(t).add(C.ONE);e=o.toString(16).replace(/^-/,"")}return e};this.getPEMStringFromHex=function(t,e){return hextopem(t,e)};this.newObject=function(t){var e=vt,r=e.asn1,i=r.DERBoolean,n=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,d=r.DERTeletexString,p=r.DERIA5String,v=r.DERUTCTime,g=r.DERGeneralizedTime,y=r.DERSequence,m=r.DERSet,w=r.DERTaggedObject,S=r.ASN1Util.newObject;var _=Object.keys(t);if(1!=_.length)throw"key of param shall be only one.";var b=_[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":"))throw"undefined key: "+b;if("bool"==b)return new i(t[b]);if("int"==b)return new n(t[b]);if("bitstr"==b)return new s(t[b]);if("octstr"==b)return new a(t[b]);if("null"==b)return new o(t[b]);if("oid"==b)return new u(t[b]);if("enum"==b)return new c(t[b]);if("utf8str"==b)return new l(t[b]);if("numstr"==b)return new f(t[b]);if("prnstr"==b)return new h(t[b]);if("telstr"==b)return new d(t[b]);if("ia5str"==b)return new p(t[b]);if("utctime"==b)return new v(t[b]);if("gentime"==b)return new g(t[b]);if("seq"==b){var E=t[b];var D=[];for(var M=0;M<E.length;M++){var T=S(E[M]);D.push(T)}return new y({array:D})}if("set"==b){var E=t[b];var D=[];for(var M=0;M<E.length;M++){var T=S(E[M]);D.push(T)}return new m({array:D})}if("tag"==b){var I=t[b];if("[object Array]"===Object.prototype.toString.call(I)&&3==I.length){var A=S(I[2]);return new w({tag:I[0],explicit:I[1],obj:A})}else{var x={};if(void 0!==I.explicit)x.explicit=I.explicit;if(void 0!==I.tag)x.tag=I.tag;if(void 0===I.obj)throw"obj shall be specified for 'tag'.";x.obj=S(I.obj);return new w(x)}}};this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};vt.asn1.ASN1Util.oidHexToInt=function(t){var e="";var r=parseInt(t.substr(0,2),16);var i=Math.floor(r/40);var n=r%40;var e=i+"."+n;var s="";for(var a=2;a<t.length;a+=2){var o=parseInt(t.substr(a,2),16);var u=("00000000"+o.toString(2)).slice(-8);s+=u.substr(1,7);if("0"==u.substr(0,1)){var c=new C(s,2);e=e+"."+c.toString(10);s=""}}return e};vt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2))}return r};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);return i};vt.asn1.ASN1Object=function(){var t=true;var e=null;var r="00";var i="00";var n="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2;var e=t.toString(16);if(e.length%2==1)e="0"+e;if(t<128)return e;else{var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e}};this.getEncodedHex=function(){if(null==this.hTLV||this.isModified){this.hV=this.getFreshValueHex();this.hL=this.getLengthHexFromValue();this.hTLV=this.hT+this.hL+this.hV;this.isModified=false}return this.hTLV};this.getValueHex=function(){this.getEncodedHex();return this.hV};this.getFreshValueHex=function(){return""}};vt.asn1.DERAbstractString=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);var e=null;var r=null;this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(this.s)};this.setStringHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t)this.setString(t);else if("undefined"!=typeof t["str"])this.setString(t["str"]);else if("undefined"!=typeof t["hex"])this.setStringHex(t["hex"])};pt.lang.extend(vt.asn1.DERAbstractString,vt.asn1.ASN1Object);vt.asn1.DERAbstractTime=function(t){vt.asn1.DERAbstractTime.superclass.constructor.call(this);var e=null;var r=null;this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e};this.formatDate=function(t,e,r){var i=this.zeroPadding;var n=this.localDateToUTC(t);var s=String(n.getFullYear());if("utc"==e)s=s.substr(2,2);var a=i(String(n.getMonth()+1),2);var o=i(String(n.getDate()),2);var u=i(String(n.getHours()),2);var c=i(String(n.getMinutes()),2);var l=i(String(n.getSeconds()),2);var f=s+a+o+u+c+l;if(true===r){var h=n.getMilliseconds();if(0!=h){var d=i(String(h),3);d=d.replace(/[0]+$/,"");f=f+"."+d}}return f+"Z"};this.zeroPadding=function(t,e){if(t.length>=e)return t;return new Array(e-t.length+1).join("0")+t};this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(t)};this.setByDateValue=function(t,e,r,i,n,s){var a=new Date(Date.UTC(t,e-1,r,i,n,s,0));this.setByDate(a)};this.getFreshValueHex=function(){return this.hV}};pt.lang.extend(vt.asn1.DERAbstractTime,vt.asn1.ASN1Object);vt.asn1.DERAbstractStructured=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);var e=null;this.setByASN1ObjectArray=function(t){this.hTLV=null;this.isModified=true;this.asn1Array=t};this.appendASN1Object=function(t){this.hTLV=null;this.isModified=true;this.asn1Array.push(t)};this.asn1Array=new Array;if("undefined"!=typeof t)if("undefined"!=typeof t["array"])this.asn1Array=t["array"]};pt.lang.extend(vt.asn1.DERAbstractStructured,vt.asn1.ASN1Object);vt.asn1.DERBoolean=function(){vt.asn1.DERBoolean.superclass.constructor.call(this);this.hT="01";this.hTLV="0101ff"};pt.lang.extend(vt.asn1.DERBoolean,vt.asn1.ASN1Object);vt.asn1.DERInteger=function(t){vt.asn1.DERInteger.superclass.constructor.call(this);this.hT="02";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e)};this.setValueHex=function(t){this.hV=t};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["bigint"])this.setByBigInteger(t["bigint"]);else if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"])};pt.lang.extend(vt.asn1.DERInteger,vt.asn1.ASN1Object);vt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}vt.asn1.DERBitString.superclass.constructor.call(this);this.hT="03";this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null;this.isModified=true;this.hV=t};this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null;this.isModified=true;this.hV=r+e};this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;if(8==e)e=0;for(var r=0;r<=e;r++)t+="0";var i="";for(var r=0;r<t.length-1;r+=8){var n=t.substr(r,8);var s=parseInt(n,2).toString(16);if(1==s.length)s="0"+s;i+=s}this.hTLV=null;this.isModified=true;this.hV="0"+e+i};this.setByBooleanArray=function(t){var e="";for(var r=0;r<t.length;r++)if(true==t[r])e+="1";else e+="0";this.setByBinaryString(e)};this.newFalseArray=function(t){var e=new Array(t);for(var r=0;r<t;r++)e[r]=false;return e};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/))this.setHexValueIncludingUnusedBits(t);else if("undefined"!=typeof t["hex"])this.setHexValueIncludingUnusedBits(t["hex"]);else if("undefined"!=typeof t["bin"])this.setByBinaryString(t["bin"]);else if("undefined"!=typeof t["array"])this.setByBooleanArray(t["array"])};pt.lang.extend(vt.asn1.DERBitString,vt.asn1.ASN1Object);vt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}vt.asn1.DEROctetString.superclass.constructor.call(this,t);this.hT="04"};pt.lang.extend(vt.asn1.DEROctetString,vt.asn1.DERAbstractString);vt.asn1.DERNull=function(){vt.asn1.DERNull.superclass.constructor.call(this);this.hT="05";this.hTLV="0500"};pt.lang.extend(vt.asn1.DERNull,vt.asn1.ASN1Object);vt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2))}return r};vt.asn1.DERObjectIdentifier.superclass.constructor.call(this);this.hT="06";this.setValueHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t};this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);this.hTLV=null;this.isModified=true;this.s=null;this.hV=i};this.setValueName=function(t){var e=vt.asn1.x509.OID.name2oid(t);if(""!==e)this.setValueOidString(e);else throw"DERObjectIdentifier oidName undefined: "+t};this.getFreshValueHex=function(){return this.hV};if(void 0!==t)if("string"===typeof t)if(t.match(/^[0-2].[0-9.]+$/))this.setValueOidString(t);else this.setValueName(t);else if(void 0!==t.oid)this.setValueOidString(t.oid);else if(void 0!==t.hex)this.setValueHex(t.hex);else if(void 0!==t.name)this.setValueName(t.name)};pt.lang.extend(vt.asn1.DERObjectIdentifier,vt.asn1.ASN1Object);vt.asn1.DEREnumerated=function(t){vt.asn1.DEREnumerated.superclass.constructor.call(this);this.hT="0a";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e)};this.setValueHex=function(t){this.hV=t};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"])};pt.lang.extend(vt.asn1.DEREnumerated,vt.asn1.ASN1Object);vt.asn1.DERUTF8String=function(t){vt.asn1.DERUTF8String.superclass.constructor.call(this,t);this.hT="0c"};pt.lang.extend(vt.asn1.DERUTF8String,vt.asn1.DERAbstractString);vt.asn1.DERNumericString=function(t){vt.asn1.DERNumericString.superclass.constructor.call(this,t);this.hT="12"};pt.lang.extend(vt.asn1.DERNumericString,vt.asn1.DERAbstractString);vt.asn1.DERPrintableString=function(t){vt.asn1.DERPrintableString.superclass.constructor.call(this,t);this.hT="13"};pt.lang.extend(vt.asn1.DERPrintableString,vt.asn1.DERAbstractString);vt.asn1.DERTeletexString=function(t){vt.asn1.DERTeletexString.superclass.constructor.call(this,t);this.hT="14"};pt.lang.extend(vt.asn1.DERTeletexString,vt.asn1.DERAbstractString);vt.asn1.DERIA5String=function(t){vt.asn1.DERIA5String.superclass.constructor.call(this,t);this.hT="16"};pt.lang.extend(vt.asn1.DERIA5String,vt.asn1.DERAbstractString);vt.asn1.DERUTCTime=function(t){vt.asn1.DERUTCTime.superclass.constructor.call(this,t);this.hT="17";this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s)};this.getFreshValueHex=function(){if("undefined"==typeof this.date&&"undefined"==typeof this.s){this.date=new Date;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s)}return this.hV};if(void 0!==t)if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{12}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date)};pt.lang.extend(vt.asn1.DERUTCTime,vt.asn1.DERAbstractTime);vt.asn1.DERGeneralizedTime=function(t){vt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t);this.hT="18";this.withMillis=false;this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s)};this.getFreshValueHex=function(){if(void 0===this.date&&void 0===this.s){this.date=new Date;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s)}return this.hV};if(void 0!==t){if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{14}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);if(true===t.millis)this.withMillis=true}};pt.lang.extend(vt.asn1.DERGeneralizedTime,vt.asn1.DERAbstractTime);vt.asn1.DERSequence=function(t){vt.asn1.DERSequence.superclass.constructor.call(this,t);this.hT="30";this.getFreshValueHex=function(){var t="";for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex()}this.hV=t;return this.hV}};pt.lang.extend(vt.asn1.DERSequence,vt.asn1.DERAbstractStructured);vt.asn1.DERSet=function(t){vt.asn1.DERSet.superclass.constructor.call(this,t);this.hT="31";this.sortFlag=true;this.getFreshValueHex=function(){var t=new Array;for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}if(true==this.sortFlag)t.sort();this.hV=t.join("");return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t.sortflag&&false==t.sortflag)this.sortFlag=false};pt.lang.extend(vt.asn1.DERSet,vt.asn1.DERAbstractStructured);vt.asn1.DERTaggedObject=function(t){vt.asn1.DERTaggedObject.superclass.constructor.call(this);this.hT="a0";this.hV="";this.isExplicit=true;this.asn1Object=null;this.setASN1Object=function(t,e,r){this.hT=e;this.isExplicit=t;this.asn1Object=r;if(this.isExplicit){this.hV=this.asn1Object.getEncodedHex();this.hTLV=null;this.isModified=true}else{this.hV=null;this.hTLV=r.getEncodedHex();this.hTLV=this.hTLV.replace(/^../,e);this.isModified=false}};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t){if("undefined"!=typeof t["tag"])this.hT=t["tag"];if("undefined"!=typeof t["explicit"])this.isExplicit=t["explicit"];if("undefined"!=typeof t["obj"]){this.asn1Object=t["obj"];this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)}}};pt.lang.extend(vt.asn1.DERTaggedObject,vt.asn1.ASN1Object);var gt=void 0&&(void 0).__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();var yt=function(t){gt(e,t);function e(r){var i=t.call(this)||this;if(r)if("string"===typeof r)i.parseKey(r);else if(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))i.parsePropertiesFrom(r);return i}e.prototype.parseKey=function(t){try{var e=0;var r=0;var i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/;var n=i.test(t)?y.decode(t):w.unarmor(t);var s=I.decode(n);if(3===s.sub.length)s=s.sub[2].sub[0];if(9===s.sub.length){e=s.sub[1].getHexStringValue();this.n=K(e,16);r=s.sub[2].getHexStringValue();this.e=parseInt(r,16);var a=s.sub[3].getHexStringValue();this.d=K(a,16);var o=s.sub[4].getHexStringValue();this.p=K(o,16);var u=s.sub[5].getHexStringValue();this.q=K(u,16);var c=s.sub[6].getHexStringValue();this.dmp1=K(c,16);var l=s.sub[7].getHexStringValue();this.dmq1=K(l,16);var f=s.sub[8].getHexStringValue();this.coeff=K(f,16)}else if(2===s.sub.length){var h=s.sub[1];var d=h.sub[0];e=d.sub[0].getHexStringValue();this.n=K(e,16);r=d.sub[1].getHexStringValue();this.e=parseInt(r,16)}else return false;return true}catch(t){return false}};e.prototype.getPrivateBaseKey=function(){var t={array:[new vt.asn1.DERInteger({int:0}),new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e}),new vt.asn1.DERInteger({bigint:this.d}),new vt.asn1.DERInteger({bigint:this.p}),new vt.asn1.DERInteger({bigint:this.q}),new vt.asn1.DERInteger({bigint:this.dmp1}),new vt.asn1.DERInteger({bigint:this.dmq1}),new vt.asn1.DERInteger({bigint:this.coeff})]};var e=new vt.asn1.DERSequence(t);return e.getEncodedHex()};e.prototype.getPrivateBaseKeyB64=function(){return d(this.getPrivateBaseKey())};e.prototype.getPublicBaseKey=function(){var t=new vt.asn1.DERSequence({array:[new vt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new vt.asn1.DERNull]});var e=new vt.asn1.DERSequence({array:[new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e})]});var r=new vt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});var i=new vt.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()};e.prototype.getPublicBaseKeyB64=function(){return d(this.getPublicBaseKey())};e.wordwrap=function(t,e){e=e||64;if(!t)return t;var r="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")};e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n";t+="-----END RSA PRIVATE KEY-----";return t};e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n";t+="-----END PUBLIC KEY-----";return t};e.hasPublicKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")};e.hasPrivateKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")};e.prototype.parsePropertiesFrom=function(t){this.n=t.n;this.e=t.e;if(t.hasOwnProperty("d")){this.d=t.d;this.p=t.p;this.q=t.q;this.dmp1=t.dmp1;this.dmq1=t.dmq1;this.coeff=t.coeff}};return e}(ut);const mt={i:"3.2.1"};var wt=function(){function t(t){if(void 0===t)t={};t=t||{};this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024;this.default_public_exponent=t.default_public_exponent||"010001";this.log=t.log||false;this.key=null}t.prototype.setKey=function(t){if(this.log&&this.key)console.warn("A key was already set, overriding existing.");this.key=new yt(t)};t.prototype.setPrivateKey=function(t){this.setKey(t)};t.prototype.setPublicKey=function(t){this.setKey(t)};t.prototype.decrypt=function(t){try{return this.getKey().decrypt(p(t))}catch(t){return false}};t.prototype.encrypt=function(t){try{return this.getKey().encrypt(t)}catch(t){return false}};t.prototype.encryptLong=function(t){try{return d(this.getKey().encryptLong(t))}catch(t){return false}};t.prototype.decryptLong=function(t){try{return this.getKey().decryptLong(t)}catch(t){return false}};t.prototype.sign=function(t,e,r){try{return d(this.getKey().sign(t,e,r))}catch(t){return false}};t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,p(e),r)}catch(t){return false}};t.prototype.getKey=function(t){if(!this.key){this.key=new yt;if(t&&"[object Function]"==={}.toString.call(t)){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key};t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()};t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()};t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()};t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()};t.version=mt.i;return t}();const St=wt},2480:()=>{}};var e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={id:i,loaded:false,exports:{}};t[i].call(s.exports,s,s.exports,r);s.loaded=true;return s.exports}(()=>{r.d=(t,e)=>{for(var i in e)if(r.o(e,i)&&!r.o(t,i))Object.defineProperty(t,i,{enumerable:true,get:e[i]})}})();(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()})();(()=>{r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})();(()=>{r.r=t=>{if("undefined"!==typeof Symbol&&Symbol.toStringTag)Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:true})}})();(()=>{r.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();var i=r(5987);return i})())); \ No newline at end of file
6f6cfea4d2c7f3644f084d63af098b7b98dc2400
2023-10-21 16:07:23
fxy060608
wip(uts): iOS
false
iOS
wip
diff --git a/packages/uni-app-uts/src/plugins/ios/mainUTS.ts b/packages/uni-app-uts/src/plugins/ios/mainUTS.ts index 75c39348933..e993751c9b6 100644 --- a/packages/uni-app-uts/src/plugins/ios/mainUTS.ts +++ b/packages/uni-app-uts/src/plugins/ios/mainUTS.ts @@ -18,7 +18,7 @@ export function uniAppIOSMainPlugin(): Plugin { import './${MANIFEST_JSON_UTS}' import './${PAGES_JSON_UTS}' ${code} -export default 'main.uts' +createApp().app.mount("#app"); ` } }, diff --git a/packages/uni-app-uts/src/plugins/ios/pagesJson.ts b/packages/uni-app-uts/src/plugins/ios/pagesJson.ts index ebaae2297ab..093b01167b7 100644 --- a/packages/uni-app-uts/src/plugins/ios/pagesJson.ts +++ b/packages/uni-app-uts/src/plugins/ios/pagesJson.ts @@ -2,6 +2,7 @@ import path from 'path' import fs from 'fs-extra' import { PAGES_JSON_UTS, + normalizeAppPagesJson, normalizeUniAppXAppPagesJson, } from '@dcloudio/uni-cli-shared' import type { Plugin } from 'vite' @@ -31,8 +32,7 @@ export function uniAppPagesPlugin(): Plugin { if (isPages(id)) { this.addWatchFile(path.resolve(process.env.UNI_INPUT_DIR, 'pages.json')) const pagesJson = normalizeUniAppXAppPagesJson(code) - pagesJson.pages.forEach((page, index) => {}) - return `export default 'pages.json'` + return normalizeAppPagesJson(pagesJson) } }, } diff --git a/packages/uni-app-uts/src/plugins/ios/plugin.ts b/packages/uni-app-uts/src/plugins/ios/plugin.ts index 5af821556d1..2ed8c0493f0 100644 --- a/packages/uni-app-uts/src/plugins/ios/plugin.ts +++ b/packages/uni-app-uts/src/plugins/ios/plugin.ts @@ -3,7 +3,6 @@ import { APP_SERVICE_FILENAME, UniVitePlugin, emptyDir, - polyfillCode, resolveMainPathOnce, } from '@dcloudio/uni-cli-shared' import { createUniOptions } from '../utils' @@ -61,7 +60,7 @@ export function uniAppIOSPlugin(): UniVitePlugin { external: ['vue', '@vue/shared'], output: { name: 'AppService', - banner: polyfillCode, + banner: ``, format: 'iife', entryFileNames: APP_SERVICE_FILENAME, globals: {
141d5d62ac7e7a58cd16c50618053e911ebf4d97
2023-08-26 20:35:06
im-robot
chore: sync css.json
false
sync css.json
chore
diff --git a/packages/uni-nvue-styler/lib/css.json b/packages/uni-nvue-styler/lib/css.json index 5737d4b627a..4ee36732987 100644 --- a/packages/uni-nvue-styler/lib/css.json +++ b/packages/uni-nvue-styler/lib/css.json @@ -2376,6 +2376,29 @@ "text" ] }, + { + "name": "letter-spacing", + "restrictions": [ + "length" + ], + "syntax": "<length>", + "uniPlatform": { + "app": { + "android": { + "osVer": "4.4", + "uniVer": "√", + "unixVer": "3.9.0" + }, + "ios": { + "osVer": "9.0", + "uniVer": "√" + } + } + }, + "unixTags": [ + "text" + ] + }, { "name": "box-shadow", "restrictions": [
739b537ef85b7fbbed3d97896ab09fa4d2cad823
2023-06-09 11:26:10
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index b9ca3e393ae..f7b51795af2 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index a8393620639..0100277f82a 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node index a1e1926c535..d6345dfa477 100755 Binary files a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node and b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node differ diff --git a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node index 39c5e8b5f42..ae3ec98ecd3 100755 Binary files a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node and b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index cc48c1f2e1f..6c53dc82cd1 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 9f8a935911a..85cf8fb5fcc 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
1f239d1265476b6b3e03f8edc7a4e118c4c98d6f
2024-11-29 13:10:53
fxy060608
chore(console): remove error prefix
false
remove error prefix
chore
diff --git a/packages/uni-uts-v1/src/stacktrace/mp/weixin.ts b/packages/uni-uts-v1/src/stacktrace/mp/weixin.ts index d9852fd8d28..b9ea317447e 100644 --- a/packages/uni-uts-v1/src/stacktrace/mp/weixin.ts +++ b/packages/uni-uts-v1/src/stacktrace/mp/weixin.ts @@ -38,7 +38,7 @@ export function parseWeixinRuntimeStacktrace( : '' const [errorCode, ...other] = codes let error = - `error: ${errorCode.includes('[EXCEPTION] ') ? '' : '[EXCEPTION] '}` + + // `error: ${errorCode.includes('[EXCEPTION] ') ? '' : '[EXCEPTION] '}` + errorCode if (color) { error = color + error + color
eff202f9f956b51d8e9c4c4a57738dac2de7b5ce
2021-12-06 14:15:54
fxy060608
release: v3.0.0-alpha-3030020211206001
false
v3.0.0-alpha-3030020211206001
release
diff --git a/package.json b/package.json index f7e16b26a4f..da465248e38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "workspaces": [ "packages/*" ], @@ -41,7 +41,7 @@ }, "devDependencies": { "@dcloudio/types": "^2.5.13", - "@dcloudio/uni-api": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-api": "3.0.0-alpha-3030020211206001", "@jest/types": "^27.0.2", "@microsoft/api-extractor": "^7.13.2", "@rollup/plugin-alias": "^3.1.1", diff --git a/packages/size-check/package.json b/packages/size-check/package.json index 5d4b79df2e4..d3986adaab0 100644 --- a/packages/size-check/package.json +++ b/packages/size-check/package.json @@ -1,14 +1,14 @@ { "private": true, "name": "@dcloudio/size-check", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-components": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-h5": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-h5-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-h5-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003", - "@dcloudio/vite-plugin-uni": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-components": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-h5": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-h5-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-h5-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211206001", + "@dcloudio/vite-plugin-uni": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-api/package.json b/packages/uni-api/package.json index b1c085b08af..0d507cf5645 100644 --- a/packages/uni-api/package.json +++ b/packages/uni-api/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-api", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-api", "sideEffects": false, "repository": { @@ -14,6 +14,6 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-app-plus/package.json b/packages/uni-app-plus/package.json index 4b59f90765a..9d9650d715f 100644 --- a/packages/uni-app-plus/package.json +++ b/packages/uni-app-plus/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-app-plus", "files": [ "dist", @@ -28,10 +28,10 @@ "main": "dist/uni.compiler.js" }, "devDependencies": { - "@dcloudio/uni-components": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-h5": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-components": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-h5": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@types/pako": "1.0.2", "@vue/compiler-sfc": "3.2.23", "autoprefixer": "^10.4.0", @@ -39,7 +39,7 @@ "vue": "3.2.23" }, "dependencies": { - "@dcloudio/uni-app-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-app-vue": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-app-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-app-vue": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-app-vite/package.json b/packages/uni-app-vite/package.json index e2069d30acb..b3dcbbe3d0d 100644 --- a/packages/uni-app-vite/package.json +++ b/packages/uni-app-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vite", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,10 +19,10 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-nvue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-nvue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@rollup/pluginutils": "^4.1.1", "@vitejs/plugin-vue": "^1.10.1", "debug": "^4.3.2", diff --git a/packages/uni-app-vue/package.json b/packages/uni-app-vue/package.json index 3369a14ad28..7ea7d75b86b 100644 --- a/packages/uni-app-vue/package.json +++ b/packages/uni-app-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vue", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-app-vue", "main": "dist/service.runtime.esm.dev.js", "module": "dist/service.runtime.esm.dev.js", @@ -19,6 +19,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index 5362146897b..64793debb8b 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-app", "main": "./dist/uni-app.cjs.js", "module": "./dist/uni-app.es.js", @@ -24,11 +24,11 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-cloud": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-components": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-stat": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cloud": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-components": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-stat": "3.0.0-alpha-3030020211206001", "@vue/shared": "3.2.23" } } diff --git a/packages/uni-automator/package.json b/packages/uni-automator/package.json index 2bab65c992b..ec6c836c665 100644 --- a/packages/uni-automator/package.json +++ b/packages/uni-automator/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-automator", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-automator", "main": "dist/index.js", "files": [ @@ -27,7 +27,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", "address": "^1.1.2", "cross-env": "^7.0.3", "debug": "^4.3.2", diff --git a/packages/uni-cli-nvue/package.json b/packages/uni-cli-nvue/package.json index ec67c7a4b2f..e76c1fe49da 100644 --- a/packages/uni-cli-nvue/package.json +++ b/packages/uni-cli-nvue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-nvue", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-cli-nvue", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -21,8 +21,8 @@ "dependencies": { "@babel/core": "^7.16.0", "@babel/preset-env": "^7.16.0", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@vue/shared": "3.2.23", "acorn": "^5.2.1", "babel-loader": "^8.2.2", diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index 0dc1a38f955..11d1b865b14 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-shared", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-cli-shared", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -20,8 +20,8 @@ "dependencies": { "@babel/parser": "^7.15.0", "@babel/types": "^7.15.0", - "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@rollup/pluginutils": "^4.1.1", "@vue/compiler-core": "3.2.23", "@vue/compiler-dom": "3.2.23", diff --git a/packages/uni-cloud/package.json b/packages/uni-cloud/package.json index a0d85642182..7acc3fbf001 100644 --- a/packages/uni-cloud/package.json +++ b/packages/uni-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cloud", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-cloud", "main": "dist/uni-cloud.cjs.js", "module": "dist/uni-cloud.es.js", @@ -20,8 +20,8 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-components/package.json b/packages/uni-components/package.json index f855ba702f6..6b7c37ddeb2 100644 --- a/packages/uni-components/package.json +++ b/packages/uni-components/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-components", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-components", "main": "index.js", "files": [ @@ -18,6 +18,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-core/package.json b/packages/uni-core/package.json index ed3210fa4d6..057250bb83c 100644 --- a/packages/uni-core/package.json +++ b/packages/uni-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-core", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-core", "sideEffects": false, "repository": { @@ -14,9 +14,9 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "safe-area-insets": "^1.4.1" } } diff --git a/packages/uni-h5-vite/package.json b/packages/uni-h5-vite/package.json index 8af2e7bb757..9d9f270424f 100644 --- a/packages/uni-h5-vite/package.json +++ b/packages/uni-h5-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vite", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-h5-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,8 +19,8 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@rollup/pluginutils": "^4.1.1", "@vue/compiler-dom": "3.2.23", "@vue/compiler-sfc": "3.2.23", diff --git a/packages/uni-h5-vue/package.json b/packages/uni-h5-vue/package.json index 110ecfd4f2d..eeebc78cc0a 100644 --- a/packages/uni-h5-vue/package.json +++ b/packages/uni-h5-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vue", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-h5-vue", "main": "dist/vue.runtime.cjs.js", "module": "dist/vue.runtime.esm.js", diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index 3c77811b59d..25c96570c3e 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-h5", "main": "./dist/uni-h5.cjs.js", "module": "./dist/uni-h5.es.js", @@ -29,10 +29,10 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-h5-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-h5-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-h5-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-h5-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@vue/server-renderer": "3.2.23", "@vue/shared": "3.2.23", "localstorage-polyfill": "^1.0.1", @@ -43,7 +43,7 @@ "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { "@dcloudio/uni-cli-i18n": "^2.0.0-32920211029004", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", "@types/google.maps": "^3.45.6", "acorn-loose": "^8.2.1", "acorn-walk": "^8.2.0", diff --git a/packages/uni-i18n/package.json b/packages/uni-i18n/package.json index 3fb1eff96e0..92a418304a0 100644 --- a/packages/uni-i18n/package.json +++ b/packages/uni-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-i18n", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-i18n", "main": "./dist/uni-i18n.cjs.js", "module": "./dist/uni-i18n.es.js", diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index 61e2da2f23c..111ab898ef8 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app mp-alipay", "main": "dist/index.js", "repository": { @@ -22,9 +22,9 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", "@vue/compiler-core": "3.2.23", "@vue/shared": "3.2.23" } diff --git a/packages/uni-mp-baidu/package.json b/packages/uni-mp-baidu/package.json index 14dcd053112..1b14425e756 100644 --- a/packages/uni-mp-baidu/package.json +++ b/packages/uni-mp-baidu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-baidu", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app mp-baidu", "main": "dist/index.js", "files": [ @@ -26,14 +26,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3030020211206001", "@vue/compiler-core": "3.2.23" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-mp-compiler/package.json b/packages/uni-mp-compiler/package.json index 640f92cb154..1fb31b7e198 100644 --- a/packages/uni-mp-compiler/package.json +++ b/packages/uni-mp-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-compiler", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-mp-compiler", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -22,8 +22,8 @@ "@babel/generator": "^7.15.0", "@babel/parser": "^7.15.0", "@babel/types": "^7.15.0", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@vue/compiler-core": "3.2.23", "@vue/compiler-dom": "3.2.23", "@vue/shared": "3.2.23", diff --git a/packages/uni-mp-core/package.json b/packages/uni-mp-core/package.json index 59027ae15f3..1564eb23924 100644 --- a/packages/uni-mp-core/package.json +++ b/packages/uni-mp-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-mp-core", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-mp-core", "sideEffects": false, "repository": { diff --git a/packages/uni-mp-kuaishou/package.json b/packages/uni-mp-kuaishou/package.json index 5de4bc161c2..dcc9172a16d 100644 --- a/packages/uni-mp-kuaishou/package.json +++ b/packages/uni-mp-kuaishou/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-kuaishou", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app mp-kuaishou", "main": "dist/index.js", "repository": { @@ -22,14 +22,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3030020211206001", "@vue/compiler-core": "3.2.23" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-mp-lark/package.json b/packages/uni-mp-lark/package.json index 36f1d730065..9b8323f914f 100644 --- a/packages/uni-mp-lark/package.json +++ b/packages/uni-mp-lark/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-lark", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app mp-lark", "main": "dist/index.js", "repository": { @@ -22,14 +22,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-3030020211206001" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@vue/compiler-core": "3.2.23" } } diff --git a/packages/uni-mp-qq/package.json b/packages/uni-mp-qq/package.json index 8f9af57bc17..1f9deadcf43 100644 --- a/packages/uni-mp-qq/package.json +++ b/packages/uni-mp-qq/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-qq", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app mp-qq", "main": "dist/index.js", "repository": { @@ -22,15 +22,15 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3030020211206001", "@types/fs-extra": "^9.0.13", "@vue/compiler-core": "3.2.23" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "fs-extra": "^10.0.0" } } diff --git a/packages/uni-mp-toutiao/package.json b/packages/uni-mp-toutiao/package.json index 247122f8dfb..b8bf1ed45d4 100644 --- a/packages/uni-mp-toutiao/package.json +++ b/packages/uni-mp-toutiao/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-toutiao", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app mp-toutiao", "main": "dist/index.js", "repository": { @@ -22,11 +22,11 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@vue/compiler-core": "3.2.23" } } diff --git a/packages/uni-mp-vite/package.json b/packages/uni-mp-vite/package.json index 518f15b18a5..bb300f86d60 100644 --- a/packages/uni-mp-vite/package.json +++ b/packages/uni-mp-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vite", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-mp-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -18,10 +18,10 @@ }, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@intlify/core-base": "9.1.9", "@intlify/shared": "9.1.9", "@intlify/vue-devtools": "9.1.9", diff --git a/packages/uni-mp-vue/dist/vue.runtime.esm.js b/packages/uni-mp-vue/dist/vue.runtime.esm.js index fcb7e9ef395..825202205d8 100644 --- a/packages/uni-mp-vue/dist/vue.runtime.esm.js +++ b/packages/uni-mp-vue/dist/vue.runtime.esm.js @@ -5260,6 +5260,7 @@ const e = (target, ...sources) => extend(target, ...sources); const h = (str) => hyphenate(str); const n = (value) => normalizeClass(value); const t = (val) => toDisplayString(val); +// export const p: typeof renderProps = (props) => renderProps(props) const sr = (ref, id) => setRef(ref, id); function createApp(rootComponent, rootProps = null) { diff --git a/packages/uni-mp-vue/package.json b/packages/uni-mp-vue/package.json index d8b024a9fdc..a21707de44f 100644 --- a/packages/uni-mp-vue/package.json +++ b/packages/uni-mp-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vue", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-mp-vue", "main": "dist/vue.runtime.esm.js", "module": "dist/vue.runtime.esm.js", @@ -19,6 +19,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-mp-vue/src/helpers/index.ts b/packages/uni-mp-vue/src/helpers/index.ts index d088934d3c7..cb082ae2c98 100644 --- a/packages/uni-mp-vue/src/helpers/index.ts +++ b/packages/uni-mp-vue/src/helpers/index.ts @@ -12,6 +12,7 @@ import { withScopedSlot } from './withScopedSlot' import { stringifyStyle } from './style' import { dynamicSlot } from './dynamicSlot' import { setRef } from './ref' +// import { renderProps } from './renderProps' export { setupDevtoolsPlugin } from './devtools' @@ -33,4 +34,5 @@ export const e: typeof extend = (target: object, ...sources: any[]) => export const h: typeof hyphenate = (str) => hyphenate(str) export const n: typeof normalizeClass = (value) => normalizeClass(value) export const t: typeof toDisplayString = (val) => toDisplayString(val) +// export const p: typeof renderProps = (props) => renderProps(props) export const sr: typeof setRef = (ref, id) => setRef(ref, id) diff --git a/packages/uni-mp-vue/src/helpers/renderProps.ts b/packages/uni-mp-vue/src/helpers/renderProps.ts new file mode 100644 index 00000000000..ab0237f8df1 --- /dev/null +++ b/packages/uni-mp-vue/src/helpers/renderProps.ts @@ -0,0 +1,50 @@ +import { ComponentInternalInstance, getCurrentInstance } from 'vue' +import type { MPComponentInstance } from '@dcloudio/uni-mp-core' +import { hasOwn } from '@vue/shared' + +const propsCacheMap = new Map< + number | string | unknown, + Record<string, any>[] +>() + +export function renderProps(props: Record<string, any>) { + const { + ctx: { $scope }, + } = getCurrentInstance()! as ComponentInternalInstance & { + ctx: { $scope: MPComponentInstance } + } + const webviewId = findWebviewId($scope) + let propsCache = propsCacheMap.get(webviewId)! + if (!propsCache) { + propsCache = Object.create(null) + } + return propsCache.push(props) +} + +let findWebviewId = ( + $scope: MPComponentInstance +): number | string | unknown => { + if (hasOwn($scope, '__wxWebviewId__')) { + // mp-weixin || mp-qq || mp-kuaishou + findWebviewId = ($scope: MPComponentInstance) => { + return $scope.__wxWebviewId__ + } + } + if (hasOwn($scope, '__webviewId__')) { + // mp-toutiao || mp-lark || quickapp-webview + findWebviewId = ($scope: MPComponentInstance) => { + return $scope.__webviewId__ + } + } + if (hasOwn($scope, 'pageinstance')) { + // mp-baidu + findWebviewId = ($scope: MPComponentInstance) => { + return $scope.pageinstance + } + } + // mp-alipay + findWebviewId = ($scope: MPComponentInstance) => { + return $scope.$viewId || ($scope.$page as any).$viewId + } + return findWebviewId($scope) +} diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index d5fbf161046..f6822c9b680 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app mp-weixin", "main": "dist/index.js", "files": [ @@ -29,9 +29,9 @@ "@vue/compiler-core": "3.2.23" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/uni-quickapp-webview/package.json b/packages/uni-quickapp-webview/package.json index 79d4898b59a..3a463eabf47 100644 --- a/packages/uni-quickapp-webview/package.json +++ b/packages/uni-quickapp-webview/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-quickapp-webview", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app quickapp-webview", "main": "dist/index.js", "repository": { @@ -25,10 +25,10 @@ "@vue/compiler-core": "3.2.23" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@vue/shared": "3.2.23" } } diff --git a/packages/uni-shared/package.json b/packages/uni-shared/package.json index 24b900bb9d3..287f3b1b21f 100644 --- a/packages/uni-shared/package.json +++ b/packages/uni-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-shared", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-shared", "main": "./dist/uni-shared.cjs.js", "module": "./dist/uni-shared.es.js", diff --git a/packages/uni-stat/dist/uni-stat.cjs.js b/packages/uni-stat/dist/uni-stat.cjs.js index bc55b0914da..6a3e73b0cfa 100644 --- a/packages/uni-stat/dist/uni-stat.cjs.js +++ b/packages/uni-stat/dist/uni-stat.cjs.js @@ -1,6 +1,6 @@ 'use strict'; -var version = "3.0.0-alpha-3030020211201003"; +var version = "3.0.0-alpha-3030020211206001"; const STAT_VERSION = version; const STAT_URL = 'https://tongji.dcloud.io/uni/stat'; diff --git a/packages/uni-stat/dist/uni-stat.es.js b/packages/uni-stat/dist/uni-stat.es.js index 4a8f7f94262..3ed86a5faef 100644 --- a/packages/uni-stat/dist/uni-stat.es.js +++ b/packages/uni-stat/dist/uni-stat.es.js @@ -1,4 +1,4 @@ -var version = "3.0.0-alpha-3030020211201003"; +var version = "3.0.0-alpha-3030020211206001"; const STAT_VERSION = version; const STAT_URL = 'https://tongji.dcloud.io/uni/stat'; diff --git a/packages/uni-stat/package.json b/packages/uni-stat/package.json index a5c1a367237..d6b1363e0b4 100644 --- a/packages/uni-stat/package.json +++ b/packages/uni-stat/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stat", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-stat", "main": "dist/uni-stat.es.js", "module": "dist/uni-stat.es.js", @@ -20,7 +20,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", "debug": "^4.3.2" }, "devDependencies": { diff --git a/packages/uni-vue/package.json b/packages/uni-vue/package.json index 0f22e679eab..b53d5691d43 100644 --- a/packages/uni-vue/package.json +++ b/packages/uni-vue/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-vue", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "@dcloudio/uni-vue", "files": [ "dist" @@ -17,7 +17,7 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003" + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001" } } diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index f2554741272..6797d25eb6a 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vite-plugin-uni", - "version": "3.0.0-alpha-3030020211201003", + "version": "3.0.0-alpha-3030020211206001", "description": "uni-app vite plugin", "bin": { "uni": "bin/uni.js" @@ -25,8 +25,8 @@ "@babel/core": "^7.16.0", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-transform-typescript": "^7.16.1", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211201003", - "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030020211206001", + "@dcloudio/uni-shared": "3.0.0-alpha-3030020211206001", "@rollup/pluginutils": "^4.1.1", "@vitejs/plugin-legacy": "^1.6.3", "@vitejs/plugin-vue": "^1.10.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0303e87a16..cc5996ccd21 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,7 +5,7 @@ importers: .: specifiers: '@dcloudio/types': ^2.5.13 - '@dcloudio/uni-api': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-api': 3.0.0-alpha-3030020211206001 '@jest/types': ^27.0.2 '@microsoft/api-extractor': ^7.13.2 '@rollup/plugin-alias': ^3.1.1 @@ -125,13 +125,13 @@ importers: packages/size-check: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-components': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-h5': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-h5-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-h5-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211201003 - '@dcloudio/vite-plugin-uni': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-components': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-h5': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-h5-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-h5-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211206001 + '@dcloudio/vite-plugin-uni': 3.0.0-alpha-3030020211206001 devDependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-components': link:../uni-components @@ -143,17 +143,17 @@ importers: packages/uni-api: specifiers: - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 devDependencies: '@dcloudio/uni-shared': link:../uni-shared packages/uni-app: specifiers: - '@dcloudio/uni-cloud': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-components': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-stat': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cloud': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-components': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-stat': 3.0.0-alpha-3030020211206001 '@vue/shared': 3.2.23 dependencies: '@dcloudio/uni-cloud': link:../uni-cloud @@ -165,12 +165,12 @@ importers: packages/uni-app-plus: specifiers: - '@dcloudio/uni-app-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-app-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-components': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-h5': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-app-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-app-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-components': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-h5': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@types/pako': 1.0.2 '@vue/compiler-sfc': 3.2.23 autoprefixer: ^10.4.0 @@ -192,10 +192,10 @@ importers: packages/uni-app-vite: specifiers: - '@dcloudio/uni-cli-nvue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-nvue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@rollup/pluginutils': ^4.1.1 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -221,13 +221,13 @@ importers: packages/uni-app-vue: specifiers: - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 devDependencies: '@dcloudio/uni-shared': link:../uni-shared packages/uni-automator: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 address: ^1.1.2 @@ -260,8 +260,8 @@ importers: specifiers: '@babel/core': ^7.16.0 '@babel/preset-env': ^7.16.0 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@types/loader-utils': ^2.0.3 '@types/module-alias': ^2.0.1 '@types/terser-webpack-plugin': ^5.0.4 @@ -349,8 +349,8 @@ importers: specifiers: '@babel/parser': ^7.15.0 '@babel/types': ^7.15.0 - '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@rollup/pluginutils': ^4.1.1 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -432,9 +432,9 @@ importers: packages/uni-cloud: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-i18n': link:../uni-i18n @@ -442,15 +442,15 @@ importers: packages/uni-components: specifiers: - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 devDependencies: '@dcloudio/uni-shared': link:../uni-shared packages/uni-core: specifiers: - '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 safe-area-insets: ^1.4.1 devDependencies: '@dcloudio/uni-i18n': link:../uni-i18n @@ -461,11 +461,11 @@ importers: packages/uni-h5: specifiers: '@dcloudio/uni-cli-i18n': ^2.0.0-32920211029004 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-h5-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-h5-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-h5-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-h5-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-i18n': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@types/google.maps': ^3.45.6 '@vue/server-renderer': 3.2.23 '@vue/shared': 3.2.23 @@ -497,8 +497,8 @@ importers: packages/uni-h5-vite: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@rollup/pluginutils': ^4.1.1 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -542,9 +542,9 @@ importers: packages/uni-mp-alipay: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 '@vue/compiler-core': 3.2.23 '@vue/shared': 3.2.23 dependencies: @@ -556,12 +556,12 @@ importers: packages/uni-mp-baidu: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@vue/compiler-core': 3.2.23 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -578,8 +578,8 @@ importers: '@babel/generator': ^7.15.0 '@babel/parser': ^7.15.0 '@babel/types': ^7.15.0 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@vue/compiler-core': 3.2.23 '@vue/compiler-dom': 3.2.23 '@vue/compiler-sfc': 3.2.23 @@ -603,12 +603,12 @@ importers: packages/uni-mp-kuaishou: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@vue/compiler-core': 3.2.23 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -622,12 +622,12 @@ importers: packages/uni-mp-lark: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-toutiao': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-toutiao': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@vue/compiler-core': 3.2.23 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -641,11 +641,11 @@ importers: packages/uni-mp-qq: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@types/fs-extra': ^9.0.13 '@vue/compiler-core': 3.2.23 fs-extra: ^10.0.0 @@ -662,11 +662,11 @@ importers: packages/uni-mp-toutiao: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@vue/compiler-core': 3.2.23 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -678,10 +678,10 @@ importers: packages/uni-mp-vite: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@intlify/core-base': 9.1.9 '@intlify/shared': 9.1.9 '@intlify/vue-devtools': 9.1.9 @@ -707,16 +707,16 @@ importers: packages/uni-mp-vue: specifiers: - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 devDependencies: '@dcloudio/uni-mp-vue': 'link:' packages/uni-mp-weixin: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@vue/compiler-core': 3.2.23 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -728,10 +728,10 @@ importers: packages/uni-quickapp-webview: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@vue/compiler-core': 3.2.23 '@vue/shared': 3.2.23 dependencies: @@ -754,7 +754,7 @@ importers: packages/uni-stat: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 '@types/debug': ^4.1.7 debug: ^4.3.2 dependencies: @@ -765,8 +765,8 @@ importers: packages/uni-vue: specifiers: - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 devDependencies: '@dcloudio/uni-mp-vue': link:../uni-mp-vue '@dcloudio/uni-shared': link:../uni-shared @@ -776,8 +776,8 @@ importers: '@babel/core': ^7.16.0 '@babel/plugin-syntax-import-meta': ^7.10.4 '@babel/plugin-transform-typescript': ^7.16.1 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211201003 - '@dcloudio/uni-shared': 3.0.0-alpha-3030020211201003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3030020211206001 + '@dcloudio/uni-shared': 3.0.0-alpha-3030020211206001 '@rollup/pluginutils': ^4.1.1 '@types/debug': ^4.1.7 '@types/express': ^4.17.12 @@ -2835,14 +2835,6 @@ packages: '@types/yargs-parser': 20.2.1 dev: true - /@types/yauzl/2.9.2: - resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==} - requiresBuild: true - dependencies: - '@types/node': 14.17.34 - dev: true - optional: true - /@typescript-eslint/parser/[email protected][email protected]: resolution: {integrity: sha512-JoB41EmxiYpaEsRwpZEYAJ9XQURPFer8hpkIW9GiaspVLX8oqbqNM8P4EP8HOZg96yaALiLEVWllA2E8vwsIKw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3791,7 +3783,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /chrome-trace-event/1.0.3: resolution: {integrity: sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==} @@ -3836,7 +3828,7 @@ packages: object-assign: 4.1.1 string-width: 4.2.3 optionalDependencies: - colors: 1.4.0 + colors: registry.npmjs.org/colors/1.4.0 dev: true /cli-truncate/2.1.0: @@ -3899,13 +3891,6 @@ packages: engines: {node: '>=0.1.90'} dev: true - /colors/1.4.0: - resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==} - engines: {node: '>=0.1.90'} - requiresBuild: true - dev: true - optional: true - /combined-stream/1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -4433,147 +4418,28 @@ packages: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} dev: false - /esbuild-android-arm64/0.13.15: - resolution: {integrity: sha512-m602nft/XXeO8YQPUDVoHfjyRVPdPgjyyXOxZ44MK/agewFFkPa8tUo6lAzSWh5Ui5PB4KR9UIFTSBKh/RrCmg==} - cpu: [arm64] - os: [android] - requiresBuild: true - optional: true - - /esbuild-darwin-64/0.13.15: - resolution: {integrity: sha512-ihOQRGs2yyp7t5bArCwnvn2Atr6X4axqPpEdCFPVp7iUj4cVSdisgvEKdNR7yH3JDjW6aQDw40iQFoTqejqxvQ==} - cpu: [x64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-darwin-arm64/0.13.15: - resolution: {integrity: sha512-i1FZssTVxUqNlJ6cBTj5YQj4imWy3m49RZRnHhLpefFIh0To05ow9DTrXROTE1urGTQCloFUXTX8QfGJy1P8dQ==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-freebsd-64/0.13.15: - resolution: {integrity: sha512-G3dLBXUI6lC6Z09/x+WtXBXbOYQZ0E8TDBqvn7aMaOCzryJs8LyVXKY4CPnHFXZAbSwkCbqiPuSQ1+HhrNk7EA==} - cpu: [x64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-freebsd-arm64/0.13.15: - resolution: {integrity: sha512-KJx0fzEDf1uhNOZQStV4ujg30WlnwqUASaGSFPhznLM/bbheu9HhqZ6mJJZM32lkyfGJikw0jg7v3S0oAvtvQQ==} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-linux-32/0.13.15: - resolution: {integrity: sha512-ZvTBPk0YWCLMCXiFmD5EUtB30zIPvC5Itxz0mdTu/xZBbbHJftQgLWY49wEPSn2T/TxahYCRDWun5smRa0Tu+g==} - cpu: [ia32] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-64/0.13.15: - resolution: {integrity: sha512-eCKzkNSLywNeQTRBxJRQ0jxRCl2YWdMB3+PkWFo2BBQYC5mISLIVIjThNtn6HUNqua1pnvgP5xX0nHbZbPj5oA==} - cpu: [x64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm/0.13.15: - resolution: {integrity: sha512-wUHttDi/ol0tD8ZgUMDH8Ef7IbDX+/UsWJOXaAyTdkT7Yy9ZBqPg8bgB/Dn3CZ9SBpNieozrPRHm0BGww7W/jA==} - cpu: [arm] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm64/0.13.15: - resolution: {integrity: sha512-bYpuUlN6qYU9slzr/ltyLTR9YTBS7qUDymO8SV7kjeNext61OdmqFAzuVZom+OLW1HPHseBfJ/JfdSlx8oTUoA==} - cpu: [arm64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-mips64le/0.13.15: - resolution: {integrity: sha512-KlVjIG828uFPyJkO/8gKwy9RbXhCEUeFsCGOJBepUlpa7G8/SeZgncUEz/tOOUJTcWMTmFMtdd3GElGyAtbSWg==} - cpu: [mips64el] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-ppc64le/0.13.15: - resolution: {integrity: sha512-h6gYF+OsaqEuBjeesTBtUPw0bmiDu7eAeuc2OEH9S6mV9/jPhPdhOWzdeshb0BskRZxPhxPOjqZ+/OqLcxQwEQ==} - cpu: [ppc64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-netbsd-64/0.13.15: - resolution: {integrity: sha512-3+yE9emwoevLMyvu+iR3rsa+Xwhie7ZEHMGDQ6dkqP/ndFzRHkobHUKTe+NCApSqG5ce2z4rFu+NX/UHnxlh3w==} - cpu: [x64] - os: [netbsd] - requiresBuild: true - optional: true - - /esbuild-openbsd-64/0.13.15: - resolution: {integrity: sha512-wTfvtwYJYAFL1fSs8yHIdf5GEE4NkbtbXtjLWjM3Cw8mmQKqsg8kTiqJ9NJQe5NX/5Qlo7Xd9r1yKMMkHllp5g==} - cpu: [x64] - os: [openbsd] - requiresBuild: true - optional: true - - /esbuild-sunos-64/0.13.15: - resolution: {integrity: sha512-lbivT9Bx3t1iWWrSnGyBP9ODriEvWDRiweAs69vI+miJoeKwHWOComSRukttbuzjZ8r1q0mQJ8Z7yUsDJ3hKdw==} - cpu: [x64] - os: [sunos] - requiresBuild: true - optional: true - - /esbuild-windows-32/0.13.15: - resolution: {integrity: sha512-fDMEf2g3SsJ599MBr50cY5ve5lP1wyVwTe6aLJsM01KtxyKkB4UT+fc5MXQFn3RLrAIAZOG+tHC+yXObpSn7Nw==} - cpu: [ia32] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-64/0.13.15: - resolution: {integrity: sha512-9aMsPRGDWCd3bGjUIKG/ZOJPKsiztlxl/Q3C1XDswO6eNX/Jtwu4M+jb6YDH9hRSUflQWX0XKAfWzgy5Wk54JQ==} - cpu: [x64] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-arm64/0.13.15: - resolution: {integrity: sha512-zzvyCVVpbwQQATaf3IG8mu1IwGEiDxKkYUdA4FpoCHi1KtPa13jeScYDjlW0Qh+ebWzpKfR2ZwvqAQkSWNcKjA==} - cpu: [arm64] - os: [win32] - requiresBuild: true - optional: true - /esbuild/0.13.15: resolution: {integrity: sha512-raCxt02HBKv8RJxE8vkTSCXGIyKHdEdGfUmiYb8wnabnaEmHzyW7DCHb5tEN0xU8ryqg5xw54mcwnYkC4x3AIw==} hasBin: true requiresBuild: true optionalDependencies: - esbuild-android-arm64: 0.13.15 - esbuild-darwin-64: 0.13.15 - esbuild-darwin-arm64: 0.13.15 - esbuild-freebsd-64: 0.13.15 - esbuild-freebsd-arm64: 0.13.15 - esbuild-linux-32: 0.13.15 - esbuild-linux-64: 0.13.15 - esbuild-linux-arm: 0.13.15 - esbuild-linux-arm64: 0.13.15 - esbuild-linux-mips64le: 0.13.15 - esbuild-linux-ppc64le: 0.13.15 - esbuild-netbsd-64: 0.13.15 - esbuild-openbsd-64: 0.13.15 - esbuild-sunos-64: 0.13.15 - esbuild-windows-32: 0.13.15 - esbuild-windows-64: 0.13.15 - esbuild-windows-arm64: 0.13.15 + esbuild-android-arm64: registry.npmjs.org/esbuild-android-arm64/0.13.15 + esbuild-darwin-64: registry.npmjs.org/esbuild-darwin-64/0.13.15 + esbuild-darwin-arm64: registry.npmjs.org/esbuild-darwin-arm64/0.13.15 + esbuild-freebsd-64: registry.npmjs.org/esbuild-freebsd-64/0.13.15 + esbuild-freebsd-arm64: registry.npmjs.org/esbuild-freebsd-arm64/0.13.15 + esbuild-linux-32: registry.npmjs.org/esbuild-linux-32/0.13.15 + esbuild-linux-64: registry.npmjs.org/esbuild-linux-64/0.13.15 + esbuild-linux-arm: registry.npmjs.org/esbuild-linux-arm/0.13.15 + esbuild-linux-arm64: registry.npmjs.org/esbuild-linux-arm64/0.13.15 + esbuild-linux-mips64le: registry.npmjs.org/esbuild-linux-mips64le/0.13.15 + esbuild-linux-ppc64le: registry.npmjs.org/esbuild-linux-ppc64le/0.13.15 + esbuild-netbsd-64: registry.npmjs.org/esbuild-netbsd-64/0.13.15 + esbuild-openbsd-64: registry.npmjs.org/esbuild-openbsd-64/0.13.15 + esbuild-sunos-64: registry.npmjs.org/esbuild-sunos-64/0.13.15 + esbuild-windows-32: registry.npmjs.org/esbuild-windows-32/0.13.15 + esbuild-windows-64: registry.npmjs.org/esbuild-windows-64/0.13.15 + esbuild-windows-arm64: registry.npmjs.org/esbuild-windows-arm64/0.13.15 /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -4606,7 +4472,7 @@ packages: esutils: 2.0.3 optionator: 0.8.3 optionalDependencies: - source-map: 0.6.1 + source-map: registry.npmjs.org/source-map/0.6.1 dev: false /escodegen/2.0.0: @@ -4619,7 +4485,7 @@ packages: esutils: 2.0.3 optionator: 0.8.3 optionalDependencies: - source-map: 0.6.1 + source-map: registry.npmjs.org/source-map/0.6.1 dev: true /eslint-scope/5.1.1: @@ -4889,7 +4755,7 @@ packages: get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: - '@types/yauzl': 2.9.2 + '@types/yauzl': registry.npmjs.org/@types/yauzl/2.9.2 transitivePeerDependencies: - supports-color dev: true @@ -5085,13 +4951,6 @@ packages: resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=} dev: true - /fsevents/2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - optional: true - /function-bind/1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} @@ -5881,7 +5740,7 @@ packages: micromatch: 4.0.4 walker: 1.0.8 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 dev: true /jest-jasmine2/27.3.1: @@ -6306,7 +6165,7 @@ packages: /jsonfile/4.0.0: resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=} optionalDependencies: - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 dev: true /jsonfile/6.1.0: @@ -6314,7 +6173,7 @@ packages: dependencies: universalify: 2.0.0 optionalDependencies: - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 /jsprim/1.4.1: resolution: {integrity: sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=} @@ -6639,7 +6498,7 @@ packages: resolution: {integrity: sha512-xTYd4JVHpSCW+aqDof6w/MebaMVNTVYBZhbB/vi513xXdiPT92JMVCo0Jq8W2UZnzYRFeVbQiQ+I25l13JuKvA==} hasBin: true optionalDependencies: - minimist: 1.2.5 + minimist: registry.npmjs.org/minimist/1.2.5 dev: true /make-plural/6.2.2: @@ -7681,7 +7540,7 @@ packages: engines: {node: '>=10.0.0'} hasBin: true optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /run-parallel/1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -8544,7 +8403,7 @@ packages: resolve: 1.20.0 rollup: 2.60.1 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 dev: true /vlq/0.2.3: @@ -8876,5 +8735,217 @@ packages: lodash.isequal: 4.5.0 validator: 8.2.0 optionalDependencies: - commander: 2.20.3 + commander: registry.npmjs.org/commander/2.20.3 + dev: true + + registry.npmjs.org/@types/yauzl/2.9.2: + resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.2.tgz} + name: '@types/yauzl' + version: 2.9.2 + requiresBuild: true + dependencies: + '@types/node': 14.17.34 dev: true + optional: true + + registry.npmjs.org/colors/1.4.0: + resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/colors/-/colors-1.4.0.tgz} + name: colors + version: 1.4.0 + engines: {node: '>=0.1.90'} + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/commander/2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/commander/-/commander-2.20.3.tgz} + name: commander + version: 2.20.3 + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-android-arm64/0.13.15: + resolution: {integrity: sha512-m602nft/XXeO8YQPUDVoHfjyRVPdPgjyyXOxZ44MK/agewFFkPa8tUo6lAzSWh5Ui5PB4KR9UIFTSBKh/RrCmg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.13.15.tgz} + name: esbuild-android-arm64 + version: 0.13.15 + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-darwin-64/0.13.15: + resolution: {integrity: sha512-ihOQRGs2yyp7t5bArCwnvn2Atr6X4axqPpEdCFPVp7iUj4cVSdisgvEKdNR7yH3JDjW6aQDw40iQFoTqejqxvQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.13.15.tgz} + name: esbuild-darwin-64 + version: 0.13.15 + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-darwin-arm64/0.13.15: + resolution: {integrity: sha512-i1FZssTVxUqNlJ6cBTj5YQj4imWy3m49RZRnHhLpefFIh0To05ow9DTrXROTE1urGTQCloFUXTX8QfGJy1P8dQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.15.tgz} + name: esbuild-darwin-arm64 + version: 0.13.15 + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-freebsd-64/0.13.15: + resolution: {integrity: sha512-G3dLBXUI6lC6Z09/x+WtXBXbOYQZ0E8TDBqvn7aMaOCzryJs8LyVXKY4CPnHFXZAbSwkCbqiPuSQ1+HhrNk7EA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.15.tgz} + name: esbuild-freebsd-64 + version: 0.13.15 + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-freebsd-arm64/0.13.15: + resolution: {integrity: sha512-KJx0fzEDf1uhNOZQStV4ujg30WlnwqUASaGSFPhznLM/bbheu9HhqZ6mJJZM32lkyfGJikw0jg7v3S0oAvtvQQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.15.tgz} + name: esbuild-freebsd-arm64 + version: 0.13.15 + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-32/0.13.15: + resolution: {integrity: sha512-ZvTBPk0YWCLMCXiFmD5EUtB30zIPvC5Itxz0mdTu/xZBbbHJftQgLWY49wEPSn2T/TxahYCRDWun5smRa0Tu+g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.13.15.tgz} + name: esbuild-linux-32 + version: 0.13.15 + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-64/0.13.15: + resolution: {integrity: sha512-eCKzkNSLywNeQTRBxJRQ0jxRCl2YWdMB3+PkWFo2BBQYC5mISLIVIjThNtn6HUNqua1pnvgP5xX0nHbZbPj5oA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.13.15.tgz} + name: esbuild-linux-64 + version: 0.13.15 + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-arm/0.13.15: + resolution: {integrity: sha512-wUHttDi/ol0tD8ZgUMDH8Ef7IbDX+/UsWJOXaAyTdkT7Yy9ZBqPg8bgB/Dn3CZ9SBpNieozrPRHm0BGww7W/jA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.13.15.tgz} + name: esbuild-linux-arm + version: 0.13.15 + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-arm64/0.13.15: + resolution: {integrity: sha512-bYpuUlN6qYU9slzr/ltyLTR9YTBS7qUDymO8SV7kjeNext61OdmqFAzuVZom+OLW1HPHseBfJ/JfdSlx8oTUoA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.15.tgz} + name: esbuild-linux-arm64 + version: 0.13.15 + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-mips64le/0.13.15: + resolution: {integrity: sha512-KlVjIG828uFPyJkO/8gKwy9RbXhCEUeFsCGOJBepUlpa7G8/SeZgncUEz/tOOUJTcWMTmFMtdd3GElGyAtbSWg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.15.tgz} + name: esbuild-linux-mips64le + version: 0.13.15 + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-ppc64le/0.13.15: + resolution: {integrity: sha512-h6gYF+OsaqEuBjeesTBtUPw0bmiDu7eAeuc2OEH9S6mV9/jPhPdhOWzdeshb0BskRZxPhxPOjqZ+/OqLcxQwEQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.15.tgz} + name: esbuild-linux-ppc64le + version: 0.13.15 + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-netbsd-64/0.13.15: + resolution: {integrity: sha512-3+yE9emwoevLMyvu+iR3rsa+Xwhie7ZEHMGDQ6dkqP/ndFzRHkobHUKTe+NCApSqG5ce2z4rFu+NX/UHnxlh3w==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.15.tgz} + name: esbuild-netbsd-64 + version: 0.13.15 + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-openbsd-64/0.13.15: + resolution: {integrity: sha512-wTfvtwYJYAFL1fSs8yHIdf5GEE4NkbtbXtjLWjM3Cw8mmQKqsg8kTiqJ9NJQe5NX/5Qlo7Xd9r1yKMMkHllp5g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.15.tgz} + name: esbuild-openbsd-64 + version: 0.13.15 + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-sunos-64/0.13.15: + resolution: {integrity: sha512-lbivT9Bx3t1iWWrSnGyBP9ODriEvWDRiweAs69vI+miJoeKwHWOComSRukttbuzjZ8r1q0mQJ8Z7yUsDJ3hKdw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.13.15.tgz} + name: esbuild-sunos-64 + version: 0.13.15 + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-32/0.13.15: + resolution: {integrity: sha512-fDMEf2g3SsJ599MBr50cY5ve5lP1wyVwTe6aLJsM01KtxyKkB4UT+fc5MXQFn3RLrAIAZOG+tHC+yXObpSn7Nw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.13.15.tgz} + name: esbuild-windows-32 + version: 0.13.15 + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-64/0.13.15: + resolution: {integrity: sha512-9aMsPRGDWCd3bGjUIKG/ZOJPKsiztlxl/Q3C1XDswO6eNX/Jtwu4M+jb6YDH9hRSUflQWX0XKAfWzgy5Wk54JQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.13.15.tgz} + name: esbuild-windows-64 + version: 0.13.15 + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-arm64/0.13.15: + resolution: {integrity: sha512-zzvyCVVpbwQQATaf3IG8mu1IwGEiDxKkYUdA4FpoCHi1KtPa13jeScYDjlW0Qh+ebWzpKfR2ZwvqAQkSWNcKjA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.15.tgz} + name: esbuild-windows-arm64 + version: 0.13.15 + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/fsevents/2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz} + name: fsevents + version: 2.3.2 + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/graceful-fs/4.2.8: + resolution: {integrity: sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz} + name: graceful-fs + version: 4.2.8 + requiresBuild: true + optional: true + + registry.npmjs.org/minimist/1.2.5: + resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz} + name: minimist + version: 1.2.5 + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/source-map/0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz} + name: source-map + version: 0.6.1 + engines: {node: '>=0.10.0'} + requiresBuild: true + optional: true
1b760f490c7ba9dd77eb7f015e4538854606e9e0
2024-05-13 12:33:19
王亚琪
fix(uts2js): 修复JSON.parse不支持传入Map作为泛型的Bug#issues/1985
false
修复JSON.parse不支持传入Map作为泛型的Bug#issues/1985
fix
diff --git a/packages/uni-uts-v1/lib/javascript/dist/index.js b/packages/uni-uts-v1/lib/javascript/dist/index.js index 01d6bdb64de..3be0b46854e 100644 --- a/packages/uni-uts-v1/lib/javascript/dist/index.js +++ b/packages/uni-uts-v1/lib/javascript/dist/index.js @@ -1 +1 @@ -"use strict";var n=require("fs"),r=require("path"),t=require("module"),e=require("@rollup/pluginutils"),o=require("colors/safe"),i=require("debug"),u=require("events"),c=require("find-cache-dir"),s=require("lodash"),f=require("semver"),a=require("source-map-js"),v=require("@babel/code-frame"),z=require("fs-extra"),L=require("graphlib"),C=require("object-hash"),g=require("url");function x(n){var r=Object.create(null);return n&&Object.keys(n).forEach((function(t){if("default"!==t){var e=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(r,t,e.get?e:{enumerable:!0,get:function(){return n[t]}})}})),r.default=n,Object.freeze(r)}var h,y,l,B,w=x(n),d=x(r),D=x(s),A=x(z);function M(n,r){var t=m();return M=function(r,e){var o=t[r-=0];if(void 0===M.KGuyzS){M.mZRnsC=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,M.KGuyzS=!0}var i=r+t[0],u=n[i];return u?o=u:(o=M.mZRnsC(o),n[i]=o),o},M(n,r)}function m(){var n=["zw5KC1DPDgG","CMvWBgfJzq","DhLWzsbpyMPLy3rjBMPLy3rpChrPB25ZpeKGpsbeyxrHpIa9ihSkicbBsYbPBIbRzxLVzIbjxtOGEWOGicaGDhLWztOGuhjVCfr5Cgu8svTlxt47cIaGicbMCM9TpZOGC3rYAw5NoWOGicaGzgvMyxvSDd86ieLBs10GFcaOkcKGpt4GsvTlxsK7cIaGFqP9oW","DhLWzsbjBMPLy3ruB09IAMvJDdXupIa9ifqGzxH0zw5KCYbZDhjPBMDBxsa/ihSkicbBsYbPBIbuw251BwjLCL1DoIb1BMTUB3DUoWP9idOGvcbLEhrLBMrZie9IAMvJDeLUAMvJDe9WDgLVBNm8Aw5MzxiGst4GpYb7cIaGw0SGAw4GA2v5B2yGsv06ieLBs107cN0GoIbUzxzLCJS"];return(m=function(){return n})()}function p(){var n=["x191DhniywnRzxjFxW"];return(p=function(){return n})()}function j(n,r){var t=p();return j=function(r,e){var o=t[r-=0];if(void 0===j.HrqFwI){j.pbqQlp=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,j.HrqFwI=!0}var i=r+t[0],u=n[i];return u?o=u:(o=j.pbqQlp(o),n[i]=o),o},j(n,r)}function S(n,r){var t=b();return S=function(r,e){var o=t[r-=0];if(void 0===S.vbiJxD){S.XSugzC=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,S.vbiJxD=!0}var i=r+t[0],u=n[i];return u?o=u:(o=S.XSugzC(o),n[i]=o),o},S(n,r)}function q(n){return n[(r=151,t=151,S(t-151,r))](/\\/g,"/");var r,t}function b(){var n=["CMvWBgfJzq"];return(b=function(){return n})()}function P(n,r){const t=N();return P=function(r,e){let o=t[r-=0];if(void 0===P.dnuLFX){P.BVDfGv=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,P.dnuLFX=!0}const i=r+t[0],u=n[i];return u?o=u:(o=P.BVDfGv(o),n[i]=o),o},P(n,r)}globalThis[(l=-921,B=-922,j(B- -922,l))]={...globalThis[(h=111,y=112,j(h-111,y))],replaceVueTypes:function(n,r){function t(n,r,t,e){return M(t-891,e)}if(!n[e(-218,-219,-220,-217)]("runtime-core.d.ts"))return r;function e(n,r,t,e){return M(r- -219,e)}return r=(r=r[t(0,0,892,893)](/type ObjectInjectOptions = Record<([\s\S]+?)>;/,t(0,0,893,891)))[t(0,0,892,892)](/type InjectToObject<T([\s\S]+?): never;/,e(-215,-216,-218,-217))}};const U=new Map;function H(n){const r=q(n);function t(n,r,t,e){return P(t- -822,e)}if(U.has(r))return U[t(0,0,-822,-823)](r);if(w[e(644,642,642,643)](r))return U[t(0,0,-820,-822)](r,!0),!0;function e(n,r,t,e){return P(e-642,n)}return U[e(643,646,643,644)](r,!1),!1}function N(){const n=["z2v0","zxHPC3rZu3LUyW","C2v0"];return(N=function(){return n})()}var Y,W,Z;function V(n,r){var t=T();return V=function(r,e){var o=t[r-=0];if(void 0===V.AtHFMh){V.hHUunk=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,V.AtHFMh=!0}var i=r+t[0],u=n[i];return u?o=u:(o=V.hHUunk(o),n[i]=o),o},V(n,r)}function T(){var n=["vvrtsLnptK9IAMvJDa","vu5jx0vsuK9s","vw5PrxjYB3i","sLnptG","vvrt","revgsu5fx0nptvbptKvova","zgvMAw5Lq29TCg9Uzw50","revgsu5fx0fqua","zgvMAw5LqxbW","vLvf","DNvL","r0XpqKfmx1risvm","z2XVyMfSvgHPCW","vvrtx1rzueu","vvrtx01fvefeqvrb","jfvuu01LDgfKyxrHja","vevnuf9vvfnFtuvuqurbvee","jfrLBxbvvfnnzxrHzgf0ysq","sLnptL9gsuvmra","revgsu5fx1bmvuDjtG","zgvMAw5LugX1z2LU","revgsu5fx0vyue9trq","zgvMAw5LrxHWB3nL","q0Xbu1m","su5urvjgqunf","vfLqrq"];return(T=function(){return n})()}function G(n,r){var t=I();return G=function(r,e){var o=t[r-=0];if(void 0===G.kjpXrq){G.ZQLzPc=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,G.kjpXrq=!0}var i=r+t[0],u=n[i];return u?o=u:(o=G.ZQLzPc(o),n[i]=o),o},G(n,r)}function I(){var n=["v2fYBMLUzW","rxjYB3i","u3vNz2vZDgLVBG","twvZC2fNzq"];return(I=function(){return n})()}function K(n,r,t,e){return J(t-925,n)}function J(n,r){const t=X();return J=function(r,e){let o=t[r-=0];if(void 0===J.hMGVrr){J.HxOYQs=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,J.hMGVrr=!0}const i=r+t[0],u=n[i];return u?o=u:(o=J.HxOYQs(o),n[i]=o),o},J(n,r)}function O(n,r,t,e,o,i,u){return{code:n,category:r,key:t,message:e,reportsUnnecessary:o,elidedInCompatabilityPyramid:i,reportsDeprecated:u}}function E(n,r,t,e){return J(n-345,t)}function X(){const n=["rxjYB3i","vhLWzv9SAxrLCMfSx3bYB3bLCNr5x211C3rFAgf2zv9Hx3r5CgvFyw5UB3rHDgLVBL8XmdaWmda","vhLWzsbSAxrLCMfSihbYB3bLCNr5ig11C3qGAgf2zsbHihr5CguGyw5UB3rHDgLVBI4","t25SEv9VBMvFzxH0zw5KC19OzxjPDgfNzv9JBgf1C2vFAxnFywXSB3DLzf9MB3jFAw50zxjMywnLxZeWmdaWmq","t25SEsbVBMuGzxH0zw5KCYbOzxjPDgfNzsbJBgf1C2uGAxmGywXSB3DLzcbMB3iGAw50zxjMywnL","vMfYAwfIBgvFzgvJBgfYyxrPB25FBxvZDf9OyxzLx2LUAxrPywXPEMvYxZeWmdaWmG","tMvZDgvKx3r5CgvFBgL0zxjHBf9PC19UB3rFC3vWCg9YDgvKxZeWmdaWmW","tMvZDgvKihr5CguGBgL0zxjHBcbPCYbUB3qGC3vWCg9YDgvKlG","sw52ywXPzf9Nzw5LCMLJx3r5CgvFD2HPy2HFy2fUx25VDf9Izv9JB25ZDhj1y3rLzf8XmdaWmdq","sw52ywXPzcbNzw5LCMLJihr5CguGD2HPy2GGy2fUig5VDcbIzsbJB25ZDhj1y3rLzc4","ydXZy3jPChqGC2v0Dxa+ycbJyw5UB3qGy29UDgfPBIbfuYbTB2r1BguGzxHWB3j0CY4"];return(X=function(){return n})()}!function(n){function r(n,r,t,e){return V(e- -808,t)}function t(n,r,t,e){return V(e- -293,t)}n[r(-795,-795,-798,-808)]="UTSJSONObject",n[r(-804,-812,-815,-807)]=t(-282,-303,-288,-291),n.JSON=t(-281,-289,-294,-290),n[r(0,0,-797,-804)]="UTS",n[t(-297,-283,-280,-288)]=t(-278,-280,-294,-287),n[r(0,0,-810,-801)]=t(-272,-287,-276,-285),n[t(-275,-271,-296,-284)]=t(-287,-277,-291,-283),n[t(0,0,-286,-282)]=r(0,0,-798,-796),n[r(0,0,-786,-795)]="UTSType",n[t(0,0,-272,-279)]=t(0,0,-290,-278),n[t(0,0,-279,-277)]=t(0,0,-275,-276),n[r(0,0,-789,-790)]=t(0,0,-277,-275),n.DEFINE_MIXIN="defineMixin",n[r(0,0,-778,-789)]=r(0,0,-786,-788),n[t(0,0,-269,-272)]=r(0,0,-794,-786)}(Y||(Y={})),function(n){var r,t;function e(n,r,t,e){return V(r-399,t)}n[n[(r=608,t=598,V(t-575,r))]=0]=e(432,422,414),n[n[e(0,423,427)]=1]=e(0,423,432),n[n[e(0,424,430)]=2]=e(0,424,432)}(W||(W={})),function(n){function r(n,r,t,e){return G(r-689,t)}function t(n,r,t,e){return G(t- -331,n)}n[n[r(687,689,691)]=0]=t(-333,-333,-331),n[n[t(-332,-328,-330)]=1]="Error",n[n[t(-330,-329,-329)]=2]=r(0,691,693),n[n[t(-330,0,-328)]=3]=t(-330,0,-328)}(Z||(Z={}));const R={Type_literal_property_must_have_a_type_annotation:O(1e5,Z[K(926,0,925)],K(926,0,926),K(927,0,927)),Only_one_extends_heritage_clause_is_allowed_for_interface:O(100001,Z.Error,K(927,0,928),K(930,0,929)),Variable_declaration_must_have_initializer:O(100002,Z[E(345,0,340)],K(936,0,930),"Variable declaration must have initializer."),Nested_type_literal_is_not_supported:O(100003,Z[E(345,0,339)],K(933,0,931),E(352,0,354)),Invalid_generic_type_which_can_not_be_constructed:O(100004,Z[E(345,0,344)],E(353,0,354),E(354,0,355)),script_setup_cannot_contain_ES_module_exports:O(100005,Z[K(920,0,925)],"script_setup_cannot_contain_ES_module_exports_100005",E(355,0,349))};function k(n){function r(n,r,t,e){return F(e- -102,n)}return n.factory[r(-101,0,0,-102)](Y[r(-101,0,0,-101)])}function F(n,r){var t=_();return F=function(r,e){var o=t[r-=0];if(void 0===F.MiSghp){F.nDbXWw=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,F.MiSghp=!0}var i=r+t[0],u=n[i];return u?o=u:(o=F.nDbXWw(o),n[i]=o),o},F(n,r)}function _(){var n=["y3jLyxrLswrLBNrPzMLLCG","vvrt"];return(_=function(){return n})()}function Q(n,r){const t=$();return Q=function(r,e){let o=t[r-=0];if(void 0===Q.UwKRmD){Q.LkxnMQ=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Q.UwKRmD=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Q.LkxnMQ(o),n[i]=o),o},Q(n,r)}function $(){const n=["zgvJBgfYyxrPB25Z","C29Tzq","AxnjBxbVCNrtCgvJAwzPzxi","AxnjBxbVCNrdBgf1C2u","BMfTzq","B3jPz2LU","DhLWzq","C3LTyM9S","x19VyMPLy3q","B2jQzwn0rMXHz3m","t2jQzwn0rMXHz3m","rNjLC2HmAxrLCMfS","z2v0u3LTyM9S","u3LTyM9SrMXHz3m","t2jQzwn0tgL0zxjHBa","AxnuExbLqxnZAwDUywjSzvrV","z2v0uhjVBwLZzwruExbLt2zqCM9TAxnL","DhLWzxm","zxnJyxbLze5HBwu","vvrtsLnptK9IAMvJDa","AxnvBMLVBLr5CgvoB2rL","AxnmAxrLCMfSvhLWzu5Vzgu","BgL0zxjHBa","A2LUza","u3LUDgf4s2LUza","tNvSBeTLExDVCMq","CgfYzw50","AxnjzgvUDgLMAwvY","zMfJDg9YEq","y3jLyxrLvw5PB25uExbLtM9Kzq","y3jLyxrLtNvSBa","y3jLyxrLtgL0zxjHBfr5CgvoB2rL"];return($=function(){return n})()}function nn(n,r,t){function e(n){function r(n,r,t,e){return Q(t- -24,e)}return n?.constraintType?.[r(0,0,-19,-17)]?.[r(0,0,-18,-5)]||n}function o(n){if(!n)return!1;const t=r.getNullType();return r[(e=-308,o=-319,Q(e- -323,o))](t,n);var e,o}function i(r){function t(n,r,t,e){return Q(r- -5,e)}function e(n,r,t,e){return Q(e-123,t)}return!!(r&&n[t(0,15,0,21)](r)&&r.types[e(0,0,137,124)]((r=>n[e(0,0,149,144)](r)&&r[t(0,17,0,10)][t(0,18,0,28)]===n[t(0,19,0,3)][e(0,0,159,148)])))}return{ts:n,typeChecker:r,context:t,isImportedSymbol:function(r){function t(n,r,t,e){return Q(n- -262,e)}return!(!r[t(-262,0,0,-263)]||!r[t(-262,0,0,-268)][t(-261,0,0,-248)]((r=>{function t(n,r,t,e){return Q(e-524,t)}return n[t(0,0,511,526)](r)||n[(e=-518,o=-528,Q(o- -531,e))](r)&&r[t(0,0,526,528)];var e,o})))},isPossibleUTSJSONObjectType:function(n,r=!1){function t(n,r,t,e){return Q(n- -189,t)}return n?n.isUnion()&&n[t(-172,0,-171)].some((n=>e(n)[t(-182,0,-192)]?.escapedName===Y.UTSJSONObject))||e(n).symbol?.[(o=432,i=418,Q(i-400,o))]===Y[t(-170,0,-169)]:!r;var o,i},isPossibleNullType:o,isPossiblePromiseNullType:function(n){return!!n&&o(r[(t=-131,e=-133,Q(t- -147,e))](n));var t,e},createTypeNodeWithNullType:function(r,e){const o=t[c(331,345)],u=i(r);function c(n,r,t,e){return Q(n-303,r)}function s(n,r,t,e){return Q(n-238,r)}let f=r;return e&&!u&&(f=n[s(258,272)](r)?o[c(332,320)]([...r[s(255,262)],o.createLiteralTypeNode(o[c(333,334)]())]):o[s(267,259)]([r,o[c(334,338)](o[c(333,329)]())])),f},isUnionWithNullType:i,isObjectLiteralType:function(r){if(!r)return!1;if(r[e(-505,-533,-524,-518)]?.escapedName===i(-845,-854,-843))return!0;const t=r?.[e(-511,-503,-513,-516)];function e(n,r,t,e){return Q(e- -525,n)}if(t&&(t&n[i(-843,-834,-848)].ObjectLiteral||t&n[e(-529,0,0,-515)][i(-842,-828,-833)]))return!0;const o=r[e(-527,0,0,-513)]();if(o&&o.flags&n[e(-499,0,0,-512)][i(-839,-849,-828)])return!0;function i(n,r,t,e){return Q(n- -853,t)}return!1},getMethodNameNodeOfObjectLiteral:function(r){function t(n,r,t,e){return Q(t-406,e)}if(n.isMethodDeclaration(r))return r[(e=621,o=619,Q(o-615,e))];var e,o;const i=r[t(0,0,432,416)];if(!n.isPropertyAssignment(i))return;const u=i[t(0,0,410,404)];return n[t(0,0,433,436)](u)?u:void 0}}}const rn=[260,169,172,171,208,219,253,229,223,213,214,170,216,234,226,303,304,305,209,227,239,217,235,238,277,294,291,293,286,285];function tn(){const n=["zMLSzu5HBwu","AxnvvfngAwXL","zw5KC1DPDgG","lMqUDhm","AxnwDwvgAwXL","vhLWzufSAwfZrgvJBgfYyxrPB24","ChvZAa","u291CMnLrMLSzq","zM9YrwfJAa","zNvUy3rPB24","CgfYC2vY","yMvMB3jL","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm"];return(tn=function(){return n})()}function en(n,r,t,e=!1,o=!1){return i=>{const u=t(i);return t=>{function c(n,r,t,e){return on(r- -680,e)}function s(n,r,t,e){return on(r-246,n)}if(!i.fileName&&n.isSourceFile(t)&&(i.fileName=t[c(0,-680,0,-676)]),r[s(240,247)](i[c(0,-680,0,-682)])||o&&i[s(246,246)][c(0,-678,0,-680)](s(255,249))){n.isSourceFile(t)&&!t[s(243,247)]&&(t[c(0,-679,0,-684)]=!0,r[c(0,-676,0,-677)](i[s(239,246)])&&(t[c(0,-676,0,-676)]=!0));const o=u(t);return o!==t&&e&&n.setParentRecursive(o,!0),o}return t}}}function on(n,r){const t=tn();return on=function(r,e){let o=t[r-=0];if(void 0===on.bqoOPH){on.paFOyM=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,on.bqoOPH=!0}const i=r+t[0],u=n[i];return u?o=u:(o=on.paFOyM(o),n[i]=o),o},on(n,r)}function un(n,r){return t=>{const e={},o=[];const i=[],u=[];return r[(c=-336,s=-343,on(c- -344,s))]((r=>{const c=r(n,t);function s(n,r,t,e){return on(r-518,e)}function f(n,r,t,e){return on(n-811,e)}typeof c===s(0,527,0,520)?o[s(0,524,0,524)](en(n,t,c)):(c[s(0,528,0,522)]&&function(n,r,t,e){function o(n,r,t,e){return on(r-808,t)}function i(n,r,t,e){return on(n-361,t)}e.TypeAliasDeclaration&&(t[o(0,813,808)]||(t.TypeAliasDeclaration=[]))[i(367,0,373)](en(n,r,e[o(0,813,806)],!0,!0)),e.SourceFile&&(t[o(0,815,821)]||(t[o(0,815,810)]=[]))[i(367,0,364)](en(n,r,e.SourceFile,!0))}(n,t,e,c[f(821,0,0,819)]),c.before&&o[f(817,0,0,818)](en(n,t,c[s(0,529,0,530)])),c[s(0,530,0,527)]&&i.push(en(n,t,c.after)),c[f(824,0,0,828)]&&u[s(0,524,0,519)](en(n,t,c[f(824,0,0,831)])))})),{parser:e,before:o,after:i,afterDeclarations:u};var c,s}}function cn(){const n=["AxnqCM9Wzxj0EurLy2XHCMf0Aw9U","AxnjzgvUDgLMAwvY","BMfTzq","zxnJyxbLzfrLEhq","vevnuf9vvfnFtuvuqurbvee","vvrtx01fvefeqvrb","BgvUz3rO","AxndBgfZC0rLy2XHCMf0Aw9U","AgvYAxrHz2vdBgf1C2vZ","u3LUDgf4s2LUza","DhLWzxm","C29Tzq","zxHWCMvZC2LVBG","DhLWzunOzwnRzxi","z2v0q29UDgv4DhvHBfr5Cgu","C3LTyM9S","zMfJDg9YEq","y3jLyxrLugfYzw50AgvZAxPLzev4ChjLC3nPB24","y3jLyxrLswrLBNrPzMLLCG","y3jLyxrLs2v5D29Yzfr5CgvoB2rL","qw55s2v5D29Yza","vvrtx1rzueu","AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","AxnbC0v4ChjLC3nPB24","r0XpqKfmx1risvm","vvrt","y29UDgv4Da","AxnvBMLVBLDPDgHoDwXSvhLWzq","A2LUza","z2v0u3LTyM9SqxrmB2nHDgLVBG","Dg9tDhjPBMC","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","D2L0AeDLBMvYAwnZ","AxnbCNjHEvr5CgvoB2rL","y3jLyxrLqxjYyxLmAxrLCMfSrxHWCMvZC2LVBG","AxnuExbLtgL0zxjHBe5Vzgu","ywrKqMLUzerPywDUB3n0Awm","tMvZDgvKx3r5CgvFBgL0zxjHBf9PC19UB3rFC3vWCg9YDgvK","tNvTyMvY","u3rYAw5N","qM9VBgvHBG","y3jLyxrLu3rYAw5NtgL0zxjHBa","qw55","y3jLyxrLtwv0Ag9KrgvJBgfYyxrPB24","y3jLyxrLvg9Rzw4","u3rHDgLJs2v5D29Yza","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","uxvLC3rPB25uB2TLBG","y3jLyxrLuMv0DxjUu3rHDgvTzw50","y3jLyxrLqxnfEhbYzxnZAw9U","y3jLyxrLuhjVCgvYDhLbC3nPz25Tzw50","y3jLyxrLtNvTzxjPy0XPDgvYywW","y3jLyxrLt2jQzwn0tgL0zxjHBev4ChjLC3nPB24","y3jLyxrLr2v0qwnJzxnZB3jezwnSyxjHDgLVBG","zMLLBgrZ","y3jLyxrLqMXVy2S","ANneB2m","zM9YrwfJAa","DgfNCW","DgfNtMfTzq","sLnptL9gsuvmra","C3rYAw5N","y29TBwvUDa","C2XPy2u","DhLWzq","y3jLyxrLvhj1zq","y3jLyxrLrMfSC2u"];return(cn=function(){return n})()}function sn(n,r){const{ts:t}=n,e=r?.declarations;if(1!==e?.[c(752,765)])return!1;const o=e[0];if(t[(i=-399,u=-428,vn(i- -406,u))](o)){const r=o[c(775,767)]?.some((r=>{function e(n,r,t,e){return vn(r-154,n)}return r.token===t[(o=-763,i=-752,vn(o- -772,i))].ExtendsKeyword&&r[e(131,164)][e(158,165)]((r=>{function t(n,r,t,e){return vn(t-883,e)}return zn(n,r[t(0,0,895,871)])||function(n,r){const t=n.ts;if(!t.isPropertyAccessExpression(r))return!1;function e(n,r,t,e){return vn(n-360,e)}const{expression:o,name:i}=r;function u(n,r,t,e){return vn(e-316,t)}return t[e(361,333,354,385)](i)&&i[u(342,295,329,319)]===Y[e(385,367,389,366)]&&t[e(361,380,368,371)](o)&&o[u(306,329,324,319)]===Y.UTS_TYPE}(n,r[t(0,0,895,916)])}));var o,i}));return r}var i,u;function c(n,r,t,e){return vn(r-759,n)}return!1}function fn(n,r){function t(n,r,t,e){return vn(t-382,n)}return r[t(389,0,397)]&&sn(n,r[t(408,0,397)])}function an(n){const r=n.context[e(191,179,239,208)],t=n.ts;function e(n,r,t,e){return vn(e-192,r)}function o(n,r,t,e){return vn(n-270,e)}return r.createPropertyAccessExpression(r[o(287,0,0,303)](r.createAsExpression(r[o(288,0,0,273)](Y.GLOBAL_THIS),r[e(0,197,0,211)](t[o(279,0,0,264)][o(290,0,0,320)]))),r[o(288,0,0,262)](Y[e(0,244,0,213)]))}function vn(n,r){const t=cn();return vn=function(r,e){let o=t[r-=0];if(void 0===vn.CSEYlC){vn.qoPUic=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,vn.CSEYlC=!0}const i=r+t[0],u=n[i];return u?o=u:(o=vn.qoPUic(o),n[i]=o),o},vn(n,r)}function zn(n,r){const t=n.ts;function e(n,r,t,e){return vn(t- -56,e)}if(!t[o(735,744,764,737)](r))return!1;function o(n,r,t,e){return vn(r-722,e)}const{expression:i,name:u}=r;return t[o(0,723,0,755)](u)&&u.escapedText===Y[o(0,743,0,727)]&&t.isParenthesizedExpression(i)&&t[e(0,0,-33,-21)](i[e(0,0,-44,-57)])&&t.isIdentifier(i[e(0,0,-44,-58)][e(0,0,-44,-57)])&&i[o(0,734,0,761)][e(0,0,-44,-35)][o(0,725,0,756)]===Y[o(0,746,0,750)]}function Ln(n,r){const{ts:t}=n,e=n[o(490,463,480)];function o(n,r,t,e){return vn(n-464,t)}const i=e[s(-446,-451,-452)],u=n[o(477,0,507)],c=i.createStringLiteral("Unknown");function s(n,r,t,e){return vn(r- -467,t)}if(n[s(-464,-440,-436)](r)&&2===r[o(474,0,504)].length&&(r=r[o(474,0,485)].find((n=>n[s(-430,-439,-407)]!==t.SyntaxKind.NullKeyword))),t.isTypeReferenceNode(r)){const{typeName:e,typeArguments:f}=r;if(!t.isIdentifier(e))return c;const a=u[s(0,-438,-441)](e),v=a?.declarations?.[0];return v&&function(n,r){if(!n.ts[t(100,108,76)](r))return!1;function t(n,r,t,e){return vn(t-69,r)}const{heritageClauses:e}=r,o=e?.[0]?.[t(0,55,79)]?.[0]?.[t(0,96,81)];return!(!o||!zn(n,o))}(n,v)?f?i[s(0,-436,-447)](i[s(0,-435,-426)](an(n),i[s(0,-449,-447)](s(0,-434,-417))),void 0,[i[o(482,0,465)](e.escapedText.toString()),i.createArrayLiteralExpression([...f.map((r=>Ln(n,r)))],!1)]):i[o(482,0,491)](e[o(467,0,450)][s(0,-437,-447)]()):c}if(t[s(0,-433,-442)](r))return i[s(0,-436,-429)](i.createPropertyAccessExpression(an(n),i[s(0,-449,-444)]("withGenerics")),void 0,[i[o(482,0,496)]("Array"),i[o(499,0,528)]([Ln(n,r.elementType)],!1)]);if(t[o(500,0,514)](r))e[s(0,-430,-416)](t.createDiagnosticForNode(r,R[s(0,-429,-453)]));else{if(r[o(492,0,476)]===t[s(0,-458,-435)].NumberKeyword)return i[s(0,-449,-467)](o(503,0,537));if(r[o(492,0,516)]===t.SyntaxKind.StringKeyword)return i[o(482,0,505)](s(0,-427,-452));if(r[s(0,-439,-470)]===t[s(0,-458,-432)].BooleanKeyword)return i[s(0,-449,-479)](o(505,0,478));if(r[s(0,-439,-414)]===t[o(473,0,498)][o(484,0,517)])return i[o(506,0,515)](o(507,0,481))}return c}function Cn(n,r,t){const{ts:e}=n;function o(n,r,t,e){return vn(n-463,e)}function i(n,r,t,e){return vn(t- -709,e)}const u=n.context[i(0,0,-693,-682)];return u[i(0,0,-665,-663)]([u[o(508,0,0,496)](e.SyntaxKind[o(509,0,0,510)])],void 0,u.createIdentifier("get"+Y[o(468,0,0,480)]),void 0,void 0,r?[...r.map((n=>{function r(n,r,t,e){return vn(n-274,e)}function t(n,r,t,e){return vn(n- -501,t)}return u[r(321,0,0,289)](void 0,void 0,u[t(-483,0,-477)](n[t(-499,0,-486)].escapedText[r(304,0,0,290)]()),u[r(319,0,0,311)](e.SyntaxKind[r(322,0,0,350)]),u[r(293,0,0,271)](e[r(283,0,0,272)].AnyKeyword),void 0)}))]:[],void 0,u.createBlock([u[o(512,0,0,537)](u[i(0,0,-659,-677)](t,u[i(0,0,-690,-715)](e[o(472,0,0,484)][i(0,0,-689,-663)])))],!0))}function gn(n,r,t){function e(n,r,t,e){return vn(t-955,e)}const o=n.context.factory;function i(n,r,t,e){return vn(t- -409,r)}const u=[o[i(0,-388,-358)](o[i(0,-379,-391)](e(0,0,983,1003)),o[e(0,0,1007,979)](r)),o[i(0,-378,-358)](o[e(0,0,973,966)]("interfaces"),o[i(0,-398,-374)](t,!1))];return[Cn(n,void 0,o[e(0,0,1008,1011)](u,!0))]}function xn(){const n=["y29UDgv4Da","zMLSDgvY","u3LUDgf4s2LUza","sw1WBgvTzw50C0TLExDVCMq","DhLWzxm","zxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","z2v0u3LTyM9SqxrmB2nHDgLVBG","zgvJBgfYyxrPB25Z","BgvUz3rO","AxndBgfZC0rLy2XHCMf0Aw9U","ChvZAa","DhLWzvbHCMfTzxrLCNm","AgvYAxrHz2vdBgf1C2vZ","q0Xbu1m","BwvTyMvYCW","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","DMLZAxroB2rL"];return(xn=function(){return n})()}function hn(n,r){const t=xn();return hn=function(r,e){let o=t[r-=0];if(void 0===hn.wjZOzB){hn.PFrkbU=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,hn.wjZOzB=!0}const i=r+t[0],u=n[i];return u?o=u:(o=hn.PFrkbU(o),n[i]=o),o},hn(n,r)}function yn(n,r){const t=ln();return yn=function(r,e){let o=t[r-=0];if(void 0===yn.mLmnJB){yn.WNHNzn=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,yn.mLmnJB=!0}const i=r+t[0],u=n[i];return u?o=u:(o=yn.WNHNzn(o),n[i]=o),o},yn(n,r)}function ln(){const n=["x191DhnvBMLyr2XVyMfSuhjVCgvYDgLLC19F","zMLSzu5HBwu","zMLSzq","zgvSzxrL","AxncAw5HCNLfEhbYzxnZAw9U","A2LUza","u3LUDgf4s2LUza","rxf1ywXZvg9Rzw4","AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","Dg9tDhjPBMC","z2XVyMfSuhjVCgvYDgLLCW","zxnJyxbLzfrLEhq","y29UzMLN","C2v0","DMLZAxrfywnOq2HPBgq"];return(ln=function(){return n})()}var Bn,wn;globalThis.__utsUniXGlobalProperties__=globalThis[(Bn=-922,wn=-920,yn(Bn- -922,wn))]||new Map;function dn(){const n=["AxntB3vYy2vgAwXL","ywrKqMLUzerPywDUB3n0Awm","yMLUzerPywDUB3n0AwnZ","ChvZAa","ywrKqMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJ","yMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJCW"];return(dn=function(){return n})()}function Dn(n,r){const t=dn();return Dn=function(r,e){let o=t[r-=0];if(void 0===Dn.ZkeKBK){Dn.AAIziR=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Dn.ZkeKBK=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Dn.AAIziR(o),n[i]=o),o},Dn(n,r)}function An(n,r){const t=Mn();return An=function(r,e){let o=t[r-=0];if(void 0===An.ynqsam){An.OaNZbk=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,An.ynqsam=!0}const i=r+t[0],u=n[i];return u?o=u:(o=An.OaNZbk(o),n[i]=o),o},An(n,r)}function Mn(){const n=["C3rHDgvTzw50CW","zM9YrwfJAa","AxnfEhbVCNrezwnSyxjHDgLVBG","Bw9KDwXLu3bLy2LMAwvY","Dgv4Da","zw5KC1DPDgG","lNv0CW","CMvWBgfJzq"];return(Mn=function(){return n})()}function mn(n,r){const t=Sn();return mn=function(r,e){let o=t[r-=0];if(void 0===mn.kvMxeQ){mn.mhRxOB=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,mn.kvMxeQ=!0}const i=r+t[0],u=n[i];return u?o=u:(o=mn.mhRxOB(o),n[i]=o),o},mn(n,r)}function pn(n,r){const{ts:t}=n;function e(n,r,t,e){return mn(t-160,e)}const o=r[i(-610,-636,-613)];function i(n,r,t,e){return mn(n- -630,t)}return t[e(0,0,195,200)](o)&&o[e(0,0,171,188)]&&t[i(-603,0,-631)](o.name)&&"___returned__"===o[e(0,0,171,148)][i(-602,0,-617)]}function jn(n,r,t){function e(n,r,t,e){return mn(n-530,t)}const{ts:o}=n,i=n[e(566,0,536)],u=n[f(208,206,180)],c=i[e(530,0,551)];if((r[f(205,240,226)]&o.NodeFlags[e(568,0,587)])===o[f(235,242,212)][f(249,241,211)])return;if(r[e(550,0,536)]&&o[e(570,0,592)](r.parent)||function(n,r){const{ts:t}=n,e=r[u(324,348)];if(!e||!t[s(-440,-445,-451)](e))return!1;const o=e?.[s(-409,-446,-430)]?.[u(336,348)];if(!o||!t[u(377,350)](o))return!1;const i=o[u(313,339)];if(!i||!t.isIdentifier(i)||i.escapedText[u(363,351)]()!==u(374,352))return!1;function u(n,r,t,e){return mn(r-328,n)}const c=o?.[s(-453,-446,-454)]?.[s(-470,-446,-452)];if(!c||!t[u(321,353)](c))return!1;function s(n,r,t,e){return mn(r- -466,t)}const f=c[u(376,354)];return!(!f||!t[s(0,-439,-474)](f)||f[s(0,-438,-415)][s(0,-443,-455)]()!==u(387,357))}(n,r)||function(n,r){const{ts:t}=n;function e(n,r,t,e){return mn(t-20,r)}function o(n,r,t,e){return mn(n- -593,e)}if(process[e(0,85,50)][e(0,46,51)]&&q(d[e(0,71,52)](process[e(0,18,50)][o(-562,0,0,-569)],"main.uts"))===q(r[o(-560,0,0,-576)]()[e(0,7,36)])&&r[o(-573,0,0,-604)]&&t[o(-572,0,0,-549)](r[o(-573,0,0,-559)])){const n=r?.[e(0,26,40)]?.[o(-573,0,0,-603)]?.[o(-573,0,0,-548)];if(n&&t[o(-559,0,0,-563)](n)&&n[o(-582,0,0,-560)]&&t[e(0,34,47)](n[e(0,56,31)])&&"createApp"===n[e(0,54,31)].escapedText)return!0}}(n,r)||pn(n,r))return;const s=u[e(542,0,529)](r);function f(n,r,t,e){return mn(r-203,t)}if(!s||n[e(571,0,550)](s))return function(n,r){function t(n,r,t,e){return mn(n-959,r)}return r.factory.createNewExpression(r[t(959,982)][(e=-274,o=-284,mn(e- -275,o))](Y[t(961,964)]),void 0,[n]);var e,o}(r,i);const a=s.symbol,v=a?.[e(572,0,565)];if(!v||!fn(n,s))return;if(u[e(573,0,564)](a,r,o[f(0,247,254)].Class,!0)[e(575,0,579)]!==o[e(576,0,604)].Accessible)return c[f(0,250,214)](r,c[e(578,0,542)](u[f(0,252,270)](a,o[f(0,247,248)][e(580,0,601)],r,void 0),void 0));const z=u[f(0,254,285)](a,r,a[e(567,0,586)],!1);let L;if(z&&z[f(0,208,187)]>0)L=u[e(579,0,556)](a,o.SymbolFlags[f(0,253,283)],r,void 0);else{const i=a[e(534,0,558)];if(!i||1!==i[f(0,208,225)])return;const u=i[0][e(563,0,575)](),s=r[e(563,0,550)]();if(u===s)return;let v,z;if(t[e(582,0,564)](a)){const n=t[e(538,0,525)](a);v=n.alias,z=n.importDeclaration}else{const r=a[e(572,0,582)];if(v=o[f(0,256,262)](r,s),z=function(n,r,t,e){const{ts:o}=n,i=n.context,u=n[c(-722,-691,-708)];function c(n,r,t,e){return mn(t- -711,r)}let s="";function f(n,r,t,e){return mn(t-508,r)}if(1!==(t?.[f(529,500,512)]||[])[f(529,549,513)])return;const a=r[c(0,-717,-705)]?.[c(0,-698,-704)];for(const n of a.keys()){const r=a[c(0,-726,-703)](n)[f(0,529,512)]||[];if(1!==r[f(0,532,513)])continue;const e=r[0];let i,v;if(o[c(0,-702,-702)](e)?v=e.name:o[f(0,517,518)](e)?v=e.expression:o.isExportSpecifier(e)&&(v=e[c(0,-712,-700)]),i=v&&(u[c(0,-711,-699)](v)?.[f(0,521,514)]||u[f(0,543,521)](v)?.[c(0,-679,-705)]),i===t){s=n;break}}if(!s)return;const v=i.factory,z=v[c(0,-720,-710)](e);return s===c(0,-702,-697)?v.createImportDeclaration(void 0,v.createImportClause(!1,z,void 0),v[c(0,-680,-696)](r[c(0,-663,-695)]),void 0):v.createImportDeclaration(void 0,v[f(0,559,525)](!1,void 0,v[f(0,520,526)]([v[c(0,-717,-692)](!1,s!==e?v[f(0,490,509)](s):void 0,z)])),v[c(0,-711,-696)](r.fileName),void 0)}(n,u,a,v),!z)return;t[e(584,0,576)](a,{symbol:a,alias:v,importDeclaration:z})}L=c.createIdentifier(v)}return c.createAsExpression(r,c.createTypeReferenceNode(L,void 0))}function Sn(){const n=["zMfJDg9YEq","y3jLyxrLswrLBNrPzMLLCG","vvrtsLnptK9IAMvJDa","DhLWzunOzwnRzxi","zgvJBgfYyxrPB25Z","BgvUz3rO","C3LTyM9S","zxHWB3j0CW","z2v0","AxndBgfZC0rLy2XHCMf0Aw9U","AxnfEhbVCNrbC3nPz25Tzw50","BMfTzq","z2v0q29UDgv4DhvHBfr5Cgu","z2v0vhLWzuf0tg9JyxrPB24","zgvMyxvSDa","y3jLyxrLu3rYAw5NtgL0zxjHBa","zMLSzu5HBwu","y3jLyxrLsw1WB3j0q2XHDxnL","y3jLyxrLtMfTzwrjBxbVCNrZ","y3jLyxrLsw1WB3j0u3bLy2LMAwvY","CgfYzw50","Axnszxr1CM5tDgf0zw1LBNq","AxnnzxrOB2rezwnSyxjHDgLVBG","Dg9tDhjPBMC","zgf0yq","AxndywXSrxHWCMvZC2LVBG","zxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","zxnJyxbLzfrLEhq","zgvMAw5Lq29TCg9Uzw50","zw52","vu5jx0Loufvux0rjuG","CMvZB2X2zq","z2v0u291CMnLrMLSzq","AxngDw5JDgLVBKrLy2XHCMf0Aw9U","AxnwyxjPywjSzurLy2XHCMf0Aw9U","y29UDgv4Da","zMXHz3m","u3LUDgHLC2L6zwq","tM9KzuzSywDZ","AxnbC0v4ChjLC3nPB24","AxnqB3nZAwjSzvvuu0Ptt05pyMPLy3ruExbL","zxnJyxbLze5HBwu","AxntEw1IB2Xby2nLC3nPyMXL","u3LTyM9SrMXHz3m","ywnJzxnZAwjPBgL0Eq","u3LTyM9SqwnJzxnZAwjPBgL0Eq","y3jLyxrLqxnfEhbYzxnZAw9U","y3jLyxrLvhLWzvjLzMvYzw5Jzu5Vzgu","C3LTyM9Svg9fBNrPDhLoyw1L","q2XHC3m","z2v0qwnJzxnZAwjSzvn5BwjVBenOywLU","AgfZ","z2v0vw5PCxvLtMfTzq","C2v0","DhLWzq","Aw5JBhvKzxm","A2LUza","DMLZAxroB2rL","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","AxnpyMPLy3rmAxrLCMfSrxHWCMvZC2LVBG","DMLZAxrfywnOq2HPBgq","yxjNDw1LBNrZ","DxbKyxrLtMv3rxHWCMvZC2LVBG","DxbKyxrLqxnfEhbYzxnZAw9U","DMfSDwvZ","Aw1WB3j0rgvJBgfYyxrPB24","DxbKyxrLu291CMnLrMLSzq","C3rHDgvTzw50CW","AxnezwnSyxjHDgLVBKzPBgu","CMvMzxjLBMnLzezPBgvZ","AgfZtM9ezwzHDwX0tgLI","BgLIuMvMzxjLBMnLrgLYzwn0AxzLCW"];return(Sn=function(){return n})()}function qn(n,r){const t=bn();return qn=function(r,e){let o=t[r-=0];if(void 0===qn.JnoGSX){qn.lEJmqE=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,qn.JnoGSX=!0}const i=r+t[0],u=n[i];return u?o=u:(o=qn.lEJmqE(o),n[i]=o),o},qn(n,r)}function bn(){const n=["C3rHDgvTzw50CW","zM9YrwfJAa","AxnjBxbVCNrezwnSyxjHDgLVBG","AxnfEhbVCNrezwnSyxjHDgLVBG","AxntDhjPBMDmAxrLCMfS","Bw9KDwXLu3bLy2LMAwvY","Dgv4Da","zw5KC1DPDgG","lNv2DwuUDhm","lNz1zs50CW"];return(bn=function(){return n})()}function Pn(){const n=["zMfJDg9YEq","BwfW","AxnqCM9Wzxj0EvnPz25HDhvYzq","AxnnzxrOB2rtAwDUyxr1CMu","y3jLyxrLrNvUy3rPB25uExbLtM9Kzq","y3jLyxrLuhjVCgvYDhLezwnSyxjHDgLVBG","y3jLyxrLvhLWzuXPDgvYywXoB2rL","y3jLyxrLsw5KzxHtAwDUyxr1CMu","y3jLyxrLswrLBNrPzMLLCG","y3jLyxrLs2v5D29Yzfr5CgvoB2rL","u3LUDgf4s2LUza","u3rYAw5Ns2v5D29Yza","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","B3b0Aw9UCW","y3jLyxrLqMXVy2S","y3jLyxrLrxHWCMvZC2LVBLn0yxrLBwvUDa","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLu3vWzxi","BMfTzq","Dg9tDhjPBMC","y3jLyxrLqMLUyxj5rxHWCMvZC2LVBG","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","y3jLyxrLvgHPCW","y3jLyxrLvg9Rzw4","rxf1ywXZvg9Rzw4","ChvZAa","y3jLyxrLq2XHC3nezwnSyxjHDgLVBG","BgvUz3rO","rxH0zw5KC0TLExDVCMq","y29UDgv4Da","zMLSDgvY","vfLqrq","AxnjBMrLEfnPz25HDhvYzurLy2XHCMf0Aw9U","zMLUza","Bwv0ywrHDge","qw55s2v5D29Yza","z2v0","vvrtx01fvefeqvrb","Axnku09ougfYC2u","qM9VBgvHBKTLExDVCMq","y3jLyxrLrMfSC2u","x19WCM9WC19F","y3jLyxrLq29UC3rYDwn0B3jezwnSyxjHDgLVBG","Aw5PDfbYB3bZ","zxnJyxbLzfrLEhq","y3jLyxrLrgvSzxrLrxHWCMvZC2LVBG","DxbKyxrLq2XHC3nezwnSyxjHDgLVBG","DxbKyxrLvhLWzufSAwfZrgvJBgfYyxrPB24","BwvTyMvYCW","AxnuExbLqwXPyxnezwnSyxjHDgLVBG","AxnuExbLtgL0zxjHBe5Vzgu","DhLWzq","AxnjBNrLCMzHy2vezwnSyxjHDgLVBG","DMLZAxrfywnOq2HPBgq","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","vvrtx1rzueu","AxndBgfZC0rLy2XHCMf0Aw9U","DhLWzxm","zxHWCMvZC2LVBG"];return(Pn=function(){return n})()}function Un(n,r){const t=Pn();return Un=function(r,e){let o=t[r-=0];if(void 0===Un.RfITRX){Un.VDYxVH=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Un.RfITRX=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Un.VDYxVH(o),n[i]=o),o},Un(n,r)}function Hn(n,r){function t(n,r,t,e){return Un(t-335,e)}const e=n.ts;function o(n,r,t,e){return Un(r-411,n)}const i=n[o(449,440)].factory,{modifiers:u,name:c,typeParameters:s,heritageClauses:f,members:a}=r,v=a[t(0,0,365,359)]((n=>e.isPropertyDeclaration(n))),z=function(n,r,t,e){const o=n[i(333,318,338)][i(333,319,328)];function i(n,r,t,e){return vn(t-312,r)}const u=[o[i(0,341,363)](o[i(0,348,330)](i(0,342,340)),o[i(0,362,364)](r)),o[i(0,389,366)](void 0,o[i(0,334,330)](i(0,376,367)),[],void 0,o[i(0,367,368)]([o[i(0,353,361)](o[(c=292,s=321,vn(s-268,c))]([...t.map((r=>{let t="";function e(n,r,t,e){return vn(n- -908,t)}(r[u(526,535,540,548)]||[])[e(-850,0,-850)]((n=>{var r,e,o,i;(n[(r=-10,e=12,vn(e- -47,r))]||[])[(o=390,i=379,vn(i-321,o))]((n=>{function r(n,r,t,e){return vn(n-360,t)}function e(n,r,t,e){return vn(n- -338,t)}if(n[e(-278,0,-250)][r(363,0,340)]===Y[e(-277,0,-310)]&&typeof n.comment===e(-276,0,-287)){const o=n[e(-275,0,-263)].length;t="'"===n.comment[0]&&"'"===n[r(423,0,439)][o-1]||'"'===n[r(423,0,454)][0]&&'"'===n.comment[o-1]?n[r(423,0,398)][e(-274,0,-252)](1,-1):n.comment}}))}));const i=[o[e(-857,0,-870)](o[e(-890,0,-893)](e(-843,0,-829)),Ln(n,r.type)),o.createPropertyAssignment(o[e(-890,0,-872)]("optional"),r.questionToken||n[e(-881,0,-887)](r.type)?o[u(564,543,526,557)]():o[e(-841,0,-819)]())];function u(n,r,t,e){return vn(e-491,r)}return t&&i.push(o[e(-857,0,-870)](o[u(540,507,479,509)]("jsonField"),o[u(538,505,556,533)](t))),o[e(-857,0,-866)](o[u(0,537,0,509)](r.name[u(0,525,0,494)][e(-878,0,-861)]()),o[e(-855,0,-843)](i))}))],!0))],!0))];var c,s;return[Cn(n,e,o.createObjectLiteralExpression(u,!0))]}(n,W[t(0,0,366,354)],v,s?[...s]:[]),L=a.find((n=>e[t(0,0,367,359)](n))),C=a[o(455,444)]((n=>e.isConstructorDeclaration(n))),{parameters:g}=C,x=[...g,i.createParameterDeclaration(void 0,void 0,i.createIdentifier(o(415,445)),void 0,i.createKeywordTypeNode(e.SyntaxKind[t(0,0,370,350)]),i[t(0,0,351,379)](i.createPropertyAccessExpression(i[o(398,419)](c.escapedText),i[o(391,419)](t(0,0,371,359)+Y[t(0,0,372,366)])),void 0,[])),i[o(422,423)](void 0,void 0,i.createIdentifier(t(0,0,373,403)),void 0,i.createKeywordTypeNode(e.SyntaxKind[t(0,0,374,376)]),i[t(0,0,375,401)]())],h=o(435,452),y=i[t(0,0,377,370)](void 0,x,i[o(402,425)]([i[o(430,426)](i[t(0,0,351,326)](i.createSuper(),void 0,[])),i[o(405,426)](i.createBinaryExpression(i[o(426,432)](i[o(452,433)](),i[o(410,419)](h)),i.createToken(e[t(0,0,345,354)].EqualsToken),i[t(0,0,351,321)](i[t(0,0,356,328)](an(n),i[o(440,419)](o(464,454))),void 0,[i.createIdentifier(t(0,0,348,366)),i.createIdentifier(o(473,445)),i[t(0,0,343,350)](t(0,0,373,383))]))),...v[o(398,412)]((n=>{function r(n,r,t,e){return Un(e- -668,n)}function t(n,r,t,e){return Un(n- -400,e)}const{name:o}=n,u=o[r(-626,0,0,-624)];return i.createExpressionStatement(i[r(-645,0,0,-648)](i[r(-636,0,0,-647)](i.createThis(),i[r(-658,0,0,-660)](u)),i[t(-377,0,0,-401)](e[t(-390,0,0,-363)][r(-626,0,0,-644)]),i.createPropertyAccessExpression(i[t(-379,0,0,-407)](i[t(-378,0,0,-381)](),i[r(-630,0,0,-660)](h)),i[r(-656,0,0,-660)](u))))})),i[t(0,0,350,361)](i[o(481,456)](i.createPropertyAccessExpression(i[t(0,0,357,329)](),i[o(411,419)](h))))],!0));return i[t(0,0,381,387)](r,u,c,s,f,[L,...v,...z,y])}function Nn(n,r){const t=Yn();return Nn=function(r,e){let o=t[r-=0];if(void 0===Nn.jsNAkS){Nn.YnWdcP=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Nn.jsNAkS=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Nn.YnWdcP(o),n[i]=o),o},Nn(n,r)}function Yn(){const n=["AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","zxHWCMvZC2LVBG","BMfTzq","AxnjzgvUDgLMAwvY","Dw5Pq2XVDwq","x191DhnnzxrH","Dw5PrxH0qxbPCW","ywrK","DMLZAxrfywnOq2HPBgq"];return(Yn=function(){return n})()}function Wn(n,r){const t=Zn();return Wn=function(r,e){let o=t[r-=0];if(void 0===Wn.wTZZfh){Wn.EVbgbu=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Wn.wTZZfh=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Wn.EVbgbu(o),n[i]=o),o},Wn(n,r)}function Zn(){const n=["AxnfEhbYzxnZAw9U","AxnjzgvUDgLMAwvY","ywXPyxntEw1IB2W","Dg9tDhjPBMC","q29TCg9Uzw50uhvIBgLJsw5ZDgfUy2u","q3jLyxrLq29TCg9Uzw50uhvIBgLJsw5ZDgfUy2u","x191DhnvBMLyr2XVyMfSuhjVCgvYDgLLC19F","AgfZ","z2v0","AxnoDw1IzxjmAxrLCMfS","z2v0tNvTyMvYvhLWzq","z2v0u3rYAw5NvhLWzq","zMXHz3m","vhLWzuzSywDZ","z2v0qM9VBgvHBLr5Cgu"];return(Zn=function(){return n})()}function Vn(n,r,t,e){const o=nn(n,r,void 0),i=r[f(-1,-2,3)](),u=r[f(5,7,4)](),c=r.getVoidType(),s=r[f(3,5,5)]();function f(n,r,t,e){return Tn(t-3,r)}const a=r[L(-343,-344)]();function v(n){function r(n,r,t,e){return Tn(t-550,n)}let t=n[r(557,0,554)]();function e(n,r,t,e){return Tn(t-52,e)}return 1===t?.[r(552,0,555)]&&t[0].getSymbol()?.[e(0,0,58,62)]()===e(0,0,59,62)}function z(n){return n===u||n===c}function L(n,r,t,e){return Tn(n- -346,r)}return!!(o[L(-338,-343)](t)&&o[f(0,7,12)](e)||o[L(-338,-337)](t)&&o[f(0,17,12)](e))||(!!(z(t)&&e===i||t===i&&z(e))||(t!==i&&!z(t)||e!==s)&&(e!==i&&!z(e)||t!==s)&&(!!(t===a&&v(e)||v(t)&&e===a)||void 0))}function Tn(n,r){const t=Gn();return Tn=function(r,e){let o=t[r-=0];if(void 0===Tn.jdrIVi){Tn.bcFcTj=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Tn.jdrIVi=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Tn.bcFcTj(o),n[i]=o),o},Tn(n,r)}function Gn(){const n=["z2v0tNvSBfr5Cgu","z2v0vw5KzwzPBMvKvhLWzq","z2v0qw55vhLWzq","z2v0u3rYAw5NvhLWzq","z2v0qMfZzvr5CgvZ","BgvUz3rO","z2v0tMfTzq","u3rYAw5N","AxnpyMPLy3rmAxrLCMfSvhLWzq","AxnqB3nZAwjSzvvuu0Ptt05pyMPLy3ruExbL"];return(Gn=function(){return n})()}function In(){const n=["CMvZB2X2zq","zw52","vu5jx0Loufvux0rjuG","Dw5Px21VzhvSzxm","vu5jx1vuu19qtefurK9stq","yxbWlwLVCW","C3rHCNrZv2L0Aa","CMvSyxrPDMu","CMvWBgfJzq","DxrZC2rR","DxrZC2rRl2fWCc1QCW"];return(In=function(){return n})()}function Kn(n,r){const t=In();return Kn=function(r,e){let o=t[r-=0];if(void 0===Kn.elVVWD){Kn.IiSqGj=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Kn.elVVWD=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Kn.IiSqGj(o),n[i]=o),o},Kn(n,r)}function Jn(n,r,t,e){return Kn(t-473,n)}const On=q(d[Jn(473,0,473)](process[(En=687,Xn=685,Kn(En-686,Xn))][Jn(474,0,475)]||"",Jn(479,0,476)));var En,Xn;function Rn(n,r,t,e){return _n(e-423,t)}const kn=q(d.resolve(process[Rn(0,0,419,423)].UNI_INPUT_DIR||"",Rn(0,0,429,424)));const Fn=new RegExp("^"+kn+"/([a-zA-Z0-9_-]+)/index.d.ts$");function _n(n,r){const t=Qn();return _n=function(r,e){let o=t[r-=0];if(void 0===_n.CwfjKj){_n.IwhKOJ=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,_n.CwfjKj=!0}const i=r+t[0],u=n[i];return u?o=u:(o=_n.IwhKOJ(o),n[i]=o),o},_n(n,r)}function Qn(){const n=["zw52","Dw5Px21VzhvSzxm","Bwf0y2G","vu5jx1vuu19qtefurK9stq","yxbWlwLVCW","vu5jx0Loufvux0rjuG","CMvZB2X2zq","DxrZC2rR","yxbWlwPZ","DxrZC2rRl2LUzgv4lNv0CW","zw5KC1DPDgG","lMqUDhm","CMvWBgfJzq","lNz1zq"];return(Qn=function(){return n})()}const $n=process[Rn(0,0,424,423)][(rr=-212,tr=-219,_n(rr- -215,tr))],nr=$n===Rn(0,0,429,427);var rr,tr;function er(n,r){var t=or();return er=function(r,e){var o=t[r-=0];if(void 0===er.FxGWDA){er.yLVmmR=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,er.FxGWDA=!0}var i=r+t[0],u=n[i];return u?o=u:(o=er.yLVmmR(o),n[i]=o),o},er(n,r)}function or(){var n=["x191DhniywnRzxjFxW"];return(or=function(){return n})()}function ir(n,r,t,e){return er(t- -505,n)}function ur(n,r){function t(n,r,t,e){return fr(r- -173,t)}function e(n,r,t,e){return fr(r-559,n)}return n[e(568,559)](r)&&n[t(0,-172,-193)](r[t(0,-171,-149)])&&n[e(578,562)](r.expression.expression)&&r[e(567,561)][t(0,-171,-150)][t(0,-169,-171)]===Y[e(538,564)]}function cr(n,r){function t(n,r,t,e){return fr(e- -676,t)}function e(n,r,t,e){return fr(n-846,r)}return n[t(0,0,-647,-670)](void 0,void 0,n[e(853,871)](n.createIdentifier(Y.DEFINE_COMPONENT),void 0,[n[t(0,0,-691,-668)]([n[e(855,839)](void 0,void 0,n[e(856,865)](e(857,836)),void 0,void 0,[n[t(0,0,-646,-664)](void 0,void 0,n[t(0,0,-647,-666)](t(0,0,-689,-663)),void 0,void 0,void 0),n[e(858,837)](void 0,void 0,n.createObjectBindingPattern([n[t(0,0,-662,-662)](void 0,void 0,n[t(0,0,-692,-666)](t(0,0,-687,-661)),void 0)]),void 0,void 0,void 0)],void 0,n.createBlock(r,!0))],!0)]))}function sr(){const n=["AxnfEhbYzxnZAw9Uu3rHDgvTzw50","AxndywXSrxHWCMvZC2LVBG","zxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","Dgv4Da","revgsu5fx0vyue9trq","y3jLyxrLrxHWB3j0qxnZAwDUBwvUDa","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLt2jQzwn0tgL0zxjHBev4ChjLC3nPB24","y3jLyxrLtwv0Ag9KrgvJBgfYyxrPB24","y3jLyxrLswrLBNrPzMLLCG","C2v0Dxa","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","ChjVChm","y3jLyxrLqMLUzgLUz0vSzw1LBNq","zxHWB3nL","AxntB3vYy2vgAwXL","C3rHCNrZv2L0Aa","lY8Gqhv0CY1Zzxr1CaO","C3rHDgvTzw50CW","BgvUz3rO","AxnjBxbVCNrezwnSyxjHDgLVBG","ChvZAa","AxnfEhbVCNrbC3nPz25Tzw50","ywrKqMLUzerPywDUB3n0Awm","y3jLyxrLuMv0DxjUu3rHDgvTzw50","yxjNDw1LBNrZ","DxbKyxrLu291CMnLrMLSzq","DMLZAxrfywnOq2HPBgq","DxbKyxrLrxHWB3j0qxnZAwDUBwvUDa","revgsu5fx0fqua","revgsu5fx0nptvbptKvova","AxnwDwvgAwXL","yMfZzw5HBwu","zMLSzu5HBwu","C3bSAxq","Dg9mB3DLCKnHC2u","yxbWlNv2Dwu","DgvZDa","DMLZAxroB2rL","y3jLyxrLsw1WB3j0q2XHDxnL","y3jLyxrLtMfTzwrjBxbVCNrZ","y3jLyxrLu3rYAw5NtgL0zxjHBa","vLvf","Bw9KDwXLu3bLy2LMAwvY","AxntDhjPBMDmAxrLCMfS","Aw1WB3j0q2XHDxnL","AxnjBxbVCNrdBgf1C2u","BMfTzwrcAw5KAw5NCW","zwXLBwvUDhm","DxbKyxrLsw1WB3j0rgvJBgfYyxrPB24","Bw9KAwzPzxjZ","BMfTzq","yxnZzxj0q2XHDxnL"];return(sr=function(){return n})()}function fr(n,r){const t=sr();return fr=function(r,e){let o=t[r-=0];if(void 0===fr.vWQQNs){fr.SRmfFC=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,fr.vWQQNs=!0}const i=r+t[0],u=n[i];return u?o=u:(o=fr.SRmfFC(o),n[i]=o),o},fr(n,r)}globalThis[ir(-504,0,-505)]={...globalThis[ir(-506,0,-505)],isTypeRelatedTo:function(n,r,t,e){return Vn(n,r,t,e)},isRelatedTo:Vn,tryFileLookup:function(n){if(!process.env[(r=-520,t=-522,_n(t- -527,r))])return;var r,t;function e(n,r,t,e){return _n(r- -633,e)}const o=function(n){const r=n[(t=-980,e=-981,_n(e- -983,t))](Fn);var t,e;return r?r[1]:""}(n);if(o){const n=d[e(0,-627,0,-630)](kn,o,e(0,-626,0,-624),nr?e(0,-625,0,-619):$n,"index.uts");if(H(n))return q(n);if(nr)return;const r=d[e(0,-627,0,-629)](kn,o,e(0,-624,0,-618));if(H(r))return q(r)}else if(n[e(0,-623,0,-629)](e(0,-622,0,-619))&&!H(n)){const r=n[e(0,-621,0,-622)](/\.d\.ts$/,""),t=r+".uvue";if(H(t))return t+".ts";const o=r+e(0,-620,0,-614);if(H(o))return o+".ts"}},componentPublicInstancePropertyAccessFallback:function(n,r,t,e,o,i){if(!n.isPropertyAccessExpression(t)||!n[c(550,547)](e)||!n[f(-61,-54,-57)](i))return;const u=o[c(552,547)]?.escapedName[c(553,558)]();if(u!==c(554,548)&&u!==f(-52,-54,-53))return;function c(n,r,t,e){return Wn(n-550,r)}const s=i.escapedText[c(553,555)]();function f(n,r,t,e){return Wn(t- -58,r)}const a=globalThis?.[f(0,-51,-52)];if(a&&a[f(0,-57,-51)](s)){const{initializerNode:t}=a[c(558,565)](s),e=r.getTypeAtLocation(t);return e[c(559,554)]()?r[f(0,-44,-48)]():e.isStringLiteral()?r[f(0,-50,-47)]():e[c(562,564)]&n[c(563,566)].BooleanLiteral?r[f(0,-46,-44)]():e}},isRequireIOSNativeUtsSdk:function(n,r){if(!process[i(-293,-302,-291,-297)][o(-975,-970,-972,-971)])return!1;if(process[i(-294,-294,-297,-297)][i(-295,-295,-299,-294)]!==i(-288,-299,-296,-293))return!1;let t=r;if(r[o(-960,-966,-965,-969)]("@/"))t=d[i(-296,-303,-298,-298)](process.env.UNI_INPUT_DIR,r.slice(2));else if(r[i(-295,-294,-295,-292)]("."))t=d.resolve(d.dirname(n),r);else if(!d.isAbsolute(r))return!1;const e=d[o(-965,-965,-960,-971)](On,t)[i(-295,-294,-285,-290)](/\\/g,"/");function o(n,r,t,e){return Kn(r- -972,e)}if(e[o(0,-966,0,-965)](".")||e.indexOf("/")>-1)return!1;function i(n,r,t,e){return Kn(e- -298,n)}return!(!H(d.resolve(On,e,i(-286,0,0,-289)))||H(d[i(-296,0,0,-298)](On,e,o(0,-962,0,-968))))},isUtsCompiler:!0,hijackAnyNullUnionType:!0,hijackTsLibResolve:!0,hijackDestructuring:!0,ignoreInstanceofLeftType:!0,ignoreInstanceofRightType:!0,useTypeAndInterfaceAsValue:!0,ignoreAllDebugFail:!0};function ar(){const n=["AxndywXSrxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","zxHWCMvZC2LVBG","BgvUz3rO","zxnJyxbLzfrLEhq","Dg9tDhjPBMC","Aw5JBhvKzxm","DMLZAxrfywnOq2HPBgq","DMLZAxroB2rL"];return(ar=function(){return n})()}function vr(n,r){const t=ar();return vr=function(r,e){let o=t[r-=0];if(void 0===vr.sUouEy){vr.eDwgKB=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,vr.sUouEy=!0}const i=r+t[0],u=n[i];return u?o=u:(o=vr.eDwgKB(o),n[i]=o),o},vr(n,r)}const zr=[Y.DEFINE_MIXIN,Y.DEFINE_PLUGIN];function Lr(){const n=["C2v0","B25tAg93","B25iAwrL","B25bChbtAg93","B25myxvUy2G","B25fCNjVCG","B25uAgvTzunOyw5Nzq","B25lzxLIB2fYzeHLAwDODenOyw5Nzq","B25qywDLtM90rM91BMq","B25myxn0ugfNzujHy2TqCMvZCW","B25fEgL0","B25mB2fK","B25szwfKEq","B25cywnRuhjLC3m","yMvMB3jLq3jLyxrL","y3jLyxrLza","yMvMB3jLtw91BNq","Bw91BNrLza","yMvMB3jLvxbKyxrL","DxbKyxrLza","AxnqyxjHBwv0zxi","DhLWzq","zg90rg90rg90vg9Rzw4","CgfYzw50","AxnnzxrOB2rezwnSyxjHDgLVBG","AxnbCNjVD0z1BMn0Aw9U","AxngDw5JDgLVBKv4ChjLC3nPB24","z2v0twv0Ag9KtMfTzu5VzgvpzK9IAMvJDeXPDgvYywW","zxnJyxbLzfrLEhq","Dg9tDhjPBMC","zxHWCMvZC2LVBG","revgsu5fx0fqua","revgsu5fx0nptvbptKvova","Bw9KAwzPzxjZ","BMfTzq","CxvLC3rPB25uB2TLBG","y3jLyxrLvhLWzvjLzMvYzw5Jzu5Vzgu","y3jLyxrLswrLBNrPzMLLCG","Dg9vChbLCKnHC2u","t3b0Aw9UCW","Aw5PDgLHBgL6zxi","DMLZAxrfywnOq2HPBgq"];return(Lr=function(){return n})()}const Cr=new Map;function gr(n,r){const t=Lr();return gr=function(r,e){let o=t[r-=0];if(void 0===gr.cDQoEw){gr.PGVaYB=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,gr.cDQoEw=!0}const i=r+t[0],u=n[i];return u?o=u:(o=gr.PGVaYB(o),n[i]=o),o},gr(n,r)}function xr(n,r,t,e){return gr(n-665,t)}function hr(n,r,t,e){return gr(e-708,t)}Cr[hr(693,714,709,708)](hr(700,714,704,709),!1),Cr[xr(665,650,686)](hr(690,697,729,710),!1),Cr.set(xr(668,681,666),!0),Cr[hr(698,716,722,708)](hr(713,726,693,712),!0),Cr[hr(723,704,698,708)](hr(701,714,711,713),!0),Cr.set(xr(671,661,679),!0),Cr[hr(697,725,703,708)](hr(727,702,716,715),!0),Cr[hr(715,712,708,708)](xr(673,663,683),!0),Cr[hr(726,707,729,708)]("onUnhandledRejection",!0),Cr[xr(665,0,664)](hr(736,729,706,717),!1),Cr[xr(665,0,645)](xr(675,0,687),!1),Cr[hr(696,705,687,708)](hr(724,701,736,719),!0),Cr[hr(0,0,713,708)]("onShow",!0),Cr[xr(665,0,648)](hr(0,0,712,720),!1),Cr[hr(0,0,699,708)]("onUnload",!1),Cr[hr(0,0,721,708)]("onResize",!0),Cr[xr(665,0,652)](xr(678,0,680),!0),Cr.set("onPageScroll",!0),Cr[xr(665,0,650)]("onTabItemTap",!0),Cr[hr(0,0,691,708)]("onReachBottom",!1),Cr.set("onPullDownRefresh",!1),Cr[xr(665,0,661)](xr(679,0,700),!1),Cr[hr(0,0,729,708)](hr(0,0,744,723),!1),Cr[hr(0,0,729,708)](xr(681,0,698),!1),Cr[xr(665,0,681)](hr(0,0,721,725),!1),Cr[xr(665,0,658)](xr(683,0,704),!1),Cr[xr(665,0,652)](hr(0,0,731,727),!1),Cr[hr(0,0,693,708)]("beforeUnmount",!1),Cr.set("unmounted",!1);function yr(n,r){function t(n,r,t,e){return wr(n- -480,t)}const{ts:e}=n;function o(n,r,t,e){return wr(r-444,e)}return n[o(442,444,447,443)][t(-479,0,-477)][t(-478,0,-473)](e[o(0,447,0,444)](r[t(-476,0,-477)])?yr(n,r[t(-476,0,-477)]):r[t(-476,0,-471)],r.right)}function lr(n,r,t){const{ts:e}=n,o=n[i(187,182,184,186)][i(184,183,187,178)];function i(n,r,t,e){return wr(r-182,e)}const u=e[i(0,185,0,192)](t)?yr(n,t):o[i(0,187,0,192)](t[i(0,188,0,190)].toString());return o[i(0,189,0,182)](u,void 0,[r])}function Br(){const n=["y29UDgv4Da","zMfJDg9YEq","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","AxnrDwfSAwzPzwroyw1L","BgvMDa","y3jLyxrLswrLBNrPzMLLCG","zxnJyxbLzfrLEhq","y3jLyxrLtMv3rxHWCMvZC2LVBG","z2v0q29UDgv4DhvHBfr5Cgu","zxnJyxbLze5HBwu","vvrtsLnptK9IAMvJDa","AxnpyMPLy3rmAxrLCMfSrxHWCMvZC2LVBG","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","AxnbC0v4ChjLC3nPB24","DMLZAxrfywnOq2HPBgq"];return(Br=function(){return n})()}function wr(n,r){const t=Br();return wr=function(r,e){let o=t[r-=0];if(void 0===wr.lBsDdj){wr.VvzJtH=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,wr.lBsDdj=!0}const i=r+t[0],u=n[i];return u?o=u:(o=wr.VvzJtH(o),n[i]=o),o},wr(n,r)}function dr(n,r){const{ts:t}=n,e=n[o(-675,-676,-683,-678)];function o(n,r,t,e){return wr(e- -678,r)}function i(n,r,t,e){return wr(r- -503,e)}const u=n.typeChecker,c=e[o(0,-669,0,-677)],{type:s,expression:f}=r,a=u[o(0,-668,0,-670)](f)?.symbol;if(a&&a[o(0,-673,0,-669)]===o(0,-671,0,-668))return c[o(0,-667,0,-671)](c[o(0,-668,0,-673)](i(0,-493,0,-501)),void 0,[f]);if(s&&function(n,r){const t=n[(i=433,u=440,vn(u-427,i))][(e=333,o=302,vn(e-319,o))](r);var e,o,i,u;return!(!t||!fn(n,t))}(n,f)&&t[i(0,-492,0,-499)](f)){if(!a)return;return lr(n,f,s.typeName)}}function Dr(n,r){const t=Ar();return Dr=function(r,e){let o=t[r-=0];if(void 0===Dr.LjpxXm){Dr.IqxkUM=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Dr.LjpxXm=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Dr.IqxkUM(o),n[i]=o),o},Dr(n,r)}function Ar(){const n=["y29UDgv4Da","zMfJDg9YEq","DhLWzunOzwnRzxi","Cg9Z","DxbKyxrLvMfYAwfIBgvezwnSyxjHDgLVBG","BMfTzq","zxHJBgfTyxrPB25uB2TLBG","z2v0vhLWzuf0tg9JyxrPB24","y3jLyxrLtNvSBa","C29Tzq","A2LUza","u3LUDgf4s2LUza","qxn5BMnlzxL3B3jK","z2v0u2LNBMf0DxjLrNjVBurLy2XHCMf0Aw9U","AxnqB3nZAwjSzu51BgXuExbL","AxnqB3nZAwjSzvbYB21PC2voDwXSvhLWzq","AxngDw5JDgLVBKXPA2u","Axnszxr1CM5tDgf0zw1LBNq","zxHWCMvZC2LVBG","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","y3jLyxrLswrLBNrPzMLLCG","CMvZB2X2zq","DMLZAxrfywnOq2HPBgq","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","Aw5PDgLHBgL6zxi","CgfYzw50","AxndyxrJAenSyxvZzq","AxnjzgvUDgLMAwvY","AxngDw5JDgLVBKrLy2XHCMf0Aw9U","AxnnzxrOB2rezwnSyxjHDgLVBG","AxnbCNjVD0z1BMn0Aw9U","AxngDw5JDgLVBKv4ChjLC3nPB24"];return(Ar=function(){return n})()}function Mr(n,r){const t=mr();return Mr=function(r,e){let o=t[r-=0];if(void 0===Mr.yxVKgp){Mr.qLIqLj=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Mr.yxVKgp=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Mr.qLIqLj(o),n[i]=o),o},Mr(n,r)}function mr(){const n=["zMfJDg9YEq","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","vvrt","y3jLyxrLswrLBNrPzMLLCG","sLnptG","y29UDgv4Da","y3jLyxrLq2fSBev4ChjLC3nPB24","AxnjBNn0yw5Jzu9M","CMLNAhq","yxjYyxLqB3a","yxjYyxLtAgLMDa","yxjYyxLbDa","BwfWr2v0","C3rYAw5Nq29KzvbVAw50qxq","A2v5CW","BwfW","C3bSAxq","sLnptI5WyxjZzufYCMf5","sLnptI5WyxjZzu9IAMvJDa","AxnbCNjHEvr5CgvoB2rL","vvrtx1rzueu","y3jLyxrLqxjYyxLmAxrLCMfSrxHWCMvZC2LVBG","y3jLyxrLvhj1zq","AxnuExbLuMvMzxjLBMnLtM9Kzq","AxnjzgvUDgLMAwvY","y3jLyxrLrgLHz25VC3rPy0zVCK5Vzgu","sw52ywXPzf9Nzw5LCMLJx3r5CgvFD2HPy2HFy2fUx25VDf9Izv9JB25ZDhj1y3rLza","BgvUz3rO","zxnJyxbLzfrLEhq","D2L0AeDLBMvYAwnZ","Dg9tDhjPBMC","ywrKqMLUzerPywDUB3n0Awm","vvrtsLnptK9IAMvJDa","DhLWzunOzwnRzxi","AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","Aw5JBhvKzxm","DhLWzufYz3vTzw50CW","DxbKyxrLq2fSBev4ChjLC3nPB24","Cg9Z","AxnbCNjHEvr5Cgu","qxjYyxK","AxnuExbLqxnZAwDUywjSzvrV","z2v0u3rYAw5NvhLWzq","C3rYAw5N","zxnJyxbLze5HBwu","twfW","v2vHA01HCa","z2v0vhLWzunOzwnRzxi","AxncAw5HCNLfEhbYzxnZAw9U","B3bLCMf0B3juB2TLBG","u3LUDgf4s2LUza","AxndywXSrxHWCMvZC2LVBG","DMLZAxrfywnOq2HPBgq","DMLZAxroB2rL"];return(mr=function(){return n})()}function pr(n,r,t,e){return Mr(r- -288,n)}const jr={Array_pop:pr(-292,-279),Array_shift:Pr(-726,-743,-752),Array_find:"arrayFind",Array_findLast:"arrayFindLast",Array_at:pr(-266,-277),Map_get:pr(-286,-276),WeakMap_get:"weakMapGet",string_codePointAt:pr(-282,-275),string_at:"stringAt"},Sr=Object[pr(-257,-274)](jr)[pr(-264,-273)]((n=>n[Pr(-742,-773,-746)]("_")[1])),qr=["uni.request","JSON.parse",Pr(-740,-745,-745),Pr(-755,-763,-744)];function br(n,r){const t=n.ts;function e(n,r,t,e){return Mr(r-66,n)}function o(n,r,t,e){return Mr(e- -150,n)}const i=n[o(-128,0,0,-145)],u=i.factory;if(t[e(84,85)](r)){const{elementType:t}=r;return u.createCallExpression(u.createPropertyAccessExpression(u.createPropertyAccessExpression(k(i),u.createIdentifier(Y[o(-157,0,0,-130)])),u.createIdentifier("withGenerics")),void 0,[u[e(89,69)]("Array"),u[o(-140,0,0,-129)]([br(n,t)]),u[o(-153,0,0,-128)]()])}if(t[e(99,89)](r)){const{typeName:c,typeArguments:s}=r;if(!t[o(-153,0,0,-126)](c)){const n=t[e(68,91)](c,R[e(67,92)]);return i.addBindDiagnostic(n),u[e(75,69)](Y.UTSJSONObject)}return s&&0!==s[o(-114,0,0,-123)]?u[e(53,72)](u[e(56,67)](u[o(-167,0,0,-149)](k(i),u[e(82,69)](Y[e(65,86)])),u[e(57,69)](e(75,95))),void 0,[u[e(66,69)](c[o(-142,0,0,-122)][o(-101,0,0,-120)]()),u[o(-105,0,0,-129)](s.map((r=>br(n,r)))),u.createTrue()]):u[e(45,69)](c[o(-136,0,0,-122)].toString())}const c=t[e(109,91)](r,R[o(-126,0,0,-124)]);return i[o(-117,0,0,-119)](c),u[e(44,69)](Y[e(73,98)])}function Pr(n,r,t,e){return Mr(t- -762,n)}var Ur=[(n,r)=>{function t(r,t){var e,o;function i(n,r,t,e){return Dn(t-159,r)}return n[i(160,158,159)](t)&&!r.addBindDiagnostic&&(r[(e=-358,o=-355,Dn(e- -359,o))]=n=>{function r(n,r,t,e){return Dn(e- -806,n)}t[r(-801,0,0,-804)][r(-800,0,0,-803)](n)},r[i(166,164,163)]=n=>{function r(n,r,t,e){return Dn(r- -994,n)}var e,o;!t[r(-990,-989)]&&(t[r(-991,-989)]=[]),t[(e=-660,o=-658,Dn(e- -665,o))][r(-994,-991)](n)}),t}return{before:n=>r=>t(n,r),after:n=>r=>t(n,r),afterDeclarations:n=>r=>t(n,r)}},n=>({parser:{SourceFile:r=>t=>{const e=o=>{if(n.isCallExpression(o)&&n[u(812,811,809,806)](o[i(5,5)])){const r=o.expression.expression,e=o[i(5,4)][i(6,9)];if(n.isIdentifier(r)&&n[i(7,11)](e)){const n=r.text;("uni"===n||n===u(809,813,813,814))&&(!t[i(9,6)]&&(t[i(9,12)]={}),!t[i(9,6)][u(810,816,815,816)]&&(t[u(815,810,814,812)].uniExtApis=new Set),t.__utsMeta[i(10,9)][i(11,15)](n+"."+e.text))}}function i(n,r,t,e){return Nn(n-4,r)}function u(n,r,t,e){return Nn(t-809,e)}return n[u(0,0,817,819)](o,e,r)};return n.visitNode(t,e)}}}),n=>({parser:{SourceFile(r){const{factory:t}=r;let e=!1,o=!1;const i=u=>{function c(n,r,t,e){return fr(r- -646,t)}if(n[s(-726,-752)](u)){if(o&&u[s(-776,-764)][s(-755,-751)](c(0,-628,-640))){const e=u[c(0,-627,-653)],o=[],i=[],f=[];for(let u=0;u<e[c(0,-626,-648)];u++){const a=e[u];if(n[s(-735,-747)](a))o[s(-746,-746)](a);else if(n[c(0,-623,-617)](a)){if(n.isObjectLiteralExpression(a.expression)&&0===a[s(-784,-766)].properties[c(0,-626,-644)])continue;const t=n.createDiagnosticForNode(a,R.script_setup_cannot_contain_ES_module_exports);r[c(0,-622,-645)](t)}else ur(n,a)?f.push(t[c(0,-621,-602)](a[s(-751,-766)][c(0,-620,-601)][0])):i[c(0,-624,-609)](a)}return t[s(-750,-741)](u,[...o,cr(t,[...i,...f])])}return n[c(0,-618,-632)](u,i,r)}function s(n,r,t,e){return fr(r- -768,n)}return n[s(-766,-745)](u)&&n.isObjectLiteralExpression(u[c(0,-644,-651)])?t[c(0,-617,-640)](u,u.modifiers,t.createCallExpression(t.createIdentifier(e?Y[s(-758,-738)]:Y[c(0,-615,-599)]),void 0,[u[s(-741,-766)]])):u};return r=>{if(!r[u(30,35,38,49)]||r.fileName.indexOf("setup=true")>-1)return r;function u(n,r,t,e){return fr(n- -2,e)}const c=d[s(600,608,602,590)](r[s(630,626,603,585)])[s(581,603,604,594)]("?")[0][s(586,615,605,618)]();function s(n,r,t,e){return fr(t-569,e)}(c===s(0,0,606,603)||"app.uvue.ts"===c)&&(e=!0),/.u?vue.ts/[u(36,0,0,36)](c)&&(o=!0);const f=n[u(37,0,0,10)](r,i);return f!==r?t[s(0,0,596,583)](f,[t.createImportDeclaration(void 0,t[u(38,0,0,56)](!1,void 0,t[s(0,0,610,614)]([t.createImportSpecifier(!1,void 0,t[u(8,0,0,8)](e?Y[s(0,0,599,623)]:Y[s(0,0,600,624)]))])),t[s(0,0,611,595)](Y[u(41,0,0,66)])),...f[u(17,0,0,18)]]):f}}},before(r){const{factory:t}=r,e=o=>{if(n[i(-655,-629,-644)](o))return n.visitEachChild(o,e,r);if(n[u(-125,-99,-116,-111)](o)&&n[i(-670,-677,-679)](o[u(-146,-120,-137,-143)]))return t.updateExportAssignment(o,o.modifiers,t.createCallExpression(t.createIdentifier(Y[u(-103,-104,-108,-118)]),void 0,o[i(-669,-684,-655)].arguments));if(n.isImportDeclaration(o)&&o[u(-97,-75,-95,-97)]&&n[u(-82,-111,-94,-89)](o[u(-101,-98,-95,-107)])&&o[i(-627,-600,-633)][u(-151,-157,-135,-158)]===Y[u(-96,-115,-96,-108)]&&o[u(-69,-112,-93,-120)]&&n[i(-624,-623,-608)](o[i(-625,-618,-604)])&&o[i(-625,-607,-640)][u(-118,-94,-91,-99)]&&n.isNamedImports(o[i(-625,-629,-609)][u(-79,-106,-91,-83)])&&o[u(-119,-68,-93,-81)][u(-81,-92,-91,-64)][u(-74,-83,-90,-116)].some((n=>n.name[u(-155,-151,-135,-157)]===Y.DEFINE_APP)))return t[u(-87,-102,-89,-84)](o,o[i(-620,-627,-602)],t.updateImportClause(o[i(-625,-648,-631)],!1,void 0,t.createNamedImports(o[u(-82,-116,-93,-76)][i(-623,-605,-638)][u(-106,-66,-90,-92)].filter((n=>n[u(-101,-86,-87,-105)][u(-147,-120,-135,-108)]!==Y[u(-113,-87,-109,-109)])))),o[i(-627,-634,-638)],o[u(-67,-75,-86,-66)]);function i(n,r,t,e){return fr(n- -671,t)}function u(n,r,t,e){return fr(t- -139,e)}return o};return r=>{if(!r[t(57,50,46,52)])return r;function t(n,r,t,e){return fr(n-25,e)}function o(n,r,t,e){return fr(e-733,n)}return d[t(58,0,0,32)](r[o(794,754,745,767)])[t(60,0,0,43)]("?")[0][t(61,0,0,35)]()===o(775,784,748,770)&&(r=n.visitNode(r,e)),r}}}),(n,r)=>({parser:{SourceFile(r){const t=r.factory,e=nn(n,void 0,r),o=i=>{function u(n,r,t,e){return gr(r- -440,t)}if(n[c(561,554)](i)&&!i[u(0,-419,-440)]&&!i[u(0,-418,-430)]){const r=i[u(0,-417,-416)];if(r&&(n[u(0,-416,-426)](r)||n[u(0,-415,-396)](r)||n[u(0,-414,-433)](r))&&0===r.parameters.indexOf(i)){const o=e[c(568,554)](r);if(o&&n.isIdentifier(o)){const r=o[c(569,558)][c(570,568)]();if(!0===Cr.get(r)){const e=o?.parent?.[u(0,-417,-425)]?.[c(564,558)];if(e&&n.isCallExpression(e)){const o=e[c(571,569)];if(n.isIdentifier(o)&&(o[u(0,-412,-394)][c(570,552)]()===Y[u(0,-409,-395)]||o[u(0,-412,-421)][c(570,565)]()===Y[u(0,-408,-414)]))return t.updateParameterDeclaration(i,i[u(0,-407,-395)],i[u(0,-418,-412)],i[c(575,594)],i[c(576,581)],t[u(0,-404,-395)](t[c(578,581)](r.replace(/^(\w)/,(n=>n[u(0,-402,-400)]()))+c(580,581)),void 0),i[c(581,566)])}}}}}function c(n,r,t,e){return gr(n-541,r)}return n.visitEachChild(i,o,r)};return t=>{return t.isVueFile?n[(e=-187,i=-200,gr(e- -228,i))](t,o,r):t;var e,i}}}}),(n,r)=>({parser:{TypeAliasDeclaration:r=>function(t){const e=r.factory;function o(n,r,t,e){return Un(n- -61,e)}const{modifiers:i=[],name:u,typeParameters:c=[],type:s}=t;function f(n,r,t,e){return Un(r- -819,n)}return n.isTypeLiteralNode(s)&&(t=e[o(-14,0,0,-22)](t,i,u,c,e.updateTypeLiteralNode(s,e.createNodeArray([e[o(-54,0,0,-60)](void 0,[e[f(-810,-807)](void 0,void 0,e[f(-783,-811)]("key"),void 0,e[o(-52,0,0,-52)](n[o(-51,0,0,-21)].StringKeyword),void 0)],e[o(-52,0,0,-73)](n.SyntaxKind[o(-26,0,0,-11)])),...s[f(-799,-771)]])))),t},SourceFile(r){const t=nn(n,void 0,r),e=o=>{function i(n,r,t,e){return Un(n-248,r)}function u(n,r,t,e){return Un(r- -448,e)}if(n[u(0,-399,0,-393)](o)&&n[u(0,-398,0,-375)](o[u(0,-397,0,-427)])){const{modifiers:r=[],name:e,typeParameters:c=[],type:s}=o,f=s.members,a=function(n,r,t,e,o){const{ts:i}=n,u=n.context[a(-658,-643,-643)];function c(n,r,t,e){return Un(n-910,r)}const s=[],f=o?o[a(-637,-671,-642)]((r=>{const{modifiers:t,name:e,questionToken:o,jsDoc:c}=r;let f;if(i[v(126,97,100)](r))f=r.type;else if(i[v(127,125,127)](r)){const{type:n,typeParameters:t,parameters:e}=r;f=u[v(128,144,143)](t,e,n)}const a=f&&n.createTypeNodeWithNullType(f,!!o);function v(n,r,t,e){return Un(n-124,t)}s.push(u.createPropertySignature(void 0,e,o,a));const z=u[(L=-755,C=-730,Un(C- -735,L))](t,e,o,a,void 0);var L,C;return z.jsDoc=c,z})):[];function a(n,r,t,e){return Un(t- -643,r)}const v=u[c(916,902)](s),z=[],L=u[a(0,-612,-636)](void 0,[u.createParameterDeclaration(void 0,void 0,u[a(0,-630,-635)]("key"),void 0,u[c(919,892)](i[c(920,938)][c(921,898)]),void 0)],u[c(919,936)](i[a(0,-633,-633)].AnyKeyword)),C=u.createConstructorDeclaration(void 0,[u[c(922,917)](void 0,void 0,u[c(918,912)](c(923,895)),void 0,v,void 0)],u[a(0,-653,-629)]([u[c(925,909)](u[c(926,913)](u[a(0,-614,-626)](),void 0,[])),...(o||[])[c(911,883)]((n=>{const r=n[t(-871,-909,-862,-890)].escapedText[t(-897,-898,-865,-889)]();function t(n,r,t,e){return Un(e- -908,r)}function e(n,r,t,e){return Un(e-694,t)}return u[t(0,-904,0,-893)](u[t(0,-879,0,-888)](u[t(0,-876,0,-887)](u[t(0,-877,0,-886)](),u[e(0,0,726,702)](r)),u[e(0,0,743,717)](i[t(0,-868,0,-898)][e(0,0,719,718)]),u[e(0,0,707,715)](u[e(0,0,723,702)]("options"),u[t(0,-924,0,-900)](r))))}))],!0));return z[c(935,935)](L,...f,C),u[c(936,920)](r,t,e?.[a(0,-595,-616)]?e:void 0,[u.createHeritageClause(i.SyntaxKind[a(0,-587,-615)],[u.createExpressionWithTypeArguments(an(n),void 0)])],z)}(t,[...r],e,[...c],[...f.filter((r=>n[u(0,-446,0,-429)](r)||n[i(251,224)](r)))]);a&&(o=a)}else n[u(0,-396,0,-373)](o);return o=n[i(301,288)](o,e,r)};return r=>n.visitNode(r,e)}},before(t){var e,o;const i=r[(e=-61,o=-79,Un(e- -115,o))]()[(c=-229,s=-246,Un(c- -284,s))](),u=nn(n,i,t);var c,s;const f=t.factory,a=r=>{if(n.isPropertyAccessExpression(r)&&zn(u,r))r=f[i(80,84,85,95)](k(t),f[i(80,98,57,82)](Y[i(112,135,147,130)]));else if(n[i(143,105,115,131)](r)){const{heritageClauses:n}=r,t=n?.[0]?.[(e=-675,o=-663,Un(e- -733,o))]?.[0]?.[i(115,150,144,133)];t&&zn(u,t)&&(r=Hn(u,r))}var e,o;function i(n,r,t,e){return Un(e-74,r)}return r=n[i(0,134,0,127)](r,a,t)};return r=>n.visitNode(r,a)}}),(n,r)=>({parser:{SourceFile(r){const t=r[(i=226,u=232,mn(u-232,i))],e=nn(n,void 0,r),o=i=>{function u(n,r,t,e){return mn(r-71,e)}function c(n,r,t,e){return mn(t-722,e)}return n.isObjectLiteralExpression(i)&&i.parent&&(n[c(0,0,757,793)](i[u(0,91,0,80)])&&!i[c(0,0,742,726)][u(0,126,0,90)]&&!pn(e,i)||!rn[c(0,0,778,783)](i.parent[u(0,128,0,149)]))?t[c(0,0,769,746)](i,t[c(0,0,770,734)](t[c(0,0,723,745)](Y[u(0,73,0,109)]),void 0)):i=n.visitEachChild(i,o,r)};var i,u;return r=>{return n[(t=656,e=662,mn(t-598,e))](r,o);var t,e}}},before(t){const e=r[a(-497,-534,-540)]()[a(-496,-533,-525)](),o=nn(n,e,t),i=t[(u=838,c=850,mn(c-850,u))];var u,c;const s=new Map,f=r=>{const e=r;function u(n,r,t,e){return mn(t- -557,e)}function c(n,r,t,e){return mn(n-343,r)}if(n[c(404,378)](r)&&(r=jn(o,r,s)||r),r===e)r=n[c(405,398)](r,f,t);else if(n.isNewExpression(r)){const e=r[u(0,0,-494,-458)]?.[0];r=i[u(0,0,-493,-520)](r,r[c(369,362)],r.typeArguments,e?[n.visitEachChild(e,f,t)]:void 0)}else r=n[u(0,0,-517,-526)](r)?i[c(408,388)](r,n[u(0,0,-495,-474)](r[c(369,341)],f,t),r[c(398,363)]):n[u(0,0,-495,-485)](r,f,t);return r};function a(n,r,t,e){return mn(r- -593,t)}return r=>{const e=n[u(-206,-190,-213)](r,f);function o(n,r,t,e){return mn(r- -288,n)}const i=[];for(const n of s[o(-247,-222)]())i.push(n[o(-189,-221)]),r.locals.set(n.alias,n[o(-301,-282)]);function u(n,r,t,e){return mn(n- -264,t)}return t[o(-276,-288)][o(-243,-220)](e,[...i,...e[u(-195,0,-226)]],e[u(-194,0,-227)],e[u(-193,0,-223)],e.typeReferenceDirectives,e[o(-241,-216)],e[u(-191,0,-210)])}}}),n=>({parser:{SourceFile:r=>t=>{const e=t[i(1005,998,994)],o=globalThis?.[i(997,997,1e3)];if(o)for(const[n,r]of o)r[u(225,223,217)]===e&&o[u(226,232,232)](n);function i(n,r,t,e){return yn(r-997,t)}function u(n,r,t,e){return yn(n-223,t)}return function t(i){function u(n,r,t,e){return yn(e-785,n)}if(n[c(-881,-889,-874,-882)](i)){const{left:r,operatorToken:t,right:s}=i;if(t[c(-873,-878,-875,-881)]===n[u(799,0,0,791)][u(789,0,0,792)]&&n.isPropertyAccessExpression(r)){const{expression:t,name:i}=r;if(n[u(792,0,0,793)](t)){const{expression:r,name:f}=t;if(f.escapedText[u(798,0,0,794)]()===c(-883,-882,-879,-876)&&n[u(788,0,0,793)](r)){const{name:n}=r;n[c(-881,-878,-871,-875)].toString()===u(805,0,0,797)&&o[u(792,0,0,798)](i[c(-874,-870,-875,-875)].toString(),{file:e,initializerNode:s})}}}}function c(n,r,t,e){return yn(e- -886,n)}return n[c(-872,0,0,-872)](i,t,r)}(t)}}}),(n,r)=>({before(t){const e=r[o(-609,-606,-620,-611)]()[o(-617,-607,-614,-610)]();function o(n,r,t,e){return hn(e- -627,n)}const i=nn(n,e,t),u=r=>{var e,o;return n[(e=-541,o=-535,hn(e- -551,o))](r)&&(r=function(n,r){function t(n,r,t,e){return hn(e- -611,n)}const{ts:e}=n,o=n[a(66,73,79,69)],i=n.typeChecker,u=o.factory,c=r.heritageClauses;if(!c)return r;const s=c[a(78,74,69,81)]((n=>{return n.token===e[(o=-161,i=-155,hn(i- -157,o))][(r=901,t=908,hn(t-905,r))];var r,t,o,i}));if(1!==s.length)return r;const f=s[0][a(79,77,86,84)];function a(n,r,t,e){return hn(r-73,e)}const v=[];for(let n=0;n<f.length;n++){const r=f[n];if(!r[a(0,78,0,79)]||!e[a(0,79,0,89)](r[t(-605,0,0,-606)]))continue;const o=i[t(-608,0,0,-604)](r[a(0,78,0,82)]),u=o?.[a(0,81,0,83)]||[];if(1!==u[a(0,82,0,83)])continue;const c=u[0];e[a(0,83,0,74)](c)&&v[t(-593,0,0,-600)](r[a(0,78,0,75)])}return 0===v[a(0,82,0,74)]?r:u.updateClassDeclaration(r,r.modifiers,r.name,r[a(0,85,0,83)],r[t(-599,0,0,-598)],[...gn(n,W[t(-598,0,0,-597)],v),...r[t(-593,0,0,-596)]])}(i,r)),r=n.visitEachChild(r,u,t)};return r=>{return n[(t=895,e=898,hn(e-880,t))](r,u);var t,e}}}),(n,r)=>({before(t){const e=r[u(887,889,893,886)]()[u(883,890,894,898)](),o=nn(n,e,t),i=r=>{function e(n,r,t,e){return wr(r- -54,n)}return n[e(-32,-40)](r)&&(r=dr(o,r)||r),r=n[e(-35,-39)](r,i,t)};function u(n,r,t,e){return wr(r-877,e)}return r=>n.visitNode(r,i)}}),(n,r)=>({before(t){const e=r.getProgram()[(i=163,u=175,Mr(u-128,i))](),o=nn(n,e,t);var i,u;const c=r=>{function e(n,r,t,e){return Mr(t- -556,n)}if(n[i(436,445,431,438)](r)){if(r.escapedText===Y[i(443,434,408,418)])return function(n){const r=n.context,t=r[e(-392,-376,-369)];function e(n,r,t,e){return Mr(r- -376,t)}return k(r),t[e(0,-375,-352)](t.createIdentifier(Y[e(0,-374,-364)]),t[(o=482,i=499,Mr(i-496,o))](Y[e(0,-372,-368)]));var o,i}(o)}else n[i(467,475,483,462)](r)?r[i(468,476,468,463)].kind===n[e(-502,0,-506)].InstanceOfKeyword&&(r=function(n,r){const t=n[e(-791,-791,-839,-816)];function e(n,r,t,e){return Mr(e- -821,n)}const o=t[i(-777,-752)];function i(n,r,t,e){return Mr(r- -752,n)}return k(t),o[e(-810,0,0,-815)](o.createPropertyAccessExpression(o[i(-750,-749)](Y.UTS),o[i(-749,-749)](e(-838,0,0,-814))),void 0,[r.left,r[i(-740,-744)]])}(o,r)):n[e(-498,0,-505)](r)&&n.isPropertyAccessExpression(r.expression)&&(r=function(n,r){const t=n[v(568,577,585,566)],e=t.factory,o=n[v(605,616,608,594)],i=n.ts,{expression:u,arguments:c}=r;if(!i[a(-842,-825,-838,-809)](u))return r;const{expression:s,name:f}=u;if(i[v(584,568,578,585)](s)&&i[v(596,597,566,585)](f)&&qr[a(-825,-824,-806,-825)](s.escapedText+"."+f[v(585,611,588,589)])&&r.typeArguments&&r[a(-816,-823,-821,-815)].length>0&&i.isTypeReferenceNode(r.typeArguments[0])&&i[v(593,594,599,585)](r[a(-817,-823,-811,-848)][0].typeName))return e[a(-843,-822,-801,-810)](r,u,void 0,[...c,br(n,r.typeArguments[0])]);function a(n,r,t,e){return Mr(r- -859,e)}function v(n,r,t,e){return Mr(e-561,t)}if(!i[a(0,-835,0,-840)](f)||!Sr[v(0,0,573,596)](f[a(0,-831,0,-843)][v(0,0,580,591)]()))return r;if(s[a(0,-821,0,-846)]<0)return r;const z=o.getTypeAtLocation(s);let L="";o[a(0,-820,0,-798)](z)?L=a(0,-819,0,-819):o[v(0,0,624,602)](z,o[v(0,0,604,603)]())&&(L=a(0,-816,0,-816));const C=z.symbol?.[v(0,0,617,605)][v(0,0,577,591)]();C===a(0,-814,0,-805)?L="Map":C===a(0,-813,0,-815)&&(L="WeakMap");const g=f[v(0,0,603,589)],x=jr[L+"_"+g];return x?(k(t),e[a(0,-853,0,-857)](e[v(0,0,575,562)](e[a(0,-856,0,-863)](Y.UTS),e[a(0,-856,0,-846)](x)),void 0,[s,...c])):r}(o,r));function i(n,r,t,e){return Mr(e-414,t)}return r=n[e(-511,0,-504)](r,c,t)};return r=>{return n[(t=-559,e=-586,Mr(e- -639,t))](r,c);var t,e}}}),n=>({parser:{SourceFile:r=>r=>{var t,e,o,i;return r[(o=660,i=660,An(o-660,i))][(t=-63,e=-66,An(t- -64,e))]((r=>{function t(n,r,t,e){return An(e-761,t)}function e(n,r,t,e){return An(r- -159,n)}if((n.isImportDeclaration(r)||n[t(0,0,764,763)](r))&&r.moduleSpecifier&&n.isStringLiteral(r[t(0,0,763,764)])){const n=r[t(0,0,763,764)][e(-154,-155)];(n[e(-150,-154)](t(0,0,765,767))||n.endsWith(".ts"))&&(r[e(-155,-156)][e(-157,-155)]=n[e(-149,-152)](/.u?ts$/,""))}})),r}}}),(n,r)=>({before(t){const e=r[u(229,222,243,218)]()[u(230,221,240,231)](),o=nn(n,e,t),i=r=>{function e(n,r,t,e){return Dr(e- -613,n)}function u(n,r,t,e){return Dr(t-743,r)}return!n.isVariableDeclaration(r)||r[e(-589,-581,-598,-587)]||r[u(754,777,770)]&&n[u(774,767,771)](r[e(-591,-574,-571,-586)])||!n[e(-591,-569,-588,-584)](r.name)?n.isParameter(r)?r=function(n,r){const{modifiers:t,dotDotDotToken:e,name:o,questionToken:i,type:u,initializer:c}=r;if(r[z(593,599,604,610)]<0||c||e)return r;const s=n.context.factory,f=n.typeChecker;if(i||n.isPossibleNullType(f[z(611,619,602,614)](r)))return s.updateParameterDeclaration(r,t,e,o,i,u&&n.createTypeNodeWithNullType(u,!0),c||s[(a=953,v=948,Dr(v-940,a))]());var a,v;function z(n,r,t,e){return Dr(e-607,r)}return r}(o,r):(n[u(778,785,773)](r)||n[u(778,785,774)](r)||n[u(781,785,775)](r)||n[u(774,791,776)](r)||n.isGetAccessorDeclaration(r))&&(r=function(n,r){const t=n.ts;function e(n,r,t,e){return Dr(r- -204,t)}const o=n.context,i=o[z(-459,-459,-449,-456)],u=n.typeChecker,{modifiers:c,type:s}=r,f=c?.[z(-448,-448,-441,-446)]((n=>n[z(-441,-437,-440,-425)]===t[e(0,-193,-193)][e(0,-192,-182)]));let a=!1,v=!1;if(s){const t=u[e(0,-191,-199)](r)?.getReturnType();if(t&&(a=n[z(-446,-428,-436,-424)](t),v=n[z(-434,-441,-435,-441)](t),!a&&!v))return r}function z(n,r,t,e){return Dr(t- -450,e)}return t[e(0,-181,-179)](r,(function n(r){function e(n,r,t,e){return Dr(n- -42,t)}if(t[e(-26,0,-31)](r))return r;if(t[u(-919,-928,-918)](r)&&!r[e(-24,0,-37)])return i.updateReturnStatement(r,f||v?i[e(-23,0,-23)](i[e(-22,0,-5)](i.createIdentifier("Promise"),i[u(-915,-917,-900)](u(-914,-926,-917))),void 0,[i.createNull()]):i.createNull());function u(n,r,t,e){return Dr(n- -936,t)}return t[u(-913,0,-925)](r,n,o)}),o)}(o,r)):r=function(n,r){function t(n,r,t,e){return Dr(t-960,e)}const e=n[t(970,945,960,967)][o(169,153,169,160)];function o(n,r,t,e){return Dr(e-159,r)}const i=n[o(0,144,0,161)];return!r.initializer&&r[t(0,0,963,953)]>0&&n.isPossibleNullType(i.getTypeAtLocation(r))?e[o(0,147,0,163)](r,r[o(0,161,0,164)],r[o(0,180,0,165)],r.type,e.createNull()):r}(o,r),r=n[u(756,752,766)](r,i,t)};function u(n,r,t,e){return Dr(n-205,e)}return r=>n.visitNode(r,i)}}),n=>({before:r=>r=>{function t(n,r,t,e){return qn(t- -215,e)}return r[t(-215,-213,-215,-210)][t(-211,-218,-214,-214)]((r=>{function t(n,r,t,e){return qn(r-288,t)}function e(n,r,t,e){return qn(n-147,t)}if((n[e(149,0,149)](r)||n[e(150,0,152)](r))&&r.moduleSpecifier&&n[t(0,292,294)](r[e(152,0,152)])){const n=r.moduleSpecifier[e(153,0,158)];(n[t(0,295,297)](t(0,296,292))||n.endsWith(t(0,297,302)))&&(r[e(152,0,153)][t(0,294,290)]=n.replace(/.u?ts$/,""))}})),r}}),n=>({before(r){const t=e=>{function o(n,r,t,e){return vr(r-97,n)}function i(n,r,t,e){return vr(t-180,r)}if(n[o(97,97)](e)&&n[o(97,98)](e[i(0,182,182)])&&e.arguments[i(0,179,183)]>0){const n=e[i(0,183,182)][o(105,101)][o(101,102)]();zr[i(0,182,186)](n)&&(e=e.arguments[0])}return n[i(0,184,187)](e,t,r)};return r=>{return n[(e=266,o=264,vr(e-258,o))](r,t);var e,o}}})];function Hr(n,r){const t=Tr();return Hr=function(r,e){let o=t[r-=0];if(void 0===Hr.McAzBX){Hr.ZmREtl=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Hr.McAzBX=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Hr.ZmREtl(o),n[i]=o),o},Hr(n,r)}const Nr=/\.(u)?vue(.ts)?/;let Yr;const Wr=new Set;function Zr(n){return Vr(n)||n[(r=372,t=362,Hr(t-362,r))](Hr(-573- -574,-586))||Wr.has(e.normalizePath(n));var r,t}function Vr(n){return Nr[(r=23,t=36,Hr(t-34,r))](n);var r,t}function Tr(){const n=["Aw5JBhvKzxm","lNv0CW","DgvZDa","ChjLvvz1zuPZ","Dw5Pq2XPu2HHCMvK","zMLUza","DgfN","C2nYAxb0","zxHWB3j0igrLzMf1BhqGE30","ChjVChm","C29Tzq","BMfTzq","C2v0Dxa","y2HPBgrYzw4","y29UDgvUDa","x19YzxDYAxrLza","C3LZ","zw5KC1DPDgG","lNrZ","AgfZ","CMvWBgfJzq","ywrK","lNz1zs50CW","lNv2DwuUDhm","CNvUDgLTzurptujHAwXuExbLCZOGtM9Kzsb8ifDPBMrVDZS","x191DhniywnRzxjFxW"];return(Tr=function(){return n})()}function Gr(n,r){function t(n,r,t,e){return Hr(e-143,r)}if(Yr=n,!Yr.sys[t(0,160,0,158)]){const{fileExists:n,readFile:u,realpath:c}=Yr[t(0,154,0,159)];Yr[t(0,165,0,159)].realpath=n=>{const r=c?c(n):n;function t(n,r,t,e){return Hr(n-533,e)}function o(n,r,t,e){return Hr(e-621,r)}return r[t(550,0,0,547)](o(0,651,0,639))&&Wr[t(552,0,0,548)](e.normalizePath(n))?n[o(0,633,0,641)](o(0,635,0,639),".uts"):r},Yr[(o=-24,i=-35,Hr(o- -40,i))].fileExists=r=>{if(r[o(642,636,629)](".ts")&&n(r.replace(t(172,183,190,182),t(158,165,153,165))))return Wr[o(628,640,653)](e.normalizePath(r)),!0;function t(n,r,t,e){return Hr(e-164,t)}if((r[o(627,636,636)](o(642,641,634))||r[o(641,636,637)](t(0,0,187,187)))&&n(r[t(0,0,185,184)](/.ts$/,"")))return!0;function o(n,r,t,e){return Hr(r-619,t)}return n(r)},Yr.sys.readFile=(t,o)=>{if(t[i(749,760,742,754)](i(750,752,740,737))&&Wr.has(e.normalizePath(t))){const n=t[i(752,749,756,745)](f(-607,-623,-605,-613),i(733,742,730,724)),e=u(n,o);if(!e)return;return function(n,r){function t(n,r,t,e){return Hr(e- -484,r)}return r[t(0,-468,0,-480)].preUVueJs(r[t(0,-493,0,-480)][t(0,-471,0,-481)](n))}(e,r)}function i(n,r,t,e){return Hr(n-732,e)}if(t.endsWith(f(-621,-611,-621,-609))||t[i(749,0,0,749)](f(-616,-606,-621,-608))){const e=t[f(-609,-602,-615,-611)](/.ts$/,"");if(n(e)){const n=u(e,o);if(!n)return;return function(n,r){n=r.uniCliShared[o(211,210,216)](r[o(212,206,202)].preUVueHtml(n));const t=r.vueCompilerDom.parse(n).children[o(213,214,226)]((n=>n[e(-841,-840,-830,-835)]===o(215,203,206)));function e(n,r,t,e){return Hr(n- -847,e)}function o(n,r,t,e){return Hr(n-208,t)}const i=o(216,0,224);return t?t[o(217,0,204)][e(-837,0,0,-839)]((n=>n[o(219,0,215)]===e(-835,0,0,-826)))?"// @uts-setup\n"+(t?.[o(221,0,221)][0]?.content||"")+"\n"+i:t?.[o(221,0,213)][0]?.[o(222,0,212)]||i:i}(n,r)}}let c=u(t,o);if(!c)return;t[f(-615,-614,-608,-614)]("runtime-dom/dist/runtime-dom.d.ts")&&(c=c.replace(f(-619,-609,-614,-607),""));const s=globalThis?.[i(757,0,0,767)]?.replaceVueTypes;function f(n,r,t,e){return Hr(e- -631,t)}return s?s(t,c):c},Yr[t(0,159,0,159)].__rewrited=!0}var o,i}function Ir(n,r){const t=Kr();return Ir=function(r,e){let o=t[r-=0];if(void 0===Ir.lTjreT){Ir.aXVhAU=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Ir.lTjreT=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Ir.aXVhAU(o),n[i]=o),o},Ir(n,r)}function Kr(){const n=["z2v0q2fUB25Py2fSrMLSzu5HBwu","BM9YBwfSAxPL","z2v0tMv3tgLUzq","BMv3tgLUzq","z2v0q3vYCMvUDerPCMvJDg9YEq","C3LZ"];return(Kr=function(){return n})()}class Jr{constructor(){function n(n,r,t,e){return Ir(n-72,e)}function r(n,r,t,e){return Ir(t-368,r)}this[r(366,366,368)]=d[n(73,73,74,70)],this[r(0,373,370)]=()=>Yr.sys[n(75,0,0,74)]}[function(n,r,t,e){return Ir(t- -600,r)}(0,-597,-596)](){return Yr[(t=-985,e=-985,Ir(e- -990,t))][(n=974,r=974,Ir(r-970,n))]();var n,r,t,e}}const Or=new Jr;function Er(){const n=["DhLWzq","vvrtq29TCgLSzxjfCNjVCG","zMXHDhrLBKrPywDUB3n0AwnnzxnZywDLvgv4Da","BwvZC2fNzvrLEhq","z2v0tMv3tgLUzq","zM9YBwf0rgLHz25VC3rPy3nxAxrOq29SB3jbBMrdB250zxH0","y2f0zwDVCNK","y29Kzq","zMLSzq","z2v0tgLUzufUzenOyxjHy3rLCK9Mug9ZAxrPB24","C3rHCNq","tevbu1rFvvbqrvjFqK9vtKq","BgLUzq","C291CMnLq29UDgvUDezVCG","C291CMnL","B3jPz2LUywXqB3nPDgLVBKzVCG","y29SDw1U","CM9SBhvWrxjYB3i","zMLSzu5HBwu","zMXHDe1LC3nHz2u","DxrZq29TCgLSzxjfCNjVCG","zw52","vu5jx0Loufvux0rjuG","C3bSAxq","zMLSzuXPBMu","zM9YrwfJAa","rgLHz25VC3rPy0nHDgvNB3j5","twvZC2fNzq","Aw5MBW","rxjYB3i","zxjYB3i","v2fYBMLUzW","D2fYBG","D2fYBMLUzW","y2fSBa","ifrt","C3rYAw5N","rxHWzwn0zwqGysbGC3rYAw5NycWGz290iga","CMvWBgfJzq","w1X1mdaXqLX1mda5qL1Bw1XDkcKJoZ9DkIG/oIG/oIG/oIG/oJTBlweTEKeTwLXKxc8JjI46pt8Lqh5FxsSPkNXBys16qs1AxgrDkYG/oJTBlweTEKeTwLXKxc8JjI46pt8Lqh5FxsOPkIK/xhuWmda3kq","kd86kd86xgr7msW0FsG/oJTCzhSWldr9ksOPp1TCzeeTufiTvfPJzI1UCs11Et0+ph5DksK"];return(Er=function(){return n})()}function Xr(n,r,t){return r.map((r=>function(n,r,t){function o(n,r,t,e){return Fr(t- -702,e)}function i(n,r,t,e){return Fr(t-615,n)}const u={flatMessage:Yr[i(610,0,617)](r[i(623,0,618)],Or[i(629,0,619)]()),formatted:Yr[i(602,0,620)]([r],Or),category:r[i(627,0,621)],code:r[o(0,0,-695,-701)],type:n};if(r[o(0,0,-694,-707)]&&void 0!==r.start){let{line:n,character:s}=r[i(626,0,623)][o(0,0,-693,-707)](r[o(0,0,-692,-685)]);if(t){const f=t.originalPositionFor({line:n+1,column:s,bias:a.SourceMapConsumer[i(639,0,626)]});if(null!==f[o(0,0,-690,-693)]){if(f.source){const a=t[o(0,0,-689,-710)](f[i(643,0,629)]);if(a){const{line:z,character:L}=r[i(606,0,623)][i(618,0,624)](r[o(0,0,-692,-699)]+(r.length||0)),C=t[o(0,0,-687,-684)]({line:z+1,column:L});if(null!==C[i(615,0,627)]){const t=v.codeFrameColumns(a,{start:{line:f[o(0,0,-690,-685)],column:(f[i(614,0,631)]||0)+1},end:{line:C[o(0,0,-690,-708)],column:(C[o(0,0,-686,-694)]||0)+1}});u[o(0,0,-685,-699)]={id:c=r.file[o(0,0,-684,-697)],message:u[o(0,0,-683,-667)],frame:t,loc:{file:c,line:n+1,column:s+1}},u[i(644,0,635)]={type:o(0,0,-701,-687),file:e.normalizePath(d.relative(process[i(627,0,636)][o(0,0,-680,-659)],r[i(640,0,623)][o(0,0,-684,-704)][i(644,0,638)]("?")[0])),line:f.line,column:f[o(0,0,-686,-705)]||0,message:u[i(622,0,634)],frame:t}}}}n=f[o(0,0,-690,-676)]}}u[i(644,0,639)]=r[o(0,0,-694,-706)].fileName+"("+(n+1)+","+(s+1)+")"}var c;return u}(n,r,t)))}function Rr(n,r,t=!0){var e,i;r[(e=481,i=471,Fr(i-446,e))]((r=>{let e,i,u;function c(n,r,t,e){return Fr(t-496,e)}function s(n,r,t,e){return Fr(r- -484,n)}switch(r[s(-464,-478)]){case Yr[s(-439,-458)][s(-477,-457)]:e=n[s(-464,-456)],i=o.white,u="";break;case Yr[c(0,0,522,532)][s(-445,-455)]:e=n[c(0,0,526,531)],i=o.red,u="error";break;case Yr[s(-443,-458)][c(0,0,527,507)]:default:e=n[c(0,0,528,527)],i=o.yellow,u=s(-440,-451)}const f=r[s(-489,-484)]+" ";return t?r[c(0,0,516,496)]?e[c(0,0,530,537)](n,r[s(-444,-464)]):r[c(0,0,513,516)]?e[c(0,0,530,540)](n,r[c(0,0,513,513)]):e[c(0,0,530,547)](n,""+(o.enabled?r.formatted:function(n){if(typeof n!==r(356,326,335))throw new TypeError(t(880,869,862,875)+typeof n+"`");function r(n,r,t,e){return Fr(t-299,r)}function t(n,r,t,e){return Fr(r-832,e)}return n[r(356,328,337)](kr,"")}(r.formatted))):void 0!==r[c(0,0,520,524)]?e[c(0,0,530,534)](n,r.fileLine+": "+f+u+" TS"+r[s(-476,-477)]+": "+i(r[s(-480,-465)])):e[s(-457,-450)](n,""+f+u+s(-449,-449)+r[s(-484,-477)]+": "+i(r[s(-461,-465)]))}))}const kr=function({onlyFirst:n=!1}={}){function r(n,r,t,e){return Fr(t-898,r)}const t=[r(0,945,937),r(0,932,938)].join("|");return new RegExp(t,n?void 0:"g")}();function Fr(n,r){const t=Er();return Fr=function(r,e){let o=t[r-=0];if(void 0===Fr.jnCajk){Fr.MsyeTi=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Fr.jnCajk=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Fr.MsyeTi(o),n[i]=o),o},Fr(n,r)}function _r(){var n=["rxjYB3i","v2fYBMLUzW","sw5MBW","rgvIDwC","DMvYyM9ZAxr5","yMfPBa","y29UDgv4Da","ChjLzML4","D2fYBG","zxjYB3i","C3rYAw5N","zNvUy3rPB24","D2fYBMLUzZOG","BwvZC2fNzq","zMLSzq","BgLUzq","Bg9N","zNjHBwu","Aw5MBW","zgvIDwC"];return(_r=function(){return n})()}var Qr;function $r(n,r){var t=_r();return $r=function(r,e){var o=t[r-=0];if(void 0===$r.FEkzXY){$r.JRHRlI=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,$r.FEkzXY=!0}var i=r+t[0],u=n[i];return u?o=u:(o=$r.JRHRlI(o),n[i]=o),o},$r(n,r)}function nt(n,r,t,e){return $r(e-197,r)}function rt(n){return"string"==typeof n?n:n()}!function(n){function r(n,r,t,e){return $r(t- -385,e)}function t(n,r,t,e){return $r(e- -565,t)}n[n[t(-561,-566,-573,-565)]=0]=t(-570,-570,-569,-565),n[n[r(0,0,-384,-390)]=1]=r(0,0,-384,-391),n[n[t(0,0,-557,-563)]=2]=r(0,0,-383,-387),n[n.Debug=3]=t(0,0,-553,-562)}(Qr||(Qr={}));class tt{constructor(n,r,t,e=""){function o(n,r,t,e){return $r(t-490,n)}var i,u;this[o(488,503,494)]=n,this[(i=-759,u=-749,$r(u- -754,i))]=r,this[o(496,0,496)]=t,this[o(501,0,497)]=e}[nt(0,201,0,205)](n){function r(n,r,t,e){return $r(r-815,e)}this[r(0,819,0,813)]<Qr[r(0,816,0,813)]||this.context[r(0,823,0,826)](""+rt(n))}[nt(0,197,0,206)](n){function r(n,r,t,e){return $r(n-57,r)}function t(n,r,t,e){return $r(r- -597,e)}this[t(0,-593,0,-583)]<Qr.Error||(this.bail?typeof n===t(0,-587,0,-585)||typeof n===r(68,64)?this[r(63,67)].error(""+rt(n)):this.context[t(0,-588,0,-597)](n):!function(n){function r(n,r,t,e){return Fr(r-323,t)}return n[r(0,323,333)]===r(0,324,305)}(n)?typeof n===r(67,76)||typeof n===r(68,67)?this[r(63,68)][t(0,-589,0,-579)](""+rt(n)):this[t(0,-591,0,-589)][r(65,59)](n):(console.warn(r(69,70)+n[t(0,-584,0,-578)]),console[r(65,65)]("at "+n[r(71,64)]+":"+n[t(0,-582,0,-574)]+":"+n.column),console[r(73,68)](n[r(74,68)])))}[nt(0,207,0,215)](n){function r(n,r,t,e){return $r(n-359,e)}var t,e;this[r(363,0,0,368)]<Qr[r(361,0,0,363)]||console.log(""+this[(t=735,e=744,$r(t-728,e))]+rt(n))}[nt(0,225,0,216)](n){function r(n,r,t,e){return $r(e-251,t)}this[r(262,262,246,255)]<Qr.Debug||console[r(0,0,268,267)](""+this.prefix+rt(n))}}function et(n,r){const t=ot();return et=function(r,e){let o=t[r-=0];if(void 0===et.LPFzao){et.WdWDWm=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,et.LPFzao=!0}const i=r+t[0],u=n[i];return u?o=u:(o=et.WdWDWm(o),n[i]=o),o},et(n,r)}function ot(){const n=["l3bSywnLAg9SzgvY","B3b0Aw9UCW","Bw9KDwXLuMvZB2X1DgLVBG","tw9KDwXLuMvZB2X1DgLVBKTPBMq","tM9KzteW","Bw9KDwXL","C291CMnLtwfW","ChvZAa","AM9PBG","Aw5JBhvKzq","zxHJBhvKzq","CM9VDerPCNm","ChjVAMvJDfjLzMvYzw5Jzxm","y29Uy2f0","BwfW","Cgf0Aa","zgvIDwC","Aw5JBhvKzwq6cG","C3rYAw5NAwz5","zxHJBhvKzwq6cG","CM9VDerPCG"];return(ot=function(){return n})()}function it({useTsconfigDeclarationDir:n,cacheRoot:r},t){const o={noEmitHelpers:!1,importHelpers:!0,noResolve:!1,noEmit:!1,noEmitOnError:!1,inlineSourceMap:!1,outDir:e.normalizePath(r+u(172,169)),allowNonTsExtensions:!0};if(!t)return o;function i(n,r,t,e){return et(r- -369,e)}t[i(-370,-368,-377,-370)][u(174,174)]===Yr[i(-374,-366,-359,-375)].Classic&&(o[u(174,184)]=Yr.ModuleResolutionKind[u(176,167)]),void 0===t[i(0,-368,0,-359)][i(0,-364,0,-369)]&&(o[u(177,181)]=Yr.ModuleKind.ES2015),n||(o.declarationDir=void 0);function u(n,r,t,e){return et(n-172,r)}return t.options[i(0,-363,0,-366)]||(o.sourceRoot=void 0),o}function ut(n,r){const t=[];return r.forEach((r=>{function o(n,r,t,e){return et(t- -687,n)}n instanceof Array?n.forEach((n=>{return t[o(-680,0,-680)](e.normalizePath(d[(i=-199,u=-200,et(i- -207,u))](r,n)));var i,u})):t[o(-675,0,-680)](e.normalizePath(d[o(-680,0,-679)](r,n)))})),t}function ct(n,r,t,e){return ft(r- -146,n)}function st(){const n=["DhjHBNnMB3jTzxjZ","y3DK","C25HChnOB3rZ","y3vZDg9TugfYC2vY","z2v0u2nYAxb0rMLSzu5HBwvZ","zMLSzu5HBwvZ","DMfSDwvZ","z2v0q29TCgLSyxrPB25tzxr0Aw5NCW","B3b0Aw9UCW","z2v0vhLWzvjVB3rZvMvYC2LVBG","DxnLq2fZzvnLBNnPDgL2zuzPBgvoyw1LCW","C3LZ","z2v0rgvMyxvSDeXPyKzPBgvoyw1L","CMvHzerPCMvJDg9YEq","CMvHzezPBgu","zMLSzuv4Axn0CW","zgLYzwn0B3j5rxHPC3rZ","z2v0rgLYzwn0B3jPzxm","CMvHBhbHDgG","DhjHy2u","Bg9N","DMvYC2LVBNm","C2v0tgfUz3vHz2vtzxj2AwnL","AxnvvfngAwXL","AxnwDwvgAwXL","C2vYDMLJzq","y3vZDg9TvhjHBNnMB3jTzxjZ","Aw5PDfrYyw5ZzM9YBwvYCW","C2v0u25HChnOB3q","zw5KC1DPDgG","lNv0CW","CMvWBgfJzq","lNrZ","zNjVBvn0CMLUzW","ywrK","z2v0u2nYAxb0u25HChnOB3q","z2v0u2nYAxb0vMvYC2LVBG","Dg9tDhjPBMC","BgvUz3rO","CgfYC2vY","yMvMB3jL","y29Uy2f0","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm","x191DhnqyxjZzxjFxW","C2v0q29TCgLSzxjiB3n0"];return(st=function(){return n})()}function ft(n,r){const t=st();return ft=function(r,e){let o=t[r-=0];if(void 0===ft.rYrqKG){ft.gLOtXx=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,ft.rYrqKG=!0}const i=r+t[0],u=n[i];return u?o=u:(o=ft.gLOtXx(o),n[i]=o),o},ft(n,r)}function at(n,r,t,e){return ft(e- -453,r)}class vt{constructor(n,r,t){function e(n,r,t,e){return ft(n- -32,e)}function o(n,r,t,e){return ft(n-158,e)}this.parsedConfig=n,this[o(158,155,180,158)]=r,this[o(159,148,178,149)]=t,this[e(-30,0,0,-30)]={},this.versions={},this[e(-29,0,0,-52)]={},this[o(162,149,183,173)]=()=>Array.from(this[o(163,150,155,162)][o(164,175,149,181)]()),this[o(165,165,171,180)]=()=>this.parsedConfig[o(166,176,188,183)],this[e(-23,0,0,-26)]=()=>0,this.getCurrentDirectory=()=>this[e(-31,0,0,-35)],this[e(-22,0,0,-3)]=()=>Yr[e(-21,0,0,-12)][o(168,163,182,176)],this[e(-20,0,0,-23)]=Yr.getDefaultLibFilePath,this[e(-19,0,0,-25)]=Yr[o(169,180,177,148)][o(171,180,172,172)],this[e(-18,0,0,-1)]=Yr.sys.readFile,this[e(-17,0,0,0)]=Yr.sys[o(173,153,191,191)],this[o(174,183,184,182)]=Yr[e(-21,0,0,-31)][e(-16,0,0,-36)],this[o(175,176,189,154)]=Yr[e(-21,0,0,-12)][o(175,193,173,160)],this[e(-14,0,0,-2)]=Yr[e(-21,0,0,-13)][e(-14,0,0,4)],this[o(177,0,0,167)]=console[o(178,0,0,189)],this[o(163,0,0,177)]=new Set(n[e(-27,0,0,-23)])}reset(){var n,r;this.snapshots={},this[(n=631,r=649,ft(n-610,r))]={}}[ct(-115,-124)](n){function r(n,r,t,e){return ft(n- -496,t)}function t(n,r,t,e){return ft(t- -337,e)}n[r(-473,-464,-458)]=Zr,n[t(-296,-326,-313,-294)]=Vr,this[r(-471,0,-460)]=n,!this[r(-470,0,-481)]&&this[t(0,0,-310,-315)](this.transformers||[])}[at(0,-407,0,-425)](n,r){function t(n,r,t,e){return ft(r-555,e)}function o(n,r,t,e){return ft(e- -472,t)}(n=e.normalizePath(n))[t(0,584,0,588)](t(0,585,0,597))&&this.setSnapshot(n[t(0,586,0,576)](/\.uts$/,t(0,587,0,578)),r);const i=Yr.ScriptSnapshot[o(0,0,-449,-439)](r);return this[o(0,0,-464,-470)][n]=i,this[o(0,0,-455,-451)][n]=(this[o(0,0,-450,-451)][n]||0)+1,this[t(0,560,0,574)][o(0,0,-427,-438)](n),i}[at(0,-422,0,-418)](n){function r(n,r,t,e){return ft(n-467,t)}if((n=e.normalizePath(n))in this[r(469,0,476)])return this[r(469,0,457)][n];const t=Yr[r(478,0,492)][(o=41,i=47,ft(i-33,o))](n);var o,i;return t?this.setSnapshot(n,t):void 0}[ct(-126,-110)](n){function r(n,r,t,e){return ft(e-944,t)}return n=e.normalizePath(n),(this[r(0,0,982,965)][n]||0)[r(0,0,990,981)]()}[ct(-115,-119)](n){if(void 0===this[e(-165,-146)]||void 0===n||0===this.transformers[e(-152,-139)])return;const r={before:[],after:[],afterDeclarations:[]};for(const o of n){const n=o(this.service);n.parser&&(this[t(788,798,786)]=n[e(-151,-145)]),n.before&&(r[t(850,835,825)]=r.before[e(-149,-142)](n[e(-150,-164)])),n[t(814,837,850)]&&(r[e(-148,-155)]=r[t(817,837,860)][e(-149,-153)](n[e(-148,-135)])),n[e(-147,-164)]&&(r.afterDeclarations=r.afterDeclarations[e(-149,-169)](n[e(-147,-137)]))}function t(n,r,t,e){return ft(r-795,t)}function e(n,r,t,e){return ft(n- -190,r)}return this[e(-164,-186)]=r,globalThis[e(-146,-167)]=this[e(-187,-203)],r}getCustomTransformers(){return this.customTransformers}[ct(-123,-101)](n){}}function zt(){const n=["zMLUzenVBMzPz0zPBgu","C3LZ","zMLSzuv4Axn0CW","DhnJB25MAwC","zxjYB3i","zMfPBgvKihrVig9Wzw4GjW","y3DK","CMvHzezPBgu","CgfYC2vdB25MAwDgAwXLvgv4DfrVsNnVBG","y29UzMLN","zMfPBgvKihrVihbHCNnLicC","BwvYz2u","DhnJB25MAwDezwzHDwX0CW","CgfYC2vkC29Uq29UzMLNrMLSzunVBNrLBNq","B3b0Aw9UCW","Bw9KDwXL","tw9KDwXLs2LUza","rvmYmde1","rvmYmdiW","rvmYmdiY","rvnozxH0","sw5JB21WyxrPyMXLihrZy29UzMLNig9WDgLVBI4Gtw9KDwXLihjLC29SDMvZihrVicC","jY4GvgHPCYbPCYbPBMnVBxbHDgLIBguGD2L0AcbsB2XSDxaSihbSzwfZzsb1C2uGj21VzhvSztOGiKvtmJaXnsiNlcaNBw9KDwXLoIaIrvmYmdiWiICSicDTB2r1Bgu6icjfuZiWmJiIjYWGB3iGj21VzhvSztOGiKvttMv4DciNlG","zxjYB3jZ","zgvIDwC","yNvPBhqTAw4GB3b0Aw9UCYbVDMvYCMLKzxm6ia","C3rYAw5NAwz5","CgfYC2vKihrZy29UzMLNoIa"];return(zt=function(){return n})()}function Lt(n,r){const t=zt();return Lt=function(r,e){let o=t[r-=0];if(void 0===Lt.UVdvRi){Lt.mAqSFU=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Lt.UVdvRi=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Lt.mAqSFU(o),n[i]=o),o},Lt(n,r)}function Ct(n,r,t,e){return gt(e-113,t)}function gt(n,r){var t=xt();return gt=function(r,e){var o=t[r-=0];if(void 0===gt.XcsDGk){gt.kmluMJ=function(n){for(var r,t,e="",o="",i=0,u=0;t=n.charAt(u++);~t&&(r=i%4?64*r+t:t,i++%4)?e+=String.fromCharCode(255&r>>(-2*i&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)o+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,gt.XcsDGk=!0}var i=r+t[0],u=n[i];return u?o=u:(o=gt.kmluMJ(o),n[i]=o),o},gt(n,r)}function xt(){var n=["CM9SBgvK","B2XKq2fJAgvsB290","y2fJAgvsB290","l2nHy2HL","l2nHy2HLxW","BMv3q2fJAgvsB290","zxHPC3rZ","Cgf0Aa","Bwf0y2G","BgvUz3rO","C29YDa","DxrMoa","D3jPDgu","Dg91y2G","CM9SBa"];return(xt=function(){return n})()}function ht(n,r,t,e){return gt(r-150,e)}class yt{constructor(n){function r(n,r,t,e){return gt(e-268,n)}function t(n,r,t,e){return gt(t- -443,n)}this.cacheRoot=n,this[r(265,276,269,268)]=!1,this[t(-439,-445,-442)]=this[t(-441,-446,-441)]+t(-442,-433,-440),this.newCacheRoot=this[r(274,274,278,270)]+r(277,268,278,272),z.emptyDirSync(this[r(267,0,0,273)])}[ht(0,156,0,155)](r){function t(n,r,t,e){return gt(r-70,t)}return!this[t(0,70,62)]&&(!!n.existsSync(this[t(0,75,73)]+"/"+r)||n.existsSync(this.oldCacheRoot+"/"+r))}[ht(0,157,0,151)](n){return this[(r=-996,t=-989,gt(r- -997,t))]+"/"+n;var r,t}[Ct(0,0,128,121)](r){if(this[t(-46,-52,-50,-44)])return!1;if(!n.existsSync(this[e(615,610,618,615)]))return 0===r[e(616,617,626,623)];function t(n,r,t,e){return gt(e- -44,r)}function e(n,r,t,e){return gt(e-614,t)}return D.isEqual(n.readdirSync(this.oldCacheRoot)[e(0,0,622,624)](),r[t(0,-31,0,-34)]())}read(r){function t(n,r,t,e){return gt(r-875,t)}return n.existsSync(this[t(0,880,875)]+"/"+r)?z.readJsonSync(this.newCacheRoot+"/"+r,{encoding:t(0,886,892),throws:!1}):z.readJsonSync(this[t(0,876,876)]+"/"+r,{encoding:"utf8",throws:!1})}[Ct(0,0,120,125)](n,r){var t,e;this[(t=-242,e=-247,gt(e- -247,t))]||void 0!==r&&z.writeJsonSync(this.newCacheRoot+"/"+n,r)}[ht(0,163,0,160)](n){var r,t;this[(r=60,t=61,gt(r-60,t))]||z.ensureFileSync(this.newCacheRoot+"/"+n)}[Ct(0,0,133,127)](){function r(n,r,t,e){return gt(t- -199,r)}function t(n,r,t,e){return gt(e- -137,r)}this[t(-140,-141,-129,-137)]||(this[t(0,-140,0,-137)]=!0,z.removeSync(this[r(0,-192,-198)]),n.existsSync(this[t(0,-138,0,-132)])&&n.renameSync(this.newCacheRoot,this[r(0,-193,-198)]))}}function lt(n,r,t,e){return Dt(n-492,r)}function Bt(){const n=["B3v0Chv0rMLSzxm","zM9YrwfJAa","BMfTzq","lMqUDhm","zhrZ","zw5KC1DPDgG","lMqUDhmUBwfW","zhrZBwfW","lM1HCa","y29Kzq","Dgv4Da","ChjLuhjVy2vZC0zPBgu","z2v0tgvUz3rO","y29TCgfJDa","CMvMzxjLBMnLzezPBgvZ","y29Uy2f0","Aw1WB3j0zwrgAwXLCW","BwfW","BM9Kzu1VzhvSzu5HBwvszxnVBhzLCG","zMLSzu5HBwu","C3LZ","AgfZ","lNrZ","CMvWBgfJzq","lNv0CW","BM9dywnOzq","Ag9ZDa","y2fJAgvsB290","y29UDgv4Da","y2fJAgvwzxjZAw9U","y2fJAgvqCMvMAxG","DxrZxW","yw1IAwvUDfr5CgvZrgLYDhK","zgvWzw5Kzw5JEvrYzwu","C2v0rgvMyxvSDe5VzgvmywjLBa","y2XLyw4","AgfZAe9WDgLVBNm","AwDUB3jLvw5RBM93BG","y2fJAgveAxi","B3b0Aw9UCW","Aw5PDa","z2v0qxv0B21HDgLJvhLWzurPCMvJDgL2zu5HBwvZ","CMvZB2X2zvr5CgvszwzLCMvUy2veAxjLy3rPDMu","zMLSDgvY","CMvZB2X2zwruExbLuMvMzxjLBMnLrgLYzwn0AxzL","CMvZB2X2zwrgAwXLtMfTzq","yw1IAwvUDfr5CgvZ","z2v0u2nYAxb0u25HChnOB3q","Cgf0Aev4Axn0C1n5BMm","CMvHzgrPCLn5BMm","zgvIDwC","jYbHCYbPDcbKB2vZig5VDcbOyxzLihbYzwzPEcaN","C3rHDfn5BMm","AxneAxjLy3rVCNK","C2TPChbPBMCGy2XLyw5PBMCGjW","jYbHCYbPDcbPCYbUB3qGysbKAxjLy3rVCNK","Aw5MBW","y2XLyw5PBMCGy2fJAgu6ia","CMvTB3zLu3LUyW","zgvWzw5Kzw5JEq","icaGigLTCg9YDgvKigj5icC","Aw1WB3j0ihrYzwuGAgfZign5y2XLCW","BM9Kzxm","zg9Uzq","CM9SBgLUzYbJywnOzxm","CM9SBa","C2vTyw50AwneAwfNBM9ZDgLJC0nHy2HL","C3LUDgfJDgLJrgLHz25VC3rPy3ndywnOzq","z2v0q29TCgLSzwq","AxnVBgf0zwrnB2r1BgvZ","zgvJBgfYyxrPB24","z2v0u3LUDgfJDgLJrgLHz25VC3rPy3m","z2v0rgLHz25VC3rPy3m","z2v0u2vTyw50AwneAwfNBM9ZDgLJCW","y2HLy2TbBwjPzw50vhLWzxm","qw1IAwvUDcb0ExbLCZO","C25HChnOB3q","y3jLyxrLsgfZAa","DhLWzxndywnOzq","Bwf0y2G","yw1IAwvUDcb0ExbLCYbJAgfUz2vKlcbYzwrVAw5NigfSBcbZzw1HBNrPyYbKAwfNBM9ZDgLJCW","Dg91y2G","z2v0q2fJAgvK","icaGignHy2HLoIaN","AxneAxj0Eq","icaGignHy2HLigHPDa","D3jPDgu","icaGignHy2HLig1PC3m","BwfYA0fZrgLYDhK","y29KzunHy2HL","l3r5CgvZ","l3n5BNrHy3rPy0rPywDUB3n0AwnZ","C2v0tM9Kzq","BM9Kzq","zgLYDhK","zgLQA3n0CMe","A2v5CW","zgLZDgfUy2u","icaGigLTCg9YDcbJAgfUz2vKoIa","z2v0vgv4Da","zw52","sfHFvMvYC2LVBG","vu5jx0nptvbjtevsx1zfuLnjt04"];return(Bt=function(){return n})()}function wt(n,r,t,e){return Dt(r- -63,n)}function dt(n,r,t){const e={code:"",references:r,uniExtApis:t};var o,i,u,c;return n[(u=-24,c=-46,Dt(u- -24,c))][(o=16,i=67,Dt(i-66,o))]((n=>{function r(n,r,t,e){return Dt(n-138,e)}function t(n,r,t,e){return Dt(r-376,t)}n[t(0,378,374)].endsWith(t(0,379,368))?e[r(142,0,0,167)]=n:n[r(140,0,0,157)][r(143,0,0,106)](r(144,0,0,104))?e[r(145,0,0,163)]=n:n[r(140,0,0,175)].endsWith(t(0,384,387))?e.map=n.text:e[r(147,0,0,181)]=n[r(148,0,0,192)]})),e}function Dt(n,r){const t=Bt();return Dt=function(r,e){let o=t[r-=0];if(void 0===Dt.RhMVRs){Dt.isseWy=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Dt.RhMVRs=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Dt.isseWy(o),n[i]=o),o},Dt(n,r)}class At{constructor(n,r,t,e,o,i,u,c){function s(n,r,t,e){return Dt(n-977,t)}function f(n,r,t,e){return Dt(t-118,e)}if(this[f(156,99,143,184)]=n,this[s(1003,0,1039)]=e,this[f(0,0,145,153)]=o,this.options=i,this[f(0,0,146,161)]=c,this[f(0,0,147,131)]="9",this[s(1007,0,965)]=s(1008,0,995),this[s(1009,0,981)]=!1,this.hashOptions={algorithm:"sha1",ignoreUnknown:!1},this[s(1010,0,1050)]=new L.Graph({directed:!0}),this[f(0,0,151,133)][f(0,0,152,171)]((()=>({dirty:!1}))),r&&this[s(1012,0,1038)](),n)return;this[s(1013,0,980)][f(0,0,155,105)]=t,this[s(1015,0,983)]=this[s(1004,0,1025)]+"/"+this[f(0,0,148,143)]+C({version:this[f(0,0,147,191)],rootFilenames:u,options:this[f(0,0,157,205)],tsVersion:Yr.version},this[f(0,0,154,106)]),this[f(0,0,158,130)]();const a=Yr[s(1018,0,1043)](i,Yr[s(997,0,1018)])[s(994,0,991)]((n=>Yr[s(1019,0,968)](n,void 0,i,Yr[s(997,0,1048)])))[f(0,0,161,131)]((n=>n[f(0,0,162,213)]?.[f(0,0,163,171)])).map((n=>n[s(1021,0,1052)][s(1022,0,1036)]));this[f(0,0,164,117)]=u.filter((n=>n[s(982,0,942)](".d.ts")))[s(992,0,1011)](a)[f(0,0,135,86)]((n=>({id:n,snapshot:this[s(1003,0,989)][f(0,0,165,120)](n)}))),this.checkAmbientTypes()}[wt(-22,-28)](){function n(n,r,t,e){return Dt(r-80,t)}if(!A[(r=901,t=916,Dt(r-853,t))](this.cacheRoot))return;var r,t;A[n(0,129,100)](this[n(0,107,65)])[n(0,81,99)]((n=>{const r=this[e(126,95,159,143)]+"/"+n;function t(n,r,t,e){return Dt(r-449,n)}function e(n,r,t,e){return Dt(e-116,t)}n.startsWith(this[e(132,178,115,146)])?A[e(200,133,185,168)](r)[e(145,211,176,169)]?(this[e(92,101,126,144)][t(518,505)](o.blue(t(496,506)+r)),A[t(553,507)](""+r)):this[t(489,477)][t(497,499)](t(466,503)+r+t(546,504)):this.context[e(177,215,211,166)]("skipping cleaning '"+r+t(492,500)+this[e(143,185,102,146)]+"'")}))}setDependency(n,r){function t(n,r,t,e){return Dt(t-755,e)}function e(n,r,t,e){return Dt(e- -742,r)}this[e(-716,-672,-703,-714)].debug(o.blue(e(-689,-642,-715,-683))+" '"+n+"'"),this[t(0,0,783,746)].debug(t(0,0,815,768)+r+"'"),this[e(0,-743,0,-709)].setEdge(r,n)}walkTree(n){if(L.alg.isAcyclic(this.dependencyTree))return L.alg.topsort(this[r(609,625)])[t(292,264,304,294)]((r=>n(r)));function r(n,r,t,e){return Dt(n-576,r)}function t(n,r,t,e){return Dt(e-293,r)}this[r(604,563)][t(359,400,370,349)](o.yellow(r(637,657))),this[r(609,645)][t(0,363,0,355)]()[t(0,297,0,294)]((r=>n(r)))}[wt(46,0)](){function n(n,r,t,e){return Dt(e- -187,t)}function r(n,r,t,e){return Dt(r-450,t)}this[r(470,475,516)]||(this[n(-187,-150,-175,-159)][n(-108,-152,-123,-131)](o.blue(n(-108,-75,-173,-123))),this.codeCache[n(0,0,-114,-122)](),this[r(554,516,544)].roll(),this[n(0,0,-152,-120)].roll(),this.typesCache[r(0,515,476)]())}[lt(560,575)](n,r,t){function e(n,r,t,e){return Dt(r-965,n)}return this[(i=773,u=807,Dt(i-745,u))][e(1064,1021)](o.blue("transpiling")+" '"+n+"'"),this.getCached(this.codeCache,n,r,Boolean(!this[e(959,1004)][e(1023,1034)]||this[e(963,1004)][e(1081,1035)]),t);var i,u}[wt(18,8)](n,r,t,e){function o(n,r,t,e){return Dt(t-56,n)}return this[o(134,0,128)]("syntax",this[o(79,0,123)],n,r,t,e)}[wt(58,10)](n,r,t,e){return this[(u=678,c=722,Dt(c-650,u))]("semantic",this[(o=815,i=832,Dt(o-749,i))],n,r,t,e);var o,i,u,c}[lt(566,610)](){function n(n,r,t,e){return Dt(e- -485,n)}this[t(-941,-897,-889)][n(-417,0,0,-435)](o.blue(n(-426,0,0,-410)));const r=this.ambientTypes.filter((n=>void 0!==n[t(-851,-818,-841)]))[t(-932,-864,-900)]((n=>{function r(n,r,t,e){return Dt(n-654,t)}function t(n,r,t,e){return Dt(r- -820,e)}return this[t(-815,-792,-793,-777)][r(704,0,675)](" "+n.id),this[r(731,0,737)](n.id,n[t(0,-744,0,-754)])}));function t(n,r,t,e){return Dt(t- -917,r)}this[t(0,-846,-885)]=!this[n(-457,0,0,-407)][n(-419,0,0,-406)](r),this.ambientTypesDirty&&this[n(-458,0,0,-457)].info(o.yellow(t(0,-819,-837))),r[n(-450,0,0,-484)](this[t(0,-788,-839)][n(-431,0,0,-404)],this[t(0,-796,-839)])}getDiagnostics(n,r,t,e,o,i){return this[(u=-716,c=-745,Dt(u- -798,c))](r,t,e,"semantic"===n,(()=>Xr(n,o(),i)));var u,c}[wt(31,19)](n,r,t,e,i){if(this[s(-397,-406)])return i();const u=this[f(435,433,476)](r,t);if(this[s(-394,-374)][f(366,406,452)](s(-339,-341)+n.path(u)+"'"),n.exists(u)&&!this[s(-338,-334)](r,e)){this.context.debug(o.green(s(-337,-311)));const r=n.read(u);if(r)return n[f(485,442,458)](u,r),r;this.context.warn(o.yellow(" cache broken, discarding"))}this[f(416,384,428)].debug(o.yellow(s(-335,-285)));const c=i();function s(n,r,t,e){return Dt(n- -422,r)}function f(n,r,t,e){return Dt(r-356,t)}return n[s(-336,-352)](u,c),this[f(0,444,427)](r),c}init(){function n(n,r,t,e){return Dt(t-340,e)}function r(n,r,t,e){return Dt(r- -387,n)}this[r(-302,-298)]=new yt(this[n(334,330,378,364)]+"/code"),this[n(0,0,418,453)]=new yt(this[n(0,0,378,345)]+n(0,0,430,415)),this[n(0,0,407,454)]=new yt(this[r(-344,-349)]+r(-308,-296)),this.semanticDiagnosticsCache=new yt(this[n(0,0,378,397)]+"/semanticDiagnostics")}[wt(-7,25)](n){var r,t;this.dependencyTree[(r=-752,t=-710,Dt(t- -802,r))](n,{dirty:!0})}isDirty(n,r){function t(n,r,t,e){return Dt(e-840,n)}const e=this[o(213,191,190,210)][t(889,0,0,933)](n);function o(n,r,t,e){return Dt(e-177,r)}if(!e)return!1;if(!r||e[o(0,314,0,271)])return e[o(0,235,0,271)];if(this.ambientTypesDirty)return!0;const i=L.alg[t(944,0,0,935)](this[t(892,0,0,873)],n);return Object[t(946,0,0,936)](i).some((n=>{const r=i[n];if(!n||r[(t=294,e=275,Dt(e-178,t))]===1/0)return!1;var t,e;function o(n,r,t,e){return Dt(e- -773,r)}const u=this[o(0,-739,0,-740)][o(0,-728,0,-680)](n),c=void 0===u||u.dirty;return c&&this[o(0,-723,0,-745)][o(0,-673,0,-723)](o(0,-698,0,-675)+n),c}))}createHash(n,r){const t=r[e(173,214,147)](0,r[e(86,67,101)]());function e(n,r,t,e){return Dt(n-74,t)}function o(n,r,t,e){return Dt(t-919,r)}return C({data:t,id:n,compilerVersion:process[e(174,0,158)][o(0,969,1020)]||process[o(0,1061,1019)][e(176,0,204)]},this[e(110,0,127)])}}const Mt=pt(-347,-345,-347,-346);function mt(){const n=["DhnSAwi","ahrZBgLIlMPZ"];return(mt=function(){return n})()}function pt(n,r,t,e){return jt(e- -346,r)}function jt(n,r){const t=mt();return jt=function(r,e){let o=t[r-=0];if(void 0===jt.vlEYWn){jt.zHKJwI=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,jt.vlEYWn=!0}const i=r+t[0],u=n[i];return u?o=u:(o=jt.zHKJwI(o),n[i]=o),o},jt(n,r)}const St=pt(0,-344,0,-345);function qt(n,r,t,e){return bt(r- -447,t)}function bt(n,r){const t=Ut();return bt=function(r,e){let o=t[r-=0];if(void 0===bt.GqbjNF){bt.wBbNhX=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,bt.GqbjNF=!0}const i=r+t[0],u=n[i];return u?o=u:(o=bt.wBbNhX(o),n[i]=o),o},bt(n,r)}function Pt(n,r,t,e){return bt(r- -854,e)}function Ut(){const n=["DxrZmMPZ","pJ01lJaUma","pJ0ZlJaUma","ms4WlJa","BgvUz3rO","q29TCg9Uzw50","Aw1WB3j0ia","icb0ExbLia","cMrLy2XHCMuGz2XVyMfSihSk","zM9YrwfJAa","z2v0","ChvZAa","x2nVzgvnyxa","x2vHC3LJB21vC2fNzq","AgfZ","C2v0","zw1PDa","y2HHBMDL","x2vHC3LJB21Z","Aw5KzxHpzG","C3bSAwnL","zgvSzxrL","Aw5PDfv0CZjQC0vHC3LJB20","z2v0u3LUDgfJDgLJrgLHz25VC3rPy3m","y29Uy2f0","z2v0u2vTyw50AwneAwfNBM9ZDgLJCW","ywrK","B3b0Aw9UCW","ChjLDhr5","zhrZ","zhrZBwfW","zgvIDwC","z2vUzxjHDgvKigrLy2XHCMf0Aw9UCW","igzVCIaN","zw5KC1DPDgG","lMqUDhm","lMqUBxrZ","Aw5MBW","zg9Uzq","v2fYBMLUzW","CM9SBhvWlxbSDwDPBI11Dhm","kI4OFhuPDhmRkhX4kq","kIOVkI4OFhuPDhmRkhX4kq","kIOVkI5TDhm","kI5KlNrZ","kIOVkI5KlNrZ","kIOVkI5KlMn0CW","kIOVkI5KlM10CW","DhLWzxnJCMLWDa","DxrZ","ywrKtgLZDgvUzxi","y3jLyxrLrg9JDw1LBNrszwDPC3rYEq","ywjVCNrpBKvYCM9Y","zw52","uK9mtfvqx1Dbveni","Dhj1zq","Bwv0yq","DMvYC2LVBG","DhnSAwiGDMvYC2LVBJOG","DxrZt3b0Aw9UCW","DhnSAwjwzxjZAw9U","CM9SBhvWihzLCNnPB246ia","CM9SBhvWvMvYC2LVBG","zxjYB3i","sw5ZDgfSBgvKifr5Cgvty3jPChqGDMvYC2LVBIaN","jYbPCYbVDxrZAwrLig9Mihn1ChbVCNrLzcbYyw5NzsaN","sw5ZDgfSBgvKifjVBgX1Ccb2zxjZAw9UicC","D2fYBG","ww91igfYzsb1C2LUzYbHifjVBgX1Ccb2zxjZAw9UicC8mI42mc4WjW","lIbuAgLZig1HEsbYzxn1BhqGAw4GDhLWzs1VBMX5igzPBgvZigjLAw5NigLNBM9YzwqU","CM9SBhvWlxbSDwDPBI11DhmGDMvYC2LVBJOG","CgX1z2LUig9WDgLVBNm6cG","DMvYC2LVBIa","CM9SBhvWignVBMzPzZOk","C3rYAw5NAwz5","DhnJB25MAwCGCgf0AdOG","ww91igfYzsb1C2LUzYaNB2jQzwn0sgfZAeLNBM9YzvvUA25VD25iywnRjYbVChrPB24","CM9SBhvWq29TBw9UsLnszxnVBhzLsgfJAW","lIbuAgLZigLZig5VigXVBMDLCIbUzwvKzwqSihrYEsbKAxnHyMXPBMCGAxqGBM93lG","CNvUBMLUzYbPBIb3yxrJAcbTB2rL","DhjHBNnMB3jTzxjZ","y3DK","DxrZmMPZu291CMnLq29Kzu1HCa","C2v0u25HChnOB3q","DhnSAwjtB3vYy2u","C2v0tgfUz3vHz2vtzxj2AwnL","y2XLyw4","B2jQzwn0sgfZAeLNBM9YzvvUA25VD25iywnR","y2fJAgvsB290","zMLSzu5HBwvZ","z2v0q29TCgLSzxjpChrPB25ZrgLHz25VC3rPy3m","vu5jx1vuu19qtefurK9stq","D2vI","y3jLyxrL","BM9Kzu1VzhvSzu5HBwvszxnVBhzLCG","C3LZ","CMvZB2X2zwrgAwXLtMfTzq","CMvWBgfJzq","lNrZ","lNv0CW","DgvZDa","CMvZB2X2Aw5N","jYbPBxbVCNrLzcbIEsaN","icaGihrVicC","C2v0rwfZEwnVBvvZywDL","BM93","z2v0q29TCgLSzwq","z2v0uhjVz3jHBq","zw1PDfr5Cgu","q291BgqGBM90igzPBMqGC291CMnLigzPBgu6icC","y3jLyxrLuhjPBNrLCG","ChjPBNrtB3vYy2vgAwXL","Aw5WDxreAxi","y29Kzq","BwfW","lM1HCa","z2v0rw1PDe91Dhb1Da","zw1PDfnRAxbWzwq","z2v0q29TyMLUzwrtB3vYy2vTyxa","rw1PDcbZA2LWCgvKigzVCIaN","x191DhnnzxrH","y2HLy2S","CMvMzxjLBMnLCW","ywrKv2f0y2HgAwXL","icaGihDHDgnOAw5N","AM9PBG","CMvZB2X2zq","zw1PDerLy2XHCMf0Aw9Ut25SEq","igvUywjSzwqSig5VDcb0CMfUC2zVCM1PBMCGvfm","Dw5PrxH0qxbPCW","C291CMnLtwfWq2fSBgjHy2S","CgfYC2u","C291CMnLuM9VDa","C291CMnLCW","BwvZC2fNzq","D2fSA1rYzwu","DhLWzs1JAgvJA2LUzYbTAxnZzwqGjW","z2v0u2nYAxb0u25HChnOB3q","z2vUzxjHDgLUzYb0yxjNzxqG","zgvJBgfYyxrPB24","z2vUzxjHDgLUzYbTAxnZzwqGzgvJBgfYyxrPB25ZigzVCIaN","BMfTzq","Aw5JBhvKzxm","C3bSAxq","DxnLvhnJB25MAwDezwnSyxjHDgLVBKrPCG","jYb0BYaN","D3jPDgvgAwXL","Dgv4Da","l3bSywnLAg9SzgvY","lMqUDhmUBwfW","zgLY","zw1PDhrPBMCGzgvJBgfYyxrPB25Z"];return(Ut=function(){return n})()}const Ht=i(qt(0,-447,-438)),Nt=Pt(0,-853,0,-789),Yt=Pt(0,-852,0,-805),Wt=Pt(0,-851,0,-830);class Zt extends u.EventEmitter{constructor(){var n,r,t,e;super(),this[(n=-124,r=-116,bt(r- -128,n))]=new Map,this[(t=-959,e=-912,bt(t- -972,e))]=new Map,this._easycoms=[]}[qt(0,-433,-423)](n){return this[(r=-174,t=-237,bt(t- -249,r))].has(e.normalizePath(n));var r,t}[Pt(0,-839,0,-869)](n,r){function t(n,r,t,e){return bt(r-284,n)}const o=e.normalizePath(n);function i(n,r,t,e){return bt(e- -398,r)}this[i(-350,-379,-328,-388)](o)!==r&&(this[t(242,296)][i(0,-408,0,-383)](n,r),this[i(0,-371,0,-382)](t(299,301),{fileName:o,source:r}))}get(n){return this[(o=501,i=517,bt(i-505,o))][(r=-361,t=-361,bt(r- -371,t))](e.normalizePath(n));var r,t,o,i}[qt(0,-438,-502)](n){function r(n,r,t,e){return bt(n- -987,t)}this[r(-975,0,-1001)][r(-978,0,-933)](n)}initUts2jsEasycom(n=this[Pt(0,-836,0,-824)]){function r(n,r,t,e){return bt(r- -865,n)}function t(n,r,t,e){return bt(e-865,r)}this[t(947,882,876,883)]=n||[],this[r(-853,-850)]("/__uts2js_vfs__/shim-uni-easycom.d.ts",function(n){let r="",t="";function e(n,r,t,e){return bt(t- -66,n)}for(let i=0;i<n[e(-36,0,-62)];i++){const{name:u,replacement:c}=n[i],f=s.upperFirst(s.camelCase(u))+e(-79,0,-61);r+=e(-113,0,-60)+f+" from '"+c+"'\n",t+=o(-264,-209,-239)+f+"PublicInstance = InstanceType<typeof "+f+">\n"}function o(n,r,t,e){return bt(n- -271,t)}return r+o(-263,0,-274)+t+"\n}"}(function(n,r){const t=[];return n[(e=-855,o=-821,bt(e- -864,o))]((n=>{const{name:e}=n;function o(n,r,t,e){return bt(e-743,t)}const i=r[(u=297,c=305,bt(u-287,c))](s.upperFirst(s.camelCase(e)));var u,c;i&&i[o(0,0,745,747)]>0&&t[o(0,0,744,754)](n)})),t;var e,o}(this[r(-775,-847)],this[t(0,861,0,878)])))}setEasycomUsage(n,r=[]){n=e.normalizePath(n),this[o(853,782,769,814)][o(763,778,710,834)](((t,e)=>{function o(n,r,t,e){return bt(r-107,n)}if(!r.includes(e)){const r=t[o(154,126)](n);r>-1&&t[o(198,127)](r,1),0===t[o(137,111)]&&this[(i=-516,u=-498,bt(u- -511,i))][o(110,128)](e)}var i,u}));for(let e=0;e<r[t(376,241,277,312)];e++){const i=r[e];!this._easycomUsage[t(342,390,369,322)](i)&&this[o(790,782,731,729)][o(752,784,846,826)](i,[n])}function t(n,r,t,e){return bt(e-308,t)}function o(n,r,t,e){return bt(r-769,e)}this[o(0,791,0,824)]()}}const Vt=n=>{function t(n,r,t,e){return bt(e-562,r)}let i,u,s,v=!1,z=!1,L=0;function C(n,r,t,e){return bt(r-921,e)}let g,x,h,y,l,B,w,d=!0;const A={},M=new Set,m=(n,r,t,o)=>{if(!r)return;function i(n,r,t,e){return bt(r-177,n)}n=e.normalizePath(n),M[i(146,203)](n);const u=((n,r,t)=>{function e(n,r,t,e){return bt(r-451,t)}return B[(o=-411,i=-483,bt(o- -434,i))](n,r,(()=>y.getSyntacticDiagnostics(n)),t)[e(0,475,466)](B[e(0,476,501)](n,r,(()=>{return y[(r=554,t=600,bt(t-575,r))](n);var r,t}),t));var o,i})(n,r,o);var c,s;Rr(t,u,!1!==g[(c=349,s=333,bt(s-306,c))][i(233,205)]),u[i(167,181)]>0&&(d=!1)},p=(n,r)=>{if(!r.dts)return;function t(n,r,t,e){return bt(e- -281,t)}const i=e.normalizePath(n);A[i]={type:r[t(0,0,-282,-252)],map:r[t(0,0,-181,-251)]},u[t(0,0,-322,-250)]((()=>o.blue(t(0,0,-311,-249))+bt(326-293,345)+i+"'"))},j=n=>{function r(n,r,t,e){return bt(n- -393,e)}function t(n,r,t,e){return bt(r- -114,n)}return!(n[t(-92,-80)](t(-105,-79))||n[r(-359,0,0,-303)](".d.cts")||n[r(-359,0,0,-419)](t(-43,-78)))&&!!s(n)},S=()=>{var n,r,t,e;v||d||u[(n=873,r=871,bt(r-834,n))](o.yellow("there were errors or warnings.")),B?.[(t=-191,e=-234,bt(t- -229,e))]()},q=Object.assign({},{check:!0,verbosity:Qr[C(0,960,0,984)],clean:!1,cacheRoot:c({name:t(0,568,0,602)}),include:[C(0,962,0,1034),t(0,672,0,604),"**/*.cts",t(0,560,0,605)],exclude:[t(0,574,0,606),t(0,636,0,607),C(0,967,0,1002),C(0,968,0,979)],abortOnError:!1,rollupCommonJSResolveHack:!1,tsconfig:void 0,useTsconfigDeclarationDir:!1,tsconfigOverride:{},transformers:[],tsconfigDefaults:{},objectHashIgnoreUnknownHack:!1,cwd:process.cwd()},n);!q[t(0,631,0,610)]&&(q[t(0,667,0,610)]=require("typescript")),Gr(q[C(0,969,0,999)],n.modules),globalThis.uts2jsSourceCodeMap=new Zt;return{name:C(0,970,0,922),options:n=>(i={...n},n),configureServer(n){var r,t;n.watcher[(r=533,t=539,bt(t-489,r))]("all",((n,r)=>{function t(n,r,t,e){return bt(r- -605,t)}if(n===t(0,-579,-511)||"unlink"===n){const n=e.normalizePath(r);U[t(0,-591,-526)](n)&&U.delete(n)}}))},buildStart(){function n(n,r,t,e){return bt(t- -700,n)}function t(n,r,t,e){return bt(t-918,n)}l=Yr[t(999,917,969)](),u=new tt(q.verbosity,q[t(1004,1039,970)],this,"uts: "),v=process[n(-675,0,-647)][t(944,952,972)]===t(955,905,973)||!!this[t(994,983,974)].watchMode,({parsedTsConfig:g,fileName:x}=function(n,t){const e=Yr[o(897,883,890,896)](t.cwd,Yr[o(893,897,889,897)][u(57,57,57)],t[o(898,896,897,899)]);function o(n,r,t,e){return Lt(e-896,r)}void 0===t[o(0,894,0,899)]||e||n[u(63,73,59)](o(0,909,0,901)+t.tsconfig+"'");let i={};function u(n,r,t,e){return Lt(t-55,n)}let c,s=t[o(0,913,0,902)],f=!0;if(e){const t=Yr.sys[u(55,0,62)](e),a=Yr[u(52,0,63)](e,t);f=a[u(53,0,64)]?.pretty??f,void 0!==a[u(67,0,59)]&&(Rr(n,Xr("config",[a.error]),f),n[u(58,0,59)](o(0,916,0,906)+e+"'")),i=a[o(0,901,0,905)],s=r.dirname(e),c=e}const a={};D[o(0,918,0,907)](a,t[o(0,905,0,908)],i,t.tsconfigOverride);const v=Yr.parseJsonConfigFileContent(a,Yr.sys,s,it(t),c),z=it(t,v),L=Yr[u(69,0,68)](a,Yr[o(0,901,0,897)],s,z,c),C=L[u(62,0,69)][u(72,0,70)];return C!==Yr[u(63,0,71)][u(59,0,72)]&&C!==Yr[o(0,902,0,912)][u(73,0,73)]&&C!==Yr[o(0,919,0,912)][o(0,910,0,915)]&&C!==Yr.ModuleKind[o(0,927,0,916)]&&n[o(0,902,0,900)](u(82,0,76)+Yr[u(64,0,71)][C]+o(0,930,0,918)),Rr(n,Xr("config",L[o(0,927,0,919)]),f),n[u(89,0,79)](u(67,0,80)+JSON[u(93,0,81)](z,void 0,4)),n[o(0,927,0,920)](u(73,0,82)+JSON[o(0,933,0,922)](L,void 0,4)),{parsedTsConfig:L,fileName:e}}(u,q)),u[t(882,946,955)]("typescript version: "+Yr[t(1021,900,975)]),u.info(t(1029,1002,976)+q[n(-646,0,-641)][t(993,1014,978)]),u[n(-611,0,-663)](n(-578,0,-639)+this[n(-598,0,-644)][n(-689,0,-638)]),f.satisfies(Yr[n(-637,0,-643)],Nt,{includePrerelease:!0})||u[t(1056,1005,981)](n(-586,0,-636)+Yr.version+t(959,968,983)+Nt+"'"),f.satisfies(this.meta[t(1026,907,980)],Yt,{includePrerelease:!0})||u[n(-680,0,-637)](n(-588,0,-634)+this[n(-664,0,-644)][t(965,992,980)]+n(-651,0,-635)+Yt+"'"),z=f.satisfies(this[t(942,1008,974)][t(943,1039,980)],">=2.60.0",{includePrerelease:!0}),z||u[n(-575,0,-633)]((()=>o.yellow(n(-632,0,-632))+n(-611,0,-631))),u[t(924,0,955)](n(-559,0,-630)+Wt),u.debug((()=>t(1053,0,989)+JSON.stringify(q,((r,e)=>r===n(-683,0,-652)?t(1049,0,990)+e[n(-677,0,-643)]:e),4))),u[t(922,0,949)]((()=>t(1021,0,991)+JSON[t(951,0,992)](i,void 0,4))),u[t(977,0,949)]((()=>n(-629,0,-625)+x)),q.objectHashIgnoreUnknownHack&&u[n(-695,0,-633)]((()=>o.yellow(t(941,0,994))+". If you enabled it because of async functions, try disabling it now.")),q[n(-643,0,-623)]&&u[t(1003,0,985)]((()=>o.yellow("You are using 'rollupCommonJSResolveHack' option")+n(-677,0,-622))),v&&u.info(t(1043,0,997)),s=function(n,r,t){function o(n,r,t,e){return et(r- -906,n)}let i=r[o(-890,-897)],u=r[o(-887,-896)];function c(n,r,t,e){return et(n-717,t)}return t[c(718,0,714)][c(728,0,731)]&&(i=ut(i,t[c(718,0,710)][c(728,0,722)]),u=ut(u,t[o(-894,-905)][c(728,0,727)])),t.projectReferences&&(i=ut(i,t[o(-905,-894)].map((n=>n.path)))[o(-895,-893)](i),u=ut(u,t[c(729,0,731)][o(-899,-892)]((n=>n[c(732,0,721)])))[c(730,0,738)](u)),n[c(733,0,731)]((()=>c(734,0,728)+JSON[c(735,0,725)](i,void 0,4))),n[c(733,0,723)]((()=>o(-894,-887)+JSON[c(735,0,725)](u,void 0,4))),e.createFilter(i,u,{resolve:t.options[c(737,0,729)]})}(u,q,g),h=new vt(g,q[n(-689,0,-620)],q[n(-596,0,-619)]),globalThis[t(1051,0,1e3)][n(-753,0,-691)](((n,r)=>{var t,e;h[(t=-651,e=-588,bt(t- -734,e))](r,n)})),h[n(-658,0,-617)](Mt,q[t(1030,0,977)][n(-566,0,-616)]),globalThis[t(1058,0,1e3)].on(t(893,0,935),(function(n){const{fileName:r,source:t}=n||{};var e,o;h[(e=-368,o=-385,bt(e- -451,o))](r,t)})),y=Yr.createLanguageService(h,l),h[n(-574,0,-615)](y);const c=q[n(-659,0,-614)],a=q.noCache||q.clean;if(B=new At(a,c,q[t(1026,0,1005)],h,q[n(-580,0,-612)],g.options,g[n(-654,0,-611)],u),w=new Set,q.check){const r=Xr(t(975,0,945),y[n(-647,0,-610)]());Rr(u,r,!1!==g[n(-654,0,-673)].pretty),r[n(-675,0,-696)]>0&&(d=!1)}},watchChange(n,r){const t=e.normalizePath(n);function o(n,r,t,e){return bt(t-199,e)}function i(n,r,t,e){return bt(e- -404,r)}if(delete A[t],M.delete(t),process.env[i(0,-304,0,-313)]===o(0,0,291,263))return;const{event:u}=r||{};(u===o(0,0,292,224)||u===i(0,-403,0,-383))&&U.has(t)&&U[o(0,0,220,284)](t)},resolveId(n,t){if(n===Mt)return St;if(!t)return;t=e.normalizePath(t);const i=Yr[c(-81,-26,-58,-42)](n,t,g[c(-123,-175,-125,-80)],Yr[c(-106,-30,-57,-26)]);function c(n,r,t,e){return bt(t- -152,e)}let s=i.resolvedModule?.[f(442,481)];if(s){if(Wr[c(0,0,-138,-158)](e.normalizePath(s))&&(s=s[c(0,0,-55,-50)](c(0,0,-54,18),c(0,0,-53,-71))),/.u?vue.ts$/[f(420,485)](n))return s=s.replace(/.ts$/,""),r.normalize(s);if(j(s))return B.setDependency(s,t),u.debug((()=>o.blue(f(562,486))+" '"+n+c(0,0,-50,-36)+t+"'")),u[f(450,416)]((()=>c(0,0,-49,-20)+s+"'")),r.normalize(s)}function f(n,r,t,e){return bt(r-385,n)}},load:n=>n===St?q.utsOptions.tslibSource:null,async transform(t,i){w[S(861,831,881,867)](i);const c=t.matchAll(/([a-zA-Z0-9]+)ComponentPublicInstance/g);function f(n,r,t,e){return bt(r- -826,e)}const L=[];for(const n of c)L.push(n[1]);if(L[S(890,918,827,845)]>0&&globalThis[S(881,970,881,923)][f(0,-722,0,-683)](e.normalizePath(i),L),!s(i))return;const C=Date[S(975,970,932,946)](),l=h[S(928,935,965,924)](i,t),A=B[f(0,-720,0,-793)](i,l,(()=>{let t;function c(n,r,t,e){return bt(r- -649,t)}const s=y[f(1105,1134,1034,1129)]()?.getSourceFile(i);function f(n,r,t,e){return bt(n-998,e)}if(q[f(1057,0,0,987)][f(1106,0,0,1117)]===c(0,-600,-561)){const n=[];if(s){const t=Yr[c(0,-539,-496)]({})[c(0,-538,-596)](s,{host:Or,map:{file:e.normalizePath(r.relative(q[c(0,-590,-531)][f(1110,0,0,1120)]??"",i)),sourceRoot:"",sourcesDirectoryPath:q[f(1057,0,0,1114)][f(1110,0,0,1069)]??""}});t.code&&n[c(0,-638,-649)]({name:"",writeByteOrderMark:!1,text:t[f(1111,0,0,1063)]}),t[f(1112,0,0,1087)]&&n[c(0,-638,-678)]({name:c(0,-534,-550),writeByteOrderMark:!1,text:t.map})}else this[c(0,-586,-517)](new Error(c(0,-540,-539)+i+"'."));t={outputFiles:n,emitSkipped:!1}}else t=y[c(0,-533,-521)](i);t[c(0,-532,-566)]&&(d=!1,m(i,l,u,n?.[c(0,-597,-637)]?void 0:new a.SourceMapConsumer(this[f(1116,0,0,1068)]())),this[f(1061,0,0,1089)](o.red(c(0,-530,-458)+i+"'. See https://github.com/microsoft/TypeScript/issues/49790 for potential reasons why this may occur")));return dt(t,function(n,r,t){function o(n,r,t,e){return Dt(e-906,n)}if(!r)return[];function i(n,r,t,e){return Dt(n- -751,e)}const u=Yr[i(-740,0,0,-788)](r.getText(0,r[i(-739,0,0,-698)]()),!0,!0);return D[i(-738,0,0,-773)](u[o(881,0,0,920)][o(952,0,0,921)](u[o(871,0,0,922)])[i(-734,0,0,-687)]((r=>{const o=Yr[u(696,732,769,733)](r[i(-96,-197,-146,-96)],n,t,Yr[i(-110,-141,-145,-146)]);function i(n,r,t,e){return Dt(t- -165,e)}function u(n,r,t,e){return Dt(e-715,n)}const c=o.resolvedModule?.resolvedFileName;return c&&Wr[i(0,0,-144,-137)](e.normalizePath(c))&&c[u(732,0,0,720)](u(707,0,0,737))?c[i(0,0,-142,-146)](/.ts$/,u(760,0,0,739)):c})))}(i,l,g[f(1025,0,0,1049)]),[...s?.[c(0,-529,-576)]?.uniExtApis||[]])}));if(q[f(0,-705,0,-697)]&&m(i,l,u,new a.SourceMapConsumer(this[S(958,997,974,959)]())),!A)return;if(v&&A[f(0,-704,0,-780)]&&(x&&this[f(0,-703,0,-663)](x),A[f(0,-704,0,-776)][S(958,918,889,955)](this[f(0,-703,0,-711)],this),u[S(825,849,883,872)]((()=>o.green(S(894,996,994,965))+": "+A[f(0,-704,0,-728)][f(0,-701,0,-668)]("\nuts: ")))),p(i,A),A[S(992,892,942,963)]&&z)for(const n of A[S(926,1038,921,963)]){if(!j(n))continue;const r=await this[S(961,1019,949,967)](n,i);r&&!w.has(r.id)&&await this.load({id:r.id})}if(g.options[f(0,-699,0,-630)])return void u[S(886,848,878,872)]((()=>o.blue(f(0,-699,0,-679))+S(1004,1043,1034,969)));const M={code:A.code,map:{mappings:""},meta:{uniExtApis:A.uniExtApis?[...A[S(933,1042,943,970)]]:[]}};if(A[S(976,946,909,955)]){q[f(0,-696,0,-664)]?.(i,A.map);const n=JSON[f(0,-695,0,-673)](A[f(0,-712,0,-679)]);n[f(0,-694,0,-684)]&&(n[f(0,-693,0,-661)]=n[S(960,962,902,974)].map((t=>{if(!r.isAbsolute(t))return n[(e=587,o=655,bt(e-455,o))]+t;var e,o;return t}))),M[f(0,-712,0,-759)]=n}function S(n,r,t,e){return bt(e-841,t)}return Ht(Date[S(921,937,931,946)]()-C+"ms "+i),M},buildEnd(n){if(L=0,n){S();const e=n.stack?.split(n.message)[1];e?this[r(-37,16,-14)]({...n,message:n[t(-456,-422,-405,-436)],stack:e}):this[r(-44,-8,-14)](n)}if(!q[t(-483,-515,-501,-449)])return S();function r(n,r,t,e){return bt(t- -77,n)}function t(n,r,t,e){return bt(e- -570,r)}v&&B[t(-445,-509,-476,-435)]((n=>{if(!s(n))return;const r=h.getScriptSnapshot(n);m(n,r,u)})),g[r(9,0,12)][r(-104,0,-68)]((n=>{const r=e.normalizePath(n);function t(n,r,t,e){return bt(t-853,n)}if(M[t(922,0,867)](r)||!s(r))return;u.debug((()=>bt(-415- -551,-407)+r+"'"));const o=h[t(927,0,990)](r);m(r,o,u)})),S()},generateBundle(n){function t(n,r,t,e){return bt(r- -359,e)}if(u.debug((()=>t(-179,-221,-253,-270)+(L+1))),L++,!g.options[t(0,-220,0,-200)])return;g[t(0,-270,0,-269)].forEach((n=>{const r=e.normalizePath(n);if(r in A||!s(r))return;u[c(278,306,208,253)]((()=>c(358,356,332,362)+r+"'"));const t=dt(y[(o=8,i=-51,bt(o- -108,i))](r,!0));var o,i;function c(n,r,t,e){return bt(e-222,r)}p(r,t)}));const i=(t,i,c)=>{if(!c)return;let s=c[f(302,290,249,294)];function f(n,r,t,e){return bt(e-153,n)}if(s[a(-5,-54,-3,-6)]("?")&&(s=s[a(25,-62,-2,-55)]("?",1)+i),q[a(65,36,-1,0)])return u[a(-98,-118,-114,-132)]((()=>o.blue("emitting declarations")+f(147,0,0,186)+t+a(-4,-34,0,-57)+s+"'")),void Yr[f(177,0,0,248)][f(265,0,0,299)](s,c[f(252,0,0,300)],c.writeByteOrderMark);function a(n,r,t,e){return bt(t- -145,e)}let v=c.text;const z=q[f(206,0,0,241)]+a(0,0,3,-45);if(i===f(308,0,0,302)&&(n?.file||n?.[a(0,0,5,7)])){const t=n.file?r.dirname(n.file):n.dir,o=JSON[f(295,0,0,284)](v);o[a(0,0,-12,3)]=o[f(264,0,0,286)][f(245,0,0,267)]((n=>{const o=r.resolve(z,n);return e.normalizePath(r.relative(t,o))})),v=JSON[f(246,0,0,227)](o)}const L=e.normalizePath(r.relative(z,s));u[a(0,0,-114,-175)]((()=>o.blue(a(0,0,6,9))+f(192,0,0,186)+t+"' to '"+L+"'")),this.emitFile({type:"asset",source:v,fileName:L})};Object.keys(A)[t(0,-350,0,-290)]((n=>{const{type:r,map:t}=A[n];i(n,bt(177-142,193),r),i(n,".d.ts.map",t)}))}}};function Tt(n,r){const t=Ot();return Tt=function(r,e){let o=t[r-=0];if(void 0===Tt.xbFoRm){Tt.aDokri=function(n){let r="",t="";for(let t,e,o=0,i=0;e=n.charAt(i++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Tt.xbFoRm=!0}const i=r+t[0],u=n[i];return u?o=u:(o=Tt.aDokri(o),n[i]=o),o},Tt(n,r)}const Gt=g.pathToFileURL(__filename)[Kt(-120,-115,-126,-118)],It=r[Kt(-119,-118,-116,-114)](g.fileURLToPath(Gt));function Kt(n,r,t,e){return Tt(n- -120,e)}const Jt=t.createRequire(Gt);function Ot(){const n=["AhjLzG","zgLYBMfTzq","kIOVkI51Dhm","kIOVkI50CW","DhLWzxnJCMLWDa","CMvHzezPBgvtEw5J","lI4VBgLIl3j1BNrPBwuVAw5KzxGUANm","DxrMoa","DhnJB25MAwDpDMvYCMLKzq","y29TCgLSzxjpChrPB25Z","yMfZzw5HBwu","C3jJ","qNvUzgXLCG","C291CMnLtwfW","AgfZt3DUuhjVCgvYDhK"];return(Ot=function(){return n})()}exports.uts2js=function({inputDir:t,modules:e,...o}){const i=o.include??[v(385,397,394,392),v(388,395,388,393)],u=o[v(393,397,398,394)]??Jt(v(391,394,397,394));function c(n,r,t,e){return Tt(n- -505,t)}const s={...o,modules:e||{},include:i,typescript:u,transformers:[un(u,Ur)],utsOptions:{tslibSource:n[v(391,400,400,395)](r.resolve(It,c(-499,0,-496)),c(-498,0,-492))}};!s.tsconfigOverride&&(s[c(-497,0,-504)]={compilerOptions:{}}),!s[c(-497,0,-499)][v(393,403,403,399)]&&(s.tsconfigOverride[c(-496,0,-491)]={});const f=s.tsconfigOverride.compilerOptions,a={baseUrl:t?r[v(402,400,408,400)](t)===v(402,396,401,401)?r[v(395,391,398,391)](t):t:".",moduleResolution:v(404,402,406,402),importHelpers:!0,mapRoot:f[v(405,407,409,403)]?t:void 0,target:"ES2016"};function v(n,r,t,e){return Tt(e-390,r)}for(const n in a)!f[v(0,406,0,404)](n)&&(f[n]=a[n]);return[Vt(s)]}; +"use strict";var n=require("fs"),r=require("path"),t=require("module"),e=require("@rollup/pluginutils"),i=require("colors/safe"),o=require("debug"),u=require("events"),c=require("find-cache-dir"),s=require("lodash"),f=require("semver"),a=require("source-map-js"),v=require("@babel/code-frame"),z=require("fs-extra"),L=require("graphlib"),C=require("object-hash"),g=require("url");function x(n){var r=Object.create(null);return n&&Object.keys(n).forEach((function(t){if("default"!==t){var e=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(r,t,e.get?e:{enumerable:!0,get:function(){return n[t]}})}})),r.default=n,Object.freeze(r)}var h,l,y,B,w=x(n),d=x(r),D=x(s),A=x(z);function M(n,r){var t=m();return M=function(r,e){var i=t[r-=0];if(void 0===M.KGuyzS){M.mZRnsC=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,M.KGuyzS=!0}var o=r+t[0],u=n[o];return u?i=u:(i=M.mZRnsC(i),n[o]=i),i},M(n,r)}function m(){var n=["zw5KC1DPDgG","CMvWBgfJzq","DhLWzsbpyMPLy3rjBMPLy3rpChrPB25ZpeKGpsbeyxrHpIa9ihSkicbBsYbPBIbRzxLVzIbjxtOGEWOGicaGDhLWztOGuhjVCfr5Cgu8svTlxt47cIaGicbMCM9TpZOGC3rYAw5NoWOGicaGzgvMyxvSDd86ieLBs10GFcaOkcKGpt4GsvTlxsK7cIaGFqP9oW","DhLWzsbjBMPLy3ruB09IAMvJDdXupIa9ifqGzxH0zw5KCYbZDhjPBMDBxsa/ihSkicbBsYbPBIbuw251BwjLCL1DoIb1BMTUB3DUoWP9idOGvcbLEhrLBMrZie9IAMvJDeLUAMvJDe9WDgLVBNm8Aw5MzxiGst4GpYb7cIaGw0SGAw4GA2v5B2yGsv06ieLBs107cN0GoIbUzxzLCJS"];return(m=function(){return n})()}function p(){var n=["x191DhniywnRzxjFxW"];return(p=function(){return n})()}function j(n,r){var t=p();return j=function(r,e){var i=t[r-=0];if(void 0===j.HrqFwI){j.pbqQlp=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,j.HrqFwI=!0}var o=r+t[0],u=n[o];return u?i=u:(i=j.pbqQlp(i),n[o]=i),i},j(n,r)}function S(n,r){var t=b();return S=function(r,e){var i=t[r-=0];if(void 0===S.vbiJxD){S.XSugzC=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,S.vbiJxD=!0}var o=r+t[0],u=n[o];return u?i=u:(i=S.XSugzC(i),n[o]=i),i},S(n,r)}function q(n){return n[(r=151,t=151,S(t-151,r))](/\\/g,"/");var r,t}function b(){var n=["CMvWBgfJzq"];return(b=function(){return n})()}function P(n,r){const t=Y();return P=function(r,e){let i=t[r-=0];if(void 0===P.dnuLFX){P.BVDfGv=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,P.dnuLFX=!0}const o=r+t[0],u=n[o];return u?i=u:(i=P.BVDfGv(i),n[o]=i),i},P(n,r)}globalThis[(y=-921,B=-922,j(B- -922,y))]={...globalThis[(h=111,l=112,j(h-111,l))],replaceVueTypes:function(n,r){function t(n,r,t,e){return M(t-891,e)}if(!n[e(-218,-219,-220,-217)]("runtime-core.d.ts"))return r;function e(n,r,t,e){return M(r- -219,e)}return r=(r=r[t(0,0,892,893)](/type ObjectInjectOptions = Record<([\s\S]+?)>;/,t(0,0,893,891)))[t(0,0,892,892)](/type InjectToObject<T([\s\S]+?): never;/,e(-215,-216,-218,-217))}};const U=new Map;function H(n){const r=q(n);function t(n,r,t,e){return P(t- -822,e)}if(U.has(r))return U[t(0,0,-822,-823)](r);if(w[e(644,642,642,643)](r))return U[t(0,0,-820,-822)](r,!0),!0;function e(n,r,t,e){return P(e-642,n)}return U[e(643,646,643,644)](r,!1),!1}function Y(){const n=["z2v0","zxHPC3rZu3LUyW","C2v0"];return(Y=function(){return n})()}var W,N,Z;function V(n,r){var t=T();return V=function(r,e){var i=t[r-=0];if(void 0===V.AtHFMh){V.hHUunk=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,V.AtHFMh=!0}var o=r+t[0],u=n[o];return u?i=u:(i=V.hHUunk(i),n[o]=i),i},V(n,r)}function T(){var n=["vvrtsLnptK9IAMvJDa","vu5jx0vsuK9s","vw5PrxjYB3i","sLnptG","vvrt","revgsu5fx0nptvbptKvova","zgvMAw5Lq29TCg9Uzw50","revgsu5fx0fqua","zgvMAw5LqxbW","vLvf","DNvL","r0XpqKfmx1risvm","z2XVyMfSvgHPCW","vvrtx1rzueu","vvrtx01fvefeqvrb","jfvuu01LDgfKyxrHja","vevnuf9vvfnFtuvuqurbvee","jfrLBxbvvfnnzxrHzgf0ysq","sLnptL9gsuvmra","revgsu5fx1bmvuDjtG","zgvMAw5LugX1z2LU","revgsu5fx0vyue9trq","zgvMAw5LrxHWB3nL","q0Xbu1m","su5urvjgqunf","vfLqrq"];return(T=function(){return n})()}function G(n,r){var t=I();return G=function(r,e){var i=t[r-=0];if(void 0===G.kjpXrq){G.ZQLzPc=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,G.kjpXrq=!0}var o=r+t[0],u=n[o];return u?i=u:(i=G.ZQLzPc(i),n[o]=i),i},G(n,r)}function I(){var n=["v2fYBMLUzW","rxjYB3i","u3vNz2vZDgLVBG","twvZC2fNzq"];return(I=function(){return n})()}function J(n,r,t,e){return K(t-925,n)}function K(n,r){const t=X();return K=function(r,e){let i=t[r-=0];if(void 0===K.hMGVrr){K.HxOYQs=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,K.hMGVrr=!0}const o=r+t[0],u=n[o];return u?i=u:(i=K.HxOYQs(i),n[o]=i),i},K(n,r)}function O(n,r,t,e,i,o,u){return{code:n,category:r,key:t,message:e,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:u}}function E(n,r,t,e){return K(n-345,t)}function X(){const n=["rxjYB3i","vhLWzv9SAxrLCMfSx3bYB3bLCNr5x211C3rFAgf2zv9Hx3r5CgvFyw5UB3rHDgLVBL8XmdaWmda","vhLWzsbSAxrLCMfSihbYB3bLCNr5ig11C3qGAgf2zsbHihr5CguGyw5UB3rHDgLVBI4","t25SEv9VBMvFzxH0zw5KC19OzxjPDgfNzv9JBgf1C2vFAxnFywXSB3DLzf9MB3jFAw50zxjMywnLxZeWmdaWmq","t25SEsbVBMuGzxH0zw5KCYbOzxjPDgfNzsbJBgf1C2uGAxmGywXSB3DLzcbMB3iGAw50zxjMywnL","vMfYAwfIBgvFzgvJBgfYyxrPB25FBxvZDf9OyxzLx2LUAxrPywXPEMvYxZeWmdaWmG","tMvZDgvKx3r5CgvFBgL0zxjHBf9PC19UB3rFC3vWCg9YDgvKxZeWmdaWmW","tMvZDgvKihr5CguGBgL0zxjHBcbPCYbUB3qGC3vWCg9YDgvKlG","sw52ywXPzf9Nzw5LCMLJx3r5CgvFD2HPy2HFy2fUx25VDf9Izv9JB25ZDhj1y3rLzf8XmdaWmdq","sw52ywXPzcbNzw5LCMLJihr5CguGD2HPy2GGy2fUig5VDcbIzsbJB25ZDhj1y3rLzc4","ydXZy3jPChqGC2v0Dxa+ycbJyw5UB3qGy29UDgfPBIbfuYbTB2r1BguGzxHWB3j0CY4"];return(X=function(){return n})()}!function(n){function r(n,r,t,e){return V(e- -808,t)}function t(n,r,t,e){return V(e- -293,t)}n[r(-795,-795,-798,-808)]="UTSJSONObject",n[r(-804,-812,-815,-807)]=t(-282,-303,-288,-291),n.JSON=t(-281,-289,-294,-290),n[r(0,0,-797,-804)]="UTS",n[t(-297,-283,-280,-288)]=t(-278,-280,-294,-287),n[r(0,0,-810,-801)]=t(-272,-287,-276,-285),n[t(-275,-271,-296,-284)]=t(-287,-277,-291,-283),n[t(0,0,-286,-282)]=r(0,0,-798,-796),n[r(0,0,-786,-795)]="UTSType",n[t(0,0,-272,-279)]=t(0,0,-290,-278),n[t(0,0,-279,-277)]=t(0,0,-275,-276),n[r(0,0,-789,-790)]=t(0,0,-277,-275),n.DEFINE_MIXIN="defineMixin",n[r(0,0,-778,-789)]=r(0,0,-786,-788),n[t(0,0,-269,-272)]=r(0,0,-794,-786)}(W||(W={})),function(n){var r,t;function e(n,r,t,e){return V(r-399,t)}n[n[(r=608,t=598,V(t-575,r))]=0]=e(432,422,414),n[n[e(0,423,427)]=1]=e(0,423,432),n[n[e(0,424,430)]=2]=e(0,424,432)}(N||(N={})),function(n){function r(n,r,t,e){return G(r-689,t)}function t(n,r,t,e){return G(t- -331,n)}n[n[r(687,689,691)]=0]=t(-333,-333,-331),n[n[t(-332,-328,-330)]=1]="Error",n[n[t(-330,-329,-329)]=2]=r(0,691,693),n[n[t(-330,0,-328)]=3]=t(-330,0,-328)}(Z||(Z={}));const R={Type_literal_property_must_have_a_type_annotation:O(1e5,Z[J(926,0,925)],J(926,0,926),J(927,0,927)),Only_one_extends_heritage_clause_is_allowed_for_interface:O(100001,Z.Error,J(927,0,928),J(930,0,929)),Variable_declaration_must_have_initializer:O(100002,Z[E(345,0,340)],J(936,0,930),"Variable declaration must have initializer."),Nested_type_literal_is_not_supported:O(100003,Z[E(345,0,339)],J(933,0,931),E(352,0,354)),Invalid_generic_type_which_can_not_be_constructed:O(100004,Z[E(345,0,344)],E(353,0,354),E(354,0,355)),script_setup_cannot_contain_ES_module_exports:O(100005,Z[J(920,0,925)],"script_setup_cannot_contain_ES_module_exports_100005",E(355,0,349))};function k(n){function r(n,r,t,e){return F(e- -102,n)}return n.factory[r(-101,0,0,-102)](W[r(-101,0,0,-101)])}function F(n,r){var t=_();return F=function(r,e){var i=t[r-=0];if(void 0===F.MiSghp){F.nDbXWw=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,F.MiSghp=!0}var o=r+t[0],u=n[o];return u?i=u:(i=F.nDbXWw(i),n[o]=i),i},F(n,r)}function _(){var n=["y3jLyxrLswrLBNrPzMLLCG","vvrt"];return(_=function(){return n})()}function Q(n,r){const t=$();return Q=function(r,e){let i=t[r-=0];if(void 0===Q.UwKRmD){Q.LkxnMQ=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Q.UwKRmD=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Q.LkxnMQ(i),n[o]=i),i},Q(n,r)}function $(){const n=["zgvJBgfYyxrPB25Z","C29Tzq","AxnjBxbVCNrtCgvJAwzPzxi","AxnjBxbVCNrdBgf1C2u","BMfTzq","B3jPz2LU","DhLWzq","C3LTyM9S","x19VyMPLy3q","B2jQzwn0rMXHz3m","t2jQzwn0rMXHz3m","rNjLC2HmAxrLCMfS","z2v0u3LTyM9S","u3LTyM9SrMXHz3m","t2jQzwn0tgL0zxjHBa","AxnuExbLqxnZAwDUywjSzvrV","z2v0uhjVBwLZzwruExbLt2zqCM9TAxnL","DhLWzxm","zxnJyxbLze5HBwu","vvrtsLnptK9IAMvJDa","AxnvBMLVBLr5CgvoB2rL","AxnmAxrLCMfSvhLWzu5Vzgu","BgL0zxjHBa","A2LUza","u3LUDgf4s2LUza","tNvSBeTLExDVCMq","CgfYzw50","AxnjzgvUDgLMAwvY","zMfJDg9YEq","y3jLyxrLvw5PB25uExbLtM9Kzq","y3jLyxrLtNvSBa","y3jLyxrLtgL0zxjHBfr5CgvoB2rL"];return($=function(){return n})()}function nn(n,r,t){function e(n){function r(n,r,t,e){return Q(t- -24,e)}return n?.constraintType?.[r(0,0,-19,-17)]?.[r(0,0,-18,-5)]||n}function i(n){if(!n)return!1;const t=r.getNullType();return r[(e=-308,i=-319,Q(e- -323,i))](t,n);var e,i}function o(r){function t(n,r,t,e){return Q(r- -5,e)}function e(n,r,t,e){return Q(e-123,t)}return!!(r&&n[t(0,15,0,21)](r)&&r.types[e(0,0,137,124)]((r=>n[e(0,0,149,144)](r)&&r[t(0,17,0,10)][t(0,18,0,28)]===n[t(0,19,0,3)][e(0,0,159,148)])))}return{ts:n,typeChecker:r,context:t,isImportedSymbol:function(r){function t(n,r,t,e){return Q(n- -262,e)}return!(!r[t(-262,0,0,-263)]||!r[t(-262,0,0,-268)][t(-261,0,0,-248)]((r=>{function t(n,r,t,e){return Q(e-524,t)}return n[t(0,0,511,526)](r)||n[(e=-518,i=-528,Q(i- -531,e))](r)&&r[t(0,0,526,528)];var e,i})))},isPossibleUTSJSONObjectType:function(n,r=!1){function t(n,r,t,e){return Q(n- -189,t)}return n?n.isUnion()&&n[t(-172,0,-171)].some((n=>e(n)[t(-182,0,-192)]?.escapedName===W.UTSJSONObject))||e(n).symbol?.[(i=432,o=418,Q(o-400,i))]===W[t(-170,0,-169)]:!r;var i,o},isPossibleNullType:i,isPossiblePromiseNullType:function(n){return!!n&&i(r[(t=-131,e=-133,Q(t- -147,e))](n));var t,e},createTypeNodeWithNullType:function(r,e){const i=t[c(331,345)],u=o(r);function c(n,r,t,e){return Q(n-303,r)}function s(n,r,t,e){return Q(n-238,r)}let f=r;return e&&!u&&(f=n[s(258,272)](r)?i[c(332,320)]([...r[s(255,262)],i.createLiteralTypeNode(i[c(333,334)]())]):i[s(267,259)]([r,i[c(334,338)](i[c(333,329)]())])),f},isUnionWithNullType:o,isObjectLiteralType:function(r){if(!r)return!1;if(r[e(-505,-533,-524,-518)]?.escapedName===o(-845,-854,-843))return!0;const t=r?.[e(-511,-503,-513,-516)];function e(n,r,t,e){return Q(e- -525,n)}if(t&&(t&n[o(-843,-834,-848)].ObjectLiteral||t&n[e(-529,0,0,-515)][o(-842,-828,-833)]))return!0;const i=r[e(-527,0,0,-513)]();if(i&&i.flags&n[e(-499,0,0,-512)][o(-839,-849,-828)])return!0;function o(n,r,t,e){return Q(n- -853,t)}return!1},getMethodNameNodeOfObjectLiteral:function(r){function t(n,r,t,e){return Q(t-406,e)}if(n.isMethodDeclaration(r))return r[(e=621,i=619,Q(i-615,e))];var e,i;const o=r[t(0,0,432,416)];if(!n.isPropertyAssignment(o))return;const u=o[t(0,0,410,404)];return n[t(0,0,433,436)](u)?u:void 0}}}const rn=[260,169,172,171,208,219,253,229,223,213,214,170,216,234,226,303,304,305,209,227,239,217,235,238,277,294,291,293,286,285];function tn(){const n=["zMLSzu5HBwu","AxnvvfngAwXL","zw5KC1DPDgG","lMqUDhm","AxnwDwvgAwXL","vhLWzufSAwfZrgvJBgfYyxrPB24","ChvZAa","u291CMnLrMLSzq","zM9YrwfJAa","zNvUy3rPB24","CgfYC2vY","yMvMB3jL","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm"];return(tn=function(){return n})()}function en(n,r,t,e=!1,i=!1){return o=>{const u=t(o);return t=>{function c(n,r,t,e){return on(r- -680,e)}function s(n,r,t,e){return on(r-246,n)}if(!o.fileName&&n.isSourceFile(t)&&(o.fileName=t[c(0,-680,0,-676)]),r[s(240,247)](o[c(0,-680,0,-682)])||i&&o[s(246,246)][c(0,-678,0,-680)](s(255,249))){n.isSourceFile(t)&&!t[s(243,247)]&&(t[c(0,-679,0,-684)]=!0,r[c(0,-676,0,-677)](o[s(239,246)])&&(t[c(0,-676,0,-676)]=!0));const i=u(t);return i!==t&&e&&n.setParentRecursive(i,!0),i}return t}}}function on(n,r){const t=tn();return on=function(r,e){let i=t[r-=0];if(void 0===on.bqoOPH){on.paFOyM=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,on.bqoOPH=!0}const o=r+t[0],u=n[o];return u?i=u:(i=on.paFOyM(i),n[o]=i),i},on(n,r)}function un(n,r){return t=>{const e={},i=[];const o=[],u=[];return r[(c=-336,s=-343,on(c- -344,s))]((r=>{const c=r(n,t);function s(n,r,t,e){return on(r-518,e)}function f(n,r,t,e){return on(n-811,e)}typeof c===s(0,527,0,520)?i[s(0,524,0,524)](en(n,t,c)):(c[s(0,528,0,522)]&&function(n,r,t,e){function i(n,r,t,e){return on(r-808,t)}function o(n,r,t,e){return on(n-361,t)}e.TypeAliasDeclaration&&(t[i(0,813,808)]||(t.TypeAliasDeclaration=[]))[o(367,0,373)](en(n,r,e[i(0,813,806)],!0,!0)),e.SourceFile&&(t[i(0,815,821)]||(t[i(0,815,810)]=[]))[o(367,0,364)](en(n,r,e.SourceFile,!0))}(n,t,e,c[f(821,0,0,819)]),c.before&&i[f(817,0,0,818)](en(n,t,c[s(0,529,0,530)])),c[s(0,530,0,527)]&&o.push(en(n,t,c.after)),c[f(824,0,0,828)]&&u[s(0,524,0,519)](en(n,t,c[f(824,0,0,831)])))})),{parser:e,before:i,after:o,afterDeclarations:u};var c,s}}function cn(){const n=["AxnqCM9Wzxj0EurLy2XHCMf0Aw9U","AxnjzgvUDgLMAwvY","BMfTzq","zxnJyxbLzfrLEhq","vevnuf9vvfnFtuvuqurbvee","vvrtx01fvefeqvrb","BgvUz3rO","AxndBgfZC0rLy2XHCMf0Aw9U","AgvYAxrHz2vdBgf1C2vZ","u3LUDgf4s2LUza","DhLWzxm","C29Tzq","zxHWCMvZC2LVBG","DhLWzunOzwnRzxi","z2v0q29UDgv4DhvHBfr5Cgu","C3LTyM9S","zMfJDg9YEq","y3jLyxrLugfYzw50AgvZAxPLzev4ChjLC3nPB24","y3jLyxrLswrLBNrPzMLLCG","y3jLyxrLs2v5D29Yzfr5CgvoB2rL","qw55s2v5D29Yza","vvrtx1rzueu","AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","AxnbC0v4ChjLC3nPB24","r0XpqKfmx1risvm","vvrt","y29UDgv4Da","AxnvBMLVBLDPDgHoDwXSvhLWzq","A2LUza","z2v0u3LTyM9SqxrmB2nHDgLVBG","Dg9tDhjPBMC","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","D2L0AeDLBMvYAwnZ","AxnbCNjHEvr5CgvoB2rL","y3jLyxrLqxjYyxLmAxrLCMfSrxHWCMvZC2LVBG","AxnuExbLtgL0zxjHBe5Vzgu","ywrKqMLUzerPywDUB3n0Awm","tMvZDgvKx3r5CgvFBgL0zxjHBf9PC19UB3rFC3vWCg9YDgvK","tNvTyMvY","u3rYAw5N","qM9VBgvHBG","y3jLyxrLu3rYAw5NtgL0zxjHBa","qw55","y3jLyxrLtwv0Ag9KrgvJBgfYyxrPB24","y3jLyxrLvg9Rzw4","u3rHDgLJs2v5D29Yza","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","uxvLC3rPB25uB2TLBG","y3jLyxrLuMv0DxjUu3rHDgvTzw50","y3jLyxrLqxnfEhbYzxnZAw9U","y3jLyxrLuhjVCgvYDhLbC3nPz25Tzw50","y3jLyxrLtNvTzxjPy0XPDgvYywW","y3jLyxrLt2jQzwn0tgL0zxjHBev4ChjLC3nPB24","y3jLyxrLr2v0qwnJzxnZB3jezwnSyxjHDgLVBG","zMLLBgrZ","y3jLyxrLqMXVy2S","ANneB2m","zM9YrwfJAa","DgfNCW","DgfNtMfTzq","sLnptL9gsuvmra","C3rYAw5N","y29TBwvUDa","C2XPy2u","DhLWzq","y3jLyxrLvhj1zq","y3jLyxrLrMfSC2u"];return(cn=function(){return n})()}function sn(n,r){const{ts:t}=n,e=r?.declarations;if(1!==e?.[c(752,765)])return!1;const i=e[0];if(t[(o=-399,u=-428,vn(o- -406,u))](i)){const r=i[c(775,767)]?.some((r=>{function e(n,r,t,e){return vn(r-154,n)}return r.token===t[(i=-763,o=-752,vn(i- -772,o))].ExtendsKeyword&&r[e(131,164)][e(158,165)]((r=>{function t(n,r,t,e){return vn(t-883,e)}return zn(n,r[t(0,0,895,871)])||function(n,r){const t=n.ts;if(!t.isPropertyAccessExpression(r))return!1;function e(n,r,t,e){return vn(n-360,e)}const{expression:i,name:o}=r;function u(n,r,t,e){return vn(e-316,t)}return t[e(361,333,354,385)](o)&&o[u(342,295,329,319)]===W[e(385,367,389,366)]&&t[e(361,380,368,371)](i)&&i[u(306,329,324,319)]===W.UTS_TYPE}(n,r[t(0,0,895,916)])}));var i,o}));return r}var o,u;function c(n,r,t,e){return vn(r-759,n)}return!1}function fn(n,r){function t(n,r,t,e){return vn(t-382,n)}return r[t(389,0,397)]&&sn(n,r[t(408,0,397)])}function an(n){const r=n.context[e(191,179,239,208)],t=n.ts;function e(n,r,t,e){return vn(e-192,r)}function i(n,r,t,e){return vn(n-270,e)}return r.createPropertyAccessExpression(r[i(287,0,0,303)](r.createAsExpression(r[i(288,0,0,273)](W.GLOBAL_THIS),r[e(0,197,0,211)](t[i(279,0,0,264)][i(290,0,0,320)]))),r[i(288,0,0,262)](W[e(0,244,0,213)]))}function vn(n,r){const t=cn();return vn=function(r,e){let i=t[r-=0];if(void 0===vn.CSEYlC){vn.qoPUic=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,vn.CSEYlC=!0}const o=r+t[0],u=n[o];return u?i=u:(i=vn.qoPUic(i),n[o]=i),i},vn(n,r)}function zn(n,r){const t=n.ts;function e(n,r,t,e){return vn(t- -56,e)}if(!t[i(735,744,764,737)](r))return!1;function i(n,r,t,e){return vn(r-722,e)}const{expression:o,name:u}=r;return t[i(0,723,0,755)](u)&&u.escapedText===W[i(0,743,0,727)]&&t.isParenthesizedExpression(o)&&t[e(0,0,-33,-21)](o[e(0,0,-44,-57)])&&t.isIdentifier(o[e(0,0,-44,-58)][e(0,0,-44,-57)])&&o[i(0,734,0,761)][e(0,0,-44,-35)][i(0,725,0,756)]===W[i(0,746,0,750)]}function Ln(n,r){const{ts:t}=n,e=n[i(490,463,480)];function i(n,r,t,e){return vn(n-464,t)}const o=e[s(-446,-451,-452)],u=n[i(477,0,507)],c=o.createStringLiteral("Unknown");function s(n,r,t,e){return vn(r- -467,t)}if(n[s(-464,-440,-436)](r)&&2===r[i(474,0,504)].length&&(r=r[i(474,0,485)].find((n=>n[s(-430,-439,-407)]!==t.SyntaxKind.NullKeyword))),t.isTypeReferenceNode(r)){const{typeName:e,typeArguments:f}=r;if(!t.isIdentifier(e))return c;const a=u[s(0,-438,-441)](e),v=a?.declarations?.[0];return v&&function(n,r){if(!n.ts[t(100,108,76)](r))return!1;function t(n,r,t,e){return vn(t-69,r)}const{heritageClauses:e}=r,i=e?.[0]?.[t(0,55,79)]?.[0]?.[t(0,96,81)];return!(!i||!zn(n,i))}(n,v)?f?o[s(0,-436,-447)](o[s(0,-435,-426)](an(n),o[s(0,-449,-447)](s(0,-434,-417))),void 0,[o[i(482,0,465)](e.escapedText.toString()),o.createArrayLiteralExpression([...f.map((r=>Ln(n,r)))],!1)]):o[i(482,0,491)](e[i(467,0,450)][s(0,-437,-447)]()):c}if(t[s(0,-433,-442)](r))return o[s(0,-436,-429)](o.createPropertyAccessExpression(an(n),o[s(0,-449,-444)]("withGenerics")),void 0,[o[i(482,0,496)]("Array"),o[i(499,0,528)]([Ln(n,r.elementType)],!1)]);if(t[i(500,0,514)](r))e[s(0,-430,-416)](t.createDiagnosticForNode(r,R[s(0,-429,-453)]));else{if(r[i(492,0,476)]===t[s(0,-458,-435)].NumberKeyword)return o[s(0,-449,-467)](i(503,0,537));if(r[i(492,0,516)]===t.SyntaxKind.StringKeyword)return o[i(482,0,505)](s(0,-427,-452));if(r[s(0,-439,-470)]===t[s(0,-458,-432)].BooleanKeyword)return o[s(0,-449,-479)](i(505,0,478));if(r[s(0,-439,-414)]===t[i(473,0,498)][i(484,0,517)])return o[i(506,0,515)](i(507,0,481))}return c}function Cn(n,r,t){const{ts:e}=n;function i(n,r,t,e){return vn(n-463,e)}function o(n,r,t,e){return vn(t- -709,e)}const u=n.context[o(0,0,-693,-682)];return u[o(0,0,-665,-663)]([u[i(508,0,0,496)](e.SyntaxKind[i(509,0,0,510)])],void 0,u.createIdentifier("get"+W[i(468,0,0,480)]),void 0,void 0,r?[...r.map((n=>{function r(n,r,t,e){return vn(n-274,e)}function t(n,r,t,e){return vn(n- -501,t)}return u[r(321,0,0,289)](void 0,void 0,u[t(-483,0,-477)](n[t(-499,0,-486)].escapedText[r(304,0,0,290)]()),u[r(319,0,0,311)](e.SyntaxKind[r(322,0,0,350)]),u[r(293,0,0,271)](e[r(283,0,0,272)].AnyKeyword),void 0)}))]:[],void 0,u.createBlock([u[i(512,0,0,537)](u[o(0,0,-659,-677)](t,u[o(0,0,-690,-715)](e[i(472,0,0,484)][o(0,0,-689,-663)])))],!0))}function gn(n,r,t){function e(n,r,t,e){return vn(t-955,e)}const i=n.context.factory;function o(n,r,t,e){return vn(t- -409,r)}const u=[i[o(0,-388,-358)](i[o(0,-379,-391)](e(0,0,983,1003)),i[e(0,0,1007,979)](r)),i[o(0,-378,-358)](i[e(0,0,973,966)]("interfaces"),i[o(0,-398,-374)](t,!1))];return[Cn(n,void 0,i[e(0,0,1008,1011)](u,!0))]}function xn(){const n=["y29UDgv4Da","zMLSDgvY","u3LUDgf4s2LUza","sw1WBgvTzw50C0TLExDVCMq","DhLWzxm","zxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","z2v0u3LTyM9SqxrmB2nHDgLVBG","zgvJBgfYyxrPB25Z","BgvUz3rO","AxndBgfZC0rLy2XHCMf0Aw9U","ChvZAa","DhLWzvbHCMfTzxrLCNm","AgvYAxrHz2vdBgf1C2vZ","q0Xbu1m","BwvTyMvYCW","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","DMLZAxroB2rL"];return(xn=function(){return n})()}function hn(n,r){const t=xn();return hn=function(r,e){let i=t[r-=0];if(void 0===hn.wjZOzB){hn.PFrkbU=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,hn.wjZOzB=!0}const o=r+t[0],u=n[o];return u?i=u:(i=hn.PFrkbU(i),n[o]=i),i},hn(n,r)}function ln(n,r){const t=yn();return ln=function(r,e){let i=t[r-=0];if(void 0===ln.mLmnJB){ln.WNHNzn=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,ln.mLmnJB=!0}const o=r+t[0],u=n[o];return u?i=u:(i=ln.WNHNzn(i),n[o]=i),i},ln(n,r)}function yn(){const n=["x191DhnvBMLyr2XVyMfSuhjVCgvYDgLLC19F","zMLSzu5HBwu","zMLSzq","zgvSzxrL","AxncAw5HCNLfEhbYzxnZAw9U","A2LUza","u3LUDgf4s2LUza","rxf1ywXZvg9Rzw4","AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","Dg9tDhjPBMC","z2XVyMfSuhjVCgvYDgLLCW","zxnJyxbLzfrLEhq","y29UzMLN","C2v0","DMLZAxrfywnOq2HPBgq"];return(yn=function(){return n})()}var Bn,wn;globalThis.__utsUniXGlobalProperties__=globalThis[(Bn=-922,wn=-920,ln(Bn- -922,wn))]||new Map;function dn(){const n=["AxntB3vYy2vgAwXL","ywrKqMLUzerPywDUB3n0Awm","yMLUzerPywDUB3n0AwnZ","ChvZAa","ywrKqMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJ","yMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJCW"];return(dn=function(){return n})()}function Dn(n,r){const t=dn();return Dn=function(r,e){let i=t[r-=0];if(void 0===Dn.ZkeKBK){Dn.AAIziR=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Dn.ZkeKBK=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Dn.AAIziR(i),n[o]=i),i},Dn(n,r)}function An(n,r){const t=Mn();return An=function(r,e){let i=t[r-=0];if(void 0===An.ynqsam){An.OaNZbk=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,An.ynqsam=!0}const o=r+t[0],u=n[o];return u?i=u:(i=An.OaNZbk(i),n[o]=i),i},An(n,r)}function Mn(){const n=["C3rHDgvTzw50CW","zM9YrwfJAa","AxnfEhbVCNrezwnSyxjHDgLVBG","Bw9KDwXLu3bLy2LMAwvY","Dgv4Da","zw5KC1DPDgG","lNv0CW","CMvWBgfJzq"];return(Mn=function(){return n})()}function mn(n,r){const t=Sn();return mn=function(r,e){let i=t[r-=0];if(void 0===mn.kvMxeQ){mn.mhRxOB=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,mn.kvMxeQ=!0}const o=r+t[0],u=n[o];return u?i=u:(i=mn.mhRxOB(i),n[o]=i),i},mn(n,r)}function pn(n,r){const{ts:t}=n;function e(n,r,t,e){return mn(t-160,e)}const i=r[o(-610,-636,-613)];function o(n,r,t,e){return mn(n- -630,t)}return t[e(0,0,195,200)](i)&&i[e(0,0,171,188)]&&t[o(-603,0,-631)](i.name)&&"___returned__"===i[e(0,0,171,148)][o(-602,0,-617)]}function jn(n,r,t){function e(n,r,t,e){return mn(n-530,t)}const{ts:i}=n,o=n[e(566,0,536)],u=n[f(208,206,180)],c=o[e(530,0,551)];if((r[f(205,240,226)]&i.NodeFlags[e(568,0,587)])===i[f(235,242,212)][f(249,241,211)])return;if(r[e(550,0,536)]&&i[e(570,0,592)](r.parent)||function(n,r){const{ts:t}=n,e=r[u(324,348)];if(!e||!t[s(-440,-445,-451)](e))return!1;const i=e?.[s(-409,-446,-430)]?.[u(336,348)];if(!i||!t[u(377,350)](i))return!1;const o=i[u(313,339)];if(!o||!t.isIdentifier(o)||o.escapedText[u(363,351)]()!==u(374,352))return!1;function u(n,r,t,e){return mn(r-328,n)}const c=i?.[s(-453,-446,-454)]?.[s(-470,-446,-452)];if(!c||!t[u(321,353)](c))return!1;function s(n,r,t,e){return mn(r- -466,t)}const f=c[u(376,354)];return!(!f||!t[s(0,-439,-474)](f)||f[s(0,-438,-415)][s(0,-443,-455)]()!==u(387,357))}(n,r)||function(n,r){const{ts:t}=n;function e(n,r,t,e){return mn(t-20,r)}function i(n,r,t,e){return mn(n- -593,e)}if(process[e(0,85,50)][e(0,46,51)]&&q(d[e(0,71,52)](process[e(0,18,50)][i(-562,0,0,-569)],"main.uts"))===q(r[i(-560,0,0,-576)]()[e(0,7,36)])&&r[i(-573,0,0,-604)]&&t[i(-572,0,0,-549)](r[i(-573,0,0,-559)])){const n=r?.[e(0,26,40)]?.[i(-573,0,0,-603)]?.[i(-573,0,0,-548)];if(n&&t[i(-559,0,0,-563)](n)&&n[i(-582,0,0,-560)]&&t[e(0,34,47)](n[e(0,56,31)])&&"createApp"===n[e(0,54,31)].escapedText)return!0}}(n,r)||pn(n,r))return;const s=u[e(542,0,529)](r);function f(n,r,t,e){return mn(r-203,t)}if(!s||n[e(571,0,550)](s))return function(n,r){function t(n,r,t,e){return mn(n-959,r)}return r.factory.createNewExpression(r[t(959,982)][(e=-274,i=-284,mn(e- -275,i))](W[t(961,964)]),void 0,[n]);var e,i}(r,o);const a=s.symbol,v=a?.[e(572,0,565)];if(!v||!fn(n,s))return;if(u[e(573,0,564)](a,r,i[f(0,247,254)].Class,!0)[e(575,0,579)]!==i[e(576,0,604)].Accessible)return c[f(0,250,214)](r,c[e(578,0,542)](u[f(0,252,270)](a,i[f(0,247,248)][e(580,0,601)],r,void 0),void 0));const z=u[f(0,254,285)](a,r,a[e(567,0,586)],!1);let L;if(z&&z[f(0,208,187)]>0)L=u[e(579,0,556)](a,i.SymbolFlags[f(0,253,283)],r,void 0);else{const o=a[e(534,0,558)];if(!o||1!==o[f(0,208,225)])return;const u=o[0][e(563,0,575)](),s=r[e(563,0,550)]();if(u===s)return;let v,z;if(t[e(582,0,564)](a)){const n=t[e(538,0,525)](a);v=n.alias,z=n.importDeclaration}else{const r=a[e(572,0,582)];if(v=i[f(0,256,262)](r,s),z=function(n,r,t,e){const{ts:i}=n,o=n.context,u=n[c(-722,-691,-708)];function c(n,r,t,e){return mn(t- -711,r)}let s="";function f(n,r,t,e){return mn(t-508,r)}if(1!==(t?.[f(529,500,512)]||[])[f(529,549,513)])return;const a=r[c(0,-717,-705)]?.[c(0,-698,-704)];for(const n of a.keys()){const r=a[c(0,-726,-703)](n)[f(0,529,512)]||[];if(1!==r[f(0,532,513)])continue;const e=r[0];let o,v;if(i[c(0,-702,-702)](e)?v=e.name:i[f(0,517,518)](e)?v=e.expression:i.isExportSpecifier(e)&&(v=e[c(0,-712,-700)]),o=v&&(u[c(0,-711,-699)](v)?.[f(0,521,514)]||u[f(0,543,521)](v)?.[c(0,-679,-705)]),o===t){s=n;break}}if(!s)return;const v=o.factory,z=v[c(0,-720,-710)](e);return s===c(0,-702,-697)?v.createImportDeclaration(void 0,v.createImportClause(!1,z,void 0),v[c(0,-680,-696)](r[c(0,-663,-695)]),void 0):v.createImportDeclaration(void 0,v[f(0,559,525)](!1,void 0,v[f(0,520,526)]([v[c(0,-717,-692)](!1,s!==e?v[f(0,490,509)](s):void 0,z)])),v[c(0,-711,-696)](r.fileName),void 0)}(n,u,a,v),!z)return;t[e(584,0,576)](a,{symbol:a,alias:v,importDeclaration:z})}L=c.createIdentifier(v)}return c.createAsExpression(r,c.createTypeReferenceNode(L,void 0))}function Sn(){const n=["zMfJDg9YEq","y3jLyxrLswrLBNrPzMLLCG","vvrtsLnptK9IAMvJDa","DhLWzunOzwnRzxi","zgvJBgfYyxrPB25Z","BgvUz3rO","C3LTyM9S","zxHWB3j0CW","z2v0","AxndBgfZC0rLy2XHCMf0Aw9U","AxnfEhbVCNrbC3nPz25Tzw50","BMfTzq","z2v0q29UDgv4DhvHBfr5Cgu","z2v0vhLWzuf0tg9JyxrPB24","zgvMyxvSDa","y3jLyxrLu3rYAw5NtgL0zxjHBa","zMLSzu5HBwu","y3jLyxrLsw1WB3j0q2XHDxnL","y3jLyxrLtMfTzwrjBxbVCNrZ","y3jLyxrLsw1WB3j0u3bLy2LMAwvY","CgfYzw50","Axnszxr1CM5tDgf0zw1LBNq","AxnnzxrOB2rezwnSyxjHDgLVBG","Dg9tDhjPBMC","zgf0yq","AxndywXSrxHWCMvZC2LVBG","zxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","zxnJyxbLzfrLEhq","zgvMAw5Lq29TCg9Uzw50","zw52","vu5jx0Loufvux0rjuG","CMvZB2X2zq","z2v0u291CMnLrMLSzq","AxngDw5JDgLVBKrLy2XHCMf0Aw9U","AxnwyxjPywjSzurLy2XHCMf0Aw9U","y29UDgv4Da","zMXHz3m","u3LUDgHLC2L6zwq","tM9KzuzSywDZ","AxnbC0v4ChjLC3nPB24","AxnqB3nZAwjSzvvuu0Ptt05pyMPLy3ruExbL","zxnJyxbLze5HBwu","AxntEw1IB2Xby2nLC3nPyMXL","u3LTyM9SrMXHz3m","ywnJzxnZAwjPBgL0Eq","u3LTyM9SqwnJzxnZAwjPBgL0Eq","y3jLyxrLqxnfEhbYzxnZAw9U","y3jLyxrLvhLWzvjLzMvYzw5Jzu5Vzgu","C3LTyM9Svg9fBNrPDhLoyw1L","q2XHC3m","z2v0qwnJzxnZAwjSzvn5BwjVBenOywLU","AgfZ","z2v0vw5PCxvLtMfTzq","C2v0","DhLWzq","Aw5JBhvKzxm","A2LUza","DMLZAxroB2rL","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","AxnpyMPLy3rmAxrLCMfSrxHWCMvZC2LVBG","DMLZAxrfywnOq2HPBgq","yxjNDw1LBNrZ","DxbKyxrLtMv3rxHWCMvZC2LVBG","DxbKyxrLqxnfEhbYzxnZAw9U","DMfSDwvZ","Aw1WB3j0rgvJBgfYyxrPB24","DxbKyxrLu291CMnLrMLSzq","C3rHDgvTzw50CW","AxnezwnSyxjHDgLVBKzPBgu","CMvMzxjLBMnLzezPBgvZ","AgfZtM9ezwzHDwX0tgLI","BgLIuMvMzxjLBMnLrgLYzwn0AxzLCW"];return(Sn=function(){return n})()}function qn(n,r){const t=bn();return qn=function(r,e){let i=t[r-=0];if(void 0===qn.JnoGSX){qn.lEJmqE=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,qn.JnoGSX=!0}const o=r+t[0],u=n[o];return u?i=u:(i=qn.lEJmqE(i),n[o]=i),i},qn(n,r)}function bn(){const n=["C3rHDgvTzw50CW","zM9YrwfJAa","AxnjBxbVCNrezwnSyxjHDgLVBG","AxnfEhbVCNrezwnSyxjHDgLVBG","AxntDhjPBMDmAxrLCMfS","Bw9KDwXLu3bLy2LMAwvY","Dgv4Da","zw5KC1DPDgG","lNv2DwuUDhm","lNz1zs50CW"];return(bn=function(){return n})()}function Pn(){const n=["zMfJDg9YEq","BwfW","AxnqCM9Wzxj0EvnPz25HDhvYzq","AxnnzxrOB2rtAwDUyxr1CMu","y3jLyxrLrNvUy3rPB25uExbLtM9Kzq","y3jLyxrLuhjVCgvYDhLezwnSyxjHDgLVBG","y3jLyxrLvhLWzuXPDgvYywXoB2rL","y3jLyxrLsw5KzxHtAwDUyxr1CMu","y3jLyxrLswrLBNrPzMLLCG","y3jLyxrLs2v5D29Yzfr5CgvoB2rL","u3LUDgf4s2LUza","u3rYAw5Ns2v5D29Yza","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","B3b0Aw9UCW","y3jLyxrLqMXVy2S","y3jLyxrLrxHWCMvZC2LVBLn0yxrLBwvUDa","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLu3vWzxi","BMfTzq","Dg9tDhjPBMC","y3jLyxrLqMLUyxj5rxHWCMvZC2LVBG","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","y3jLyxrLvgHPCW","y3jLyxrLvg9Rzw4","rxf1ywXZvg9Rzw4","ChvZAa","y3jLyxrLq2XHC3nezwnSyxjHDgLVBG","BgvUz3rO","rxH0zw5KC0TLExDVCMq","y29UDgv4Da","zMLSDgvY","vfLqrq","AxnjBMrLEfnPz25HDhvYzurLy2XHCMf0Aw9U","zMLUza","Bwv0ywrHDge","qw55s2v5D29Yza","z2v0","vvrtx01fvefeqvrb","Axnku09ougfYC2u","qM9VBgvHBKTLExDVCMq","y3jLyxrLrMfSC2u","x19WCM9WC19F","y3jLyxrLq29UC3rYDwn0B3jezwnSyxjHDgLVBG","Aw5PDfbYB3bZ","zxnJyxbLzfrLEhq","y3jLyxrLrgvSzxrLrxHWCMvZC2LVBG","DxbKyxrLq2XHC3nezwnSyxjHDgLVBG","DxbKyxrLvhLWzufSAwfZrgvJBgfYyxrPB24","BwvTyMvYCW","AxnuExbLqwXPyxnezwnSyxjHDgLVBG","AxnuExbLtgL0zxjHBe5Vzgu","DhLWzq","AxnjBNrLCMzHy2vezwnSyxjHDgLVBG","DMLZAxrfywnOq2HPBgq","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","vvrtx1rzueu","AxndBgfZC0rLy2XHCMf0Aw9U","DhLWzxm","zxHWCMvZC2LVBG"];return(Pn=function(){return n})()}function Un(n,r){const t=Pn();return Un=function(r,e){let i=t[r-=0];if(void 0===Un.RfITRX){Un.VDYxVH=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Un.RfITRX=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Un.VDYxVH(i),n[o]=i),i},Un(n,r)}function Hn(n,r){function t(n,r,t,e){return Un(t-335,e)}const e=n.ts;function i(n,r,t,e){return Un(r-411,n)}const o=n[i(449,440)].factory,{modifiers:u,name:c,typeParameters:s,heritageClauses:f,members:a}=r,v=a[t(0,0,365,359)]((n=>e.isPropertyDeclaration(n))),z=function(n,r,t,e){const i=n[o(333,318,338)][o(333,319,328)];function o(n,r,t,e){return vn(t-312,r)}const u=[i[o(0,341,363)](i[o(0,348,330)](o(0,342,340)),i[o(0,362,364)](r)),i[o(0,389,366)](void 0,i[o(0,334,330)](o(0,376,367)),[],void 0,i[o(0,367,368)]([i[o(0,353,361)](i[(c=292,s=321,vn(s-268,c))]([...t.map((r=>{let t="";function e(n,r,t,e){return vn(n- -908,t)}(r[u(526,535,540,548)]||[])[e(-850,0,-850)]((n=>{var r,e,i,o;(n[(r=-10,e=12,vn(e- -47,r))]||[])[(i=390,o=379,vn(o-321,i))]((n=>{function r(n,r,t,e){return vn(n-360,t)}function e(n,r,t,e){return vn(n- -338,t)}if(n[e(-278,0,-250)][r(363,0,340)]===W[e(-277,0,-310)]&&typeof n.comment===e(-276,0,-287)){const i=n[e(-275,0,-263)].length;t="'"===n.comment[0]&&"'"===n[r(423,0,439)][i-1]||'"'===n[r(423,0,454)][0]&&'"'===n.comment[i-1]?n[r(423,0,398)][e(-274,0,-252)](1,-1):n.comment}}))}));const o=[i[e(-857,0,-870)](i[e(-890,0,-893)](e(-843,0,-829)),Ln(n,r.type)),i.createPropertyAssignment(i[e(-890,0,-872)]("optional"),r.questionToken||n[e(-881,0,-887)](r.type)?i[u(564,543,526,557)]():i[e(-841,0,-819)]())];function u(n,r,t,e){return vn(e-491,r)}return t&&o.push(i[e(-857,0,-870)](i[u(540,507,479,509)]("jsonField"),i[u(538,505,556,533)](t))),i[e(-857,0,-866)](i[u(0,537,0,509)](r.name[u(0,525,0,494)][e(-878,0,-861)]()),i[e(-855,0,-843)](o))}))],!0))],!0))];var c,s;return[Cn(n,e,i.createObjectLiteralExpression(u,!0))]}(n,N[t(0,0,366,354)],v,s?[...s]:[]),L=a.find((n=>e[t(0,0,367,359)](n))),C=a[i(455,444)]((n=>e.isConstructorDeclaration(n))),{parameters:g}=C,x=[...g,o.createParameterDeclaration(void 0,void 0,o.createIdentifier(i(415,445)),void 0,o.createKeywordTypeNode(e.SyntaxKind[t(0,0,370,350)]),o[t(0,0,351,379)](o.createPropertyAccessExpression(o[i(398,419)](c.escapedText),o[i(391,419)](t(0,0,371,359)+W[t(0,0,372,366)])),void 0,[])),o[i(422,423)](void 0,void 0,o.createIdentifier(t(0,0,373,403)),void 0,o.createKeywordTypeNode(e.SyntaxKind[t(0,0,374,376)]),o[t(0,0,375,401)]())],h=i(435,452),l=o[t(0,0,377,370)](void 0,x,o[i(402,425)]([o[i(430,426)](o[t(0,0,351,326)](o.createSuper(),void 0,[])),o[i(405,426)](o.createBinaryExpression(o[i(426,432)](o[i(452,433)](),o[i(410,419)](h)),o.createToken(e[t(0,0,345,354)].EqualsToken),o[t(0,0,351,321)](o[t(0,0,356,328)](an(n),o[i(440,419)](i(464,454))),void 0,[o.createIdentifier(t(0,0,348,366)),o.createIdentifier(i(473,445)),o[t(0,0,343,350)](t(0,0,373,383))]))),...v[i(398,412)]((n=>{function r(n,r,t,e){return Un(e- -668,n)}function t(n,r,t,e){return Un(n- -400,e)}const{name:i}=n,u=i[r(-626,0,0,-624)];return o.createExpressionStatement(o[r(-645,0,0,-648)](o[r(-636,0,0,-647)](o.createThis(),o[r(-658,0,0,-660)](u)),o[t(-377,0,0,-401)](e[t(-390,0,0,-363)][r(-626,0,0,-644)]),o.createPropertyAccessExpression(o[t(-379,0,0,-407)](o[t(-378,0,0,-381)](),o[r(-630,0,0,-660)](h)),o[r(-656,0,0,-660)](u))))})),o[t(0,0,350,361)](o[i(481,456)](o.createPropertyAccessExpression(o[t(0,0,357,329)](),o[i(411,419)](h))))],!0));return o[t(0,0,381,387)](r,u,c,s,f,[L,...v,...z,l])}function Yn(n,r){const t=Wn();return Yn=function(r,e){let i=t[r-=0];if(void 0===Yn.jsNAkS){Yn.YnWdcP=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Yn.jsNAkS=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Yn.YnWdcP(i),n[o]=i),i},Yn(n,r)}function Wn(){const n=["AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","zxHWCMvZC2LVBG","BMfTzq","AxnjzgvUDgLMAwvY","Dw5Pq2XVDwq","x191DhnnzxrH","Dw5PrxH0qxbPCW","ywrK","DMLZAxrfywnOq2HPBgq"];return(Wn=function(){return n})()}function Nn(n,r){const t=Zn();return Nn=function(r,e){let i=t[r-=0];if(void 0===Nn.wTZZfh){Nn.EVbgbu=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Nn.wTZZfh=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Nn.EVbgbu(i),n[o]=i),i},Nn(n,r)}function Zn(){const n=["AxnfEhbYzxnZAw9U","AxnjzgvUDgLMAwvY","ywXPyxntEw1IB2W","Dg9tDhjPBMC","q29TCg9Uzw50uhvIBgLJsw5ZDgfUy2u","q3jLyxrLq29TCg9Uzw50uhvIBgLJsw5ZDgfUy2u","x191DhnvBMLyr2XVyMfSuhjVCgvYDgLLC19F","AgfZ","z2v0","AxnoDw1IzxjmAxrLCMfS","z2v0tNvTyMvYvhLWzq","z2v0u3rYAw5NvhLWzq","zMXHz3m","vhLWzuzSywDZ","z2v0qM9VBgvHBLr5Cgu"];return(Zn=function(){return n})()}function Vn(n,r,t,e){const i=nn(n,r,void 0),o=r[f(-1,-2,3)](),u=r[f(5,7,4)](),c=r.getVoidType(),s=r[f(3,5,5)]();function f(n,r,t,e){return Tn(t-3,r)}const a=r[L(-343,-344)]();function v(n){function r(n,r,t,e){return Tn(t-550,n)}let t=n[r(557,0,554)]();function e(n,r,t,e){return Tn(t-52,e)}return 1===t?.[r(552,0,555)]&&t[0].getSymbol()?.[e(0,0,58,62)]()===e(0,0,59,62)}function z(n){return n===u||n===c}function L(n,r,t,e){return Tn(n- -346,r)}return!!(i[L(-338,-343)](t)&&i[f(0,7,12)](e)||i[L(-338,-337)](t)&&i[f(0,17,12)](e))||(!!(z(t)&&e===o||t===o&&z(e))||(t!==o&&!z(t)||e!==s)&&(e!==o&&!z(e)||t!==s)&&(!!(t===a&&v(e)||v(t)&&e===a)||void 0))}function Tn(n,r){const t=Gn();return Tn=function(r,e){let i=t[r-=0];if(void 0===Tn.jdrIVi){Tn.bcFcTj=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Tn.jdrIVi=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Tn.bcFcTj(i),n[o]=i),i},Tn(n,r)}function Gn(){const n=["z2v0tNvSBfr5Cgu","z2v0vw5KzwzPBMvKvhLWzq","z2v0qw55vhLWzq","z2v0u3rYAw5NvhLWzq","z2v0qMfZzvr5CgvZ","BgvUz3rO","z2v0tMfTzq","u3rYAw5N","AxnpyMPLy3rmAxrLCMfSvhLWzq","AxnqB3nZAwjSzvvuu0Ptt05pyMPLy3ruExbL"];return(Gn=function(){return n})()}function In(){const n=["CMvZB2X2zq","zw52","vu5jx0Loufvux0rjuG","Dw5Px21VzhvSzxm","vu5jx1vuu19qtefurK9stq","yxbWlwLVCW","C3rHCNrZv2L0Aa","CMvSyxrPDMu","CMvWBgfJzq","DxrZC2rR","DxrZC2rRl2fWCc1QCW"];return(In=function(){return n})()}function Jn(n,r){const t=In();return Jn=function(r,e){let i=t[r-=0];if(void 0===Jn.elVVWD){Jn.IiSqGj=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Jn.elVVWD=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Jn.IiSqGj(i),n[o]=i),i},Jn(n,r)}function Kn(n,r,t,e){return Jn(t-473,n)}const On=q(d[Kn(473,0,473)](process[(En=687,Xn=685,Jn(En-686,Xn))][Kn(474,0,475)]||"",Kn(479,0,476)));var En,Xn;function Rn(n,r,t,e){return _n(e-423,t)}const kn=q(d.resolve(process[Rn(0,0,419,423)].UNI_INPUT_DIR||"",Rn(0,0,429,424)));const Fn=new RegExp("^"+kn+"/([a-zA-Z0-9_-]+)/index.d.ts$");function _n(n,r){const t=Qn();return _n=function(r,e){let i=t[r-=0];if(void 0===_n.CwfjKj){_n.IwhKOJ=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,_n.CwfjKj=!0}const o=r+t[0],u=n[o];return u?i=u:(i=_n.IwhKOJ(i),n[o]=i),i},_n(n,r)}function Qn(){const n=["zw52","Dw5Px21VzhvSzxm","Bwf0y2G","vu5jx1vuu19qtefurK9stq","yxbWlwLVCW","vu5jx0Loufvux0rjuG","CMvZB2X2zq","DxrZC2rR","yxbWlwPZ","DxrZC2rRl2LUzgv4lNv0CW","zw5KC1DPDgG","lMqUDhm","CMvWBgfJzq","lNz1zq"];return(Qn=function(){return n})()}const $n=process[Rn(0,0,424,423)][(rr=-212,tr=-219,_n(rr- -215,tr))],nr=$n===Rn(0,0,429,427);var rr,tr;function er(n,r){var t=ir();return er=function(r,e){var i=t[r-=0];if(void 0===er.FxGWDA){er.yLVmmR=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,er.FxGWDA=!0}var o=r+t[0],u=n[o];return u?i=u:(i=er.yLVmmR(i),n[o]=i),i},er(n,r)}function ir(){var n=["x191DhniywnRzxjFxW"];return(ir=function(){return n})()}function or(n,r,t,e){return er(t- -505,n)}function ur(n,r){function t(n,r,t,e){return fr(r- -173,t)}function e(n,r,t,e){return fr(r-559,n)}return n[e(568,559)](r)&&n[t(0,-172,-193)](r[t(0,-171,-149)])&&n[e(578,562)](r.expression.expression)&&r[e(567,561)][t(0,-171,-150)][t(0,-169,-171)]===W[e(538,564)]}function cr(n,r){function t(n,r,t,e){return fr(e- -676,t)}function e(n,r,t,e){return fr(n-846,r)}return n[t(0,0,-647,-670)](void 0,void 0,n[e(853,871)](n.createIdentifier(W.DEFINE_COMPONENT),void 0,[n[t(0,0,-691,-668)]([n[e(855,839)](void 0,void 0,n[e(856,865)](e(857,836)),void 0,void 0,[n[t(0,0,-646,-664)](void 0,void 0,n[t(0,0,-647,-666)](t(0,0,-689,-663)),void 0,void 0,void 0),n[e(858,837)](void 0,void 0,n.createObjectBindingPattern([n[t(0,0,-662,-662)](void 0,void 0,n[t(0,0,-692,-666)](t(0,0,-687,-661)),void 0)]),void 0,void 0,void 0)],void 0,n.createBlock(r,!0))],!0)]))}function sr(){const n=["AxnfEhbYzxnZAw9Uu3rHDgvTzw50","AxndywXSrxHWCMvZC2LVBG","zxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","Dgv4Da","revgsu5fx0vyue9trq","y3jLyxrLrxHWB3j0qxnZAwDUBwvUDa","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLt2jQzwn0tgL0zxjHBev4ChjLC3nPB24","y3jLyxrLtwv0Ag9KrgvJBgfYyxrPB24","y3jLyxrLswrLBNrPzMLLCG","C2v0Dxa","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","ChjVChm","y3jLyxrLqMLUzgLUz0vSzw1LBNq","zxHWB3nL","AxntB3vYy2vgAwXL","C3rHCNrZv2L0Aa","lY8Gqhv0CY1Zzxr1CaO","C3rHDgvTzw50CW","BgvUz3rO","AxnjBxbVCNrezwnSyxjHDgLVBG","ChvZAa","AxnfEhbVCNrbC3nPz25Tzw50","ywrKqMLUzerPywDUB3n0Awm","y3jLyxrLuMv0DxjUu3rHDgvTzw50","yxjNDw1LBNrZ","DxbKyxrLu291CMnLrMLSzq","DMLZAxrfywnOq2HPBgq","DxbKyxrLrxHWB3j0qxnZAwDUBwvUDa","revgsu5fx0fqua","revgsu5fx0nptvbptKvova","AxnwDwvgAwXL","yMfZzw5HBwu","zMLSzu5HBwu","C3bSAxq","Dg9mB3DLCKnHC2u","yxbWlNv2Dwu","DgvZDa","DMLZAxroB2rL","y3jLyxrLsw1WB3j0q2XHDxnL","y3jLyxrLtMfTzwrjBxbVCNrZ","y3jLyxrLu3rYAw5NtgL0zxjHBa","vLvf","Bw9KDwXLu3bLy2LMAwvY","AxntDhjPBMDmAxrLCMfS","Aw1WB3j0q2XHDxnL","AxnjBxbVCNrdBgf1C2u","BMfTzwrcAw5KAw5NCW","zwXLBwvUDhm","DxbKyxrLsw1WB3j0rgvJBgfYyxrPB24","Bw9KAwzPzxjZ","BMfTzq","yxnZzxj0q2XHDxnL"];return(sr=function(){return n})()}function fr(n,r){const t=sr();return fr=function(r,e){let i=t[r-=0];if(void 0===fr.vWQQNs){fr.SRmfFC=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,fr.vWQQNs=!0}const o=r+t[0],u=n[o];return u?i=u:(i=fr.SRmfFC(i),n[o]=i),i},fr(n,r)}globalThis[or(-504,0,-505)]={...globalThis[or(-506,0,-505)],isTypeRelatedTo:function(n,r,t,e){return Vn(n,r,t,e)},isRelatedTo:Vn,tryFileLookup:function(n){if(!process.env[(r=-520,t=-522,_n(t- -527,r))])return;var r,t;function e(n,r,t,e){return _n(r- -633,e)}const i=function(n){const r=n[(t=-980,e=-981,_n(e- -983,t))](Fn);var t,e;return r?r[1]:""}(n);if(i){const n=d[e(0,-627,0,-630)](kn,i,e(0,-626,0,-624),nr?e(0,-625,0,-619):$n,"index.uts");if(H(n))return q(n);if(nr)return;const r=d[e(0,-627,0,-629)](kn,i,e(0,-624,0,-618));if(H(r))return q(r)}else if(n[e(0,-623,0,-629)](e(0,-622,0,-619))&&!H(n)){const r=n[e(0,-621,0,-622)](/\.d\.ts$/,""),t=r+".uvue";if(H(t))return t+".ts";const i=r+e(0,-620,0,-614);if(H(i))return i+".ts"}},componentPublicInstancePropertyAccessFallback:function(n,r,t,e,i,o){if(!n.isPropertyAccessExpression(t)||!n[c(550,547)](e)||!n[f(-61,-54,-57)](o))return;const u=i[c(552,547)]?.escapedName[c(553,558)]();if(u!==c(554,548)&&u!==f(-52,-54,-53))return;function c(n,r,t,e){return Nn(n-550,r)}const s=o.escapedText[c(553,555)]();function f(n,r,t,e){return Nn(t- -58,r)}const a=globalThis?.[f(0,-51,-52)];if(a&&a[f(0,-57,-51)](s)){const{initializerNode:t}=a[c(558,565)](s),e=r.getTypeAtLocation(t);return e[c(559,554)]()?r[f(0,-44,-48)]():e.isStringLiteral()?r[f(0,-50,-47)]():e[c(562,564)]&n[c(563,566)].BooleanLiteral?r[f(0,-46,-44)]():e}},isRequireIOSNativeUtsSdk:function(n,r){if(!process[o(-293,-302,-291,-297)][i(-975,-970,-972,-971)])return!1;if(process[o(-294,-294,-297,-297)][o(-295,-295,-299,-294)]!==o(-288,-299,-296,-293))return!1;let t=r;if(r[i(-960,-966,-965,-969)]("@/"))t=d[o(-296,-303,-298,-298)](process.env.UNI_INPUT_DIR,r.slice(2));else if(r[o(-295,-294,-295,-292)]("."))t=d.resolve(d.dirname(n),r);else if(!d.isAbsolute(r))return!1;const e=d[i(-965,-965,-960,-971)](On,t)[o(-295,-294,-285,-290)](/\\/g,"/");function i(n,r,t,e){return Jn(r- -972,e)}if(e[i(0,-966,0,-965)](".")||e.indexOf("/")>-1)return!1;function o(n,r,t,e){return Jn(e- -298,n)}return!(!H(d.resolve(On,e,o(-286,0,0,-289)))||H(d[o(-296,0,0,-298)](On,e,i(0,-962,0,-968))))},isUtsCompiler:!0,hijackAnyNullUnionType:!0,hijackTsLibResolve:!0,hijackDestructuring:!0,ignoreInstanceofLeftType:!0,ignoreInstanceofRightType:!0,useTypeAndInterfaceAsValue:!0,ignoreAllDebugFail:!0};function ar(){const n=["AxndywXSrxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","zxHWCMvZC2LVBG","BgvUz3rO","zxnJyxbLzfrLEhq","Dg9tDhjPBMC","Aw5JBhvKzxm","DMLZAxrfywnOq2HPBgq","DMLZAxroB2rL"];return(ar=function(){return n})()}function vr(n,r){const t=ar();return vr=function(r,e){let i=t[r-=0];if(void 0===vr.sUouEy){vr.eDwgKB=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,vr.sUouEy=!0}const o=r+t[0],u=n[o];return u?i=u:(i=vr.eDwgKB(i),n[o]=i),i},vr(n,r)}const zr=[W.DEFINE_MIXIN,W.DEFINE_PLUGIN];function Lr(){const n=["C2v0","B25tAg93","B25iAwrL","B25bChbtAg93","B25myxvUy2G","B25fCNjVCG","B25uAgvTzunOyw5Nzq","B25lzxLIB2fYzeHLAwDODenOyw5Nzq","B25qywDLtM90rM91BMq","B25myxn0ugfNzujHy2TqCMvZCW","B25fEgL0","B25mB2fK","B25szwfKEq","B25cywnRuhjLC3m","yMvMB3jLq3jLyxrL","y3jLyxrLza","yMvMB3jLtw91BNq","Bw91BNrLza","yMvMB3jLvxbKyxrL","DxbKyxrLza","AxnqyxjHBwv0zxi","DhLWzq","zg90rg90rg90vg9Rzw4","CgfYzw50","AxnnzxrOB2rezwnSyxjHDgLVBG","AxnbCNjVD0z1BMn0Aw9U","AxngDw5JDgLVBKv4ChjLC3nPB24","z2v0twv0Ag9KtMfTzu5VzgvpzK9IAMvJDeXPDgvYywW","zxnJyxbLzfrLEhq","Dg9tDhjPBMC","zxHWCMvZC2LVBG","revgsu5fx0fqua","revgsu5fx0nptvbptKvova","Bw9KAwzPzxjZ","BMfTzq","CxvLC3rPB25uB2TLBG","y3jLyxrLvhLWzvjLzMvYzw5Jzu5Vzgu","y3jLyxrLswrLBNrPzMLLCG","Dg9vChbLCKnHC2u","t3b0Aw9UCW","Aw5PDgLHBgL6zxi","DMLZAxrfywnOq2HPBgq"];return(Lr=function(){return n})()}const Cr=new Map;function gr(n,r){const t=Lr();return gr=function(r,e){let i=t[r-=0];if(void 0===gr.cDQoEw){gr.PGVaYB=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,gr.cDQoEw=!0}const o=r+t[0],u=n[o];return u?i=u:(i=gr.PGVaYB(i),n[o]=i),i},gr(n,r)}function xr(n,r,t,e){return gr(n-665,t)}function hr(n,r,t,e){return gr(e-708,t)}Cr[hr(693,714,709,708)](hr(700,714,704,709),!1),Cr[xr(665,650,686)](hr(690,697,729,710),!1),Cr.set(xr(668,681,666),!0),Cr[hr(698,716,722,708)](hr(713,726,693,712),!0),Cr[hr(723,704,698,708)](hr(701,714,711,713),!0),Cr.set(xr(671,661,679),!0),Cr[hr(697,725,703,708)](hr(727,702,716,715),!0),Cr[hr(715,712,708,708)](xr(673,663,683),!0),Cr[hr(726,707,729,708)]("onUnhandledRejection",!0),Cr[xr(665,0,664)](hr(736,729,706,717),!1),Cr[xr(665,0,645)](xr(675,0,687),!1),Cr[hr(696,705,687,708)](hr(724,701,736,719),!0),Cr[hr(0,0,713,708)]("onShow",!0),Cr[xr(665,0,648)](hr(0,0,712,720),!1),Cr[hr(0,0,699,708)]("onUnload",!1),Cr[hr(0,0,721,708)]("onResize",!0),Cr[xr(665,0,652)](xr(678,0,680),!0),Cr.set("onPageScroll",!0),Cr[xr(665,0,650)]("onTabItemTap",!0),Cr[hr(0,0,691,708)]("onReachBottom",!1),Cr.set("onPullDownRefresh",!1),Cr[xr(665,0,661)](xr(679,0,700),!1),Cr[hr(0,0,729,708)](hr(0,0,744,723),!1),Cr[hr(0,0,729,708)](xr(681,0,698),!1),Cr[xr(665,0,681)](hr(0,0,721,725),!1),Cr[xr(665,0,658)](xr(683,0,704),!1),Cr[xr(665,0,652)](hr(0,0,731,727),!1),Cr[hr(0,0,693,708)]("beforeUnmount",!1),Cr.set("unmounted",!1);function lr(n,r){function t(n,r,t,e){return wr(n- -480,t)}const{ts:e}=n;function i(n,r,t,e){return wr(r-444,e)}return n[i(442,444,447,443)][t(-479,0,-477)][t(-478,0,-473)](e[i(0,447,0,444)](r[t(-476,0,-477)])?lr(n,r[t(-476,0,-477)]):r[t(-476,0,-471)],r.right)}function yr(n,r,t){const{ts:e}=n,i=n[o(187,182,184,186)][o(184,183,187,178)];function o(n,r,t,e){return wr(r-182,e)}const u=e[o(0,185,0,192)](t)?lr(n,t):i[o(0,187,0,192)](t[o(0,188,0,190)].toString());return i[o(0,189,0,182)](u,void 0,[r])}function Br(){const n=["y29UDgv4Da","zMfJDg9YEq","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","AxnrDwfSAwzPzwroyw1L","BgvMDa","y3jLyxrLswrLBNrPzMLLCG","zxnJyxbLzfrLEhq","y3jLyxrLtMv3rxHWCMvZC2LVBG","z2v0q29UDgv4DhvHBfr5Cgu","zxnJyxbLze5HBwu","vvrtsLnptK9IAMvJDa","AxnpyMPLy3rmAxrLCMfSrxHWCMvZC2LVBG","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","AxnbC0v4ChjLC3nPB24","DMLZAxrfywnOq2HPBgq"];return(Br=function(){return n})()}function wr(n,r){const t=Br();return wr=function(r,e){let i=t[r-=0];if(void 0===wr.lBsDdj){wr.VvzJtH=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,wr.lBsDdj=!0}const o=r+t[0],u=n[o];return u?i=u:(i=wr.VvzJtH(i),n[o]=i),i},wr(n,r)}function dr(n,r){const{ts:t}=n,e=n[i(-675,-676,-683,-678)];function i(n,r,t,e){return wr(e- -678,r)}function o(n,r,t,e){return wr(r- -503,e)}const u=n.typeChecker,c=e[i(0,-669,0,-677)],{type:s,expression:f}=r,a=u[i(0,-668,0,-670)](f)?.symbol;if(a&&a[i(0,-673,0,-669)]===i(0,-671,0,-668))return c[i(0,-667,0,-671)](c[i(0,-668,0,-673)](o(0,-493,0,-501)),void 0,[f]);if(s&&function(n,r){const t=n[(o=433,u=440,vn(u-427,o))][(e=333,i=302,vn(e-319,i))](r);var e,i,o,u;return!(!t||!fn(n,t))}(n,f)&&t[o(0,-492,0,-499)](f)){if(!a)return;return yr(n,f,s.typeName)}}function Dr(n,r){const t=Ar();return Dr=function(r,e){let i=t[r-=0];if(void 0===Dr.LjpxXm){Dr.IqxkUM=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Dr.LjpxXm=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Dr.IqxkUM(i),n[o]=i),i},Dr(n,r)}function Ar(){const n=["y29UDgv4Da","zMfJDg9YEq","DhLWzunOzwnRzxi","Cg9Z","DxbKyxrLvMfYAwfIBgvezwnSyxjHDgLVBG","BMfTzq","zxHJBgfTyxrPB25uB2TLBG","z2v0vhLWzuf0tg9JyxrPB24","y3jLyxrLtNvSBa","C29Tzq","A2LUza","u3LUDgf4s2LUza","qxn5BMnlzxL3B3jK","z2v0u2LNBMf0DxjLrNjVBurLy2XHCMf0Aw9U","AxnqB3nZAwjSzu51BgXuExbL","AxnqB3nZAwjSzvbYB21PC2voDwXSvhLWzq","AxngDw5JDgLVBKXPA2u","Axnszxr1CM5tDgf0zw1LBNq","zxHWCMvZC2LVBG","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","y3jLyxrLswrLBNrPzMLLCG","CMvZB2X2zq","DMLZAxrfywnOq2HPBgq","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","Aw5PDgLHBgL6zxi","CgfYzw50","AxndyxrJAenSyxvZzq","AxnjzgvUDgLMAwvY","AxngDw5JDgLVBKrLy2XHCMf0Aw9U","AxnnzxrOB2rezwnSyxjHDgLVBG","AxnbCNjVD0z1BMn0Aw9U","AxngDw5JDgLVBKv4ChjLC3nPB24"];return(Ar=function(){return n})()}function Mr(n,r,t,e){return qr(r-105,e)}function mr(n,r,t,e){return qr(t- -138,e)}const pr={Array_pop:Mr(0,113,0,129),Array_shift:Mr(0,114,0,88),Array_find:Mr(0,115,0,113),Array_findLast:Mr(0,116,0,126),Array_at:"arrayAt",Map_get:"mapGet",WeakMap_get:Mr(0,117,0,132),string_codePointAt:mr(0,0,-125,-126),string_at:Mr(0,119,0,128)},jr=Object[Mr(0,120,0,136)](pr)[mr(0,0,-122,-139)]((n=>n.split("_")[1])),Sr=[mr(0,0,-121,-125),"JSON.parse","JSON.parseArray",Mr(0,123,0,132)];function qr(n,r){const t=br();return qr=function(r,e){let i=t[r-=0];if(void 0===qr.zLDlxI){qr.xEuJWN=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,qr.zLDlxI=!0}const o=r+t[0],u=n[o];return u?i=u:(i=qr.xEuJWN(i),n[o]=i),i},qr(n,r)}function br(){const n=["y29UDgv4Da","zMfJDg9YEq","y3jLyxrLswrLBNrPzMLLCG","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLuhjVCgvYDhLby2nLC3nfEhbYzxnZAw9U","vvrt","AxnjBNn0yw5Jzu9M","CMLNAhq","yxjYyxLqB3a","yxjYyxLtAgLMDa","yxjYyxLgAw5K","yxjYyxLgAw5KtgfZDa","D2vHA01HCeDLDa","C3rYAw5Nq29KzvbVAw50qxq","C3rYAw5Nqxq","A2v5CW","BwfW","Dw5PlNjLCxvLC3q","sLnptI5WyxjZzu9IAMvJDa","AxnbCNjHEvr5CgvoB2rL","vvrtx1rzueu","D2L0AeDLBMvYAwnZ","AxnuExbLuMvMzxjLBMnLtM9Kzq","y3jLyxrLrgLHz25VC3rPy0zVCK5Vzgu","sw52ywXPzf9Nzw5LCMLJx3r5CgvFD2HPy2HFy2fUx25VDf9Izv9JB25ZDhj1y3rLza","vvrtsLnptK9IAMvJDa","BgvUz3rO","zxnJyxbLzfrLEhq","Dg9tDhjPBMC","y3jLyxrLqxjYyxLmAxrLCMfSrxHWCMvZC2LVBG","y3jLyxrLvhj1zq","DhLWzunOzwnRzxi","AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","AxnjzgvUDgLMAwvY","Aw5JBhvKzxm","DhLWzufYz3vTzw50CW","DxbKyxrLq2fSBev4ChjLC3nPB24","Cg9Z","z2v0vhLWzuf0tg9JyxrPB24","AxnbCNjHEvr5Cgu","AxnuExbLqxnZAwDUywjSzvrV","C3LTyM9S","zxnJyxbLze5HBwu","twfW","z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","sLnptG","AxncAw5HCNLfEhbYzxnZAw9U","B3bLCMf0B3juB2TLBG","zxHWCMvZC2LVBG","DMLZAxrfywnOq2HPBgq"];return(br=function(){return n})()}function Pr(n,r){const t=n.ts,e=n[u(309,312,294,305)];function i(n,r,t,e){return qr(e-811,n)}const o=e.factory;function u(n,r,t,e){return qr(n-309,e)}if(t[u(328,0,0,303)](r)){const{elementType:t}=r;return o[u(312,0,0,287)](o[i(796,0,0,815)](o[u(313,0,0,313)](k(e),o.createIdentifier(W[u(329,0,0,324)])),o[i(831,0,0,813)](i(828,0,0,832))),void 0,[o[u(311,0,0,318)]("Array"),o.createArrayLiteralExpression([Pr(n,t)]),o.createTrue()])}if(t[u(331,0,0,311)](r)){const{typeName:c,typeArguments:s}=r;if(!t.isIdentifier(c)){const n=t[i(833,0,0,834)](c,R[i(832,0,0,835)]);return e.addBindDiagnostic(n),o[i(826,0,0,813)](W[i(810,0,0,836)])}return s&&0!==s[i(856,0,0,837)]?o[u(312,0,0,300)](o.createPropertyAccessExpression(o[u(313,0,0,321)](k(e),o[i(833,0,0,813)](W.UTS_TYPE)),o[u(311,0,0,323)](u(330,0,0,350))),void 0,[o[u(311,0,0,316)](c[i(819,0,0,838)][u(337,0,0,322)]()),o[i(839,0,0,840)](s[i(805,0,0,827)]((r=>Pr(n,r)))),o[u(339,0,0,353)]()]):o[u(311,0,0,336)](c[u(336,0,0,327)].toString())}return Ln(n,r)}var Ur=[(n,r)=>{function t(r,t){var e,i;function o(n,r,t,e){return Dn(t-159,r)}return n[o(160,158,159)](t)&&!r.addBindDiagnostic&&(r[(e=-358,i=-355,Dn(e- -359,i))]=n=>{function r(n,r,t,e){return Dn(e- -806,n)}t[r(-801,0,0,-804)][r(-800,0,0,-803)](n)},r[o(166,164,163)]=n=>{function r(n,r,t,e){return Dn(r- -994,n)}var e,i;!t[r(-990,-989)]&&(t[r(-991,-989)]=[]),t[(e=-660,i=-658,Dn(e- -665,i))][r(-994,-991)](n)}),t}return{before:n=>r=>t(n,r),after:n=>r=>t(n,r),afterDeclarations:n=>r=>t(n,r)}},n=>({parser:{SourceFile:r=>t=>{const e=i=>{if(n.isCallExpression(i)&&n[u(812,811,809,806)](i[o(5,5)])){const r=i.expression.expression,e=i[o(5,4)][o(6,9)];if(n.isIdentifier(r)&&n[o(7,11)](e)){const n=r.text;("uni"===n||n===u(809,813,813,814))&&(!t[o(9,6)]&&(t[o(9,12)]={}),!t[o(9,6)][u(810,816,815,816)]&&(t[u(815,810,814,812)].uniExtApis=new Set),t.__utsMeta[o(10,9)][o(11,15)](n+"."+e.text))}}function o(n,r,t,e){return Yn(n-4,r)}function u(n,r,t,e){return Yn(t-809,e)}return n[u(0,0,817,819)](i,e,r)};return n.visitNode(t,e)}}}),n=>({parser:{SourceFile(r){const{factory:t}=r;let e=!1,i=!1;const o=u=>{function c(n,r,t,e){return fr(r- -646,t)}if(n[s(-726,-752)](u)){if(i&&u[s(-776,-764)][s(-755,-751)](c(0,-628,-640))){const e=u[c(0,-627,-653)],i=[],o=[],f=[];for(let u=0;u<e[c(0,-626,-648)];u++){const a=e[u];if(n[s(-735,-747)](a))i[s(-746,-746)](a);else if(n[c(0,-623,-617)](a)){if(n.isObjectLiteralExpression(a.expression)&&0===a[s(-784,-766)].properties[c(0,-626,-644)])continue;const t=n.createDiagnosticForNode(a,R.script_setup_cannot_contain_ES_module_exports);r[c(0,-622,-645)](t)}else ur(n,a)?f.push(t[c(0,-621,-602)](a[s(-751,-766)][c(0,-620,-601)][0])):o[c(0,-624,-609)](a)}return t[s(-750,-741)](u,[...i,cr(t,[...o,...f])])}return n[c(0,-618,-632)](u,o,r)}function s(n,r,t,e){return fr(r- -768,n)}return n[s(-766,-745)](u)&&n.isObjectLiteralExpression(u[c(0,-644,-651)])?t[c(0,-617,-640)](u,u.modifiers,t.createCallExpression(t.createIdentifier(e?W[s(-758,-738)]:W[c(0,-615,-599)]),void 0,[u[s(-741,-766)]])):u};return r=>{if(!r[u(30,35,38,49)]||r.fileName.indexOf("setup=true")>-1)return r;function u(n,r,t,e){return fr(n- -2,e)}const c=d[s(600,608,602,590)](r[s(630,626,603,585)])[s(581,603,604,594)]("?")[0][s(586,615,605,618)]();function s(n,r,t,e){return fr(t-569,e)}(c===s(0,0,606,603)||"app.uvue.ts"===c)&&(e=!0),/.u?vue.ts/[u(36,0,0,36)](c)&&(i=!0);const f=n[u(37,0,0,10)](r,o);return f!==r?t[s(0,0,596,583)](f,[t.createImportDeclaration(void 0,t[u(38,0,0,56)](!1,void 0,t[s(0,0,610,614)]([t.createImportSpecifier(!1,void 0,t[u(8,0,0,8)](e?W[s(0,0,599,623)]:W[s(0,0,600,624)]))])),t[s(0,0,611,595)](W[u(41,0,0,66)])),...f[u(17,0,0,18)]]):f}}},before(r){const{factory:t}=r,e=i=>{if(n[o(-655,-629,-644)](i))return n.visitEachChild(i,e,r);if(n[u(-125,-99,-116,-111)](i)&&n[o(-670,-677,-679)](i[u(-146,-120,-137,-143)]))return t.updateExportAssignment(i,i.modifiers,t.createCallExpression(t.createIdentifier(W[u(-103,-104,-108,-118)]),void 0,i[o(-669,-684,-655)].arguments));if(n.isImportDeclaration(i)&&i[u(-97,-75,-95,-97)]&&n[u(-82,-111,-94,-89)](i[u(-101,-98,-95,-107)])&&i[o(-627,-600,-633)][u(-151,-157,-135,-158)]===W[u(-96,-115,-96,-108)]&&i[u(-69,-112,-93,-120)]&&n[o(-624,-623,-608)](i[o(-625,-618,-604)])&&i[o(-625,-607,-640)][u(-118,-94,-91,-99)]&&n.isNamedImports(i[o(-625,-629,-609)][u(-79,-106,-91,-83)])&&i[u(-119,-68,-93,-81)][u(-81,-92,-91,-64)][u(-74,-83,-90,-116)].some((n=>n.name[u(-155,-151,-135,-157)]===W.DEFINE_APP)))return t[u(-87,-102,-89,-84)](i,i[o(-620,-627,-602)],t.updateImportClause(i[o(-625,-648,-631)],!1,void 0,t.createNamedImports(i[u(-82,-116,-93,-76)][o(-623,-605,-638)][u(-106,-66,-90,-92)].filter((n=>n[u(-101,-86,-87,-105)][u(-147,-120,-135,-108)]!==W[u(-113,-87,-109,-109)])))),i[o(-627,-634,-638)],i[u(-67,-75,-86,-66)]);function o(n,r,t,e){return fr(n- -671,t)}function u(n,r,t,e){return fr(t- -139,e)}return i};return r=>{if(!r[t(57,50,46,52)])return r;function t(n,r,t,e){return fr(n-25,e)}function i(n,r,t,e){return fr(e-733,n)}return d[t(58,0,0,32)](r[i(794,754,745,767)])[t(60,0,0,43)]("?")[0][t(61,0,0,35)]()===i(775,784,748,770)&&(r=n.visitNode(r,e)),r}}}),(n,r)=>({parser:{SourceFile(r){const t=r.factory,e=nn(n,void 0,r),i=o=>{function u(n,r,t,e){return gr(r- -440,t)}if(n[c(561,554)](o)&&!o[u(0,-419,-440)]&&!o[u(0,-418,-430)]){const r=o[u(0,-417,-416)];if(r&&(n[u(0,-416,-426)](r)||n[u(0,-415,-396)](r)||n[u(0,-414,-433)](r))&&0===r.parameters.indexOf(o)){const i=e[c(568,554)](r);if(i&&n.isIdentifier(i)){const r=i[c(569,558)][c(570,568)]();if(!0===Cr.get(r)){const e=i?.parent?.[u(0,-417,-425)]?.[c(564,558)];if(e&&n.isCallExpression(e)){const i=e[c(571,569)];if(n.isIdentifier(i)&&(i[u(0,-412,-394)][c(570,552)]()===W[u(0,-409,-395)]||i[u(0,-412,-421)][c(570,565)]()===W[u(0,-408,-414)]))return t.updateParameterDeclaration(o,o[u(0,-407,-395)],o[u(0,-418,-412)],o[c(575,594)],o[c(576,581)],t[u(0,-404,-395)](t[c(578,581)](r.replace(/^(\w)/,(n=>n[u(0,-402,-400)]()))+c(580,581)),void 0),o[c(581,566)])}}}}}function c(n,r,t,e){return gr(n-541,r)}return n.visitEachChild(o,i,r)};return t=>{return t.isVueFile?n[(e=-187,o=-200,gr(e- -228,o))](t,i,r):t;var e,o}}}}),(n,r)=>({parser:{TypeAliasDeclaration:r=>function(t){const e=r.factory;function i(n,r,t,e){return Un(n- -61,e)}const{modifiers:o=[],name:u,typeParameters:c=[],type:s}=t;function f(n,r,t,e){return Un(r- -819,n)}return n.isTypeLiteralNode(s)&&(t=e[i(-14,0,0,-22)](t,o,u,c,e.updateTypeLiteralNode(s,e.createNodeArray([e[i(-54,0,0,-60)](void 0,[e[f(-810,-807)](void 0,void 0,e[f(-783,-811)]("key"),void 0,e[i(-52,0,0,-52)](n[i(-51,0,0,-21)].StringKeyword),void 0)],e[i(-52,0,0,-73)](n.SyntaxKind[i(-26,0,0,-11)])),...s[f(-799,-771)]])))),t},SourceFile(r){const t=nn(n,void 0,r),e=i=>{function o(n,r,t,e){return Un(n-248,r)}function u(n,r,t,e){return Un(r- -448,e)}if(n[u(0,-399,0,-393)](i)&&n[u(0,-398,0,-375)](i[u(0,-397,0,-427)])){const{modifiers:r=[],name:e,typeParameters:c=[],type:s}=i,f=s.members,a=function(n,r,t,e,i){const{ts:o}=n,u=n.context[a(-658,-643,-643)];function c(n,r,t,e){return Un(n-910,r)}const s=[],f=i?i[a(-637,-671,-642)]((r=>{const{modifiers:t,name:e,questionToken:i,jsDoc:c}=r;let f;if(o[v(126,97,100)](r))f=r.type;else if(o[v(127,125,127)](r)){const{type:n,typeParameters:t,parameters:e}=r;f=u[v(128,144,143)](t,e,n)}const a=f&&n.createTypeNodeWithNullType(f,!!i);function v(n,r,t,e){return Un(n-124,t)}s.push(u.createPropertySignature(void 0,e,i,a));const z=u[(L=-755,C=-730,Un(C- -735,L))](t,e,i,a,void 0);var L,C;return z.jsDoc=c,z})):[];function a(n,r,t,e){return Un(t- -643,r)}const v=u[c(916,902)](s),z=[],L=u[a(0,-612,-636)](void 0,[u.createParameterDeclaration(void 0,void 0,u[a(0,-630,-635)]("key"),void 0,u[c(919,892)](o[c(920,938)][c(921,898)]),void 0)],u[c(919,936)](o[a(0,-633,-633)].AnyKeyword)),C=u.createConstructorDeclaration(void 0,[u[c(922,917)](void 0,void 0,u[c(918,912)](c(923,895)),void 0,v,void 0)],u[a(0,-653,-629)]([u[c(925,909)](u[c(926,913)](u[a(0,-614,-626)](),void 0,[])),...(i||[])[c(911,883)]((n=>{const r=n[t(-871,-909,-862,-890)].escapedText[t(-897,-898,-865,-889)]();function t(n,r,t,e){return Un(e- -908,r)}function e(n,r,t,e){return Un(e-694,t)}return u[t(0,-904,0,-893)](u[t(0,-879,0,-888)](u[t(0,-876,0,-887)](u[t(0,-877,0,-886)](),u[e(0,0,726,702)](r)),u[e(0,0,743,717)](o[t(0,-868,0,-898)][e(0,0,719,718)]),u[e(0,0,707,715)](u[e(0,0,723,702)]("options"),u[t(0,-924,0,-900)](r))))}))],!0));return z[c(935,935)](L,...f,C),u[c(936,920)](r,t,e?.[a(0,-595,-616)]?e:void 0,[u.createHeritageClause(o.SyntaxKind[a(0,-587,-615)],[u.createExpressionWithTypeArguments(an(n),void 0)])],z)}(t,[...r],e,[...c],[...f.filter((r=>n[u(0,-446,0,-429)](r)||n[o(251,224)](r)))]);a&&(i=a)}else n[u(0,-396,0,-373)](i);return i=n[o(301,288)](i,e,r)};return r=>n.visitNode(r,e)}},before(t){var e,i;const o=r[(e=-61,i=-79,Un(e- -115,i))]()[(c=-229,s=-246,Un(c- -284,s))](),u=nn(n,o,t);var c,s;const f=t.factory,a=r=>{if(n.isPropertyAccessExpression(r)&&zn(u,r))r=f[o(80,84,85,95)](k(t),f[o(80,98,57,82)](W[o(112,135,147,130)]));else if(n[o(143,105,115,131)](r)){const{heritageClauses:n}=r,t=n?.[0]?.[(e=-675,i=-663,Un(e- -733,i))]?.[0]?.[o(115,150,144,133)];t&&zn(u,t)&&(r=Hn(u,r))}var e,i;function o(n,r,t,e){return Un(e-74,r)}return r=n[o(0,134,0,127)](r,a,t)};return r=>n.visitNode(r,a)}}),(n,r)=>({parser:{SourceFile(r){const t=r[(o=226,u=232,mn(u-232,o))],e=nn(n,void 0,r),i=o=>{function u(n,r,t,e){return mn(r-71,e)}function c(n,r,t,e){return mn(t-722,e)}return n.isObjectLiteralExpression(o)&&o.parent&&(n[c(0,0,757,793)](o[u(0,91,0,80)])&&!o[c(0,0,742,726)][u(0,126,0,90)]&&!pn(e,o)||!rn[c(0,0,778,783)](o.parent[u(0,128,0,149)]))?t[c(0,0,769,746)](o,t[c(0,0,770,734)](t[c(0,0,723,745)](W[u(0,73,0,109)]),void 0)):o=n.visitEachChild(o,i,r)};var o,u;return r=>{return n[(t=656,e=662,mn(t-598,e))](r,i);var t,e}}},before(t){const e=r[a(-497,-534,-540)]()[a(-496,-533,-525)](),i=nn(n,e,t),o=t[(u=838,c=850,mn(c-850,u))];var u,c;const s=new Map,f=r=>{const e=r;function u(n,r,t,e){return mn(t- -557,e)}function c(n,r,t,e){return mn(n-343,r)}if(n[c(404,378)](r)&&(r=jn(i,r,s)||r),r===e)r=n[c(405,398)](r,f,t);else if(n.isNewExpression(r)){const e=r[u(0,0,-494,-458)]?.[0];r=o[u(0,0,-493,-520)](r,r[c(369,362)],r.typeArguments,e?[n.visitEachChild(e,f,t)]:void 0)}else r=n[u(0,0,-517,-526)](r)?o[c(408,388)](r,n[u(0,0,-495,-474)](r[c(369,341)],f,t),r[c(398,363)]):n[u(0,0,-495,-485)](r,f,t);return r};function a(n,r,t,e){return mn(r- -593,t)}return r=>{const e=n[u(-206,-190,-213)](r,f);function i(n,r,t,e){return mn(r- -288,n)}const o=[];for(const n of s[i(-247,-222)]())o.push(n[i(-189,-221)]),r.locals.set(n.alias,n[i(-301,-282)]);function u(n,r,t,e){return mn(n- -264,t)}return t[i(-276,-288)][i(-243,-220)](e,[...o,...e[u(-195,0,-226)]],e[u(-194,0,-227)],e[u(-193,0,-223)],e.typeReferenceDirectives,e[i(-241,-216)],e[u(-191,0,-210)])}}}),n=>({parser:{SourceFile:r=>t=>{const e=t[o(1005,998,994)],i=globalThis?.[o(997,997,1e3)];if(i)for(const[n,r]of i)r[u(225,223,217)]===e&&i[u(226,232,232)](n);function o(n,r,t,e){return ln(r-997,t)}function u(n,r,t,e){return ln(n-223,t)}return function t(o){function u(n,r,t,e){return ln(e-785,n)}if(n[c(-881,-889,-874,-882)](o)){const{left:r,operatorToken:t,right:s}=o;if(t[c(-873,-878,-875,-881)]===n[u(799,0,0,791)][u(789,0,0,792)]&&n.isPropertyAccessExpression(r)){const{expression:t,name:o}=r;if(n[u(792,0,0,793)](t)){const{expression:r,name:f}=t;if(f.escapedText[u(798,0,0,794)]()===c(-883,-882,-879,-876)&&n[u(788,0,0,793)](r)){const{name:n}=r;n[c(-881,-878,-871,-875)].toString()===u(805,0,0,797)&&i[u(792,0,0,798)](o[c(-874,-870,-875,-875)].toString(),{file:e,initializerNode:s})}}}}function c(n,r,t,e){return ln(e- -886,n)}return n[c(-872,0,0,-872)](o,t,r)}(t)}}}),(n,r)=>({before(t){const e=r[i(-609,-606,-620,-611)]()[i(-617,-607,-614,-610)]();function i(n,r,t,e){return hn(e- -627,n)}const o=nn(n,e,t),u=r=>{var e,i;return n[(e=-541,i=-535,hn(e- -551,i))](r)&&(r=function(n,r){function t(n,r,t,e){return hn(e- -611,n)}const{ts:e}=n,i=n[a(66,73,79,69)],o=n.typeChecker,u=i.factory,c=r.heritageClauses;if(!c)return r;const s=c[a(78,74,69,81)]((n=>{return n.token===e[(i=-161,o=-155,hn(o- -157,i))][(r=901,t=908,hn(t-905,r))];var r,t,i,o}));if(1!==s.length)return r;const f=s[0][a(79,77,86,84)];function a(n,r,t,e){return hn(r-73,e)}const v=[];for(let n=0;n<f.length;n++){const r=f[n];if(!r[a(0,78,0,79)]||!e[a(0,79,0,89)](r[t(-605,0,0,-606)]))continue;const i=o[t(-608,0,0,-604)](r[a(0,78,0,82)]),u=i?.[a(0,81,0,83)]||[];if(1!==u[a(0,82,0,83)])continue;const c=u[0];e[a(0,83,0,74)](c)&&v[t(-593,0,0,-600)](r[a(0,78,0,75)])}return 0===v[a(0,82,0,74)]?r:u.updateClassDeclaration(r,r.modifiers,r.name,r[a(0,85,0,83)],r[t(-599,0,0,-598)],[...gn(n,N[t(-598,0,0,-597)],v),...r[t(-593,0,0,-596)]])}(o,r)),r=n.visitEachChild(r,u,t)};return r=>{return n[(t=895,e=898,hn(e-880,t))](r,u);var t,e}}}),(n,r)=>({before(t){const e=r[u(887,889,893,886)]()[u(883,890,894,898)](),i=nn(n,e,t),o=r=>{function e(n,r,t,e){return wr(r- -54,n)}return n[e(-32,-40)](r)&&(r=dr(i,r)||r),r=n[e(-35,-39)](r,o,t)};function u(n,r,t,e){return wr(r-877,e)}return r=>n.visitNode(r,o)}}),(n,r)=>({before(t){const e=r[(u=233,c=226,qr(c-182,u))]()[(i=686,o=665,qr(o-620,i))]();var i,o,u,c;const s=nn(n,e,t),f=r=>{if(n.isIdentifier(r)){if(r[e(68,69,48)]===W[e(87,88,96)])return function(n){const r=n[t(-130,-145,-121,-150)];function t(n,r,t,e){return qr(r- -145,e)}const e=r[t(0,-144,0,-168)];return k(r),e.createPropertyAccessExpression(e[t(0,-143,0,-149)](W.UTS),e.createIdentifier(W.JSON))}(s)}else n[i(575,598,568)](r)?r[i(576,574,573)].kind===n.SyntaxKind.InstanceOfKeyword&&(r=function(n,r){const t=n.context;function e(n,r,t,e){return qr(e- -777,r)}const i=t[e(0,-763,0,-776)];function o(n,r,t,e){return qr(r- -894,e)}return k(t),i[o(0,-891,0,-913)](i[e(0,-751,0,-773)](i[o(0,-892,0,-876)](W[o(0,-889,0,-909)]),i[e(0,-751,0,-775)](o(0,-888,0,-891))),void 0,[r.left,r[o(0,-887,0,-892)]])}(s,r)):n.isCallExpression(r)&&n[i(560,560,567)](r[i(577,588,569)])&&(r=function(n,r){const t=n.context,e=t[s(782,765,782,770)],i=n[v(-742,-764,-774,-778)],o=n.ts,{expression:u,arguments:c}=r;if(!o[v(-787,-763,-777,-766)](u))return r;function s(n,r,t,e){return qr(e-769,t)}const{expression:f,name:a}=u;function v(n,r,t,e){return qr(r- -795,e)}if(o[v(0,-762,0,-740)](f)&&o[s(0,0,812,802)](a)&&Sr[s(0,0,798,803)](f[s(0,0,791,796)]+"."+a[s(0,0,806,796)])&&r[s(0,0,800,804)]&&r.typeArguments[v(0,-769,0,-781)]>0&&o[s(0,0,816,791)](r[s(0,0,813,804)][0])&&o[s(0,0,790,802)](r.typeArguments[0].typeName))return e[s(0,0,828,805)](r,u,void 0,[...c,Pr(n,r[s(0,0,794,804)][0])]);if(!o[v(0,-762,0,-779)](a)||!jr[v(0,-761,0,-749)](a.escapedText[s(0,0,815,797)]()))return r;if(f[v(0,-758,0,-770)]<0)return r;const z=i[s(0,0,789,807)](f);let L="";i[s(0,0,830,808)](z)?L="Array":i[s(0,0,823,809)](z,i.getStringType())&&(L="string");const C=z[s(0,0,820,810)]?.[s(0,0,801,811)][s(0,0,780,797)]();C===s(0,0,793,812)?L=s(0,0,793,812):"WeakMap"===C&&(L="WeakMap");const g=a.escapedText,x=pr[L+"_"+g];return x?(k(t),e.createCallExpression(e.createPropertyAccessExpression(e[s(0,0,777,771)](W.UTS),e[v(0,-793,0,-795)](x)),void 0,[f,...c])):r}(s,r));function e(n,r,t,e){return qr(r-42,t)}function i(n,r,t,e){return qr(n-528,t)}return r=n[i(578,0,600)](r,f,t)};return r=>n.visitNode(r,f)}}),n=>({parser:{SourceFile:r=>r=>{var t,e,i,o;return r[(i=660,o=660,An(i-660,o))][(t=-63,e=-66,An(t- -64,e))]((r=>{function t(n,r,t,e){return An(e-761,t)}function e(n,r,t,e){return An(r- -159,n)}if((n.isImportDeclaration(r)||n[t(0,0,764,763)](r))&&r.moduleSpecifier&&n.isStringLiteral(r[t(0,0,763,764)])){const n=r[t(0,0,763,764)][e(-154,-155)];(n[e(-150,-154)](t(0,0,765,767))||n.endsWith(".ts"))&&(r[e(-155,-156)][e(-157,-155)]=n[e(-149,-152)](/.u?ts$/,""))}})),r}}}),(n,r)=>({before(t){const e=r[u(229,222,243,218)]()[u(230,221,240,231)](),i=nn(n,e,t),o=r=>{function e(n,r,t,e){return Dr(e- -613,n)}function u(n,r,t,e){return Dr(t-743,r)}return!n.isVariableDeclaration(r)||r[e(-589,-581,-598,-587)]||r[u(754,777,770)]&&n[u(774,767,771)](r[e(-591,-574,-571,-586)])||!n[e(-591,-569,-588,-584)](r.name)?n.isParameter(r)?r=function(n,r){const{modifiers:t,dotDotDotToken:e,name:i,questionToken:o,type:u,initializer:c}=r;if(r[z(593,599,604,610)]<0||c||e)return r;const s=n.context.factory,f=n.typeChecker;if(o||n.isPossibleNullType(f[z(611,619,602,614)](r)))return s.updateParameterDeclaration(r,t,e,i,o,u&&n.createTypeNodeWithNullType(u,!0),c||s[(a=953,v=948,Dr(v-940,a))]());var a,v;function z(n,r,t,e){return Dr(e-607,r)}return r}(i,r):(n[u(778,785,773)](r)||n[u(778,785,774)](r)||n[u(781,785,775)](r)||n[u(774,791,776)](r)||n.isGetAccessorDeclaration(r))&&(r=function(n,r){const t=n.ts;function e(n,r,t,e){return Dr(r- -204,t)}const i=n.context,o=i[z(-459,-459,-449,-456)],u=n.typeChecker,{modifiers:c,type:s}=r,f=c?.[z(-448,-448,-441,-446)]((n=>n[z(-441,-437,-440,-425)]===t[e(0,-193,-193)][e(0,-192,-182)]));let a=!1,v=!1;if(s){const t=u[e(0,-191,-199)](r)?.getReturnType();if(t&&(a=n[z(-446,-428,-436,-424)](t),v=n[z(-434,-441,-435,-441)](t),!a&&!v))return r}function z(n,r,t,e){return Dr(t- -450,e)}return t[e(0,-181,-179)](r,(function n(r){function e(n,r,t,e){return Dr(n- -42,t)}if(t[e(-26,0,-31)](r))return r;if(t[u(-919,-928,-918)](r)&&!r[e(-24,0,-37)])return o.updateReturnStatement(r,f||v?o[e(-23,0,-23)](o[e(-22,0,-5)](o.createIdentifier("Promise"),o[u(-915,-917,-900)](u(-914,-926,-917))),void 0,[o.createNull()]):o.createNull());function u(n,r,t,e){return Dr(n- -936,t)}return t[u(-913,0,-925)](r,n,i)}),i)}(i,r)):r=function(n,r){function t(n,r,t,e){return Dr(t-960,e)}const e=n[t(970,945,960,967)][i(169,153,169,160)];function i(n,r,t,e){return Dr(e-159,r)}const o=n[i(0,144,0,161)];return!r.initializer&&r[t(0,0,963,953)]>0&&n.isPossibleNullType(o.getTypeAtLocation(r))?e[i(0,147,0,163)](r,r[i(0,161,0,164)],r[i(0,180,0,165)],r.type,e.createNull()):r}(i,r),r=n[u(756,752,766)](r,o,t)};function u(n,r,t,e){return Dr(n-205,e)}return r=>n.visitNode(r,o)}}),n=>({before:r=>r=>{function t(n,r,t,e){return qn(t- -215,e)}return r[t(-215,-213,-215,-210)][t(-211,-218,-214,-214)]((r=>{function t(n,r,t,e){return qn(r-288,t)}function e(n,r,t,e){return qn(n-147,t)}if((n[e(149,0,149)](r)||n[e(150,0,152)](r))&&r.moduleSpecifier&&n[t(0,292,294)](r[e(152,0,152)])){const n=r.moduleSpecifier[e(153,0,158)];(n[t(0,295,297)](t(0,296,292))||n.endsWith(t(0,297,302)))&&(r[e(152,0,153)][t(0,294,290)]=n.replace(/.u?ts$/,""))}})),r}}),n=>({before(r){const t=e=>{function i(n,r,t,e){return vr(r-97,n)}function o(n,r,t,e){return vr(t-180,r)}if(n[i(97,97)](e)&&n[i(97,98)](e[o(0,182,182)])&&e.arguments[o(0,179,183)]>0){const n=e[o(0,183,182)][i(105,101)][i(101,102)]();zr[o(0,182,186)](n)&&(e=e.arguments[0])}return n[o(0,184,187)](e,t,r)};return r=>{return n[(e=266,i=264,vr(e-258,i))](r,t);var e,i}}})];function Hr(n,r){const t=Tr();return Hr=function(r,e){let i=t[r-=0];if(void 0===Hr.McAzBX){Hr.ZmREtl=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Hr.McAzBX=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Hr.ZmREtl(i),n[o]=i),i},Hr(n,r)}const Yr=/\.(u)?vue(.ts)?/;let Wr;const Nr=new Set;function Zr(n){return Vr(n)||n[(r=372,t=362,Hr(t-362,r))](Hr(-573- -574,-586))||Nr.has(e.normalizePath(n));var r,t}function Vr(n){return Yr[(r=23,t=36,Hr(t-34,r))](n);var r,t}function Tr(){const n=["Aw5JBhvKzxm","lNv0CW","DgvZDa","ChjLvvz1zuPZ","Dw5Pq2XPu2HHCMvK","zMLUza","DgfN","C2nYAxb0","zxHWB3j0igrLzMf1BhqGE30","ChjVChm","C29Tzq","BMfTzq","C2v0Dxa","y2HPBgrYzw4","y29UDgvUDa","x19YzxDYAxrLza","C3LZ","zw5KC1DPDgG","lNrZ","AgfZ","CMvWBgfJzq","ywrK","lNz1zs50CW","lNv2DwuUDhm","CNvUDgLTzurptujHAwXuExbLCZOGtM9Kzsb8ifDPBMrVDZS","x191DhniywnRzxjFxW"];return(Tr=function(){return n})()}function Gr(n,r){function t(n,r,t,e){return Hr(e-143,r)}if(Wr=n,!Wr.sys[t(0,160,0,158)]){const{fileExists:n,readFile:u,realpath:c}=Wr[t(0,154,0,159)];Wr[t(0,165,0,159)].realpath=n=>{const r=c?c(n):n;function t(n,r,t,e){return Hr(n-533,e)}function i(n,r,t,e){return Hr(e-621,r)}return r[t(550,0,0,547)](i(0,651,0,639))&&Nr[t(552,0,0,548)](e.normalizePath(n))?n[i(0,633,0,641)](i(0,635,0,639),".uts"):r},Wr[(i=-24,o=-35,Hr(i- -40,o))].fileExists=r=>{if(r[i(642,636,629)](".ts")&&n(r.replace(t(172,183,190,182),t(158,165,153,165))))return Nr[i(628,640,653)](e.normalizePath(r)),!0;function t(n,r,t,e){return Hr(e-164,t)}if((r[i(627,636,636)](i(642,641,634))||r[i(641,636,637)](t(0,0,187,187)))&&n(r[t(0,0,185,184)](/.ts$/,"")))return!0;function i(n,r,t,e){return Hr(r-619,t)}return n(r)},Wr.sys.readFile=(t,i)=>{if(t[o(749,760,742,754)](o(750,752,740,737))&&Nr.has(e.normalizePath(t))){const n=t[o(752,749,756,745)](f(-607,-623,-605,-613),o(733,742,730,724)),e=u(n,i);if(!e)return;return function(n,r){function t(n,r,t,e){return Hr(e- -484,r)}return r[t(0,-468,0,-480)].preUVueJs(r[t(0,-493,0,-480)][t(0,-471,0,-481)](n))}(e,r)}function o(n,r,t,e){return Hr(n-732,e)}if(t.endsWith(f(-621,-611,-621,-609))||t[o(749,0,0,749)](f(-616,-606,-621,-608))){const e=t[f(-609,-602,-615,-611)](/.ts$/,"");if(n(e)){const n=u(e,i);if(!n)return;return function(n,r){n=r.uniCliShared[i(211,210,216)](r[i(212,206,202)].preUVueHtml(n));const t=r.vueCompilerDom.parse(n).children[i(213,214,226)]((n=>n[e(-841,-840,-830,-835)]===i(215,203,206)));function e(n,r,t,e){return Hr(n- -847,e)}function i(n,r,t,e){return Hr(n-208,t)}const o=i(216,0,224);return t?t[i(217,0,204)][e(-837,0,0,-839)]((n=>n[i(219,0,215)]===e(-835,0,0,-826)))?"// @uts-setup\n"+(t?.[i(221,0,221)][0]?.content||"")+"\n"+o:t?.[i(221,0,213)][0]?.[i(222,0,212)]||o:o}(n,r)}}let c=u(t,i);if(!c)return;t[f(-615,-614,-608,-614)]("runtime-dom/dist/runtime-dom.d.ts")&&(c=c.replace(f(-619,-609,-614,-607),""));const s=globalThis?.[o(757,0,0,767)]?.replaceVueTypes;function f(n,r,t,e){return Hr(e- -631,t)}return s?s(t,c):c},Wr[t(0,159,0,159)].__rewrited=!0}var i,o}function Ir(n,r){const t=Jr();return Ir=function(r,e){let i=t[r-=0];if(void 0===Ir.lTjreT){Ir.aXVhAU=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Ir.lTjreT=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Ir.aXVhAU(i),n[o]=i),i},Ir(n,r)}function Jr(){const n=["z2v0q2fUB25Py2fSrMLSzu5HBwu","BM9YBwfSAxPL","z2v0tMv3tgLUzq","BMv3tgLUzq","z2v0q3vYCMvUDerPCMvJDg9YEq","C3LZ"];return(Jr=function(){return n})()}class Kr{constructor(){function n(n,r,t,e){return Ir(n-72,e)}function r(n,r,t,e){return Ir(t-368,r)}this[r(366,366,368)]=d[n(73,73,74,70)],this[r(0,373,370)]=()=>Wr.sys[n(75,0,0,74)]}[function(n,r,t,e){return Ir(t- -600,r)}(0,-597,-596)](){return Wr[(t=-985,e=-985,Ir(e- -990,t))][(n=974,r=974,Ir(r-970,n))]();var n,r,t,e}}const Or=new Kr;function Er(){const n=["DhLWzq","vvrtq29TCgLSzxjfCNjVCG","zMXHDhrLBKrPywDUB3n0AwnnzxnZywDLvgv4Da","BwvZC2fNzvrLEhq","z2v0tMv3tgLUzq","zM9YBwf0rgLHz25VC3rPy3nxAxrOq29SB3jbBMrdB250zxH0","y2f0zwDVCNK","y29Kzq","zMLSzq","z2v0tgLUzufUzenOyxjHy3rLCK9Mug9ZAxrPB24","C3rHCNq","tevbu1rFvvbqrvjFqK9vtKq","BgLUzq","C291CMnLq29UDgvUDezVCG","C291CMnL","B3jPz2LUywXqB3nPDgLVBKzVCG","y29SDw1U","CM9SBhvWrxjYB3i","zMLSzu5HBwu","zMXHDe1LC3nHz2u","DxrZq29TCgLSzxjfCNjVCG","zw52","vu5jx0Loufvux0rjuG","C3bSAxq","zMLSzuXPBMu","zM9YrwfJAa","rgLHz25VC3rPy0nHDgvNB3j5","twvZC2fNzq","Aw5MBW","rxjYB3i","zxjYB3i","v2fYBMLUzW","D2fYBG","D2fYBMLUzW","y2fSBa","ifrt","C3rYAw5N","rxHWzwn0zwqGysbGC3rYAw5NycWGz290iga","CMvWBgfJzq","w1X1mdaXqLX1mda5qL1Bw1XDkcKJoZ9DkIG/oIG/oIG/oIG/oJTBlweTEKeTwLXKxc8JjI46pt8Lqh5FxsSPkNXBys16qs1AxgrDkYG/oJTBlweTEKeTwLXKxc8JjI46pt8Lqh5FxsOPkIK/xhuWmda3kq","kd86kd86xgr7msW0FsG/oJTCzhSWldr9ksOPp1TCzeeTufiTvfPJzI1UCs11Et0+ph5DksK"];return(Er=function(){return n})()}function Xr(n,r,t){return r.map((r=>function(n,r,t){function i(n,r,t,e){return Fr(t- -702,e)}function o(n,r,t,e){return Fr(t-615,n)}const u={flatMessage:Wr[o(610,0,617)](r[o(623,0,618)],Or[o(629,0,619)]()),formatted:Wr[o(602,0,620)]([r],Or),category:r[o(627,0,621)],code:r[i(0,0,-695,-701)],type:n};if(r[i(0,0,-694,-707)]&&void 0!==r.start){let{line:n,character:s}=r[o(626,0,623)][i(0,0,-693,-707)](r[i(0,0,-692,-685)]);if(t){const f=t.originalPositionFor({line:n+1,column:s,bias:a.SourceMapConsumer[o(639,0,626)]});if(null!==f[i(0,0,-690,-693)]){if(f.source){const a=t[i(0,0,-689,-710)](f[o(643,0,629)]);if(a){const{line:z,character:L}=r[o(606,0,623)][o(618,0,624)](r[i(0,0,-692,-699)]+(r.length||0)),C=t[i(0,0,-687,-684)]({line:z+1,column:L});if(null!==C[o(615,0,627)]){const t=v.codeFrameColumns(a,{start:{line:f[i(0,0,-690,-685)],column:(f[o(614,0,631)]||0)+1},end:{line:C[i(0,0,-690,-708)],column:(C[i(0,0,-686,-694)]||0)+1}});u[i(0,0,-685,-699)]={id:c=r.file[i(0,0,-684,-697)],message:u[i(0,0,-683,-667)],frame:t,loc:{file:c,line:n+1,column:s+1}},u[o(644,0,635)]={type:i(0,0,-701,-687),file:e.normalizePath(d.relative(process[o(627,0,636)][i(0,0,-680,-659)],r[o(640,0,623)][i(0,0,-684,-704)][o(644,0,638)]("?")[0])),line:f.line,column:f[i(0,0,-686,-705)]||0,message:u[o(622,0,634)],frame:t}}}}n=f[i(0,0,-690,-676)]}}u[o(644,0,639)]=r[i(0,0,-694,-706)].fileName+"("+(n+1)+","+(s+1)+")"}var c;return u}(n,r,t)))}function Rr(n,r,t=!0){var e,o;r[(e=481,o=471,Fr(o-446,e))]((r=>{let e,o,u;function c(n,r,t,e){return Fr(t-496,e)}function s(n,r,t,e){return Fr(r- -484,n)}switch(r[s(-464,-478)]){case Wr[s(-439,-458)][s(-477,-457)]:e=n[s(-464,-456)],o=i.white,u="";break;case Wr[c(0,0,522,532)][s(-445,-455)]:e=n[c(0,0,526,531)],o=i.red,u="error";break;case Wr[s(-443,-458)][c(0,0,527,507)]:default:e=n[c(0,0,528,527)],o=i.yellow,u=s(-440,-451)}const f=r[s(-489,-484)]+" ";return t?r[c(0,0,516,496)]?e[c(0,0,530,537)](n,r[s(-444,-464)]):r[c(0,0,513,516)]?e[c(0,0,530,540)](n,r[c(0,0,513,513)]):e[c(0,0,530,547)](n,""+(i.enabled?r.formatted:function(n){if(typeof n!==r(356,326,335))throw new TypeError(t(880,869,862,875)+typeof n+"`");function r(n,r,t,e){return Fr(t-299,r)}function t(n,r,t,e){return Fr(r-832,e)}return n[r(356,328,337)](kr,"")}(r.formatted))):void 0!==r[c(0,0,520,524)]?e[c(0,0,530,534)](n,r.fileLine+": "+f+u+" TS"+r[s(-476,-477)]+": "+o(r[s(-480,-465)])):e[s(-457,-450)](n,""+f+u+s(-449,-449)+r[s(-484,-477)]+": "+o(r[s(-461,-465)]))}))}const kr=function({onlyFirst:n=!1}={}){function r(n,r,t,e){return Fr(t-898,r)}const t=[r(0,945,937),r(0,932,938)].join("|");return new RegExp(t,n?void 0:"g")}();function Fr(n,r){const t=Er();return Fr=function(r,e){let i=t[r-=0];if(void 0===Fr.jnCajk){Fr.MsyeTi=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Fr.jnCajk=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Fr.MsyeTi(i),n[o]=i),i},Fr(n,r)}function _r(){var n=["rxjYB3i","v2fYBMLUzW","sw5MBW","rgvIDwC","DMvYyM9ZAxr5","yMfPBa","y29UDgv4Da","ChjLzML4","D2fYBG","zxjYB3i","C3rYAw5N","zNvUy3rPB24","D2fYBMLUzZOG","BwvZC2fNzq","zMLSzq","BgLUzq","Bg9N","zNjHBwu","Aw5MBW","zgvIDwC"];return(_r=function(){return n})()}var Qr;function $r(n,r){var t=_r();return $r=function(r,e){var i=t[r-=0];if(void 0===$r.FEkzXY){$r.JRHRlI=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,$r.FEkzXY=!0}var o=r+t[0],u=n[o];return u?i=u:(i=$r.JRHRlI(i),n[o]=i),i},$r(n,r)}function nt(n,r,t,e){return $r(e-197,r)}function rt(n){return"string"==typeof n?n:n()}!function(n){function r(n,r,t,e){return $r(t- -385,e)}function t(n,r,t,e){return $r(e- -565,t)}n[n[t(-561,-566,-573,-565)]=0]=t(-570,-570,-569,-565),n[n[r(0,0,-384,-390)]=1]=r(0,0,-384,-391),n[n[t(0,0,-557,-563)]=2]=r(0,0,-383,-387),n[n.Debug=3]=t(0,0,-553,-562)}(Qr||(Qr={}));class tt{constructor(n,r,t,e=""){function i(n,r,t,e){return $r(t-490,n)}var o,u;this[i(488,503,494)]=n,this[(o=-759,u=-749,$r(u- -754,o))]=r,this[i(496,0,496)]=t,this[i(501,0,497)]=e}[nt(0,201,0,205)](n){function r(n,r,t,e){return $r(r-815,e)}this[r(0,819,0,813)]<Qr[r(0,816,0,813)]||this.context[r(0,823,0,826)](""+rt(n))}[nt(0,197,0,206)](n){function r(n,r,t,e){return $r(n-57,r)}function t(n,r,t,e){return $r(r- -597,e)}this[t(0,-593,0,-583)]<Qr.Error||(this.bail?typeof n===t(0,-587,0,-585)||typeof n===r(68,64)?this[r(63,67)].error(""+rt(n)):this.context[t(0,-588,0,-597)](n):!function(n){function r(n,r,t,e){return Fr(r-323,t)}return n[r(0,323,333)]===r(0,324,305)}(n)?typeof n===r(67,76)||typeof n===r(68,67)?this[r(63,68)][t(0,-589,0,-579)](""+rt(n)):this[t(0,-591,0,-589)][r(65,59)](n):(console.warn(r(69,70)+n[t(0,-584,0,-578)]),console[r(65,65)]("at "+n[r(71,64)]+":"+n[t(0,-582,0,-574)]+":"+n.column),console[r(73,68)](n[r(74,68)])))}[nt(0,207,0,215)](n){function r(n,r,t,e){return $r(n-359,e)}var t,e;this[r(363,0,0,368)]<Qr[r(361,0,0,363)]||console.log(""+this[(t=735,e=744,$r(t-728,e))]+rt(n))}[nt(0,225,0,216)](n){function r(n,r,t,e){return $r(e-251,t)}this[r(262,262,246,255)]<Qr.Debug||console[r(0,0,268,267)](""+this.prefix+rt(n))}}function et(n,r){const t=it();return et=function(r,e){let i=t[r-=0];if(void 0===et.LPFzao){et.WdWDWm=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,et.LPFzao=!0}const o=r+t[0],u=n[o];return u?i=u:(i=et.WdWDWm(i),n[o]=i),i},et(n,r)}function it(){const n=["l3bSywnLAg9SzgvY","B3b0Aw9UCW","Bw9KDwXLuMvZB2X1DgLVBG","tw9KDwXLuMvZB2X1DgLVBKTPBMq","tM9KzteW","Bw9KDwXL","C291CMnLtwfW","ChvZAa","AM9PBG","Aw5JBhvKzq","zxHJBhvKzq","CM9VDerPCNm","ChjVAMvJDfjLzMvYzw5Jzxm","y29Uy2f0","BwfW","Cgf0Aa","zgvIDwC","Aw5JBhvKzwq6cG","C3rYAw5NAwz5","zxHJBhvKzwq6cG","CM9VDerPCG"];return(it=function(){return n})()}function ot({useTsconfigDeclarationDir:n,cacheRoot:r},t){const i={noEmitHelpers:!1,importHelpers:!0,noResolve:!1,noEmit:!1,noEmitOnError:!1,inlineSourceMap:!1,outDir:e.normalizePath(r+u(172,169)),allowNonTsExtensions:!0};if(!t)return i;function o(n,r,t,e){return et(r- -369,e)}t[o(-370,-368,-377,-370)][u(174,174)]===Wr[o(-374,-366,-359,-375)].Classic&&(i[u(174,184)]=Wr.ModuleResolutionKind[u(176,167)]),void 0===t[o(0,-368,0,-359)][o(0,-364,0,-369)]&&(i[u(177,181)]=Wr.ModuleKind.ES2015),n||(i.declarationDir=void 0);function u(n,r,t,e){return et(n-172,r)}return t.options[o(0,-363,0,-366)]||(i.sourceRoot=void 0),i}function ut(n,r){const t=[];return r.forEach((r=>{function i(n,r,t,e){return et(t- -687,n)}n instanceof Array?n.forEach((n=>{return t[i(-680,0,-680)](e.normalizePath(d[(o=-199,u=-200,et(o- -207,u))](r,n)));var o,u})):t[i(-675,0,-680)](e.normalizePath(d[i(-680,0,-679)](r,n)))})),t}function ct(n,r,t,e){return ft(r- -146,n)}function st(){const n=["DhjHBNnMB3jTzxjZ","y3DK","C25HChnOB3rZ","y3vZDg9TugfYC2vY","z2v0u2nYAxb0rMLSzu5HBwvZ","zMLSzu5HBwvZ","DMfSDwvZ","z2v0q29TCgLSyxrPB25tzxr0Aw5NCW","B3b0Aw9UCW","z2v0vhLWzvjVB3rZvMvYC2LVBG","DxnLq2fZzvnLBNnPDgL2zuzPBgvoyw1LCW","C3LZ","z2v0rgvMyxvSDeXPyKzPBgvoyw1L","CMvHzerPCMvJDg9YEq","CMvHzezPBgu","zMLSzuv4Axn0CW","zgLYzwn0B3j5rxHPC3rZ","z2v0rgLYzwn0B3jPzxm","CMvHBhbHDgG","DhjHy2u","Bg9N","DMvYC2LVBNm","C2v0tgfUz3vHz2vtzxj2AwnL","AxnvvfngAwXL","AxnwDwvgAwXL","C2vYDMLJzq","y3vZDg9TvhjHBNnMB3jTzxjZ","Aw5PDfrYyw5ZzM9YBwvYCW","C2v0u25HChnOB3q","zw5KC1DPDgG","lNv0CW","CMvWBgfJzq","lNrZ","zNjVBvn0CMLUzW","ywrK","z2v0u2nYAxb0u25HChnOB3q","z2v0u2nYAxb0vMvYC2LVBG","Dg9tDhjPBMC","BgvUz3rO","CgfYC2vY","yMvMB3jL","y29Uy2f0","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm","x191DhnqyxjZzxjFxW","C2v0q29TCgLSzxjiB3n0"];return(st=function(){return n})()}function ft(n,r){const t=st();return ft=function(r,e){let i=t[r-=0];if(void 0===ft.rYrqKG){ft.gLOtXx=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,ft.rYrqKG=!0}const o=r+t[0],u=n[o];return u?i=u:(i=ft.gLOtXx(i),n[o]=i),i},ft(n,r)}function at(n,r,t,e){return ft(e- -453,r)}class vt{constructor(n,r,t){function e(n,r,t,e){return ft(n- -32,e)}function i(n,r,t,e){return ft(n-158,e)}this.parsedConfig=n,this[i(158,155,180,158)]=r,this[i(159,148,178,149)]=t,this[e(-30,0,0,-30)]={},this.versions={},this[e(-29,0,0,-52)]={},this[i(162,149,183,173)]=()=>Array.from(this[i(163,150,155,162)][i(164,175,149,181)]()),this[i(165,165,171,180)]=()=>this.parsedConfig[i(166,176,188,183)],this[e(-23,0,0,-26)]=()=>0,this.getCurrentDirectory=()=>this[e(-31,0,0,-35)],this[e(-22,0,0,-3)]=()=>Wr[e(-21,0,0,-12)][i(168,163,182,176)],this[e(-20,0,0,-23)]=Wr.getDefaultLibFilePath,this[e(-19,0,0,-25)]=Wr[i(169,180,177,148)][i(171,180,172,172)],this[e(-18,0,0,-1)]=Wr.sys.readFile,this[e(-17,0,0,0)]=Wr.sys[i(173,153,191,191)],this[i(174,183,184,182)]=Wr[e(-21,0,0,-31)][e(-16,0,0,-36)],this[i(175,176,189,154)]=Wr[e(-21,0,0,-12)][i(175,193,173,160)],this[e(-14,0,0,-2)]=Wr[e(-21,0,0,-13)][e(-14,0,0,4)],this[i(177,0,0,167)]=console[i(178,0,0,189)],this[i(163,0,0,177)]=new Set(n[e(-27,0,0,-23)])}reset(){var n,r;this.snapshots={},this[(n=631,r=649,ft(n-610,r))]={}}[ct(-115,-124)](n){function r(n,r,t,e){return ft(n- -496,t)}function t(n,r,t,e){return ft(t- -337,e)}n[r(-473,-464,-458)]=Zr,n[t(-296,-326,-313,-294)]=Vr,this[r(-471,0,-460)]=n,!this[r(-470,0,-481)]&&this[t(0,0,-310,-315)](this.transformers||[])}[at(0,-407,0,-425)](n,r){function t(n,r,t,e){return ft(r-555,e)}function i(n,r,t,e){return ft(e- -472,t)}(n=e.normalizePath(n))[t(0,584,0,588)](t(0,585,0,597))&&this.setSnapshot(n[t(0,586,0,576)](/\.uts$/,t(0,587,0,578)),r);const o=Wr.ScriptSnapshot[i(0,0,-449,-439)](r);return this[i(0,0,-464,-470)][n]=o,this[i(0,0,-455,-451)][n]=(this[i(0,0,-450,-451)][n]||0)+1,this[t(0,560,0,574)][i(0,0,-427,-438)](n),o}[at(0,-422,0,-418)](n){function r(n,r,t,e){return ft(n-467,t)}if((n=e.normalizePath(n))in this[r(469,0,476)])return this[r(469,0,457)][n];const t=Wr[r(478,0,492)][(i=41,o=47,ft(o-33,i))](n);var i,o;return t?this.setSnapshot(n,t):void 0}[ct(-126,-110)](n){function r(n,r,t,e){return ft(e-944,t)}return n=e.normalizePath(n),(this[r(0,0,982,965)][n]||0)[r(0,0,990,981)]()}[ct(-115,-119)](n){if(void 0===this[e(-165,-146)]||void 0===n||0===this.transformers[e(-152,-139)])return;const r={before:[],after:[],afterDeclarations:[]};for(const i of n){const n=i(this.service);n.parser&&(this[t(788,798,786)]=n[e(-151,-145)]),n.before&&(r[t(850,835,825)]=r.before[e(-149,-142)](n[e(-150,-164)])),n[t(814,837,850)]&&(r[e(-148,-155)]=r[t(817,837,860)][e(-149,-153)](n[e(-148,-135)])),n[e(-147,-164)]&&(r.afterDeclarations=r.afterDeclarations[e(-149,-169)](n[e(-147,-137)]))}function t(n,r,t,e){return ft(r-795,t)}function e(n,r,t,e){return ft(n- -190,r)}return this[e(-164,-186)]=r,globalThis[e(-146,-167)]=this[e(-187,-203)],r}getCustomTransformers(){return this.customTransformers}[ct(-123,-101)](n){}}function zt(){const n=["zMLUzenVBMzPz0zPBgu","C3LZ","zMLSzuv4Axn0CW","DhnJB25MAwC","zxjYB3i","zMfPBgvKihrVig9Wzw4GjW","y3DK","CMvHzezPBgu","CgfYC2vdB25MAwDgAwXLvgv4DfrVsNnVBG","y29UzMLN","zMfPBgvKihrVihbHCNnLicC","BwvYz2u","DhnJB25MAwDezwzHDwX0CW","CgfYC2vkC29Uq29UzMLNrMLSzunVBNrLBNq","B3b0Aw9UCW","Bw9KDwXL","tw9KDwXLs2LUza","rvmYmde1","rvmYmdiW","rvmYmdiY","rvnozxH0","sw5JB21WyxrPyMXLihrZy29UzMLNig9WDgLVBI4Gtw9KDwXLihjLC29SDMvZihrVicC","jY4GvgHPCYbPCYbPBMnVBxbHDgLIBguGD2L0AcbsB2XSDxaSihbSzwfZzsb1C2uGj21VzhvSztOGiKvtmJaXnsiNlcaNBw9KDwXLoIaIrvmYmdiWiICSicDTB2r1Bgu6icjfuZiWmJiIjYWGB3iGj21VzhvSztOGiKvttMv4DciNlG","zxjYB3jZ","zgvIDwC","yNvPBhqTAw4GB3b0Aw9UCYbVDMvYCMLKzxm6ia","C3rYAw5NAwz5","CgfYC2vKihrZy29UzMLNoIa"];return(zt=function(){return n})()}function Lt(n,r){const t=zt();return Lt=function(r,e){let i=t[r-=0];if(void 0===Lt.UVdvRi){Lt.mAqSFU=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Lt.UVdvRi=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Lt.mAqSFU(i),n[o]=i),i},Lt(n,r)}function Ct(n,r,t,e){return gt(e-113,t)}function gt(n,r){var t=xt();return gt=function(r,e){var i=t[r-=0];if(void 0===gt.XcsDGk){gt.kmluMJ=function(n){for(var r,t,e="",i="",o=0,u=0;t=n.charAt(u++);~t&&(r=o%4?64*r+t:t,o++%4)?e+=String.fromCharCode(255&r>>(-2*o&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,gt.XcsDGk=!0}var o=r+t[0],u=n[o];return u?i=u:(i=gt.kmluMJ(i),n[o]=i),i},gt(n,r)}function xt(){var n=["CM9SBgvK","B2XKq2fJAgvsB290","y2fJAgvsB290","l2nHy2HL","l2nHy2HLxW","BMv3q2fJAgvsB290","zxHPC3rZ","Cgf0Aa","Bwf0y2G","BgvUz3rO","C29YDa","DxrMoa","D3jPDgu","Dg91y2G","CM9SBa"];return(xt=function(){return n})()}function ht(n,r,t,e){return gt(r-150,e)}class lt{constructor(n){function r(n,r,t,e){return gt(e-268,n)}function t(n,r,t,e){return gt(t- -443,n)}this.cacheRoot=n,this[r(265,276,269,268)]=!1,this[t(-439,-445,-442)]=this[t(-441,-446,-441)]+t(-442,-433,-440),this.newCacheRoot=this[r(274,274,278,270)]+r(277,268,278,272),z.emptyDirSync(this[r(267,0,0,273)])}[ht(0,156,0,155)](r){function t(n,r,t,e){return gt(r-70,t)}return!this[t(0,70,62)]&&(!!n.existsSync(this[t(0,75,73)]+"/"+r)||n.existsSync(this.oldCacheRoot+"/"+r))}[ht(0,157,0,151)](n){return this[(r=-996,t=-989,gt(r- -997,t))]+"/"+n;var r,t}[Ct(0,0,128,121)](r){if(this[t(-46,-52,-50,-44)])return!1;if(!n.existsSync(this[e(615,610,618,615)]))return 0===r[e(616,617,626,623)];function t(n,r,t,e){return gt(e- -44,r)}function e(n,r,t,e){return gt(e-614,t)}return D.isEqual(n.readdirSync(this.oldCacheRoot)[e(0,0,622,624)](),r[t(0,-31,0,-34)]())}read(r){function t(n,r,t,e){return gt(r-875,t)}return n.existsSync(this[t(0,880,875)]+"/"+r)?z.readJsonSync(this.newCacheRoot+"/"+r,{encoding:t(0,886,892),throws:!1}):z.readJsonSync(this[t(0,876,876)]+"/"+r,{encoding:"utf8",throws:!1})}[Ct(0,0,120,125)](n,r){var t,e;this[(t=-242,e=-247,gt(e- -247,t))]||void 0!==r&&z.writeJsonSync(this.newCacheRoot+"/"+n,r)}[ht(0,163,0,160)](n){var r,t;this[(r=60,t=61,gt(r-60,t))]||z.ensureFileSync(this.newCacheRoot+"/"+n)}[Ct(0,0,133,127)](){function r(n,r,t,e){return gt(t- -199,r)}function t(n,r,t,e){return gt(e- -137,r)}this[t(-140,-141,-129,-137)]||(this[t(0,-140,0,-137)]=!0,z.removeSync(this[r(0,-192,-198)]),n.existsSync(this[t(0,-138,0,-132)])&&n.renameSync(this.newCacheRoot,this[r(0,-193,-198)]))}}function yt(n,r,t,e){return Dt(n-492,r)}function Bt(){const n=["B3v0Chv0rMLSzxm","zM9YrwfJAa","BMfTzq","lMqUDhm","zhrZ","zw5KC1DPDgG","lMqUDhmUBwfW","zhrZBwfW","lM1HCa","y29Kzq","Dgv4Da","ChjLuhjVy2vZC0zPBgu","z2v0tgvUz3rO","y29TCgfJDa","CMvMzxjLBMnLzezPBgvZ","y29Uy2f0","Aw1WB3j0zwrgAwXLCW","BwfW","BM9Kzu1VzhvSzu5HBwvszxnVBhzLCG","zMLSzu5HBwu","C3LZ","AgfZ","lNrZ","CMvWBgfJzq","lNv0CW","BM9dywnOzq","Ag9ZDa","y2fJAgvsB290","y29UDgv4Da","y2fJAgvwzxjZAw9U","y2fJAgvqCMvMAxG","DxrZxW","yw1IAwvUDfr5CgvZrgLYDhK","zgvWzw5Kzw5JEvrYzwu","C2v0rgvMyxvSDe5VzgvmywjLBa","y2XLyw4","AgfZAe9WDgLVBNm","AwDUB3jLvw5RBM93BG","y2fJAgveAxi","B3b0Aw9UCW","Aw5PDa","z2v0qxv0B21HDgLJvhLWzurPCMvJDgL2zu5HBwvZ","CMvZB2X2zvr5CgvszwzLCMvUy2veAxjLy3rPDMu","zMLSDgvY","CMvZB2X2zwruExbLuMvMzxjLBMnLrgLYzwn0AxzL","CMvZB2X2zwrgAwXLtMfTzq","yw1IAwvUDfr5CgvZ","z2v0u2nYAxb0u25HChnOB3q","Cgf0Aev4Axn0C1n5BMm","CMvHzgrPCLn5BMm","zgvIDwC","jYbHCYbPDcbKB2vZig5VDcbOyxzLihbYzwzPEcaN","C3rHDfn5BMm","AxneAxjLy3rVCNK","C2TPChbPBMCGy2XLyw5PBMCGjW","jYbHCYbPDcbPCYbUB3qGysbKAxjLy3rVCNK","Aw5MBW","y2XLyw5PBMCGy2fJAgu6ia","CMvTB3zLu3LUyW","zgvWzw5Kzw5JEq","icaGigLTCg9YDgvKigj5icC","Aw1WB3j0ihrYzwuGAgfZign5y2XLCW","BM9Kzxm","zg9Uzq","CM9SBgLUzYbJywnOzxm","CM9SBa","C2vTyw50AwneAwfNBM9ZDgLJC0nHy2HL","C3LUDgfJDgLJrgLHz25VC3rPy3ndywnOzq","z2v0q29TCgLSzwq","AxnVBgf0zwrnB2r1BgvZ","zgvJBgfYyxrPB24","z2v0u3LUDgfJDgLJrgLHz25VC3rPy3m","z2v0rgLHz25VC3rPy3m","z2v0u2vTyw50AwneAwfNBM9ZDgLJCW","y2HLy2TbBwjPzw50vhLWzxm","qw1IAwvUDcb0ExbLCZO","C25HChnOB3q","y3jLyxrLsgfZAa","DhLWzxndywnOzq","Bwf0y2G","yw1IAwvUDcb0ExbLCYbJAgfUz2vKlcbYzwrVAw5NigfSBcbZzw1HBNrPyYbKAwfNBM9ZDgLJCW","Dg91y2G","z2v0q2fJAgvK","icaGignHy2HLoIaN","AxneAxj0Eq","icaGignHy2HLigHPDa","D3jPDgu","icaGignHy2HLig1PC3m","BwfYA0fZrgLYDhK","y29KzunHy2HL","l3r5CgvZ","l3n5BNrHy3rPy0rPywDUB3n0AwnZ","C2v0tM9Kzq","BM9Kzq","zgLYDhK","zgLQA3n0CMe","A2v5CW","zgLZDgfUy2u","icaGigLTCg9YDcbJAgfUz2vKoIa","z2v0vgv4Da","zw52","sfHFvMvYC2LVBG","vu5jx0nptvbjtevsx1zfuLnjt04"];return(Bt=function(){return n})()}function wt(n,r,t,e){return Dt(r- -63,n)}function dt(n,r,t){const e={code:"",references:r,uniExtApis:t};var i,o,u,c;return n[(u=-24,c=-46,Dt(u- -24,c))][(i=16,o=67,Dt(o-66,i))]((n=>{function r(n,r,t,e){return Dt(n-138,e)}function t(n,r,t,e){return Dt(r-376,t)}n[t(0,378,374)].endsWith(t(0,379,368))?e[r(142,0,0,167)]=n:n[r(140,0,0,157)][r(143,0,0,106)](r(144,0,0,104))?e[r(145,0,0,163)]=n:n[r(140,0,0,175)].endsWith(t(0,384,387))?e.map=n.text:e[r(147,0,0,181)]=n[r(148,0,0,192)]})),e}function Dt(n,r){const t=Bt();return Dt=function(r,e){let i=t[r-=0];if(void 0===Dt.RhMVRs){Dt.isseWy=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Dt.RhMVRs=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Dt.isseWy(i),n[o]=i),i},Dt(n,r)}class At{constructor(n,r,t,e,i,o,u,c){function s(n,r,t,e){return Dt(n-977,t)}function f(n,r,t,e){return Dt(t-118,e)}if(this[f(156,99,143,184)]=n,this[s(1003,0,1039)]=e,this[f(0,0,145,153)]=i,this.options=o,this[f(0,0,146,161)]=c,this[f(0,0,147,131)]="9",this[s(1007,0,965)]=s(1008,0,995),this[s(1009,0,981)]=!1,this.hashOptions={algorithm:"sha1",ignoreUnknown:!1},this[s(1010,0,1050)]=new L.Graph({directed:!0}),this[f(0,0,151,133)][f(0,0,152,171)]((()=>({dirty:!1}))),r&&this[s(1012,0,1038)](),n)return;this[s(1013,0,980)][f(0,0,155,105)]=t,this[s(1015,0,983)]=this[s(1004,0,1025)]+"/"+this[f(0,0,148,143)]+C({version:this[f(0,0,147,191)],rootFilenames:u,options:this[f(0,0,157,205)],tsVersion:Wr.version},this[f(0,0,154,106)]),this[f(0,0,158,130)]();const a=Wr[s(1018,0,1043)](o,Wr[s(997,0,1018)])[s(994,0,991)]((n=>Wr[s(1019,0,968)](n,void 0,o,Wr[s(997,0,1048)])))[f(0,0,161,131)]((n=>n[f(0,0,162,213)]?.[f(0,0,163,171)])).map((n=>n[s(1021,0,1052)][s(1022,0,1036)]));this[f(0,0,164,117)]=u.filter((n=>n[s(982,0,942)](".d.ts")))[s(992,0,1011)](a)[f(0,0,135,86)]((n=>({id:n,snapshot:this[s(1003,0,989)][f(0,0,165,120)](n)}))),this.checkAmbientTypes()}[wt(-22,-28)](){function n(n,r,t,e){return Dt(r-80,t)}if(!A[(r=901,t=916,Dt(r-853,t))](this.cacheRoot))return;var r,t;A[n(0,129,100)](this[n(0,107,65)])[n(0,81,99)]((n=>{const r=this[e(126,95,159,143)]+"/"+n;function t(n,r,t,e){return Dt(r-449,n)}function e(n,r,t,e){return Dt(e-116,t)}n.startsWith(this[e(132,178,115,146)])?A[e(200,133,185,168)](r)[e(145,211,176,169)]?(this[e(92,101,126,144)][t(518,505)](i.blue(t(496,506)+r)),A[t(553,507)](""+r)):this[t(489,477)][t(497,499)](t(466,503)+r+t(546,504)):this.context[e(177,215,211,166)]("skipping cleaning '"+r+t(492,500)+this[e(143,185,102,146)]+"'")}))}setDependency(n,r){function t(n,r,t,e){return Dt(t-755,e)}function e(n,r,t,e){return Dt(e- -742,r)}this[e(-716,-672,-703,-714)].debug(i.blue(e(-689,-642,-715,-683))+" '"+n+"'"),this[t(0,0,783,746)].debug(t(0,0,815,768)+r+"'"),this[e(0,-743,0,-709)].setEdge(r,n)}walkTree(n){if(L.alg.isAcyclic(this.dependencyTree))return L.alg.topsort(this[r(609,625)])[t(292,264,304,294)]((r=>n(r)));function r(n,r,t,e){return Dt(n-576,r)}function t(n,r,t,e){return Dt(e-293,r)}this[r(604,563)][t(359,400,370,349)](i.yellow(r(637,657))),this[r(609,645)][t(0,363,0,355)]()[t(0,297,0,294)]((r=>n(r)))}[wt(46,0)](){function n(n,r,t,e){return Dt(e- -187,t)}function r(n,r,t,e){return Dt(r-450,t)}this[r(470,475,516)]||(this[n(-187,-150,-175,-159)][n(-108,-152,-123,-131)](i.blue(n(-108,-75,-173,-123))),this.codeCache[n(0,0,-114,-122)](),this[r(554,516,544)].roll(),this[n(0,0,-152,-120)].roll(),this.typesCache[r(0,515,476)]())}[yt(560,575)](n,r,t){function e(n,r,t,e){return Dt(r-965,n)}return this[(o=773,u=807,Dt(o-745,u))][e(1064,1021)](i.blue("transpiling")+" '"+n+"'"),this.getCached(this.codeCache,n,r,Boolean(!this[e(959,1004)][e(1023,1034)]||this[e(963,1004)][e(1081,1035)]),t);var o,u}[wt(18,8)](n,r,t,e){function i(n,r,t,e){return Dt(t-56,n)}return this[i(134,0,128)]("syntax",this[i(79,0,123)],n,r,t,e)}[wt(58,10)](n,r,t,e){return this[(u=678,c=722,Dt(c-650,u))]("semantic",this[(i=815,o=832,Dt(i-749,o))],n,r,t,e);var i,o,u,c}[yt(566,610)](){function n(n,r,t,e){return Dt(e- -485,n)}this[t(-941,-897,-889)][n(-417,0,0,-435)](i.blue(n(-426,0,0,-410)));const r=this.ambientTypes.filter((n=>void 0!==n[t(-851,-818,-841)]))[t(-932,-864,-900)]((n=>{function r(n,r,t,e){return Dt(n-654,t)}function t(n,r,t,e){return Dt(r- -820,e)}return this[t(-815,-792,-793,-777)][r(704,0,675)](" "+n.id),this[r(731,0,737)](n.id,n[t(0,-744,0,-754)])}));function t(n,r,t,e){return Dt(t- -917,r)}this[t(0,-846,-885)]=!this[n(-457,0,0,-407)][n(-419,0,0,-406)](r),this.ambientTypesDirty&&this[n(-458,0,0,-457)].info(i.yellow(t(0,-819,-837))),r[n(-450,0,0,-484)](this[t(0,-788,-839)][n(-431,0,0,-404)],this[t(0,-796,-839)])}getDiagnostics(n,r,t,e,i,o){return this[(u=-716,c=-745,Dt(u- -798,c))](r,t,e,"semantic"===n,(()=>Xr(n,i(),o)));var u,c}[wt(31,19)](n,r,t,e,o){if(this[s(-397,-406)])return o();const u=this[f(435,433,476)](r,t);if(this[s(-394,-374)][f(366,406,452)](s(-339,-341)+n.path(u)+"'"),n.exists(u)&&!this[s(-338,-334)](r,e)){this.context.debug(i.green(s(-337,-311)));const r=n.read(u);if(r)return n[f(485,442,458)](u,r),r;this.context.warn(i.yellow(" cache broken, discarding"))}this[f(416,384,428)].debug(i.yellow(s(-335,-285)));const c=o();function s(n,r,t,e){return Dt(n- -422,r)}function f(n,r,t,e){return Dt(r-356,t)}return n[s(-336,-352)](u,c),this[f(0,444,427)](r),c}init(){function n(n,r,t,e){return Dt(t-340,e)}function r(n,r,t,e){return Dt(r- -387,n)}this[r(-302,-298)]=new lt(this[n(334,330,378,364)]+"/code"),this[n(0,0,418,453)]=new lt(this[n(0,0,378,345)]+n(0,0,430,415)),this[n(0,0,407,454)]=new lt(this[r(-344,-349)]+r(-308,-296)),this.semanticDiagnosticsCache=new lt(this[n(0,0,378,397)]+"/semanticDiagnostics")}[wt(-7,25)](n){var r,t;this.dependencyTree[(r=-752,t=-710,Dt(t- -802,r))](n,{dirty:!0})}isDirty(n,r){function t(n,r,t,e){return Dt(e-840,n)}const e=this[i(213,191,190,210)][t(889,0,0,933)](n);function i(n,r,t,e){return Dt(e-177,r)}if(!e)return!1;if(!r||e[i(0,314,0,271)])return e[i(0,235,0,271)];if(this.ambientTypesDirty)return!0;const o=L.alg[t(944,0,0,935)](this[t(892,0,0,873)],n);return Object[t(946,0,0,936)](o).some((n=>{const r=o[n];if(!n||r[(t=294,e=275,Dt(e-178,t))]===1/0)return!1;var t,e;function i(n,r,t,e){return Dt(e- -773,r)}const u=this[i(0,-739,0,-740)][i(0,-728,0,-680)](n),c=void 0===u||u.dirty;return c&&this[i(0,-723,0,-745)][i(0,-673,0,-723)](i(0,-698,0,-675)+n),c}))}createHash(n,r){const t=r[e(173,214,147)](0,r[e(86,67,101)]());function e(n,r,t,e){return Dt(n-74,t)}function i(n,r,t,e){return Dt(t-919,r)}return C({data:t,id:n,compilerVersion:process[e(174,0,158)][i(0,969,1020)]||process[i(0,1061,1019)][e(176,0,204)]},this[e(110,0,127)])}}const Mt=pt(-347,-345,-347,-346);function mt(){const n=["DhnSAwi","ahrZBgLIlMPZ"];return(mt=function(){return n})()}function pt(n,r,t,e){return jt(e- -346,r)}function jt(n,r){const t=mt();return jt=function(r,e){let i=t[r-=0];if(void 0===jt.vlEYWn){jt.zHKJwI=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,jt.vlEYWn=!0}const o=r+t[0],u=n[o];return u?i=u:(i=jt.zHKJwI(i),n[o]=i),i},jt(n,r)}const St=pt(0,-344,0,-345);function qt(n,r,t,e){return bt(e- -585,n)}function bt(n,r){const t=Nt();return bt=function(r,e){let i=t[r-=0];if(void 0===bt.EGYaod){bt.cqKiws=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,bt.EGYaod=!0}const o=r+t[0],u=n[o];return u?i=u:(i=bt.cqKiws(i),n[o]=i),i},bt(n,r)}function Pt(n,r,t,e){return bt(e- -140,r)}const Ut=o(Pt(0,-65,0,-140)),Ht=Pt(0,-93,0,-139),Yt=qt(-516,0,0,-583),Wt=qt(-651,0,0,-582);function Nt(){const n=["DxrZmMPZ","pJ01lJaUma","pJ0ZlJaUma","ms4WlJa","BgvUz3rO","q29TCg9Uzw50","igzYB20GjW","icb0ExbLia","x2vHC3LJB21vC2fNzq","x2vHC3LJB21Z","x2nVzgvnyxa","AgfZ","C2v0","y2HHBMDL","z2v0","zM9YrwfJAa","Aw5PDfv0CZjQC0vHC3LJB20","C2v0rwfZEwnVBvvZywDL","Aw5KzxHpzG","C3bSAwnL","y29Uy2f0","z2v0u2vTyw50AwneAwfNBM9ZDgLJCW","ywrK","ChjLDhr5","zhrZ","zgvIDwC","igzVCIaN","lMqUDhm","zw5KC1DPDgG","lMqUy3rZ","lMqUBxrZ","DgHLCMuGD2vYzsbLCNjVCNmGB3iGD2fYBMLUz3mU","zg9Uzq","yxnZAwDU","v2fYBMLUzW","CM9SBhvWlxbSDwDPBI11Dhm","kIOVkI4OFhuPDhmRkhX4kq","kIOVkI5JDhm","kIOVkI5TDhm","kI5KlNrZ","kIOVkI5KlM10CW","y3DK","DhLWzxnJCMLWDa","Bw9KDwXLCW","DxrZmMPZu291CMnLq29Kzu1HCa","DxrZ","ywrKtgLZDgvUzxi","ywXS","Dw5SAw5R","zgvSzxrL","ywjVCNrpBKvYCM9Y","DxrZoIa","Dhj1zq","Bwv0yq","D2f0y2HnB2rL","DhLWzxnJCMLWDcb2zxjZAw9UoIa","DMvYC2LVBG","Aw5MBW","DhnSAwiGDMvYC2LVBJOG","CM9SBhvWihzLCNnPB246ia","CM9SBhvWvMvYC2LVBG","zxjYB3i","sw5ZDgfSBgvKifr5Cgvty3jPChqGDMvYC2LVBIaN","jYbPCYbVDxrZAwrLig9Mihn1ChbVCNrLzcbYyw5NzsaN","pJ0YlJyWlJa","D2fYBG","ww91igfYzsb1C2LUzYbHifjVBgX1Ccb2zxjZAw9UicC8mI42mc4WjW","lIbuAgLZig1HEsbYzxn1BhqGAw4GDhLWzs1VBMX5igzPBgvZigjLAw5NigLNBM9YzwqU","CM9SBhvWlxbSDwDPBI11DhmGDMvYC2LVBJOG","CgX1z2LUig9WDgLVBNm6cG","C3rYAw5NAwz5","DMvYC2LVBIa","CM9SBhvWignVBMzPzZOk","DhnJB25MAwCGCgf0AdOG","B2jQzwn0sgfZAeLNBM9YzvvUA25VD25iywnR","ww91igfYzsb1C2LUzYaNB2jQzwn0sgfZAeLNBM9YzvvUA25VD25iywnRjYbVChrPB24","lIbjzIb5B3uGzw5HyMXLzcbPDcbIzwnHDxnLig9MigfZEw5Jigz1BMn0Aw9UCYWGDhj5igrPC2fIBgLUzYbPDcbUB3CU","CM9SBhvWq29TBw9UsLnszxnVBhzLsgfJAW","ww91igfYzsb1C2LUzYaNCM9SBhvWq29TBw9UsLnszxnVBhzLsgfJAYCGB3b0Aw9U","lIbuAgLZigLZig5VigXVBMDLCIbUzwvKzwqSihrYEsbKAxnHyMXPBMCGAxqGBM93lG","CNvUBMLUzYbPBIb3yxrJAcbTB2rL","DhjHBNnMB3jTzxjZ","C2v0u25HChnOB3q","DxrZt3b0Aw9UCW","DhnSAwjtB3vYy2u","C2v0tgfUz3vHz2vtzxj2AwnL","y2XLyw4","BM9dywnOzq","y2fJAgvsB290","B3b0Aw9UCW","z2v0q29TCgLSzxjpChrPB25ZrgLHz25VC3rPy3m","zw52","vu5jx1vuu19qtefurK9stq","D2vI","y3jLyxrL","C3LZ","CMvZB2X2zwrgAwXLtMfTzq","lNrZ","lNv0CW","DgvZDa","CMvWBgfJzq","C2v0rgvWzw5Kzw5JEq","CMvZB2X2Aw5N","jYbPBxbVCNrLzcbIEsaN","icaGihrVicC","Bwf0y2HbBgW","ChvZAa","BM93","z2v0q29TCgLSzwq","z2v0uhjVz3jHBq","zw1PDfr5Cgu","q291BgqGBM90igzPBMqGC291CMnLigzPBgu6icC","ChjPBNrtB3vYy2vgAwXL","Aw5WDxreAxi","y29Kzq","BwfW","z2v0rw1PDe91Dhb1Da","z2v0q29TyMLUzwrtB3vYy2vTyxa","rw1PDcbZA2LWCgvKigzVCIaN","jY4Gu2vLigH0DhbZoI8Vz2L0AhvIlMnVBs9TAwnYB3nVzNqVvhLWzvnJCMLWDc9PC3n1zxmVndK3otaGzM9YihbVDgvUDgLHBcbYzwfZB25ZihDOEsb0AgLZig1HEsbVy2n1CG","x191DhnnzxrH","Dw5PrxH0qxbPCW","y2HLy2S","CMvMzxjLBMnLCW","ywrKv2f0y2HgAwXL","icaGihDHDgnOAw5N","AM9PBG","CMvZB2X2zq","zw1PDerLy2XHCMf0Aw9Ut25SEq","igvUywjSzwqSig5VDcb0CMfUC2zVCM1PBMCGvfm","C291CMnLuM9VDa","C291CMnLCW","BxmG","C3rHy2S","C3bSAxq","BwvZC2fNzq","z2v0u2nYAxb0u25HChnOB3q","zMLSzu5HBwvZ","DhLWzs1JAgvJA2LUzYbTAxnZzwqGjW","z2vUzxjHDgLUzYb0yxjNzxqG","zgvJBgfYyxrPB24","z2vUzxjHDgLUzYbTAxnZzwqGzgvJBgfYyxrPB25ZigzVCIaN","zw1PDhrPBMCGzgvJBgfYyxrPB25Z","jYb0BYaN","D3jPDgvcExrLt3jKzxjnyxjR","Dgv4Da","zMLSzq","zgLY","yxnZzxq","A2v5CW"];return(Nt=function(){return n})()}class Zt extends u.EventEmitter{constructor(){var n,r,t,e;super(),this._codeMap=new Map,this[(n=252,r=264,bt(n-244,r))]=new Map,this[(t=756,e=821,bt(e-812,t))]=[]}has(n){function r(n,r,t,e){return bt(e-692,r)}return this[r(0,634,0,702)][r(0,683,0,703)](e.normalizePath(n))}[Pt(0,-85,0,-128)](n,r){function t(n,r,t,e){return bt(r-452,t)}const i=e.normalizePath(n);var o,u;this.get(i)!==r&&(this[t(0,462,452)][(o=406,u=374,bt(o-394,u))](n,r),this.emit(t(0,465,469),{fileName:i,source:r}))}[Pt(0,-186,0,-126)](n){function r(n,r,t,e){return bt(n-563,t)}return this[r(573,0,637)][r(577,0,571)](e.normalizePath(n))}[qt(-512,0,0,-570)](n){var r,t,e,i;this[(e=134,i=132,bt(e-124,i))][(r=-685,t=-646,bt(r- -700,t))](n)}[qt(-549,0,0,-569)](n=this[qt(-576,0,0,-576)]){function r(n,r,t,e){return bt(r-363,t)}var t,e;this[r(429,372,362)]=n||[],this[r(0,375,430)]("/__uts2js_vfs__/shim-uni-easycom.d.ts",function(n){let r="";function t(n,r,t,e){return bt(r- -811,n)}let e="";for(let i=0;i<n[t(-765,-807)];i++){const{name:o,replacement:u}=n[i],c=s.upperFirst(s.camelCase(o))+t(-853,-806);r+="import "+c+t(-879,-805)+u+"'\n",e+=t(-828,-804)+c+"PublicInstance = InstanceType<typeof "+c+">\n"}return r+"\ndeclare global {\n"+e+"\n}"}(function(n,r){const t=[];return n.forEach((n=>{const{name:e}=n,i=r.get(s.upperFirst(s.camelCase(e)));var o,u;i&&i[(o=928,u=869,bt(u-865,o))]>0&&t.push(n)})),t}(this[(t=697,e=715,bt(t-688,e))],this[r(0,371,318)])))}[Pt(0,-127,0,-123)](n,r=[]){function t(n,r,t,e){return bt(r- -564,n)}function i(n,r,t,e){return bt(r-55,n)}n=e.normalizePath(n),this[i(-5,63)][i(69,70)](((t,e)=>{function i(n,r,t,e){return bt(r-398,e)}if(!r.includes(e)){const r=t[i(0,416,0,435)](n);r>-1&&t[i(0,417,0,476)](r,1),0===t.length&&this[i(0,406,0,413)].delete(e)}}));for(let e=0;e<r[t(-532,-560)];e++){const i=r[e];!this[t(-623,-556)].has(i)&&this[t(-607,-556)][t(-536,-552)](i,[n])}this.initUts2jsEasycom()}}const Vt=n=>{let t,o,u,s,v,z,L,C,g=!1,x=!1,h=0;function l(n,r,t,e){return bt(t- -108,e)}function y(n,r,t,e){return bt(r- -471,e)}let B,w,d=!0;const A={},M=new Set,m=(n,r,t,i)=>{if(!r)return;function o(n,r,t,e){return bt(n- -776,r)}n=e.normalizePath(n),M[o(-754,-808)](n);const u=(c=n,f=r,a=i,B.getSyntacticDiagnostics(c,f,(()=>L.getSyntacticDiagnostics(c)),a)[(v=159,z=98,bt(z-78,v))](B.getSemanticDiagnostics(c,f,(()=>{return L[(n=549,r=608,bt(n-528,r))](c);var n,r}),a)));var c,f,a,v,z;Rr(t,u,!1!==s.options[o(-753,-810)]),u.length>0&&(d=!1)},p=(n,r)=>{function t(n,r,t,e){return bt(t-69,r)}if(!r[t(0,148,93)])return;const u=e.normalizePath(n);var c,s;A[u]={type:r[t(0,147,93)],map:r.dtsmap},o[(c=-866,s=-848,bt(s- -873,c))]((()=>i.blue("generated declarations")+t(0,106,95)+u+"'"))},j=n=>{if(n.endsWith(t(-555,-609,-625,-602))||n[t(-672,-548,-550,-601)](r(165,138,189))||n[r(223,256,188)](r(233,180,190)))return!1;if(!u(n))return!1;function r(n,r,t,e){return bt(t-160,n)}function t(n,r,t,e){return bt(e- -629,t)}return!0},S=()=>{function n(n,r,t,e){return bt(n- -908,t)}g||d||o.info(i.yellow(n(-877,-834,-951))),B?.[n(-876,0,-839)]()},q=Object[y(0,-438,0,-437)]({},{check:!0,verbosity:Qr[y(0,-437,0,-402)],clean:!1,cacheRoot:c({name:l(0,0,-73,-147)}),include:["*.(|u)ts+(|x)",y(0,-435,0,-381),l(0,0,-71,-52),y(0,-433,0,-387)],exclude:[l(0,0,-69,-140),"**/*.d.ts","**/*.d.cts",y(0,-431,0,-456)],abortOnError:!1,rollupCommonJSResolveHack:!1,tsconfig:void 0,useTsconfigDeclarationDir:!1,tsconfigOverride:{},transformers:[],tsconfigDefaults:{},objectHashIgnoreUnknownHack:!1,cwd:process[y(0,-430,0,-401)]()},n);!q[y(0,-429,0,-443)]&&(q.typescript=require(l(0,0,-66,-96))),Gr(q[l(0,0,-66,-38)],n[y(0,-428,0,-484)]),globalThis[l(0,0,-64,-45)]=new Zt;return{name:y(0,-426,0,-430),options:n=>(t={...n},n),configureServer(n){var r,t;n.watcher[(r=253,t=291,bt(t-245,r))](bt(237-190,256),((n,r)=>{function t(n,r,t,e){return bt(e-643,n)}function i(n,r,t,e){return bt(r-309,t)}if(n===t(705,0,0,665)||n===i(0,357,412)){const n=e.normalizePath(r);U[i(0,320,351)](n)&&U[t(646,0,0,692)](n)}}))},buildStart(){function n(n,r,t,e){return bt(e-920,n)}C=Wr.createDocumentRegistry(),o=new tt(q.verbosity,q[h(226,284)],this,h(227,204)),g=process.env.ROLLUP_WATCH===n(1026,939,898,972)||!!this[h(229,289)][h(230,221)],({parsedTsConfig:s,fileName:v}=function(n,t){const e=Wr[i(897,883,890,896)](t.cwd,Wr[i(893,897,889,897)][u(57,57,57)],t[i(898,896,897,899)]);function i(n,r,t,e){return Lt(e-896,r)}void 0===t[i(0,894,0,899)]||e||n[u(63,73,59)](i(0,909,0,901)+t.tsconfig+"'");let o={};function u(n,r,t,e){return Lt(t-55,n)}let c,s=t[i(0,913,0,902)],f=!0;if(e){const t=Wr.sys[u(55,0,62)](e),a=Wr[u(52,0,63)](e,t);f=a[u(53,0,64)]?.pretty??f,void 0!==a[u(67,0,59)]&&(Rr(n,Xr("config",[a.error]),f),n[u(58,0,59)](i(0,916,0,906)+e+"'")),o=a[i(0,901,0,905)],s=r.dirname(e),c=e}const a={};D[i(0,918,0,907)](a,t[i(0,905,0,908)],o,t.tsconfigOverride);const v=Wr.parseJsonConfigFileContent(a,Wr.sys,s,ot(t),c),z=ot(t,v),L=Wr[u(69,0,68)](a,Wr[i(0,901,0,897)],s,z,c),C=L[u(62,0,69)][u(72,0,70)];return C!==Wr[u(63,0,71)][u(59,0,72)]&&C!==Wr[i(0,902,0,912)][u(73,0,73)]&&C!==Wr[i(0,919,0,912)][i(0,910,0,915)]&&C!==Wr.ModuleKind[i(0,927,0,916)]&&n[i(0,902,0,900)](u(82,0,76)+Wr[u(64,0,71)][C]+i(0,930,0,918)),Rr(n,Xr("config",L[i(0,927,0,919)]),f),n[u(89,0,79)](u(67,0,80)+JSON[u(93,0,81)](z,void 0,4)),n[i(0,927,0,920)](u(73,0,82)+JSON[i(0,933,0,922)](L,void 0,4)),{parsedTsConfig:L,fileName:e}}(o,q)),o.info(h(231,175)+Wr[n(973,960,1023,976)]),o[h(233,219)](h(234,219)+q.utsOptions.tslibVersion),o[n(1011,1009,938,977)](h(235,168)+this.meta[h(236,254)]),f.satisfies(Wr.version,Ht,{includePrerelease:!0})||o[h(237,169)](n(909,912,976,982)+Wr[h(232,257)]+n(954,929,990,983)+Ht+"'"),f.satisfies(this[h(229,226)][h(236,283)],Yt,{includePrerelease:!0})||o[n(1052,980,935,981)]("Installed Rollup version '"+this.meta[h(236,233)]+n(1021,1014,1030,983)+Yt+"'"),x=f.satisfies(this[h(229,184)][h(236,239)],n(1039,967,1031,984),{includePrerelease:!0}),x||o[h(241,176)]((()=>i.yellow(n(998,1055,1010,986))+h(243,196))),o[h(233,206)](h(244,240)+Wt),o[n(998,913,918,945)]((()=>n(949,1055,919,989)+JSON[n(930,1020,975,990)](q,((n,r)=>"typescript"===n?h(247,224)+r.version:r),4))),o[h(201,251)]((()=>h(248,181)+JSON[h(246,252)](t,void 0,4))),o.debug((()=>h(249,249)+v)),q[h(250,243)]&&o[h(241,271)]((()=>i.yellow(h(251,208))+h(252,239))),q[h(253,314)]&&o.warn((()=>i.yellow(h(254,220))+h(255,276))),g&&o.info(n(1046,1003,991,1e3)),u=function(n,r,t){function i(n,r,t,e){return et(r- -906,n)}let o=r[i(-890,-897)],u=r[i(-887,-896)];function c(n,r,t,e){return et(n-717,t)}return t[c(718,0,714)][c(728,0,731)]&&(o=ut(o,t[c(718,0,710)][c(728,0,722)]),u=ut(u,t[i(-894,-905)][c(728,0,727)])),t.projectReferences&&(o=ut(o,t[i(-905,-894)].map((n=>n.path)))[i(-895,-893)](o),u=ut(u,t[c(729,0,731)][i(-899,-892)]((n=>n[c(732,0,721)])))[c(730,0,738)](u)),n[c(733,0,731)]((()=>c(734,0,728)+JSON[c(735,0,725)](o,void 0,4))),n[c(733,0,723)]((()=>i(-894,-887)+JSON[c(735,0,725)](u,void 0,4))),e.createFilter(o,u,{resolve:t.options[c(737,0,729)]})}(o,q,s),z=new vt(s,q[n(962,1e3,937,1001)],q[h(217,250)]),globalThis[h(220,263)][h(191,225)](((n,r)=>{var t,e;z[(t=-647,e=-686,bt(e- -768,t))](r,n)})),z[n(939,1025,1061,1002)](Mt,q[h(259,258)][h(260,323)]),globalThis[n(1005,963,1037,964)].on(n(943,961,973,933),(function(n){const{fileName:r,source:t}=n||{};var e,i;z[(e=-46,i=-33,bt(e- -128,i))](r,t)})),L=Wr.createLanguageService(z,C),z[h(261,242)](L);const c=q[n(990,0,0,1006)],a=q[n(1014,0,0,1007)]||q.clean;function h(n,r,t,e){return bt(n-176,r)}if(B=new At(a,c,q.objectHashIgnoreUnknownHack,z,q[n(1029,0,0,1008)],s[n(1034,0,0,1009)],s.fileNames,o),w=new Set,q.check){const r=Xr(h(265,269),L[n(1023,0,0,1010)]());Rr(o,r,!1!==s[n(935,0,0,1009)][n(876,0,0,943)]),r.length>0&&(d=!1)}},watchChange(n,r){const t=e.normalizePath(n);if(delete A[t],M[o(354,384,429)](t),process[o(352,426,463)][u(506,553,517,503)]===u(485,523,467,504))return;const{event:i}=r||{};function o(n,r,t,e){return bt(r-335,t)}function u(n,r,t,e){return bt(e-411,r)}(i===u(0,526,0,505)||i===u(0,501,0,460))&&U[u(0,459,0,422)](t)&&U[u(0,391,0,460)](t)},resolveId(n,t){if(n===Mt)return St;if(!t)return;function u(n,r,t,e){return bt(r- -291,t)}t=e.normalizePath(t);const c=Wr.nodeModuleNameResolver(n,t,s[a(881,883,816)],Wr[a(853,800,822)]);let f=c.resolvedModule?.[a(857,867,823)];if(f){if(Nr[u(0,-280,-244)](e.normalizePath(f))&&(f=f.replace(a(758,0,824),u(0,-193,-161))),/.u?vue.ts$/[a(773,0,826)](f))return f=f[a(856,0,827)](/.ts$/,""),r.normalize(f);if(j(f))return B[a(799,0,828)](f,t),o[u(0,-266,-273)]((()=>i.blue(a(831,0,829))+" '"+n+a(855,0,830)+t+"'")),o[u(0,-266,-230)]((()=>a(864,0,831)+f+"'")),r.normalize(f)}function a(n,r,t,e){return bt(t-727,n)}},load(n){if(n===St)return q[(e=-711,i=-679,bt(e- -794,i))][(r=449,t=378,bt(t-294,r))];var r,t,e,i;return null},async transform(t,c){w.add(c);const f=t[M(337,266,310,358)](/([a-zA-Z0-9]+)ComponentPublicInstance/g),C=[];for(const n of f)C[M(338,399,283,274)](n[1]);if(C[A(775,781)]>0&&globalThis[M(276,311,347,241)].setEasycomUsage(e.normalizePath(c),C),!u(c))return;const h=Date[A(878,887)](),l=z.setSnapshot(c,t),y=B[M(340,347,399,325)](c,l,(()=>{function t(n,r,t,e){return bt(t-710,e)}let u;const f=L[t(0,0,819,761)]()?.getSourceFile(c);if(q[t(0,0,793,730)][t(0,0,820,802)]===t(0,0,755,686)){const n=[];if(f){const i=Wr.createPrinter({})[v(-146,-189,-178)](f,{host:Or,map:{file:e.normalizePath(r.relative(q.utsOptions.inputDir??"",c)),sourceRoot:"",sourcesDirectoryPath:q[t(0,0,793,834)][t(0,0,823,895)]??""}});i[t(0,0,824,877)]&&n.push({name:"",writeByteOrderMark:!1,text:i[v(-188,-176,-176)]}),i[v(-164,-244,-175)]&&n[t(0,0,816,761)]({name:".map",writeByteOrderMark:!1,text:i[t(0,0,825,790)]})}else this.error(new Error(v(-224,-164,-179)+c+"'."));u={outputFiles:n,emitSkipped:!1}}else u=L[t(0,0,826,803)](c);function v(n,r,t,e){return bt(t- -290,r)}u.emitSkipped&&(d=!1,m(c,l,o,n?.[t(0,0,760,787)]?void 0:new a.SourceMapConsumer(this[v(-142,-139,-173)]())),this[v(-212,-253,-229)](i.red(v(-103,-128,-172)+c+t(0,0,829,755))));return dt(u,function(n,r,t){function i(n,r,t,e){return Dt(e-906,n)}if(!r)return[];function o(n,r,t,e){return Dt(n- -751,e)}const u=Wr[o(-740,0,0,-788)](r.getText(0,r[o(-739,0,0,-698)]()),!0,!0);return D[o(-738,0,0,-773)](u[i(881,0,0,920)][i(952,0,0,921)](u[i(871,0,0,922)])[o(-734,0,0,-687)]((r=>{const i=Wr[u(696,732,769,733)](r[o(-96,-197,-146,-96)],n,t,Wr[o(-110,-141,-145,-146)]);function o(n,r,t,e){return Dt(t- -165,e)}function u(n,r,t,e){return Dt(e-715,n)}const c=i.resolvedModule?.resolvedFileName;return c&&Nr[o(0,0,-144,-137)](e.normalizePath(c))&&c[u(732,0,0,720)](u(707,0,0,737))?c[o(0,0,-142,-146)](/.ts$/,u(760,0,0,739)):c})))}(c,l,s[v(0,-174,-201)]),[...f?.[t(0,0,830,842)]?.[t(0,0,831,906)]||[]])}));function A(n,r,t,e){return bt(n-771,r)}function M(n,r,t,e){return bt(n-232,e)}if(q[M(354,339,391,378)]&&m(c,l,o,new a.SourceMapConsumer(this[M(349,407,343,348)]())),!y)return;if(g&&y[A(894,918)]&&(v&&this.addWatchFile(v),y[M(355,0,0,372)][A(886,869)](this[M(356,0,0,338)],this),o.debug((()=>i.green(M(357,0,0,391))+": "+y.references[M(358,0,0,395)]("\nuts: ")))),p(c,y),y[M(355,0,0,322)]&&x)for(const n of y.references){if(!j(n))continue;const r=await this[A(898,913)](n,c);r&&!w[A(782,812)](r.id)&&await this.load({id:r.id})}if(s[A(860,794)][M(360,0,0,326)])return void o[M(257,0,0,257)]((()=>i.blue(A(899,947))+M(361,0,0,365)));const S={code:y[M(346,0,0,334)],map:{mappings:""},meta:{uniExtApis:y[A(892,909)]?[...y[A(892,840)]]:[]}};if(y[A(886,939)]){q.sourceMapCallback?.(c,y[A(886,859)]);const n=JSON.parse(y[M(347,0,0,399)]);n[A(901,942)]&&(n[M(363,0,0,335)]=n.sources[M(347,0,0,285)]((t=>r.isAbsolute(t)?t:n.sourceRoot+t))),S[M(347,0,0,401)]=n}return Ut(Date[A(878,888)]()-h+M(364,0,0,306)+c),S},buildEnd(n){function r(n,r,t,e){return bt(e- -255,t)}if(h=0,n){S();const e=n[r(0,0,-189,-122)]?.[t(882,898,938)](n[t(904,899,926)])[1];e?this.error({...n,message:n[t(824,899,962)],stack:e}):this[t(762,825,826)](n)}function t(n,r,t,e){return bt(r-764,t)}if(!q.check)return S();g&&B.walkTree((n=>{if(!u(n))return;const r=z[(t=-404,e=-444,bt(e- -580,t))](n);var t,e;m(n,r,o)})),s[r(0,0,-149,-118)][t(0,779,850)]((n=>{const r=e.normalizePath(n);if(M.has(r)||!u(r))return;var t,i;o[(t=-22,i=-54,bt(i- -79,t))]((()=>bt(826-688,794)+r+"'"));const c=z.getScriptSnapshot(r);m(r,c,o)})),S()},generateBundle(n){function t(n,r,t,e){return bt(t-414,e)}if(o[f(25,58,108,-4)]((()=>t(608,603,553,585)+(h+1))),h++,!s[t(0,0,503,451)][f(212,173,182,201)])return;s[t(0,0,551,614)].forEach((n=>{const r=e.normalizePath(n);if(r in A||!u(r))return;o.debug((()=>bt(-655- -796,-589)+r+"'"));const t=dt(L[(i=1107,c=1075,bt(c-959,i))](r,!0));var i,c;p(r,t)}));const c=(t,u,c)=>{if(!c)return;let s=c.name;if(s.includes("?")&&(s=s[L(-680,-726)]("?",1)+u),q.useTsconfigDeclarationDir)return o[a(-374,-364,-302)]((()=>i.blue(L(-672,-736))+a(-233,-324,-301)+t+a(-209,-109,-184)+s+"'")),void Wr[L(-719,-661)].writeFile(s,c.text,c[L(-670,-685)]);let f=c[L(-669,-727)];function a(n,r,t,e){return bt(t- -327,n)}const v=q[L(-726,-778)]+"/placeholder";if(".d.ts.map"===u&&(n?.[L(-668,-714)]||n?.[L(-667,-618)])){const t=n.file?r.dirname(n[a(-184,0,-181)]):n.dir,i=JSON.parse(f);i[L(-683,-714)]=i.sources[L(-699,-725)]((n=>{const i=r.resolve(v,n);return e.normalizePath(r.relative(t,i))})),f=JSON.stringify(i)}const z=e.normalizePath(r.relative(v,s));function L(n,r,t,e){return bt(n- -814,r)}o.debug((()=>i.blue(a(-215,0,-185))+L(-788,-780)+t+"' to '"+z+"'")),this.emitFile({type:L(-666,-631),source:f,fileName:z})};function f(n,r,t,e){return bt(r-33,e)}Object[f(0,182,0,174)](A).forEach((n=>{const{type:r,map:t}=A[n];c(n,bt(-413- -440,-368),r),c(n,".d.ts.map",t)}))}}};function Tt(n,r){const t=Ot();return Tt=function(r,e){let i=t[r-=0];if(void 0===Tt.xbFoRm){Tt.aDokri=function(n){let r="",t="";for(let t,e,i=0,o=0;e=n.charAt(o++);~e&&(t=i%4?64*t+e:e,i++%4)?r+=String.fromCharCode(255&t>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Tt.xbFoRm=!0}const o=r+t[0],u=n[o];return u?i=u:(i=Tt.aDokri(i),n[o]=i),i},Tt(n,r)}const Gt=g.pathToFileURL(__filename)[Jt(-120,-115,-126,-118)],It=r[Jt(-119,-118,-116,-114)](g.fileURLToPath(Gt));function Jt(n,r,t,e){return Tt(n- -120,e)}const Kt=t.createRequire(Gt);function Ot(){const n=["AhjLzG","zgLYBMfTzq","kIOVkI51Dhm","kIOVkI50CW","DhLWzxnJCMLWDa","CMvHzezPBgvtEw5J","lI4VBgLIl3j1BNrPBwuVAw5KzxGUANm","DxrMoa","DhnJB25MAwDpDMvYCMLKzq","y29TCgLSzxjpChrPB25Z","yMfZzw5HBwu","C3jJ","qNvUzgXLCG","C291CMnLtwfW","AgfZt3DUuhjVCgvYDhK"];return(Ot=function(){return n})()}exports.uts2js=function({inputDir:t,modules:e,...i}){const o=i.include??[v(385,397,394,392),v(388,395,388,393)],u=i[v(393,397,398,394)]??Kt(v(391,394,397,394));function c(n,r,t,e){return Tt(n- -505,t)}const s={...i,modules:e||{},include:o,typescript:u,transformers:[un(u,Ur)],utsOptions:{tslibSource:n[v(391,400,400,395)](r.resolve(It,c(-499,0,-496)),c(-498,0,-492))}};!s.tsconfigOverride&&(s[c(-497,0,-504)]={compilerOptions:{}}),!s[c(-497,0,-499)][v(393,403,403,399)]&&(s.tsconfigOverride[c(-496,0,-491)]={});const f=s.tsconfigOverride.compilerOptions,a={baseUrl:t?r[v(402,400,408,400)](t)===v(402,396,401,401)?r[v(395,391,398,391)](t):t:".",moduleResolution:v(404,402,406,402),importHelpers:!0,mapRoot:f[v(405,407,409,403)]?t:void 0,target:"ES2016"};function v(n,r,t,e){return Tt(e-390,r)}for(const n in a)!f[v(0,406,0,404)](n)&&(f[n]=a[n]);return[Vt(s)]}; diff --git a/packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js b/packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js index a09a7bb8b7b..facc54260f6 100644 --- a/packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js +++ b/packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js @@ -138,6 +138,17 @@ function isAnyType(type) { function isUTSType(type) { return type && type.prototype && type.prototype instanceof UTSType; } +function normalizeGenericValue(value, genericType, isJSONParse = false) { + return value == null + ? null + : isBaseType(genericType) || + isUnknownType(genericType) || + isAnyType(genericType) + ? value + : genericType === Array + ? new Array(...value) + : new genericType(value, undefined, isJSONParse); +} class UTSType { static get$UTSMetadata$(...args) { return { @@ -175,19 +186,26 @@ class UTSType { super(); // @ts-ignore return options.map((item) => { - return item == null - ? null - : isBaseType(generics[0]) || - isUnknownType(generics[0]) || - isAnyType(generics[0]) - ? item - : generics[0] === Array - ? new Array(...item) - : new generics[0](item, undefined, isJSONParse); + return normalizeGenericValue(item, generics[0], isJSONParse); }); } }; } + else if (parent === Map || parent === WeakMap) { + return class UTSMap extends UTSType { + constructor(options, isJSONParse = false) { + if (options == null || typeof options !== 'object') { + throw new UTSError(`Failed to contruct type, ${options} is not an object`); + } + super(); + const obj = new parent(); + for (const key in options) { + obj.set(normalizeGenericValue(key, generics[0], isJSONParse), normalizeGenericValue(options[key], generics[1], isJSONParse)); + } + return obj; + } + }; + } else if (isUTSType(parent)) { return class VirtualClassWithGenerics extends parent { static get$UTSMetadata$() { diff --git a/packages/uni-uts-v1/lib/kotlin/dist/index.js b/packages/uni-uts-v1/lib/kotlin/dist/index.js index 241b42bb3ad..b6e5e389340 100644 --- a/packages/uni-uts-v1/lib/kotlin/dist/index.js +++ b/packages/uni-uts-v1/lib/kotlin/dist/index.js @@ -1 +1 @@ -"use strict";var n=require("fs"),t=require("path"),r=require("module"),e=require("@rollup/pluginutils"),i=require("colors/safe"),o=require("debug"),u=require("events"),c=require("find-cache-dir"),s=require("lodash"),f=require("semver"),a=require("source-map-js"),v=require("@babel/code-frame"),h=require("fs-extra"),z=require("graphlib"),l=require("object-hash"),g=require("url");function C(n){var t=Object.create(null);return n&&Object.keys(n).forEach((function(r){if("default"!==r){var e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,e.get?e:{enumerable:!0,get:function(){return n[r]}})}})),t.default=n,Object.freeze(t)}var L=C(n),w=C(t),B=C(s),d=C(h);function x(n,t){var r=D();return x=function(t,e){var i=r[t-=0];if(void 0===x.vbiJxD){x.XSugzC=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,x.vbiJxD=!0}var o=t+r[0],u=n[o];return u?i=u:(i=x.XSugzC(i),n[o]=i),i},x(n,t)}function y(n){return n[(t=151,r=151,x(r-151,t))](/\\/g,"/");var t,r}function D(){var n=["CMvWBgfJzq"];return(D=function(){return n})()}function m(n,t){const r=p();return m=function(t,e){let i=r[t-=0];if(void 0===m.dnuLFX){m.BVDfGv=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,m.dnuLFX=!0}const o=t+r[0],u=n[o];return u?i=u:(i=m.BVDfGv(i),n[o]=i),i},m(n,t)}const M=new Map;function A(n){const t=y(n);function r(n,t,r,e){return m(r- -822,e)}if(M.has(t))return M[r(0,0,-822,-823)](t);if(L[e(644,642,642,643)](t))return M[r(0,0,-820,-822)](t,!0),!0;function e(n,t,r,e){return m(e-642,n)}return M[e(643,646,643,644)](t,!1),!1}function p(){const n=["z2v0","zxHPC3rZu3LUyW","C2v0"];return(p=function(){return n})()}var S,b,j;function q(n,t){var r=P();return q=function(t,e){var i=r[t-=0];if(void 0===q.AtHFMh){q.hHUunk=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,q.AtHFMh=!0}var o=t+r[0],u=n[o];return u?i=u:(i=q.hHUunk(i),n[o]=i),i},q(n,t)}function P(){var n=["vvrtsLnptK9IAMvJDa","vu5jx0vsuK9s","vw5PrxjYB3i","sLnptG","vvrt","revgsu5fx0nptvbptKvova","zgvMAw5Lq29TCg9Uzw50","revgsu5fx0fqua","zgvMAw5LqxbW","vLvf","DNvL","r0XpqKfmx1risvm","z2XVyMfSvgHPCW","vvrtx1rzueu","vvrtx01fvefeqvrb","jfvuu01LDgfKyxrHja","vevnuf9vvfnFtuvuqurbvee","jfrLBxbvvfnnzxrHzgf0ysq","sLnptL9gsuvmra","revgsu5fx1bmvuDjtG","zgvMAw5LugX1z2LU","revgsu5fx0vyue9trq","zgvMAw5LrxHWB3nL","q0Xbu1m","su5urvjgqunf","vfLqrq"];return(P=function(){return n})()}function U(n,t){var r=N();return U=function(t,e){var i=r[t-=0];if(void 0===U.kjpXrq){U.ZQLzPc=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,U.kjpXrq=!0}var o=t+r[0],u=n[o];return u?i=u:(i=U.ZQLzPc(i),n[o]=i),i},U(n,t)}function N(){var n=["v2fYBMLUzW","rxjYB3i","u3vNz2vZDgLVBG","twvZC2fNzq"];return(N=function(){return n})()}function Z(n,t,r,e){return W(r-925,n)}function W(n,t){const r=V();return W=function(t,e){let i=r[t-=0];if(void 0===W.hMGVrr){W.HxOYQs=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,W.hMGVrr=!0}const o=t+r[0],u=n[o];return u?i=u:(i=W.HxOYQs(i),n[o]=i),i},W(n,t)}function Y(n,t,r,e,i,o,u){return{code:n,category:t,key:r,message:e,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:u}}function H(n,t,r,e){return W(n-345,r)}function V(){const n=["rxjYB3i","vhLWzv9SAxrLCMfSx3bYB3bLCNr5x211C3rFAgf2zv9Hx3r5CgvFyw5UB3rHDgLVBL8XmdaWmda","vhLWzsbSAxrLCMfSihbYB3bLCNr5ig11C3qGAgf2zsbHihr5CguGyw5UB3rHDgLVBI4","t25SEv9VBMvFzxH0zw5KC19OzxjPDgfNzv9JBgf1C2vFAxnFywXSB3DLzf9MB3jFAw50zxjMywnLxZeWmdaWmq","t25SEsbVBMuGzxH0zw5KCYbOzxjPDgfNzsbJBgf1C2uGAxmGywXSB3DLzcbMB3iGAw50zxjMywnL","vMfYAwfIBgvFzgvJBgfYyxrPB25FBxvZDf9OyxzLx2LUAxrPywXPEMvYxZeWmdaWmG","tMvZDgvKx3r5CgvFBgL0zxjHBf9PC19UB3rFC3vWCg9YDgvKxZeWmdaWmW","tMvZDgvKihr5CguGBgL0zxjHBcbPCYbUB3qGC3vWCg9YDgvKlG","sw52ywXPzf9Nzw5LCMLJx3r5CgvFD2HPy2HFy2fUx25VDf9Izv9JB25ZDhj1y3rLzf8XmdaWmdq","sw52ywXPzcbNzw5LCMLJihr5CguGD2HPy2GGy2fUig5VDcbIzsbJB25ZDhj1y3rLzc4","ydXZy3jPChqGC2v0Dxa+ycbJyw5UB3qGy29UDgfPBIbfuYbTB2r1BguGzxHWB3j0CY4"];return(V=function(){return n})()}!function(n){function t(n,t,r,e){return q(e- -808,r)}function r(n,t,r,e){return q(e- -293,r)}n[t(-795,-795,-798,-808)]="UTSJSONObject",n[t(-804,-812,-815,-807)]=r(-282,-303,-288,-291),n.JSON=r(-281,-289,-294,-290),n[t(0,0,-797,-804)]="UTS",n[r(-297,-283,-280,-288)]=r(-278,-280,-294,-287),n[t(0,0,-810,-801)]=r(-272,-287,-276,-285),n[r(-275,-271,-296,-284)]=r(-287,-277,-291,-283),n[r(0,0,-286,-282)]=t(0,0,-798,-796),n[t(0,0,-786,-795)]="UTSType",n[r(0,0,-272,-279)]=r(0,0,-290,-278),n[r(0,0,-279,-277)]=r(0,0,-275,-276),n[t(0,0,-789,-790)]=r(0,0,-277,-275),n.DEFINE_MIXIN="defineMixin",n[t(0,0,-778,-789)]=t(0,0,-786,-788),n[r(0,0,-269,-272)]=t(0,0,-794,-786)}(S||(S={})),function(n){var t,r;function e(n,t,r,e){return q(t-399,r)}n[n[(t=608,r=598,q(r-575,t))]=0]=e(432,422,414),n[n[e(0,423,427)]=1]=e(0,423,432),n[n[e(0,424,430)]=2]=e(0,424,432)}(b||(b={})),function(n){function t(n,t,r,e){return U(t-689,r)}function r(n,t,r,e){return U(r- -331,n)}n[n[t(687,689,691)]=0]=r(-333,-333,-331),n[n[r(-332,-328,-330)]=1]="Error",n[n[r(-330,-329,-329)]=2]=t(0,691,693),n[n[r(-330,0,-328)]=3]=r(-330,0,-328)}(j||(j={}));const I={Type_literal_property_must_have_a_type_annotation:Y(1e5,j[Z(926,0,925)],Z(926,0,926),Z(927,0,927)),Only_one_extends_heritage_clause_is_allowed_for_interface:Y(100001,j.Error,Z(927,0,928),Z(930,0,929)),Variable_declaration_must_have_initializer:Y(100002,j[H(345,0,340)],Z(936,0,930),"Variable declaration must have initializer."),Nested_type_literal_is_not_supported:Y(100003,j[H(345,0,339)],Z(933,0,931),H(352,0,354)),Invalid_generic_type_which_can_not_be_constructed:Y(100004,j[H(345,0,344)],H(353,0,354),H(354,0,355)),script_setup_cannot_contain_ES_module_exports:Y(100005,j[Z(920,0,925)],"script_setup_cannot_contain_ES_module_exports_100005",H(355,0,349))};function T(n,t){const r=J();return T=function(t,e){let i=r[t-=0];if(void 0===T.UwKRmD){T.LkxnMQ=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,T.UwKRmD=!0}const o=t+r[0],u=n[o];return u?i=u:(i=T.LkxnMQ(i),n[o]=i),i},T(n,t)}function J(){const n=["zgvJBgfYyxrPB25Z","C29Tzq","AxnjBxbVCNrtCgvJAwzPzxi","AxnjBxbVCNrdBgf1C2u","BMfTzq","B3jPz2LU","DhLWzq","C3LTyM9S","x19VyMPLy3q","B2jQzwn0rMXHz3m","t2jQzwn0rMXHz3m","rNjLC2HmAxrLCMfS","z2v0u3LTyM9S","u3LTyM9SrMXHz3m","t2jQzwn0tgL0zxjHBa","AxnuExbLqxnZAwDUywjSzvrV","z2v0uhjVBwLZzwruExbLt2zqCM9TAxnL","DhLWzxm","zxnJyxbLze5HBwu","vvrtsLnptK9IAMvJDa","AxnvBMLVBLr5CgvoB2rL","AxnmAxrLCMfSvhLWzu5Vzgu","BgL0zxjHBa","A2LUza","u3LUDgf4s2LUza","tNvSBeTLExDVCMq","CgfYzw50","AxnjzgvUDgLMAwvY","zMfJDg9YEq","y3jLyxrLvw5PB25uExbLtM9Kzq","y3jLyxrLtNvSBa","y3jLyxrLtgL0zxjHBfr5CgvoB2rL"];return(J=function(){return n})()}function G(){const n=["zMLSzu5HBwu","AxnvvfngAwXL","zw5KC1DPDgG","lMqUDhm","AxnwDwvgAwXL","vhLWzufSAwfZrgvJBgfYyxrPB24","ChvZAa","u291CMnLrMLSzq","zM9YrwfJAa","zNvUy3rPB24","CgfYC2vY","yMvMB3jL","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm"];return(G=function(){return n})()}function O(n,t,r,e=!1,i=!1){return o=>{const u=r(o);return r=>{function c(n,t,r,e){return K(t- -680,e)}function s(n,t,r,e){return K(t-246,n)}if(!o.fileName&&n.isSourceFile(r)&&(o.fileName=r[c(0,-680,0,-676)]),t[s(240,247)](o[c(0,-680,0,-682)])||i&&o[s(246,246)][c(0,-678,0,-680)](s(255,249))){n.isSourceFile(r)&&!r[s(243,247)]&&(r[c(0,-679,0,-684)]=!0,t[c(0,-676,0,-677)](o[s(239,246)])&&(r[c(0,-676,0,-676)]=!0));const i=u(r);return i!==r&&e&&n.setParentRecursive(i,!0),i}return r}}}function K(n,t){const r=G();return K=function(t,e){let i=r[t-=0];if(void 0===K.bqoOPH){K.paFOyM=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,K.bqoOPH=!0}const o=t+r[0],u=n[o];return u?i=u:(i=K.paFOyM(i),n[o]=i),i},K(n,t)}function X(n,t){return r=>{const e={},i=[];const o=[],u=[];return t[(c=-336,s=-343,K(c- -344,s))]((t=>{const c=t(n,r);function s(n,t,r,e){return K(t-518,e)}function f(n,t,r,e){return K(n-811,e)}typeof c===s(0,527,0,520)?i[s(0,524,0,524)](O(n,r,c)):(c[s(0,528,0,522)]&&function(n,t,r,e){function i(n,t,r,e){return K(t-808,r)}function o(n,t,r,e){return K(n-361,r)}e.TypeAliasDeclaration&&(r[i(0,813,808)]||(r.TypeAliasDeclaration=[]))[o(367,0,373)](O(n,t,e[i(0,813,806)],!0,!0)),e.SourceFile&&(r[i(0,815,821)]||(r[i(0,815,810)]=[]))[o(367,0,364)](O(n,t,e.SourceFile,!0))}(n,r,e,c[f(821,0,0,819)]),c.before&&i[f(817,0,0,818)](O(n,r,c[s(0,529,0,530)])),c[s(0,530,0,527)]&&o.push(O(n,r,c.after)),c[f(824,0,0,828)]&&u[s(0,524,0,519)](O(n,r,c[f(824,0,0,831)])))})),{parser:e,before:i,after:o,afterDeclarations:u};var c,s}}function E(n,t){const r=R();return E=function(t,e){let i=r[t-=0];if(void 0===E.mLmnJB){E.WNHNzn=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,E.mLmnJB=!0}const o=t+r[0],u=n[o];return u?i=u:(i=E.WNHNzn(i),n[o]=i),i},E(n,t)}function R(){const n=["x191DhnvBMLyr2XVyMfSuhjVCgvYDgLLC19F","zMLSzu5HBwu","zMLSzq","zgvSzxrL","AxncAw5HCNLfEhbYzxnZAw9U","A2LUza","u3LUDgf4s2LUza","rxf1ywXZvg9Rzw4","AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","Dg9tDhjPBMC","z2XVyMfSuhjVCgvYDgLLCW","zxnJyxbLzfrLEhq","y29UzMLN","C2v0","DMLZAxrfywnOq2HPBgq"];return(R=function(){return n})()}var k,F;function _(){const n=["AxntB3vYy2vgAwXL","ywrKqMLUzerPywDUB3n0Awm","yMLUzerPywDUB3n0AwnZ","ChvZAa","ywrKqMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJ","yMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJCW"];return(_=function(){return n})()}function Q(n,t){const r=_();return Q=function(t,e){let i=r[t-=0];if(void 0===Q.ZkeKBK){Q.AAIziR=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Q.ZkeKBK=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Q.AAIziR(i),n[o]=i),i},Q(n,t)}globalThis.__utsUniXGlobalProperties__=globalThis[(k=-922,F=-920,E(k- -922,F))]||new Map;function $(n,t){const r=nn();return $=function(t,e){let i=r[t-=0];if(void 0===$.ynqsam){$.OaNZbk=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,$.ynqsam=!0}const o=t+r[0],u=n[o];return u?i=u:(i=$.OaNZbk(i),n[o]=i),i},$(n,t)}function nn(){const n=["C3rHDgvTzw50CW","zM9YrwfJAa","AxnfEhbVCNrezwnSyxjHDgLVBG","Bw9KDwXLu3bLy2LMAwvY","Dgv4Da","zw5KC1DPDgG","lNv0CW","CMvWBgfJzq"];return(nn=function(){return n})()}function tn(n,t){const r=rn();return tn=function(t,e){let i=r[t-=0];if(void 0===tn.wTZZfh){tn.EVbgbu=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,tn.wTZZfh=!0}const o=t+r[0],u=n[o];return u?i=u:(i=tn.EVbgbu(i),n[o]=i),i},tn(n,t)}function rn(){const n=["AxnfEhbYzxnZAw9U","AxnjzgvUDgLMAwvY","ywXPyxntEw1IB2W","Dg9tDhjPBMC","q29TCg9Uzw50uhvIBgLJsw5ZDgfUy2u","q3jLyxrLq29TCg9Uzw50uhvIBgLJsw5ZDgfUy2u","x191DhnvBMLyr2XVyMfSuhjVCgvYDgLLC19F","AgfZ","z2v0","AxnoDw1IzxjmAxrLCMfS","z2v0tNvTyMvYvhLWzq","z2v0u3rYAw5NvhLWzq","zMXHz3m","vhLWzuzSywDZ","z2v0qM9VBgvHBLr5Cgu"];return(rn=function(){return n})()}function en(n,t,r,e){const i=function(n,t,r){function e(n){function t(n,t,r,e){return T(r- -24,e)}return n?.constraintType?.[t(0,0,-19,-17)]?.[t(0,0,-18,-5)]||n}function i(n){if(!n)return!1;const r=t.getNullType();return t[(e=-308,i=-319,T(e- -323,i))](r,n);var e,i}function o(t){function r(n,t,r,e){return T(t- -5,e)}function e(n,t,r,e){return T(e-123,r)}return!!(t&&n[r(0,15,0,21)](t)&&t.types[e(0,0,137,124)]((t=>n[e(0,0,149,144)](t)&&t[r(0,17,0,10)][r(0,18,0,28)]===n[r(0,19,0,3)][e(0,0,159,148)])))}return{ts:n,typeChecker:t,context:r,isImportedSymbol:function(t){function r(n,t,r,e){return T(n- -262,e)}return!(!t[r(-262,0,0,-263)]||!t[r(-262,0,0,-268)][r(-261,0,0,-248)]((t=>{function r(n,t,r,e){return T(e-524,r)}return n[r(0,0,511,526)](t)||n[(e=-518,i=-528,T(i- -531,e))](t)&&t[r(0,0,526,528)];var e,i})))},isPossibleUTSJSONObjectType:function(n,t=!1){function r(n,t,r,e){return T(n- -189,r)}return n?n.isUnion()&&n[r(-172,0,-171)].some((n=>e(n)[r(-182,0,-192)]?.escapedName===S.UTSJSONObject))||e(n).symbol?.[(i=432,o=418,T(o-400,i))]===S[r(-170,0,-169)]:!t;var i,o},isPossibleNullType:i,isPossiblePromiseNullType:function(n){return!!n&&i(t[(r=-131,e=-133,T(r- -147,e))](n));var r,e},createTypeNodeWithNullType:function(t,e){const i=r[c(331,345)],u=o(t);function c(n,t,r,e){return T(n-303,t)}function s(n,t,r,e){return T(n-238,t)}let f=t;return e&&!u&&(f=n[s(258,272)](t)?i[c(332,320)]([...t[s(255,262)],i.createLiteralTypeNode(i[c(333,334)]())]):i[s(267,259)]([t,i[c(334,338)](i[c(333,329)]())])),f},isUnionWithNullType:o,isObjectLiteralType:function(t){if(!t)return!1;if(t[e(-505,-533,-524,-518)]?.escapedName===o(-845,-854,-843))return!0;const r=t?.[e(-511,-503,-513,-516)];function e(n,t,r,e){return T(e- -525,n)}if(r&&(r&n[o(-843,-834,-848)].ObjectLiteral||r&n[e(-529,0,0,-515)][o(-842,-828,-833)]))return!0;const i=t[e(-527,0,0,-513)]();if(i&&i.flags&n[e(-499,0,0,-512)][o(-839,-849,-828)])return!0;function o(n,t,r,e){return T(n- -853,r)}return!1},getMethodNameNodeOfObjectLiteral:function(t){function r(n,t,r,e){return T(r-406,e)}if(n.isMethodDeclaration(t))return t[(e=621,i=619,T(i-615,e))];var e,i;const o=t[r(0,0,432,416)];if(!n.isPropertyAssignment(o))return;const u=o[r(0,0,410,404)];return n[r(0,0,433,436)](u)?u:void 0}}}(n,t,void 0),o=t[f(-1,-2,3)](),u=t[f(5,7,4)](),c=t.getVoidType(),s=t[f(3,5,5)]();function f(n,t,r,e){return on(r-3,t)}const a=t[z(-343,-344)]();function v(n){function t(n,t,r,e){return on(r-550,n)}let r=n[t(557,0,554)]();function e(n,t,r,e){return on(r-52,e)}return 1===r?.[t(552,0,555)]&&r[0].getSymbol()?.[e(0,0,58,62)]()===e(0,0,59,62)}function h(n){return n===u||n===c}function z(n,t,r,e){return on(n- -346,t)}return!!(i[z(-338,-343)](r)&&i[f(0,7,12)](e)||i[z(-338,-337)](r)&&i[f(0,17,12)](e))||(!!(h(r)&&e===o||r===o&&h(e))||(r!==o&&!h(r)||e!==s)&&(e!==o&&!h(e)||r!==s)&&(!!(r===a&&v(e)||v(r)&&e===a)||void 0))}function on(n,t){const r=un();return on=function(t,e){let i=r[t-=0];if(void 0===on.jdrIVi){on.bcFcTj=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,on.jdrIVi=!0}const o=t+r[0],u=n[o];return u?i=u:(i=on.bcFcTj(i),n[o]=i),i},on(n,t)}function un(){const n=["z2v0tNvSBfr5Cgu","z2v0vw5KzwzPBMvKvhLWzq","z2v0qw55vhLWzq","z2v0u3rYAw5NvhLWzq","z2v0qMfZzvr5CgvZ","BgvUz3rO","z2v0tMfTzq","u3rYAw5N","AxnpyMPLy3rmAxrLCMfSvhLWzq","AxnqB3nZAwjSzvvuu0Ptt05pyMPLy3ruExbL"];return(un=function(){return n})()}function cn(){const n=["CMvZB2X2zq","zw52","vu5jx0Loufvux0rjuG","Dw5Px21VzhvSzxm","vu5jx1vuu19qtefurK9stq","yxbWlwLVCW","C3rHCNrZv2L0Aa","CMvSyxrPDMu","CMvWBgfJzq","DxrZC2rR","DxrZC2rRl2fWCc1QCW"];return(cn=function(){return n})()}function sn(n,t){const r=cn();return sn=function(t,e){let i=r[t-=0];if(void 0===sn.elVVWD){sn.IiSqGj=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,sn.elVVWD=!0}const o=t+r[0],u=n[o];return u?i=u:(i=sn.IiSqGj(i),n[o]=i),i},sn(n,t)}function fn(n,t,r,e){return sn(r-473,n)}const an=y(w[fn(473,0,473)](process[(vn=687,hn=685,sn(vn-686,hn))][fn(474,0,475)]||"",fn(479,0,476)));var vn,hn;function zn(n,t,r,e){return Cn(e-423,r)}const ln=y(w.resolve(process[zn(0,0,419,423)].UNI_INPUT_DIR||"",zn(0,0,429,424)));const gn=new RegExp("^"+ln+"/([a-zA-Z0-9_-]+)/index.d.ts$");function Cn(n,t){const r=Ln();return Cn=function(t,e){let i=r[t-=0];if(void 0===Cn.CwfjKj){Cn.IwhKOJ=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Cn.CwfjKj=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Cn.IwhKOJ(i),n[o]=i),i},Cn(n,t)}function Ln(){const n=["zw52","Dw5Px21VzhvSzxm","Bwf0y2G","vu5jx1vuu19qtefurK9stq","yxbWlwLVCW","vu5jx0Loufvux0rjuG","CMvZB2X2zq","DxrZC2rR","yxbWlwPZ","DxrZC2rRl2LUzgv4lNv0CW","zw5KC1DPDgG","lMqUDhm","CMvWBgfJzq","lNz1zq"];return(Ln=function(){return n})()}const wn=process[zn(0,0,424,423)][(dn=-212,xn=-219,Cn(dn- -215,xn))],Bn=wn===zn(0,0,429,427);var dn,xn;function yn(n,t){var r=Dn();return yn=function(t,e){var i=r[t-=0];if(void 0===yn.FxGWDA){yn.yLVmmR=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,yn.FxGWDA=!0}var o=t+r[0],u=n[o];return u?i=u:(i=yn.yLVmmR(i),n[o]=i),i},yn(n,t)}function Dn(){var n=["x191DhniywnRzxjFxW"];return(Dn=function(){return n})()}function mn(n,t,r,e){return yn(r- -505,n)}function Mn(n,t){function r(n,t,r,e){return Sn(t- -173,r)}function e(n,t,r,e){return Sn(t-559,n)}return n[e(568,559)](t)&&n[r(0,-172,-193)](t[r(0,-171,-149)])&&n[e(578,562)](t.expression.expression)&&t[e(567,561)][r(0,-171,-150)][r(0,-169,-171)]===S[e(538,564)]}function An(n,t){function r(n,t,r,e){return Sn(e- -676,r)}function e(n,t,r,e){return Sn(n-846,t)}return n[r(0,0,-647,-670)](void 0,void 0,n[e(853,871)](n.createIdentifier(S.DEFINE_COMPONENT),void 0,[n[r(0,0,-691,-668)]([n[e(855,839)](void 0,void 0,n[e(856,865)](e(857,836)),void 0,void 0,[n[r(0,0,-646,-664)](void 0,void 0,n[r(0,0,-647,-666)](r(0,0,-689,-663)),void 0,void 0,void 0),n[e(858,837)](void 0,void 0,n.createObjectBindingPattern([n[r(0,0,-662,-662)](void 0,void 0,n[r(0,0,-692,-666)](r(0,0,-687,-661)),void 0)]),void 0,void 0,void 0)],void 0,n.createBlock(t,!0))],!0)]))}function pn(){const n=["AxnfEhbYzxnZAw9Uu3rHDgvTzw50","AxndywXSrxHWCMvZC2LVBG","zxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","Dgv4Da","revgsu5fx0vyue9trq","y3jLyxrLrxHWB3j0qxnZAwDUBwvUDa","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLt2jQzwn0tgL0zxjHBev4ChjLC3nPB24","y3jLyxrLtwv0Ag9KrgvJBgfYyxrPB24","y3jLyxrLswrLBNrPzMLLCG","C2v0Dxa","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","ChjVChm","y3jLyxrLqMLUzgLUz0vSzw1LBNq","zxHWB3nL","AxntB3vYy2vgAwXL","C3rHCNrZv2L0Aa","lY8Gqhv0CY1Zzxr1CaO","C3rHDgvTzw50CW","BgvUz3rO","AxnjBxbVCNrezwnSyxjHDgLVBG","ChvZAa","AxnfEhbVCNrbC3nPz25Tzw50","ywrKqMLUzerPywDUB3n0Awm","y3jLyxrLuMv0DxjUu3rHDgvTzw50","yxjNDw1LBNrZ","DxbKyxrLu291CMnLrMLSzq","DMLZAxrfywnOq2HPBgq","DxbKyxrLrxHWB3j0qxnZAwDUBwvUDa","revgsu5fx0fqua","revgsu5fx0nptvbptKvova","AxnwDwvgAwXL","yMfZzw5HBwu","zMLSzu5HBwu","C3bSAxq","Dg9mB3DLCKnHC2u","yxbWlNv2Dwu","DgvZDa","DMLZAxroB2rL","y3jLyxrLsw1WB3j0q2XHDxnL","y3jLyxrLtMfTzwrjBxbVCNrZ","y3jLyxrLu3rYAw5NtgL0zxjHBa","vLvf","Bw9KDwXLu3bLy2LMAwvY","AxntDhjPBMDmAxrLCMfS","Aw1WB3j0q2XHDxnL","AxnjBxbVCNrdBgf1C2u","BMfTzwrcAw5KAw5NCW","zwXLBwvUDhm","DxbKyxrLsw1WB3j0rgvJBgfYyxrPB24","Bw9KAwzPzxjZ","BMfTzq","yxnZzxj0q2XHDxnL"];return(pn=function(){return n})()}function Sn(n,t){const r=pn();return Sn=function(t,e){let i=r[t-=0];if(void 0===Sn.vWQQNs){Sn.SRmfFC=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Sn.vWQQNs=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Sn.SRmfFC(i),n[o]=i),i},Sn(n,t)}globalThis[mn(-504,0,-505)]={...globalThis[mn(-506,0,-505)],isTypeRelatedTo:function(n,t,r,e){return en(n,t,r,e)},isRelatedTo:en,tryFileLookup:function(n){if(!process.env[(t=-520,r=-522,Cn(r- -527,t))])return;var t,r;function e(n,t,r,e){return Cn(t- -633,e)}const i=function(n){const t=n[(r=-980,e=-981,Cn(e- -983,r))](gn);var r,e;return t?t[1]:""}(n);if(i){const n=w[e(0,-627,0,-630)](ln,i,e(0,-626,0,-624),Bn?e(0,-625,0,-619):wn,"index.uts");if(A(n))return y(n);if(Bn)return;const t=w[e(0,-627,0,-629)](ln,i,e(0,-624,0,-618));if(A(t))return y(t)}else if(n[e(0,-623,0,-629)](e(0,-622,0,-619))&&!A(n)){const t=n[e(0,-621,0,-622)](/\.d\.ts$/,""),r=t+".uvue";if(A(r))return r+".ts";const i=t+e(0,-620,0,-614);if(A(i))return i+".ts"}},componentPublicInstancePropertyAccessFallback:function(n,t,r,e,i,o){if(!n.isPropertyAccessExpression(r)||!n[c(550,547)](e)||!n[f(-61,-54,-57)](o))return;const u=i[c(552,547)]?.escapedName[c(553,558)]();if(u!==c(554,548)&&u!==f(-52,-54,-53))return;function c(n,t,r,e){return tn(n-550,t)}const s=o.escapedText[c(553,555)]();function f(n,t,r,e){return tn(r- -58,t)}const a=globalThis?.[f(0,-51,-52)];if(a&&a[f(0,-57,-51)](s)){const{initializerNode:r}=a[c(558,565)](s),e=t.getTypeAtLocation(r);return e[c(559,554)]()?t[f(0,-44,-48)]():e.isStringLiteral()?t[f(0,-50,-47)]():e[c(562,564)]&n[c(563,566)].BooleanLiteral?t[f(0,-46,-44)]():e}},isRequireIOSNativeUtsSdk:function(n,t){if(!process[o(-293,-302,-291,-297)][i(-975,-970,-972,-971)])return!1;if(process[o(-294,-294,-297,-297)][o(-295,-295,-299,-294)]!==o(-288,-299,-296,-293))return!1;let r=t;if(t[i(-960,-966,-965,-969)]("@/"))r=w[o(-296,-303,-298,-298)](process.env.UNI_INPUT_DIR,t.slice(2));else if(t[o(-295,-294,-295,-292)]("."))r=w.resolve(w.dirname(n),t);else if(!w.isAbsolute(t))return!1;const e=w[i(-965,-965,-960,-971)](an,r)[o(-295,-294,-285,-290)](/\\/g,"/");function i(n,t,r,e){return sn(t- -972,e)}if(e[i(0,-966,0,-965)](".")||e.indexOf("/")>-1)return!1;function o(n,t,r,e){return sn(e- -298,n)}return!(!A(w.resolve(an,e,o(-286,0,0,-289)))||A(w[o(-296,0,0,-298)](an,e,i(0,-962,0,-968))))},isUtsCompiler:!0,hijackAnyNullUnionType:!0,hijackTsLibResolve:!0,hijackDestructuring:!0,ignoreInstanceofLeftType:!0,ignoreInstanceofRightType:!0,useTypeAndInterfaceAsValue:!0,ignoreAllDebugFail:!0};S.DEFINE_MIXIN,S.DEFINE_PLUGIN;var bn=[(n,t)=>{function r(t,r){var e,i;function o(n,t,r,e){return Q(r-159,t)}return n[o(160,158,159)](r)&&!t.addBindDiagnostic&&(t[(e=-358,i=-355,Q(e- -359,i))]=n=>{function t(n,t,r,e){return Q(e- -806,n)}r[t(-801,0,0,-804)][t(-800,0,0,-803)](n)},t[o(166,164,163)]=n=>{function t(n,t,r,e){return Q(t- -994,n)}var e,i;!r[t(-990,-989)]&&(r[t(-991,-989)]=[]),r[(e=-660,i=-658,Q(e- -665,i))][t(-994,-991)](n)}),r}return{before:n=>t=>r(n,t),after:n=>t=>r(n,t),afterDeclarations:n=>t=>r(n,t)}},n=>({parser:{SourceFile(t){const{factory:r}=t;let e=!1,i=!1;const o=u=>{function c(n,t,r,e){return Sn(t- -646,r)}if(n[s(-726,-752)](u)){if(i&&u[s(-776,-764)][s(-755,-751)](c(0,-628,-640))){const e=u[c(0,-627,-653)],i=[],o=[],f=[];for(let u=0;u<e[c(0,-626,-648)];u++){const a=e[u];if(n[s(-735,-747)](a))i[s(-746,-746)](a);else if(n[c(0,-623,-617)](a)){if(n.isObjectLiteralExpression(a.expression)&&0===a[s(-784,-766)].properties[c(0,-626,-644)])continue;const r=n.createDiagnosticForNode(a,I.script_setup_cannot_contain_ES_module_exports);t[c(0,-622,-645)](r)}else Mn(n,a)?f.push(r[c(0,-621,-602)](a[s(-751,-766)][c(0,-620,-601)][0])):o[c(0,-624,-609)](a)}return r[s(-750,-741)](u,[...i,An(r,[...o,...f])])}return n[c(0,-618,-632)](u,o,t)}function s(n,t,r,e){return Sn(t- -768,n)}return n[s(-766,-745)](u)&&n.isObjectLiteralExpression(u[c(0,-644,-651)])?r[c(0,-617,-640)](u,u.modifiers,r.createCallExpression(r.createIdentifier(e?S[s(-758,-738)]:S[c(0,-615,-599)]),void 0,[u[s(-741,-766)]])):u};return t=>{if(!t[u(30,35,38,49)]||t.fileName.indexOf("setup=true")>-1)return t;function u(n,t,r,e){return Sn(n- -2,e)}const c=w[s(600,608,602,590)](t[s(630,626,603,585)])[s(581,603,604,594)]("?")[0][s(586,615,605,618)]();function s(n,t,r,e){return Sn(r-569,e)}(c===s(0,0,606,603)||"app.uvue.ts"===c)&&(e=!0),/.u?vue.ts/[u(36,0,0,36)](c)&&(i=!0);const f=n[u(37,0,0,10)](t,o);return f!==t?r[s(0,0,596,583)](f,[r.createImportDeclaration(void 0,r[u(38,0,0,56)](!1,void 0,r[s(0,0,610,614)]([r.createImportSpecifier(!1,void 0,r[u(8,0,0,8)](e?S[s(0,0,599,623)]:S[s(0,0,600,624)]))])),r[s(0,0,611,595)](S[u(41,0,0,66)])),...f[u(17,0,0,18)]]):f}}},before(t){const{factory:r}=t,e=i=>{if(n[o(-655,-629,-644)](i))return n.visitEachChild(i,e,t);if(n[u(-125,-99,-116,-111)](i)&&n[o(-670,-677,-679)](i[u(-146,-120,-137,-143)]))return r.updateExportAssignment(i,i.modifiers,r.createCallExpression(r.createIdentifier(S[u(-103,-104,-108,-118)]),void 0,i[o(-669,-684,-655)].arguments));if(n.isImportDeclaration(i)&&i[u(-97,-75,-95,-97)]&&n[u(-82,-111,-94,-89)](i[u(-101,-98,-95,-107)])&&i[o(-627,-600,-633)][u(-151,-157,-135,-158)]===S[u(-96,-115,-96,-108)]&&i[u(-69,-112,-93,-120)]&&n[o(-624,-623,-608)](i[o(-625,-618,-604)])&&i[o(-625,-607,-640)][u(-118,-94,-91,-99)]&&n.isNamedImports(i[o(-625,-629,-609)][u(-79,-106,-91,-83)])&&i[u(-119,-68,-93,-81)][u(-81,-92,-91,-64)][u(-74,-83,-90,-116)].some((n=>n.name[u(-155,-151,-135,-157)]===S.DEFINE_APP)))return r[u(-87,-102,-89,-84)](i,i[o(-620,-627,-602)],r.updateImportClause(i[o(-625,-648,-631)],!1,void 0,r.createNamedImports(i[u(-82,-116,-93,-76)][o(-623,-605,-638)][u(-106,-66,-90,-92)].filter((n=>n[u(-101,-86,-87,-105)][u(-147,-120,-135,-108)]!==S[u(-113,-87,-109,-109)])))),i[o(-627,-634,-638)],i[u(-67,-75,-86,-66)]);function o(n,t,r,e){return Sn(n- -671,r)}function u(n,t,r,e){return Sn(r- -139,e)}return i};return t=>{if(!t[r(57,50,46,52)])return t;function r(n,t,r,e){return Sn(n-25,e)}function i(n,t,r,e){return Sn(e-733,n)}return w[r(58,0,0,32)](t[i(794,754,745,767)])[r(60,0,0,43)]("?")[0][r(61,0,0,35)]()===i(775,784,748,770)&&(t=n.visitNode(t,e)),t}}}),n=>({parser:{SourceFile:t=>t=>{var r,e,i,o;return t[(i=660,o=660,$(i-660,o))][(r=-63,e=-66,$(r- -64,e))]((t=>{function r(n,t,r,e){return $(e-761,r)}function e(n,t,r,e){return $(t- -159,n)}if((n.isImportDeclaration(t)||n[r(0,0,764,763)](t))&&t.moduleSpecifier&&n.isStringLiteral(t[r(0,0,763,764)])){const n=t[r(0,0,763,764)][e(-154,-155)];(n[e(-150,-154)](r(0,0,765,767))||n.endsWith(".ts"))&&(t[e(-155,-156)][e(-157,-155)]=n[e(-149,-152)](/.u?ts$/,""))}})),t}}})];function jn(n,t){const r=Wn();return jn=function(t,e){let i=r[t-=0];if(void 0===jn.McAzBX){jn.ZmREtl=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,jn.McAzBX=!0}const o=t+r[0],u=n[o];return u?i=u:(i=jn.ZmREtl(i),n[o]=i),i},jn(n,t)}const qn=/\.(u)?vue(.ts)?/;let Pn;const Un=new Set;function Nn(n){return Zn(n)||n[(t=372,r=362,jn(r-362,t))](jn(-573- -574,-586))||Un.has(e.normalizePath(n));var t,r}function Zn(n){return qn[(t=23,r=36,jn(r-34,t))](n);var t,r}function Wn(){const n=["Aw5JBhvKzxm","lNv0CW","DgvZDa","ChjLvvz1zuPZ","Dw5Pq2XPu2HHCMvK","zMLUza","DgfN","C2nYAxb0","zxHWB3j0igrLzMf1BhqGE30","ChjVChm","C29Tzq","BMfTzq","C2v0Dxa","y2HPBgrYzw4","y29UDgvUDa","x19YzxDYAxrLza","C3LZ","zw5KC1DPDgG","lNrZ","AgfZ","CMvWBgfJzq","ywrK","lNz1zs50CW","lNv2DwuUDhm","CNvUDgLTzurptujHAwXuExbLCZOGtM9Kzsb8ifDPBMrVDZS","x191DhniywnRzxjFxW"];return(Wn=function(){return n})()}function Yn(n,t){function r(n,t,r,e){return jn(e-143,t)}if(Pn=n,!Pn.sys[r(0,160,0,158)]){const{fileExists:n,readFile:u,realpath:c}=Pn[r(0,154,0,159)];Pn[r(0,165,0,159)].realpath=n=>{const t=c?c(n):n;function r(n,t,r,e){return jn(n-533,e)}function i(n,t,r,e){return jn(e-621,t)}return t[r(550,0,0,547)](i(0,651,0,639))&&Un[r(552,0,0,548)](e.normalizePath(n))?n[i(0,633,0,641)](i(0,635,0,639),".uts"):t},Pn[(i=-24,o=-35,jn(i- -40,o))].fileExists=t=>{if(t[i(642,636,629)](".ts")&&n(t.replace(r(172,183,190,182),r(158,165,153,165))))return Un[i(628,640,653)](e.normalizePath(t)),!0;function r(n,t,r,e){return jn(e-164,r)}if((t[i(627,636,636)](i(642,641,634))||t[i(641,636,637)](r(0,0,187,187)))&&n(t[r(0,0,185,184)](/.ts$/,"")))return!0;function i(n,t,r,e){return jn(t-619,r)}return n(t)},Pn.sys.readFile=(r,i)=>{if(r[o(749,760,742,754)](o(750,752,740,737))&&Un.has(e.normalizePath(r))){const n=r[o(752,749,756,745)](f(-607,-623,-605,-613),o(733,742,730,724)),e=u(n,i);if(!e)return;return function(n,t){function r(n,t,r,e){return jn(e- -484,t)}return t[r(0,-468,0,-480)].preUVueJs(t[r(0,-493,0,-480)][r(0,-471,0,-481)](n))}(e,t)}function o(n,t,r,e){return jn(n-732,e)}if(r.endsWith(f(-621,-611,-621,-609))||r[o(749,0,0,749)](f(-616,-606,-621,-608))){const e=r[f(-609,-602,-615,-611)](/.ts$/,"");if(n(e)){const n=u(e,i);if(!n)return;return function(n,t){n=t.uniCliShared[i(211,210,216)](t[i(212,206,202)].preUVueHtml(n));const r=t.vueCompilerDom.parse(n).children[i(213,214,226)]((n=>n[e(-841,-840,-830,-835)]===i(215,203,206)));function e(n,t,r,e){return jn(n- -847,e)}function i(n,t,r,e){return jn(n-208,r)}const o=i(216,0,224);return r?r[i(217,0,204)][e(-837,0,0,-839)]((n=>n[i(219,0,215)]===e(-835,0,0,-826)))?"// @uts-setup\n"+(r?.[i(221,0,221)][0]?.content||"")+"\n"+o:r?.[i(221,0,213)][0]?.[i(222,0,212)]||o:o}(n,t)}}let c=u(r,i);if(!c)return;r[f(-615,-614,-608,-614)]("runtime-dom/dist/runtime-dom.d.ts")&&(c=c.replace(f(-619,-609,-614,-607),""));const s=globalThis?.[o(757,0,0,767)]?.replaceVueTypes;function f(n,t,r,e){return jn(e- -631,r)}return s?s(r,c):c},Pn[r(0,159,0,159)].__rewrited=!0}var i,o}function Hn(n,t){const r=Vn();return Hn=function(t,e){let i=r[t-=0];if(void 0===Hn.lTjreT){Hn.aXVhAU=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Hn.lTjreT=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Hn.aXVhAU(i),n[o]=i),i},Hn(n,t)}function Vn(){const n=["z2v0q2fUB25Py2fSrMLSzu5HBwu","BM9YBwfSAxPL","z2v0tMv3tgLUzq","BMv3tgLUzq","z2v0q3vYCMvUDerPCMvJDg9YEq","C3LZ"];return(Vn=function(){return n})()}class In{constructor(){function n(n,t,r,e){return Hn(n-72,e)}function t(n,t,r,e){return Hn(r-368,t)}this[t(366,366,368)]=w[n(73,73,74,70)],this[t(0,373,370)]=()=>Pn.sys[n(75,0,0,74)]}[function(n,t,r,e){return Hn(r- -600,t)}(0,-597,-596)](){return Pn[(r=-985,e=-985,Hn(e- -990,r))][(n=974,t=974,Hn(t-970,n))]();var n,t,r,e}}const Tn=new In;function Jn(){const n=["DhLWzq","vvrtq29TCgLSzxjfCNjVCG","zMXHDhrLBKrPywDUB3n0AwnnzxnZywDLvgv4Da","BwvZC2fNzvrLEhq","z2v0tMv3tgLUzq","zM9YBwf0rgLHz25VC3rPy3nxAxrOq29SB3jbBMrdB250zxH0","y2f0zwDVCNK","y29Kzq","zMLSzq","z2v0tgLUzufUzenOyxjHy3rLCK9Mug9ZAxrPB24","C3rHCNq","tevbu1rFvvbqrvjFqK9vtKq","BgLUzq","C291CMnLq29UDgvUDezVCG","C291CMnL","B3jPz2LUywXqB3nPDgLVBKzVCG","y29SDw1U","CM9SBhvWrxjYB3i","zMLSzu5HBwu","zMXHDe1LC3nHz2u","DxrZq29TCgLSzxjfCNjVCG","zw52","vu5jx0Loufvux0rjuG","C3bSAxq","zMLSzuXPBMu","zM9YrwfJAa","rgLHz25VC3rPy0nHDgvNB3j5","twvZC2fNzq","Aw5MBW","rxjYB3i","zxjYB3i","v2fYBMLUzW","D2fYBG","D2fYBMLUzW","y2fSBa","ifrt","C3rYAw5N","rxHWzwn0zwqGysbGC3rYAw5NycWGz290iga","CMvWBgfJzq","w1X1mdaXqLX1mda5qL1Bw1XDkcKJoZ9DkIG/oIG/oIG/oIG/oJTBlweTEKeTwLXKxc8JjI46pt8Lqh5FxsSPkNXBys16qs1AxgrDkYG/oJTBlweTEKeTwLXKxc8JjI46pt8Lqh5FxsOPkIK/xhuWmda3kq","kd86kd86xgr7msW0FsG/oJTCzhSWldr9ksOPp1TCzeeTufiTvfPJzI1UCs11Et0+ph5DksK"];return(Jn=function(){return n})()}function Gn(n,t,r){return t.map((t=>function(n,t,r){function i(n,t,r,e){return Xn(r- -702,e)}function o(n,t,r,e){return Xn(r-615,n)}const u={flatMessage:Pn[o(610,0,617)](t[o(623,0,618)],Tn[o(629,0,619)]()),formatted:Pn[o(602,0,620)]([t],Tn),category:t[o(627,0,621)],code:t[i(0,0,-695,-701)],type:n};if(t[i(0,0,-694,-707)]&&void 0!==t.start){let{line:n,character:s}=t[o(626,0,623)][i(0,0,-693,-707)](t[i(0,0,-692,-685)]);if(r){const f=r.originalPositionFor({line:n+1,column:s,bias:a.SourceMapConsumer[o(639,0,626)]});if(null!==f[i(0,0,-690,-693)]){if(f.source){const a=r[i(0,0,-689,-710)](f[o(643,0,629)]);if(a){const{line:h,character:z}=t[o(606,0,623)][o(618,0,624)](t[i(0,0,-692,-699)]+(t.length||0)),l=r[i(0,0,-687,-684)]({line:h+1,column:z});if(null!==l[o(615,0,627)]){const r=v.codeFrameColumns(a,{start:{line:f[i(0,0,-690,-685)],column:(f[o(614,0,631)]||0)+1},end:{line:l[i(0,0,-690,-708)],column:(l[i(0,0,-686,-694)]||0)+1}});u[i(0,0,-685,-699)]={id:c=t.file[i(0,0,-684,-697)],message:u[i(0,0,-683,-667)],frame:r,loc:{file:c,line:n+1,column:s+1}},u[o(644,0,635)]={type:i(0,0,-701,-687),file:e.normalizePath(w.relative(process[o(627,0,636)][i(0,0,-680,-659)],t[o(640,0,623)][i(0,0,-684,-704)][o(644,0,638)]("?")[0])),line:f.line,column:f[i(0,0,-686,-705)]||0,message:u[o(622,0,634)],frame:r}}}}n=f[i(0,0,-690,-676)]}}u[o(644,0,639)]=t[i(0,0,-694,-706)].fileName+"("+(n+1)+","+(s+1)+")"}var c;return u}(n,t,r)))}function On(n,t,r=!0){var e,o;t[(e=481,o=471,Xn(o-446,e))]((t=>{let e,o,u;function c(n,t,r,e){return Xn(r-496,e)}function s(n,t,r,e){return Xn(t- -484,n)}switch(t[s(-464,-478)]){case Pn[s(-439,-458)][s(-477,-457)]:e=n[s(-464,-456)],o=i.white,u="";break;case Pn[c(0,0,522,532)][s(-445,-455)]:e=n[c(0,0,526,531)],o=i.red,u="error";break;case Pn[s(-443,-458)][c(0,0,527,507)]:default:e=n[c(0,0,528,527)],o=i.yellow,u=s(-440,-451)}const f=t[s(-489,-484)]+" ";return r?t[c(0,0,516,496)]?e[c(0,0,530,537)](n,t[s(-444,-464)]):t[c(0,0,513,516)]?e[c(0,0,530,540)](n,t[c(0,0,513,513)]):e[c(0,0,530,547)](n,""+(i.enabled?t.formatted:function(n){if(typeof n!==t(356,326,335))throw new TypeError(r(880,869,862,875)+typeof n+"`");function t(n,t,r,e){return Xn(r-299,t)}function r(n,t,r,e){return Xn(t-832,e)}return n[t(356,328,337)](Kn,"")}(t.formatted))):void 0!==t[c(0,0,520,524)]?e[c(0,0,530,534)](n,t.fileLine+": "+f+u+" TS"+t[s(-476,-477)]+": "+o(t[s(-480,-465)])):e[s(-457,-450)](n,""+f+u+s(-449,-449)+t[s(-484,-477)]+": "+o(t[s(-461,-465)]))}))}const Kn=function({onlyFirst:n=!1}={}){function t(n,t,r,e){return Xn(r-898,t)}const r=[t(0,945,937),t(0,932,938)].join("|");return new RegExp(r,n?void 0:"g")}();function Xn(n,t){const r=Jn();return Xn=function(t,e){let i=r[t-=0];if(void 0===Xn.jnCajk){Xn.MsyeTi=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Xn.jnCajk=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Xn.MsyeTi(i),n[o]=i),i},Xn(n,t)}function En(){var n=["rxjYB3i","v2fYBMLUzW","sw5MBW","rgvIDwC","DMvYyM9ZAxr5","yMfPBa","y29UDgv4Da","ChjLzML4","D2fYBG","zxjYB3i","C3rYAw5N","zNvUy3rPB24","D2fYBMLUzZOG","BwvZC2fNzq","zMLSzq","BgLUzq","Bg9N","zNjHBwu","Aw5MBW","zgvIDwC"];return(En=function(){return n})()}var Rn;function kn(n,t){var r=En();return kn=function(t,e){var i=r[t-=0];if(void 0===kn.FEkzXY){kn.JRHRlI=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,kn.FEkzXY=!0}var o=t+r[0],u=n[o];return u?i=u:(i=kn.JRHRlI(i),n[o]=i),i},kn(n,t)}function Fn(n,t,r,e){return kn(e-197,t)}function _n(n){return"string"==typeof n?n:n()}!function(n){function t(n,t,r,e){return kn(r- -385,e)}function r(n,t,r,e){return kn(e- -565,r)}n[n[r(-561,-566,-573,-565)]=0]=r(-570,-570,-569,-565),n[n[t(0,0,-384,-390)]=1]=t(0,0,-384,-391),n[n[r(0,0,-557,-563)]=2]=t(0,0,-383,-387),n[n.Debug=3]=r(0,0,-553,-562)}(Rn||(Rn={}));class Qn{constructor(n,t,r,e=""){function i(n,t,r,e){return kn(r-490,n)}var o,u;this[i(488,503,494)]=n,this[(o=-759,u=-749,kn(u- -754,o))]=t,this[i(496,0,496)]=r,this[i(501,0,497)]=e}[Fn(0,201,0,205)](n){function t(n,t,r,e){return kn(t-815,e)}this[t(0,819,0,813)]<Rn[t(0,816,0,813)]||this.context[t(0,823,0,826)](""+_n(n))}[Fn(0,197,0,206)](n){function t(n,t,r,e){return kn(n-57,t)}function r(n,t,r,e){return kn(t- -597,e)}this[r(0,-593,0,-583)]<Rn.Error||(this.bail?typeof n===r(0,-587,0,-585)||typeof n===t(68,64)?this[t(63,67)].error(""+_n(n)):this.context[r(0,-588,0,-597)](n):!function(n){function t(n,t,r,e){return Xn(t-323,r)}return n[t(0,323,333)]===t(0,324,305)}(n)?typeof n===t(67,76)||typeof n===t(68,67)?this[t(63,68)][r(0,-589,0,-579)](""+_n(n)):this[r(0,-591,0,-589)][t(65,59)](n):(console.warn(t(69,70)+n[r(0,-584,0,-578)]),console[t(65,65)]("at "+n[t(71,64)]+":"+n[r(0,-582,0,-574)]+":"+n.column),console[t(73,68)](n[t(74,68)])))}[Fn(0,207,0,215)](n){function t(n,t,r,e){return kn(n-359,e)}var r,e;this[t(363,0,0,368)]<Rn[t(361,0,0,363)]||console.log(""+this[(r=735,e=744,kn(r-728,e))]+_n(n))}[Fn(0,225,0,216)](n){function t(n,t,r,e){return kn(e-251,r)}this[t(262,262,246,255)]<Rn.Debug||console[t(0,0,268,267)](""+this.prefix+_n(n))}}function $n(n,t){const r=nt();return $n=function(t,e){let i=r[t-=0];if(void 0===$n.LPFzao){$n.WdWDWm=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,$n.LPFzao=!0}const o=t+r[0],u=n[o];return u?i=u:(i=$n.WdWDWm(i),n[o]=i),i},$n(n,t)}function nt(){const n=["l3bSywnLAg9SzgvY","B3b0Aw9UCW","Bw9KDwXLuMvZB2X1DgLVBG","tw9KDwXLuMvZB2X1DgLVBKTPBMq","tM9KzteW","Bw9KDwXL","C291CMnLtwfW","ChvZAa","AM9PBG","Aw5JBhvKzq","zxHJBhvKzq","CM9VDerPCNm","ChjVAMvJDfjLzMvYzw5Jzxm","y29Uy2f0","BwfW","Cgf0Aa","zgvIDwC","Aw5JBhvKzwq6cG","C3rYAw5NAwz5","zxHJBhvKzwq6cG","CM9VDerPCG"];return(nt=function(){return n})()}function tt({useTsconfigDeclarationDir:n,cacheRoot:t},r){const i={noEmitHelpers:!1,importHelpers:!0,noResolve:!1,noEmit:!1,noEmitOnError:!1,inlineSourceMap:!1,outDir:e.normalizePath(t+u(172,169)),allowNonTsExtensions:!0};if(!r)return i;function o(n,t,r,e){return $n(t- -369,e)}r[o(-370,-368,-377,-370)][u(174,174)]===Pn[o(-374,-366,-359,-375)].Classic&&(i[u(174,184)]=Pn.ModuleResolutionKind[u(176,167)]),void 0===r[o(0,-368,0,-359)][o(0,-364,0,-369)]&&(i[u(177,181)]=Pn.ModuleKind.ES2015),n||(i.declarationDir=void 0);function u(n,t,r,e){return $n(n-172,t)}return r.options[o(0,-363,0,-366)]||(i.sourceRoot=void 0),i}function rt(n,t){const r=[];return t.forEach((t=>{function i(n,t,r,e){return $n(r- -687,n)}n instanceof Array?n.forEach((n=>{return r[i(-680,0,-680)](e.normalizePath(w[(o=-199,u=-200,$n(o- -207,u))](t,n)));var o,u})):r[i(-675,0,-680)](e.normalizePath(w[i(-680,0,-679)](t,n)))})),r}function et(n,t,r,e){return ot(t- -146,n)}function it(){const n=["DhjHBNnMB3jTzxjZ","y3DK","C25HChnOB3rZ","y3vZDg9TugfYC2vY","z2v0u2nYAxb0rMLSzu5HBwvZ","zMLSzu5HBwvZ","DMfSDwvZ","z2v0q29TCgLSyxrPB25tzxr0Aw5NCW","B3b0Aw9UCW","z2v0vhLWzvjVB3rZvMvYC2LVBG","DxnLq2fZzvnLBNnPDgL2zuzPBgvoyw1LCW","C3LZ","z2v0rgvMyxvSDeXPyKzPBgvoyw1L","CMvHzerPCMvJDg9YEq","CMvHzezPBgu","zMLSzuv4Axn0CW","zgLYzwn0B3j5rxHPC3rZ","z2v0rgLYzwn0B3jPzxm","CMvHBhbHDgG","DhjHy2u","Bg9N","DMvYC2LVBNm","C2v0tgfUz3vHz2vtzxj2AwnL","AxnvvfngAwXL","AxnwDwvgAwXL","C2vYDMLJzq","y3vZDg9TvhjHBNnMB3jTzxjZ","Aw5PDfrYyw5ZzM9YBwvYCW","C2v0u25HChnOB3q","zw5KC1DPDgG","lNv0CW","CMvWBgfJzq","lNrZ","zNjVBvn0CMLUzW","ywrK","z2v0u2nYAxb0u25HChnOB3q","z2v0u2nYAxb0vMvYC2LVBG","Dg9tDhjPBMC","BgvUz3rO","CgfYC2vY","yMvMB3jL","y29Uy2f0","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm","x191DhnqyxjZzxjFxW","C2v0q29TCgLSzxjiB3n0"];return(it=function(){return n})()}function ot(n,t){const r=it();return ot=function(t,e){let i=r[t-=0];if(void 0===ot.rYrqKG){ot.gLOtXx=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,ot.rYrqKG=!0}const o=t+r[0],u=n[o];return u?i=u:(i=ot.gLOtXx(i),n[o]=i),i},ot(n,t)}function ut(n,t,r,e){return ot(e- -453,t)}class ct{constructor(n,t,r){function e(n,t,r,e){return ot(n- -32,e)}function i(n,t,r,e){return ot(n-158,e)}this.parsedConfig=n,this[i(158,155,180,158)]=t,this[i(159,148,178,149)]=r,this[e(-30,0,0,-30)]={},this.versions={},this[e(-29,0,0,-52)]={},this[i(162,149,183,173)]=()=>Array.from(this[i(163,150,155,162)][i(164,175,149,181)]()),this[i(165,165,171,180)]=()=>this.parsedConfig[i(166,176,188,183)],this[e(-23,0,0,-26)]=()=>0,this.getCurrentDirectory=()=>this[e(-31,0,0,-35)],this[e(-22,0,0,-3)]=()=>Pn[e(-21,0,0,-12)][i(168,163,182,176)],this[e(-20,0,0,-23)]=Pn.getDefaultLibFilePath,this[e(-19,0,0,-25)]=Pn[i(169,180,177,148)][i(171,180,172,172)],this[e(-18,0,0,-1)]=Pn.sys.readFile,this[e(-17,0,0,0)]=Pn.sys[i(173,153,191,191)],this[i(174,183,184,182)]=Pn[e(-21,0,0,-31)][e(-16,0,0,-36)],this[i(175,176,189,154)]=Pn[e(-21,0,0,-12)][i(175,193,173,160)],this[e(-14,0,0,-2)]=Pn[e(-21,0,0,-13)][e(-14,0,0,4)],this[i(177,0,0,167)]=console[i(178,0,0,189)],this[i(163,0,0,177)]=new Set(n[e(-27,0,0,-23)])}reset(){var n,t;this.snapshots={},this[(n=631,t=649,ot(n-610,t))]={}}[et(-115,-124)](n){function t(n,t,r,e){return ot(n- -496,r)}function r(n,t,r,e){return ot(r- -337,e)}n[t(-473,-464,-458)]=Nn,n[r(-296,-326,-313,-294)]=Zn,this[t(-471,0,-460)]=n,!this[t(-470,0,-481)]&&this[r(0,0,-310,-315)](this.transformers||[])}[ut(0,-407,0,-425)](n,t){function r(n,t,r,e){return ot(t-555,e)}function i(n,t,r,e){return ot(e- -472,r)}(n=e.normalizePath(n))[r(0,584,0,588)](r(0,585,0,597))&&this.setSnapshot(n[r(0,586,0,576)](/\.uts$/,r(0,587,0,578)),t);const o=Pn.ScriptSnapshot[i(0,0,-449,-439)](t);return this[i(0,0,-464,-470)][n]=o,this[i(0,0,-455,-451)][n]=(this[i(0,0,-450,-451)][n]||0)+1,this[r(0,560,0,574)][i(0,0,-427,-438)](n),o}[ut(0,-422,0,-418)](n){function t(n,t,r,e){return ot(n-467,r)}if((n=e.normalizePath(n))in this[t(469,0,476)])return this[t(469,0,457)][n];const r=Pn[t(478,0,492)][(i=41,o=47,ot(o-33,i))](n);var i,o;return r?this.setSnapshot(n,r):void 0}[et(-126,-110)](n){function t(n,t,r,e){return ot(e-944,r)}return n=e.normalizePath(n),(this[t(0,0,982,965)][n]||0)[t(0,0,990,981)]()}[et(-115,-119)](n){if(void 0===this[e(-165,-146)]||void 0===n||0===this.transformers[e(-152,-139)])return;const t={before:[],after:[],afterDeclarations:[]};for(const i of n){const n=i(this.service);n.parser&&(this[r(788,798,786)]=n[e(-151,-145)]),n.before&&(t[r(850,835,825)]=t.before[e(-149,-142)](n[e(-150,-164)])),n[r(814,837,850)]&&(t[e(-148,-155)]=t[r(817,837,860)][e(-149,-153)](n[e(-148,-135)])),n[e(-147,-164)]&&(t.afterDeclarations=t.afterDeclarations[e(-149,-169)](n[e(-147,-137)]))}function r(n,t,r,e){return ot(t-795,r)}function e(n,t,r,e){return ot(n- -190,t)}return this[e(-164,-186)]=t,globalThis[e(-146,-167)]=this[e(-187,-203)],t}getCustomTransformers(){return this.customTransformers}[et(-123,-101)](n){}}function st(){const n=["zMLUzenVBMzPz0zPBgu","C3LZ","zMLSzuv4Axn0CW","DhnJB25MAwC","zxjYB3i","zMfPBgvKihrVig9Wzw4GjW","y3DK","CMvHzezPBgu","CgfYC2vdB25MAwDgAwXLvgv4DfrVsNnVBG","y29UzMLN","zMfPBgvKihrVihbHCNnLicC","BwvYz2u","DhnJB25MAwDezwzHDwX0CW","CgfYC2vkC29Uq29UzMLNrMLSzunVBNrLBNq","B3b0Aw9UCW","Bw9KDwXL","tw9KDwXLs2LUza","rvmYmde1","rvmYmdiW","rvmYmdiY","rvnozxH0","sw5JB21WyxrPyMXLihrZy29UzMLNig9WDgLVBI4Gtw9KDwXLihjLC29SDMvZihrVicC","jY4GvgHPCYbPCYbPBMnVBxbHDgLIBguGD2L0AcbsB2XSDxaSihbSzwfZzsb1C2uGj21VzhvSztOGiKvtmJaXnsiNlcaNBw9KDwXLoIaIrvmYmdiWiICSicDTB2r1Bgu6icjfuZiWmJiIjYWGB3iGj21VzhvSztOGiKvttMv4DciNlG","zxjYB3jZ","zgvIDwC","yNvPBhqTAw4GB3b0Aw9UCYbVDMvYCMLKzxm6ia","C3rYAw5NAwz5","CgfYC2vKihrZy29UzMLNoIa"];return(st=function(){return n})()}function ft(n,t){const r=st();return ft=function(t,e){let i=r[t-=0];if(void 0===ft.UVdvRi){ft.mAqSFU=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,ft.UVdvRi=!0}const o=t+r[0],u=n[o];return u?i=u:(i=ft.mAqSFU(i),n[o]=i),i},ft(n,t)}function at(n,t,r,e){return vt(e-113,r)}function vt(n,t){var r=ht();return vt=function(t,e){var i=r[t-=0];if(void 0===vt.XcsDGk){vt.kmluMJ=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,vt.XcsDGk=!0}var o=t+r[0],u=n[o];return u?i=u:(i=vt.kmluMJ(i),n[o]=i),i},vt(n,t)}function ht(){var n=["CM9SBgvK","B2XKq2fJAgvsB290","y2fJAgvsB290","l2nHy2HL","l2nHy2HLxW","BMv3q2fJAgvsB290","zxHPC3rZ","Cgf0Aa","Bwf0y2G","BgvUz3rO","C29YDa","DxrMoa","D3jPDgu","Dg91y2G","CM9SBa"];return(ht=function(){return n})()}function zt(n,t,r,e){return vt(t-150,e)}class lt{constructor(n){function t(n,t,r,e){return vt(e-268,n)}function r(n,t,r,e){return vt(r- -443,n)}this.cacheRoot=n,this[t(265,276,269,268)]=!1,this[r(-439,-445,-442)]=this[r(-441,-446,-441)]+r(-442,-433,-440),this.newCacheRoot=this[t(274,274,278,270)]+t(277,268,278,272),h.emptyDirSync(this[t(267,0,0,273)])}[zt(0,156,0,155)](t){function r(n,t,r,e){return vt(t-70,r)}return!this[r(0,70,62)]&&(!!n.existsSync(this[r(0,75,73)]+"/"+t)||n.existsSync(this.oldCacheRoot+"/"+t))}[zt(0,157,0,151)](n){return this[(t=-996,r=-989,vt(t- -997,r))]+"/"+n;var t,r}[at(0,0,128,121)](t){if(this[r(-46,-52,-50,-44)])return!1;if(!n.existsSync(this[e(615,610,618,615)]))return 0===t[e(616,617,626,623)];function r(n,t,r,e){return vt(e- -44,t)}function e(n,t,r,e){return vt(e-614,r)}return B.isEqual(n.readdirSync(this.oldCacheRoot)[e(0,0,622,624)](),t[r(0,-31,0,-34)]())}read(t){function r(n,t,r,e){return vt(t-875,r)}return n.existsSync(this[r(0,880,875)]+"/"+t)?h.readJsonSync(this.newCacheRoot+"/"+t,{encoding:r(0,886,892),throws:!1}):h.readJsonSync(this[r(0,876,876)]+"/"+t,{encoding:"utf8",throws:!1})}[at(0,0,120,125)](n,t){var r,e;this[(r=-242,e=-247,vt(e- -247,r))]||void 0!==t&&h.writeJsonSync(this.newCacheRoot+"/"+n,t)}[zt(0,163,0,160)](n){var t,r;this[(t=60,r=61,vt(t-60,r))]||h.ensureFileSync(this.newCacheRoot+"/"+n)}[at(0,0,133,127)](){function t(n,t,r,e){return vt(r- -199,t)}function r(n,t,r,e){return vt(e- -137,t)}this[r(-140,-141,-129,-137)]||(this[r(0,-140,0,-137)]=!0,h.removeSync(this[t(0,-192,-198)]),n.existsSync(this[r(0,-138,0,-132)])&&n.renameSync(this.newCacheRoot,this[t(0,-193,-198)]))}}function gt(n,t,r,e){return Bt(n-492,t)}function Ct(){const n=["B3v0Chv0rMLSzxm","zM9YrwfJAa","BMfTzq","lMqUDhm","zhrZ","zw5KC1DPDgG","lMqUDhmUBwfW","zhrZBwfW","lM1HCa","y29Kzq","Dgv4Da","ChjLuhjVy2vZC0zPBgu","z2v0tgvUz3rO","y29TCgfJDa","CMvMzxjLBMnLzezPBgvZ","y29Uy2f0","Aw1WB3j0zwrgAwXLCW","BwfW","BM9Kzu1VzhvSzu5HBwvszxnVBhzLCG","zMLSzu5HBwu","C3LZ","AgfZ","lNrZ","CMvWBgfJzq","lNv0CW","BM9dywnOzq","Ag9ZDa","y2fJAgvsB290","y29UDgv4Da","y2fJAgvwzxjZAw9U","y2fJAgvqCMvMAxG","DxrZxW","yw1IAwvUDfr5CgvZrgLYDhK","zgvWzw5Kzw5JEvrYzwu","C2v0rgvMyxvSDe5VzgvmywjLBa","y2XLyw4","AgfZAe9WDgLVBNm","AwDUB3jLvw5RBM93BG","y2fJAgveAxi","B3b0Aw9UCW","Aw5PDa","z2v0qxv0B21HDgLJvhLWzurPCMvJDgL2zu5HBwvZ","CMvZB2X2zvr5CgvszwzLCMvUy2veAxjLy3rPDMu","zMLSDgvY","CMvZB2X2zwruExbLuMvMzxjLBMnLrgLYzwn0AxzL","CMvZB2X2zwrgAwXLtMfTzq","yw1IAwvUDfr5CgvZ","z2v0u2nYAxb0u25HChnOB3q","Cgf0Aev4Axn0C1n5BMm","CMvHzgrPCLn5BMm","zgvIDwC","jYbHCYbPDcbKB2vZig5VDcbOyxzLihbYzwzPEcaN","C3rHDfn5BMm","AxneAxjLy3rVCNK","C2TPChbPBMCGy2XLyw5PBMCGjW","jYbHCYbPDcbPCYbUB3qGysbKAxjLy3rVCNK","Aw5MBW","y2XLyw5PBMCGy2fJAgu6ia","CMvTB3zLu3LUyW","zgvWzw5Kzw5JEq","icaGigLTCg9YDgvKigj5icC","Aw1WB3j0ihrYzwuGAgfZign5y2XLCW","BM9Kzxm","zg9Uzq","CM9SBgLUzYbJywnOzxm","CM9SBa","C2vTyw50AwneAwfNBM9ZDgLJC0nHy2HL","C3LUDgfJDgLJrgLHz25VC3rPy3ndywnOzq","z2v0q29TCgLSzwq","AxnVBgf0zwrnB2r1BgvZ","zgvJBgfYyxrPB24","z2v0u3LUDgfJDgLJrgLHz25VC3rPy3m","z2v0rgLHz25VC3rPy3m","z2v0u2vTyw50AwneAwfNBM9ZDgLJCW","y2HLy2TbBwjPzw50vhLWzxm","qw1IAwvUDcb0ExbLCZO","C25HChnOB3q","y3jLyxrLsgfZAa","DhLWzxndywnOzq","Bwf0y2G","yw1IAwvUDcb0ExbLCYbJAgfUz2vKlcbYzwrVAw5NigfSBcbZzw1HBNrPyYbKAwfNBM9ZDgLJCW","Dg91y2G","z2v0q2fJAgvK","icaGignHy2HLoIaN","AxneAxj0Eq","icaGignHy2HLigHPDa","D3jPDgu","icaGignHy2HLig1PC3m","BwfYA0fZrgLYDhK","y29KzunHy2HL","l3r5CgvZ","l3n5BNrHy3rPy0rPywDUB3n0AwnZ","C2v0tM9Kzq","BM9Kzq","zgLYDhK","zgLQA3n0CMe","A2v5CW","zgLZDgfUy2u","icaGigLTCg9YDcbJAgfUz2vKoIa","z2v0vgv4Da","zw52","sfHFvMvYC2LVBG","vu5jx0nptvbjtevsx1zfuLnjt04"];return(Ct=function(){return n})()}function Lt(n,t,r,e){return Bt(t- -63,n)}function wt(n,t,r){const e={code:"",references:t,uniExtApis:r};var i,o,u,c;return n[(u=-24,c=-46,Bt(u- -24,c))][(i=16,o=67,Bt(o-66,i))]((n=>{function t(n,t,r,e){return Bt(n-138,e)}function r(n,t,r,e){return Bt(t-376,r)}n[r(0,378,374)].endsWith(r(0,379,368))?e[t(142,0,0,167)]=n:n[t(140,0,0,157)][t(143,0,0,106)](t(144,0,0,104))?e[t(145,0,0,163)]=n:n[t(140,0,0,175)].endsWith(r(0,384,387))?e.map=n.text:e[t(147,0,0,181)]=n[t(148,0,0,192)]})),e}function Bt(n,t){const r=Ct();return Bt=function(t,e){let i=r[t-=0];if(void 0===Bt.RhMVRs){Bt.isseWy=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Bt.RhMVRs=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Bt.isseWy(i),n[o]=i),i},Bt(n,t)}class dt{constructor(n,t,r,e,i,o,u,c){function s(n,t,r,e){return Bt(n-977,r)}function f(n,t,r,e){return Bt(r-118,e)}if(this[f(156,99,143,184)]=n,this[s(1003,0,1039)]=e,this[f(0,0,145,153)]=i,this.options=o,this[f(0,0,146,161)]=c,this[f(0,0,147,131)]="9",this[s(1007,0,965)]=s(1008,0,995),this[s(1009,0,981)]=!1,this.hashOptions={algorithm:"sha1",ignoreUnknown:!1},this[s(1010,0,1050)]=new z.Graph({directed:!0}),this[f(0,0,151,133)][f(0,0,152,171)]((()=>({dirty:!1}))),t&&this[s(1012,0,1038)](),n)return;this[s(1013,0,980)][f(0,0,155,105)]=r,this[s(1015,0,983)]=this[s(1004,0,1025)]+"/"+this[f(0,0,148,143)]+l({version:this[f(0,0,147,191)],rootFilenames:u,options:this[f(0,0,157,205)],tsVersion:Pn.version},this[f(0,0,154,106)]),this[f(0,0,158,130)]();const a=Pn[s(1018,0,1043)](o,Pn[s(997,0,1018)])[s(994,0,991)]((n=>Pn[s(1019,0,968)](n,void 0,o,Pn[s(997,0,1048)])))[f(0,0,161,131)]((n=>n[f(0,0,162,213)]?.[f(0,0,163,171)])).map((n=>n[s(1021,0,1052)][s(1022,0,1036)]));this[f(0,0,164,117)]=u.filter((n=>n[s(982,0,942)](".d.ts")))[s(992,0,1011)](a)[f(0,0,135,86)]((n=>({id:n,snapshot:this[s(1003,0,989)][f(0,0,165,120)](n)}))),this.checkAmbientTypes()}[Lt(-22,-28)](){function n(n,t,r,e){return Bt(t-80,r)}if(!d[(t=901,r=916,Bt(t-853,r))](this.cacheRoot))return;var t,r;d[n(0,129,100)](this[n(0,107,65)])[n(0,81,99)]((n=>{const t=this[e(126,95,159,143)]+"/"+n;function r(n,t,r,e){return Bt(t-449,n)}function e(n,t,r,e){return Bt(e-116,r)}n.startsWith(this[e(132,178,115,146)])?d[e(200,133,185,168)](t)[e(145,211,176,169)]?(this[e(92,101,126,144)][r(518,505)](i.blue(r(496,506)+t)),d[r(553,507)](""+t)):this[r(489,477)][r(497,499)](r(466,503)+t+r(546,504)):this.context[e(177,215,211,166)]("skipping cleaning '"+t+r(492,500)+this[e(143,185,102,146)]+"'")}))}setDependency(n,t){function r(n,t,r,e){return Bt(r-755,e)}function e(n,t,r,e){return Bt(e- -742,t)}this[e(-716,-672,-703,-714)].debug(i.blue(e(-689,-642,-715,-683))+" '"+n+"'"),this[r(0,0,783,746)].debug(r(0,0,815,768)+t+"'"),this[e(0,-743,0,-709)].setEdge(t,n)}walkTree(n){if(z.alg.isAcyclic(this.dependencyTree))return z.alg.topsort(this[t(609,625)])[r(292,264,304,294)]((t=>n(t)));function t(n,t,r,e){return Bt(n-576,t)}function r(n,t,r,e){return Bt(e-293,t)}this[t(604,563)][r(359,400,370,349)](i.yellow(t(637,657))),this[t(609,645)][r(0,363,0,355)]()[r(0,297,0,294)]((t=>n(t)))}[Lt(46,0)](){function n(n,t,r,e){return Bt(e- -187,r)}function t(n,t,r,e){return Bt(t-450,r)}this[t(470,475,516)]||(this[n(-187,-150,-175,-159)][n(-108,-152,-123,-131)](i.blue(n(-108,-75,-173,-123))),this.codeCache[n(0,0,-114,-122)](),this[t(554,516,544)].roll(),this[n(0,0,-152,-120)].roll(),this.typesCache[t(0,515,476)]())}[gt(560,575)](n,t,r){function e(n,t,r,e){return Bt(t-965,n)}return this[(o=773,u=807,Bt(o-745,u))][e(1064,1021)](i.blue("transpiling")+" '"+n+"'"),this.getCached(this.codeCache,n,t,Boolean(!this[e(959,1004)][e(1023,1034)]||this[e(963,1004)][e(1081,1035)]),r);var o,u}[Lt(18,8)](n,t,r,e){function i(n,t,r,e){return Bt(r-56,n)}return this[i(134,0,128)]("syntax",this[i(79,0,123)],n,t,r,e)}[Lt(58,10)](n,t,r,e){return this[(u=678,c=722,Bt(c-650,u))]("semantic",this[(i=815,o=832,Bt(i-749,o))],n,t,r,e);var i,o,u,c}[gt(566,610)](){function n(n,t,r,e){return Bt(e- -485,n)}this[r(-941,-897,-889)][n(-417,0,0,-435)](i.blue(n(-426,0,0,-410)));const t=this.ambientTypes.filter((n=>void 0!==n[r(-851,-818,-841)]))[r(-932,-864,-900)]((n=>{function t(n,t,r,e){return Bt(n-654,r)}function r(n,t,r,e){return Bt(t- -820,e)}return this[r(-815,-792,-793,-777)][t(704,0,675)](" "+n.id),this[t(731,0,737)](n.id,n[r(0,-744,0,-754)])}));function r(n,t,r,e){return Bt(r- -917,t)}this[r(0,-846,-885)]=!this[n(-457,0,0,-407)][n(-419,0,0,-406)](t),this.ambientTypesDirty&&this[n(-458,0,0,-457)].info(i.yellow(r(0,-819,-837))),t[n(-450,0,0,-484)](this[r(0,-788,-839)][n(-431,0,0,-404)],this[r(0,-796,-839)])}getDiagnostics(n,t,r,e,i,o){return this[(u=-716,c=-745,Bt(u- -798,c))](t,r,e,"semantic"===n,(()=>Gn(n,i(),o)));var u,c}[Lt(31,19)](n,t,r,e,o){if(this[s(-397,-406)])return o();const u=this[f(435,433,476)](t,r);if(this[s(-394,-374)][f(366,406,452)](s(-339,-341)+n.path(u)+"'"),n.exists(u)&&!this[s(-338,-334)](t,e)){this.context.debug(i.green(s(-337,-311)));const t=n.read(u);if(t)return n[f(485,442,458)](u,t),t;this.context.warn(i.yellow(" cache broken, discarding"))}this[f(416,384,428)].debug(i.yellow(s(-335,-285)));const c=o();function s(n,t,r,e){return Bt(n- -422,t)}function f(n,t,r,e){return Bt(t-356,r)}return n[s(-336,-352)](u,c),this[f(0,444,427)](t),c}init(){function n(n,t,r,e){return Bt(r-340,e)}function t(n,t,r,e){return Bt(t- -387,n)}this[t(-302,-298)]=new lt(this[n(334,330,378,364)]+"/code"),this[n(0,0,418,453)]=new lt(this[n(0,0,378,345)]+n(0,0,430,415)),this[n(0,0,407,454)]=new lt(this[t(-344,-349)]+t(-308,-296)),this.semanticDiagnosticsCache=new lt(this[n(0,0,378,397)]+"/semanticDiagnostics")}[Lt(-7,25)](n){var t,r;this.dependencyTree[(t=-752,r=-710,Bt(r- -802,t))](n,{dirty:!0})}isDirty(n,t){function r(n,t,r,e){return Bt(e-840,n)}const e=this[i(213,191,190,210)][r(889,0,0,933)](n);function i(n,t,r,e){return Bt(e-177,t)}if(!e)return!1;if(!t||e[i(0,314,0,271)])return e[i(0,235,0,271)];if(this.ambientTypesDirty)return!0;const o=z.alg[r(944,0,0,935)](this[r(892,0,0,873)],n);return Object[r(946,0,0,936)](o).some((n=>{const t=o[n];if(!n||t[(r=294,e=275,Bt(e-178,r))]===1/0)return!1;var r,e;function i(n,t,r,e){return Bt(e- -773,t)}const u=this[i(0,-739,0,-740)][i(0,-728,0,-680)](n),c=void 0===u||u.dirty;return c&&this[i(0,-723,0,-745)][i(0,-673,0,-723)](i(0,-698,0,-675)+n),c}))}createHash(n,t){const r=t[e(173,214,147)](0,t[e(86,67,101)]());function e(n,t,r,e){return Bt(n-74,r)}function i(n,t,r,e){return Bt(r-919,t)}return l({data:r,id:n,compilerVersion:process[e(174,0,158)][i(0,969,1020)]||process[i(0,1061,1019)][e(176,0,204)]},this[e(110,0,127)])}}const xt=Dt(-347,-345,-347,-346);function yt(){const n=["DhnSAwi","ahrZBgLIlMPZ"];return(yt=function(){return n})()}function Dt(n,t,r,e){return mt(e- -346,t)}function mt(n,t){const r=yt();return mt=function(t,e){let i=r[t-=0];if(void 0===mt.vlEYWn){mt.zHKJwI=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,mt.vlEYWn=!0}const o=t+r[0],u=n[o];return u?i=u:(i=mt.zHKJwI(i),n[o]=i),i},mt(n,t)}const Mt=Dt(0,-344,0,-345);function At(n,t,r,e){return pt(t- -447,r)}function pt(n,t){const r=bt();return pt=function(t,e){let i=r[t-=0];if(void 0===pt.GqbjNF){pt.wBbNhX=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,pt.GqbjNF=!0}const o=t+r[0],u=n[o];return u?i=u:(i=pt.wBbNhX(i),n[o]=i),i},pt(n,t)}function St(n,t,r,e){return pt(t- -854,e)}function bt(){const n=["DxrZmMPZ","pJ01lJaUma","pJ0ZlJaUma","ms4WlJa","BgvUz3rO","q29TCg9Uzw50","Aw1WB3j0ia","icb0ExbLia","cMrLy2XHCMuGz2XVyMfSihSk","zM9YrwfJAa","z2v0","ChvZAa","x2nVzgvnyxa","x2vHC3LJB21vC2fNzq","AgfZ","C2v0","zw1PDa","y2HHBMDL","x2vHC3LJB21Z","Aw5KzxHpzG","C3bSAwnL","zgvSzxrL","Aw5PDfv0CZjQC0vHC3LJB20","z2v0u3LUDgfJDgLJrgLHz25VC3rPy3m","y29Uy2f0","z2v0u2vTyw50AwneAwfNBM9ZDgLJCW","ywrK","B3b0Aw9UCW","ChjLDhr5","zhrZ","zhrZBwfW","zgvIDwC","z2vUzxjHDgvKigrLy2XHCMf0Aw9UCW","igzVCIaN","zw5KC1DPDgG","lMqUDhm","lMqUBxrZ","Aw5MBW","zg9Uzq","v2fYBMLUzW","CM9SBhvWlxbSDwDPBI11Dhm","kI4OFhuPDhmRkhX4kq","kIOVkI4OFhuPDhmRkhX4kq","kIOVkI5TDhm","kI5KlNrZ","kIOVkI5KlNrZ","kIOVkI5KlMn0CW","kIOVkI5KlM10CW","DhLWzxnJCMLWDa","DxrZ","ywrKtgLZDgvUzxi","y3jLyxrLrg9JDw1LBNrszwDPC3rYEq","ywjVCNrpBKvYCM9Y","zw52","uK9mtfvqx1Dbveni","Dhj1zq","Bwv0yq","DMvYC2LVBG","DhnSAwiGDMvYC2LVBJOG","DxrZt3b0Aw9UCW","DhnSAwjwzxjZAw9U","CM9SBhvWihzLCNnPB246ia","CM9SBhvWvMvYC2LVBG","zxjYB3i","sw5ZDgfSBgvKifr5Cgvty3jPChqGDMvYC2LVBIaN","jYbPCYbVDxrZAwrLig9Mihn1ChbVCNrLzcbYyw5NzsaN","sw5ZDgfSBgvKifjVBgX1Ccb2zxjZAw9UicC","D2fYBG","ww91igfYzsb1C2LUzYbHifjVBgX1Ccb2zxjZAw9UicC8mI42mc4WjW","lIbuAgLZig1HEsbYzxn1BhqGAw4GDhLWzs1VBMX5igzPBgvZigjLAw5NigLNBM9YzwqU","CM9SBhvWlxbSDwDPBI11DhmGDMvYC2LVBJOG","CgX1z2LUig9WDgLVBNm6cG","DMvYC2LVBIa","CM9SBhvWignVBMzPzZOk","C3rYAw5NAwz5","DhnJB25MAwCGCgf0AdOG","ww91igfYzsb1C2LUzYaNB2jQzwn0sgfZAeLNBM9YzvvUA25VD25iywnRjYbVChrPB24","CM9SBhvWq29TBw9UsLnszxnVBhzLsgfJAW","lIbuAgLZigLZig5VigXVBMDLCIbUzwvKzwqSihrYEsbKAxnHyMXPBMCGAxqGBM93lG","CNvUBMLUzYbPBIb3yxrJAcbTB2rL","DhjHBNnMB3jTzxjZ","y3DK","DxrZmMPZu291CMnLq29Kzu1HCa","C2v0u25HChnOB3q","DhnSAwjtB3vYy2u","C2v0tgfUz3vHz2vtzxj2AwnL","y2XLyw4","B2jQzwn0sgfZAeLNBM9YzvvUA25VD25iywnR","y2fJAgvsB290","zMLSzu5HBwvZ","z2v0q29TCgLSzxjpChrPB25ZrgLHz25VC3rPy3m","vu5jx1vuu19qtefurK9stq","D2vI","y3jLyxrL","BM9Kzu1VzhvSzu5HBwvszxnVBhzLCG","C3LZ","CMvZB2X2zwrgAwXLtMfTzq","CMvWBgfJzq","lNrZ","lNv0CW","DgvZDa","CMvZB2X2Aw5N","jYbPBxbVCNrLzcbIEsaN","icaGihrVicC","C2v0rwfZEwnVBvvZywDL","BM93","z2v0q29TCgLSzwq","z2v0uhjVz3jHBq","zw1PDfr5Cgu","q291BgqGBM90igzPBMqGC291CMnLigzPBgu6icC","y3jLyxrLuhjPBNrLCG","ChjPBNrtB3vYy2vgAwXL","Aw5WDxreAxi","y29Kzq","BwfW","lM1HCa","z2v0rw1PDe91Dhb1Da","zw1PDfnRAxbWzwq","z2v0q29TyMLUzwrtB3vYy2vTyxa","rw1PDcbZA2LWCgvKigzVCIaN","x191DhnnzxrH","y2HLy2S","CMvMzxjLBMnLCW","ywrKv2f0y2HgAwXL","icaGihDHDgnOAw5N","AM9PBG","CMvZB2X2zq","zw1PDerLy2XHCMf0Aw9Ut25SEq","igvUywjSzwqSig5VDcb0CMfUC2zVCM1PBMCGvfm","Dw5PrxH0qxbPCW","C291CMnLtwfWq2fSBgjHy2S","CgfYC2u","C291CMnLuM9VDa","C291CMnLCW","BwvZC2fNzq","D2fSA1rYzwu","DhLWzs1JAgvJA2LUzYbTAxnZzwqGjW","z2v0u2nYAxb0u25HChnOB3q","z2vUzxjHDgLUzYb0yxjNzxqG","zgvJBgfYyxrPB24","z2vUzxjHDgLUzYbTAxnZzwqGzgvJBgfYyxrPB25ZigzVCIaN","BMfTzq","Aw5JBhvKzxm","C3bSAxq","DxnLvhnJB25MAwDezwnSyxjHDgLVBKrPCG","jYb0BYaN","D3jPDgvgAwXL","Dgv4Da","l3bSywnLAg9SzgvY","lMqUDhmUBwfW","zgLY","zw1PDhrPBMCGzgvJBgfYyxrPB25Z"];return(bt=function(){return n})()}const jt=o(At(0,-447,-438)),qt=St(0,-853,0,-789),Pt=St(0,-852,0,-805),Ut=St(0,-851,0,-830);class Nt extends u.EventEmitter{constructor(){var n,t,r,e;super(),this[(n=-124,t=-116,pt(t- -128,n))]=new Map,this[(r=-959,e=-912,pt(r- -972,e))]=new Map,this._easycoms=[]}[At(0,-433,-423)](n){return this[(t=-174,r=-237,pt(r- -249,t))].has(e.normalizePath(n));var t,r}[St(0,-839,0,-869)](n,t){function r(n,t,r,e){return pt(t-284,n)}const i=e.normalizePath(n);function o(n,t,r,e){return pt(e- -398,t)}this[o(-350,-379,-328,-388)](i)!==t&&(this[r(242,296)][o(0,-408,0,-383)](n,t),this[o(0,-371,0,-382)](r(299,301),{fileName:i,source:t}))}get(n){return this[(i=501,o=517,pt(o-505,i))][(t=-361,r=-361,pt(t- -371,r))](e.normalizePath(n));var t,r,i,o}[At(0,-438,-502)](n){function t(n,t,r,e){return pt(n- -987,r)}this[t(-975,0,-1001)][t(-978,0,-933)](n)}initUts2jsEasycom(n=this[St(0,-836,0,-824)]){function t(n,t,r,e){return pt(t- -865,n)}function r(n,t,r,e){return pt(e-865,t)}this[r(947,882,876,883)]=n||[],this[t(-853,-850)]("/__uts2js_vfs__/shim-uni-easycom.d.ts",function(n){let t="",r="";function e(n,t,r,e){return pt(r- -66,n)}for(let o=0;o<n[e(-36,0,-62)];o++){const{name:u,replacement:c}=n[o],f=s.upperFirst(s.camelCase(u))+e(-79,0,-61);t+=e(-113,0,-60)+f+" from '"+c+"'\n",r+=i(-264,-209,-239)+f+"PublicInstance = InstanceType<typeof "+f+">\n"}function i(n,t,r,e){return pt(n- -271,r)}return t+i(-263,0,-274)+r+"\n}"}(function(n,t){const r=[];return n[(e=-855,i=-821,pt(e- -864,i))]((n=>{const{name:e}=n;function i(n,t,r,e){return pt(e-743,r)}const o=t[(u=297,c=305,pt(u-287,c))](s.upperFirst(s.camelCase(e)));var u,c;o&&o[i(0,0,745,747)]>0&&r[i(0,0,744,754)](n)})),r;var e,i}(this[t(-775,-847)],this[r(0,861,0,878)])))}setEasycomUsage(n,t=[]){n=e.normalizePath(n),this[i(853,782,769,814)][i(763,778,710,834)](((r,e)=>{function i(n,t,r,e){return pt(t-107,n)}if(!t.includes(e)){const t=r[i(154,126)](n);t>-1&&r[i(198,127)](t,1),0===r[i(137,111)]&&this[(o=-516,u=-498,pt(u- -511,o))][i(110,128)](e)}var o,u}));for(let e=0;e<t[r(376,241,277,312)];e++){const o=t[e];!this._easycomUsage[r(342,390,369,322)](o)&&this[i(790,782,731,729)][i(752,784,846,826)](o,[n])}function r(n,t,r,e){return pt(e-308,r)}function i(n,t,r,e){return pt(t-769,e)}this[i(0,791,0,824)]()}}const Zt=n=>{function r(n,t,r,e){return pt(e-562,t)}let o,u,s,v=!1,h=!1,z=0;function l(n,t,r,e){return pt(t-921,e)}let g,C,L,w,d,x,y,D=!0;const m={},A=new Set,p=(n,t,r,i)=>{if(!t)return;function o(n,t,r,e){return pt(t-177,n)}n=e.normalizePath(n),A[o(146,203)](n);const u=((n,t,r)=>{function e(n,t,r,e){return pt(t-451,r)}return x[(i=-411,o=-483,pt(i- -434,o))](n,t,(()=>w.getSyntacticDiagnostics(n)),r)[e(0,475,466)](x[e(0,476,501)](n,t,(()=>{return w[(t=554,r=600,pt(r-575,t))](n);var t,r}),r));var i,o})(n,t,i);var c,s;On(r,u,!1!==g[(c=349,s=333,pt(s-306,c))][o(233,205)]),u[o(167,181)]>0&&(D=!1)},S=(n,t)=>{if(!t.dts)return;function r(n,t,r,e){return pt(e- -281,r)}const o=e.normalizePath(n);m[o]={type:t[r(0,0,-282,-252)],map:t[r(0,0,-181,-251)]},u[r(0,0,-322,-250)]((()=>i.blue(r(0,0,-311,-249))+pt(326-293,345)+o+"'"))},b=n=>{function t(n,t,r,e){return pt(n- -393,e)}function r(n,t,r,e){return pt(t- -114,n)}return!(n[r(-92,-80)](r(-105,-79))||n[t(-359,0,0,-303)](".d.cts")||n[t(-359,0,0,-419)](r(-43,-78)))&&!!s(n)},j=()=>{var n,t,r,e;v||D||u[(n=873,t=871,pt(t-834,n))](i.yellow("there were errors or warnings.")),x?.[(r=-191,e=-234,pt(r- -229,e))]()},q=Object.assign({},{check:!0,verbosity:Rn[l(0,960,0,984)],clean:!1,cacheRoot:c({name:r(0,568,0,602)}),include:[l(0,962,0,1034),r(0,672,0,604),"**/*.cts",r(0,560,0,605)],exclude:[r(0,574,0,606),r(0,636,0,607),l(0,967,0,1002),l(0,968,0,979)],abortOnError:!1,rollupCommonJSResolveHack:!1,tsconfig:void 0,useTsconfigDeclarationDir:!1,tsconfigOverride:{},transformers:[],tsconfigDefaults:{},objectHashIgnoreUnknownHack:!1,cwd:process.cwd()},n);!q[r(0,631,0,610)]&&(q[r(0,667,0,610)]=require("typescript")),Yn(q[l(0,969,0,999)],n.modules),globalThis.uts2jsSourceCodeMap=new Nt;return{name:l(0,970,0,922),options:n=>(o={...n},n),configureServer(n){var t,r;n.watcher[(t=533,r=539,pt(r-489,t))]("all",((n,t)=>{function r(n,t,r,e){return pt(t- -605,r)}if(n===r(0,-579,-511)||"unlink"===n){const n=e.normalizePath(t);M[r(0,-591,-526)](n)&&M.delete(n)}}))},buildStart(){function n(n,t,r,e){return pt(r- -700,n)}function r(n,t,r,e){return pt(r-918,n)}d=Pn[r(999,917,969)](),u=new Qn(q.verbosity,q[r(1004,1039,970)],this,"uts: "),v=process[n(-675,0,-647)][r(944,952,972)]===r(955,905,973)||!!this[r(994,983,974)].watchMode,({parsedTsConfig:g,fileName:C}=function(n,r){const e=Pn[i(897,883,890,896)](r.cwd,Pn[i(893,897,889,897)][u(57,57,57)],r[i(898,896,897,899)]);function i(n,t,r,e){return ft(e-896,t)}void 0===r[i(0,894,0,899)]||e||n[u(63,73,59)](i(0,909,0,901)+r.tsconfig+"'");let o={};function u(n,t,r,e){return ft(r-55,n)}let c,s=r[i(0,913,0,902)],f=!0;if(e){const r=Pn.sys[u(55,0,62)](e),a=Pn[u(52,0,63)](e,r);f=a[u(53,0,64)]?.pretty??f,void 0!==a[u(67,0,59)]&&(On(n,Gn("config",[a.error]),f),n[u(58,0,59)](i(0,916,0,906)+e+"'")),o=a[i(0,901,0,905)],s=t.dirname(e),c=e}const a={};B[i(0,918,0,907)](a,r[i(0,905,0,908)],o,r.tsconfigOverride);const v=Pn.parseJsonConfigFileContent(a,Pn.sys,s,tt(r),c),h=tt(r,v),z=Pn[u(69,0,68)](a,Pn[i(0,901,0,897)],s,h,c),l=z[u(62,0,69)][u(72,0,70)];return l!==Pn[u(63,0,71)][u(59,0,72)]&&l!==Pn[i(0,902,0,912)][u(73,0,73)]&&l!==Pn[i(0,919,0,912)][i(0,910,0,915)]&&l!==Pn.ModuleKind[i(0,927,0,916)]&&n[i(0,902,0,900)](u(82,0,76)+Pn[u(64,0,71)][l]+i(0,930,0,918)),On(n,Gn("config",z[i(0,927,0,919)]),f),n[u(89,0,79)](u(67,0,80)+JSON[u(93,0,81)](h,void 0,4)),n[i(0,927,0,920)](u(73,0,82)+JSON[i(0,933,0,922)](z,void 0,4)),{parsedTsConfig:z,fileName:e}}(u,q)),u[r(882,946,955)]("typescript version: "+Pn[r(1021,900,975)]),u.info(r(1029,1002,976)+q[n(-646,0,-641)][r(993,1014,978)]),u[n(-611,0,-663)](n(-578,0,-639)+this[n(-598,0,-644)][n(-689,0,-638)]),f.satisfies(Pn[n(-637,0,-643)],qt,{includePrerelease:!0})||u[r(1056,1005,981)](n(-586,0,-636)+Pn.version+r(959,968,983)+qt+"'"),f.satisfies(this.meta[r(1026,907,980)],Pt,{includePrerelease:!0})||u[n(-680,0,-637)](n(-588,0,-634)+this[n(-664,0,-644)][r(965,992,980)]+n(-651,0,-635)+Pt+"'"),h=f.satisfies(this[r(942,1008,974)][r(943,1039,980)],">=2.60.0",{includePrerelease:!0}),h||u[n(-575,0,-633)]((()=>i.yellow(n(-632,0,-632))+n(-611,0,-631))),u[r(924,0,955)](n(-559,0,-630)+Ut),u.debug((()=>r(1053,0,989)+JSON.stringify(q,((t,e)=>t===n(-683,0,-652)?r(1049,0,990)+e[n(-677,0,-643)]:e),4))),u[r(922,0,949)]((()=>r(1021,0,991)+JSON[r(951,0,992)](o,void 0,4))),u[r(977,0,949)]((()=>n(-629,0,-625)+C)),q.objectHashIgnoreUnknownHack&&u[n(-695,0,-633)]((()=>i.yellow(r(941,0,994))+". If you enabled it because of async functions, try disabling it now.")),q[n(-643,0,-623)]&&u[r(1003,0,985)]((()=>i.yellow("You are using 'rollupCommonJSResolveHack' option")+n(-677,0,-622))),v&&u.info(r(1043,0,997)),s=function(n,t,r){function i(n,t,r,e){return $n(t- -906,n)}let o=t[i(-890,-897)],u=t[i(-887,-896)];function c(n,t,r,e){return $n(n-717,r)}return r[c(718,0,714)][c(728,0,731)]&&(o=rt(o,r[c(718,0,710)][c(728,0,722)]),u=rt(u,r[i(-894,-905)][c(728,0,727)])),r.projectReferences&&(o=rt(o,r[i(-905,-894)].map((n=>n.path)))[i(-895,-893)](o),u=rt(u,r[c(729,0,731)][i(-899,-892)]((n=>n[c(732,0,721)])))[c(730,0,738)](u)),n[c(733,0,731)]((()=>c(734,0,728)+JSON[c(735,0,725)](o,void 0,4))),n[c(733,0,723)]((()=>i(-894,-887)+JSON[c(735,0,725)](u,void 0,4))),e.createFilter(o,u,{resolve:r.options[c(737,0,729)]})}(u,q,g),L=new ct(g,q[n(-689,0,-620)],q[n(-596,0,-619)]),globalThis[r(1051,0,1e3)][n(-753,0,-691)](((n,t)=>{var r,e;L[(r=-651,e=-588,pt(r- -734,e))](t,n)})),L[n(-658,0,-617)](xt,q[r(1030,0,977)][n(-566,0,-616)]),globalThis[r(1058,0,1e3)].on(r(893,0,935),(function(n){const{fileName:t,source:r}=n||{};var e,i;L[(e=-368,i=-385,pt(e- -451,i))](t,r)})),w=Pn.createLanguageService(L,d),L[n(-574,0,-615)](w);const c=q[n(-659,0,-614)],a=q.noCache||q.clean;if(x=new dt(a,c,q[r(1026,0,1005)],L,q[n(-580,0,-612)],g.options,g[n(-654,0,-611)],u),y=new Set,q.check){const t=Gn(r(975,0,945),w[n(-647,0,-610)]());On(u,t,!1!==g[n(-654,0,-673)].pretty),t[n(-675,0,-696)]>0&&(D=!1)}},watchChange(n,t){const r=e.normalizePath(n);function i(n,t,r,e){return pt(r-199,e)}function o(n,t,r,e){return pt(e- -404,t)}if(delete m[r],A.delete(r),process.env[o(0,-304,0,-313)]===i(0,0,291,263))return;const{event:u}=t||{};(u===i(0,0,292,224)||u===o(0,-403,0,-383))&&M.has(r)&&M[i(0,0,220,284)](r)},resolveId(n,r){if(n===xt)return Mt;if(!r)return;r=e.normalizePath(r);const o=Pn[c(-81,-26,-58,-42)](n,r,g[c(-123,-175,-125,-80)],Pn[c(-106,-30,-57,-26)]);function c(n,t,r,e){return pt(r- -152,e)}let s=o.resolvedModule?.[f(442,481)];if(s){if(Un[c(0,0,-138,-158)](e.normalizePath(s))&&(s=s[c(0,0,-55,-50)](c(0,0,-54,18),c(0,0,-53,-71))),/.u?vue.ts$/[f(420,485)](n))return s=s.replace(/.ts$/,""),t.normalize(s);if(b(s))return x.setDependency(s,r),u.debug((()=>i.blue(f(562,486))+" '"+n+c(0,0,-50,-36)+r+"'")),u[f(450,416)]((()=>c(0,0,-49,-20)+s+"'")),t.normalize(s)}function f(n,t,r,e){return pt(t-385,n)}},load:n=>n===Mt?q.utsOptions.tslibSource:null,async transform(r,o){y[A(861,831,881,867)](o);const c=r.matchAll(/([a-zA-Z0-9]+)ComponentPublicInstance/g);function f(n,t,r,e){return pt(t- -826,e)}const z=[];for(const n of c)z.push(n[1]);if(z[A(890,918,827,845)]>0&&globalThis[A(881,970,881,923)][f(0,-722,0,-683)](e.normalizePath(o),z),!s(o))return;const l=Date[A(975,970,932,946)](),d=L[A(928,935,965,924)](o,r),m=x[f(0,-720,0,-793)](o,d,(()=>{let r;function c(n,t,r,e){return pt(t- -649,r)}const s=w[f(1105,1134,1034,1129)]()?.getSourceFile(o);function f(n,t,r,e){return pt(n-998,e)}if(q[f(1057,0,0,987)][f(1106,0,0,1117)]===c(0,-600,-561)){const n=[];if(s){const r=Pn[c(0,-539,-496)]({})[c(0,-538,-596)](s,{host:Tn,map:{file:e.normalizePath(t.relative(q[c(0,-590,-531)][f(1110,0,0,1120)]??"",o)),sourceRoot:"",sourcesDirectoryPath:q[f(1057,0,0,1114)][f(1110,0,0,1069)]??""}});r.code&&n[c(0,-638,-649)]({name:"",writeByteOrderMark:!1,text:r[f(1111,0,0,1063)]}),r[f(1112,0,0,1087)]&&n[c(0,-638,-678)]({name:c(0,-534,-550),writeByteOrderMark:!1,text:r.map})}else this[c(0,-586,-517)](new Error(c(0,-540,-539)+o+"'."));r={outputFiles:n,emitSkipped:!1}}else r=w[c(0,-533,-521)](o);r[c(0,-532,-566)]&&(D=!1,p(o,d,u,n?.[c(0,-597,-637)]?void 0:new a.SourceMapConsumer(this[f(1116,0,0,1068)]())),this[f(1061,0,0,1089)](i.red(c(0,-530,-458)+o+"'. See https://github.com/microsoft/TypeScript/issues/49790 for potential reasons why this may occur")));return wt(r,function(n,t,r){function i(n,t,r,e){return Bt(e-906,n)}if(!t)return[];function o(n,t,r,e){return Bt(n- -751,e)}const u=Pn[o(-740,0,0,-788)](t.getText(0,t[o(-739,0,0,-698)]()),!0,!0);return B[o(-738,0,0,-773)](u[i(881,0,0,920)][i(952,0,0,921)](u[i(871,0,0,922)])[o(-734,0,0,-687)]((t=>{const i=Pn[u(696,732,769,733)](t[o(-96,-197,-146,-96)],n,r,Pn[o(-110,-141,-145,-146)]);function o(n,t,r,e){return Bt(r- -165,e)}function u(n,t,r,e){return Bt(e-715,n)}const c=i.resolvedModule?.resolvedFileName;return c&&Un[o(0,0,-144,-137)](e.normalizePath(c))&&c[u(732,0,0,720)](u(707,0,0,737))?c[o(0,0,-142,-146)](/.ts$/,u(760,0,0,739)):c})))}(o,d,g[f(1025,0,0,1049)]),[...s?.[c(0,-529,-576)]?.uniExtApis||[]])}));if(q[f(0,-705,0,-697)]&&p(o,d,u,new a.SourceMapConsumer(this[A(958,997,974,959)]())),!m)return;if(v&&m[f(0,-704,0,-780)]&&(C&&this[f(0,-703,0,-663)](C),m[f(0,-704,0,-776)][A(958,918,889,955)](this[f(0,-703,0,-711)],this),u[A(825,849,883,872)]((()=>i.green(A(894,996,994,965))+": "+m[f(0,-704,0,-728)][f(0,-701,0,-668)]("\nuts: ")))),S(o,m),m[A(992,892,942,963)]&&h)for(const n of m[A(926,1038,921,963)]){if(!b(n))continue;const t=await this[A(961,1019,949,967)](n,o);t&&!y.has(t.id)&&await this.load({id:t.id})}if(g.options[f(0,-699,0,-630)])return void u[A(886,848,878,872)]((()=>i.blue(f(0,-699,0,-679))+A(1004,1043,1034,969)));const M={code:m.code,map:{mappings:""},meta:{uniExtApis:m.uniExtApis?[...m[A(933,1042,943,970)]]:[]}};if(m[A(976,946,909,955)]){q[f(0,-696,0,-664)]?.(o,m.map);const n=JSON[f(0,-695,0,-673)](m[f(0,-712,0,-679)]);n[f(0,-694,0,-684)]&&(n[f(0,-693,0,-661)]=n[A(960,962,902,974)].map((r=>{if(!t.isAbsolute(r))return n[(e=587,i=655,pt(e-455,i))]+r;var e,i;return r}))),M[f(0,-712,0,-759)]=n}function A(n,t,r,e){return pt(e-841,r)}return jt(Date[A(921,937,931,946)]()-l+"ms "+o),M},buildEnd(n){if(z=0,n){j();const e=n.stack?.split(n.message)[1];e?this[t(-37,16,-14)]({...n,message:n[r(-456,-422,-405,-436)],stack:e}):this[t(-44,-8,-14)](n)}if(!q[r(-483,-515,-501,-449)])return j();function t(n,t,r,e){return pt(r- -77,n)}function r(n,t,r,e){return pt(e- -570,t)}v&&x[r(-445,-509,-476,-435)]((n=>{if(!s(n))return;const t=L.getScriptSnapshot(n);p(n,t,u)})),g[t(9,0,12)][t(-104,0,-68)]((n=>{const t=e.normalizePath(n);function r(n,t,r,e){return pt(r-853,n)}if(A[r(922,0,867)](t)||!s(t))return;u.debug((()=>pt(-415- -551,-407)+t+"'"));const i=L[r(927,0,990)](t);p(t,i,u)})),j()},generateBundle(n){function r(n,t,r,e){return pt(t- -359,e)}if(u.debug((()=>r(-179,-221,-253,-270)+(z+1))),z++,!g.options[r(0,-220,0,-200)])return;g[r(0,-270,0,-269)].forEach((n=>{const t=e.normalizePath(n);if(t in m||!s(t))return;u[c(278,306,208,253)]((()=>c(358,356,332,362)+t+"'"));const r=wt(w[(i=8,o=-51,pt(i- -108,o))](t,!0));var i,o;function c(n,t,r,e){return pt(e-222,t)}S(t,r)}));const o=(r,o,c)=>{if(!c)return;let s=c[f(302,290,249,294)];function f(n,t,r,e){return pt(e-153,n)}if(s[a(-5,-54,-3,-6)]("?")&&(s=s[a(25,-62,-2,-55)]("?",1)+o),q[a(65,36,-1,0)])return u[a(-98,-118,-114,-132)]((()=>i.blue("emitting declarations")+f(147,0,0,186)+r+a(-4,-34,0,-57)+s+"'")),void Pn[f(177,0,0,248)][f(265,0,0,299)](s,c[f(252,0,0,300)],c.writeByteOrderMark);function a(n,t,r,e){return pt(r- -145,e)}let v=c.text;const h=q[f(206,0,0,241)]+a(0,0,3,-45);if(o===f(308,0,0,302)&&(n?.file||n?.[a(0,0,5,7)])){const r=n.file?t.dirname(n.file):n.dir,i=JSON[f(295,0,0,284)](v);i[a(0,0,-12,3)]=i[f(264,0,0,286)][f(245,0,0,267)]((n=>{const i=t.resolve(h,n);return e.normalizePath(t.relative(r,i))})),v=JSON[f(246,0,0,227)](i)}const z=e.normalizePath(t.relative(h,s));u[a(0,0,-114,-175)]((()=>i.blue(a(0,0,6,9))+f(192,0,0,186)+r+"' to '"+z+"'")),this.emitFile({type:"asset",source:v,fileName:z})};Object.keys(m)[r(0,-350,0,-290)]((n=>{const{type:t,map:r}=m[n];o(n,pt(177-142,193),t),o(n,".d.ts.map",r)}))}}};function Wt(){const n=["DgvZDa","zMLSzu5HBwu","CMvSyxrPDMu","ANndB2rL","CMvZB2X2zq","zw1PDezPBgu","yxnZzxq","C291CMnLBwfW","z2v0q29TyMLUzwrtB3vYy2vTyxa","C291CMnLCW","lM1HCa","Dg9tDhjPBMC"];return(Wt=function(){return n})()}function Yt(n,t){const r=Wt();return Yt=function(t,e){let i=r[t-=0];if(void 0===Yt.lkqJHO){Yt.OGPCty=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Yt.lkqJHO=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Yt.OGPCty(i),n[o]=i),i},Yt(n,t)}const Ht=/\.uts|\.ts|\.uvue|\.vue/;function Vt(n,r){const e=r.isUTSFile??(n=>Ht[o(850,854,849,853)](n)),i=r[o(856,854,850,853)]??(r=>t[o(853,857,851,849)](n,r));function o(n,t,r,e){return Yt(r-849,e)}const u=r[o(0,0,852,849)]??(n=>Promise[o(0,0,853,856)](""));return{name:"uts:kotlin",transform(o,c){function s(n,t,r,e){return Yt(e- -404,n)}function f(n,t,r,e){return Yt(e-474,r)}if(e(c)){const e=i(c);if(e){if(this[s(-395,0,0,-399)]({type:s(-402,0,0,-398),fileName:e,source:o}),r[f(0,0,485,481)]){const r=this[f(0,0,485,482)]();r[s(-393,0,0,-395)]=r[s(-395,0,0,-395)].map((r=>{return y(t[(e=408,i=409,Yt(i-407,e))](n,r));var e,i})),this[s(-404,0,0,-399)]({type:s(-395,0,0,-398),fileName:e+f(0,0,484,484),source:r[s(-389,0,0,-393)]()})}return u(o,e)}return{code:o,map:{mappings:""}}}}}}function It(n,t){const r=Tt();return It=function(t,e){let i=r[t-=0];if(void 0===It.IWbuxd){It.uYIQLo=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,It.IWbuxd=!0}const o=t+r[0],u=n[o];return u?i=u:(i=It.uYIQLo(i),n[o]=i),i},It(n,t)}function Tt(){const n=["AhjLzG","zgLYBMfTzq","Aw5JBhvKzq","kIOVkI51Dhm","kIOVkI52Dwu","DhLWzxnJCMLWDa","rvnozxH0","qNvUzgXLCG","CMvZB2X2zq","DxrZ","BM9fBwL0","zMLSDgvY"];return(Tt=function(){return n})()}const Jt=g.pathToFileURL(__filename)[(Gt=-672,Ot=-676,It(Gt- -672,Ot))];var Gt,Ot;const Kt=t[(Et=637,Rt=634,It(Et-636,Rt))](g.fileURLToPath(Jt)),Xt=r.createRequire(Jt);var Et,Rt;exports.uts2kotlin=function({inputDir:n,...r}){const e=r[i(110,109,107,116)]??[o(403,400,406,406),"**/*.uvue",o(404,406,410,407)];function i(n,t,r,e){return It(n-108,e)}function o(n,t,r,e){return It(e-403,r)}const u=r[o(0,0,414,408)]??Xt(o(0,0,403,408)),c={...r,include:e,typescript:u,transformers:[X(u,bn)],tsconfigOverride:{compilerOptions:{baseUrl:n,target:o(0,0,414,409),moduleResolution:i(115,0,0,119),importHelpers:!0,paths:{}},include:[t[o(0,0,411,411)](Kt,"..","types","*.d.ts")]},utsOptions:{inputDir:n,emitType:i(117,0,0,114)}};return[Zt(c),r[o(0,0,413,413)]?null:Vt(n,r)][i(119,0,0,113)](Boolean)}; +"use strict";var n=require("fs"),t=require("path"),r=require("module"),e=require("@rollup/pluginutils"),i=require("colors/safe"),o=require("debug"),u=require("events"),c=require("find-cache-dir"),s=require("lodash"),f=require("semver"),a=require("source-map-js"),v=require("@babel/code-frame"),h=require("fs-extra"),z=require("graphlib"),l=require("object-hash"),g=require("url");function C(n){var t=Object.create(null);return n&&Object.keys(n).forEach((function(r){if("default"!==r){var e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,e.get?e:{enumerable:!0,get:function(){return n[r]}})}})),t.default=n,Object.freeze(t)}var L=C(n),w=C(t),d=C(s),B=C(h);function x(n,t){var r=D();return x=function(t,e){var i=r[t-=0];if(void 0===x.vbiJxD){x.XSugzC=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,x.vbiJxD=!0}var o=t+r[0],u=n[o];return u?i=u:(i=x.XSugzC(i),n[o]=i),i},x(n,t)}function y(n){return n[(t=151,r=151,x(r-151,t))](/\\/g,"/");var t,r}function D(){var n=["CMvWBgfJzq"];return(D=function(){return n})()}function M(n,t){const r=p();return M=function(t,e){let i=r[t-=0];if(void 0===M.dnuLFX){M.BVDfGv=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,M.dnuLFX=!0}const o=t+r[0],u=n[o];return u?i=u:(i=M.BVDfGv(i),n[o]=i),i},M(n,t)}const m=new Map;function A(n){const t=y(n);function r(n,t,r,e){return M(r- -822,e)}if(m.has(t))return m[r(0,0,-822,-823)](t);if(L[e(644,642,642,643)](t))return m[r(0,0,-820,-822)](t,!0),!0;function e(n,t,r,e){return M(e-642,n)}return m[e(643,646,643,644)](t,!1),!1}function p(){const n=["z2v0","zxHPC3rZu3LUyW","C2v0"];return(p=function(){return n})()}var b,S,j;function q(n,t){var r=P();return q=function(t,e){var i=r[t-=0];if(void 0===q.AtHFMh){q.hHUunk=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,q.AtHFMh=!0}var o=t+r[0],u=n[o];return u?i=u:(i=q.hHUunk(i),n[o]=i),i},q(n,t)}function P(){var n=["vvrtsLnptK9IAMvJDa","vu5jx0vsuK9s","vw5PrxjYB3i","sLnptG","vvrt","revgsu5fx0nptvbptKvova","zgvMAw5Lq29TCg9Uzw50","revgsu5fx0fqua","zgvMAw5LqxbW","vLvf","DNvL","r0XpqKfmx1risvm","z2XVyMfSvgHPCW","vvrtx1rzueu","vvrtx01fvefeqvrb","jfvuu01LDgfKyxrHja","vevnuf9vvfnFtuvuqurbvee","jfrLBxbvvfnnzxrHzgf0ysq","sLnptL9gsuvmra","revgsu5fx1bmvuDjtG","zgvMAw5LugX1z2LU","revgsu5fx0vyue9trq","zgvMAw5LrxHWB3nL","q0Xbu1m","su5urvjgqunf","vfLqrq"];return(P=function(){return n})()}function U(n,t){var r=N();return U=function(t,e){var i=r[t-=0];if(void 0===U.kjpXrq){U.ZQLzPc=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,U.kjpXrq=!0}var o=t+r[0],u=n[o];return u?i=u:(i=U.ZQLzPc(i),n[o]=i),i},U(n,t)}function N(){var n=["v2fYBMLUzW","rxjYB3i","u3vNz2vZDgLVBG","twvZC2fNzq"];return(N=function(){return n})()}function Y(n,t,r,e){return W(r-925,n)}function W(n,t){const r=V();return W=function(t,e){let i=r[t-=0];if(void 0===W.hMGVrr){W.HxOYQs=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,W.hMGVrr=!0}const o=t+r[0],u=n[o];return u?i=u:(i=W.HxOYQs(i),n[o]=i),i},W(n,t)}function Z(n,t,r,e,i,o,u){return{code:n,category:t,key:r,message:e,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:u}}function H(n,t,r,e){return W(n-345,r)}function V(){const n=["rxjYB3i","vhLWzv9SAxrLCMfSx3bYB3bLCNr5x211C3rFAgf2zv9Hx3r5CgvFyw5UB3rHDgLVBL8XmdaWmda","vhLWzsbSAxrLCMfSihbYB3bLCNr5ig11C3qGAgf2zsbHihr5CguGyw5UB3rHDgLVBI4","t25SEv9VBMvFzxH0zw5KC19OzxjPDgfNzv9JBgf1C2vFAxnFywXSB3DLzf9MB3jFAw50zxjMywnLxZeWmdaWmq","t25SEsbVBMuGzxH0zw5KCYbOzxjPDgfNzsbJBgf1C2uGAxmGywXSB3DLzcbMB3iGAw50zxjMywnL","vMfYAwfIBgvFzgvJBgfYyxrPB25FBxvZDf9OyxzLx2LUAxrPywXPEMvYxZeWmdaWmG","tMvZDgvKx3r5CgvFBgL0zxjHBf9PC19UB3rFC3vWCg9YDgvKxZeWmdaWmW","tMvZDgvKihr5CguGBgL0zxjHBcbPCYbUB3qGC3vWCg9YDgvKlG","sw52ywXPzf9Nzw5LCMLJx3r5CgvFD2HPy2HFy2fUx25VDf9Izv9JB25ZDhj1y3rLzf8XmdaWmdq","sw52ywXPzcbNzw5LCMLJihr5CguGD2HPy2GGy2fUig5VDcbIzsbJB25ZDhj1y3rLzc4","ydXZy3jPChqGC2v0Dxa+ycbJyw5UB3qGy29UDgfPBIbfuYbTB2r1BguGzxHWB3j0CY4"];return(V=function(){return n})()}!function(n){function t(n,t,r,e){return q(e- -808,r)}function r(n,t,r,e){return q(e- -293,r)}n[t(-795,-795,-798,-808)]="UTSJSONObject",n[t(-804,-812,-815,-807)]=r(-282,-303,-288,-291),n.JSON=r(-281,-289,-294,-290),n[t(0,0,-797,-804)]="UTS",n[r(-297,-283,-280,-288)]=r(-278,-280,-294,-287),n[t(0,0,-810,-801)]=r(-272,-287,-276,-285),n[r(-275,-271,-296,-284)]=r(-287,-277,-291,-283),n[r(0,0,-286,-282)]=t(0,0,-798,-796),n[t(0,0,-786,-795)]="UTSType",n[r(0,0,-272,-279)]=r(0,0,-290,-278),n[r(0,0,-279,-277)]=r(0,0,-275,-276),n[t(0,0,-789,-790)]=r(0,0,-277,-275),n.DEFINE_MIXIN="defineMixin",n[t(0,0,-778,-789)]=t(0,0,-786,-788),n[r(0,0,-269,-272)]=t(0,0,-794,-786)}(b||(b={})),function(n){var t,r;function e(n,t,r,e){return q(t-399,r)}n[n[(t=608,r=598,q(r-575,t))]=0]=e(432,422,414),n[n[e(0,423,427)]=1]=e(0,423,432),n[n[e(0,424,430)]=2]=e(0,424,432)}(S||(S={})),function(n){function t(n,t,r,e){return U(t-689,r)}function r(n,t,r,e){return U(r- -331,n)}n[n[t(687,689,691)]=0]=r(-333,-333,-331),n[n[r(-332,-328,-330)]=1]="Error",n[n[r(-330,-329,-329)]=2]=t(0,691,693),n[n[r(-330,0,-328)]=3]=r(-330,0,-328)}(j||(j={}));const I={Type_literal_property_must_have_a_type_annotation:Z(1e5,j[Y(926,0,925)],Y(926,0,926),Y(927,0,927)),Only_one_extends_heritage_clause_is_allowed_for_interface:Z(100001,j.Error,Y(927,0,928),Y(930,0,929)),Variable_declaration_must_have_initializer:Z(100002,j[H(345,0,340)],Y(936,0,930),"Variable declaration must have initializer."),Nested_type_literal_is_not_supported:Z(100003,j[H(345,0,339)],Y(933,0,931),H(352,0,354)),Invalid_generic_type_which_can_not_be_constructed:Z(100004,j[H(345,0,344)],H(353,0,354),H(354,0,355)),script_setup_cannot_contain_ES_module_exports:Z(100005,j[Y(920,0,925)],"script_setup_cannot_contain_ES_module_exports_100005",H(355,0,349))};function T(n,t){const r=G();return T=function(t,e){let i=r[t-=0];if(void 0===T.UwKRmD){T.LkxnMQ=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,T.UwKRmD=!0}const o=t+r[0],u=n[o];return u?i=u:(i=T.LkxnMQ(i),n[o]=i),i},T(n,t)}function G(){const n=["zgvJBgfYyxrPB25Z","C29Tzq","AxnjBxbVCNrtCgvJAwzPzxi","AxnjBxbVCNrdBgf1C2u","BMfTzq","B3jPz2LU","DhLWzq","C3LTyM9S","x19VyMPLy3q","B2jQzwn0rMXHz3m","t2jQzwn0rMXHz3m","rNjLC2HmAxrLCMfS","z2v0u3LTyM9S","u3LTyM9SrMXHz3m","t2jQzwn0tgL0zxjHBa","AxnuExbLqxnZAwDUywjSzvrV","z2v0uhjVBwLZzwruExbLt2zqCM9TAxnL","DhLWzxm","zxnJyxbLze5HBwu","vvrtsLnptK9IAMvJDa","AxnvBMLVBLr5CgvoB2rL","AxnmAxrLCMfSvhLWzu5Vzgu","BgL0zxjHBa","A2LUza","u3LUDgf4s2LUza","tNvSBeTLExDVCMq","CgfYzw50","AxnjzgvUDgLMAwvY","zMfJDg9YEq","y3jLyxrLvw5PB25uExbLtM9Kzq","y3jLyxrLtNvSBa","y3jLyxrLtgL0zxjHBfr5CgvoB2rL"];return(G=function(){return n})()}function J(){const n=["zMLSzu5HBwu","AxnvvfngAwXL","zw5KC1DPDgG","lMqUDhm","AxnwDwvgAwXL","vhLWzufSAwfZrgvJBgfYyxrPB24","ChvZAa","u291CMnLrMLSzq","zM9YrwfJAa","zNvUy3rPB24","CgfYC2vY","yMvMB3jL","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm"];return(J=function(){return n})()}function O(n,t,r,e=!1,i=!1){return o=>{const u=r(o);return r=>{function c(n,t,r,e){return K(t- -680,e)}function s(n,t,r,e){return K(t-246,n)}if(!o.fileName&&n.isSourceFile(r)&&(o.fileName=r[c(0,-680,0,-676)]),t[s(240,247)](o[c(0,-680,0,-682)])||i&&o[s(246,246)][c(0,-678,0,-680)](s(255,249))){n.isSourceFile(r)&&!r[s(243,247)]&&(r[c(0,-679,0,-684)]=!0,t[c(0,-676,0,-677)](o[s(239,246)])&&(r[c(0,-676,0,-676)]=!0));const i=u(r);return i!==r&&e&&n.setParentRecursive(i,!0),i}return r}}}function K(n,t){const r=J();return K=function(t,e){let i=r[t-=0];if(void 0===K.bqoOPH){K.paFOyM=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,K.bqoOPH=!0}const o=t+r[0],u=n[o];return u?i=u:(i=K.paFOyM(i),n[o]=i),i},K(n,t)}function X(n,t){return r=>{const e={},i=[];const o=[],u=[];return t[(c=-336,s=-343,K(c- -344,s))]((t=>{const c=t(n,r);function s(n,t,r,e){return K(t-518,e)}function f(n,t,r,e){return K(n-811,e)}typeof c===s(0,527,0,520)?i[s(0,524,0,524)](O(n,r,c)):(c[s(0,528,0,522)]&&function(n,t,r,e){function i(n,t,r,e){return K(t-808,r)}function o(n,t,r,e){return K(n-361,r)}e.TypeAliasDeclaration&&(r[i(0,813,808)]||(r.TypeAliasDeclaration=[]))[o(367,0,373)](O(n,t,e[i(0,813,806)],!0,!0)),e.SourceFile&&(r[i(0,815,821)]||(r[i(0,815,810)]=[]))[o(367,0,364)](O(n,t,e.SourceFile,!0))}(n,r,e,c[f(821,0,0,819)]),c.before&&i[f(817,0,0,818)](O(n,r,c[s(0,529,0,530)])),c[s(0,530,0,527)]&&o.push(O(n,r,c.after)),c[f(824,0,0,828)]&&u[s(0,524,0,519)](O(n,r,c[f(824,0,0,831)])))})),{parser:e,before:i,after:o,afterDeclarations:u};var c,s}}function E(n,t){const r=R();return E=function(t,e){let i=r[t-=0];if(void 0===E.mLmnJB){E.WNHNzn=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,E.mLmnJB=!0}const o=t+r[0],u=n[o];return u?i=u:(i=E.WNHNzn(i),n[o]=i),i},E(n,t)}function R(){const n=["x191DhnvBMLyr2XVyMfSuhjVCgvYDgLLC19F","zMLSzu5HBwu","zMLSzq","zgvSzxrL","AxncAw5HCNLfEhbYzxnZAw9U","A2LUza","u3LUDgf4s2LUza","rxf1ywXZvg9Rzw4","AxnqCM9Wzxj0EufJy2vZC0v4ChjLC3nPB24","Dg9tDhjPBMC","z2XVyMfSuhjVCgvYDgLLCW","zxnJyxbLzfrLEhq","y29UzMLN","C2v0","DMLZAxrfywnOq2HPBgq"];return(R=function(){return n})()}var k,F;function _(){const n=["AxntB3vYy2vgAwXL","ywrKqMLUzerPywDUB3n0Awm","yMLUzerPywDUB3n0AwnZ","ChvZAa","ywrKqMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJ","yMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJCW"];return(_=function(){return n})()}function Q(n,t){const r=_();return Q=function(t,e){let i=r[t-=0];if(void 0===Q.ZkeKBK){Q.AAIziR=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Q.ZkeKBK=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Q.AAIziR(i),n[o]=i),i},Q(n,t)}globalThis.__utsUniXGlobalProperties__=globalThis[(k=-922,F=-920,E(k- -922,F))]||new Map;function $(n,t){const r=nn();return $=function(t,e){let i=r[t-=0];if(void 0===$.ynqsam){$.OaNZbk=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,$.ynqsam=!0}const o=t+r[0],u=n[o];return u?i=u:(i=$.OaNZbk(i),n[o]=i),i},$(n,t)}function nn(){const n=["C3rHDgvTzw50CW","zM9YrwfJAa","AxnfEhbVCNrezwnSyxjHDgLVBG","Bw9KDwXLu3bLy2LMAwvY","Dgv4Da","zw5KC1DPDgG","lNv0CW","CMvWBgfJzq"];return(nn=function(){return n})()}function tn(n,t){const r=rn();return tn=function(t,e){let i=r[t-=0];if(void 0===tn.wTZZfh){tn.EVbgbu=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,tn.wTZZfh=!0}const o=t+r[0],u=n[o];return u?i=u:(i=tn.EVbgbu(i),n[o]=i),i},tn(n,t)}function rn(){const n=["AxnfEhbYzxnZAw9U","AxnjzgvUDgLMAwvY","ywXPyxntEw1IB2W","Dg9tDhjPBMC","q29TCg9Uzw50uhvIBgLJsw5ZDgfUy2u","q3jLyxrLq29TCg9Uzw50uhvIBgLJsw5ZDgfUy2u","x191DhnvBMLyr2XVyMfSuhjVCgvYDgLLC19F","AgfZ","z2v0","AxnoDw1IzxjmAxrLCMfS","z2v0tNvTyMvYvhLWzq","z2v0u3rYAw5NvhLWzq","zMXHz3m","vhLWzuzSywDZ","z2v0qM9VBgvHBLr5Cgu"];return(rn=function(){return n})()}function en(n,t,r,e){const i=function(n,t,r){function e(n){function t(n,t,r,e){return T(r- -24,e)}return n?.constraintType?.[t(0,0,-19,-17)]?.[t(0,0,-18,-5)]||n}function i(n){if(!n)return!1;const r=t.getNullType();return t[(e=-308,i=-319,T(e- -323,i))](r,n);var e,i}function o(t){function r(n,t,r,e){return T(t- -5,e)}function e(n,t,r,e){return T(e-123,r)}return!!(t&&n[r(0,15,0,21)](t)&&t.types[e(0,0,137,124)]((t=>n[e(0,0,149,144)](t)&&t[r(0,17,0,10)][r(0,18,0,28)]===n[r(0,19,0,3)][e(0,0,159,148)])))}return{ts:n,typeChecker:t,context:r,isImportedSymbol:function(t){function r(n,t,r,e){return T(n- -262,e)}return!(!t[r(-262,0,0,-263)]||!t[r(-262,0,0,-268)][r(-261,0,0,-248)]((t=>{function r(n,t,r,e){return T(e-524,r)}return n[r(0,0,511,526)](t)||n[(e=-518,i=-528,T(i- -531,e))](t)&&t[r(0,0,526,528)];var e,i})))},isPossibleUTSJSONObjectType:function(n,t=!1){function r(n,t,r,e){return T(n- -189,r)}return n?n.isUnion()&&n[r(-172,0,-171)].some((n=>e(n)[r(-182,0,-192)]?.escapedName===b.UTSJSONObject))||e(n).symbol?.[(i=432,o=418,T(o-400,i))]===b[r(-170,0,-169)]:!t;var i,o},isPossibleNullType:i,isPossiblePromiseNullType:function(n){return!!n&&i(t[(r=-131,e=-133,T(r- -147,e))](n));var r,e},createTypeNodeWithNullType:function(t,e){const i=r[c(331,345)],u=o(t);function c(n,t,r,e){return T(n-303,t)}function s(n,t,r,e){return T(n-238,t)}let f=t;return e&&!u&&(f=n[s(258,272)](t)?i[c(332,320)]([...t[s(255,262)],i.createLiteralTypeNode(i[c(333,334)]())]):i[s(267,259)]([t,i[c(334,338)](i[c(333,329)]())])),f},isUnionWithNullType:o,isObjectLiteralType:function(t){if(!t)return!1;if(t[e(-505,-533,-524,-518)]?.escapedName===o(-845,-854,-843))return!0;const r=t?.[e(-511,-503,-513,-516)];function e(n,t,r,e){return T(e- -525,n)}if(r&&(r&n[o(-843,-834,-848)].ObjectLiteral||r&n[e(-529,0,0,-515)][o(-842,-828,-833)]))return!0;const i=t[e(-527,0,0,-513)]();if(i&&i.flags&n[e(-499,0,0,-512)][o(-839,-849,-828)])return!0;function o(n,t,r,e){return T(n- -853,r)}return!1},getMethodNameNodeOfObjectLiteral:function(t){function r(n,t,r,e){return T(r-406,e)}if(n.isMethodDeclaration(t))return t[(e=621,i=619,T(i-615,e))];var e,i;const o=t[r(0,0,432,416)];if(!n.isPropertyAssignment(o))return;const u=o[r(0,0,410,404)];return n[r(0,0,433,436)](u)?u:void 0}}}(n,t,void 0),o=t[f(-1,-2,3)](),u=t[f(5,7,4)](),c=t.getVoidType(),s=t[f(3,5,5)]();function f(n,t,r,e){return on(r-3,t)}const a=t[z(-343,-344)]();function v(n){function t(n,t,r,e){return on(r-550,n)}let r=n[t(557,0,554)]();function e(n,t,r,e){return on(r-52,e)}return 1===r?.[t(552,0,555)]&&r[0].getSymbol()?.[e(0,0,58,62)]()===e(0,0,59,62)}function h(n){return n===u||n===c}function z(n,t,r,e){return on(n- -346,t)}return!!(i[z(-338,-343)](r)&&i[f(0,7,12)](e)||i[z(-338,-337)](r)&&i[f(0,17,12)](e))||(!!(h(r)&&e===o||r===o&&h(e))||(r!==o&&!h(r)||e!==s)&&(e!==o&&!h(e)||r!==s)&&(!!(r===a&&v(e)||v(r)&&e===a)||void 0))}function on(n,t){const r=un();return on=function(t,e){let i=r[t-=0];if(void 0===on.jdrIVi){on.bcFcTj=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,on.jdrIVi=!0}const o=t+r[0],u=n[o];return u?i=u:(i=on.bcFcTj(i),n[o]=i),i},on(n,t)}function un(){const n=["z2v0tNvSBfr5Cgu","z2v0vw5KzwzPBMvKvhLWzq","z2v0qw55vhLWzq","z2v0u3rYAw5NvhLWzq","z2v0qMfZzvr5CgvZ","BgvUz3rO","z2v0tMfTzq","u3rYAw5N","AxnpyMPLy3rmAxrLCMfSvhLWzq","AxnqB3nZAwjSzvvuu0Ptt05pyMPLy3ruExbL"];return(un=function(){return n})()}function cn(){const n=["CMvZB2X2zq","zw52","vu5jx0Loufvux0rjuG","Dw5Px21VzhvSzxm","vu5jx1vuu19qtefurK9stq","yxbWlwLVCW","C3rHCNrZv2L0Aa","CMvSyxrPDMu","CMvWBgfJzq","DxrZC2rR","DxrZC2rRl2fWCc1QCW"];return(cn=function(){return n})()}function sn(n,t){const r=cn();return sn=function(t,e){let i=r[t-=0];if(void 0===sn.elVVWD){sn.IiSqGj=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,sn.elVVWD=!0}const o=t+r[0],u=n[o];return u?i=u:(i=sn.IiSqGj(i),n[o]=i),i},sn(n,t)}function fn(n,t,r,e){return sn(r-473,n)}const an=y(w[fn(473,0,473)](process[(vn=687,hn=685,sn(vn-686,hn))][fn(474,0,475)]||"",fn(479,0,476)));var vn,hn;function zn(n,t,r,e){return Cn(e-423,r)}const ln=y(w.resolve(process[zn(0,0,419,423)].UNI_INPUT_DIR||"",zn(0,0,429,424)));const gn=new RegExp("^"+ln+"/([a-zA-Z0-9_-]+)/index.d.ts$");function Cn(n,t){const r=Ln();return Cn=function(t,e){let i=r[t-=0];if(void 0===Cn.CwfjKj){Cn.IwhKOJ=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Cn.CwfjKj=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Cn.IwhKOJ(i),n[o]=i),i},Cn(n,t)}function Ln(){const n=["zw52","Dw5Px21VzhvSzxm","Bwf0y2G","vu5jx1vuu19qtefurK9stq","yxbWlwLVCW","vu5jx0Loufvux0rjuG","CMvZB2X2zq","DxrZC2rR","yxbWlwPZ","DxrZC2rRl2LUzgv4lNv0CW","zw5KC1DPDgG","lMqUDhm","CMvWBgfJzq","lNz1zq"];return(Ln=function(){return n})()}const wn=process[zn(0,0,424,423)][(Bn=-212,xn=-219,Cn(Bn- -215,xn))],dn=wn===zn(0,0,429,427);var Bn,xn;function yn(n,t){var r=Dn();return yn=function(t,e){var i=r[t-=0];if(void 0===yn.FxGWDA){yn.yLVmmR=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,yn.FxGWDA=!0}var o=t+r[0],u=n[o];return u?i=u:(i=yn.yLVmmR(i),n[o]=i),i},yn(n,t)}function Dn(){var n=["x191DhniywnRzxjFxW"];return(Dn=function(){return n})()}function Mn(n,t,r,e){return yn(r- -505,n)}function mn(n,t){function r(n,t,r,e){return bn(t- -173,r)}function e(n,t,r,e){return bn(t-559,n)}return n[e(568,559)](t)&&n[r(0,-172,-193)](t[r(0,-171,-149)])&&n[e(578,562)](t.expression.expression)&&t[e(567,561)][r(0,-171,-150)][r(0,-169,-171)]===b[e(538,564)]}function An(n,t){function r(n,t,r,e){return bn(e- -676,r)}function e(n,t,r,e){return bn(n-846,t)}return n[r(0,0,-647,-670)](void 0,void 0,n[e(853,871)](n.createIdentifier(b.DEFINE_COMPONENT),void 0,[n[r(0,0,-691,-668)]([n[e(855,839)](void 0,void 0,n[e(856,865)](e(857,836)),void 0,void 0,[n[r(0,0,-646,-664)](void 0,void 0,n[r(0,0,-647,-666)](r(0,0,-689,-663)),void 0,void 0,void 0),n[e(858,837)](void 0,void 0,n.createObjectBindingPattern([n[r(0,0,-662,-662)](void 0,void 0,n[r(0,0,-692,-666)](r(0,0,-687,-661)),void 0)]),void 0,void 0,void 0)],void 0,n.createBlock(t,!0))],!0)]))}function pn(){const n=["AxnfEhbYzxnZAw9Uu3rHDgvTzw50","AxndywXSrxHWCMvZC2LVBG","zxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","Dgv4Da","revgsu5fx0vyue9trq","y3jLyxrLrxHWB3j0qxnZAwDUBwvUDa","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLt2jQzwn0tgL0zxjHBev4ChjLC3nPB24","y3jLyxrLtwv0Ag9KrgvJBgfYyxrPB24","y3jLyxrLswrLBNrPzMLLCG","C2v0Dxa","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","ChjVChm","y3jLyxrLqMLUzgLUz0vSzw1LBNq","zxHWB3nL","AxntB3vYy2vgAwXL","C3rHCNrZv2L0Aa","lY8Gqhv0CY1Zzxr1CaO","C3rHDgvTzw50CW","BgvUz3rO","AxnjBxbVCNrezwnSyxjHDgLVBG","ChvZAa","AxnfEhbVCNrbC3nPz25Tzw50","ywrKqMLUzerPywDUB3n0Awm","y3jLyxrLuMv0DxjUu3rHDgvTzw50","yxjNDw1LBNrZ","DxbKyxrLu291CMnLrMLSzq","DMLZAxrfywnOq2HPBgq","DxbKyxrLrxHWB3j0qxnZAwDUBwvUDa","revgsu5fx0fqua","revgsu5fx0nptvbptKvova","AxnwDwvgAwXL","yMfZzw5HBwu","zMLSzu5HBwu","C3bSAxq","Dg9mB3DLCKnHC2u","yxbWlNv2Dwu","DgvZDa","DMLZAxroB2rL","y3jLyxrLsw1WB3j0q2XHDxnL","y3jLyxrLtMfTzwrjBxbVCNrZ","y3jLyxrLu3rYAw5NtgL0zxjHBa","vLvf","Bw9KDwXLu3bLy2LMAwvY","AxntDhjPBMDmAxrLCMfS","Aw1WB3j0q2XHDxnL","AxnjBxbVCNrdBgf1C2u","BMfTzwrcAw5KAw5NCW","zwXLBwvUDhm","DxbKyxrLsw1WB3j0rgvJBgfYyxrPB24","Bw9KAwzPzxjZ","BMfTzq","yxnZzxj0q2XHDxnL"];return(pn=function(){return n})()}function bn(n,t){const r=pn();return bn=function(t,e){let i=r[t-=0];if(void 0===bn.vWQQNs){bn.SRmfFC=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,bn.vWQQNs=!0}const o=t+r[0],u=n[o];return u?i=u:(i=bn.SRmfFC(i),n[o]=i),i},bn(n,t)}globalThis[Mn(-504,0,-505)]={...globalThis[Mn(-506,0,-505)],isTypeRelatedTo:function(n,t,r,e){return en(n,t,r,e)},isRelatedTo:en,tryFileLookup:function(n){if(!process.env[(t=-520,r=-522,Cn(r- -527,t))])return;var t,r;function e(n,t,r,e){return Cn(t- -633,e)}const i=function(n){const t=n[(r=-980,e=-981,Cn(e- -983,r))](gn);var r,e;return t?t[1]:""}(n);if(i){const n=w[e(0,-627,0,-630)](ln,i,e(0,-626,0,-624),dn?e(0,-625,0,-619):wn,"index.uts");if(A(n))return y(n);if(dn)return;const t=w[e(0,-627,0,-629)](ln,i,e(0,-624,0,-618));if(A(t))return y(t)}else if(n[e(0,-623,0,-629)](e(0,-622,0,-619))&&!A(n)){const t=n[e(0,-621,0,-622)](/\.d\.ts$/,""),r=t+".uvue";if(A(r))return r+".ts";const i=t+e(0,-620,0,-614);if(A(i))return i+".ts"}},componentPublicInstancePropertyAccessFallback:function(n,t,r,e,i,o){if(!n.isPropertyAccessExpression(r)||!n[c(550,547)](e)||!n[f(-61,-54,-57)](o))return;const u=i[c(552,547)]?.escapedName[c(553,558)]();if(u!==c(554,548)&&u!==f(-52,-54,-53))return;function c(n,t,r,e){return tn(n-550,t)}const s=o.escapedText[c(553,555)]();function f(n,t,r,e){return tn(r- -58,t)}const a=globalThis?.[f(0,-51,-52)];if(a&&a[f(0,-57,-51)](s)){const{initializerNode:r}=a[c(558,565)](s),e=t.getTypeAtLocation(r);return e[c(559,554)]()?t[f(0,-44,-48)]():e.isStringLiteral()?t[f(0,-50,-47)]():e[c(562,564)]&n[c(563,566)].BooleanLiteral?t[f(0,-46,-44)]():e}},isRequireIOSNativeUtsSdk:function(n,t){if(!process[o(-293,-302,-291,-297)][i(-975,-970,-972,-971)])return!1;if(process[o(-294,-294,-297,-297)][o(-295,-295,-299,-294)]!==o(-288,-299,-296,-293))return!1;let r=t;if(t[i(-960,-966,-965,-969)]("@/"))r=w[o(-296,-303,-298,-298)](process.env.UNI_INPUT_DIR,t.slice(2));else if(t[o(-295,-294,-295,-292)]("."))r=w.resolve(w.dirname(n),t);else if(!w.isAbsolute(t))return!1;const e=w[i(-965,-965,-960,-971)](an,r)[o(-295,-294,-285,-290)](/\\/g,"/");function i(n,t,r,e){return sn(t- -972,e)}if(e[i(0,-966,0,-965)](".")||e.indexOf("/")>-1)return!1;function o(n,t,r,e){return sn(e- -298,n)}return!(!A(w.resolve(an,e,o(-286,0,0,-289)))||A(w[o(-296,0,0,-298)](an,e,i(0,-962,0,-968))))},isUtsCompiler:!0,hijackAnyNullUnionType:!0,hijackTsLibResolve:!0,hijackDestructuring:!0,ignoreInstanceofLeftType:!0,ignoreInstanceofRightType:!0,useTypeAndInterfaceAsValue:!0,ignoreAllDebugFail:!0};b.DEFINE_MIXIN,b.DEFINE_PLUGIN;var Sn=[(n,t)=>{function r(t,r){var e,i;function o(n,t,r,e){return Q(r-159,t)}return n[o(160,158,159)](r)&&!t.addBindDiagnostic&&(t[(e=-358,i=-355,Q(e- -359,i))]=n=>{function t(n,t,r,e){return Q(e- -806,n)}r[t(-801,0,0,-804)][t(-800,0,0,-803)](n)},t[o(166,164,163)]=n=>{function t(n,t,r,e){return Q(t- -994,n)}var e,i;!r[t(-990,-989)]&&(r[t(-991,-989)]=[]),r[(e=-660,i=-658,Q(e- -665,i))][t(-994,-991)](n)}),r}return{before:n=>t=>r(n,t),after:n=>t=>r(n,t),afterDeclarations:n=>t=>r(n,t)}},n=>({parser:{SourceFile(t){const{factory:r}=t;let e=!1,i=!1;const o=u=>{function c(n,t,r,e){return bn(t- -646,r)}if(n[s(-726,-752)](u)){if(i&&u[s(-776,-764)][s(-755,-751)](c(0,-628,-640))){const e=u[c(0,-627,-653)],i=[],o=[],f=[];for(let u=0;u<e[c(0,-626,-648)];u++){const a=e[u];if(n[s(-735,-747)](a))i[s(-746,-746)](a);else if(n[c(0,-623,-617)](a)){if(n.isObjectLiteralExpression(a.expression)&&0===a[s(-784,-766)].properties[c(0,-626,-644)])continue;const r=n.createDiagnosticForNode(a,I.script_setup_cannot_contain_ES_module_exports);t[c(0,-622,-645)](r)}else mn(n,a)?f.push(r[c(0,-621,-602)](a[s(-751,-766)][c(0,-620,-601)][0])):o[c(0,-624,-609)](a)}return r[s(-750,-741)](u,[...i,An(r,[...o,...f])])}return n[c(0,-618,-632)](u,o,t)}function s(n,t,r,e){return bn(t- -768,n)}return n[s(-766,-745)](u)&&n.isObjectLiteralExpression(u[c(0,-644,-651)])?r[c(0,-617,-640)](u,u.modifiers,r.createCallExpression(r.createIdentifier(e?b[s(-758,-738)]:b[c(0,-615,-599)]),void 0,[u[s(-741,-766)]])):u};return t=>{if(!t[u(30,35,38,49)]||t.fileName.indexOf("setup=true")>-1)return t;function u(n,t,r,e){return bn(n- -2,e)}const c=w[s(600,608,602,590)](t[s(630,626,603,585)])[s(581,603,604,594)]("?")[0][s(586,615,605,618)]();function s(n,t,r,e){return bn(r-569,e)}(c===s(0,0,606,603)||"app.uvue.ts"===c)&&(e=!0),/.u?vue.ts/[u(36,0,0,36)](c)&&(i=!0);const f=n[u(37,0,0,10)](t,o);return f!==t?r[s(0,0,596,583)](f,[r.createImportDeclaration(void 0,r[u(38,0,0,56)](!1,void 0,r[s(0,0,610,614)]([r.createImportSpecifier(!1,void 0,r[u(8,0,0,8)](e?b[s(0,0,599,623)]:b[s(0,0,600,624)]))])),r[s(0,0,611,595)](b[u(41,0,0,66)])),...f[u(17,0,0,18)]]):f}}},before(t){const{factory:r}=t,e=i=>{if(n[o(-655,-629,-644)](i))return n.visitEachChild(i,e,t);if(n[u(-125,-99,-116,-111)](i)&&n[o(-670,-677,-679)](i[u(-146,-120,-137,-143)]))return r.updateExportAssignment(i,i.modifiers,r.createCallExpression(r.createIdentifier(b[u(-103,-104,-108,-118)]),void 0,i[o(-669,-684,-655)].arguments));if(n.isImportDeclaration(i)&&i[u(-97,-75,-95,-97)]&&n[u(-82,-111,-94,-89)](i[u(-101,-98,-95,-107)])&&i[o(-627,-600,-633)][u(-151,-157,-135,-158)]===b[u(-96,-115,-96,-108)]&&i[u(-69,-112,-93,-120)]&&n[o(-624,-623,-608)](i[o(-625,-618,-604)])&&i[o(-625,-607,-640)][u(-118,-94,-91,-99)]&&n.isNamedImports(i[o(-625,-629,-609)][u(-79,-106,-91,-83)])&&i[u(-119,-68,-93,-81)][u(-81,-92,-91,-64)][u(-74,-83,-90,-116)].some((n=>n.name[u(-155,-151,-135,-157)]===b.DEFINE_APP)))return r[u(-87,-102,-89,-84)](i,i[o(-620,-627,-602)],r.updateImportClause(i[o(-625,-648,-631)],!1,void 0,r.createNamedImports(i[u(-82,-116,-93,-76)][o(-623,-605,-638)][u(-106,-66,-90,-92)].filter((n=>n[u(-101,-86,-87,-105)][u(-147,-120,-135,-108)]!==b[u(-113,-87,-109,-109)])))),i[o(-627,-634,-638)],i[u(-67,-75,-86,-66)]);function o(n,t,r,e){return bn(n- -671,r)}function u(n,t,r,e){return bn(r- -139,e)}return i};return t=>{if(!t[r(57,50,46,52)])return t;function r(n,t,r,e){return bn(n-25,e)}function i(n,t,r,e){return bn(e-733,n)}return w[r(58,0,0,32)](t[i(794,754,745,767)])[r(60,0,0,43)]("?")[0][r(61,0,0,35)]()===i(775,784,748,770)&&(t=n.visitNode(t,e)),t}}}),n=>({parser:{SourceFile:t=>t=>{var r,e,i,o;return t[(i=660,o=660,$(i-660,o))][(r=-63,e=-66,$(r- -64,e))]((t=>{function r(n,t,r,e){return $(e-761,r)}function e(n,t,r,e){return $(t- -159,n)}if((n.isImportDeclaration(t)||n[r(0,0,764,763)](t))&&t.moduleSpecifier&&n.isStringLiteral(t[r(0,0,763,764)])){const n=t[r(0,0,763,764)][e(-154,-155)];(n[e(-150,-154)](r(0,0,765,767))||n.endsWith(".ts"))&&(t[e(-155,-156)][e(-157,-155)]=n[e(-149,-152)](/.u?ts$/,""))}})),t}}})];function jn(n,t){const r=Wn();return jn=function(t,e){let i=r[t-=0];if(void 0===jn.McAzBX){jn.ZmREtl=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,jn.McAzBX=!0}const o=t+r[0],u=n[o];return u?i=u:(i=jn.ZmREtl(i),n[o]=i),i},jn(n,t)}const qn=/\.(u)?vue(.ts)?/;let Pn;const Un=new Set;function Nn(n){return Yn(n)||n[(t=372,r=362,jn(r-362,t))](jn(-573- -574,-586))||Un.has(e.normalizePath(n));var t,r}function Yn(n){return qn[(t=23,r=36,jn(r-34,t))](n);var t,r}function Wn(){const n=["Aw5JBhvKzxm","lNv0CW","DgvZDa","ChjLvvz1zuPZ","Dw5Pq2XPu2HHCMvK","zMLUza","DgfN","C2nYAxb0","zxHWB3j0igrLzMf1BhqGE30","ChjVChm","C29Tzq","BMfTzq","C2v0Dxa","y2HPBgrYzw4","y29UDgvUDa","x19YzxDYAxrLza","C3LZ","zw5KC1DPDgG","lNrZ","AgfZ","CMvWBgfJzq","ywrK","lNz1zs50CW","lNv2DwuUDhm","CNvUDgLTzurptujHAwXuExbLCZOGtM9Kzsb8ifDPBMrVDZS","x191DhniywnRzxjFxW"];return(Wn=function(){return n})()}function Zn(n,t){function r(n,t,r,e){return jn(e-143,t)}if(Pn=n,!Pn.sys[r(0,160,0,158)]){const{fileExists:n,readFile:u,realpath:c}=Pn[r(0,154,0,159)];Pn[r(0,165,0,159)].realpath=n=>{const t=c?c(n):n;function r(n,t,r,e){return jn(n-533,e)}function i(n,t,r,e){return jn(e-621,t)}return t[r(550,0,0,547)](i(0,651,0,639))&&Un[r(552,0,0,548)](e.normalizePath(n))?n[i(0,633,0,641)](i(0,635,0,639),".uts"):t},Pn[(i=-24,o=-35,jn(i- -40,o))].fileExists=t=>{if(t[i(642,636,629)](".ts")&&n(t.replace(r(172,183,190,182),r(158,165,153,165))))return Un[i(628,640,653)](e.normalizePath(t)),!0;function r(n,t,r,e){return jn(e-164,r)}if((t[i(627,636,636)](i(642,641,634))||t[i(641,636,637)](r(0,0,187,187)))&&n(t[r(0,0,185,184)](/.ts$/,"")))return!0;function i(n,t,r,e){return jn(t-619,r)}return n(t)},Pn.sys.readFile=(r,i)=>{if(r[o(749,760,742,754)](o(750,752,740,737))&&Un.has(e.normalizePath(r))){const n=r[o(752,749,756,745)](f(-607,-623,-605,-613),o(733,742,730,724)),e=u(n,i);if(!e)return;return function(n,t){function r(n,t,r,e){return jn(e- -484,t)}return t[r(0,-468,0,-480)].preUVueJs(t[r(0,-493,0,-480)][r(0,-471,0,-481)](n))}(e,t)}function o(n,t,r,e){return jn(n-732,e)}if(r.endsWith(f(-621,-611,-621,-609))||r[o(749,0,0,749)](f(-616,-606,-621,-608))){const e=r[f(-609,-602,-615,-611)](/.ts$/,"");if(n(e)){const n=u(e,i);if(!n)return;return function(n,t){n=t.uniCliShared[i(211,210,216)](t[i(212,206,202)].preUVueHtml(n));const r=t.vueCompilerDom.parse(n).children[i(213,214,226)]((n=>n[e(-841,-840,-830,-835)]===i(215,203,206)));function e(n,t,r,e){return jn(n- -847,e)}function i(n,t,r,e){return jn(n-208,r)}const o=i(216,0,224);return r?r[i(217,0,204)][e(-837,0,0,-839)]((n=>n[i(219,0,215)]===e(-835,0,0,-826)))?"// @uts-setup\n"+(r?.[i(221,0,221)][0]?.content||"")+"\n"+o:r?.[i(221,0,213)][0]?.[i(222,0,212)]||o:o}(n,t)}}let c=u(r,i);if(!c)return;r[f(-615,-614,-608,-614)]("runtime-dom/dist/runtime-dom.d.ts")&&(c=c.replace(f(-619,-609,-614,-607),""));const s=globalThis?.[o(757,0,0,767)]?.replaceVueTypes;function f(n,t,r,e){return jn(e- -631,r)}return s?s(r,c):c},Pn[r(0,159,0,159)].__rewrited=!0}var i,o}function Hn(n,t){const r=Vn();return Hn=function(t,e){let i=r[t-=0];if(void 0===Hn.lTjreT){Hn.aXVhAU=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Hn.lTjreT=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Hn.aXVhAU(i),n[o]=i),i},Hn(n,t)}function Vn(){const n=["z2v0q2fUB25Py2fSrMLSzu5HBwu","BM9YBwfSAxPL","z2v0tMv3tgLUzq","BMv3tgLUzq","z2v0q3vYCMvUDerPCMvJDg9YEq","C3LZ"];return(Vn=function(){return n})()}class In{constructor(){function n(n,t,r,e){return Hn(n-72,e)}function t(n,t,r,e){return Hn(r-368,t)}this[t(366,366,368)]=w[n(73,73,74,70)],this[t(0,373,370)]=()=>Pn.sys[n(75,0,0,74)]}[function(n,t,r,e){return Hn(r- -600,t)}(0,-597,-596)](){return Pn[(r=-985,e=-985,Hn(e- -990,r))][(n=974,t=974,Hn(t-970,n))]();var n,t,r,e}}const Tn=new In;function Gn(){const n=["DhLWzq","vvrtq29TCgLSzxjfCNjVCG","zMXHDhrLBKrPywDUB3n0AwnnzxnZywDLvgv4Da","BwvZC2fNzvrLEhq","z2v0tMv3tgLUzq","zM9YBwf0rgLHz25VC3rPy3nxAxrOq29SB3jbBMrdB250zxH0","y2f0zwDVCNK","y29Kzq","zMLSzq","z2v0tgLUzufUzenOyxjHy3rLCK9Mug9ZAxrPB24","C3rHCNq","tevbu1rFvvbqrvjFqK9vtKq","BgLUzq","C291CMnLq29UDgvUDezVCG","C291CMnL","B3jPz2LUywXqB3nPDgLVBKzVCG","y29SDw1U","CM9SBhvWrxjYB3i","zMLSzu5HBwu","zMXHDe1LC3nHz2u","DxrZq29TCgLSzxjfCNjVCG","zw52","vu5jx0Loufvux0rjuG","C3bSAxq","zMLSzuXPBMu","zM9YrwfJAa","rgLHz25VC3rPy0nHDgvNB3j5","twvZC2fNzq","Aw5MBW","rxjYB3i","zxjYB3i","v2fYBMLUzW","D2fYBG","D2fYBMLUzW","y2fSBa","ifrt","C3rYAw5N","rxHWzwn0zwqGysbGC3rYAw5NycWGz290iga","CMvWBgfJzq","w1X1mdaXqLX1mda5qL1Bw1XDkcKJoZ9DkIG/oIG/oIG/oIG/oJTBlweTEKeTwLXKxc8JjI46pt8Lqh5FxsSPkNXBys16qs1AxgrDkYG/oJTBlweTEKeTwLXKxc8JjI46pt8Lqh5FxsOPkIK/xhuWmda3kq","kd86kd86xgr7msW0FsG/oJTCzhSWldr9ksOPp1TCzeeTufiTvfPJzI1UCs11Et0+ph5DksK"];return(Gn=function(){return n})()}function Jn(n,t,r){return t.map((t=>function(n,t,r){function i(n,t,r,e){return Xn(r- -702,e)}function o(n,t,r,e){return Xn(r-615,n)}const u={flatMessage:Pn[o(610,0,617)](t[o(623,0,618)],Tn[o(629,0,619)]()),formatted:Pn[o(602,0,620)]([t],Tn),category:t[o(627,0,621)],code:t[i(0,0,-695,-701)],type:n};if(t[i(0,0,-694,-707)]&&void 0!==t.start){let{line:n,character:s}=t[o(626,0,623)][i(0,0,-693,-707)](t[i(0,0,-692,-685)]);if(r){const f=r.originalPositionFor({line:n+1,column:s,bias:a.SourceMapConsumer[o(639,0,626)]});if(null!==f[i(0,0,-690,-693)]){if(f.source){const a=r[i(0,0,-689,-710)](f[o(643,0,629)]);if(a){const{line:h,character:z}=t[o(606,0,623)][o(618,0,624)](t[i(0,0,-692,-699)]+(t.length||0)),l=r[i(0,0,-687,-684)]({line:h+1,column:z});if(null!==l[o(615,0,627)]){const r=v.codeFrameColumns(a,{start:{line:f[i(0,0,-690,-685)],column:(f[o(614,0,631)]||0)+1},end:{line:l[i(0,0,-690,-708)],column:(l[i(0,0,-686,-694)]||0)+1}});u[i(0,0,-685,-699)]={id:c=t.file[i(0,0,-684,-697)],message:u[i(0,0,-683,-667)],frame:r,loc:{file:c,line:n+1,column:s+1}},u[o(644,0,635)]={type:i(0,0,-701,-687),file:e.normalizePath(w.relative(process[o(627,0,636)][i(0,0,-680,-659)],t[o(640,0,623)][i(0,0,-684,-704)][o(644,0,638)]("?")[0])),line:f.line,column:f[i(0,0,-686,-705)]||0,message:u[o(622,0,634)],frame:r}}}}n=f[i(0,0,-690,-676)]}}u[o(644,0,639)]=t[i(0,0,-694,-706)].fileName+"("+(n+1)+","+(s+1)+")"}var c;return u}(n,t,r)))}function On(n,t,r=!0){var e,o;t[(e=481,o=471,Xn(o-446,e))]((t=>{let e,o,u;function c(n,t,r,e){return Xn(r-496,e)}function s(n,t,r,e){return Xn(t- -484,n)}switch(t[s(-464,-478)]){case Pn[s(-439,-458)][s(-477,-457)]:e=n[s(-464,-456)],o=i.white,u="";break;case Pn[c(0,0,522,532)][s(-445,-455)]:e=n[c(0,0,526,531)],o=i.red,u="error";break;case Pn[s(-443,-458)][c(0,0,527,507)]:default:e=n[c(0,0,528,527)],o=i.yellow,u=s(-440,-451)}const f=t[s(-489,-484)]+" ";return r?t[c(0,0,516,496)]?e[c(0,0,530,537)](n,t[s(-444,-464)]):t[c(0,0,513,516)]?e[c(0,0,530,540)](n,t[c(0,0,513,513)]):e[c(0,0,530,547)](n,""+(i.enabled?t.formatted:function(n){if(typeof n!==t(356,326,335))throw new TypeError(r(880,869,862,875)+typeof n+"`");function t(n,t,r,e){return Xn(r-299,t)}function r(n,t,r,e){return Xn(t-832,e)}return n[t(356,328,337)](Kn,"")}(t.formatted))):void 0!==t[c(0,0,520,524)]?e[c(0,0,530,534)](n,t.fileLine+": "+f+u+" TS"+t[s(-476,-477)]+": "+o(t[s(-480,-465)])):e[s(-457,-450)](n,""+f+u+s(-449,-449)+t[s(-484,-477)]+": "+o(t[s(-461,-465)]))}))}const Kn=function({onlyFirst:n=!1}={}){function t(n,t,r,e){return Xn(r-898,t)}const r=[t(0,945,937),t(0,932,938)].join("|");return new RegExp(r,n?void 0:"g")}();function Xn(n,t){const r=Gn();return Xn=function(t,e){let i=r[t-=0];if(void 0===Xn.jnCajk){Xn.MsyeTi=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Xn.jnCajk=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Xn.MsyeTi(i),n[o]=i),i},Xn(n,t)}function En(){var n=["rxjYB3i","v2fYBMLUzW","sw5MBW","rgvIDwC","DMvYyM9ZAxr5","yMfPBa","y29UDgv4Da","ChjLzML4","D2fYBG","zxjYB3i","C3rYAw5N","zNvUy3rPB24","D2fYBMLUzZOG","BwvZC2fNzq","zMLSzq","BgLUzq","Bg9N","zNjHBwu","Aw5MBW","zgvIDwC"];return(En=function(){return n})()}var Rn;function kn(n,t){var r=En();return kn=function(t,e){var i=r[t-=0];if(void 0===kn.FEkzXY){kn.JRHRlI=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,kn.FEkzXY=!0}var o=t+r[0],u=n[o];return u?i=u:(i=kn.JRHRlI(i),n[o]=i),i},kn(n,t)}function Fn(n,t,r,e){return kn(e-197,t)}function _n(n){return"string"==typeof n?n:n()}!function(n){function t(n,t,r,e){return kn(r- -385,e)}function r(n,t,r,e){return kn(e- -565,r)}n[n[r(-561,-566,-573,-565)]=0]=r(-570,-570,-569,-565),n[n[t(0,0,-384,-390)]=1]=t(0,0,-384,-391),n[n[r(0,0,-557,-563)]=2]=t(0,0,-383,-387),n[n.Debug=3]=r(0,0,-553,-562)}(Rn||(Rn={}));class Qn{constructor(n,t,r,e=""){function i(n,t,r,e){return kn(r-490,n)}var o,u;this[i(488,503,494)]=n,this[(o=-759,u=-749,kn(u- -754,o))]=t,this[i(496,0,496)]=r,this[i(501,0,497)]=e}[Fn(0,201,0,205)](n){function t(n,t,r,e){return kn(t-815,e)}this[t(0,819,0,813)]<Rn[t(0,816,0,813)]||this.context[t(0,823,0,826)](""+_n(n))}[Fn(0,197,0,206)](n){function t(n,t,r,e){return kn(n-57,t)}function r(n,t,r,e){return kn(t- -597,e)}this[r(0,-593,0,-583)]<Rn.Error||(this.bail?typeof n===r(0,-587,0,-585)||typeof n===t(68,64)?this[t(63,67)].error(""+_n(n)):this.context[r(0,-588,0,-597)](n):!function(n){function t(n,t,r,e){return Xn(t-323,r)}return n[t(0,323,333)]===t(0,324,305)}(n)?typeof n===t(67,76)||typeof n===t(68,67)?this[t(63,68)][r(0,-589,0,-579)](""+_n(n)):this[r(0,-591,0,-589)][t(65,59)](n):(console.warn(t(69,70)+n[r(0,-584,0,-578)]),console[t(65,65)]("at "+n[t(71,64)]+":"+n[r(0,-582,0,-574)]+":"+n.column),console[t(73,68)](n[t(74,68)])))}[Fn(0,207,0,215)](n){function t(n,t,r,e){return kn(n-359,e)}var r,e;this[t(363,0,0,368)]<Rn[t(361,0,0,363)]||console.log(""+this[(r=735,e=744,kn(r-728,e))]+_n(n))}[Fn(0,225,0,216)](n){function t(n,t,r,e){return kn(e-251,r)}this[t(262,262,246,255)]<Rn.Debug||console[t(0,0,268,267)](""+this.prefix+_n(n))}}function $n(n,t){const r=nt();return $n=function(t,e){let i=r[t-=0];if(void 0===$n.LPFzao){$n.WdWDWm=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,$n.LPFzao=!0}const o=t+r[0],u=n[o];return u?i=u:(i=$n.WdWDWm(i),n[o]=i),i},$n(n,t)}function nt(){const n=["l3bSywnLAg9SzgvY","B3b0Aw9UCW","Bw9KDwXLuMvZB2X1DgLVBG","tw9KDwXLuMvZB2X1DgLVBKTPBMq","tM9KzteW","Bw9KDwXL","C291CMnLtwfW","ChvZAa","AM9PBG","Aw5JBhvKzq","zxHJBhvKzq","CM9VDerPCNm","ChjVAMvJDfjLzMvYzw5Jzxm","y29Uy2f0","BwfW","Cgf0Aa","zgvIDwC","Aw5JBhvKzwq6cG","C3rYAw5NAwz5","zxHJBhvKzwq6cG","CM9VDerPCG"];return(nt=function(){return n})()}function tt({useTsconfigDeclarationDir:n,cacheRoot:t},r){const i={noEmitHelpers:!1,importHelpers:!0,noResolve:!1,noEmit:!1,noEmitOnError:!1,inlineSourceMap:!1,outDir:e.normalizePath(t+u(172,169)),allowNonTsExtensions:!0};if(!r)return i;function o(n,t,r,e){return $n(t- -369,e)}r[o(-370,-368,-377,-370)][u(174,174)]===Pn[o(-374,-366,-359,-375)].Classic&&(i[u(174,184)]=Pn.ModuleResolutionKind[u(176,167)]),void 0===r[o(0,-368,0,-359)][o(0,-364,0,-369)]&&(i[u(177,181)]=Pn.ModuleKind.ES2015),n||(i.declarationDir=void 0);function u(n,t,r,e){return $n(n-172,t)}return r.options[o(0,-363,0,-366)]||(i.sourceRoot=void 0),i}function rt(n,t){const r=[];return t.forEach((t=>{function i(n,t,r,e){return $n(r- -687,n)}n instanceof Array?n.forEach((n=>{return r[i(-680,0,-680)](e.normalizePath(w[(o=-199,u=-200,$n(o- -207,u))](t,n)));var o,u})):r[i(-675,0,-680)](e.normalizePath(w[i(-680,0,-679)](t,n)))})),r}function et(n,t,r,e){return ot(t- -146,n)}function it(){const n=["DhjHBNnMB3jTzxjZ","y3DK","C25HChnOB3rZ","y3vZDg9TugfYC2vY","z2v0u2nYAxb0rMLSzu5HBwvZ","zMLSzu5HBwvZ","DMfSDwvZ","z2v0q29TCgLSyxrPB25tzxr0Aw5NCW","B3b0Aw9UCW","z2v0vhLWzvjVB3rZvMvYC2LVBG","DxnLq2fZzvnLBNnPDgL2zuzPBgvoyw1LCW","C3LZ","z2v0rgvMyxvSDeXPyKzPBgvoyw1L","CMvHzerPCMvJDg9YEq","CMvHzezPBgu","zMLSzuv4Axn0CW","zgLYzwn0B3j5rxHPC3rZ","z2v0rgLYzwn0B3jPzxm","CMvHBhbHDgG","DhjHy2u","Bg9N","DMvYC2LVBNm","C2v0tgfUz3vHz2vtzxj2AwnL","AxnvvfngAwXL","AxnwDwvgAwXL","C2vYDMLJzq","y3vZDg9TvhjHBNnMB3jTzxjZ","Aw5PDfrYyw5ZzM9YBwvYCW","C2v0u25HChnOB3q","zw5KC1DPDgG","lNv0CW","CMvWBgfJzq","lNrZ","zNjVBvn0CMLUzW","ywrK","z2v0u2nYAxb0u25HChnOB3q","z2v0u2nYAxb0vMvYC2LVBG","Dg9tDhjPBMC","BgvUz3rO","CgfYC2vY","yMvMB3jL","y29Uy2f0","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm","x191DhnqyxjZzxjFxW","C2v0q29TCgLSzxjiB3n0"];return(it=function(){return n})()}function ot(n,t){const r=it();return ot=function(t,e){let i=r[t-=0];if(void 0===ot.rYrqKG){ot.gLOtXx=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,ot.rYrqKG=!0}const o=t+r[0],u=n[o];return u?i=u:(i=ot.gLOtXx(i),n[o]=i),i},ot(n,t)}function ut(n,t,r,e){return ot(e- -453,t)}class ct{constructor(n,t,r){function e(n,t,r,e){return ot(n- -32,e)}function i(n,t,r,e){return ot(n-158,e)}this.parsedConfig=n,this[i(158,155,180,158)]=t,this[i(159,148,178,149)]=r,this[e(-30,0,0,-30)]={},this.versions={},this[e(-29,0,0,-52)]={},this[i(162,149,183,173)]=()=>Array.from(this[i(163,150,155,162)][i(164,175,149,181)]()),this[i(165,165,171,180)]=()=>this.parsedConfig[i(166,176,188,183)],this[e(-23,0,0,-26)]=()=>0,this.getCurrentDirectory=()=>this[e(-31,0,0,-35)],this[e(-22,0,0,-3)]=()=>Pn[e(-21,0,0,-12)][i(168,163,182,176)],this[e(-20,0,0,-23)]=Pn.getDefaultLibFilePath,this[e(-19,0,0,-25)]=Pn[i(169,180,177,148)][i(171,180,172,172)],this[e(-18,0,0,-1)]=Pn.sys.readFile,this[e(-17,0,0,0)]=Pn.sys[i(173,153,191,191)],this[i(174,183,184,182)]=Pn[e(-21,0,0,-31)][e(-16,0,0,-36)],this[i(175,176,189,154)]=Pn[e(-21,0,0,-12)][i(175,193,173,160)],this[e(-14,0,0,-2)]=Pn[e(-21,0,0,-13)][e(-14,0,0,4)],this[i(177,0,0,167)]=console[i(178,0,0,189)],this[i(163,0,0,177)]=new Set(n[e(-27,0,0,-23)])}reset(){var n,t;this.snapshots={},this[(n=631,t=649,ot(n-610,t))]={}}[et(-115,-124)](n){function t(n,t,r,e){return ot(n- -496,r)}function r(n,t,r,e){return ot(r- -337,e)}n[t(-473,-464,-458)]=Nn,n[r(-296,-326,-313,-294)]=Yn,this[t(-471,0,-460)]=n,!this[t(-470,0,-481)]&&this[r(0,0,-310,-315)](this.transformers||[])}[ut(0,-407,0,-425)](n,t){function r(n,t,r,e){return ot(t-555,e)}function i(n,t,r,e){return ot(e- -472,r)}(n=e.normalizePath(n))[r(0,584,0,588)](r(0,585,0,597))&&this.setSnapshot(n[r(0,586,0,576)](/\.uts$/,r(0,587,0,578)),t);const o=Pn.ScriptSnapshot[i(0,0,-449,-439)](t);return this[i(0,0,-464,-470)][n]=o,this[i(0,0,-455,-451)][n]=(this[i(0,0,-450,-451)][n]||0)+1,this[r(0,560,0,574)][i(0,0,-427,-438)](n),o}[ut(0,-422,0,-418)](n){function t(n,t,r,e){return ot(n-467,r)}if((n=e.normalizePath(n))in this[t(469,0,476)])return this[t(469,0,457)][n];const r=Pn[t(478,0,492)][(i=41,o=47,ot(o-33,i))](n);var i,o;return r?this.setSnapshot(n,r):void 0}[et(-126,-110)](n){function t(n,t,r,e){return ot(e-944,r)}return n=e.normalizePath(n),(this[t(0,0,982,965)][n]||0)[t(0,0,990,981)]()}[et(-115,-119)](n){if(void 0===this[e(-165,-146)]||void 0===n||0===this.transformers[e(-152,-139)])return;const t={before:[],after:[],afterDeclarations:[]};for(const i of n){const n=i(this.service);n.parser&&(this[r(788,798,786)]=n[e(-151,-145)]),n.before&&(t[r(850,835,825)]=t.before[e(-149,-142)](n[e(-150,-164)])),n[r(814,837,850)]&&(t[e(-148,-155)]=t[r(817,837,860)][e(-149,-153)](n[e(-148,-135)])),n[e(-147,-164)]&&(t.afterDeclarations=t.afterDeclarations[e(-149,-169)](n[e(-147,-137)]))}function r(n,t,r,e){return ot(t-795,r)}function e(n,t,r,e){return ot(n- -190,t)}return this[e(-164,-186)]=t,globalThis[e(-146,-167)]=this[e(-187,-203)],t}getCustomTransformers(){return this.customTransformers}[et(-123,-101)](n){}}function st(){const n=["zMLUzenVBMzPz0zPBgu","C3LZ","zMLSzuv4Axn0CW","DhnJB25MAwC","zxjYB3i","zMfPBgvKihrVig9Wzw4GjW","y3DK","CMvHzezPBgu","CgfYC2vdB25MAwDgAwXLvgv4DfrVsNnVBG","y29UzMLN","zMfPBgvKihrVihbHCNnLicC","BwvYz2u","DhnJB25MAwDezwzHDwX0CW","CgfYC2vkC29Uq29UzMLNrMLSzunVBNrLBNq","B3b0Aw9UCW","Bw9KDwXL","tw9KDwXLs2LUza","rvmYmde1","rvmYmdiW","rvmYmdiY","rvnozxH0","sw5JB21WyxrPyMXLihrZy29UzMLNig9WDgLVBI4Gtw9KDwXLihjLC29SDMvZihrVicC","jY4GvgHPCYbPCYbPBMnVBxbHDgLIBguGD2L0AcbsB2XSDxaSihbSzwfZzsb1C2uGj21VzhvSztOGiKvtmJaXnsiNlcaNBw9KDwXLoIaIrvmYmdiWiICSicDTB2r1Bgu6icjfuZiWmJiIjYWGB3iGj21VzhvSztOGiKvttMv4DciNlG","zxjYB3jZ","zgvIDwC","yNvPBhqTAw4GB3b0Aw9UCYbVDMvYCMLKzxm6ia","C3rYAw5NAwz5","CgfYC2vKihrZy29UzMLNoIa"];return(st=function(){return n})()}function ft(n,t){const r=st();return ft=function(t,e){let i=r[t-=0];if(void 0===ft.UVdvRi){ft.mAqSFU=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,ft.UVdvRi=!0}const o=t+r[0],u=n[o];return u?i=u:(i=ft.mAqSFU(i),n[o]=i),i},ft(n,t)}function at(n,t,r,e){return vt(e-113,r)}function vt(n,t){var r=ht();return vt=function(t,e){var i=r[t-=0];if(void 0===vt.XcsDGk){vt.kmluMJ=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var c=0,s=e.length;c<s;c++)i+="%"+("00"+e.charCodeAt(c).toString(16)).slice(-2);return decodeURIComponent(i)},n=arguments,vt.XcsDGk=!0}var o=t+r[0],u=n[o];return u?i=u:(i=vt.kmluMJ(i),n[o]=i),i},vt(n,t)}function ht(){var n=["CM9SBgvK","B2XKq2fJAgvsB290","y2fJAgvsB290","l2nHy2HL","l2nHy2HLxW","BMv3q2fJAgvsB290","zxHPC3rZ","Cgf0Aa","Bwf0y2G","BgvUz3rO","C29YDa","DxrMoa","D3jPDgu","Dg91y2G","CM9SBa"];return(ht=function(){return n})()}function zt(n,t,r,e){return vt(t-150,e)}class lt{constructor(n){function t(n,t,r,e){return vt(e-268,n)}function r(n,t,r,e){return vt(r- -443,n)}this.cacheRoot=n,this[t(265,276,269,268)]=!1,this[r(-439,-445,-442)]=this[r(-441,-446,-441)]+r(-442,-433,-440),this.newCacheRoot=this[t(274,274,278,270)]+t(277,268,278,272),h.emptyDirSync(this[t(267,0,0,273)])}[zt(0,156,0,155)](t){function r(n,t,r,e){return vt(t-70,r)}return!this[r(0,70,62)]&&(!!n.existsSync(this[r(0,75,73)]+"/"+t)||n.existsSync(this.oldCacheRoot+"/"+t))}[zt(0,157,0,151)](n){return this[(t=-996,r=-989,vt(t- -997,r))]+"/"+n;var t,r}[at(0,0,128,121)](t){if(this[r(-46,-52,-50,-44)])return!1;if(!n.existsSync(this[e(615,610,618,615)]))return 0===t[e(616,617,626,623)];function r(n,t,r,e){return vt(e- -44,t)}function e(n,t,r,e){return vt(e-614,r)}return d.isEqual(n.readdirSync(this.oldCacheRoot)[e(0,0,622,624)](),t[r(0,-31,0,-34)]())}read(t){function r(n,t,r,e){return vt(t-875,r)}return n.existsSync(this[r(0,880,875)]+"/"+t)?h.readJsonSync(this.newCacheRoot+"/"+t,{encoding:r(0,886,892),throws:!1}):h.readJsonSync(this[r(0,876,876)]+"/"+t,{encoding:"utf8",throws:!1})}[at(0,0,120,125)](n,t){var r,e;this[(r=-242,e=-247,vt(e- -247,r))]||void 0!==t&&h.writeJsonSync(this.newCacheRoot+"/"+n,t)}[zt(0,163,0,160)](n){var t,r;this[(t=60,r=61,vt(t-60,r))]||h.ensureFileSync(this.newCacheRoot+"/"+n)}[at(0,0,133,127)](){function t(n,t,r,e){return vt(r- -199,t)}function r(n,t,r,e){return vt(e- -137,t)}this[r(-140,-141,-129,-137)]||(this[r(0,-140,0,-137)]=!0,h.removeSync(this[t(0,-192,-198)]),n.existsSync(this[r(0,-138,0,-132)])&&n.renameSync(this.newCacheRoot,this[t(0,-193,-198)]))}}function gt(n,t,r,e){return dt(n-492,t)}function Ct(){const n=["B3v0Chv0rMLSzxm","zM9YrwfJAa","BMfTzq","lMqUDhm","zhrZ","zw5KC1DPDgG","lMqUDhmUBwfW","zhrZBwfW","lM1HCa","y29Kzq","Dgv4Da","ChjLuhjVy2vZC0zPBgu","z2v0tgvUz3rO","y29TCgfJDa","CMvMzxjLBMnLzezPBgvZ","y29Uy2f0","Aw1WB3j0zwrgAwXLCW","BwfW","BM9Kzu1VzhvSzu5HBwvszxnVBhzLCG","zMLSzu5HBwu","C3LZ","AgfZ","lNrZ","CMvWBgfJzq","lNv0CW","BM9dywnOzq","Ag9ZDa","y2fJAgvsB290","y29UDgv4Da","y2fJAgvwzxjZAw9U","y2fJAgvqCMvMAxG","DxrZxW","yw1IAwvUDfr5CgvZrgLYDhK","zgvWzw5Kzw5JEvrYzwu","C2v0rgvMyxvSDe5VzgvmywjLBa","y2XLyw4","AgfZAe9WDgLVBNm","AwDUB3jLvw5RBM93BG","y2fJAgveAxi","B3b0Aw9UCW","Aw5PDa","z2v0qxv0B21HDgLJvhLWzurPCMvJDgL2zu5HBwvZ","CMvZB2X2zvr5CgvszwzLCMvUy2veAxjLy3rPDMu","zMLSDgvY","CMvZB2X2zwruExbLuMvMzxjLBMnLrgLYzwn0AxzL","CMvZB2X2zwrgAwXLtMfTzq","yw1IAwvUDfr5CgvZ","z2v0u2nYAxb0u25HChnOB3q","Cgf0Aev4Axn0C1n5BMm","CMvHzgrPCLn5BMm","zgvIDwC","jYbHCYbPDcbKB2vZig5VDcbOyxzLihbYzwzPEcaN","C3rHDfn5BMm","AxneAxjLy3rVCNK","C2TPChbPBMCGy2XLyw5PBMCGjW","jYbHCYbPDcbPCYbUB3qGysbKAxjLy3rVCNK","Aw5MBW","y2XLyw5PBMCGy2fJAgu6ia","CMvTB3zLu3LUyW","zgvWzw5Kzw5JEq","icaGigLTCg9YDgvKigj5icC","Aw1WB3j0ihrYzwuGAgfZign5y2XLCW","BM9Kzxm","zg9Uzq","CM9SBgLUzYbJywnOzxm","CM9SBa","C2vTyw50AwneAwfNBM9ZDgLJC0nHy2HL","C3LUDgfJDgLJrgLHz25VC3rPy3ndywnOzq","z2v0q29TCgLSzwq","AxnVBgf0zwrnB2r1BgvZ","zgvJBgfYyxrPB24","z2v0u3LUDgfJDgLJrgLHz25VC3rPy3m","z2v0rgLHz25VC3rPy3m","z2v0u2vTyw50AwneAwfNBM9ZDgLJCW","y2HLy2TbBwjPzw50vhLWzxm","qw1IAwvUDcb0ExbLCZO","C25HChnOB3q","y3jLyxrLsgfZAa","DhLWzxndywnOzq","Bwf0y2G","yw1IAwvUDcb0ExbLCYbJAgfUz2vKlcbYzwrVAw5NigfSBcbZzw1HBNrPyYbKAwfNBM9ZDgLJCW","Dg91y2G","z2v0q2fJAgvK","icaGignHy2HLoIaN","AxneAxj0Eq","icaGignHy2HLigHPDa","D3jPDgu","icaGignHy2HLig1PC3m","BwfYA0fZrgLYDhK","y29KzunHy2HL","l3r5CgvZ","l3n5BNrHy3rPy0rPywDUB3n0AwnZ","C2v0tM9Kzq","BM9Kzq","zgLYDhK","zgLQA3n0CMe","A2v5CW","zgLZDgfUy2u","icaGigLTCg9YDcbJAgfUz2vKoIa","z2v0vgv4Da","zw52","sfHFvMvYC2LVBG","vu5jx0nptvbjtevsx1zfuLnjt04"];return(Ct=function(){return n})()}function Lt(n,t,r,e){return dt(t- -63,n)}function wt(n,t,r){const e={code:"",references:t,uniExtApis:r};var i,o,u,c;return n[(u=-24,c=-46,dt(u- -24,c))][(i=16,o=67,dt(o-66,i))]((n=>{function t(n,t,r,e){return dt(n-138,e)}function r(n,t,r,e){return dt(t-376,r)}n[r(0,378,374)].endsWith(r(0,379,368))?e[t(142,0,0,167)]=n:n[t(140,0,0,157)][t(143,0,0,106)](t(144,0,0,104))?e[t(145,0,0,163)]=n:n[t(140,0,0,175)].endsWith(r(0,384,387))?e.map=n.text:e[t(147,0,0,181)]=n[t(148,0,0,192)]})),e}function dt(n,t){const r=Ct();return dt=function(t,e){let i=r[t-=0];if(void 0===dt.RhMVRs){dt.isseWy=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,dt.RhMVRs=!0}const o=t+r[0],u=n[o];return u?i=u:(i=dt.isseWy(i),n[o]=i),i},dt(n,t)}class Bt{constructor(n,t,r,e,i,o,u,c){function s(n,t,r,e){return dt(n-977,r)}function f(n,t,r,e){return dt(r-118,e)}if(this[f(156,99,143,184)]=n,this[s(1003,0,1039)]=e,this[f(0,0,145,153)]=i,this.options=o,this[f(0,0,146,161)]=c,this[f(0,0,147,131)]="9",this[s(1007,0,965)]=s(1008,0,995),this[s(1009,0,981)]=!1,this.hashOptions={algorithm:"sha1",ignoreUnknown:!1},this[s(1010,0,1050)]=new z.Graph({directed:!0}),this[f(0,0,151,133)][f(0,0,152,171)]((()=>({dirty:!1}))),t&&this[s(1012,0,1038)](),n)return;this[s(1013,0,980)][f(0,0,155,105)]=r,this[s(1015,0,983)]=this[s(1004,0,1025)]+"/"+this[f(0,0,148,143)]+l({version:this[f(0,0,147,191)],rootFilenames:u,options:this[f(0,0,157,205)],tsVersion:Pn.version},this[f(0,0,154,106)]),this[f(0,0,158,130)]();const a=Pn[s(1018,0,1043)](o,Pn[s(997,0,1018)])[s(994,0,991)]((n=>Pn[s(1019,0,968)](n,void 0,o,Pn[s(997,0,1048)])))[f(0,0,161,131)]((n=>n[f(0,0,162,213)]?.[f(0,0,163,171)])).map((n=>n[s(1021,0,1052)][s(1022,0,1036)]));this[f(0,0,164,117)]=u.filter((n=>n[s(982,0,942)](".d.ts")))[s(992,0,1011)](a)[f(0,0,135,86)]((n=>({id:n,snapshot:this[s(1003,0,989)][f(0,0,165,120)](n)}))),this.checkAmbientTypes()}[Lt(-22,-28)](){function n(n,t,r,e){return dt(t-80,r)}if(!B[(t=901,r=916,dt(t-853,r))](this.cacheRoot))return;var t,r;B[n(0,129,100)](this[n(0,107,65)])[n(0,81,99)]((n=>{const t=this[e(126,95,159,143)]+"/"+n;function r(n,t,r,e){return dt(t-449,n)}function e(n,t,r,e){return dt(e-116,r)}n.startsWith(this[e(132,178,115,146)])?B[e(200,133,185,168)](t)[e(145,211,176,169)]?(this[e(92,101,126,144)][r(518,505)](i.blue(r(496,506)+t)),B[r(553,507)](""+t)):this[r(489,477)][r(497,499)](r(466,503)+t+r(546,504)):this.context[e(177,215,211,166)]("skipping cleaning '"+t+r(492,500)+this[e(143,185,102,146)]+"'")}))}setDependency(n,t){function r(n,t,r,e){return dt(r-755,e)}function e(n,t,r,e){return dt(e- -742,t)}this[e(-716,-672,-703,-714)].debug(i.blue(e(-689,-642,-715,-683))+" '"+n+"'"),this[r(0,0,783,746)].debug(r(0,0,815,768)+t+"'"),this[e(0,-743,0,-709)].setEdge(t,n)}walkTree(n){if(z.alg.isAcyclic(this.dependencyTree))return z.alg.topsort(this[t(609,625)])[r(292,264,304,294)]((t=>n(t)));function t(n,t,r,e){return dt(n-576,t)}function r(n,t,r,e){return dt(e-293,t)}this[t(604,563)][r(359,400,370,349)](i.yellow(t(637,657))),this[t(609,645)][r(0,363,0,355)]()[r(0,297,0,294)]((t=>n(t)))}[Lt(46,0)](){function n(n,t,r,e){return dt(e- -187,r)}function t(n,t,r,e){return dt(t-450,r)}this[t(470,475,516)]||(this[n(-187,-150,-175,-159)][n(-108,-152,-123,-131)](i.blue(n(-108,-75,-173,-123))),this.codeCache[n(0,0,-114,-122)](),this[t(554,516,544)].roll(),this[n(0,0,-152,-120)].roll(),this.typesCache[t(0,515,476)]())}[gt(560,575)](n,t,r){function e(n,t,r,e){return dt(t-965,n)}return this[(o=773,u=807,dt(o-745,u))][e(1064,1021)](i.blue("transpiling")+" '"+n+"'"),this.getCached(this.codeCache,n,t,Boolean(!this[e(959,1004)][e(1023,1034)]||this[e(963,1004)][e(1081,1035)]),r);var o,u}[Lt(18,8)](n,t,r,e){function i(n,t,r,e){return dt(r-56,n)}return this[i(134,0,128)]("syntax",this[i(79,0,123)],n,t,r,e)}[Lt(58,10)](n,t,r,e){return this[(u=678,c=722,dt(c-650,u))]("semantic",this[(i=815,o=832,dt(i-749,o))],n,t,r,e);var i,o,u,c}[gt(566,610)](){function n(n,t,r,e){return dt(e- -485,n)}this[r(-941,-897,-889)][n(-417,0,0,-435)](i.blue(n(-426,0,0,-410)));const t=this.ambientTypes.filter((n=>void 0!==n[r(-851,-818,-841)]))[r(-932,-864,-900)]((n=>{function t(n,t,r,e){return dt(n-654,r)}function r(n,t,r,e){return dt(t- -820,e)}return this[r(-815,-792,-793,-777)][t(704,0,675)](" "+n.id),this[t(731,0,737)](n.id,n[r(0,-744,0,-754)])}));function r(n,t,r,e){return dt(r- -917,t)}this[r(0,-846,-885)]=!this[n(-457,0,0,-407)][n(-419,0,0,-406)](t),this.ambientTypesDirty&&this[n(-458,0,0,-457)].info(i.yellow(r(0,-819,-837))),t[n(-450,0,0,-484)](this[r(0,-788,-839)][n(-431,0,0,-404)],this[r(0,-796,-839)])}getDiagnostics(n,t,r,e,i,o){return this[(u=-716,c=-745,dt(u- -798,c))](t,r,e,"semantic"===n,(()=>Jn(n,i(),o)));var u,c}[Lt(31,19)](n,t,r,e,o){if(this[s(-397,-406)])return o();const u=this[f(435,433,476)](t,r);if(this[s(-394,-374)][f(366,406,452)](s(-339,-341)+n.path(u)+"'"),n.exists(u)&&!this[s(-338,-334)](t,e)){this.context.debug(i.green(s(-337,-311)));const t=n.read(u);if(t)return n[f(485,442,458)](u,t),t;this.context.warn(i.yellow(" cache broken, discarding"))}this[f(416,384,428)].debug(i.yellow(s(-335,-285)));const c=o();function s(n,t,r,e){return dt(n- -422,t)}function f(n,t,r,e){return dt(t-356,r)}return n[s(-336,-352)](u,c),this[f(0,444,427)](t),c}init(){function n(n,t,r,e){return dt(r-340,e)}function t(n,t,r,e){return dt(t- -387,n)}this[t(-302,-298)]=new lt(this[n(334,330,378,364)]+"/code"),this[n(0,0,418,453)]=new lt(this[n(0,0,378,345)]+n(0,0,430,415)),this[n(0,0,407,454)]=new lt(this[t(-344,-349)]+t(-308,-296)),this.semanticDiagnosticsCache=new lt(this[n(0,0,378,397)]+"/semanticDiagnostics")}[Lt(-7,25)](n){var t,r;this.dependencyTree[(t=-752,r=-710,dt(r- -802,t))](n,{dirty:!0})}isDirty(n,t){function r(n,t,r,e){return dt(e-840,n)}const e=this[i(213,191,190,210)][r(889,0,0,933)](n);function i(n,t,r,e){return dt(e-177,t)}if(!e)return!1;if(!t||e[i(0,314,0,271)])return e[i(0,235,0,271)];if(this.ambientTypesDirty)return!0;const o=z.alg[r(944,0,0,935)](this[r(892,0,0,873)],n);return Object[r(946,0,0,936)](o).some((n=>{const t=o[n];if(!n||t[(r=294,e=275,dt(e-178,r))]===1/0)return!1;var r,e;function i(n,t,r,e){return dt(e- -773,t)}const u=this[i(0,-739,0,-740)][i(0,-728,0,-680)](n),c=void 0===u||u.dirty;return c&&this[i(0,-723,0,-745)][i(0,-673,0,-723)](i(0,-698,0,-675)+n),c}))}createHash(n,t){const r=t[e(173,214,147)](0,t[e(86,67,101)]());function e(n,t,r,e){return dt(n-74,r)}function i(n,t,r,e){return dt(r-919,t)}return l({data:r,id:n,compilerVersion:process[e(174,0,158)][i(0,969,1020)]||process[i(0,1061,1019)][e(176,0,204)]},this[e(110,0,127)])}}const xt=Dt(-347,-345,-347,-346);function yt(){const n=["DhnSAwi","ahrZBgLIlMPZ"];return(yt=function(){return n})()}function Dt(n,t,r,e){return Mt(e- -346,t)}function Mt(n,t){const r=yt();return Mt=function(t,e){let i=r[t-=0];if(void 0===Mt.vlEYWn){Mt.zHKJwI=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Mt.vlEYWn=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Mt.zHKJwI(i),n[o]=i),i},Mt(n,t)}const mt=Dt(0,-344,0,-345);function At(n,t,r,e){return pt(e- -585,n)}function pt(n,t){const r=Ut();return pt=function(t,e){let i=r[t-=0];if(void 0===pt.EGYaod){pt.cqKiws=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,pt.EGYaod=!0}const o=t+r[0],u=n[o];return u?i=u:(i=pt.cqKiws(i),n[o]=i),i},pt(n,t)}function bt(n,t,r,e){return pt(e- -140,t)}const St=o(bt(0,-65,0,-140)),jt=bt(0,-93,0,-139),qt=At(-516,0,0,-583),Pt=At(-651,0,0,-582);function Ut(){const n=["DxrZmMPZ","pJ01lJaUma","pJ0ZlJaUma","ms4WlJa","BgvUz3rO","q29TCg9Uzw50","igzYB20GjW","icb0ExbLia","x2vHC3LJB21vC2fNzq","x2vHC3LJB21Z","x2nVzgvnyxa","AgfZ","C2v0","y2HHBMDL","z2v0","zM9YrwfJAa","Aw5PDfv0CZjQC0vHC3LJB20","C2v0rwfZEwnVBvvZywDL","Aw5KzxHpzG","C3bSAwnL","y29Uy2f0","z2v0u2vTyw50AwneAwfNBM9ZDgLJCW","ywrK","ChjLDhr5","zhrZ","zgvIDwC","igzVCIaN","lMqUDhm","zw5KC1DPDgG","lMqUy3rZ","lMqUBxrZ","DgHLCMuGD2vYzsbLCNjVCNmGB3iGD2fYBMLUz3mU","zg9Uzq","yxnZAwDU","v2fYBMLUzW","CM9SBhvWlxbSDwDPBI11Dhm","kIOVkI4OFhuPDhmRkhX4kq","kIOVkI5JDhm","kIOVkI5TDhm","kI5KlNrZ","kIOVkI5KlM10CW","y3DK","DhLWzxnJCMLWDa","Bw9KDwXLCW","DxrZmMPZu291CMnLq29Kzu1HCa","DxrZ","ywrKtgLZDgvUzxi","ywXS","Dw5SAw5R","zgvSzxrL","ywjVCNrpBKvYCM9Y","DxrZoIa","Dhj1zq","Bwv0yq","D2f0y2HnB2rL","DhLWzxnJCMLWDcb2zxjZAw9UoIa","DMvYC2LVBG","Aw5MBW","DhnSAwiGDMvYC2LVBJOG","CM9SBhvWihzLCNnPB246ia","CM9SBhvWvMvYC2LVBG","zxjYB3i","sw5ZDgfSBgvKifr5Cgvty3jPChqGDMvYC2LVBIaN","jYbPCYbVDxrZAwrLig9Mihn1ChbVCNrLzcbYyw5NzsaN","pJ0YlJyWlJa","D2fYBG","ww91igfYzsb1C2LUzYbHifjVBgX1Ccb2zxjZAw9UicC8mI42mc4WjW","lIbuAgLZig1HEsbYzxn1BhqGAw4GDhLWzs1VBMX5igzPBgvZigjLAw5NigLNBM9YzwqU","CM9SBhvWlxbSDwDPBI11DhmGDMvYC2LVBJOG","CgX1z2LUig9WDgLVBNm6cG","C3rYAw5NAwz5","DMvYC2LVBIa","CM9SBhvWignVBMzPzZOk","DhnJB25MAwCGCgf0AdOG","B2jQzwn0sgfZAeLNBM9YzvvUA25VD25iywnR","ww91igfYzsb1C2LUzYaNB2jQzwn0sgfZAeLNBM9YzvvUA25VD25iywnRjYbVChrPB24","lIbjzIb5B3uGzw5HyMXLzcbPDcbIzwnHDxnLig9MigfZEw5Jigz1BMn0Aw9UCYWGDhj5igrPC2fIBgLUzYbPDcbUB3CU","CM9SBhvWq29TBw9UsLnszxnVBhzLsgfJAW","ww91igfYzsb1C2LUzYaNCM9SBhvWq29TBw9UsLnszxnVBhzLsgfJAYCGB3b0Aw9U","lIbuAgLZigLZig5VigXVBMDLCIbUzwvKzwqSihrYEsbKAxnHyMXPBMCGAxqGBM93lG","CNvUBMLUzYbPBIb3yxrJAcbTB2rL","DhjHBNnMB3jTzxjZ","C2v0u25HChnOB3q","DxrZt3b0Aw9UCW","DhnSAwjtB3vYy2u","C2v0tgfUz3vHz2vtzxj2AwnL","y2XLyw4","BM9dywnOzq","y2fJAgvsB290","B3b0Aw9UCW","z2v0q29TCgLSzxjpChrPB25ZrgLHz25VC3rPy3m","zw52","vu5jx1vuu19qtefurK9stq","D2vI","y3jLyxrL","C3LZ","CMvZB2X2zwrgAwXLtMfTzq","lNrZ","lNv0CW","DgvZDa","CMvWBgfJzq","C2v0rgvWzw5Kzw5JEq","CMvZB2X2Aw5N","jYbPBxbVCNrLzcbIEsaN","icaGihrVicC","Bwf0y2HbBgW","ChvZAa","BM93","z2v0q29TCgLSzwq","z2v0uhjVz3jHBq","zw1PDfr5Cgu","q291BgqGBM90igzPBMqGC291CMnLigzPBgu6icC","ChjPBNrtB3vYy2vgAwXL","Aw5WDxreAxi","y29Kzq","BwfW","z2v0rw1PDe91Dhb1Da","z2v0q29TyMLUzwrtB3vYy2vTyxa","rw1PDcbZA2LWCgvKigzVCIaN","jY4Gu2vLigH0DhbZoI8Vz2L0AhvIlMnVBs9TAwnYB3nVzNqVvhLWzvnJCMLWDc9PC3n1zxmVndK3otaGzM9YihbVDgvUDgLHBcbYzwfZB25ZihDOEsb0AgLZig1HEsbVy2n1CG","x191DhnnzxrH","Dw5PrxH0qxbPCW","y2HLy2S","CMvMzxjLBMnLCW","ywrKv2f0y2HgAwXL","icaGihDHDgnOAw5N","AM9PBG","CMvZB2X2zq","zw1PDerLy2XHCMf0Aw9Ut25SEq","igvUywjSzwqSig5VDcb0CMfUC2zVCM1PBMCGvfm","C291CMnLuM9VDa","C291CMnLCW","BxmG","C3rHy2S","C3bSAxq","BwvZC2fNzq","z2v0u2nYAxb0u25HChnOB3q","zMLSzu5HBwvZ","DhLWzs1JAgvJA2LUzYbTAxnZzwqGjW","z2vUzxjHDgLUzYb0yxjNzxqG","zgvJBgfYyxrPB24","z2vUzxjHDgLUzYbTAxnZzwqGzgvJBgfYyxrPB25ZigzVCIaN","zw1PDhrPBMCGzgvJBgfYyxrPB25Z","jYb0BYaN","D3jPDgvcExrLt3jKzxjnyxjR","Dgv4Da","zMLSzq","zgLY","yxnZzxq","A2v5CW"];return(Ut=function(){return n})()}class Nt extends u.EventEmitter{constructor(){var n,t,r,e;super(),this._codeMap=new Map,this[(n=252,t=264,pt(n-244,t))]=new Map,this[(r=756,e=821,pt(e-812,r))]=[]}has(n){function t(n,t,r,e){return pt(e-692,t)}return this[t(0,634,0,702)][t(0,683,0,703)](e.normalizePath(n))}[bt(0,-85,0,-128)](n,t){function r(n,t,r,e){return pt(t-452,r)}const i=e.normalizePath(n);var o,u;this.get(i)!==t&&(this[r(0,462,452)][(o=406,u=374,pt(o-394,u))](n,t),this.emit(r(0,465,469),{fileName:i,source:t}))}[bt(0,-186,0,-126)](n){function t(n,t,r,e){return pt(n-563,r)}return this[t(573,0,637)][t(577,0,571)](e.normalizePath(n))}[At(-512,0,0,-570)](n){var t,r,e,i;this[(e=134,i=132,pt(e-124,i))][(t=-685,r=-646,pt(t- -700,r))](n)}[At(-549,0,0,-569)](n=this[At(-576,0,0,-576)]){function t(n,t,r,e){return pt(t-363,r)}var r,e;this[t(429,372,362)]=n||[],this[t(0,375,430)]("/__uts2js_vfs__/shim-uni-easycom.d.ts",function(n){let t="";function r(n,t,r,e){return pt(t- -811,n)}let e="";for(let i=0;i<n[r(-765,-807)];i++){const{name:o,replacement:u}=n[i],c=s.upperFirst(s.camelCase(o))+r(-853,-806);t+="import "+c+r(-879,-805)+u+"'\n",e+=r(-828,-804)+c+"PublicInstance = InstanceType<typeof "+c+">\n"}return t+"\ndeclare global {\n"+e+"\n}"}(function(n,t){const r=[];return n.forEach((n=>{const{name:e}=n,i=t.get(s.upperFirst(s.camelCase(e)));var o,u;i&&i[(o=928,u=869,pt(u-865,o))]>0&&r.push(n)})),r}(this[(r=697,e=715,pt(r-688,e))],this[t(0,371,318)])))}[bt(0,-127,0,-123)](n,t=[]){function r(n,t,r,e){return pt(t- -564,n)}function i(n,t,r,e){return pt(t-55,n)}n=e.normalizePath(n),this[i(-5,63)][i(69,70)](((r,e)=>{function i(n,t,r,e){return pt(t-398,e)}if(!t.includes(e)){const t=r[i(0,416,0,435)](n);t>-1&&r[i(0,417,0,476)](t,1),0===r.length&&this[i(0,406,0,413)].delete(e)}}));for(let e=0;e<t[r(-532,-560)];e++){const i=t[e];!this[r(-623,-556)].has(i)&&this[r(-607,-556)][r(-536,-552)](i,[n])}this.initUts2jsEasycom()}}const Yt=n=>{let r,o,u,s,v,h,z,l,g=!1,C=!1,L=0;function w(n,t,r,e){return pt(r- -108,e)}function B(n,t,r,e){return pt(t- -471,e)}let x,y,D=!0;const M={},A=new Set,p=(n,t,r,i)=>{if(!t)return;function o(n,t,r,e){return pt(n- -776,t)}n=e.normalizePath(n),A[o(-754,-808)](n);const u=(c=n,f=t,a=i,x.getSyntacticDiagnostics(c,f,(()=>z.getSyntacticDiagnostics(c)),a)[(v=159,h=98,pt(h-78,v))](x.getSemanticDiagnostics(c,f,(()=>{return z[(n=549,t=608,pt(n-528,t))](c);var n,t}),a)));var c,f,a,v,h;On(r,u,!1!==s.options[o(-753,-810)]),u.length>0&&(D=!1)},b=(n,t)=>{function r(n,t,r,e){return pt(r-69,t)}if(!t[r(0,148,93)])return;const u=e.normalizePath(n);var c,s;M[u]={type:t[r(0,147,93)],map:t.dtsmap},o[(c=-866,s=-848,pt(s- -873,c))]((()=>i.blue("generated declarations")+r(0,106,95)+u+"'"))},S=n=>{if(n.endsWith(r(-555,-609,-625,-602))||n[r(-672,-548,-550,-601)](t(165,138,189))||n[t(223,256,188)](t(233,180,190)))return!1;if(!u(n))return!1;function t(n,t,r,e){return pt(r-160,n)}function r(n,t,r,e){return pt(e- -629,r)}return!0},j=()=>{function n(n,t,r,e){return pt(n- -908,r)}g||D||o.info(i.yellow(n(-877,-834,-951))),x?.[n(-876,0,-839)]()},q=Object[B(0,-438,0,-437)]({},{check:!0,verbosity:Rn[B(0,-437,0,-402)],clean:!1,cacheRoot:c({name:w(0,0,-73,-147)}),include:["*.(|u)ts+(|x)",B(0,-435,0,-381),w(0,0,-71,-52),B(0,-433,0,-387)],exclude:[w(0,0,-69,-140),"**/*.d.ts","**/*.d.cts",B(0,-431,0,-456)],abortOnError:!1,rollupCommonJSResolveHack:!1,tsconfig:void 0,useTsconfigDeclarationDir:!1,tsconfigOverride:{},transformers:[],tsconfigDefaults:{},objectHashIgnoreUnknownHack:!1,cwd:process[B(0,-430,0,-401)]()},n);!q[B(0,-429,0,-443)]&&(q.typescript=require(w(0,0,-66,-96))),Zn(q[w(0,0,-66,-38)],n[B(0,-428,0,-484)]),globalThis[w(0,0,-64,-45)]=new Nt;return{name:B(0,-426,0,-430),options:n=>(r={...n},n),configureServer(n){var t,r;n.watcher[(t=253,r=291,pt(r-245,t))](pt(237-190,256),((n,t)=>{function r(n,t,r,e){return pt(e-643,n)}function i(n,t,r,e){return pt(t-309,r)}if(n===r(705,0,0,665)||n===i(0,357,412)){const n=e.normalizePath(t);m[i(0,320,351)](n)&&m[r(646,0,0,692)](n)}}))},buildStart(){function n(n,t,r,e){return pt(e-920,n)}l=Pn.createDocumentRegistry(),o=new Qn(q.verbosity,q[L(226,284)],this,L(227,204)),g=process.env.ROLLUP_WATCH===n(1026,939,898,972)||!!this[L(229,289)][L(230,221)],({parsedTsConfig:s,fileName:v}=function(n,r){const e=Pn[i(897,883,890,896)](r.cwd,Pn[i(893,897,889,897)][u(57,57,57)],r[i(898,896,897,899)]);function i(n,t,r,e){return ft(e-896,t)}void 0===r[i(0,894,0,899)]||e||n[u(63,73,59)](i(0,909,0,901)+r.tsconfig+"'");let o={};function u(n,t,r,e){return ft(r-55,n)}let c,s=r[i(0,913,0,902)],f=!0;if(e){const r=Pn.sys[u(55,0,62)](e),a=Pn[u(52,0,63)](e,r);f=a[u(53,0,64)]?.pretty??f,void 0!==a[u(67,0,59)]&&(On(n,Jn("config",[a.error]),f),n[u(58,0,59)](i(0,916,0,906)+e+"'")),o=a[i(0,901,0,905)],s=t.dirname(e),c=e}const a={};d[i(0,918,0,907)](a,r[i(0,905,0,908)],o,r.tsconfigOverride);const v=Pn.parseJsonConfigFileContent(a,Pn.sys,s,tt(r),c),h=tt(r,v),z=Pn[u(69,0,68)](a,Pn[i(0,901,0,897)],s,h,c),l=z[u(62,0,69)][u(72,0,70)];return l!==Pn[u(63,0,71)][u(59,0,72)]&&l!==Pn[i(0,902,0,912)][u(73,0,73)]&&l!==Pn[i(0,919,0,912)][i(0,910,0,915)]&&l!==Pn.ModuleKind[i(0,927,0,916)]&&n[i(0,902,0,900)](u(82,0,76)+Pn[u(64,0,71)][l]+i(0,930,0,918)),On(n,Jn("config",z[i(0,927,0,919)]),f),n[u(89,0,79)](u(67,0,80)+JSON[u(93,0,81)](h,void 0,4)),n[i(0,927,0,920)](u(73,0,82)+JSON[i(0,933,0,922)](z,void 0,4)),{parsedTsConfig:z,fileName:e}}(o,q)),o.info(L(231,175)+Pn[n(973,960,1023,976)]),o[L(233,219)](L(234,219)+q.utsOptions.tslibVersion),o[n(1011,1009,938,977)](L(235,168)+this.meta[L(236,254)]),f.satisfies(Pn.version,jt,{includePrerelease:!0})||o[L(237,169)](n(909,912,976,982)+Pn[L(232,257)]+n(954,929,990,983)+jt+"'"),f.satisfies(this[L(229,226)][L(236,283)],qt,{includePrerelease:!0})||o[n(1052,980,935,981)]("Installed Rollup version '"+this.meta[L(236,233)]+n(1021,1014,1030,983)+qt+"'"),C=f.satisfies(this[L(229,184)][L(236,239)],n(1039,967,1031,984),{includePrerelease:!0}),C||o[L(241,176)]((()=>i.yellow(n(998,1055,1010,986))+L(243,196))),o[L(233,206)](L(244,240)+Pt),o[n(998,913,918,945)]((()=>n(949,1055,919,989)+JSON[n(930,1020,975,990)](q,((n,t)=>"typescript"===n?L(247,224)+t.version:t),4))),o[L(201,251)]((()=>L(248,181)+JSON[L(246,252)](r,void 0,4))),o.debug((()=>L(249,249)+v)),q[L(250,243)]&&o[L(241,271)]((()=>i.yellow(L(251,208))+L(252,239))),q[L(253,314)]&&o.warn((()=>i.yellow(L(254,220))+L(255,276))),g&&o.info(n(1046,1003,991,1e3)),u=function(n,t,r){function i(n,t,r,e){return $n(t- -906,n)}let o=t[i(-890,-897)],u=t[i(-887,-896)];function c(n,t,r,e){return $n(n-717,r)}return r[c(718,0,714)][c(728,0,731)]&&(o=rt(o,r[c(718,0,710)][c(728,0,722)]),u=rt(u,r[i(-894,-905)][c(728,0,727)])),r.projectReferences&&(o=rt(o,r[i(-905,-894)].map((n=>n.path)))[i(-895,-893)](o),u=rt(u,r[c(729,0,731)][i(-899,-892)]((n=>n[c(732,0,721)])))[c(730,0,738)](u)),n[c(733,0,731)]((()=>c(734,0,728)+JSON[c(735,0,725)](o,void 0,4))),n[c(733,0,723)]((()=>i(-894,-887)+JSON[c(735,0,725)](u,void 0,4))),e.createFilter(o,u,{resolve:r.options[c(737,0,729)]})}(o,q,s),h=new ct(s,q[n(962,1e3,937,1001)],q[L(217,250)]),globalThis[L(220,263)][L(191,225)](((n,t)=>{var r,e;h[(r=-647,e=-686,pt(e- -768,r))](t,n)})),h[n(939,1025,1061,1002)](xt,q[L(259,258)][L(260,323)]),globalThis[n(1005,963,1037,964)].on(n(943,961,973,933),(function(n){const{fileName:t,source:r}=n||{};var e,i;h[(e=-46,i=-33,pt(e- -128,i))](t,r)})),z=Pn.createLanguageService(h,l),h[L(261,242)](z);const c=q[n(990,0,0,1006)],a=q[n(1014,0,0,1007)]||q.clean;function L(n,t,r,e){return pt(n-176,t)}if(x=new Bt(a,c,q.objectHashIgnoreUnknownHack,h,q[n(1029,0,0,1008)],s[n(1034,0,0,1009)],s.fileNames,o),y=new Set,q.check){const t=Jn(L(265,269),z[n(1023,0,0,1010)]());On(o,t,!1!==s[n(935,0,0,1009)][n(876,0,0,943)]),t.length>0&&(D=!1)}},watchChange(n,t){const r=e.normalizePath(n);if(delete M[r],A[o(354,384,429)](r),process[o(352,426,463)][u(506,553,517,503)]===u(485,523,467,504))return;const{event:i}=t||{};function o(n,t,r,e){return pt(t-335,r)}function u(n,t,r,e){return pt(e-411,t)}(i===u(0,526,0,505)||i===u(0,501,0,460))&&m[u(0,459,0,422)](r)&&m[u(0,391,0,460)](r)},resolveId(n,r){if(n===xt)return mt;if(!r)return;function u(n,t,r,e){return pt(t- -291,r)}r=e.normalizePath(r);const c=Pn.nodeModuleNameResolver(n,r,s[a(881,883,816)],Pn[a(853,800,822)]);let f=c.resolvedModule?.[a(857,867,823)];if(f){if(Un[u(0,-280,-244)](e.normalizePath(f))&&(f=f.replace(a(758,0,824),u(0,-193,-161))),/.u?vue.ts$/[a(773,0,826)](f))return f=f[a(856,0,827)](/.ts$/,""),t.normalize(f);if(S(f))return x[a(799,0,828)](f,r),o[u(0,-266,-273)]((()=>i.blue(a(831,0,829))+" '"+n+a(855,0,830)+r+"'")),o[u(0,-266,-230)]((()=>a(864,0,831)+f+"'")),t.normalize(f)}function a(n,t,r,e){return pt(r-727,n)}},load(n){if(n===mt)return q[(e=-711,i=-679,pt(e- -794,i))][(t=449,r=378,pt(r-294,t))];var t,r,e,i;return null},async transform(r,c){y.add(c);const f=r[m(337,266,310,358)](/([a-zA-Z0-9]+)ComponentPublicInstance/g),l=[];for(const n of f)l[m(338,399,283,274)](n[1]);if(l[M(775,781)]>0&&globalThis[m(276,311,347,241)].setEasycomUsage(e.normalizePath(c),l),!u(c))return;const L=Date[M(878,887)](),w=h.setSnapshot(c,r),B=x[m(340,347,399,325)](c,w,(()=>{function r(n,t,r,e){return pt(r-710,e)}let u;const f=z[r(0,0,819,761)]()?.getSourceFile(c);if(q[r(0,0,793,730)][r(0,0,820,802)]===r(0,0,755,686)){const n=[];if(f){const i=Pn.createPrinter({})[v(-146,-189,-178)](f,{host:Tn,map:{file:e.normalizePath(t.relative(q.utsOptions.inputDir??"",c)),sourceRoot:"",sourcesDirectoryPath:q[r(0,0,793,834)][r(0,0,823,895)]??""}});i[r(0,0,824,877)]&&n.push({name:"",writeByteOrderMark:!1,text:i[v(-188,-176,-176)]}),i[v(-164,-244,-175)]&&n[r(0,0,816,761)]({name:".map",writeByteOrderMark:!1,text:i[r(0,0,825,790)]})}else this.error(new Error(v(-224,-164,-179)+c+"'."));u={outputFiles:n,emitSkipped:!1}}else u=z[r(0,0,826,803)](c);function v(n,t,r,e){return pt(r- -290,t)}u.emitSkipped&&(D=!1,p(c,w,o,n?.[r(0,0,760,787)]?void 0:new a.SourceMapConsumer(this[v(-142,-139,-173)]())),this[v(-212,-253,-229)](i.red(v(-103,-128,-172)+c+r(0,0,829,755))));return wt(u,function(n,t,r){function i(n,t,r,e){return dt(e-906,n)}if(!t)return[];function o(n,t,r,e){return dt(n- -751,e)}const u=Pn[o(-740,0,0,-788)](t.getText(0,t[o(-739,0,0,-698)]()),!0,!0);return d[o(-738,0,0,-773)](u[i(881,0,0,920)][i(952,0,0,921)](u[i(871,0,0,922)])[o(-734,0,0,-687)]((t=>{const i=Pn[u(696,732,769,733)](t[o(-96,-197,-146,-96)],n,r,Pn[o(-110,-141,-145,-146)]);function o(n,t,r,e){return dt(r- -165,e)}function u(n,t,r,e){return dt(e-715,n)}const c=i.resolvedModule?.resolvedFileName;return c&&Un[o(0,0,-144,-137)](e.normalizePath(c))&&c[u(732,0,0,720)](u(707,0,0,737))?c[o(0,0,-142,-146)](/.ts$/,u(760,0,0,739)):c})))}(c,w,s[v(0,-174,-201)]),[...f?.[r(0,0,830,842)]?.[r(0,0,831,906)]||[]])}));function M(n,t,r,e){return pt(n-771,t)}function m(n,t,r,e){return pt(n-232,e)}if(q[m(354,339,391,378)]&&p(c,w,o,new a.SourceMapConsumer(this[m(349,407,343,348)]())),!B)return;if(g&&B[M(894,918)]&&(v&&this.addWatchFile(v),B[m(355,0,0,372)][M(886,869)](this[m(356,0,0,338)],this),o.debug((()=>i.green(m(357,0,0,391))+": "+B.references[m(358,0,0,395)]("\nuts: ")))),b(c,B),B[m(355,0,0,322)]&&C)for(const n of B.references){if(!S(n))continue;const t=await this[M(898,913)](n,c);t&&!y[M(782,812)](t.id)&&await this.load({id:t.id})}if(s[M(860,794)][m(360,0,0,326)])return void o[m(257,0,0,257)]((()=>i.blue(M(899,947))+m(361,0,0,365)));const A={code:B[m(346,0,0,334)],map:{mappings:""},meta:{uniExtApis:B[M(892,909)]?[...B[M(892,840)]]:[]}};if(B[M(886,939)]){q.sourceMapCallback?.(c,B[M(886,859)]);const n=JSON.parse(B[m(347,0,0,399)]);n[M(901,942)]&&(n[m(363,0,0,335)]=n.sources[m(347,0,0,285)]((r=>t.isAbsolute(r)?r:n.sourceRoot+r))),A[m(347,0,0,401)]=n}return St(Date[M(878,888)]()-L+m(364,0,0,306)+c),A},buildEnd(n){function t(n,t,r,e){return pt(e- -255,r)}if(L=0,n){j();const e=n[t(0,0,-189,-122)]?.[r(882,898,938)](n[r(904,899,926)])[1];e?this.error({...n,message:n[r(824,899,962)],stack:e}):this[r(762,825,826)](n)}function r(n,t,r,e){return pt(t-764,r)}if(!q.check)return j();g&&x.walkTree((n=>{if(!u(n))return;const t=h[(r=-404,e=-444,pt(e- -580,r))](n);var r,e;p(n,t,o)})),s[t(0,0,-149,-118)][r(0,779,850)]((n=>{const t=e.normalizePath(n);if(A.has(t)||!u(t))return;var r,i;o[(r=-22,i=-54,pt(i- -79,r))]((()=>pt(826-688,794)+t+"'"));const c=h.getScriptSnapshot(t);p(t,c,o)})),j()},generateBundle(n){function r(n,t,r,e){return pt(r-414,e)}if(o[f(25,58,108,-4)]((()=>r(608,603,553,585)+(L+1))),L++,!s[r(0,0,503,451)][f(212,173,182,201)])return;s[r(0,0,551,614)].forEach((n=>{const t=e.normalizePath(n);if(t in M||!u(t))return;o.debug((()=>pt(-655- -796,-589)+t+"'"));const r=wt(z[(i=1107,c=1075,pt(c-959,i))](t,!0));var i,c;b(t,r)}));const c=(r,u,c)=>{if(!c)return;let s=c.name;if(s.includes("?")&&(s=s[z(-680,-726)]("?",1)+u),q.useTsconfigDeclarationDir)return o[a(-374,-364,-302)]((()=>i.blue(z(-672,-736))+a(-233,-324,-301)+r+a(-209,-109,-184)+s+"'")),void Pn[z(-719,-661)].writeFile(s,c.text,c[z(-670,-685)]);let f=c[z(-669,-727)];function a(n,t,r,e){return pt(r- -327,n)}const v=q[z(-726,-778)]+"/placeholder";if(".d.ts.map"===u&&(n?.[z(-668,-714)]||n?.[z(-667,-618)])){const r=n.file?t.dirname(n[a(-184,0,-181)]):n.dir,i=JSON.parse(f);i[z(-683,-714)]=i.sources[z(-699,-725)]((n=>{const i=t.resolve(v,n);return e.normalizePath(t.relative(r,i))})),f=JSON.stringify(i)}const h=e.normalizePath(t.relative(v,s));function z(n,t,r,e){return pt(n- -814,t)}o.debug((()=>i.blue(a(-215,0,-185))+z(-788,-780)+r+"' to '"+h+"'")),this.emitFile({type:z(-666,-631),source:f,fileName:h})};function f(n,t,r,e){return pt(t-33,e)}Object[f(0,182,0,174)](M).forEach((n=>{const{type:t,map:r}=M[n];c(n,pt(-413- -440,-368),t),c(n,".d.ts.map",r)}))}}};function Wt(){const n=["DgvZDa","zMLSzu5HBwu","CMvSyxrPDMu","ANndB2rL","CMvZB2X2zq","zw1PDezPBgu","yxnZzxq","C291CMnLBwfW","z2v0q29TyMLUzwrtB3vYy2vTyxa","C291CMnLCW","lM1HCa","Dg9tDhjPBMC"];return(Wt=function(){return n})()}function Zt(n,t){const r=Wt();return Zt=function(t,e){let i=r[t-=0];if(void 0===Zt.lkqJHO){Zt.OGPCty=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,Zt.lkqJHO=!0}const o=t+r[0],u=n[o];return u?i=u:(i=Zt.OGPCty(i),n[o]=i),i},Zt(n,t)}const Ht=/\.uts|\.ts|\.uvue|\.vue/;function Vt(n,r){const e=r.isUTSFile??(n=>Ht[o(850,854,849,853)](n)),i=r[o(856,854,850,853)]??(r=>t[o(853,857,851,849)](n,r));function o(n,t,r,e){return Zt(r-849,e)}const u=r[o(0,0,852,849)]??(n=>Promise[o(0,0,853,856)](""));return{name:"uts:kotlin",transform(o,c){function s(n,t,r,e){return Zt(e- -404,n)}function f(n,t,r,e){return Zt(e-474,r)}if(e(c)){const e=i(c);if(e){if(this[s(-395,0,0,-399)]({type:s(-402,0,0,-398),fileName:e,source:o}),r[f(0,0,485,481)]){const r=this[f(0,0,485,482)]();r[s(-393,0,0,-395)]=r[s(-395,0,0,-395)].map((r=>{return y(t[(e=408,i=409,Zt(i-407,e))](n,r));var e,i})),this[s(-404,0,0,-399)]({type:s(-395,0,0,-398),fileName:e+f(0,0,484,484),source:r[s(-389,0,0,-393)]()})}return u(o,e)}return{code:o,map:{mappings:""}}}}}}function It(n,t){const r=Tt();return It=function(t,e){let i=r[t-=0];if(void 0===It.IWbuxd){It.uYIQLo=function(n){let t="",r="";for(let r,e,i=0,o=0;e=n.charAt(o++);~e&&(r=i%4?64*r+e:e,i++%4)?t+=String.fromCharCode(255&r>>(-2*i&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=t.length;n<e;n++)r+="%"+("00"+t.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(r)},n=arguments,It.IWbuxd=!0}const o=t+r[0],u=n[o];return u?i=u:(i=It.uYIQLo(i),n[o]=i),i},It(n,t)}function Tt(){const n=["AhjLzG","zgLYBMfTzq","Aw5JBhvKzq","kIOVkI51Dhm","kIOVkI52Dwu","DhLWzxnJCMLWDa","rvnozxH0","qNvUzgXLCG","CMvZB2X2zq","DxrZ","BM9fBwL0","zMLSDgvY"];return(Tt=function(){return n})()}const Gt=g.pathToFileURL(__filename)[(Jt=-672,Ot=-676,It(Jt- -672,Ot))];var Jt,Ot;const Kt=t[(Et=637,Rt=634,It(Et-636,Rt))](g.fileURLToPath(Gt)),Xt=r.createRequire(Gt);var Et,Rt;exports.uts2kotlin=function({inputDir:n,...r}){const e=r[i(110,109,107,116)]??[o(403,400,406,406),"**/*.uvue",o(404,406,410,407)];function i(n,t,r,e){return It(n-108,e)}function o(n,t,r,e){return It(e-403,r)}const u=r[o(0,0,414,408)]??Xt(o(0,0,403,408)),c={...r,include:e,typescript:u,transformers:[X(u,Sn)],tsconfigOverride:{compilerOptions:{baseUrl:n,target:o(0,0,414,409),moduleResolution:i(115,0,0,119),importHelpers:!0,paths:{}},include:[t[o(0,0,411,411)](Kt,"..","types","*.d.ts")]},utsOptions:{inputDir:n,emitType:i(117,0,0,114)}};return[Yt(c),r[o(0,0,413,413)]?null:Vt(n,r)][i(119,0,0,113)](Boolean)};
413a4e9d3acebfe9a69ec8d8eae3b68b4cca95ed
2023-12-15 09:09:09
r-u
release: v3.0.0-alpha-4000020231214002
false
v3.0.0-alpha-4000020231214002
release
diff --git a/package.json b/package.json index 56c96838576..3f2254811aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "workspaces": [ "packages/*" ], @@ -43,8 +43,8 @@ "@babel/core": "^7.21.3", "@babel/preset-env": "^7.20.2", "@dcloudio/types": "3.3.2", - "@dcloudio/uni-api": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-app": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-api": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-app": "3.0.0-alpha-4000020231214002", "@dcloudio/uni-app-x": "^0.6.1", "@jest/types": "^29.0.3", "@microsoft/api-extractor": "^7.34.5", diff --git a/packages/size-check/package.json b/packages/size-check/package.json index 7811bd2464b..9be72f85700 100644 --- a/packages/size-check/package.json +++ b/packages/size-check/package.json @@ -1,17 +1,17 @@ { "private": true, "name": "@dcloudio/size-check", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "dependencies": { - "@dcloudio/uni-app": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-h5": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-app": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-h5": "3.0.0-alpha-4000020231214002", "vue": "3.3.11", "vue-i18n": "9.1.9", "vuex": "^4.1.0" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-components": "3.0.0-alpha-4000020231214001", - "@dcloudio/vite-plugin-uni": "3.0.0-alpha-4000020231214001" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-components": "3.0.0-alpha-4000020231214002", + "@dcloudio/vite-plugin-uni": "3.0.0-alpha-4000020231214002" } } diff --git a/packages/uni-api/package.json b/packages/uni-api/package.json index 803abc73e70..87e8672c2c5 100644 --- a/packages/uni-api/package.json +++ b/packages/uni-api/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-api", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-api", "sideEffects": false, "module": "src/index.ts", @@ -18,6 +18,6 @@ "@vue/shared": "3.3.11" }, "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001" + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002" } } diff --git a/packages/uni-app-plus/package.json b/packages/uni-app-plus/package.json index 3bc7eea9739..8913a17aecc 100644 --- a/packages/uni-app-plus/package.json +++ b/packages/uni-app-plus/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-app-plus", "files": [ "dist", @@ -29,20 +29,20 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-app-uts": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-app-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-app-vue": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-app-uts": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-app-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-app-vue": "3.0.0-alpha-4000020231214002", "debug": "^4.3.3", "fs-extra": "^10.0.0", "licia": "^1.29.0", "postcss-selector-parser": "^6.0.6" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-components": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-h5": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-components": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-h5": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@types/pako": "1.0.2", "@vue/compiler-sfc": "3.3.11", "autoprefixer": "^10.4.14", diff --git a/packages/uni-app-uts/package.json b/packages/uni-app-uts/package.json index c1c465eab1b..2d0953674e3 100644 --- a/packages/uni-app-uts/package.json +++ b/packages/uni-app-uts/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-uts", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app-uts", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -20,10 +20,10 @@ "dependencies": { "@babel/parser": "^7.23.5", "@babel/types": "^7.20.7", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@jridgewell/gen-mapping": "^0.3.3", "@jridgewell/trace-mapping": "^0.3.19", "@rollup/pluginutils": "^4.2.0", diff --git a/packages/uni-app-vite/package.json b/packages/uni-app-vite/package.json index 90f8e7ff3d0..c4b112149c7 100644 --- a/packages/uni-app-vite/package.json +++ b/packages/uni-app-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vite", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,10 +19,10 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@rollup/pluginutils": "^4.2.0", "@vitejs/plugin-vue": "^4.2.1", "@vue/compiler-dom": "3.3.11", diff --git a/packages/uni-app-vue/package.json b/packages/uni-app-vue/package.json index 34f8e4564d3..44bd3c5c87b 100644 --- a/packages/uni-app-vue/package.json +++ b/packages/uni-app-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vue", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-app-vue", "main": "dist/service.runtime.esm.dev.js", "module": "dist/service.runtime.esm.dev.js", @@ -19,6 +19,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001" + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002" } } diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index 892e1b17b14..38cb3f5c12e 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-app", "main": "./dist/uni-app.cjs.js", "module": "./dist/uni-app.es.js", @@ -24,12 +24,12 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-cloud": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-components": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-push": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-stat": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cloud": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-components": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-push": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-stat": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11" }, "peerDependencies": { diff --git a/packages/uni-automator/package.json b/packages/uni-automator/package.json index 9a6f4d8b3eb..f9a2b8b3ff4 100644 --- a/packages/uni-automator/package.json +++ b/packages/uni-automator/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-automator", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-automator", "main": "dist/index.js", "files": [ @@ -28,7 +28,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", "address": "^1.1.2", "cross-env": "^7.0.3", "debug": "^4.3.3", diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index 57c5e736dee..b7e19fedd7e 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-shared", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-cli-shared", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -25,8 +25,8 @@ "@babel/core": "^7.21.3", "@babel/parser": "^7.23.5", "@babel/types": "^7.20.7", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@intlify/core-base": "9.1.9", "@intlify/shared": "9.1.9", "@intlify/vue-devtools": "9.1.9", @@ -64,7 +64,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-uts-v1": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-uts-v1": "3.0.0-alpha-4000020231214002", "@types/babel__core": "^7.1.19", "@types/debug": "^4.1.7", "@types/estree": "^0.0.51", diff --git a/packages/uni-cli-utils/package.json b/packages/uni-cli-utils/package.json index ac1d5ac6c1b..33f6621e096 100644 --- a/packages/uni-cli-utils/package.json +++ b/packages/uni-cli-utils/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-utils", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-cli-utils", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/uni-cloud/package.json b/packages/uni-cloud/package.json index 4156843add1..ed425a4a229 100644 --- a/packages/uni-cloud/package.json +++ b/packages/uni-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cloud", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-cloud", "main": "dist/uni-cloud.cjs.js", "module": "dist/uni-cloud.es.js", @@ -20,9 +20,9 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11", "fast-glob": "^3.2.11" } diff --git a/packages/uni-components/package.json b/packages/uni-components/package.json index b2e96151f20..d0190502832 100644 --- a/packages/uni-components/package.json +++ b/packages/uni-components/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-components", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-components", "main": "index.js", "files": [ @@ -19,12 +19,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cloud": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-h5": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001" + "@dcloudio/uni-cloud": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-h5": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002" }, "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@types/quill": "1.3.10" } } diff --git a/packages/uni-core/package.json b/packages/uni-core/package.json index c3718e46f46..ad66e756acb 100644 --- a/packages/uni-core/package.json +++ b/packages/uni-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-core", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-core", "sideEffects": false, "repository": { @@ -14,9 +14,9 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "safe-area-insets": "^1.4.1" } } diff --git a/packages/uni-h5-vite/package.json b/packages/uni-h5-vite/package.json index 397764e1f59..e6c3c746a82 100644 --- a/packages/uni-h5-vite/package.json +++ b/packages/uni-h5-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vite", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-h5-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,8 +19,8 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@rollup/pluginutils": "^4.2.0", "@vue/compiler-dom": "3.3.11", "@vue/compiler-sfc": "3.3.11", diff --git a/packages/uni-h5-vue/package.json b/packages/uni-h5-vue/package.json index b95a96c3c77..6a19f39fd93 100644 --- a/packages/uni-h5-vue/package.json +++ b/packages/uni-h5-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vue", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-h5-vue", "main": "dist/vue.runtime.cjs.js", "module": "dist/vue.runtime.esm.js", @@ -21,7 +21,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/server-renderer": "3.3.11" } } diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index 03bc813a286..fdb28a52974 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-h5", "main": "./dist/uni-h5.cjs.js", "module": "./dist/uni-h5.es.js", @@ -30,10 +30,10 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-h5-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-h5-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-h5-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-h5-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/server-renderer": "3.3.11", "@vue/shared": "3.3.11", "debug": "^4.3.3", @@ -45,7 +45,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", "@types/estree": "^0.0.51", "@types/google.maps": "^3.45.6", "@amap/amap-jsapi-types": "^0.0.8", diff --git a/packages/uni-i18n/package.json b/packages/uni-i18n/package.json index c9bfbef1f95..e21ecc73032 100644 --- a/packages/uni-i18n/package.json +++ b/packages/uni-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-i18n", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-i18n", "main": "./dist/uni-i18n.cjs.js", "module": "./dist/uni-i18n.es.js", diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index 9b8dc08b9f1..fd39a072c95 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app mp-alipay", "main": "dist/index.js", "files": [ @@ -25,10 +25,10 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/compiler-core": "3.3.11", "@vue/shared": "3.3.11" } diff --git a/packages/uni-mp-baidu/package.json b/packages/uni-mp-baidu/package.json index e2cb98b452c..c2ece6ccd23 100644 --- a/packages/uni-mp-baidu/package.json +++ b/packages/uni-mp-baidu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-baidu", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app mp-baidu", "main": "dist/index.js", "files": [ @@ -26,12 +26,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/compiler-core": "3.3.11", "@vue/shared": "3.3.11", "jimp": "^0.10.1", diff --git a/packages/uni-mp-compiler/package.json b/packages/uni-mp-compiler/package.json index 3e4edf42efb..fc1c69fdd69 100644 --- a/packages/uni-mp-compiler/package.json +++ b/packages/uni-mp-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-compiler", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-mp-compiler", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -21,8 +21,8 @@ "@babel/generator": "^7.20.5", "@babel/parser": "^7.23.5", "@babel/types": "^7.20.7", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/compiler-core": "3.3.11", "@vue/compiler-dom": "3.3.11", "@vue/shared": "3.3.11", diff --git a/packages/uni-mp-core/package.json b/packages/uni-mp-core/package.json index fe916dae75d..a34f8a8f234 100644 --- a/packages/uni-mp-core/package.json +++ b/packages/uni-mp-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-mp-core", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-mp-core", "sideEffects": false, "repository": { diff --git a/packages/uni-mp-jd/package.json b/packages/uni-mp-jd/package.json index e3701766400..009d3d71829 100644 --- a/packages/uni-mp-jd/package.json +++ b/packages/uni-mp-jd/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-jd", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app mp-jd", "main": "dist/index.js", "files": [ @@ -25,15 +25,15 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214002", "@vue/compiler-core": "3.3.11" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11" } } diff --git a/packages/uni-mp-kuaishou/package.json b/packages/uni-mp-kuaishou/package.json index b36820d391f..8a0fa3e01d1 100644 --- a/packages/uni-mp-kuaishou/package.json +++ b/packages/uni-mp-kuaishou/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-kuaishou", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app mp-kuaishou", "main": "dist/index.js", "files": [ @@ -25,12 +25,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/compiler-core": "3.3.11", "@vue/shared": "3.3.11" } diff --git a/packages/uni-mp-lark/package.json b/packages/uni-mp-lark/package.json index 9f3fb7c314b..7d0ea7ecea6 100644 --- a/packages/uni-mp-lark/package.json +++ b/packages/uni-mp-lark/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-lark", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app mp-lark", "main": "dist/index.js", "files": [ @@ -25,12 +25,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/compiler-core": "3.3.11", "@vue/shared": "3.3.11" } diff --git a/packages/uni-mp-qq/package.json b/packages/uni-mp-qq/package.json index 91466c953f5..7541a8f762f 100644 --- a/packages/uni-mp-qq/package.json +++ b/packages/uni-mp-qq/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-qq", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app mp-qq", "main": "dist/index.js", "files": [ @@ -25,15 +25,15 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214002", "@types/fs-extra": "^9.0.13", "@vue/compiler-core": "3.3.11" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11", "fs-extra": "^10.0.0" } diff --git a/packages/uni-mp-toutiao/package.json b/packages/uni-mp-toutiao/package.json index 0c3a783fa77..0a5cd42863e 100644 --- a/packages/uni-mp-toutiao/package.json +++ b/packages/uni-mp-toutiao/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-toutiao", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app mp-toutiao", "main": "dist/index.js", "files": [ @@ -25,11 +25,11 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11", "@vue/compiler-core": "3.3.11" } diff --git a/packages/uni-mp-vite/package.json b/packages/uni-mp-vite/package.json index 98433debb1d..8ba1a24b958 100644 --- a/packages/uni-mp-vite/package.json +++ b/packages/uni-mp-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vite", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-mp-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -17,11 +17,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/compiler-sfc": "3.3.11", "@vue/shared": "3.3.11", "debug": "^4.3.3" diff --git a/packages/uni-mp-vue/package.json b/packages/uni-mp-vue/package.json index b003e0c7838..e0621b07a61 100644 --- a/packages/uni-mp-vue/package.json +++ b/packages/uni-mp-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vue", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-mp-vue", "main": "dist/vue.runtime.esm.js", "module": "dist/vue.runtime.esm.js", @@ -19,10 +19,10 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001" + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002" } } diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index e789b21b99e..80f2c77ba44 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app mp-weixin", "main": "dist/index.js", "files": [ @@ -29,10 +29,10 @@ "@vue/compiler-core": "3.3.11" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11", "jimp": "^0.10.1", "licia": "^1.29.0", diff --git a/packages/uni-mp-xhs/package.json b/packages/uni-mp-xhs/package.json index 7287f9972f3..9587f4616dc 100644 --- a/packages/uni-mp-xhs/package.json +++ b/packages/uni-mp-xhs/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-xhs", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uniapp mp-xhs", "main": "dist/index.js", "files": [ @@ -26,16 +26,16 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-alipay": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-alipay": "3.0.0-alpha-4000020231214002", "@vue/compiler-core": "3.3.11" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11" } } diff --git a/packages/uni-nvue-styler/package.json b/packages/uni-nvue-styler/package.json index c25e52d1c24..fd1222abda9 100644 --- a/packages/uni-nvue-styler/package.json +++ b/packages/uni-nvue-styler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-nvue-styler", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-nvue-styler", "main": "./dist/uni-nvue-styler.cjs.js", "types": "./dist/uni-nvue-styler.d.ts", diff --git a/packages/uni-push/package.json b/packages/uni-push/package.json index 9c860a2c06c..e31168639b7 100644 --- a/packages/uni-push/package.json +++ b/packages/uni-push/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-push", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-push", "main": "lib/uni-push.js", "module": "lib/uni-push.js", @@ -20,6 +20,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002" } } diff --git a/packages/uni-quickapp-webview/package.json b/packages/uni-quickapp-webview/package.json index 248739d1fb1..37cb921873c 100644 --- a/packages/uni-quickapp-webview/package.json +++ b/packages/uni-quickapp-webview/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-quickapp-webview", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app quickapp-webview", "main": "dist/index.js", "files": [ @@ -25,13 +25,13 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214001" + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020231214002" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@vue/shared": "3.3.11" } } diff --git a/packages/uni-shared/package.json b/packages/uni-shared/package.json index 568519a7838..886182f02fc 100644 --- a/packages/uni-shared/package.json +++ b/packages/uni-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-shared", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-shared", "main": "./dist/uni-shared.cjs.js", "module": "./dist/uni-shared.es.js", diff --git a/packages/uni-stacktracey/package.json b/packages/uni-stacktracey/package.json index a753f870889..da706d2f963 100644 --- a/packages/uni-stacktracey/package.json +++ b/packages/uni-stacktracey/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stacktracey", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-stacktracey", "main": "dist/uni-stacktracey.cjs.js", "module": "dist/uni-stacktracey.es.js", diff --git a/packages/uni-stat/package.json b/packages/uni-stat/package.json index fbfe94469ec..baae5955505 100644 --- a/packages/uni-stat/package.json +++ b/packages/uni-stat/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stat", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-stat", "main": "dist/uni-stat.es.js", "module": "dist/uni-stat.es.js", @@ -20,8 +20,8 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "debug": "^4.3.3" }, "devDependencies": { diff --git a/packages/uni-uts-v1/package.json b/packages/uni-uts-v1/package.json index fea6d21f54b..323b9a5832d 100644 --- a/packages/uni-uts-v1/package.json +++ b/packages/uni-uts-v1/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-uts-v1", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-uts-v1", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -18,7 +18,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uts": "3.0.0-alpha-4000020231214001", + "@dcloudio/uts": "3.0.0-alpha-4000020231214002", "@rollup/pluginutils": "^5.0.5", "@vue/shared": "3.3.11", "android-versions": "^1.8.1", diff --git a/packages/uni-vue-devtools/package.json b/packages/uni-vue-devtools/package.json index b2ee9444c22..482087a54fd 100644 --- a/packages/uni-vue-devtools/package.json +++ b/packages/uni-vue-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-vue-devtools", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-vue-devtools", "module": "dist/runtime.es.js", "files": [ @@ -22,7 +22,7 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", "detect-port": "^1.5.1", "express": "^4.17.1", "open": "^8.4.0", diff --git a/packages/uni-vue/package.json b/packages/uni-vue/package.json index c0ee749d2ef..6715d841bd5 100644 --- a/packages/uni-vue/package.json +++ b/packages/uni-vue/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-vue", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "@dcloudio/uni-vue", "files": [ "dist" @@ -17,7 +17,7 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001" + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002" } } diff --git a/packages/uts-darwin-arm64/package.json b/packages/uts-darwin-arm64/package.json index 8a34d19cef1..f367df06246 100644 --- a/packages/uts-darwin-arm64/package.json +++ b/packages/uts-darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-darwin-arm64", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "os": [ "darwin" ], diff --git a/packages/uts-darwin-x64/package.json b/packages/uts-darwin-x64/package.json index c90ecd5958e..3c762efd807 100644 --- a/packages/uts-darwin-x64/package.json +++ b/packages/uts-darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-darwin-x64", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "os": [ "darwin" ], diff --git a/packages/uts-linux-x64-gnu/package.json b/packages/uts-linux-x64-gnu/package.json index 3c742766665..a2022cf4794 100644 --- a/packages/uts-linux-x64-gnu/package.json +++ b/packages/uts-linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-linux-x64-gnu", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "os": [ "linux" ], diff --git a/packages/uts-linux-x64-musl/package.json b/packages/uts-linux-x64-musl/package.json index c85e0ff0ccc..900cdb6e628 100644 --- a/packages/uts-linux-x64-musl/package.json +++ b/packages/uts-linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-linux-x64-musl", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "os": [ "linux" ], diff --git a/packages/uts-win32-ia32-msvc/package.json b/packages/uts-win32-ia32-msvc/package.json index 7724ab7d2a8..a4f087c8f3b 100644 --- a/packages/uts-win32-ia32-msvc/package.json +++ b/packages/uts-win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-win32-ia32-msvc", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "os": [ "win32" ], diff --git a/packages/uts-win32-x64-msvc/package.json b/packages/uts-win32-x64-msvc/package.json index 549fde2dd50..a9e47a60280 100644 --- a/packages/uts-win32-x64-msvc/package.json +++ b/packages/uts-win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-win32-x64-msvc", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "os": [ "win32" ], diff --git a/packages/uts/package.json b/packages/uts/package.json index 8d04fb4b404..5dd239b7a12 100644 --- a/packages/uts/package.json +++ b/packages/uts/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uts", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -13,11 +13,11 @@ "directory": "packages/uts" }, "optionalDependencies": { - "@dcloudio/uts-darwin-arm64": "3.0.0-alpha-4000020231214001", - "@dcloudio/uts-darwin-x64": "3.0.0-alpha-4000020231214001", - "@dcloudio/uts-linux-x64-gnu": "3.0.0-alpha-4000020231214001", - "@dcloudio/uts-linux-x64-musl": "3.0.0-alpha-4000020231214001", - "@dcloudio/uts-win32-ia32-msvc": "3.0.0-alpha-4000020231214001", - "@dcloudio/uts-win32-x64-msvc": "3.0.0-alpha-4000020231214001" + "@dcloudio/uts-darwin-arm64": "3.0.0-alpha-4000020231214002", + "@dcloudio/uts-darwin-x64": "3.0.0-alpha-4000020231214002", + "@dcloudio/uts-linux-x64-gnu": "3.0.0-alpha-4000020231214002", + "@dcloudio/uts-linux-x64-musl": "3.0.0-alpha-4000020231214002", + "@dcloudio/uts-win32-ia32-msvc": "3.0.0-alpha-4000020231214002", + "@dcloudio/uts-win32-x64-msvc": "3.0.0-alpha-4000020231214002" } } diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 9f095de13ee..596e63495c7 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vite-plugin-uni", - "version": "3.0.0-alpha-4000020231214001", + "version": "3.0.0-alpha-4000020231214002", "description": "uni-app vite plugin", "bin": { "uni": "bin/uni.js" @@ -27,8 +27,8 @@ "@babel/core": "^7.21.3", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-transform-typescript": "^7.20.7", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214001", - "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020231214002", + "@dcloudio/uni-shared": "3.0.0-alpha-4000020231214002", "@rollup/pluginutils": "^4.2.0", "@vitejs/plugin-legacy": "^4.0.3", "@vitejs/plugin-vue": "^4.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2952388c94c..6b4dbaa82a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,10 +17,10 @@ importers: specifier: 3.3.2 version: 3.3.2 '@dcloudio/uni-api': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:packages/uni-api '@dcloudio/uni-app': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:packages/uni-app '@dcloudio/uni-app-x': specifier: ^0.6.1 @@ -238,10 +238,10 @@ importers: packages/size-check: dependencies: '@dcloudio/uni-app': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-app '@dcloudio/uni-h5': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-h5 vue: specifier: 3.3.11 @@ -254,13 +254,13 @@ importers: version: 4.1.0([email protected]) devDependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-components': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-components '@dcloudio/vite-plugin-uni': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../vite-plugin-uni packages/uni-api: @@ -270,7 +270,7 @@ importers: version: 3.3.11 devDependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared packages/uni-app: @@ -279,22 +279,22 @@ importers: specifier: ^3.3.2 version: 3.3.2 '@dcloudio/uni-cloud': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cloud '@dcloudio/uni-components': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-components '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-push': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-push '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@dcloudio/uni-stat': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-stat '@vue/shared': specifier: 3.3.11 @@ -303,13 +303,13 @@ importers: packages/uni-app-plus: dependencies: '@dcloudio/uni-app-uts': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-app-uts '@dcloudio/uni-app-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-app-vite '@dcloudio/uni-app-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-app-vue debug: specifier: ^4.3.3 @@ -325,19 +325,19 @@ importers: version: 6.0.6 devDependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-components': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-components '@dcloudio/uni-h5': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-h5 '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@types/pako': specifier: 1.0.2 @@ -367,16 +367,16 @@ importers: specifier: ^7.20.7 version: 7.20.7 '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-nvue-styler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-nvue-styler '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@jridgewell/gen-mapping': specifier: ^0.3.3 @@ -428,16 +428,16 @@ importers: packages/uni-app-vite: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-nvue-styler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-nvue-styler '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@rollup/pluginutils': specifier: ^4.2.0 @@ -489,13 +489,13 @@ importers: packages/uni-app-vue: devDependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared packages/uni-automator: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared address: specifier: ^1.1.2 @@ -559,10 +559,10 @@ importers: specifier: ^7.20.7 version: 7.20.7 '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@intlify/core-base': specifier: 9.1.9 @@ -668,7 +668,7 @@ importers: version: 3.1.0 devDependencies: '@dcloudio/uni-uts-v1': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-uts-v1 '@types/babel__core': specifier: ^7.1.19 @@ -753,13 +753,13 @@ importers: packages/uni-cloud: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/shared': specifier: 3.3.11 @@ -771,17 +771,17 @@ importers: packages/uni-components: dependencies: '@dcloudio/uni-cloud': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cloud '@dcloudio/uni-h5': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-h5 '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n devDependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@types/quill': specifier: 1.3.10 @@ -790,13 +790,13 @@ importers: packages/uni-core: devDependencies: '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared safe-area-insets: specifier: ^1.4.1 @@ -805,16 +805,16 @@ importers: packages/uni-h5: dependencies: '@dcloudio/uni-h5-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-h5-vite '@dcloudio/uni-h5-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-h5-vue '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/server-renderer': specifier: 3.3.11 @@ -845,7 +845,7 @@ importers: specifier: ^0.0.8 version: 0.0.8 '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@types/estree': specifier: ^0.0.51 @@ -869,10 +869,10 @@ importers: packages/uni-h5-vite: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@rollup/pluginutils': specifier: ^4.2.0 @@ -930,7 +930,7 @@ importers: packages/uni-h5-vue: dependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/server-renderer': specifier: 3.3.11 @@ -941,16 +941,16 @@ importers: packages/uni-mp-alipay: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/compiler-core': specifier: 3.3.11 @@ -962,22 +962,22 @@ importers: packages/uni-mp-baidu: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-weixin '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/compiler-core': specifier: 3.3.11 @@ -1013,10 +1013,10 @@ importers: specifier: ^7.20.7 version: 7.20.7 '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/compiler-core': specifier: 3.3.11 @@ -1046,26 +1046,26 @@ importers: packages/uni-mp-jd: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/shared': specifier: 3.3.11 version: 3.3.11 devDependencies: '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-weixin '@vue/compiler-core': specifier: 3.3.11 @@ -1074,22 +1074,22 @@ importers: packages/uni-mp-kuaishou: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-weixin '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/compiler-core': specifier: 3.3.11 @@ -1101,22 +1101,22 @@ importers: packages/uni-mp-lark: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-compiler '@dcloudio/uni-mp-toutiao': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-toutiao '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/compiler-core': specifier: 3.3.11 @@ -1128,16 +1128,16 @@ importers: packages/uni-mp-qq: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/shared': specifier: 3.3.11 @@ -1147,7 +1147,7 @@ importers: version: 10.0.0 devDependencies: '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-weixin '@types/fs-extra': specifier: ^9.0.13 @@ -1159,19 +1159,19 @@ importers: packages/uni-mp-toutiao: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/compiler-core': specifier: 3.3.11 @@ -1183,19 +1183,19 @@ importers: packages/uni-mp-vite: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-i18n '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/compiler-sfc': specifier: 3.3.11 @@ -1214,29 +1214,29 @@ importers: packages/uni-mp-vue: dependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/shared': specifier: 3.3.11 version: 3.3.11 devDependencies: '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: 'link:' packages/uni-mp-weixin: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/shared': specifier: 3.3.11 @@ -1264,29 +1264,29 @@ importers: packages/uni-mp-xhs: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/shared': specifier: 3.3.11 version: 3.3.11 devDependencies: '@dcloudio/uni-mp-alipay': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-alipay '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-weixin '@vue/compiler-core': specifier: 3.3.11 @@ -1307,29 +1307,29 @@ importers: packages/uni-push: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared packages/uni-quickapp-webview: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@vue/shared': specifier: 3.3.11 version: 3.3.11 devDependencies: '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-compiler packages/uni-shared: @@ -1351,10 +1351,10 @@ importers: packages/uni-stat: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared debug: specifier: ^4.3.3 @@ -1367,7 +1367,7 @@ importers: packages/uni-uts-v1: dependencies: '@dcloudio/uts': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uts '@rollup/pluginutils': specifier: ^5.0.5 @@ -1434,16 +1434,16 @@ importers: packages/uni-vue: devDependencies: '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared packages/uni-vue-devtools: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared detect-port: specifier: ^1.5.1 @@ -1461,22 +1461,22 @@ importers: packages/uts: optionalDependencies: '@dcloudio/uts-darwin-arm64': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uts-darwin-arm64 '@dcloudio/uts-darwin-x64': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uts-darwin-x64 '@dcloudio/uts-linux-x64-gnu': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uts-linux-x64-gnu '@dcloudio/uts-linux-x64-musl': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uts-linux-x64-musl '@dcloudio/uts-win32-ia32-msvc': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uts-win32-ia32-msvc '@dcloudio/uts-win32-x64-msvc': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uts-win32-x64-msvc packages/uts-darwin-arm64: {} @@ -1503,10 +1503,10 @@ importers: specifier: ^7.20.7 version: 7.20.7(@babel/[email protected]) '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-cli-shared '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4000020231214001 + specifier: 3.0.0-alpha-4000020231214002 version: link:../uni-shared '@rollup/pluginutils': specifier: ^4.2.0
be83a68ec6ed549bc76f7466d0c1c40fd7775a3f
2024-03-08 18:30:19
fxy060608
fix: 修复 1.0 的 APP 端 NVUE 条件编译(不完美)
false
修复 1.0 的 APP 端 NVUE 条件编译(不完美)
fix
diff --git a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts index 2f165dffb92..0af2ad33b41 100644 --- a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts +++ b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts @@ -1613,6 +1613,11 @@ const preCssExtNames = ['.scss', '.sass', '.styl', '.stylus'] * 目前主要解决 scss 文件被 @import 的条件编译 */ export function rewriteScssReadFileSync() { + // 目前 1.0 App 端,只要包含了APP-NVUE条件编译,就不pre,因为区分不出来APP-NVUE + const ignoreAppNVue = + process.env.UNI_APP_X !== 'true' && + (process.env.UNI_PLATFORM === 'app' || + process.env.UNI_PLATFORM === 'app-plus') const { readFileSync } = nodeFs nodeFs.readFileSync = ((filepath, options) => { const content = readFileSync(filepath, options) @@ -1620,10 +1625,12 @@ export function rewriteScssReadFileSync() { isString(filepath) && isString(content) && preCssExtNames.includes(path.extname(filepath)) && - content.includes('#endif') && + content.includes('#endif') // 目前无法区分app-nvue - !content.includes('APP-NVUE') ) { + if (ignoreAppNVue && content.includes('APP-NVUE')) { + return content + } return preCss(content) } return content
6d1820f2a9944ec76d0aac9193b8c184956b92cf
2023-11-23 13:47:11
zhenyuWang
feat(uts): v-html
false
v-html
feat
diff --git a/packages/uni-app-uts/__tests__/android/transforms/vHtml.spec.ts b/packages/uni-app-uts/__tests__/android/transforms/vHtml.spec.ts new file mode 100644 index 00000000000..1d4ea531931 --- /dev/null +++ b/packages/uni-app-uts/__tests__/android/transforms/vHtml.spec.ts @@ -0,0 +1,73 @@ +import { extend } from '@vue/shared' +import { + baseParse as parse, + transform, + CompilerOptions, + transformElement, +} from '@vue/compiler-core' +import { ErrorCodes } from '../../../src/plugins/android/uvue/compiler/errors' +import { transformVHtml } from '../../../src/plugins/android/uvue/compiler/transforms/vHtml' +import { transformExpression } from '../../../src/plugins/android/uvue/compiler/transforms/transformExpression' +import { assert } from '../testUtils' + +function parseWithVHtml(template: string, options: CompilerOptions = {}) { + const ast = parse(template) + + transform( + ast, + extend({}, options, { + prefixIdentifiers: options.prefixIdentifiers, + nodeTransforms: [transformVHtml, transformExpression, transformElement], + }) + ) + + return ast +} + +describe('compiler: transform v-html', () => { + test('simple expression', () => { + assert( + `<view v-html="html" />`, + `createElementVNode(\"view\", null, [ + createElementVNode(\"rich-text\", utsMapOf({ nodes: _ctx.html }), null, 8 /* PROPS */, [\"nodes\"]) +])` + ) + }) + + test('Non-Element should be ignored', () => { + assert(`<Foo v-html="html" />`, `createVNode(_component_Foo)`) + }) + + test('should throw error when missing expression', () => { + const onError = jest.fn() + parseWithVHtml('<view v-html="" />', { + onError, + prefixIdentifiers: true, + }) + + expect(onError).toHaveBeenCalledTimes(1) + expect(onError).toHaveBeenCalledWith( + expect.objectContaining({ + code: ErrorCodes.X_V_HTML_NO_EXPRESSION, + }) + ) + }) + + test('should throw error when has children', () => { + const onError = jest.fn() + parseWithVHtml( + '<view v-html="html"><text>text child in v-html</text></view>', + { + onError, + prefixIdentifiers: true, + } + ) + + expect(onError).toHaveBeenCalledTimes(1) + expect(onError).toHaveBeenCalledWith( + expect.objectContaining({ + code: ErrorCodes.X_V_HTML_WITH_CHILDREN, + }) + ) + }) +}) diff --git a/packages/uni-app-uts/src/plugins/android/uvue/compiler/errors.ts b/packages/uni-app-uts/src/plugins/android/uvue/compiler/errors.ts index 657c9831f7e..1ae88a13dbc 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/compiler/errors.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/compiler/errors.ts @@ -17,6 +17,10 @@ export function defaultOnWarn(msg: CompilerError) { console.warn(`[Vue warn] ${msg.message}`) } +export function createDOMCompilerError(code: ErrorCodes, loc?: SourceLocation) { + return createCompilerError(code, loc) as CoreCompilerError +} + type InferCompilerError<T> = T extends ErrorCodes ? CoreCompilerError : CompilerError @@ -87,6 +91,8 @@ export const enum ErrorCodes { X_V_MODEL_ON_PROPS, X_INVALID_EXPRESSION, X_KEEP_ALIVE_INVALID_CHILDREN, + X_V_HTML_NO_EXPRESSION = 53 /* ErrorCodes.__EXTEND_POINT__ */, + X_V_HTML_WITH_CHILDREN, // generic errors X_PREFIX_ID_NOT_SUPPORTED, @@ -169,6 +175,8 @@ export const errorMessages: Record<ErrorCodes, string> = { [ErrorCodes.X_V_MODEL_ON_PROPS]: `v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.`, [ErrorCodes.X_INVALID_EXPRESSION]: `Error parsing JavaScript expression: `, [ErrorCodes.X_KEEP_ALIVE_INVALID_CHILDREN]: `<KeepAlive> expects exactly one child component.`, + [ErrorCodes.X_V_HTML_NO_EXPRESSION]: `v-html is missing expression.`, + [ErrorCodes.X_V_HTML_WITH_CHILDREN]: `v-html will override element children.`, // generic errors [ErrorCodes.X_PREFIX_ID_NOT_SUPPORTED]: `"prefixIdentifiers" option is not supported in this build of compiler.`, diff --git a/packages/uni-app-uts/src/plugins/android/uvue/compiler/index.ts b/packages/uni-app-uts/src/plugins/android/uvue/compiler/index.ts index 45c1fa87d9e..3ad7ccca950 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/compiler/index.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/compiler/index.ts @@ -30,6 +30,7 @@ import { transformObjectExpression } from './transforms/transformObjectExpressio import { transformExpression } from './transforms/transformExpression' import { transformElements } from './transforms/transformElements' import { transformStyle } from './transforms/transformStyle' +import { transformVHtml } from './transforms/vHtml' export type TransformPreset = [ NodeTransform[], @@ -45,6 +46,7 @@ export function getBaseTransformPreset( transformFor, // order is important trackVForSlotScopes, + transformVHtml, transformExpression, transformSlotOutlet, transformElement, diff --git a/packages/uni-app-uts/src/plugins/android/uvue/compiler/transforms/vHtml.ts b/packages/uni-app-uts/src/plugins/android/uvue/compiler/transforms/vHtml.ts new file mode 100644 index 00000000000..3e90f8c475f --- /dev/null +++ b/packages/uni-app-uts/src/plugins/android/uvue/compiler/transforms/vHtml.ts @@ -0,0 +1,58 @@ +import { + BaseElementNode, + DirectiveNode, + ElementNode, + ElementTypes, + NodeTransform, + NodeTypes, + SimpleExpressionNode, +} from '@vue/compiler-core' +import { createDOMCompilerError, ErrorCodes } from '../errors' +import { createBindDirectiveNode } from '@dcloudio/uni-cli-shared' + +export const transformVHtml: NodeTransform = (node, context) => { + if ((node as BaseElementNode).tagType !== ElementTypes.ELEMENT) { + return + } + // check whether bind v-html + if ((node as BaseElementNode).props?.length) { + ;(node as BaseElementNode).props.forEach((prop, index) => { + if (prop.name === 'html' && prop.loc.source.startsWith('v-html=')) { + if ( + !(prop as DirectiveNode).exp || + !((prop as DirectiveNode).exp as SimpleExpressionNode)?.content.trim() + ) { + context.onError( + createDOMCompilerError(ErrorCodes.X_V_HTML_NO_EXPRESSION, prop.loc) + ) + } + if ((node as BaseElementNode).children.length) { + context.onError( + createDOMCompilerError(ErrorCodes.X_V_HTML_WITH_CHILDREN, prop.loc) + ) + } + ;(node as BaseElementNode).children = [ + createRichText(node as BaseElementNode, prop as DirectiveNode), + ] + ;(node as BaseElementNode).props.splice(index, 1) + } + }) + } +} + +function createRichText( + node: BaseElementNode, + prop: DirectiveNode +): ElementNode { + return { + tag: 'rich-text', + type: NodeTypes.ELEMENT, + tagType: ElementTypes.ELEMENT, + props: [createBindDirectiveNode('nodes', prop.exp || '')], + isSelfClosing: true, + children: [], + codegenNode: undefined, + ns: node.ns, + loc: node.loc, + } +}
73133f096185a59ac26d8a8bc4405cdbd7330a72
2023-05-17 15:42:48
zhenyuWang
wip(uts): slot
false
slot
wip
diff --git a/packages/uni-app-uts/__tests__/transforms/vSlot.spec.ts b/packages/uni-app-uts/__tests__/transforms/vSlot.spec.ts index 27e3f11462e..c33e61a67d7 100644 --- a/packages/uni-app-uts/__tests__/transforms/vSlot.spec.ts +++ b/packages/uni-app-uts/__tests__/transforms/vSlot.spec.ts @@ -24,7 +24,7 @@ const _component_Foo = resolveComponent("Foo") return createElementVNode("view", null, [ createVNode(_component_Foo, new Map<string,any | null>([["onClick", _ctx.test]]), new Map<string,any | null>([ - ["default", ((prop: Map<string, any>): any[] => [ + ["default", ((prop: Map<string, any | null>): any[] => [ createElementVNode("text", null, "test") ])], ["_", 1 /* STABLE */] @@ -63,7 +63,7 @@ const _component_Foo = resolveComponent("Foo") return createElementVNode("view", null, [ createVNode(_component_Foo, null, new Map<string,any | null>([ - ["default", ((props: Map<string, any>): any[] => [ + ["default", ((props: Map<string, any | null>): any[] => [ createElementVNode("text", null, "msg: " + toDisplayString(props.msg), 1 /* TEXT */) ])], ["_", 1 /* STABLE */] @@ -85,7 +85,7 @@ const _component_Foo = resolveComponent("Foo") return createElementVNode("view", null, [ createVNode(_component_Foo, null, new Map<string,any | null>([ - ["default", ((props: Map<string, any>): any[] => [ + ["default", ((props: Map<string, any | null>): any[] => [ createElementVNode("text", null, "msg: " + toDisplayString(props.msg), 1 /* TEXT */) ])], ["_", 1 /* STABLE */] diff --git a/packages/uni-app-uts/src/plugins/uvue/compiler/codegen.ts b/packages/uni-app-uts/src/plugins/uvue/compiler/codegen.ts index 7daba84d7b8..e6daa387874 100644 --- a/packages/uni-app-uts/src/plugins/uvue/compiler/codegen.ts +++ b/packages/uni-app-uts/src/plugins/uvue/compiler/codegen.ts @@ -511,7 +511,7 @@ function genFunctionExpression( push(`):${(node as any).returnType} => `) } else { if (isSlot) { - push(`${params ? '' : 'prop'}: Map<string, any>): any[] => `) + push(`${params ? '' : 'prop'}: Map<string, any | null>): any[] => `) } else { push(`) => `) }
9d197336f5f2536eec237917cdda2bcbf32dc38f
2023-02-22 13:08:58
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 160f2bad4ed..167d4009771 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index 6b1c65079f0..d23f21919b3 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node index 320edeca282..93deeadd29f 100755 Binary files a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node and b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node differ diff --git a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node index 6861062a08e..5e98c681186 100755 Binary files a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node and b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index b431440a353..15c4625c342 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 51ad9ee53f6..d994982a5c7 100755 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
f32c4923e3656807e70d57d75a774c00de2c6e1a
2021-10-20 18:53:07
fxy060608
wip(mp): wxs
false
wxs
wip
diff --git a/packages/uni-cli-shared/src/mp/index.ts b/packages/uni-cli-shared/src/mp/index.ts index a01978da6ce..54f2ca47ac4 100644 --- a/packages/uni-cli-shared/src/mp/index.ts +++ b/packages/uni-cli-shared/src/mp/index.ts @@ -1,4 +1,5 @@ export * from './nvue' export * from './event' export * from './style' +export * from './template' export { transformVueComponentImports } from './transformImports' diff --git a/packages/uni-cli-shared/src/mp/template.ts b/packages/uni-cli-shared/src/mp/template.ts new file mode 100644 index 00000000000..6ece4cb0a7f --- /dev/null +++ b/packages/uni-cli-shared/src/mp/template.ts @@ -0,0 +1,65 @@ +import { LINEFEED } from '@dcloudio/uni-shared' + +export interface MiniProgramFilterOptions { + id: string + type: 'wxs' + name: string + src?: string + code: string +} + +type GenFilterFn = (filter: MiniProgramFilterOptions) => string | void + +const templateFilesCache = new Map<string, string>() +const templateFiltersCache = new Map<string, Set<MiniProgramFilterOptions>>() + +export function findMiniProgramTemplateFiles(genFilter?: GenFilterFn) { + const files: Record<string, string> = Object.create(null) + templateFilesCache.forEach((code, filename) => { + if (!genFilter) { + files[filename] = code + } else { + const filters = getMiniProgramTemplateFilters(filename) + if (filters.length) { + files[filename] = + filters.map((filter) => genFilter(filter)).join(LINEFEED) + + LINEFEED + + code + } else { + files[filename] = code + } + } + }) + return files +} + +export function clearMiniProgramTemplateFiles() { + templateFilesCache.clear() +} + +export function addMiniProgramTemplateFile(filename: string, code: string) { + templateFilesCache.set(filename, code) +} + +function getMiniProgramTemplateFilters(filename: string) { + return [...(templateFiltersCache.get(filename) || [])] +} + +export function clearMiniProgramTemplateFilter(filename: string) { + templateFiltersCache.delete(filename) +} + +export function addMiniProgramTemplateFilter( + filename: string, + filter: MiniProgramFilterOptions +) { + const filters = templateFiltersCache.get(filename) + if (filters) { + filters.add(filter) + } else { + templateFiltersCache.set( + filename, + new Set<MiniProgramFilterOptions>([filter]) + ) + } +} diff --git a/packages/uni-mp-vite/src/plugin/index.ts b/packages/uni-mp-vite/src/plugin/index.ts index 9263392f640..82ae1f6999a 100644 --- a/packages/uni-mp-vite/src/plugin/index.ts +++ b/packages/uni-mp-vite/src/plugin/index.ts @@ -1,23 +1,18 @@ -import path from 'path' -import debug from 'debug' -import fs from 'fs-extra' -import { AliasOptions } from 'vite' +import { AliasOptions, ResolvedConfig } from 'vite' import { CopyOptions, - EXTNAME_VUE_RE, - normalizeNodeModules, resolveBuiltIn, UniVitePlugin, genNVueCssCode, parseManifestJsonOnce, + findMiniProgramTemplateFiles, } from '@dcloudio/uni-cli-shared' import { uniOptions } from './uni' import { buildOptions } from './build' import { createConfigResolved } from './configResolved' -import { EmittedFile } from 'rollup' +import { emitFile, getFilterFiles, getTemplateFiles } from './template' -const debugMp = debug('vite:uni:mp') export interface UniMiniProgramPluginOptions { vite: { alias: AliasOptions @@ -42,6 +37,11 @@ export interface UniMiniProgramPluginOptions { // 是否支持fallback content fallback: boolean } + filter?: { + extname: string + tag: string + generate: Parameters<typeof findMiniProgramTemplateFiles>[0] + } } style: { extname: string @@ -53,10 +53,6 @@ export interface UniMiniProgramPluginOptions { '--window-right': string } } - filter?: { - extname: string - tag: string - } } export function uniMiniProgramPlugin( @@ -67,22 +63,9 @@ export function uniMiniProgramPlugin( template, style, } = options - const emitFile: (emittedFile: EmittedFile) => string = (emittedFile) => { - if (emittedFile.type === 'asset') { - const filename = emittedFile.fileName! - const outputFilename = normalizeNodeModules( - path.resolve( - process.env.UNI_OUTPUT_DIR, - path.relative(process.env.UNI_INPUT_DIR, filename) - ) - ).replace(EXTNAME_VUE_RE, template.extname) - debugMp(outputFilename) - fs.outputFile(outputFilename, emittedFile.source!) - return outputFilename - } - return '' - } + let isFirst = true + let resolvedConfig: ResolvedConfig return { name: 'vite:uni-mp', uni: uniOptions({ @@ -104,8 +87,30 @@ export function uniMiniProgramPlugin( build: buildOptions(), } }, - configResolved: createConfigResolved(options), + configResolved(config) { + resolvedConfig = config + return createConfigResolved(options)!(config) + }, generateBundle() { + if (template.filter) { + const extname = template.filter.extname + const filterFiles = getFilterFiles(resolvedConfig, this.getModuleInfo) + Object.keys(filterFiles).forEach((filename) => { + this.emitFile({ + type: 'asset', + fileName: filename + extname, + source: filterFiles[filename], + }) + }) + } + const templateFiles = getTemplateFiles(template) + Object.keys(templateFiles).forEach((filename) => { + this.emitFile({ + type: 'asset', + fileName: filename + template.extname, + source: templateFiles[filename], + }) + }) if (isFirst) { // 仅生成一次 isFirst = false diff --git a/packages/uni-mp-vite/src/plugin/template.ts b/packages/uni-mp-vite/src/plugin/template.ts new file mode 100644 index 00000000000..28d12d4dd39 --- /dev/null +++ b/packages/uni-mp-vite/src/plugin/template.ts @@ -0,0 +1,80 @@ +import path from 'path' +import debug from 'debug' +import { EmittedFile, GetModuleInfo } from 'rollup' +import { ResolvedConfig } from 'vite' +import { + addMiniProgramTemplateFile, + removeExt, + normalizeMiniProgramFilename, + MiniProgramFilterOptions, + findMiniProgramTemplateFiles, + addMiniProgramTemplateFilter, + clearMiniProgramTemplateFiles, +} from '@dcloudio/uni-cli-shared' +import { getFiltersCache } from '../plugins/renderjs' +import { UniMiniProgramPluginOptions } from '.' + +const debugTemplate = debug('vite:uni:mp-template') + +export function getFilterFiles( + resolvedConfig: ResolvedConfig, + getModuleInfo: GetModuleInfo +) { + const filters: Record<string, string> = Object.create(null) + const filtersCache = getFiltersCache(resolvedConfig) + if (!filtersCache.length) { + return filters + } + const inputDir = process.env.UNI_INPUT_DIR + function addFilter(id: string, filter: MiniProgramFilterOptions) { + const templateFilename = removeExt( + normalizeMiniProgramFilename(id, inputDir) + ) + addMiniProgramTemplateFilter(templateFilename, filter) + const filterFilename = removeExt( + normalizeMiniProgramFilename(filter.id, inputDir) + ) + if (templateFilename !== filterFilename) { + // 外链 + filter.src = filterFilename + filters[filterFilename] = filter.code + } + } + filtersCache.forEach((filter) => { + const moduleInfo = getModuleInfo(filter.id) + if (!moduleInfo) { + return + } + const { importers } = moduleInfo + if (!importers.length) { + return + } + importers.forEach((importer) => addFilter(importer, filter)) + }) + return filters +} + +export function getTemplateFiles( + template: UniMiniProgramPluginOptions['template'] +) { + const files = findMiniProgramTemplateFiles(template.filter!.generate) + clearMiniProgramTemplateFiles() + return files +} + +export const emitFile: (emittedFile: EmittedFile) => string = (emittedFile) => { + if (emittedFile.type === 'asset') { + const filename = emittedFile.fileName! + addMiniProgramTemplateFile( + removeExt( + normalizeMiniProgramFilename( + path.relative(process.env.UNI_INPUT_DIR, filename) + ) + ), + emittedFile.source!.toString() + ) + debugTemplate(filename) + return filename + } + return '' +} diff --git a/packages/uni-mp-vite/src/plugins/renderjs.ts b/packages/uni-mp-vite/src/plugins/renderjs.ts index 4198355bfaf..6193c0cf9ab 100644 --- a/packages/uni-mp-vite/src/plugins/renderjs.ts +++ b/packages/uni-mp-vite/src/plugins/renderjs.ts @@ -1,13 +1,30 @@ import debug from 'debug' -import { Plugin } from 'vite' +import { Plugin, ResolvedConfig } from 'vite' -import { missingModuleName, parseRenderjs } from '@dcloudio/uni-cli-shared' +import { + MiniProgramFilterOptions, + missingModuleName, + parseRenderjs, +} from '@dcloudio/uni-cli-shared' const debugRenderjs = debug('vite:uni:renderjs') +const filtersCache = new Map<ResolvedConfig, MiniProgramFilterOptions[]>() + +export function getFiltersCache(resolvedConfig: ResolvedConfig) { + return filtersCache.get(resolvedConfig) || [] +} + export function uniRenderjsPlugin(): Plugin { + let resolvedConfig: ResolvedConfig return { name: 'vite:uni-mp-renderjs', + configResolved(config) { + resolvedConfig = config + }, + buildStart() { + filtersCache.set(resolvedConfig, []) + }, transform(code, id) { const { type, name } = parseRenderjs(id) if (!type) { @@ -18,12 +35,12 @@ export function uniRenderjsPlugin(): Plugin { this.error(missingModuleName(type, code)) } if (type === 'wxs') { - console.log('wxs', id, code) - // this.emitFile({ - // type: 'asset', - // fileName: '', - // source: code, - // }) + filtersCache.get(resolvedConfig)!.push({ + id, + type, + name, + code, + }) } return { code: 'export default {}', diff --git a/packages/uni-mp-weixin/dist/uni.compiler.js b/packages/uni-mp-weixin/dist/uni.compiler.js index 8fadb7191ed..49626fcfa57 100644 --- a/packages/uni-mp-weixin/dist/uni.compiler.js +++ b/packages/uni-mp-weixin/dist/uni.compiler.js @@ -107,6 +107,18 @@ const options = { source, }, template: { + filter: { + extname: '.wxs', + tag: 'wxs', + generate(filter) { + if (filter.src) { + return `<wxs src="/${filter.src}.wxs" module="${filter.name}"/>`; + } + return `<wxs module="${filter.name}"> +${filter.code} +</wxs>`; + }, + }, slot: { fallback: false, }, @@ -123,10 +135,6 @@ const options = { '--window-right': '0px', }, }, - filter: { - extname: '.wxs', - tag: 'wxs', - }, }; var index = [uniMiniProgramWeixinPlugin, ...initMiniProgramPlugin__default["default"](options)]; diff --git a/packages/uni-mp-weixin/src/plugin/index.ts b/packages/uni-mp-weixin/src/plugin/index.ts index 0b58a21f118..26ebfea8d66 100644 --- a/packages/uni-mp-weixin/src/plugin/index.ts +++ b/packages/uni-mp-weixin/src/plugin/index.ts @@ -61,6 +61,18 @@ const options: UniMiniProgramPluginOptions = { source, }, template: { + filter: { + extname: '.wxs', + tag: 'wxs', + generate(filter) { + if (filter.src) { + return `<wxs src="/${filter.src}.wxs" module="${filter.name}"/>` + } + return `<wxs module="${filter.name}"> +${filter.code} +</wxs>` + }, + }, slot: { fallback: false, }, @@ -77,10 +89,6 @@ const options: UniMiniProgramPluginOptions = { '--window-right': '0px', }, }, - filter: { - extname: '.wxs', - tag: 'wxs', - }, } export default [uniMiniProgramWeixinPlugin, ...initMiniProgramPlugin(options)]
a10ce109734e3bc5d9aa87e89cee31a6c59bf571
2024-07-24 10:43:23
王亚琪
feat(harmony): 支持webviewContext
false
支持webviewContext
feat
diff --git a/packages/uni-app-harmony/dist/uni-app-view.umd.js b/packages/uni-app-harmony/dist/uni-app-view.umd.js index 0cde2032edb..a6b7c79f7da 100644 --- a/packages/uni-app-harmony/dist/uni-app-view.umd.js +++ b/packages/uni-app-harmony/dist/uni-app-view.umd.js @@ -13933,7 +13933,7 @@ var { _handleSubscribe, _resize - } = useMethods(props2, canvas, actionsWaiting); + } = useMethods$1(props2, canvas, actionsWaiting); useSubscribe(_handleSubscribe, useContextInfo(props2.canvasId), true); onMounted(() => { _resize(); @@ -13997,7 +13997,7 @@ _listeners }; } - function useMethods(props2, canvasRef, actionsWaiting) { + function useMethods$1(props2, canvasRef, actionsWaiting) { var _actionsDefer = []; var _images = {}; var _pixelRatio = computed(() => props2.hidpi ? pixelRatio : 1); @@ -22419,7 +22419,8 @@ clickRef.value++; } expose({ - click + click, + elId }); return () => createVNode("embed", mergeProps({ "el-id": elId, @@ -22428,7 +22429,39 @@ }, attrs2), null, 16, ["el-id", "src"]); } }); + function useMethods(embedRef) { + var MethodList = ["evalJs", "back", "forward", "reload", "stop"]; + var methods = {}; + var _loop = function(i3) { + var methodName = MethodList[i3]; + methods[methodName] = function(data, resolve) { + var elId = embedRef.value.elId; + UniViewJSBridge.invokeServiceMethod("webview" + capitalize(methodName), { + elId, + data + }, (res) => { + resolve(res); + }); + }; + }; + for (var i2 = 0; i2 < MethodList.length; i2++) { + _loop(i2); + } + function _handleSubscribe(type, data, resolve) { + var method = methods[type]; + if (type.indexOf("_") !== 0 && isFunction(method)) { + method(data, resolve); + } + } + return extend(methods, { + _handleSubscribe + }); + } var props$a = { + id: { + type: String, + default: "" + }, src: { type: String, default: "" @@ -22448,7 +22481,15 @@ name: "WebView", props: props$a, setup(props2) { - return () => createVNode("uni-web-view", null, [createVNode(Embed, { + var embedRef = ref(null); + var { + _handleSubscribe + } = useMethods(embedRef); + useSubscribe(_handleSubscribe, useContextInfo(props2.id), true); + return () => createVNode("uni-web-view", { + "id": props2.id + }, [createVNode(Embed, { + "ref": embedRef, "tag": "webview", "options": { src: getRealPath(props2.src), @@ -22456,7 +22497,7 @@ webviewStyles: props2.webviewStyles }, "style": "width:100%;height:100%" - }, null, 8, ["options"])]); + }, null, 8, ["options"])], 8, ["id"]); } }); class UniWebView extends UniComponent { diff --git a/packages/uni-app-harmony/dist/uni.runtime.esm.js b/packages/uni-app-harmony/dist/uni.runtime.esm.js index 4d7fec4a41f..fa64a8dff7d 100644 --- a/packages/uni-app-harmony/dist/uni.runtime.esm.js +++ b/packages/uni-app-harmony/dist/uni.runtime.esm.js @@ -13304,6 +13304,36 @@ const offLocationChange = defineOffApi(API_OFF_LOCATION_CHANGE, () => { }); const onLocationChangeError = defineOnApi(API_ON_LOCATION_CHANGE_ERROR, () => { }); const offLocationChangeError = defineOffApi(API_OFF_LOCATION_CHANGE_ERROR, () => { }); +function operateWebView(id, pageId, type, data, operateMapCallback) { + UniServiceJSBridge.invokeViewMethod('webview.' + id, { + type, + data, + }, pageId, operateMapCallback); +} +// TODO 完善类型定义,规范化。目前非uni-app-x仅鸿蒙支持 +function createWebviewContext(id, componentInstance) { + const pageId = componentInstance.$page.id; + return { + evalJs(jsCode) { + operateWebView(id, pageId, 'evalJs', { + jsCode, + }); + }, + back() { + operateWebView(id, pageId, 'back'); + }, + forward() { + operateWebView(id, pageId, 'forward'); + }, + reload() { + operateWebView(id, pageId, 'reload'); + }, + stop() { + operateWebView(id, pageId, 'stop'); + }, + }; +} + const pluginDefines = {}; function registerUTSPlugin(name, define) { pluginDefines[name] = define; @@ -13331,6 +13361,7 @@ var uni$1 = { createMediaQueryObserver: createMediaQueryObserver, createSelectorQuery: createSelectorQuery, createVideoContext: createVideoContext, + createWebviewContext: createWebviewContext, getEnterOptionsSync: getEnterOptionsSync, getLaunchOptionsSync: getLaunchOptionsSync, getLocale: getLocale, diff --git a/packages/uni-app-harmony/src/service/api/context/operateWebView.ts b/packages/uni-app-harmony/src/service/api/context/operateWebView.ts new file mode 100644 index 00000000000..6001c7eb502 --- /dev/null +++ b/packages/uni-app-harmony/src/service/api/context/operateWebView.ts @@ -0,0 +1,46 @@ +import type { ComponentPublicInstance } from 'vue' + +export function operateWebView( + id: string, + pageId: number, + type: string, + data?: unknown, + operateMapCallback?: (res: any) => void +) { + UniServiceJSBridge.invokeViewMethod( + 'webview.' + id, + { + type, + data, + }, + pageId, + operateMapCallback + ) +} + +// TODO 完善类型定义,规范化。目前非uni-app-x仅鸿蒙支持 +export function createWebviewContext( + id: string, + componentInstance: ComponentPublicInstance +) { + const pageId = componentInstance.$page.id + return { + evalJs(jsCode: any) { + operateWebView(id, pageId, 'evalJs', { + jsCode, + }) + }, + back() { + operateWebView(id, pageId, 'back') + }, + forward() { + operateWebView(id, pageId, 'forward') + }, + reload() { + operateWebView(id, pageId, 'reload') + }, + stop() { + operateWebView(id, pageId, 'stop') + }, + } +} diff --git a/packages/uni-app-harmony/src/service/api/index.ts b/packages/uni-app-harmony/src/service/api/index.ts index e10616455ee..95b48f0397b 100644 --- a/packages/uni-app-harmony/src/service/api/index.ts +++ b/packages/uni-app-harmony/src/service/api/index.ts @@ -18,6 +18,7 @@ export { onLocationChangeError, offLocationChangeError, } from './location/locationChange' +export { createWebviewContext } from './context/operateWebView' export { addInterceptor, removeInterceptor, diff --git a/packages/uni-app-harmony/src/view/components/embed/index.tsx b/packages/uni-app-harmony/src/view/components/embed/index.tsx index f0491cbc800..fc096e45712 100644 --- a/packages/uni-app-harmony/src/view/components/embed/index.tsx +++ b/packages/uni-app-harmony/src/view/components/embed/index.tsx @@ -43,6 +43,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({ } expose({ click, + elId, }) return () => ( <embed diff --git a/packages/uni-app-harmony/src/view/components/web-view/index.tsx b/packages/uni-app-harmony/src/view/components/web-view/index.tsx index 49147ea183e..f5b1c4d180c 100644 --- a/packages/uni-app-harmony/src/view/components/web-view/index.tsx +++ b/packages/uni-app-harmony/src/view/components/web-view/index.tsx @@ -1,8 +1,65 @@ -import { defineBuiltInComponent } from '@dcloudio/uni-components' +import { + defineBuiltInComponent, + useContextInfo, + useSubscribe, +} from '@dcloudio/uni-components' +import { capitalize, extend, isFunction } from '@vue/shared' +import { type Ref, ref } from 'vue' import { getRealPath } from '../../../platform/getRealPath' import Embed from '../embed' +export type OperateWebViewType = + | 'evalJs' + | 'back' + | 'forward' + | 'reload' + | 'stop' + +function useMethods(embedRef: Ref<InstanceType<typeof Embed> | null>) { + const MethodList = ['evalJs', 'back', 'forward', 'reload', 'stop'] + const methods = {} as Record<OperateWebViewType, Function> + + for (let i = 0; i < MethodList.length; i++) { + const methodName = MethodList[i] + methods[methodName as OperateWebViewType] = function ( + data: any, + resolve: (res: any) => void + ) { + // @ts-expect-error + const elId = embedRef.value!.elId + UniViewJSBridge.invokeServiceMethod( + 'webview' + capitalize(methodName), + { + elId, + data, + }, + (res) => { + resolve(res) + } + ) + } + } + function _handleSubscribe( + type: OperateWebViewType, + data: any, + resolve: (res: { callbackId: number; data: any }) => void + ) { + let method = methods[type] + if (type.indexOf('_') !== 0 && isFunction(method)) { + method(data as any, resolve) + } + } + + return extend(methods, { + _handleSubscribe, + }) +} + const props = { + id: { + type: String, + default: '', + }, src: { type: String, default: '', @@ -23,9 +80,21 @@ export default /*#__PURE__*/ defineBuiltInComponent({ name: 'WebView', props, setup(props) { + const embedRef = ref<InstanceType<typeof Embed> | null>(null) + const { _handleSubscribe } = useMethods(embedRef) + useSubscribe( + _handleSubscribe as ( + type: string, + data: unknown, + resolve: (res: any) => void + ) => void, + useContextInfo(props.id), + true + ) return () => ( - <uni-web-view> + <uni-web-view id={props.id}> <Embed + ref={embedRef} tag="webview" options={{ src: getRealPath(props.src),
8814f51689ac10e5126dba6c6c596932b9c361f0
2023-09-13 13:19:45
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/uni-uts-v1/src/kotlin.ts b/packages/uni-uts-v1/src/kotlin.ts index dc86d9a4e89..7c1d117af3f 100644 --- a/packages/uni-uts-v1/src/kotlin.ts +++ b/packages/uni-uts-v1/src/kotlin.ts @@ -407,7 +407,7 @@ export async function compile( const { bundle, UTSTarget } = getUTSCompiler() // let time = Date.now() const imports = [...DEFAULT_IMPORTS] - if (isX) { + if (isX && !process.env.UNI_UTS_DISABLE_X_IMPORT) { imports.push(...DEFAULT_IMPORTS_X) } const rClass = resolveAndroidResourceClass(filename)
6bcc85d98882f11e868a5ac5d51b98d039fcf319
2023-12-04 14:12:33
fxy060608
fix(uts): 修复本地依赖变更后,编译不生效的Bug
false
修复本地依赖变更后,编译不生效的Bug
fix
diff --git a/packages/uni-uts-v1/src/kotlin.ts b/packages/uni-uts-v1/src/kotlin.ts index 1e029fd2eab..3cafd0100c6 100644 --- a/packages/uni-uts-v1/src/kotlin.ts +++ b/packages/uni-uts-v1/src/kotlin.ts @@ -549,11 +549,9 @@ function resolveLibs(filename: string) { const zips = sync('*.aar', { cwd: libsPath }) zips.forEach((name) => { const outputPath = resolveAndroidArchiveOutputPath(name) - if (!fs.existsSync(outputPath)) { - // 解压 - const zip = new AdmZip(path.resolve(libsPath, name)) - zip.extractAllTo(outputPath, true) - } + // 每次都解压,避免aar或jar更新后,未解压 + const zip = new AdmZip(path.resolve(libsPath, name)) + zip.extractAllTo(outputPath, true) libs.push( ...sync('**/*.jar', { cwd: outputPath,
f067e94202d1846c5c0f19b6cb7dd587b9e236c1
2024-07-06 15:50:53
fxy060608
wip(x-android): tsc
false
tsc
wip
diff --git a/packages/uni-app-uts/src/plugins/android/plugin.ts b/packages/uni-app-uts/src/plugins/android/plugin.ts index 738633a4077..4965f9dfc90 100644 --- a/packages/uni-app-uts/src/plugins/android/plugin.ts +++ b/packages/uni-app-uts/src/plugins/android/plugin.ts @@ -37,8 +37,14 @@ import { getExtApiComponents, updateManifestModules, } from '../utils' + import { genClassName } from '../..' +declare class WatchProgramHelper { + watch(timeout?: number): void + wait(): Promise<void> +} + const uniCloudSpaceList = getUniCloudSpaceList() let isFirst = true @@ -71,6 +77,9 @@ export function uniAppPlugin(): UniVitePlugin { } } emptyTscDir() + + let watcher: WatchProgramHelper + return { name: 'uni:app-uts', apply: 'build', @@ -79,8 +88,10 @@ export function uniAppPlugin(): UniVitePlugin { return { base: '/', // 强制 base build: { + // 手动清理 + emptyOutDir: false, outDir: - process.env.UNI_APP_X_TSC === 'true' ? tscOutDir() : uvueOutDir(), + process.env.UNI_APP_X_TSC === 'true' ? tscOutputDir : uvueOutputDir, lib: { // 必须使用 lib 模式 fileName: 'output', @@ -170,6 +181,11 @@ export function uniAppPlugin(): UniVitePlugin { // 开发者仅在 script 中引入了 easyCom 类型,但模板里边没用到,此时额外生成一个辅助的.uvue文件 checkUTSEasyComAutoImports(inputDir, bundle, this) }, + watchChange() { + if (process.env.UNI_APP_X_TSC === 'true') { + watcher && watcher.watch() + } + }, async writeBundle() { if (process.env.UNI_COMPILE_TARGET === 'uni_modules') { return @@ -192,11 +208,14 @@ export function uniAppPlugin(): UniVitePlugin { } const { compileApp, runUTS2KotlinDev } = resolveUTSCompiler() if (process.env.UNI_APP_X_TSC === 'true') { - await runUTS2KotlinDev({ - inputDir: tscOutputDir, - outputDir: uvueOutputDir, - normalizeFileName: normalizeNodeModules, - }) + if (!watcher) { + watcher = runUTS2KotlinDev({ + inputDir: tscOutputDir, + outputDir: uvueOutputDir, + normalizeFileName: normalizeNodeModules, + }).watcher + } + await watcher.wait() } const res = await compileApp(path.join(uvueOutputDir, 'main.uts'), { pageCount, diff --git a/packages/uni-uts-v1/lib/javascript/lib/runtime/index.js b/packages/uni-uts-v1/lib/javascript/lib/runtime/index.js index 20ed70964fe..6a0986be6e0 100644 --- a/packages/uni-uts-v1/lib/javascript/lib/runtime/index.js +++ b/packages/uni-uts-v1/lib/javascript/lib/runtime/index.js @@ -224,8 +224,9 @@ function __await(v) { function __asyncGenerator(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -290,7 +291,7 @@ function __classPrivateFieldIn(state, receiver) { function __addDisposableResource(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); - var dispose; + var dispose, inner; if (async) { if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); dispose = value[Symbol.asyncDispose]; @@ -298,14 +299,17 @@ function __addDisposableResource(env, value, async) { if (dispose === void 0) { if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); dispose = value[Symbol.dispose]; + if (async) inner = dispose; } if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; env.stack.push({ value: value, dispose: dispose, async: async }); } else if (async) { env.stack.push({ async: true }); } return value; + } var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { diff --git a/packages/uni-uts-v1/lib/kotlin/dist/index.js b/packages/uni-uts-v1/lib/kotlin/dist/index.js index bafb00c21ea..f85271a427d 100644 --- a/packages/uni-uts-v1/lib/kotlin/dist/index.js +++ b/packages/uni-uts-v1/lib/kotlin/dist/index.js @@ -1 +1 @@ -"use strict";var n=require("debug");require("fs");var r=require("path");function t(){const n=["zw5KC1DPDgG","lNv0CW","lNrZ","CMvWBgfJzq","AxnjBxbVCNrezwnSyxjHDgLVBG","AxntDhjPBMDmAxrLCMfS","Bw9KDwXLu3bLy2LMAwvY","Dgv4Da","DxbKyxrLsw1WB3j0rgvJBgfYyxrPB24","Bw9KAwzPzxjZ","Aw1WB3j0q2XHDxnL","y3jLyxrLu3rYAw5NtgL0zxjHBa","yxnZzxj0q2XHDxnL","AxnuExbLt25SEq","DMLZAxrfywnOq2HPBgq","DMLZAxroB2rL"];return(t=function(){return n})()}function e(n,r){const o=t();return e=function(r,t){let u=o[r-=0];if(void 0===e.OwBNXY){e.TTFQiA=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,e.OwBNXY=!0}const i=r+o[0],f=n[i];return f?u=f:(u=e.TTFQiA(u),n[i]=u),u},e(n,r)}function o(n,r){var t=i();return o=function(r,e){var u=t[r-=0];if(void 0===o.vbiJxD){o.XSugzC=function(n){for(var r,t,e="",o="",u=0,i=0;t=n.charAt(i++);~t&&(r=u%4?64*r+t:t,u++%4)?e+=String.fromCharCode(255&r>>(-2*u&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var f=0,c=e.length;f<c;f++)o+="%"+("00"+e.charCodeAt(f).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,o.vbiJxD=!0}var i=r+t[0],f=n[i];return f?u=f:(u=o.XSugzC(u),n[i]=u),u},o(n,r)}function u(n){return n[(r=151,t=151,o(t-151,r))](/\\/g,"/");var r,t}function i(){var n=["CMvWBgfJzq"];return(i=function(){return n})()}function f(n,r){var t=z();return f=function(r,e){var o=t[r-=0];if(void 0===f.kjpXrq){f.ZQLzPc=function(n){for(var r,t,e="",o="",u=0,i=0;t=n.charAt(i++);~t&&(r=u%4?64*r+t:t,u++%4)?e+=String.fromCharCode(255&r>>(-2*u&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var f=0,c=e.length;f<c;f++)o+="%"+("00"+e.charCodeAt(f).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,f.kjpXrq=!0}var u=r+t[0],i=n[u];return i?o=i:(o=f.ZQLzPc(o),n[u]=o),o},f(n,r)}var c;function z(){var n=["v2fYBMLUzW","rxjYB3i","u3vNz2vZDgLVBG","twvZC2fNzq"];return(z=function(){return n})()}function v(n,r,t,e){return L(t-925,n)}function L(n,r){const t=B();return L=function(r,e){let o=t[r-=0];if(void 0===L.hMGVrr){L.HxOYQs=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,L.hMGVrr=!0}const u=r+t[0],i=n[u];return i?o=i:(o=L.HxOYQs(o),n[u]=o),o},L(n,r)}function a(n,r,t,e,o,u,i){return{code:n,category:r,key:t,message:e,reportsUnnecessary:o,elidedInCompatabilityPyramid:u,reportsDeprecated:i}}function x(n,r,t,e){return L(n-345,t)}function B(){const n=["rxjYB3i","vhLWzv9SAxrLCMfSx3bYB3bLCNr5x211C3rFAgf2zv9Hx3r5CgvFyw5UB3rHDgLVBL8XmdaWmda","vhLWzsbSAxrLCMfSihbYB3bLCNr5ig11C3qGAgf2zsbHihr5CguGyw5UB3rHDgLVBI4","t25SEv9VBMvFzxH0zw5KC19OzxjPDgfNzv9JBgf1C2vFAxnFywXSB3DLzf9MB3jFAw50zxjMywnLxZeWmdaWmq","t25SEsbVBMuGzxH0zw5KCYbOzxjPDgfNzsbJBgf1C2uGAxmGywXSB3DLzcbMB3iGAw50zxjMywnL","vMfYAwfIBgvFzgvJBgfYyxrPB25FBxvZDf9OyxzLx2LUAxrPywXPEMvYxZeWmdaWmG","tMvZDgvKx3r5CgvFBgL0zxjHBf9PC19UB3rFC3vWCg9YDgvKxZeWmdaWmW","tMvZDgvKihr5CguGBgL0zxjHBcbPCYbUB3qGC3vWCg9YDgvKlG","sw52ywXPzf9Nzw5LCMLJx3r5CgvFD2HPy2HFy2fUx25VDf9Izv9JB25ZDhj1y3rLzf8XmdaWmdq","sw52ywXPzcbNzw5LCMLJihr5CguGD2HPy2GGy2fUig5VDcbIzsbJB25ZDhj1y3rLzc4","ydXZy3jPChqGC2v0Dxa+ycbJyw5UB3qGy29UDgfPBIbfuYbTB2r1BguGzxHWB3j0CY4"];return(B=function(){return n})()}function g(n,r){if(r[e(418,420,413,412)]())return r[e(402,416,423,413)][t(851,850,848,865)]((r=>g(n,r)));if(r[e(402,418,415,415)]&n[t(853,863,867,839)].Object)return!!(r.objectFlags&n[t(854,857,862,864)].UTSType);function t(n,r,t,e){return M(n-849,e)}function e(n,r,t,e){return M(e-412,t)}return!!(r[t(852,0,0,856)]&n[e(0,0,405,416)][t(855,0,0,848)])}function s(n,r){return n[(t=83,e=91,M(e-84,t))](r)??n.getTypeAtLocation(r);var t,e}function C(){const n=["AxnvBMLVBG","DhLWzxm","zxzLCNK","zMXHz3m","vhLWzuzSywDZ","t2jQzwn0rMXHz3m","vvrtvhLWzq","z2v0q29UDgv4DhvHBfr5Cgu","B2jQzwn0rMXHz3m","qw5VBNLTB3vZ","ywXPyxntEw1IB2W","C3LTyM9S","u3LTyM9SrMXHz3m","vhLWzufSAwfZ","zgvJBgfYyxrPB25Z","AxnuExbLqwXPyxnezwnSyxjHDgLVBG","AxnuExbLtgL0zxjHBe5Vzgu","DhLWzq","BwvTyMvYCW","AxnqCM9Wzxj0EvnPz25HDhvYzq","AxndywXSu2LNBMf0DxjLrgvJBgfYyxrPB24","z2v0t3jPz2LUywXoB2rL","CgfYzw50","AxnpyMPLy3rmAxrLCMfSrxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","BMfTzq","z2v0uhjVCgvYDhK","Dgv4Da"];return(C=function(){return n})()}function y(n,r){return r?n.getNonNullableType(r):r}function w(n,r){function t(n,r,t,e){return M(e-872,r)}function e(n,r,t,e){return M(n- -477,t)}return r[t(0,865,0,875)]&n[t(0,872,0,876)].Object&&r[e(-469,0,-459)]&n.ObjectFlags[t(0,888,0,881)]&&!r[e(-467,0,-463)]}function M(n,r){const t=C();return M=function(r,e){let o=t[r-=0];if(void 0===M.WPmwhi){M.pnVBlo=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,M.WPmwhi=!0}const u=r+t[0],i=n[u];return i?o=i:(o=M.pnVBlo(o),n[u]=o),o},M(n,r)}function l(n,r,t){const e=n[u(814,825)](t)[o(656,639,650)];function o(n,r,t,e){return M(t-628,n)}function u(n,r,t,e){return M(n-793,r)}if(e&&n[u(816,828)](e)&&n[o(656,0,652)](t[u(818,817)])){const n=r[o(646,0,635)](e);if(n){const e=n[u(819,805)](t[u(818,818)][o(667,0,655)]);if(e)return r.getTypeOfSymbol(e)}}}function D(){const n=["DxrZoNrYyw5ZzM9YBwvYoMf1Dg9jBxbVCNq","zgvJBgfYyxrPB25Z","z2v0u291CMnLrMLSzq","AxnezwnSyxjHDgLVBKzPBgu","zMLSzu5HBwu","AxnnB2r1BgvezwnSyxjHDgLVBG","C3rHDgvTzw50CW","zM9YrwfJAa","AxnjBxbVCNrezwnSyxjHDgLVBG","Bw9KDwXLu3bLy2LMAwvY","CMvZB2X2zuv4DgvYBMfStw9KDwXLtMfTzq","AxntB3vYy2vgAwXL","Aw1WB3j0q2XHDxnL","Axnoyw1LzeLTCg9YDhm","zwXLBwvUDhm","z2v0","BMfTzq","Dgv4Da","x19PBxbVCNrZ","z2v0tMfTzq","AgfZ","z2v0vw5PCxvLtMfTzq","x19YB290rgLY","C3rHCNrZv2L0Aa","BM9YBwfSAxPLrMLSzu5HBwu","CMvSyxrPDMu","zgLYBMfTzq","y3jLyxrLsw1WB3j0rgvJBgfYyxrPB24","y3jLyxrLsw1WB3j0q2XHDxnL","y3jLyxrLtMfTzwrjBxbVCNrZ","y3jLyxrLswrLBNrPzMLLCG","Aw1WB3j0ihSG","ih0GzNjVBsaN","C2v0"];return(D=function(){return n})()}!function(n){function r(n,r,t,e){return f(r-689,t)}function t(n,r,t,e){return f(t- -331,n)}n[n[r(687,689,691)]=0]=t(-333,-333,-331),n[n[t(-332,-328,-330)]=1]="Error",n[n[t(-330,-329,-329)]=2]=r(0,691,693),n[n[t(-330,0,-328)]=3]=t(-330,0,-328)}(c||(c={})),a(1e5,c[v(926,0,925)],v(926,0,926),v(927,0,927)),a(100001,c.Error,v(927,0,928),v(930,0,929)),a(100002,c[x(345,0,340)],v(936,0,930),"Variable declaration must have initializer."),a(100003,c[x(345,0,339)],v(933,0,931),x(352,0,354)),a(100004,c[x(345,0,344)],x(353,0,354),x(354,0,355)),a(100005,c[v(920,0,925)],"script_setup_cannot_contain_ES_module_exports_100005",x(355,0,349));const A=n(h(-662- -662,-679));function h(n,r){const t=D();return h=function(r,e){let o=t[r-=0];if(void 0===h.vBJTgs){h.bKKVtK=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,h.vBJTgs=!0}const u=r+t[0],i=n[u];return i?o=i:(o=h.bKKVtK(o),n[u]=o),o},h(n,r)}function j(n,t,e,o,i,f){let{aliasSymbol:c}=y(e,o);function z(n,r,t,e){return h(n-189,e)}function v(n,r,t,e){return h(r- -493,t)}if(!c)return;const L=function(n,r,t){function e(n,r,t,e){return h(r- -998,n)}function o(n,r,t,e){return h(n-629,t)}if(r[o(630,0,640)])for(const i of r[o(630,0,623)]){const r=i[o(631,0,628)]();if(r[e(-984,-995)])return;if(r===t||r[e(-988,-994)]===t[o(633,0,618)])return;if(n[e(-998,-993)](i))return;return u(r.fileName)}}(n,c,i);if(L){const{factory:o}=n,a=c[z(208,0,0,200)]();!i.__imports&&function(n,r,t){function e(n,r,t,e){return h(r-985,n)}const o=new Map;var i,f;t[e(993,991)][e(1004,992)]((t=>{if(!n[z(-85,-78)](t))return;function e(n,r,t,e){return h(e-63,t)}const i=t[e(0,0,57,72)],f=r[z(-83,-77)](i);if(!f)return;const{valueDeclaration:c}=f;function z(n,r,t,e){return h(n- -93,r)}if(!c)return;if(!n[z(-82,-90)](c))return;const v=u(c[z(-89,-73)]);!o.has(v)&&o.set(v,{});const L=t[e(0,0,67,75)];if(!L)return;const{name:a,namedBindings:x}=L;x&&n[z(-80,-84)](x)&&x[z(-79,-89)].forEach((n=>{function r(n,r,t,e){return h(n- -789,t)}function t(n,r,t,e){return h(e- -211,r)}o[t(0,-207,0,-196)](u(c[r(-785,0,-797)]))[n[t(0,-210,0,-195)][t(0,-202,0,-194)]]=n.propertyName?.[r(-772,0,-765)]??n[t(0,-194,0,-195)][r(-772,0,-771)]}))})),t[(i=290,f=278,h(i-272,f))]=o}(n,e,i);const x=i[v(0,-475,-462)];if(x[v(0,-473,-474)](L)){const n=x[v(0,-478,-481)](L);if(n[a])return n[a]}const B=n[v(0,-472,-468)](a,i);let g=L;const s=i[v(0,-471,-460)];if(s&&L[z(212,0,0,224)](s)){const n=u(i.fileName);n[z(212,0,0,203)](s)&&(g=t[z(213,0,0,199)](r[v(0,-468,-459)](r[z(215,0,0,229)](n),L)),g=g[v(0,-470,-487)](".")?g:"./"+g)}const C=o[z(216,0,0,200)](void 0,o[v(0,-465,-455)](!1,void 0,o[v(0,-464,-449)]([o.createImportSpecifier(!1,B!==a?o[v(0,-463,-448)](B):void 0,o.createIdentifier(a))])),o.createStringLiteral(g),void 0);A.enabled&&A(v(0,-462,-468)+a+" as "+B+v(0,-461,-456)+g+"'","at",i.__relativeFileName),f[z(222,0,0,216)](c,C)}}const d=n(S(-762- -762,-763));function m(){const n=["DxrZoNrYyw5ZzM9YBwvYoMfYz3vTzw50CW","z2v0uhjVz3jHBq","DMLZAxrfywnOq2HPBgq","AxnnzxrOB2rezwnSyxjHDgLVBG","BgvUz3rO","CgfYyw1LDgvYCW","BMfTzq","z2v0vgv4Da","ksbHDca","x19YzwXHDgL2zuzPBgvoyw1L","DxbKyxrLtwv0Ag9KrgvJBgfYyxrPB24","Bw9KAwzPzxjZ","CxvLC3rPB25uB2TLBG","DhLWzq","AxnbCNjVD0z1BMn0Aw9U","z2v0q2fSBfnPz25HDhvYzxm","yxjYB3CGzNvUy3rPB246","DxbKyxrLqxjYB3DgDw5JDgLVBG","DhLWzvbHCMfTzxrLCNm","zxf1ywXZr3jLyxrLCLrOyw5uB2TLBG","yM9KEq","AxngDw5JDgLVBKv4ChjLC3nPB24","zw5HyMXLza","zNvUy3rPB24GzxHWCMvZC2LVBJO","yxn0zxjPC2TuB2TLBG","DxbKyxrLu291CMnLrMLSzq","DMfSDwvZ","C3rHDgvTzw50CW","AxnezwnSyxjHDgLVBKzPBgu","CMvMzxjLBMnLzezPBgvZ","DhLWzvjLzMvYzw5JzurPCMvJDgL2zxm","AgfZtM9ezwzHDwX0tgLI","BgLIuMvMzxjLBMnLrgLYzwn0AxzLCW","BwfW","AxnjzgvUDgLMAwvY","Dgv4Da","AM9PBG","ChvZAa","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","y3jLyxrLswrLBNrPzMLLCG","y3jLyxrLtM9KzufYCMf5"];return(m=function(){return n})()}function S(n,r){const t=m();return S=function(r,e){let o=t[r-=0];if(void 0===S.cgbYaS){S.MuZZpV=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,S.cgbYaS=!0}const u=r+t[0],i=n[u];return i?o=i:(o=S.MuZZpV(o),n[u]=o),o},S(n,r)}function P(n,r){function t(n,r,t,e){return S(t-889,r)}function e(n,r,t,e){return S(n- -709,t)}return r[t(0,917,922)]((r=>n[e(-675,0,-665)](r[e(-703,0,-702)])?r.name[e(-674,0,-674)]:r[t(0,907,895)]))[e(-673,0,-683)](", ")}function Y(n,r,t){let e;const o=t.length;for(const n of r){if(n[i(62,59,79)][u(854,835)]===o)return;n[i(62,60,79)].length>t[u(828,835)]&&(!e||n[i(78,65,79)].length<e.parameters[i(87,64,78)])&&(e=n)}if(!e)return;function u(n,r,t,e){return S(r-831,n)}function i(n,r,t,e){return S(t-74,n)}const f=e[i(98,0,79)][u(833,835)]-t[u(837,835)],c=[];for(let r=0;r<f;r++)c[i(115,0,111)](n[i(95,0,112)](void 0,void 0,n[u(883,870)]("_"+e.parameters[r+o][u(828,837)]),void 0,void 0,void 0));return n[u(855,871)]([...t,...c])}function N(n,r){const t=q();return N=function(r,e){let o=t[r-=0];if(void 0===N.WwcGgO){N.OLjvLS=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,N.WwcGgO=!0}const u=r+t[0],i=n[u];return i?o=i:(o=N.OLjvLS(o),n[u]=o),o},N(n,r)}function q(){const n=["AxntB3vYy2vgAwXL","x19YzwXHDgL2zuzPBgvoyw1L","z2v0q29TCgLSzxjpChrPB25Z","CM9VDerPCG","AxnbyNnVBhv0zq","zMLSzu5HBwu","x19YB290rgLY","C3rHCNrZv2L0Aa","CMvSyxrPDMu","t2jQzwn0rMXHz3m","vvrtvhLWzq","vhLWzuzSywDZ","ChjPBNroB2rL","y3jLyxrLuhjPBNrLCG","vw5ZCgvJAwzPzwq","ywrKqMLUzerPywDUB3n0Awm","ChvZAa","ywrKqMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJ","yMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJCW"];return(q=function(){return n})()}function b(){const n=["z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","DMLZAxrfywnOq2HPBgq","z2v0t3jPz2LUywXoB2rL","CgfYzw50","AxnbC0v4ChjLC3nPB24","AxnwyxjPywjSzurLy2XHCMf0Aw9U","DhLWzq","y3jLyxrLqxnfEhbYzxnZAw9U","y3jLyxrLvhLWzvjLzMvYzw5Jzu5Vzgu","ywXPyxntEw1IB2W","BMfTzq"];return(b=function(){return n})()}function H(n,r){const t=b();return H=function(r,e){let o=t[r-=0];if(void 0===H.SaMKwm){H.nfpEMX=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,H.SaMKwm=!0}const u=r+t[0],i=n[u];return i?o=i:(o=H.nfpEMX(o),n[u]=o),o},H(n,r)}const p=n(U(-797- -797,-794));function Z(){const n=["DxrZoNrYyw5ZzM9YBwvYoNjLDhvYBLr5Cgu","z2v0vhLWzunOzwnRzxi","DMLZAxrfywnOq2HPBgq","DhLWzq","z2v0u2LNBMf0DxjLrNjVBurLy2XHCMf0Aw9U","z2v0uMv0DxjUvhLWzu9Mu2LNBMf0DxjL","zw5HyMXLza","zNvUy3rPB246","BMfTzq","z2v0vgv4Da","kcK6","igf0ia","DxbKyxrLrNvUy3rPB25ezwnSyxjHDgLVBG","Bw9KAwzPzxjZ","yxn0zxjPC2TuB2TLBG","DhLWzvbHCMfTzxrLCNm","yM9KEq","AxnnzxrOB2rezwnSyxjHDgLVBG","z2v0q2fSBfnPz25HDhvYzxm","BgvUz3rO","Bwv0Ag9KoG","DxbKyxrLtwv0Ag9KrgvJBgfYyxrPB24","CxvLC3rPB25uB2TLBG","CgfYyw1LDgvYCW","AxnbCNjVD0z1BMn0Aw9U","z2v0q29UDgv4DhvHBfr5Cgu","z2v0vhLWzuf0tg9JyxrPB24","z2v0uMv0DxjUvhLWzq","yxjYB3CGzNvUy3rPB246","DxbKyxrLqxjYB3DgDw5JDgLVBG","zxf1ywXZr3jLyxrLCLrOyw5uB2TLBG","zNvUy3rPB24GzxHWCMvZC2LVBJO","x19YzwXHDgL2zuzPBgvoyw1L","DxbKyxrLrNvUy3rPB25fEhbYzxnZAw9U","DMLZAxroB2rL","DxbKyxrLu291CMnLrMLSzq","DMfSDwvZ","C3rHDgvTzw50CW","AxnezwnSyxjHDgLVBKzPBgu","CMvMzxjLBMnLzezPBgvZ","DhLWzvjLzMvYzw5JzurPCMvJDgL2zxm","AgfZtM9ezwzHDwX0tgLI","BgLIuMvMzxjLBMnLrgLYzwn0AxzLCW","AxnuExbLuMvMzxjLBMnLtM9Kzq","AxnjzgvUDgLMAwvY","DhLWzu5HBwu","AxnvBMLVBG","zMfJDg9YEq","y3jLyxrLvw5PB25uExbLtM9Kzq","y3jLyxrLvhLWzvjLzMvYzw5Jzu5Vzgu","y3jLyxrLtgL0zxjHBfr5CgvoB2rL","y3jLyxrLtNvSBa","zMXHz3m","vM9Pza","vvrtsLnptK9IAMvJDa"];return(Z=function(){return n})()}function U(n,r){const t=Z();return U=function(r,e){let o=t[r-=0];if(void 0===U.kUXPUE){U.CXqTjn=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,U.kUXPUE=!0}const u=r+t[0],i=n[u];return i?o=i:(o=U.CXqTjn(o),n[u]=o),o},U(n,r)}function W(n,r,t,e){if(n[i(45,37,32)](t)&&n[i(53,38,15)](t[(o=-749,u=-727,U(o- -794,u))]))return t.typeName.text;var o,u;function i(n,r,t,e){return U(r- -6,t)}return r.typeToString(e)}function V(n,r,t,e){function o(n,r,t,e){return U(n- -570,r)}function u(n,r,t,e){return U(n- -86,t)}const i=!e;if(t[u(-40,0,-24)]()&&w(n,y(r,t))){if(!i)return;return n[o(-523,-547)][o(-522,-533)]([n[o(-523,-501)][u(-37,0,-65)]("UTSJSONObject"),n[u(-39,0,-17)][u(-36,0,-29)](n[u(-39,0,-33)][o(-519,-501)]())])}if(!(t[o(-518,-520)]&n.TypeFlags[o(-517,-544)]))return w(n,t)?i?n[o(-523,-509)][o(-521,-509)](o(-516,-528)):void 0:g(n,t)?r.typeToTypeNode(t,void 0,void 0):void 0}function T(n,r){const t=G();return T=function(r,e){let o=t[r-=0];if(void 0===T.prjUMf){T.vMfUPs=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,T.prjUMf=!0}const u=r+t[0],i=n[u];return i?o=i:(o=T.vMfUPs(o),n[u]=o),o},T(n,r)}function X(n,r,t,e=!1,o=!1){return u=>{const i=t(u);return t=>{function f(n,r,t,e){return T(r- -20,e)}if(!u.fileName&&n[f(0,-20,0,-26)](t)&&(u.fileName=t.fileName),r.isUTSFile(u[c(-724,-719,-713)])||u[f(0,-19,0,-21)]&&u.fileName.endsWith(c(-713,-718,-712))||o&&u[f(0,-19,0,-24)].endsWith(f(0,-17,0,-17))){n[c(-715,-720,-717)](t)&&!t[c(-723,-716,-716)]&&(t[f(0,-16,0,-11)]=!0,r[f(0,-15,0,-8)](u.fileName)&&(t[c(-720,-715,-718)]=!0));const o=i(t);return o!==t&&e&&n.setParentRecursive(o,!0),o}function c(n,r,t,e){return T(r- -720,t)}return t}}}function G(){const n=["AxntB3vYy2vgAwXL","zMLSzu5HBwu","lMPZB24UDhm","lMqUDhm","AxnvvfngAwXL","AxnwDwvgAwXL","vhLWzufSAwfZrgvJBgfYyxrPB24","ChvZAa","u291CMnLrMLSzq","zM9YrwfJAa","zNvUy3rPB24","CgfYC2vY","yMvMB3jL","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm"];return(G=function(){return n})()}function K(n,r){return t=>{const e={},o=[],u=[],i=[];return r[(f=-428,c=-434,T(f- -437,c))]((r=>{const f=r(n,t);function c(n,r,t,e){return T(t-513,e)}function z(n,r,t,e){return T(n-428,t)}typeof f===c(0,0,523,518)?o[z(435,0,442)](X(n,t,f)):(f[c(0,0,524,523)]&&function(n,r,t,e){function o(n,r,t,e){return T(n-426,e)}function u(n,r,t,e){return T(t- -561,e)}e[o(432,0,0,426)]&&(t.TypeAliasDeclaration||(t[o(432,0,0,425)]=[]))[u(0,0,-554,-547)](X(n,r,e.TypeAliasDeclaration,!0,!0)),e[o(434,0,0,429)]&&(t[u(0,0,-553,-547)]||(t[o(434,0,0,442)]=[]))[u(0,0,-554,-556)](X(n,r,e[o(434,0,0,429)],!0))}(n,t,e,f[c(0,0,524,519)]),f[z(440,0,437)]&&o.push(X(n,t,f[c(0,0,525,527)])),f[c(0,0,526,528)]&&u[c(0,0,520,524)](X(n,t,f[c(0,0,526,534)])),f[z(442,0,447)]&&i[c(0,0,520,517)](X(n,t,f[c(0,0,527,532)])))})),{parser:e,before:o,after:u,afterDeclarations:i};var f,c}}function O(){const n=["z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","vhLWzuzSywDZ","tNvTyMvY","AxnvBMLVBG","DhLWzxm","AxnoDw1IzxjmAxrLCMfS","AxncAw5HCNLfEhbYzxnZAw9U","B3bLCMf0B3juB2TLBG","A2LUza","u3LUDgf4s2LUza","rxf1ywXZrxf1ywXZrxf1ywXZvg9Rzw4","z2v0vhLWzuf0tg9JyxrPB24","BgvMDa","CMLNAhq","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLswrLBNrPzMLLCG","BNvTyMvYrxf1ywXZ","DMLZAxrfywnOq2HPBgq","DMLZAxroB2rL"];return(O=function(){return n})()}function J(n,r){const t=O();return J=function(r,e){let o=t[r-=0];if(void 0===J.kYpVVo){J.kkWMDX=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,J.kYpVVo=!0}const u=r+t[0],i=n[u];return i?o=i:(o=J.kkWMDX(o),n[u]=o),o},J(n,r)}var E=[(n,t)=>{function e(t,e){if(n[o(955,950,959)](e)){if(!e[i(901,897,904)]){const n=t[i(904,898,903)]();if(n[o(952,953,959)]&&r[o(951,954,947)](n[o(944,953,951)])){const t=u(n.rootDir),f=u(e[i(895,901,901)]);e[o(959,956,954)]=t,f[o(961,957,956)](t)&&(e.__relativeFileName=u(r[i(901,904,900)](t,f)))}!e.__relativeFileName&&(e[i(905,897,892)]=r.basename(e[i(902,901,898)]))}if(!n[i(896,905,911)][i(902,906,899)]){const{Class:r,Interface:t,Reference:e,Anonymous:o,ArrayLiteral:u}=n[i(901,905,898)];n.ObjectFlags[i(898,906,904)]=r|t|e|o|u}if(!n[o(969,961,966)][i(913,906,908)]){const{Any:r,String:t,Number:e,Boolean:u,Enum:i,StringLiteral:f,NumberLiteral:c,BooleanLiteral:z,EnumLiteral:v,Void:L,Null:a,Object:x,Union:B,TemplateLiteral:g}=n[o(963,961,962)];n[o(952,961,959)].UTSType=r|t|e|u|i|f|c|z|v|L|a|x|B|g}if(!t[o(963,962,970)]){const r=n[i(903,909,911)]();t[o(969,962,964)]=(t,e)=>{return r[(i=-626,f=-622,N(f- -634,i))](n.EmitHint[(o=-596,u=-591,N(u- -605,o))],t,e);var o,u,i,f}}!t[i(913,911,902)]&&(t[o(968,965,964)]=n=>{var r,t;e.bindDiagnostics[(r=285,t=292,N(r-269,t))](n)},t[i(915,913,908)]=n=>{function r(n,r,t,e){return N(r-401,t)}var t,o;!e[(t=-278,o=-276,N(o- -294,t))]&&(e.bindSuggestionDiagnostics=[]),e[r(0,419,421)][r(0,417,425)](n)})}function o(n,r,t,e){return N(r-950,t)}function i(n,r,t,e){return N(r-896,t)}return e}return{before:n=>r=>e(n,r),after:n=>r=>e(n,r),afterDeclarations:n=>r=>e(n,r)}},n=>{function r(r){const{factory:t}=r;function o(n){function r(n,r,t,o){return e(n-524,o)}function t(n,r,t,o){return e(n-769,o)}if(n[t(769,0,0,773)](t(770,0,0,769))||n[r(524,0,0,528)](r(526,0,0,533)))return n[r(527,0,0,528)](/.u?ts$/,"")}function u(i){function f(n,r,t,o){return e(r-17,t)}function c(n,r,t,o){return e(o-389,r)}if(n[f(0,21,29)](i)&&i.moduleSpecifier&&n[c(0,401,0,394)](i[f(0,23,31)])){const n=o(i[f(0,23,29)][c(0,400,0,396)]);if(n)return t[f(0,25,21)](i,i[f(0,26,28)],i[f(0,27,27)],t[f(0,28,23)](n),i[f(0,29,27)])}else if(n.isExportDeclaration(i)&&i[c(0,391,0,395)]&&n[c(0,397,0,394)](i[f(0,23,20)])){const n=o(i.moduleSpecifier[c(0,401,0,396)]);if(n)return t.updateExportDeclaration(i,i[c(0,391,0,398)],i[f(0,30,35)],i.exportClause,t[f(0,28,27)](n),i[c(0,409,0,401)])}return n[c(0,409,0,403)](i,u,r)}return r=>{return n[(t=37,o=45,e(o-30,t))](r,u);var t,o}}return{before:r,afterDeclarations:r}},(n,r)=>({before(t){const e=r[(i=-82,f=-87,S(i- -83,f))]().getTypeChecker(),{factory:o}=t,u=new Map;var i,f;let c;const z=r=>{const u=n[f(470,489,458,472)](r,z,t);function i(n,r,t,e){return S(t-613,e)}function f(n,r,t,e){return S(e-470,t)}if(n[i(0,0,616,608)](u)){const r=l(n,e,u);if(r){const t=y(e,r).getCallSignatures();if(t&&t[f(0,0,454,474)]){const r=Y(o,t,u[i(0,0,618,609)]);if(r)return d.enabled&&d("method:",u[i(0,0,619,632)]?.[f(0,0,486,477)]()+"("+P(n,r)+i(0,0,621,630)+c[i(0,0,622,609)]),o[i(0,0,623,621)](u,u[i(0,0,624,613)],u.asteriskToken,u[f(0,0,460,476)],u[f(0,0,478,482)],u.typeParameters,r,u[f(0,0,495,483)],u.body)}}}else if(n[f(0,0,489,484)](u)){const r=y(e,s(e,u))?.[i(0,0,628,614)]();if(r&&r.length){const t=Y(o,r,u[i(0,0,618,599)]);if(t)return d.enabled&&d(i(0,0,629,623),"("+P(n,t)+i(0,0,621,633)+c[f(0,0,469,479)]),o[f(0,0,489,487)](u,u.modifiers,u[f(0,0,496,488)],t,u[i(0,0,626,626)],u[i(0,0,632,643)],u[f(0,0,505,490)])}}else if(n[i(0,0,634,632)](u)){const r=y(e,s(e,u))?.[i(0,0,628,644)]();if(r&&r[i(0,0,617,638)]){const t=Y(o,r,u[i(0,0,618,605)]);if(t)return d[i(0,0,635,626)]&&d(i(0,0,636,641),"("+P(n,t)+f(0,0,459,478)+c[i(0,0,622,614)]),o.updateFunctionExpression(u,u[i(0,0,624,636)],u[i(0,0,637,648)],u[i(0,0,619,639)],u[f(0,0,491,488)],t,u[f(0,0,475,483)],u.body)}}return u};return r=>{function t(n,r,t,e){return S(t- -32,e)}c=r;const e=n.visitNode(r,z);function i(n,r,t,e){return S(e-996,n)}return 0===u.size?e:o[t(0,0,-7,2)](e,[...u[i(1037,0,0,1022)](),...e[i(1039,0,0,1023)]],e[t(0,0,-4,8)],e[i(1031,0,0,1025)],e[i(1028,0,0,1026)],e[i(1041,0,0,1027)],e[i(1010,0,0,1028)])}}}),(n,r)=>({before(t){const e=r[(c=-131,z=-127,H(z- -127,c))]()[(i=754,f=756,H(i-753,f))](),{factory:o}=t,u=r=>{function i(n,r,t,e){return H(e- -224,t)}const f=n[c(-375,-378,-374)](r,u,t);function c(n,r,t,e){return H(t- -376,r)}if(n.isObjectLiteralExpression(f)){const r=n[c(0,-370,-373)](f)[i(0,0,-222,-220)];if(r){if(n[c(0,-372,-371)](r))return f;if(n[i(0,0,-218,-218)](r)&&r[i(0,0,-211,-217)])return f}const t=function(n,r,t){function e(n,r,t,e){return M(n- -391,r)}function o(n,r,t,e){return M(e-101,r)}if(t&&(t=y(r,t))[o(0,118,0,112)]&&t[e(-381,-374)]&&t[e(-381,-378)][e(-388,-392)]&n[o(0,124,0,113)][o(0,122,0,114)]&&1===t[o(0,100,0,111)][e(-377,-363)]?.length){const r=t[o(0,113,0,111)][e(-377,-386)][0];if(n[e(-376,-380)](r)&&n[e(-375,-363)](r[e(-374,-373)])&&r[e(-374,-364)][o(0,105,0,119)][e(-389,-386)]((r=>n[o(0,122,0,120)](r)||n[e(-371,-372)](r))))return t}}(n,e,s(e,f));if(t)return o[c(0,-369,-368)](f,o[c(0,-363,-367)](t[c(0,-363,-366)][i(0,0,-207,-213)]))}return f};var i,f,c,z;return r=>n.visitNode(r,u)}}),(n,r)=>({before(t){const e=r.getProgram()[(u=105,i=98,U(i-97,u))](),{factory:o}=t;var u,i;const f=new Map;let c;const z=u=>{const i=n[L(-352,-355,-374)](u,z,t);if(n.isFunctionDeclaration(i)){if(!i[L(-351,-341,-339)]){const t=e[L(-350,-355,-324)](i);if(t){const u=e[L(-349,-344,-346)](t),z=V(n,e,u,!1);if(z)return p[v(-248,-249,-232,-208)]&&p(v(-214,-249,-231,-241),i[v(-206,-254,-230,-247)]?.[L(-345,-365,-342)]()+v(-237,-231,-228,-246)+W(n,e,z,u)+L(-343,-332,-358)+c.__relativeFileName),j(n,r,e,u,c,f),o[L(-342,-315,-361)](i,i[L(-341,-338,-353)],i[L(-340,-355,-322)],i[L(-346,-357,-334)],i[v(-246,-216,-223,-205)],i.parameters,z,i[L(-338,-312,-313)])}}}else if(n[L(-337,-362,-351)](i)){if(!i[L(-351,-376,-373)]){const t=l(n,e,i),u=y(e,t)?.[v(-238,-239,-220,-193)](),z=u&&u.length?u[0]:e[L(-350,-352,-333)](i);if(z){const t=e[L(-349,-358,-326)](z),a=V(n,e,t,!(!u||!u[v(-235,-196,-219,-221)]));if(a)return p[L(-348,-361,-346)]&&p(L(-334,-317,-339),i[v(-225,-227,-230,-206)]?.[L(-345,-351,-351)]()+"():"+W(n,e,a,t)+L(-343,-344,-365)+c.__relativeFileName),j(n,r,e,t,c,f),o[v(-194,-208,-217,-232)](i,i.modifiers,i[L(-340,-316,-350)],i[v(-255,-243,-230,-244)],i[L(-332,-318,-308)],i[v(-220,-241,-223,-214)],i[v(-233,-237,-215,-195)],a,i[L(-338,-352,-321)])}}}else if(n[L(-330,-347,-334)](i)){if(!i[L(-351,-347,-344)]){const t=e[v(-218,-186,-213,-240)](i),u=(t??e[L(-328,-326,-310)](i))?.[v(-243,-243,-220,-198)]();if(u&&u.length){const z=u[0][v(-216,-228,-211,-195)](),a=V(n,e,z,!!t);if(a)return p[v(-221,-228,-232,-259)]&&p(v(-205,-204,-210,-189),L(-344,-359,-336)+W(n,e,a,z)+L(-343,-336,-345)+c.__relativeFileName),j(n,r,e,z,c,f),o[L(-325,-326,-322)](i,i[v(-228,-250,-225,-221)],i[L(-339,-365,-317)],i[L(-331,-355,-348)],a,i[L(-324,-339,-341)],i[v(-202,-194,-222,-206)])}}}else if(n.isFunctionExpression(i)&&!i[L(-351,-329,-371)]){const t=e[L(-329,-330,-352)](i),u=(t??e.getTypeAtLocation(i))?.[v(-195,-194,-220,-248)]();if(u&&u[L(-335,-313,-342)]){const z=u[0][v(-191,-202,-211,-222)](),a=V(n,e,z,!!t);if(a)return p[v(-206,-235,-232,-255)]&&p(v(-202,-226,-207,-229),"():"+W(n,e,a,z)+v(-223,-240,-227,-230)+c[v(-231,-195,-206,-226)]),j(n,r,e,z,c,f),o[v(-218,-211,-205,-186)](i,i[v(-218,-208,-225,-201)],i[v(-232,-224,-224,-223)],i[v(-255,-248,-230,-237)],i[v(-242,-220,-223,-235)],i[v(-223,-234,-215,-241)],a,i[L(-338,-347,-355)])}}function v(n,r,t,e){return U(t- -238,e)}function L(n,r,t,e){return U(n- -354,t)}return i};return r=>{function t(n,r,t,e){return U(e- -164,n)}c=r;const e=n[u(-752,-736,-739,-744)](r,z);function u(n,r,t,e){return U(n- -786,e)}return 0===f.size?e:o[u(-751,0,0,-764)](e,[...f[t(-128,0,0,-128)](),...e[t(-148,0,0,-127)]],e[t(-113,0,0,-126)],e[t(-101,0,0,-125)],e[u(-746,0,0,-758)],e[t(-150,0,0,-123)],e[t(-131,0,0,-122)])}}}),(n,r)=>({before(t){function e(n,r,t,e){return J(e-911,n)}const o=r[e(919,0,0,911)]()[e(921,0,0,912)](),{factory:u}=t;function i(r){function t(n,r,t,e){return J(t- -900,r)}return!!(r.flags&n[t(0,-893,-898)][t(0,-893,-897)])||(r[(e=-756,o=-751,J(e- -760,o))]()?r[t(0,-898,-895)].some(i):void 0);var e,o}function f(n){return i(n)||n[(r=-444,t=-445,J(t- -451,r))]();var r,t}const c=r=>{function e(n,r,t,e){return J(n-844,t)}function z(n,r,t,e){return J(t- -703,e)}if(n[e(851,0,841)](r)&&(r[e(852,0,857)][z(0,0,-694,-691)]===n.SyntaxKind.EqualsEqualsToken||r.operatorToken[z(0,0,-694,-697)]===n[e(854,0,851)][e(855,0,852)])){const n=o[z(0,0,-691,-692)](r[z(0,0,-690,-684)]),t=o[e(856,0,851)](r[z(0,0,-689,-679)]);if(i(n)&&f(t)||i(t)&&f(n))return u[e(859,0,849)](u[e(860,0,860)](z(0,0,-686,-681)),void 0,[r[z(0,0,-690,-690)],r[e(858,0,850)]])}return n[e(862,0,855)](r,c,t)};return r=>{return n[(t=591,e=594,J(t-572,e))](r,c);var t,e}}})];function F(n,r){const t=I();return F=function(r,e){let o=t[r-=0];if(void 0===F.zBwQhL){F.BJdaCH=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,F.zBwQhL=!0}const u=r+t[0],i=n[u];return i?o=i:(o=F.BJdaCH(o),n[u]=o),o},F(n,r)}function I(){const n=["z2v0q3vYCMvUDerPCMvJDg9YEq","C3LZ","y3jLyxrLu2vTyw50AwneAwfNBM9ZDgLJC0j1AwXKzxjqCM9NCMfT","AgfZ","C3rHCNrZv2L0Aa","z2v0","C3bSAxq","zw5KC1DPDgG","lNrZ","zMLSzuv4Axn0CW","C2v0","C2XPy2u","lNv0CY50CW","CMvHzenVBMzPz0zPBgu","CMvHzezPBgu","zxjYB3i","rMfPBgvKihrVihjLywqGDhnJB25MAwCUANnVBJO","y29UzMLN","CgfYC2vkC29Uq29UzMLNrMLSzunVBNrLBNq","B3b0Aw9UCW","u2nYAxb0vgfYz2v0","rvnozxH0","Cgf0Ahm","qc8Q","y3jLyxrLv2f0y2HdB21WAwXLCKHVC3q","y3jLyxrLuhjVz3jHBq","DgvZDa","z2v0uhjVz3jHBq","zw1PDa","yMLUza","yMvMB3jL","ywz0zxi","ChvZAa","ywz0zxjezwnSyxjHDgLVBNm","lM1HCa","ywz0zxjqCM9NCMfTq3jLyxrL","zMLSDgvY","BwfW","y3jLyxrLv2f0y2HqCM9NCMfT","rxjYB3i","y29Kzq","zMXHDhrLBKrPywDUB3n0AwnnzxnZywDLvgv4Da","BwvZC2fNzvrLEhq","z2v0tMv3tgLUzq","Aw5MBW","zM9YBwf0rgLHz25VC3rPyW","CMvZB2X2zu1VzhvSzu5HBwu","Bg9N"];return(I=function(){return n})()}exports.runBuild=function(){},exports.runDev=function({typescript:n,inputDir:r,tsconfig:t,rootFiles:e,compilerOptions:o,normalizeFileName:u,sourceMapCallback:i}){const f={getCanonicalFileName:n=>n,getCurrentDirectory:n.sys[B(-151,-161,-181)],getNewLine:()=>n[B(-160,-160,-162)].newLine},c=n[D(-995,-989)],z=new Map;function v(n){return!!z[(t=743,e=735,F(e-732,t))](n)||n[(o=534,u=510,F(u-506,o))](r);var t,e,o,u}function L(n,r){const t=z[i(-54,-45,-45)](n);if(t)return t;let e=n[i(-21,-57,-44)]("?",2)[0];const o=e[i(-66,-44,-43)](i(-44,-41,-42));function u(n,r,t,e){return F(n- -95,r)}function i(n,r,t,e){return F(t- -50,r)}if(!o){const t=e+i(0,-22,-42);if(r[i(0,-36,-49)][i(0,-22,-41)](t))return z[u(-85,-74)](n,t),e}if(r[u(-94,-103)][u(-86,-72)](e))return z[u(-85,-68)](n,e),e;if(o){const t=e[i(0,-38,-39)](0,-3)+u(-83,-104);if(r.sys[i(0,-19,-41)](t))return z[i(0,-20,-40)](n,t),t}}const a=n[D(-984,-1001)](t,n[D(-996,-983)][B(-149,-147,-164)]);a[B(-136,-146,-144)]&&(console[D(-982,-972)](D(-981,-966)),l(a[D(-982,-999)]));const x=a[B(-141,-144,-153)]?n[D(-979,-962)](a[B(-150,-144,-162)],n[B(-183,-160,-157)],"./"):void 0;function B(n,r,t,e){return F(r- -161,t)}const g={...x?.[D(-978,-990)],...o,baseUrl:r,emitUTS:!0,target:n[D(-977,-975)][D(-976,-953)]};!g[B(0,-139,-147)]&&(g[D(-975,-982)]={}),g.paths[D(-974,-972)]=[r+"/*"];const s=n[B(0,-137,-124)](e,g,{...n.sys,fileExists:r=>!!L(r,n),readFile(r,t){function e(n,r,t,e){return F(n- -800,r)}return n[e(-799,-821)][e(-786,-764)](L(r,n),t)}},c,l,(function(r){function t(n,r,t,e){return F(r-782,t)}console[t(0,826,810)](n[t(0,827,841)](r,f))})),C=s[D(-972,-989)],y=/\.(u)?vue(.ts)?/;function w(n){return y[(r=605,t=594,F(r-579,t))](n);var r,t}s[D(-972,-961)]=(r,t,e,o)=>{function f(n,r,t,e){return F(t- -351,r)}const c=C(r,t,e,o),{before:z,after:L,afterDeclarations:a}=K(n,E)({getProgram(){return c[(n=-2,r=17,F(n- -29,r))]();var n,r},isUTSFile:v,isVueFile:w,normalizeFileName:u}),x=c[(B=302,g=312,F(B-274,g))][f(0,-321,-322)](c);var B,g;return c[f(0,-326,-323)]=(n,r,t,o,u)=>{function f(n,r,t,e){return F(e- -543,t)}function v(n,r,t,e){return F(r- -647,n)}return!u&&(u={}),(u.before||(u[f(0,0,-513,-513)]=[])).push(...z),(u[f(0,0,-498,-512)]||(u.after=[]))[v(-635,-615)](...L),(u[v(-612,-614)]||(u[v(-628,-614)]=[])).push(...a),x(n,((n,t,o,u,f,z)=>{function v(n,r,t,e){return F(n- -183,r)}if(r=r||e?.writeFile||c.writeFile,!(i&&n[v(-176,-183)](v(-149,-154))&&i(n,t,((n,t)=>r(n,t,o,u,f,z)))))return r(n,t,o,u,f,z)}),t,o,u)},c};const M=s[B(0,-126,-133)];return s[D(-962,-954)]=n=>{function t(n,r,t,e){return F(r-887,n)}console.log(n.getSourceFiles()[t(944,923)]((n=>{return n.fileName[(t=812,e=830,F(t-808,e))](r);var t,e}))[t(913,924)]((n=>n.fileName))),M(n)},n[B(0,-123,-140)](s);function l(r){function t(n,r,t,e){return F(r- -716,t)}function e(n,r,t,e){return F(t- -461,r)}console[t(0,-701,-680)](t(0,-677,-653),r[t(0,-676,-669)],":",n[e(0,-424,-420)](r[e(0,-417,-419)],f[t(0,-673,-649)]()))}function D(n,r,t,e){return F(n- -997,r)}}; +"use strict";var n=require("debug");require("fs");var r=require("path");function t(){const n=["zw5KC1DPDgG","lNv0CW","lNrZ","CMvWBgfJzq","AxnjBxbVCNrezwnSyxjHDgLVBG","AxntDhjPBMDmAxrLCMfS","Bw9KDwXLu3bLy2LMAwvY","Dgv4Da","DxbKyxrLsw1WB3j0rgvJBgfYyxrPB24","Bw9KAwzPzxjZ","Aw1WB3j0q2XHDxnL","y3jLyxrLu3rYAw5NtgL0zxjHBa","yxnZzxj0q2XHDxnL","AxnuExbLt25SEq","DMLZAxrfywnOq2HPBgq","DMLZAxroB2rL"];return(t=function(){return n})()}function e(n,r){const o=t();return e=function(r,t){let u=o[r-=0];if(void 0===e.OwBNXY){e.TTFQiA=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,e.OwBNXY=!0}const i=r+o[0],f=n[i];return f?u=f:(u=e.TTFQiA(u),n[i]=u),u},e(n,r)}function o(n,r){var t=i();return o=function(r,e){var u=t[r-=0];if(void 0===o.vbiJxD){o.XSugzC=function(n){for(var r,t,e="",o="",u=0,i=0;t=n.charAt(i++);~t&&(r=u%4?64*r+t:t,u++%4)?e+=String.fromCharCode(255&r>>(-2*u&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var f=0,c=e.length;f<c;f++)o+="%"+("00"+e.charCodeAt(f).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,o.vbiJxD=!0}var i=r+t[0],f=n[i];return f?u=f:(u=o.XSugzC(u),n[i]=u),u},o(n,r)}function u(n){return n[(r=151,t=151,o(t-151,r))](/\\/g,"/");var r,t}function i(){var n=["CMvWBgfJzq"];return(i=function(){return n})()}function f(n,r){var t=v();return f=function(r,e){var o=t[r-=0];if(void 0===f.kjpXrq){f.ZQLzPc=function(n){for(var r,t,e="",o="",u=0,i=0;t=n.charAt(i++);~t&&(r=u%4?64*r+t:t,u++%4)?e+=String.fromCharCode(255&r>>(-2*u&6)):0)t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(t);for(var f=0,c=e.length;f<c;f++)o+="%"+("00"+e.charCodeAt(f).toString(16)).slice(-2);return decodeURIComponent(o)},n=arguments,f.kjpXrq=!0}var u=r+t[0],i=n[u];return i?o=i:(o=f.ZQLzPc(o),n[u]=o),o},f(n,r)}var c;function v(){var n=["v2fYBMLUzW","rxjYB3i","u3vNz2vZDgLVBG","twvZC2fNzq"];return(v=function(){return n})()}function z(n,r,t,e){return L(t-925,n)}function L(n,r){const t=g();return L=function(r,e){let o=t[r-=0];if(void 0===L.hMGVrr){L.HxOYQs=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,L.hMGVrr=!0}const u=r+t[0],i=n[u];return i?o=i:(o=L.HxOYQs(o),n[u]=o),o},L(n,r)}function s(n,r,t,e,o,u,i){return{code:n,category:r,key:t,message:e,reportsUnnecessary:o,elidedInCompatabilityPyramid:u,reportsDeprecated:i}}function a(n,r,t,e){return L(n-345,t)}function g(){const n=["rxjYB3i","vhLWzv9SAxrLCMfSx3bYB3bLCNr5x211C3rFAgf2zv9Hx3r5CgvFyw5UB3rHDgLVBL8XmdaWmda","vhLWzsbSAxrLCMfSihbYB3bLCNr5ig11C3qGAgf2zsbHihr5CguGyw5UB3rHDgLVBI4","t25SEv9VBMvFzxH0zw5KC19OzxjPDgfNzv9JBgf1C2vFAxnFywXSB3DLzf9MB3jFAw50zxjMywnLxZeWmdaWmq","t25SEsbVBMuGzxH0zw5KCYbOzxjPDgfNzsbJBgf1C2uGAxmGywXSB3DLzcbMB3iGAw50zxjMywnL","vMfYAwfIBgvFzgvJBgfYyxrPB25FBxvZDf9OyxzLx2LUAxrPywXPEMvYxZeWmdaWmG","tMvZDgvKx3r5CgvFBgL0zxjHBf9PC19UB3rFC3vWCg9YDgvKxZeWmdaWmW","tMvZDgvKihr5CguGBgL0zxjHBcbPCYbUB3qGC3vWCg9YDgvKlG","sw52ywXPzf9Nzw5LCMLJx3r5CgvFD2HPy2HFy2fUx25VDf9Izv9JB25ZDhj1y3rLzf8XmdaWmdq","sw52ywXPzcbNzw5LCMLJihr5CguGD2HPy2GGy2fUig5VDcbIzsbJB25ZDhj1y3rLzc4","ydXZy3jPChqGC2v0Dxa+ycbJyw5UB3qGy29UDgfPBIbfuYbTB2r1BguGzxHWB3j0CY4"];return(g=function(){return n})()}function x(n,r){if(r[e(418,420,413,412)]())return r[e(402,416,423,413)][t(851,850,848,865)]((r=>x(n,r)));if(r[e(402,418,415,415)]&n[t(853,863,867,839)].Object)return!!(r.objectFlags&n[t(854,857,862,864)].UTSType);function t(n,r,t,e){return l(n-849,e)}function e(n,r,t,e){return l(e-412,t)}return!!(r[t(852,0,0,856)]&n[e(0,0,405,416)][t(855,0,0,848)])}function B(n,r){return n[(t=83,e=91,l(e-84,t))](r)??n.getTypeAtLocation(r);var t,e}function C(){const n=["AxnvBMLVBG","DhLWzxm","zxzLCNK","zMXHz3m","vhLWzuzSywDZ","t2jQzwn0rMXHz3m","vvrtvhLWzq","z2v0q29UDgv4DhvHBfr5Cgu","B2jQzwn0rMXHz3m","qw5VBNLTB3vZ","ywXPyxntEw1IB2W","C3LTyM9S","u3LTyM9SrMXHz3m","vhLWzufSAwfZ","zgvJBgfYyxrPB25Z","AxnuExbLqwXPyxnezwnSyxjHDgLVBG","AxnuExbLtgL0zxjHBe5Vzgu","DhLWzq","BwvTyMvYCW","AxnqCM9Wzxj0EvnPz25HDhvYzq","AxndywXSu2LNBMf0DxjLrgvJBgfYyxrPB24","z2v0t3jPz2LUywXoB2rL","CgfYzw50","AxnpyMPLy3rmAxrLCMfSrxHWCMvZC2LVBG","AxnjzgvUDgLMAwvY","BMfTzq","z2v0uhjVCgvYDhK","Dgv4Da"];return(C=function(){return n})()}function y(n,r){return r?n.getNonNullableType(r):r}function w(n,r){function t(n,r,t,e){return l(e-872,r)}function e(n,r,t,e){return l(n- -477,t)}return r[t(0,865,0,875)]&n[t(0,872,0,876)].Object&&r[e(-469,0,-459)]&n.ObjectFlags[t(0,888,0,881)]&&!r[e(-467,0,-463)]}function l(n,r){const t=C();return l=function(r,e){let o=t[r-=0];if(void 0===l.WPmwhi){l.pnVBlo=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,l.WPmwhi=!0}const u=r+t[0],i=n[u];return i?o=i:(o=l.pnVBlo(o),n[u]=o),o},l(n,r)}function D(n,r,t){const e=n[u(814,825)](t)[o(656,639,650)];function o(n,r,t,e){return l(t-628,n)}function u(n,r,t,e){return l(n-793,r)}if(e&&n[u(816,828)](e)&&n[o(656,0,652)](t[u(818,817)])){const n=r[o(646,0,635)](e);if(n){const e=n[u(819,805)](t[u(818,818)][o(667,0,655)]);if(e)return r.getTypeOfSymbol(e)}}}function M(){const n=["DxrZoNrYyw5ZzM9YBwvYoMf1Dg9jBxbVCNq","zgvJBgfYyxrPB25Z","z2v0u291CMnLrMLSzq","AxnezwnSyxjHDgLVBKzPBgu","zMLSzu5HBwu","AxnnB2r1BgvezwnSyxjHDgLVBG","C3rHDgvTzw50CW","zM9YrwfJAa","AxnjBxbVCNrezwnSyxjHDgLVBG","Bw9KDwXLu3bLy2LMAwvY","CMvZB2X2zuv4DgvYBMfStw9KDwXLtMfTzq","AxntB3vYy2vgAwXL","Aw1WB3j0q2XHDxnL","Axnoyw1LzeLTCg9YDhm","zwXLBwvUDhm","z2v0","BMfTzq","Dgv4Da","x19PBxbVCNrZ","z2v0tMfTzq","AgfZ","z2v0vw5PCxvLtMfTzq","x19YB290rgLY","C3rHCNrZv2L0Aa","BM9YBwfSAxPLrMLSzu5HBwu","CMvSyxrPDMu","zgLYBMfTzq","y3jLyxrLsw1WB3j0rgvJBgfYyxrPB24","y3jLyxrLsw1WB3j0q2XHDxnL","y3jLyxrLtMfTzwrjBxbVCNrZ","y3jLyxrLswrLBNrPzMLLCG","Aw1WB3j0ihSG","ih0GzNjVBsaN","C2v0"];return(M=function(){return n})()}!function(n){function r(n,r,t,e){return f(r-689,t)}function t(n,r,t,e){return f(t- -331,n)}n[n[r(687,689,691)]=0]=t(-333,-333,-331),n[n[t(-332,-328,-330)]=1]="Error",n[n[t(-330,-329,-329)]=2]=r(0,691,693),n[n[t(-330,0,-328)]=3]=t(-330,0,-328)}(c||(c={})),s(1e5,c[z(926,0,925)],z(926,0,926),z(927,0,927)),s(100001,c.Error,z(927,0,928),z(930,0,929)),s(100002,c[a(345,0,340)],z(936,0,930),"Variable declaration must have initializer."),s(100003,c[a(345,0,339)],z(933,0,931),a(352,0,354)),s(100004,c[a(345,0,344)],a(353,0,354),a(354,0,355)),s(100005,c[z(920,0,925)],"script_setup_cannot_contain_ES_module_exports_100005",a(355,0,349));const h=n(A(-662- -662,-679));function A(n,r){const t=M();return A=function(r,e){let o=t[r-=0];if(void 0===A.vBJTgs){A.bKKVtK=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,A.vBJTgs=!0}const u=r+t[0],i=n[u];return i?o=i:(o=A.bKKVtK(o),n[u]=o),o},A(n,r)}function d(n,t,e,o,i,f){let{aliasSymbol:c}=y(e,o);function v(n,r,t,e){return A(n-189,e)}function z(n,r,t,e){return A(r- -493,t)}if(!c)return;const L=function(n,r,t){function e(n,r,t,e){return A(r- -998,n)}function o(n,r,t,e){return A(n-629,t)}if(r[o(630,0,640)])for(const i of r[o(630,0,623)]){const r=i[o(631,0,628)]();if(r[e(-984,-995)])return;if(r===t||r[e(-988,-994)]===t[o(633,0,618)])return;if(n[e(-998,-993)](i))return;return u(r.fileName)}}(n,c,i);if(L){const{factory:o}=n,s=c[v(208,0,0,200)]();!i.__imports&&function(n,r,t){function e(n,r,t,e){return A(r-985,n)}const o=new Map;var i,f;t[e(993,991)][e(1004,992)]((t=>{if(!n[v(-85,-78)](t))return;function e(n,r,t,e){return A(e-63,t)}const i=t[e(0,0,57,72)],f=r[v(-83,-77)](i);if(!f)return;const{valueDeclaration:c}=f;function v(n,r,t,e){return A(n- -93,r)}if(!c)return;if(!n[v(-82,-90)](c))return;const z=u(c[v(-89,-73)]);!o.has(z)&&o.set(z,{});const L=t[e(0,0,67,75)];if(!L)return;const{name:s,namedBindings:a}=L;a&&n[v(-80,-84)](a)&&a[v(-79,-89)].forEach((n=>{function r(n,r,t,e){return A(n- -789,t)}function t(n,r,t,e){return A(e- -211,r)}o[t(0,-207,0,-196)](u(c[r(-785,0,-797)]))[n[t(0,-210,0,-195)][t(0,-202,0,-194)]]=n.propertyName?.[r(-772,0,-765)]??n[t(0,-194,0,-195)][r(-772,0,-771)]}))})),t[(i=290,f=278,A(i-272,f))]=o}(n,e,i);const a=i[z(0,-475,-462)];if(a[z(0,-473,-474)](L)){const n=a[z(0,-478,-481)](L);if(n[s])return n[s]}const g=n[z(0,-472,-468)](s,i);let x=L;const B=i[z(0,-471,-460)];if(B&&L[v(212,0,0,224)](B)){const n=u(i.fileName);n[v(212,0,0,203)](B)&&(x=t[v(213,0,0,199)](r[z(0,-468,-459)](r[v(215,0,0,229)](n),L)),x=x[z(0,-470,-487)](".")?x:"./"+x)}const C=o[v(216,0,0,200)](void 0,o[z(0,-465,-455)](!1,void 0,o[z(0,-464,-449)]([o.createImportSpecifier(!1,g!==s?o[z(0,-463,-448)](g):void 0,o.createIdentifier(s))])),o.createStringLiteral(x),void 0);h.enabled&&h(z(0,-462,-468)+s+" as "+g+z(0,-461,-456)+x+"'","at",i.__relativeFileName),f[v(222,0,0,216)](c,C)}}const j=n(S(-762- -762,-763));function m(){const n=["DxrZoNrYyw5ZzM9YBwvYoMfYz3vTzw50CW","z2v0uhjVz3jHBq","DMLZAxrfywnOq2HPBgq","AxnnzxrOB2rezwnSyxjHDgLVBG","BgvUz3rO","CgfYyw1LDgvYCW","BMfTzq","z2v0vgv4Da","ksbHDca","x19YzwXHDgL2zuzPBgvoyw1L","DxbKyxrLtwv0Ag9KrgvJBgfYyxrPB24","Bw9KAwzPzxjZ","CxvLC3rPB25uB2TLBG","DhLWzq","AxnbCNjVD0z1BMn0Aw9U","z2v0q2fSBfnPz25HDhvYzxm","yxjYB3CGzNvUy3rPB246","DxbKyxrLqxjYB3DgDw5JDgLVBG","DhLWzvbHCMfTzxrLCNm","zxf1ywXZr3jLyxrLCLrOyw5uB2TLBG","yM9KEq","AxngDw5JDgLVBKv4ChjLC3nPB24","zw5HyMXLza","zNvUy3rPB24GzxHWCMvZC2LVBJO","yxn0zxjPC2TuB2TLBG","DxbKyxrLu291CMnLrMLSzq","DMfSDwvZ","C3rHDgvTzw50CW","AxnezwnSyxjHDgLVBKzPBgu","CMvMzxjLBMnLzezPBgvZ","DhLWzvjLzMvYzw5JzurPCMvJDgL2zxm","AgfZtM9ezwzHDwX0tgLI","BgLIuMvMzxjLBMnLrgLYzwn0AxzLCW","BwfW","AxnjzgvUDgLMAwvY","Dgv4Da","AM9PBG","ChvZAa","y3jLyxrLugfYyw1LDgvYrgvJBgfYyxrPB24","y3jLyxrLswrLBNrPzMLLCG","y3jLyxrLtM9KzufYCMf5"];return(m=function(){return n})()}function S(n,r){const t=m();return S=function(r,e){let o=t[r-=0];if(void 0===S.cgbYaS){S.MuZZpV=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,S.cgbYaS=!0}const u=r+t[0],i=n[u];return i?o=i:(o=S.MuZZpV(o),n[u]=o),o},S(n,r)}function P(n,r){function t(n,r,t,e){return S(t-889,r)}function e(n,r,t,e){return S(n- -709,t)}return r[t(0,917,922)]((r=>n[e(-675,0,-665)](r[e(-703,0,-702)])?r.name[e(-674,0,-674)]:r[t(0,907,895)]))[e(-673,0,-683)](", ")}function N(n,r,t){let e;const o=t.length;for(const n of r){if(n[i(62,59,79)][u(854,835)]===o)return;n[i(62,60,79)].length>t[u(828,835)]&&(!e||n[i(78,65,79)].length<e.parameters[i(87,64,78)])&&(e=n)}if(!e)return;function u(n,r,t,e){return S(r-831,n)}function i(n,r,t,e){return S(t-74,n)}const f=e[i(98,0,79)][u(833,835)]-t[u(837,835)],c=[];for(let r=0;r<f;r++)c[i(115,0,111)](n[i(95,0,112)](void 0,void 0,n[u(883,870)]("_"+e.parameters[r+o][u(828,837)]),void 0,void 0,void 0));return n[u(855,871)]([...t,...c])}function Y(n,r){const t=q();return Y=function(r,e){let o=t[r-=0];if(void 0===Y.WwcGgO){Y.OLjvLS=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,Y.WwcGgO=!0}const u=r+t[0],i=n[u];return i?o=i:(o=Y.OLjvLS(o),n[u]=o),o},Y(n,r)}function q(){const n=["AxntB3vYy2vgAwXL","x19YzwXHDgL2zuzPBgvoyw1L","z2v0q29TCgLSzxjpChrPB25Z","CM9VDerPCG","AxnbyNnVBhv0zq","zMLSzu5HBwu","x19YB290rgLY","C3rHCNrZv2L0Aa","CMvSyxrPDMu","t2jQzwn0rMXHz3m","vvrtvhLWzq","vhLWzuzSywDZ","ChjPBNroB2rL","y3jLyxrLuhjPBNrLCG","vw5ZCgvJAwzPzwq","ywrKqMLUzerPywDUB3n0Awm","ChvZAa","ywrKqMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJ","yMLUzfn1z2DLC3rPB25eAwfNBM9ZDgLJCW"];return(q=function(){return n})()}function H(){const n=["z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","DMLZAxrfywnOq2HPBgq","z2v0t3jPz2LUywXoB2rL","CgfYzw50","AxnbC0v4ChjLC3nPB24","AxnwyxjPywjSzurLy2XHCMf0Aw9U","DhLWzq","y3jLyxrLqxnfEhbYzxnZAw9U","y3jLyxrLvhLWzvjLzMvYzw5Jzu5Vzgu","ywXPyxntEw1IB2W","BMfTzq"];return(H=function(){return n})()}function p(n,r){const t=H();return p=function(r,e){let o=t[r-=0];if(void 0===p.SaMKwm){p.nfpEMX=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,p.SaMKwm=!0}const u=r+t[0],i=n[u];return i?o=i:(o=p.nfpEMX(o),n[u]=o),o},p(n,r)}const Z=n(U(-797- -797,-794));function b(){const n=["DxrZoNrYyw5ZzM9YBwvYoNjLDhvYBLr5Cgu","z2v0vhLWzunOzwnRzxi","DMLZAxrfywnOq2HPBgq","DhLWzq","z2v0u2LNBMf0DxjLrNjVBurLy2XHCMf0Aw9U","z2v0uMv0DxjUvhLWzu9Mu2LNBMf0DxjL","zw5HyMXLza","zNvUy3rPB246","BMfTzq","z2v0vgv4Da","kcK6","igf0ia","DxbKyxrLrNvUy3rPB25ezwnSyxjHDgLVBG","Bw9KAwzPzxjZ","yxn0zxjPC2TuB2TLBG","DhLWzvbHCMfTzxrLCNm","yM9KEq","AxnnzxrOB2rezwnSyxjHDgLVBG","z2v0q2fSBfnPz25HDhvYzxm","BgvUz3rO","Bwv0Ag9KoG","DxbKyxrLtwv0Ag9KrgvJBgfYyxrPB24","CxvLC3rPB25uB2TLBG","CgfYyw1LDgvYCW","AxnbCNjVD0z1BMn0Aw9U","z2v0q29UDgv4DhvHBfr5Cgu","z2v0vhLWzuf0tg9JyxrPB24","z2v0uMv0DxjUvhLWzq","yxjYB3CGzNvUy3rPB246","DxbKyxrLqxjYB3DgDw5JDgLVBG","zxf1ywXZr3jLyxrLCLrOyw5uB2TLBG","zNvUy3rPB24GzxHWCMvZC2LVBJO","x19YzwXHDgL2zuzPBgvoyw1L","DxbKyxrLrNvUy3rPB25fEhbYzxnZAw9U","DMLZAxroB2rL","DxbKyxrLu291CMnLrMLSzq","DMfSDwvZ","C3rHDgvTzw50CW","AxnezwnSyxjHDgLVBKzPBgu","CMvMzxjLBMnLzezPBgvZ","DhLWzvjLzMvYzw5JzurPCMvJDgL2zxm","AgfZtM9ezwzHDwX0tgLI","BgLIuMvMzxjLBMnLrgLYzwn0AxzLCW","AxnuExbLuMvMzxjLBMnLtM9Kzq","AxnjzgvUDgLMAwvY","DhLWzu5HBwu","AxnvBMLVBG","zMfJDg9YEq","y3jLyxrLvw5PB25uExbLtM9Kzq","y3jLyxrLvhLWzvjLzMvYzw5Jzu5Vzgu","y3jLyxrLtgL0zxjHBfr5CgvoB2rL","y3jLyxrLtNvSBa","zMXHz3m","vM9Pza","vvrtsLnptK9IAMvJDa"];return(b=function(){return n})()}function U(n,r){const t=b();return U=function(r,e){let o=t[r-=0];if(void 0===U.kUXPUE){U.CXqTjn=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,U.kUXPUE=!0}const u=r+t[0],i=n[u];return i?o=i:(o=U.CXqTjn(o),n[u]=o),o},U(n,r)}function W(n,r,t,e){if(n[i(45,37,32)](t)&&n[i(53,38,15)](t[(o=-749,u=-727,U(o- -794,u))]))return t.typeName.text;var o,u;function i(n,r,t,e){return U(r- -6,t)}return r.typeToString(e)}function X(n,r,t,e){function o(n,r,t,e){return U(n- -570,r)}function u(n,r,t,e){return U(n- -86,t)}const i=!e;if(t[u(-40,0,-24)]()&&w(n,y(r,t))){if(!i)return;return n[o(-523,-547)][o(-522,-533)]([n[o(-523,-501)][u(-37,0,-65)]("UTSJSONObject"),n[u(-39,0,-17)][u(-36,0,-29)](n[u(-39,0,-33)][o(-519,-501)]())])}if(!(t[o(-518,-520)]&n.TypeFlags[o(-517,-544)]))return w(n,t)?i?n[o(-523,-509)][o(-521,-509)](o(-516,-528)):void 0:x(n,t)?r.typeToTypeNode(t,void 0,void 0):void 0}function T(n,r){const t=K();return T=function(r,e){let o=t[r-=0];if(void 0===T.prjUMf){T.vMfUPs=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,T.prjUMf=!0}const u=r+t[0],i=n[u];return i?o=i:(o=T.vMfUPs(o),n[u]=o),o},T(n,r)}function V(n,r,t,e=!1,o=!1){return u=>{const i=t(u);return t=>{function f(n,r,t,e){return T(r- -20,e)}if(!u.fileName&&n[f(0,-20,0,-26)](t)&&(u.fileName=t.fileName),r.isUTSFile(u[c(-724,-719,-713)])||u[f(0,-19,0,-21)]&&u.fileName.endsWith(c(-713,-718,-712))||o&&u[f(0,-19,0,-24)].endsWith(f(0,-17,0,-17))){n[c(-715,-720,-717)](t)&&!t[c(-723,-716,-716)]&&(t[f(0,-16,0,-11)]=!0,r[f(0,-15,0,-8)](u.fileName)&&(t[c(-720,-715,-718)]=!0));const o=i(t);return o!==t&&e&&n.setParentRecursive(o,!0),o}function c(n,r,t,e){return T(r- -720,t)}return t}}}function K(){const n=["AxntB3vYy2vgAwXL","zMLSzu5HBwu","lMPZB24UDhm","lMqUDhm","AxnvvfngAwXL","AxnwDwvgAwXL","vhLWzufSAwfZrgvJBgfYyxrPB24","ChvZAa","u291CMnLrMLSzq","zM9YrwfJAa","zNvUy3rPB24","CgfYC2vY","yMvMB3jL","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm"];return(K=function(){return n})()}function G(n,r){return t=>{const e={},o=[],u=[],i=[];return r[(f=-428,c=-434,T(f- -437,c))]((r=>{const f=r(n,t);function c(n,r,t,e){return T(t-513,e)}function v(n,r,t,e){return T(n-428,t)}typeof f===c(0,0,523,518)?o[v(435,0,442)](V(n,t,f)):(f[c(0,0,524,523)]&&function(n,r,t,e){function o(n,r,t,e){return T(n-426,e)}function u(n,r,t,e){return T(t- -561,e)}e[o(432,0,0,426)]&&(t.TypeAliasDeclaration||(t[o(432,0,0,425)]=[]))[u(0,0,-554,-547)](V(n,r,e.TypeAliasDeclaration,!0,!0)),e[o(434,0,0,429)]&&(t[u(0,0,-553,-547)]||(t[o(434,0,0,442)]=[]))[u(0,0,-554,-556)](V(n,r,e[o(434,0,0,429)],!0))}(n,t,e,f[c(0,0,524,519)]),f[v(440,0,437)]&&o.push(V(n,t,f[c(0,0,525,527)])),f[c(0,0,526,528)]&&u[c(0,0,520,524)](V(n,t,f[c(0,0,526,534)])),f[v(442,0,447)]&&i[c(0,0,520,517)](V(n,t,f[c(0,0,527,532)])))})),{parser:e,before:o,after:u,afterDeclarations:i};var f,c}}function F(){const n=["z2v0uhjVz3jHBq","z2v0vhLWzunOzwnRzxi","vhLWzuzSywDZ","tNvTyMvY","AxnvBMLVBG","DhLWzxm","AxnoDw1IzxjmAxrLCMfS","AxncAw5HCNLfEhbYzxnZAw9U","B3bLCMf0B3juB2TLBG","A2LUza","u3LUDgf4s2LUza","rxf1ywXZrxf1ywXZrxf1ywXZvg9Rzw4","z2v0vhLWzuf0tg9JyxrPB24","BgvMDa","CMLNAhq","y3jLyxrLq2fSBev4ChjLC3nPB24","y3jLyxrLswrLBNrPzMLLCG","BNvTyMvYrxf1ywXZ","DMLZAxrfywnOq2HPBgq","DMLZAxroB2rL"];return(F=function(){return n})()}function O(n,r){const t=F();return O=function(r,e){let o=t[r-=0];if(void 0===O.kYpVVo){O.kkWMDX=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,O.kYpVVo=!0}const u=r+t[0],i=n[u];return i?o=i:(o=O.kkWMDX(o),n[u]=o),o},O(n,r)}var E,J=[(n,t)=>{function e(t,e){if(n[o(955,950,959)](e)){if(!e[i(901,897,904)]){const n=t[i(904,898,903)]();if(n[o(952,953,959)]&&r[o(951,954,947)](n[o(944,953,951)])){const t=u(n.rootDir),f=u(e[i(895,901,901)]);e[o(959,956,954)]=t,f[o(961,957,956)](t)&&(e.__relativeFileName=u(r[i(901,904,900)](t,f)))}!e.__relativeFileName&&(e[i(905,897,892)]=r.basename(e[i(902,901,898)]))}if(!n[i(896,905,911)][i(902,906,899)]){const{Class:r,Interface:t,Reference:e,Anonymous:o,ArrayLiteral:u}=n[i(901,905,898)];n.ObjectFlags[i(898,906,904)]=r|t|e|o|u}if(!n[o(969,961,966)][i(913,906,908)]){const{Any:r,String:t,Number:e,Boolean:u,Enum:i,StringLiteral:f,NumberLiteral:c,BooleanLiteral:v,EnumLiteral:z,Void:L,Null:s,Object:a,Union:g,TemplateLiteral:x}=n[o(963,961,962)];n[o(952,961,959)].UTSType=r|t|e|u|i|f|c|v|z|L|s|a|g|x}if(!t[o(963,962,970)]){const r=n[i(903,909,911)]();t[o(969,962,964)]=(t,e)=>{return r[(i=-626,f=-622,Y(f- -634,i))](n.EmitHint[(o=-596,u=-591,Y(u- -605,o))],t,e);var o,u,i,f}}!t[i(913,911,902)]&&(t[o(968,965,964)]=n=>{var r,t;e.bindDiagnostics[(r=285,t=292,Y(r-269,t))](n)},t[i(915,913,908)]=n=>{function r(n,r,t,e){return Y(r-401,t)}var t,o;!e[(t=-278,o=-276,Y(o- -294,t))]&&(e.bindSuggestionDiagnostics=[]),e[r(0,419,421)][r(0,417,425)](n)})}function o(n,r,t,e){return Y(r-950,t)}function i(n,r,t,e){return Y(r-896,t)}return e}return{before:n=>r=>e(n,r),after:n=>r=>e(n,r),afterDeclarations:n=>r=>e(n,r)}},n=>{function r(r){const{factory:t}=r;function o(n){function r(n,r,t,o){return e(n-524,o)}function t(n,r,t,o){return e(n-769,o)}if(n[t(769,0,0,773)](t(770,0,0,769))||n[r(524,0,0,528)](r(526,0,0,533)))return n[r(527,0,0,528)](/.u?ts$/,"")}function u(i){function f(n,r,t,o){return e(r-17,t)}function c(n,r,t,o){return e(o-389,r)}if(n[f(0,21,29)](i)&&i.moduleSpecifier&&n[c(0,401,0,394)](i[f(0,23,31)])){const n=o(i[f(0,23,29)][c(0,400,0,396)]);if(n)return t[f(0,25,21)](i,i[f(0,26,28)],i[f(0,27,27)],t[f(0,28,23)](n),i[f(0,29,27)])}else if(n.isExportDeclaration(i)&&i[c(0,391,0,395)]&&n[c(0,397,0,394)](i[f(0,23,20)])){const n=o(i.moduleSpecifier[c(0,401,0,396)]);if(n)return t.updateExportDeclaration(i,i[c(0,391,0,398)],i[f(0,30,35)],i.exportClause,t[f(0,28,27)](n),i[c(0,409,0,401)])}return n[c(0,409,0,403)](i,u,r)}return r=>{return n[(t=37,o=45,e(o-30,t))](r,u);var t,o}}return{before:r,afterDeclarations:r}},(n,r)=>({before(t){const e=r[(i=-82,f=-87,S(i- -83,f))]().getTypeChecker(),{factory:o}=t,u=new Map;var i,f;let c;const v=r=>{const u=n[f(470,489,458,472)](r,v,t);function i(n,r,t,e){return S(t-613,e)}function f(n,r,t,e){return S(e-470,t)}if(n[i(0,0,616,608)](u)){const r=D(n,e,u);if(r){const t=y(e,r).getCallSignatures();if(t&&t[f(0,0,454,474)]){const r=N(o,t,u[i(0,0,618,609)]);if(r)return j.enabled&&j("method:",u[i(0,0,619,632)]?.[f(0,0,486,477)]()+"("+P(n,r)+i(0,0,621,630)+c[i(0,0,622,609)]),o[i(0,0,623,621)](u,u[i(0,0,624,613)],u.asteriskToken,u[f(0,0,460,476)],u[f(0,0,478,482)],u.typeParameters,r,u[f(0,0,495,483)],u.body)}}}else if(n[f(0,0,489,484)](u)){const r=y(e,B(e,u))?.[i(0,0,628,614)]();if(r&&r.length){const t=N(o,r,u[i(0,0,618,599)]);if(t)return j.enabled&&j(i(0,0,629,623),"("+P(n,t)+i(0,0,621,633)+c[f(0,0,469,479)]),o[f(0,0,489,487)](u,u.modifiers,u[f(0,0,496,488)],t,u[i(0,0,626,626)],u[i(0,0,632,643)],u[f(0,0,505,490)])}}else if(n[i(0,0,634,632)](u)){const r=y(e,B(e,u))?.[i(0,0,628,644)]();if(r&&r[i(0,0,617,638)]){const t=N(o,r,u[i(0,0,618,605)]);if(t)return j[i(0,0,635,626)]&&j(i(0,0,636,641),"("+P(n,t)+f(0,0,459,478)+c[i(0,0,622,614)]),o.updateFunctionExpression(u,u[i(0,0,624,636)],u[i(0,0,637,648)],u[i(0,0,619,639)],u[f(0,0,491,488)],t,u[f(0,0,475,483)],u.body)}}return u};return r=>{function t(n,r,t,e){return S(t- -32,e)}c=r;const e=n.visitNode(r,v);function i(n,r,t,e){return S(e-996,n)}return 0===u.size?e:o[t(0,0,-7,2)](e,[...u[i(1037,0,0,1022)](),...e[i(1039,0,0,1023)]],e[t(0,0,-4,8)],e[i(1031,0,0,1025)],e[i(1028,0,0,1026)],e[i(1041,0,0,1027)],e[i(1010,0,0,1028)])}}}),(n,r)=>({before(t){const e=r[(c=-131,v=-127,p(v- -127,c))]()[(i=754,f=756,p(i-753,f))](),{factory:o}=t,u=r=>{function i(n,r,t,e){return p(e- -224,t)}const f=n[c(-375,-378,-374)](r,u,t);function c(n,r,t,e){return p(t- -376,r)}if(n.isObjectLiteralExpression(f)){const r=n[c(0,-370,-373)](f)[i(0,0,-222,-220)];if(r){if(n[c(0,-372,-371)](r))return f;if(n[i(0,0,-218,-218)](r)&&r[i(0,0,-211,-217)])return f}const t=function(n,r,t){function e(n,r,t,e){return l(n- -391,r)}function o(n,r,t,e){return l(e-101,r)}if(t&&(t=y(r,t))[o(0,118,0,112)]&&t[e(-381,-374)]&&t[e(-381,-378)][e(-388,-392)]&n[o(0,124,0,113)][o(0,122,0,114)]&&1===t[o(0,100,0,111)][e(-377,-363)]?.length){const r=t[o(0,113,0,111)][e(-377,-386)][0];if(n[e(-376,-380)](r)&&n[e(-375,-363)](r[e(-374,-373)])&&r[e(-374,-364)][o(0,105,0,119)][e(-389,-386)]((r=>n[o(0,122,0,120)](r)||n[e(-371,-372)](r))))return t}}(n,e,B(e,f));if(t)return o[c(0,-369,-368)](f,o[c(0,-363,-367)](t[c(0,-363,-366)][i(0,0,-207,-213)]))}return f};var i,f,c,v;return r=>n.visitNode(r,u)}}),(n,r)=>({before(t){const e=r.getProgram()[(u=105,i=98,U(i-97,u))](),{factory:o}=t;var u,i;const f=new Map;let c;const v=u=>{const i=n[L(-352,-355,-374)](u,v,t);if(n.isFunctionDeclaration(i)){if(!i[L(-351,-341,-339)]){const t=e[L(-350,-355,-324)](i);if(t){const u=e[L(-349,-344,-346)](t),v=X(n,e,u,!1);if(v)return Z[z(-248,-249,-232,-208)]&&Z(z(-214,-249,-231,-241),i[z(-206,-254,-230,-247)]?.[L(-345,-365,-342)]()+z(-237,-231,-228,-246)+W(n,e,v,u)+L(-343,-332,-358)+c.__relativeFileName),d(n,r,e,u,c,f),o[L(-342,-315,-361)](i,i[L(-341,-338,-353)],i[L(-340,-355,-322)],i[L(-346,-357,-334)],i[z(-246,-216,-223,-205)],i.parameters,v,i[L(-338,-312,-313)])}}}else if(n[L(-337,-362,-351)](i)){if(!i[L(-351,-376,-373)]){const t=D(n,e,i),u=y(e,t)?.[z(-238,-239,-220,-193)](),v=u&&u.length?u[0]:e[L(-350,-352,-333)](i);if(v){const t=e[L(-349,-358,-326)](v),s=X(n,e,t,!(!u||!u[z(-235,-196,-219,-221)]));if(s)return Z[L(-348,-361,-346)]&&Z(L(-334,-317,-339),i[z(-225,-227,-230,-206)]?.[L(-345,-351,-351)]()+"():"+W(n,e,s,t)+L(-343,-344,-365)+c.__relativeFileName),d(n,r,e,t,c,f),o[z(-194,-208,-217,-232)](i,i.modifiers,i[L(-340,-316,-350)],i[z(-255,-243,-230,-244)],i[L(-332,-318,-308)],i[z(-220,-241,-223,-214)],i[z(-233,-237,-215,-195)],s,i[L(-338,-352,-321)])}}}else if(n[L(-330,-347,-334)](i)){if(!i[L(-351,-347,-344)]){const t=e[z(-218,-186,-213,-240)](i),u=(t??e[L(-328,-326,-310)](i))?.[z(-243,-243,-220,-198)]();if(u&&u.length){const v=u[0][z(-216,-228,-211,-195)](),s=X(n,e,v,!!t);if(s)return Z[z(-221,-228,-232,-259)]&&Z(z(-205,-204,-210,-189),L(-344,-359,-336)+W(n,e,s,v)+L(-343,-336,-345)+c.__relativeFileName),d(n,r,e,v,c,f),o[L(-325,-326,-322)](i,i[z(-228,-250,-225,-221)],i[L(-339,-365,-317)],i[L(-331,-355,-348)],s,i[L(-324,-339,-341)],i[z(-202,-194,-222,-206)])}}}else if(n.isFunctionExpression(i)&&!i[L(-351,-329,-371)]){const t=e[L(-329,-330,-352)](i),u=(t??e.getTypeAtLocation(i))?.[z(-195,-194,-220,-248)]();if(u&&u[L(-335,-313,-342)]){const v=u[0][z(-191,-202,-211,-222)](),s=X(n,e,v,!!t);if(s)return Z[z(-206,-235,-232,-255)]&&Z(z(-202,-226,-207,-229),"():"+W(n,e,s,v)+z(-223,-240,-227,-230)+c[z(-231,-195,-206,-226)]),d(n,r,e,v,c,f),o[z(-218,-211,-205,-186)](i,i[z(-218,-208,-225,-201)],i[z(-232,-224,-224,-223)],i[z(-255,-248,-230,-237)],i[z(-242,-220,-223,-235)],i[z(-223,-234,-215,-241)],s,i[L(-338,-347,-355)])}}function z(n,r,t,e){return U(t- -238,e)}function L(n,r,t,e){return U(n- -354,t)}return i};return r=>{function t(n,r,t,e){return U(e- -164,n)}c=r;const e=n[u(-752,-736,-739,-744)](r,v);function u(n,r,t,e){return U(n- -786,e)}return 0===f.size?e:o[u(-751,0,0,-764)](e,[...f[t(-128,0,0,-128)](),...e[t(-148,0,0,-127)]],e[t(-113,0,0,-126)],e[t(-101,0,0,-125)],e[u(-746,0,0,-758)],e[t(-150,0,0,-123)],e[t(-131,0,0,-122)])}}}),(n,r)=>({before(t){function e(n,r,t,e){return O(e-911,n)}const o=r[e(919,0,0,911)]()[e(921,0,0,912)](),{factory:u}=t;function i(r){function t(n,r,t,e){return O(t- -900,r)}return!!(r.flags&n[t(0,-893,-898)][t(0,-893,-897)])||(r[(e=-756,o=-751,O(e- -760,o))]()?r[t(0,-898,-895)].some(i):void 0);var e,o}function f(n){return i(n)||n[(r=-444,t=-445,O(t- -451,r))]();var r,t}const c=r=>{function e(n,r,t,e){return O(n-844,t)}function v(n,r,t,e){return O(t- -703,e)}if(n[e(851,0,841)](r)&&(r[e(852,0,857)][v(0,0,-694,-691)]===n.SyntaxKind.EqualsEqualsToken||r.operatorToken[v(0,0,-694,-697)]===n[e(854,0,851)][e(855,0,852)])){const n=o[v(0,0,-691,-692)](r[v(0,0,-690,-684)]),t=o[e(856,0,851)](r[v(0,0,-689,-679)]);if(i(n)&&f(t)||i(t)&&f(n))return u[e(859,0,849)](u[e(860,0,860)](v(0,0,-686,-681)),void 0,[r[v(0,0,-690,-690)],r[e(858,0,850)]])}return n[e(862,0,855)](r,c,t)};return r=>{return n[(t=591,e=594,O(t-572,e))](r,c);var t,e}}})];function I(n,r,t,e){return k(r- -603,t)}function R(n,r,t,e){return k(t- -559,e)}function _(n){let r,t=()=>{};return r=n?Promise[(e=-695,o=-695,k(o- -697,e))]([new Promise((r=>setTimeout(r,n,!0))),new Promise((n=>t=n))]):new Promise((n=>t=n)),{promise:r,resolve:t};var e,o}function k(n,r){const t=Q();return k=function(r,e){let o=t[r-=0];if(void 0===k.RYFFQL){k.aFNmwa=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,k.RYFFQL=!0}const u=r+t[0],i=n[u];return i?o=i:(o=k.aFNmwa(o),n[u]=o),o},k(n,r)}function Q(){const n=["rKLmrv9dsefor0vFrevurunuruq","rK9vtKrFmv9fuLjpuL9xqvrdseLor19gt1jFrKLmrv9dsefor0vt","CMfJzq","x3rZ","D2f0y2G","AgfUzgXLu3rHDhvZ","y2f0zwDVCNK","rgLHz25VC3rPy0nHDgvNB3j5","CMvZB2X2zvn0yxj0","rK9vtKrFtL9fuLjpuLnFv0fuq0HjtKDFrK9sx0zjtevFq0HbtKDfuW","x3n0yxj0rgvMzxjYzwq","CMvZB2X2zq","CMvZB2X2zuzPBMLZAa","x2zPBMLZAerLzMvYCMvK","D2fPDa"];return(Q=function(){return n})()}!function(n){function r(n,r,t,e){return k(r- -830,e)}n[n[r(0,-830,0,-830)]=6032]="FILE_CHANGE_DETECTED",n[n[r(0,-829,0,-825)]=6193]=r(0,-829,0,-828),n[n.FOUND_N_ERRORS_WATCHING_FOR_FILE_CHANGES=6194]="FOUND_N_ERRORS_WATCHING_FOR_FILE_CHANGES"}(E||(E={}));class ${constructor(n){var r,t;this._startDeferred=null,this._finishDeferred=null,this[(r=797,t=794,k(r-794,t))]=n}[R(0,0,-555,-554)](n=1e3){this._startDeferred=_(n),this._finishDeferred=_()}[I(0,-598,-601)](n){function r(n,r,t,e){return k(n- -234,e)}function t(n,r,t,e){return k(e- -311,n)}if(n[r(-228,0,0,-228)]===this[t(-307,0,0,-308)][r(-227,0,0,-231)].Message)switch(n.code){case E[r(-234,0,0,-237)]:this[t(-310,0,0,-303)]();break;case E[t(-306,0,0,-310)]:case E[r(-225,0,0,-230)]:this.resolveFinish()}}[I(0,-595,-601)](){var n,r,t,e;this._startDeferred&&(this[(t=-203,e=-210,k(e- -220,t))][(n=811,r=808,k(r-797,n))](!1),this._startDeferred=null)}[I(0,-591,-595)](){function n(n,r,t,e){return k(t- -258,r)}this[n(0,-241,-245)]&&(this._finishDeferred[n(0,-245,-247)](!1),this[n(0,-243,-245)]=null)}async[R(0,0,-545,-546)](){function n(n,r,t,e){return k(t-381,e)}function r(n,r,t,e){return k(t- -113,e)}if(this[n(0,0,391,395)]){await this[r(0,0,-103,-95)].promise&&(this[n(0,0,391,393)]=null,this[n(0,0,394,389)]=null),await(this[r(0,0,-100,-97)]?.promise)}}}function nn(){const n=["C3LZ","z2v0q3vYCMvUDerPCMvJDg9YEq","BMv3tgLUzq","y3jLyxrLu2vTyw50AwneAwfNBM9ZDgLJC0j1AwXKzxjqCM9NCMfT","AgfZ","C3rHCNrZv2L0Aa","Dg9mB3DLCKnHC2u","DgvZDa","CMvWBgfJzq","DxnLq2fZzvnLBNnPDgL2zuzPBgvoyw1LCW","C3bSAxq","zw5KC1DPDgG","lNrZ","zMLSzuv4Axn0CW","C2v0","lNv0CY50CW","CMvHzezPBgu","zxjYB3i","y29UzMLN","B3b0Aw9UCW","u2nYAxb0vgfYz2v0","Cgf0Ahm","qc8Q","y3jLyxrLv2f0y2HdB21WAwXLCKHVC3q","Aw5JBhvKzxm","p3r5Cgu9CgfNzq","D2f0y2HgAwXL","y3jLyxrLuhjVz3jHBq","zw1PDa","yMLUza","yMvMB3jL","ChvZAa","ywz0zxi","ywz0zxjezwnSyxjHDgLVBNm","D3jPDgvgAwXL","ywz0zxjqCM9NCMfTq3jLyxrL","z2v0u291CMnLrMLSzxm","zMLSDgvY","zMLSzu5HBwu","y3jLyxrLv2f0y2HqCM9NCMfT","rxjYB3i","y29Kzq","zMXHDhrLBKrPywDUB3n0AwnnzxnZywDLvgv4Da","BwvZC2fNzvrLEhq","z2v0tMv3tgLUzq","Aw5MBW","zM9YBwf0rgLHz25VC3rPyW","AgfUzgXLu3rHDhvZ","CMvZB2X2zu1VzhvSzu5HBwu","CMvZB2X2zwrnB2r1Bgu"];return(nn=function(){return n})()}function rn(n,r){const t=nn();return rn=function(r,e){let o=t[r-=0];if(void 0===rn.OzuTid){rn.rQXSru=function(n){let r="",t="";for(let t,e,o=0,u=0;e=n.charAt(u++);~e&&(t=o%4?64*t+e:e,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let n=0,e=r.length;n<e;n++)t+="%"+("00"+r.charCodeAt(n).toString(16)).slice(-2);return decodeURIComponent(t)},n=arguments,rn.OzuTid=!0}const u=r+t[0],i=n[u];return i?o=i:(o=rn.rQXSru(o),n[u]=o),o},rn(n,r)}exports.runBuild=function(){},exports.runDev=function({typescript:n,inputDir:r,tsconfig:t,rootFiles:e,compilerOptions:o,normalizeFileName:u,sourceMapCallback:i}){const f=new $(n),c={getCanonicalFileName:n=>n,getCurrentDirectory:n[C(-5,-15,6)][C(-7,2,7)],getNewLine:()=>n.sys[C(14,17,8)]},v=n[A(-152,-161,-177,-176)],z=new Map;function L(n){if(z[(t=-178,e=-158,rn(t- -182,e))](n))return!0;var t,e,o,u;return n[(o=-503,u=-479,rn(o- -508,u))](r)}function s(n){return n[(r=-432,t=-413,rn(r- -438,t))]();var r,t}const a=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,g=n.sys[A(-163,-178,-189,-170)]?function(n){return n}:function(n){function r(n,r,t,e){return rn(n-755,e)}return a[r(762,0,0,760)](n)?n[r(763,0,0,747)](a,s):n};function x(n,r){function t(n,r,t,e){return rn(e-889,n)}n=g(n);const e=z.get(n);if(e)return e;let o=n[i(906,893,882,902)]("?",2)[0];const u=o[t(902,0,0,900)](i(910,895,893,872));if(!u){const e=o+i(879,895,918,884);if(r.sys[t(899,0,0,902)](e))return z[i(922,897,880,883)](n,e),o}function i(n,r,t,e){return rn(r-883,e)}if(r[t(904,0,0,889)].fileExists(o))return z[t(918,0,0,903)](n,o),o;if(u){const e=o.slice(0,-3)+t(880,0,0,904);if(r[t(872,0,0,889)].fileExists(e))return z.set(n,e),e}}const B=n.readConfigFile(t,n[A(-189,-174,-169,-179)][A(-185,-145,-161,-163)]);function C(n,r,t,e){return rn(t-6,r)}B[A(-171,-179,-183,-162)]&&(console[A(-184,-170,-145,-162)]("Failed to read tsconfig.json:"),j(B[A(-168,-139,-150,-162)]));const y=B[A(-149,-174,-176,-161)]?n.parseJsonConfigFileContent(B[C(0,35,24)],n.sys,"./"):void 0,w={...y?.[C(0,27,25)],...o,baseUrl:r,emitUTS:!0,target:n[A(-147,-143,-151,-159)].ESNext};!w.paths&&(w.paths={}),w[A(-143,-162,-162,-158)][A(-163,-176,-179,-157)]=[r+"/*"];const l=n[C(0,13,29)](e,w,{...n[A(-186,-201,-192,-179)],watchFile(r,t,e,o){function u(n,r,t,e){return rn(t-547,r)}function i(n,r,t,e){return rn(n-332,t)}return r[i(356,0,379)](i(357,0,380))&&(r=r[i(340,0,321)](u(0,593,572),"")),n[u(0,545,547)][i(358,0,349)](r,t,e,o)},fileExists:r=>!!x(r,n),readFile(r,t){function e(n,r,t,e){return rn(n- -379,t)}return n[e(-379,0,-364)][e(-363,0,-378)](x(r,n),t)}},v,j,(function(r){function t(n,r,t,e){return rn(n- -892,r)}console[t(-847,-855)](n[t(-846,-835)](r,c)),f[(e=-225,o=-234,rn(e- -272,o))](r);var e,o})),D=l[A(-155,-140,-168,-152)],M=/\.(u)?vue(.ts)?/;function h(n){return M[(r=735,t=757,rn(t-750,r))](n);var r,t}function A(n,r,t,e){return rn(e- -179,n)}l.createProgram=(r,t,e,o)=>{const f=D(r,t,e,o),{before:c,after:v,afterDeclarations:z}=G(n,J)({getProgram:()=>f.getProgram(),isUTSFile:L,isVueFile:h,normalizeFileName:u});const s=f[a(807,805)][a(784,806)](f);function a(n,r,t,e){return rn(r-777,n)}return f[(g=838,x=841,rn(x-813,g))]=(n,r,t,o,u)=>{function L(n,r,t,e){return rn(n- -649,e)}function a(n,r,t,e){return rn(e-532,r)}return!u&&(u={}),(u[a(0,581,0,562)]||(u[L(-619,0,0,-642)]=[]))[a(0,583,0,563)](...c),(u[a(0,544,0,564)]||(u[L(-617,0,0,-628)]=[]))[L(-618,0,0,-639)](...v),(u[a(0,554,0,565)]||(u[a(0,543,0,565)]=[]))[L(-618,0,0,-605)](...z),s(n,((n,t,o,u,c,v)=>{function z(n,r,t,e){return rn(r- -907,e)}if(r=r||e?.[z(0,-873,0,-874)]||f[z(0,-873,0,-854)],!(i&&n.endsWith(".map")&&i(n,t,((n,t)=>r(n,t,o,u,c,v)))))return r(n,t,o,u,c,v)}),t,o,u)},f;var g,x};const d=l[A(-153,0,0,-144)];return l[A(-124,0,0,-144)]=n=>{function t(n,r,t,e){return rn(n-780,e)}function e(n,r,t,e){return rn(e-742,n)}console.log(n[t(816,0,0,800)]()[e(775,786,804,779)]((n=>n[e(783,763,758,780)][t(785,0,0,800)](r))).map((n=>n[t(818,0,0,818)]))),d(n)},{program:n[C(0,53,45)](l),watcher:f};function j(r){function t(n,r,t,e){return rn(t-625,n)}var e,o;console[t(662,0,642)](t(676,0,665),r[t(667,0,666)],":",n[t(648,0,667)](r[(e=-145,o=-154,rn(e- -188,o))],c[t(663,0,669)]()))}}; diff --git a/packages/uni-uts-v1/src/tsc/kotlin/index.ts b/packages/uni-uts-v1/src/tsc/kotlin/index.ts index 1043dea3632..6c4d53ea042 100644 --- a/packages/uni-uts-v1/src/tsc/kotlin/index.ts +++ b/packages/uni-uts-v1/src/tsc/kotlin/index.ts @@ -1,17 +1,18 @@ import fs from 'fs-extra' import path from 'path' import { extend } from '@vue/shared' -import type { CompilerOptions } from 'typescript' +import type { + CompilerOptions, + SemanticDiagnosticsBuilderProgram, + WatchOfFilesAndCompilerOptions, +} from 'typescript' import { type RawSourceMap, SourceMapConsumer, SourceMapGenerator, } from 'source-map-js' -// import { sync } from 'fast-glob' -// import combine from 'combine-source-map' import { createBasicUtsOptions } from '../utils/options' import { isInHBuilderX, normalizePath } from '../../shared' -// import { uvueOutDir } from '../../uvue' export interface UTS2KotlinOptions { typescript?: typeof import('typescript') @@ -23,7 +24,14 @@ export interface UTS2KotlinOptions { normalizeFileName: (str: string) => string } -export function runUTS2KotlinDev(options: UTS2KotlinOptions) { +export declare class WatchProgramHelper { + watch(timeout?: number): void + wait(): Promise<void> +} +export function runUTS2KotlinDev(options: UTS2KotlinOptions): { + program: WatchOfFilesAndCompilerOptions<SemanticDiagnosticsBuilderProgram> + watcher: WatchProgramHelper +} { const { /* check, noCache, */ tsconfig, typescript, tsconfigOverride } = createBasicUtsOptions(options.inputDir) @@ -67,6 +75,10 @@ export function runUTS2KotlinDev(options: UTS2KotlinOptions) { map: string, writeFile: (fileName: string, text: string) => void ) => boolean | undefined + callback( + files: string[], + program: SemanticDiagnosticsBuilderProgram + ): void } >
99c0f7c45076250478e7756c655647534416d4f9
2022-02-28 12:54:13
fxy060608
release: v0.0.1-nvue3.3040020220228001
false
v0.0.1-nvue3.3040020220228001
release
diff --git a/package.json b/package.json index b231b160c28..30794972b09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "workspaces": [ "packages/*" ], @@ -43,8 +43,8 @@ "devDependencies": { "@babel/preset-env": "^7.16.11", "@dcloudio/types": "^2.5.17", - "@dcloudio/uni-api": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-app": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-api": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-app": "0.0.1-nvue3.3040020220228001", "@jest/types": "^27.0.2", "@microsoft/api-extractor": "^7.19.2", "@rollup/plugin-alias": "^3.1.1", diff --git a/packages/size-check/package.json b/packages/size-check/package.json index e7ada2b85c3..1dc62a5c828 100644 --- a/packages/size-check/package.json +++ b/packages/size-check/package.json @@ -1,14 +1,14 @@ { "private": true, "name": "@dcloudio/size-check", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "devDependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-components": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-h5": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220225002", - "@dcloudio/vite-plugin-uni": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-components": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-h5": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220228001", + "@dcloudio/vite-plugin-uni": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/uni-api/package.json b/packages/uni-api/package.json index 754258c1d77..b93cbd8ed6a 100644 --- a/packages/uni-api/package.json +++ b/packages/uni-api/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-api", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-api", "sideEffects": false, "repository": { @@ -14,6 +14,6 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/uni-app-plus/package.json b/packages/uni-app-plus/package.json index c47a595c9ee..59999390b2d 100644 --- a/packages/uni-app-plus/package.json +++ b/packages/uni-app-plus/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-app-plus", "files": [ "dist", @@ -28,18 +28,18 @@ "main": "dist/uni.compiler.js" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-components": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-h5": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-components": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-h5": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@types/pako": "1.0.2", "@vue/compiler-sfc": "3.2.31", "pako": "^1.0.11", "vue": "3.2.31" }, "dependencies": { - "@dcloudio/uni-app-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-app-vue": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-app-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-app-vue": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/uni-app-vite/package.json b/packages/uni-app-vite/package.json index a878b2dd282..cc7e14c74df 100644 --- a/packages/uni-app-vite/package.json +++ b/packages/uni-app-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vite", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,10 +19,10 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-nvue-styler": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-nvue-styler": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@rollup/pluginutils": "^4.1.2", "@vitejs/plugin-vue": "^2.2.2", "@vue/compiler-dom": "3.2.31", diff --git a/packages/uni-app-vue/package.json b/packages/uni-app-vue/package.json index 160cc642043..d76e1c4734d 100644 --- a/packages/uni-app-vue/package.json +++ b/packages/uni-app-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vue", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-app-vue", "main": "dist/service.runtime.esm.dev.js", "module": "dist/service.runtime.esm.dev.js", diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index 0102b5afab9..bc9c83b4290 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-app", "main": "./dist/uni-app.cjs.js", "module": "./dist/uni-app.es.js", @@ -24,12 +24,12 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-cloud": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-components": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-push": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-stat": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cloud": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-components": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-push": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-stat": "0.0.1-nvue3.3040020220228001", "@vue/shared": "3.2.31" } } diff --git a/packages/uni-automator/package.json b/packages/uni-automator/package.json index 0a0ecee2225..c34544036c4 100644 --- a/packages/uni-automator/package.json +++ b/packages/uni-automator/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-automator", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-automator", "main": "dist/index.js", "files": [ @@ -27,7 +27,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", "address": "^1.1.2", "cross-env": "^7.0.3", "debug": "^4.3.3", diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index 70fcdff4dd0..1dafc0ce316 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-shared", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-cli-shared", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -21,8 +21,8 @@ "@babel/core": "^7.17.2", "@babel/parser": "^7.16.4", "@babel/types": "^7.16.8", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@rollup/pluginutils": "^4.1.2", "@vue/compiler-core": "3.2.31", "@vue/compiler-dom": "3.2.31", diff --git a/packages/uni-cloud/package.json b/packages/uni-cloud/package.json index efe16ef749a..54dc38704ab 100644 --- a/packages/uni-cloud/package.json +++ b/packages/uni-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cloud", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-cloud", "main": "dist/uni-cloud.cjs.js", "module": "dist/uni-cloud.es.js", @@ -20,8 +20,8 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/uni-components/package.json b/packages/uni-components/package.json index 84d8f769cd0..6ab20847f25 100644 --- a/packages/uni-components/package.json +++ b/packages/uni-components/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-components", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-components", "main": "index.js", "files": [ @@ -18,7 +18,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@types/quill": "^1.3.7" } } diff --git a/packages/uni-core/package.json b/packages/uni-core/package.json index ac77113dc2e..4a0de08bdaf 100644 --- a/packages/uni-core/package.json +++ b/packages/uni-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-core", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-core", "sideEffects": false, "repository": { @@ -14,9 +14,9 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "safe-area-insets": "^1.4.1" } } diff --git a/packages/uni-h5-vite/package.json b/packages/uni-h5-vite/package.json index 94a0cf68042..ff3a47d5894 100644 --- a/packages/uni-h5-vite/package.json +++ b/packages/uni-h5-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vite", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-h5-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,8 +19,8 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@rollup/pluginutils": "^4.1.2", "@vue/compiler-dom": "3.2.31", "@vue/compiler-sfc": "3.2.31", diff --git a/packages/uni-h5-vue/package.json b/packages/uni-h5-vue/package.json index d18eef45ec4..850a93c181b 100644 --- a/packages/uni-h5-vue/package.json +++ b/packages/uni-h5-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vue", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-h5-vue", "main": "dist/vue.runtime.cjs.js", "module": "dist/vue.runtime.esm.js", diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index 15e966989d0..da320d7f816 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-h5", "main": "./dist/uni-h5.cjs.js", "module": "./dist/uni-h5.es.js", @@ -29,10 +29,10 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@vue/server-renderer": "3.2.31", "@vue/shared": "3.2.31", "localstorage-polyfill": "^1.0.1", @@ -43,7 +43,7 @@ "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { "@dcloudio/uni-cli-i18n": "^2.0.0-32920211029004", - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", "@types/google.maps": "^3.45.6", "acorn-loose": "^8.2.1", "acorn-walk": "^8.2.0", diff --git a/packages/uni-i18n/package.json b/packages/uni-i18n/package.json index 3cf01d1b618..0d0300df7cc 100644 --- a/packages/uni-i18n/package.json +++ b/packages/uni-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-i18n", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-i18n", "main": "./dist/uni-i18n.cjs.js", "module": "./dist/uni-i18n.es.js", diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index 34538fd260f..08a2dc16c47 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app mp-alipay", "main": "dist/index.js", "repository": { @@ -22,9 +22,9 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", "@vue/compiler-core": "3.2.31", "@vue/shared": "3.2.31" } diff --git a/packages/uni-mp-baidu/package.json b/packages/uni-mp-baidu/package.json index 1563ea1baf7..e6b9c99700f 100644 --- a/packages/uni-mp-baidu/package.json +++ b/packages/uni-mp-baidu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-baidu", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app mp-baidu", "main": "dist/index.js", "files": [ @@ -26,14 +26,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220228001", "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/uni-mp-compiler/package.json b/packages/uni-mp-compiler/package.json index f97205bb591..bb02d65a302 100644 --- a/packages/uni-mp-compiler/package.json +++ b/packages/uni-mp-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-compiler", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-mp-compiler", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -22,8 +22,8 @@ "@babel/generator": "^7.16.0", "@babel/parser": "^7.16.4", "@babel/types": "^7.16.8", - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@vue/compiler-core": "3.2.31", "@vue/compiler-dom": "3.2.31", "@vue/shared": "3.2.31", diff --git a/packages/uni-mp-core/package.json b/packages/uni-mp-core/package.json index 98d57bda31a..4305ef9d633 100644 --- a/packages/uni-mp-core/package.json +++ b/packages/uni-mp-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-mp-core", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-mp-core", "sideEffects": false, "repository": { diff --git a/packages/uni-mp-kuaishou/package.json b/packages/uni-mp-kuaishou/package.json index f692fadba65..1ed64cf8708 100644 --- a/packages/uni-mp-kuaishou/package.json +++ b/packages/uni-mp-kuaishou/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-kuaishou", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app mp-kuaishou", "main": "dist/index.js", "repository": { @@ -22,14 +22,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220228001", "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/uni-mp-lark/package.json b/packages/uni-mp-lark/package.json index 5b31f90dc6f..33c063d919d 100644 --- a/packages/uni-mp-lark/package.json +++ b/packages/uni-mp-lark/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-lark", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app mp-lark", "main": "dist/index.js", "repository": { @@ -22,14 +22,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-toutiao": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-mp-toutiao": "0.0.1-nvue3.3040020220228001" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@vue/compiler-core": "3.2.31" } } diff --git a/packages/uni-mp-qq/package.json b/packages/uni-mp-qq/package.json index cd373ced8a7..1ced936942f 100644 --- a/packages/uni-mp-qq/package.json +++ b/packages/uni-mp-qq/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-qq", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app mp-qq", "main": "dist/index.js", "repository": { @@ -22,15 +22,15 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220228001", "@types/fs-extra": "^9.0.13", "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "fs-extra": "^10.0.0" } } diff --git a/packages/uni-mp-toutiao/package.json b/packages/uni-mp-toutiao/package.json index cbe86feb947..aacb6a115d1 100644 --- a/packages/uni-mp-toutiao/package.json +++ b/packages/uni-mp-toutiao/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-toutiao", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app mp-toutiao", "main": "dist/index.js", "repository": { @@ -22,11 +22,11 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@vue/compiler-core": "3.2.31" } } diff --git a/packages/uni-mp-vite/package.json b/packages/uni-mp-vite/package.json index 617527c48f2..9ca38266bf2 100644 --- a/packages/uni-mp-vite/package.json +++ b/packages/uni-mp-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vite", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-mp-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -18,10 +18,10 @@ }, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@intlify/core-base": "9.1.9", "@intlify/shared": "9.1.9", "@intlify/vue-devtools": "9.1.9", diff --git a/packages/uni-mp-vue/package.json b/packages/uni-mp-vue/package.json index 1f12a05c874..251df80c46c 100644 --- a/packages/uni-mp-vue/package.json +++ b/packages/uni-mp-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vue", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-mp-vue", "main": "dist/vue.runtime.esm.js", "module": "dist/vue.runtime.esm.js", @@ -19,6 +19,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index 758654bad8f..62e42bd219c 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app mp-weixin", "main": "dist/index.js", "files": [ @@ -29,9 +29,9 @@ "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/uni-nvue-styler/package.json b/packages/uni-nvue-styler/package.json index 896a3a6ef18..7a5ec773862 100644 --- a/packages/uni-nvue-styler/package.json +++ b/packages/uni-nvue-styler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-nvue-styler", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-nvue-styler", "main": "./dist/uni-nvue-styler.cjs.js", "types": "./dist/uni-nvue-styler.d.ts", diff --git a/packages/uni-push/package.json b/packages/uni-push/package.json index 011197d7c9d..42f9a7dc09c 100644 --- a/packages/uni-push/package.json +++ b/packages/uni-push/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-push", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-push", "main": "lib/uni-push.js", "module": "lib/uni-push.js", @@ -20,7 +20,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", "debug": "^4.3.3" }, "devDependencies": { diff --git a/packages/uni-quickapp-webview/package.json b/packages/uni-quickapp-webview/package.json index 64d1cb8deb8..4d644a56d7d 100644 --- a/packages/uni-quickapp-webview/package.json +++ b/packages/uni-quickapp-webview/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-quickapp-webview", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app quickapp-webview", "main": "dist/index.js", "repository": { @@ -25,10 +25,10 @@ "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@vue/shared": "3.2.31" } } diff --git a/packages/uni-shared/package.json b/packages/uni-shared/package.json index 92040cfdc4d..6fcc30baacf 100644 --- a/packages/uni-shared/package.json +++ b/packages/uni-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-shared", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-shared", "main": "./dist/uni-shared.cjs.js", "module": "./dist/uni-shared.es.js", diff --git a/packages/uni-stat/dist/uni-stat.cjs.js b/packages/uni-stat/dist/uni-stat.cjs.js index 08f54d8375b..70593f192c3 100644 --- a/packages/uni-stat/dist/uni-stat.cjs.js +++ b/packages/uni-stat/dist/uni-stat.cjs.js @@ -1,6 +1,6 @@ 'use strict'; -var version = "0.0.1-nvue3.3040020220225002"; +var version = "0.0.1-nvue3.3040020220228001"; const STAT_VERSION = version; const STAT_URL = 'https://tongji.dcloud.io/uni/stat'; diff --git a/packages/uni-stat/dist/uni-stat.es.js b/packages/uni-stat/dist/uni-stat.es.js index 85214b312ec..691ac4e5b21 100644 --- a/packages/uni-stat/dist/uni-stat.es.js +++ b/packages/uni-stat/dist/uni-stat.es.js @@ -1,4 +1,4 @@ -var version = "0.0.1-nvue3.3040020220225002"; +var version = "0.0.1-nvue3.3040020220228001"; const STAT_VERSION = version; const STAT_URL = 'https://tongji.dcloud.io/uni/stat'; diff --git a/packages/uni-stat/package.json b/packages/uni-stat/package.json index 9ee0e374c82..20dec042f02 100644 --- a/packages/uni-stat/package.json +++ b/packages/uni-stat/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stat", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-stat", "main": "dist/uni-stat.es.js", "module": "dist/uni-stat.es.js", @@ -20,7 +20,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", "debug": "^4.3.3" }, "devDependencies": { diff --git a/packages/uni-vue/package.json b/packages/uni-vue/package.json index 03f3fbdde9c..11a20135577 100644 --- a/packages/uni-vue/package.json +++ b/packages/uni-vue/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-vue", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "@dcloudio/uni-vue", "files": [ "dist" @@ -17,7 +17,7 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002" + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001" } } diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 488a2bde471..9af6b252145 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vite-plugin-uni", - "version": "0.0.1-nvue3.3040020220225002", + "version": "0.0.1-nvue3.3040020220228001", "description": "uni-app vite plugin", "bin": { "uni": "bin/uni.js" @@ -25,8 +25,8 @@ "@babel/core": "^7.17.2", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-transform-typescript": "^7.16.8", - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220225002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220225002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220228001", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220228001", "@rollup/pluginutils": "^4.1.2", "@vitejs/plugin-legacy": "^1.7.1", "@vitejs/plugin-vue": "^2.2.2", diff --git a/packages/vite-plugin-uni/src/index.ts b/packages/vite-plugin-uni/src/index.ts index 710460a6534..02b48e8813a 100644 --- a/packages/vite-plugin-uni/src/index.ts +++ b/packages/vite-plugin-uni/src/index.ts @@ -136,12 +136,20 @@ export default function uniPlugin( ) ) - // 仅在 vue 或 纯原生 App.vue 编译时做 copy - if ( - process.env.UNI_COMPILER === 'vue' || - (process.env.UNI_RENDERER === 'native' && - process.env.UNI_COMPILER_NVUE === 'app') - ) { + let addCopyPlugin = false + if (options.platform !== 'app') { + addCopyPlugin = true + } else { + // 仅在 vue 或 纯原生 App.vue 编译时做 copy + if ( + process.env.UNI_COMPILER === 'vue' || + (process.env.UNI_RENDERER === 'native' && + process.env.UNI_RENDERER_NATIVE === 'appService') + ) { + addCopyPlugin = true + } + } + if (addCopyPlugin) { plugins.push( uniCopyPlugin({ outputDir: process.env.UNI_OUTPUT_DIR, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f78499a5031..fcadec99635 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ importers: specifiers: '@babel/preset-env': ^7.16.11 '@dcloudio/types': ^2.5.17 - '@dcloudio/uni-api': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-app': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-api': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-app': 0.0.1-nvue3.3040020220228001 '@jest/types': ^27.0.2 '@microsoft/api-extractor': ^7.19.2 '@rollup/plugin-alias': ^3.1.1 @@ -129,13 +129,13 @@ importers: packages/size-check: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-components': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-h5': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-h5-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-h5-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220225002 - '@dcloudio/vite-plugin-uni': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-components': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-h5': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-h5-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-h5-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220228001 + '@dcloudio/vite-plugin-uni': 0.0.1-nvue3.3040020220228001 devDependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-components': link:../uni-components @@ -147,18 +147,18 @@ importers: packages/uni-api: specifiers: - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 devDependencies: '@dcloudio/uni-shared': link:../uni-shared packages/uni-app: specifiers: - '@dcloudio/uni-cloud': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-components': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-push': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-stat': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cloud': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-components': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-push': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-stat': 0.0.1-nvue3.3040020220228001 '@vue/shared': 3.2.31 dependencies: '@dcloudio/uni-cloud': link:../uni-cloud @@ -171,13 +171,13 @@ importers: packages/uni-app-plus: specifiers: - '@dcloudio/uni-app-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-app-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-components': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-h5': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-app-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-app-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-components': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-h5': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@types/pako': 1.0.2 '@vue/compiler-sfc': 3.2.31 pako: ^1.0.11 @@ -198,10 +198,10 @@ importers: packages/uni-app-vite: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-nvue-styler': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-nvue-styler': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@rollup/pluginutils': ^4.1.2 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -240,7 +240,7 @@ importers: packages/uni-automator: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 address: ^1.1.2 @@ -274,8 +274,8 @@ importers: '@babel/core': ^7.17.2 '@babel/parser': ^7.16.4 '@babel/types': ^7.16.8 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@rollup/pluginutils': ^4.1.2 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -362,9 +362,9 @@ importers: packages/uni-cloud: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-i18n': link:../uni-i18n @@ -372,7 +372,7 @@ importers: packages/uni-components: specifiers: - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@types/quill': ^1.3.7 devDependencies: '@dcloudio/uni-shared': link:../uni-shared @@ -380,9 +380,9 @@ importers: packages/uni-core: specifiers: - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 safe-area-insets: ^1.4.1 devDependencies: '@dcloudio/uni-i18n': link:../uni-i18n @@ -393,11 +393,11 @@ importers: packages/uni-h5: specifiers: '@dcloudio/uni-cli-i18n': ^2.0.0-32920211029004 - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-h5-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-h5-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-h5-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-h5-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@types/google.maps': ^3.45.6 '@vue/server-renderer': 3.2.31 '@vue/shared': 3.2.31 @@ -429,8 +429,8 @@ importers: packages/uni-h5-vite: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@rollup/pluginutils': ^4.1.2 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -474,9 +474,9 @@ importers: packages/uni-mp-alipay: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 '@vue/compiler-core': 3.2.31 '@vue/shared': 3.2.31 dependencies: @@ -488,12 +488,12 @@ importers: packages/uni-mp-baidu: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -510,8 +510,8 @@ importers: '@babel/generator': ^7.16.0 '@babel/parser': ^7.16.4 '@babel/types': ^7.16.8 - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@vue/compiler-core': 3.2.31 '@vue/compiler-dom': 3.2.31 '@vue/compiler-sfc': 3.2.31 @@ -537,12 +537,12 @@ importers: packages/uni-mp-kuaishou: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -556,12 +556,12 @@ importers: packages/uni-mp-lark: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-toutiao': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-toutiao': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -575,11 +575,11 @@ importers: packages/uni-mp-qq: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@types/fs-extra': ^9.0.13 '@vue/compiler-core': 3.2.31 fs-extra: ^10.0.0 @@ -596,11 +596,11 @@ importers: packages/uni-mp-toutiao: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -612,10 +612,10 @@ importers: packages/uni-mp-vite: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@intlify/core-base': 9.1.9 '@intlify/shared': 9.1.9 '@intlify/vue-devtools': 9.1.9 @@ -641,16 +641,16 @@ importers: packages/uni-mp-vue: specifiers: - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 devDependencies: '@dcloudio/uni-mp-vue': 'link:' packages/uni-mp-weixin: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -672,7 +672,7 @@ importers: packages/uni-push: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 '@types/debug': ^4.1.7 debug: ^4.3.3 dependencies: @@ -683,10 +683,10 @@ importers: packages/uni-quickapp-webview: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@vue/compiler-core': 3.2.31 '@vue/shared': 3.2.31 dependencies: @@ -709,7 +709,7 @@ importers: packages/uni-stat: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 '@types/debug': ^4.1.7 debug: ^4.3.3 dependencies: @@ -720,8 +720,8 @@ importers: packages/uni-vue: specifiers: - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 devDependencies: '@dcloudio/uni-mp-vue': link:../uni-mp-vue '@dcloudio/uni-shared': link:../uni-shared @@ -731,8 +731,8 @@ importers: '@babel/core': ^7.17.2 '@babel/plugin-syntax-import-meta': ^7.10.4 '@babel/plugin-transform-typescript': ^7.16.8 - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220225002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220225002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220228001 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220228001 '@rollup/pluginutils': ^4.1.2 '@types/debug': ^4.1.7 '@types/express': ^4.17.12 @@ -3061,14 +3061,6 @@ packages: '@types/yargs-parser': 20.2.1 dev: true - /@types/yauzl/2.9.2: - resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==} - requiresBuild: true - dependencies: - '@types/node': 14.18.0 - dev: true - optional: true - /@typescript-eslint/parser/[email protected][email protected]: resolution: {integrity: sha512-JsXBU+kgQOAgzUn2jPrLA+Rd0Y1dswOlX3hp8MuRO1hQDs6xgHtbCXEiAu7bz5hyVURxbXcA2draasMbNqrhmg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3886,7 +3878,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /ci-info/1.6.0: resolution: {integrity: sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==} @@ -3926,7 +3918,7 @@ packages: object-assign: 4.1.1 string-width: 4.2.3 optionalDependencies: - colors: 1.4.0 + colors: registry.npmjs.org/colors/1.4.0 dev: true /cli-truncate/2.1.0: @@ -3986,13 +3978,6 @@ packages: engines: {node: '>=0.1.90'} dev: true - /colors/1.4.0: - resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==} - engines: {node: '>=0.1.90'} - requiresBuild: true - dev: true - optional: true - /combined-stream/1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -4516,316 +4501,28 @@ packages: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} dev: false - /esbuild-android-arm64/0.14.2: - resolution: {integrity: sha512-hEixaKMN3XXCkoe+0WcexO4CcBVU5DCSUT+7P8JZiWZCbAjSkc9b6Yz2X5DSfQmRCtI/cQRU6TfMYrMQ5NBfdw==} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /esbuild-android-arm64/0.14.21: - resolution: {integrity: sha512-Bqgld1TY0wZv8TqiQmVxQFgYzz8ZmyzT7clXBDZFkOOdRybzsnj8AZuK1pwcLVA7Ya6XncHgJqIao7NFd3s0RQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - optional: true - - /esbuild-darwin-64/0.14.2: - resolution: {integrity: sha512-Uq8t0cbJQkxkQdbUfOl2wZqZ/AtLZjvJulR1HHnc96UgyzG9YlCLSDMiqjM+NANEy7/zzvwKJsy3iNC9wwqLJA==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /esbuild-darwin-64/0.14.21: - resolution: {integrity: sha512-j+Eg+e13djzyYINVvAbOo2/zvZ2DivuJJTaBrJnJHSD7kUNuGHRkHoSfFjbI80KHkn091w350wdmXDNSgRjfYQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-darwin-arm64/0.14.2: - resolution: {integrity: sha512-619MSa17sr7YCIrUj88KzQu2ESA4jKYtIYfLU/smX6qNgxQt3Y/gzM4s6sgJ4fPQzirvmXgcHv1ZNQAs/Xh48A==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /esbuild-darwin-arm64/0.14.21: - resolution: {integrity: sha512-nDNTKWDPI0RuoPj5BhcSB2z5EmZJJAyRtZLIjyXSqSpAyoB8eyAKXl4lB8U2P78Fnh4Lh1le/fmpewXE04JhBQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-freebsd-64/0.14.2: - resolution: {integrity: sha512-aP6FE/ZsChZpUV6F3HE3x1Pz0paoYXycJ7oLt06g0G9dhJKknPawXCqQg/WMyD+ldCEZfo7F1kavenPdIT/SGQ==} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-freebsd-64/0.14.21: - resolution: {integrity: sha512-zIurkCHXhxELiDZtLGiexi8t8onQc2LtuE+S7457H/pP0g0MLRKMrsn/IN4LDkNe6lvBjuoZZi2OfelOHn831g==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-freebsd-arm64/0.14.2: - resolution: {integrity: sha512-LSm98WTb1QIhyS83+Po0KTpZNdd2XpVpI9ua5rLWqKWbKeNRFwOsjeiuwBaRNc+O32s9oC2ZMefETxHBV6VNkQ==} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-freebsd-arm64/0.14.21: - resolution: {integrity: sha512-wdxMmkJfbwcN+q85MpeUEamVZ40FNsBa9mPq8tAszDn8TRT2HoJvVRADPIIBa9SWWwlDChIMjkDKAnS3KS/sPA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-linux-32/0.14.2: - resolution: {integrity: sha512-8VxnNEyeUbiGflTKcuVc5JEPTqXfsx2O6ABwUbfS1Hp26lYPRPC7pKQK5Dxa0MBejGc50jy7YZae3EGQUQ8EkQ==} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-32/0.14.21: - resolution: {integrity: sha512-fmxvyzOPPh2xiEHojpCeIQP6pXcoKsWbz3ryDDIKLOsk4xp3GbpHIEAWP0xTeuhEbendmvBDVKbAVv3PnODXLg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-64/0.14.2: - resolution: {integrity: sha512-4bzMS2dNxOJoFIiHId4w+tqQzdnsch71JJV1qZnbnErSFWcR9lRgpSqWnTTFtv6XM+MvltRzSXC5wQ7AEBY6Hg==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-64/0.14.21: - resolution: {integrity: sha512-edZyNOv1ql+kpmlzdqzzDjRQYls+tSyi4QFi+PdBhATJFUqHsnNELWA9vMSzAaInPOEaVUTA5Ml28XFChcy4DA==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm/0.14.2: - resolution: {integrity: sha512-PaylahvMHhH8YMfJPMKEqi64qA0Su+d4FNfHKvlKes/2dUe4QxgbwXT9oLVgy8iJdcFMrO7By4R8fS8S0p8aVQ==} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-arm/0.14.21: - resolution: {integrity: sha512-aSU5pUueK6afqmLQsbU+QcFBT62L+4G9hHMJDHWfxgid6hzhSmfRH9U/f+ymvxsSTr/HFRU4y7ox8ZyhlVl98w==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm64/0.14.2: - resolution: {integrity: sha512-RlIVp0RwJrdtasDF1vTFueLYZ8WuFzxoQ1OoRFZOTyJHCGCNgh7xJIC34gd7B7+RT0CzLBB4LcM5n0LS+hIoww==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-arm64/0.14.21: - resolution: {integrity: sha512-t5qxRkq4zdQC0zXpzSB2bTtfLgOvR0C6BXYaRE/6/k8/4SrkZcTZBeNu+xGvwCU4b5dU9ST9pwIWkK6T1grS8g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-mips64le/0.14.2: - resolution: {integrity: sha512-Fdwrq2roFnO5oetIiUQQueZ3+5soCxBSJswg3MvYaXDomj47BN6oAWMZgLrFh1oVrtWrxSDLCJBenYdbm2s+qQ==} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-mips64le/0.14.21: - resolution: {integrity: sha512-jLZLQGCNlUsmIHtGqNvBs3zN+7a4D9ckf0JZ+jQTwHdZJ1SgV9mAjbB980OFo66LoY+WeM7t3WEnq3FjI1zw4A==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-ppc64le/0.14.2: - resolution: {integrity: sha512-vxptskw8JfCDD9QqpRO0XnsM1osuWeRjPaXX1TwdveLogYsbdFtcuiuK/4FxGiNMUr1ojtnCS2rMPbY8puc5NA==} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-ppc64le/0.14.21: - resolution: {integrity: sha512-4TWxpK391en2UBUw6GSrukToTDu6lL9vkm3Ll40HrI08WG3qcnJu7bl8e1+GzelDsiw1QmfAY/nNvJ6iaHRpCQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-riscv64/0.14.21: - resolution: {integrity: sha512-fElngqOaOfTsF+u+oetDLHsPG74vB2ZaGZUqmGefAJn3a5z9Z2pNa4WpVbbKgHpaAAy5tWM1m1sbGohj6Ki6+Q==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-s390x/0.14.21: - resolution: {integrity: sha512-brleZ6R5fYv0qQ7ZBwenQmP6i9TdvJCB092c/3D3pTLQHBGHJb5zWgKxOeS7bdHzmLy6a6W7GbFk6QKpjyD6QA==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-netbsd-64/0.14.2: - resolution: {integrity: sha512-I8+LzYK5iSNpspS9eCV9sW67Rj8FgMHimGri4mKiGAmN0pNfx+hFX146rYtzGtewuxKtTsPywWteHx+hPRLDsw==} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-netbsd-64/0.14.21: - resolution: {integrity: sha512-nCEgsLCQ8RoFWVV8pVI+kX66ICwbPP/M9vEa0NJGIEB/Vs5sVGMqkf67oln90XNSkbc0bPBDuo4G6FxlF7PN8g==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - optional: true - - /esbuild-openbsd-64/0.14.2: - resolution: {integrity: sha512-120HgMe9elidWUvM2E6mMf0csrGwx8sYDqUIJugyMy1oHm+/nT08bTAVXuwYG/rkMIqsEO9AlMxuYnwR6En/3Q==} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-openbsd-64/0.14.21: - resolution: {integrity: sha512-h9zLMyVD0T73MDTVYIb/qUTokwI6EJH9O6wESuTNq6+XpMSr6C5aYZ4fvFKdNELW+Xsod+yDS2hV2JTUAbFrLA==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - optional: true - - /esbuild-sunos-64/0.14.2: - resolution: {integrity: sha512-Q3xcf9Uyfra9UuCFxoLixVvdigo0daZaKJ97TL2KNA4bxRUPK18wwGUk3AxvgDQZpRmg82w9PnkaNYo7a+24ow==} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /esbuild-sunos-64/0.14.21: - resolution: {integrity: sha512-Kl+7Cot32qd9oqpLdB1tEGXEkjBlijrIxMJ0+vlDFaqsODutif25on0IZlFxEBtL2Gosd4p5WCV1U7UskNQfXA==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - optional: true - - /esbuild-windows-32/0.14.2: - resolution: {integrity: sha512-TW7O49tPsrq+N1sW8mb3m24j/iDGa4xzAZH4wHWwoIzgtZAYPKC0hpIhufRRG/LA30bdMChO9pjJZ5mtcybtBQ==} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-32/0.14.21: - resolution: {integrity: sha512-V7vnTq67xPBUCk/9UtlolmQ798Ecjdr1ZoI1vcSgw7M82aSSt0eZdP6bh5KAFZU8pxDcx3qoHyWQfHYr11f22A==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-64/0.14.2: - resolution: {integrity: sha512-Rym6ViMNmi1E2QuQMWy0AFAfdY0wGwZD73BnzlsQBX5hZBuy/L+Speh7ucUZ16gwsrMM9v86icZUDrSN/lNBKg==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-64/0.14.21: - resolution: {integrity: sha512-kDgHjKOHwjfJDCyRGELzVxiP/RBJBTA+wyspf78MTTJQkyPuxH2vChReNdWc+dU2S4gIZFHMdP1Qrl/k22ZmaA==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-arm64/0.14.2: - resolution: {integrity: sha512-ZrLbhr0vX5Em/P1faMnHucjVVWPS+m3tktAtz93WkMZLmbRJevhiW1y4CbulBd2z0MEdXZ6emDa1zFHq5O5bSA==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-arm64/0.14.21: - resolution: {integrity: sha512-8Sbo0zpzgwWrwjQYLmHF78f7E2xg5Ve63bjB2ng3V2aManilnnTGaliq2snYg+NOX60+hEvJHRdVnuIAHW0lVw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - optional: true - /esbuild/0.14.2: resolution: {integrity: sha512-l076A6o/PIgcyM24s0dWmDI/b8RQf41uWoJu9I0M71CtW/YSw5T5NUeXxs5lo2tFQD+O4CW4nBHJXx3OY5NpXg==} hasBin: true requiresBuild: true optionalDependencies: - esbuild-android-arm64: 0.14.2 - esbuild-darwin-64: 0.14.2 - esbuild-darwin-arm64: 0.14.2 - esbuild-freebsd-64: 0.14.2 - esbuild-freebsd-arm64: 0.14.2 - esbuild-linux-32: 0.14.2 - esbuild-linux-64: 0.14.2 - esbuild-linux-arm: 0.14.2 - esbuild-linux-arm64: 0.14.2 - esbuild-linux-mips64le: 0.14.2 - esbuild-linux-ppc64le: 0.14.2 - esbuild-netbsd-64: 0.14.2 - esbuild-openbsd-64: 0.14.2 - esbuild-sunos-64: 0.14.2 - esbuild-windows-32: 0.14.2 - esbuild-windows-64: 0.14.2 - esbuild-windows-arm64: 0.14.2 + esbuild-android-arm64: registry.npmjs.org/esbuild-android-arm64/0.14.2 + esbuild-darwin-64: registry.npmjs.org/esbuild-darwin-64/0.14.2 + esbuild-darwin-arm64: registry.npmjs.org/esbuild-darwin-arm64/0.14.2 + esbuild-freebsd-64: registry.npmjs.org/esbuild-freebsd-64/0.14.2 + esbuild-freebsd-arm64: registry.npmjs.org/esbuild-freebsd-arm64/0.14.2 + esbuild-linux-32: registry.npmjs.org/esbuild-linux-32/0.14.2 + esbuild-linux-64: registry.npmjs.org/esbuild-linux-64/0.14.2 + esbuild-linux-arm: registry.npmjs.org/esbuild-linux-arm/0.14.2 + esbuild-linux-arm64: registry.npmjs.org/esbuild-linux-arm64/0.14.2 + esbuild-linux-mips64le: registry.npmjs.org/esbuild-linux-mips64le/0.14.2 + esbuild-linux-ppc64le: registry.npmjs.org/esbuild-linux-ppc64le/0.14.2 + esbuild-netbsd-64: registry.npmjs.org/esbuild-netbsd-64/0.14.2 + esbuild-openbsd-64: registry.npmjs.org/esbuild-openbsd-64/0.14.2 + esbuild-sunos-64: registry.npmjs.org/esbuild-sunos-64/0.14.2 + esbuild-windows-32: registry.npmjs.org/esbuild-windows-32/0.14.2 + esbuild-windows-64: registry.npmjs.org/esbuild-windows-64/0.14.2 + esbuild-windows-arm64: registry.npmjs.org/esbuild-windows-arm64/0.14.2 dev: true /esbuild/0.14.21: @@ -4834,25 +4531,25 @@ packages: hasBin: true requiresBuild: true optionalDependencies: - esbuild-android-arm64: 0.14.21 - esbuild-darwin-64: 0.14.21 - esbuild-darwin-arm64: 0.14.21 - esbuild-freebsd-64: 0.14.21 - esbuild-freebsd-arm64: 0.14.21 - esbuild-linux-32: 0.14.21 - esbuild-linux-64: 0.14.21 - esbuild-linux-arm: 0.14.21 - esbuild-linux-arm64: 0.14.21 - esbuild-linux-mips64le: 0.14.21 - esbuild-linux-ppc64le: 0.14.21 - esbuild-linux-riscv64: 0.14.21 - esbuild-linux-s390x: 0.14.21 - esbuild-netbsd-64: 0.14.21 - esbuild-openbsd-64: 0.14.21 - esbuild-sunos-64: 0.14.21 - esbuild-windows-32: 0.14.21 - esbuild-windows-64: 0.14.21 - esbuild-windows-arm64: 0.14.21 + esbuild-android-arm64: registry.npmjs.org/esbuild-android-arm64/0.14.21 + esbuild-darwin-64: registry.npmjs.org/esbuild-darwin-64/0.14.21 + esbuild-darwin-arm64: registry.npmjs.org/esbuild-darwin-arm64/0.14.21 + esbuild-freebsd-64: registry.npmjs.org/esbuild-freebsd-64/0.14.21 + esbuild-freebsd-arm64: registry.npmjs.org/esbuild-freebsd-arm64/0.14.21 + esbuild-linux-32: registry.npmjs.org/esbuild-linux-32/0.14.21 + esbuild-linux-64: registry.npmjs.org/esbuild-linux-64/0.14.21 + esbuild-linux-arm: registry.npmjs.org/esbuild-linux-arm/0.14.21 + esbuild-linux-arm64: registry.npmjs.org/esbuild-linux-arm64/0.14.21 + esbuild-linux-mips64le: registry.npmjs.org/esbuild-linux-mips64le/0.14.21 + esbuild-linux-ppc64le: registry.npmjs.org/esbuild-linux-ppc64le/0.14.21 + esbuild-linux-riscv64: registry.npmjs.org/esbuild-linux-riscv64/0.14.21 + esbuild-linux-s390x: registry.npmjs.org/esbuild-linux-s390x/0.14.21 + esbuild-netbsd-64: registry.npmjs.org/esbuild-netbsd-64/0.14.21 + esbuild-openbsd-64: registry.npmjs.org/esbuild-openbsd-64/0.14.21 + esbuild-sunos-64: registry.npmjs.org/esbuild-sunos-64/0.14.21 + esbuild-windows-32: registry.npmjs.org/esbuild-windows-32/0.14.21 + esbuild-windows-64: registry.npmjs.org/esbuild-windows-64/0.14.21 + esbuild-windows-arm64: registry.npmjs.org/esbuild-windows-arm64/0.14.21 /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -4885,7 +4582,7 @@ packages: esutils: 2.0.3 optionator: 0.8.3 optionalDependencies: - source-map: 0.6.1 + source-map: registry.npmjs.org/source-map/0.6.1 dev: true /eslint-scope/5.1.1: @@ -5156,7 +4853,7 @@ packages: get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: - '@types/yauzl': 2.9.2 + '@types/yauzl': registry.npmjs.org/@types/yauzl/2.9.2 transitivePeerDependencies: - supports-color dev: true @@ -5359,13 +5056,6 @@ packages: resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=} dev: true - /fsevents/2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - optional: true - /function-bind/1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} @@ -6121,7 +5811,7 @@ packages: micromatch: 4.0.4 walker: 1.0.8 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 dev: true /jest-jasmine2/27.4.2: @@ -6538,7 +6228,7 @@ packages: /jsonfile/4.0.0: resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=} optionalDependencies: - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 dev: true /jsonfile/6.1.0: @@ -6546,7 +6236,7 @@ packages: dependencies: universalify: 2.0.0 optionalDependencies: - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 /jsprim/2.0.2: resolution: {integrity: sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==} @@ -6843,7 +6533,7 @@ packages: resolution: {integrity: sha512-xTYd4JVHpSCW+aqDof6w/MebaMVNTVYBZhbB/vi513xXdiPT92JMVCo0Jq8W2UZnzYRFeVbQiQ+I25l13JuKvA==} hasBin: true optionalDependencies: - minimist: 1.2.5 + minimist: registry.npmjs.org/minimist/1.2.5 dev: true /make-plural/6.2.2: @@ -7878,7 +7568,7 @@ packages: engines: {node: '>=10.0.0'} hasBin: true optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /run-parallel/1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -8591,7 +8281,7 @@ packages: resolve: 1.22.0 rollup: 2.60.2 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 dev: true /vlq/0.2.3: @@ -8852,5 +8542,425 @@ packages: lodash.isequal: 4.5.0 validator: 13.7.0 optionalDependencies: - commander: 2.20.3 + commander: registry.npmjs.org/commander/2.20.3 dev: true + + registry.npmjs.org/@types/yauzl/2.9.2: + resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.2.tgz} + name: '@types/yauzl' + version: 2.9.2 + requiresBuild: true + dependencies: + '@types/node': 14.18.0 + dev: true + optional: true + + registry.npmjs.org/colors/1.4.0: + resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/colors/-/colors-1.4.0.tgz} + name: colors + version: 1.4.0 + engines: {node: '>=0.1.90'} + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/commander/2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/commander/-/commander-2.20.3.tgz} + name: commander + version: 2.20.3 + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-android-arm64/0.14.2: + resolution: {integrity: sha512-hEixaKMN3XXCkoe+0WcexO4CcBVU5DCSUT+7P8JZiWZCbAjSkc9b6Yz2X5DSfQmRCtI/cQRU6TfMYrMQ5NBfdw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.2.tgz} + name: esbuild-android-arm64 + version: 0.14.2 + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-android-arm64/0.14.21: + resolution: {integrity: sha512-Bqgld1TY0wZv8TqiQmVxQFgYzz8ZmyzT7clXBDZFkOOdRybzsnj8AZuK1pwcLVA7Ya6XncHgJqIao7NFd3s0RQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.21.tgz} + name: esbuild-android-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-darwin-64/0.14.2: + resolution: {integrity: sha512-Uq8t0cbJQkxkQdbUfOl2wZqZ/AtLZjvJulR1HHnc96UgyzG9YlCLSDMiqjM+NANEy7/zzvwKJsy3iNC9wwqLJA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.2.tgz} + name: esbuild-darwin-64 + version: 0.14.2 + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-darwin-64/0.14.21: + resolution: {integrity: sha512-j+Eg+e13djzyYINVvAbOo2/zvZ2DivuJJTaBrJnJHSD7kUNuGHRkHoSfFjbI80KHkn091w350wdmXDNSgRjfYQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.21.tgz} + name: esbuild-darwin-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-darwin-arm64/0.14.2: + resolution: {integrity: sha512-619MSa17sr7YCIrUj88KzQu2ESA4jKYtIYfLU/smX6qNgxQt3Y/gzM4s6sgJ4fPQzirvmXgcHv1ZNQAs/Xh48A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.2.tgz} + name: esbuild-darwin-arm64 + version: 0.14.2 + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-darwin-arm64/0.14.21: + resolution: {integrity: sha512-nDNTKWDPI0RuoPj5BhcSB2z5EmZJJAyRtZLIjyXSqSpAyoB8eyAKXl4lB8U2P78Fnh4Lh1le/fmpewXE04JhBQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.21.tgz} + name: esbuild-darwin-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-freebsd-64/0.14.2: + resolution: {integrity: sha512-aP6FE/ZsChZpUV6F3HE3x1Pz0paoYXycJ7oLt06g0G9dhJKknPawXCqQg/WMyD+ldCEZfo7F1kavenPdIT/SGQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.2.tgz} + name: esbuild-freebsd-64 + version: 0.14.2 + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-freebsd-64/0.14.21: + resolution: {integrity: sha512-zIurkCHXhxELiDZtLGiexi8t8onQc2LtuE+S7457H/pP0g0MLRKMrsn/IN4LDkNe6lvBjuoZZi2OfelOHn831g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.21.tgz} + name: esbuild-freebsd-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-freebsd-arm64/0.14.2: + resolution: {integrity: sha512-LSm98WTb1QIhyS83+Po0KTpZNdd2XpVpI9ua5rLWqKWbKeNRFwOsjeiuwBaRNc+O32s9oC2ZMefETxHBV6VNkQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.2.tgz} + name: esbuild-freebsd-arm64 + version: 0.14.2 + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-freebsd-arm64/0.14.21: + resolution: {integrity: sha512-wdxMmkJfbwcN+q85MpeUEamVZ40FNsBa9mPq8tAszDn8TRT2HoJvVRADPIIBa9SWWwlDChIMjkDKAnS3KS/sPA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.21.tgz} + name: esbuild-freebsd-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-32/0.14.2: + resolution: {integrity: sha512-8VxnNEyeUbiGflTKcuVc5JEPTqXfsx2O6ABwUbfS1Hp26lYPRPC7pKQK5Dxa0MBejGc50jy7YZae3EGQUQ8EkQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.2.tgz} + name: esbuild-linux-32 + version: 0.14.2 + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-32/0.14.21: + resolution: {integrity: sha512-fmxvyzOPPh2xiEHojpCeIQP6pXcoKsWbz3ryDDIKLOsk4xp3GbpHIEAWP0xTeuhEbendmvBDVKbAVv3PnODXLg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.21.tgz} + name: esbuild-linux-32 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-64/0.14.2: + resolution: {integrity: sha512-4bzMS2dNxOJoFIiHId4w+tqQzdnsch71JJV1qZnbnErSFWcR9lRgpSqWnTTFtv6XM+MvltRzSXC5wQ7AEBY6Hg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.2.tgz} + name: esbuild-linux-64 + version: 0.14.2 + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-64/0.14.21: + resolution: {integrity: sha512-edZyNOv1ql+kpmlzdqzzDjRQYls+tSyi4QFi+PdBhATJFUqHsnNELWA9vMSzAaInPOEaVUTA5Ml28XFChcy4DA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.21.tgz} + name: esbuild-linux-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-arm/0.14.2: + resolution: {integrity: sha512-PaylahvMHhH8YMfJPMKEqi64qA0Su+d4FNfHKvlKes/2dUe4QxgbwXT9oLVgy8iJdcFMrO7By4R8fS8S0p8aVQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.2.tgz} + name: esbuild-linux-arm + version: 0.14.2 + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-arm/0.14.21: + resolution: {integrity: sha512-aSU5pUueK6afqmLQsbU+QcFBT62L+4G9hHMJDHWfxgid6hzhSmfRH9U/f+ymvxsSTr/HFRU4y7ox8ZyhlVl98w==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.21.tgz} + name: esbuild-linux-arm + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-arm64/0.14.2: + resolution: {integrity: sha512-RlIVp0RwJrdtasDF1vTFueLYZ8WuFzxoQ1OoRFZOTyJHCGCNgh7xJIC34gd7B7+RT0CzLBB4LcM5n0LS+hIoww==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.2.tgz} + name: esbuild-linux-arm64 + version: 0.14.2 + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-arm64/0.14.21: + resolution: {integrity: sha512-t5qxRkq4zdQC0zXpzSB2bTtfLgOvR0C6BXYaRE/6/k8/4SrkZcTZBeNu+xGvwCU4b5dU9ST9pwIWkK6T1grS8g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.21.tgz} + name: esbuild-linux-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-mips64le/0.14.2: + resolution: {integrity: sha512-Fdwrq2roFnO5oetIiUQQueZ3+5soCxBSJswg3MvYaXDomj47BN6oAWMZgLrFh1oVrtWrxSDLCJBenYdbm2s+qQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.2.tgz} + name: esbuild-linux-mips64le + version: 0.14.2 + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-mips64le/0.14.21: + resolution: {integrity: sha512-jLZLQGCNlUsmIHtGqNvBs3zN+7a4D9ckf0JZ+jQTwHdZJ1SgV9mAjbB980OFo66LoY+WeM7t3WEnq3FjI1zw4A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.21.tgz} + name: esbuild-linux-mips64le + version: 0.14.21 + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-ppc64le/0.14.2: + resolution: {integrity: sha512-vxptskw8JfCDD9QqpRO0XnsM1osuWeRjPaXX1TwdveLogYsbdFtcuiuK/4FxGiNMUr1ojtnCS2rMPbY8puc5NA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.2.tgz} + name: esbuild-linux-ppc64le + version: 0.14.2 + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-ppc64le/0.14.21: + resolution: {integrity: sha512-4TWxpK391en2UBUw6GSrukToTDu6lL9vkm3Ll40HrI08WG3qcnJu7bl8e1+GzelDsiw1QmfAY/nNvJ6iaHRpCQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.21.tgz} + name: esbuild-linux-ppc64le + version: 0.14.21 + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-riscv64/0.14.21: + resolution: {integrity: sha512-fElngqOaOfTsF+u+oetDLHsPG74vB2ZaGZUqmGefAJn3a5z9Z2pNa4WpVbbKgHpaAAy5tWM1m1sbGohj6Ki6+Q==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.21.tgz} + name: esbuild-linux-riscv64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-s390x/0.14.21: + resolution: {integrity: sha512-brleZ6R5fYv0qQ7ZBwenQmP6i9TdvJCB092c/3D3pTLQHBGHJb5zWgKxOeS7bdHzmLy6a6W7GbFk6QKpjyD6QA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.21.tgz} + name: esbuild-linux-s390x + version: 0.14.21 + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-netbsd-64/0.14.2: + resolution: {integrity: sha512-I8+LzYK5iSNpspS9eCV9sW67Rj8FgMHimGri4mKiGAmN0pNfx+hFX146rYtzGtewuxKtTsPywWteHx+hPRLDsw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.2.tgz} + name: esbuild-netbsd-64 + version: 0.14.2 + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-netbsd-64/0.14.21: + resolution: {integrity: sha512-nCEgsLCQ8RoFWVV8pVI+kX66ICwbPP/M9vEa0NJGIEB/Vs5sVGMqkf67oln90XNSkbc0bPBDuo4G6FxlF7PN8g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.21.tgz} + name: esbuild-netbsd-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-openbsd-64/0.14.2: + resolution: {integrity: sha512-120HgMe9elidWUvM2E6mMf0csrGwx8sYDqUIJugyMy1oHm+/nT08bTAVXuwYG/rkMIqsEO9AlMxuYnwR6En/3Q==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.2.tgz} + name: esbuild-openbsd-64 + version: 0.14.2 + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-openbsd-64/0.14.21: + resolution: {integrity: sha512-h9zLMyVD0T73MDTVYIb/qUTokwI6EJH9O6wESuTNq6+XpMSr6C5aYZ4fvFKdNELW+Xsod+yDS2hV2JTUAbFrLA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.21.tgz} + name: esbuild-openbsd-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-sunos-64/0.14.2: + resolution: {integrity: sha512-Q3xcf9Uyfra9UuCFxoLixVvdigo0daZaKJ97TL2KNA4bxRUPK18wwGUk3AxvgDQZpRmg82w9PnkaNYo7a+24ow==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.2.tgz} + name: esbuild-sunos-64 + version: 0.14.2 + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-sunos-64/0.14.21: + resolution: {integrity: sha512-Kl+7Cot32qd9oqpLdB1tEGXEkjBlijrIxMJ0+vlDFaqsODutif25on0IZlFxEBtL2Gosd4p5WCV1U7UskNQfXA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.21.tgz} + name: esbuild-sunos-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-32/0.14.2: + resolution: {integrity: sha512-TW7O49tPsrq+N1sW8mb3m24j/iDGa4xzAZH4wHWwoIzgtZAYPKC0hpIhufRRG/LA30bdMChO9pjJZ5mtcybtBQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.2.tgz} + name: esbuild-windows-32 + version: 0.14.2 + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-windows-32/0.14.21: + resolution: {integrity: sha512-V7vnTq67xPBUCk/9UtlolmQ798Ecjdr1ZoI1vcSgw7M82aSSt0eZdP6bh5KAFZU8pxDcx3qoHyWQfHYr11f22A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.21.tgz} + name: esbuild-windows-32 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-64/0.14.2: + resolution: {integrity: sha512-Rym6ViMNmi1E2QuQMWy0AFAfdY0wGwZD73BnzlsQBX5hZBuy/L+Speh7ucUZ16gwsrMM9v86icZUDrSN/lNBKg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.2.tgz} + name: esbuild-windows-64 + version: 0.14.2 + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-windows-64/0.14.21: + resolution: {integrity: sha512-kDgHjKOHwjfJDCyRGELzVxiP/RBJBTA+wyspf78MTTJQkyPuxH2vChReNdWc+dU2S4gIZFHMdP1Qrl/k22ZmaA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.21.tgz} + name: esbuild-windows-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-arm64/0.14.2: + resolution: {integrity: sha512-ZrLbhr0vX5Em/P1faMnHucjVVWPS+m3tktAtz93WkMZLmbRJevhiW1y4CbulBd2z0MEdXZ6emDa1zFHq5O5bSA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.2.tgz} + name: esbuild-windows-arm64 + version: 0.14.2 + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-windows-arm64/0.14.21: + resolution: {integrity: sha512-8Sbo0zpzgwWrwjQYLmHF78f7E2xg5Ve63bjB2ng3V2aManilnnTGaliq2snYg+NOX60+hEvJHRdVnuIAHW0lVw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.21.tgz} + name: esbuild-windows-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/fsevents/2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz} + name: fsevents + version: 2.3.2 + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/graceful-fs/4.2.8: + resolution: {integrity: sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz} + name: graceful-fs + version: 4.2.8 + requiresBuild: true + optional: true + + registry.npmjs.org/minimist/1.2.5: + resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz} + name: minimist + version: 1.2.5 + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/source-map/0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz} + name: source-map + version: 0.6.1 + engines: {node: '>=0.10.0'} + requiresBuild: true + dev: true + optional: true
0233906ca5128ec8cc468c9e485adc9fd7dfde18
2024-09-30 15:10:49
DCloud_LXH
chore: remove surplus constant
false
remove surplus constant
chore
diff --git a/packages/uni-app-plus/src/constants.ts b/packages/uni-app-plus/src/constants.ts index cd1441ae2e0..e342f777094 100644 --- a/packages/uni-app-plus/src/constants.ts +++ b/packages/uni-app-plus/src/constants.ts @@ -22,4 +22,3 @@ export const WEBVIEW_ID_PREFIX = 'webviewId' export const INIT_PAGE_SCROLL = 'initPageScroll' export const API_SET_LOCALE = 'setLocale' -export const BASE64_TO_TEMP_FILE_PATH = 'base64ToTempFilePath'
5aac7fd64838463f689d94863cc3e001eb1b0185
2021-05-25 17:14:39
fxy060608
feat: add unsupported api
false
add unsupported api
feat
diff --git a/packages/uni-api/src/helpers/api/index.ts b/packages/uni-api/src/helpers/api/index.ts index 203f927c34b..6256e52823c 100644 --- a/packages/uni-api/src/helpers/api/index.ts +++ b/packages/uni-api/src/helpers/api/index.ts @@ -233,3 +233,23 @@ export function defineAsyncApi<T extends AsyncApiLike, P = AsyncApiOptions<T>>( wrapperAsyncApi(name, fn as any, __DEV__ ? protocol : undefined, options) ) as AsyncApi<P> } + +function createUnsupportedMsg(name: string) { + return `method 'uni.${name}' not supported` +} + +export function createUnsupportedSyncApi(name: string) { + return (): any => { + console.error(createUnsupportedMsg(name)) + } +} + +export const createUnsupportedOnApi = createUnsupportedSyncApi +export const createUnsupportedOffApi = createUnsupportedSyncApi +export const createUnsupportedTaskApi = createUnsupportedSyncApi + +export function createUnsupportedAsyncApi(name: string) { + return (_args: unknown, { reject }: { reject: (err?: string) => void }) => { + return reject(createUnsupportedMsg(name)) + } +} diff --git a/packages/uni-api/src/index.ts b/packages/uni-api/src/index.ts index ceba06202a3..2b8f5dddc6b 100644 --- a/packages/uni-api/src/index.ts +++ b/packages/uni-api/src/index.ts @@ -45,6 +45,8 @@ export * from './protocols/media/chooseFile' export * from './protocols/media/getImageInfo' export * from './protocols/media/previewImage' export * from './protocols/media/getVideoInfo' +export * from './protocols/media/saveImageToPhotosAlbum' +export * from './protocols/media/saveVideoToPhotosAlbum' export * from './protocols/network/request' export * from './protocols/network/downloadFile' @@ -75,6 +77,11 @@ export { defineTaskApi, defineSyncApi, defineAsyncApi, + createUnsupportedOnApi, + createUnsupportedOffApi, + createUnsupportedTaskApi, + createUnsupportedSyncApi, + createUnsupportedAsyncApi, } from './helpers/api' export { handlePromise } from './helpers/api/promise' diff --git a/packages/uni-api/src/protocols/media/saveImageToPhotosAlbum.ts b/packages/uni-api/src/protocols/media/saveImageToPhotosAlbum.ts new file mode 100644 index 00000000000..a517e584799 --- /dev/null +++ b/packages/uni-api/src/protocols/media/saveImageToPhotosAlbum.ts @@ -0,0 +1,3 @@ +export const API_SAVE_IMAGE_TO_PHOTOS_ALBUM = 'saveImageToPhotosAlbum' +export type API_TYPE_SAVE_IMAGE_TO_PHOTOS_ALBUM = + typeof uni.saveImageToPhotosAlbum diff --git a/packages/uni-api/src/protocols/media/saveVideoToPhotosAlbum.ts b/packages/uni-api/src/protocols/media/saveVideoToPhotosAlbum.ts new file mode 100644 index 00000000000..e15579abae3 --- /dev/null +++ b/packages/uni-api/src/protocols/media/saveVideoToPhotosAlbum.ts @@ -0,0 +1,3 @@ +export const API_SAVE_VIDEO_TO_PHOTOS_ALBUM = 'saveVideoToPhotosAlbum' +export type API_TYPE_SAVE_VIDEO_TO_PHOTOS_ALBUM = + typeof uni.saveVideoToPhotosAlbum diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index c84bc166c25..41a0b4bd560 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -10568,8 +10568,8 @@ var LayoutComponent = /* @__PURE__ */ defineSystemComponent({ const { layoutState, windowState - } = __UNI_FEATURE_RESPONSIVE__ ? useState() : {}; - layoutState && useMaxWidth(layoutState, rootRef); + } = useState(); + useMaxWidth(layoutState, rootRef); const topWindow = __UNI_FEATURE_TOPWINDOW__ && useTopWindow(layoutState); const leftWindow = __UNI_FEATURE_LEFTWINDOW__ && useLeftWindow(layoutState); const rightWindow = __UNI_FEATURE_RIGHTWINDOW__ && useRightWindow(layoutState); @@ -10631,6 +10631,17 @@ function useMaxWidth(layoutState, rootRef) { vue.watch([() => route.path], checkMaxWidth); } function useState() { + if (!__UNI_FEATURE_RESPONSIVE__) { + const layoutState2 = vue.reactive({ + marginWidth: 0 + }); + vue.watch(() => layoutState2.marginWidth, (value) => updateCssVar({ + "--window-margin": value + "px" + })); + return { + layoutState: layoutState2 + }; + } const topWindowMediaQuery = vue.ref(false); const leftWindowMediaQuery = vue.ref(false); const rightWindowMediaQuery = vue.ref(false); diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 32b03661917..fefdc27616a 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -1680,6 +1680,20 @@ function defineSyncApi(name, fn, protocol, options) { function defineAsyncApi(name, fn, protocol, options) { return promisify(wrapperAsyncApi(name, fn, process.env.NODE_ENV !== "production" ? protocol : void 0, options)); } +function createUnsupportedMsg(name) { + return `method 'uni.${name}' not supported`; +} +function createUnsupportedSyncApi(name) { + return () => { + console.error(createUnsupportedMsg(name)); + }; +} +const createUnsupportedOnApi = createUnsupportedSyncApi; +function createUnsupportedAsyncApi(name) { + return (_args, {reject}) => { + return reject(createUnsupportedMsg(name)); + }; +} const API_BASE64_TO_ARRAY_BUFFER = "base64ToArrayBuffer"; const Base64ToArrayBufferProtocol = [ { @@ -11750,6 +11764,8 @@ const GetVideoInfoProtocol = { required: true } }; +const API_SAVE_IMAGE_TO_PHOTOS_ALBUM = "saveImageToPhotosAlbum"; +const API_SAVE_VIDEO_TO_PHOTOS_ALBUM = "saveVideoToPhotosAlbum"; const API_REQUEST = "request"; const dataType = { JSON: "json" @@ -18057,8 +18073,8 @@ var LayoutComponent = /* @__PURE__ */ defineSystemComponent({ const { layoutState, windowState - } = __UNI_FEATURE_RESPONSIVE__ ? useState() : {}; - layoutState && useMaxWidth(layoutState, rootRef); + } = useState(); + useMaxWidth(layoutState, rootRef); const topWindow = __UNI_FEATURE_TOPWINDOW__ && useTopWindow(layoutState); const leftWindow = __UNI_FEATURE_LEFTWINDOW__ && useLeftWindow(layoutState); const rightWindow = __UNI_FEATURE_RIGHTWINDOW__ && useRightWindow(layoutState); @@ -18139,6 +18155,17 @@ function useMaxWidth(layoutState, rootRef) { }); } function useState() { + if (!__UNI_FEATURE_RESPONSIVE__) { + const layoutState2 = reactive({ + marginWidth: 0 + }); + watch(() => layoutState2.marginWidth, (value) => updateCssVar({ + "--window-margin": value + "px" + })); + return { + layoutState: layoutState2 + }; + } const topWindowMediaQuery = ref(false); const leftWindowMediaQuery = ref(false); const rightWindowMediaQuery = ref(false); @@ -18470,6 +18497,46 @@ const setRightWindowStyle = /* @__PURE__ */ defineSyncApi("setRightWindowStyle", state2.rightWindowStyle = style; } }); +const saveImageToPhotosAlbum = /* @__PURE__ */ defineAsyncApi(API_SAVE_IMAGE_TO_PHOTOS_ALBUM, createUnsupportedAsyncApi(API_SAVE_IMAGE_TO_PHOTOS_ALBUM)); +const API_GET_RECORDER_MANAGER = "getRecorderManager"; +const getRecorderManager = /* @__PURE__ */ defineSyncApi(API_GET_RECORDER_MANAGER, createUnsupportedSyncApi(API_GET_RECORDER_MANAGER)); +const saveVideoToPhotosAlbum = /* @__PURE__ */ defineAsyncApi(API_SAVE_VIDEO_TO_PHOTOS_ALBUM, createUnsupportedAsyncApi(API_SAVE_VIDEO_TO_PHOTOS_ALBUM)); +const API_CREATE_CAMERA_CONTEXT = "createCameraContext"; +const createCameraContext = /* @__PURE__ */ defineSyncApi(API_CREATE_CAMERA_CONTEXT, createUnsupportedSyncApi(API_CREATE_CAMERA_CONTEXT)); +const API_CREATE_LIVE_PLAYER_CONTEXT = "createLivePlayerContext"; +const createLivePlayerContext = /* @__PURE__ */ defineSyncApi(API_CREATE_LIVE_PLAYER_CONTEXT, createUnsupportedSyncApi(API_CREATE_LIVE_PLAYER_CONTEXT)); +const API_SAVE_FILE = "saveFile"; +const saveFile = /* @__PURE__ */ defineAsyncApi(API_SAVE_FILE, createUnsupportedAsyncApi(API_SAVE_FILE)); +const API_GET_SAVED_FILE_LIST = "getSavedFileList"; +const getSavedFileList = /* @__PURE__ */ defineAsyncApi(API_GET_SAVED_FILE_LIST, createUnsupportedAsyncApi(API_GET_SAVED_FILE_LIST)); +const API_GET_SAVED_FILE_INFO = "getSavedFileInfo"; +const getSavedFileInfo = /* @__PURE__ */ defineAsyncApi(API_GET_SAVED_FILE_INFO, createUnsupportedAsyncApi(API_GET_SAVED_FILE_INFO)); +const API_REMOVE_SAVED_FILE_INFO = "removeSavedFileInfo"; +const removeSavedFileInfo = /* @__PURE__ */ defineAsyncApi(API_REMOVE_SAVED_FILE_INFO, createUnsupportedAsyncApi(API_REMOVE_SAVED_FILE_INFO)); +const API_ON_MEMORY_WARNING = "onMemoryWarning"; +const onMemoryWarning = /* @__PURE__ */ defineOnApi(API_ON_MEMORY_WARNING, createUnsupportedOnApi(API_ON_MEMORY_WARNING)); +const API_ON_GYROSCOPE_CHANGE = "onGyroscopeChange"; +const onGyroscopeChange = /* @__PURE__ */ defineOnApi(API_ON_GYROSCOPE_CHANGE, createUnsupportedOnApi(API_ON_GYROSCOPE_CHANGE)); +const API_START_GYROSCOPE = "startGyroscope"; +const startGyroscope = /* @__PURE__ */ defineAsyncApi(API_START_GYROSCOPE, createUnsupportedAsyncApi(API_START_GYROSCOPE)); +const API_STOP_GYROSCOPE = "stopGyroscope"; +const stopGyroscope = /* @__PURE__ */ defineAsyncApi(API_STOP_GYROSCOPE, createUnsupportedAsyncApi(API_STOP_GYROSCOPE)); +const API_SCAN_CODE = "scanCode"; +const scanCode = /* @__PURE__ */ defineAsyncApi(API_SCAN_CODE, createUnsupportedAsyncApi(API_SCAN_CODE)); +const API_SET_SCREEN_BRIGHTNESS = "setScreenBrightness"; +const setScreenBrightness = /* @__PURE__ */ defineAsyncApi(API_SET_SCREEN_BRIGHTNESS, createUnsupportedAsyncApi(API_SET_SCREEN_BRIGHTNESS)); +const API_GET_SCREEN_BRIGHTNESS = "getScreenBrightness"; +const getScreenBrightness = /* @__PURE__ */ defineAsyncApi(API_GET_SCREEN_BRIGHTNESS, createUnsupportedAsyncApi(API_GET_SCREEN_BRIGHTNESS)); +const API_SET_KEEP_SCREEN_ON = "setKeepScreenOn"; +const setKeepScreenOn = /* @__PURE__ */ defineAsyncApi(API_SET_KEEP_SCREEN_ON, createUnsupportedAsyncApi(API_SET_KEEP_SCREEN_ON)); +const API_ON_USER_CAPTURE_SCREEN = "onUserCaptureScreen"; +const onUserCaptureScreen = /* @__PURE__ */ defineOnApi(API_ON_USER_CAPTURE_SCREEN, createUnsupportedOnApi(API_ON_USER_CAPTURE_SCREEN)); +const API_ADD_PHONE_CONTACT = "addPhoneContact"; +const addPhoneContact = /* @__PURE__ */ defineAsyncApi(API_ADD_PHONE_CONTACT, createUnsupportedAsyncApi(API_ADD_PHONE_CONTACT)); +const API_LOGIN = "login"; +const login = /* @__PURE__ */ defineAsyncApi(API_LOGIN, createUnsupportedAsyncApi(API_LOGIN)); +const API_GET_PROVIDER = "getProvider"; +const getProvider = /* @__PURE__ */ defineAsyncApi(API_GET_PROVIDER, createUnsupportedAsyncApi(API_GET_PROVIDER)); var api = /* @__PURE__ */ Object.freeze({ __proto__: null, [Symbol.toStringTag]: "Module", @@ -18590,7 +18657,28 @@ var api = /* @__PURE__ */ Object.freeze({ getLeftWindowStyle, setLeftWindowStyle, getRightWindowStyle, - setRightWindowStyle + setRightWindowStyle, + saveImageToPhotosAlbum, + getRecorderManager, + saveVideoToPhotosAlbum, + createCameraContext, + createLivePlayerContext, + saveFile, + getSavedFileList, + getSavedFileInfo, + removeSavedFileInfo, + onMemoryWarning, + onGyroscopeChange, + startGyroscope, + stopGyroscope, + scanCode, + setScreenBrightness, + getScreenBrightness, + setKeepScreenOn, + onUserCaptureScreen, + addPhoneContact, + login, + getProvider }); const CONTEXT_ID = "MAP_LOCATION"; const ICON_PATH = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII="; @@ -20578,4 +20666,4 @@ var index = /* @__PURE__ */ defineSystemComponent({ return openBlock(), createBlock("div", clazz, [loadingVNode]); } }); -export {$emit, $off, $on, $once, index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, _sfc_main$2 as Audio, index$r as Button, index$q as Canvas, index$o as Checkbox, index$p as CheckboxGroup, index$3 as CoverImage, index$4 as CoverView, index$n as Editor, index$t as Form, Friction, index$m as Icon, index$l as Image, Input, index$s as Label, LayoutComponent, Map$1 as Map, MovableArea, MovableView, index$k as Navigator, index$2 as PageComponent, _sfc_main$1 as Picker, PickerView, PickerViewColumn, index$j as Progress, index$h as Radio, index$i as RadioGroup, ResizeSensor, index$g as RichText, ScrollView, Scroller, index$f as Slider, Spring, Swiper, SwiperItem, index$e as Switch, index$d as Text, index$c as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$7 as Video, index$b as View, index$6 as WebView, addInterceptor, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseLocation, chooseVideo, clearStorage, clearStorageSync, closeSocket, connectSocket, createAnimation, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createMapContext, createMediaQueryObserver, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, defineBuiltInComponent, defineSystemComponent, disableScrollBounce, downloadFile, getApp$1 as getApp, getContextInfo, getCurrentPages$1 as getCurrentPages, getFileInfo, getImageInfo, getLeftWindowStyle, getLocation, getNetworkType, getRightWindowStyle, getSelectedTextRange, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getTopWindowStyle, getVideoInfo, hideKeyboard, hideLeftWindow, hideLoading, hideNavigationBarLoading, hideRightWindow, hideTabBar, hideTabBarRedDot, hideToast, hideTopWindow, initScrollBounce, loadFontFace, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offCompassChange, offNetworkStatusChange, offWindowResize, onAccelerometerChange, onCompassChange, onNetworkStatusChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, onWindowResize, openDocument, openLocation, pageScrollTo, index$8 as plugin, preloadPage, previewImage, promiseInterceptor, reLaunch, redirectTo, removeInterceptor, removeStorage, removeStorageSync, removeTabBarBadge, request, sendSocketMessage, setLeftWindowStyle, setNavigationBarColor, setNavigationBarTitle, setRightWindowStyle, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopWindowStyle, setupApp, setupPage, showActionSheet, showLeftWindow, showLoading, showModal, showNavigationBarLoading, showRightWindow, showTabBar, showTabBarRedDot, showToast, showTopWindow, startAccelerometer, startCompass, startPullDownRefresh, stopAccelerometer, stopCompass, stopPullDownRefresh, switchTab, uni$1 as uni, uniFormKey, uploadFile, upx2px, useAttrs, useBooleanAttr, useContextInfo, useCustomEvent, useNativeEvent, useOn, useScroller, useSubscribe, useTouchtrack, useUserAction, vibrateLong, vibrateShort, withWebEvent}; +export {$emit, $off, $on, $once, index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, _sfc_main$2 as Audio, index$r as Button, index$q as Canvas, index$o as Checkbox, index$p as CheckboxGroup, index$3 as CoverImage, index$4 as CoverView, index$n as Editor, index$t as Form, Friction, index$m as Icon, index$l as Image, Input, index$s as Label, LayoutComponent, Map$1 as Map, MovableArea, MovableView, index$k as Navigator, index$2 as PageComponent, _sfc_main$1 as Picker, PickerView, PickerViewColumn, index$j as Progress, index$h as Radio, index$i as RadioGroup, ResizeSensor, index$g as RichText, ScrollView, Scroller, index$f as Slider, Spring, Swiper, SwiperItem, index$e as Switch, index$d as Text, index$c as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$7 as Video, index$b as View, index$6 as WebView, addInterceptor, addPhoneContact, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseLocation, chooseVideo, clearStorage, clearStorageSync, closeSocket, connectSocket, createAnimation, createCameraContext, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createLivePlayerContext, createMapContext, createMediaQueryObserver, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, defineBuiltInComponent, defineSystemComponent, disableScrollBounce, downloadFile, getApp$1 as getApp, getContextInfo, getCurrentPages$1 as getCurrentPages, getFileInfo, getImageInfo, getLeftWindowStyle, getLocation, getNetworkType, getProvider, getRecorderManager, getRightWindowStyle, getSavedFileInfo, getSavedFileList, getScreenBrightness, getSelectedTextRange, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getTopWindowStyle, getVideoInfo, hideKeyboard, hideLeftWindow, hideLoading, hideNavigationBarLoading, hideRightWindow, hideTabBar, hideTabBarRedDot, hideToast, hideTopWindow, initScrollBounce, loadFontFace, login, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offCompassChange, offNetworkStatusChange, offWindowResize, onAccelerometerChange, onCompassChange, onGyroscopeChange, onMemoryWarning, onNetworkStatusChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, onUserCaptureScreen, onWindowResize, openDocument, openLocation, pageScrollTo, index$8 as plugin, preloadPage, previewImage, promiseInterceptor, reLaunch, redirectTo, removeInterceptor, removeSavedFileInfo, removeStorage, removeStorageSync, removeTabBarBadge, request, saveFile, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, sendSocketMessage, setKeepScreenOn, setLeftWindowStyle, setNavigationBarColor, setNavigationBarTitle, setRightWindowStyle, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopWindowStyle, setupApp, setupPage, showActionSheet, showLeftWindow, showLoading, showModal, showNavigationBarLoading, showRightWindow, showTabBar, showTabBarRedDot, showToast, showTopWindow, startAccelerometer, startCompass, startGyroscope, startPullDownRefresh, stopAccelerometer, stopCompass, stopGyroscope, stopPullDownRefresh, switchTab, uni$1 as uni, uniFormKey, uploadFile, upx2px, useAttrs, useBooleanAttr, useContextInfo, useCustomEvent, useNativeEvent, useOn, useScroller, useSubscribe, useTouchtrack, useUserAction, vibrateLong, vibrateShort, withWebEvent}; diff --git a/packages/uni-h5/src/framework/components/layout/index.tsx b/packages/uni-h5/src/framework/components/layout/index.tsx index fdff204edad..837df8857ba 100644 --- a/packages/uni-h5/src/framework/components/layout/index.tsx +++ b/packages/uni-h5/src/framework/components/layout/index.tsx @@ -47,10 +47,8 @@ export default /*#__PURE__*/ defineSystemComponent({ !__NODE_JS__ && initCssVar() const keepAliveRoute = (__UNI_FEATURE_PAGES__ && useKeepAliveRoute()) as KeepAliveRoute - const { layoutState, windowState } = __UNI_FEATURE_RESPONSIVE__ - ? useState() - : ({} as { layoutState: undefined; windowState: undefined }) - layoutState && useMaxWidth(layoutState, rootRef) + const { layoutState, windowState } = useState() + useMaxWidth(layoutState, rootRef) const topWindow = __UNI_FEATURE_TOPWINDOW__ && useTopWindow(layoutState!) const leftWindow = __UNI_FEATURE_LEFTWINDOW__ && useLeftWindow(layoutState!) const rightWindow = @@ -185,6 +183,17 @@ function useMaxWidth( } function useState() { + if (!__UNI_FEATURE_RESPONSIVE__) { + // max width + const layoutState = reactive({ + marginWidth: 0, + }) as LayoutState + watch( + () => layoutState.marginWidth, + (value) => updateCssVar({ '--window-margin': value + 'px' }) + ) + return { layoutState } + } const topWindowMediaQuery = ref(false) const leftWindowMediaQuery = ref(false) const rightWindowMediaQuery = ref(false) diff --git a/packages/uni-h5/src/service/api/index.ts b/packages/uni-h5/src/service/api/index.ts index 0f327a59e21..ece642f2823 100644 --- a/packages/uni-h5/src/service/api/index.ts +++ b/packages/uni-h5/src/service/api/index.ts @@ -61,6 +61,8 @@ export * from './ui/stopPullDownRefresh' export * from './ui/tabBar' export * from './ui/window' +export * from './todo/index' + export { upx2px, addInterceptor, diff --git a/packages/uni-h5/src/service/api/todo/index.ts b/packages/uni-h5/src/service/api/todo/index.ts new file mode 100644 index 00000000000..04ccd0bff41 --- /dev/null +++ b/packages/uni-h5/src/service/api/todo/index.ts @@ -0,0 +1,175 @@ +import { + API_SAVE_IMAGE_TO_PHOTOS_ALBUM, + API_SAVE_VIDEO_TO_PHOTOS_ALBUM, + API_TYPE_SAVE_IMAGE_TO_PHOTOS_ALBUM, + API_TYPE_SAVE_VIDEO_TO_PHOTOS_ALBUM, + createUnsupportedAsyncApi, + createUnsupportedOnApi, + createUnsupportedSyncApi, + defineAsyncApi, + defineOnApi, + defineSyncApi, +} from '@dcloudio/uni-api' + +export const saveImageToPhotosAlbum = + defineAsyncApi<API_TYPE_SAVE_IMAGE_TO_PHOTOS_ALBUM>( + API_SAVE_IMAGE_TO_PHOTOS_ALBUM, + createUnsupportedAsyncApi(API_SAVE_IMAGE_TO_PHOTOS_ALBUM) + ) +const API_GET_RECORDER_MANAGER = 'getRecorderManager' +export const getRecorderManager = defineSyncApi<typeof uni.getRecorderManager>( + API_GET_RECORDER_MANAGER, + createUnsupportedSyncApi(API_GET_RECORDER_MANAGER) +) + +export const saveVideoToPhotosAlbum = + defineAsyncApi<API_TYPE_SAVE_VIDEO_TO_PHOTOS_ALBUM>( + API_SAVE_VIDEO_TO_PHOTOS_ALBUM, + createUnsupportedAsyncApi(API_SAVE_VIDEO_TO_PHOTOS_ALBUM) + ) + +const API_CREATE_CAMERA_CONTEXT = 'createCameraContext' +export const createCameraContext = defineSyncApi< + typeof uni.createCameraContext +>( + API_CREATE_CAMERA_CONTEXT, + createUnsupportedSyncApi(API_CREATE_CAMERA_CONTEXT) +) + +const API_CREATE_LIVE_PLAYER_CONTEXT = 'createLivePlayerContext' +export const createLivePlayerContext = defineSyncApi< + typeof uni.createLivePlayerContext +>( + API_CREATE_LIVE_PLAYER_CONTEXT, + createUnsupportedSyncApi(API_CREATE_LIVE_PLAYER_CONTEXT) +) + +const API_SAVE_FILE = 'saveFile' +export const saveFile = defineAsyncApi<typeof uni.saveFile>( + API_SAVE_FILE, + createUnsupportedAsyncApi(API_SAVE_FILE) +) +const API_GET_SAVED_FILE_LIST = 'getSavedFileList' +export const getSavedFileList = defineAsyncApi<typeof uni.getSavedFileList>( + API_GET_SAVED_FILE_LIST, + createUnsupportedAsyncApi(API_GET_SAVED_FILE_LIST) +) +const API_GET_SAVED_FILE_INFO = 'getSavedFileInfo' +export const getSavedFileInfo = defineAsyncApi<typeof uni.getSavedFileInfo>( + API_GET_SAVED_FILE_INFO, + createUnsupportedAsyncApi(API_GET_SAVED_FILE_INFO) +) +const API_REMOVE_SAVED_FILE_INFO = 'removeSavedFileInfo' +export const removeSavedFileInfo = defineAsyncApi( + API_REMOVE_SAVED_FILE_INFO, + createUnsupportedAsyncApi(API_REMOVE_SAVED_FILE_INFO) +) + +const API_ON_MEMORY_WARNING = 'onMemoryWarning' +export const onMemoryWarning = defineOnApi<typeof uni.onMemoryWarning>( + API_ON_MEMORY_WARNING, + createUnsupportedOnApi(API_ON_MEMORY_WARNING) +) +const API_ON_GYROSCOPE_CHANGE = 'onGyroscopeChange' +export const onGyroscopeChange = defineOnApi<typeof uni.onGyroscopeChange>( + API_ON_GYROSCOPE_CHANGE, + createUnsupportedOnApi(API_ON_GYROSCOPE_CHANGE) +) +const API_START_GYROSCOPE = 'startGyroscope' +export const startGyroscope = defineAsyncApi<typeof uni.startGyroscope>( + API_START_GYROSCOPE, + createUnsupportedAsyncApi(API_START_GYROSCOPE) +) +const API_STOP_GYROSCOPE = 'stopGyroscope' +export const stopGyroscope = defineAsyncApi<typeof uni.stopGyroscope>( + API_STOP_GYROSCOPE, + createUnsupportedAsyncApi(API_STOP_GYROSCOPE) +) + +const API_SCAN_CODE = 'scanCode' +export const scanCode = defineAsyncApi<typeof uni.scanCode>( + API_SCAN_CODE, + createUnsupportedAsyncApi(API_SCAN_CODE) +) + +const API_SET_SCREEN_BRIGHTNESS = 'setScreenBrightness' +export const setScreenBrightness = defineAsyncApi< + typeof uni.setScreenBrightness +>( + API_SET_SCREEN_BRIGHTNESS, + createUnsupportedAsyncApi(API_SET_SCREEN_BRIGHTNESS) +) + +const API_GET_SCREEN_BRIGHTNESS = 'getScreenBrightness' +export const getScreenBrightness = defineAsyncApi< + typeof uni.getScreenBrightness +>( + API_GET_SCREEN_BRIGHTNESS, + createUnsupportedAsyncApi(API_GET_SCREEN_BRIGHTNESS) +) + +const API_SET_KEEP_SCREEN_ON = 'setKeepScreenOn' +export const setKeepScreenOn = defineAsyncApi<typeof uni.setKeepScreenOn>( + API_SET_KEEP_SCREEN_ON, + createUnsupportedAsyncApi(API_SET_KEEP_SCREEN_ON) +) +const API_ON_USER_CAPTURE_SCREEN = 'onUserCaptureScreen' +export const onUserCaptureScreen = defineOnApi<typeof uni.onUserCaptureScreen>( + API_ON_USER_CAPTURE_SCREEN, + createUnsupportedOnApi(API_ON_USER_CAPTURE_SCREEN) +) +const API_ADD_PHONE_CONTACT = 'addPhoneContact' +export const addPhoneContact = defineAsyncApi<typeof uni.addPhoneContact>( + API_ADD_PHONE_CONTACT, + createUnsupportedAsyncApi(API_ADD_PHONE_CONTACT) +) + +const API_LOGIN = 'login' +export const login = defineAsyncApi<typeof uni.login>( + API_LOGIN, + createUnsupportedAsyncApi(API_LOGIN) +) +const API_GET_PROVIDER = 'getProvider' +export const getProvider = defineAsyncApi<typeof uni.getProvider>( + API_GET_PROVIDER, + createUnsupportedAsyncApi(API_GET_PROVIDER) +) + +// TODO... + +// 'openBluetoothAdapter', +// 'startBluetoothDevicesDiscovery', +// 'onBluetoothDeviceFound', +// 'stopBluetoothDevicesDiscovery', +// 'onBluetoothAdapterStateChange', +// 'getConnectedBluetoothDevices', +// 'getBluetoothDevices', +// 'getBluetoothAdapterState', +// 'closeBluetoothAdapter', +// 'writeBLECharacteristicValue', +// 'readBLECharacteristicValue', +// 'onBLEConnectionStateChange', +// 'onBLECharacteristicValueChange', +// 'notifyBLECharacteristicValueChange', +// 'getBLEDeviceServices', +// 'getBLEDeviceCharacteristics', +// 'createBLEConnection', +// 'closeBLEConnection', +// 'onBeaconServiceChange', +// 'onBeaconUpdate', +// 'getBeacons', +// 'startBeaconDiscovery', +// 'stopBeaconDiscovery', +// 'setBackgroundColor', +// 'setBackgroundTextStyle', +// 'checkSession', +// 'getUserInfo', +// 'share', +// 'onShareAppMessage', +// 'showShareMenu', +// 'hideShareMenu', +// 'requestPayment', +// 'subscribePush', +// 'unsubscribePush', +// 'onPush', +// 'offPush'
cea2f3e3be34f8c6f3cca0d10edfb7afe9e9ba41
2024-07-29 12:24:36
fxy060608
wip(x-android): tsc
false
tsc
wip
diff --git a/packages/uni-app-uts/__tests__/android/sfc/__snapshots__/compileScript.spec.ts.snap b/packages/uni-app-uts/__tests__/android/sfc/__snapshots__/compileScript.spec.ts.snap index 6af0befb2ea..dd80dbd3057 100644 --- a/packages/uni-app-uts/__tests__/android/sfc/__snapshots__/compileScript.spec.ts.snap +++ b/packages/uni-app-uts/__tests__/android/sfc/__snapshots__/compileScript.spec.ts.snap @@ -113,7 +113,7 @@ const _component_Comp = resolveComponent("Comp") default: withScopedSlotCtx(({ data }: Qux): any[] => [toDisplayString(data)]), _: 1 /* STABLE */ })), - createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list as Fred, ({ z = _ctx.x as Qux }, __key, __index, _cached): Any => { + createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list as Fred, ({ z = _ctx.x as Qux }, __key, __index, _cached): any => { return createElementVNode("view") }), 256 /* UNKEYED_FRAGMENT */) ], 64 /* STABLE_FRAGMENT */) diff --git a/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vFor.spec.ts.snap b/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vFor.spec.ts.snap index ab8868544ad..9288ba5419f 100644 --- a/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vFor.spec.ts.snap +++ b/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vFor.spec.ts.snap @@ -1,13 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`compiler: v-for codegen basic v-for 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)" `; exports[`compiler: v-for codegen keyed template v-for 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): any => { return createElementVNode(Fragment, utsMapOf({ key: item }), [ "hello", createElementVNode("text") @@ -16,31 +16,31 @@ exports[`compiler: v-for codegen keyed template v-for 1`] = ` `; exports[`compiler: v-for codegen keyed v-for 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): any => { return createElementVNode("text", utsMapOf({ key: item })) }), 128 /* KEYED_FRAGMENT */)" `; exports[`compiler: v-for codegen skipped key 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)" `; exports[`compiler: v-for codegen skipped value & key 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (__value, __key, index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (__value, __key, index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)" `; exports[`compiler: v-for codegen skipped value 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (__value, key, index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (__value, key, index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)" `; exports[`compiler: v-for codegen template v-for 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): any => { return createElementVNode(Fragment, null, [ "hello", createElementVNode("text") @@ -49,7 +49,7 @@ exports[`compiler: v-for codegen template v-for 1`] = ` `; exports[`compiler: v-for codegen template v-for key injection with single child 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): any => { return createElementVNode("text", utsMapOf({ key: item.id, id: item.id @@ -58,19 +58,19 @@ exports[`compiler: v-for codegen template v-for key injection with single child `; exports[`compiler: v-for codegen template v-for w/ <slot/> 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): any => { return renderSlot($slots, "default") }), 256 /* UNKEYED_FRAGMENT */)" `; exports[`compiler: v-for codegen v-for on <slot/> 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, __key, __index, _cached): any => { return renderSlot($slots, "default") }), 256 /* UNKEYED_FRAGMENT */)" `; exports[`compiler: v-for codegen v-for on element with custom directive 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(list, (i, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(list, (i, __key, __index, _cached): any => { return withDirectives(createElementVNode("view", null, null, 512 /* NEED_PATCH */), [ [_directive_foo] ]) @@ -78,14 +78,14 @@ exports[`compiler: v-for codegen v-for on element with custom directive 1`] = ` `; exports[`compiler: v-for codegen v-for with constant expression 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(10, (item, __key, __index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(10, (item, __key, __index, _cached): any => { return createElementVNode("p", null, toDisplayString(item), 1 /* TEXT */) }), 64 /* STABLE_FRAGMENT */)" `; exports[`compiler: v-for codegen v-if + v-for 1`] = ` "isTrue(ok) - ? createElementVNode(Fragment, utsMapOf({ key: 0 }), RenderHelpers.renderList(list, (i, __key, __index, _cached): Any => { + ? createElementVNode(Fragment, utsMapOf({ key: 0 }), RenderHelpers.renderList(list, (i, __key, __index, _cached): any => { return createElementVNode("view") }), 256 /* UNKEYED_FRAGMENT */) : createCommentVNode("v-if", true)" @@ -93,14 +93,14 @@ exports[`compiler: v-for codegen v-if + v-for 1`] = ` exports[`compiler: v-for codegen v-if + v-for on <template> 1`] = ` "isTrue(ok) - ? createElementVNode(Fragment, utsMapOf({ key: 0 }), RenderHelpers.renderList(list, (i, __key, __index, _cached): Any => { + ? createElementVNode(Fragment, utsMapOf({ key: 0 }), RenderHelpers.renderList(list, (i, __key, __index, _cached): any => { return createElementVNode(Fragment, null, [], 64 /* STABLE_FRAGMENT */) }), 256 /* UNKEYED_FRAGMENT */) : createCommentVNode("v-if", true)" `; exports[`compiler: v-for codegen value + key + index 1`] = ` -"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, key, index, _cached): Any => { +"createElementVNode(Fragment, null, RenderHelpers.renderList(items, (item, key, index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)" `; diff --git a/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vMemo.spec.ts.snap b/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vMemo.spec.ts.snap index 13f379c286a..ab2052efbc1 100644 --- a/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vMemo.spec.ts.snap +++ b/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vMemo.spec.ts.snap @@ -35,7 +35,7 @@ exports[`compiler: v-memo transform on template v-for 1`] = ` const _ctx = this const _cache = this.$.renderCache return createElementVNode("view", null, [ - createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, ({ x, y }, __key, __index, _cached): Any => { + createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, ({ x, y }, __key, __index, _cached): any => { const _memo: Array<any | null> = ([x, y === _ctx.z]) if (_cached != null && _cached.key === x && isMemoSame(_cached, _memo)) return _cached const _item = createElementVNode("text", utsMapOf({ key: x }), "foobar") @@ -51,7 +51,7 @@ exports[`compiler: v-memo transform on v-for 1`] = ` const _ctx = this const _cache = this.$.renderCache return createElementVNode("view", null, [ - createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, ({ x, y }, __key, __index, _cached): Any => { + createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, ({ x, y }, __key, __index, _cached): any => { const _memo: Array<any | null> = ([x, y === _ctx.z]) if (_cached != null && _cached.key === x && isMemoSame(_cached, _memo)) return _cached const _item = createElementVNode("view", utsMapOf({ key: x }), [ diff --git a/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vSlot.spec.ts.snap b/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vSlot.spec.ts.snap index 554307a26e3..10cea908800 100644 --- a/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vSlot.spec.ts.snap +++ b/packages/uni-app-uts/__tests__/android/transforms/__snapshots__/vSlot.spec.ts.snap @@ -23,7 +23,7 @@ exports[`compiler: transform component slots implicit default slot 1`] = ` exports[`compiler: transform component slots named slot with v-for w/ prefixIdentifiers: true 1`] = ` "createVNode(_component_Comp, null, createSlots(utsMapOf({ _: 2 /* DYNAMIC */ }), [ - RenderHelpers.renderList(_ctx.list, (name, __key, __item, _cached): Any => { + RenderHelpers.renderList(_ctx.list, (name, __key, __item, _cached): any => { return utsMapOf({ name: name, fn: withSlotCtx((): any[] => [toDisplayString(name)]) diff --git a/packages/uni-app-uts/__tests__/android/transforms/vFor.spec.ts b/packages/uni-app-uts/__tests__/android/transforms/vFor.spec.ts index 1f37fc23a73..6caa27ee108 100644 --- a/packages/uni-app-uts/__tests__/android/transforms/vFor.spec.ts +++ b/packages/uni-app-uts/__tests__/android/transforms/vFor.spec.ts @@ -60,7 +60,7 @@ describe('compiler: v-for', () => { test('number expression', () => { assert( `<text v-for="item in 10" :key="item" />`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(10, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(10, (item, __key, __index, _cached): any => { return createElementVNode("text", utsMapOf({ key: item })) }), 64 /* STABLE_FRAGMENT */)` ) @@ -68,7 +68,7 @@ describe('compiler: v-for', () => { test('value', () => { assert( `<text v-for="(item) in items" />`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -76,7 +76,7 @@ describe('compiler: v-for', () => { test('value and key', () => { assert( `<text v-for="(item, index) in [1,2,3]" :key="index" />`, - `createElementVNode(Fragment, null, RenderHelpers.renderList([1,2,3], (item, index, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList([1,2,3], (item, index, __index, _cached): any => { return createElementVNode("text", utsMapOf({ key: index })) }), 64 /* STABLE_FRAGMENT */)` ) @@ -84,7 +84,7 @@ describe('compiler: v-for', () => { test('value, key and index', () => { assert( `<text v-for="(item, key, index) in {a:'a',b:'b'}" :key="index" />`, - `createElementVNode(Fragment, null, RenderHelpers.renderList({a:'a',b:'b'}, (item, key, index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList({a:'a',b:'b'}, (item, key, index, _cached): any => { return createElementVNode("text", utsMapOf({ key: index })) }), 64 /* STABLE_FRAGMENT */)` ) @@ -92,7 +92,7 @@ describe('compiler: v-for', () => { test('array de-structured value', () => { assert( '<text v-for="([ id, value ]) in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, ([ id, value ], __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, ([ id, value ], __key, __index, _cached): any => { return createElementVNode(\"text\") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -100,7 +100,7 @@ describe('compiler: v-for', () => { test('object de-structured value', () => { assert( '<text v-for="({ id, value }) in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, ({ id, value }, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, ({ id, value }, __key, __index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -108,7 +108,7 @@ describe('compiler: v-for', () => { test('skipped value', () => { assert( '<text v-for="(,key,index) in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (__value, key, index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (__value, key, index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -116,7 +116,7 @@ describe('compiler: v-for', () => { test('skipped key', () => { assert( '<text v-for="(value,,index) in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (value, __key, index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (value, __key, index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -124,7 +124,7 @@ describe('compiler: v-for', () => { test('skipped value & key', () => { assert( '<text v-for="(,,index) in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (__value, __key, index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (__value, __key, index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -132,7 +132,7 @@ describe('compiler: v-for', () => { test('skipped value and key', () => { assert( '<text v-for="(,,index) in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (__value, __key, index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (__value, __key, index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -140,7 +140,7 @@ describe('compiler: v-for', () => { test('unbracketed value', () => { assert( '<text v-for="item in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): any => { return createElementVNode(\"text\") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -148,7 +148,7 @@ describe('compiler: v-for', () => { test('unbracketed value and key', () => { assert( '<text v-for="item, key in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, key, __index, _cached): any => { return createElementVNode(\"text\") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -156,7 +156,7 @@ describe('compiler: v-for', () => { test('unbracketed value and key', () => { assert( '<text v-for="value, key, index in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (value, key, index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (value, key, index, _cached): any => { return createElementVNode(\"text\") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -164,7 +164,7 @@ describe('compiler: v-for', () => { test('unbracketed skipped key', () => { assert( '<text v-for="value, , index in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (value, __key, index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (value, __key, index, _cached): any => { return createElementVNode(\"text\") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -172,7 +172,7 @@ describe('compiler: v-for', () => { test('unbracketed skipped value and key', () => { assert( '<text v-for=", , index in items" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (__value, __key, index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (__value, __key, index, _cached): any => { return createElementVNode(\"text\") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -180,7 +180,7 @@ describe('compiler: v-for', () => { test('source complex expression', () => { assert( '<text v-for="i in list.concat([foo])" />', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list.concat([_ctx.foo]), (i, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list.concat([_ctx.foo]), (i, __key, __index, _cached): any => { return createElementVNode(\"text\") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -188,7 +188,7 @@ describe('compiler: v-for', () => { test('should not prefix v-for alias', () => { assert( '<text v-for="i in list">{{ i }}{{ j }}</text>', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): any => { return createElementVNode("text", null, toDisplayString(i) + toDisplayString(_ctx.j), 1 /* TEXT */) }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -196,7 +196,7 @@ describe('compiler: v-for', () => { test('should not prefix v-for aliases (multiple)', () => { assert( '<text v-for="(i, j, k) in list">{{ i + j + k }}{{ l }}</text>', - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, j, k, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, j, k, _cached): any => { return createElementVNode("text", null, toDisplayString(i + j + k) + toDisplayString(_ctx.l), 1 /* TEXT */) }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -205,7 +205,7 @@ describe('compiler: v-for', () => { assert( '<text><text v-for="i in list" />{{ i }}</text>', `createElementVNode("text", null, [ - createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): Any => { + createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): any => { return createElementVNode("text") }), 256 /* UNKEYED_FRAGMENT */), toDisplayString(_ctx.i) @@ -217,9 +217,9 @@ describe('compiler: v-for', () => { `<view v-for="i in list"> <text v-for="i in list">{{ i + j }}</text>{{ i }} </view>`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): any => { return createElementVNode(\"view\", null, [ - createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): Any => { + createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): any => { return createElementVNode(\"text\", null, toDisplayString(i + _ctx.j), 1 /* TEXT */) }), 256 /* UNKEYED_FRAGMENT */), toDisplayString(i) @@ -232,7 +232,7 @@ describe('compiler: v-for', () => { `<text v-for="({ foo = bar, baz: [qux = quux] }) in list"> {{ foo + bar + baz + qux + quux }} </text>`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, ({ foo = _ctx.bar, baz: [qux = _ctx.quux] }, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, ({ foo = _ctx.bar, baz: [qux = _ctx.quux] }, __key, __index, _cached): any => { return createElementVNode(\"text\", null, toDisplayString(foo + _ctx.bar + _ctx.baz + qux + _ctx.quux), 1 /* TEXT */) }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -240,7 +240,7 @@ describe('compiler: v-for', () => { test('element v-for key expression prefixing', () => { assert( `<text v-for="item in items" :key="itemKey(item)">test</text>`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): any => { return createElementVNode(\"text\", utsMapOf({ key: _ctx.itemKey(item) }), \"test\") @@ -250,7 +250,7 @@ describe('compiler: v-for', () => { test('template v-for key no prefixing on attribute key', () => { assert( `<template v-for="item in items" key="key">test</template>`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): any => { return createElementVNode(Fragment, utsMapOf({ key: "key" }), [\"test\"], 64 /* STABLE_FRAGMENT */) }), 128 /* KEYED_FRAGMENT */)` ) @@ -258,7 +258,7 @@ describe('compiler: v-for', () => { test('template v-for key injection with single child', () => { assert( `<template v-for="item in items" :key="item.id"><text :id="item.id" /></template>`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): any => { return createElementVNode(\"text\", utsMapOf({ key: item.id, id: item.id @@ -269,7 +269,7 @@ describe('compiler: v-for', () => { test('v-for on <slot/>', () => { assert( `<slot v-for="item in items"></slot>`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): any => { return renderSlot(_ctx.$slots, \"default\") }), 256 /* UNKEYED_FRAGMENT */)` ) @@ -277,7 +277,7 @@ describe('compiler: v-for', () => { test('keyed v-for', () => { assert( `<text v-for="(item) in items" :key="item" />`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): any => { return createElementVNode(\"text\", utsMapOf({ key: item })) }), 128 /* KEYED_FRAGMENT */)` ) @@ -285,7 +285,7 @@ describe('compiler: v-for', () => { test('keyed template v-for', () => { assert( `<template v-for="(item) in items" :key="item"><text/></template>`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.items, (item, __key, __index, _cached): any => { return createElementVNode(\"text\", utsMapOf({ key: item })) }), 128 /* KEYED_FRAGMENT */)` ) @@ -294,7 +294,7 @@ describe('compiler: v-for', () => { assert( `<view v-if="ok" v-for="i in list"/>`, `isTrue(_ctx.ok) - ? createElementVNode(Fragment, utsMapOf({ key: 0 }), RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): Any => { + ? createElementVNode(Fragment, utsMapOf({ key: 0 }), RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): any => { return createElementVNode(\"view\") }), 256 /* UNKEYED_FRAGMENT */) : createCommentVNode(\"v-if\", true)` @@ -304,7 +304,7 @@ describe('compiler: v-for', () => { assert( `<template v-if="ok" v-for="i in list"/>`, `isTrue(_ctx.ok) - ? createElementVNode(Fragment, utsMapOf({ key: 0 }), RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): Any => { + ? createElementVNode(Fragment, utsMapOf({ key: 0 }), RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): any => { return createElementVNode(Fragment, null, [], 64 /* STABLE_FRAGMENT */) }), 256 /* UNKEYED_FRAGMENT */) : createCommentVNode(\"v-if\", true)` @@ -313,7 +313,7 @@ describe('compiler: v-for', () => { test('v-for on element with custom directive', () => { assert( `<view v-for="i in list" v-foo/>`, - `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): Any => { + `createElementVNode(Fragment, null, RenderHelpers.renderList(_ctx.list, (i, __key, __index, _cached): any => { return withDirectives(createElementVNode(\"view\", null, null, 512 /* NEED_PATCH */), [ [_directive_foo] ]) diff --git a/packages/uni-app-uts/src/plugins/android/uvue/compiler/codegen.ts b/packages/uni-app-uts/src/plugins/android/uvue/compiler/codegen.ts index 1f57591da79..44671847d8f 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/compiler/codegen.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/compiler/codegen.ts @@ -688,7 +688,7 @@ function genCallExpression(node: CallExpression, context: CodegenContext) { function genRenderList(node: CallExpression) { node.arguments.forEach((argument: any) => { if (argument.type === NodeTypes.JS_FUNCTION_EXPRESSION) { - argument.returnType = 'Any' + argument.returnType = 'any' } }) } diff --git a/packages/uni-uts-v1/lib/uts/types/index.d.ts b/packages/uni-uts-v1/lib/uts/types/index.d.ts new file mode 100644 index 00000000000..8a86edfa7f9 --- /dev/null +++ b/packages/uni-uts-v1/lib/uts/types/index.d.ts @@ -0,0 +1,2 @@ +/// <reference path="./lib.es2015.symbol.d.ts" /> +/// <reference path="./lib.es2015.iterable.d.ts" /> \ No newline at end of file diff --git a/packages/uni-uts-v1/lib/uts/types/lib.es2015.iterable.d.ts b/packages/uni-uts-v1/lib/uts/types/lib.es2015.iterable.d.ts new file mode 100644 index 00000000000..c1a936901c1 --- /dev/null +++ b/packages/uni-uts-v1/lib/uts/types/lib.es2015.iterable.d.ts @@ -0,0 +1,495 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> +/// <reference path="./lib.es2015.symbol.d.ts" /> + +interface SymbolConstructor { + /** + * A method that returns the default iterator for an object. Called by the semantics of the + * for-of statement. + */ + readonly iterator: unique symbol; +} + +interface IteratorYieldResult<TYield> { + done?: false; + value: TYield; +} + +interface IteratorReturnResult<TReturn> { + done: true; + value: TReturn; +} + +type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>; + +interface Iterator<T, TReturn = any, TNext = undefined> { + // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. + next(...args: [] | [TNext]): IteratorResult<T, TReturn>; + return?(value?: TReturn): IteratorResult<T, TReturn>; + throw?(e?: any): IteratorResult<T, TReturn>; +} + +interface Iterable<T> { + [Symbol.iterator](): Iterator<T>; +} + +interface IterableIterator<T> extends Iterator<T> { + [Symbol.iterator](): IterableIterator<T>; +} + +interface Array<T> { + /** Iterator */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, T]>; + + /** + * Returns an iterable of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an iterable of values in the array + */ + values(): IterableIterator<T>; +} + +interface ArrayConstructor { + /** + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. + */ + from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]; + + /** + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; +} + +interface ReadonlyArray<T> { + /** Iterator of values in the array. */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, T]>; + + /** + * Returns an iterable of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an iterable of values in the array + */ + values(): IterableIterator<T>; +} + +interface IArguments { + /** Iterator */ + [Symbol.iterator](): IterableIterator<any>; +} + +interface Map<K, V> { + /** Returns an iterable of entries in the map. */ + [Symbol.iterator](): IterableIterator<[K, V]>; + + /** + * Returns an iterable of key, value pairs for every entry in the map. + */ + entries(): IterableIterator<[K, V]>; + + /** + * Returns an iterable of keys in the map + */ + keys(): IterableIterator<K>; + + /** + * Returns an iterable of values in the map + */ + values(): IterableIterator<V>; +} + +interface ReadonlyMap<K, V> { + /** Returns an iterable of entries in the map. */ + [Symbol.iterator](): IterableIterator<[K, V]>; + + /** + * Returns an iterable of key, value pairs for every entry in the map. + */ + entries(): IterableIterator<[K, V]>; + + /** + * Returns an iterable of keys in the map + */ + keys(): IterableIterator<K>; + + /** + * Returns an iterable of values in the map + */ + values(): IterableIterator<V>; +} + +interface MapConstructor { + new(): Map<any, any>; + new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>; +} + +interface WeakMap<K extends WeakKey, V> { } + +interface WeakMapConstructor { + new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>; +} + +interface Set<T> { + /** Iterates over values in the set. */ + [Symbol.iterator](): IterableIterator<T>; + /** + * Returns an iterable of [v,v] pairs for every value `v` in the set. + */ + entries(): IterableIterator<[T, T]>; + /** + * Despite its name, returns an iterable of the values in the set. + */ + keys(): IterableIterator<T>; + + /** + * Returns an iterable of values in the set. + */ + values(): IterableIterator<T>; +} + +interface ReadonlySet<T> { + /** Iterates over values in the set. */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of [v,v] pairs for every value `v` in the set. + */ + entries(): IterableIterator<[T, T]>; + + /** + * Despite its name, returns an iterable of the values in the set. + */ + keys(): IterableIterator<T>; + + /** + * Returns an iterable of values in the set. + */ + values(): IterableIterator<T>; +} + +interface SetConstructor { + new <T>(iterable?: Iterable<T> | null): Set<T>; +} + +interface WeakSet<T extends WeakKey> { } + +interface WeakSetConstructor { + new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>; +} + +interface Promise<T> { } + +interface PromiseConstructor { + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An iterable of Promises. + * @returns A new Promise. + */ + all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An iterable of Promises. + * @returns A new Promise. + */ + race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; +} + +interface String { + /** Iterator */ + [Symbol.iterator](): IterableIterator<string>; +} + +interface Int8Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int8ArrayConstructor { + new (elements: Iterable<number>): Int8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; +} + +interface Uint8Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint8ArrayConstructor { + new (elements: Iterable<number>): Uint8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; +} + +interface Uint8ClampedArray { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint8ClampedArrayConstructor { + new (elements: Iterable<number>): Uint8ClampedArray; + + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray; +} + +interface Int16Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int16ArrayConstructor { + new (elements: Iterable<number>): Int16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; +} + +interface Uint16Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint16ArrayConstructor { + new (elements: Iterable<number>): Uint16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; +} + +interface Int32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int32ArrayConstructor { + new (elements: Iterable<number>): Int32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; +} + +interface Uint32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint32ArrayConstructor { + new (elements: Iterable<number>): Uint32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; +} + +interface Float32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Float32ArrayConstructor { + new (elements: Iterable<number>): Float32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; +} + +interface Float64Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Float64ArrayConstructor { + new (elements: Iterable<number>): Float64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; +} diff --git a/packages/uni-uts-v1/lib/uts/types/lib.es2015.symbol.d.ts b/packages/uni-uts-v1/lib/uts/types/lib.es2015.symbol.d.ts new file mode 100644 index 00000000000..4b529a53539 --- /dev/null +++ b/packages/uni-uts-v1/lib/uts/types/lib.es2015.symbol.d.ts @@ -0,0 +1,46 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +/// <reference no-default-lib="true"/> + +interface SymbolConstructor { + /** + * A reference to the prototype. + */ + readonly prototype: Symbol; + + /** + * Returns a new unique Symbol value. + * @param description Description of the new Symbol object. + */ + (description?: string | number): symbol; + + /** + * Returns a Symbol object from the global symbol registry matching the given key if found. + * Otherwise, returns a new symbol with this key. + * @param key key to search for. + */ + for(key: string): symbol; + + /** + * Returns a key from the global symbol registry matching the given Symbol if found. + * Otherwise, returns a undefined. + * @param sym Symbol to find the key for. + */ + keyFor(sym: symbol): string | undefined; +} + +declare var Symbol: SymbolConstructor; \ No newline at end of file diff --git a/packages/uni-uts-v1/src/tsc/kotlin/index.ts b/packages/uni-uts-v1/src/tsc/kotlin/index.ts index dfc7bd4c91b..ab6c4ff9c60 100644 --- a/packages/uni-uts-v1/src/tsc/kotlin/index.ts +++ b/packages/uni-uts-v1/src/tsc/kotlin/index.ts @@ -61,7 +61,11 @@ export function runUTS2Kotlin( 'hbuilderx-language-services/builtin-dts' ) const commonTypesPath = path.resolve(__dirname, '../../../lib/tsconfig') - const kotlinTypesPath = path.resolve(__dirname, '../../../lib/kotlin/types') + const utsCommonTypesPath = path.resolve(__dirname, '../../../lib/uts/types') + const utsKotlinTypesPath = path.resolve( + __dirname, + '../../../lib/kotlin/types' + ) const rootFiles: string[] = [ path.resolve( @@ -69,7 +73,8 @@ export function runUTS2Kotlin( 'uniappx/node_modules/@dcloudio/uni-app-x/types/shim-uts-basic.d.ts' ), path.resolve(commonTypesPath, 'global.d.ts'), - path.resolve(kotlinTypesPath, 'global.d.ts'), + path.resolve(utsKotlinTypesPath, 'global.d.ts'), + path.resolve(utsCommonTypesPath, 'index.d.ts'), path.resolve(hbxLanguageServicePath, 'uts-types/common/index.d.ts'), ...resolvePlatformDeclarationFiles(hbxLanguageServicePath, 'app-android'), // path.resolve(hbxLanguageServicePath, 'common/HBuilderX.d.ts'), @@ -112,7 +117,7 @@ export function runUTS2Kotlin( paths: { '@dcloudio/uni-runtime': [ path.resolve( - kotlinTypesPath, + utsKotlinTypesPath, '@dcloudio/uni-runtime/dist/uni-runtime.d.ts' ), ],
97c3930235fb3466b26502914f0579dc5faea65e
2021-07-26 13:00:09
fxy060608
fix: alias
false
alias
fix
diff --git a/packages/uni-cli-shared/src/easycom.ts b/packages/uni-cli-shared/src/easycom.ts index d10a4c3c277..e8e2e64ac6a 100644 --- a/packages/uni-cli-shared/src/easycom.ts +++ b/packages/uni-cli-shared/src/easycom.ts @@ -172,13 +172,13 @@ function initAutoScanEasycom( if (!isDir(folder)) { return } - const importDir = slash(path.relative(rootDir, folder)) + const importDir = slash(folder) const files = fs.readdirSync(folder) // 读取文件夹文件列表,比对文件名(fs.existsSync在大小写不敏感的系统会匹配不准确) for (let i = 0; i < extensions.length; i++) { const ext = extensions[i] if (files.includes(name + ext)) { - easycoms[`^${name}$`] = `@/${importDir}/${name}${ext}` + easycoms[`^${name}$`] = `${importDir}/${name}${ext}` break } } diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index e5ce54d6fa9..1da8e8a442a 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -9643,7 +9643,7 @@ const setNavigationBarTitle = /* @__PURE__ */ defineAsyncApi(API_SET_NAVIGATION_ }, SetNavigationBarTitleProtocol); require("localstorage-polyfill"); global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; -var api = /* @__PURE__ */ Object.freeze({ +var api = { __proto__: null, [Symbol.toStringTag]: "Module", setNavigationBarTitle, @@ -9659,7 +9659,7 @@ var api = /* @__PURE__ */ Object.freeze({ getStorageInfoSync, getStorageInfo, getSystemInfoSync -}); +}; const uni$1 = api; const UniServiceJSBridge$1 = /* @__PURE__ */ shared.extend(ServiceJSBridge, { publishHandler(event, args, pageId) { diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 3e47791e51e..2901366456c 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -1177,12 +1177,12 @@ function normalizeTouchEvent(touches, top) { } return res; } -var instance = /* @__PURE__ */ Object.freeze({ +var instance = { __proto__: null, [Symbol.toStringTag]: "Module", $nne, createNativeEvent -}); +}; const CLASS_RE = /^\s+|\s+$/g; const WXS_CLASS_RE = /\s+/; function getWxsClsArr(clsArr, classList, isAdd) { @@ -1456,7 +1456,7 @@ function selectComponent(selector) { function selectAllComponents(selector) { return querySelectorAll(this, selector); } -var wxInstance = /* @__PURE__ */ Object.freeze({ +var wxInstance = { __proto__: null, [Symbol.toStringTag]: "Module", createSelectorQuery: createSelectorQuery$1, @@ -1464,7 +1464,7 @@ var wxInstance = /* @__PURE__ */ Object.freeze({ createIntersectionObserver: createIntersectionObserver$1, selectComponent, selectAllComponents -}); +}; function getOpenerEventChannel() { { if (this.$route) { @@ -18977,7 +18977,7 @@ const API_LOGIN = "login"; const login = /* @__PURE__ */ defineAsyncApi(API_LOGIN, createUnsupportedAsyncApi(API_LOGIN)); const API_GET_PROVIDER = "getProvider"; const getProvider = /* @__PURE__ */ defineAsyncApi(API_GET_PROVIDER, createUnsupportedAsyncApi(API_GET_PROVIDER)); -var api = /* @__PURE__ */ Object.freeze({ +var api = { __proto__: null, [Symbol.toStringTag]: "Module", upx2px, @@ -19119,7 +19119,7 @@ var api = /* @__PURE__ */ Object.freeze({ addPhoneContact, login, getProvider -}); +}; const CONTEXT_ID = "MAP_LOCATION"; const ICON_PATH = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII="; var MapLocation = /* @__PURE__ */ defineSystemComponent({ diff --git a/packages/uni-h5/vite.config.ts b/packages/uni-h5/vite.config.ts index 390c14e6c7c..1a54798bf7e 100644 --- a/packages/uni-h5/vite.config.ts +++ b/packages/uni-h5/vite.config.ts @@ -116,6 +116,9 @@ export default defineConfig({ }, assetsDir: '.', rollupOptions: { + output: { + freeze: false, // uni 对象需要可被修改 + }, external(source) { if ( [ diff --git a/packages/vite-plugin-uni/src/config/resolve.ts b/packages/vite-plugin-uni/src/config/resolve.ts index acfad9616ab..f0b4fd40b6d 100644 --- a/packages/vite-plugin-uni/src/config/resolve.ts +++ b/packages/vite-plugin-uni/src/config/resolve.ts @@ -1,3 +1,4 @@ +import path from 'path' import { UserConfig } from 'vite' import { EXTNAME_VUE } from '@dcloudio/uni-cli-shared' import { VitePluginUniResolvedOptions } from '..' @@ -7,10 +8,17 @@ export function createResolve( _config: UserConfig ): UserConfig['resolve'] { return { - // alias: { - // '@': '', - // '~@': '', // src: url('~@/static/uni.ttf') format('truetype'); - // }, + // 必须使用alias解析,插件定制的resolveId,不会被应用到css等预处理器中 + alias: [ + // @ts-ignore because @rollup/plugin-alias' type doesn't allow function + // replacement, but its implementation does work with function values. + { + find: /^(~@|@)\/(.*)/, + replacement(_str: string, _$1: string, $2: string) { + return path.resolve(options.inputDir, $2) + }, + }, + ], extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json'].concat( EXTNAME_VUE ), diff --git a/packages/vite-plugin-uni/src/index.ts b/packages/vite-plugin-uni/src/index.ts index a2a9dedf049..6cde3d2ebe3 100644 --- a/packages/vite-plugin-uni/src/index.ts +++ b/packages/vite-plugin-uni/src/index.ts @@ -14,7 +14,7 @@ import { createConfigResolved } from './configResolved' import { createConfigureServer } from './configureServer' import { initExtraPlugins } from './utils' import { initPluginVueOptions } from './vue' -import { createResolveId } from './resolveId' +// import { createResolveId } from './resolveId' const debugUni = debug('vite:uni:plugin') @@ -93,7 +93,7 @@ export default function uniPlugin( plugins.push({ name: 'vite:uni', config: createConfig(options, uniPlugins), - resolveId: createResolveId(options), + // resolveId: createResolveId(options), configResolved: createConfigResolved(options), configureServer: createConfigureServer(options), })
ef535ea118ecab6fd9f1f5a60817bbbec599994d
2021-08-03 12:12:50
fxy060608
feat(app): support minify css
false
support minify css
feat
diff --git a/packages/uni-cli-shared/src/vite/plugins/css.ts b/packages/uni-cli-shared/src/vite/plugins/css.ts index 27bf5b85b28..381258b9e46 100644 --- a/packages/uni-cli-shared/src/vite/plugins/css.ts +++ b/packages/uni-cli-shared/src/vite/plugins/css.ts @@ -1,8 +1,9 @@ import path from 'path' import debug from 'debug' -import { Plugin } from 'vite' +import { Plugin, ResolvedConfig } from 'vite' import { normalizePath, resolveMainPathOnce } from '../../utils' import { EXTNAME_VUE_RE } from '../../constants' +import { minifyCSS } from './vitejs/plugins/css' const cssLangs = `\\.(css|less|sass|scss|styl|stylus|pcss|postcss)($|\\?)` const cssLangRE = new RegExp(cssLangs) @@ -37,9 +38,12 @@ interface UniCssPluginOptions { export function uniCssPlugin({ app }: UniCssPluginOptions): Plugin { const styles: Map<string, string> = new Map<string, string>() let cssChunks: Map<string, Set<string>> - + let resolvedConfig: ResolvedConfig return { name: 'vite:uni-app-css', + configResolved(config) { + resolvedConfig = config + }, buildStart() { cssChunks = new Map<string, Set<string>>() }, @@ -55,7 +59,7 @@ export function uniCssPlugin({ app }: UniCssPluginOptions): Plugin { moduleSideEffects: 'no-treeshake', } }, - generateBundle() { + async generateBundle() { const findCssModuleIds = ( moduleId: string, cssModuleIds?: Set<string> @@ -99,11 +103,15 @@ export function uniCssPlugin({ app }: UniCssPluginOptions): Plugin { .join('\n') } for (const fileName of cssChunks.keys()) { + let source = + (fileName === 'app.css' ? app + '\n' : '') + genCssCode(fileName) + if (resolvedConfig.build.minify) { + source = await minifyCSS(source, resolvedConfig) + } this.emitFile({ fileName, type: 'asset', - source: - (fileName === 'app.css' ? app + '\n' : '') + genCssCode(fileName), + source, }) } }, diff --git a/packages/uni-cli-shared/src/vite/plugins/vitejs/index.ts b/packages/uni-cli-shared/src/vite/plugins/vitejs/index.ts index a20fdac4573..4e48dcf3514 100644 --- a/packages/uni-cli-shared/src/vite/plugins/vitejs/index.ts +++ b/packages/uni-cli-shared/src/vite/plugins/vitejs/index.ts @@ -1,16 +1 @@ -import { ModuleNode, ViteDevServer as OrigViteDevServer } from 'vite' - -export { ResolveFn } from 'vite' - -export interface ViteDevServer extends OrigViteDevServer { - _globImporters: Record< - string, - { - module: ModuleNode - importGlobs: { - base: string - pattern: string - }[] - } - > -} +export { ResolveFn, ViteDevServer } from 'vite' diff --git a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts index 8f60f0ee115..48fae8e7d20 100644 --- a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts +++ b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts @@ -724,13 +724,13 @@ async function compileCSS( } if (server) { // register glob importers so we can trigger updates on file add/remove - if (!(id in server._globImporters)) { - server._globImporters[id] = { + if (!(id in (server as any)._globImporters)) { + ;(server as any)._globImporters[id] = { module: server.moduleGraph.getModuleById(id)!, importGlobs: [], } } - server._globImporters[id].importGlobs.push({ + ;(server as any)._globImporters[id].importGlobs.push({ base: config.root, pattern, }) @@ -882,8 +882,8 @@ async function doUrlReplace( return `url(${wrap}${await replacer(rawUrl)}${wrap})` } - -async function minifyCSS(css: string, config: ResolvedConfig) { +// fixed by xxxxxx +export async function minifyCSS(css: string, config: ResolvedConfig) { const { code, warnings } = await transform(css, { loader: 'css', minify: true, diff --git a/packages/uni-cli-shared/tsconfig.json b/packages/uni-cli-shared/tsconfig.json index 6cf88600722..abb005336ff 100644 --- a/packages/uni-cli-shared/tsconfig.json +++ b/packages/uni-cli-shared/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.node.json", "compilerOptions": { + "baseUrl": "./", "outDir": "dist", "paths": { "types/alias": ["types/alias.d.ts"] diff --git a/packages/vite-plugin-uni/src/cli/utils.ts b/packages/vite-plugin-uni/src/cli/utils.ts index 276d95f06cb..0ef153891d0 100644 --- a/packages/vite-plugin-uni/src/cli/utils.ts +++ b/packages/vite-plugin-uni/src/cli/utils.ts @@ -83,6 +83,11 @@ export function initEnv(type: 'dev' | 'build', options: CliOptions) { // process.exit(1) // ) // } + if (process.env.NODE_ENV === 'production') { + if (!(options as BuildOptions).minify) { + ;(options as BuildOptions).minify = 'terser' + } + } if (process.env.UNI_PLATFORM === 'app') { initNVueEnv() }
01ca3b8f33b2770f4c27d9d574e4a3494a3cc752
2022-10-17 09:46:56
wangyaqi
fix: ssr url order
false
ssr url order
fix
diff --git a/packages/uni-cli-shared/src/hbx/log.ts b/packages/uni-cli-shared/src/hbx/log.ts index dc61502f50d..bd979fd104d 100644 --- a/packages/uni-cli-shared/src/hbx/log.ts +++ b/packages/uni-cli-shared/src/hbx/log.ts @@ -17,6 +17,45 @@ const SIGNAL_H5_NETWORK = ' ➜ Network:' const networkLogs: string[] = [] +const ZERO_WIDTH_CHAR = { + NOTE: '', + WARNING: '\u200B', + ERROR: '\u200C', + backup0: '\u200D', + backup1: '\u200E', + backup2: '\u200F', + backup3: '\uFEFF', +} as const + +type ZERO_WIDTH_CHAR_KEY = keyof typeof ZERO_WIDTH_CHAR +type ConsoleMethod = 'warn' | 'error' + +function overridedConsole( + name: ConsoleMethod, + oldFn: (...args: any[]) => any, + char: typeof ZERO_WIDTH_CHAR[ZERO_WIDTH_CHAR_KEY] +) { + console[name] = function (...args) { + oldFn.apply( + this, + args.map((arg) => { + let item + if (typeof arg !== 'object') { + item = `${char}${arg}${char}` + } else { + item = `${char}${JSON.stringify(arg)}${char}` + } + return item + }) + ) + } +} + +if (typeof console !== 'undefined') { + overridedConsole('warn', console.warn, ZERO_WIDTH_CHAR.WARNING) + // overridedConsole('error', console.error, ZERO_WIDTH_CHAR.ERROR) +} + export function formatAtFilename( filename: string, line?: number, @@ -39,7 +78,7 @@ export const h5ServeFormatter: Formatter = { }, format(msg) { if (msg.includes(SIGNAL_H5_NETWORK)) { - networkLogs.push(msg.replace('➜ ', '➜')) + networkLogs.push(msg.replace('➜ ', '*')) process.nextTick(() => { if (networkLogs.length) { // 延迟打印所有 network,仅最后一个 network 替换 ➜ 为 -,通知 hbx @@ -51,7 +90,7 @@ export const h5ServeFormatter: Formatter = { }) return '' } - return msg.replace('➜ ', '-') + return msg.replace('➜ ', '*') }, } diff --git a/packages/vite-plugin-uni/src/cli/server.ts b/packages/vite-plugin-uni/src/cli/server.ts index a6c72dd2c27..4c4401d8e0a 100644 --- a/packages/vite-plugin-uni/src/cli/server.ts +++ b/packages/vite-plugin-uni/src/cli/server.ts @@ -204,11 +204,14 @@ function printServerUrls( .map((detail) => { const type = detail.address.includes('127.0.0.1') ? ' - Local: ' - : ' ➜ Network: ' + : ' - Network: ' const host = detail.address.replace('127.0.0.1', hostname.name) const url = `${protocol}://${host}:${colors.bold(port)}${base}` return `${type} ${colors.cyan(url)}` }) + .sort((msg1) => { + return msg1.indexOf('- Local') > -1 ? -1 : 1 + }) .forEach((msg, index, arr) => { if (arr.length - 1 === index) { info(msg.replace('➜', '-'))
68a9069663452cc787fe34dd6cb08c42cff05e0f
2024-05-22 18:04:20
qiang
feat(harmony): 实现 navigateBack
false
实现 navigateBack
feat
diff --git a/packages/uni-app-harmony/src/service/api/index.ts b/packages/uni-app-harmony/src/service/api/index.ts index 70b4ea41fa1..08a7d7bbc34 100644 --- a/packages/uni-app-harmony/src/service/api/index.ts +++ b/packages/uni-app-harmony/src/service/api/index.ts @@ -2,3 +2,4 @@ export * from './media/index' export * from './ui/index' export * from './device/index' export { navigateTo } from './route/navigateTo' +export { navigateBack } from './route/navigateBack' diff --git a/packages/uni-app-harmony/src/service/api/route/navigateBack.ts b/packages/uni-app-harmony/src/service/api/route/navigateBack.ts new file mode 100644 index 00000000000..ef1cc184403 --- /dev/null +++ b/packages/uni-app-harmony/src/service/api/route/navigateBack.ts @@ -0,0 +1,113 @@ +import type { ComponentPublicInstance } from 'vue' +import { + API_NAVIGATE_BACK, + type API_TYPE_NAVIGATE_BACK, + NavigateBackOptions, + NavigateBackProtocol, + defineAsyncApi, +} from '@dcloudio/uni-api' +import { getCurrentPage, invokeHook } from '@dcloudio/uni-core' +import { ON_BACK_PRESS, ON_SHOW } from '@dcloudio/uni-shared' + +import { + ANI_CLOSE, + ANI_DURATION, +} from '@dcloudio/uni-app-plus/service/constants' +import { removePage } from '@dcloudio/uni-app-plus/service/framework/page/getCurrentPages' +import { + backWebview, + closeWebview, +} from '@dcloudio/uni-app-plus/service/api/route/webview' +import { + isDirectPage, + reLaunchEntryPage, +} from '@dcloudio/uni-app-plus/service/api/route/direct' + +export const navigateBack = defineAsyncApi<API_TYPE_NAVIGATE_BACK>( + API_NAVIGATE_BACK, + (args, { resolve, reject }) => { + const page = getCurrentPage() + if (!page) { + return reject(`getCurrentPages is empty`) + } + if ( + invokeHook(page as ComponentPublicInstance, ON_BACK_PRESS, { + from: (args as any).from || 'navigateBack', + }) + ) { + return resolve() + } + if (uni.hideToast) { + uni.hideToast() + } + if (uni.hideLoading) { + uni.hideLoading() + } + if (page.$page.meta.isQuit) { + quit() + } else if (isDirectPage(page)) { + reLaunchEntryPage() + } else { + const { delta, animationType, animationDuration } = args! + back(delta!, animationType, animationDuration) + } + return resolve() + }, + NavigateBackProtocol, + NavigateBackOptions +) + +function quit() { + // TODO +} + +function back( + delta: number, + animationType?: string, + animationDuration?: number +) { + const pages = getCurrentPages() + const len = pages.length + const currentPage = pages[len - 1] + + if (delta > 1) { + // 中间页隐藏 + pages + .slice(len - delta, len - 1) + .reverse() + .forEach((deltaPage) => { + closeWebview( + plus.webview.getWebviewById(deltaPage.$page.id + ''), + 'none', + 0 + ) + }) + } + + const backPage = function (webview: PlusWebviewWebviewObject) { + if (animationType) { + closeWebview(webview, animationType, animationDuration || ANI_DURATION) + } else { + if (currentPage.$page.openType === 'redirectTo') { + // 如果是 redirectTo 跳转的,需要指定 back 动画 + closeWebview(webview, ANI_CLOSE, ANI_DURATION) + } else { + closeWebview(webview, 'auto') + } + } + pages + .slice(len - delta, len) + .forEach((page) => removePage(page as ComponentPublicInstance)) + // TODO setStatusBarStyle() + // 前一个页面触发 onShow + invokeHook(ON_SHOW) + } + + const webview = plus.webview.getWebviewById(currentPage.$page.id + '') + if (!(currentPage as any).__uniapp_webview) { + return backPage(webview) + } + backWebview(webview, () => { + backPage(webview) + }) +} diff --git a/packages/uni-app-plus/src/service/api/route/webview.ts b/packages/uni-app-plus/src/service/api/route/webview.ts index 29b59f49f9c..ea2b7851f20 100644 --- a/packages/uni-app-plus/src/service/api/route/webview.ts +++ b/packages/uni-app-plus/src/service/api/route/webview.ts @@ -65,7 +65,7 @@ export function backWebview( ) { const children = webview.children() if (!children || !children.length) { - // 有子 webview + // 无子 webview return callback() }
f371ab017fce58e032b2924bf534b86e46beb5dd
2024-03-01 12:07:43
fxy060608
fix: 重构 esbuild initTSConfck
false
重构 esbuild initTSConfck
fix
diff --git a/packages/uni-cli-shared/src/vite/index.ts b/packages/uni-cli-shared/src/vite/index.ts index 8069b65d00f..734df65dd9e 100644 --- a/packages/uni-cli-shared/src/vite/index.ts +++ b/packages/uni-cli-shared/src/vite/index.ts @@ -1,3 +1,5 @@ +import fs from 'fs' +import path from 'path' import type { Plugin } from 'vite' import type { EmittedAsset } from 'rollup' import type { ParserOptions } from '@vue/compiler-core' @@ -42,3 +44,23 @@ export * from './utils' export * from './plugins' export * from './features' export * from './autoImport' + +// https://github.com/vitejs/vite/blob/aac2ef77521f66ddd908f9d97020b8df532148cf/packages/vite/src/node/server/searchRoot.ts#L38 +// vite 在初始化阶段会执行 initTSConfck,此时会 searchForWorkspaceRoot,如果找到了 pnpm-workspace.yaml 文件,会将其作为 root +// HBuilderX 项目,root 一定是 UNI_INPUT_DIR,所以需要重写 fs.existsSync,不重写的话,可能会找错, +// 一旦找错目录,而该目录下有 N 多文件目录,会导致遍历及其缓慢 +export function rewriteExistsSyncHasRootFile() { + const existsSync = fs.existsSync + const pnpmWorkspaceYaml = path.join( + process.env.UNI_INPUT_DIR, + 'pnpm-workspace.yaml' + ) + fs.existsSync = (path) => { + if (path === pnpmWorkspaceYaml) { + // 仅重写一次,用于绕过 vite,避免后续其他地方真的需要判断 + fs.existsSync = existsSync + return true + } + return existsSync(path) + } +} diff --git a/packages/vite-plugin-uni/src/index.ts b/packages/vite-plugin-uni/src/index.ts index 3815199c4ea..fae3a5dc589 100644 --- a/packages/vite-plugin-uni/src/index.ts +++ b/packages/vite-plugin-uni/src/index.ts @@ -18,8 +18,10 @@ import { parseUniExtApis, resolveSourceMapPath, rewriteScssReadFileSync, + rewriteExistsSyncHasRootFile, uniUTSExtApiReplace, uniViteInjectPlugin, + isInHBuilderX, } from '@dcloudio/uni-cli-shared' import { createConfig } from './config' @@ -28,7 +30,7 @@ import { uniCopyPlugin } from './plugins/copy' import { uniMovePlugin } from './plugins/move' import { initExtraPlugins, - initFixedEsbuildInitTSConfck, + // initFixedEsbuildInitTSConfck, initPluginUniOptions, rewriteCompilerSfcParse, } from './utils' @@ -87,6 +89,10 @@ export default function uniPlugin( rewriteScssReadFileSync() } + if (isInHBuilderX()) { + rewriteExistsSyncHasRootFile() + } + // 三方插件(如vitest)可能提供了自己的入口命令,需要补充 env 初始化逻辑 initEnv('unknown', { platform: process.env.UNI_PLATFORM || 'h5' }) @@ -189,7 +195,7 @@ function createPlugins(options: VitePluginUniResolvedOptions) { }) plugins.push(...uniPlugins) - plugins.push(...initFixedEsbuildInitTSConfck(process.env.UNI_INPUT_DIR)) + // plugins.push(...initFixedEsbuildInitTSConfck(process.env.UNI_INPUT_DIR)) // 执行 build 命令时,vite 强制了 NODE_ENV // https://github.com/vitejs/vite/blob/main/packages/vite/src/node/build.ts#L405 @@ -279,7 +285,7 @@ function createUVueAndroidPlugins(options: VitePluginUniResolvedOptions) { plugins.push(...uniPlugins) - plugins.push(...initFixedEsbuildInitTSConfck(process.env.UNI_INPUT_DIR)) + // plugins.push(...initFixedEsbuildInitTSConfck(process.env.UNI_INPUT_DIR)) // 执行 build 命令时,vite 强制了 NODE_ENV // https://github.com/vitejs/vite/blob/main/packages/vite/src/node/build.ts#L405 diff --git a/packages/vite-plugin-uni/src/utils/polyfill.ts b/packages/vite-plugin-uni/src/utils/polyfill.ts index 05d0767351a..47c06ffb172 100644 --- a/packages/vite-plugin-uni/src/utils/polyfill.ts +++ b/packages/vite-plugin-uni/src/utils/polyfill.ts @@ -33,6 +33,7 @@ export function rewriteCompilerSfcParse() { } /** + * 已废弃,交由 rewriteExistsSyncHasRootFile 实现,因为新的 vite 版本在 configResolved 中重写已经晚了 * 解决 HBuilderX 项目未包含 package.json 时,initTSConfck 可能导致查找过慢,或递归目录时权限不足报错 * 即:未包含 package.json 时,直接移除 initTSConfck 相关逻辑 * @param inputDir
50a75ea36d223797b231ca0cfb88b9dddc3fc48a
2021-08-12 14:18:45
fxy060608
fix: windows path
false
windows path
fix
diff --git a/packages/vite-plugin-uni/src/config/resolve.ts b/packages/vite-plugin-uni/src/config/resolve.ts index 01baa2c7707..a8cc1d1bd9b 100644 --- a/packages/vite-plugin-uni/src/config/resolve.ts +++ b/packages/vite-plugin-uni/src/config/resolve.ts @@ -1,11 +1,11 @@ import path from 'path' import { UserConfig } from 'vite' -import { isWindows, EXTNAME_VUE } from '@dcloudio/uni-cli-shared' +import { isWindows, EXTNAME_VUE, normalizePath } from '@dcloudio/uni-cli-shared' import { VitePluginUniResolvedOptions } from '..' export function customResolver(updatedId: string) { if (isWindows) { - return path.resolve(process.env.UNI_INPUT_DIR, updatedId) + return normalizePath(path.resolve(process.env.UNI_INPUT_DIR, updatedId)) } return updatedId } @@ -22,7 +22,7 @@ export function createResolve( { find: /^(~@|@)\/(.*)/, replacement(_str: string, _$1: string, $2: string) { - return path.resolve(options.inputDir, $2) + return normalizePath(path.resolve(options.inputDir, $2)) }, customResolver, },
74a8d39b40a53ae6521c7db19147a407273baa76
2025-02-18 13:14:38
fxy060608
chore(uts): 使用定制的 es-module-lexer
false
使用定制的 es-module-lexer
chore
diff --git a/packages/uni-cli-shared/src/uts.ts b/packages/uni-cli-shared/src/uts.ts index 207a635931c..480b2375171 100644 --- a/packages/uni-cli-shared/src/uts.ts +++ b/packages/uni-cli-shared/src/uts.ts @@ -429,7 +429,8 @@ export function initUTSCustomElements( { source: string; kotlinPackage: string; swiftModule: string } > = {} const dirs = resolveUTSCustomElementsDirs(inputDir) - const { init, parse } = require('es-module-lexer') + // 定制实现的,支持 export type | interface 的解析 + const { init, parse } = require('../lib/es-module-lexer') dirs.forEach((dir) => { fs.readdirSync(dir).forEach((name) => { const folder = path.resolve(dir, name) @@ -709,7 +710,6 @@ async function initUTSAutoImports( autoImports[source] = extApiImports[source] } }) - console.log('autoImports', autoImports) return autoImports } let autoKotlinImports: Record<string, [string, string?][]> | null = null
f182b5c0513a613577408c4798fe42306be31a01
2023-11-28 17:17:47
zhenyuWang
chore(automator): update
false
update
chore
diff --git a/packages/uni-app-vite/lib/template/__uniappautomator.js b/packages/uni-app-vite/lib/template/__uniappautomator.js index 206fd077d53..1d88fdfa7df 100644 --- a/packages/uni-app-vite/lib/template/__uniappautomator.js +++ b/packages/uni-app-vite/lib/template/__uniappautomator.js @@ -12,4 +12,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;var r=Array(s),k=0;for(i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r}var getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function v4(options,buf,offset){var i=buf&&offset||0;"string"==typeof options&&(buf="binary"===options?new Array(16):null,options=null);var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||function(buf,offset){var i=offset||0,bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")}(rnds)}var hasOwnProperty=Object.prototype.hasOwnProperty,isArray=Array.isArray,PATH_RE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function getPaths(path,data){if(isArray(path))return path;if(data&&(val=data,key=path,hasOwnProperty.call(val,key)))return[path];var val,key,res=[];return path.replace(PATH_RE,(function(match,p1,offset,string){return res.push(offset?string.replace(/\\(\\)?/g,"$1"):p1||match),string})),res}function getDataByPath(data,path){var dataPath,paths=getPaths(path,data);for(dataPath=paths.shift();null!=dataPath;){if(null==(data=data[dataPath]))return;dataPath=paths.shift()}return data}function getVmNodeId(vm){if(vm._$weex)return vm._uid;if(vm._$id)return vm._$id;var parent_1=function(vm){for(var parent=vm.$parent;parent;){if(parent._$id)return parent;parent=parent.$parent}}(vm);if(!vm.$parent)return"-1";var vnode=vm.$vnode,context=vnode.context;return context&&context!==parent_1&&context._$id?context._$id+";"+parent_1._$id+","+vnode.data.attrs._i:parent_1._$id+","+vnode.data.attrs._i}var elementMap=new Map;function transEl(el){var _a;if(!function(el){if(el){var tagName=el.tagName;return 0===tagName.indexOf("UNI-")||"BODY"===tagName}return!1}(el))throw Error("no such element");var element,elementId,vm,elem={elementId:(element=el,elementId=element._id,elementId||(elementId=v4(),element._id=elementId,elementMap.set(elementId,{id:elementId,element:element})),elementId),tagName:el.tagName.toLocaleLowerCase().replace("uni-","")};el.__vue__?(vm=el.__vue__)&&(vm.$parent&&vm.$parent.$el===el&&(vm=vm.$parent),vm&&!(null===(_a=vm.$options)||void 0===_a?void 0:_a.isReserved)&&(elem.nodeId=getVmNodeId(vm))):(vm=el.__vnode)&&(vm.el===el&&(vm=vm.ctx.parent),vm&&(elem.nodeId=getVmNodeId(vm)));return"video"===elem.tagName&&(elem.videoId=elem.nodeId),elem}var FUNCTIONS={input:{input:function(el,value){var vm=el.__vue__;vm.valueSync=value,vm.$triggerInput({},{value:value})}},textarea:{input:function(el,value){var vm=el.__vue__;vm.valueSync=value,vm.$triggerInput({},{value:value})}},"scroll-view":{scrollTo:function(el,x,y){var main=el.__vue__.$refs.main;main.scrollLeft=x,main.scrollTop=y},scrollTop:function(el){return el.__vue__.$refs.main.scrollTop},scrollLeft:function(el){return el.__vue__.$refs.main.scrollLeft},scrollWidth:function(el){return el.__vue__.$refs.main.scrollWidth},scrollHeight:function(el){return el.__vue__.$refs.main.scrollHeight}},swiper:{swipeTo:function(el,index){el.__vue__.current=index}},"movable-view":{moveTo:function(el,x,y){el.__vue__._animationTo(x,y)}},switch:{tap:function(el){el.click()}},slider:{slideTo:function(el,value){var vm=el.__vue__,slider=vm.$refs["uni-slider"],offsetWidth=slider.offsetWidth,boxLeft=slider.getBoundingClientRect().left;vm.value=value,vm._onClick({x:(value-vm.min)*offsetWidth/(vm.max-vm.min)+boxLeft})}}};function createTouchList(touchInits){var _a,touches=touchInits.map((function(touch){return function(touch){if(document.createTouch)return document.createTouch(window,touch.target,touch.identifier,touch.pageX,touch.pageY,touch.screenX,touch.screenY);return new Touch(touch)}(touch)}));return document.createTouchList?(_a=document).createTouchList.apply(_a,touches):touches}var WebAdapter={getWindow:function(pageId){return window},getDocument:function(pageId){return document},getEl:function(elementId){var element=elementMap.get(elementId);if(!element)throw Error("element destroyed");return element.element},getOffset:function(node){var rect=node.getBoundingClientRect();return Promise.resolve({left:rect.left+window.pageXOffset,top:rect.top+window.pageYOffset})},querySelector:function(context,selector){return"page"===selector&&(selector="body"),Promise.resolve(transEl(context.querySelector(selector)))},querySelectorAll:function(context,selector){var elements=[],nodeList=document.querySelectorAll(selector);return[].forEach.call(nodeList,(function(node){try{elements.push(transEl(node))}catch(e){}})),Promise.resolve({elements:elements})},queryProperties:function(context,names){return Promise.resolve({properties:names.map((function(name){var value=getDataByPath(context,name);return"document.documentElement.scrollTop"===name&&0===value&&(value=getDataByPath(context,"document.body.scrollTop")),value}))})},queryAttributes:function(context,names){return Promise.resolve({attributes:names.map((function(name){return String(context.getAttribute(name))}))})},queryStyles:function(context,names){var style=getComputedStyle(context);return Promise.resolve({styles:names.map((function(name){return style[name]}))})},queryHTML:function(context,type){return Promise.resolve({html:(html="outer"===type?context.outerHTML:context.innerHTML,html.replace(/\n/g,"").replace(/(<uni-text[^>]*>)(<span[^>]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(replacement){return-1<replacement.indexOf("<body")?"<page>":"</body>"===replacement?"</page>":0!==replacement.indexOf("<uni-")&&0!==replacement.indexOf("</uni-")?"":replacement.replace(/uni-/g,"").replace(/ role=""/g,"").replace(/ aria-label=""/g,"")})))});var html},dispatchTapEvent:function(el){return el.click(),Promise.resolve()},dispatchLongpressEvent:function(el){return Promise.resolve()},dispatchTouchEvent:function(el,type,eventInitDict){eventInitDict||(eventInitDict={}),eventInitDict.touches||(eventInitDict.touches=[]),eventInitDict.changedTouches||(eventInitDict.changedTouches=[]),eventInitDict.touches.length||eventInitDict.touches.push({identifier:Date.now(),target:el});var touches=createTouchList(eventInitDict.touches),changedTouches=createTouchList(eventInitDict.changedTouches),targetTouches=createTouchList([]);return el.dispatchEvent(new TouchEvent(type,{cancelable:!0,bubbles:!0,touches:touches,targetTouches:targetTouches,changedTouches:changedTouches})),Promise.resolve()},callFunction:function(el,functionName,args){var fn=getDataByPath(FUNCTIONS,functionName);return fn?Promise.resolve({result:fn.apply(null,__spreadArrays([el],args))}):Promise.reject(Error(functionName+" not exists"))},triggerEvent:function(el,type,detail){var vm=el.__vue__;return vm.$trigger&&vm.$trigger(type,{},detail),Promise.resolve()}};var Api=Object.assign({},function(adapter){return{"Page.getElement":function(params){return adapter.querySelector(adapter.getDocument(params.pageId),params.selector)},"Page.getElements":function(params){return adapter.querySelectorAll(adapter.getDocument(params.pageId),params.selector)},"Page.getWindowProperties":function(params){return adapter.queryProperties(adapter.getWindow(params.pageId),params.names)}}}(WebAdapter),function(adapter){var getEl=function(params){return adapter.getEl(params.elementId,params.pageId)};return{"Element.getElement":function(params){return adapter.querySelector(getEl(params),params.selector)},"Element.getElements":function(params){return adapter.querySelectorAll(getEl(params),params.selector)},"Element.getDOMProperties":function(params){return adapter.queryProperties(getEl(params),params.names)},"Element.getProperties":function(params){var el=getEl(params),ctx=el.__vue__||el.attr||{};return adapter.queryProperties(ctx,params.names)},"Element.getOffset":function(params){return adapter.getOffset(getEl(params))},"Element.getAttributes":function(params){return adapter.queryAttributes(getEl(params),params.names)},"Element.getStyles":function(params){return adapter.queryStyles(getEl(params),params.names)},"Element.getHTML":function(params){return adapter.queryHTML(getEl(params),params.type)},"Element.tap":function(params){return adapter.dispatchTapEvent(getEl(params))},"Element.longpress":function(params){return adapter.dispatchLongpressEvent(getEl(params))},"Element.touchstart":function(params){return adapter.dispatchTouchEvent(getEl(params),"touchstart",params)},"Element.touchmove":function(params){return adapter.dispatchTouchEvent(getEl(params),"touchmove",params)},"Element.touchend":function(params){return adapter.dispatchTouchEvent(getEl(params),"touchend",params)},"Element.callFunction":function(params){return adapter.callFunction(getEl(params),params.functionName,params.args)},"Element.triggerEvent":function(params){return adapter.triggerEvent(getEl(params),params.type,params.detail)}}}(WebAdapter));function send(data){return UniViewJSBridge.publishHandler("onAutoMessageReceive",data)}UniViewJSBridge.subscribe("sendAutoMessage",(function(_a){var id=_a.id,method=_a.method,params=_a.params,data={id:id},fn=Api[method];if(!fn)return data.error={message:method+" unimplemented"},send(data);try{fn(params).then((function(res){res&&(data.result=res)})).catch((function(err){data.error={message:err.message}})).finally((function(){send(data)}))}catch(err){data.error={message:err.message},send(data)}})); +function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;var r=Array(s),k=0;for(i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r}var getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function v4(options,buf,offset){var i=buf&&offset||0;"string"==typeof options&&(buf="binary"===options?new Array(16):null,options=null);var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||function(buf,offset){var i=offset||0,bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")}(rnds)}var hasOwnProperty=Object.prototype.hasOwnProperty,isArray=Array.isArray,PATH_RE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function getPaths(path,data){if(isArray(path))return path;if(data&&(val=data,key=path,hasOwnProperty.call(val,key)))return[path];var val,key,res=[];return path.replace(PATH_RE,(function(match,p1,offset,string){return res.push(offset?string.replace(/\\(\\)?/g,"$1"):p1||match),string})),res}function getDataByPath(data,path){var dataPath,paths=getPaths(path,data);for(dataPath=paths.shift();null!=dataPath;){if(null==(data=data[dataPath]))return;dataPath=paths.shift()}return data}function getVmNodeId(vm){if(vm._$weex)return vm._uid;if(vm._$id)return vm._$id;var parent_1=function(vm){for(var parent=vm.$parent;parent;){if(parent._$id)return parent;parent=parent.$parent}}(vm);if(!vm.$parent)return"-1";var vnode=vm.$vnode,context=vnode.context;return context&&context!==parent_1&&context._$id?context._$id+";"+parent_1._$id+","+vnode.data.attrs._i:parent_1._$id+","+vnode.data.attrs._i}var elementMap=new Map;function transEl(el){var _a;if(!function(el){if(el){var tagName=el.tagName;return 0===tagName.indexOf("UNI-")||"BODY"===tagName}return!1}(el))throw Error("no such element");var element,elementId,vm,elem={elementId:(element=el,elementId=element._id,elementId||(elementId=v4(),element._id=elementId,elementMap.set(elementId,{id:elementId,element:element})),elementId),tagName:el.tagName.toLocaleLowerCase().replace("uni-","")};el.__vue__?(vm=el.__vue__)&&(vm.$parent&&vm.$parent.$el===el&&(vm=vm.$parent),vm&&!(null===(_a=vm.$options)||void 0===_a?void 0:_a.isReserved)&&(elem.nodeId=getVmNodeId(vm))):(vm=el.__vnode)&&(vm.el===el&&(vm=vm.ctx.parent),vm&&(elem.nodeId=getVmNodeId(vm)));return"video"===elem.tagName&&(elem.videoId=elem.nodeId),elem}var FUNCTIONS={input:{input:function(el,value){var vm=el.__vue__;vm.valueSync=value,vm.$triggerInput({},{value:value})}},textarea:{input:function(el,value){var vm=el.__vue__;vm.valueSync=value,vm.$triggerInput({},{value:value})}},"scroll-view":{scrollTo:function(el,x,y){var main=el.__vue__.$refs.main;main.scrollLeft=x,main.scrollTop=y},scrollTop:function(el){return el.__vue__.$refs.main.scrollTop},scrollLeft:function(el){return el.__vue__.$refs.main.scrollLeft},scrollWidth:function(el){return el.__vue__.$refs.main.scrollWidth},scrollHeight:function(el){return el.__vue__.$refs.main.scrollHeight}},swiper:{swipeTo:function(el,index){el.__vue__.current=index}},"movable-view":{moveTo:function(el,x,y){el.__vue__._animationTo(x,y)}},switch:{tap:function(el){el.click()}},slider:{slideTo:function(el,value){var vm=el.__vue__,slider=vm.$refs["uni-slider"],offsetWidth=slider.offsetWidth,boxLeft=slider.getBoundingClientRect().left;vm.value=value,vm._onClick({x:(value-vm.min)*offsetWidth/(vm.max-vm.min)+boxLeft})}}};function createTouchList(touchInits){var _a,touches=touchInits.map((function(touch){return function(touch){if(document.createTouch)return document.createTouch(window,touch.target,touch.identifier,touch.pageX,touch.pageY,touch.screenX,touch.screenY);return new Touch(touch)}(touch)}));return document.createTouchList?(_a=document).createTouchList.apply(_a,touches):touches}var WebAdapter={getWindow:function(pageId){return window},getDocument:function(pageId){return document},getEl:function(elementId){var element=elementMap.get(elementId);if(!element)throw Error("element destroyed");return element.element},getOffset:function(node){var rect=node.getBoundingClientRect();return Promise.resolve({left:rect.left+window.pageXOffset,top:rect.top+window.pageYOffset})},querySelector:function(context,selector){return"page"===selector&&(selector="body"),Promise.resolve(transEl(context.querySelector(selector)))},querySelectorAll:function(context,selector){var elements=[],nodeList=document.querySelectorAll(selector);return[].forEach.call(nodeList,(function(node){try{elements.push(transEl(node))}catch(e){}})),Promise.resolve({elements:elements})},queryProperties:function(context,names){return Promise.resolve({properties:names.map((function(name){var value=getDataByPath(context,name.replace(/-([a-z])/g,(function(g){return g[1].toUpperCase()})));return"document.documentElement.scrollTop"===name&&0===value&&(value=getDataByPath(context,"document.body.scrollTop")),value}))})},queryAttributes:function(context,names){return Promise.resolve({attributes:names.map((function(name){return String(context.getAttribute(name))}))})},queryStyles:function(context,names){var style=getComputedStyle(context);return Promise.resolve({styles:names.map((function(name){return style[name]}))})},queryHTML:function(context,type){return Promise.resolve({html:(html="outer"===type?context.outerHTML:context.innerHTML,html.replace(/\n/g,"").replace(/(<uni-text[^>]*>)(<span[^>]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(replacement){return-1<replacement.indexOf("<body")?"<page>":"</body>"===replacement?"</page>":0!==replacement.indexOf("<uni-")&&0!==replacement.indexOf("</uni-")?"":replacement.replace(/uni-/g,"").replace(/ role=""/g,"").replace(/ aria-label=""/g,"")})))});var html},dispatchTapEvent:function(el){return el.click(),Promise.resolve()},dispatchLongpressEvent:function(el){return Promise.resolve()},dispatchTouchEvent:function(el,type,eventInitDict){eventInitDict||(eventInitDict={}),eventInitDict.touches||(eventInitDict.touches=[]),eventInitDict.changedTouches||(eventInitDict.changedTouches=[]),eventInitDict.touches.length||eventInitDict.touches.push({identifier:Date.now(),target:el});var touches=createTouchList(eventInitDict.touches),changedTouches=createTouchList(eventInitDict.changedTouches),targetTouches=createTouchList([]);return el.dispatchEvent(new TouchEvent(type,{cancelable:!0,bubbles:!0,touches:touches,targetTouches:targetTouches,changedTouches:changedTouches})),Promise.resolve()},callFunction:function(el,functionName,args){var fn=getDataByPath(FUNCTIONS,functionName);return fn?Promise.resolve({result:fn.apply(null,__spreadArrays([el],args))}):Promise.reject(Error(functionName+" not exists"))},triggerEvent:function(el,type,detail){var vm=el.__vue__;return vm.$trigger&&vm.$trigger(type,{},detail),Promise.resolve()}};var Api=Object.assign({},function(adapter){return{"Page.getElement":function(params){return adapter.querySelector(adapter.getDocument(params.pageId),params.selector)},"Page.getElements":function(params){return adapter.querySelectorAll(adapter.getDocument(params.pageId),params.selector)},"Page.getWindowProperties":function(params){return adapter.queryProperties(adapter.getWindow(params.pageId),params.names)}}}(WebAdapter),function(adapter){var getEl=function(params){return adapter.getEl(params.elementId,params.pageId)};return{"Element.getElement":function(params){return adapter.querySelector(getEl(params),params.selector)},"Element.getElements":function(params){return adapter.querySelectorAll(getEl(params),params.selector)},"Element.getDOMProperties":function(params){return adapter.queryProperties(getEl(params),params.names)},"Element.getProperties":function(params){var el=getEl(params),ctx=el.__vue__||el.attr||{};return el.__vueParentComponent&&(ctx=Object.assign({},ctx,el.__vueParentComponent.attrs,el.__vueParentComponent.props)),adapter.queryProperties(ctx,params.names)},"Element.getOffset":function(params){return adapter.getOffset(getEl(params))},"Element.getAttributes":function(params){return adapter.queryAttributes(getEl(params),params.names)},"Element.getStyles":function(params){return adapter.queryStyles(getEl(params),params.names)},"Element.getHTML":function(params){return adapter.queryHTML(getEl(params),params.type)},"Element.tap":function(params){return adapter.dispatchTapEvent(getEl(params))},"Element.longpress":function(params){return adapter.dispatchLongpressEvent(getEl(params))},"Element.touchstart":function(params){return adapter.dispatchTouchEvent(getEl(params),"touchstart",params)},"Element.touchmove":function(params){return adapter.dispatchTouchEvent(getEl(params),"touchmove",params)},"Element.touchend":function(params){return adapter.dispatchTouchEvent(getEl(params),"touchend",params)},"Element.callFunction":function(params){return adapter.callFunction(getEl(params),params.functionName,params.args)},"Element.triggerEvent":function(params){return adapter.triggerEvent(getEl(params),params.type,params.detail)}}}(WebAdapter));function send(data){return UniViewJSBridge.publishHandler("onAutoMessageReceive",data)}UniViewJSBridge.subscribe("sendAutoMessage",(function(_a){var id=_a.id,method=_a.method,params=_a.params,data={id:id},fn=Api[method];if(!fn)return data.error={message:method+" unimplemented"},send(data);try{fn(params).then((function(res){res&&(data.result=res)})).catch((function(err){data.error={message:err.message}})).finally((function(){send(data)}))}catch(err){data.error={message:err.message},send(data)}}));
e9a4959d264b0d8b6578ab836ee8b846ae32fcd7
2021-07-29 12:58:46
handongxun
feat(App): ad
false
ad
feat
diff --git a/packages/uni-app-plus/src/service/framework/app/subscriber/ad.ts b/packages/uni-app-plus/src/service/framework/app/subscriber/ad.ts index 17b553c731e..76c5b7394f2 100644 --- a/packages/uni-app-plus/src/service/framework/app/subscriber/ad.ts +++ b/packages/uni-app-plus/src/service/framework/app/subscriber/ad.ts @@ -1,8 +1,48 @@ import { registerServiceMethod } from '@dcloudio/uni-core' +const _adDataCache: Record<string, any> = {} + +function getAdData(data: any, onsuccess: Function, onerror: Function) { + const { adpid, width } = data + const key = adpid + '-' + width + const adDataList = _adDataCache[key] + if (adDataList && adDataList.length > 0) { + onsuccess(adDataList.splice(0, 1)[0]) + return + } + + plus.ad.getAds( + data, + (res) => { + const list = res.ads + onsuccess(list.splice(0, 1)[0]) + _adDataCache[key] = adDataList ? adDataList.concat(list) : list + }, + (err) => { + onerror({ + errCode: err.code, + errMsg: err.message, + }) + } + ) +} + export function subscribeAd() { - // view 层通过 UniViewJSBridge.invokeServiceMethod('getAdData', args, function({data})=>{console.log(data)}) registerServiceMethod('getAdData', (args, resolve) => { - // TODO args: view 层传输的参数,处理完之后,resolve:回传给 service,如resolve({data}) + getAdData( + args, + (res: any) => { + resolve({ + code: 0, + data: res, + }) + }, + (err: any) => { + resolve({ + code: 1, + message: err, + }) + } + ) }) } diff --git a/packages/uni-app-plus/src/view/components/ad/index.tsx b/packages/uni-app-plus/src/view/components/ad/index.tsx index a6813d0ccc5..55d3424afb6 100644 --- a/packages/uni-app-plus/src/view/components/ad/index.tsx +++ b/packages/uni-app-plus/src/view/components/ad/index.tsx @@ -1,5 +1,128 @@ -import { defineBuiltInComponent } from '@dcloudio/uni-components' +import { Ref, ref, watch, onBeforeUnmount } from 'vue' +import { + defineBuiltInComponent, + useCustomEvent, + EmitEvent, +} from '@dcloudio/uni-components' +import { useNativeAttrs, useNative } from '../../../helpers/useNative' export default /*#__PURE__*/ defineBuiltInComponent({ name: 'Ad', + props: { + adpid: { + type: [Number, String], + default: '', + }, + data: { + type: Object, + default: null, + }, + dataCount: { + type: Number, + default: 5, + }, + channel: { + type: String, + default: '', + }, + }, + setup(props, { emit }) { + const rootRef: Ref<HTMLElement | null> = ref(null) + const containerRef: Ref<HTMLElement | null> = ref(null) + const trigger = useCustomEvent<EmitEvent<typeof emit>>(rootRef, emit) + const attrs = useNativeAttrs(props, ['id']) + const { position, onParentReady } = useNative(containerRef) + + let adView: ReturnType<typeof plus.ad.createAdView> + + onParentReady(() => { + adView = plus.ad.createAdView(Object.assign({}, attrs.value, position)) + plus.webview.currentWebview().append(adView as any) + + adView.setDislikeListener((data) => { + ;(containerRef.value as HTMLElement).style.height = '0' + window.dispatchEvent(new CustomEvent('updateview')) + trigger('close', {} as Event, data) + }) + adView.setRenderingListener((data) => { + if (data.result === 0) { + ;(containerRef.value as HTMLElement).style.height = data.height + 'px' + window.dispatchEvent(new CustomEvent('updateview')) + } else { + trigger('error', {} as Event, { + errCode: data.result, + }) + } + }) + adView.setAdClickedListener(() => { + trigger('adclicked', {} as Event, {}) + }) + + watch( + () => position, + (position) => adView.setStyle(position), + { deep: true } + ) + watch( + () => props.adpid, + (val) => { + if (val) { + loadData() + } + } + ) + watch( + () => props.data, + (val) => { + if (val) { + adView.renderingBind(val) + } + } + ) + + function loadData() { + let args = { + adpid: props.adpid, + width: position.width, + count: props.dataCount, + } + if (props.channel !== undefined) { + ;(args as any).ext = { + channel: props.channel, + } + } + UniViewJSBridge.invokeServiceMethod( + 'getAdData', + args, + ({ code, data, message }) => { + if (code === 0) { + adView.renderingBind(data) + } else { + trigger('error', {} as Event, { + errMsg: message, + }) + } + } + ) + } + + if (props.adpid) { + loadData() + } + }) + + onBeforeUnmount(() => { + if (adView) { + adView.close() + } + }) + + return () => { + return ( + <uni-ad ref={rootRef}> + <div ref={containerRef} class="uni-ad-container" /> + </uni-ad> + ) + } + }, })
10dd6892b28451b403275a092ebba412b638ca52
2021-05-26 08:47:17
DCloud_LXH
chore: scroll-view
false
scroll-view
chore
diff --git a/packages/uni-components/src/components/scroll-view/index.tsx b/packages/uni-components/src/components/scroll-view/index.tsx index b04a734ca51..b729ee06433 100644 --- a/packages/uni-components/src/components/scroll-view/index.tsx +++ b/packages/uni-components/src/components/scroll-view/index.tsx @@ -21,6 +21,7 @@ import { defineBuiltInComponent } from '@dcloudio/uni-components' type HTMLRef = Ref<HTMLElement | null> type Props = ExtractPropTypes<typeof props> type RefreshState = 'refreshing' | 'restore' | 'pulling' | '' +type Direction = 'x' | 'y' interface State { lastScrollTop: number lastScrollLeft: number @@ -98,7 +99,15 @@ export default /*#__PURE__*/ defineBuiltInComponent({ MODE: 3, }, props, - emits: ['scroll', 'scrolltoupper', 'scrolltolower', 'refresherabort'], + emits: [ + 'scroll', + 'scrolltoupper', + 'scrolltolower', + 'refresherrefresh', + 'refresherrestore', + 'refresherpulling', + 'refresherabort', + ], setup(props, { emit, slots }) { const rootRef: HTMLRef = ref(null) const main: HTMLRef = ref(null) @@ -252,42 +261,52 @@ function useScrollViewLoader( return isNaN(val) ? 50 : val }) - function scrollTo(t: number, n: 'x' | 'y') { - var i = main.value! - t < 0 - ? (t = 0) - : n === 'x' && t > i.scrollWidth - i.offsetWidth - ? (t = i.scrollWidth - i.offsetWidth) - : n === 'y' && - t > i.scrollHeight - i.offsetHeight && - (t = i.scrollHeight - i.offsetHeight) - var r = 0 - var o = '' - n === 'x' ? (r = i.scrollLeft - t) : n === 'y' && (r = i.scrollTop - t) - if (r !== 0) { - content.value!.style.transition = 'transform .3s ease-out' - content.value!.style.webkitTransition = '-webkit-transform .3s ease-out' - if (n === 'x') { - o = 'translateX(' + r + 'px) translateZ(0)' - } else { - n === 'y' && (o = 'translateY(' + r + 'px) translateZ(0)') - } - content.value!.removeEventListener('transitionend', __transitionEnd) - content.value!.removeEventListener('webkitTransitionEnd', __transitionEnd) - __transitionEnd = () => _transitionEnd(t, n) - content.value!.addEventListener('transitionend', __transitionEnd) - content.value!.addEventListener('webkitTransitionEnd', __transitionEnd) - if (n === 'x') { - // if (e !== 'ios') { - i.style.overflowX = 'hidden' - // } - } else if (n === 'y') { - i.style.overflowY = 'hidden' - } + function scrollTo(scrollToValue: number, direction: Direction) { + const container = main.value! + let transformValue = 0 + let transform = '' + + scrollToValue < 0 + ? (scrollToValue = 0) + : direction === 'x' && + scrollToValue > container.scrollWidth - container.offsetWidth + ? (scrollToValue = container.scrollWidth - container.offsetWidth) + : direction === 'y' && + scrollToValue > container.scrollHeight - container.offsetHeight && + (scrollToValue = container.scrollHeight - container.offsetHeight) + + direction === 'x' + ? (transformValue = container.scrollLeft - scrollToValue) + : direction === 'y' && + (transformValue = container.scrollTop - scrollToValue) - content.value!.style.transform = o - content.value!.style.webkitTransform = o + if (transformValue === 0) return + + let _content = content.value! + + _content.style.transition = 'transform .3s ease-out' + _content.style.webkitTransition = '-webkit-transform .3s ease-out' + if (direction === 'x') { + transform = 'translateX(' + transformValue + 'px) translateZ(0)' + } else { + direction === 'y' && + (transform = 'translateY(' + transformValue + 'px) translateZ(0)') } + _content.removeEventListener('transitionend', __transitionEnd) + _content.removeEventListener('webkitTransitionEnd', __transitionEnd) + __transitionEnd = () => _transitionEnd(scrollToValue, direction) + _content.addEventListener('transitionend', __transitionEnd) + _content.addEventListener('webkitTransitionEnd', __transitionEnd) + if (direction === 'x') { + // if (e !== 'ios') { + container.style.overflowX = 'hidden' + // } + } else if (direction === 'y') { + container.style.overflowY = 'hidden' + } + + _content.style.transform = transform + _content.style.webkitTransform = transform } function _handleScroll($event: MouseEvent) { if ($event.timeStamp - _lastScrollTime > 20) { @@ -410,16 +429,16 @@ function useScrollViewLoader( } } } - function _transitionEnd(val: number, type: 'x' | 'y') { + function _transitionEnd(val: number, direction: Direction) { content.value!.style.transition = '' content.value!.style.webkitTransition = '' content.value!.style.transform = '' content.value!.style.webkitTransform = '' let _main = main.value! - if (type === 'x') { + if (direction === 'x') { _main.style.overflowX = props.scrollX ? 'auto' : 'hidden' _main.scrollLeft = val - } else if (type === 'y') { + } else if (direction === 'y') { _main.style.overflowY = props.scrollY ? 'auto' : 'hidden' _main.scrollTop = val } @@ -467,8 +486,7 @@ function useScrollViewLoader( y: 0, } let needStop: boolean | null = null - let __handleTouchMove = function (_event: Event) { - const event = _event as TouchEvent + let __handleTouchMove = function (event: TouchEvent) { var x = event.touches[0].pageX var y = event.touches[0].pageY var _main = main.value! @@ -530,8 +548,7 @@ function useScrollViewLoader( }) } } - let __handleTouchStart = function (_event: Event) { - const event = _event as TouchEvent + let __handleTouchStart = function (event: TouchEvent) { if (event.touches.length === 1) { disableScrollBounce({ disable: true, @@ -550,8 +567,7 @@ function useScrollViewLoader( } } } - let __handleTouchEnd = function (_event: Event) { - const event = _event as TouchEvent + let __handleTouchEnd = function (event: TouchEvent) { touchStart = { x: 0, y: 0,
9fdd5df245a4e2ba9e62d3e1df595d964e50d475
2023-07-22 13:04:47
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 1a44e9dd0eb..b5213ffdd87 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index e83e8aac8b3..8adbed8b458 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node index 8ace53c71c0..5106e6107ca 100755 Binary files a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node and b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node differ diff --git a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node index 523b7f0d7df..6d028490b85 100755 Binary files a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node and b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index 047ba712efc..92cad1fc4a4 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 72fb3449fcb..3ffc01a0e06 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
37e44116f9a671189c681f33c1a46457dde9db66
2022-07-15 12:53:30
王亚琪
fix(uniCloud): clientInfo character error
false
clientInfo character error
fix
diff --git a/packages/uni-cloud/dist/uni-cloud.cjs.js b/packages/uni-cloud/dist/uni-cloud.cjs.js index 66dad049066..021efb3b93f 100644 --- a/packages/uni-cloud/dist/uni-cloud.cjs.js +++ b/packages/uni-cloud/dist/uni-cloud.cjs.js @@ -1 +1 @@ -"use strict";var e=require("@dcloudio/uni-i18n");"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var s=n((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},o=s.lib={},r=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,s=this.sigBytes,o=e.sigBytes;if(this.clamp(),s%4)for(var r=0;r<o;r++){var i=n[r>>>2]>>>24-r%4*8&255;t[s+r>>>2]|=i<<24-(s+r)%4*8}else for(r=0;r<o;r+=4)t[s+r>>>2]=n[r>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,s=[],o=function(t){t=t;var n=987654321,s=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&s)<<16)+(t=18e3*(65535&t)+(t>>16)&s)&s;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},r=0;r<t;r+=4){var a=o(4294967296*(n||e.random()));n=987654071*a(),s.push(4294967296*a()|0)}return new i.init(s,t)}}),a=s.enc={},c=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s+=2)n[s>>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new i.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;s.push(String.fromCharCode(r))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s++)n[s>>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new i.init(n,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,s=n.words,o=n.sigBytes,r=this.blockSize,a=o/(4*r),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*r,u=e.min(4*c,o);if(c){for(var l=0;l<c;l+=r)this._doProcessBlock(s,l);var h=s.splice(0,c);n.sigBytes-=u}return new i.init(h,u)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=h.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=s.algo={};return s}(Math),n)})),o=(n((function(e,t){var n;e.exports=(n=s,function(e){var t=n,s=t.lib,o=s.WordArray,r=s.Hasher,i=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var s=t+n,o=e[s];e[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r=this._hash.words,i=e[t+0],c=e[t+1],f=e[t+2],g=e[t+3],p=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],w=e[t+8],k=e[t+9],T=e[t+10],S=e[t+11],v=e[t+12],P=e[t+13],A=e[t+14],I=e[t+15],O=r[0],b=r[1],C=r[2],E=r[3];O=u(O,b,C,E,i,7,a[0]),E=u(E,O,b,C,c,12,a[1]),C=u(C,E,O,b,f,17,a[2]),b=u(b,C,E,O,g,22,a[3]),O=u(O,b,C,E,p,7,a[4]),E=u(E,O,b,C,m,12,a[5]),C=u(C,E,O,b,y,17,a[6]),b=u(b,C,E,O,_,22,a[7]),O=u(O,b,C,E,w,7,a[8]),E=u(E,O,b,C,k,12,a[9]),C=u(C,E,O,b,T,17,a[10]),b=u(b,C,E,O,S,22,a[11]),O=u(O,b,C,E,v,7,a[12]),E=u(E,O,b,C,P,12,a[13]),C=u(C,E,O,b,A,17,a[14]),O=l(O,b=u(b,C,E,O,I,22,a[15]),C,E,c,5,a[16]),E=l(E,O,b,C,y,9,a[17]),C=l(C,E,O,b,S,14,a[18]),b=l(b,C,E,O,i,20,a[19]),O=l(O,b,C,E,m,5,a[20]),E=l(E,O,b,C,T,9,a[21]),C=l(C,E,O,b,I,14,a[22]),b=l(b,C,E,O,p,20,a[23]),O=l(O,b,C,E,k,5,a[24]),E=l(E,O,b,C,A,9,a[25]),C=l(C,E,O,b,g,14,a[26]),b=l(b,C,E,O,w,20,a[27]),O=l(O,b,C,E,P,5,a[28]),E=l(E,O,b,C,f,9,a[29]),C=l(C,E,O,b,_,14,a[30]),O=h(O,b=l(b,C,E,O,v,20,a[31]),C,E,m,4,a[32]),E=h(E,O,b,C,w,11,a[33]),C=h(C,E,O,b,S,16,a[34]),b=h(b,C,E,O,A,23,a[35]),O=h(O,b,C,E,c,4,a[36]),E=h(E,O,b,C,p,11,a[37]),C=h(C,E,O,b,_,16,a[38]),b=h(b,C,E,O,T,23,a[39]),O=h(O,b,C,E,P,4,a[40]),E=h(E,O,b,C,i,11,a[41]),C=h(C,E,O,b,g,16,a[42]),b=h(b,C,E,O,y,23,a[43]),O=h(O,b,C,E,k,4,a[44]),E=h(E,O,b,C,v,11,a[45]),C=h(C,E,O,b,I,16,a[46]),O=d(O,b=h(b,C,E,O,f,23,a[47]),C,E,i,6,a[48]),E=d(E,O,b,C,_,10,a[49]),C=d(C,E,O,b,A,15,a[50]),b=d(b,C,E,O,m,21,a[51]),O=d(O,b,C,E,v,6,a[52]),E=d(E,O,b,C,g,10,a[53]),C=d(C,E,O,b,T,15,a[54]),b=d(b,C,E,O,c,21,a[55]),O=d(O,b,C,E,w,6,a[56]),E=d(E,O,b,C,I,10,a[57]),C=d(C,E,O,b,y,15,a[58]),b=d(b,C,E,O,P,21,a[59]),O=d(O,b,C,E,p,6,a[60]),E=d(E,O,b,C,S,10,a[61]),C=d(C,E,O,b,f,15,a[62]),b=d(b,C,E,O,k,21,a[63]),r[0]=r[0]+O|0,r[1]=r[1]+b|0,r[2]=r[2]+C|0,r[3]=r[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var r=e.floor(s/4294967296),i=s;n[15+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,s,o,r,i){var a=e+(t&n|~t&s)+o+i;return(a<<r|a>>>32-r)+t}function l(e,t,n,s,o,r,i){var a=e+(t&s|n&~s)+o+i;return(a<<r|a>>>32-r)+t}function h(e,t,n,s,o,r,i){var a=e+(t^n^s)+o+i;return(a<<r|a>>>32-r)+t}function d(e,t,n,s,o,r,i){var a=e+(n^(t|~s))+o+i;return(a<<r|a>>>32-r)+t}t.MD5=r._createHelper(c),t.HmacMD5=r._createHmacHelper(c)}(Math),n.MD5)})),n((function(e,t){var n,o,r;e.exports=(o=(n=s).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,s=4*n;t.sigBytes>s&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,u=0;u<n;u++)a[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=s,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),n((function(e,t){e.exports=s.HmacMD5})));const r="FUNCTION",i="OBJECT",a="CLIENT_DB";function c(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function u(e){return"object"===c(e)}function l(e){return e&&"string"==typeof e?JSON.parse(e):e}const h="development"===process.env.NODE_ENV,d=process.env.UNI_PLATFORM;let f;switch(d){case"h5":f="web";break;case"app-plus":f="app";break;default:f=d}const g=l(process.env.UNICLOUD_DEBUG),p=l(process.env.UNI_CLOUD_PROVIDER),m=process.env.RUN_BY_HBUILDERX;let y="";try{y=process.env.UNI_APP_ID||""}catch(e){}let _={};function w(e,t={}){var n,s;return n=_,s=e,Object.prototype.hasOwnProperty.call(n,s)||(_[e]=t),_[e]}const k=["invoke","success","fail","complete"],T=w("_globalUniCloudInterceptor");function S(e,t){T[e]||(T[e]={}),u(t)&&Object.keys(t).forEach((n=>{k.indexOf(n)>-1&&function(e,t,n){let s=T[e][t];s||(s=T[e][t]=[]),-1===s.indexOf(n)&&"function"==typeof n&&s.push(n)}(e,n,t[n])}))}function v(e,t){T[e]||(T[e]={}),u(t)?Object.keys(t).forEach((n=>{k.indexOf(n)>-1&&function(e,t,n){const s=T[e][t];if(!s)return;const o=s.indexOf(n);o>-1&&s.splice(o,1)}(e,n,t[n])})):delete T[e]}function P(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function A(e,t){return T[e]&&T[e][t]||[]}const I=w("_globalUniCloudListener"),O="response",b="needLogin",C="refreshToken",E="clientdb",R="cloudfunction",U="cloudobject";function x(e){return I[e]||(I[e]=[]),I[e]}function L(e,t){const n=x(e);n.includes(t)||n.push(t)}function D(e,t){const n=x(e),s=n.indexOf(t);-1!==s&&n.splice(s,1)}function N(e,t){const n=x(e);for(let e=0;e<n.length;e++){(0,n[e])(t)}}function q(e,t){return t?function(n){let s=!1;if("callFunction"===t){const e=n&&n.type||r;s=e!==r}const o="callFunction"===t&&!s;let i;i=this.isReady?Promise.resolve():this.initUniCloud,n=n||{};const a=i.then((()=>s?Promise.resolve():P(A(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>s?Promise.resolve(e):P(A(t,"success"),e).then((()=>P(A(t,"complete"),e))).then((()=>(o&&N(O,{type:R,content:e}),Promise.resolve(e))))),(e=>s?Promise.reject(e):P(A(t,"fail"),e).then((()=>P(A(t,"complete"),e))).then((()=>(N(O,{type:R,content:e}),Promise.reject(e))))));if(!(n.success||n.fail||n.complete))return a;a.then((e=>{n.success&&n.success(e),n.complete&&n.complete(e),o&&N(O,{type:R,content:e})}),(e=>{n.fail&&n.fail(e),n.complete&&n.complete(e),o&&N(O,{type:R,content:e})}))}:function(t){if(!((t=t||{}).success||t.fail||t.complete))return e.call(this,t);e.call(this,t).then((e=>{t.success&&t.success(e),t.complete&&t.complete(e)}),(e=>{t.fail&&t.fail(e),t.complete&&t.complete(e)}))}}class F extends Error{constructor(e){super(e.message),this.errMsg=e.message||"",this.errCode=this.code=e.code||"SYSTEM_ERROR",this.requestId=e.requestId}}function M(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:s}=uni.getLaunchOptionsSync();e=s,t=n}}catch(e){}return{channel:e,scene:t}}let $;function j(){const e=uni.getLocale&&uni.getLocale()||"en";if($)return{...$,locale:e,LOCALE:e};const t=uni.getSystemInfoSync(),{deviceId:n,platform:s,osName:o,uniPlatform:r,appId:i}=t,a=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let e=0;e<a.length;e++){delete t[a[e]]}return $={PLATFORM:r||d,OS:o||s,APPID:i||y,DEVICEID:n,...M(),...t},{...$,locale:e,LOCALE:e}}var K={sign:function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),o(n,t).toString()},wrappedRequest:function(e,t){return new Promise(((n,s)=>{t(Object.assign(e,{complete(e){e||(e={}),h&&"web"===f&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return s(new F({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const o=e.data;if(o.error)return s(new F({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))}};var B={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()},H={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"};const{t:W}=e.initVueI18n({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:H,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:H},"zh-Hans");var z=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(W("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=B,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return K.wrappedRequest(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=K.sign(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=K.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:s}}getAccessToken(){if("pending"===this._getAccessTokenPromiseStatus)return this._getAccessTokenPromise;this._getAccessTokenPromiseStatus="pending";return this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>new Promise(((t,n)=>{e.result&&e.result.accessToken?(this.setAccessToken(e.result.accessToken),this._getAccessTokenPromiseStatus="fulfilled",t(this.accessToken)):(this._getAccessTokenPromiseStatus="rejected",n(new F({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))),(e=>(this._getAccessTokenPromiseStatus="rejected",Promise.reject(e)))),this._getAccessTokenPromise}authorize(){this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:o,onUploadProgress:r}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?i(e):a(new F({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new F({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:s,config:o}){if("string"!==c(t))throw new F({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new F({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new F({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=o&&o.envType||this.config.envType;let i,a;return this.getOSSUploadOptionsFromPath({env:r,filename:t}).then((t=>{const o=t.result;i=o.id,a="https://"+o.cdnDomain+"/"+o.ossPath;const r={url:"https://"+o.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:o.accessKeyId,Signature:o.signature,host:o.host,id:i,key:o.ossPath,policy:o.policy,success_action_status:200},fileName:"file",name:"file",filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},r,{onUploadProgress:s}))})).then((()=>this.reportOSSUpload({id:i}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:a}):s(new F({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(t))}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new F({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}};var V={init(e){const t=new z(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const J="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Y;!function(e){e.local="local",e.none="none",e.session="session"}(Y||(Y={}));var X=function(){};const G=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new F({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,s)=>e?n(e):t(s)}));return e.promise=t,e};function Q(e){return void 0===e}function Z(e){return"[object Null]"===Object.prototype.toString.call(e)}var ee;function te(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const e of t){const{isMatch:t,genAdapter:n,runtime:s}=e;if(t())return{adapter:n(),runtime:s}}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(ee||(ee={}));const ne={adapter:null,runtime:void 0},se=["anonymousUuidKey"];class oe extends X{constructor(){super(),ne.adapter.root.tcbObject||(ne.adapter.root.tcbObject={})}setItem(e,t){ne.adapter.root.tcbObject[e]=t}getItem(e){return ne.adapter.root.tcbObject[e]}removeItem(e){delete ne.adapter.root.tcbObject[e]}clear(){delete ne.adapter.root.tcbObject}}function re(e,t){switch(e){case"local":return t.localStorage||new oe;case"none":return new oe;default:return t.sessionStorage||new oe}}class ie{constructor(e){if(!this._storage){this._persistence=ne.adapter.primaryStorage||e.persistence,this._storage=re(this._persistence,ne.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,s=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,r=`login_type_${e.env}`,i=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s,anonymousUuidKey:o,loginTypeKey:r,userInfoKey:i}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=re(e,ne.adapter);for(const e in this.keys){const s=this.keys[e];if(t&&se.includes(e))continue;const o=this._storage.getItem(s);Q(o)||Z(o)||(n.setItem(s,o),this._storage.removeItem(s))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const s={version:n||"localCachev1",content:t},o=JSON.stringify(s);try{this._storage.setItem(e,o)}catch(e){throw e}}getStore(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";const n=this._storage.getItem(e);if(!n)return"";if(n.indexOf(t)>=0){return JSON.parse(n).content}return""}removeStore(e){this._storage.removeItem(e)}}const ae={},ce={};function ue(e){return ae[e]}class le{constructor(e,t){this.data=t||null,this.name=e}}class he extends le{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const de=new class{constructor(){this._listeners={}}on(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}off(e,t){return function(e,t,n){if(n&&n[e]){const s=n[e].indexOf(t);-1!==s&&n[e].splice(s,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof he)return console.error(e.error),this;const n="string"==typeof e?new le(e,t||{}):e;const s=n.name;if(this._listens(s)){n.target=this;const e=this._listeners[s]?[...this._listeners[s]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function fe(e,t){de.on(e,t)}function ge(e,t={}){de.fire(e,t)}function pe(e,t){de.off(e,t)}const me="loginStateChanged",ye="loginStateExpire",_e="loginTypeChanged",we="anonymousConverted",ke="refreshAccessToken";var Te;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Te||(Te={}));const Se=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ve={"X-SDK-Version":"1.3.5"};function Pe(e,t,n){const s=e[t];e[t]=function(t){const o={},r={};n.forEach((n=>{const{data:s,headers:i}=n.call(e,t);Object.assign(o,s),Object.assign(r,i)}));const i=t.data;return i&&(()=>{var e;if(e=i,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...i,...o};else for(const e in o)i.append(e,o[e])})(),t.headers={...t.headers||{},...r},s.call(e,t)}}function Ae(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...ve,"x-seqid":e}}}class Ie{constructor(e={}){var t;this.config=e,this._reqClass=new ne.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=ue(this.config.env),this._localCache=(t=this.config.env,ce[t]),Pe(this._reqClass,"post",[Ae]),Pe(this._reqClass,"upload",[Ae]),Pe(this._reqClass,"download",[Ae])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(e){t=e}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:s,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let r=this._cache.getStore(n);if(!r)throw new F({message:"未登录CloudBase"});const i={refresh_token:r},a=await this.request("auth.fetchAccessTokenWithRefreshToken",i);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(s)===Te.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(o),t=this._cache.getStore(n),s=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(s.refresh_token),this._refreshAccessToken()}ge(ye),this._cache.removeStore(n)}throw new F({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return ge(ke),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new F({message:"refresh token不存在,登录状态异常"});let s=this._cache.getStore(e),o=this._cache.getStore(t),r=!0;return this._shouldRefreshAccessTokenHook&&!await this._shouldRefreshAccessTokenHook(s,o)&&(r=!1),(!s||!o||o<Date.now())&&r?this.refreshAccessToken():{accessToken:s,accessTokenExpire:o}}async request(e,t,n){const s=`x-tcb-trace_${this.config.env}`;let o="application/x-www-form-urlencoded";const r={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};if(-1===Se.indexOf(e)){const{refreshTokenKey:e}=this._cache.keys;this._cache.getStore(e)&&(r.access_token=(await this.getAccessToken()).accessToken)}let i;if("storage.uploadFile"===e){i=new FormData;for(let e in i)i.hasOwnProperty(e)&&void 0!==i[e]&&i.append(e,r[e]);o="multipart/form-data"}else{o="application/json",i={};for(let e in r)void 0!==r[e]&&(i[e]=r[e])}let a={headers:{"content-type":o}};n&&n.onUploadProgress&&(a.onUploadProgress=n.onUploadProgress);const c=this._localCache.getStore(s);c&&(a.headers["X-TCB-Trace"]=c);const{parse:u,inQuery:l,search:h}=t;let d={env:this.config.env};u&&(d.parse=!0),l&&(d={...l,...d});let f=function(e,t,n={}){const s=/\?/.test(t);let o="";for(let e in n)""===o?!s&&(t+="?"):o+="&",o+=`${e}=${encodeURIComponent(n[e])}`;return/^http(s)?\:\/\//.test(t+=o)?t:`${e}${t}`}(J,"//tcb-api.tencentcloudapi.com/web",d);h&&(f+=h);const g=await this.post({url:f,data:i,...a}),p=g.header&&g.header["x-tcb-trace"];if(p&&this._localCache.setStore(s,p),200!==Number(g.status)&&200!==Number(g.statusCode)||!g.data)throw new F({code:"NETWORK_ERROR",message:"network request error"});return g}async send(e,t={}){const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if("ACCESS_TOKEN_EXPIRED"===n.data.code&&-1===Se.indexOf(e)){await this.refreshAccessToken();const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if(n.data.code)throw new F({code:n.data.code,message:n.data.message});return n.data}if(n.data.code)throw new F({code:n.data.code,message:n.data.message});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(s,e)}}const Oe={};function be(e){return Oe[e]}class Ce{constructor(e){this.config=e,this._cache=ue(e.env),this._request=be(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(s,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(s,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class Ee{constructor(e){if(!e)throw new F({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=ue(this._envId),this._request=be(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach((e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:s,province:o,country:r,city:i}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:s,province:o,country:r,city:i});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Re{constructor(e){if(!e)throw new F({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ue(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys,o=this._cache.getStore(t),r=this._cache.getStore(n),i=this._cache.getStore(s);this.credential={refreshToken:o,accessToken:r,accessTokenExpire:i},this.user=new Ee(e)}get isAnonymousAuth(){return this.loginType===Te.ANONYMOUS}get isCustomAuth(){return this.loginType===Te.CUSTOM}get isWeixinAuth(){return this.loginType===Te.WECHAT||this.loginType===Te.WECHAT_OPEN||this.loginType===Te.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Ue extends Ce{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,s=this._cache.getStore(t)||void 0,o=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:s});if(o.uuid&&o.refresh_token){this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),ge(me),ge(_e,{env:this.config.env,loginType:Te.ANONYMOUS,persistence:"local"});const e=new Re(this.config.env);return await e.user.refresh(),e}throw new F({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,s=this._cache.getStore(t),o=this._cache.getStore(n),r=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:o,ticket:e});if(r.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),ge(we,{env:this.config.env}),ge(_e,{loginType:Te.CUSTOM,persistence:"local"}),{credential:{refreshToken:r.refresh_token}};throw new F({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Te.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class xe extends Ce{async signIn(e){if("string"!=typeof e)throw new F({param:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),ge(me),ge(_e,{env:this.config.env,loginType:Te.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Re(this.config.env);throw new F({message:"自定义登录失败"})}}class Le extends Ce{async signIn(e,t){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token:r,access_token_expire:i}=s;if(o)return this.setRefreshToken(o),r&&i?this.setAccessToken(r,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ge(me),ge(_e,{env:this.config.env,loginType:Te.EMAIL,persistence:this.config.persistence}),new Re(this.config.env);throw s.code?new F({code:s.code,message:`邮箱登录失败: ${s.message}`}):new F({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class De extends Ce{async signIn(e,t){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:Te.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token_expire:r,access_token:i}=s;if(o)return this.setRefreshToken(o),i&&r?this.setAccessToken(i,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ge(me),ge(_e,{env:this.config.env,loginType:Te.USERNAME,persistence:this.config.persistence}),new Re(this.config.env);throw s.code?new F({code:s.code,message:`用户名密码登录失败: ${s.message}`}):new F({message:"用户名密码登录失败"})}}class Ne{constructor(e){this.config=e,this._cache=ue(e.env),this._request=be(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),fe(_e,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Ue(this.config)}customAuthProvider(){return new xe(this.config)}emailAuthProvider(){return new Le(this.config)}usernameAuthProvider(){return new De(this.config)}async signInAnonymously(){return new Ue(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Le(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new De(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){this._anonymousAuthProvider||(this._anonymousAuthProvider=new Ue(this.config)),fe(we,this._onAnonymousConverted);return await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Te.ANONYMOUS)throw new F({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,s=this._cache.getStore(e);if(!s)return;const o=await this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),ge(me),ge(_e,{env:this.config.env,loginType:Te.NULL,persistence:this.config.persistence}),o}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){fe(me,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){fe(ye,e.bind(this))}onAccessTokenRefreshed(e){fe(ke,e.bind(this))}onAnonymousConverted(e){fe(we,e.bind(this))}onLoginTypeChanged(e){fe(_e,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Re(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new xe(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const qe=function(e,t){t=t||G();const n=be(this.config.env),{cloudPath:s,filePath:o,onUploadProgress:r,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{const{data:{url:a,authorization:c,token:u,fileId:l,cosFileId:h},requestId:d}=e,f={key:s,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};n.upload({url:a,data:f,file:o,name:s,fileType:i,onUploadProgress:r}).then((e=>{201===e.statusCode?t(null,{fileID:l,requestId:d}):t(new F({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Fe=function(e,t){t=t||G();const n=be(this.config.env),{cloudPath:s}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Me=function({fileList:e},t){if(t=t||G(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let t of e)if(!t||"string"!=typeof t)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return be(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},$e=function({fileList:e},t){t=t||G(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let s of e)"object"==typeof s?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?n.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const s={file_list:n};return be(this.config.env).send("storage.batchGetDownloadUrl",s).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},je=async function({fileID:e},t){const n=(await $e.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const s=be(this.config.env);let o=n.download_url;if(o=encodeURI(o),!t)return s.download({url:o});t(await s.download({url:o}))},Ke=function({name:e,data:t,query:n,parse:s,search:o},r){const i=r||G();let a;try{a=t?JSON.stringify(t):""}catch(e){return Promise.reject(e)}if(!e)return Promise.reject(new F({code:"PARAM_ERROR",message:"函数名不能为空"}));const c={inQuery:n,parse:s,search:o,function_name:e,request_data:a};return be(this.config.env).send("functions.invokeFunction",c).then((e=>{if(e.code)i(null,e);else{let t=e.data.response_data;if(s)i(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),i(null,{result:t,requestId:e.requestId})}catch(e){i(new F({message:"response data must be json"}))}}return i.promise})).catch((e=>{i(e)})),i.promise},Be={timeout:15e3,persistence:"session"},He={};class We{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(ne.adapter||(this.requestClient=new ne.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...Be,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new We(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||ne.adapter.primaryStorage||Be.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;ae[t]=new ie(e),ce[t]=new ie({...e,persistence:"local"})}(this.config),n=this.config,Oe[n.env]=new Ie(n),this.authObj=new Ne(this.config),this.authObj}on(e,t){return fe.apply(this,[e,t])}off(e,t){return pe.apply(this,[e,t])}callFunction(e,t){return Ke.apply(this,[e,t])}deleteFile(e,t){return Me.apply(this,[e,t])}getTempFileURL(e,t){return $e.apply(this,[e,t])}downloadFile(e,t){return je.apply(this,[e,t])}uploadFile(e,t){return qe.apply(this,[e,t])}getUploadMetadata(e,t){return Fe.apply(this,[e,t])}registerExtension(e){He[e.name]=e}async invokeExtension(e,t){const n=He[e];if(!n)throw new F({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=te(e)||{};t&&(ne.adapter=t),n&&(ne.runtime=n)}}var ze=new We;function Ve(e,t,n){void 0===n&&(n={});var s=/\?/.test(t),o="";for(var r in n)""===o?!s&&(t+="?"):o+="&",o+=r+"="+encodeURIComponent(n[r]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}class Je{post(e){const{url:t,data:n,headers:s}=e;return new Promise(((e,o)=>{B.request({url:Ve("https:",t),data:n,method:"POST",header:s,success(t){e(t)},fail(e){o(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:s,file:o,data:r,headers:i,fileType:a}=e,c=B.uploadFile({url:Ve("https:",s),name:"file",formData:Object.assign({},r),filePath:o,fileType:a,header:i,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&r.success_action_status&&(n.statusCode=parseInt(r.success_action_status,10)),t(n)},fail(e){h&&"mp-alipay"===f&&console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Ye={setItem(e,t){B.setStorageSync(e,t)},getItem:e=>B.getStorageSync(e),removeItem(e){B.removeStorageSync(e)},clear(){B.clearStorageSync()}};var Xe={genAdapter:function(){return{root:{},reqClass:Je,localStorage:Ye,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ze.useAdapters(Xe);const Ge=ze,Qe=Ge.init;Ge.init=function(e){e.env=e.spaceId;const t=Qe.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{t[e]=q(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var Ze=Ge;function et(e){return e&&et(e.__v_raw)||e}function tt(){return{token:B.getStorageSync("uni_id_token")||B.getStorageSync("uniIdToken"),tokenExpired:B.getStorageSync("uni_id_token_expired")}}function nt({token:e,tokenExpired:t}={}){e&&B.setStorageSync("uni_id_token",e),t&&B.setStorageSync("uni_id_token_expired",t)}function st(){if(!h||"web"!==f)return;uni.getStorageSync("__LAST_DCLOUD_APPID")!==y&&(uni.setStorageSync("__LAST_DCLOUD_APPID",y),console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),B.removeStorageSync("uni_id_token"),B.removeStorageSync("uniIdToken"),B.removeStorageSync("uni_id_token_expired"))}var ot=class extends z{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=K.sign(n,this.config.clientSecret);const o=j();s["x-client-info"]=JSON.stringify(o);const{token:r}=tt();return s["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(s))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:o,onUploadProgress:r}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:o,success(e){e&&e.statusCode<400?i(e):a(new F({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new F({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:s}){if(!t)throw new F({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let o;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:r,formData:i,name:a}=t.result;o=t.result.fileUrl;const c={url:r,formData:i,name:a,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},c,{onUploadProgress:s}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:o}):s(new F({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t))}getTempFileURL({fileList:e}={}){const t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t))}};var rt={init(e){const t=new ot(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function it({data:e}){let t;t=j();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=tt();e&&(n.uniIdToken=e)}return n}function at({name:e,data:t}){const{localAddress:n,localPort:s}=this,o={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],r=this.config.spaceId,i=`http://${n}:${s}/system/check-function`,a=`http://${n}:${s}/cloudfunctions/${e}`;return new Promise(((t,n)=>{B.request({method:"POST",url:i,data:{name:e,platform:f,provider:o,spaceId:r},timeout:3e3,success(e){t(e)},fail(){t({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((({data:e}={})=>{const{code:t,message:n}=e||{};return{code:0===t?0:t||"SYS_ERR",message:n||"SYS_ERR"}})).then((({code:n,message:s})=>{if(0!==n){switch(n){case"MODULE_ENCRYPTED":console.error(`此云函数(${e})依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数`);break;case"FUNCTION_ENCRYPTED":console.error(`此云函数(${e})已加密不可本地调试,自动切换为云端已部署的云函数`);break;case"ACTION_ENCRYPTED":console.error(s||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":{const e="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(e),new Error(e)}case"SWITCH_TO_CLOUD":break;default:{const e=`检测本地调试服务出现错误:${s},请检查网络环境或重启客户端再试`;throw console.error(e),new Error(e)}}return this._originCallFunction({name:e,data:t})}return new Promise(((e,n)=>{const s=it.call(this,{data:t});B.request({method:"POST",url:a,data:{provider:o,platform:f,param:s},success:({statusCode:t,data:s}={})=>!t||t>=400?n(new F({code:s.code||"SYS_ERR",message:s.message||"request:fail"})):e({result:s}),fail(e){n(new F({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}const ct=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var ut=/[\\^$.*+?()[\]{}|]/g,lt=RegExp(ut.source);function ht(e,t,n){return e.replace(new RegExp((s=t)&&lt.test(s)?s.replace(ut,"\\$&"):s,"g"),n);var s}function dt({functionName:e,result:t,logPvd:n}){if(this.config.debugLog&&t&&t.requestId){const s=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:t.requestId});console.log(`[${n}-request]${s}[/${n}-request]`)}}function ft(e){const t=e.callFunction,n=function(n){const s=n.name;n.data=it.call(e,{data:n.data});const o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider];return t.call(this,n).then((e=>(e.errCode=0,dt.call(this,{functionName:s,result:e,logPvd:o}),Promise.resolve(e))),(e=>(dt.call(this,{functionName:s,result:e,logPvd:o}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let s=0;s<n.length;s++){const{rule:o,content:r,mode:i}=n[s],a=e.match(o);if(!a)continue;let c=r;for(let e=1;e<a.length;e++)c=ht(c,`{$${e}}`,a[e]);for(const e in t)c=ht(c,`{${e}}`,t[e]);return"replace"===i?c:e+c}return e}({message:`[${n.name}]: ${e.message}`,formatter:ct,extraInfo:{functionName:s}})),Promise.reject(e))))};e.callFunction=function(t){let s;return h&&e.debugInfo&&!e.debugInfo.forceRemote&&p?(e._originCallFunction||(e._originCallFunction=n),s=at.call(this,t)):s=n.call(this,t),Object.defineProperty(s,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),s}}const gt=Symbol("CLIENT_DB_INTERNAL");function pt(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=gt,e.__v_raw=void 0,new Proxy(e,{get(e,n,s){if("_uniClient"===n)return null;if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,s)}})}function mt(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const s=e[t].indexOf(n);-1!==s&&e[t].splice(s,1)}}}const yt=["db.Geo","db.command","command.aggregate"];function _t(e,t){return yt.indexOf(`${e}.${t}`)>-1}function wt(e){switch(c(e=et(e))){case"array":return e.map((e=>wt(e)));case"object":return e._internalType===gt||Object.keys(e).forEach((t=>{e[t]=wt(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}class kt{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:wt(e.$param)})))}}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get useAggregate(){let e=this,t=!1;for(;e.prevStage;){e=e.prevStage;const n=e.content.$method;if("aggregate"===n||"pipeline"===n){t=!0;break}}return t}get count(){if(!this.useAggregate)return function(){return this._send("count",Array.from(arguments))};const e=this;return function(){return Tt({$method:"count",$param:wt(Array.from(arguments))},e,this._database)}}get(){return this._send("get",Array.from(arguments))}add(){return this._send("add",Array.from(arguments))}remove(){return this._send("remove",Array.from(arguments))}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}set(){throw new Error("clientDB禁止使用set方法")}_send(e,t){const n=this.getAction(),s=this.getCommand();if(s.$db.push({$method:e,$param:wt(t)}),h){const e=s.$db.find((e=>"collection"===e.$method)),t=e&&e.$param;t&&1===t.length&&"string"==typeof e.$param[0]&&e.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:s})}}function Tt(e,t,n){return pt(new kt(e,t,n),{get(e,t){let s="db";return e&&e.content&&(s=e.content.$method),_t(s,t)?Tt({$method:t},e,n):function(){return Tt({$method:t,$param:wt(Array.from(arguments))},e,n)}}})}function St({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}}}class vt extends class{constructor({uniClient:e={}}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e.isDefault&&(this._dbCallBacks=w("_globalUniCloudDatabaseCallback")),this.auth=mt(this._authCallBacks),Object.assign(this,mt(this._dbCallBacks)),this.env=pt({},{get:(e,t)=>({$env:t})}),this.Geo=pt({},{get:(e,t)=>St({path:["Geo"],method:t})}),this.serverDate=St({path:[],method:"serverDate"}),this.RegExp=St({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_callCloudFunction({action:e,command:t,multiCommand:n,queryList:s}){function o(e,t){if(n&&s)for(let n=0;n<s.length;n++){const o=s[n];o.udb&&"function"==typeof o.udb.setResult&&(t?o.udb.setResult(t):o.udb.setResult(e.result.dataList[n]))}}const r=this;function i(e){return r._callback("error",[e]),P(A("database","fail"),e).then((()=>P(A("database","complete"),e))).then((()=>(o(null,e),N(O,{type:E,content:e}),Promise.reject(e))))}const c=P(A("database","invoke")),u=this._uniClient;return c.then((()=>u.callFunction({name:"DCloud-clientDB",type:a,data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:s,tokenExpired:r,systemInfo:a=[]}=e.result;if(a)for(let e=0;e<a.length;e++){const{level:t,message:n,detail:s}=a[e],o=console["app"===f&&"warn"===t?"error":t]||console.log;let r="[System Info]"+n;s&&(r=`${r}\n详细信息:${s}`),o(r)}if(t){return i(new F({code:t,message:n,requestId:e.requestId}))}e.result.errCode=e.result.code,e.result.errMsg=e.result.message,s&&r&&(nt({token:s,tokenExpired:r}),this._callbackAuth("refreshToken",[{token:s,tokenExpired:r}]),this._callback("refreshToken",[{token:s,tokenExpired:r}]),N(C,{token:s,tokenExpired:r}));const c=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}];for(let t=0;t<c.length;t++){const{prop:n,tips:s}=c[t];if(n in e.result){const t=e.result[n];Object.defineProperty(e.result,n,{get:()=>(console.warn(s),t)})}}return function(e){return P(A("database","success"),e).then((()=>P(A("database","complete"),e))).then((()=>(o(e,null),N(O,{type:E,content:e}),Promise.resolve(e))))}(e)}),(e=>{/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");return i(new F({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}function Pt(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;const n=function(e,t={}){return pt(new e(t),{get:(e,t)=>_t("db",t)?Tt({$method:t},null,e):function(){return Tt({$method:t,$param:wt(Array.from(arguments))},null,e)}})}(vt,{uniClient:e});return this._database=n,n}}var At={};const It="token无效,跳转登录页面",Ot="token过期,跳转登录页面",bt={TOKEN_INVALID_TOKEN_EXPIRED:Ot,TOKEN_INVALID_INVALID_CLIENTID:It,TOKEN_INVALID:It,TOKEN_INVALID_WRONG_TOKEN:It,TOKEN_INVALID_ANONYMOUS_USER:It},Ct={"uni-id-token-expired":Ot,"uni-id-check-token-failed":It,"uni-id-token-not-exist":It,"uni-id-check-device-feature-failed":It};function Et(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Rt(e=[],t=""){const n=[],s=[];return e.forEach((e=>{!0===e.needLogin?n.push(Et(t,e.path)):!1===e.needLogin&&s.push(Et(t,e.path))})),{needLoginPage:n,notNeedLoginPage:s}}function Ut(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,s=e.split("?")[0].replace(/^\//,"");return n.some((e=>e.pagePath===s))}const xt=!!At.uniIdRouter;const{loginPage:Lt,routerNeedLogin:Dt,resToLogin:Nt,needLoginPage:qt,notNeedLoginPage:Ft,loginPageInTabBar:Mt}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:s={}}=At){const{loginPage:o,needLogin:r=[],resToLogin:i=!0}=n,{needLoginPage:a,notNeedLoginPage:c}=Rt(e),{needLoginPage:u,notNeedLoginPage:l}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:s,pages:o=[]}=e,{needLoginPage:r,notNeedLoginPage:i}=Rt(o,s);t.push(...r),n.push(...i)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:o,routerNeedLogin:r,resToLogin:i,needLoginPage:[...a,...u],notNeedLoginPage:[...c,...l],loginPageInTabBar:Ut(o,s)}}();function $t(e){const t=function(e){const t=getCurrentPages(),n=t[t.length-1].route,s=e.charAt(0),o=e.split("?")[0];if("/"===s)return o;const r=o.replace(/^\//,"").split("/"),i=n.split("/");i.pop();for(let e=0;e<r.length;e++){const t=r[e];".."===t?i.pop():"."!==t&&i.push(t)}return""===i[0]&&i.shift(),i.join("/")}(e).replace(/^\//,"");return!(Ft.indexOf(t)>-1)&&(qt.indexOf(t)>-1||Dt.some((t=>function(e,t){return new RegExp(t).test(e)}(e,t))))}function jt(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+`&uniIdRedirectUrl=${encodeURIComponent(t)}`:e+`?uniIdRedirectUrl=${encodeURIComponent(t)}`:e}function Kt(){const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];uni.addInterceptor(n,{invoke(e){const{token:t,tokenExpired:s}=tt();let o;if(t){if(s<Date.now()){const e="uni-id-token-expired";o={errCode:e,errMsg:Ct[e]}}}else{const e="uni-id-check-token-failed";o={errCode:e,errMsg:Ct[e]}}if($t(e.url)&&o){o.uniIdRedirectUrl=e.url;if(x(b).length>0)return setTimeout((()=>{N(b,o)}),0),e.url="",!1;if(!Lt)return e;const t=jt(Lt,o.uniIdRedirectUrl);if(Mt){if("navigateTo"===n||"redirectTo"===n)return setTimeout((()=>{uni.switchTab({url:t})})),!1}else if("switchTab"===n)return setTimeout((()=>{uni.navigateTo({url:t})})),!1;e.url=t}return e}})}}function Bt(){this.onResponse((e=>{const{type:t,content:n}=e;let s=!1;switch(t){case"cloudobject":s=function(e){const{errCode:t}=e;return t in Ct}(n);break;case"clientdb":s=function(e){const{errCode:t}=e;return t in bt}(n)}s&&function(e={}){const t=x(b),n=getCurrentPages(),s=n[n.length-1],o=s&&s.$page&&s.$page.fullPath;if(t.length>0)return N(b,Object.assign({uniIdRedirectUrl:o},e));Lt&&uni.navigateTo({url:jt(Lt,o)})}(n)}))}function Ht(e){e.onNeedLogin=function(e){L(b,e)},e.offNeedLogin=function(e){D(b,e)},xt&&(w("uni-cloud-status").needLoginInit||(w("uni-cloud-status").needLoginInit=!0,function t(){const n=getCurrentPages();n&&n[0]?Kt.call(e):setTimeout((()=>{t()}),30)}(),Nt&&Bt.call(e)))}function Wt(e){!function(e){e.onResponse=function(e){L(O,e)},e.offResponse=function(e){D(O,e)}}(e),Ht(e),function(e){e.onRefreshToken=function(e){L(C,e)},e.offRefreshToken=function(e){D(C,e)}}(e)}let zt;const Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Jt=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Yt(){const e=tt().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((s=t[1],decodeURIComponent(zt(s).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(e){throw new Error("获取当前用户信息出错,详细错误信息为:"+e.message)}var s;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}zt="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Jt.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,s,o="",r=0;r<e.length;)t=Vt.indexOf(e.charAt(r++))<<18|Vt.indexOf(e.charAt(r++))<<12|(n=Vt.indexOf(e.charAt(r++)))<<6|(s=Vt.indexOf(e.charAt(r++))),o+=64===n?String.fromCharCode(t>>16&255):64===s?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var Xt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",s="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function r(e,t,{onChooseFile:s,onUploadProgress:o}){return t.then((e=>{if(s){const t=s(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,s=5,o){(t=Object.assign({},t)).errMsg=n;const r=t.tempFiles,i=r.length;let a=0;return new Promise((n=>{for(;a<s;)c();function c(){const s=a++;if(s>=i)return void(!r.find((e=>!e.url&&!e.errMsg))&&n(t));const u=r[s];e.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,onUploadProgress(e){e.index=s,e.tempFile=u,e.tempFilePath=u.path,o&&o(e)}}).then((e=>{u.url=e.fileID,s<i&&c()})).catch((e=>{u.errMsg=e.errMsg||e.message,s<i&&c()}))}}))}(e,t,5,o)))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?r(e,function(e){const{count:t,sizeType:n,sourceType:r=["album","camera"],extension:i}=e;return new Promise(((e,a)=>{uni.chooseImage({count:t,sizeType:n,sourceType:r,extension:i,success(t){e(o(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",s)})}})}))}(t),t):"video"===t.type?r(e,function(e){const{camera:t,compressed:n,maxDuration:r,sourceType:i=["album","camera"],extension:a}=e;return new Promise(((e,c)=>{uni.chooseVideo({camera:t,compressed:n,maxDuration:r,sourceType:i,extension:a,success(t){const{tempFilePath:n,duration:s,size:r,height:i,width:a}=t;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:r,type:t.tempFile&&t.tempFile.type||"",width:a,height:i,duration:s,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",s)})}})}))}(t),t):r(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,r)=>{let i=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(i=wx.chooseMessageFile),"function"!=typeof i)return r({errMsg:s+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});i({type:"all",count:t,extension:n,success(t){e(o(t))},fail(e){r({errMsg:e.errMsg.replace("chooseFile:fail",s)})}})}))}(t),t)}}})),Gt=t(Xt);const Qt="manual";function Zt(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if(this.loadtime===Qt)return;let n=!1;const s=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(s.push(e[o]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,s)}))},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((n=>{this.mixinDatacomLoading=!1;const{data:s,count:o}=n.result;this.getcount&&(this.mixinDatacomPage.count=o),this.mixinDatacomHasMore=s.length<this.pageSize;const r=e?s.length?s[0]:void 0:s;this.mixinDatacomResData=r,t&&t(r)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,n&&n(e)})))},mixinDatacomGet(t={}){let n=e.database(this.spaceInfo);const s=t.action||this.action;s&&(n=n.action(s));const o=t.collection||this.collection;n=Array.isArray(o)?n.collection(...o):n.collection(o);const r=t.where||this.where;r&&Object.keys(r).length&&(n=n.where(r));const i=t.field||this.field;i&&(n=n.field(i));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const u=t.groupField||this.groupField;u&&(n=n.groupField(u));!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const l=t.orderby||this.orderby;l&&(n=n.orderBy(l));const h=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,f=void 0!==t.getcount?t.getcount:this.getcount,g=void 0!==t.gettree?t.gettree:this.gettree,p=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:f},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return g&&(m.getTree=y),p&&(m.getTreePath=y),n=n.skip(d*(h-1)).limit(d).get(m),n}}}}function en(e){return function(t,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:s,loadingOptions:o,errorOptions:r}=n,a=!s;return new Proxy({},{get:(n,s)=>async function n(...c){let u;a&&uni.showLoading({title:o.title,mask:o.mask});try{u=await e.callFunction({name:t,type:i,data:{method:s,params:c}})}catch(e){u={result:e}}const{errCode:l,errMsg:h,newToken:d}=u.result||{};if(a&&uni.hideLoading(),d&&d.token&&d.tokenExpired&&(nt(d),N(C,{...d})),l){if(a)if("toast"===r.type)uni.showToast({title:h,icon:"none"});else{if("modal"!==r.type)throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:e}=await async function({title:e,content:t,showCancel:n,cancelText:s,confirmText:o}={}){return new Promise(((r,i)=>{uni.showModal({title:e,content:t,showCancel:n,cancelText:s,confirmText:o,success(e){r(e)},fail(){r({confirm:!1,cancel:!0})}})}))}({title:"提示",content:h,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&e)return n(...c)}}const e=new F({code:l,message:h,requestId:u.requestId});throw e.detail=u.result,N(O,{type:U,content:e}),e}return N(O,{type:U,content:u.result}),u.result}})}}async function tn(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(s={url:n,timeout:500},new Promise(((e,t)=>{B.request({...s,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(e){return!1}var s}function nn(e){if(e.initUniCloudStatus&&"rejected"!==e.initUniCloudStatus)return;let t=Promise.resolve();e.isReady=!1,e.isDefault=!1;const n=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously())).then((()=>{if(!h)return Promise.resolve();if("app"===f&&"ios"===uni.getSystemInfoSync().osName){const{osName:e,osVersion:t}=uni.getSystemInfoSync();"ios"===e&&function(e){if(!e||"string"!=typeof e)return 0;const t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(t)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)")}if(h&&e.debugInfo){const{address:t,servePort:n}=e.debugInfo;return async function(e,t){let n;for(let s=0;s<e.length;s++){const o=e[s];if(await tn(o,t)){n=o;break}}return{address:n,port:t}}(t,n)}})).then((({address:t,port:n}={})=>{if(!h)return Promise.resolve();const s=console["app"===f?"error":"warn"];if(t)e.localAddress=t,e.localPort=n;else if(e.debugInfo){let t="";"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,t="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):t="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","web"===f&&(t+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===f.indexOf("mp-")&&(t+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),s(t)}})).then((()=>{st(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((t=>{console.error(t),e.initUniCloudStatus="rejected"}))}let sn=new class{init(e){let t={};const n=h&&!1;switch(e.provider){case"tcb":case"tencent":t=Ze.init(Object.assign(e,{debugLog:n}));break;case"aliyun":t=V.init(Object.assign(e,{debugLog:n}));break;case"private":t=rt.init(Object.assign(e,{debugLog:n}));break;default:throw new Error("未提供正确的provider参数")}const s=g;h&&s&&!s.code&&(t.debugInfo=s),nn(t),t.reInit=function(){nn(this)},ft(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),Pt(t),function(e){e.getCurrentUserInfo=Yt,e.chooseAndUploadFile=Gt.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Zt(e)}}),e.importObject=en(e)}(t);return["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return t.reInit(),n.apply(t,Array.from(arguments))},t[e]=q(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{{const e=p;let t={};if(1===e.length)t=e[0],sn=sn.init(t),sn.isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":m?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",t.forEach((e=>{sn[e]=function(){return console.error(n),Promise.reject(new F({code:"SYS_ERR",message:n}))}}))}Object.assign(sn,{get mixinDatacom(){return Zt(sn)}}),Wt(sn),sn.addInterceptor=S,sn.removeInterceptor=v}})();var on=sn;module.exports=on; +"use strict";var e=require("@dcloudio/uni-i18n");"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var s=n((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},o=s.lib={},r=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,s=this.sigBytes,o=e.sigBytes;if(this.clamp(),s%4)for(var r=0;r<o;r++){var i=n[r>>>2]>>>24-r%4*8&255;t[s+r>>>2]|=i<<24-(s+r)%4*8}else for(r=0;r<o;r+=4)t[s+r>>>2]=n[r>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,s=[],o=function(t){t=t;var n=987654321,s=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&s)<<16)+(t=18e3*(65535&t)+(t>>16)&s)&s;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},r=0;r<t;r+=4){var a=o(4294967296*(n||e.random()));n=987654071*a(),s.push(4294967296*a()|0)}return new i.init(s,t)}}),a=s.enc={},c=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s+=2)n[s>>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new i.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;s.push(String.fromCharCode(r))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s++)n[s>>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new i.init(n,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,s=n.words,o=n.sigBytes,r=this.blockSize,a=o/(4*r),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*r,u=e.min(4*c,o);if(c){for(var l=0;l<c;l+=r)this._doProcessBlock(s,l);var h=s.splice(0,c);n.sigBytes-=u}return new i.init(h,u)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=h.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=s.algo={};return s}(Math),n)})),o=(n((function(e,t){var n;e.exports=(n=s,function(e){var t=n,s=t.lib,o=s.WordArray,r=s.Hasher,i=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var s=t+n,o=e[s];e[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r=this._hash.words,i=e[t+0],c=e[t+1],f=e[t+2],g=e[t+3],p=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],w=e[t+8],k=e[t+9],S=e[t+10],T=e[t+11],v=e[t+12],A=e[t+13],P=e[t+14],I=e[t+15],O=r[0],b=r[1],C=r[2],E=r[3];O=u(O,b,C,E,i,7,a[0]),E=u(E,O,b,C,c,12,a[1]),C=u(C,E,O,b,f,17,a[2]),b=u(b,C,E,O,g,22,a[3]),O=u(O,b,C,E,p,7,a[4]),E=u(E,O,b,C,m,12,a[5]),C=u(C,E,O,b,y,17,a[6]),b=u(b,C,E,O,_,22,a[7]),O=u(O,b,C,E,w,7,a[8]),E=u(E,O,b,C,k,12,a[9]),C=u(C,E,O,b,S,17,a[10]),b=u(b,C,E,O,T,22,a[11]),O=u(O,b,C,E,v,7,a[12]),E=u(E,O,b,C,A,12,a[13]),C=u(C,E,O,b,P,17,a[14]),O=l(O,b=u(b,C,E,O,I,22,a[15]),C,E,c,5,a[16]),E=l(E,O,b,C,y,9,a[17]),C=l(C,E,O,b,T,14,a[18]),b=l(b,C,E,O,i,20,a[19]),O=l(O,b,C,E,m,5,a[20]),E=l(E,O,b,C,S,9,a[21]),C=l(C,E,O,b,I,14,a[22]),b=l(b,C,E,O,p,20,a[23]),O=l(O,b,C,E,k,5,a[24]),E=l(E,O,b,C,P,9,a[25]),C=l(C,E,O,b,g,14,a[26]),b=l(b,C,E,O,w,20,a[27]),O=l(O,b,C,E,A,5,a[28]),E=l(E,O,b,C,f,9,a[29]),C=l(C,E,O,b,_,14,a[30]),O=h(O,b=l(b,C,E,O,v,20,a[31]),C,E,m,4,a[32]),E=h(E,O,b,C,w,11,a[33]),C=h(C,E,O,b,T,16,a[34]),b=h(b,C,E,O,P,23,a[35]),O=h(O,b,C,E,c,4,a[36]),E=h(E,O,b,C,p,11,a[37]),C=h(C,E,O,b,_,16,a[38]),b=h(b,C,E,O,S,23,a[39]),O=h(O,b,C,E,A,4,a[40]),E=h(E,O,b,C,i,11,a[41]),C=h(C,E,O,b,g,16,a[42]),b=h(b,C,E,O,y,23,a[43]),O=h(O,b,C,E,k,4,a[44]),E=h(E,O,b,C,v,11,a[45]),C=h(C,E,O,b,I,16,a[46]),O=d(O,b=h(b,C,E,O,f,23,a[47]),C,E,i,6,a[48]),E=d(E,O,b,C,_,10,a[49]),C=d(C,E,O,b,P,15,a[50]),b=d(b,C,E,O,m,21,a[51]),O=d(O,b,C,E,v,6,a[52]),E=d(E,O,b,C,g,10,a[53]),C=d(C,E,O,b,S,15,a[54]),b=d(b,C,E,O,c,21,a[55]),O=d(O,b,C,E,w,6,a[56]),E=d(E,O,b,C,I,10,a[57]),C=d(C,E,O,b,y,15,a[58]),b=d(b,C,E,O,A,21,a[59]),O=d(O,b,C,E,p,6,a[60]),E=d(E,O,b,C,T,10,a[61]),C=d(C,E,O,b,f,15,a[62]),b=d(b,C,E,O,k,21,a[63]),r[0]=r[0]+O|0,r[1]=r[1]+b|0,r[2]=r[2]+C|0,r[3]=r[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var r=e.floor(s/4294967296),i=s;n[15+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,s,o,r,i){var a=e+(t&n|~t&s)+o+i;return(a<<r|a>>>32-r)+t}function l(e,t,n,s,o,r,i){var a=e+(t&s|n&~s)+o+i;return(a<<r|a>>>32-r)+t}function h(e,t,n,s,o,r,i){var a=e+(t^n^s)+o+i;return(a<<r|a>>>32-r)+t}function d(e,t,n,s,o,r,i){var a=e+(n^(t|~s))+o+i;return(a<<r|a>>>32-r)+t}t.MD5=r._createHelper(c),t.HmacMD5=r._createHmacHelper(c)}(Math),n.MD5)})),n((function(e,t){var n,o,r;e.exports=(o=(n=s).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,s=4*n;t.sigBytes>s&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,u=0;u<n;u++)a[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=s,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),n((function(e,t){e.exports=s.HmacMD5})));const r="FUNCTION",i="OBJECT",a="CLIENT_DB";function c(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function u(e){return"object"===c(e)}function l(e){return e&&"string"==typeof e?JSON.parse(e):e}const h="development"===process.env.NODE_ENV,d=process.env.UNI_PLATFORM;let f;switch(d){case"h5":f="web";break;case"app-plus":f="app";break;default:f=d}const g=l(process.env.UNICLOUD_DEBUG),p=l(process.env.UNI_CLOUD_PROVIDER),m=process.env.RUN_BY_HBUILDERX;let y="";try{y=process.env.UNI_APP_ID||""}catch(e){}let _={};function w(e,t={}){var n,s;return n=_,s=e,Object.prototype.hasOwnProperty.call(n,s)||(_[e]=t),_[e]}const k=["invoke","success","fail","complete"],S=w("_globalUniCloudInterceptor");function T(e,t){S[e]||(S[e]={}),u(t)&&Object.keys(t).forEach((n=>{k.indexOf(n)>-1&&function(e,t,n){let s=S[e][t];s||(s=S[e][t]=[]),-1===s.indexOf(n)&&"function"==typeof n&&s.push(n)}(e,n,t[n])}))}function v(e,t){S[e]||(S[e]={}),u(t)?Object.keys(t).forEach((n=>{k.indexOf(n)>-1&&function(e,t,n){const s=S[e][t];if(!s)return;const o=s.indexOf(n);o>-1&&s.splice(o,1)}(e,n,t[n])})):delete S[e]}function A(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function P(e,t){return S[e]&&S[e][t]||[]}const I=w("_globalUniCloudListener"),O="response",b="needLogin",C="refreshToken",E="clientdb",R="cloudfunction",U="cloudobject";function x(e){return I[e]||(I[e]=[]),I[e]}function L(e,t){const n=x(e);n.includes(t)||n.push(t)}function D(e,t){const n=x(e),s=n.indexOf(t);-1!==s&&n.splice(s,1)}function N(e,t){const n=x(e);for(let e=0;e<n.length;e++){(0,n[e])(t)}}function q(e,t){return t?function(n){let s=!1;if("callFunction"===t){const e=n&&n.type||r;s=e!==r}const o="callFunction"===t&&!s;let i;i=this.isReady?Promise.resolve():this.initUniCloud,n=n||{};const a=i.then((()=>s?Promise.resolve():A(P(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>s?Promise.resolve(e):A(P(t,"success"),e).then((()=>A(P(t,"complete"),e))).then((()=>(o&&N(O,{type:R,content:e}),Promise.resolve(e))))),(e=>s?Promise.reject(e):A(P(t,"fail"),e).then((()=>A(P(t,"complete"),e))).then((()=>(N(O,{type:R,content:e}),Promise.reject(e))))));if(!(n.success||n.fail||n.complete))return a;a.then((e=>{n.success&&n.success(e),n.complete&&n.complete(e),o&&N(O,{type:R,content:e})}),(e=>{n.fail&&n.fail(e),n.complete&&n.complete(e),o&&N(O,{type:R,content:e})}))}:function(t){if(!((t=t||{}).success||t.fail||t.complete))return e.call(this,t);e.call(this,t).then((e=>{t.success&&t.success(e),t.complete&&t.complete(e)}),(e=>{t.fail&&t.fail(e),t.complete&&t.complete(e)}))}}class F extends Error{constructor(e){super(e.message),this.errMsg=e.message||"",this.errCode=this.code=e.code||"SYSTEM_ERROR",this.requestId=e.requestId}}function M(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:s}=uni.getLaunchOptionsSync();e=s,t=n}}catch(e){}return{channel:e,scene:t}}let $;function j(){const e=uni.getLocale&&uni.getLocale()||"en";if($)return{...$,locale:e,LOCALE:e};const t=uni.getSystemInfoSync(),{deviceId:n,osName:s,uniPlatform:o,appId:r}=t,i=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let e=0;e<i.length;e++){delete t[i[e]]}return $={PLATFORM:o,OS:s,APPID:r,DEVICEID:n,...M(),...t},{...$,locale:e,LOCALE:e}}var K={sign:function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),o(n,t).toString()},wrappedRequest:function(e,t){return new Promise(((n,s)=>{t(Object.assign(e,{complete(e){e||(e={}),h&&"web"===f&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return s(new F({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const o=e.data;if(o.error)return s(new F({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))}};var B={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()},H={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"};const{t:W}=e.initVueI18n({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:H,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:H},"zh-Hans");var z=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(W("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=B,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return K.wrappedRequest(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=K.sign(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=K.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:s}}getAccessToken(){if("pending"===this._getAccessTokenPromiseStatus)return this._getAccessTokenPromise;this._getAccessTokenPromiseStatus="pending";return this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>new Promise(((t,n)=>{e.result&&e.result.accessToken?(this.setAccessToken(e.result.accessToken),this._getAccessTokenPromiseStatus="fulfilled",t(this.accessToken)):(this._getAccessTokenPromiseStatus="rejected",n(new F({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))),(e=>(this._getAccessTokenPromiseStatus="rejected",Promise.reject(e)))),this._getAccessTokenPromise}authorize(){this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:o,onUploadProgress:r}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?i(e):a(new F({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new F({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:s,config:o}){if("string"!==c(t))throw new F({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new F({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new F({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=o&&o.envType||this.config.envType;let i,a;return this.getOSSUploadOptionsFromPath({env:r,filename:t}).then((t=>{const o=t.result;i=o.id,a="https://"+o.cdnDomain+"/"+o.ossPath;const r={url:"https://"+o.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:o.accessKeyId,Signature:o.signature,host:o.host,id:i,key:o.ossPath,policy:o.policy,success_action_status:200},fileName:"file",name:"file",filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},r,{onUploadProgress:s}))})).then((()=>this.reportOSSUpload({id:i}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:a}):s(new F({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(t))}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new F({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}};var V={init(e){const t=new z(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const J="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Y;!function(e){e.local="local",e.none="none",e.session="session"}(Y||(Y={}));var X=function(){};const G=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new F({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,s)=>e?n(e):t(s)}));return e.promise=t,e};function Q(e){return void 0===e}function Z(e){return"[object Null]"===Object.prototype.toString.call(e)}var ee;function te(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const e of t){const{isMatch:t,genAdapter:n,runtime:s}=e;if(t())return{adapter:n(),runtime:s}}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(ee||(ee={}));const ne={adapter:null,runtime:void 0},se=["anonymousUuidKey"];class oe extends X{constructor(){super(),ne.adapter.root.tcbObject||(ne.adapter.root.tcbObject={})}setItem(e,t){ne.adapter.root.tcbObject[e]=t}getItem(e){return ne.adapter.root.tcbObject[e]}removeItem(e){delete ne.adapter.root.tcbObject[e]}clear(){delete ne.adapter.root.tcbObject}}function re(e,t){switch(e){case"local":return t.localStorage||new oe;case"none":return new oe;default:return t.sessionStorage||new oe}}class ie{constructor(e){if(!this._storage){this._persistence=ne.adapter.primaryStorage||e.persistence,this._storage=re(this._persistence,ne.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,s=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,r=`login_type_${e.env}`,i=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s,anonymousUuidKey:o,loginTypeKey:r,userInfoKey:i}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=re(e,ne.adapter);for(const e in this.keys){const s=this.keys[e];if(t&&se.includes(e))continue;const o=this._storage.getItem(s);Q(o)||Z(o)||(n.setItem(s,o),this._storage.removeItem(s))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const s={version:n||"localCachev1",content:t},o=JSON.stringify(s);try{this._storage.setItem(e,o)}catch(e){throw e}}getStore(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";const n=this._storage.getItem(e);if(!n)return"";if(n.indexOf(t)>=0){return JSON.parse(n).content}return""}removeStore(e){this._storage.removeItem(e)}}const ae={},ce={};function ue(e){return ae[e]}class le{constructor(e,t){this.data=t||null,this.name=e}}class he extends le{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const de=new class{constructor(){this._listeners={}}on(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}off(e,t){return function(e,t,n){if(n&&n[e]){const s=n[e].indexOf(t);-1!==s&&n[e].splice(s,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof he)return console.error(e.error),this;const n="string"==typeof e?new le(e,t||{}):e;const s=n.name;if(this._listens(s)){n.target=this;const e=this._listeners[s]?[...this._listeners[s]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function fe(e,t){de.on(e,t)}function ge(e,t={}){de.fire(e,t)}function pe(e,t){de.off(e,t)}const me="loginStateChanged",ye="loginStateExpire",_e="loginTypeChanged",we="anonymousConverted",ke="refreshAccessToken";var Se;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Se||(Se={}));const Te=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ve={"X-SDK-Version":"1.3.5"};function Ae(e,t,n){const s=e[t];e[t]=function(t){const o={},r={};n.forEach((n=>{const{data:s,headers:i}=n.call(e,t);Object.assign(o,s),Object.assign(r,i)}));const i=t.data;return i&&(()=>{var e;if(e=i,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...i,...o};else for(const e in o)i.append(e,o[e])})(),t.headers={...t.headers||{},...r},s.call(e,t)}}function Pe(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...ve,"x-seqid":e}}}class Ie{constructor(e={}){var t;this.config=e,this._reqClass=new ne.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=ue(this.config.env),this._localCache=(t=this.config.env,ce[t]),Ae(this._reqClass,"post",[Pe]),Ae(this._reqClass,"upload",[Pe]),Ae(this._reqClass,"download",[Pe])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(e){t=e}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:s,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let r=this._cache.getStore(n);if(!r)throw new F({message:"未登录CloudBase"});const i={refresh_token:r},a=await this.request("auth.fetchAccessTokenWithRefreshToken",i);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(s)===Se.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(o),t=this._cache.getStore(n),s=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(s.refresh_token),this._refreshAccessToken()}ge(ye),this._cache.removeStore(n)}throw new F({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return ge(ke),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new F({message:"refresh token不存在,登录状态异常"});let s=this._cache.getStore(e),o=this._cache.getStore(t),r=!0;return this._shouldRefreshAccessTokenHook&&!await this._shouldRefreshAccessTokenHook(s,o)&&(r=!1),(!s||!o||o<Date.now())&&r?this.refreshAccessToken():{accessToken:s,accessTokenExpire:o}}async request(e,t,n){const s=`x-tcb-trace_${this.config.env}`;let o="application/x-www-form-urlencoded";const r={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};if(-1===Te.indexOf(e)){const{refreshTokenKey:e}=this._cache.keys;this._cache.getStore(e)&&(r.access_token=(await this.getAccessToken()).accessToken)}let i;if("storage.uploadFile"===e){i=new FormData;for(let e in i)i.hasOwnProperty(e)&&void 0!==i[e]&&i.append(e,r[e]);o="multipart/form-data"}else{o="application/json",i={};for(let e in r)void 0!==r[e]&&(i[e]=r[e])}let a={headers:{"content-type":o}};n&&n.onUploadProgress&&(a.onUploadProgress=n.onUploadProgress);const c=this._localCache.getStore(s);c&&(a.headers["X-TCB-Trace"]=c);const{parse:u,inQuery:l,search:h}=t;let d={env:this.config.env};u&&(d.parse=!0),l&&(d={...l,...d});let f=function(e,t,n={}){const s=/\?/.test(t);let o="";for(let e in n)""===o?!s&&(t+="?"):o+="&",o+=`${e}=${encodeURIComponent(n[e])}`;return/^http(s)?\:\/\//.test(t+=o)?t:`${e}${t}`}(J,"//tcb-api.tencentcloudapi.com/web",d);h&&(f+=h);const g=await this.post({url:f,data:i,...a}),p=g.header&&g.header["x-tcb-trace"];if(p&&this._localCache.setStore(s,p),200!==Number(g.status)&&200!==Number(g.statusCode)||!g.data)throw new F({code:"NETWORK_ERROR",message:"network request error"});return g}async send(e,t={}){const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if("ACCESS_TOKEN_EXPIRED"===n.data.code&&-1===Te.indexOf(e)){await this.refreshAccessToken();const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if(n.data.code)throw new F({code:n.data.code,message:n.data.message});return n.data}if(n.data.code)throw new F({code:n.data.code,message:n.data.message});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(s,e)}}const Oe={};function be(e){return Oe[e]}class Ce{constructor(e){this.config=e,this._cache=ue(e.env),this._request=be(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(s,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(s,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class Ee{constructor(e){if(!e)throw new F({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=ue(this._envId),this._request=be(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach((e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:s,province:o,country:r,city:i}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:s,province:o,country:r,city:i});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Re{constructor(e){if(!e)throw new F({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ue(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys,o=this._cache.getStore(t),r=this._cache.getStore(n),i=this._cache.getStore(s);this.credential={refreshToken:o,accessToken:r,accessTokenExpire:i},this.user=new Ee(e)}get isAnonymousAuth(){return this.loginType===Se.ANONYMOUS}get isCustomAuth(){return this.loginType===Se.CUSTOM}get isWeixinAuth(){return this.loginType===Se.WECHAT||this.loginType===Se.WECHAT_OPEN||this.loginType===Se.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Ue extends Ce{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,s=this._cache.getStore(t)||void 0,o=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:s});if(o.uuid&&o.refresh_token){this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),ge(me),ge(_e,{env:this.config.env,loginType:Se.ANONYMOUS,persistence:"local"});const e=new Re(this.config.env);return await e.user.refresh(),e}throw new F({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,s=this._cache.getStore(t),o=this._cache.getStore(n),r=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:o,ticket:e});if(r.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),ge(we,{env:this.config.env}),ge(_e,{loginType:Se.CUSTOM,persistence:"local"}),{credential:{refreshToken:r.refresh_token}};throw new F({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Se.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class xe extends Ce{async signIn(e){if("string"!=typeof e)throw new F({param:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),ge(me),ge(_e,{env:this.config.env,loginType:Se.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Re(this.config.env);throw new F({message:"自定义登录失败"})}}class Le extends Ce{async signIn(e,t){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token:r,access_token_expire:i}=s;if(o)return this.setRefreshToken(o),r&&i?this.setAccessToken(r,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ge(me),ge(_e,{env:this.config.env,loginType:Se.EMAIL,persistence:this.config.persistence}),new Re(this.config.env);throw s.code?new F({code:s.code,message:`邮箱登录失败: ${s.message}`}):new F({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class De extends Ce{async signIn(e,t){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:Se.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token_expire:r,access_token:i}=s;if(o)return this.setRefreshToken(o),i&&r?this.setAccessToken(i,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ge(me),ge(_e,{env:this.config.env,loginType:Se.USERNAME,persistence:this.config.persistence}),new Re(this.config.env);throw s.code?new F({code:s.code,message:`用户名密码登录失败: ${s.message}`}):new F({message:"用户名密码登录失败"})}}class Ne{constructor(e){this.config=e,this._cache=ue(e.env),this._request=be(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),fe(_e,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Ue(this.config)}customAuthProvider(){return new xe(this.config)}emailAuthProvider(){return new Le(this.config)}usernameAuthProvider(){return new De(this.config)}async signInAnonymously(){return new Ue(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Le(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new De(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){this._anonymousAuthProvider||(this._anonymousAuthProvider=new Ue(this.config)),fe(we,this._onAnonymousConverted);return await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Se.ANONYMOUS)throw new F({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,s=this._cache.getStore(e);if(!s)return;const o=await this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),ge(me),ge(_e,{env:this.config.env,loginType:Se.NULL,persistence:this.config.persistence}),o}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){fe(me,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){fe(ye,e.bind(this))}onAccessTokenRefreshed(e){fe(ke,e.bind(this))}onAnonymousConverted(e){fe(we,e.bind(this))}onLoginTypeChanged(e){fe(_e,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Re(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new F({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new xe(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const qe=function(e,t){t=t||G();const n=be(this.config.env),{cloudPath:s,filePath:o,onUploadProgress:r,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{const{data:{url:a,authorization:c,token:u,fileId:l,cosFileId:h},requestId:d}=e,f={key:s,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};n.upload({url:a,data:f,file:o,name:s,fileType:i,onUploadProgress:r}).then((e=>{201===e.statusCode?t(null,{fileID:l,requestId:d}):t(new F({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Fe=function(e,t){t=t||G();const n=be(this.config.env),{cloudPath:s}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Me=function({fileList:e},t){if(t=t||G(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let t of e)if(!t||"string"!=typeof t)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return be(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},$e=function({fileList:e},t){t=t||G(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let s of e)"object"==typeof s?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?n.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const s={file_list:n};return be(this.config.env).send("storage.batchGetDownloadUrl",s).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},je=async function({fileID:e},t){const n=(await $e.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const s=be(this.config.env);let o=n.download_url;if(o=encodeURI(o),!t)return s.download({url:o});t(await s.download({url:o}))},Ke=function({name:e,data:t,query:n,parse:s,search:o},r){const i=r||G();let a;try{a=t?JSON.stringify(t):""}catch(e){return Promise.reject(e)}if(!e)return Promise.reject(new F({code:"PARAM_ERROR",message:"函数名不能为空"}));const c={inQuery:n,parse:s,search:o,function_name:e,request_data:a};return be(this.config.env).send("functions.invokeFunction",c).then((e=>{if(e.code)i(null,e);else{let t=e.data.response_data;if(s)i(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),i(null,{result:t,requestId:e.requestId})}catch(e){i(new F({message:"response data must be json"}))}}return i.promise})).catch((e=>{i(e)})),i.promise},Be={timeout:15e3,persistence:"session"},He={};class We{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(ne.adapter||(this.requestClient=new ne.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...Be,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new We(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||ne.adapter.primaryStorage||Be.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;ae[t]=new ie(e),ce[t]=new ie({...e,persistence:"local"})}(this.config),n=this.config,Oe[n.env]=new Ie(n),this.authObj=new Ne(this.config),this.authObj}on(e,t){return fe.apply(this,[e,t])}off(e,t){return pe.apply(this,[e,t])}callFunction(e,t){return Ke.apply(this,[e,t])}deleteFile(e,t){return Me.apply(this,[e,t])}getTempFileURL(e,t){return $e.apply(this,[e,t])}downloadFile(e,t){return je.apply(this,[e,t])}uploadFile(e,t){return qe.apply(this,[e,t])}getUploadMetadata(e,t){return Fe.apply(this,[e,t])}registerExtension(e){He[e.name]=e}async invokeExtension(e,t){const n=He[e];if(!n)throw new F({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=te(e)||{};t&&(ne.adapter=t),n&&(ne.runtime=n)}}var ze=new We;function Ve(e,t,n){void 0===n&&(n={});var s=/\?/.test(t),o="";for(var r in n)""===o?!s&&(t+="?"):o+="&",o+=r+"="+encodeURIComponent(n[r]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}class Je{post(e){const{url:t,data:n,headers:s}=e;return new Promise(((e,o)=>{B.request({url:Ve("https:",t),data:n,method:"POST",header:s,success(t){e(t)},fail(e){o(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:s,file:o,data:r,headers:i,fileType:a}=e,c=B.uploadFile({url:Ve("https:",s),name:"file",formData:Object.assign({},r),filePath:o,fileType:a,header:i,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&r.success_action_status&&(n.statusCode=parseInt(r.success_action_status,10)),t(n)},fail(e){h&&"mp-alipay"===f&&console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Ye={setItem(e,t){B.setStorageSync(e,t)},getItem:e=>B.getStorageSync(e),removeItem(e){B.removeStorageSync(e)},clear(){B.clearStorageSync()}};var Xe={genAdapter:function(){return{root:{},reqClass:Je,localStorage:Ye,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ze.useAdapters(Xe);const Ge=ze,Qe=Ge.init;Ge.init=function(e){e.env=e.spaceId;const t=Qe.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{t[e]=q(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var Ze=Ge;function et(e){return e&&et(e.__v_raw)||e}function tt(){return{token:B.getStorageSync("uni_id_token")||B.getStorageSync("uniIdToken"),tokenExpired:B.getStorageSync("uni_id_token_expired")}}function nt({token:e,tokenExpired:t}={}){e&&B.setStorageSync("uni_id_token",e),t&&B.setStorageSync("uni_id_token_expired",t)}function st(){if(!h||"web"!==f)return;uni.getStorageSync("__LAST_DCLOUD_APPID")!==y&&(uni.setStorageSync("__LAST_DCLOUD_APPID",y),console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),B.removeStorageSync("uni_id_token"),B.removeStorageSync("uniIdToken"),B.removeStorageSync("uni_id_token_expired"))}var ot=class extends z{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=K.sign(n,this.config.clientSecret);const o=j();s["x-client-info"]=encodeURIComponent(JSON.stringify(o));const{token:r}=tt();return s["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(s))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:o,onUploadProgress:r}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:o,success(e){e&&e.statusCode<400?i(e):a(new F({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new F({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:s}){if(!t)throw new F({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let o;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:r,formData:i,name:a}=t.result;o=t.result.fileUrl;const c={url:r,formData:i,name:a,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},c,{onUploadProgress:s}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:o}):s(new F({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t))}getTempFileURL({fileList:e}={}){const t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t))}};var rt={init(e){const t=new ot(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function it({data:e}){let t;t=j();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=tt();e&&(n.uniIdToken=e)}return n}function at({name:e,data:t}){const{localAddress:n,localPort:s}=this,o={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],r=this.config.spaceId,i=`http://${n}:${s}/system/check-function`,a=`http://${n}:${s}/cloudfunctions/${e}`;return new Promise(((t,n)=>{B.request({method:"POST",url:i,data:{name:e,platform:f,provider:o,spaceId:r},timeout:3e3,success(e){t(e)},fail(){t({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((({data:e}={})=>{const{code:t,message:n}=e||{};return{code:0===t?0:t||"SYS_ERR",message:n||"SYS_ERR"}})).then((({code:n,message:s})=>{if(0!==n){switch(n){case"MODULE_ENCRYPTED":console.error(`此云函数(${e})依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数`);break;case"FUNCTION_ENCRYPTED":console.error(`此云函数(${e})已加密不可本地调试,自动切换为云端已部署的云函数`);break;case"ACTION_ENCRYPTED":console.error(s||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":{const e="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(e),new Error(e)}case"SWITCH_TO_CLOUD":break;default:{const e=`检测本地调试服务出现错误:${s},请检查网络环境或重启客户端再试`;throw console.error(e),new Error(e)}}return this._originCallFunction({name:e,data:t})}return new Promise(((e,n)=>{const s=it.call(this,{data:t});B.request({method:"POST",url:a,data:{provider:o,platform:f,param:s},success:({statusCode:t,data:s}={})=>!t||t>=400?n(new F({code:s.code||"SYS_ERR",message:s.message||"request:fail"})):e({result:s}),fail(e){n(new F({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}const ct=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var ut=/[\\^$.*+?()[\]{}|]/g,lt=RegExp(ut.source);function ht(e,t,n){return e.replace(new RegExp((s=t)&&lt.test(s)?s.replace(ut,"\\$&"):s,"g"),n);var s}function dt({functionName:e,result:t,logPvd:n}){if(this.config.debugLog&&t&&t.requestId){const s=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:t.requestId});console.log(`[${n}-request]${s}[/${n}-request]`)}}function ft(e){const t=e.callFunction,n=function(n){const s=n.name;n.data=it.call(e,{data:n.data});const o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider];return t.call(this,n).then((e=>(e.errCode=0,dt.call(this,{functionName:s,result:e,logPvd:o}),Promise.resolve(e))),(e=>(dt.call(this,{functionName:s,result:e,logPvd:o}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let s=0;s<n.length;s++){const{rule:o,content:r,mode:i}=n[s],a=e.match(o);if(!a)continue;let c=r;for(let e=1;e<a.length;e++)c=ht(c,`{$${e}}`,a[e]);for(const e in t)c=ht(c,`{${e}}`,t[e]);return"replace"===i?c:e+c}return e}({message:`[${n.name}]: ${e.message}`,formatter:ct,extraInfo:{functionName:s}})),Promise.reject(e))))};e.callFunction=function(t){let s;return h&&e.debugInfo&&!e.debugInfo.forceRemote&&p?(e._originCallFunction||(e._originCallFunction=n),s=at.call(this,t)):s=n.call(this,t),Object.defineProperty(s,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),s}}const gt=Symbol("CLIENT_DB_INTERNAL");function pt(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=gt,e.__v_raw=void 0,new Proxy(e,{get(e,n,s){if("_uniClient"===n)return null;if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,s)}})}function mt(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const s=e[t].indexOf(n);-1!==s&&e[t].splice(s,1)}}}const yt=["db.Geo","db.command","command.aggregate"];function _t(e,t){return yt.indexOf(`${e}.${t}`)>-1}function wt(e){switch(c(e=et(e))){case"array":return e.map((e=>wt(e)));case"object":return e._internalType===gt||Object.keys(e).forEach((t=>{e[t]=wt(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function kt(e){return e&&e.content&&e.content.$method}class St{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:wt(e.$param)})))}}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=kt(e),n=kt(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===kt(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=kt(e),n=kt(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}get count(){if(!this.isAggregate)return function(){return this._send("count",Array.from(arguments))};const e=this;return function(){return Tt({$method:"count",$param:wt(Array.from(arguments))},e,this._database)}}get remove(){if(!this.isCommand)return function(){return this._send("remove",Array.from(arguments))};const e=this;return function(){return Tt({$method:"remove",$param:wt(Array.from(arguments))},e,this._database)}}get(){return this._send("get",Array.from(arguments))}add(){return this._send("add",Array.from(arguments))}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){if(!this.isCommand)return function(){throw new Error("JQL禁止使用set方法")};const e=this;return function(){return Tt({$method:"set",$param:wt(Array.from(arguments))},e,this._database)}}_send(e,t){const n=this.getAction(),s=this.getCommand();if(s.$db.push({$method:e,$param:wt(t)}),h){const e=s.$db.find((e=>"collection"===e.$method)),t=e&&e.$param;t&&1===t.length&&"string"==typeof e.$param[0]&&e.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:s})}}function Tt(e,t,n){return pt(new St(e,t,n),{get(e,t){let s="db";return e&&e.content&&(s=e.content.$method),_t(s,t)?Tt({$method:t},e,n):function(){return Tt({$method:t,$param:wt(Array.from(arguments))},e,n)}}})}function vt({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}}}class At extends class{constructor({uniClient:e={}}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e.isDefault&&(this._dbCallBacks=w("_globalUniCloudDatabaseCallback")),this.auth=mt(this._authCallBacks),Object.assign(this,mt(this._dbCallBacks)),this.env=pt({},{get:(e,t)=>({$env:t})}),this.Geo=pt({},{get:(e,t)=>vt({path:["Geo"],method:t})}),this.serverDate=vt({path:[],method:"serverDate"}),this.RegExp=vt({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_callCloudFunction({action:e,command:t,multiCommand:n,queryList:s}){function o(e,t){if(n&&s)for(let n=0;n<s.length;n++){const o=s[n];o.udb&&"function"==typeof o.udb.setResult&&(t?o.udb.setResult(t):o.udb.setResult(e.result.dataList[n]))}}const r=this;function i(e){return r._callback("error",[e]),A(P("database","fail"),e).then((()=>A(P("database","complete"),e))).then((()=>(o(null,e),N(O,{type:E,content:e}),Promise.reject(e))))}const c=A(P("database","invoke")),u=this._uniClient;return c.then((()=>u.callFunction({name:"DCloud-clientDB",type:a,data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:s,tokenExpired:r,systemInfo:a=[]}=e.result;if(a)for(let e=0;e<a.length;e++){const{level:t,message:n,detail:s}=a[e],o=console["app"===f&&"warn"===t?"error":t]||console.log;let r="[System Info]"+n;s&&(r=`${r}\n详细信息:${s}`),o(r)}if(t){return i(new F({code:t,message:n,requestId:e.requestId}))}e.result.errCode=e.result.code,e.result.errMsg=e.result.message,s&&r&&(nt({token:s,tokenExpired:r}),this._callbackAuth("refreshToken",[{token:s,tokenExpired:r}]),this._callback("refreshToken",[{token:s,tokenExpired:r}]),N(C,{token:s,tokenExpired:r}));const c=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}];for(let t=0;t<c.length;t++){const{prop:n,tips:s}=c[t];if(n in e.result){const t=e.result[n];Object.defineProperty(e.result,n,{get:()=>(console.warn(s),t)})}}return function(e){return A(P("database","success"),e).then((()=>A(P("database","complete"),e))).then((()=>(o(e,null),N(O,{type:E,content:e}),Promise.resolve(e))))}(e)}),(e=>{/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");return i(new F({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}function Pt(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;const n=function(e,t={}){return pt(new e(t),{get:(e,t)=>_t("db",t)?Tt({$method:t},null,e):function(){return Tt({$method:t,$param:wt(Array.from(arguments))},null,e)}})}(At,{uniClient:e});return this._database=n,n}}var It={};const Ot="token无效,跳转登录页面",bt="token过期,跳转登录页面",Ct={TOKEN_INVALID_TOKEN_EXPIRED:bt,TOKEN_INVALID_INVALID_CLIENTID:Ot,TOKEN_INVALID:Ot,TOKEN_INVALID_WRONG_TOKEN:Ot,TOKEN_INVALID_ANONYMOUS_USER:Ot},Et={"uni-id-token-expired":bt,"uni-id-check-token-failed":Ot,"uni-id-token-not-exist":Ot,"uni-id-check-device-feature-failed":Ot};function Rt(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Ut(e=[],t=""){const n=[],s=[];return e.forEach((e=>{!0===e.needLogin?n.push(Rt(t,e.path)):!1===e.needLogin&&s.push(Rt(t,e.path))})),{needLoginPage:n,notNeedLoginPage:s}}function xt(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,s=e.split("?")[0].replace(/^\//,"");return n.some((e=>e.pagePath===s))}const Lt=!!It.uniIdRouter;const{loginPage:Dt,routerNeedLogin:Nt,resToLogin:qt,needLoginPage:Ft,notNeedLoginPage:Mt,loginPageInTabBar:$t}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:s={}}=It){const{loginPage:o,needLogin:r=[],resToLogin:i=!0}=n,{needLoginPage:a,notNeedLoginPage:c}=Ut(e),{needLoginPage:u,notNeedLoginPage:l}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:s,pages:o=[]}=e,{needLoginPage:r,notNeedLoginPage:i}=Ut(o,s);t.push(...r),n.push(...i)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:o,routerNeedLogin:r,resToLogin:i,needLoginPage:[...a,...u],notNeedLoginPage:[...c,...l],loginPageInTabBar:xt(o,s)}}();function jt(e){const t=function(e){const t=getCurrentPages(),n=t[t.length-1].route,s=e.charAt(0),o=e.split("?")[0];if("/"===s)return o;const r=o.replace(/^\//,"").split("/"),i=n.split("/");i.pop();for(let e=0;e<r.length;e++){const t=r[e];".."===t?i.pop():"."!==t&&i.push(t)}return""===i[0]&&i.shift(),i.join("/")}(e).replace(/^\//,"");return!(Mt.indexOf(t)>-1)&&(Ft.indexOf(t)>-1||Nt.some((t=>function(e,t){return new RegExp(t).test(e)}(e,t))))}function Kt(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+`&uniIdRedirectUrl=${encodeURIComponent(t)}`:e+`?uniIdRedirectUrl=${encodeURIComponent(t)}`:e}function Bt(){const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];uni.addInterceptor(n,{invoke(e){const{token:t,tokenExpired:s}=tt();let o;if(t){if(s<Date.now()){const e="uni-id-token-expired";o={errCode:e,errMsg:Et[e]}}}else{const e="uni-id-check-token-failed";o={errCode:e,errMsg:Et[e]}}if(jt(e.url)&&o){o.uniIdRedirectUrl=e.url;if(x(b).length>0)return setTimeout((()=>{N(b,o)}),0),e.url="",!1;if(!Dt)return e;const t=Kt(Dt,o.uniIdRedirectUrl);if($t){if("navigateTo"===n||"redirectTo"===n)return setTimeout((()=>{uni.switchTab({url:t})})),!1}else if("switchTab"===n)return setTimeout((()=>{uni.navigateTo({url:t})})),!1;e.url=t}return e}})}}function Ht(){this.onResponse((e=>{const{type:t,content:n}=e;let s=!1;switch(t){case"cloudobject":s=function(e){const{errCode:t}=e;return t in Et}(n);break;case"clientdb":s=function(e){const{errCode:t}=e;return t in Ct}(n)}s&&function(e={}){const t=x(b),n=getCurrentPages(),s=n[n.length-1],o=s&&s.$page&&s.$page.fullPath;if(t.length>0)return N(b,Object.assign({uniIdRedirectUrl:o},e));Dt&&uni.navigateTo({url:Kt(Dt,o)})}(n)}))}function Wt(e){e.onNeedLogin=function(e){L(b,e)},e.offNeedLogin=function(e){D(b,e)},Lt&&(w("uni-cloud-status").needLoginInit||(w("uni-cloud-status").needLoginInit=!0,function t(){const n=getCurrentPages();n&&n[0]?Bt.call(e):setTimeout((()=>{t()}),30)}(),qt&&Ht.call(e)))}function zt(e){!function(e){e.onResponse=function(e){L(O,e)},e.offResponse=function(e){D(O,e)}}(e),Wt(e),function(e){e.onRefreshToken=function(e){L(C,e)},e.offRefreshToken=function(e){D(C,e)}}(e)}let Vt;const Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Yt=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Xt(){const e=tt().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((s=t[1],decodeURIComponent(Vt(s).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(e){throw new Error("获取当前用户信息出错,详细错误信息为:"+e.message)}var s;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Vt="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Yt.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,s,o="",r=0;r<e.length;)t=Jt.indexOf(e.charAt(r++))<<18|Jt.indexOf(e.charAt(r++))<<12|(n=Jt.indexOf(e.charAt(r++)))<<6|(s=Jt.indexOf(e.charAt(r++))),o+=64===n?String.fromCharCode(t>>16&255):64===s?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var Gt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",s="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function r(e,t,{onChooseFile:s,onUploadProgress:o}){return t.then((e=>{if(s){const t=s(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,s=5,o){(t=Object.assign({},t)).errMsg=n;const r=t.tempFiles,i=r.length;let a=0;return new Promise((n=>{for(;a<s;)c();function c(){const s=a++;if(s>=i)return void(!r.find((e=>!e.url&&!e.errMsg))&&n(t));const u=r[s];e.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,onUploadProgress(e){e.index=s,e.tempFile=u,e.tempFilePath=u.path,o&&o(e)}}).then((e=>{u.url=e.fileID,s<i&&c()})).catch((e=>{u.errMsg=e.errMsg||e.message,s<i&&c()}))}}))}(e,t,5,o)))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?r(e,function(e){const{count:t,sizeType:n,sourceType:r=["album","camera"],extension:i}=e;return new Promise(((e,a)=>{uni.chooseImage({count:t,sizeType:n,sourceType:r,extension:i,success(t){e(o(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",s)})}})}))}(t),t):"video"===t.type?r(e,function(e){const{camera:t,compressed:n,maxDuration:r,sourceType:i=["album","camera"],extension:a}=e;return new Promise(((e,c)=>{uni.chooseVideo({camera:t,compressed:n,maxDuration:r,sourceType:i,extension:a,success(t){const{tempFilePath:n,duration:s,size:r,height:i,width:a}=t;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:r,type:t.tempFile&&t.tempFile.type||"",width:a,height:i,duration:s,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",s)})}})}))}(t),t):r(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,r)=>{let i=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(i=wx.chooseMessageFile),"function"!=typeof i)return r({errMsg:s+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});i({type:"all",count:t,extension:n,success(t){e(o(t))},fail(e){r({errMsg:e.errMsg.replace("chooseFile:fail",s)})}})}))}(t),t)}}})),Qt=t(Gt);const Zt="manual";function en(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if(this.loadtime===Zt)return;let n=!1;const s=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(s.push(e[o]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,s)}))},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((n=>{this.mixinDatacomLoading=!1;const{data:s,count:o}=n.result;this.getcount&&(this.mixinDatacomPage.count=o),this.mixinDatacomHasMore=s.length<this.pageSize;const r=e?s.length?s[0]:void 0:s;this.mixinDatacomResData=r,t&&t(r)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,n&&n(e)})))},mixinDatacomGet(t={}){let n=e.database(this.spaceInfo);const s=t.action||this.action;s&&(n=n.action(s));const o=t.collection||this.collection;n=Array.isArray(o)?n.collection(...o):n.collection(o);const r=t.where||this.where;r&&Object.keys(r).length&&(n=n.where(r));const i=t.field||this.field;i&&(n=n.field(i));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const u=t.groupField||this.groupField;u&&(n=n.groupField(u));!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const l=t.orderby||this.orderby;l&&(n=n.orderBy(l));const h=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,f=void 0!==t.getcount?t.getcount:this.getcount,g=void 0!==t.gettree?t.gettree:this.gettree,p=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:f},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return g&&(m.getTree=y),p&&(m.getTreePath=y),n=n.skip(d*(h-1)).limit(d).get(m),n}}}}function tn(e){return function(t,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:s,loadingOptions:o,errorOptions:r}=n,a=!s;return new Proxy({},{get:(n,s)=>async function n(...c){let u;a&&uni.showLoading({title:o.title,mask:o.mask});try{u=await e.callFunction({name:t,type:i,data:{method:s,params:c}})}catch(e){u={result:e}}const{errCode:l,errMsg:h,newToken:d}=u.result||{};if(a&&uni.hideLoading(),d&&d.token&&d.tokenExpired&&(nt(d),N(C,{...d})),l){if(a)if("toast"===r.type)uni.showToast({title:h,icon:"none"});else{if("modal"!==r.type)throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:e}=await async function({title:e,content:t,showCancel:n,cancelText:s,confirmText:o}={}){return new Promise(((r,i)=>{uni.showModal({title:e,content:t,showCancel:n,cancelText:s,confirmText:o,success(e){r(e)},fail(){r({confirm:!1,cancel:!0})}})}))}({title:"提示",content:h,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&e)return n(...c)}}const e=new F({code:l,message:h,requestId:u.requestId});throw e.detail=u.result,N(O,{type:U,content:e}),e}return N(O,{type:U,content:u.result}),u.result}})}}async function nn(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(s={url:n,timeout:500},new Promise(((e,t)=>{B.request({...s,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(e){return!1}var s}function sn(e){if(e.initUniCloudStatus&&"rejected"!==e.initUniCloudStatus)return;let t=Promise.resolve();e.isReady=!1,e.isDefault=!1;const n=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously())).then((()=>{if(!h)return Promise.resolve();if("app"===f&&"ios"===uni.getSystemInfoSync().osName){const{osName:e,osVersion:t}=uni.getSystemInfoSync();"ios"===e&&function(e){if(!e||"string"!=typeof e)return 0;const t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(t)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)")}if(h&&e.debugInfo){const{address:t,servePort:n}=e.debugInfo;return async function(e,t){let n;for(let s=0;s<e.length;s++){const o=e[s];if(await nn(o,t)){n=o;break}}return{address:n,port:t}}(t,n)}})).then((({address:t,port:n}={})=>{if(!h)return Promise.resolve();const s=console["app"===f?"error":"warn"];if(t)e.localAddress=t,e.localPort=n;else if(e.debugInfo){let t="";"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,t="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):t="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","web"===f&&(t+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===f.indexOf("mp-")&&(t+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),s(t)}})).then((()=>{st(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((t=>{console.error(t),e.initUniCloudStatus="rejected"}))}let on=new class{init(e){let t={};const n=h&&!1;switch(e.provider){case"tcb":case"tencent":t=Ze.init(Object.assign(e,{debugLog:n}));break;case"aliyun":t=V.init(Object.assign(e,{debugLog:n}));break;case"private":t=rt.init(Object.assign(e,{debugLog:n}));break;default:throw new Error("未提供正确的provider参数")}const s=g;h&&s&&!s.code&&(t.debugInfo=s),sn(t),t.reInit=function(){sn(this)},ft(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),Pt(t),function(e){e.getCurrentUserInfo=Xt,e.chooseAndUploadFile=Qt.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return en(e)}}),e.importObject=tn(e)}(t);return["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return t.reInit(),n.apply(t,Array.from(arguments))},t[e]=q(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{{const e=p;let t={};if(1===e.length)t=e[0],on=on.init(t),on.isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":m?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",t.forEach((e=>{on[e]=function(){return console.error(n),Promise.reject(new F({code:"SYS_ERR",message:n}))}}))}Object.assign(on,{get mixinDatacom(){return en(on)}}),zt(on),on.addInterceptor=T,on.removeInterceptor=v}})();var rn=on;module.exports=rn; diff --git a/packages/uni-cloud/dist/uni-cloud.es.js b/packages/uni-cloud/dist/uni-cloud.es.js index 2586ccf8cad..32533bf1d13 100644 --- a/packages/uni-cloud/dist/uni-cloud.es.js +++ b/packages/uni-cloud/dist/uni-cloud.es.js @@ -1 +1 @@ -import{initVueI18n as e}from"@dcloudio/uni-i18n";import t from"@/pages.json";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var o=s((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},o=s.lib={},r=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,s=this.sigBytes,o=e.sigBytes;if(this.clamp(),s%4)for(var r=0;r<o;r++){var i=n[r>>>2]>>>24-r%4*8&255;t[s+r>>>2]|=i<<24-(s+r)%4*8}else for(r=0;r<o;r+=4)t[s+r>>>2]=n[r>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,s=[],o=function(t){t=t;var n=987654321,s=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&s)<<16)+(t=18e3*(65535&t)+(t>>16)&s)&s;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},r=0;r<t;r+=4){var a=o(4294967296*(n||e.random()));n=987654071*a(),s.push(4294967296*a()|0)}return new i.init(s,t)}}),a=s.enc={},c=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s+=2)n[s>>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new i.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;s.push(String.fromCharCode(r))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s++)n[s>>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new i.init(n,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,s=n.words,o=n.sigBytes,r=this.blockSize,a=o/(4*r),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*r,u=e.min(4*c,o);if(c){for(var l=0;l<c;l+=r)this._doProcessBlock(s,l);var h=s.splice(0,c);n.sigBytes-=u}return new i.init(h,u)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=h.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=s.algo={};return s}(Math),n)})),r=(s((function(e,t){var n;e.exports=(n=o,function(e){var t=n,s=t.lib,o=s.WordArray,r=s.Hasher,i=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var s=t+n,o=e[s];e[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r=this._hash.words,i=e[t+0],c=e[t+1],f=e[t+2],g=e[t+3],p=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],w=e[t+8],k=e[t+9],T=e[t+10],S=e[t+11],v=e[t+12],P=e[t+13],A=e[t+14],I=e[t+15],b=r[0],O=r[1],C=r[2],E=r[3];b=u(b,O,C,E,i,7,a[0]),E=u(E,b,O,C,c,12,a[1]),C=u(C,E,b,O,f,17,a[2]),O=u(O,C,E,b,g,22,a[3]),b=u(b,O,C,E,p,7,a[4]),E=u(E,b,O,C,m,12,a[5]),C=u(C,E,b,O,y,17,a[6]),O=u(O,C,E,b,_,22,a[7]),b=u(b,O,C,E,w,7,a[8]),E=u(E,b,O,C,k,12,a[9]),C=u(C,E,b,O,T,17,a[10]),O=u(O,C,E,b,S,22,a[11]),b=u(b,O,C,E,v,7,a[12]),E=u(E,b,O,C,P,12,a[13]),C=u(C,E,b,O,A,17,a[14]),b=l(b,O=u(O,C,E,b,I,22,a[15]),C,E,c,5,a[16]),E=l(E,b,O,C,y,9,a[17]),C=l(C,E,b,O,S,14,a[18]),O=l(O,C,E,b,i,20,a[19]),b=l(b,O,C,E,m,5,a[20]),E=l(E,b,O,C,T,9,a[21]),C=l(C,E,b,O,I,14,a[22]),O=l(O,C,E,b,p,20,a[23]),b=l(b,O,C,E,k,5,a[24]),E=l(E,b,O,C,A,9,a[25]),C=l(C,E,b,O,g,14,a[26]),O=l(O,C,E,b,w,20,a[27]),b=l(b,O,C,E,P,5,a[28]),E=l(E,b,O,C,f,9,a[29]),C=l(C,E,b,O,_,14,a[30]),b=h(b,O=l(O,C,E,b,v,20,a[31]),C,E,m,4,a[32]),E=h(E,b,O,C,w,11,a[33]),C=h(C,E,b,O,S,16,a[34]),O=h(O,C,E,b,A,23,a[35]),b=h(b,O,C,E,c,4,a[36]),E=h(E,b,O,C,p,11,a[37]),C=h(C,E,b,O,_,16,a[38]),O=h(O,C,E,b,T,23,a[39]),b=h(b,O,C,E,P,4,a[40]),E=h(E,b,O,C,i,11,a[41]),C=h(C,E,b,O,g,16,a[42]),O=h(O,C,E,b,y,23,a[43]),b=h(b,O,C,E,k,4,a[44]),E=h(E,b,O,C,v,11,a[45]),C=h(C,E,b,O,I,16,a[46]),b=d(b,O=h(O,C,E,b,f,23,a[47]),C,E,i,6,a[48]),E=d(E,b,O,C,_,10,a[49]),C=d(C,E,b,O,A,15,a[50]),O=d(O,C,E,b,m,21,a[51]),b=d(b,O,C,E,v,6,a[52]),E=d(E,b,O,C,g,10,a[53]),C=d(C,E,b,O,T,15,a[54]),O=d(O,C,E,b,c,21,a[55]),b=d(b,O,C,E,w,6,a[56]),E=d(E,b,O,C,I,10,a[57]),C=d(C,E,b,O,y,15,a[58]),O=d(O,C,E,b,P,21,a[59]),b=d(b,O,C,E,p,6,a[60]),E=d(E,b,O,C,S,10,a[61]),C=d(C,E,b,O,f,15,a[62]),O=d(O,C,E,b,k,21,a[63]),r[0]=r[0]+b|0,r[1]=r[1]+O|0,r[2]=r[2]+C|0,r[3]=r[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var r=e.floor(s/4294967296),i=s;n[15+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,s,o,r,i){var a=e+(t&n|~t&s)+o+i;return(a<<r|a>>>32-r)+t}function l(e,t,n,s,o,r,i){var a=e+(t&s|n&~s)+o+i;return(a<<r|a>>>32-r)+t}function h(e,t,n,s,o,r,i){var a=e+(t^n^s)+o+i;return(a<<r|a>>>32-r)+t}function d(e,t,n,s,o,r,i){var a=e+(n^(t|~s))+o+i;return(a<<r|a>>>32-r)+t}t.MD5=r._createHelper(c),t.HmacMD5=r._createHmacHelper(c)}(Math),n.MD5)})),s((function(e,t){var n,s,r;e.exports=(s=(n=o).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=s.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,s=4*n;t.sigBytes>s&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,u=0;u<n;u++)a[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=s,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),s((function(e,t){e.exports=o.HmacMD5})));const i="FUNCTION",a="OBJECT",c="CLIENT_DB";function u(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function l(e){return"object"===u(e)}function h(e){return e&&"string"==typeof e?JSON.parse(e):e}const d="development"===process.env.NODE_ENV,f=process.env.UNI_PLATFORM;let g;switch(f){case"h5":g="web";break;case"app-plus":g="app";break;default:g=f}const p=h(process.env.UNICLOUD_DEBUG),m=h(process.env.UNI_CLOUD_PROVIDER),y=process.env.RUN_BY_HBUILDERX;let _="";try{_=process.env.UNI_APP_ID||""}catch(e){}let w={};function k(e,t={}){var n,s;return n=w,s=e,Object.prototype.hasOwnProperty.call(n,s)||(w[e]=t),w[e]}"app"===g&&(w=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});const T=["invoke","success","fail","complete"],S=k("_globalUniCloudInterceptor");function v(e,t){S[e]||(S[e]={}),l(t)&&Object.keys(t).forEach((n=>{T.indexOf(n)>-1&&function(e,t,n){let s=S[e][t];s||(s=S[e][t]=[]),-1===s.indexOf(n)&&"function"==typeof n&&s.push(n)}(e,n,t[n])}))}function P(e,t){S[e]||(S[e]={}),l(t)?Object.keys(t).forEach((n=>{T.indexOf(n)>-1&&function(e,t,n){const s=S[e][t];if(!s)return;const o=s.indexOf(n);o>-1&&s.splice(o,1)}(e,n,t[n])})):delete S[e]}function A(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function I(e,t){return S[e]&&S[e][t]||[]}const b=k("_globalUniCloudListener"),O="response",C="needLogin",E="refreshToken",R="clientdb",U="cloudfunction",x="cloudobject";function L(e){return b[e]||(b[e]=[]),b[e]}function D(e,t){const n=L(e);n.includes(t)||n.push(t)}function N(e,t){const n=L(e),s=n.indexOf(t);-1!==s&&n.splice(s,1)}function q(e,t){const n=L(e);for(let e=0;e<n.length;e++){(0,n[e])(t)}}function F(e,t){return t?function(n){let s=!1;if("callFunction"===t){const e=n&&n.type||i;s=e!==i}const o="callFunction"===t&&!s;let r;r=this.isReady?Promise.resolve():this.initUniCloud,n=n||{};const a=r.then((()=>s?Promise.resolve():A(I(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>s?Promise.resolve(e):A(I(t,"success"),e).then((()=>A(I(t,"complete"),e))).then((()=>(o&&q(O,{type:U,content:e}),Promise.resolve(e))))),(e=>s?Promise.reject(e):A(I(t,"fail"),e).then((()=>A(I(t,"complete"),e))).then((()=>(q(O,{type:U,content:e}),Promise.reject(e))))));if(!(n.success||n.fail||n.complete))return a;a.then((e=>{n.success&&n.success(e),n.complete&&n.complete(e),o&&q(O,{type:U,content:e})}),(e=>{n.fail&&n.fail(e),n.complete&&n.complete(e),o&&q(O,{type:U,content:e})}))}:function(t){if(!((t=t||{}).success||t.fail||t.complete))return e.call(this,t);e.call(this,t).then((e=>{t.success&&t.success(e),t.complete&&t.complete(e)}),(e=>{t.fail&&t.fail(e),t.complete&&t.complete(e)}))}}class M extends Error{constructor(e){super(e.message),this.errMsg=e.message||"",this.errCode=this.code=e.code||"SYSTEM_ERROR",this.requestId=e.requestId}}function j(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:s}=uni.getLaunchOptionsSync();e=s,t=n}}catch(e){}return{channel:e,scene:t}}let $;function K(){const e=uni.getLocale&&uni.getLocale()||"en";if($)return{...$,locale:e,LOCALE:e};const t=uni.getSystemInfoSync(),{deviceId:n,platform:s,osName:o,uniPlatform:r,appId:i}=t,a=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let e=0;e<a.length;e++){delete t[a[e]]}return $={PLATFORM:r||f,OS:o||s,APPID:i||_,DEVICEID:n,...j(),...t},{...$,locale:e,LOCALE:e}}var B={sign:function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),r(n,t).toString()},wrappedRequest:function(e,t){return new Promise(((n,s)=>{t(Object.assign(e,{complete(e){e||(e={}),d&&"web"===g&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return s(new M({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const o=e.data;if(o.error)return s(new M({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))}};var H={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()},W={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"};const{t:z}=e({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:W,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:W},"zh-Hans");var V=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(z("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=H,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return B.wrappedRequest(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=B.sign(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=B.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:s}}getAccessToken(){if("pending"===this._getAccessTokenPromiseStatus)return this._getAccessTokenPromise;this._getAccessTokenPromiseStatus="pending";return this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>new Promise(((t,n)=>{e.result&&e.result.accessToken?(this.setAccessToken(e.result.accessToken),this._getAccessTokenPromiseStatus="fulfilled",t(this.accessToken)):(this._getAccessTokenPromiseStatus="rejected",n(new M({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))),(e=>(this._getAccessTokenPromiseStatus="rejected",Promise.reject(e)))),this._getAccessTokenPromise}authorize(){this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:o,onUploadProgress:r}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?i(e):a(new M({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new M({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:s,config:o}){if("string"!==u(t))throw new M({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new M({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new M({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=o&&o.envType||this.config.envType;let i,a;return this.getOSSUploadOptionsFromPath({env:r,filename:t}).then((t=>{const o=t.result;i=o.id,a="https://"+o.cdnDomain+"/"+o.ossPath;const r={url:"https://"+o.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:o.accessKeyId,Signature:o.signature,host:o.host,id:i,key:o.ossPath,policy:o.policy,success_action_status:200},fileName:"file",name:"file",filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},r,{onUploadProgress:s}))})).then((()=>this.reportOSSUpload({id:i}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:a}):s(new M({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(t))}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new M({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}};var J={init(e){const t=new V(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const Y="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var X;!function(e){e.local="local",e.none="none",e.session="session"}(X||(X={}));var G=function(){};const Q=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new M({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,s)=>e?n(e):t(s)}));return e.promise=t,e};function Z(e){return void 0===e}function ee(e){return"[object Null]"===Object.prototype.toString.call(e)}var te;function ne(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const e of t){const{isMatch:t,genAdapter:n,runtime:s}=e;if(t())return{adapter:n(),runtime:s}}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(te||(te={}));const se={adapter:null,runtime:void 0},oe=["anonymousUuidKey"];class re extends G{constructor(){super(),se.adapter.root.tcbObject||(se.adapter.root.tcbObject={})}setItem(e,t){se.adapter.root.tcbObject[e]=t}getItem(e){return se.adapter.root.tcbObject[e]}removeItem(e){delete se.adapter.root.tcbObject[e]}clear(){delete se.adapter.root.tcbObject}}function ie(e,t){switch(e){case"local":return t.localStorage||new re;case"none":return new re;default:return t.sessionStorage||new re}}class ae{constructor(e){if(!this._storage){this._persistence=se.adapter.primaryStorage||e.persistence,this._storage=ie(this._persistence,se.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,s=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,r=`login_type_${e.env}`,i=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s,anonymousUuidKey:o,loginTypeKey:r,userInfoKey:i}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=ie(e,se.adapter);for(const e in this.keys){const s=this.keys[e];if(t&&oe.includes(e))continue;const o=this._storage.getItem(s);Z(o)||ee(o)||(n.setItem(s,o),this._storage.removeItem(s))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const s={version:n||"localCachev1",content:t},o=JSON.stringify(s);try{this._storage.setItem(e,o)}catch(e){throw e}}getStore(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";const n=this._storage.getItem(e);if(!n)return"";if(n.indexOf(t)>=0){return JSON.parse(n).content}return""}removeStore(e){this._storage.removeItem(e)}}const ce={},ue={};function le(e){return ce[e]}class he{constructor(e,t){this.data=t||null,this.name=e}}class de extends he{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const fe=new class{constructor(){this._listeners={}}on(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}off(e,t){return function(e,t,n){if(n&&n[e]){const s=n[e].indexOf(t);-1!==s&&n[e].splice(s,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof de)return console.error(e.error),this;const n="string"==typeof e?new he(e,t||{}):e;const s=n.name;if(this._listens(s)){n.target=this;const e=this._listeners[s]?[...this._listeners[s]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function ge(e,t){fe.on(e,t)}function pe(e,t={}){fe.fire(e,t)}function me(e,t){fe.off(e,t)}const ye="loginStateChanged",_e="loginStateExpire",we="loginTypeChanged",ke="anonymousConverted",Te="refreshAccessToken";var Se;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Se||(Se={}));const ve=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Pe={"X-SDK-Version":"1.3.5"};function Ae(e,t,n){const s=e[t];e[t]=function(t){const o={},r={};n.forEach((n=>{const{data:s,headers:i}=n.call(e,t);Object.assign(o,s),Object.assign(r,i)}));const i=t.data;return i&&(()=>{var e;if(e=i,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...i,...o};else for(const e in o)i.append(e,o[e])})(),t.headers={...t.headers||{},...r},s.call(e,t)}}function Ie(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Pe,"x-seqid":e}}}class be{constructor(e={}){var t;this.config=e,this._reqClass=new se.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=le(this.config.env),this._localCache=(t=this.config.env,ue[t]),Ae(this._reqClass,"post",[Ie]),Ae(this._reqClass,"upload",[Ie]),Ae(this._reqClass,"download",[Ie])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(e){t=e}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:s,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let r=this._cache.getStore(n);if(!r)throw new M({message:"未登录CloudBase"});const i={refresh_token:r},a=await this.request("auth.fetchAccessTokenWithRefreshToken",i);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(s)===Se.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(o),t=this._cache.getStore(n),s=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(s.refresh_token),this._refreshAccessToken()}pe(_e),this._cache.removeStore(n)}throw new M({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return pe(Te),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new M({message:"refresh token不存在,登录状态异常"});let s=this._cache.getStore(e),o=this._cache.getStore(t),r=!0;return this._shouldRefreshAccessTokenHook&&!await this._shouldRefreshAccessTokenHook(s,o)&&(r=!1),(!s||!o||o<Date.now())&&r?this.refreshAccessToken():{accessToken:s,accessTokenExpire:o}}async request(e,t,n){const s=`x-tcb-trace_${this.config.env}`;let o="application/x-www-form-urlencoded";const r={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};if(-1===ve.indexOf(e)){const{refreshTokenKey:e}=this._cache.keys;this._cache.getStore(e)&&(r.access_token=(await this.getAccessToken()).accessToken)}let i;if("storage.uploadFile"===e){i=new FormData;for(let e in i)i.hasOwnProperty(e)&&void 0!==i[e]&&i.append(e,r[e]);o="multipart/form-data"}else{o="application/json",i={};for(let e in r)void 0!==r[e]&&(i[e]=r[e])}let a={headers:{"content-type":o}};n&&n.onUploadProgress&&(a.onUploadProgress=n.onUploadProgress);const c=this._localCache.getStore(s);c&&(a.headers["X-TCB-Trace"]=c);const{parse:u,inQuery:l,search:h}=t;let d={env:this.config.env};u&&(d.parse=!0),l&&(d={...l,...d});let f=function(e,t,n={}){const s=/\?/.test(t);let o="";for(let e in n)""===o?!s&&(t+="?"):o+="&",o+=`${e}=${encodeURIComponent(n[e])}`;return/^http(s)?\:\/\//.test(t+=o)?t:`${e}${t}`}(Y,"//tcb-api.tencentcloudapi.com/web",d);h&&(f+=h);const g=await this.post({url:f,data:i,...a}),p=g.header&&g.header["x-tcb-trace"];if(p&&this._localCache.setStore(s,p),200!==Number(g.status)&&200!==Number(g.statusCode)||!g.data)throw new M({code:"NETWORK_ERROR",message:"network request error"});return g}async send(e,t={}){const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if("ACCESS_TOKEN_EXPIRED"===n.data.code&&-1===ve.indexOf(e)){await this.refreshAccessToken();const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if(n.data.code)throw new M({code:n.data.code,message:n.data.message});return n.data}if(n.data.code)throw new M({code:n.data.code,message:n.data.message});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(s,e)}}const Oe={};function Ce(e){return Oe[e]}class Ee{constructor(e){this.config=e,this._cache=le(e.env),this._request=Ce(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(s,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(s,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class Re{constructor(e){if(!e)throw new M({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=le(this._envId),this._request=Ce(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach((e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:s,province:o,country:r,city:i}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:s,province:o,country:r,city:i});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Ue{constructor(e){if(!e)throw new M({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=le(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys,o=this._cache.getStore(t),r=this._cache.getStore(n),i=this._cache.getStore(s);this.credential={refreshToken:o,accessToken:r,accessTokenExpire:i},this.user=new Re(e)}get isAnonymousAuth(){return this.loginType===Se.ANONYMOUS}get isCustomAuth(){return this.loginType===Se.CUSTOM}get isWeixinAuth(){return this.loginType===Se.WECHAT||this.loginType===Se.WECHAT_OPEN||this.loginType===Se.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class xe extends Ee{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,s=this._cache.getStore(t)||void 0,o=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:s});if(o.uuid&&o.refresh_token){this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),pe(ye),pe(we,{env:this.config.env,loginType:Se.ANONYMOUS,persistence:"local"});const e=new Ue(this.config.env);return await e.user.refresh(),e}throw new M({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,s=this._cache.getStore(t),o=this._cache.getStore(n),r=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:o,ticket:e});if(r.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),pe(ke,{env:this.config.env}),pe(we,{loginType:Se.CUSTOM,persistence:"local"}),{credential:{refreshToken:r.refresh_token}};throw new M({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Se.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Le extends Ee{async signIn(e){if("string"!=typeof e)throw new M({param:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),pe(ye),pe(we,{env:this.config.env,loginType:Se.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Ue(this.config.env);throw new M({message:"自定义登录失败"})}}class De extends Ee{async signIn(e,t){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token:r,access_token_expire:i}=s;if(o)return this.setRefreshToken(o),r&&i?this.setAccessToken(r,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),pe(ye),pe(we,{env:this.config.env,loginType:Se.EMAIL,persistence:this.config.persistence}),new Ue(this.config.env);throw s.code?new M({code:s.code,message:`邮箱登录失败: ${s.message}`}):new M({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Ne extends Ee{async signIn(e,t){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:Se.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token_expire:r,access_token:i}=s;if(o)return this.setRefreshToken(o),i&&r?this.setAccessToken(i,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),pe(ye),pe(we,{env:this.config.env,loginType:Se.USERNAME,persistence:this.config.persistence}),new Ue(this.config.env);throw s.code?new M({code:s.code,message:`用户名密码登录失败: ${s.message}`}):new M({message:"用户名密码登录失败"})}}class qe{constructor(e){this.config=e,this._cache=le(e.env),this._request=Ce(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ge(we,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new xe(this.config)}customAuthProvider(){return new Le(this.config)}emailAuthProvider(){return new De(this.config)}usernameAuthProvider(){return new Ne(this.config)}async signInAnonymously(){return new xe(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new De(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Ne(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){this._anonymousAuthProvider||(this._anonymousAuthProvider=new xe(this.config)),ge(ke,this._onAnonymousConverted);return await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Se.ANONYMOUS)throw new M({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,s=this._cache.getStore(e);if(!s)return;const o=await this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),pe(ye),pe(we,{env:this.config.env,loginType:Se.NULL,persistence:this.config.persistence}),o}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){ge(ye,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){ge(_e,e.bind(this))}onAccessTokenRefreshed(e){ge(Te,e.bind(this))}onAnonymousConverted(e){ge(ke,e.bind(this))}onLoginTypeChanged(e){ge(we,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Ue(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Le(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Fe=function(e,t){t=t||Q();const n=Ce(this.config.env),{cloudPath:s,filePath:o,onUploadProgress:r,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{const{data:{url:a,authorization:c,token:u,fileId:l,cosFileId:h},requestId:d}=e,f={key:s,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};n.upload({url:a,data:f,file:o,name:s,fileType:i,onUploadProgress:r}).then((e=>{201===e.statusCode?t(null,{fileID:l,requestId:d}):t(new M({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Me=function(e,t){t=t||Q();const n=Ce(this.config.env),{cloudPath:s}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},je=function({fileList:e},t){if(t=t||Q(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let t of e)if(!t||"string"!=typeof t)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return Ce(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},$e=function({fileList:e},t){t=t||Q(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let s of e)"object"==typeof s?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?n.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const s={file_list:n};return Ce(this.config.env).send("storage.batchGetDownloadUrl",s).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},Ke=async function({fileID:e},t){const n=(await $e.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const s=Ce(this.config.env);let o=n.download_url;if(o=encodeURI(o),!t)return s.download({url:o});t(await s.download({url:o}))},Be=function({name:e,data:t,query:n,parse:s,search:o},r){const i=r||Q();let a;try{a=t?JSON.stringify(t):""}catch(e){return Promise.reject(e)}if(!e)return Promise.reject(new M({code:"PARAM_ERROR",message:"函数名不能为空"}));const c={inQuery:n,parse:s,search:o,function_name:e,request_data:a};return Ce(this.config.env).send("functions.invokeFunction",c).then((e=>{if(e.code)i(null,e);else{let t=e.data.response_data;if(s)i(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),i(null,{result:t,requestId:e.requestId})}catch(e){i(new M({message:"response data must be json"}))}}return i.promise})).catch((e=>{i(e)})),i.promise},He={timeout:15e3,persistence:"session"},We={};class ze{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(se.adapter||(this.requestClient=new se.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...He,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new ze(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||se.adapter.primaryStorage||He.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;ce[t]=new ae(e),ue[t]=new ae({...e,persistence:"local"})}(this.config),n=this.config,Oe[n.env]=new be(n),this.authObj=new qe(this.config),this.authObj}on(e,t){return ge.apply(this,[e,t])}off(e,t){return me.apply(this,[e,t])}callFunction(e,t){return Be.apply(this,[e,t])}deleteFile(e,t){return je.apply(this,[e,t])}getTempFileURL(e,t){return $e.apply(this,[e,t])}downloadFile(e,t){return Ke.apply(this,[e,t])}uploadFile(e,t){return Fe.apply(this,[e,t])}getUploadMetadata(e,t){return Me.apply(this,[e,t])}registerExtension(e){We[e.name]=e}async invokeExtension(e,t){const n=We[e];if(!n)throw new M({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=ne(e)||{};t&&(se.adapter=t),n&&(se.runtime=n)}}var Ve=new ze;function Je(e,t,n){void 0===n&&(n={});var s=/\?/.test(t),o="";for(var r in n)""===o?!s&&(t+="?"):o+="&",o+=r+"="+encodeURIComponent(n[r]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}class Ye{post(e){const{url:t,data:n,headers:s}=e;return new Promise(((e,o)=>{H.request({url:Je("https:",t),data:n,method:"POST",header:s,success(t){e(t)},fail(e){o(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:s,file:o,data:r,headers:i,fileType:a}=e,c=H.uploadFile({url:Je("https:",s),name:"file",formData:Object.assign({},r),filePath:o,fileType:a,header:i,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&r.success_action_status&&(n.statusCode=parseInt(r.success_action_status,10)),t(n)},fail(e){d&&"mp-alipay"===g&&console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Xe={setItem(e,t){H.setStorageSync(e,t)},getItem:e=>H.getStorageSync(e),removeItem(e){H.removeStorageSync(e)},clear(){H.clearStorageSync()}};var Ge={genAdapter:function(){return{root:{},reqClass:Ye,localStorage:Xe,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ve.useAdapters(Ge);const Qe=Ve,Ze=Qe.init;Qe.init=function(e){e.env=e.spaceId;const t=Ze.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{t[e]=F(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var et=Qe;function tt(e){return e&&tt(e.__v_raw)||e}function nt(){return{token:H.getStorageSync("uni_id_token")||H.getStorageSync("uniIdToken"),tokenExpired:H.getStorageSync("uni_id_token_expired")}}function st({token:e,tokenExpired:t}={}){e&&H.setStorageSync("uni_id_token",e),t&&H.setStorageSync("uni_id_token_expired",t)}function ot(){if(!d||"web"!==g)return;uni.getStorageSync("__LAST_DCLOUD_APPID")!==_&&(uni.setStorageSync("__LAST_DCLOUD_APPID",_),console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),H.removeStorageSync("uni_id_token"),H.removeStorageSync("uniIdToken"),H.removeStorageSync("uni_id_token_expired"))}var rt=class extends V{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=B.sign(n,this.config.clientSecret);const o=K();s["x-client-info"]=JSON.stringify(o);const{token:r}=nt();return s["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(s))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:o,onUploadProgress:r}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:o,success(e){e&&e.statusCode<400?i(e):a(new M({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new M({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:s}){if(!t)throw new M({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let o;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:r,formData:i,name:a}=t.result;o=t.result.fileUrl;const c={url:r,formData:i,name:a,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},c,{onUploadProgress:s}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:o}):s(new M({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t))}getTempFileURL({fileList:e}={}){const t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t))}};var it={init(e){const t=new rt(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function at({data:e}){let t;t=K();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=nt();e&&(n.uniIdToken=e)}return n}function ct({name:e,data:t}){const{localAddress:n,localPort:s}=this,o={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],r=this.config.spaceId,i=`http://${n}:${s}/system/check-function`,a=`http://${n}:${s}/cloudfunctions/${e}`;return new Promise(((t,n)=>{H.request({method:"POST",url:i,data:{name:e,platform:g,provider:o,spaceId:r},timeout:3e3,success(e){t(e)},fail(){t({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((({data:e}={})=>{const{code:t,message:n}=e||{};return{code:0===t?0:t||"SYS_ERR",message:n||"SYS_ERR"}})).then((({code:n,message:s})=>{if(0!==n){switch(n){case"MODULE_ENCRYPTED":console.error(`此云函数(${e})依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数`);break;case"FUNCTION_ENCRYPTED":console.error(`此云函数(${e})已加密不可本地调试,自动切换为云端已部署的云函数`);break;case"ACTION_ENCRYPTED":console.error(s||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":{const e="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(e),new Error(e)}case"SWITCH_TO_CLOUD":break;default:{const e=`检测本地调试服务出现错误:${s},请检查网络环境或重启客户端再试`;throw console.error(e),new Error(e)}}return this._originCallFunction({name:e,data:t})}return new Promise(((e,n)=>{const s=at.call(this,{data:t});H.request({method:"POST",url:a,data:{provider:o,platform:g,param:s},success:({statusCode:t,data:s}={})=>!t||t>=400?n(new M({code:s.code||"SYS_ERR",message:s.message||"request:fail"})):e({result:s}),fail(e){n(new M({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}const ut=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var lt=/[\\^$.*+?()[\]{}|]/g,ht=RegExp(lt.source);function dt(e,t,n){return e.replace(new RegExp((s=t)&&ht.test(s)?s.replace(lt,"\\$&"):s,"g"),n);var s}function ft({functionName:e,result:t,logPvd:n}){if(this.config.debugLog&&t&&t.requestId){const s=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:t.requestId});console.log(`[${n}-request]${s}[/${n}-request]`)}}function gt(e){const t=e.callFunction,n=function(n){const s=n.name;n.data=at.call(e,{data:n.data});const o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider];return t.call(this,n).then((e=>(e.errCode=0,ft.call(this,{functionName:s,result:e,logPvd:o}),Promise.resolve(e))),(e=>(ft.call(this,{functionName:s,result:e,logPvd:o}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let s=0;s<n.length;s++){const{rule:o,content:r,mode:i}=n[s],a=e.match(o);if(!a)continue;let c=r;for(let e=1;e<a.length;e++)c=dt(c,`{$${e}}`,a[e]);for(const e in t)c=dt(c,`{${e}}`,t[e]);return"replace"===i?c:e+c}return e}({message:`[${n.name}]: ${e.message}`,formatter:ut,extraInfo:{functionName:s}})),Promise.reject(e))))};e.callFunction=function(t){let s;return d&&e.debugInfo&&!e.debugInfo.forceRemote&&m?(e._originCallFunction||(e._originCallFunction=n),s=ct.call(this,t)):s=n.call(this,t),Object.defineProperty(s,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),s}}const pt=Symbol("CLIENT_DB_INTERNAL");function mt(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=pt,e.__v_raw=void 0,new Proxy(e,{get(e,n,s){if("_uniClient"===n)return null;if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,s)}})}function yt(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const s=e[t].indexOf(n);-1!==s&&e[t].splice(s,1)}}}const _t=["db.Geo","db.command","command.aggregate"];function wt(e,t){return _t.indexOf(`${e}.${t}`)>-1}function kt(e){switch(u(e=tt(e))){case"array":return e.map((e=>kt(e)));case"object":return e._internalType===pt||Object.keys(e).forEach((t=>{e[t]=kt(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}class Tt{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:kt(e.$param)})))}}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get useAggregate(){let e=this,t=!1;for(;e.prevStage;){e=e.prevStage;const n=e.content.$method;if("aggregate"===n||"pipeline"===n){t=!0;break}}return t}get count(){if(!this.useAggregate)return function(){return this._send("count",Array.from(arguments))};const e=this;return function(){return St({$method:"count",$param:kt(Array.from(arguments))},e,this._database)}}get(){return this._send("get",Array.from(arguments))}add(){return this._send("add",Array.from(arguments))}remove(){return this._send("remove",Array.from(arguments))}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}set(){throw new Error("clientDB禁止使用set方法")}_send(e,t){const n=this.getAction(),s=this.getCommand();if(s.$db.push({$method:e,$param:kt(t)}),d){const e=s.$db.find((e=>"collection"===e.$method)),t=e&&e.$param;t&&1===t.length&&"string"==typeof e.$param[0]&&e.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:s})}}function St(e,t,n){return mt(new Tt(e,t,n),{get(e,t){let s="db";return e&&e.content&&(s=e.content.$method),wt(s,t)?St({$method:t},e,n):function(){return St({$method:t,$param:kt(Array.from(arguments))},e,n)}}})}function vt({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}}}class Pt extends class{constructor({uniClient:e={}}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e.isDefault&&(this._dbCallBacks=k("_globalUniCloudDatabaseCallback")),this.auth=yt(this._authCallBacks),Object.assign(this,yt(this._dbCallBacks)),this.env=mt({},{get:(e,t)=>({$env:t})}),this.Geo=mt({},{get:(e,t)=>vt({path:["Geo"],method:t})}),this.serverDate=vt({path:[],method:"serverDate"}),this.RegExp=vt({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_callCloudFunction({action:e,command:t,multiCommand:n,queryList:s}){function o(e,t){if(n&&s)for(let n=0;n<s.length;n++){const o=s[n];o.udb&&"function"==typeof o.udb.setResult&&(t?o.udb.setResult(t):o.udb.setResult(e.result.dataList[n]))}}const r=this;function i(e){return r._callback("error",[e]),A(I("database","fail"),e).then((()=>A(I("database","complete"),e))).then((()=>(o(null,e),q(O,{type:R,content:e}),Promise.reject(e))))}const a=A(I("database","invoke")),u=this._uniClient;return a.then((()=>u.callFunction({name:"DCloud-clientDB",type:c,data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:s,tokenExpired:r,systemInfo:a=[]}=e.result;if(a)for(let e=0;e<a.length;e++){const{level:t,message:n,detail:s}=a[e],o=console["app"===g&&"warn"===t?"error":t]||console.log;let r="[System Info]"+n;s&&(r=`${r}\n详细信息:${s}`),o(r)}if(t){return i(new M({code:t,message:n,requestId:e.requestId}))}e.result.errCode=e.result.code,e.result.errMsg=e.result.message,s&&r&&(st({token:s,tokenExpired:r}),this._callbackAuth("refreshToken",[{token:s,tokenExpired:r}]),this._callback("refreshToken",[{token:s,tokenExpired:r}]),q(E,{token:s,tokenExpired:r}));const c=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}];for(let t=0;t<c.length;t++){const{prop:n,tips:s}=c[t];if(n in e.result){const t=e.result[n];Object.defineProperty(e.result,n,{get:()=>(console.warn(s),t)})}}return function(e){return A(I("database","success"),e).then((()=>A(I("database","complete"),e))).then((()=>(o(e,null),q(O,{type:R,content:e}),Promise.resolve(e))))}(e)}),(e=>{/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");return i(new M({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}function At(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;const n=function(e,t={}){return mt(new e(t),{get:(e,t)=>wt("db",t)?St({$method:t},null,e):function(){return St({$method:t,$param:kt(Array.from(arguments))},null,e)}})}(Pt,{uniClient:e});return this._database=n,n}}const It="token无效,跳转登录页面",bt="token过期,跳转登录页面",Ot={TOKEN_INVALID_TOKEN_EXPIRED:bt,TOKEN_INVALID_INVALID_CLIENTID:It,TOKEN_INVALID:It,TOKEN_INVALID_WRONG_TOKEN:It,TOKEN_INVALID_ANONYMOUS_USER:It},Ct={"uni-id-token-expired":bt,"uni-id-check-token-failed":It,"uni-id-token-not-exist":It,"uni-id-check-device-feature-failed":It};function Et(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Rt(e=[],t=""){const n=[],s=[];return e.forEach((e=>{!0===e.needLogin?n.push(Et(t,e.path)):!1===e.needLogin&&s.push(Et(t,e.path))})),{needLoginPage:n,notNeedLoginPage:s}}function Ut(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,s=e.split("?")[0].replace(/^\//,"");return n.some((e=>e.pagePath===s))}const xt=!!t.uniIdRouter;const{loginPage:Lt,routerNeedLogin:Dt,resToLogin:Nt,needLoginPage:qt,notNeedLoginPage:Ft,loginPageInTabBar:Mt}=function({pages:e=[],subPackages:n=[],uniIdRouter:s={},tabBar:o={}}=t){const{loginPage:r,needLogin:i=[],resToLogin:a=!0}=s,{needLoginPage:c,notNeedLoginPage:u}=Rt(e),{needLoginPage:l,notNeedLoginPage:h}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:s,pages:o=[]}=e,{needLoginPage:r,notNeedLoginPage:i}=Rt(o,s);t.push(...r),n.push(...i)})),{needLoginPage:t,notNeedLoginPage:n}}(n);return{loginPage:r,routerNeedLogin:i,resToLogin:a,needLoginPage:[...c,...l],notNeedLoginPage:[...u,...h],loginPageInTabBar:Ut(r,o)}}();function jt(e){const t=function(e){const t=getCurrentPages(),n=t[t.length-1].route,s=e.charAt(0),o=e.split("?")[0];if("/"===s)return o;const r=o.replace(/^\//,"").split("/"),i=n.split("/");i.pop();for(let e=0;e<r.length;e++){const t=r[e];".."===t?i.pop():"."!==t&&i.push(t)}return""===i[0]&&i.shift(),i.join("/")}(e).replace(/^\//,"");return!(Ft.indexOf(t)>-1)&&(qt.indexOf(t)>-1||Dt.some((t=>function(e,t){return new RegExp(t).test(e)}(e,t))))}function $t(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+`&uniIdRedirectUrl=${encodeURIComponent(t)}`:e+`?uniIdRedirectUrl=${encodeURIComponent(t)}`:e}function Kt(){const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];uni.addInterceptor(n,{invoke(e){const{token:t,tokenExpired:s}=nt();let o;if(t){if(s<Date.now()){const e="uni-id-token-expired";o={errCode:e,errMsg:Ct[e]}}}else{const e="uni-id-check-token-failed";o={errCode:e,errMsg:Ct[e]}}if(jt(e.url)&&o){o.uniIdRedirectUrl=e.url;if(L(C).length>0)return setTimeout((()=>{q(C,o)}),0),e.url="",!1;if(!Lt)return e;const t=$t(Lt,o.uniIdRedirectUrl);if(Mt){if("navigateTo"===n||"redirectTo"===n)return setTimeout((()=>{uni.switchTab({url:t})})),!1}else if("switchTab"===n)return setTimeout((()=>{uni.navigateTo({url:t})})),!1;e.url=t}return e}})}}function Bt(){this.onResponse((e=>{const{type:t,content:n}=e;let s=!1;switch(t){case"cloudobject":s=function(e){const{errCode:t}=e;return t in Ct}(n);break;case"clientdb":s=function(e){const{errCode:t}=e;return t in Ot}(n)}s&&function(e={}){const t=L(C),n=getCurrentPages(),s=n[n.length-1],o=s&&s.$page&&s.$page.fullPath;if(t.length>0)return q(C,Object.assign({uniIdRedirectUrl:o},e));Lt&&uni.navigateTo({url:$t(Lt,o)})}(n)}))}function Ht(e){e.onNeedLogin=function(e){D(C,e)},e.offNeedLogin=function(e){N(C,e)},xt&&(k("uni-cloud-status").needLoginInit||(k("uni-cloud-status").needLoginInit=!0,function t(){const n=getCurrentPages();n&&n[0]?Kt.call(e):setTimeout((()=>{t()}),30)}(),Nt&&Bt.call(e)))}function Wt(e){!function(e){e.onResponse=function(e){D(O,e)},e.offResponse=function(e){N(O,e)}}(e),Ht(e),function(e){e.onRefreshToken=function(e){D(E,e)},e.offRefreshToken=function(e){N(E,e)}}(e)}let zt;const Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Jt=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Yt(){const e=nt().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((s=t[1],decodeURIComponent(zt(s).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(e){throw new Error("获取当前用户信息出错,详细错误信息为:"+e.message)}var s;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}zt="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Jt.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,s,o="",r=0;r<e.length;)t=Vt.indexOf(e.charAt(r++))<<18|Vt.indexOf(e.charAt(r++))<<12|(n=Vt.indexOf(e.charAt(r++)))<<6|(s=Vt.indexOf(e.charAt(r++))),o+=64===n?String.fromCharCode(t>>16&255):64===s?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var Xt=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",s="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function r(e,t,{onChooseFile:s,onUploadProgress:o}){return t.then((e=>{if(s){const t=s(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,s=5,o){(t=Object.assign({},t)).errMsg=n;const r=t.tempFiles,i=r.length;let a=0;return new Promise((n=>{for(;a<s;)c();function c(){const s=a++;if(s>=i)return void(!r.find((e=>!e.url&&!e.errMsg))&&n(t));const u=r[s];e.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,onUploadProgress(e){e.index=s,e.tempFile=u,e.tempFilePath=u.path,o&&o(e)}}).then((e=>{u.url=e.fileID,s<i&&c()})).catch((e=>{u.errMsg=e.errMsg||e.message,s<i&&c()}))}}))}(e,t,5,o)))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?r(e,function(e){const{count:t,sizeType:n,sourceType:r=["album","camera"],extension:i}=e;return new Promise(((e,a)=>{uni.chooseImage({count:t,sizeType:n,sourceType:r,extension:i,success(t){e(o(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",s)})}})}))}(t),t):"video"===t.type?r(e,function(e){const{camera:t,compressed:n,maxDuration:r,sourceType:i=["album","camera"],extension:a}=e;return new Promise(((e,c)=>{uni.chooseVideo({camera:t,compressed:n,maxDuration:r,sourceType:i,extension:a,success(t){const{tempFilePath:n,duration:s,size:r,height:i,width:a}=t;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:r,type:t.tempFile&&t.tempFile.type||"",width:a,height:i,duration:s,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",s)})}})}))}(t),t):r(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,r)=>{let i=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(i=wx.chooseMessageFile),"function"!=typeof i)return r({errMsg:s+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});i({type:"all",count:t,extension:n,success(t){e(o(t))},fail(e){r({errMsg:e.errMsg.replace("chooseFile:fail",s)})}})}))}(t),t)}}})),Gt=n(Xt);const Qt="manual";function Zt(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if(this.loadtime===Qt)return;let n=!1;const s=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(s.push(e[o]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,s)}))},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((n=>{this.mixinDatacomLoading=!1;const{data:s,count:o}=n.result;this.getcount&&(this.mixinDatacomPage.count=o),this.mixinDatacomHasMore=s.length<this.pageSize;const r=e?s.length?s[0]:void 0:s;this.mixinDatacomResData=r,t&&t(r)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,n&&n(e)})))},mixinDatacomGet(t={}){let n=e.database(this.spaceInfo);const s=t.action||this.action;s&&(n=n.action(s));const o=t.collection||this.collection;n=Array.isArray(o)?n.collection(...o):n.collection(o);const r=t.where||this.where;r&&Object.keys(r).length&&(n=n.where(r));const i=t.field||this.field;i&&(n=n.field(i));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const u=t.groupField||this.groupField;u&&(n=n.groupField(u));!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const l=t.orderby||this.orderby;l&&(n=n.orderBy(l));const h=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,f=void 0!==t.getcount?t.getcount:this.getcount,g=void 0!==t.gettree?t.gettree:this.gettree,p=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:f},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return g&&(m.getTree=y),p&&(m.getTreePath=y),n=n.skip(d*(h-1)).limit(d).get(m),n}}}}function en(e){return function(t,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:s,loadingOptions:o,errorOptions:r}=n,i=!s;return new Proxy({},{get:(n,s)=>async function n(...c){let u;i&&uni.showLoading({title:o.title,mask:o.mask});try{u=await e.callFunction({name:t,type:a,data:{method:s,params:c}})}catch(e){u={result:e}}const{errCode:l,errMsg:h,newToken:d}=u.result||{};if(i&&uni.hideLoading(),d&&d.token&&d.tokenExpired&&(st(d),q(E,{...d})),l){if(i)if("toast"===r.type)uni.showToast({title:h,icon:"none"});else{if("modal"!==r.type)throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:e}=await async function({title:e,content:t,showCancel:n,cancelText:s,confirmText:o}={}){return new Promise(((r,i)=>{uni.showModal({title:e,content:t,showCancel:n,cancelText:s,confirmText:o,success(e){r(e)},fail(){r({confirm:!1,cancel:!0})}})}))}({title:"提示",content:h,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&e)return n(...c)}}const e=new M({code:l,message:h,requestId:u.requestId});throw e.detail=u.result,q(O,{type:x,content:e}),e}return q(O,{type:x,content:u.result}),u.result}})}}async function tn(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(s={url:n,timeout:500},new Promise(((e,t)=>{H.request({...s,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(e){return!1}var s}function nn(e){if(e.initUniCloudStatus&&"rejected"!==e.initUniCloudStatus)return;let t=Promise.resolve();var n;n=1,t=new Promise(((e,t)=>{setTimeout((()=>{e()}),n)})),e.isReady=!1,e.isDefault=!1;const s=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=t.then((()=>s.getLoginState())).then((e=>e?Promise.resolve():s.signInAnonymously())).then((()=>{if(!d)return Promise.resolve();if("app"===g&&"ios"===uni.getSystemInfoSync().osName){const{osName:e,osVersion:t}=uni.getSystemInfoSync();"ios"===e&&function(e){if(!e||"string"!=typeof e)return 0;const t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(t)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)")}if(d&&e.debugInfo){const{address:t,servePort:n}=e.debugInfo;return async function(e,t){let n;for(let s=0;s<e.length;s++){const o=e[s];if(await tn(o,t)){n=o;break}}return{address:n,port:t}}(t,n)}})).then((({address:t,port:n}={})=>{if(!d)return Promise.resolve();const s=console["app"===g?"error":"warn"];if(t)e.localAddress=t,e.localPort=n;else if(e.debugInfo){let t="";"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,t="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):t="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","web"===g&&(t+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===g.indexOf("mp-")&&(t+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),s(t)}})).then((()=>{ot(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((t=>{console.error(t),e.initUniCloudStatus="rejected"}))}let sn=new class{init(e){let t={};const n=d&&("web"===g&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===g);switch(e.provider){case"tcb":case"tencent":t=et.init(Object.assign(e,{debugLog:n}));break;case"aliyun":t=J.init(Object.assign(e,{debugLog:n}));break;case"private":t=it.init(Object.assign(e,{debugLog:n}));break;default:throw new Error("未提供正确的provider参数")}const s=p;d&&s&&!s.code&&(t.debugInfo=s),nn(t),t.reInit=function(){nn(this)},gt(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),At(t),function(e){e.getCurrentUserInfo=Yt,e.chooseAndUploadFile=Gt.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Zt(e)}}),e.importObject=en(e)}(t);return["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return t.reInit(),n.apply(t,Array.from(arguments))},t[e]=F(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{{const e=m;let t={};if(1===e.length)t=e[0],sn=sn.init(t),sn.isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":y?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",t.forEach((e=>{sn[e]=function(){return console.error(n),Promise.reject(new M({code:"SYS_ERR",message:n}))}}))}Object.assign(sn,{get mixinDatacom(){return Zt(sn)}}),Wt(sn),sn.addInterceptor=v,sn.removeInterceptor=P,d&&"web"===g&&(window.uniCloud=sn)}})();var on=sn;export{on as default}; +import{initVueI18n as e}from"@dcloudio/uni-i18n";import t from"@/pages.json";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var o=s((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},o=s.lib={},r=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,s=this.sigBytes,o=e.sigBytes;if(this.clamp(),s%4)for(var r=0;r<o;r++){var i=n[r>>>2]>>>24-r%4*8&255;t[s+r>>>2]|=i<<24-(s+r)%4*8}else for(r=0;r<o;r+=4)t[s+r>>>2]=n[r>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,s=[],o=function(t){t=t;var n=987654321,s=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&s)<<16)+(t=18e3*(65535&t)+(t>>16)&s)&s;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},r=0;r<t;r+=4){var a=o(4294967296*(n||e.random()));n=987654071*a(),s.push(4294967296*a()|0)}return new i.init(s,t)}}),a=s.enc={},c=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s+=2)n[s>>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new i.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;s.push(String.fromCharCode(r))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s++)n[s>>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new i.init(n,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,s=n.words,o=n.sigBytes,r=this.blockSize,a=o/(4*r),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*r,u=e.min(4*c,o);if(c){for(var l=0;l<c;l+=r)this._doProcessBlock(s,l);var h=s.splice(0,c);n.sigBytes-=u}return new i.init(h,u)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=h.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=s.algo={};return s}(Math),n)})),r=(s((function(e,t){var n;e.exports=(n=o,function(e){var t=n,s=t.lib,o=s.WordArray,r=s.Hasher,i=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var s=t+n,o=e[s];e[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r=this._hash.words,i=e[t+0],c=e[t+1],f=e[t+2],g=e[t+3],p=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],w=e[t+8],k=e[t+9],T=e[t+10],S=e[t+11],v=e[t+12],A=e[t+13],P=e[t+14],I=e[t+15],b=r[0],O=r[1],C=r[2],E=r[3];b=u(b,O,C,E,i,7,a[0]),E=u(E,b,O,C,c,12,a[1]),C=u(C,E,b,O,f,17,a[2]),O=u(O,C,E,b,g,22,a[3]),b=u(b,O,C,E,p,7,a[4]),E=u(E,b,O,C,m,12,a[5]),C=u(C,E,b,O,y,17,a[6]),O=u(O,C,E,b,_,22,a[7]),b=u(b,O,C,E,w,7,a[8]),E=u(E,b,O,C,k,12,a[9]),C=u(C,E,b,O,T,17,a[10]),O=u(O,C,E,b,S,22,a[11]),b=u(b,O,C,E,v,7,a[12]),E=u(E,b,O,C,A,12,a[13]),C=u(C,E,b,O,P,17,a[14]),b=l(b,O=u(O,C,E,b,I,22,a[15]),C,E,c,5,a[16]),E=l(E,b,O,C,y,9,a[17]),C=l(C,E,b,O,S,14,a[18]),O=l(O,C,E,b,i,20,a[19]),b=l(b,O,C,E,m,5,a[20]),E=l(E,b,O,C,T,9,a[21]),C=l(C,E,b,O,I,14,a[22]),O=l(O,C,E,b,p,20,a[23]),b=l(b,O,C,E,k,5,a[24]),E=l(E,b,O,C,P,9,a[25]),C=l(C,E,b,O,g,14,a[26]),O=l(O,C,E,b,w,20,a[27]),b=l(b,O,C,E,A,5,a[28]),E=l(E,b,O,C,f,9,a[29]),C=l(C,E,b,O,_,14,a[30]),b=h(b,O=l(O,C,E,b,v,20,a[31]),C,E,m,4,a[32]),E=h(E,b,O,C,w,11,a[33]),C=h(C,E,b,O,S,16,a[34]),O=h(O,C,E,b,P,23,a[35]),b=h(b,O,C,E,c,4,a[36]),E=h(E,b,O,C,p,11,a[37]),C=h(C,E,b,O,_,16,a[38]),O=h(O,C,E,b,T,23,a[39]),b=h(b,O,C,E,A,4,a[40]),E=h(E,b,O,C,i,11,a[41]),C=h(C,E,b,O,g,16,a[42]),O=h(O,C,E,b,y,23,a[43]),b=h(b,O,C,E,k,4,a[44]),E=h(E,b,O,C,v,11,a[45]),C=h(C,E,b,O,I,16,a[46]),b=d(b,O=h(O,C,E,b,f,23,a[47]),C,E,i,6,a[48]),E=d(E,b,O,C,_,10,a[49]),C=d(C,E,b,O,P,15,a[50]),O=d(O,C,E,b,m,21,a[51]),b=d(b,O,C,E,v,6,a[52]),E=d(E,b,O,C,g,10,a[53]),C=d(C,E,b,O,T,15,a[54]),O=d(O,C,E,b,c,21,a[55]),b=d(b,O,C,E,w,6,a[56]),E=d(E,b,O,C,I,10,a[57]),C=d(C,E,b,O,y,15,a[58]),O=d(O,C,E,b,A,21,a[59]),b=d(b,O,C,E,p,6,a[60]),E=d(E,b,O,C,S,10,a[61]),C=d(C,E,b,O,f,15,a[62]),O=d(O,C,E,b,k,21,a[63]),r[0]=r[0]+b|0,r[1]=r[1]+O|0,r[2]=r[2]+C|0,r[3]=r[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var r=e.floor(s/4294967296),i=s;n[15+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,s,o,r,i){var a=e+(t&n|~t&s)+o+i;return(a<<r|a>>>32-r)+t}function l(e,t,n,s,o,r,i){var a=e+(t&s|n&~s)+o+i;return(a<<r|a>>>32-r)+t}function h(e,t,n,s,o,r,i){var a=e+(t^n^s)+o+i;return(a<<r|a>>>32-r)+t}function d(e,t,n,s,o,r,i){var a=e+(n^(t|~s))+o+i;return(a<<r|a>>>32-r)+t}t.MD5=r._createHelper(c),t.HmacMD5=r._createHmacHelper(c)}(Math),n.MD5)})),s((function(e,t){var n,s,r;e.exports=(s=(n=o).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=s.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,s=4*n;t.sigBytes>s&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,u=0;u<n;u++)a[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=s,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),s((function(e,t){e.exports=o.HmacMD5})));const i="FUNCTION",a="OBJECT",c="CLIENT_DB";function u(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function l(e){return"object"===u(e)}function h(e){return e&&"string"==typeof e?JSON.parse(e):e}const d="development"===process.env.NODE_ENV,f=process.env.UNI_PLATFORM;let g;switch(f){case"h5":g="web";break;case"app-plus":g="app";break;default:g=f}const p=h(process.env.UNICLOUD_DEBUG),m=h(process.env.UNI_CLOUD_PROVIDER),y=process.env.RUN_BY_HBUILDERX;let _="";try{_=process.env.UNI_APP_ID||""}catch(e){}let w={};function k(e,t={}){var n,s;return n=w,s=e,Object.prototype.hasOwnProperty.call(n,s)||(w[e]=t),w[e]}"app"===g&&(w=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});const T=["invoke","success","fail","complete"],S=k("_globalUniCloudInterceptor");function v(e,t){S[e]||(S[e]={}),l(t)&&Object.keys(t).forEach((n=>{T.indexOf(n)>-1&&function(e,t,n){let s=S[e][t];s||(s=S[e][t]=[]),-1===s.indexOf(n)&&"function"==typeof n&&s.push(n)}(e,n,t[n])}))}function A(e,t){S[e]||(S[e]={}),l(t)?Object.keys(t).forEach((n=>{T.indexOf(n)>-1&&function(e,t,n){const s=S[e][t];if(!s)return;const o=s.indexOf(n);o>-1&&s.splice(o,1)}(e,n,t[n])})):delete S[e]}function P(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function I(e,t){return S[e]&&S[e][t]||[]}const b=k("_globalUniCloudListener"),O="response",C="needLogin",E="refreshToken",R="clientdb",U="cloudfunction",x="cloudobject";function L(e){return b[e]||(b[e]=[]),b[e]}function D(e,t){const n=L(e);n.includes(t)||n.push(t)}function N(e,t){const n=L(e),s=n.indexOf(t);-1!==s&&n.splice(s,1)}function q(e,t){const n=L(e);for(let e=0;e<n.length;e++){(0,n[e])(t)}}function F(e,t){return t?function(n){let s=!1;if("callFunction"===t){const e=n&&n.type||i;s=e!==i}const o="callFunction"===t&&!s;let r;r=this.isReady?Promise.resolve():this.initUniCloud,n=n||{};const a=r.then((()=>s?Promise.resolve():P(I(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>s?Promise.resolve(e):P(I(t,"success"),e).then((()=>P(I(t,"complete"),e))).then((()=>(o&&q(O,{type:U,content:e}),Promise.resolve(e))))),(e=>s?Promise.reject(e):P(I(t,"fail"),e).then((()=>P(I(t,"complete"),e))).then((()=>(q(O,{type:U,content:e}),Promise.reject(e))))));if(!(n.success||n.fail||n.complete))return a;a.then((e=>{n.success&&n.success(e),n.complete&&n.complete(e),o&&q(O,{type:U,content:e})}),(e=>{n.fail&&n.fail(e),n.complete&&n.complete(e),o&&q(O,{type:U,content:e})}))}:function(t){if(!((t=t||{}).success||t.fail||t.complete))return e.call(this,t);e.call(this,t).then((e=>{t.success&&t.success(e),t.complete&&t.complete(e)}),(e=>{t.fail&&t.fail(e),t.complete&&t.complete(e)}))}}class M extends Error{constructor(e){super(e.message),this.errMsg=e.message||"",this.errCode=this.code=e.code||"SYSTEM_ERROR",this.requestId=e.requestId}}function $(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:s}=uni.getLaunchOptionsSync();e=s,t=n}}catch(e){}return{channel:e,scene:t}}let j;function K(){const e=uni.getLocale&&uni.getLocale()||"en";if(j)return{...j,locale:e,LOCALE:e};const t=uni.getSystemInfoSync(),{deviceId:n,osName:s,uniPlatform:o,appId:r}=t,i=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let e=0;e<i.length;e++){delete t[i[e]]}return j={PLATFORM:o,OS:s,APPID:r,DEVICEID:n,...$(),...t},{...j,locale:e,LOCALE:e}}var B={sign:function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),r(n,t).toString()},wrappedRequest:function(e,t){return new Promise(((n,s)=>{t(Object.assign(e,{complete(e){e||(e={}),d&&"web"===g&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return s(new M({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const o=e.data;if(o.error)return s(new M({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))}};var H={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()},W={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"};const{t:z}=e({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:W,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:W},"zh-Hans");var V=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(z("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=H,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return B.wrappedRequest(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=B.sign(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=B.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:s}}getAccessToken(){if("pending"===this._getAccessTokenPromiseStatus)return this._getAccessTokenPromise;this._getAccessTokenPromiseStatus="pending";return this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>new Promise(((t,n)=>{e.result&&e.result.accessToken?(this.setAccessToken(e.result.accessToken),this._getAccessTokenPromiseStatus="fulfilled",t(this.accessToken)):(this._getAccessTokenPromiseStatus="rejected",n(new M({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))),(e=>(this._getAccessTokenPromiseStatus="rejected",Promise.reject(e)))),this._getAccessTokenPromise}authorize(){this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:o,onUploadProgress:r}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?i(e):a(new M({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new M({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:s,config:o}){if("string"!==u(t))throw new M({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new M({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new M({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=o&&o.envType||this.config.envType;let i,a;return this.getOSSUploadOptionsFromPath({env:r,filename:t}).then((t=>{const o=t.result;i=o.id,a="https://"+o.cdnDomain+"/"+o.ossPath;const r={url:"https://"+o.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:o.accessKeyId,Signature:o.signature,host:o.host,id:i,key:o.ossPath,policy:o.policy,success_action_status:200},fileName:"file",name:"file",filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},r,{onUploadProgress:s}))})).then((()=>this.reportOSSUpload({id:i}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:a}):s(new M({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(t))}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new M({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}};var J={init(e){const t=new V(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const Y="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var X;!function(e){e.local="local",e.none="none",e.session="session"}(X||(X={}));var G=function(){};const Q=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new M({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,s)=>e?n(e):t(s)}));return e.promise=t,e};function Z(e){return void 0===e}function ee(e){return"[object Null]"===Object.prototype.toString.call(e)}var te;function ne(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const e of t){const{isMatch:t,genAdapter:n,runtime:s}=e;if(t())return{adapter:n(),runtime:s}}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(te||(te={}));const se={adapter:null,runtime:void 0},oe=["anonymousUuidKey"];class re extends G{constructor(){super(),se.adapter.root.tcbObject||(se.adapter.root.tcbObject={})}setItem(e,t){se.adapter.root.tcbObject[e]=t}getItem(e){return se.adapter.root.tcbObject[e]}removeItem(e){delete se.adapter.root.tcbObject[e]}clear(){delete se.adapter.root.tcbObject}}function ie(e,t){switch(e){case"local":return t.localStorage||new re;case"none":return new re;default:return t.sessionStorage||new re}}class ae{constructor(e){if(!this._storage){this._persistence=se.adapter.primaryStorage||e.persistence,this._storage=ie(this._persistence,se.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,s=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,r=`login_type_${e.env}`,i=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s,anonymousUuidKey:o,loginTypeKey:r,userInfoKey:i}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=ie(e,se.adapter);for(const e in this.keys){const s=this.keys[e];if(t&&oe.includes(e))continue;const o=this._storage.getItem(s);Z(o)||ee(o)||(n.setItem(s,o),this._storage.removeItem(s))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const s={version:n||"localCachev1",content:t},o=JSON.stringify(s);try{this._storage.setItem(e,o)}catch(e){throw e}}getStore(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";const n=this._storage.getItem(e);if(!n)return"";if(n.indexOf(t)>=0){return JSON.parse(n).content}return""}removeStore(e){this._storage.removeItem(e)}}const ce={},ue={};function le(e){return ce[e]}class he{constructor(e,t){this.data=t||null,this.name=e}}class de extends he{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const fe=new class{constructor(){this._listeners={}}on(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}off(e,t){return function(e,t,n){if(n&&n[e]){const s=n[e].indexOf(t);-1!==s&&n[e].splice(s,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof de)return console.error(e.error),this;const n="string"==typeof e?new he(e,t||{}):e;const s=n.name;if(this._listens(s)){n.target=this;const e=this._listeners[s]?[...this._listeners[s]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function ge(e,t){fe.on(e,t)}function pe(e,t={}){fe.fire(e,t)}function me(e,t){fe.off(e,t)}const ye="loginStateChanged",_e="loginStateExpire",we="loginTypeChanged",ke="anonymousConverted",Te="refreshAccessToken";var Se;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Se||(Se={}));const ve=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Ae={"X-SDK-Version":"1.3.5"};function Pe(e,t,n){const s=e[t];e[t]=function(t){const o={},r={};n.forEach((n=>{const{data:s,headers:i}=n.call(e,t);Object.assign(o,s),Object.assign(r,i)}));const i=t.data;return i&&(()=>{var e;if(e=i,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...i,...o};else for(const e in o)i.append(e,o[e])})(),t.headers={...t.headers||{},...r},s.call(e,t)}}function Ie(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Ae,"x-seqid":e}}}class be{constructor(e={}){var t;this.config=e,this._reqClass=new se.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=le(this.config.env),this._localCache=(t=this.config.env,ue[t]),Pe(this._reqClass,"post",[Ie]),Pe(this._reqClass,"upload",[Ie]),Pe(this._reqClass,"download",[Ie])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(e){t=e}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:s,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let r=this._cache.getStore(n);if(!r)throw new M({message:"未登录CloudBase"});const i={refresh_token:r},a=await this.request("auth.fetchAccessTokenWithRefreshToken",i);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(s)===Se.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(o),t=this._cache.getStore(n),s=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(s.refresh_token),this._refreshAccessToken()}pe(_e),this._cache.removeStore(n)}throw new M({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return pe(Te),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new M({message:"refresh token不存在,登录状态异常"});let s=this._cache.getStore(e),o=this._cache.getStore(t),r=!0;return this._shouldRefreshAccessTokenHook&&!await this._shouldRefreshAccessTokenHook(s,o)&&(r=!1),(!s||!o||o<Date.now())&&r?this.refreshAccessToken():{accessToken:s,accessTokenExpire:o}}async request(e,t,n){const s=`x-tcb-trace_${this.config.env}`;let o="application/x-www-form-urlencoded";const r={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};if(-1===ve.indexOf(e)){const{refreshTokenKey:e}=this._cache.keys;this._cache.getStore(e)&&(r.access_token=(await this.getAccessToken()).accessToken)}let i;if("storage.uploadFile"===e){i=new FormData;for(let e in i)i.hasOwnProperty(e)&&void 0!==i[e]&&i.append(e,r[e]);o="multipart/form-data"}else{o="application/json",i={};for(let e in r)void 0!==r[e]&&(i[e]=r[e])}let a={headers:{"content-type":o}};n&&n.onUploadProgress&&(a.onUploadProgress=n.onUploadProgress);const c=this._localCache.getStore(s);c&&(a.headers["X-TCB-Trace"]=c);const{parse:u,inQuery:l,search:h}=t;let d={env:this.config.env};u&&(d.parse=!0),l&&(d={...l,...d});let f=function(e,t,n={}){const s=/\?/.test(t);let o="";for(let e in n)""===o?!s&&(t+="?"):o+="&",o+=`${e}=${encodeURIComponent(n[e])}`;return/^http(s)?\:\/\//.test(t+=o)?t:`${e}${t}`}(Y,"//tcb-api.tencentcloudapi.com/web",d);h&&(f+=h);const g=await this.post({url:f,data:i,...a}),p=g.header&&g.header["x-tcb-trace"];if(p&&this._localCache.setStore(s,p),200!==Number(g.status)&&200!==Number(g.statusCode)||!g.data)throw new M({code:"NETWORK_ERROR",message:"network request error"});return g}async send(e,t={}){const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if("ACCESS_TOKEN_EXPIRED"===n.data.code&&-1===ve.indexOf(e)){await this.refreshAccessToken();const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if(n.data.code)throw new M({code:n.data.code,message:n.data.message});return n.data}if(n.data.code)throw new M({code:n.data.code,message:n.data.message});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(s,e)}}const Oe={};function Ce(e){return Oe[e]}class Ee{constructor(e){this.config=e,this._cache=le(e.env),this._request=Ce(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(s,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(s,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class Re{constructor(e){if(!e)throw new M({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=le(this._envId),this._request=Ce(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach((e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:s,province:o,country:r,city:i}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:s,province:o,country:r,city:i});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Ue{constructor(e){if(!e)throw new M({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=le(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys,o=this._cache.getStore(t),r=this._cache.getStore(n),i=this._cache.getStore(s);this.credential={refreshToken:o,accessToken:r,accessTokenExpire:i},this.user=new Re(e)}get isAnonymousAuth(){return this.loginType===Se.ANONYMOUS}get isCustomAuth(){return this.loginType===Se.CUSTOM}get isWeixinAuth(){return this.loginType===Se.WECHAT||this.loginType===Se.WECHAT_OPEN||this.loginType===Se.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class xe extends Ee{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,s=this._cache.getStore(t)||void 0,o=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:s});if(o.uuid&&o.refresh_token){this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),pe(ye),pe(we,{env:this.config.env,loginType:Se.ANONYMOUS,persistence:"local"});const e=new Ue(this.config.env);return await e.user.refresh(),e}throw new M({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,s=this._cache.getStore(t),o=this._cache.getStore(n),r=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:o,ticket:e});if(r.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),pe(ke,{env:this.config.env}),pe(we,{loginType:Se.CUSTOM,persistence:"local"}),{credential:{refreshToken:r.refresh_token}};throw new M({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Se.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Le extends Ee{async signIn(e){if("string"!=typeof e)throw new M({param:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),pe(ye),pe(we,{env:this.config.env,loginType:Se.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Ue(this.config.env);throw new M({message:"自定义登录失败"})}}class De extends Ee{async signIn(e,t){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token:r,access_token_expire:i}=s;if(o)return this.setRefreshToken(o),r&&i?this.setAccessToken(r,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),pe(ye),pe(we,{env:this.config.env,loginType:Se.EMAIL,persistence:this.config.persistence}),new Ue(this.config.env);throw s.code?new M({code:s.code,message:`邮箱登录失败: ${s.message}`}):new M({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Ne extends Ee{async signIn(e,t){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:Se.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token_expire:r,access_token:i}=s;if(o)return this.setRefreshToken(o),i&&r?this.setAccessToken(i,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),pe(ye),pe(we,{env:this.config.env,loginType:Se.USERNAME,persistence:this.config.persistence}),new Ue(this.config.env);throw s.code?new M({code:s.code,message:`用户名密码登录失败: ${s.message}`}):new M({message:"用户名密码登录失败"})}}class qe{constructor(e){this.config=e,this._cache=le(e.env),this._request=Ce(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ge(we,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new xe(this.config)}customAuthProvider(){return new Le(this.config)}emailAuthProvider(){return new De(this.config)}usernameAuthProvider(){return new Ne(this.config)}async signInAnonymously(){return new xe(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new De(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Ne(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){this._anonymousAuthProvider||(this._anonymousAuthProvider=new xe(this.config)),ge(ke,this._onAnonymousConverted);return await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Se.ANONYMOUS)throw new M({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,s=this._cache.getStore(e);if(!s)return;const o=await this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),pe(ye),pe(we,{env:this.config.env,loginType:Se.NULL,persistence:this.config.persistence}),o}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){ge(ye,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){ge(_e,e.bind(this))}onAccessTokenRefreshed(e){ge(Te,e.bind(this))}onAnonymousConverted(e){ge(ke,e.bind(this))}onLoginTypeChanged(e){ge(we,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Ue(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new M({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Le(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Fe=function(e,t){t=t||Q();const n=Ce(this.config.env),{cloudPath:s,filePath:o,onUploadProgress:r,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{const{data:{url:a,authorization:c,token:u,fileId:l,cosFileId:h},requestId:d}=e,f={key:s,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};n.upload({url:a,data:f,file:o,name:s,fileType:i,onUploadProgress:r}).then((e=>{201===e.statusCode?t(null,{fileID:l,requestId:d}):t(new M({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Me=function(e,t){t=t||Q();const n=Ce(this.config.env),{cloudPath:s}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},$e=function({fileList:e},t){if(t=t||Q(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let t of e)if(!t||"string"!=typeof t)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return Ce(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},je=function({fileList:e},t){t=t||Q(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let s of e)"object"==typeof s?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?n.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const s={file_list:n};return Ce(this.config.env).send("storage.batchGetDownloadUrl",s).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},Ke=async function({fileID:e},t){const n=(await je.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const s=Ce(this.config.env);let o=n.download_url;if(o=encodeURI(o),!t)return s.download({url:o});t(await s.download({url:o}))},Be=function({name:e,data:t,query:n,parse:s,search:o},r){const i=r||Q();let a;try{a=t?JSON.stringify(t):""}catch(e){return Promise.reject(e)}if(!e)return Promise.reject(new M({code:"PARAM_ERROR",message:"函数名不能为空"}));const c={inQuery:n,parse:s,search:o,function_name:e,request_data:a};return Ce(this.config.env).send("functions.invokeFunction",c).then((e=>{if(e.code)i(null,e);else{let t=e.data.response_data;if(s)i(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),i(null,{result:t,requestId:e.requestId})}catch(e){i(new M({message:"response data must be json"}))}}return i.promise})).catch((e=>{i(e)})),i.promise},He={timeout:15e3,persistence:"session"},We={};class ze{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(se.adapter||(this.requestClient=new se.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...He,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new ze(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||se.adapter.primaryStorage||He.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;ce[t]=new ae(e),ue[t]=new ae({...e,persistence:"local"})}(this.config),n=this.config,Oe[n.env]=new be(n),this.authObj=new qe(this.config),this.authObj}on(e,t){return ge.apply(this,[e,t])}off(e,t){return me.apply(this,[e,t])}callFunction(e,t){return Be.apply(this,[e,t])}deleteFile(e,t){return $e.apply(this,[e,t])}getTempFileURL(e,t){return je.apply(this,[e,t])}downloadFile(e,t){return Ke.apply(this,[e,t])}uploadFile(e,t){return Fe.apply(this,[e,t])}getUploadMetadata(e,t){return Me.apply(this,[e,t])}registerExtension(e){We[e.name]=e}async invokeExtension(e,t){const n=We[e];if(!n)throw new M({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=ne(e)||{};t&&(se.adapter=t),n&&(se.runtime=n)}}var Ve=new ze;function Je(e,t,n){void 0===n&&(n={});var s=/\?/.test(t),o="";for(var r in n)""===o?!s&&(t+="?"):o+="&",o+=r+"="+encodeURIComponent(n[r]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}class Ye{post(e){const{url:t,data:n,headers:s}=e;return new Promise(((e,o)=>{H.request({url:Je("https:",t),data:n,method:"POST",header:s,success(t){e(t)},fail(e){o(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:s,file:o,data:r,headers:i,fileType:a}=e,c=H.uploadFile({url:Je("https:",s),name:"file",formData:Object.assign({},r),filePath:o,fileType:a,header:i,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&r.success_action_status&&(n.statusCode=parseInt(r.success_action_status,10)),t(n)},fail(e){d&&"mp-alipay"===g&&console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Xe={setItem(e,t){H.setStorageSync(e,t)},getItem:e=>H.getStorageSync(e),removeItem(e){H.removeStorageSync(e)},clear(){H.clearStorageSync()}};var Ge={genAdapter:function(){return{root:{},reqClass:Ye,localStorage:Xe,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ve.useAdapters(Ge);const Qe=Ve,Ze=Qe.init;Qe.init=function(e){e.env=e.spaceId;const t=Ze.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{t[e]=F(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var et=Qe;function tt(e){return e&&tt(e.__v_raw)||e}function nt(){return{token:H.getStorageSync("uni_id_token")||H.getStorageSync("uniIdToken"),tokenExpired:H.getStorageSync("uni_id_token_expired")}}function st({token:e,tokenExpired:t}={}){e&&H.setStorageSync("uni_id_token",e),t&&H.setStorageSync("uni_id_token_expired",t)}function ot(){if(!d||"web"!==g)return;uni.getStorageSync("__LAST_DCLOUD_APPID")!==_&&(uni.setStorageSync("__LAST_DCLOUD_APPID",_),console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),H.removeStorageSync("uni_id_token"),H.removeStorageSync("uniIdToken"),H.removeStorageSync("uni_id_token_expired"))}var rt=class extends V{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=B.sign(n,this.config.clientSecret);const o=K();s["x-client-info"]=encodeURIComponent(JSON.stringify(o));const{token:r}=nt();return s["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(s))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:o,onUploadProgress:r}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:o,success(e){e&&e.statusCode<400?i(e):a(new M({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new M({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:s}){if(!t)throw new M({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let o;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:r,formData:i,name:a}=t.result;o=t.result.fileUrl;const c={url:r,formData:i,name:a,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},c,{onUploadProgress:s}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:o}):s(new M({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t))}getTempFileURL({fileList:e}={}){const t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t))}};var it={init(e){const t=new rt(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function at({data:e}){let t;t=K();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=nt();e&&(n.uniIdToken=e)}return n}function ct({name:e,data:t}){const{localAddress:n,localPort:s}=this,o={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],r=this.config.spaceId,i=`http://${n}:${s}/system/check-function`,a=`http://${n}:${s}/cloudfunctions/${e}`;return new Promise(((t,n)=>{H.request({method:"POST",url:i,data:{name:e,platform:g,provider:o,spaceId:r},timeout:3e3,success(e){t(e)},fail(){t({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((({data:e}={})=>{const{code:t,message:n}=e||{};return{code:0===t?0:t||"SYS_ERR",message:n||"SYS_ERR"}})).then((({code:n,message:s})=>{if(0!==n){switch(n){case"MODULE_ENCRYPTED":console.error(`此云函数(${e})依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数`);break;case"FUNCTION_ENCRYPTED":console.error(`此云函数(${e})已加密不可本地调试,自动切换为云端已部署的云函数`);break;case"ACTION_ENCRYPTED":console.error(s||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":{const e="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(e),new Error(e)}case"SWITCH_TO_CLOUD":break;default:{const e=`检测本地调试服务出现错误:${s},请检查网络环境或重启客户端再试`;throw console.error(e),new Error(e)}}return this._originCallFunction({name:e,data:t})}return new Promise(((e,n)=>{const s=at.call(this,{data:t});H.request({method:"POST",url:a,data:{provider:o,platform:g,param:s},success:({statusCode:t,data:s}={})=>!t||t>=400?n(new M({code:s.code||"SYS_ERR",message:s.message||"request:fail"})):e({result:s}),fail(e){n(new M({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}const ut=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var lt=/[\\^$.*+?()[\]{}|]/g,ht=RegExp(lt.source);function dt(e,t,n){return e.replace(new RegExp((s=t)&&ht.test(s)?s.replace(lt,"\\$&"):s,"g"),n);var s}function ft({functionName:e,result:t,logPvd:n}){if(this.config.debugLog&&t&&t.requestId){const s=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:t.requestId});console.log(`[${n}-request]${s}[/${n}-request]`)}}function gt(e){const t=e.callFunction,n=function(n){const s=n.name;n.data=at.call(e,{data:n.data});const o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider];return t.call(this,n).then((e=>(e.errCode=0,ft.call(this,{functionName:s,result:e,logPvd:o}),Promise.resolve(e))),(e=>(ft.call(this,{functionName:s,result:e,logPvd:o}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let s=0;s<n.length;s++){const{rule:o,content:r,mode:i}=n[s],a=e.match(o);if(!a)continue;let c=r;for(let e=1;e<a.length;e++)c=dt(c,`{$${e}}`,a[e]);for(const e in t)c=dt(c,`{${e}}`,t[e]);return"replace"===i?c:e+c}return e}({message:`[${n.name}]: ${e.message}`,formatter:ut,extraInfo:{functionName:s}})),Promise.reject(e))))};e.callFunction=function(t){let s;return d&&e.debugInfo&&!e.debugInfo.forceRemote&&m?(e._originCallFunction||(e._originCallFunction=n),s=ct.call(this,t)):s=n.call(this,t),Object.defineProperty(s,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),s}}const pt=Symbol("CLIENT_DB_INTERNAL");function mt(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=pt,e.__v_raw=void 0,new Proxy(e,{get(e,n,s){if("_uniClient"===n)return null;if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,s)}})}function yt(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const s=e[t].indexOf(n);-1!==s&&e[t].splice(s,1)}}}const _t=["db.Geo","db.command","command.aggregate"];function wt(e,t){return _t.indexOf(`${e}.${t}`)>-1}function kt(e){switch(u(e=tt(e))){case"array":return e.map((e=>kt(e)));case"object":return e._internalType===pt||Object.keys(e).forEach((t=>{e[t]=kt(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Tt(e){return e&&e.content&&e.content.$method}class St{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:kt(e.$param)})))}}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Tt(e),n=Tt(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Tt(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Tt(e),n=Tt(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}get count(){if(!this.isAggregate)return function(){return this._send("count",Array.from(arguments))};const e=this;return function(){return vt({$method:"count",$param:kt(Array.from(arguments))},e,this._database)}}get remove(){if(!this.isCommand)return function(){return this._send("remove",Array.from(arguments))};const e=this;return function(){return vt({$method:"remove",$param:kt(Array.from(arguments))},e,this._database)}}get(){return this._send("get",Array.from(arguments))}add(){return this._send("add",Array.from(arguments))}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){if(!this.isCommand)return function(){throw new Error("JQL禁止使用set方法")};const e=this;return function(){return vt({$method:"set",$param:kt(Array.from(arguments))},e,this._database)}}_send(e,t){const n=this.getAction(),s=this.getCommand();if(s.$db.push({$method:e,$param:kt(t)}),d){const e=s.$db.find((e=>"collection"===e.$method)),t=e&&e.$param;t&&1===t.length&&"string"==typeof e.$param[0]&&e.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:s})}}function vt(e,t,n){return mt(new St(e,t,n),{get(e,t){let s="db";return e&&e.content&&(s=e.content.$method),wt(s,t)?vt({$method:t},e,n):function(){return vt({$method:t,$param:kt(Array.from(arguments))},e,n)}}})}function At({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}}}class Pt extends class{constructor({uniClient:e={}}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e.isDefault&&(this._dbCallBacks=k("_globalUniCloudDatabaseCallback")),this.auth=yt(this._authCallBacks),Object.assign(this,yt(this._dbCallBacks)),this.env=mt({},{get:(e,t)=>({$env:t})}),this.Geo=mt({},{get:(e,t)=>At({path:["Geo"],method:t})}),this.serverDate=At({path:[],method:"serverDate"}),this.RegExp=At({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_callCloudFunction({action:e,command:t,multiCommand:n,queryList:s}){function o(e,t){if(n&&s)for(let n=0;n<s.length;n++){const o=s[n];o.udb&&"function"==typeof o.udb.setResult&&(t?o.udb.setResult(t):o.udb.setResult(e.result.dataList[n]))}}const r=this;function i(e){return r._callback("error",[e]),P(I("database","fail"),e).then((()=>P(I("database","complete"),e))).then((()=>(o(null,e),q(O,{type:R,content:e}),Promise.reject(e))))}const a=P(I("database","invoke")),u=this._uniClient;return a.then((()=>u.callFunction({name:"DCloud-clientDB",type:c,data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:s,tokenExpired:r,systemInfo:a=[]}=e.result;if(a)for(let e=0;e<a.length;e++){const{level:t,message:n,detail:s}=a[e],o=console["app"===g&&"warn"===t?"error":t]||console.log;let r="[System Info]"+n;s&&(r=`${r}\n详细信息:${s}`),o(r)}if(t){return i(new M({code:t,message:n,requestId:e.requestId}))}e.result.errCode=e.result.code,e.result.errMsg=e.result.message,s&&r&&(st({token:s,tokenExpired:r}),this._callbackAuth("refreshToken",[{token:s,tokenExpired:r}]),this._callback("refreshToken",[{token:s,tokenExpired:r}]),q(E,{token:s,tokenExpired:r}));const c=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}];for(let t=0;t<c.length;t++){const{prop:n,tips:s}=c[t];if(n in e.result){const t=e.result[n];Object.defineProperty(e.result,n,{get:()=>(console.warn(s),t)})}}return function(e){return P(I("database","success"),e).then((()=>P(I("database","complete"),e))).then((()=>(o(e,null),q(O,{type:R,content:e}),Promise.resolve(e))))}(e)}),(e=>{/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");return i(new M({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}function It(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;const n=function(e,t={}){return mt(new e(t),{get:(e,t)=>wt("db",t)?vt({$method:t},null,e):function(){return vt({$method:t,$param:kt(Array.from(arguments))},null,e)}})}(Pt,{uniClient:e});return this._database=n,n}}const bt="token无效,跳转登录页面",Ot="token过期,跳转登录页面",Ct={TOKEN_INVALID_TOKEN_EXPIRED:Ot,TOKEN_INVALID_INVALID_CLIENTID:bt,TOKEN_INVALID:bt,TOKEN_INVALID_WRONG_TOKEN:bt,TOKEN_INVALID_ANONYMOUS_USER:bt},Et={"uni-id-token-expired":Ot,"uni-id-check-token-failed":bt,"uni-id-token-not-exist":bt,"uni-id-check-device-feature-failed":bt};function Rt(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Ut(e=[],t=""){const n=[],s=[];return e.forEach((e=>{!0===e.needLogin?n.push(Rt(t,e.path)):!1===e.needLogin&&s.push(Rt(t,e.path))})),{needLoginPage:n,notNeedLoginPage:s}}function xt(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,s=e.split("?")[0].replace(/^\//,"");return n.some((e=>e.pagePath===s))}const Lt=!!t.uniIdRouter;const{loginPage:Dt,routerNeedLogin:Nt,resToLogin:qt,needLoginPage:Ft,notNeedLoginPage:Mt,loginPageInTabBar:$t}=function({pages:e=[],subPackages:n=[],uniIdRouter:s={},tabBar:o={}}=t){const{loginPage:r,needLogin:i=[],resToLogin:a=!0}=s,{needLoginPage:c,notNeedLoginPage:u}=Ut(e),{needLoginPage:l,notNeedLoginPage:h}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:s,pages:o=[]}=e,{needLoginPage:r,notNeedLoginPage:i}=Ut(o,s);t.push(...r),n.push(...i)})),{needLoginPage:t,notNeedLoginPage:n}}(n);return{loginPage:r,routerNeedLogin:i,resToLogin:a,needLoginPage:[...c,...l],notNeedLoginPage:[...u,...h],loginPageInTabBar:xt(r,o)}}();function jt(e){const t=function(e){const t=getCurrentPages(),n=t[t.length-1].route,s=e.charAt(0),o=e.split("?")[0];if("/"===s)return o;const r=o.replace(/^\//,"").split("/"),i=n.split("/");i.pop();for(let e=0;e<r.length;e++){const t=r[e];".."===t?i.pop():"."!==t&&i.push(t)}return""===i[0]&&i.shift(),i.join("/")}(e).replace(/^\//,"");return!(Mt.indexOf(t)>-1)&&(Ft.indexOf(t)>-1||Nt.some((t=>function(e,t){return new RegExp(t).test(e)}(e,t))))}function Kt(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+`&uniIdRedirectUrl=${encodeURIComponent(t)}`:e+`?uniIdRedirectUrl=${encodeURIComponent(t)}`:e}function Bt(){const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];uni.addInterceptor(n,{invoke(e){const{token:t,tokenExpired:s}=nt();let o;if(t){if(s<Date.now()){const e="uni-id-token-expired";o={errCode:e,errMsg:Et[e]}}}else{const e="uni-id-check-token-failed";o={errCode:e,errMsg:Et[e]}}if(jt(e.url)&&o){o.uniIdRedirectUrl=e.url;if(L(C).length>0)return setTimeout((()=>{q(C,o)}),0),e.url="",!1;if(!Dt)return e;const t=Kt(Dt,o.uniIdRedirectUrl);if($t){if("navigateTo"===n||"redirectTo"===n)return setTimeout((()=>{uni.switchTab({url:t})})),!1}else if("switchTab"===n)return setTimeout((()=>{uni.navigateTo({url:t})})),!1;e.url=t}return e}})}}function Ht(){this.onResponse((e=>{const{type:t,content:n}=e;let s=!1;switch(t){case"cloudobject":s=function(e){const{errCode:t}=e;return t in Et}(n);break;case"clientdb":s=function(e){const{errCode:t}=e;return t in Ct}(n)}s&&function(e={}){const t=L(C),n=getCurrentPages(),s=n[n.length-1],o=s&&s.$page&&s.$page.fullPath;if(t.length>0)return q(C,Object.assign({uniIdRedirectUrl:o},e));Dt&&uni.navigateTo({url:Kt(Dt,o)})}(n)}))}function Wt(e){e.onNeedLogin=function(e){D(C,e)},e.offNeedLogin=function(e){N(C,e)},Lt&&(k("uni-cloud-status").needLoginInit||(k("uni-cloud-status").needLoginInit=!0,function t(){const n=getCurrentPages();n&&n[0]?Bt.call(e):setTimeout((()=>{t()}),30)}(),qt&&Ht.call(e)))}function zt(e){!function(e){e.onResponse=function(e){D(O,e)},e.offResponse=function(e){N(O,e)}}(e),Wt(e),function(e){e.onRefreshToken=function(e){D(E,e)},e.offRefreshToken=function(e){N(E,e)}}(e)}let Vt;const Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Yt=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Xt(){const e=nt().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((s=t[1],decodeURIComponent(Vt(s).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(e){throw new Error("获取当前用户信息出错,详细错误信息为:"+e.message)}var s;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Vt="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Yt.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,s,o="",r=0;r<e.length;)t=Jt.indexOf(e.charAt(r++))<<18|Jt.indexOf(e.charAt(r++))<<12|(n=Jt.indexOf(e.charAt(r++)))<<6|(s=Jt.indexOf(e.charAt(r++))),o+=64===n?String.fromCharCode(t>>16&255):64===s?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var Gt=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",s="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function r(e,t,{onChooseFile:s,onUploadProgress:o}){return t.then((e=>{if(s){const t=s(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,s=5,o){(t=Object.assign({},t)).errMsg=n;const r=t.tempFiles,i=r.length;let a=0;return new Promise((n=>{for(;a<s;)c();function c(){const s=a++;if(s>=i)return void(!r.find((e=>!e.url&&!e.errMsg))&&n(t));const u=r[s];e.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,onUploadProgress(e){e.index=s,e.tempFile=u,e.tempFilePath=u.path,o&&o(e)}}).then((e=>{u.url=e.fileID,s<i&&c()})).catch((e=>{u.errMsg=e.errMsg||e.message,s<i&&c()}))}}))}(e,t,5,o)))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?r(e,function(e){const{count:t,sizeType:n,sourceType:r=["album","camera"],extension:i}=e;return new Promise(((e,a)=>{uni.chooseImage({count:t,sizeType:n,sourceType:r,extension:i,success(t){e(o(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",s)})}})}))}(t),t):"video"===t.type?r(e,function(e){const{camera:t,compressed:n,maxDuration:r,sourceType:i=["album","camera"],extension:a}=e;return new Promise(((e,c)=>{uni.chooseVideo({camera:t,compressed:n,maxDuration:r,sourceType:i,extension:a,success(t){const{tempFilePath:n,duration:s,size:r,height:i,width:a}=t;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:r,type:t.tempFile&&t.tempFile.type||"",width:a,height:i,duration:s,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",s)})}})}))}(t),t):r(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,r)=>{let i=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(i=wx.chooseMessageFile),"function"!=typeof i)return r({errMsg:s+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});i({type:"all",count:t,extension:n,success(t){e(o(t))},fail(e){r({errMsg:e.errMsg.replace("chooseFile:fail",s)})}})}))}(t),t)}}})),Qt=n(Gt);const Zt="manual";function en(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if(this.loadtime===Zt)return;let n=!1;const s=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(s.push(e[o]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,s)}))},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((n=>{this.mixinDatacomLoading=!1;const{data:s,count:o}=n.result;this.getcount&&(this.mixinDatacomPage.count=o),this.mixinDatacomHasMore=s.length<this.pageSize;const r=e?s.length?s[0]:void 0:s;this.mixinDatacomResData=r,t&&t(r)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,n&&n(e)})))},mixinDatacomGet(t={}){let n=e.database(this.spaceInfo);const s=t.action||this.action;s&&(n=n.action(s));const o=t.collection||this.collection;n=Array.isArray(o)?n.collection(...o):n.collection(o);const r=t.where||this.where;r&&Object.keys(r).length&&(n=n.where(r));const i=t.field||this.field;i&&(n=n.field(i));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const u=t.groupField||this.groupField;u&&(n=n.groupField(u));!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const l=t.orderby||this.orderby;l&&(n=n.orderBy(l));const h=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,f=void 0!==t.getcount?t.getcount:this.getcount,g=void 0!==t.gettree?t.gettree:this.gettree,p=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:f},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return g&&(m.getTree=y),p&&(m.getTreePath=y),n=n.skip(d*(h-1)).limit(d).get(m),n}}}}function tn(e){return function(t,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:s,loadingOptions:o,errorOptions:r}=n,i=!s;return new Proxy({},{get:(n,s)=>async function n(...c){let u;i&&uni.showLoading({title:o.title,mask:o.mask});try{u=await e.callFunction({name:t,type:a,data:{method:s,params:c}})}catch(e){u={result:e}}const{errCode:l,errMsg:h,newToken:d}=u.result||{};if(i&&uni.hideLoading(),d&&d.token&&d.tokenExpired&&(st(d),q(E,{...d})),l){if(i)if("toast"===r.type)uni.showToast({title:h,icon:"none"});else{if("modal"!==r.type)throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:e}=await async function({title:e,content:t,showCancel:n,cancelText:s,confirmText:o}={}){return new Promise(((r,i)=>{uni.showModal({title:e,content:t,showCancel:n,cancelText:s,confirmText:o,success(e){r(e)},fail(){r({confirm:!1,cancel:!0})}})}))}({title:"提示",content:h,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&e)return n(...c)}}const e=new M({code:l,message:h,requestId:u.requestId});throw e.detail=u.result,q(O,{type:x,content:e}),e}return q(O,{type:x,content:u.result}),u.result}})}}async function nn(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(s={url:n,timeout:500},new Promise(((e,t)=>{H.request({...s,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(e){return!1}var s}function sn(e){if(e.initUniCloudStatus&&"rejected"!==e.initUniCloudStatus)return;let t=Promise.resolve();var n;n=1,t=new Promise(((e,t)=>{setTimeout((()=>{e()}),n)})),e.isReady=!1,e.isDefault=!1;const s=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=t.then((()=>s.getLoginState())).then((e=>e?Promise.resolve():s.signInAnonymously())).then((()=>{if(!d)return Promise.resolve();if("app"===g&&"ios"===uni.getSystemInfoSync().osName){const{osName:e,osVersion:t}=uni.getSystemInfoSync();"ios"===e&&function(e){if(!e||"string"!=typeof e)return 0;const t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(t)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)")}if(d&&e.debugInfo){const{address:t,servePort:n}=e.debugInfo;return async function(e,t){let n;for(let s=0;s<e.length;s++){const o=e[s];if(await nn(o,t)){n=o;break}}return{address:n,port:t}}(t,n)}})).then((({address:t,port:n}={})=>{if(!d)return Promise.resolve();const s=console["app"===g?"error":"warn"];if(t)e.localAddress=t,e.localPort=n;else if(e.debugInfo){let t="";"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,t="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):t="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","web"===g&&(t+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===g.indexOf("mp-")&&(t+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),s(t)}})).then((()=>{ot(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((t=>{console.error(t),e.initUniCloudStatus="rejected"}))}let on=new class{init(e){let t={};const n=d&&("web"===g&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===g);switch(e.provider){case"tcb":case"tencent":t=et.init(Object.assign(e,{debugLog:n}));break;case"aliyun":t=J.init(Object.assign(e,{debugLog:n}));break;case"private":t=it.init(Object.assign(e,{debugLog:n}));break;default:throw new Error("未提供正确的provider参数")}const s=p;d&&s&&!s.code&&(t.debugInfo=s),sn(t),t.reInit=function(){sn(this)},gt(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),It(t),function(e){e.getCurrentUserInfo=Xt,e.chooseAndUploadFile=Qt.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return en(e)}}),e.importObject=tn(e)}(t);return["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return t.reInit(),n.apply(t,Array.from(arguments))},t[e]=F(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{{const e=m;let t={};if(1===e.length)t=e[0],on=on.init(t),on.isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":y?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",t.forEach((e=>{on[e]=function(){return console.error(n),Promise.reject(new M({code:"SYS_ERR",message:n}))}}))}Object.assign(on,{get mixinDatacom(){return en(on)}}),zt(on),on.addInterceptor=v,on.removeInterceptor=A,d&&"web"===g&&(window.uniCloud=on)}})();var rn=on;export{rn as default};
87e6dd2bf035d1454ecc367889ac97a94cb961a4
2025-02-06 13:27:19
im-robot
chore: update modules.json
false
update modules.json
chore
diff --git a/packages/uni-uts-v1/lib/ext-api/modules.json b/packages/uni-uts-v1/lib/ext-api/modules.json index 839f0e379a2..97eab500ea4 100644 --- a/packages/uni-uts-v1/lib/ext-api/modules.json +++ b/packages/uni-uts-v1/lib/ext-api/modules.json @@ -104,7 +104,7 @@ "chooseMedia": { "name": "chooseMedia", "app": { - "js": false, + "js": true, "kotlin": true, "swift": true, "arkts": true
81ed4229cc8706cb633aa9bdd35d589a0e398bdb
2024-04-02 14:58:11
im-robot
chore: update uts compiler
false
update uts compiler
chore
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 80c0a4c9d86..47eca15d553 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index 0a047258ac7..f6a6f4c1f9f 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node index 3cae158c04d..0519ff85162 100755 Binary files a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node and b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node differ diff --git a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node index 1a164e0fe37..54e1dc19e85 100755 Binary files a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node and b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index b3663723039..2621fe96529 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 3bbf34ae2f1..9a6fda8259f 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
ac6f658f5785868d7e613840b59ec76d26d7cba3
2024-04-01 11:48:35
fxy060608
wip(x-android): 优化 defineProps 类型问题
false
优化 defineProps 类型问题
wip
diff --git a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/compileScript.ts b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/compileScript.ts index e76995577d5..ff15a1b0ace 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/compileScript.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/compileScript.ts @@ -958,8 +958,12 @@ __ins.emit(event, ...do_not_transform_spread) } const propsDecl = genRuntimeProps(ctx) - if (propsDecl) runtimeOptions += `\n props: ${propsDecl},` - + if (propsDecl) { + if (ctx.propsInterfaceDecl) { + runtimeOptions += `\n __props: ${ctx.propsInterfaceDecl.id.name},` + } + runtimeOptions += `\n props: ${propsDecl},` + } const emitsDecl = genRuntimeEmits(ctx) if (emitsDecl) runtimeOptions += `\n emits: ${emitsDecl},` diff --git a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/context.ts b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/context.ts index 7b141900bb3..664b2e55f24 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/context.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/context.ts @@ -1,4 +1,10 @@ -import { CallExpression, Node, ObjectPattern, Program } from '@babel/types' +import { + CallExpression, + Node, + ObjectPattern, + Program, + TSInterfaceDeclaration, +} from '@babel/types' import { SFCDescriptor } from '@vue/compiler-sfc' import { generateCodeFrame } from '@vue/shared' import { parse as babelParse, ParserPlugin } from '@babel/parser' @@ -42,6 +48,7 @@ export class ScriptCompileContext { propsDestructuredBindings: PropsDestructureBindings = Object.create(null) propsDestructureRestId: string | undefined propsRuntimeDefaults: Node | undefined + propsInterfaceDecl: TSInterfaceDeclaration | undefined // defineEmits emitsRuntimeDecl: Node | undefined diff --git a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/resolveType.ts b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/resolveType.ts index 06c3083d4e3..8356432aa3c 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/resolveType.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/resolveType.ts @@ -1,3 +1,4 @@ +import fsExtra from 'fs-extra' import { Expression, Identifier, @@ -202,6 +203,9 @@ function innerResolveTypeElements( typeParams[p.name] = param }) } + if (resolved.type === 'TSInterfaceDeclaration') { + ;(ctx as ScriptCompileContext).propsInterfaceDecl = resolved + } return resolveTypeElements( ctx, resolved, @@ -781,20 +785,25 @@ function resolveFS(ctx: TypeResolveContext): FS | undefined { return ctx.fs } - const fs = ctx.options.fs + const fs = ctx.options.fs || { + fileExists: fsExtra.existsSync, + readFile(file: string) { + return fsExtra.readFileSync(file, 'utf-8') + }, + } if (!fs) { return } return (ctx.fs = { fileExists(file) { - if (file.endsWith('.vue.ts')) { - file = file.replace(/\.ts$/, '') + if (file.startsWith('@/')) { + file = file.replace('@/', normalizePath(process.env.UNI_INPUT_DIR)) } return fs.fileExists(file) }, readFile(file) { - if (file.endsWith('.vue.ts')) { - file = file.replace(/\.ts$/, '') + if (file.startsWith('@/')) { + file = file.replace('@/', normalizePath(process.env.UNI_INPUT_DIR)) } return fs.readFile(file) }, @@ -844,6 +853,12 @@ function importSourceToScope( // relative import - fast path const filename = joinPaths(dirname(scope.filename), source) resolved = resolveExt(filename, fs) + } else if (source.startsWith('@/')) { + const filename = joinPaths( + process.env.UNI_INPUT_DIR, + source.replace('@/', '') + ) + resolved = resolveExt(filename, fs) } else { // module or aliased import - use full TS resolution, only supported in Node return ctx.error( @@ -1239,6 +1254,8 @@ export function inferRuntimeType( ): string[] { try { switch (node.type) { + case 'TSAnyKeyword': + return [] case 'TSStringKeyword': return ['String'] case 'TSNumberKeyword': @@ -1262,7 +1279,7 @@ export function inferRuntimeType( ) { types.add( 'Function as PropType<' + - ctx.source.slice( + scope.source.slice( m.start! + scope.offset, m.end! + scope.offset ) + @@ -1271,7 +1288,7 @@ export function inferRuntimeType( } else { types.add( 'Object as PropType<' + - ctx.source.slice( + scope.source.slice( m.start! + scope.offset, m.end! + scope.offset ) + @@ -1294,7 +1311,7 @@ export function inferRuntimeType( case 'TSFunctionType': return [ 'Function as PropType<' + - ctx.source.slice( + scope.source.slice( node.start! + scope.offset, node.end! + scope.offset ) + @@ -1305,7 +1322,7 @@ export function inferRuntimeType( // TODO (nice to have) generate runtime element type/length checks return [ 'Array as PropType<' + - ctx.source.slice( + scope.source.slice( node.start! + scope.offset, node.end! + scope.offset ) + @@ -1332,7 +1349,7 @@ export function inferRuntimeType( } if (node.typeName.type === 'Identifier') { return [ - ctx.source.slice( + scope.source.slice( node.start! + scope.offset, node.end! + scope.offset ), diff --git a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/utils.ts b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/utils.ts index 7254a90da86..2f989f429e0 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/utils.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/utils.ts @@ -56,7 +56,7 @@ export function isCallOf( } export function toRuntimeTypeString(types: string[]) { - return types.length > 1 ? `[${types.join(', ')}]` : types[0] + return types.length > 1 ? `[${types.join(', ')}]` : types[0] || `Object` } export function getImportedName(
1a9f892fc368e1d999b234be4c867918dba90f89
2024-04-28 18:17:17
fxy060608
wip: uni_modules 编译模式
false
uni_modules 编译模式
wip
diff --git a/package.json b/package.json index 3a159f7c7f2..b3d63f2e20c 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "eslint": "^8.57.0", "eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1", "execa": "^5.1.1", + "fast-glob": "^3.2.11", "fs-extra": "^10.0.0", "jest": "^29.3.1", "lint-staged": "^10.5.3", diff --git a/packages/playground/__tests__/__snapshots__/uni_modules.spec.ts.snap b/packages/playground/__tests__/__snapshots__/uni_modules.spec.ts.snap new file mode 100644 index 00000000000..c88bcac5fef --- /dev/null +++ b/packages/playground/__tests__/__snapshots__/uni_modules.spec.ts.snap @@ -0,0 +1,537 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`uni_modules playground uni-app build:app 1`] = ` +"import Logo from "../../test-com1/components/test-com1-1/logo.png"; +import { openBlock, createElementBlock, Fragment, createElementVNode, toDisplayString } from "vue"; +import _export_sfc from "plugin-vue:export-helper"; +const _sfc_main$1 = { + data() { + return { + msg: "test-com1-1", + logo: Logo + }; + } +}; +function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock(Fragment, null, [ + createElementVNode("text", { class: "text" }, toDisplayString($data.msg) + toDisplayString($data.logo), 1), + createElementVNode("image", { src: Logo }) + ], 64); +} +const testCom11 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]); +const _sfc_main = { + data() { + return { + msg: "test-com1-2", + logo: Logo + }; + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock(Fragment, null, [ + createElementVNode("text", { class: "text2" }, toDisplayString($data.msg) + toDisplayString($data.logo), 1), + createElementVNode("image", { src: Logo }) + ], 64); +} +const testCom12 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); +export { + testCom11 as TestCom11, + testCom12 as TestCom12 +}; +" +`; + +exports[`uni_modules playground uni-app build:app 2`] = ` +"import Logo from "../../test-com2/components/test-com2-1/logo.png"; +import { openBlock, createElementBlock, toDisplayString } from "vue"; +import _export_sfc from "plugin-vue:export-helper"; +const _sfc_main$1 = { + data() { + return { + msg: "test-com2-1", + logo: Logo + }; + } +}; +function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock("text", { class: "text" }, toDisplayString($data.msg) + toDisplayString($data.logo), 1); +} +const testCom21 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]); +const _sfc_main = { + data() { + return { + msg: "test-com2-2", + logo: Logo + }; + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock("text", { class: "text2" }, toDisplayString($data.msg) + toDisplayString($data.logo), 1); +} +const testCom22 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); +export { + testCom21 as TestCom21, + testCom22 as TestCom22 +}; +" +`; + +exports[`uni_modules playground uni-app build:app 3`] = ` +" +.text { + color: red; +} +.image { + background: url('@/uni_modules/test-com1/components/test-com1-1/logo.png'); +} +" +`; + +exports[`uni_modules playground uni-app build:app 4`] = ` +" +.text2 { + color: red; +} +" +`; + +exports[`uni_modules playground uni-app build:app 5`] = ` +" +.text { + color: red; +} +.image { + background: url('@/uni_modules/test-com2/components/test-com2-1/logo.png'); +} +" +`; + +exports[`uni_modules playground uni-app build:app 6`] = ` +" +.text2 { + color: red; +} +" +`; + +exports[`uni_modules playground uni-app build:h5 1`] = ` +"import "@dcloudio/uni-components/style/text.css"; +import { Text, Image } from "@dcloudio/uni-h5"; +import "@dcloudio/uni-components/style/image.css"; +import "@dcloudio/uni-components/style/resize-sensor.css"; +import Logo from "../../test-com1/components/test-com1-1/logo.png"; +import { openBlock, createElementBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString } from "vue"; +import _export_sfc from "plugin-vue:export-helper"; +const _sfc_main$1 = { + data() { + return { + msg: "test-com1-1", + logo: Logo + }; + } +}; +function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + const _component_v_uni_text = Text; + const _component_v_uni_image = Image; + return openBlock(), createElementBlock(Fragment, null, [ + createVNode(_component_v_uni_text, { class: "text" }, { + default: withCtx(() => [ + createTextVNode(toDisplayString($data.msg) + toDisplayString($data.logo), 1) + ]), + _: 1 + }), + createVNode(_component_v_uni_image, { src: Logo }) + ], 64); +} +const testCom11 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a4ecbcc3"]]); +const _sfc_main = { + data() { + return { + msg: "test-com1-2", + logo: Logo + }; + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + const _component_v_uni_text = Text; + const _component_v_uni_image = Image; + return openBlock(), createElementBlock(Fragment, null, [ + createVNode(_component_v_uni_text, { class: "text2" }, { + default: withCtx(() => [ + createTextVNode(toDisplayString($data.msg) + toDisplayString($data.logo), 1) + ]), + _: 1 + }), + createVNode(_component_v_uni_image, { src: Logo }) + ], 64); +} +const testCom12 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4d21cdc3"]]); +export { + testCom11 as TestCom11, + testCom12 as TestCom12 +}; +" +`; + +exports[`uni_modules playground uni-app build:h5 2`] = ` +"import "@dcloudio/uni-components/style/text.css"; +import { Text } from "@dcloudio/uni-h5"; +import Logo from "../../test-com2/components/test-com2-1/logo.png"; +import { openBlock, createBlock, withCtx, createTextVNode, toDisplayString } from "vue"; +import _export_sfc from "plugin-vue:export-helper"; +const _sfc_main$1 = { + data() { + return { + msg: "test-com2-1", + logo: Logo + }; + } +}; +function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + const _component_v_uni_text = Text; + return openBlock(), createBlock(_component_v_uni_text, { class: "text" }, { + default: withCtx(() => [ + createTextVNode(toDisplayString($data.msg) + toDisplayString($data.logo), 1) + ]), + _: 1 + }); +} +const testCom21 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-f33122a3"]]); +const _sfc_main = { + data() { + return { + msg: "test-com2-2", + logo: Logo + }; + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + const _component_v_uni_text = Text; + return openBlock(), createBlock(_component_v_uni_text, { class: "text2" }, { + default: withCtx(() => [ + createTextVNode(toDisplayString($data.msg) + toDisplayString($data.logo), 1) + ]), + _: 1 + }); +} +const testCom22 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ac423ad8"]]); +export { + testCom21 as TestCom21, + testCom22 as TestCom22 +}; +" +`; + +exports[`uni_modules playground uni-app build:h5 3`] = ` +" + + + +.text[data-v-a4ecbcc3] { + color: red; +} +.image[data-v-a4ecbcc3] { + background: url('@/uni_modules/test-com1/components/test-com1-1/logo.png'); +} +" +`; + +exports[`uni_modules playground uni-app build:h5 4`] = ` +" + + + +.text2[data-v-4d21cdc3] { + color: red; +} +" +`; + +exports[`uni_modules playground uni-app build:h5 5`] = ` +" + +.text[data-v-f33122a3] { + color: red; +} +.image[data-v-f33122a3] { + background: url('@/uni_modules/test-com2/components/test-com2-1/logo.png'); +} +" +`; + +exports[`uni_modules playground uni-app build:h5 6`] = ` +" + +.text2[data-v-ac423ad8] { + color: red; +} +" +`; + +exports[`uni_modules playground uni-app-x build:app-ios 1`] = ` +"import Logo from "../../test-com1/components/test-com1-1/logo.png"; +import { openBlock, createElementBlock, Fragment, createElementVNode, toDisplayString } from "vue"; +import _export_sfc from "plugin-vue:export-helper"; +const _sfc_main$1 = { + data() { + return { + msg: "test-com1-1", + logo: Logo + }; + } +}; +function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock(Fragment, null, [ + createElementVNode("text", { class: "text" }, toDisplayString($data.msg) + toDisplayString($data.logo), 1), + createElementVNode("image", { src: Logo }) + ], 64); +} +const testCom11 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]); +const _sfc_main = { + data() { + return { + msg: "test-com1-2", + logo: Logo + }; + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock(Fragment, null, [ + createElementVNode("text", { class: "text2" }, toDisplayString($data.msg) + toDisplayString($data.logo), 1), + createElementVNode("image", { src: Logo }) + ], 64); +} +const testCom12 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); +export { + testCom11 as TestCom11, + testCom12 as TestCom12 +}; +" +`; + +exports[`uni_modules playground uni-app-x build:app-ios 2`] = ` +"import Logo from "../../test-com2/components/test-com2-1/logo.png"; +import { openBlock, createElementBlock, toDisplayString } from "vue"; +import _export_sfc from "plugin-vue:export-helper"; +const _sfc_main$1 = { + data() { + return { + msg: "test-com2-1", + logo: Logo + }; + } +}; +function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock("text", { class: "text" }, toDisplayString($data.msg) + toDisplayString($data.logo), 1); +} +const testCom21 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]); +const _sfc_main = { + data() { + return { + msg: "test-com2-2", + logo: Logo + }; + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock("text", { class: "text2" }, toDisplayString($data.msg) + toDisplayString($data.logo), 1); +} +const testCom22 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); +export { + testCom21 as TestCom21, + testCom22 as TestCom22 +}; +" +`; + +exports[`uni_modules playground uni-app-x build:app-ios 3`] = ` +" +.text { + color: red; +} +.image { + background: url('@/uni_modules/test-com1/components/test-com1-1/logo.png'); +} +" +`; + +exports[`uni_modules playground uni-app-x build:app-ios 4`] = ` +" +.text2 { + color: red; +} +" +`; + +exports[`uni_modules playground uni-app-x build:app-ios 5`] = ` +" +.text { + color: red; +} +.image { + background: url('@/uni_modules/test-com2/components/test-com2-1/logo.png'); +} +" +`; + +exports[`uni_modules playground uni-app-x build:app-ios 6`] = ` +" +.text2 { + color: red; +} +" +`; + +exports[`uni_modules playground uni-app-x build:h5 1`] = ` +"import "@dcloudio/uni-components/style/text.css"; +import { Text, Image } from "@dcloudio/uni-h5"; +import "@dcloudio/uni-components/style/image.css"; +import "@dcloudio/uni-components/style/resize-sensor.css"; +import Logo from "../../test-com1/components/test-com1-1/logo.png"; +import { openBlock, createElementBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString } from "vue"; +import _export_sfc from "plugin-vue:export-helper"; +const _sfc_main$1 = { + data() { + return { + msg: "test-com1-1", + logo: Logo + }; + } +}; +function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + const _component_v_uni_text = Text; + const _component_v_uni_image = Image; + return openBlock(), createElementBlock(Fragment, null, [ + createVNode(_component_v_uni_text, { class: "text" }, { + default: withCtx(() => [ + createTextVNode(toDisplayString($data.msg) + toDisplayString($data.logo), 1) + ]), + _: 1 + }), + createVNode(_component_v_uni_image, { src: Logo }) + ], 64); +} +const testCom11 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a4ecbcc3"]]); +const _sfc_main = { + data() { + return { + msg: "test-com1-2", + logo: Logo + }; + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + const _component_v_uni_text = Text; + const _component_v_uni_image = Image; + return openBlock(), createElementBlock(Fragment, null, [ + createVNode(_component_v_uni_text, { class: "text2" }, { + default: withCtx(() => [ + createTextVNode(toDisplayString($data.msg) + toDisplayString($data.logo), 1) + ]), + _: 1 + }), + createVNode(_component_v_uni_image, { src: Logo }) + ], 64); +} +const testCom12 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4d21cdc3"]]); +export { + testCom11 as TestCom11, + testCom12 as TestCom12 +}; +" +`; + +exports[`uni_modules playground uni-app-x build:h5 2`] = ` +"import "@dcloudio/uni-components/style/text.css"; +import { Text } from "@dcloudio/uni-h5"; +import Logo from "../../test-com2/components/test-com2-1/logo.png"; +import { openBlock, createBlock, withCtx, createTextVNode, toDisplayString } from "vue"; +import _export_sfc from "plugin-vue:export-helper"; +const _sfc_main$1 = { + data() { + return { + msg: "test-com2-1", + logo: Logo + }; + } +}; +function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + const _component_v_uni_text = Text; + return openBlock(), createBlock(_component_v_uni_text, { class: "text" }, { + default: withCtx(() => [ + createTextVNode(toDisplayString($data.msg) + toDisplayString($data.logo), 1) + ]), + _: 1 + }); +} +const testCom21 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-f33122a3"]]); +const _sfc_main = { + data() { + return { + msg: "test-com2-2", + logo: Logo + }; + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + const _component_v_uni_text = Text; + return openBlock(), createBlock(_component_v_uni_text, { class: "text2" }, { + default: withCtx(() => [ + createTextVNode(toDisplayString($data.msg) + toDisplayString($data.logo), 1) + ]), + _: 1 + }); +} +const testCom22 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ac423ad8"]]); +export { + testCom21 as TestCom21, + testCom22 as TestCom22 +}; +" +`; + +exports[`uni_modules playground uni-app-x build:h5 3`] = ` +" + + + +.text[data-v-a4ecbcc3] { + color: red; +} +.image[data-v-a4ecbcc3] { + background: url('@/uni_modules/test-com1/components/test-com1-1/logo.png'); +} +" +`; + +exports[`uni_modules playground uni-app-x build:h5 4`] = ` +" + + + +.text2[data-v-4d21cdc3] { + color: red; +} +" +`; + +exports[`uni_modules playground uni-app-x build:h5 5`] = ` +" + +.text[data-v-f33122a3] { + color: red; +} +.image[data-v-f33122a3] { + background: url('@/uni_modules/test-com2/components/test-com2-1/logo.png'); +} +" +`; + +exports[`uni_modules playground uni-app-x build:h5 6`] = ` +" + +.text2[data-v-ac423ad8] { + color: red; +} +" +`; diff --git a/packages/playground/__tests__/uni_modules.spec.ts b/packages/playground/__tests__/uni_modules.spec.ts new file mode 100644 index 00000000000..cae8ca9f695 --- /dev/null +++ b/packages/playground/__tests__/uni_modules.spec.ts @@ -0,0 +1,60 @@ +import fs from 'fs' +import path from 'path' +import execa from 'execa' +import { sync } from 'fast-glob' + +const projectDir = path.resolve(__dirname, '../uni_modules') + +describe('uni_modules playground', () => { + jest.setTimeout(50 * 1000) + const modes = { + 'uni-app': [ + 'build:app', + 'build:h5', + // 'build:mp-alipay', + // 'build:mp-baidu', + // 'build:mp-kuaishou', + // 'build:mp-lark', + // 'build:mp-qq', + // 'build:mp-toutiao', + // 'build:mp-weixin', + ], + 'uni-app-x': [ + // "build:app-android", + 'build:app-ios', + 'build:h5', + // 'build:mp-alipay', + // 'build:mp-baidu', + // 'build:mp-kuaishou', + // 'build:mp-lark', + // 'build:mp-qq', + // 'build:mp-toutiao', + // 'build:mp-weixin', + ], + } + Object.keys(modes).forEach((mode) => { + const scripts = modes[mode] + scripts.forEach((script) => { + test(`${mode} ${script}`, async () => { + const outDir = path.resolve( + projectDir, + 'dist', + 'build', + mode, + script.replace('build:', '') + ) + await execa('npm', ['run', script], { + cwd: projectDir, + env: { + ...process.env, + UNI_OUTPUT_DIR: outDir, + UNI_COMPILE_TARGET: 'uni_modules', + }, + }) + sync('**/*', { cwd: outDir, absolute: true }).forEach((file) => { + expect(fs.readFileSync(file, 'utf-8')).toMatchSnapshot() + }) + }) + }) + }) +}) diff --git a/packages/playground/uni_modules/index.html b/packages/playground/uni_modules/index.html new file mode 100644 index 00000000000..61e83522a58 --- /dev/null +++ b/packages/playground/uni_modules/index.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>Vite App</title> + <!--head-meta--> + <!--preload-links--> + <script> + document.addEventListener('DOMContentLoaded', function () { + document.documentElement.style.fontSize = + document.documentElement.clientWidth / 23.4375 + 'px' + }) + </script> + <!--app-context--> + </head> + <body> + <div id="ssr-log"></div> + <div id="app"><!--app-html--></div> + <script type="module" src="/src/main.js"></script> + </body> +</html> diff --git a/packages/playground/uni_modules/package.json b/packages/playground/uni_modules/package.json new file mode 100644 index 00000000000..f18f8e69a4c --- /dev/null +++ b/packages/playground/uni_modules/package.json @@ -0,0 +1,66 @@ +{ + "name": "uni_modules", + "private": true, + "version": "0.0.0", + "scripts": { + "dev:custom": "uni -p", + "build:custom": "uni build -p", + "dev:app": "uni -p app", + "dev:app-android": "uni -p app-android", + "dev:app-ios": "uni -p app-ios", + "dev:h5": "uni", + "test:h5": "uni dev", + "dev:h5:ssr": "uni --ssr", + "dev:mp-360": "uni -p mp-360", + "dev:mp-alipay": "uni -p mp-alipay", + "dev:mp-baidu": "uni -p mp-baidu", + "dev:mp-kuaishou": "uni -p mp-kuaishou", + "dev:mp-lark": "uni -p mp-lark", + "dev:mp-qq": "uni -p mp-qq", + "dev:mp-toutiao": "uni -p mp-toutiao", + "dev:mp-weixin": "uni -p mp-weixin", + "dev:quickapp-webview": "uni -p quickapp-webview", + "dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei", + "dev:quickapp-webview-union": "uni -p quickapp-webview-union", + "build:app": "uni build -p app", + "build:app-android": "uni build -p app-android", + "build:app-ios": "uni build -p app-ios", + "build:h5": "uni build", + "build:h5:ssr": "uni build --ssr", + "build:mp-alipay": "uni build -p mp-alipay", + "build:mp-baidu": "uni build -p mp-baidu", + "build:mp-kuaishou": "uni build -p mp-kuaishou", + "build:mp-lark": "uni build -p mp-lark", + "build:mp-qq": "uni build -p mp-qq", + "build:mp-toutiao": "uni build -p mp-toutiao", + "build:mp-weixin": "uni build -p mp-weixin", + "build:quickapp-webview": "uni build -p quickapp-webview", + "build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei", + "build:quickapp-webview-union": "uni build -p quickapp-webview-union" + }, + "dependencies": { + "@dcloudio/uni-app": "../../uni-app", + "@dcloudio/uni-app-plus": "../../uni-app-plus", + "@dcloudio/uni-components": "../../uni-components", + "@dcloudio/uni-h5": "../../uni-h5", + "@dcloudio/uni-mp-alipay": "../../uni-mp-alipay", + "@dcloudio/uni-mp-baidu": "../../uni-mp-baidu", + "@dcloudio/uni-mp-kuaishou": "../../uni-mp-kuaishou", + "@dcloudio/uni-mp-lark": "../../uni-mp-lark", + "@dcloudio/uni-mp-qq": "../../uni-mp-qq", + "@dcloudio/uni-mp-toutiao": "../../uni-mp-toutiao", + "@dcloudio/uni-mp-weixin": "../../uni-mp-weixin", + "@dcloudio/uni-quickapp-webview": "../../uni-quickapp-webview", + "vue": "3.4.21", + "vue-router": "^4.3.0", + "vuex": "^4.1.0" + }, + "devDependencies": { + "@dcloudio/uni-cli-shared": "../../uni-cli-shared", + "@dcloudio/vite-plugin-uni": "../../vite-plugin-uni", + "vite": "^5.2.8" + }, + "resolutions": { + "@dcloudio/uni-app-vite": "../../uni-app-vite" + } +} diff --git a/packages/playground/uni_modules/src/App.uvue b/packages/playground/uni_modules/src/App.uvue new file mode 100644 index 00000000000..c7eefc9066c --- /dev/null +++ b/packages/playground/uni_modules/src/App.uvue @@ -0,0 +1,4 @@ +<script lang="ts"> +export default { +} +</script> diff --git a/packages/playground/uni_modules/src/App.vue b/packages/playground/uni_modules/src/App.vue new file mode 100644 index 00000000000..38dbeb615c2 --- /dev/null +++ b/packages/playground/uni_modules/src/App.vue @@ -0,0 +1,4 @@ +<script> +export default { +} +</script> diff --git a/packages/playground/uni_modules/src/main.js b/packages/playground/uni_modules/src/main.js new file mode 100644 index 00000000000..b12c1ee789e --- /dev/null +++ b/packages/playground/uni_modules/src/main.js @@ -0,0 +1,8 @@ +import { createSSRApp } from "vue"; +import App from "./App.vue"; +export function createApp() { + const app = createSSRApp(App); + return { + app, + }; +} diff --git a/packages/playground/uni_modules/src/main.uts b/packages/playground/uni_modules/src/main.uts new file mode 100644 index 00000000000..22974d5866c --- /dev/null +++ b/packages/playground/uni_modules/src/main.uts @@ -0,0 +1,8 @@ +import { createSSRApp } from "vue"; +import App from "./App.uvue"; +export function createApp() { + const app = createSSRApp(App); + return { + app, + }; +} diff --git a/packages/playground/uni_modules/src/manifest.json b/packages/playground/uni_modules/src/manifest.json new file mode 100644 index 00000000000..7526c7b6bd3 --- /dev/null +++ b/packages/playground/uni_modules/src/manifest.json @@ -0,0 +1,7 @@ +{ + "name": "my-vue3-project", + "appid": "__UNI_XXXXXXX", + "description": "aaa", + "versionName": "1.0.0", + "versionCode": "101" +} \ No newline at end of file diff --git a/packages/playground/uni_modules/src/pages.json b/packages/playground/uni_modules/src/pages.json new file mode 100644 index 00000000000..264ae333878 --- /dev/null +++ b/packages/playground/uni_modules/src/pages.json @@ -0,0 +1,7 @@ +{ + "pages": [ + { + "path": "pages/index/index" + } + ] +} diff --git a/packages/playground/uni_modules/src/uni_modules/test-com1/changelog.md b/packages/playground/uni_modules/src/uni_modules/test-com1/changelog.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-1/logo.png b/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-1/logo.png new file mode 100644 index 00000000000..b5771e209bb Binary files /dev/null and b/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-1/logo.png differ diff --git a/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-1/test-com1-1.vue b/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-1/test-com1-1.vue new file mode 100644 index 00000000000..196484be0d5 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-1/test-com1-1.vue @@ -0,0 +1,24 @@ +<template> + <text class="text">{{ msg }}{{ logo }}</text> + <image src="./logo.png" /> +</template> +<script> +import Logo from './logo.png' +export default { + data() { + return { + msg: 'test-com1-1', + logo: Logo + } + } +} +</script> +<style> +.text { + color: red; +} + +.image { + background: url('./logo.png'); +} +</style> \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-2/test-com1-2.vue b/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-2/test-com1-2.vue new file mode 100644 index 00000000000..683ae11a677 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com1/components/test-com1-2/test-com1-2.vue @@ -0,0 +1,20 @@ +<template> + <text class="text2">{{ msg }}{{ logo }}</text> + <image src="../test-com1-1/logo.png" /> +</template> +<script> +import Logo from '../test-com1-1/logo.png' +export default { + data() { + return { + msg: 'test-com1-2', + logo: Logo + } + } +} +</script> +<style> +.text2 { + color: red; +} +</style> \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com1/encrypt b/packages/playground/uni_modules/src/uni_modules/test-com1/encrypt new file mode 100644 index 00000000000..2f704f96947 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com1/encrypt @@ -0,0 +1 @@ +ݙÛáI9t~ýù‡òÿfFpûÖå/keœäàSàCו›øõ7=2)ُ>gRl`<­(<Í!ûëgÖsš.RSó–‡Ôwœ–ŸŸ÷[Þ ká v~Ïå8qïí"m¢ZÜ(N“º.jñ\íq‹ï–Ýí‰fƐŒEü-­·ò66 \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com1/index.encrypt.js b/packages/playground/uni_modules/src/uni_modules/test-com1/index.encrypt.js new file mode 100644 index 00000000000..a812ff9e8b3 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com1/index.encrypt.js @@ -0,0 +1,4 @@ + +import TestCom11 from './components/test-com1-1/test-com1-1.vue' +import TestCom12 from './components/test-com1-2/test-com1-2.vue' +export { TestCom11,TestCom12 } diff --git a/packages/playground/uni_modules/src/uni_modules/test-com1/package.json b/packages/playground/uni_modules/src/uni_modules/test-com1/package.json new file mode 100644 index 00000000000..d4633dcf5e7 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com1/package.json @@ -0,0 +1,83 @@ +{ + "id": "test-com1", + "displayName": "test-com1", + "version": "1.0.0", + "description": "test-com1", + "keywords": [ + "test-com1" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "", + "data": "", + "permissions": "" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "u", + "aliyun": "u", + "alipay": "u" + }, + "client": { + "Vue": { + "vue2": "u", + "vue3": "u" + }, + "App": { + "app-vue": "u", + "app-nvue": "u", + "app-uvue": "u" + }, + "H5-mobile": { + "Safari": "u", + "Android Browser": "u", + "微信浏览器(Android)": "u", + "QQ浏览器(Android)": "u" + }, + "H5-pc": { + "Chrome": "u", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "u", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com1/readme.md b/packages/playground/uni_modules/src/uni_modules/test-com1/readme.md new file mode 100644 index 00000000000..e42cfef5c88 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com1/readme.md @@ -0,0 +1 @@ +# test-com1 \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com2/changelog.md b/packages/playground/uni_modules/src/uni_modules/test-com2/changelog.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-1/logo.png b/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-1/logo.png new file mode 100644 index 00000000000..b5771e209bb Binary files /dev/null and b/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-1/logo.png differ diff --git a/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-1/test-com2-1.vue b/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-1/test-com2-1.vue new file mode 100644 index 00000000000..81141741b52 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-1/test-com2-1.vue @@ -0,0 +1,23 @@ +<template> + <text class="text">{{ msg }}{{ logo }}</text> +</template> +<script> +import Logo from './logo.png' +export default { + data() { + return { + msg: 'test-com2-1', + logo: Logo + } + } +} +</script> +<style> +.text { + color: red; +} + +.image { + background: url('./logo.png'); +} +</style> \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-2/test-com2-2.vue b/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-2/test-com2-2.vue new file mode 100644 index 00000000000..f6873e2ac2c --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com2/components/test-com2-2/test-com2-2.vue @@ -0,0 +1,19 @@ +<template> + <text class="text2">{{ msg }}{{ logo }}</text> +</template> +<script> +import Logo from '../test-com2-1/logo.png' +export default { + data() { + return { + msg: 'test-com2-2', + logo: Logo + } + } +} +</script> +<style> +.text2 { + color: red; +} +</style> \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com2/encrypt b/packages/playground/uni_modules/src/uni_modules/test-com2/encrypt new file mode 100644 index 00000000000..2f704f96947 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com2/encrypt @@ -0,0 +1 @@ +ݙÛáI9t~ýù‡òÿfFpûÖå/keœäàSàCו›øõ7=2)ُ>gRl`<­(<Í!ûëgÖsš.RSó–‡Ôwœ–ŸŸ÷[Þ ká v~Ïå8qïí"m¢ZÜ(N“º.jñ\íq‹ï–Ýí‰fƐŒEü-­·ò66 \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com2/index.encrypt.js b/packages/playground/uni_modules/src/uni_modules/test-com2/index.encrypt.js new file mode 100644 index 00000000000..df3dacec2ee --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com2/index.encrypt.js @@ -0,0 +1,4 @@ + +import TestCom21 from './components/test-com2-1/test-com2-1.vue' +import TestCom22 from './components/test-com2-2/test-com2-2.vue' +export { TestCom21,TestCom22 } diff --git a/packages/playground/uni_modules/src/uni_modules/test-com2/package.json b/packages/playground/uni_modules/src/uni_modules/test-com2/package.json new file mode 100644 index 00000000000..cdf17489286 --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com2/package.json @@ -0,0 +1,83 @@ +{ + "id": "test-com2", + "displayName": "test-com2", + "version": "1.0.0", + "description": "test-com2", + "keywords": [ + "test-com2" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "", + "data": "", + "permissions": "" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "u", + "aliyun": "u", + "alipay": "u" + }, + "client": { + "Vue": { + "vue2": "u", + "vue3": "u" + }, + "App": { + "app-vue": "u", + "app-nvue": "u", + "app-uvue": "u" + }, + "H5-mobile": { + "Safari": "u", + "Android Browser": "u", + "微信浏览器(Android)": "u", + "QQ浏览器(Android)": "u" + }, + "H5-pc": { + "Chrome": "u", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "u", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/packages/playground/uni_modules/src/uni_modules/test-com2/readme.md b/packages/playground/uni_modules/src/uni_modules/test-com2/readme.md new file mode 100644 index 00000000000..ad0765c506f --- /dev/null +++ b/packages/playground/uni_modules/src/uni_modules/test-com2/readme.md @@ -0,0 +1 @@ +# test-com2 \ No newline at end of file diff --git a/packages/playground/uni_modules/vite.config.js b/packages/playground/uni_modules/vite.config.js new file mode 100644 index 00000000000..c56407fea70 --- /dev/null +++ b/packages/playground/uni_modules/vite.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from 'vite' +import uni from '@dcloudio/vite-plugin-uni' + +/** + * @type {import('vite').UserConfig} + */ +export default defineConfig({ + build: { minify: false }, + plugins: [uni({ viteLegacyOptions: false })], +}) diff --git a/packages/uni-app-uts/src/plugins/android/css.ts b/packages/uni-app-uts/src/plugins/android/css.ts index 2ce9c3de758..39484adc087 100644 --- a/packages/uni-app-uts/src/plugins/android/css.ts +++ b/packages/uni-app-uts/src/plugins/android/css.ts @@ -84,6 +84,7 @@ export function uniAppCssPlugin(): Plugin { }, }) // 增加 css plugins + // TODO 加密插件 insertBeforePlugin( cssPlugin(config, { isAndroidX: true, diff --git a/packages/uni-app-uts/src/plugins/ios/index.ts b/packages/uni-app-uts/src/plugins/ios/index.ts index 9af0e77c9d4..6bfe2278f76 100644 --- a/packages/uni-app-uts/src/plugins/ios/index.ts +++ b/packages/uni-app-uts/src/plugins/ios/index.ts @@ -4,7 +4,7 @@ import { parseUniExtApiNamespacesOnce, resolveUTSCompiler, uniEasycomPlugin, - uniEncryptEasyComUniModulesPlugin, + uniEncryptUniModulesPlugin, uniHBuilderXConsolePlugin, uniUTSUVueJavaScriptPlugin, uniUTSUniModulesPlugin, @@ -31,7 +31,7 @@ export function init() { uniEasycomPlugin({ exclude: UNI_EASYCOM_EXCLUDE }), uniAppIOSPlugin(), ...(process.env.UNI_COMPILE_TARGET === 'uni_modules' - ? [uniEncryptEasyComUniModulesPlugin()] + ? [uniEncryptUniModulesPlugin()] : [uniAppIOSMainPlugin(), uniAppManifestPlugin(), uniAppPagesPlugin()]), uniUTSUVueJavaScriptPlugin(), resolveUTSCompiler().uts2js({ diff --git a/packages/uni-app-uts/src/plugins/ios/plugin.ts b/packages/uni-app-uts/src/plugins/ios/plugin.ts index 39c8e5c4f3d..e0674314bbb 100644 --- a/packages/uni-app-uts/src/plugins/ios/plugin.ts +++ b/packages/uni-app-uts/src/plugins/ios/plugin.ts @@ -4,6 +4,7 @@ import { APP_SERVICE_FILENAME, type UniVitePlugin, buildUniExtApis, + createEncryptCssUrlReplacer, emptyDir, injectCssPlugin, injectCssPostPlugin, @@ -64,7 +65,14 @@ export function uniAppIOSPlugin(): UniVitePlugin { }, configResolved(config) { configResolved(config) - injectCssPlugin(config) + injectCssPlugin( + config, + process.env.UNI_COMPILE_TARGET === 'uni_modules' + ? { + createUrlReplacer: createEncryptCssUrlReplacer, + } + : {} + ) injectCssPostPlugin(config, uniAppCssPlugin(config)) }, generateBundle(_, bundle) { diff --git a/packages/uni-app-vite/src/nvue/index.ts b/packages/uni-app-vite/src/nvue/index.ts index f1880d0c57d..e8e315fbc04 100644 --- a/packages/uni-app-vite/src/nvue/index.ts +++ b/packages/uni-app-vite/src/nvue/index.ts @@ -2,7 +2,7 @@ import { UNI_EASYCOM_EXCLUDE, initAppProvide, uniEasycomPlugin, - uniEncryptEasyComUniModulesPlugin, + uniEncryptUniModulesPlugin, uniHBuilderXConsolePlugin, uniViteInjectPlugin, } from '@dcloudio/uni-cli-shared' @@ -30,7 +30,7 @@ export function initNVuePlugins() { uniViteInjectPlugin('uni:app-inject', initAppProvide()), uniRenderjsPlugin(), uniAppNVuePlugin({ appService }), - uniEncryptEasyComUniModulesPlugin(), + uniEncryptUniModulesPlugin(), ] : [ uniAppCssPlugin(), diff --git a/packages/uni-app-vite/src/plugin/configResolved.ts b/packages/uni-app-vite/src/plugin/configResolved.ts index 5c31e038c47..58c36e1d841 100644 --- a/packages/uni-app-vite/src/plugin/configResolved.ts +++ b/packages/uni-app-vite/src/plugin/configResolved.ts @@ -1,6 +1,7 @@ import type { Plugin, ResolvedConfig } from 'vite' import { + createEncryptCssUrlReplacer, injectAssetPlugin, injectCssPlugin, injectCssPostPlugin, @@ -12,7 +13,14 @@ export function createConfigResolved({ createCssPostPlugin: (config: ResolvedConfig) => Plugin }): Plugin['configResolved'] { return (config) => { - injectCssPlugin(config) + injectCssPlugin( + config, + process.env.UNI_COMPILE_TARGET === 'uni_modules' + ? { + createUrlReplacer: createEncryptCssUrlReplacer, + } + : {} + ) injectCssPostPlugin(config, createCssPostPlugin(config)) // 强制不inline config.build.assetsInlineLimit = 0 diff --git a/packages/uni-app-vite/src/vue/index.ts b/packages/uni-app-vite/src/vue/index.ts index 73ba5777615..c27c9ba10e2 100644 --- a/packages/uni-app-vite/src/vue/index.ts +++ b/packages/uni-app-vite/src/vue/index.ts @@ -8,7 +8,7 @@ import { parseManifestJsonOnce, uniCssScopedPlugin, uniEasycomPlugin, - uniEncryptEasyComUniModulesPlugin, + uniEncryptUniModulesPlugin, uniHBuilderXConsolePlugin, uniViteInjectPlugin, } from '@dcloudio/uni-cli-shared' @@ -48,7 +48,7 @@ export function initVuePlugins() { uniViteInjectPlugin('uni:app-inject', initAppProvide()), uniRenderjsPlugin(), uniAppVuePlugin(), - uniEncryptEasyComUniModulesPlugin() + uniEncryptUniModulesPlugin() ) } else { plugins.push( diff --git a/packages/uni-cli-shared/src/uni_modules.ts b/packages/uni-cli-shared/src/uni_modules.ts index a5e8e6bd678..1464a5dbc7c 100644 --- a/packages/uni-cli-shared/src/uni_modules.ts +++ b/packages/uni-cli-shared/src/uni_modules.ts @@ -375,12 +375,7 @@ export { ${ids.join(',')} } ` } -/** - * 解析加密的 easyCom 插件列表 - * @param inputDir - * @returns - */ -export function parseEncryptEasyComModules( +export function parseEncryptUniModules( inputDir: string, detectBinary: boolean = true ) { @@ -388,15 +383,25 @@ export function parseEncryptEasyComModules( const uniModules: Record<string, string[]> = {} if (fs.existsSync(modulesDir)) { fs.readdirSync(modulesDir).forEach((uniModuleDir) => { - // 判断是否是加密easyCom插件 + // 判断是否是加密插件 if (fs.existsSync(path.resolve(modulesDir, uniModuleDir, 'encrypt'))) { - const components = parseEncryptEasyComComponents( - uniModuleDir, - inputDir, - detectBinary - ) - if (components.length) { - uniModules[uniModuleDir] = components + if ( + // 手动指定了加密入口 + fs.existsSync( + path.resolve(modulesDir, uniModuleDir, 'index.encrypt.js') + ) + ) { + uniModules[uniModuleDir] = [] + } else { + // 解析加密的 easyCom 插件列表 + const components = parseEncryptEasyComComponents( + uniModuleDir, + inputDir, + detectBinary + ) + if (components.length) { + uniModules[uniModuleDir] = components + } } } }) diff --git a/packages/uni-cli-shared/src/vite/cloud.ts b/packages/uni-cli-shared/src/vite/cloud.ts index 48207fd44d2..e6d81a03cb1 100644 --- a/packages/uni-cli-shared/src/vite/cloud.ts +++ b/packages/uni-cli-shared/src/vite/cloud.ts @@ -1,16 +1,41 @@ import path from 'path' import fs from 'fs-extra' -import type { AliasOptions, BuildOptions, Plugin, ResolvedConfig } from 'vite' +import type { + AliasOptions, + BuildOptions, + Plugin, + ResolveFn, + ResolvedConfig, +} from 'vite' import { genEncryptEasyComModuleIndex, - parseEncryptEasyComModules, + parseEncryptUniModules, } from '../uni_modules' -import { cleanUrl } from './plugins/vitejs/utils' +import { cleanUrl, normalizePath } from './plugins/vitejs/utils' +import type { CssUrlReplacer } from './plugins/vitejs/plugins/css' -export function uniEncryptEasyComUniModulesPlugin(): Plugin { +export function createEncryptCssUrlReplacer( + resolve: ResolveFn +): CssUrlReplacer { + return async (url, importer) => { + if (url.startsWith('/') && !url.startsWith('//')) { + // /static/logo.png => @/static/logo.png + url = '@' + url + } + const resolved = await resolve(url, importer) + if (resolved) { + return ( + '@/' + normalizePath(path.relative(process.env.UNI_INPUT_DIR, resolved)) + ) + } + return url + } +} + +export function uniEncryptUniModulesPlugin(): Plugin { let resolvedConfig: ResolvedConfig return { - name: 'uni:encrypt-easy-com-uni-modules', + name: 'uni:encrypt-uni-modules', apply: 'build', config() { return { @@ -74,7 +99,7 @@ function initEncryptUniModulesAlias(): AliasOptions { } function initEncryptUniModulesBuildOptions(inputDir: string): BuildOptions { - const modules = parseEncryptEasyComModules(inputDir, false) + const modules = parseEncryptUniModules(inputDir, false) const moduleNames = Object.keys(modules) if (!moduleNames.length) { throw new Error('No encrypt uni_modules found') @@ -88,28 +113,26 @@ function initEncryptUniModulesBuildOptions(inputDir: string): BuildOptions { module, 'index.encrypt.js' ) - fs.writeFileSync( - indexEncryptFile, - genEncryptEasyComModuleIndex(modules[module]) - ) + // 生成 index.encrypt.js,如果 length 为 0,说明是手动指定了 index.encrypt.js + if (modules[module].length) { + fs.writeFileSync( + indexEncryptFile, + genEncryptEasyComModuleIndex(modules[module]) + ) + } input['uni_modules/' + module + '/index.encrypt'] = indexEncryptFile }) return { lib: false, // 不使用 lib 模式,lib模式会直接内联资源 cssCodeSplit: false, + outDir: process.env.UNI_OUTPUT_DIR, rollupOptions: { preserveEntrySignatures: 'strict', input, output: { format: 'es', - banner: `// generated by uni-app@${process.env.UNI_COMPILER_VERSION}`, + banner: ``, entryFileNames: '[name].js', - assetFileNames(chunkInfo) { - if (chunkInfo.name) { - console.log(chunkInfo) - } - return 'assets/[name].[ext]' - }, }, }, } diff --git a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts index 75886cc9c04..9db529552ee 100644 --- a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts +++ b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts @@ -187,6 +187,7 @@ export function cssPlugin( options: { isAndroidX: boolean getDescriptor?(filename: string): SFCDescriptor | undefined + createUrlReplacer?: (resolve: ResolveFn) => CssUrlReplacer } = { isAndroidX: false } ): Plugin { let server: ViteDevServer @@ -217,42 +218,44 @@ export function cssPlugin( return } - const urlReplacer: CssUrlReplacer = async (url, importer, source) => { - if (url.startsWith('/') && !url.startsWith('//')) { - // /static/logo.png => @/static/logo.png - url = '@' + url - } - const resolved = await wrapResolve( - resolveUrl, - source?.input.css || raw, - source, - options.getDescriptor - )(url, importer) - if (resolved) { - return fileToUrl( - resolved, - config, - options?.isAndroidX - ? ({ - emitFile(emittedFile: EmittedAsset) { - const fileName = path.resolve( - process.env.UNI_OUTPUT_DIR, - emittedFile.fileName! - ) - // 忽略static(可能有只读文件,写入覆盖只读会报错权限) - if (normalizePath(fileName).includes('/static/')) { - return - } - // 直接写入目标目录 - fs.outputFileSync(fileName, emittedFile.source!) - }, - } as PluginContext) - : this, - true - ) - } - return url - } + const urlReplacer: CssUrlReplacer = + (options.createUrlReplacer && options.createUrlReplacer(resolveUrl)) || + (async (url, importer, source) => { + if (url.startsWith('/') && !url.startsWith('//')) { + // /static/logo.png => @/static/logo.png + url = '@' + url + } + const resolved = await wrapResolve( + resolveUrl, + source?.input.css || raw, + source, + options.getDescriptor + )(url, importer) + if (resolved) { + return fileToUrl( + resolved, + config, + options?.isAndroidX + ? ({ + emitFile(emittedFile: EmittedAsset) { + const fileName = path.resolve( + process.env.UNI_OUTPUT_DIR, + emittedFile.fileName! + ) + // 忽略static(可能有只读文件,写入覆盖只读会报错权限) + if (normalizePath(fileName).includes('/static/')) { + return + } + // 直接写入目标目录 + fs.outputFileSync(fileName, emittedFile.source!) + }, + } as PluginContext) + : this, + true + ) + } + return url + }) const { code: css, @@ -335,12 +338,14 @@ export function cssPostPlugin( { platform, isJsCode, + preserveModules, chunkCssFilename, chunkCssCode, includeComponentCss, }: { platform: UniApp.PLATFORM isJsCode?: boolean + preserveModules?: boolean chunkCssFilename: (id: string) => string | void chunkCssCode: ( filename: string, @@ -406,7 +411,7 @@ export function cssPostPlugin( }, async generateBundle() { // app 平台页面并未 chunk,所以 renderChunk 并不会处理页面的 css,需要这里再补充查找 - if (platform === 'app') { + if (platform === 'app' || preserveModules) { const moduleIds = Array.from(this.getModuleIds()) moduleIds.forEach((id) => { const filename = chunkCssFilename(id) @@ -898,7 +903,7 @@ async function resolvePostcssConfig( return result } -type CssUrlReplacer = ( +export type CssUrlReplacer = ( url: string, importer?: string, source?: PostCSS.Source diff --git a/packages/uni-cli-shared/src/vite/utils/plugin.ts b/packages/uni-cli-shared/src/vite/utils/plugin.ts index f36a4e96c34..b97f612b274 100644 --- a/packages/uni-cli-shared/src/vite/utils/plugin.ts +++ b/packages/uni-cli-shared/src/vite/utils/plugin.ts @@ -1,7 +1,7 @@ -import type { Plugin, ResolvedConfig } from 'vite' +import type { Plugin, ResolveFn, ResolvedConfig } from 'vite' import { extend, isArray } from '@vue/shared' import { assetPlugin } from '../plugins/vitejs/plugins/asset' -import { cssPlugin } from '../plugins/vitejs/plugins/css' +import { type CssUrlReplacer, cssPlugin } from '../plugins/vitejs/plugins/css' export type CreateUniViteFilterPlugin = ( opts: UniViteFilterPluginOptions @@ -18,8 +18,19 @@ export function injectAssetPlugin( replacePlugins([assetPlugin(config, options)], config) } -export function injectCssPlugin(config: ResolvedConfig) { - replacePlugins([cssPlugin(config)], config) +export function injectCssPlugin( + config: ResolvedConfig, + options?: { createUrlReplacer?: (resolve: ResolveFn) => CssUrlReplacer } +) { + replacePlugins( + [ + cssPlugin(config, { + isAndroidX: false, + ...options, + }), + ], + config + ) } export function injectCssPostPlugin( diff --git a/packages/uni-h5-vite/src/index.ts b/packages/uni-h5-vite/src/index.ts index 89ff8422225..6548b493b20 100644 --- a/packages/uni-h5-vite/src/index.ts +++ b/packages/uni-h5-vite/src/index.ts @@ -5,7 +5,7 @@ import { isVueSfcFile, resolveUTSCompiler, uniCssScopedPlugin, - uniEncryptEasyComUniModulesPlugin, + uniEncryptUniModulesPlugin, uniUTSUVueJavaScriptPlugin, } from '@dcloudio/uni-cli-shared' import { uniH5Plugin } from './plugin' @@ -58,7 +58,7 @@ export default [ uniRenderjsPlugin(), uniH5Plugin(), ...(process.env.UNI_COMPILE_TARGET === 'uni_modules' - ? [uniEncryptEasyComUniModulesPlugin()] + ? [uniEncryptUniModulesPlugin()] : []), uniPostVuePlugin(), uniPostSourceMapPlugin(), diff --git a/packages/uni-h5-vite/src/plugins/css.ts b/packages/uni-h5-vite/src/plugins/css.ts index c08a47424d5..3585126822e 100644 --- a/packages/uni-h5-vite/src/plugins/css.ts +++ b/packages/uni-h5-vite/src/plugins/css.ts @@ -4,9 +4,16 @@ import { type Plugin, type ResolvedConfig, normalizePath } from 'vite' import { buildInCssSet, + createEncryptCssUrlReplacer, + cssPostPlugin, getAssetHash, + injectAssetPlugin, + injectCssPlugin, + injectCssPostPlugin, isExternalUrl, + isVueSfcFile, minifyCSS, + removeExt, resolveBuiltIn, } from '@dcloudio/uni-cli-shared' import type { OutputOptions } from 'rollup' @@ -27,6 +34,33 @@ export function uniCssPlugin(): Plugin { configResolved(config) { resolvedConfig = config file = path.join(process.env.UNI_INPUT_DIR, 'uni.css') + + if (process.env.UNI_COMPILE_TARGET === 'uni_modules') { + injectCssPlugin(config, { + createUrlReplacer: createEncryptCssUrlReplacer, + }) + + injectCssPostPlugin( + config, + cssPostPlugin(config, { + platform: process.env.UNI_PLATFORM, + preserveModules: true, + chunkCssFilename(id: string) { + if (isVueSfcFile(id)) { + return ( + removeExt( + normalizePath(path.relative(process.env.UNI_INPUT_DIR, id)) + ) + '.css' + ) + } + }, + chunkCssCode(_filename, cssCode) { + return cssCode + }, + }) + ) + injectAssetPlugin(config) + } }, async generateBundle() { if (!isCombineBuiltInCss(resolvedConfig) || !buildInCssSet.size) { diff --git a/packages/uni-mp-vite/src/plugin/configResolved.ts b/packages/uni-mp-vite/src/plugin/configResolved.ts index 118febdd2ad..c516fee0a33 100644 --- a/packages/uni-mp-vite/src/plugin/configResolved.ts +++ b/packages/uni-mp-vite/src/plugin/configResolved.ts @@ -3,6 +3,7 @@ import { isString } from '@vue/shared' import type { Plugin, ResolvedConfig } from 'vite' import type { EmittedAsset } from 'rollup' import { + createEncryptCssUrlReplacer, cssPostPlugin, injectAssetPlugin, injectCssPlugin, @@ -46,7 +47,14 @@ export function createConfigResolved({ return (config) => { const mainPath = resolveMainPathOnce(process.env.UNI_INPUT_DIR) fixUnocss(config) - injectCssPlugin(config) + injectCssPlugin( + config, + process.env.UNI_COMPILE_TARGET === 'uni_modules' + ? { + createUrlReplacer: createEncryptCssUrlReplacer, + } + : {} + ) let unocssGlobalBuildBundleIndex = config.plugins.findIndex( (p) => p.name === 'unocss:global:build:bundle' diff --git a/packages/vite-plugin-uni/src/cli/build.ts b/packages/vite-plugin-uni/src/cli/build.ts index 9892da6f696..ef333558eb0 100644 --- a/packages/vite-plugin-uni/src/cli/build.ts +++ b/packages/vite-plugin-uni/src/cli/build.ts @@ -146,6 +146,10 @@ export async function buildApp( initBuildOptions(options, cleanOptions(options) as BuildOptions) ) ) + if (process.env.UNI_COMPILE_TARGET === 'uni_modules') { + // 不需要 nvue 编译器 + return vueBuilder as RollupWatcher + } if (appWatcher) { appWatcher.setFirstWatcher(vueBuilder as RollupWatcher) } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a7afca3a8fb..97d20ad3feb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,6 +122,9 @@ importers: execa: specifier: ^5.1.1 version: 5.1.1 + fast-glob: + specifier: ^3.2.11 + version: 3.3.2 fs-extra: specifier: ^10.0.0 version: 10.1.0 @@ -260,6 +263,64 @@ importers: specifier: ^5.2.8 version: 5.2.8(@types/[email protected])([email protected]) + packages/playground/uni_modules: + dependencies: + '@dcloudio/uni-app': + specifier: ../../uni-app + version: link:../../uni-app + '@dcloudio/uni-app-plus': + specifier: ../../uni-app-plus + version: link:../../uni-app-plus + '@dcloudio/uni-components': + specifier: ../../uni-components + version: link:../../uni-components + '@dcloudio/uni-h5': + specifier: ../../uni-h5 + version: link:../../uni-h5 + '@dcloudio/uni-mp-alipay': + specifier: ../../uni-mp-alipay + version: link:../../uni-mp-alipay + '@dcloudio/uni-mp-baidu': + specifier: ../../uni-mp-baidu + version: link:../../uni-mp-baidu + '@dcloudio/uni-mp-kuaishou': + specifier: ../../uni-mp-kuaishou + version: link:../../uni-mp-kuaishou + '@dcloudio/uni-mp-lark': + specifier: ../../uni-mp-lark + version: link:../../uni-mp-lark + '@dcloudio/uni-mp-qq': + specifier: ../../uni-mp-qq + version: link:../../uni-mp-qq + '@dcloudio/uni-mp-toutiao': + specifier: ../../uni-mp-toutiao + version: link:../../uni-mp-toutiao + '@dcloudio/uni-mp-weixin': + specifier: ../../uni-mp-weixin + version: link:../../uni-mp-weixin + '@dcloudio/uni-quickapp-webview': + specifier: ../../uni-quickapp-webview + version: link:../../uni-quickapp-webview + vue: + specifier: 3.4.21 + version: 3.4.21([email protected]) + vue-router: + specifier: ^4.3.0 + version: 4.3.0([email protected]) + vuex: + specifier: ^4.1.0 + version: 4.1.0([email protected]) + devDependencies: + '@dcloudio/uni-cli-shared': + specifier: ../../uni-cli-shared + version: link:../../uni-cli-shared + '@dcloudio/vite-plugin-uni': + specifier: ../../vite-plugin-uni + version: link:../../vite-plugin-uni + vite: + specifier: ^5.2.8 + version: 5.2.8(@types/[email protected])([email protected]) + packages/size-check: dependencies: '@dcloudio/uni-app':
392942fc256e2d071f5423849fc4de88ef8bfe68
2022-11-19 11:46:41
fxy060608
chore: bump jest from 27.0.6 to 29.3.1
false
bump jest from 27.0.6 to 29.3.1
chore
diff --git a/package.json b/package.json index bffdb47f00c..47439ce7810 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@dcloudio/types": "^3.0.19", "@dcloudio/uni-api": "3.0.0-alpha-3060920221117001", "@dcloudio/uni-app": "3.0.0-alpha-3060920221117001", - "@jest/types": "^27.0.2", + "@jest/types": "^29.0.3", "@microsoft/api-extractor": "^7.30.0", "@rollup/plugin-alias": "^3.1.1", "@rollup/plugin-babel": "^5.3.0", @@ -54,7 +54,7 @@ "@rollup/plugin-node-resolve": "^11.0.1", "@rollup/plugin-replace": "^2.3.4", "@rollup/plugin-strip": "^2.0.0", - "@types/jest": "^27.0.0", + "@types/jest": "^29.2.3", "@types/node": "^18.11.9", "@typescript-eslint/parser": "^5.14.0", "@vitejs/plugin-vue": "^3.2.0", @@ -69,7 +69,7 @@ "eslint": "^7.17.0", "execa": "^5.1.1", "fs-extra": "^10.0.0", - "jest": "^27.0.6", + "jest": "^29.3.1", "lint-staged": "^10.5.3", "mini-types": "^0.1.7", "minimist": "^1.2.5", @@ -86,7 +86,7 @@ "semver": "^7.3.5", "simple-git-hooks": "^2.8.0", "terser": "^5.4.0", - "ts-jest": "^27.0.3", + "ts-jest": "^29.0.3", "typescript": "^4.9.3", "vite": "3.2.4", "vue": "3.2.45", diff --git a/packages/uni-app-plus/__tests__/__snapshots__/webviewStyle.spec.ts.snap b/packages/uni-app-plus/__tests__/__snapshots__/webviewStyle.spec.ts.snap index f24a1ee020f..951f85b9abb 100644 --- a/packages/uni-app-plus/__tests__/__snapshots__/webviewStyle.spec.ts.snap +++ b/packages/uni-app-plus/__tests__/__snapshots__/webviewStyle.spec.ts.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`webviewStyle basic 1`] = ` -Object { +{ "bounce": "vertical", - "titleNView": Object { + "titleNView": { "autoBackButton": true, }, } diff --git a/packages/uni-app-plus/__tests__/service/dom/__snapshots__/dom.spec.ts.snap b/packages/uni-app-plus/__tests__/service/dom/__snapshots__/dom.spec.ts.snap index 143385de65e..8c7a966e973 100644 --- a/packages/uni-app-plus/__tests__/service/dom/__snapshots__/dom.spec.ts.snap +++ b/packages/uni-app-plus/__tests__/service/dom/__snapshots__/dom.spec.ts.snap @@ -1,33 +1,33 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`dom minify = true 1`] = `"[[0,[\\"VIEW\\",\\"id\\",\\"view\\",\\"hidden\\",true]],[3,3,0,0,-1,{\\"a\\":[[1,2]]}],[6,3,3,4]]"`; +exports[`dom minify = true 1`] = `"[[0,["VIEW","id","view","hidden",true]],[3,3,0,0,-1,{"a":[[1,2]]}],[6,3,3,4]]"`; -exports[`dom minify = true 2`] = `"[[0,[\\"VIEW\\",\\"id\\",\\"view\\",\\"hidden\\",true]],[\\"create\\",3,\\"VIEW\\",0,-1,{\\"a\\":{\\"id\\":\\"view\\"}}],[\\"setAttr\\",3,\\"hidden\\",true]]"`; +exports[`dom minify = true 2`] = `"[[0,["VIEW","id","view","hidden",true]],["create",3,"VIEW",0,-1,{"a":{"id":"view"}}],["setAttr",3,"hidden",true]]"`; -exports[`dom minify = true 3`] = `"[[0,[\\"hidden\\"]],[7,3,0]]"`; +exports[`dom minify = true 3`] = `"[[0,["hidden"]],[7,3,0]]"`; -exports[`dom minify = true 4`] = `"[[0,[\\"hidden\\"]],[\\"removeAttr\\",3,\\"hidden\\"]]"`; +exports[`dom minify = true 4`] = `"[[0,["hidden"]],["removeAttr",3,"hidden"]]"`; -exports[`dom minify = true 5`] = `"[[0,[\\"text\\"]],[10,3,0]]"`; +exports[`dom minify = true 5`] = `"[[0,["text"]],[10,3,0]]"`; -exports[`dom minify = true 6`] = `"[[0,[\\"text\\"]],[\\"setText\\",3,\\"text\\"]]"`; +exports[`dom minify = true 6`] = `"[[0,["text"]],["setText",3,"text"]]"`; exports[`dom minify = true 7`] = `"[[0,[]],[5,3]]"`; -exports[`dom minify = true 8`] = `"[[0,[]],[\\"remove\\",3]]"`; +exports[`dom minify = true 8`] = `"[[0,[]],["remove",3]]"`; -exports[`dom minify = true 9`] = `"[[0,[\\"#text\\",\\"hello\\"]],[3,4,0,0,-1,{\\"t\\":1}]]"`; +exports[`dom minify = true 9`] = `"[[0,["#text","hello"]],[3,4,0,0,-1,{"t":1}]]"`; -exports[`dom minify = true 10`] = `"[[0,[\\"#text\\",\\"hello\\"]],[\\"create\\",4,\\"#text\\",0,-1,{\\"t\\":\\"hello\\"}]]"`; +exports[`dom minify = true 10`] = `"[[0,["#text","hello"]],["create",4,"#text",0,-1,{"t":"hello"}]]"`; -exports[`dom minify = true 11`] = `"[[0,[\\"onClick\\"]],[8,4,0,0]]"`; +exports[`dom minify = true 11`] = `"[[0,["onClick"]],[8,4,0,0]]"`; -exports[`dom minify = true 12`] = `"[[0,[\\"onClick\\"]],[\\"addEvent\\",4,\\"onClick\\",0]]"`; +exports[`dom minify = true 12`] = `"[[0,["onClick"]],["addEvent",4,"onClick",0]]"`; -exports[`dom minify = true 13`] = `"[[0,[\\"onClick\\"]],[9,4,0]]"`; +exports[`dom minify = true 13`] = `"[[0,["onClick"]],[9,4,0]]"`; -exports[`dom minify = true 14`] = `"[[0,[\\"onClick\\"]],[\\"removeEvent\\",4,\\"onClick\\"]]"`; +exports[`dom minify = true 14`] = `"[[0,["onClick"]],["removeEvent",4,"onClick"]]"`; -exports[`dom minify = true 15`] = `"[[0,[\\"onClickCapture\\"]],[8,4,0,3]]"`; +exports[`dom minify = true 15`] = `"[[0,["onClickCapture"]],[8,4,0,3]]"`; -exports[`dom minify = true 16`] = `"[[0,[\\"onClickCapture\\"]],[\\"addEvent\\",4,\\"onClickCapture\\",3]]"`; +exports[`dom minify = true 16`] = `"[[0,["onClickCapture"]],["addEvent",4,"onClickCapture",3]]"`; diff --git a/packages/uni-app-vite/__tests__/nvue/__snapshots__/compiler.spec.ts.snap b/packages/uni-app-vite/__tests__/nvue/__snapshots__/compiler.spec.ts.snap index 4757070b6ec..28c962046cf 100644 --- a/packages/uni-app-vite/__tests__/nvue/__snapshots__/compiler.spec.ts.snap +++ b/packages/uni-app-vite/__tests__/nvue/__snapshots__/compiler.spec.ts.snap @@ -1,12 +1,12 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`app-nvue: compiler <input v-model="text"/> 1`] = ` -"import { openBlock as _openBlock, createElementBlock as _createElementBlock } from \\"vue\\" +"import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" -const _hoisted_1 = [\\"modelValue\\"] +const _hoisted_1 = ["modelValue"] export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"u-input\\", { + return (_openBlock(), _createElementBlock("u-input", { modelValue: _ctx.text, onInput: _cache[0] || (_cache[0] = $event => ((_ctx.text) = $event.detail.value)) }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1)) @@ -14,37 +14,37 @@ export function render(_ctx, _cache) { `; exports[`app-nvue: compiler <scroll-view data-id="id" scroll-x="true" :show-scrollbar="true"/> 1`] = ` -"import { openBlock as _openBlock, createElementBlock as _createElementBlock } from \\"vue\\" +"import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" const _hoisted_1 = { - \\"data-id\\": \\"id\\", - scrollX: \\"true\\", + "data-id": "id", + scrollX: "true", showScrollbar: true, renderWhole: true } export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"scroll-view\\", _hoisted_1)) + return (_openBlock(), _createElementBlock("scroll-view", _hoisted_1)) }" `; exports[`app-nvue: compiler <slider/> 1`] = ` -"import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from \\"vue\\" +"import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue" export function render(_ctx, _cache) { - const _component_u_slider = _resolveComponent(\\"u-slider\\") + const _component_u_slider = _resolveComponent("u-slider") return (_openBlock(), _createBlock(_component_u_slider)) }" `; exports[`app-nvue: compiler <textarea v-model="text"/> 1`] = ` -"import { openBlock as _openBlock, createElementBlock as _createElementBlock } from \\"vue\\" +"import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" -const _hoisted_1 = [\\"modelValue\\"] +const _hoisted_1 = ["modelValue"] export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"u-textarea\\", { + return (_openBlock(), _createElementBlock("u-textarea", { modelValue: _ctx.text, onInput: _cache[0] || (_cache[0] = $event => ((_ctx.text) = $event.detail.value)) }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1)) @@ -52,72 +52,72 @@ export function render(_ctx, _cache) { `; exports[`app-nvue: compiler <video></video> 1`] = ` -"import { openBlock as _openBlock, createElementBlock as _createElementBlock } from \\"vue\\" +"import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"u-video\\")) + return (_openBlock(), _createElementBlock("u-video")) }" `; exports[`app-nvue: compiler <video><view></view></video> 1`] = ` -"import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \\"vue\\" +"import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" -const _hoisted_1 = /*#__PURE__*/_createElementVNode(\\"u-scalable\\", { style: {position:\\"absolute\\",left:\\"0\\",right:\\"0\\",top:\\"0\\",bottom:\\"0\\"} }, [ - /*#__PURE__*/_createElementVNode(\\"view\\") +const _hoisted_1 = /*#__PURE__*/_createElementVNode("u-scalable", { style: {position:"absolute",left:"0",right:"0",top:"0",bottom:"0"} }, [ + /*#__PURE__*/_createElementVNode("view") ], -1 /* HOISTED */) const _hoisted_2 = [ _hoisted_1 ] export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"u-video\\", null, _hoisted_2)) + return (_openBlock(), _createElementBlock("u-video", null, _hoisted_2)) }" `; exports[`app-nvue: compiler <view><text>hello</text></view> 1`] = ` -"import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \\"vue\\" +"import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" const _hoisted_1 = { renderWhole: true } -const _hoisted_2 = /*#__PURE__*/_createElementVNode(\\"u-text\\", null, \\"hello\\", -1 /* HOISTED */) +const _hoisted_2 = /*#__PURE__*/_createElementVNode("u-text", null, "hello", -1 /* HOISTED */) const _hoisted_3 = [ _hoisted_2 ] export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"view\\", _hoisted_1, _hoisted_3)) + return (_openBlock(), _createElementBlock("view", _hoisted_1, _hoisted_3)) }" `; exports[`app-nvue: compiler <view>hello</view> 1`] = ` -"import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \\"vue\\" +"import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" const _hoisted_1 = { renderWhole: true } -const _hoisted_2 = /*#__PURE__*/_createElementVNode(\\"u-text\\", null, \\"hello\\", -1 /* HOISTED */) +const _hoisted_2 = /*#__PURE__*/_createElementVNode("u-text", null, "hello", -1 /* HOISTED */) const _hoisted_3 = [ _hoisted_2 ] export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"view\\", _hoisted_1, _hoisted_3)) + return (_openBlock(), _createElementBlock("view", _hoisted_1, _hoisted_3)) }" `; exports[`app-nvue: compiler <view>hello{{a}}<view>aaa{{a}}</view>{{b}}</view> 1`] = ` -"import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from \\"vue\\" +"import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" const _hoisted_1 = { renderWhole: true } -const _hoisted_2 = /*#__PURE__*/_createElementVNode(\\"u-text\\", null, \\"hello\\", -1 /* HOISTED */) -const _hoisted_3 = /*#__PURE__*/_createElementVNode(\\"u-text\\", null, \\"aaa\\", -1 /* HOISTED */) +const _hoisted_2 = /*#__PURE__*/_createElementVNode("u-text", null, "hello", -1 /* HOISTED */) +const _hoisted_3 = /*#__PURE__*/_createElementVNode("u-text", null, "aaa", -1 /* HOISTED */) export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"view\\", _hoisted_1, [ + return (_openBlock(), _createElementBlock("view", _hoisted_1, [ _hoisted_2, - _createElementVNode(\\"u-text\\", null, _toDisplayString(_ctx.a), 1 /* TEXT */), - _createElementVNode(\\"view\\", null, [ + _createElementVNode("u-text", null, _toDisplayString(_ctx.a), 1 /* TEXT */), + _createElementVNode("view", null, [ _hoisted_3, - _createElementVNode(\\"u-text\\", null, _toDisplayString(_ctx.a), 1 /* TEXT */) + _createElementVNode("u-text", null, _toDisplayString(_ctx.a), 1 /* TEXT */) ]), - _createElementVNode(\\"u-text\\", null, _toDisplayString(_ctx.b), 1 /* TEXT */) + _createElementVNode("u-text", null, _toDisplayString(_ctx.b), 1 /* TEXT */) ])) }" `; diff --git a/packages/uni-cli-shared/__tests__/__snapshots__/block.spec.ts.snap b/packages/uni-cli-shared/__tests__/__snapshots__/block.spec.ts.snap index 97c744371aa..8a707d54b1b 100644 --- a/packages/uni-cli-shared/__tests__/__snapshots__/block.spec.ts.snap +++ b/packages/uni-cli-shared/__tests__/__snapshots__/block.spec.ts.snap @@ -10,7 +10,7 @@ exports[`block parseBlockCode 1`] = ` `; exports[`block parseBlockCode 2`] = ` -"<template><view><template v-if=\\"a\\">a</template><template v-else>b</template></view></template> +"<template><view><template v-if="a">a</template><template v-else>b</template></view></template> <script> export default {} </script> diff --git a/packages/uni-cli-shared/__tests__/__snapshots__/wxs.spec.ts.snap b/packages/uni-cli-shared/__tests__/__snapshots__/wxs.spec.ts.snap index d7136d7c8b4..8d3022b1649 100644 --- a/packages/uni-cli-shared/__tests__/__snapshots__/wxs.spec.ts.snap +++ b/packages/uni-cli-shared/__tests__/__snapshots__/wxs.spec.ts.snap @@ -5,7 +5,7 @@ exports[`wxs parseWxsCode 1`] = ` <script> export default {} </script> - <renderjs name=\\"echarts\\"> + <renderjs name="echarts"> export default{ mounted(){ console.log('mounted') @@ -28,7 +28,7 @@ exports[`wxs parseWxsCode 2`] = ` <script> export default {} </script> - <wxs name=\\"echarts\\"> + <wxs name="echarts"> export default{ mounted(){ console.log('mounted') diff --git a/packages/uni-core/__tests__/helpers/__snapshots__/page.spec.ts.snap b/packages/uni-core/__tests__/helpers/__snapshots__/page.spec.ts.snap index f894a3df141..4ccd32f4e8f 100644 --- a/packages/uni-core/__tests__/helpers/__snapshots__/page.spec.ts.snap +++ b/packages/uni-core/__tests__/helpers/__snapshots__/page.spec.ts.snap @@ -1,38 +1,38 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`page initRouteMeta 1`] = ` -Object { +{ "id": 1, - "navigationBar": Object { + "navigationBar": { "titleText": "uni-app", }, - "pullToRefresh": Object {}, + "pullToRefresh": {}, "route": "", } `; exports[`page initRouteMeta 2`] = ` -Object { +{ "enablePullDownRefresh": true, "id": 1, - "navigationBar": Object { + "navigationBar": { "titleColor": "#000000", "titleText": "hello", }, - "pullToRefresh": Object {}, + "pullToRefresh": {}, "route": "", } `; exports[`page initRouteMeta 3`] = ` -Object { +{ "enablePullDownRefresh": true, "id": 1, - "navigationBar": Object { + "navigationBar": { "titleColor": "#000000", "titleText": "uni-app", }, - "pullToRefresh": Object { + "pullToRefresh": { "offset": 100, }, "route": "", diff --git a/packages/uni-i18n/__tests__/__snapshots__/json.spec.ts.snap b/packages/uni-i18n/__tests__/__snapshots__/json.spec.ts.snap index 184b10ad3e9..5114ea7e11d 100644 --- a/packages/uni-i18n/__tests__/__snapshots__/json.spec.ts.snap +++ b/packages/uni-i18n/__tests__/__snapshots__/json.spec.ts.snap @@ -2,76 +2,76 @@ exports[`compileI18nJsonStr androidPrivacy.json 1`] = ` "{ - \\"version\\": \\"1\\", - \\"prompt\\": \\"template\\", - \\"title\\": \\"服务协议和隐私政策\\", - \\"message\\": \\"  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\\\\\\"\\\\\\">《服务协议》</a>和<a href=\\\\\\"\\\\\\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。\\", - \\"buttonAccept\\": \\"同意并接受\\", - \\"buttonRefuse\\": \\"暂不同意\\", - \\"second\\": { - \\"title\\": \\"确认提示\\", - \\"message\\": \\"  进入应用前,你需先同意<a href=\\\\\\"\\\\\\">《服务协议》</a>和<a href=\\\\\\"\\\\\\">《隐私政策》</a>,否则将退出应用。\\", - \\"buttonAccept\\": \\"同意并继续\\", - \\"buttonRefuse\\": \\"退出应用\\", - \\"titleLocales\\": { - \\"zh-Hans\\": \\"确认提示\\", - \\"en\\": \\"confirm\\" + "version": "1", + "prompt": "template", + "title": "服务协议和隐私政策", + "message": "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\\"\\">《服务协议》</a>和<a href=\\"\\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", + "buttonAccept": "同意并接受", + "buttonRefuse": "暂不同意", + "second": { + "title": "确认提示", + "message": "  进入应用前,你需先同意<a href=\\"\\">《服务协议》</a>和<a href=\\"\\">《隐私政策》</a>,否则将退出应用。", + "buttonAccept": "同意并继续", + "buttonRefuse": "退出应用", + "titleLocales": { + "zh-Hans": "确认提示", + "en": "confirm" } }, - \\"styles\\": { - \\"backgroundColor\\": \\"#00FF00\\", - \\"borderRadius\\": \\"5px\\", - \\"title\\": { - \\"color\\": \\"#ff00ff\\", - \\"colorLocales\\": { - \\"zh-Hans\\": \\"#ff00ff\\", - \\"en\\": \\"#ff00ff\\" + "styles": { + "backgroundColor": "#00FF00", + "borderRadius": "5px", + "title": { + "color": "#ff00ff", + "colorLocales": { + "zh-Hans": "#ff00ff", + "en": "#ff00ff" } }, - \\"buttonAccept\\": { - \\"color\\": \\"#ffff00\\" + "buttonAccept": { + "color": "#ffff00" }, - \\"buttonRefuse\\": { - \\"color\\": \\"#00ffff\\" + "buttonRefuse": { + "color": "#00ffff" } }, - \\"titleLocales\\": { - \\"zh-Hans\\": \\"服务协议和隐私政策\\", - \\"en\\": \\"Privacy\\" + "titleLocales": { + "zh-Hans": "服务协议和隐私政策", + "en": "Privacy" }, - \\"messageLocales\\": { - \\"zh-Hans\\": \\"  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\\\\\\"\\\\\\">《服务协议》</a>和<a href=\\\\\\"\\\\\\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。\\", - \\"en\\": \\"  privacy\\" + "messageLocales": { + "zh-Hans": "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\\"\\">《服务协议》</a>和<a href=\\"\\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", + "en": "  privacy" }, - \\"buttonAcceptLocales\\": { - \\"zh-Hans\\": \\"同意并接受\\", - \\"en\\": \\"accept\\" + "buttonAcceptLocales": { + "zh-Hans": "同意并接受", + "en": "accept" }, - \\"buttonRefuseLocales\\": { - \\"zh-Hans\\": \\"暂不同意\\", - \\"en\\": \\"refuse\\" + "buttonRefuseLocales": { + "zh-Hans": "暂不同意", + "en": "refuse" } }" `; exports[`compileI18nJsonStr pages.json->tabBar 1`] = ` "{ - \\"color\\": \\"#7A7E83\\", - \\"selectedColor\\": \\"#007AFF\\", - \\"borderStyle\\": \\"black\\", - \\"backgroundColor\\": \\"#f8f8f8\\", - \\"list\\": [ + "color": "#7A7E83", + "selectedColor": "#007AFF", + "borderStyle": "black", + "backgroundColor": "#f8f8f8", + "list": [ { - \\"pagePath\\": \\"pages/tabBar/component/component\\", - \\"iconPath\\": \\"static/component.png\\", - \\"selectedIconPath\\": \\"static/componentHL.png\\", - \\"text\\": \\"组件\\" + "pagePath": "pages/tabBar/component/component", + "iconPath": "static/component.png", + "selectedIconPath": "static/componentHL.png", + "text": "组件" }, { - \\"pagePath\\": \\"pages/tabBar/API/API\\", - \\"iconPath\\": \\"static/api.png\\", - \\"selectedIconPath\\": \\"static/apiHL.png\\", - \\"text\\": \\"接口\\" + "pagePath": "pages/tabBar/API/API", + "iconPath": "static/api.png", + "selectedIconPath": "static/apiHL.png", + "text": "接口" } ] }" @@ -79,35 +79,35 @@ exports[`compileI18nJsonStr pages.json->tabBar 1`] = ` exports[`compileI18nJsonStr pages.json->tabBar with multi language 1`] = ` "{ - \\"color\\": \\"#7A7E83\\", - \\"selectedColor\\": \\"#007AFF\\", - \\"borderStyle\\": \\"black\\", - \\"backgroundColor\\": \\"#f8f8f8\\", - \\"list\\": [ + "color": "#7A7E83", + "selectedColor": "#007AFF", + "borderStyle": "black", + "backgroundColor": "#f8f8f8", + "list": [ { - \\"pagePath\\": \\"pages/tabBar/component/component\\", - \\"iconPath\\": \\"static/component.png\\", - \\"selectedIconPath\\": \\"static/componentHL.png\\", - \\"text\\": \\"组件\\", - \\"textLocales\\": { - \\"zh-Hans\\": \\"组件\\", - \\"en\\": \\"Component\\" + "pagePath": "pages/tabBar/component/component", + "iconPath": "static/component.png", + "selectedIconPath": "static/componentHL.png", + "text": "组件", + "textLocales": { + "zh-Hans": "组件", + "en": "Component" } }, { - \\"pagePath\\": \\"pages/tabBar/API/API\\", - \\"iconPath\\": \\"static/api.png\\", - \\"selectedIconPath\\": \\"static/apiHL.png\\", - \\"text\\": \\"接口\\", - \\"textLocales\\": { - \\"zh-Hans\\": \\"接口\\", - \\"en\\": \\"API\\" + "pagePath": "pages/tabBar/API/API", + "iconPath": "static/api.png", + "selectedIconPath": "static/apiHL.png", + "text": "接口", + "textLocales": { + "zh-Hans": "接口", + "en": "API" } } ], - \\"backgroundColorLocales\\": { - \\"zh-Hans\\": \\"#f8f8f8\\", - \\"en\\": \\"#f6f6f6\\" + "backgroundColorLocales": { + "zh-Hans": "#f8f8f8", + "en": "#f6f6f6" } }" `; diff --git a/packages/uni-stacktracey/__tests__/__snapshots__/codeFrame.spec.ts.snap b/packages/uni-stacktracey/__tests__/__snapshots__/codeFrame.spec.ts.snap index 18ef742fc76..5ef87dc662a 100644 --- a/packages/uni-stacktracey/__tests__/__snapshots__/codeFrame.spec.ts.snap +++ b/packages/uni-stacktracey/__tests__/__snapshots__/codeFrame.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`code-frame generateCodeFrame 1`] = ` -Object { +{ "code": "36 | */ 37 | const MEDIA_PROJECTIONS_API_16 = arrayOf( 38 | MediaStore.Images.ImageColumns.DATA, @@ -17,7 +17,7 @@ Object { `; exports[`code-frame generateCodeFrame 2`] = ` -Object { +{ "code": "76 | } 77 | lastFileObserverTime = System.currentTimeMillis() 78 | listenOption!.onImageCatchChange(newPath) @@ -33,7 +33,7 @@ Object { `; exports[`code-frame generateCodeFrame 3`] = ` -Object { +{ "code": "124| 125| 126| if (cursor == null) { @@ -49,7 +49,7 @@ Object { `; exports[`code-frame generateCodeFrame 4`] = ` -Object { +{ "code": "133| 134| // 获取各列的索引 135| let dataIndex = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA) @@ -65,7 +65,7 @@ Object { `; exports[`code-frame generateCodeFrame 5`] = ` -Object { +{ "code": "141| let data = cursor.getString(dataIndex) 142| let dateTaken = cursor.getLong(dateTakenIndex) 143| let width = 0; @@ -81,7 +81,7 @@ Object { `; exports[`code-frame generateCodeFrame 6`] = ` -Object { +{ "code": "142| let dateTaken = cursor.getLong(dateTakenIndex) 143| let width = 0; 144| let height = 0; @@ -97,7 +97,7 @@ Object { `; exports[`code-frame generateCodeFrame 7`] = ` -Object { +{ "code": "180| if (checkScreenShot(data, dateTaken, width, height)) { 181| if (!checkCallback(data)) { 182| listenOption!.onImageCatchChange(data) @@ -113,7 +113,7 @@ Object { `; exports[`code-frame generateCodeFrame 8`] = ` -Object { +{ "code": "248| try { 249| let windowManager = getUniActivity()!.getSystemService(Context.WINDOW_SERVICE) as WindowManager 250| let defaultDisplay = windowManager.defaultDisplay @@ -129,7 +129,7 @@ Object { `; exports[`code-frame generateCodeFrame 9`] = ` -Object { +{ "code": "249| let windowManager = getUniActivity()!.getSystemService(Context.WINDOW_SERVICE) as WindowManager 250| let defaultDisplay = windowManager.defaultDisplay 251| defaultDisplay.getRealSize(screenSize) @@ -145,7 +145,7 @@ Object { `; exports[`code-frame generateCodeFrame 10`] = ` -Object { +{ "code": "308| var directory_screenshot: File; 309| 310| var directory_pictures = File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_PICTURES); @@ -161,13 +161,13 @@ Object { `; exports[`code-frame generateCodeFrame 11`] = ` -Object { +{ "code": "309| 310| var directory_pictures = File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_PICTURES); 311| var directory_dcim = File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM); | ^ 312| -313| if (Build.MANUFACTURER.equals(\\"Xiaomi\\", true)) {", +313| if (Build.MANUFACTURER.equals("Xiaomi", true)) {", "column": 42, "file": "uni_modules/uts-screenshot-listener/utssdk/app-android/index.uts", "line": 311, @@ -177,7 +177,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 1`] = ` -Object { +{ "code": "36 | */ 37 | const MEDIA_PROJECTIONS_API_16 = arrayOf( 38 | MediaStore.Images.ImageColumns.DATA, @@ -193,7 +193,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 2`] = ` -Object { +{ "code": "76 | } 77 | lastFileObserverTime = System.currentTimeMillis() 78 | listenOption!.onImageCatchChange(newPath) @@ -209,7 +209,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 3`] = ` -Object { +{ "code": "124| 125| 126| if (cursor == null) { @@ -225,7 +225,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 4`] = ` -Object { +{ "code": "133| 134| // 获取各列的索引 135| let dataIndex = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA) @@ -241,7 +241,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 5`] = ` -Object { +{ "code": "141| let data = cursor.getString(dataIndex) 142| let dateTaken = cursor.getLong(dateTakenIndex) 143| let width = 0; @@ -257,7 +257,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 6`] = ` -Object { +{ "code": "142| let dateTaken = cursor.getLong(dateTakenIndex) 143| let width = 0; 144| let height = 0; @@ -273,7 +273,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 7`] = ` -Object { +{ "code": "180| if (checkScreenShot(data, dateTaken, width, height)) { 181| if (!checkCallback(data)) { 182| listenOption!.onImageCatchChange(data) @@ -289,7 +289,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 8`] = ` -Object { +{ "code": "248| try { 249| let windowManager = getUniActivity()!.getSystemService(Context.WINDOW_SERVICE) as WindowManager 250| let defaultDisplay = windowManager.defaultDisplay @@ -305,7 +305,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 9`] = ` -Object { +{ "code": "249| let windowManager = getUniActivity()!.getSystemService(Context.WINDOW_SERVICE) as WindowManager 250| let defaultDisplay = windowManager.defaultDisplay 251| defaultDisplay.getRealSize(screenSize) @@ -321,7 +321,7 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 10`] = ` -Object { +{ "code": "308| var directory_screenshot: File; 309| 310| var directory_pictures = File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_PICTURES); @@ -337,13 +337,13 @@ Object { `; exports[`code-frame generateCodeFrameWithSourceMapPath 11`] = ` -Object { +{ "code": "309| 310| var directory_pictures = File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_PICTURES); 311| var directory_dcim = File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM); | ^ 312| -313| if (Build.MANUFACTURER.equals(\\"Xiaomi\\", true)) {", +313| if (Build.MANUFACTURER.equals("Xiaomi", true)) {", "column": 42, "file": "uni_modules/uts-screenshot-listener/utssdk/app-android/index.uts", "line": 311, diff --git a/packages/uni-uts-v1/__tests__/__snapshots__/code.spec.ts.snap b/packages/uni-uts-v1/__tests__/__snapshots__/code.spec.ts.snap index 1b78dcb287f..ce70b70367f 100644 --- a/packages/uni-uts-v1/__tests__/__snapshots__/code.spec.ts.snap +++ b/packages/uni-uts-v1/__tests__/__snapshots__/code.spec.ts.snap @@ -7,7 +7,7 @@ const name = 'test-uts' const is_uni_modules = false const pkg = initUtsPackageName(name, is_uni_modules) const cls = initUtsIndexClassName(name, is_uni_modules) -export const onMemoryWarning = initUtsProxyFunction(false, { main: true, package: pkg, class: cls, name: 'onMemoryWarning', params: [{\\"name\\":\\"callback\\",\\"type\\":\\"UTSCallback\\"}]}) -export const offMemoryWarning = initUtsProxyFunction(false, { main: true, package: pkg, class: cls, name: 'offMemoryWarning', params: [{\\"name\\":\\"callback\\",\\"type\\":\\"UTSCallback\\",\\"default\\":\\"UTSNull\\"}]}) +export const onMemoryWarning = initUtsProxyFunction(false, { main: true, package: pkg, class: cls, name: 'onMemoryWarning', params: [{"name":"callback","type":"UTSCallback"}]}) +export const offMemoryWarning = initUtsProxyFunction(false, { main: true, package: pkg, class: cls, name: 'offMemoryWarning', params: [{"name":"callback","type":"UTSCallback","default":"UTSNull"}]}) " `; diff --git a/packages/uni-uts-v1/package.json b/packages/uni-uts-v1/package.json index dc91c918502..5b528d6c8bd 100644 --- a/packages/uni-uts-v1/package.json +++ b/packages/uni-uts-v1/package.json @@ -23,10 +23,11 @@ "fast-glob": "^3.2.11", "fs-extra": "^10.0.0", "jsonc-parser": "^3.0.0", + "md5-file": "^5.0.0", "source-map": "^0.7.4" }, "devDependencies": { "@types/adm-zip": "^0.5.0", "@types/fs-extra": "^9.0.13" } -} +} \ No newline at end of file diff --git a/packages/uni-uts-v1/src/manifest.ts b/packages/uni-uts-v1/src/manifest.ts new file mode 100644 index 00000000000..8d2edb987c1 --- /dev/null +++ b/packages/uni-uts-v1/src/manifest.ts @@ -0,0 +1,7 @@ +import md5 from 'md5-file' +import glob from 'fast-glob' +import { normalizePath } from './shared' +export async function genManifest(pluginDir: string) { + const files = await glob(normalizePath(pluginDir) + '/**/*') + await Promise.all(files.map((file) => md5(file))) +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c8df0d6b551..e45c0a9e9b7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,7 +9,7 @@ importers: '@dcloudio/types': ^3.0.19 '@dcloudio/uni-api': 3.0.0-alpha-3060920221117001 '@dcloudio/uni-app': 3.0.0-alpha-3060920221117001 - '@jest/types': ^27.0.2 + '@jest/types': ^29.0.3 '@microsoft/api-extractor': ^7.30.0 '@rollup/plugin-alias': ^3.1.1 '@rollup/plugin-babel': ^5.3.0 @@ -18,7 +18,7 @@ importers: '@rollup/plugin-node-resolve': ^11.0.1 '@rollup/plugin-replace': ^2.3.4 '@rollup/plugin-strip': ^2.0.0 - '@types/jest': ^27.0.0 + '@types/jest': ^29.2.3 '@types/node': ^18.11.9 '@typescript-eslint/parser': ^5.14.0 '@vitejs/plugin-vue': ^3.2.0 @@ -33,7 +33,7 @@ importers: eslint: ^7.17.0 execa: ^5.1.1 fs-extra: ^10.0.0 - jest: ^27.0.6 + jest: ^29.3.1 lint-staged: ^10.5.3 mini-types: ^0.1.7 minimist: ^1.2.5 @@ -50,7 +50,7 @@ importers: semver: ^7.3.5 simple-git-hooks: ^2.8.0 terser: ^5.4.0 - ts-jest: ^27.0.3 + ts-jest: ^29.0.3 typescript: ^4.9.3 vite: 3.2.4 vue: 3.2.45 @@ -62,7 +62,7 @@ importers: '@dcloudio/types': 3.0.19 '@dcloudio/uni-api': link:packages/uni-api '@dcloudio/uni-app': link:packages/uni-app - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 '@microsoft/api-extractor': 7.33.5 '@rollup/plugin-alias': [email protected] '@rollup/plugin-babel': 5.3.1_vyv4jbhmcriklval33ak5sngky @@ -71,7 +71,7 @@ importers: '@rollup/plugin-node-resolve': [email protected] '@rollup/plugin-replace': [email protected] '@rollup/plugin-strip': [email protected] - '@types/jest': 27.5.2 + '@types/jest': 29.2.3 '@types/node': 18.11.9 '@typescript-eslint/parser': 5.41.0_77fvizpdb3y4icyeo2mf4eo7em '@vitejs/plugin-vue': [email protected][email protected] @@ -86,7 +86,7 @@ importers: eslint: 7.32.0 execa: 5.1.1 fs-extra: 10.1.0 - jest: 27.5.1 + jest: 29.3.1_@[email protected] lint-staged: 10.5.4 mini-types: 0.1.7 minimist: 1.2.7 @@ -103,7 +103,7 @@ importers: semver: 7.3.8 simple-git-hooks: 2.8.1 terser: 5.15.1 - ts-jest: 27.1.5_fesd52x37fu43qoym53anl3og4 + ts-jest: 29.0.3_c5lclmmvqlgvy4zamtxd3isbo4 typescript: 4.9.3 vite: 3.2.4_vt5mbdnyaskrzqlb5l6kjsnhi4 vue: 3.2.45 @@ -810,6 +810,7 @@ importers: fast-glob: ^3.2.11 fs-extra: ^10.0.0 jsonc-parser: ^3.0.0 + md5-file: ^5.0.0 source-map: ^0.7.4 dependencies: '@dcloudio/uts': link:../uts @@ -818,6 +819,7 @@ importers: fast-glob: 3.2.12 fs-extra: 10.1.0 jsonc-parser: 3.2.0 + md5-file: 5.0.0 source-map: 0.7.4 devDependencies: '@types/adm-zip': 0.5.0 @@ -2284,97 +2286,114 @@ packages: engines: {node: '>=8'} dev: true - /@jest/console/27.5.1: - resolution: {integrity: sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/console/29.3.1: + resolution: {integrity: sha512-IRE6GD47KwcqA09RIWrabKdHPiKDGgtAL31xDxbi/RjQMsr+lY+ppxmHwY0dUEV3qvvxZzoe5Hl0RXZJOjQNUg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 chalk: 4.1.2 - jest-message-util: 27.5.1 - jest-util: 27.5.1 + jest-message-util: 29.3.1 + jest-util: 29.3.1 slash: 3.0.0 dev: true - /@jest/core/27.5.1: - resolution: {integrity: sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/core/29.3.1: + resolution: {integrity: sha512-0ohVjjRex985w5MmO5L3u5GR1O30DexhBSpuwx2P+9ftyqHdJXnk7IUWiP80oHMvt7ubHCJHxV0a0vlKVuZirw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true dependencies: - '@jest/console': 27.5.1 - '@jest/reporters': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 + '@jest/console': 29.3.1 + '@jest/reporters': 29.3.1 + '@jest/test-result': 29.3.1 + '@jest/transform': 29.3.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 ansi-escapes: 4.3.2 chalk: 4.1.2 - emittery: 0.8.1 + ci-info: 3.5.0 exit: 0.1.2 graceful-fs: 4.2.10 - jest-changed-files: 27.5.1 - jest-config: 27.5.1 - jest-haste-map: 27.5.1 - jest-message-util: 27.5.1 - jest-regex-util: 27.5.1 - jest-resolve: 27.5.1 - jest-resolve-dependencies: 27.5.1 - jest-runner: 27.5.1 - jest-runtime: 27.5.1 - jest-snapshot: 27.5.1 - jest-util: 27.5.1 - jest-validate: 27.5.1 - jest-watcher: 27.5.1 + jest-changed-files: 29.2.0 + jest-config: 29.3.1_@[email protected] + jest-haste-map: 29.3.1 + jest-message-util: 29.3.1 + jest-regex-util: 29.2.0 + jest-resolve: 29.3.1 + jest-resolve-dependencies: 29.3.1 + jest-runner: 29.3.1 + jest-runtime: 29.3.1 + jest-snapshot: 29.3.1 + jest-util: 29.3.1 + jest-validate: 29.3.1 + jest-watcher: 29.3.1 micromatch: 4.0.5 - rimraf: 3.0.2 + pretty-format: 29.3.1 slash: 3.0.0 strip-ansi: 6.0.1 transitivePeerDependencies: - - bufferutil - - canvas - supports-color - ts-node - - utf-8-validate dev: true - /@jest/environment/27.5.1: - resolution: {integrity: sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/environment/29.3.1: + resolution: {integrity: sha512-pMmvfOPmoa1c1QpfFW0nXYtNLpofqo4BrCIk6f2kW4JFeNlHV2t3vd+3iDLf31e2ot2Mec0uqZfmI+U0K2CFag==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/fake-timers': 27.5.1 - '@jest/types': 27.5.1 + '@jest/fake-timers': 29.3.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 - jest-mock: 27.5.1 + jest-mock: 29.3.1 + dev: true + + /@jest/expect-utils/29.3.1: + resolution: {integrity: sha512-wlrznINZI5sMjwvUoLVk617ll/UYfGIZNxmbU+Pa7wmkL4vYzhV9R2pwVqUh4NWWuLQWkI8+8mOkxs//prKQ3g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + jest-get-type: 29.2.0 + dev: true + + /@jest/expect/29.3.1: + resolution: {integrity: sha512-QivM7GlSHSsIAWzgfyP8dgeExPRZ9BIe2LsdPyEhCGkZkoyA+kGsoIzbKAfZCvvRzfZioKwPtCZIt5SaoxYCvg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + expect: 29.3.1 + jest-snapshot: 29.3.1 + transitivePeerDependencies: + - supports-color dev: true - /@jest/fake-timers/27.5.1: - resolution: {integrity: sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/fake-timers/29.3.1: + resolution: {integrity: sha512-iHTL/XpnDlFki9Tq0Q1GGuVeQ8BHZGIYsvCO5eN/O/oJaRzofG9Xndd9HuSDBI/0ZS79pg0iwn07OMTQ7ngF2A==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 - '@sinonjs/fake-timers': 8.1.0 + '@jest/types': 29.3.1 + '@sinonjs/fake-timers': 9.1.2 '@types/node': 18.11.9 - jest-message-util: 27.5.1 - jest-mock: 27.5.1 - jest-util: 27.5.1 + jest-message-util: 29.3.1 + jest-mock: 29.3.1 + jest-util: 29.3.1 dev: true - /@jest/globals/27.5.1: - resolution: {integrity: sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/globals/29.3.1: + resolution: {integrity: sha512-cTicd134vOcwO59OPaB6AmdHQMCtWOe+/DitpTZVxWgMJ+YvXL1HNAmPyiGbSHmF/mXVBkvlm8YYtQhyHPnV6Q==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/environment': 27.5.1 - '@jest/types': 27.5.1 - expect: 27.5.1 + '@jest/environment': 29.3.1 + '@jest/expect': 29.3.1 + '@jest/types': 29.3.1 + jest-mock: 29.3.1 + transitivePeerDependencies: + - supports-color dev: true - /@jest/reporters/27.5.1: - resolution: {integrity: sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/reporters/29.3.1: + resolution: {integrity: sha512-GhBu3YFuDrcAYW/UESz1JphEAbvUjaY2vShRZRoRY1mxpCMB3yGSJ4j9n0GxVlEOdCf7qjvUfBCrTUUqhVfbRA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: @@ -2382,10 +2401,11 @@ packages: optional: true dependencies: '@bcoe/v8-coverage': 0.2.3 - '@jest/console': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 + '@jest/console': 29.3.1 + '@jest/test-result': 29.3.1 + '@jest/transform': 29.3.1 + '@jest/types': 29.3.1 + '@jridgewell/trace-mapping': 0.3.17 '@types/node': 18.11.9 chalk: 4.1.2 collect-v8-coverage: 1.0.1 @@ -2397,81 +2417,85 @@ packages: istanbul-lib-report: 3.0.0 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.5 - jest-haste-map: 27.5.1 - jest-resolve: 27.5.1 - jest-util: 27.5.1 - jest-worker: 27.5.1 + jest-message-util: 29.3.1 + jest-util: 29.3.1 + jest-worker: 29.3.1 slash: 3.0.0 - source-map: 0.6.1 string-length: 4.0.2 - terminal-link: 2.1.1 - v8-to-istanbul: 8.1.1 + strip-ansi: 6.0.1 + v8-to-istanbul: 9.0.1 transitivePeerDependencies: - supports-color dev: true - /@jest/source-map/27.5.1: - resolution: {integrity: sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/schemas/29.0.0: + resolution: {integrity: sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@sinclair/typebox': 0.24.51 + dev: true + + /@jest/source-map/29.2.0: + resolution: {integrity: sha512-1NX9/7zzI0nqa6+kgpSdKPK+WU1p+SJk3TloWZf5MzPbxri9UEeXX5bWZAPCzbQcyuAzubcdUHA7hcNznmRqWQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: + '@jridgewell/trace-mapping': 0.3.17 callsites: 3.1.0 graceful-fs: 4.2.10 - source-map: 0.6.1 dev: true - /@jest/test-result/27.5.1: - resolution: {integrity: sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/test-result/29.3.1: + resolution: {integrity: sha512-qeLa6qc0ddB0kuOZyZIhfN5q0e2htngokyTWsGriedsDhItisW7SDYZ7ceOe57Ii03sL988/03wAcBh3TChMGw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/console': 27.5.1 - '@jest/types': 27.5.1 + '@jest/console': 29.3.1 + '@jest/types': 29.3.1 '@types/istanbul-lib-coverage': 2.0.4 collect-v8-coverage: 1.0.1 dev: true - /@jest/test-sequencer/27.5.1: - resolution: {integrity: sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/test-sequencer/29.3.1: + resolution: {integrity: sha512-IqYvLbieTv20ArgKoAMyhLHNrVHJfzO6ARZAbQRlY4UGWfdDnLlZEF0BvKOMd77uIiIjSZRwq3Jb3Fa3I8+2UA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/test-result': 27.5.1 + '@jest/test-result': 29.3.1 graceful-fs: 4.2.10 - jest-haste-map: 27.5.1 - jest-runtime: 27.5.1 - transitivePeerDependencies: - - supports-color + jest-haste-map: 29.3.1 + slash: 3.0.0 dev: true - /@jest/transform/27.5.1: - resolution: {integrity: sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/transform/29.3.1: + resolution: {integrity: sha512-8wmCFBTVGYqFNLWfcOWoVuMuKYPUBTnTMDkdvFtAYELwDOl9RGwOsvQWGPFxDJ8AWY9xM/8xCXdqmPK3+Q5Lug==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@babel/core': 7.19.6 - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 + '@jridgewell/trace-mapping': 0.3.17 babel-plugin-istanbul: 6.1.1 chalk: 4.1.2 - convert-source-map: 1.9.0 + convert-source-map: 2.0.0 fast-json-stable-stringify: 2.1.0 graceful-fs: 4.2.10 - jest-haste-map: 27.5.1 - jest-regex-util: 27.5.1 - jest-util: 27.5.1 + jest-haste-map: 29.3.1 + jest-regex-util: 29.2.0 + jest-util: 29.3.1 micromatch: 4.0.5 pirates: 4.0.5 slash: 3.0.0 - source-map: 0.6.1 - write-file-atomic: 3.0.3 + write-file-atomic: 4.0.2 transitivePeerDependencies: - supports-color dev: true - /@jest/types/27.5.1: - resolution: {integrity: sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /@jest/types/29.3.1: + resolution: {integrity: sha512-d0S0jmmTpjnhCmNpApgX3jrUZgZ22ivKJRvL2lli5hpCRoNnp1f85r2/wpKfXuYu8E7Jjh1hGfhPyup1NM5AmA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: + '@jest/schemas': 29.0.0 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 '@types/node': 18.11.9 - '@types/yargs': 16.0.4 + '@types/yargs': 17.0.13 chalk: 4.1.2 dev: true @@ -2717,23 +2741,22 @@ packages: string-argv: 0.3.1 dev: true + /@sinclair/typebox/0.24.51: + resolution: {integrity: sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==} + dev: true + /@sinonjs/commons/1.8.3: resolution: {integrity: sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==} dependencies: type-detect: 4.0.8 dev: true - /@sinonjs/fake-timers/8.1.0: - resolution: {integrity: sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==} + /@sinonjs/fake-timers/9.1.2: + resolution: {integrity: sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==} dependencies: '@sinonjs/commons': 1.8.3 dev: true - /@tootallnate/once/1.1.2: - resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} - engines: {node: '>= 6'} - dev: true - /@types/adm-zip/0.5.0: resolution: {integrity: sha512-FCJBJq9ODsQZUNURo5ILAQueuA8WJhRvuihS3ke2iI25mJlfV2LK8jG2Qj2z2AWg8U0FtWWqBHVRetceLskSaw==} dependencies: @@ -2857,11 +2880,11 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: true - /@types/jest/27.5.2: - resolution: {integrity: sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==} + /@types/jest/29.2.3: + resolution: {integrity: sha512-6XwoEbmatfyoCjWRX7z0fKMmgYKe9+/HrviJ5k0X/tjJWHGAezZOfYaxqQKuzG/TvQyr+ktjm4jgbk0s4/oF2w==} dependencies: - jest-matcher-utils: 27.5.1 - pretty-format: 27.5.1 + expect: 29.3.1 + pretty-format: 29.3.1 dev: true /@types/less/3.0.3: @@ -2966,8 +2989,8 @@ packages: resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} dev: true - /@types/yargs/16.0.4: - resolution: {integrity: sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==} + /@types/yargs/17.0.13: + resolution: {integrity: sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg==} dependencies: '@types/yargs-parser': 21.0.0 dev: true @@ -3261,10 +3284,6 @@ packages: /@vue/shared/3.2.45: resolution: {integrity: sha512-Ewzq5Yhimg7pSztDV+RH1UDKBzmtqieXQlpTVm2AwraoRL/Rks96mvd8Vgi7Lj+h+TH8dv7mXD3FRZR3TUvbSg==} - /abab/2.0.6: - resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} - dev: true - /abstract-leveldown/0.12.4: resolution: {integrity: sha512-TOod9d5RDExo6STLMGa+04HGkl+TlMfbDnTyN93/ETJ9DpQ0DaYLqcMZlbXvdc4W3vVo1Qrl+WhSp8zvDsJ+jA==} dependencies: @@ -3278,13 +3297,6 @@ packages: mime-types: 2.1.35 negotiator: 0.6.3 - /acorn-globals/6.0.0: - resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==} - dependencies: - acorn: 7.4.1 - acorn-walk: 7.2.0 - dev: true - /acorn-jsx/[email protected]: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -3300,11 +3312,6 @@ packages: acorn: 8.8.1 dev: true - /acorn-walk/7.2.0: - resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} - engines: {node: '>=0.4.0'} - dev: true - /acorn-walk/8.2.0: resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} engines: {node: '>=0.4.0'} @@ -3337,15 +3344,6 @@ packages: engines: {node: '>=6.0'} dev: false - /agent-base/6.0.2: - resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} - engines: {node: '>= 6.0.0'} - dependencies: - debug: 4.3.4 - transitivePeerDependencies: - - supports-color - dev: true - /aggregate-error/3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} @@ -3494,18 +3492,17 @@ packages: resolution: {integrity: sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==} dev: true - /babel-jest/27.5.1_@[email protected]: - resolution: {integrity: sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /babel-jest/29.3.1_@[email protected]: + resolution: {integrity: sha512-aard+xnMoxgjwV70t0L6wkW/3HQQtV+O0PEimxKgzNqCJnbYmroPojdP2tqKSOAt8QAKV/uSZU8851M7B5+fcA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@babel/core': ^7.8.0 dependencies: '@babel/core': 7.19.6 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 + '@jest/transform': 29.3.1 '@types/babel__core': 7.1.19 babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 27.5.1_@[email protected] + babel-preset-jest: 29.2.0_@[email protected] chalk: 4.1.2 graceful-fs: 4.2.10 slash: 3.0.0 @@ -3526,9 +3523,9 @@ packages: - supports-color dev: true - /babel-plugin-jest-hoist/27.5.1: - resolution: {integrity: sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /babel-plugin-jest-hoist/29.2.0: + resolution: {integrity: sha512-TnspP2WNiR3GLfCsUNHqeXw0RoQ2f9U5hQ5L3XFpwuO8htQmSrhh8qsB6vi5Yi8+kuynN1yjDjQsPfkebmB6ZA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@babel/template': 7.18.10 '@babel/types': 7.20.0 @@ -3592,14 +3589,14 @@ packages: '@babel/plugin-syntax-top-level-await': 7.14.5_@[email protected] dev: true - /babel-preset-jest/27.5.1_@[email protected]: - resolution: {integrity: sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /babel-preset-jest/29.2.0_@[email protected]: + resolution: {integrity: sha512-z9JmMJppMxNv8N7fNRHvhMg9cvIkMxQBXgFkane3yKVEvEOP+kB50lk8DFRvF9PGqbyXxlmebKWhuDORO8RgdA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.19.6 - babel-plugin-jest-hoist: 27.5.1 + babel-plugin-jest-hoist: 29.2.0 babel-preset-current-node-syntax: 1.0.1_@[email protected] dev: true @@ -3685,10 +3682,6 @@ packages: resolution: {integrity: sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==} dev: true - /browser-process-hrtime/1.0.0: - resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} - dev: true - /browserify-aes/1.2.0: resolution: {integrity: sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==} dependencies: @@ -3932,8 +3925,9 @@ packages: string-width: 4.2.3 dev: true - /cliui/7.0.4: - resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + /cliui/8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} dependencies: string-width: 4.2.3 strip-ansi: 6.0.1 @@ -4065,6 +4059,10 @@ packages: /convert-source-map/1.9.0: resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} + /convert-source-map/2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + dev: true + /cookie-signature/1.0.6: resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} dev: false @@ -4208,21 +4206,6 @@ packages: hasBin: true dev: false - /cssom/0.3.8: - resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} - dev: true - - /cssom/0.4.4: - resolution: {integrity: sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==} - dev: true - - /cssstyle/2.3.0: - resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} - engines: {node: '>=8'} - dependencies: - cssom: 0.3.8 - dev: true - /csstype/2.6.21: resolution: {integrity: sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==} @@ -4283,15 +4266,6 @@ packages: assert-plus: 1.0.0 dev: true - /data-urls/2.0.0: - resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==} - engines: {node: '>=10'} - dependencies: - abab: 2.0.6 - whatwg-mimetype: 2.3.0 - whatwg-url: 8.7.0 - dev: true - /dayjs/1.11.6: resolution: {integrity: sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ==} dev: true @@ -4342,10 +4316,6 @@ packages: supports-color: 8.1.1 dev: true - /decimal.js/10.4.2: - resolution: {integrity: sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA==} - dev: true - /dedent/0.7.0: resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==} dev: true @@ -4397,9 +4367,9 @@ packages: engines: {node: '>=8'} dev: true - /diff-sequences/27.5.1: - resolution: {integrity: sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /diff-sequences/29.3.1: + resolution: {integrity: sha512-hlM3QR272NXCi4pq+N4Kok4kOp6EsgOM3ZSpJI7Da3UAs+Ttsi8MRmB6trM/lhyzUxGfOgnpkHtgqm5Q/CTcfQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true /diffie-hellman/5.0.3: @@ -4424,13 +4394,6 @@ packages: esutils: 2.0.3 dev: true - /domexception/2.0.1: - resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==} - engines: {node: '>=8'} - dependencies: - webidl-conversions: 5.0.0 - dev: true - /ecc-jsbn/0.1.2: resolution: {integrity: sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==} dependencies: @@ -4456,9 +4419,9 @@ packages: minimalistic-crypto-utils: 1.0.1 dev: true - /emittery/0.8.1: - resolution: {integrity: sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==} - engines: {node: '>=10'} + /emittery/0.13.1: + resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} + engines: {node: '>=12'} dev: true /emoji-regex/8.0.0: @@ -4709,19 +4672,6 @@ packages: engines: {node: '>=10'} dev: true - /escodegen/2.0.0: - resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==} - engines: {node: '>=6.0'} - hasBin: true - dependencies: - esprima: 4.0.1 - estraverse: 5.3.0 - esutils: 2.0.3 - optionator: 0.8.3 - optionalDependencies: - source-map: 0.6.1 - dev: true - /eslint-scope/5.1.1: resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} engines: {node: '>=8.0.0'} @@ -4929,14 +4879,15 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /expect/27.5.1: - resolution: {integrity: sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /expect/29.3.1: + resolution: {integrity: sha512-gGb1yTgU30Q0O/tQq+z30KBWv24ApkMgFUpvKBkyLUBL68Wv8dHdJxTBZFl/iT8K/bqDHvUYRH6IIN3rToopPA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 - jest-get-type: 27.5.1 - jest-matcher-utils: 27.5.1 - jest-message-util: 27.5.1 + '@jest/expect-utils': 29.3.1 + jest-get-type: 29.2.0 + jest-matcher-utils: 29.3.1 + jest-message-util: 29.3.1 + jest-util: 29.3.1 dev: true /express/4.18.2: @@ -5121,15 +5072,6 @@ packages: mime-types: 2.1.35 dev: true - /form-data/3.0.1: - resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} - engines: {node: '>= 6'} - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - dev: true - /forwarded/0.2.0: resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} engines: {node: '>= 0.6'} @@ -5359,13 +5301,6 @@ packages: minimalistic-crypto-utils: 1.0.1 dev: true - /html-encoding-sniffer/2.0.1: - resolution: {integrity: sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==} - engines: {node: '>=10'} - dependencies: - whatwg-encoding: 1.0.5 - dev: true - /html-escaper/2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} dev: true @@ -5384,17 +5319,6 @@ packages: statuses: 2.0.1 toidentifier: 1.0.1 - /http-proxy-agent/4.0.1: - resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==} - engines: {node: '>= 6'} - dependencies: - '@tootallnate/once': 1.1.2 - agent-base: 6.0.2 - debug: 4.3.4 - transitivePeerDependencies: - - supports-color - dev: true - /http-signature/1.3.6: resolution: {integrity: sha512-3adrsD6zqo4GsTqtO7FyrejHNv+NgiIfAfv68+jVlFmSr9OGy7zrxONceFRLKvnnZA5jbxQBX1u9PpB6Wi32Gw==} engines: {node: '>=0.10'} @@ -5404,16 +5328,6 @@ packages: sshpk: 1.17.0 dev: true - /https-proxy-agent/5.0.1: - resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} - engines: {node: '>= 6'} - dependencies: - agent-base: 6.0.2 - debug: 4.3.4 - transitivePeerDependencies: - - supports-color - dev: true - /human-signals/1.1.1: resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==} engines: {node: '>=8.12.0'} @@ -5428,6 +5342,7 @@ packages: engines: {node: '>=0.10.0'} dependencies: safer-buffer: 2.1.2 + dev: false /icss-replace-symbols/1.1.0: resolution: {integrity: sha512-chIaY3Vh2mh2Q3RGXttaDIzeiPvaVXJ+C4DAh/w3c37SKZ/U6PGMmuicR2EQQp9bKG8zLMCl7I+PtIoOOPp8Gg==} @@ -5600,10 +5515,6 @@ packages: engines: {node: '>=8'} dev: true - /is-potential-custom-element-name/1.0.1: - resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} - dev: true - /is-reference/1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} dependencies: @@ -5702,45 +5613,44 @@ packages: istanbul-lib-report: 3.0.0 dev: true - /jest-changed-files/27.5.1: - resolution: {integrity: sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-changed-files/29.2.0: + resolution: {integrity: sha512-qPVmLLyBmvF5HJrY7krDisx6Voi8DmlV3GZYX0aFNbaQsZeoz1hfxcCMbqDGuQCxU1dJy9eYc2xscE8QrCCYaA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 execa: 5.1.1 - throat: 6.0.1 + p-limit: 3.1.0 dev: true - /jest-circus/27.5.1: - resolution: {integrity: sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-circus/29.3.1: + resolution: {integrity: sha512-wpr26sEvwb3qQQbdlmei+gzp6yoSSoSL6GsLPxnuayZSMrSd5Ka7IjAvatpIernBvT2+Ic6RLTg+jSebScmasg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/environment': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/types': 27.5.1 + '@jest/environment': 29.3.1 + '@jest/expect': 29.3.1 + '@jest/test-result': 29.3.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 chalk: 4.1.2 co: 4.6.0 dedent: 0.7.0 - expect: 27.5.1 is-generator-fn: 2.1.0 - jest-each: 27.5.1 - jest-matcher-utils: 27.5.1 - jest-message-util: 27.5.1 - jest-runtime: 27.5.1 - jest-snapshot: 27.5.1 - jest-util: 27.5.1 - pretty-format: 27.5.1 + jest-each: 29.3.1 + jest-matcher-utils: 29.3.1 + jest-message-util: 29.3.1 + jest-runtime: 29.3.1 + jest-snapshot: 29.3.1 + jest-util: 29.3.1 + p-limit: 3.1.0 + pretty-format: 29.3.1 slash: 3.0.0 stack-utils: 2.0.5 - throat: 6.0.1 transitivePeerDependencies: - supports-color dev: true - /jest-cli/27.5.1: - resolution: {integrity: sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-cli/29.3.1_@[email protected]: + resolution: {integrity: sha512-TO/ewvwyvPOiBBuWZ0gm04z3WWP8TIK8acgPzE4IxgsLKQgb377NYGrQLc3Wl/7ndWzIH2CDNNsUjGxwLL43VQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 @@ -5748,216 +5658,170 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/types': 27.5.1 + '@jest/core': 29.3.1 + '@jest/test-result': 29.3.1 + '@jest/types': 29.3.1 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.10 import-local: 3.1.0 - jest-config: 27.5.1 - jest-util: 27.5.1 - jest-validate: 27.5.1 + jest-config: 29.3.1_@[email protected] + jest-util: 29.3.1 + jest-validate: 29.3.1 prompts: 2.4.2 - yargs: 16.2.0 + yargs: 17.6.2 transitivePeerDependencies: - - bufferutil - - canvas + - '@types/node' - supports-color - ts-node - - utf-8-validate dev: true - /jest-config/27.5.1: - resolution: {integrity: sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-config/29.3.1_@[email protected]: + resolution: {integrity: sha512-y0tFHdj2WnTEhxmGUK1T7fgLen7YK4RtfvpLFBXfQkh2eMJAQq24Vx9472lvn5wg0MAO6B+iPfJfzdR9hJYalg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: + '@types/node': '*' ts-node: '>=9.0.0' peerDependenciesMeta: + '@types/node': + optional: true ts-node: optional: true dependencies: '@babel/core': 7.19.6 - '@jest/test-sequencer': 27.5.1 - '@jest/types': 27.5.1 - babel-jest: 27.5.1_@[email protected] + '@jest/test-sequencer': 29.3.1 + '@jest/types': 29.3.1 + '@types/node': 18.11.9 + babel-jest: 29.3.1_@[email protected] chalk: 4.1.2 ci-info: 3.5.0 deepmerge: 4.2.2 glob: 7.2.3 graceful-fs: 4.2.10 - jest-circus: 27.5.1 - jest-environment-jsdom: 27.5.1 - jest-environment-node: 27.5.1 - jest-get-type: 27.5.1 - jest-jasmine2: 27.5.1 - jest-regex-util: 27.5.1 - jest-resolve: 27.5.1 - jest-runner: 27.5.1 - jest-util: 27.5.1 - jest-validate: 27.5.1 + jest-circus: 29.3.1 + jest-environment-node: 29.3.1 + jest-get-type: 29.2.0 + jest-regex-util: 29.2.0 + jest-resolve: 29.3.1 + jest-runner: 29.3.1 + jest-util: 29.3.1 + jest-validate: 29.3.1 micromatch: 4.0.5 parse-json: 5.2.0 - pretty-format: 27.5.1 + pretty-format: 29.3.1 slash: 3.0.0 strip-json-comments: 3.1.1 transitivePeerDependencies: - - bufferutil - - canvas - supports-color - - utf-8-validate dev: true - /jest-diff/27.5.1: - resolution: {integrity: sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-diff/29.3.1: + resolution: {integrity: sha512-vU8vyiO7568tmin2lA3r2DP8oRvzhvRcD4DjpXc6uGveQodyk7CKLhQlCSiwgx3g0pFaE88/KLZ0yaTWMc4Uiw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: chalk: 4.1.2 - diff-sequences: 27.5.1 - jest-get-type: 27.5.1 - pretty-format: 27.5.1 + diff-sequences: 29.3.1 + jest-get-type: 29.2.0 + pretty-format: 29.3.1 dev: true - /jest-docblock/27.5.1: - resolution: {integrity: sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-docblock/29.2.0: + resolution: {integrity: sha512-bkxUsxTgWQGbXV5IENmfiIuqZhJcyvF7tU4zJ/7ioTutdz4ToB5Yx6JOFBpgI+TphRY4lhOyCWGNH/QFQh5T6A==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: detect-newline: 3.1.0 dev: true - /jest-each/27.5.1: - resolution: {integrity: sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-each/29.3.1: + resolution: {integrity: sha512-qrZH7PmFB9rEzCSl00BWjZYuS1BSOH8lLuC0azQE9lQrAx3PWGKHTDudQiOSwIy5dGAJh7KA0ScYlCP7JxvFYA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 chalk: 4.1.2 - jest-get-type: 27.5.1 - jest-util: 27.5.1 - pretty-format: 27.5.1 + jest-get-type: 29.2.0 + jest-util: 29.3.1 + pretty-format: 29.3.1 dev: true - /jest-environment-jsdom/27.5.1: - resolution: {integrity: sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-environment-node/29.3.1: + resolution: {integrity: sha512-xm2THL18Xf5sIHoU7OThBPtuH6Lerd+Y1NLYiZJlkE3hbE+7N7r8uvHIl/FkZ5ymKXJe/11SQuf3fv4v6rUMag==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/environment': 27.5.1 - '@jest/fake-timers': 27.5.1 - '@jest/types': 27.5.1 + '@jest/environment': 29.3.1 + '@jest/fake-timers': 29.3.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 - jest-mock: 27.5.1 - jest-util: 27.5.1 - jsdom: 16.7.0 - transitivePeerDependencies: - - bufferutil - - canvas - - supports-color - - utf-8-validate - dev: true - - /jest-environment-node/27.5.1: - resolution: {integrity: sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/environment': 27.5.1 - '@jest/fake-timers': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 18.11.9 - jest-mock: 27.5.1 - jest-util: 27.5.1 + jest-mock: 29.3.1 + jest-util: 29.3.1 dev: true - /jest-get-type/27.5.1: - resolution: {integrity: sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-get-type/29.2.0: + resolution: {integrity: sha512-uXNJlg8hKFEnDgFsrCjznB+sTxdkuqiCL6zMgA75qEbAJjJYTs9XPrvDctrEig2GDow22T/LvHgO57iJhXB/UA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true - /jest-haste-map/27.5.1: - resolution: {integrity: sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-haste-map/29.3.1: + resolution: {integrity: sha512-/FFtvoG1xjbbPXQLFef+WSU4yrc0fc0Dds6aRPBojUid7qlPqZvxdUBA03HW0fnVHXVCnCdkuoghYItKNzc/0A==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 '@types/graceful-fs': 4.1.5 '@types/node': 18.11.9 anymatch: 3.1.2 fb-watchman: 2.0.2 graceful-fs: 4.2.10 - jest-regex-util: 27.5.1 - jest-serializer: 27.5.1 - jest-util: 27.5.1 - jest-worker: 27.5.1 + jest-regex-util: 29.2.0 + jest-util: 29.3.1 + jest-worker: 29.3.1 micromatch: 4.0.5 walker: 1.0.8 optionalDependencies: fsevents: 2.3.2 dev: true - /jest-jasmine2/27.5.1: - resolution: {integrity: sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/environment': 27.5.1 - '@jest/source-map': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 18.11.9 - chalk: 4.1.2 - co: 4.6.0 - expect: 27.5.1 - is-generator-fn: 2.1.0 - jest-each: 27.5.1 - jest-matcher-utils: 27.5.1 - jest-message-util: 27.5.1 - jest-runtime: 27.5.1 - jest-snapshot: 27.5.1 - jest-util: 27.5.1 - pretty-format: 27.5.1 - throat: 6.0.1 - transitivePeerDependencies: - - supports-color - dev: true - - /jest-leak-detector/27.5.1: - resolution: {integrity: sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-leak-detector/29.3.1: + resolution: {integrity: sha512-3DA/VVXj4zFOPagGkuqHnSQf1GZBmmlagpguxEERO6Pla2g84Q1MaVIB3YMxgUaFIaYag8ZnTyQgiZ35YEqAQA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - jest-get-type: 27.5.1 - pretty-format: 27.5.1 + jest-get-type: 29.2.0 + pretty-format: 29.3.1 dev: true - /jest-matcher-utils/27.5.1: - resolution: {integrity: sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-matcher-utils/29.3.1: + resolution: {integrity: sha512-fkRMZUAScup3txIKfMe3AIZZmPEjWEdsPJFK3AIy5qRohWqQFg1qrmKfYXR9qEkNc7OdAu2N4KPHibEmy4HPeQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: chalk: 4.1.2 - jest-diff: 27.5.1 - jest-get-type: 27.5.1 - pretty-format: 27.5.1 + jest-diff: 29.3.1 + jest-get-type: 29.2.0 + pretty-format: 29.3.1 dev: true - /jest-message-util/27.5.1: - resolution: {integrity: sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-message-util/29.3.1: + resolution: {integrity: sha512-lMJTbgNcDm5z+6KDxWtqOFWlGQxD6XaYwBqHR8kmpkP+WWWG90I35kdtQHY67Ay5CSuydkTBbJG+tH9JShFCyA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@babel/code-frame': 7.18.6 - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 '@types/stack-utils': 2.0.1 chalk: 4.1.2 graceful-fs: 4.2.10 micromatch: 4.0.5 - pretty-format: 27.5.1 + pretty-format: 29.3.1 slash: 3.0.0 stack-utils: 2.0.5 dev: true - /jest-mock/27.5.1: - resolution: {integrity: sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-mock/29.3.1: + resolution: {integrity: sha512-H8/qFDtDVMFvFP4X8NuOT3XRDzOUTz+FeACjufHzsOIBAxivLqkB1PoLCaJx9iPPQ8dZThHPp/G3WRWyMgA3JA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 + jest-util: 29.3.1 dev: true - /jest-pnp-resolver/[email protected]: + /jest-pnp-resolver/[email protected]: resolution: {integrity: sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==} engines: {node: '>=6'} peerDependencies: @@ -5966,146 +5830,135 @@ packages: jest-resolve: optional: true dependencies: - jest-resolve: 27.5.1 + jest-resolve: 29.3.1 dev: true - /jest-regex-util/27.5.1: - resolution: {integrity: sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-regex-util/29.2.0: + resolution: {integrity: sha512-6yXn0kg2JXzH30cr2NlThF+70iuO/3irbaB4mh5WyqNIvLLP+B6sFdluO1/1RJmslyh/f9osnefECflHvTbwVA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true - /jest-resolve-dependencies/27.5.1: - resolution: {integrity: sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-resolve-dependencies/29.3.1: + resolution: {integrity: sha512-Vk0cYq0byRw2WluNmNWGqPeRnZ3p3hHmjJMp2dyyZeYIfiBskwq4rpiuGFR6QGAdbj58WC7HN4hQHjf2mpvrLA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 - jest-regex-util: 27.5.1 - jest-snapshot: 27.5.1 + jest-regex-util: 29.2.0 + jest-snapshot: 29.3.1 transitivePeerDependencies: - supports-color dev: true - /jest-resolve/27.5.1: - resolution: {integrity: sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-resolve/29.3.1: + resolution: {integrity: sha512-amXJgH/Ng712w3Uz5gqzFBBjxV8WFLSmNjoreBGMqxgCz5cH7swmBZzgBaCIOsvb0NbpJ0vgaSFdJqMdT+rADw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 chalk: 4.1.2 graceful-fs: 4.2.10 - jest-haste-map: 27.5.1 - jest-pnp-resolver: [email protected] - jest-util: 27.5.1 - jest-validate: 27.5.1 + jest-haste-map: 29.3.1 + jest-pnp-resolver: [email protected] + jest-util: 29.3.1 + jest-validate: 29.3.1 resolve: 1.22.1 resolve.exports: 1.1.0 slash: 3.0.0 dev: true - /jest-runner/27.5.1: - resolution: {integrity: sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-runner/29.3.1: + resolution: {integrity: sha512-oFvcwRNrKMtE6u9+AQPMATxFcTySyKfLhvso7Sdk/rNpbhg4g2GAGCopiInk1OP4q6gz3n6MajW4+fnHWlU3bA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/console': 27.5.1 - '@jest/environment': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 + '@jest/console': 29.3.1 + '@jest/environment': 29.3.1 + '@jest/test-result': 29.3.1 + '@jest/transform': 29.3.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 chalk: 4.1.2 - emittery: 0.8.1 + emittery: 0.13.1 graceful-fs: 4.2.10 - jest-docblock: 27.5.1 - jest-environment-jsdom: 27.5.1 - jest-environment-node: 27.5.1 - jest-haste-map: 27.5.1 - jest-leak-detector: 27.5.1 - jest-message-util: 27.5.1 - jest-resolve: 27.5.1 - jest-runtime: 27.5.1 - jest-util: 27.5.1 - jest-worker: 27.5.1 - source-map-support: 0.5.21 - throat: 6.0.1 + jest-docblock: 29.2.0 + jest-environment-node: 29.3.1 + jest-haste-map: 29.3.1 + jest-leak-detector: 29.3.1 + jest-message-util: 29.3.1 + jest-resolve: 29.3.1 + jest-runtime: 29.3.1 + jest-util: 29.3.1 + jest-watcher: 29.3.1 + jest-worker: 29.3.1 + p-limit: 3.1.0 + source-map-support: 0.5.13 transitivePeerDependencies: - - bufferutil - - canvas - supports-color - - utf-8-validate dev: true - /jest-runtime/27.5.1: - resolution: {integrity: sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-runtime/29.3.1: + resolution: {integrity: sha512-jLzkIxIqXwBEOZx7wx9OO9sxoZmgT2NhmQKzHQm1xwR1kNW/dn0OjxR424VwHHf1SPN6Qwlb5pp1oGCeFTQ62A==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/environment': 27.5.1 - '@jest/fake-timers': 27.5.1 - '@jest/globals': 27.5.1 - '@jest/source-map': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 + '@jest/environment': 29.3.1 + '@jest/fake-timers': 29.3.1 + '@jest/globals': 29.3.1 + '@jest/source-map': 29.2.0 + '@jest/test-result': 29.3.1 + '@jest/transform': 29.3.1 + '@jest/types': 29.3.1 + '@types/node': 18.11.9 chalk: 4.1.2 cjs-module-lexer: 1.2.2 collect-v8-coverage: 1.0.1 - execa: 5.1.1 glob: 7.2.3 graceful-fs: 4.2.10 - jest-haste-map: 27.5.1 - jest-message-util: 27.5.1 - jest-mock: 27.5.1 - jest-regex-util: 27.5.1 - jest-resolve: 27.5.1 - jest-snapshot: 27.5.1 - jest-util: 27.5.1 + jest-haste-map: 29.3.1 + jest-message-util: 29.3.1 + jest-mock: 29.3.1 + jest-regex-util: 29.2.0 + jest-resolve: 29.3.1 + jest-snapshot: 29.3.1 + jest-util: 29.3.1 slash: 3.0.0 strip-bom: 4.0.0 transitivePeerDependencies: - supports-color dev: true - /jest-serializer/27.5.1: - resolution: {integrity: sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@types/node': 18.11.9 - graceful-fs: 4.2.10 - dev: true - - /jest-snapshot/27.5.1: - resolution: {integrity: sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-snapshot/29.3.1: + resolution: {integrity: sha512-+3JOc+s28upYLI2OJM4PWRGK9AgpsMs/ekNryUV0yMBClT9B1DF2u2qay8YxcQd338PPYSFNb0lsar1B49sLDA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@babel/core': 7.19.6 '@babel/generator': 7.20.0 + '@babel/plugin-syntax-jsx': 7.18.6_@[email protected] '@babel/plugin-syntax-typescript': 7.20.0_@[email protected] '@babel/traverse': 7.20.0 '@babel/types': 7.20.0 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 + '@jest/expect-utils': 29.3.1 + '@jest/transform': 29.3.1 + '@jest/types': 29.3.1 '@types/babel__traverse': 7.18.2 '@types/prettier': 2.7.1 babel-preset-current-node-syntax: 1.0.1_@[email protected] chalk: 4.1.2 - expect: 27.5.1 + expect: 29.3.1 graceful-fs: 4.2.10 - jest-diff: 27.5.1 - jest-get-type: 27.5.1 - jest-haste-map: 27.5.1 - jest-matcher-utils: 27.5.1 - jest-message-util: 27.5.1 - jest-util: 27.5.1 + jest-diff: 29.3.1 + jest-get-type: 29.2.0 + jest-haste-map: 29.3.1 + jest-matcher-utils: 29.3.1 + jest-message-util: 29.3.1 + jest-util: 29.3.1 natural-compare: 1.4.0 - pretty-format: 27.5.1 + pretty-format: 29.3.1 semver: 7.3.8 transitivePeerDependencies: - supports-color dev: true - /jest-util/27.5.1: - resolution: {integrity: sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-util/29.3.1: + resolution: {integrity: sha512-7YOVZaiX7RJLv76ZfHt4nbNEzzTRiMW/IiOG7ZOKmTXmoGBxUDefgMAxQubu6WPVqP5zSzAdZG0FfLcC7HOIFQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 chalk: 4.1.2 ci-info: 3.5.0 @@ -6113,28 +5966,29 @@ packages: picomatch: 2.3.1 dev: true - /jest-validate/27.5.1: - resolution: {integrity: sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-validate/29.3.1: + resolution: {integrity: sha512-N9Lr3oYR2Mpzuelp1F8negJR3YE+L1ebk1rYA5qYo9TTY3f9OWdptLoNSPP9itOCBIRBqjt/S5XHlzYglLN67g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 27.5.1 + '@jest/types': 29.3.1 camelcase: 6.3.0 chalk: 4.1.2 - jest-get-type: 27.5.1 + jest-get-type: 29.2.0 leven: 3.1.0 - pretty-format: 27.5.1 + pretty-format: 29.3.1 dev: true - /jest-watcher/27.5.1: - resolution: {integrity: sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest-watcher/29.3.1: + resolution: {integrity: sha512-RspXG2BQFDsZSRKGCT/NiNa8RkQ1iKAjrO0//soTMWx/QUt+OcxMqMSBxz23PYGqUuWm2+m2mNNsmj0eIoOaFg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/test-result': 27.5.1 - '@jest/types': 27.5.1 + '@jest/test-result': 29.3.1 + '@jest/types': 29.3.1 '@types/node': 18.11.9 ansi-escapes: 4.3.2 chalk: 4.1.2 - jest-util: 27.5.1 + emittery: 0.13.1 + jest-util: 29.3.1 string-length: 4.0.2 dev: true @@ -6147,18 +6001,19 @@ packages: supports-color: 7.2.0 dev: true - /jest-worker/27.5.1: - resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} - engines: {node: '>= 10.13.0'} + /jest-worker/29.3.1: + resolution: {integrity: sha512-lY4AnnmsEWeiXirAIA0c9SDPbuCBq8IYuDVL8PMm0MZ2PEs2yPvRA/J64QBXuZp7CYKrDM/rmNrc9/i3KJQncw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@types/node': 18.11.9 + jest-util: 29.3.1 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true - /jest/27.5.1: - resolution: {integrity: sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /jest/29.3.1_@[email protected]: + resolution: {integrity: sha512-6iWfL5DTT0Np6UYs/y5Niu7WIfNv/wRTtN5RSXt2DIEft3dx3zPuw/3WJQBCJfmEzvDiEKwoqMbGD9n49+qLSA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 @@ -6166,15 +6021,14 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 27.5.1 + '@jest/core': 29.3.1 + '@jest/types': 29.3.1 import-local: 3.1.0 - jest-cli: 27.5.1 + jest-cli: 29.3.1_@[email protected] transitivePeerDependencies: - - bufferutil - - canvas + - '@types/node' - supports-color - ts-node - - utf-8-validate dev: true /jju/1.4.0: @@ -6207,48 +6061,6 @@ packages: skip-regex: 1.0.2 dev: true - /jsdom/16.7.0: - resolution: {integrity: sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==} - engines: {node: '>=10'} - peerDependencies: - canvas: ^2.5.0 - peerDependenciesMeta: - canvas: - optional: true - dependencies: - abab: 2.0.6 - acorn: 8.8.1 - acorn-globals: 6.0.0 - cssom: 0.4.4 - cssstyle: 2.3.0 - data-urls: 2.0.0 - decimal.js: 10.4.2 - domexception: 2.0.1 - escodegen: 2.0.0 - form-data: 3.0.1 - html-encoding-sniffer: 2.0.1 - http-proxy-agent: 4.0.1 - https-proxy-agent: 5.0.1 - is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.2 - parse5: 6.0.1 - saxes: 5.0.1 - symbol-tree: 3.2.4 - tough-cookie: 4.1.2 - w3c-hr-time: 1.0.2 - w3c-xmlserializer: 2.0.0 - webidl-conversions: 6.1.0 - whatwg-encoding: 1.0.5 - whatwg-mimetype: 2.3.0 - whatwg-url: 8.7.0 - ws: 7.5.9 - xml-name-validator: 3.0.0 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - dev: true - /jsesc/0.5.0: resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==} hasBin: true @@ -6413,14 +6225,6 @@ packages: engines: {node: '>=6'} dev: true - /levn/0.3.0: - resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.1.2 - type-check: 0.3.2 - dev: true - /levn/0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} @@ -6609,6 +6413,12 @@ packages: tmpl: 1.0.5 dev: true + /md5-file/5.0.0: + resolution: {integrity: sha512-xbEFXCYVWrSx/gEKS1VPlg84h/4L20znVIulKw6kMfmBUAZNAnF00eczz9ICMl+/hjQGo5KSXRxbL/47X3rmMw==} + engines: {node: '>=10.13.0'} + hasBin: true + dev: false + /md5.js/1.3.5: resolution: {integrity: sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==} dependencies: @@ -6767,10 +6577,6 @@ packages: dependencies: path-key: 3.1.1 - /nwsapi/2.2.2: - resolution: {integrity: sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==} - dev: true - /object-inspect/1.12.2: resolution: {integrity: sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==} dev: false @@ -6815,18 +6621,6 @@ packages: dependencies: mimic-fn: 2.1.0 - /optionator/0.8.3: - resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} - engines: {node: '>= 0.8.0'} - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.3.0 - prelude-ls: 1.1.2 - type-check: 0.3.2 - word-wrap: 1.2.3 - dev: true - /optionator/0.9.1: resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} engines: {node: '>= 0.8.0'} @@ -6862,6 +6656,13 @@ packages: p-try: 2.2.0 dev: true + /p-limit/3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + dependencies: + yocto-queue: 0.1.0 + dev: true + /p-locate/4.1.0: resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} engines: {node: '>=8'} @@ -6928,10 +6729,6 @@ packages: lines-and-columns: 1.2.4 dev: true - /parse5/6.0.1: - resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} - dev: true - /parseurl/1.3.3: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} engines: {node: '>= 0.8'} @@ -7125,11 +6922,6 @@ packages: picocolors: 1.0.0 source-map-js: 1.0.2 - /prelude-ls/1.1.2: - resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==} - engines: {node: '>= 0.8.0'} - dev: true - /prelude-ls/1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -7146,13 +6938,13 @@ packages: engines: {node: '>=6'} dev: true - /pretty-format/27.5.1: - resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /pretty-format/29.3.1: + resolution: {integrity: sha512-FyLnmb1cYJV8biEIiRyzRFvs2lry7PPIvOqKVe1GCUEYg4YGmlx1qG9EJNMxArYm7piII4qb8UV1Pncq5dxmcg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - ansi-regex: 5.0.1 + '@jest/schemas': 29.0.0 ansi-styles: 5.2.0 - react-is: 17.0.2 + react-is: 18.2.0 dev: true /process-es6/0.11.6: @@ -7248,10 +7040,6 @@ packages: engines: {node: '>=0.6'} dev: true - /querystringify/2.2.0: - resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} - dev: true - /queue-microtask/1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -7282,8 +7070,8 @@ packages: unpipe: 1.0.0 dev: false - /react-is/17.0.2: - resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + /react-is/18.2.0: + resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} dev: true /read-cache/1.0.0: @@ -7401,10 +7189,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /requires-port/1.0.0: - resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} - dev: true - /resolve-cwd/3.0.0: resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} engines: {node: '>=8'} @@ -7587,13 +7371,6 @@ packages: /safer-buffer/2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - /saxes/5.0.1: - resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==} - engines: {node: '>=10'} - dependencies: - xmlchars: 2.2.0 - dev: true - /semver-compare/1.0.0: resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==} dev: true @@ -7738,6 +7515,13 @@ packages: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} + /source-map-support/0.5.13: + resolution: {integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==} + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + dev: true + /source-map-support/0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} dependencies: @@ -7751,6 +7535,7 @@ packages: /source-map/0.7.4: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} engines: {node: '>= 8'} + dev: false /sourcemap-codec/1.4.8: resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} @@ -7892,14 +7677,6 @@ packages: has-flag: 4.0.0 dev: true - /supports-hyperlinks/2.3.0: - resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==} - engines: {node: '>=8'} - dependencies: - has-flag: 4.0.0 - supports-color: 7.2.0 - dev: true - /supports-preserve-symlinks-flag/1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -7907,10 +7684,6 @@ packages: /svg-tags/1.0.0: resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==} - /symbol-tree/3.2.4: - resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} - dev: true - /systemjs/6.13.0: resolution: {integrity: sha512-P3cgh2bpaPvAO2NE3uRp/n6hmk4xPX4DQf+UzTlCAycssKdqhp6hjw+ENWe+aUS7TogKRFtptMosTSFeC6R55g==} dev: false @@ -7931,14 +7704,6 @@ packages: engines: {node: '>=6'} dev: false - /terminal-link/2.1.1: - resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==} - engines: {node: '>=8'} - dependencies: - ansi-escapes: 4.3.2 - supports-hyperlinks: 2.3.0 - dev: true - /terser/5.15.1: resolution: {integrity: sha512-K1faMUvpm/FBxjBXud0LWVAGxmvoPbZbfTCYbSgaaYQaIXI3/TdI7a7ZGA73Zrou6Q8Zmz3oeUTsp/dj+ag2Xw==} engines: {node: '>=10'} @@ -7962,10 +7727,6 @@ packages: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true - /throat/6.0.1: - resolution: {integrity: sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==} - dev: true - /throttleit/1.0.0: resolution: {integrity: sha512-rkTVqu6IjfQ/6+uNuuc3sZek4CEYxTJom3IktzgdSxcZqdARuebbA/f4QmAxMQIxqq9ZLEUkSYqvuk1I6VKq4g==} dev: true @@ -8007,38 +7768,21 @@ packages: punycode: 2.1.1 dev: true - /tough-cookie/4.1.2: - resolution: {integrity: sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==} - engines: {node: '>=6'} - dependencies: - psl: 1.9.0 - punycode: 2.1.1 - universalify: 0.2.0 - url-parse: 1.5.10 - dev: true - - /tr46/2.1.0: - resolution: {integrity: sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==} - engines: {node: '>=8'} - dependencies: - punycode: 2.1.1 - dev: true - - /ts-jest/27.1.5_fesd52x37fu43qoym53anl3og4: - resolution: {integrity: sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /ts-jest/29.0.3_c5lclmmvqlgvy4zamtxd3isbo4: + resolution: {integrity: sha512-Ibygvmuyq1qp/z3yTh9QTwVVAbFdDy/+4BtIQR2sp6baF2SJU/8CKK/hhnGIDY2L90Az2jIqTwZPnN2p+BweiQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true peerDependencies: '@babel/core': '>=7.0.0-beta.0 <8' - '@types/jest': ^27.0.0 - babel-jest: '>=27.0.0 <28' + '@jest/types': ^29.0.0 + babel-jest: ^29.0.0 esbuild: '*' - jest: ^27.0.0 - typescript: '>=3.8 <5.0' + jest: ^29.0.0 + typescript: '>=4.3' peerDependenciesMeta: '@babel/core': optional: true - '@types/jest': + '@jest/types': optional: true babel-jest: optional: true @@ -8046,17 +7790,17 @@ packages: optional: true dependencies: '@babel/core': 7.19.6 - '@types/jest': 27.5.2 + '@jest/types': 29.3.1 bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 - jest: 27.5.1 - jest-util: 27.5.1 + jest: 29.3.1_@[email protected] + jest-util: 29.3.1 json5: 2.2.1 lodash.memoize: 4.1.2 make-error: 1.3.6 semver: 7.3.8 typescript: 4.9.3 - yargs-parser: 20.2.9 + yargs-parser: 21.1.1 dev: true /tslib/1.14.1: @@ -8091,13 +7835,6 @@ packages: resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==} dev: true - /type-check/0.3.2: - resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.1.2 - dev: true - /type-check/0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -8132,12 +7869,6 @@ packages: resolution: {integrity: sha512-vjMKrfSoUDN8/Vnqitw2FmstOfuJ73G6CrSEKnf11A6RmasVxHqfeBcnTb6RsL4pTMuV5Zsv9IiHRphMZyckUw==} dev: true - /typedarray-to-buffer/3.1.5: - resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} - dependencies: - is-typedarray: 1.0.0 - dev: true - /typedarray/0.0.6: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: true @@ -8182,11 +7913,6 @@ packages: engines: {node: '>= 4.0.0'} dev: true - /universalify/0.2.0: - resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} - engines: {node: '>= 4.0.0'} - dev: true - /universalify/2.0.0: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} engines: {node: '>= 10.0.0'} @@ -8221,13 +7947,6 @@ packages: punycode: 2.1.1 dev: true - /url-parse/1.5.10: - resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} - dependencies: - querystringify: 2.2.0 - requires-port: 1.0.0 - dev: true - /util-deprecate/1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -8245,13 +7964,13 @@ packages: resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==} dev: true - /v8-to-istanbul/8.1.1: - resolution: {integrity: sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==} + /v8-to-istanbul/9.0.1: + resolution: {integrity: sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==} engines: {node: '>=10.12.0'} dependencies: + '@jridgewell/trace-mapping': 0.3.17 '@types/istanbul-lib-coverage': 2.0.4 convert-source-map: 1.9.0 - source-map: 0.7.4 dev: true /validator/13.7.0: @@ -8434,55 +8153,12 @@ packages: vue: 3.2.45 dev: false - /w3c-hr-time/1.0.2: - resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} - deprecated: Use your platform's native performance.now() and performance.timeOrigin. - dependencies: - browser-process-hrtime: 1.0.0 - dev: true - - /w3c-xmlserializer/2.0.0: - resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==} - engines: {node: '>=10'} - dependencies: - xml-name-validator: 3.0.0 - dev: true - /walker/1.0.8: resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} dependencies: makeerror: 1.0.12 dev: true - /webidl-conversions/5.0.0: - resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==} - engines: {node: '>=8'} - dev: true - - /webidl-conversions/6.1.0: - resolution: {integrity: sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==} - engines: {node: '>=10.4'} - dev: true - - /whatwg-encoding/1.0.5: - resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==} - dependencies: - iconv-lite: 0.4.24 - dev: true - - /whatwg-mimetype/2.3.0: - resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==} - dev: true - - /whatwg-url/8.7.0: - resolution: {integrity: sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==} - engines: {node: '>=10'} - dependencies: - lodash: 4.17.21 - tr46: 2.1.0 - webidl-conversions: 6.1.0 - dev: true - /which/1.3.1: resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} hasBin: true @@ -8524,26 +8200,12 @@ packages: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: true - /write-file-atomic/3.0.3: - resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==} + /write-file-atomic/4.0.2: + resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==} + engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dependencies: imurmurhash: 0.1.4 - is-typedarray: 1.0.0 signal-exit: 3.0.7 - typedarray-to-buffer: 3.1.5 - dev: true - - /ws/7.5.9: - resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} - engines: {node: '>=8.3.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true dev: true /ws/8.10.0: @@ -8559,14 +8221,6 @@ packages: optional: true dev: false - /xml-name-validator/3.0.0: - resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==} - dev: true - - /xmlchars/2.2.0: - resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} - dev: true - /xmlhttprequest/1.8.0: resolution: {integrity: sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==} engines: {node: '>=0.4.0'} @@ -8618,22 +8272,22 @@ packages: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} engines: {node: '>= 6'} - /yargs-parser/20.2.9: - resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} - engines: {node: '>=10'} + /yargs-parser/21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} dev: true - /yargs/16.2.0: - resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} - engines: {node: '>=10'} + /yargs/17.6.2: + resolution: {integrity: sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==} + engines: {node: '>=12'} dependencies: - cliui: 7.0.4 + cliui: 8.0.1 escalade: 3.1.1 get-caller-file: 2.0.5 require-directory: 2.1.1 string-width: 4.2.3 y18n: 5.0.8 - yargs-parser: 20.2.9 + yargs-parser: 21.1.1 dev: true /yauzl/2.10.0: @@ -8643,6 +8297,11 @@ packages: fd-slicer: 1.1.0 dev: true + /yocto-queue/0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + dev: true + /yorkie/2.0.0: resolution: {integrity: sha512-jcKpkthap6x63MB4TxwCyuIGkV0oYP/YRyuQU5UO0Yz/E/ZAu+653/uov+phdmO54n6BcvFRyyt0RRrWdN2mpw==} engines: {node: '>=4'}
f6186101b04b5fe36f4bb2ba773289cf585a6e60
2024-12-25 16:57:26
王亚琪
feat(harmony): 调整鸿蒙extapi编译结果
false
调整鸿蒙extapi编译结果
feat
diff --git a/packages/uni-app-harmony/build.ets.json b/packages/uni-app-harmony/build.ets.json index 38984389590..e24db14d1bd 100644 --- a/packages/uni-app-harmony/build.ets.json +++ b/packages/uni-app-harmony/build.ets.json @@ -129,136 +129,5 @@ "__APP_VIEW__": "false", "__NODE_JS__": "false" } - }, - { - "input": { - "temp/uni-ext-api/index.uts": "x/uni.api.ets" - }, - "alias": { - "@dcloudio/uni-runtime": "@dcloudio/uni-app-x-runtime" - }, - "externals": [ - "@dcloudio/uni-app-x-runtime" - ], - "autoImports": { - "./shared": [ - [ - "IUTSObject" - ], - [ - "UTSObject" - ], - [ - "UTSJSONObject" - ], - [ - "defineAsyncApi" - ], - [ - "defineSyncApi" - ], - [ - "defineTaskApi" - ], - [ - "defineOnApi" - ], - [ - "defineOffApi" - ], - [ - "getUniProvider" - ], - [ - "getUniProviders" - ], - [ - "string" - ], - [ - "AsyncApiSuccessResult" - ], - [ - "AsyncApiResult" - ], - [ - "ApiExecutor" - ], - [ - "ComponentInternalInstance" - ], - [ - "ComponentPublicInstance" - ], - [ - "IUniError" - ], - [ - "ProtocolOptions" - ], - [ - "ApiOptions" - ], - [ - "ApiError" - ], - [ - "UniError" - ], - [ - "UniProvider" - ], - [ - "SourceError" - ] - ], - "@dcloudio/uni-app-x-runtime": [ - [ - "UTSHarmony" - ] - ] - }, - "replacements": { - "__PLATFORM__": "'app-harmony'", - "__DEV__": "false", - "__X__": "true", - "__APP_VIEW__": "false", - "__NODE_JS__": "false" - }, - "wrapper": { - "name": "initUniExtApi", - "args": [] - } - }, - { - "input": { - "../uni-runtime/src/helpers/api/index.ts": "x/uni-api-shared.ets" - }, - "alias": { - "@dcloudio/uni-runtime": "@dcloudio/uni-app-x-runtime" - }, - "externals": [ - "@dcloudio/uni-app-x-runtime" - ], - "autoImports": { - "./uts": [ - [ - "IUTSObject" - ], - [ - "UTSObject" - ], - [ - "UTSJSONObject" - ] - ] - }, - "replacements": { - "__PLATFORM__": "'app-harmony'", - "__DEV__": "false", - "__X__": "true", - "__APP_VIEW__": "false", - "__NODE_JS__": "false" - } } ] \ No newline at end of file
2d47724bac0ed5197012c02a506be4833d215cef
2024-09-09 12:55:41
fxy060608
fix(quickapp-webview-huawei): 过滤非法属性 key (#5134)
false
过滤非法属性 key (#5134)
fix
diff --git a/packages/uni-cli-shared/src/mp/template.ts b/packages/uni-cli-shared/src/mp/template.ts index c248c69cdf4..c6bfaa7e036 100644 --- a/packages/uni-cli-shared/src/mp/template.ts +++ b/packages/uni-cli-shared/src/mp/template.ts @@ -1,6 +1,10 @@ import path from 'path' import type { EmittedAsset } from 'rollup' -import type { ElementNode } from '@vue/compiler-core' +import type { + AttributeNode, + DirectiveNode, + ElementNode, +} from '@vue/compiler-core' import { LINEFEED } from '@dcloudio/uni-shared' import { normalizeMiniProgramFilename } from '../utils' @@ -17,6 +21,14 @@ type LazyElementFn = ( } | boolean export interface MiniProgramCompilerOptions { + /** + * 检查属性名称是否符合平台要求,比如华为快应用不允许使用 key 属性等 + */ + checkPropName?: ( + name: string, + prop: AttributeNode | DirectiveNode, + node: ElementNode + ) => boolean /** * 需要延迟渲染的组件,通常是某个组件的某个事件会立刻触发,需要延迟到首次 render 之后,比如微信 editor 的 ready 事件,快手 switch 的 change */ diff --git a/packages/uni-mp-compiler/src/compile.ts b/packages/uni-mp-compiler/src/compile.ts index 5d8427c6a6b..984815252ae 100644 --- a/packages/uni-mp-compiler/src/compile.ts +++ b/packages/uni-mp-compiler/src/compile.ts @@ -115,6 +115,7 @@ export function baseCompile(template: string, options: CompilerOptions = {}) { slot, lazyElement, component, + checkPropName, } = options.miniProgram genTemplate(ast, { class: clazz, @@ -128,6 +129,7 @@ export function baseCompile(template: string, options: CompilerOptions = {}) { component, isBuiltInComponent: context.isBuiltInComponent, isMiniProgramComponent: context.isMiniProgramComponent, + checkPropName, }) } diff --git a/packages/uni-mp-compiler/src/options.ts b/packages/uni-mp-compiler/src/options.ts index 06945d24b6e..36376fded30 100644 --- a/packages/uni-mp-compiler/src/options.ts +++ b/packages/uni-mp-compiler/src/options.ts @@ -111,6 +111,7 @@ export interface TemplateCodegenOptions filename: string isBuiltInComponent: Required<TransformOptions>['isBuiltInComponent'] isMiniProgramComponent(name: string): MiniProgramComponentsType | undefined + checkPropName?: MiniProgramCompilerOptions['checkPropName'] } export type CompilerOptions = ParserOptions & TransformOptions & CodegenOptions diff --git a/packages/uni-mp-compiler/src/template/codegen.ts b/packages/uni-mp-compiler/src/template/codegen.ts index fd0f9835c75..8cf4abfd67e 100644 --- a/packages/uni-mp-compiler/src/template/codegen.ts +++ b/packages/uni-mp-compiler/src/template/codegen.ts @@ -47,6 +47,7 @@ export interface TemplateCodegenContext { isBuiltInComponent: TransformContext['isBuiltInComponent'] isMiniProgramComponent: TransformContext['isMiniProgramComponent'] push(code: string): void + checkPropName: TemplateCodegenOptions['checkPropName'] } export function generate( @@ -61,6 +62,7 @@ export function generate( lazyElement, isBuiltInComponent, isMiniProgramComponent, + checkPropName, component, }: TemplateCodegenOptions ) { @@ -74,6 +76,7 @@ export function generate( component, isBuiltInComponent, isMiniProgramComponent, + checkPropName, push(code) { context.code += code }, @@ -449,6 +452,12 @@ export function genElementProps( ) { node.props.forEach((prop) => { if (prop.type === NodeTypes.ATTRIBUTE) { + if ( + context.checkPropName && + !context.checkPropName(prop.name, prop, node) + ) { + return + } const { value } = prop if (value) { checkVirtualHostProps(prop.name, virtualHost).forEach((name) => { @@ -459,6 +468,12 @@ export function genElementProps( } } else { const { name } = prop + if ( + context.checkPropName && + !context.checkPropName(prop.name, prop, node) + ) { + return + } if (name === 'on') { genOn(prop, node, context) } else { diff --git a/packages/uni-quickapp-webview/__tests__/element.spec.ts b/packages/uni-quickapp-webview/__tests__/element.spec.ts new file mode 100644 index 00000000000..d38c8296942 --- /dev/null +++ b/packages/uni-quickapp-webview/__tests__/element.spec.ts @@ -0,0 +1,13 @@ +import { assert } from './testUtils' + +describe('quickapp-webview: transform element', () => { + test(`element with key`, () => { + assert( + `<view key="1" /><view :key="1" />`, + `<view/><view/>`, + `(_ctx, _cache) => { + return {} +}` + ) + }) +}) diff --git a/packages/uni-quickapp-webview/__tests__/testUtils.ts b/packages/uni-quickapp-webview/__tests__/testUtils.ts new file mode 100644 index 00000000000..cfcadcd4664 --- /dev/null +++ b/packages/uni-quickapp-webview/__tests__/testUtils.ts @@ -0,0 +1,37 @@ +import { isMiniProgramNativeTag as isNativeTag } from '@dcloudio/uni-shared' +import { type CompilerOptions, compile } from '@dcloudio/uni-mp-compiler' + +import { compilerOptions, miniProgram } from '../src/compiler/options' + +export function assert( + template: string, + templateCode: string, + renderCode: string, + options: CompilerOptions = {} +) { + const res = compile(template, { + mode: 'module', + filename: 'foo.vue', + prefixIdentifiers: true, + inline: true, + generatorOpts: { + concise: true, + }, + isNativeTag, + miniProgram: { + ...miniProgram, + emitFile({ source }) { + // console.log(source) + if (!options.onError) { + expect(source).toBe(templateCode) + } + return '' + }, + }, + ...compilerOptions, + ...options, + }) + if (!options.onError) { + expect(res.code).toBe(renderCode) + } +} diff --git a/packages/uni-quickapp-webview/src/compiler/options.ts b/packages/uni-quickapp-webview/src/compiler/options.ts index 315a47347db..8bfd7134ac9 100644 --- a/packages/uni-quickapp-webview/src/compiler/options.ts +++ b/packages/uni-quickapp-webview/src/compiler/options.ts @@ -23,6 +23,25 @@ export const miniProgram: MiniProgramCompilerOptions = { dynamicSlotNames: true, }, directive: 'qa:', + checkPropName(name, prop) { + // 快应用不允许使用 key 属性,应该还有很多其他保留字,目前先简单处理 + // ERROR: Unexpected JavaScript keyword as attribute name: 'key', please change it. + if (name === 'key') { + return false + } + if ( + name === 'bind' && + prop.type === /*NodeTypes.DIRECTIVE*/ 7 && + prop.arg + ) { + if (prop.arg.type === /*NodeTypes.SIMPLE_EXPRESSION*/ 4) { + if (prop.arg.content === 'key') { + return false + } + } + } + return true + }, } const projectConfigFilename = 'jsconfig.json'
189cc7b64ab7f2b8bb191b9d880d4981d1e8157e
2022-06-14 18:52:16
DCloud_LXH
fix(app): vue warn question/147092
false
vue warn question/147092
fix
diff --git a/packages/uni-app-vite/lib/template/__uniappscan.js b/packages/uni-app-vite/lib/template/__uniappscan.js index 5b0bb89111a..c051263545f 100644 --- a/packages/uni-app-vite/lib/template/__uniappscan.js +++ b/packages/uni-app-vite/lib/template/__uniappscan.js @@ -1,2 +1,32 @@ "use weex:vue"; -(()=>{var _=Object.create;var g=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var y=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var S=(e,a,s,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of D(a))!v.call(e,l)&&l!==s&&g(e,l,{get:()=>a[l],enumerable:!(o=E(a,l))||o.enumerable});return e};var B=(e,a,s)=>(s=e!=null?_(w(e)):{},S(a||!e||!e.__esModule?g(s,"default",{value:e,enumerable:!0}):s,e));var C=y((F,m)=>{m.exports=Vue});var d={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let a={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),o=s[1];o&&(s[1]=a[o]||o),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(e){let a=this.locale,s=a.split("-")[0],o=this.fallbackLocale,l=this.localization;function i(c){return l[c]||{}}return i("messages")[e]||i(a)[e]||i(s)[e]||i(o)[e]||e}}},p={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:a,runtime:s,data:o={},useGlobalEvent:l}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=l,this.data=JSON.parse(JSON.stringify(o)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let i=this,c=function(r){let u=r.data&&r.data.__message;!u||i.__onMessageCallback&&i.__onMessageCallback(u.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",c);else{let r=new BroadcastChannel(this.__page);r.onmessage=c}},postMessage(e={},a=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:a}})),o=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,o):new BroadcastChannel(o).postMessage(s);else{let l=plus.webview.getWebviewById(o);l&&l.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(e){this.__onMessageCallback=e}}};var n=B(C());var b=(e,a)=>{let s=e.__vccOpts||e;for(let[o,l]of a)s[o]=l;return s};var k={content:{"":{flex:1,alignItems:"center",justifyContent:"center",backgroundColor:"#000000"}},barcode:{"":{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:1}},"set-flash":{"":{alignItems:"center",justifyContent:"center",transform:"translateY(80px)",zIndex:2}},"image-flash":{"":{width:26,height:26,marginBottom:2}},"image-flash-text":{"":{fontSize:10,color:"#FFFFFF"}}},t=plus.barcode,A={qrCode:[t.QR,t.AZTEC,t.MAXICODE],barCode:[t.EAN13,t.EAN8,t.UPCA,t.UPCE,t.CODABAR,t.CODE128,t.CODE39,t.CODE93,t.ITF,t.RSS14,t.RSSEXPANDED],datamatrix:[t.DATAMATRIX],pdf417:[t.PDF417]},O={[t.QR]:"QR_CODE",[t.EAN13]:"EAN_13",[t.EAN8]:"EAN_8",[t.DATAMATRIX]:"DATA_MATRIX",[t.UPCA]:"UPC_A",[t.UPCE]:"UPC_E",[t.CODABAR]:"CODABAR",[t.CODE39]:"CODE_39",[t.CODE93]:"CODE_93",[t.CODE128]:"CODE_128",[t.ITF]:"CODE_25",[t.PDF417]:"PDF_417",[t.AZTEC]:"AZTEC",[t.RSS14]:"RSS_14",[t.RSSEXPANDED]:"RSSEXPANDED"},M={mixins:[p,d],data:{filters:[0,2,1],backgroud:"#000000",frameColor:"#118ce9",scanbarColor:"#118ce9",enabledFlash:!1,flashImage0:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABjklEQVRoQ+1ZbVHEQAx9TwE4ABTcOQAknANQAKcAUAAOAAXgAHAACsDCKQiTmbYDzJZtNt2bFrJ/m6+Xl2yyU2LmhzOPH/8PgIjcADirxNyapNoffMwMiMgzgMPBHmyCLySPLCoBwJKtAbJbYaBmD1yRvBwAtBMxl5DF+DZkiwCIyBLAzsgBbki+Wm2WAlCaL6zOMvKnJO+sNksB7ALQbO1ZHfbIv5FUVs2nCIB6EZETALdmj2mFY5I6X8ynGEADQllYmL1+VzBfnV/VvQB0aj45ARyQ/Ci14QLQsOBZLe5JaikWnzEA7AN4L4hgA2Dpyb76dANwsOCq/TZhASAYKGie0a7R1lDPI0ebtF0NUi+4yfdAtxr3PEMnD6BbD0QkNfACQO05EAwMuaBqDrIVycdmTpwDuP4R0OR7QFftVRP0g+49cwOQq4DJMxAAchmofY3m/EcJBQOZbTRKKJeBKKEoIePvpFRJ1VzmciUccyCa+C81cerBkuuB7sGTE/zt+yhN7AnAqxsAvBn06n8CkyPwMZKwm+UAAAAASUVORK5CYII=",flashImage1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUAAAA3kvI3lfY2k/VAl+43k/U3k/Q4k/M3kvI3k/M4k/Q4lPU2lPU2k/Vdq843k/WWSpNKAAAAD3RSTlMAwD+QINCAcPBgUDDgoBAE044kAAAAdklEQVQ4y2OgOrD/DwffUSTkERIfyZXAtOMbca7iVoKDDSgSbAijJqBI8J2HiX9FM2s+TOITmgQrTEIATYIJJuEA5mJ68S+Gg/0hEi0YEoxQK2gs0WyPQyKBGYeEAhPtJRaw45AIccXpwVEJekuwQyQWMFAfAACeDBJY9aXa3QAAAABJRU5ErkJggg==",autoDecodeCharSet:!1,localization:{en:{fail:"Recognition failure","flash.on":"Tap to turn light on","flash.off":"Tap to turn light off"},zh:{fail:"\u8BC6\u522B\u5931\u8D25","flash.on":"\u8F7B\u89E6\u7167\u4EAE","flash.off":"\u8F7B\u89E6\u5173\u95ED"}}},onLoad(){let e=this.data,a=e.scanType;this.autoDecodeCharSet=e.autoDecodeCharSet;let s=[];Array.isArray(a)&&a.length&&a.forEach(o=>{let l=A[o];l&&(s=s.concat(l))}),s.length||(s=s.concat(A.qrCode).concat(A.barCode).concat(A.datamatrix).concat(A.pdf417)),this.filters=s,this.onMessage(o=>{this.gallery()})},onUnload(){this.cancel()},onReady(){setTimeout(()=>{this.cancel(),this.start()},50)},methods:{start(){this.$refs.barcode.start({sound:this.data.sound})},scan(e){t.scan(e,(a,s,o,l)=>{this.scanSuccess(a,s,o,l)},()=>{plus.nativeUI.toast(this.localize("fail"))},this.filters,this.autoDecodeCharSet)},cancel(){this.$refs.barcode.cancel()},gallery(){plus.gallery.pick(e=>{this.scan(e)},e=>{e.code!==(weex.config.env.platform.toLowerCase()==="android"?12:-2)&&plus.nativeUI.toast(this.localize("fail"))},{multiple:!1,system:!1,filename:"_doc/uniapp_temp/gallery/",permissionAlert:!0})},onmarked(e){var a=e.detail;this.scanSuccess(a.code,a.message,a.file,a.charSet)},scanSuccess(e,a,s,o){this.postMessage({event:"marked",detail:{scanType:O[e],result:a,charSet:o||"utf8",path:s||""}})},onerror(e){this.postMessage({event:"fail",message:JSON.stringify(e)})},setFlash(){this.enabledFlash=!this.enabledFlash,this.$refs.barcode.setFlash(this.enabledFlash)}}};function I(e,a,s,o,l,i){let c=(0,n.resolveComponent)("barcode");return(0,n.openBlock)(),(0,n.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:!0,style:{flexDirection:"column"}},[(0,n.createElementVNode)("view",{class:"content"},[(0,n.createVNode)(c,{class:"barcode",ref:"barcode",autostart:"false",backgroud:e.backgroud,frameColor:e.frameColor,scanbarColor:e.scanbarColor,filters:e.filters,autoDecodeCharset:e.autoDecodeCharSet,onMarked:i.onmarked,onError:i.onerror},null,8,["backgroud","frameColor","scanbarColor","filters","autoDecodeCharset","onMarked","onError"]),(0,n.createElementVNode)("view",{class:"set-flash",onClick:a[0]||(a[0]=(...r)=>i.setFlash&&i.setFlash(...r))},[(0,n.createElementVNode)("u-image",{class:"image-flash",src:e.enabledFlash?e.flashImage1:e.flashImage0,resize:"stretch"},null,8,["src"]),(0,n.createElementVNode)("u-text",{class:"image-flash-text"},(0,n.toDisplayString)(e.enabledFlash?e.localize("flash.off"):e.localize("flash.on")),1)])])])}var h=b(M,[["render",I],["styles",[k]]]);var f=plus.webview.currentWebview();if(f){let e=parseInt(f.id),a="template/__uniappscan",s={};try{s=JSON.parse(f.__query__)}catch(l){}h.mpType="page";let o=Vue.createPageApp(h,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:a,__pageQuery:s});o.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...h.styles||[]])),o.mount("#root")}})(); + +if (typeof Promise !== 'undefined' && !Promise.prototype.finally) { + Promise.prototype.finally = function(callback) { + const promise = this.constructor + return this.then( + value => promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var _=Object.create;var g=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var S=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var y=(e,a,s,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of D(a))!v.call(e,l)&&l!==s&&g(e,l,{get:()=>a[l],enumerable:!(o=E(a,l))||o.enumerable});return e};var B=(e,a,s)=>(s=e!=null?_(w(e)):{},y(a||!e||!e.__esModule?g(s,"default",{value:e,enumerable:!0}):s,e));var b=S((N,m)=>{m.exports=Vue});var d={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let a={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),o=s[1];o&&(s[1]=a[o]||o),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(e){let a=this.locale,s=a.split("-")[0],o=this.fallbackLocale,l=this.localization;function n(r){return l[r]||{}}return n("messages")[e]||n(a)[e]||n(s)[e]||n(o)[e]||e}}},p={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:a,runtime:s,data:o={},useGlobalEvent:l}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=l,this.data=JSON.parse(JSON.stringify(o)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let n=this,r=function(c){let u=c.data&&c.data.__message;!u||n.__onMessageCallback&&n.__onMessageCallback(u.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",r);else{let c=new BroadcastChannel(this.__page);c.onmessage=r}},postMessage(e={},a=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:a}})),o=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,o):new BroadcastChannel(o).postMessage(s);else{let l=plus.webview.getWebviewById(o);l&&l.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(e){this.__onMessageCallback=e}}};var i=B(b());var C=(e,a)=>{let s=e.__vccOpts||e;for(let[o,l]of a)s[o]=l;return s};var k={content:{"":{flex:1,alignItems:"center",justifyContent:"center",backgroundColor:"#000000"}},barcode:{"":{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:1}},"set-flash":{"":{alignItems:"center",justifyContent:"center",transform:"translateY(80px)",zIndex:2}},"image-flash":{"":{width:26,height:26,marginBottom:2}},"image-flash-text":{"":{fontSize:10,color:"#FFFFFF"}}},t=plus.barcode,A={qrCode:[t.QR,t.AZTEC,t.MAXICODE],barCode:[t.EAN13,t.EAN8,t.UPCA,t.UPCE,t.CODABAR,t.CODE128,t.CODE39,t.CODE93,t.ITF,t.RSS14,t.RSSEXPANDED],datamatrix:[t.DATAMATRIX],pdf417:[t.PDF417]},O={[t.QR]:"QR_CODE",[t.EAN13]:"EAN_13",[t.EAN8]:"EAN_8",[t.DATAMATRIX]:"DATA_MATRIX",[t.UPCA]:"UPC_A",[t.UPCE]:"UPC_E",[t.CODABAR]:"CODABAR",[t.CODE39]:"CODE_39",[t.CODE93]:"CODE_93",[t.CODE128]:"CODE_128",[t.ITF]:"CODE_25",[t.PDF417]:"PDF_417",[t.AZTEC]:"AZTEC",[t.RSS14]:"RSS_14",[t.RSSEXPANDED]:"RSSEXPANDED"},M={mixins:[p,d],data:{filters:[0,2,1],backgroud:"#000000",frameColor:"#118ce9",scanbarColor:"#118ce9",enabledFlash:!1,flashImage0:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABjklEQVRoQ+1ZbVHEQAx9TwE4ABTcOQAknANQAKcAUAAOAAXgAHAACsDCKQiTmbYDzJZtNt2bFrJ/m6+Xl2yyU2LmhzOPH/8PgIjcADirxNyapNoffMwMiMgzgMPBHmyCLySPLCoBwJKtAbJbYaBmD1yRvBwAtBMxl5DF+DZkiwCIyBLAzsgBbki+Wm2WAlCaL6zOMvKnJO+sNksB7ALQbO1ZHfbIv5FUVs2nCIB6EZETALdmj2mFY5I6X8ynGEADQllYmL1+VzBfnV/VvQB0aj45ARyQ/Ci14QLQsOBZLe5JaikWnzEA7AN4L4hgA2Dpyb76dANwsOCq/TZhASAYKGie0a7R1lDPI0ebtF0NUi+4yfdAtxr3PEMnD6BbD0QkNfACQO05EAwMuaBqDrIVycdmTpwDuP4R0OR7QFftVRP0g+49cwOQq4DJMxAAchmofY3m/EcJBQOZbTRKKJeBKKEoIePvpFRJ1VzmciUccyCa+C81cerBkuuB7sGTE/zt+yhN7AnAqxsAvBn06n8CkyPwMZKwm+UAAAAASUVORK5CYII=",flashImage1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUAAAA3kvI3lfY2k/VAl+43k/U3k/Q4k/M3kvI3k/M4k/Q4lPU2lPU2k/Vdq843k/WWSpNKAAAAD3RSTlMAwD+QINCAcPBgUDDgoBAE044kAAAAdklEQVQ4y2OgOrD/DwffUSTkERIfyZXAtOMbca7iVoKDDSgSbAijJqBI8J2HiX9FM2s+TOITmgQrTEIATYIJJuEA5mJ68S+Gg/0hEi0YEoxQK2gs0WyPQyKBGYeEAhPtJRaw45AIccXpwVEJekuwQyQWMFAfAACeDBJY9aXa3QAAAABJRU5ErkJggg==",autoDecodeCharSet:!1,localization:{en:{fail:"Recognition failure","flash.on":"Tap to turn light on","flash.off":"Tap to turn light off"},zh:{fail:"\u8BC6\u522B\u5931\u8D25","flash.on":"\u8F7B\u89E6\u7167\u4EAE","flash.off":"\u8F7B\u89E6\u5173\u95ED"}}},onLoad(){let e=this.data,a=e.scanType;this.autoDecodeCharSet=e.autoDecodeCharSet;let s=[];Array.isArray(a)&&a.length&&a.forEach(o=>{let l=A[o];l&&(s=s.concat(l))}),s.length||(s=s.concat(A.qrCode).concat(A.barCode).concat(A.datamatrix).concat(A.pdf417)),this.filters=s,this.onMessage(o=>{this.gallery()})},onUnload(){this.cancel()},methods:{start(){this.$refs.barcode.start({conserve:!0,filename:"_doc/barcode/"})},scan(e){t.scan(e,(a,s,o,l)=>{this.scanSuccess(a,s,o,l)},()=>{plus.nativeUI.toast(this.localize("fail"))},this.filters,this.autoDecodeCharSet)},cancel(){this.$refs.barcode.cancel()},gallery(){plus.gallery.pick(e=>{this.scan(e)},e=>{e.code!==(weex.config.env.platform.toLowerCase()==="android"?12:-2)&&plus.nativeUI.toast(this.localize("fail"))},{multiple:!1,system:!1,filename:"_doc/uniapp_temp/gallery/",permissionAlert:!0})},onmarked(e){var a=e.detail;this.scanSuccess(a.code,a.message,a.file,a.charSet)},scanSuccess(e,a,s,o){this.postMessage({event:"marked",detail:{scanType:O[e],result:a,charSet:o||"utf8",path:s||""}})},onerror(e){this.postMessage({event:"fail",message:JSON.stringify(e)})},setFlash(){this.enabledFlash=!this.enabledFlash,this.$refs.barcode.setFlash(this.enabledFlash)}}};function I(e,a,s,o,l,n){return(0,i.openBlock)(),(0,i.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,i.createElementVNode)("view",{class:"content"},[(0,i.createElementVNode)("barcode",{class:"barcode",ref:"barcode",autostart:"true",backgroud:e.backgroud,frameColor:e.frameColor,scanbarColor:e.scanbarColor,filters:e.filters,autoDecodeCharset:e.autoDecodeCharSet,onMarked:a[0]||(a[0]=(...r)=>n.onmarked&&n.onmarked(...r)),onError:a[1]||(a[1]=(...r)=>n.onerror&&n.onerror(...r))},null,40,["backgroud","frameColor","scanbarColor","filters","autoDecodeCharset"]),(0,i.createElementVNode)("view",{class:"set-flash",onClick:a[2]||(a[2]=(...r)=>n.setFlash&&n.setFlash(...r))},[(0,i.createElementVNode)("u-image",{class:"image-flash",src:e.enabledFlash?e.flashImage1:e.flashImage0,resize:"stretch"},null,8,["src"]),(0,i.createElementVNode)("u-text",{class:"image-flash-text"},(0,i.toDisplayString)(e.enabledFlash?e.localize("flash.off"):e.localize("flash.on")),1)])])])}var h=C(M,[["render",I],["styles",[k]]]);var f=plus.webview.currentWebview();if(f){let e=parseInt(f.id),a="template/__uniappscan",s={};try{s=JSON.parse(f.__query__)}catch(l){}h.mpType="page";let o=Vue.createPageApp(h,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:a,__pageQuery:s});o.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...h.styles||[]])),o.mount("#root")}})();
5dc2ae9948220e455c6fde3fd8738fe35077fcc5
2024-11-15 11:21:06
jixinbao
fix(x-ios): 主题切换时候考虑嵌套数据重新赋值
false
主题切换时候考虑嵌套数据重新赋值
fix
diff --git a/packages/uni-app-plus/src/x/framework/theme.ts b/packages/uni-app-plus/src/x/framework/theme.ts index f0acab3bca8..01929e1535d 100644 --- a/packages/uni-app-plus/src/x/framework/theme.ts +++ b/packages/uni-app-plus/src/x/framework/theme.ts @@ -1,4 +1,4 @@ -import { isArray, isString } from '@vue/shared' +import { isArray, isPlainObject, isString } from '@vue/shared' import { getAllPages } from '../../service/framework/page/getCurrentPages' import { getTabBar } from './app/tabBar' import { parsePageStyle } from './page/register' @@ -81,7 +81,6 @@ export const onThemeChange = function (themeMode: IThemeMode) { normalizeTabBarStyles(tabBarConfig, __uniConfig.themeConfig, themeMode) const tabBarStyle = new Map<string, any | null>() - const tabBarItemUpdateConfig = ['iconPath', 'selectedIconPath'] const tabBarConfigKeys = Object.keys(tabBarConfig) tabBarConfigKeys.forEach((key) => { @@ -94,7 +93,7 @@ export const onThemeChange = function (themeMode: IThemeMode) { valueAsArray.forEach((item) => { const tabBarItemMap = new Map<string, any | null>() tabBarItemMap.set('index', index) - tabBarItemUpdateConfig.forEach((tabBarItemkey) => { + Object.keys(item).forEach((tabBarItemkey) => { if (item[tabBarItemkey] != null) { tabBarItemMap.set(tabBarItemkey, item[tabBarItemkey]) } @@ -149,6 +148,8 @@ function normalizeStyles( valueAsArray.forEach((item) => { normalizeStyles(item, themeMap) }) + } else if (isPlainObject(value)) { + normalizeStyles(value, themeMap) } }) }
3c8e33ee2cdc5f86f7ae59df0940b75dc11c8a83
2023-01-14 15:16:12
fxy060608
chore: build
false
build
chore
diff --git a/packages/uni-app-plus/dist/style.css b/packages/uni-app-plus/dist/style.css index e38d49cfa79..681ca82624c 100644 --- a/packages/uni-app-plus/dist/style.css +++ b/packages/uni-app-plus/dist/style.css @@ -1 +1 @@ -*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff;height:100%}#app{height:100%}@media (prefers-color-scheme: dark){body{background-color:#191919;color:rgba(255,255,255,.8)}}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}@media (prefers-color-scheme: dark){uni-button,uni-button[type=default]{color:#d6d6d6;background-color:#343434}.button-hover,.button-hover[type=default]{color:#d6d6d6;background-color:rgba(255,255,255,.1)}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.08)}uni-button[type=primary][plain][disabled]{color:rgba(255,255,255,.2);border-color:rgba(255,255,255,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:rgba(150,150,150,.6);border-color:rgba(150,150,150,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden;text-overflow:inherit;white-space:inherit;align-items:inherit;justify-content:inherit;flex-direction:inherit;flex-wrap:inherit;display:inherit;overflow:inherit}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:transparent}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0px;left:0px;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}@media (prefers-color-scheme: dark){.uni-picker-view-indicator:before{border-top-color:var(--UI-FG-3)}.uni-picker-view-indicator:after{border-bottom-color:var(--UI-FG-3)}.uni-picker-view-mask{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled svg{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{fill:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}@media (prefers-color-scheme: dark){uni-switch .uni-switch-input{border-color:#3b3b3f}uni-switch .uni-switch-input,uni-switch .uni-switch-input:before{background-color:#3b3b3f}uni-switch .uni-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} +*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff;height:100%}#app{height:100%}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}@media (prefers-color-scheme: dark){html{--UI-BG-CLOLOR-ACTIVE: #373737;--UI-BORDER-CLOLOR-1: #373737;--UI-BG: #000;--UI-BG-0: #191919;--UI-BG-1: #1f1f1f;--UI-BG-2: #232323;--UI-BG-3: #2f2f2f;--UI-BG-4: #606060;--UI-BG-5: #2c2c2c;--UI-FG: #fff;--UI-FG-0: hsla(0, 0%, 100%, .8);--UI-FG-HALF: hsla(0, 0%, 100%, .6);--UI-FG-1: hsla(0, 0%, 100%, .5);--UI-FG-2: hsla(0, 0%, 100%, .3);--UI-FG-3: hsla(0, 0%, 100%, .05)}body{background-color:var(--UI-BG-0);color:var(--UI-FG-0)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}@media (prefers-color-scheme: dark){uni-button,uni-button[type=default]{color:#d6d6d6;background-color:#343434}.button-hover,.button-hover[type=default]{color:#d6d6d6;background-color:rgba(255,255,255,.1)}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.08)}uni-button[type=primary][plain][disabled]{color:rgba(255,255,255,.2);border-color:rgba(255,255,255,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:rgba(150,150,150,.6);border-color:rgba(150,150,150,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden;text-overflow:inherit;white-space:inherit;align-items:inherit;justify-content:inherit;flex-direction:inherit;flex-wrap:inherit;display:inherit;overflow:inherit}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:transparent}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0px;left:0px;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}@media (prefers-color-scheme: dark){.uni-picker-view-indicator:before{border-top-color:var(--UI-FG-3)}.uni-picker-view-indicator:after{border-bottom-color:var(--UI-FG-3)}.uni-picker-view-mask{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled svg{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{fill:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}@media (prefers-color-scheme: dark){uni-switch .uni-switch-input{border-color:#3b3b3f}uni-switch .uni-switch-input,uni-switch .uni-switch-input:before{background-color:#3b3b3f}uni-switch .uni-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index 06b0b08d669..804faa95f72 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -1 +1 @@ -!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e={},t={get exports(){return e},set exports(t){e=t}},n={},r={get exports(){return n},set exports(e){n=e}},i={},a={get exports(){return i},set exports(e){i=e}}.exports={version:"2.6.12"};"number"==typeof __e&&(__e=a);var o={};({get exports(){return o},set exports(e){o=e}}).exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=window);var s=i,l="__core-js_shared__",u=window[l]||(window[l]={});(r.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:s.version,mode:"window",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var c=0,d=Math.random(),h=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++c+d).toString(36))},f=n("wks"),p=h,v=o.Symbol,g="function"==typeof v;(t.exports=function(e){return f[e]||(f[e]=g&&v[e]||(g?v:p)("Symbol."+e))}).store=f;var m,_,y={},b=function(e){return"object"==typeof e?null!==e:"function"==typeof e},w=b,x=function(e){if(!w(e))throw TypeError(e+" is not an object!");return e},S=function(e){try{return!!e()}catch(t){return!0}},k=!S((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));function T(){if(_)return m;_=1;var e=b,t=o.document,n=e(t)&&e(t.createElement);return m=function(e){return n?t.createElement(e):{}}}var E=!k&&!S((function(){return 7!=Object.defineProperty(T()("div"),"a",{get:function(){return 7}}).a})),C=b,M=x,O=E,I=function(e,t){if(!C(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!C(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!C(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!C(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},L=Object.defineProperty;y.f=k?Object.defineProperty:function(e,t,n){if(M(e),t=I(t,!0),M(n),O)try{return L(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N=y,B=A,R=k?function(e,t,n){return N.f(e,t,B(1,n))}:function(e,t,n){return e[t]=n,e},P=e("unscopables"),z=Array.prototype;null==z[P]&&R(z,P,{});var D={},F={}.toString,$=function(e){return F.call(e).slice(8,-1)},j=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},W=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==$(e)?e.split(""):Object(e)},V=j,H=function(e){return W(V(e))},U={},q={get exports(){return U},set exports(e){U=e}},Y={}.hasOwnProperty,X=function(e,t){return Y.call(e,t)},Z=n("native-function-to-string",Function.toString),G=R,K=X,J=h("src"),Q=Z,ee="toString",te=(""+Q).split(ee);i.inspectSource=function(e){return Q.call(e)},(q.exports=function(e,t,n,r){var i="function"==typeof n;i&&(K(n,"name")||G(n,"name",t)),e[t]!==n&&(i&&(K(n,J)||G(n,J,e[t]?""+e[t]:te.join(String(t)))),e===window?e[t]=n:r?e[t]?e[t]=n:G(e,t,n):(delete e[t],G(e,t,n)))})(Function.prototype,ee,(function(){return"function"==typeof this&&this[J]||Q.call(this)}));var ne=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},re=ne,ie=i,ae=R,oe=U,se=function(e,t,n){if(re(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},le="prototype",ue=function(e,t,n){var r,i,a,o,s=e&ue.F,l=e&ue.G,u=e&ue.S,c=e&ue.P,d=e&ue.B,h=l?window:u?window[t]||(window[t]={}):(window[t]||{})[le],f=l?ie:ie[t]||(ie[t]={}),p=f[le]||(f[le]={});for(r in l&&(n=t),n)a=((i=!s&&h&&void 0!==h[r])?h:n)[r],o=d&&i?se(a,window):c&&"function"==typeof a?se(Function.call,a):a,h&&oe(h,r,a,e&ue.U),f[r]!=a&&ae(f,r,o),c&&p[r]!=a&&(p[r]=a)};window.core=ie,ue.F=1,ue.G=2,ue.S=4,ue.P=8,ue.B=16,ue.W=32,ue.U=64,ue.R=128;var ce,de,he,fe=ue,pe=Math.ceil,ve=Math.floor,ge=function(e){return isNaN(e=+e)?0:(e>0?ve:pe)(e)},me=ge,_e=Math.min,ye=ge,be=Math.max,we=Math.min,xe=H,Se=function(e){return e>0?_e(me(e),9007199254740991):0},ke=function(e,t){return(e=ye(e))<0?be(e+t,0):we(e,t)},Te=n("keys"),Ee=h,Ce=function(e){return Te[e]||(Te[e]=Ee(e))},Me=X,Oe=H,Ie=(ce=!1,function(e,t,n){var r,i=xe(e),a=Se(i.length),o=ke(n,a);if(ce&&t!=t){for(;a>o;)if((r=i[o++])!=r)return!0}else for(;a>o;o++)if((ce||o in i)&&i[o]===t)return ce||o||0;return!ce&&-1}),Le=Ce("IE_PROTO"),Ae="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ne=function(e,t){var n,r=Oe(e),i=0,a=[];for(n in r)n!=Le&&Me(r,n)&&a.push(n);for(;t.length>i;)Me(r,n=t[i++])&&(~Ie(a,n)||a.push(n));return a},Be=Ae,Re=Object.keys||function(e){return Ne(e,Be)},Pe=y,ze=x,De=Re,Fe=k?Object.defineProperties:function(e,t){ze(e);for(var n,r=De(t),i=r.length,a=0;i>a;)Pe.f(e,n=r[a++],t[n]);return e};var $e=x,je=Fe,We=Ae,Ve=Ce("IE_PROTO"),He=function(){},Ue="prototype",qe=function(){var e,t=T()("iframe"),n=We.length;for(t.style.display="none",function(){if(he)return de;he=1;var e=o.document;return de=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),qe=e.F;n--;)delete qe[Ue][We[n]];return qe()},Ye=Object.create||function(e,t){var n;return null!==e?(He[Ue]=$e(e),n=new He,He[Ue]=null,n[Ve]=e):n=qe(),void 0===t?n:je(n,t)},Xe=y.f,Ze=X,Ge=e("toStringTag"),Ke=function(e,t,n){e&&!Ze(e=n?e:e.prototype,Ge)&&Xe(e,Ge,{configurable:!0,value:t})},Je=Ye,Qe=A,et=Ke,tt={};R(tt,e("iterator"),(function(){return this}));var nt=j,rt=function(e){return Object(nt(e))},it=X,at=rt,ot=Ce("IE_PROTO"),st=Object.prototype,lt=Object.getPrototypeOf||function(e){return e=at(e),it(e,ot)?e[ot]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?st:null},ut=fe,ct=U,dt=R,ht=D,ft=function(e,t,n){e.prototype=Je(tt,{next:Qe(1,n)}),et(e,t+" Iterator")},pt=Ke,vt=lt,gt=e("iterator"),mt=!([].keys&&"next"in[].keys()),_t="keys",yt="values",bt=function(){return this},wt=function(e){z[P][e]=!0},xt=function(e,t){return{value:t,done:!!e}},St=D,kt=H,Tt=function(e,t,n,r,i,a,o){ft(n,t,r);var s,l,u,c=function(e){if(!mt&&e in p)return p[e];switch(e){case _t:case yt:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",h=i==yt,f=!1,p=e.prototype,v=p[gt]||p["@@iterator"]||i&&p[i],g=v||c(i),m=i?h?c("entries"):g:void 0,_="Array"==t&&p.entries||v;if(_&&(u=vt(_.call(new e)))!==Object.prototype&&u.next&&(pt(u,d,!0),"function"!=typeof u[gt]&&dt(u,gt,bt)),h&&v&&v.name!==yt&&(f=!0,g=function(){return v.call(this)}),(mt||f||!p[gt])&&dt(p,gt,g),ht[t]=g,ht[d]=bt,i)if(s={values:h?g:c(yt),keys:a?g:c(_t),entries:m},o)for(l in s)l in p||ct(p,l,s[l]);else ut(ut.P+ut.F*(mt||f),t,s);return s}(Array,"Array",(function(e,t){this._t=kt(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,xt(1)):xt(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values");St.Arguments=St.Array,wt("keys"),wt("values"),wt("entries");for(var Et=Tt,Ct=Re,Mt=U,Ot=R,It=D,Lt=e,At=Lt("iterator"),Nt=Lt("toStringTag"),Bt=It.Array,Rt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Pt=Ct(Rt),zt=0;zt<Pt.length;zt++){var Dt,Ft=Pt[zt],$t=Rt[Ft],jt=window[Ft],Wt=jt&&jt.prototype;if(Wt&&(Wt[At]||Ot(Wt,At,Bt),Wt[Nt]||Ot(Wt,Nt,Ft),It[Ft]=Bt,$t))for(Dt in Et)Wt[Dt]||Mt(Wt,Dt,Et[Dt],!0)}function Vt(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function Ht(e){if(fn(e)){for(var t={},n=0;n<e.length;n++){var r=e[n],i=gn(r)?Xt(r):Ht(r);if(i)for(var a in i)t[a]=i[a]}return t}return gn(e)||_n(e)?e:void 0}var Ut=/;(?![^(]*\))/g,qt=/:([^]+)/,Yt=/\/\*[\s\S]*?\*\//g;function Xt(e){var t={};return e.replace(Yt,"").split(Ut).forEach((e=>{if(e){var n=e.split(qt);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Zt(e){var t="";if(gn(e))t=e;else if(fn(e))for(var n=0;n<e.length;n++){var r=Zt(e[n]);r&&(t+=r+" ")}else if(_n(e))for(var i in e)e[i]&&(t+=i+" ");return t.trim()}var Gt=Vt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Kt(e){return!!e||""===e}var Jt,Qt,en,tn={},nn=[],rn=()=>{},an=()=>!1,on=/^on[^a-z]/,sn=e=>on.test(e),ln=e=>e.startsWith("onUpdate:"),un=Object.assign,cn=(e,t)=>{var n=e.indexOf(t);n>-1&&e.splice(n,1)},dn=Object.prototype.hasOwnProperty,hn=(e,t)=>dn.call(e,t),fn=Array.isArray,pn=e=>"[object Map]"===wn(e),vn=e=>"function"==typeof e,gn=e=>"string"==typeof e,mn=e=>"symbol"==typeof e,_n=e=>null!==e&&"object"==typeof e,yn=e=>_n(e)&&vn(e.then)&&vn(e.catch),bn=Object.prototype.toString,wn=e=>bn.call(e),xn=e=>"[object Object]"===wn(e),Sn=e=>gn(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,kn=Vt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=e=>{var t=Object.create(null);return n=>t[n]||(t[n]=e(n))},En=/-(\w)/g,Cn=Tn((e=>e.replace(En,((e,t)=>t?t.toUpperCase():"")))),Mn=/\B([A-Z])/g,On=Tn((e=>e.replace(Mn,"-$1").toLowerCase())),In=Tn((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ln=Tn((e=>e?"on".concat(In(e)):"")),An=(e,t)=>!Object.is(e,t),Nn=(e,t)=>{for(var n=0;n<e.length;n++)e[n](t)},Bn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Rn=e=>{var t=parseFloat(e);return isNaN(t)?e:t};var Pn=fe,zn=ne,Dn=rt,Fn=S,$n=[].sort,jn=[1,2,3];Pn(Pn.P+Pn.F*(Fn((function(){jn.sort(void 0)}))||!Fn((function(){jn.sort(null)}))||!function(){if(en)return Qt;en=1;var e=S;return Qt=function(t,n){return!!t&&e((function(){n?t.call(null,(function(){}),1):t.call(null)}))}}()($n)),"Array",{sort:function(e){return void 0===e?$n.call(Dn(this)):$n.call(Dn(this),zn(e))}});var Wn="\n",Vn="#007aff",Hn=/^([a-z-]+:)?\/\//i,Un=/^data:.*,.*/,qn="wxs://",Yn="json://",Xn="renderjsModules",Zn=0;function Gn(e){var t=Date.now(),n=Zn?t-Zn:0;Zn=t;for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return"[".concat(t,"][").concat(n,"ms][").concat(e,"]:").concat(i.map((e=>JSON.stringify(e))).join(" "))}function Kn(e){return function(e){return 0===e.indexOf("/")}(e)?e:"/"+e}function Jn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){if(e){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t=e.apply(n,i),e=null}return t}}function Qn(e,t){if(gn(t)){var n=(t=t.replace(/\[(\d+)\]/g,".$1")).split("."),r=n[0];return e||(e={}),1===n.length?e[r]:Qn(e[r],n.slice(1).join("."))}}function er(e){return Cn(e.substring(5))}var tr=Jn((()=>{var e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){e.startsWith("data-")&&this.tagName.startsWith("UNI-")&&((this.__uniDataset||(this.__uniDataset={}))[er(e)]=n);t.call(this,e,n)};var n=e.removeAttribute;e.removeAttribute=function(e){this.__uniDataset&&e.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[er(e)],n.call(this,e)}}));function nr(e){return un({},e.dataset,e.__uniDataset)}var rr=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function ir(e){return{passive:e}}function ar(e){var{id:t,offsetTop:n,offsetLeft:r}=e;return{id:t,dataset:nr(e),offsetTop:n,offsetLeft:r}}function or(e){if(vn(e))return window.plus?e():void document.addEventListener("plusready",e)}var sr=/(?:Once|Passive|Capture)$/;function lr(e){var t,n;if(sr.test(e))for(t={};n=e.match(sr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0;return[On(e.slice(2)),t]}var ur=(()=>({stop:1,prevent:2,self:4}))(),cr="class",dr="style",hr=".vShow",fr=".vOwnerId",pr=".vRenderjs",vr="change:";var gr=function(){};gr.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}};var mr=gr,_r=["{","}"];var yr=/^(?:\d)+/,br=/^(?:\w)+/;var wr="zh-Hans",xr="zh-Hant",Sr="en",kr="fr",Tr="es",Er=Object.prototype.hasOwnProperty,Cr=(e,t)=>Er.call(e,t),Mr=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_r;if(!t)return[e];var r=this._caches[e];return r||(r=function(e,t){var[n,r]=t,i=[],a=0,o="";for(;a<e.length;){var s=e[a++];if(s===n){o&&i.push({type:"text",value:o}),o="";var l="";for(s=e[a++];void 0!==s&&s!==r;)l+=s,s=e[a++];var u=s===r,c=yr.test(l)?"list":u&&br.test(l)?"named":"unknown";i.push({value:l,type:c})}else o+=s}return o&&i.push({type:"text",value:o}),i}(e,n),this._caches[e]=r),function(e,t){var n=[],r=0,i=Array.isArray(t)?"list":(a=t,null!==a&&"object"==typeof a?"named":"unknown");var a;if("unknown"===i)return n;for(;r<e.length;){var o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(t[o.value])}r++}return n}(r,t)}};function Or(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return wr;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?wr:e.indexOf("-hant")>-1?xr:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?xr:wr);var n,r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,[Sr,kr,Tr]);return r||void 0}}class Ir{constructor(e){var{locale:t,fallbackLocale:n,messages:r,watcher:i,formater:a}=e;this.locale=Sr,this.fallbackLocale=Sr,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=a||Mr,this.messages=r||{},this.setLocale(t||Sr),i&&this.watchLocale(i)}setLocale(e){var t=this.locale;this.locale=Or(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){var t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((e=>{Cr(r,e)||(r[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){var r=this.message;return"string"==typeof t?(t=Or(t,this.messages))&&(r=this.messages[t]):n=t,Cr(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}function Lr(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}function Ar(){return"undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof window&&window.getLocale?window.getLocale():Sr}var Nr,Br=Jn((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));function Rr(){var e;if(!Nr&&(e="function"==typeof getApp?weex.requireModule("plus").getLanguage():plus.webview.currentWebview().getStyle().locale,Nr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e=Ar()),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Sr);var i=new Ir({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=(e,t)=>{if("function"!=typeof getApp)a=function(e,t){return i.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,Lr(r,i))),i.t(e,t)}}return a(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>a(e,t),add(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i.add(e,t,n)},watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}(e),Br())){var t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Nr.add(e,__uniConfig.locales[e]))),Nr.setLocale(e)}return Nr}function Pr(e,t,n){return t.reduce(((t,r,i)=>(t[e+r]=n[i],t)),{})}var zr=Jn((()=>{var e="uni.picker.",t=["done","cancel"];Rr().add(Sr,Pr(e,t,["Done","Cancel"]),!1),Rr().add(Tr,Pr(e,t,["OK","Cancelar"]),!1),Rr().add(kr,Pr(e,t,["OK","Annuler"]),!1),Rr().add(wr,Pr(e,t,["完成","取消"]),!1),Rr().add(xr,Pr(e,t,["完成","取消"]),!1)})),Dr=Jn((()=>{var e="uni.button.",t=["feedback.title","feedback.send"];Rr().add(Sr,Pr(e,t,["feedback","send"]),!1),Rr().add(Tr,Pr(e,t,["realimentación","enviar"]),!1),Rr().add(kr,Pr(e,t,["retour d'information","envoyer"]),!1),Rr().add(wr,Pr(e,t,["问题反馈","发送"]),!1),Rr().add(xr,Pr(e,t,["問題反饋","發送"]),!1)}));function Fr(e){var t=new mr;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.emit(e,...r)},subscribe(n,r){t[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"once":"on"]("".concat(e,".").concat(n),r)},unsubscribe(n,r){t.off("".concat(e,".").concat(n),r)},subscribeHandler(n,r,i){t.emit("".concat(e,".").concat(n),r,i)}}}var $r="invokeViewApi",jr="invokeServiceApi",Wr=1,Vr=Object.create(null);function Hr(e,t){return e+"."+t}function Ur(e,t,n){t=Hr(e,t),Vr[t]||(Vr[t]=n)}function qr(e,t){var{id:n,name:r,args:i}=e;r=Hr(t,r);var a=e=>{n&&UniViewJSBridge.publishHandler($r+"."+n,e)},o=Vr[r];o?o(i,a):a({})}var Yr,Xr=un(Fr("service"),{invokeServiceMethod:(e,t,n)=>{var{subscribe:r,publishHandler:i}=UniViewJSBridge,a=n?Wr++:0;n&&r(jr+"."+a,n,!0),i(jr,{id:a,name:e,args:t})}}),Zr=ir(!0);function Gr(){Yr&&(clearTimeout(Yr),Yr=null)}var Kr,Jr=0,Qr=0;function ei(e){if(Gr(),1===e.touches.length){var{pageX:t,pageY:n}=e.touches[0];Jr=t,Qr=n,Yr=setTimeout((function(){var t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}}function ti(e){if(Yr){if(1!==e.touches.length)return Gr();var{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Jr)>10||Math.abs(n-Qr)>10?Gr():void 0}}function ni(e,t){var n=Number(e);return isNaN(n)?t:n}function ri(){var e=__uniConfig.globalStyle||{},t=ni(e.rpxCalcMaxDeviceWidth,960),n=ni(e.rpxCalcBaseDeviceWidth,375);function r(){var e,r,i,a=(e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,r=e&&90===Math.abs(window.orientation),i=e?Math[r?"max":"min"](screen.width,screen.height):screen.width,Math.min(window.innerWidth,document.documentElement.clientWidth,i)||i);a=a<=t?a:n,document.documentElement.style.fontSize=a/23.4375+"px"}r(),document.addEventListener("DOMContentLoaded",r),window.addEventListener("load",r),window.addEventListener("resize",r)}function ii(){ri(),tr(),window.addEventListener("touchstart",ei,Zr),window.addEventListener("touchmove",ti,Zr),window.addEventListener("touchend",Gr,Zr),window.addEventListener("touchcancel",Gr,Zr)}class ai{constructor(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Kr,!e&&Kr&&(this.index=(Kr.scopes||(Kr.scopes=[])).push(this)-1)}run(e){if(this.active){var t=Kr;try{return Kr=this,e()}finally{Kr=t}}}on(){Kr=this}off(){Kr=this.parent}stop(e){if(this.active){var t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}}}var oi,si=e=>{var t=new Set(e);return t.w=0,t.n=0,t},li=e=>(e.w&hi)>0,ui=e=>(e.n&hi)>0,ci=new WeakMap,di=0,hi=1,fi=Symbol(""),pi=Symbol("");class vi{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kr;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();for(var e=oi,t=mi;e;){if(e===this)return;e=e.parent}try{return this.parent=oi,oi=this,mi=!0,hi=1<<++di,di<=30?(e=>{var{deps:t}=e;if(t.length)for(var n=0;n<t.length;n++)t[n].w|=hi})(this):gi(this),this.fn()}finally{di<=30&&(e=>{var{deps:t}=e;if(t.length){for(var n=0,r=0;r<t.length;r++){var i=t[r];li(i)&&!ui(i)?i.delete(e):t[n++]=i,i.w&=~hi,i.n&=~hi}t.length=n}})(this),hi=1<<--di,oi=this.parent,mi=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){oi===this?this.deferStop=!0:this.active&&(gi(this),this.onStop&&this.onStop(),this.active=!1)}}function gi(e){var{deps:t}=e;if(t.length){for(var n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var mi=!0,_i=[];function yi(){_i.push(mi),mi=!1}function bi(){var e=_i.pop();mi=void 0===e||e}function wi(e,t,n){if(mi&&oi){var r=ci.get(e);r||ci.set(e,r=new Map);var i=r.get(n);i||r.set(n,i=si()),xi(i)}}function xi(e,t){var n=!1;di<=30?ui(e)||(e.n|=hi,n=!li(e)):n=!e.has(oi),n&&(e.add(oi),oi.deps.push(e))}function Si(e,t,n,r,i,a){var o=ci.get(e);if(o){var s=[];if("clear"===t)s=[...o.values()];else if("length"===n&&fn(e)){var l=Rn(r);o.forEach(((e,t)=>{("length"===t||t>=l)&&s.push(e)}))}else switch(void 0!==n&&s.push(o.get(n)),t){case"add":fn(e)?Sn(n)&&s.push(o.get("length")):(s.push(o.get(fi)),pn(e)&&s.push(o.get(pi)));break;case"delete":fn(e)||(s.push(o.get(fi)),pn(e)&&s.push(o.get(pi)));break;case"set":pn(e)&&s.push(o.get(fi))}if(1===s.length)s[0]&&ki(s[0]);else{var u=[];for(var c of s)c&&u.push(...c);ki(si(u))}}}function ki(e,t){var n=fn(e)?e:[...e];for(var r of n)r.computed&&Ti(r);for(var i of n)i.computed||Ti(i)}function Ti(e,t){(e!==oi||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}var Ei=Vt("__proto__,__v_isRef,__isVue"),Ci=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(mn)),Mi=Ni(),Oi=Ni(!1,!0),Ii=Ni(!0),Li=Ai();function Ai(){var e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){for(var e=_a(this),n=0,r=this.length;n<r;n++)wi(e,0,n+"");for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=e[t](...a);return-1===s||!1===s?e[t](...a.map(_a)):s}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){yi();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=_a(this)[t].apply(this,n);return bi(),i}})),e}function Ni(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?la:sa:t?oa:aa).get(n))return n;var a=fn(n);if(!e&&a&&hn(Li,r))return Reflect.get(Li,r,i);var o=Reflect.get(n,r,i);return(mn(r)?Ci.has(r):Ei(r))?o:(e||wi(n,0,r),t?o:ka(o)?a&&Sn(r)?o:o.value:_n(o)?e?ha(o):ca(o):o)}}function Bi(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,i){var a=t[n];if(va(a)&&ka(a)&&!ka(r))return!1;if(!e&&(ga(r)||va(r)||(a=_a(a),r=_a(r)),!fn(t)&&ka(a)&&!ka(r)))return a.value=r,!0;var o=fn(t)&&Sn(n)?Number(n)<t.length:hn(t,n),s=Reflect.set(t,n,r,i);return t===_a(i)&&(o?An(r,a)&&Si(t,"set",n,r):Si(t,"add",n,r)),s}}var Ri={get:Mi,set:Bi(),deleteProperty:function(e,t){var n=hn(e,t);e[t];var r=Reflect.deleteProperty(e,t);return r&&n&&Si(e,"delete",t,void 0),r},has:function(e,t){var n=Reflect.has(e,t);return mn(t)&&Ci.has(t)||wi(e,0,t),n},ownKeys:function(e){return wi(e,0,fn(e)?"length":fi),Reflect.ownKeys(e)}},Pi={get:Ii,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},zi=un({},Ri,{get:Oi,set:Bi(!0)}),Di=e=>e,Fi=e=>Reflect.getPrototypeOf(e);function $i(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=_a(e=e.__v_raw),a=_a(t);n||(t!==a&&wi(i,0,t),wi(i,0,a));var{has:o}=Fi(i),s=r?Di:n?wa:ba;return o.call(i,t)?s(e.get(t)):o.call(i,a)?s(e.get(a)):void(e!==i&&e.get(t))}function ji(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=_a(n),i=_a(e);return t||(e!==i&&wi(r,0,e),wi(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function Wi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&wi(_a(e),0,fi),Reflect.get(e,"size",e)}function Vi(e){e=_a(e);var t=_a(this);return Fi(t).has.call(t,e)||(t.add(e),Si(t,"add",e,e)),this}function Hi(e,t){t=_a(t);var n=_a(this),{has:r,get:i}=Fi(n),a=r.call(n,e);a||(e=_a(e),a=r.call(n,e));var o=i.call(n,e);return n.set(e,t),a?An(t,o)&&Si(n,"set",e,t):Si(n,"add",e,t),this}function Ui(e){var t=_a(this),{has:n,get:r}=Fi(t),i=n.call(t,e);i||(e=_a(e),i=n.call(t,e)),r&&r.call(t,e);var a=t.delete(e);return i&&Si(t,"delete",e,void 0),a}function qi(){var e=_a(this),t=0!==e.size,n=e.clear();return t&&Si(e,"clear",void 0,void 0),n}function Yi(e,t){return function(n,r){var i=this,a=i.__v_raw,o=_a(a),s=t?Di:e?wa:ba;return!e&&wi(o,0,fi),a.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Xi(e,t,n){return function(){var r=this.__v_raw,i=_a(r),a=pn(i),o="entries"===e||e===Symbol.iterator&&a,s="keys"===e&&a,l=r[e](...arguments),u=n?Di:t?wa:ba;return!t&&wi(i,0,s?pi:fi),{next(){var{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:o?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Zi(e){return function(){return"delete"!==e&&this}}function Gi(){var e={get(e){return $i(this,e)},get size(){return Wi(this)},has:ji,add:Vi,set:Hi,delete:Ui,clear:qi,forEach:Yi(!1,!1)},t={get(e){return $i(this,e,!1,!0)},get size(){return Wi(this)},has:ji,add:Vi,set:Hi,delete:Ui,clear:qi,forEach:Yi(!1,!0)},n={get(e){return $i(this,e,!0)},get size(){return Wi(this,!0)},has(e){return ji.call(this,e,!0)},add:Zi("add"),set:Zi("set"),delete:Zi("delete"),clear:Zi("clear"),forEach:Yi(!0,!1)},r={get(e){return $i(this,e,!0,!0)},get size(){return Wi(this,!0)},has(e){return ji.call(this,e,!0)},add:Zi("add"),set:Zi("set"),delete:Zi("delete"),clear:Zi("clear"),forEach:Yi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Xi(i,!1,!1),n[i]=Xi(i,!0,!1),t[i]=Xi(i,!1,!0),r[i]=Xi(i,!0,!0)})),[e,n,t,r]}var[Ki,Ji,Qi,ea]=Gi();function ta(e,t){var n=t?e?ea:Qi:e?Ji:Ki;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(hn(n,r)&&r in t?n:t,r,i)}var na={get:ta(!1,!1)},ra={get:ta(!1,!0)},ia={get:ta(!0,!1)},aa=new WeakMap,oa=new WeakMap,sa=new WeakMap,la=new WeakMap;function ua(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>wn(e).slice(8,-1))(e))}function ca(e){return va(e)?e:fa(e,!1,Ri,na,aa)}function da(e){return fa(e,!1,zi,ra,oa)}function ha(e){return fa(e,!0,Pi,ia,sa)}function fa(e,t,n,r,i){if(!_n(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;var a=i.get(e);if(a)return a;var o=ua(e);if(0===o)return e;var s=new Proxy(e,2===o?r:n);return i.set(e,s),s}function pa(e){return va(e)?pa(e.__v_raw):!(!e||!e.__v_isReactive)}function va(e){return!(!e||!e.__v_isReadonly)}function ga(e){return!(!e||!e.__v_isShallow)}function ma(e){return pa(e)||va(e)}function _a(e){var t=e&&e.__v_raw;return t?_a(t):e}function ya(e){return Bn(e,"__v_skip",!0),e}var ba=e=>_n(e)?ca(e):e,wa=e=>_n(e)?ha(e):e;function xa(e){mi&&oi&&xi((e=_a(e)).dep||(e.dep=si()))}function Sa(e,t){(e=_a(e)).dep&&ki(e.dep)}function ka(e){return!(!e||!0!==e.__v_isRef)}function Ta(e){return Ca(e,!1)}function Ea(e){return Ca(e,!0)}function Ca(e,t){return ka(e)?e:new Ma(e,t)}class Ma{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:_a(e),this._value=t?e:ba(e)}get value(){return xa(this),this._value}set value(e){var t=this.__v_isShallow||ga(e)||va(e);e=t?e:_a(e),An(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ba(e),Sa(this))}}var Oa,Ia={get:(e,t,n)=>{return ka(r=Reflect.get(e,t,n))?r.value:r;var r},set:(e,t,n,r)=>{var i=e[t];return ka(i)&&!ka(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function La(e){return pa(e)?e:new Proxy(e,Ia)}class Aa{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[Oa]=!1,this._dirty=!0,this.effect=new vi(e,(()=>{this._dirty||(this._dirty=!0,Sa(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){var e=_a(this);return xa(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Na(e,t,n,r){var i;try{i=r?e(...r):e()}catch(a){Ra(a,t,n)}return i}function Ba(e,t,n,r){if(vn(e)){var i=Na(e,t,n,r);return i&&yn(i)&&i.catch((e=>{Ra(e,t,n)})),i}for(var a=[],o=0;o<e.length;o++)a.push(Ba(e[o],t,n,r));return a}function Ra(e,t,n){if(t&&t.vnode,t){for(var r=t.parent,i=t.proxy,a=n;r;){var o=r.ec;if(o)for(var s=0;s<o.length;s++)if(!1===o[s](e,i,a))return;r=r.parent}var l=t.appContext.config.errorHandler;if(l)return void Na(l,null,10,[e,i,a])}!function(e,t,n){e instanceof Error?console.error(e.message+"\n"+e.stack):console.error(e)}(e)}Oa="__v_isReadonly";var Pa=!1,za=!1,Da=[],Fa=0,$a=[],ja=null,Wa=0,Va=Promise.resolve(),Ha=null;function Ua(e){var t=Ha||Va;return e?t.then(this?e.bind(this):e):t}function qa(e){Da.length&&Da.includes(e,Pa&&e.allowRecurse?Fa+1:Fa)||(null==e.id?Da.push(e):Da.splice(function(e){for(var t=Fa+1,n=Da.length;t<n;){var r=t+n>>>1;Ga(Da[r])<e?t=r+1:n=r}return t}(e.id),0,e),Ya())}function Ya(){Pa||za||(za=!0,Ha=Va.then(Ja))}function Xa(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pa?Fa+1:0;t<Da.length;t++){var n=Da[t];n&&n.pre&&(Da.splice(t,1),t--,n())}}function Za(e){if($a.length){var t=[...new Set($a)];if($a.length=0,ja)return void ja.push(...t);for((ja=t).sort(((e,t)=>Ga(e)-Ga(t))),Wa=0;Wa<ja.length;Wa++)ja[Wa]();ja=null,Wa=0}}var Ga=e=>null==e.id?1/0:e.id,Ka=(e,t)=>{var n=Ga(e)-Ga(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ja(e){za=!1,Pa=!0,Da.sort(Ka);try{for(Fa=0;Fa<Da.length;Fa++){var t=Da[Fa];t&&!1!==t.active&&Na(t,null,14)}}finally{Fa=0,Da.length=0,Za(),Pa=!1,Ha=null,(Da.length||$a.length)&&Ja()}}function Qa(e,t){if(!e.isUnmounted){for(var n=e.vnode.props||tn,r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var o,s=i,l=t.startsWith("update:"),u=l&&t.slice(7);if(u&&u in n){var c="".concat("modelValue"===u?"model":u,"Modifiers"),{number:d,trim:h}=n[c]||tn;h&&(s=i.map((e=>gn(e)?e.trim():e))),d&&(s=i.map(Rn))}var f=n[o=Ln(t)]||n[o=Ln(Cn(t))];!f&&l&&(f=n[o=Ln(On(t))]),f&&Ba(f,e,6,s);var p=n[o+"Once"];if(p){if(e.emitted){if(e.emitted[o])return}else e.emitted={};e.emitted[o]=!0,Ba(p,e,6,s)}}}function eo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;var a=e.emits,o={},s=!1;if(!vn(e)){var l=e=>{var n=eo(e,t,!0);n&&(s=!0,un(o,n))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return a||s?(fn(a)?a.forEach((e=>o[e]=null)):un(o,a),_n(e)&&r.set(e,o),o):(_n(e)&&r.set(e,null),null)}function to(e,t){return!(!e||!sn(t))&&(t=t.slice(2).replace(/Once$/,""),hn(e,t[0].toLowerCase()+t.slice(1))||hn(e,On(t))||hn(e,t))}var no=null,ro=null;function io(e){var t=no;return no=e,ro=e&&e.type.__scopeId||null,t}function ao(e){var t,n,{type:r,vnode:i,proxy:a,withProxy:o,props:s,propsOptions:[l],slots:u,attrs:c,emit:d,render:h,renderCache:f,data:p,setupState:v,ctx:g,inheritAttrs:m}=e,_=io(e);try{if(4&i.shapeFlag){var y=o||a;t=$s(h.call(y,y,f,s,v,p,g)),n=c}else{var b=r;0,t=$s(b.length>1?b(s,{attrs:c,slots:u,emit:d}):b(s,null)),n=r.props?c:oo(c)}}catch(k){Ra(k,e,1),t=Ps(Cs)}var w=t;if(n&&!1!==m){var x=Object.keys(n),{shapeFlag:S}=w;x.length&&7&S&&(l&&x.some(ln)&&(n=so(n,l)),w=Ds(w,n))}return i.dirs&&((w=Ds(w)).dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&(w.transition=i.transition),t=w,io(_),t}var oo=e=>{var t;for(var n in e)("class"===n||"style"===n||sn(n))&&((t||(t={}))[n]=e[n]);return t},so=(e,t)=>{var n={};for(var r in e)ln(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function lo(e,t,n){var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(var i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]&&!to(n,a))return!0}return!1}var uo=e=>e.__isSuspense;function co(e,t){if(Ys){var n=Ys.provides,r=Ys.parent&&Ys.parent.provides;r===n&&(n=Ys.provides=Object.create(r)),n[e]=t}else;}function ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ys||no;if(r){var i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&vn(t)?t.call(r.proxy):t}}function fo(e,t){return go(e,null,t)}var po={};function vo(e,t,n){return go(e,t,n)}function go(e,t){var n,r,{immediate:i,deep:a,flush:o,onTrack:s,onTrigger:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn,u=Ys,c=!1,d=!1;if(ka(e)?(n=()=>e.value,c=ga(e)):pa(e)?(n=()=>e,a=!0):fn(e)?(d=!0,c=e.some((e=>pa(e)||ga(e))),n=()=>e.map((e=>ka(e)?e.value:pa(e)?yo(e):vn(e)?Na(e,u,2):void 0))):n=vn(e)?t?()=>Na(e,u,2):()=>{if(!u||!u.isUnmounted)return r&&r(),Ba(e,u,3,[p])}:rn,t&&a){var h=n;n=()=>yo(h())}var f,p=e=>{r=y.onStop=()=>{Na(e,u,4)}};if(Js){if(p=rn,t?i&&Ba(t,u,3,[n(),d?[]:void 0,p]):n(),"sync"!==o)return rn;var v=sl();f=v.__watcherHandles||(v.__watcherHandles=[])}var g,m=d?new Array(e.length).fill(po):po,_=()=>{if(y.active)if(t){var e=y.run();(a||c||(d?e.some(((e,t)=>An(e,m[t]))):An(e,m)))&&(r&&r(),Ba(t,u,3,[e,m===po?void 0:d&&m[0]===po?[]:m,p]),m=e)}else y.run()};_.allowRecurse=!!t,"sync"===o?g=_:"post"===o?g=()=>bs(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),g=()=>qa(_));var y=new vi(n,g);t?i?_():m=y.run():"post"===o?bs(y.run.bind(y),u&&u.suspense):y.run();var b=()=>{y.stop(),u&&u.scope&&cn(u.scope.effects,y)};return f&&f.push(b),b}function mo(e,t,n){var r,i=this.proxy,a=gn(e)?e.includes(".")?_o(i,e):()=>i[e]:e.bind(i,i);vn(t)?r=t:(r=t.handler,n=t);var o=Ys;Zs(this);var s=go(a,r.bind(i),n);return o?Zs(o):Gs(),s}function _o(e,t){var n=t.split(".");return()=>{for(var t=e,r=0;r<n.length&&t;r++)t=t[n[r]];return t}}function yo(e,t){if(!_n(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),ka(e))yo(e.value,t);else if(fn(e))for(var n=0;n<e.length;n++)yo(e[n],t);else if("[object Set]"===wn(e)||pn(e))e.forEach((e=>{yo(e,t)}));else if(xn(e))for(var r in e)yo(e[r],t);return e}var bo=e=>!!e.type.__asyncLoader,wo=e=>e.type.__isKeepAlive;function xo(e,t){ko(e,"a",t)}function So(e,t){ko(e,"da",t)}function ko(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ys,r=e.__wdc||(e.__wdc=()=>{for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Eo(t,r,n),n)for(var i=n.parent;i&&i.parent;)wo(i.parent.vnode)&&To(r,t,n,i),i=i.parent}function To(e,t,n,r){var i=Eo(t,e,r,!0);No((()=>{cn(r[t],i)}),n)}function Eo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ys,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=function(){if(!n.isUnmounted){yi(),Zs(n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=Ba(t,n,e,i);return Gs(),bi(),o}});return r?i.unshift(a):i.push(a),a}}var Co=e=>function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ys;return(!Js||"sp"===e)&&Eo(e,(function(){return t(...arguments)}),n)},Mo=Co("bm"),Oo=Co("m"),Io=Co("bu"),Lo=Co("u"),Ao=Co("bum"),No=Co("um"),Bo=Co("sp"),Ro=Co("rtg"),Po=Co("rtc");function zo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ys;Eo("ec",e,t)}function Do(e,t){var n=no;if(null===n)return e;for(var r=nl(n)||n.proxy,i=e.dirs||(e.dirs=[]),a=0;a<t.length;a++){var[o,s,l,u=tn]=t[a];o&&(vn(o)&&(o={mounted:o,updated:o}),o.deep&&yo(s),i.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function Fo(e,t,n,r){for(var i=e.dirs,a=t&&t.dirs,o=0;o<i.length;o++){var s=i[o];a&&(s.oldValue=a[o].value);var l=s.dir[r];l&&(yi(),Ba(l,n,8,[e.el,s,e,t]),bi())}}var $o=Symbol(),jo=e=>e?Ks(e)?nl(e)||e.proxy:jo(e.parent):null,Wo=un(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>Zo(e),$forceUpdate:e=>e.f||(e.f=()=>qa(e.update)),$nextTick:e=>e.n||(e.n=Ua.bind(e.proxy)),$watch:e=>mo.bind(e)}),Vo=(e,t)=>e!==tn&&!e.__isScriptSetup&&hn(e,t),Ho={get(e,t){var n,{_:r}=e,{ctx:i,setupState:a,data:o,props:s,accessCache:l,type:u,appContext:c}=r;if("$"!==t[0]){var d=l[t];if(void 0!==d)switch(d){case 1:return a[t];case 2:return o[t];case 4:return i[t];case 3:return s[t]}else{if(Vo(a,t))return l[t]=1,a[t];if(o!==tn&&hn(o,t))return l[t]=2,o[t];if((n=r.propsOptions[0])&&hn(n,t))return l[t]=3,s[t];if(i!==tn&&hn(i,t))return l[t]=4,i[t];Uo&&(l[t]=0)}}var h,f,p=Wo[t];return p?("$attrs"===t&&wi(r,0,t),p(r)):(h=u.__cssModules)&&(h=h[t])?h:i!==tn&&hn(i,t)?(l[t]=4,i[t]):(f=c.config.globalProperties,hn(f,t)?f[t]:void 0)},set(e,t,n){var{_:r}=e,{data:i,setupState:a,ctx:o}=r;return Vo(a,t)?(a[t]=n,!0):i!==tn&&hn(i,t)?(i[t]=n,!0):!hn(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(o[t]=n,!0))},has(e,t){var n,{_:{data:r,setupState:i,accessCache:a,ctx:o,appContext:s,propsOptions:l}}=e;return!!a[t]||r!==tn&&hn(r,t)||Vo(i,t)||(n=l[0])&&hn(n,t)||hn(o,t)||hn(Wo,t)||hn(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:hn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Uo=!0;function qo(e){var t=Zo(e),n=e.proxy,r=e.ctx;Uo=!1,t.beforeCreate&&Yo(t.beforeCreate,e,"bc");var{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:g,beforeDestroy:m,beforeUnmount:_,destroyed:y,unmounted:b,render:w,renderTracked:x,renderTriggered:S,errorCaptured:k,serverPrefetch:T,expose:E,inheritAttrs:C,components:M,directives:O,filters:I}=t;if(u&&function(e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];fn(e)&&(e=Qo(e));var r=function(){var r,a=e[i];ka(r=_n(a)?"default"in a?ho(a.from||i,a.default,!0):ho(a.from||i):ho(a))&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[i]=r};for(var i in e)r()}(u,r,null,e.appContext.config.unwrapInjectedRef),o)for(var L in o){var A=o[L];vn(A)&&(r[L]=A.bind(n))}if(i){var N=i.call(n,n);_n(N)&&(e.data=ca(N))}if(Uo=!0,a){var B=function(e){var t=a[e],i=vn(t)?t.bind(n,n):vn(t.get)?t.get.bind(n,n):rn,o=!vn(t)&&vn(t.set)?t.set.bind(n):rn,s=il({get:i,set:o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})};for(var R in a)B(R)}if(s)for(var P in s)Xo(s[P],r,n,P);if(l){var z=vn(l)?l.call(n):l;Reflect.ownKeys(z).forEach((e=>{co(e,z[e])}))}function D(e,t){fn(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(c&&Yo(c,e,"c"),D(Mo,d),D(Oo,h),D(Io,f),D(Lo,p),D(xo,v),D(So,g),D(zo,k),D(Po,x),D(Ro,S),D(Ao,_),D(No,b),D(Bo,T),fn(E))if(E.length){var F=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(F,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===rn&&(e.render=w),null!=C&&(e.inheritAttrs=C),M&&(e.components=M),O&&(e.directives=O)}function Yo(e,t,n){Ba(fn(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Xo(e,t,n,r){var i=r.includes(".")?_o(n,r):()=>n[r];if(gn(e)){var a=t[e];vn(a)&&vo(i,a)}else if(vn(e))vo(i,e.bind(n));else if(_n(e))if(fn(e))e.forEach((e=>Xo(e,t,n,r)));else{var o=vn(e.handler)?e.handler.bind(n):t[e.handler];vn(o)&&vo(i,o,e)}}function Zo(e){var t,n=e.type,{mixins:r,extends:i}=n,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(n);return l?t=l:a.length||r||i?(t={},a.length&&a.forEach((e=>Go(t,e,s,!0))),Go(t,n,s)):t=n,_n(n)&&o.set(n,t),t}function Go(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],{mixins:i,extends:a}=t;for(var o in a&&Go(e,a,n,!0),i&&i.forEach((t=>Go(e,t,n,!0))),t)if(r&&"expose"===o);else{var s=Ko[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Ko={data:Jo,props:ts,emits:ts,methods:ts,computed:ts,beforeCreate:es,created:es,beforeMount:es,mounted:es,beforeUpdate:es,updated:es,beforeDestroy:es,beforeUnmount:es,destroyed:es,unmounted:es,activated:es,deactivated:es,errorCaptured:es,serverPrefetch:es,components:ts,directives:ts,watch:function(e,t){if(!e)return t;if(!t)return e;var n=un(Object.create(null),e);for(var r in t)n[r]=es(e[r],t[r]);return n},provide:Jo,inject:function(e,t){return ts(Qo(e),Qo(t))}};function Jo(e,t){return t?e?function(){return un(vn(e)?e.call(this,this):e,vn(t)?t.call(this,this):t)}:t:e}function Qo(e){if(fn(e)){for(var t={},n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function es(e,t){return e?[...new Set([].concat(e,t))]:t}function ts(e,t){return e?un(un(Object.create(null),e),t):t}function ns(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={},a={};for(var o in Bn(a,As,1),e.propsDefaults=Object.create(null),rs(e,t,i,a),e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:da(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function rs(e,t,n,r){var i,[a,o]=e.propsOptions,s=!1;if(t)for(var l in t)if(!kn(l)){var u=t[l],c=void 0;a&&hn(a,c=Cn(l))?o&&o.includes(c)?(i||(i={}))[c]=u:n[c]=u:to(e.emitsOptions,l)||l in r&&u===r[l]||(r[l]=u,s=!0)}if(o)for(var d=_a(n),h=i||tn,f=0;f<o.length;f++){var p=o[f];n[p]=is(a,d,p,h[p],e,!hn(h,p))}return s}function is(e,t,n,r,i,a){var o=e[n];if(null!=o){var s=hn(o,"default");if(s&&void 0===r){var l=o.default;if(o.type!==Function&&vn(l)){var{propsDefaults:u}=i;n in u?r=u[n]:(Zs(i),r=u[n]=l.call(null,t),Gs())}else r=l}o[0]&&(a&&!s?r=!1:!o[1]||""!==r&&r!==On(n)||(r=!0))}return r}function as(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.propsCache,i=r.get(e);if(i)return i;var a=e.props,o={},s=[],l=!1;if(!vn(e)){var u=e=>{l=!0;var[n,r]=as(e,t,!0);un(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return _n(e)&&r.set(e,nn),nn;if(fn(a))for(var c=0;c<a.length;c++){var d=Cn(a[c]);os(d)&&(o[d]=tn)}else if(a)for(var h in a){var f=Cn(h);if(os(f)){var p=a[h],v=o[f]=fn(p)||vn(p)?{type:p}:Object.assign({},p);if(v){var g=us(Boolean,v.type),m=us(String,v.type);v[0]=g>-1,v[1]=m<0||g<m,(g>-1||hn(v,"default"))&&s.push(f)}}}var _=[o,s];return _n(e)&&r.set(e,_),_}function os(e){return"$"!==e[0]}function ss(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function ls(e,t){return ss(e)===ss(t)}function us(e,t){return fn(t)?t.findIndex((t=>ls(t,e))):vn(t)&&ls(t,e)?0:-1}var cs=e=>"_"===e[0]||"$stable"===e,ds=e=>fn(e)?e.map($s):[$s(e)],hs=(e,t,n)=>{if(t._n)return t;var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:no;if(!t)return e;if(e._n)return e;var n=function(){n._d&&Os(-1);var r,i=io(t);try{r=e(...arguments)}finally{io(i),n._d&&Os(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return ds(t(...arguments))}),n);return r._c=!1,r},fs=(e,t,n)=>{var r=e._ctx,i=function(){if(cs(a))return"continue";var n=e[a];if(vn(n))t[a]=hs(0,n,r);else if(null!=n){var i=ds(n);t[a]=()=>i}};for(var a in e)i()},ps=(e,t)=>{var n=ds(t);e.slots.default=()=>n},vs=(e,t)=>{if(32&e.vnode.shapeFlag){var n=t._;n?(e.slots=_a(t),Bn(t,"_",n)):fs(t,e.slots={})}else e.slots={},t&&ps(e,t);Bn(e.slots,As,1)};function gs(){return{app:null,config:{isNativeTag:an,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var ms=0;function _s(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;vn(n)||(n=Object.assign({},n)),null==r||_n(r)||(r=null);var i=gs(),a=new Set,o=!1,s=i.app={_uid:ms++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ll,get config(){return i.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.has(e)||(e&&vn(e.install)?(a.add(e),e.install(s,...n)):vn(e)&&(a.add(e),e(s,...n))),s},mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),s),component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(a,l,u){if(!o){var c=Ps(n,r);return c.appContext=i,l&&t?t(c,a):e(c,a,u),o=!0,s._container=a,a.__vue_app__=s,nl(c.component)||c.component.proxy}},unmount(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}function ys(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(fn(e))e.forEach(((e,a)=>ys(e,t&&(fn(t)?t[a]:t),n,r,i)));else if(!bo(r)||i){var a=4&r.shapeFlag?nl(r.component)||r.component.proxy:r.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===tn?s.refs={}:s.refs,d=s.setupState;if(null!=u&&u!==l&&(gn(u)?(c[u]=null,hn(d,u)&&(d[u]=null)):ka(u)&&(u.value=null)),vn(l))Na(l,s,12,[o,c]);else{var h=gn(l),f=ka(l);if(h||f){var p=()=>{if(e.f){var t=h?hn(d,l)?d[l]:c[l]:l.value;i?fn(t)&&cn(t,a):fn(t)?t.includes(a)||t.push(a):h?(c[l]=[a],hn(d,l)&&(d[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else h?(c[l]=o,hn(d,l)&&(d[l]=o)):f&&(l.value=o,e.k&&(c[e.k]=o))};o?(p.id=-1,bs(p,n)):p()}}}}var bs=function(e,t){var n;t&&t.pendingBranch?fn(e)?t.effects.push(...e):t.effects.push(e):(fn(n=e)?$a.push(...n):ja&&ja.includes(n,n.allowRecurse?Wa+1:Wa)||$a.push(n),Ya())};function ws(e){return function(e,t){(Jt||(Jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:{})).__VUE__=!0;var n,r,{insert:i,remove:a,patchProp:o,createElement:s,createText:l,createComment:u,setText:c,setElementText:d,parentNode:h,nextSibling:f,setScopeId:p=rn,insertStaticContent:v}=e,g=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!Ls(e,t)&&(r=H(e),F(e,i,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);var{type:u,ref:c,shapeFlag:d}=t;switch(u){case Es:m(e,t,n,r);break;case Cs:_(e,t,n,r);break;case Ms:null==e&&y(t,n,r,o);break;case Ts:O(e,t,n,r,i,a,o,s,l);break;default:1&d?x(e,t,n,r,i,a,o,s,l):6&d?I(e,t,n,r,i,a,o,s,l):(64&d||128&d)&&u.process(e,t,n,r,i,a,o,s,l,q)}null!=c&&i&&ys(c,e&&e.ref,a,t||e,!t)}},m=(e,t,n,r)=>{if(null==e)i(t.el=l(t.children),n,r);else{var a=t.el=e.el;t.children!==e.children&&c(a,t.children)}},_=(e,t,n,r)=>{null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},b=(e,t,n)=>{for(var r,{el:a,anchor:o}=e;a&&a!==o;)r=f(a),i(a,t,n),a=r;i(o,t,n)},w=e=>{for(var t,{el:n,anchor:r}=e;n&&n!==r;)t=f(n),a(n),n=t;a(r)},x=(e,t,n,r,i,a,o,s,l)=>{o=o||"svg"===t.type,null==e?S(t,n,r,i,a,o,s,l):E(e,t,i,a,o,s,l)},S=(e,t,n,r,a,l,u,c)=>{var h,f,{type:p,props:v,shapeFlag:g,transition:m,dirs:_}=e;if(h=e.el=s(e.type,l,v&&v.is,v),8&g?d(h,e.children):16&g&&T(e.children,h,null,r,a,l&&"foreignObject"!==p,u,c),_&&Fo(e,null,r,"created"),v){for(var y in v)"value"===y||kn(y)||o(h,y,null,v[y],l,e.children,r,a,V);"value"in v&&o(h,"value",null,v.value),(f=v.onVnodeBeforeMount)&&Hs(f,r,e)}k(h,e,e.scopeId,u,r),Object.defineProperty(h,"__vueParentComponent",{value:r,enumerable:!1}),_&&Fo(e,null,r,"beforeMount");var b=(!a||a&&!a.pendingBranch)&&m&&!m.persisted;b&&m.beforeEnter(h),i(h,t,n),((f=v&&v.onVnodeMounted)||b||_)&&bs((()=>{f&&Hs(f,r,e),b&&m.enter(h),_&&Fo(e,null,r,"mounted")}),a)},k=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(var a=0;a<r.length;a++)p(e,r[a]);if(i&&t===i.subTree){var o=i.vnode;k(e,o,o.scopeId,o.slotScopeIds,i.parent)}},T=function(e,t,n,r,i,a,o,s){for(var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;l<e.length;l++){var u=e[l]=s?js(e[l]):$s(e[l]);g(null,u,t,n,r,i,a,o,s)}},E=(e,t,n,r,i,a,s)=>{var l=t.el=e.el,{patchFlag:u,dynamicChildren:c,dirs:h}=t;u|=16&e.patchFlag;var f,p=e.props||tn,v=t.props||tn;n&&xs(n,!1),(f=v.onVnodeBeforeUpdate)&&Hs(f,n,t,e),h&&Fo(t,e,n,"beforeUpdate"),n&&xs(n,!0);var g=i&&"foreignObject"!==t.type;if(c?C(e.dynamicChildren,c,l,n,r,g,a):s||R(e,t,l,null,n,r,g,a,!1),u>0){if(16&u)M(l,t,p,v,n,r,i);else if(2&u&&p.class!==v.class&&o(l,"class",null,v.class,i),4&u&&o(l,"style",p.style,v.style,i),8&u)for(var m=t.dynamicProps,_=0;_<m.length;_++){var y=m[_],b=p[y],w=v[y];w===b&&"value"!==y||o(l,y,b,w,i,e.children,n,r,V)}1&u&&e.children!==t.children&&d(l,t.children)}else s||null!=c||M(l,t,p,v,n,r,i);((f=v.onVnodeUpdated)||h)&&bs((()=>{f&&Hs(f,n,t,e),h&&Fo(t,e,n,"updated")}),r)},C=(e,t,n,r,i,a,o)=>{for(var s=0;s<t.length;s++){var l=e[s],u=t[s],c=l.el&&(l.type===Ts||!Ls(l,u)||70&l.shapeFlag)?h(l.el):n;g(l,u,c,null,r,i,a,o,!0)}},M=(e,t,n,r,i,a,s)=>{if(n!==r){if(n!==tn)for(var l in n)kn(l)||l in r||o(e,l,n[l],null,s,t.children,i,a,V);for(var u in r)if(!kn(u)){var c=r[u],d=n[u];c!==d&&"value"!==u&&o(e,u,d,c,s,t.children,i,a,V)}"value"in r&&o(e,"value",n.value,r.value)}},O=(e,t,n,r,a,o,s,u,c)=>{var d=t.el=e?e.el:l(""),h=t.anchor=e?e.anchor:l(""),{patchFlag:f,dynamicChildren:p,slotScopeIds:v}=t;v&&(u=u?u.concat(v):v),null==e?(i(d,n,r),i(h,n,r),T(t.children,n,h,a,o,s,u,c)):f>0&&64&f&&p&&e.dynamicChildren?(C(e.dynamicChildren,p,n,a,o,s,u),(null!=t.key||a&&t===a.subTree)&&Ss(e,t,!0)):R(e,t,n,h,a,o,s,u,c)},I=(e,t,n,r,i,a,o,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,o,l):L(t,n,r,i,a,o,l):A(e,t,l)},L=(e,t,n,r,i,a,o)=>{var s=e.component=function(e,t,n){var r=e.type,i=(t?t.appContext:e.appContext)||Us,a={uid:qs++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ai(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:as(r,i),emitsOptions:eo(r,i),emit:null,emitted:null,propsDefaults:tn,inheritAttrs:r.inheritAttrs,ctx:tn,data:tn,props:tn,attrs:tn,slots:tn,refs:tn,setupState:tn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};a.ctx={_:a},a.root=t?t.root:a,a.emit=Qa.bind(null,a),e.ce&&e.ce(a);return a}(e,r,i);if(wo(e)&&(s.ctx.renderer=q),function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Js=t;var{props:n,children:r}=e.vnode,i=Ks(e);ns(e,n,i,t),vs(e,r);var a=i?Qs(e,t):void 0;Js=!1}(s),s.asyncDep){if(i&&i.registerDep(s,N),!e.el){var l=s.subTree=Ps(Cs);_(null,l,t,n)}}else N(s,e,t,n,i,a,o)},A=(e,t,n)=>{var r,i,a=t.component=e.component;if(function(e,t,n){var{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==o&&(r?!o||lo(r,o,u):!!o);if(1024&l)return!0;if(16&l)return r?lo(r,o,u):!!o;if(8&l)for(var c=t.dynamicProps,d=0;d<c.length;d++){var h=c[d];if(o[h]!==r[h]&&!to(u,h))return!0}return!1}(e,t,n)){if(a.asyncDep&&!a.asyncResolved)return void B(a,t,n);a.next=t,r=a.update,(i=Da.indexOf(r))>Fa&&Da.splice(i,1),a.update()}else t.el=e.el,a.vnode=t},N=(e,t,n,i,a,o,s)=>{var l=()=>{if(e.isMounted){var l,{next:u,bu:c,u:d,parent:f,vnode:p}=e,v=u;xs(e,!1),u?(u.el=p.el,B(e,u,s)):u=p,c&&Nn(c),(l=u.props&&u.props.onVnodeBeforeUpdate)&&Hs(l,f,u,p),xs(e,!0);var m=ao(e),_=e.subTree;e.subTree=m,g(_,m,h(_.el),H(_),e,a,o),u.el=m.el,null===v&&function(e,t){for(var{vnode:n,parent:r}=e;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}(e,m.el),d&&bs(d,a),(l=u.props&&u.props.onVnodeUpdated)&&bs((()=>Hs(l,f,u,p)),a)}else{var y,{el:b,props:w}=t,{bm:x,m:S,parent:k}=e,T=bo(t);if(xs(e,!1),x&&Nn(x),!T&&(y=w&&w.onVnodeBeforeMount)&&Hs(y,k,t),xs(e,!0),b&&r){var E=()=>{e.subTree=ao(e),r(b,e.subTree,e,a,null)};T?t.type.__asyncLoader().then((()=>!e.isUnmounted&&E())):E()}else{var C=e.subTree=ao(e);g(null,C,n,i,e,a,o),t.el=C.el}if(S&&bs(S,a),!T&&(y=w&&w.onVnodeMounted)){var M=t;bs((()=>Hs(y,k,M)),a)}(256&t.shapeFlag||k&&bo(k.vnode)&&256&k.vnode.shapeFlag)&&e.a&&bs(e.a,a),e.isMounted=!0,t=n=i=null}},u=e.effect=new vi(l,(()=>qa(c)),e.scope),c=e.update=()=>u.run();c.id=e.uid,xs(e,!0),c()},B=(e,t,n)=>{t.component=e;var r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){var{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=_a(i),[l]=e.propsOptions,u=!1;if(!(r||o>0)||16&o){var c;for(var d in rs(e,t,i,a)&&(u=!0),s)t&&(hn(t,d)||(c=On(d))!==d&&hn(t,c))||(l?!n||void 0===n[d]&&void 0===n[c]||(i[d]=is(l,s,d,void 0,e,!0)):delete i[d]);if(a!==s)for(var h in a)t&&hn(t,h)||(delete a[h],u=!0)}else if(8&o)for(var f=e.vnode.dynamicProps,p=0;p<f.length;p++){var v=f[p];if(!to(e.emitsOptions,v)){var g=t[v];if(l)if(hn(a,v))g!==a[v]&&(a[v]=g,u=!0);else{var m=Cn(v);i[m]=is(l,s,m,g,e,!1)}else g!==a[v]&&(a[v]=g,u=!0)}}u&&Si(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{var{vnode:r,slots:i}=e,a=!0,o=tn;if(32&r.shapeFlag){var s=t._;s?n&&1===s?a=!1:(un(i,t),n||1!==s||delete i._):(a=!t.$stable,fs(t,i)),o=t}else t&&(ps(e,t),o={default:1});if(a)for(var l in i)cs(l)||l in o||delete i[l]})(e,t.children,n),yi(),Xa(),bi()},R=function(e,t,n,r,i,a,o,s){var l=arguments.length>8&&void 0!==arguments[8]&&arguments[8],u=e&&e.children,c=e?e.shapeFlag:0,h=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(128&f)return void z(u,h,n,r,i,a,o,s,l);if(256&f)return void P(u,h,n,r,i,a,o,s,l)}8&p?(16&c&&V(u,i,a),h!==u&&d(n,h)):16&c?16&p?z(u,h,n,r,i,a,o,s,l):V(u,i,a,!0):(8&c&&d(n,""),16&p&&T(h,n,r,i,a,o,s,l))},P=(e,t,n,r,i,a,o,s,l)=>{t=t||nn;var u,c=(e=e||nn).length,d=t.length,h=Math.min(c,d);for(u=0;u<h;u++){var f=t[u]=l?js(t[u]):$s(t[u]);g(e[u],f,n,null,i,a,o,s,l)}c>d?V(e,i,a,!0,!1,h):T(t,n,r,i,a,o,s,l,h)},z=(e,t,n,r,i,a,o,s,l)=>{for(var u=0,c=t.length,d=e.length-1,h=c-1;u<=d&&u<=h;){var f=e[u],p=t[u]=l?js(t[u]):$s(t[u]);if(!Ls(f,p))break;g(f,p,n,null,i,a,o,s,l),u++}for(;u<=d&&u<=h;){var v=e[d],m=t[h]=l?js(t[h]):$s(t[h]);if(!Ls(v,m))break;g(v,m,n,null,i,a,o,s,l),d--,h--}if(u>d){if(u<=h)for(var _=h+1,y=_<c?t[_].el:r;u<=h;)g(null,t[u]=l?js(t[u]):$s(t[u]),n,y,i,a,o,s,l),u++}else if(u>h)for(;u<=d;)F(e[u],i,a,!0),u++;else{var b,w=u,x=u,S=new Map;for(u=x;u<=h;u++){var k=t[u]=l?js(t[u]):$s(t[u]);null!=k.key&&S.set(k.key,u)}var T=0,E=h-x+1,C=!1,M=0,O=new Array(E);for(u=0;u<E;u++)O[u]=0;for(u=w;u<=d;u++){var I=e[u];if(T>=E)F(I,i,a,!0);else{var L=void 0;if(null!=I.key)L=S.get(I.key);else for(b=x;b<=h;b++)if(0===O[b-x]&&Ls(I,t[b])){L=b;break}void 0===L?F(I,i,a,!0):(O[L-x]=u+1,L>=M?M=L:C=!0,g(I,t[L],n,null,i,a,o,s,l),T++)}}var A=C?function(e){var t,n,r,i,a,o=e.slice(),s=[0],l=e.length;for(t=0;t<l;t++){var u=e[t];if(0!==u){if(e[n=s[s.length-1]]<u){o[t]=n,s.push(t);continue}for(r=0,i=s.length-1;r<i;)e[s[a=r+i>>1]]<u?r=a+1:i=a;u<e[s[r]]&&(r>0&&(o[t]=s[r-1]),s[r]=t)}}r=s.length,i=s[r-1];for(;r-- >0;)s[r]=i,i=o[i];return s}(O):nn;for(b=A.length-1,u=E-1;u>=0;u--){var N=x+u,B=t[N],R=N+1<c?t[N+1].el:r;0===O[u]?g(null,B,n,R,i,a,o,s,l):C&&(b<0||u!==A[b]?D(B,n,R,2):b--)}}},D=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,{el:o,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)D(e.component.subTree,t,n,r);else if(128&c)e.suspense.move(t,n,r);else if(64&c)s.move(e,t,n,q);else if(s!==Ts){if(s!==Ms)if(2!==r&&1&c&&l)if(0===r)l.beforeEnter(o),i(o,t,n),bs((()=>l.enter(o)),a);else{var{leave:d,delayLeave:h,afterLeave:f}=l,p=()=>i(o,t,n),v=()=>{d(o,(()=>{p(),f&&f()}))};h?h(o,p,v):v()}else i(o,t,n);else b(e,t,n)}else{i(o,t,n);for(var g=0;g<u.length;g++)D(u[g],t,n,r);i(e.anchor,t,n)}},F=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],{type:a,props:o,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:h}=e;if(null!=s&&ys(s,null,n,e,!0),256&c)t.ctx.deactivate(e);else{var f,p=1&c&&h,v=!bo(e);if(v&&(f=o&&o.onVnodeBeforeUnmount)&&Hs(f,t,e),6&c)W(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);p&&Fo(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,i,q,r):u&&(a!==Ts||d>0&&64&d)?V(u,t,n,!1,!0):(a===Ts&&384&d||!i&&16&c)&&V(l,t,n),r&&$(e)}(v&&(f=o&&o.onVnodeUnmounted)||p)&&bs((()=>{f&&Hs(f,t,e),p&&Fo(e,null,t,"unmounted")}),n)}},$=e=>{var{type:t,el:n,anchor:r,transition:i}=e;if(t!==Ts)if(t!==Ms){var o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var{leave:s,delayLeave:l}=i,u=()=>s(n,o);l?l(e.el,o,u):u()}else o()}else w(e);else j(n,r)},j=(e,t)=>{for(var n;e!==t;)n=f(e),a(e),e=n;a(t)},W=(e,t,n)=>{var{bum:r,scope:i,update:a,subTree:o,um:s}=e;r&&Nn(r),i.stop(),a&&(a.active=!1,F(o,e,t,n)),s&&bs(s,t),bs((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;a<e.length;a++)F(e[a],t,n,r,i)},H=e=>6&e.shapeFlag?H(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),U=(e,t,n)=>{if(null==e)t._vnode&&F(t._vnode,null,null,!0);else{var r=t.__vueParent;g(t._vnode||null,e,t,null,r,null,n)}Xa(),t._vnode=e},q={p:g,um:F,m:D,r:$,mt:L,mc:T,pc:R,pbc:C,n:H,o:e};t&&([n,r]=t(q));return{render:U,hydrate:n,createApp:_s(U,n)}}(e)}function xs(e,t){var{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function Ss(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.children,i=t.children;if(fn(r)&&fn(i))for(var a=0;a<r.length;a++){var o=r[a],s=i[a];1&s.shapeFlag&&!s.dynamicChildren&&((s.patchFlag<=0||32===s.patchFlag)&&((s=i[a]=js(i[a])).el=o.el),n||Ss(o,s)),s.type===Es&&(s.el=o.el)}}var ks=e=>e.__isTeleport,Ts=Symbol(void 0),Es=Symbol(void 0),Cs=Symbol(void 0),Ms=Symbol(void 0);function Os(e){e}function Is(e){return!!e&&!0===e.__v_isVNode}function Ls(e,t){return e.type===t.type&&e.key===t.key}var As="__vInternal",Ns=e=>{var{key:t}=e;return null!=t?t:null},Bs=e=>{var{ref:t,ref_key:n,ref_for:r}=e;return null!=t?gn(t)||ka(t)||vn(t)?{i:no,r:t,k:n,f:!!r}:t:null};function Rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===Ts?0:1,o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ns(t),ref:t&&Bs(t),scopeId:ro,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:no};return o?(Ws(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=gn(n)?8:16),s}var Ps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==$o||(e=Cs);if(Is(e)){var o=Ds(e,t,!0);return n&&Ws(o,n),o.patchFlag|=-2,o}rl(e)&&(e=e.__vccOpts);if(t){t=zs(t);var{class:s,style:l}=t;s&&!gn(s)&&(t.class=Zt(s)),_n(l)&&(ma(l)&&!fn(l)&&(l=un({},l)),t.style=Ht(l))}var u=gn(e)?1:uo(e)?128:ks(e)?64:_n(e)?4:vn(e)?2:0;return Rs(e,t,n,r,i,u,a,!0)};function zs(e){return e?ma(e)||As in e?un({},e):e:null}function Ds(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{props:r,ref:i,patchFlag:a,children:o}=e,s=t?Vs(r||{},t):r,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Ns(s),ref:t&&t.ref?n&&i?fn(i)?i.concat(Bs(t)):[i,Bs(t)]:Bs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ts?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ds(e.ssContent),ssFallback:e.ssFallback&&Ds(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx};return l}function Fs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ps(Es,null,e,t)}function $s(e){return null==e||"boolean"==typeof e?Ps(Cs):fn(e)?Ps(Ts,null,e.slice()):"object"==typeof e?js(e):Ps(Es,null,String(e))}function js(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Ds(e)}function Ws(e,t){var n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(fn(t))n=16;else if("object"==typeof t){if(65&r){var i=t.default;return void(i&&(i._c&&(i._d=!1),Ws(e,i()),i._c&&(i._d=!0)))}n=32;var a=t._;a||As in t?3===a&&no&&(1===no.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=no}else vn(t)?(t={default:t,_ctx:no},n=32):(t=String(t),64&r?(n=16,t=[Fs(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vs(){for(var e={},t=0;t<arguments.length;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];for(var r in n)if("class"===r)e.class!==n.class&&(e.class=Zt([e.class,n.class]));else if("style"===r)e.style=Ht([e.style,n.style]);else if(sn(r)){var i=e[r],a=n[r];!a||i===a||fn(i)&&i.includes(a)||(e[r]=i?[].concat(i,a):a)}else""!==r&&(e[r]=n[r])}return e}function Hs(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Ba(e,t,7,[n,r])}var Us=gs(),qs=0;var Ys=null,Xs=()=>Ys||no,Zs=e=>{Ys=e,e.scope.on()},Gs=()=>{Ys&&Ys.scope.off(),Ys=null};function Ks(e){return 4&e.vnode.shapeFlag}var Js=!1;function Qs(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=ya(new Proxy(e.ctx,Ho));var{setup:r}=n;if(r){var i=e.setupContext=r.length>1?function(e){var t,n=t=>{e.exposed=t||{}};return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(wi(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:n}}(e):null;Zs(e),yi();var a=Na(r,e,0,[e.props,i]);if(bi(),Gs(),yn(a)){if(a.then(Gs,Gs),t)return a.then((n=>{el(e,n,t)})).catch((t=>{Ra(t,e,0)}));e.asyncDep=a}else el(e,a,t)}else tl(e,t)}function el(e,t,n){vn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_n(t)&&(e.setupState=La(t)),tl(e,n)}function tl(e,t,n){var r=e.type;e.render||(e.render=r.render||rn);Zs(e),yi(),qo(e),bi(),Gs()}function nl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(La(ya(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Wo?Wo[n](e):void 0,has:(e,t)=>t in e||t in Wo}))}function rl(e){return vn(e)&&"__vccOpts"in e}var il=(e,t)=>function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=vn(e);return a?(n=e,r=rn):(n=e.get,r=e.set),new Aa(n,r,a||!r,i)}(e,t,Js);function al(e,t,n){var r=arguments.length;return 2===r?_n(t)&&!fn(t)?Is(t)?Ps(e,null,[t]):Ps(e,t):Ps(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Is(n)&&(n=[n]),Ps(e,t,n))}var ol=Symbol(""),sl=()=>ho(ol),ll="3.2.45",ul="undefined"!=typeof document?document:null,cl=ul&&ul.createElement("template"),dl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{var i=t?ul.createElementNS("http://www.w3.org/2000/svg",e):ul.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>ul.createTextNode(e),createComment:e=>ul.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ul.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){var o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{cl.innerHTML=r?"<svg>".concat(e,"</svg>"):e;var s=cl.content;if(r){for(var l=s.firstChild;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function hl(e,t,n){var r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function fl(e,t,n){var r=e.style,i=gn(n);if(n&&!i){for(var a in n)vl(r,a,n[a]);if(t&&!gn(t))for(var o in t)null==n[o]&&vl(r,o,"")}else{var s=r.display;i?t!==n&&(r.cssText=normalizeStyleValue(n)):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}var pl=/\s*!important$/;function vl(e,t,n){if(fn(n))n.forEach((n=>vl(e,t,n)));else if(null==n&&(n=""),n=normalizeStyleValue(n),t.startsWith("--"))e.setProperty(t,n);else{var r=normalizeStyleName(e,t);pl.test(n)?e.setProperty(On(r),n.replace(pl,""),"important"):e[r]=n}}var gl="http://www.w3.org/1999/xlink";function ml(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(gl,t.slice(6,t.length)):e.setAttributeNS(gl,t,n);else{var a=Gt(t);null==n||a&&!Kt(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function _l(e,t,n,r,i,a,o){if("innerHTML"===t||"textContent"===t)return r&&o(r,i,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;var s=null==n?"":n;return e.value===s&&"OPTION"!==e.tagName||(e.value=s),void(null==n&&e.removeAttribute(t))}var l=!1;if(""===n||null==n){var u=typeof e[t];"boolean"===u?n=Kt(n):null==n&&"string"===u?(n="",l=!0):"number"===u&&(n=0,l=!0)}try{e[t]=n}catch(c){}l&&e.removeAttribute(t)}function yl(e,t,n,r){e.addEventListener(t,n,r)}function bl(e,t,n,r){e.removeEventListener(t,n,r)}function wl(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=e._vei||(e._vei={}),o=a[t];if(r&&o)o.value=r;else{var[s,l]=Sl(t);if(r){var u=a[t]=El(r,i);yl(e,s,u,l)}else o&&(bl(e,s,o,l),a[t]=void 0)}}var xl=/(?:Once|Passive|Capture)$/;function Sl(e){var t,n;if(xl.test(e))for(t={};n=e.match(xl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):On(e.slice(2)),t]}var kl=0,Tl=Promise.resolve();function El(e,t){var n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Ba(function(e,t){if(fn(t)){var n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=kl||(Tl.then((()=>kl=0)),kl=Date.now()),n}var Cl=/^on[a-z]/;function Ml(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&Cl.test(t)&&vn(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Cl.test(t)||!gn(n))&&t in e))))}var Ol=["ctrl","shift","alt","meta"],Il={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ol.some((n=>e["".concat(n,"Key")]&&!t.includes(n)))},Ll=(e,t)=>function(n){for(var r=0;r<t.length;r++){var i=Il[t[r]];if(i&&i(n,t))return}for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];return e(n,...o)},Al={beforeMount(e,t,n){var{value:r}=t,{transition:i}=n;e._vod="none"===e.style.display?"":e.style.display,i&&r?i.beforeEnter(e):Nl(e,r)},mounted(e,t,n){var{value:r}=t,{transition:i}=n;i&&r&&i.enter(e)},updated(e,t,n){var{value:r,oldValue:i}=t,{transition:a}=n;!r!=!i&&(a?r?(a.beforeEnter(e),Nl(e,!0),a.enter(e)):a.leave(e,(()=>{Nl(e,!1)})):Nl(e,r))},beforeUnmount(e,t){var{value:n}=t;Nl(e,n)}};function Nl(e,t){e.style.display=t?e._vod:"none"}var Bl,Rl=un({patchProp:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;"class"===t?hl(e,r,i):"style"===t?fl(e,n,r):sn(t)?ln(t)||wl(e,t,n,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Ml(e,t,r,i))?_l(e,t,r,a,o,s,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),ml(e,t,r,i))}},dl);function Pl(){return Bl||(Bl=ws(Rl))}var zl=function(){var e=Pl().createApp(...arguments),{mount:t}=e;return e.mount=n=>{var r=Dl(n);if(r){var i=e._component;vn(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";var a=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a}},e};function Dl(e){return gn(e)?document.querySelector(e):e}var Fl,$l,jl=["top","left","right","bottom"],Wl={};function Vl(){return $l="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Hl(){if($l="string"==typeof $l?$l:Vl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var r=document.createElement("div");i(r,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),jl.forEach((function(e){o(r,e)})),document.body.appendChild(r),a(),Fl=!0}else jl.forEach((function(e){Wl[e]=0}));function i(e,t){var n=e.style;Object.keys(t).forEach((function(e){var r=t[e];n[e]=r}))}function a(t){t?e.push(t):e.forEach((function(e){e()}))}function o(e,n){var r=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),u={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:$l+"(safe-area-inset-"+n+")"};i(r,u),i(o,u),i(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),r.appendChild(s),o.appendChild(l),e.appendChild(r),e.appendChild(o),a((function(){r.scrollTop=o.scrollTop=1e4;var e=r.scrollTop,i=o.scrollTop;function a(){this.scrollTop!==(this===r?e:i)&&(r.scrollTop=o.scrollTop=1e4,e=r.scrollTop,i=o.scrollTop,function(e){ql.length||setTimeout((function(){var e={};ql.forEach((function(t){e[t]=Wl[t]})),ql.length=0,Yl.forEach((function(t){t(e)}))}),0);ql.push(e)}(n))}r.addEventListener("scroll",a,t),o.addEventListener("scroll",a,t)}));var c=getComputedStyle(r);Object.defineProperty(Wl,n,{configurable:!0,get:function(){return parseFloat(c.paddingBottom)}})}}function Ul(e){return Fl||Hl(),Wl[e]}var ql=[];var Yl=[];var Xl={get support(){return 0!=("string"==typeof $l?$l:Vl()).length},get top(){return Ul("top")},get left(){return Ul("left")},get right(){return Ul("right")},get bottom(){return Ul("bottom")},onChange:function(e){Vl()&&(Fl||Hl(),"function"==typeof e&&Yl.push(e))},offChange:function(e){var t=Yl.indexOf(e);t>=0&&Yl.splice(t,1)}},Zl=Ll((()=>{}),["prevent"]);function Gl(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Kl(){var e=Gl(document.documentElement.style,"--window-top");return e?e+Xl.top:0}function Jl(e){return Symbol(e)}function Ql(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function eu(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return tu(e);if(gn(e)){var n=parseInt(e)||0;return Ql(e)?uni.upx2px(n):n}return e}function tu(e){return Ql(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>uni.upx2px(parseFloat(t))+"px")):e}var nu,ru="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z";function iu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:27;return Ps("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Ps("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function au(){return ou()}function ou(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function su(e){e.preventDefault()}var lu,uu,cu,du,hu,fu=0;function pu(e){var{onPageScroll:t,onReachBottom:n,onReachBottomDistance:r}=e,i=!1,a=!1,o=!0,s=()=>{function e(){if((()=>{var{scrollHeight:e}=document.documentElement,t=window.innerHeight,n=window.scrollY,i=n>0&&e>t&&n+t+r>=e,o=Math.abs(e-fu)>r;return!i||a&&!o?(!i&&a&&(a=!1),!1):(fu=e,a=!0,!0)})())return n&&n(),o=!1,setTimeout((function(){o=!0}),350),!0}t&&t(window.pageYOffset),n&&o&&(e()||(nu=setTimeout(e,300))),i=!1};return function(){clearTimeout(nu),i||requestAnimationFrame(s),i=!0}}function vu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return vu(e,t.slice(2));for(var n=t.split("/"),r=n.length,i=0;i<r&&".."===n[i];i++);n.splice(0,i),t=n.join("/");var a=e.length>0?e.split("/"):[];return a.splice(a.length-i-1,i+1),Kn(a.concat(n).join("/"))}function gu(){return"object"==typeof window&&"object"==typeof navigator&&"object"==typeof document?"webview":"v8"}function mu(){return lu.webview.currentWebview().id}var _u={};function yu(e){var t=e.data&&e.data.__message;if(t&&t.__page){var n=t.__page,r=_u[n];r&&r(t),t.keep||delete _u[n]}}class bu{constructor(e){this.webview=e}sendMessage(e){var t=JSON.parse(JSON.stringify({__message:{data:e}})),n=this.webview.id;cu?new cu(n).postMessage(t):lu.webview.postMessageToUniNView&&lu.webview.postMessageToUniNView(t,n)}close(){this.webview.close()}}function wu(e){var{context:t={},url:n,data:r={},style:i={},onMessage:a,onClose:o}=e;lu=t.plus||plus,uu=t.weex||("object"==typeof weex?weex:null),cu=t.BroadcastChannel||("object"==typeof BroadcastChannel?BroadcastChannel:null);var s="page".concat(Date.now());!1!==(i=un({},i)).titleNView&&"none"!==i.titleNView&&(i.titleNView=un({autoBackButton:!0,titleSize:"17px"},i.titleNView));var l={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"/".concat(n,".js"),defaultFontSize:16,viewport:lu.screen.resolutionWidth}};i=un(l,i);var u=lu.webview.create("",s,i,{extras:{from:mu(),runtime:gu(),data:r,useGlobalEvent:!cu}});return u.addEventListener("close",o),function(e,t){"v8"===gu()?cu?(du&&du.close(),(du=new cu(mu())).onmessage=yu):hu||(hu=uu.requireModule("globalEvent")).addEventListener("plusMessage",yu):window.__plusMessage=yu,_u[e]=t}(s,(e=>{vn(a)&&a(e.data),e.keep||u.close("auto")})),u.show(i.animationType,i.animationDuration),new bu(u)}class xu{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=e.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(this.$el&&e){var t=Tu(this.$el.querySelector(e));if(t)return Su(t)}}selectAllComponents(e){if(!this.$el||!e)return[];for(var t=[],n=this.$el.querySelectorAll(e),r=0;r<n.length;r++){var i=Tu(n[r]);i&&t.push(Su(i))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){var{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){var{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",function(e){var t="";if(!e||gn(e))return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:On(n);(gn(r)||"number"==typeof r)&&(t+="".concat(i,":").concat(r,";"))}return t}(e))}setStyle(e){return this.$el&&e?(gn(e)&&(e=Xt(e)),xn(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;var t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;var{__wxsAddClass:t}=this.$el;if(t){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var r=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===r.indexOf(e)&&(r.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$vm[e];vn(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&UniViewJSBridge.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){var t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Su(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new xu(e)),e.$el.__wxsComponentDescriptor}function ku(e,t){return Su(e)}function Tu(e){if(e)return Eu(e)}function Eu(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var t,n,{__wxsStyle:r,__wxsAddClass:i,__wxsRemoveClass:a,__wxsStyleChanged:o,__wxsClassChanged:s}=e;o&&(e.__wxsStyleChanged=!1,r&&(n=()=>{Object.keys(r).forEach((t=>{e.style[t]=r[t]}))})),s&&(e.__wxsClassChanged=!1,t=()=>{a&&a.forEach((t=>{e.classList.remove(t)})),i&&i.forEach((t=>{e.classList.add(t)}))}),requestAnimationFrame((()=>{t&&t(),n&&n()}))}})}function Cu(e,t,n){var{currentTarget:r}=e;if(!(e instanceof Event&&r instanceof HTMLElement))return[e];var i=Ou(e,0!==r.tagName.indexOf("UNI-"));if("click"===e.type)!function(e,t){var{x:n,y:r}=t,i=Kl();e.detail={x:n,y:r-i},e.touches=e.changedTouches=[Iu(t,i)]}(i,e);else if((e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){var n=Kl();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Iu(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch"))(e)){var a=Kl();i.touches=Lu(e.touches,a),i.changedTouches=Lu(e.changedTouches,a)}return[i]}function Mu(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function Ou(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{type:n,timeStamp:r,target:i,currentTarget:a}=e,o={type:n,timeStamp:r,target:ar(t?i:Mu(i)),detail:{},currentTarget:ar(a)};return e._stopped&&(o._stopped=!0),e.type.startsWith("touch")&&(o.touches=e.touches,o.changedTouches=e.changedTouches),o}function Iu(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Lu(e,t){for(var n=[],r=0;r<e.length;r++){var{identifier:i,pageX:a,pageY:o,clientX:s,clientY:l,force:u}=e[r];n.push({identifier:i,pageX:a,pageY:o-t,clientX:s,clientY:l-t,force:u||0})}return n}var Au="vdSync",Nu="__uniapp__service",Bu="onWebviewReady",Ru=un(Xr,{publishHandler:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ou()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:n}},Nu)}});function Pu(e,t,n,r){if(r&&r.beforeInvoke){var i=r.beforeInvoke(t);if(gn(i))return i}var a=function(e,t){var n=e[0];if(t&&(xn(t.formatArgs)||!xn(n)))for(var r=t.formatArgs,i=Object.keys(r),a=0;a<i.length;a++){var o=i[a],s=r[o];if(vn(s)){var l=s(e[0][o],n);if(gn(l))return l}else hn(n,o)||(n[o]=s)}}(t,r);if(a)return a}function zu(e,t,n,r){return function(e,t,n,r){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=Pu(0,n,0,r);if(a)throw new Error(a);return t.apply(null,n)}}(0,t,0,r)}function Du(){if("undefined"!=typeof __SYSTEM_INFO__)return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize()||{resolutionWidth:0};return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}function Fu(e){if(0===e.indexOf("//"))return"https:"+e;if(Hn.test(e)||Un.test(e))return e;if(function(e){if(0===e.indexOf("_www")||0===e.indexOf("_doc")||0===e.indexOf("_documents")||0===e.indexOf("_downloads"))return!0;return!1}(e))return"file://"+$u(e);var t="file://"+$u("_www");if(0===e.indexOf("/"))return e.startsWith("/storage/")||e.startsWith("/sdcard/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(0===e.indexOf("../")||0===e.indexOf("./")){if("string"==typeof __id__)return t+vu(Kn(__id__),e);var n=window.__PAGE_INFO__;if(n)return t+vu(Kn(n.route),e)}return e}var $u=function(e){var t=Object.create(null);return n=>t[n]||(t[n]=e(n))}((e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,"")));var ju=0;function Wu(e){return function(e){return new Promise((function(t,n){0===e.indexOf("http://")||0===e.indexOf("https://")?plus.downloader.createDownload(e,{filename:"".concat("_doc/uniapp_temp","/download/")},(function(e,r){200===r?t(e.filename):n(new Error("network fail"))})).start():t(e)}))}(e).then((function(e){var t,n=window;return n.webkit&&n.webkit.messageHandlers?(t=e,new Promise((function(e,n){function r(){var r=new plus.nativeObj.Bitmap("bitmap_".concat(Date.now(),"_").concat(Math.random(),"}"));r.load(t,(function(){e(r.toBase64Data()),r.clear()}),(function(e){r.clear(),n(e)}))}plus.io.resolveLocalFileSystemURL(t,(function(t){t.file((function(t){var n=new plus.io.FileReader;n.onload=function(t){e(t.target.result)},n.onerror=r,n.readAsDataURL(t)}),r)}),r)}))):plus.io.convertLocalFileSystemURL(e)}))}var Vu={};!function(e){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},i={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)}(Vu);var Hu={},Uu={},qu={},Yu=Vu;function Xu(e){for(var t=e.length;--t>=0;)e[t]=0}var Zu=256,Gu=286,Ku=30,Ju=15,Qu=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ec=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],tc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rc=new Array(576);Xu(rc);var ic=new Array(60);Xu(ic);var ac=new Array(512);Xu(ac);var oc=new Array(256);Xu(oc);var sc=new Array(29);Xu(sc);var lc,uc,cc,dc=new Array(Ku);function hc(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function fc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function pc(e){return e<256?ac[e]:ac[256+(e>>>7)]}function vc(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function gc(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,vc(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function mc(e,t,n){gc(e,n[2*t],n[2*t+1])}function _c(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function yc(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=Ju;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=_c(a[s]++,s))}}function bc(e){var t;for(t=0;t<Gu;t++)e.dyn_ltree[2*t]=0;for(t=0;t<Ku;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function wc(e){e.bi_valid>8?vc(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function xc(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function Sc(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&xc(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!xc(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function kc(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?mc(e,i,t):(mc(e,(a=oc[i])+Zu+1,t),0!==(o=Qu[a])&&gc(e,i-=sc[a],o),mc(e,a=pc(--r),n),0!==(o=ec[a])&&gc(e,r-=dc[a],o))}while(s<e.last_lit);mc(e,256,t)}function Tc(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)Sc(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Sc(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,Sc(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,v=0;for(a=0;a<=Ju;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(a=p,v++),l[2*r+1]=a,r>u||(e.bl_count[a]++,o=0,r>=f&&(o=h[r-f]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==v){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,v-=2}while(v>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),yc(a,u,e.bl_count)}function Ec(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function Cc(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)do{mc(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(mc(e,i,e.bl_tree),s--),mc(e,16,e.bl_tree),gc(e,s-3,2)):s<=10?(mc(e,17,e.bl_tree),gc(e,s-3,3)):(mc(e,18,e.bl_tree),gc(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}Xu(dc);var Mc=!1;function Oc(e,t,n,r){gc(e,0+(r?1:0),3),function(e,t,n,r){wc(e),r&&(vc(e,n),vc(e,~n)),Yu.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}qu._tr_init=function(e){Mc||(!function(){var e,t,n,r,i,a=new Array(16);for(n=0,r=0;r<28;r++)for(sc[r]=n,e=0;e<1<<Qu[r];e++)oc[n++]=r;for(oc[n-1]=r,i=0,r=0;r<16;r++)for(dc[r]=i,e=0;e<1<<ec[r];e++)ac[i++]=r;for(i>>=7;r<Ku;r++)for(dc[r]=i<<7,e=0;e<1<<ec[r]-7;e++)ac[256+i++]=r;for(t=0;t<=Ju;t++)a[t]=0;for(e=0;e<=143;)rc[2*e+1]=8,e++,a[8]++;for(;e<=255;)rc[2*e+1]=9,e++,a[9]++;for(;e<=279;)rc[2*e+1]=7,e++,a[7]++;for(;e<=287;)rc[2*e+1]=8,e++,a[8]++;for(yc(rc,287,a),e=0;e<Ku;e++)ic[2*e+1]=5,ic[2*e]=_c(e,5);lc=new hc(rc,Qu,257,Gu,Ju),uc=new hc(ic,ec,0,Ku,Ju),cc=new hc(new Array(0),tc,0,19,7)}(),Mc=!0),e.l_desc=new fc(e.dyn_ltree,lc),e.d_desc=new fc(e.dyn_dtree,uc),e.bl_desc=new fc(e.bl_tree,cc),e.bi_buf=0,e.bi_valid=0,bc(e)},qu._tr_stored_block=Oc,qu._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<Zu;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Tc(e,e.l_desc),Tc(e,e.d_desc),o=function(e){var t;for(Ec(e,e.dyn_ltree,e.l_desc.max_code),Ec(e,e.dyn_dtree,e.d_desc.max_code),Tc(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*nc[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?Oc(e,t,n,r):4===e.strategy||a===i?(gc(e,2+(r?1:0),3),kc(e,rc,ic)):(gc(e,4+(r?1:0),3),function(e,t,n,r){var i;for(gc(e,t-257,5),gc(e,n-1,5),gc(e,r-4,4),i=0;i<r;i++)gc(e,e.bl_tree[2*nc[i]+1],3);Cc(e,e.dyn_ltree,t-1),Cc(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),kc(e,e.dyn_ltree,e.dyn_dtree)),bc(e),r&&wc(e)},qu._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(oc[n]+Zu+1)]++,e.dyn_dtree[2*pc(t)]++),e.last_lit===e.lit_bufsize-1},qu._tr_align=function(e){gc(e,2,3),mc(e,256,rc),function(e){16===e.bi_valid?(vc(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)};var Ic=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0};var Lc=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();var Ac,Nc=function(e,t,n,r){var i=Lc,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e},Bc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Rc=Vu,Pc=qu,zc=Ic,Dc=Nc,Fc=Bc,$c=-2,jc=258,Wc=262,Vc=103,Hc=113,Uc=666;function qc(e,t){return e.msg=Fc[t],t}function Yc(e){return(e<<1)-(e>4?9:0)}function Xc(e){for(var t=e.length;--t>=0;)e[t]=0}function Zc(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Rc.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Gc(e,t){Pc._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Zc(e.strm)}function Kc(e,t){e.pending_buf[e.pending++]=t}function Jc(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Qc(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Wc?e.strstart-(e.w_size-Wc):0,u=e.window,c=e.w_mask,d=e.prev,h=e.strstart+jc,f=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===f&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<h);if(r=jc-(h-a),a=h-jc,r>o){if(e.match_start=t,o=r,r>=s)break;f=u[a+o-1],p=u[a+o]}}}while((t=d[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function ed(e){var t,n,r,i,a,o,s,l,u,c,d=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-Wc)){Rc.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=d?r-d:0}while(--n);t=n=d;do{r=e.prev[--t],e.prev[t]=r>=d?r-d:0}while(--n);i+=d}if(0===e.strm.avail_in)break;if(o=e.strm,s=e.window,l=e.strstart+e.lookahead,u=i,c=void 0,(c=o.avail_in)>u&&(c=u),n=0===c?0:(o.avail_in-=c,Rc.arraySet(s,o.input,o.next_in,c,l),1===o.state.wrap?o.adler=zc(o.adler,s,c,l):2===o.state.wrap&&(o.adler=Dc(o.adler,s,c,l)),o.next_in+=c,o.total_in+=c,c),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<Wc&&0!==e.strm.avail_in)}function td(e,t){for(var n,r;;){if(e.lookahead<Wc){if(ed(e),e.lookahead<Wc&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Wc&&(e.match_length=Qc(e,n)),e.match_length>=3)if(r=Pc._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=Pc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Gc(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(Gc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Gc(e,!1),0===e.strm.avail_out)?1:2}function nd(e,t){for(var n,r,i;;){if(e.lookahead<Wc){if(ed(e),e.lookahead<Wc&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Wc&&(e.match_length=Qc(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=Pc._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Gc(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=Pc._tr_tally(e,0,e.window[e.strstart-1]))&&Gc(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Pc._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(Gc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Gc(e,!1),0===e.strm.avail_out)?1:2}function rd(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function id(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Rc.Buf16(1146),this.dyn_dtree=new Rc.Buf16(122),this.bl_tree=new Rc.Buf16(78),Xc(this.dyn_ltree),Xc(this.dyn_dtree),Xc(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Rc.Buf16(16),this.heap=new Rc.Buf16(573),Xc(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Rc.Buf16(573),Xc(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ad(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:Hc,e.adler=2===t.wrap?0:1,t.last_flush=0,Pc._tr_init(t),0):qc(e,$c)}function od(e){var t,n=ad(e);return 0===n&&((t=e.state).window_size=2*t.w_size,Xc(t.head),t.max_lazy_match=Ac[t.level].max_lazy,t.good_match=Ac[t.level].good_length,t.nice_match=Ac[t.level].nice_length,t.max_chain_length=Ac[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function sd(e,t,n,r,i,a){if(!e)return $c;var o=1;if(-1===t&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return qc(e,$c);8===r&&(r=9);var s=new id;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Rc.Buf8(2*s.w_size),s.head=new Rc.Buf16(s.hash_size),s.prev=new Rc.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Rc.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,od(e)}Ac=[new rd(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ed(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Gc(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Wc&&(Gc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Gc(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Gc(e,!1),e.strm.avail_out),1)})),new rd(4,4,8,4,td),new rd(4,5,16,8,td),new rd(4,6,32,32,td),new rd(4,4,16,16,nd),new rd(8,16,32,32,nd),new rd(8,16,128,128,nd),new rd(8,32,128,256,nd),new rd(32,128,258,1024,nd),new rd(32,258,258,4096,nd)],Uu.deflateInit=function(e,t){return sd(e,t,8,15,8,0)},Uu.deflateInit2=sd,Uu.deflateReset=od,Uu.deflateResetKeep=ad,Uu.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?$c:(e.state.gzhead=t,0):$c},Uu.deflate=function(e,t){var n,r,i,a;if(!e||!e.state||t>5||t<0)return e?qc(e,$c):$c;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Uc&&4!==t)return qc(e,0===e.avail_out?-5:$c);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,Kc(r,31),Kc(r,139),Kc(r,8),r.gzhead?(Kc(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Kc(r,255&r.gzhead.time),Kc(r,r.gzhead.time>>8&255),Kc(r,r.gzhead.time>>16&255),Kc(r,r.gzhead.time>>24&255),Kc(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Kc(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Kc(r,255&r.gzhead.extra.length),Kc(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Dc(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Kc(r,0),Kc(r,0),Kc(r,0),Kc(r,0),Kc(r,0),Kc(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Kc(r,3),r.status=Hc);else{var o=8+(r.w_bits-8<<4)<<8;o|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(o|=32),o+=31-o%31,r.status=Hc,Jc(r,o),0!==r.strstart&&(Jc(r,e.adler>>>16),Jc(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=Dc(e.adler,r.pending_buf,r.pending-i,i)),Zc(e),i=r.pending,r.pending!==r.pending_buf_size));)Kc(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=Dc(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Dc(e.adler,r.pending_buf,r.pending-i,i)),Zc(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Kc(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=Dc(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Dc(e.adler,r.pending_buf,r.pending-i,i)),Zc(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Kc(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=Dc(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.status=Vc)}else r.status=Vc;if(r.status===Vc&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Zc(e),r.pending+2<=r.pending_buf_size&&(Kc(r,255&e.adler),Kc(r,e.adler>>8&255),e.adler=0,r.status=Hc)):r.status=Hc),0!==r.pending){if(Zc(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&Yc(t)<=Yc(n)&&4!==t)return qc(e,-5);if(r.status===Uc&&0!==e.avail_in)return qc(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==Uc){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(ed(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=Pc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Gc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Gc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Gc(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=jc){if(ed(e),e.lookahead<=jc&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+jc;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=jc-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=Pc._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Pc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Gc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Gc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Gc(e,!1),0===e.strm.avail_out)?1:2}(r,t):Ac[r.level].func(r,t);if(3!==s&&4!==s||(r.status=Uc),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===t?Pc._tr_align(r):5!==t&&(Pc._tr_stored_block(r,0,0,!1),3===t&&(Xc(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Zc(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(Kc(r,255&e.adler),Kc(r,e.adler>>8&255),Kc(r,e.adler>>16&255),Kc(r,e.adler>>24&255),Kc(r,255&e.total_in),Kc(r,e.total_in>>8&255),Kc(r,e.total_in>>16&255),Kc(r,e.total_in>>24&255)):(Jc(r,e.adler>>>16),Jc(r,65535&e.adler)),Zc(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},Uu.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==Vc&&t!==Hc&&t!==Uc?qc(e,$c):(e.state=null,t===Hc?qc(e,-3):0):$c},Uu.deflateSetDictionary=function(e,t){var n,r,i,a,o,s,l,u,c=t.length;if(!e||!e.state)return $c;if(2===(a=(n=e.state).wrap)||1===a&&42!==n.status||n.lookahead)return $c;for(1===a&&(e.adler=zc(e.adler,t,c,0)),n.wrap=0,c>=n.w_size&&(0===a&&(Xc(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new Rc.Buf8(n.w_size),Rc.arraySet(u,t,c-n.w_size,n.w_size,0),t=u,c=n.w_size),o=e.avail_in,s=e.next_in,l=e.input,e.avail_in=c,e.next_in=0,e.input=t,ed(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,ed(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,n.wrap=a,0},Uu.deflateInfo="pako deflate (from Nodeca project)";var ld={},ud=Vu,cd=!0,dd=!0;try{String.fromCharCode.apply(null,[0])}catch(Fm){cd=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Fm){dd=!1}for(var hd=new ud.Buf8(256),fd=0;fd<256;fd++)hd[fd]=fd>=252?6:fd>=248?5:fd>=240?4:fd>=224?3:fd>=192?2:1;function pd(e,t){if(t<65534&&(e.subarray&&dd||!e.subarray&&cd))return String.fromCharCode.apply(null,ud.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}hd[254]=hd[254]=1,ld.string2buf=function(e){var t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new ud.Buf8(s),a=0,i=0;a<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},ld.buf2binstring=function(e){return pd(e,e.length)},ld.binstring2buf=function(e){for(var t=new ud.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},ld.buf2string=function(e,t){var n,r,i,a,o=t||e.length,s=new Array(2*o);for(r=0,n=0;n<o;)if((i=e[n++])<128)s[r++]=i;else if((a=hd[i])>4)s[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n<o;)i=i<<6|63&e[n++],a--;a>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return pd(s,r)},ld.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+hd[e[n]]>t?n:t};var vd=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},gd=Uu,md=Vu,_d=ld,yd=Bc,bd=vd,wd=Object.prototype.toString;function xd(e){if(!(this instanceof xd))return new xd(e);this.options=md.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bd,this.strm.avail_out=0;var n=gd.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(yd[n]);if(t.header&&gd.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?_d.string2buf(t.dictionary):"[object ArrayBuffer]"===wd.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=gd.deflateSetDictionary(this.strm,r)))throw new Error(yd[n]);this._dict_set=!0}}function Sd(e,t){var n=new xd(t);if(n.push(e,!0),n.err)throw n.msg||yd[n.err];return n.result}xd.prototype.push=function(e,t){var n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=_d.string2buf(e):"[object ArrayBuffer]"===wd.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new md.Buf8(a),i.next_out=0,i.avail_out=a),1!==(n=gd.deflate(i,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(_d.buf2binstring(md.shrinkBuf(i.output,i.next_out))):this.onData(md.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=gd.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),i.avail_out=0,!0)},xd.prototype.onData=function(e){this.chunks.push(e)},xd.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=md.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},Hu.Deflate=xd,Hu.deflate=Sd,Hu.deflateRaw=function(e,t){return(t=t||{}).raw=!0,Sd(e,t)},Hu.gzip=function(e,t){return(t=t||{}).gzip=!0,Sd(e,t)};var kd={},Td={},Ed=Vu,Cd=15,Md=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Od=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Id=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Ld=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Ad=Vu,Nd=Ic,Bd=Nc,Rd=function(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p,v,g,m,_,y,b,w,x,S,k,T,E;n=e.state,r=e.next_in,T=e.input,i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,v=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;e:do{p<15&&(f+=T[r++]<<p,p+=8,f+=T[r++]<<p,p+=8),y=v[f&m];t:for(;;){if(f>>>=b=y>>>24,p-=b,0===(b=y>>>16&255))E[a++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=v[(65535&y)+(f&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&y,(b&=15)&&(p<b&&(f+=T[r++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=T[r++]<<p,p+=8,f+=T[r++]<<p,p+=8),y=g[f&_];n:for(;;){if(f>>>=b=y>>>24,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(f&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&y,p<(b&=15)&&(f+=T[r++]<<p,(p+=8)<b&&(f+=T[r++]<<p,p+=8)),(x+=f&(1<<b)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,x>(b=a-o)){if((b=x-b)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,k=h,0===d){if(S+=u-b,b<w){w-=b;do{E[a++]=h[S++]}while(--b);S=a-x,k=E}}else if(d<b){if(S+=u+d-b,(b-=d)<w){w-=b;do{E[a++]=h[S++]}while(--b);if(S=0,d<w){w-=b=d;do{E[a++]=h[S++]}while(--b);S=a-x,k=E}}}else if(S+=d-b,b<w){w-=b;do{E[a++]=h[S++]}while(--b);S=a-x,k=E}for(;w>2;)E[a++]=k[S++],E[a++]=k[S++],E[a++]=k[S++],w-=3;w&&(E[a++]=k[S++],w>1&&(E[a++]=k[S++]))}else{S=a-x;do{E[a++]=E[S++],E[a++]=E[S++],E[a++]=E[S++],w-=3}while(w>2);w&&(E[a++]=E[S++],w>1&&(E[a++]=E[S++]))}break}}break}}while(r<i&&a<s);r-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p},Pd=function(e,t,n,r,i,a,o,s){var l,u,c,d,h,f,p,v,g,m=s.bits,_=0,y=0,b=0,w=0,x=0,S=0,k=0,T=0,E=0,C=0,M=null,O=0,I=new Ed.Buf16(16),L=new Ed.Buf16(16),A=null,N=0;for(_=0;_<=Cd;_++)I[_]=0;for(y=0;y<r;y++)I[t[n+y]]++;for(x=m,w=Cd;w>=1&&0===I[w];w--);if(x>w&&(x=w),0===w)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;b<w&&0===I[b];b++);for(x<b&&(x=b),T=1,_=1;_<=Cd;_++)if(T<<=1,(T-=I[_])<0)return-1;if(T>0&&(0===e||1!==w))return-1;for(L[1]=0,_=1;_<Cd;_++)L[_+1]=L[_]+I[_];for(y=0;y<r;y++)0!==t[n+y]&&(o[L[t[n+y]]++]=y);if(0===e?(M=A=o,f=19):1===e?(M=Md,O-=257,A=Od,N-=257,f=256):(M=Id,A=Ld,f=-1),C=0,y=0,_=b,h=a,S=x,k=0,c=-1,d=(E=1<<x)-1,1===e&&E>852||2===e&&E>592)return 1;for(;;){p=_-k,o[y]<f?(v=0,g=o[y]):o[y]>f?(v=A[N+o[y]],g=M[O+o[y]]):(v=96,g=0),l=1<<_-k,b=u=1<<S;do{i[h+(C>>k)+(u-=l)]=p<<24|v<<16|g|0}while(0!==u);for(l=1<<_-1;C&l;)l>>=1;if(0!==l?(C&=l-1,C+=l):C=0,y++,0==--I[_]){if(_===w)break;_=t[n+o[y]]}if(_>x&&(C&d)!==c){for(0===k&&(k=x),h+=b,T=1<<(S=_-k);S+k<w&&!((T-=I[S+k])<=0);)S++,T<<=1;if(E+=1<<S,1===e&&E>852||2===e&&E>592)return 1;i[c=C&d]=x<<24|S<<16|h-a|0}}return 0!==C&&(i[h+C]=_-k<<24|64<<16|0),s.bits=x,0},zd=-2,Dd=12,Fd=30;function $d(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function jd(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Ad.Buf16(320),this.work=new Ad.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Wd(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Ad.Buf32(852),t.distcode=t.distdyn=new Ad.Buf32(592),t.sane=1,t.back=-1,0):zd}function Vd(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Wd(e)):zd}function Hd(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?zd:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Vd(e))):zd}function Ud(e,t){var n,r;return e?(r=new jd,e.state=r,r.window=null,0!==(n=Hd(e,t))&&(e.state=null),n):zd}var qd,Yd,Xd=!0;function Zd(e){if(Xd){var t;for(qd=new Ad.Buf32(512),Yd=new Ad.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Pd(1,e.lens,0,288,qd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Pd(2,e.lens,0,32,Yd,0,e.work,{bits:5}),Xd=!1}e.lencode=qd,e.lenbits=9,e.distcode=Yd,e.distbits=5}function Gd(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Ad.Buf8(a.wsize)),r>=a.wsize?(Ad.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),Ad.arraySet(a.window,t,n-r,i,a.wnext),(r-=i)?(Ad.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}Td.inflateReset=Vd,Td.inflateReset2=Hd,Td.inflateResetKeep=Wd,Td.inflateInit=function(e){return Ud(e,15)},Td.inflateInit2=Ud,Td.inflate=function(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p,v,g,m,_,y,b,w,x,S,k,T,E=0,C=new Ad.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return zd;(n=e.state).mode===Dd&&(n.mode=13),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,d=s,h=l,S=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(2&n.wrap&&35615===u){n.check=0,C[0]=255&u,C[1]=u>>>8&255,n.check=Bd(n.check,C,2,0),u=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Fd;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=Fd;break}if(c-=4,x=8+(15&(u>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=Fd;break}n.dmax=1<<x,e.adler=n.check=1,n.mode=512&u?10:Dd,u=0,c=0;break;case 2:for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.flags=u,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=Fd;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Fd;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(C[0]=255&u,C[1]=u>>>8&255,n.check=Bd(n.check,C,2,0)),u=0,c=0,n.mode=3;case 3:for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.time=u),512&n.flags&&(C[0]=255&u,C[1]=u>>>8&255,C[2]=u>>>16&255,C[3]=u>>>24&255,n.check=Bd(n.check,C,4,0)),u=0,c=0,n.mode=4;case 4:for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(C[0]=255&u,C[1]=u>>>8&255,n.check=Bd(n.check,C,2,0)),u=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(C[0]=255&u,C[1]=u>>>8&255,n.check=Bd(n.check,C,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Ad.arraySet(n.head.extra,r,a,f,x)),512&n.flags&&(n.check=Bd(n.check,r,f,a)),s-=f,a+=f,n.length-=f),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;f=0;do{x=r[a+f++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&f<s);if(512&n.flags&&(n.check=Bd(n.check,r,f,a)),s-=f,a+=f,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;f=0;do{x=r[a+f++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&f<s);if(512&n.flags&&(n.check=Bd(n.check,r,f,a)),s-=f,a+=f,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Fd;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Dd;break;case 10:for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}e.adler=n.check=$d(u),u=0,c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,2;e.adler=n.check=1,n.mode=Dd;case Dd:if(5===t||6===t)break e;case 13:if(n.last){u>>>=7&c,c-=7&c,n.mode=27;break}for(;c<3;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}switch(n.last=1&u,c-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if(Zd(n),n.mode=20,6===t){u>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=Fd}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Fd;break}if(n.length=65535&u,u=0,c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(f=n.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;Ad.arraySet(i,r,a,f,o),s-=f,a+=f,l-=f,o+=f,n.length-=f;break}n.mode=Dd;break;case 17:for(;c<14;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.nlen=257+(31&u),u>>>=5,c-=5,n.ndist=1+(31&u),u>>>=5,c-=5,n.ncode=4+(15&u),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Fd;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.lens[M[n.have++]]=7&u,u>>>=3,c-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k={bits:n.lenbits},S=Pd(0,n.lens,0,19,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid code lengths set",n.mode=Fd;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;m=(E=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(_<16)u>>>=g,c-=g,n.lens[n.have++]=_;else{if(16===_){for(T=g+2;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u>>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Fd;break}x=n.lens[n.have-1],f=3+(3&u),u>>>=2,c-=2}else if(17===_){for(T=g+3;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}c-=g,x=0,f=3+(7&(u>>>=g)),u>>>=3,c-=3}else{for(T=g+7;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}c-=g,x=0,f=11+(127&(u>>>=g)),u>>>=7,c-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Fd;break}for(;f--;)n.lens[n.have++]=x}}if(n.mode===Fd)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Fd;break}if(n.lenbits=9,k={bits:n.lenbits},S=Pd(1,n.lens,0,n.nlen,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid literal/lengths set",n.mode=Fd;break}if(n.distbits=6,n.distcode=n.distdyn,k={bits:n.distbits},S=Pd(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,k),n.distbits=k.bits,S){e.msg="invalid distances set",n.mode=Fd;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,Rd(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,n.mode===Dd&&(n.back=-1);break}for(n.back=0;m=(E=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(m&&0==(240&m)){for(y=g,b=m,w=_;m=(E=n.lencode[w+((u&(1<<y+b)-1)>>y)])>>>16&255,_=65535&E,!(y+(g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=y,c-=y,n.back+=y}if(u>>>=g,c-=g,n.back+=g,n.length=_,0===m){n.mode=26;break}if(32&m){n.back=-1,n.mode=Dd;break}if(64&m){e.msg="invalid literal/length code",n.mode=Fd;break}n.extra=15&m,n.mode=22;case 22:if(n.extra){for(T=n.extra;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;m=(E=n.distcode[u&(1<<n.distbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(0==(240&m)){for(y=g,b=m,w=_;m=(E=n.distcode[w+((u&(1<<y+b)-1)>>y)])>>>16&255,_=65535&E,!(y+(g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=y,c-=y,n.back+=y}if(u>>>=g,c-=g,n.back+=g,64&m){e.msg="invalid distance code",n.mode=Fd;break}n.offset=_,n.extra=15&m,n.mode=24;case 24:if(n.extra){for(T=n.extra;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Fd;break}n.mode=25;case 25:if(0===l)break e;if(f=h-l,n.offset>f){if((f=n.offset-f)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Fd;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),v=n.window}else v=i,p=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[o++]=v[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;i[o++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;c<32;){if(0===s)break e;s--,u|=r[a++]<<c,c+=8}if(h-=l,e.total_out+=h,n.total+=h,h&&(e.adler=n.check=n.flags?Bd(n.check,i,h,o-h):Nd(n.check,i,h,o-h)),h=l,(n.flags?u:$d(u))!==n.check){e.msg="incorrect data check",n.mode=Fd;break}u=0,c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Fd;break}u=0,c=0}n.mode=29;case 29:S=1;break e;case Fd:S=-3;break e;case 31:return-4;default:return zd}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,(n.wsize||h!==e.avail_out&&n.mode<Fd&&(n.mode<27||4!==t))&&Gd(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?Bd(n.check,i,h,e.next_out-h):Nd(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Dd?128:0)+(20===n.mode||15===n.mode?256:0),(0===d&&0===h||4===t)&&0===S&&(S=-5),S},Td.inflateEnd=function(e){if(!e||!e.state)return zd;var t=e.state;return t.window&&(t.window=null),e.state=null,0},Td.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?zd:(n.head=t,t.done=!1,0):zd},Td.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?zd:11===n.mode&&Nd(1,t,r,0)!==n.check?-3:Gd(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):zd},Td.inflateInfo="pako inflate (from Nodeca project)";var Kd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var Jd=Td,Qd=Vu,eh=ld,th=Kd,nh=Bc,rh=vd,ih=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},ah=Object.prototype.toString;function oh(e){if(!(this instanceof oh))return new oh(e);this.options=Qd.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new rh,this.strm.avail_out=0;var n=Jd.inflateInit2(this.strm,t.windowBits);if(n!==th.Z_OK)throw new Error(nh[n]);if(this.header=new ih,Jd.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=eh.string2buf(t.dictionary):"[object ArrayBuffer]"===ah.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Jd.inflateSetDictionary(this.strm,t.dictionary))!==th.Z_OK))throw new Error(nh[n])}function sh(e,t){var n=new oh(t);if(n.push(e,!0),n.err)throw n.msg||nh[n.err];return n.result}oh.prototype.push=function(e,t){var n,r,i,a,o,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?th.Z_FINISH:th.Z_NO_FLUSH,"string"==typeof e?s.input=eh.binstring2buf(e):"[object ArrayBuffer]"===ah.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Qd.Buf8(l),s.next_out=0,s.avail_out=l),(n=Jd.inflate(s,th.Z_NO_FLUSH))===th.Z_NEED_DICT&&u&&(n=Jd.inflateSetDictionary(this.strm,u)),n===th.Z_BUF_ERROR&&!0===c&&(n=th.Z_OK,c=!1),n!==th.Z_STREAM_END&&n!==th.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==th.Z_STREAM_END&&(0!==s.avail_in||r!==th.Z_FINISH&&r!==th.Z_SYNC_FLUSH)||("string"===this.options.to?(i=eh.utf8border(s.output,s.next_out),a=s.next_out-i,o=eh.buf2string(s.output,i),s.next_out=a,s.avail_out=l-a,a&&Qd.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(Qd.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(c=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==th.Z_STREAM_END);return n===th.Z_STREAM_END&&(r=th.Z_FINISH),r===th.Z_FINISH?(n=Jd.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===th.Z_OK):r!==th.Z_SYNC_FLUSH||(this.onEnd(th.Z_OK),s.avail_out=0,!0)},oh.prototype.onData=function(e){this.chunks.push(e)},oh.prototype.onEnd=function(e){e===th.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Qd.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},kd.Inflate=oh,kd.inflate=sh,kd.inflateRaw=function(e,t){return(t=t||{}).raw=!0,sh(e,t)},kd.ungzip=sh;var lh={};(0,Vu.assign)(lh,Hu,kd,Kd);var uh=lh,ch=!1,dh=0,hh=0,fh=960,ph=375,vh=750;function gh(e,t){var n=Number(e);return isNaN(n)?t:n}var mh=zu(0,((e,t)=>{var n;if(0===dh&&(!function(){var{platform:e,pixelRatio:t,windowWidth:n}=Du();dh=n,hh=t,ch="ios"===e}(),n=__uniConfig.globalStyle||{},fh=gh(n.rpxCalcMaxDeviceWidth,960),ph=gh(n.rpxCalcBaseDeviceWidth,375),vh=gh(n.rpxCalcBaseDeviceWidth,750)),0===(e=Number(e)))return 0;var r=t||dh,i=e/750*(r=e===vh||r<=fh?r:ph);return i<0&&(i=-i),0===(i=Math.floor(i+1e-4))&&(i=1!==hh&&ch?.5:1),e<0?-i:i})),_h={};_h.f={}.propertyIsEnumerable;var yh,bh=k,wh=Re,xh=H,Sh=_h.f,kh=(yh=!1,function(e){for(var t,n=xh(e),r=wh(n),i=r.length,a=0,o=[];i>a;)t=r[a++],bh&&!Sh.call(n,t)||o.push(yh?[t,n[t]]:n[t]);return o});fe(fe.S,"Object",{values:function(e){return kh(e)}});var Th=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},o._resetCrossOriginUpdater=function(){n=null,r=null},o.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,o=null;this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(o=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),l(e,"resize",r,!0)),l(t,"scroll",r,!0),o&&o.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var c=i(t);c&&this._monitorIntersections(c.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=i(n);if((n=a&&a.ownerDocument)==t)return!0}return!1}))){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var o=i(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},o.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,o=u(i),s=this._rootContainsTarget(i),l=r.entry,c=e&&s&&this._computeTargetAndRootIntersection(i,o,t),d=null;this._rootContainsTarget(i)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=r.entry=new a({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:o,rootBounds:d,intersectionRect:c});l?e&&s?this._hasCrossedThreshold(l,h)&&this._queuedEntries.push(h):l&&l.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(t,i,a){if("none"!=window.getComputedStyle(t).display){for(var o,s,l,c,h,p,v,g,m=i,_=f(t),y=!1;!y&&_;){var b=null,w=1==_.nodeType?window.getComputedStyle(_):{};if("none"==w.display)return null;if(_==this.root||9==_.nodeType)if(y=!0,_==this.root||_==e)n&&!this.root?!r||0==r.width&&0==r.height?(_=null,b=null,m=null):b=r:b=a;else{var x=f(_),S=x&&u(x),k=x&&this._computeTargetAndRootIntersection(x,S,a);S&&k?(_=x,b=d(S,k)):(_=null,m=null)}else{var T=_.ownerDocument;_!=T.body&&_!=T.documentElement&&"visible"!=w.overflow&&(b=u(_))}if(b&&(o=b,s=m,l=void 0,c=void 0,h=void 0,p=void 0,v=void 0,g=void 0,l=Math.max(o.top,s.top),c=Math.min(o.bottom,s.bottom),h=Math.max(o.left,s.left),p=Math.min(o.right,s.right),g=c-l,m=(v=p-h)>=0&&g>=0&&{top:l,bottom:c,left:h,right:p,width:v,height:g}||null),!m)break;_=_&&f(_)}return m}},o.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=u(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var a=this.thresholds[i];if(a==n||a==r||a<n!=a<r)return!0}},o.prototype._rootIsInDom=function(){return!this.root||h(e,this.root)},o.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return h(n,t)&&(!this.root||n==t.ownerDocument)},o.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},o.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=o,window.IntersectionObserverEntry=a}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=c(e.rootBounds),this.boundingClientRect=c(e.boundingClientRect),this.intersectionRect=c(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function o(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function u(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function h(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}};function Eh(e){var{bottom:t,height:n,left:r,right:i,top:a,width:o}=e||{};return{bottom:t,height:n,left:r,right:i,top:a,width:o}}function Ch(e){var{intersectionRatio:t,boundingClientRect:{height:n,width:r},intersectionRect:{height:i,width:a}}=e;return 0!==t?t:i===n?a/r:i/n}const Mh=Object.freeze(Object.defineProperty({__proto__:null,upx2px:mh,navigateTo:function(e){UniViewJSBridge.invokeServiceMethod("navigateTo",e)},navigateBack:function(e){UniViewJSBridge.invokeServiceMethod("navigateBack",e)},reLaunch:function(e){UniViewJSBridge.invokeServiceMethod("reLaunch",e)},redirectTo:function(e){UniViewJSBridge.invokeServiceMethod("redirectTo",e)},switchTab:function(e){UniViewJSBridge.invokeServiceMethod("switchTab",e)}},Symbol.toStringTag,{value:"Module"}));function Oh(e,t){if(t)return hn(t,"a")&&(t.a=e(t.a)),hn(t,"e")&&(t.e=e(t.e,!1)),hn(t,"w")&&(t.w=function(e,t){var n={};return e.forEach((e=>{var[r,[i,a]]=e;n[t(r)]=[t(i),a]})),n}(t.w,e)),hn(t,"s")&&(t.s=e(t.s)),hn(t,"t")&&(t.t=e(t.t)),t}var Ih=new Set;function Lh(e,t){Ih.add(function(e,t){return e.priority=t,e}(e,t))}function Ah(e,t){var n=window.__wxsModules,r=n&&n[e];return r||(t&&t.__renderjsInstances?t.__renderjsInstances[e]:void 0)}var Nh=qn.length;function Bh(e,t,n){var[r,i,a,o]=Ph(t),s=Rh(e,r);if(fn(n)||fn(o)){var[l,u]=a.split(".");return zh(s,i,l,u,n||o)}return function(e,t,n){var r=Ah(t,e);if(!r)return console.error(Gn("wxs","module "+n+" not found"));return Qn(r,n.slice(n.indexOf(".")+1))}(s,i,a)}function Rh(e,t){if(e.__ownerId===t)return e;for(var n=e.parentElement;n;){if(n.__ownerId===t)return n;n=n.parentElement}return e}function Ph(e){return JSON.parse(e.slice(Nh))}function zh(e,t,n,r,i){var a=Ah(t,e);if(!a)return console.error(Gn("wxs","module "+n+" not found"));var o=a[r];return vn(o)?o.apply(a,i):console.error(n+"."+r+" is not a function")}function Dh(e,t,n){var r=n;return n=>{try{!function(e,t,n,r){var[i,a,o]=Ph(e),s=Rh(t,i),[l,u]=o.split(".");zh(s,a,l,u,[n,r,ku(Eu(s)),ku(Eu(t))])}(t,e.$,n,r)}catch(i){console.error(i)}r=n}}function Fh(e,t){var n=Eu(t);return Object.defineProperty(e,"instance",{get:()=>ku(n)}),e}function $h(e,t){Object.keys(t).forEach((n=>{!function(e,t){var n=function(e){var t=window["__"+Xn],n=t&&t[e];if(!n)return console.error(Gn("renderjs",e+" not found"));return n}(t);if(!n)return;var r=e.$;(r.__renderjsInstances||(r.__renderjsInstances={}))[t]=function(e,t){return t=t.default||t,t.render=()=>{},zl(t).mixin({mounted(){this.$ownerInstance=ku(Eu(e))}}).mount(document.createElement("div"))}(r,n)}(e,t[n])}))}var jh=Yn.length;function Wh(e,t){return gn(e)?(0===e.indexOf(Yn)?e=JSON.parse(e.slice(jh)):0===e.indexOf(qn)&&(e=Bh(t,e)),e):e}function Vh(e){return 0===e.indexOf("--")}class Hh{constructor(e,t,n,r){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=e,this.tag=t,this.pid=n,r&&(this.$=r),this.$wxsProps=new Map;var i=this.$parent=function(e){return hm.get(e)}(n);i&&i.appendUniChild(this)}init(e){hn(e,"t")&&(this.$.textContent=e.t)}setText(e){this.$.textContent=e,this.updateView()}insert(e,t,n){n&&this.init(n,!1);var r=this.$,i=fm(e);-1===t?i.appendChild(r):i.insertBefore(r,fm(t).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:e}=this;e.parentNode.removeChild(e),this.isUnmounted=!0,pm(this.id),function(e){var{__renderjsInstances:t}=e.$;t&&Object.keys(t).forEach((e=>{t[e].$.appContext.app.unmount()}))}(this),this.removeUniChildren(),this.updateView()}appendChild(e){var t=this.$.appendChild(e);return this.updateView(!0),t}insertBefore(e,t){var n=this.$.insertBefore(e,t);return this.updateView(!0),n}appendUniChild(e){this.$children.push(e)}removeUniChild(e){var t=this.$children.indexOf(e);t>=0&&this.$children.splice(t,1)}removeUniParent(){var{$parent:e}=this;e&&(e.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach((e=>e.remove())),this.$children.length=0}setWxsProps(e){Object.keys(e).forEach((t=>{if(0===t.indexOf(vr)){var n=t.replace(vr,""),r=Wh(e[n]),i=Dh(this,e[t],r);Lh((()=>i(r)),4),this.$wxsProps.set(t,i),delete e[t],delete e[n],this.$hasWxsProps=!0}}))}addWxsEvents(e){Object.keys(e).forEach((t=>{var[n,r]=e[t];this.addWxsEvent(t,n,r)}))}addWxsEvent(e,t,n){}wxsPropsInvoke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.$hasWxsProps&&this.$wxsProps.get(vr+e);if(r)return Lh((()=>n?Ua((()=>r(t))):r(t)),4),!0}updateView(e){(this.isMounted||e)&&window.dispatchEvent(new CustomEvent("updateview"))}}function Uh(e,t){var{__wxsAddClass:n,__wxsRemoveClass:r}=e;r&&r.length&&(t=t.split(/\s+/).filter((e=>-1===r.indexOf(e))).join(" "),r.length=0),n&&n.length&&(t=t+" "+n.join(" ")),e.className=t}function qh(e){return Kh(nf(e))}var Yh,Xh,Zh,Gh=/url\(\s*'?"?([a-zA-Z0-9\.\-\_\/]+\.(jpg|gif|png))"?'?\s*\)/,Kh=e=>{if(gn(e)&&-1!==e.indexOf("url(")){var t=e.match(Gh);t&&3===t.length&&(e=e.replace(t[1],Fu(t[1])))}return e},{unit:Jh,unitRatio:Qh,unitPrecision:ef}={unit:"rem",unitRatio:10/320,unitPrecision:5},tf=(Yh=Jh,Xh=Qh,Zh=ef,e=>e.replace(rr,((e,t)=>{if(!t)return e;if(1===Xh)return"".concat(t).concat(Yh);var n,r,i,a,o=(n=parseFloat(t)*Xh,r=Zh,i=Math.pow(10,r+1),a=Math.floor(n*i),10*Math.round(a/10)/i);return 0===o?"0":"".concat(o).concat(Yh)}))),nf=e=>gn(e)?tf(e):e,rf=["Webkit"],af={};function of(e,t){var n=af[t];if(n)return n;var r=Cn(t);if("filter"!==r&&r in e)return af[t]=r;r=In(r);for(var i=0;i<rf.length;i++){var a=rf[i]+r;if(a in e)return af[t]=a}return t}function sf(e,t){var n=e.style;if(gn(t))""===t?e.removeAttribute("style"):n.cssText=qh(t);else for(var r in t)uf(n,r,t[r]);var{__wxsStyle:i}=e;if(i)for(var a in i)uf(n,a,i[a])}var lf=/\s*!important$/;function uf(e,t,n){if(fn(n))n.forEach((n=>uf(e,t,n)));else if(n=qh(n),t.startsWith("--"))e.setProperty(t,n);else{var r=of(e,t);lf.test(n)?e.setProperty(On(r),n.replace(lf,""),"important"):e[r]=n}}function cf(e,t){var n=e.__listeners[t];n&&e.removeEventListener(t,n)}function df(e,t){if(e.__listeners[t])return!0}function hf(e,t,n){var[r,i]=lr(t);-1===n?cf(e,r):df(e,r)||e.addEventListener(r,e.__listeners[r]=ff(e.__id,n,i),i)}function ff(e,t,n){var r=t=>{var[r]=Cu(t);r.type=function(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(In(Cn(e)))}(t.type,n),UniViewJSBridge.publishHandler(Au,[[20,e,r]])};return t?Ll(r,pf(t)):r}function pf(e){var t=[];return e&ur.prevent&&t.push("prevent"),e&ur.self&&t.push("self"),e&ur.stop&&t.push("stop"),t}function vf(e,t,n){var r=n=>{!function(e,t,n){var[r,i,a]=Ph(t),[o,s]=a.split("."),l=Rh(e,r);zh(l,i,o,s,[Fh(n,e),ku(Eu(l))])}(function(e){return!!e.addWxsEvent}(e)?e.$:e,t,Cu(n)[0])};return n?Ll(r,pf(n)):r}function gf(e,t){e._vod="none"===e.style.display?"":e.style.display,e.style.display=t?e._vod:"none"}class mf extends Hh{constructor(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];super(e,t.tagName,n,t),this.$props=ca({}),this.$.__id=e,this.$.__listeners=Object.create(null),this.$propNames=a,this._update=this.update.bind(this),this.init(i),this.insert(n,r)}init(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];hn(e,"a")&&this.setAttrs(e.a),hn(e,"s")&&this.setAttr("style",e.s),hn(e,"e")&&this.addEvents(e.e),hn(e,"w")&&this.addWxsEvents(e.w),super.init(e),t&&(vo(this.$props,(()=>{Lh(this._update,1)}),{flush:"sync"}),this.update(!0))}setAttrs(e){this.setWxsProps(e),Object.keys(e).forEach((t=>{this.setAttr(t,e[t])}))}addEvents(e){Object.keys(e).forEach((t=>{this.addEvent(t,e[t])}))}addWxsEvent(e,t,n){!function(e,t,n,r){var[i,a]=lr(t);-1===r?cf(e,i):df(e,i)||e.addEventListener(i,e.__listeners[i]=vf(e,n,r),a)}(this.$,e,t,n)}addEvent(e,t){hf(this.$,e,t)}removeEvent(e){hf(this.$,e,-1)}setAttr(e,t){e===cr?Uh(this.$,t):e===dr?sf(this.$,t):e===hr?gf(this.$,t):e===fr?this.$.__ownerId=t:e===pr?Lh((()=>$h(this,t)),3):"innerHTML"===e?this.$.innerHTML=t:"textContent"===e?this.setText(t):this.setAttribute(e,t),this.updateView()}removeAttr(e){e===cr?Uh(this.$,""):e===dr?sf(this.$,""):this.removeAttribute(e),this.updateView()}setAttribute(e,t){t=Wh(t,this.$),-1!==this.$propNames.indexOf(e)?this.$props[e]=t:Vh(e)?this.$.style.setProperty(e,qh(t)):this.wxsPropsInvoke(e,t)||this.$.setAttribute(e,t)}removeAttribute(e){-1!==this.$propNames.indexOf(e)?delete this.$props[e]:Vh(e)?this.$.style.removeProperty(e):this.$.removeAttribute(e)}update(){}}function _f(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>"".concat(uni.upx2px(parseFloat(t)),"px"))):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function yf(e){var t=e.animation;if(t&&t.actions&&t.actions.length){var n=0,r=t.actions,i=t.actions.length;setTimeout((()=>{a()}),0)}function a(){var t=r[n],o=t.option.transition,s=function(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],r=["opacity","background-color"],i=["width","height","left","right","top","bottom"],a=e.animates,o=e.option,s=o.transition,l={},u=[];return a.forEach((e=>{var a=e.type,o=[...e.args];if(t.concat(n).includes(a))a.startsWith("rotate")||a.startsWith("skew")?o=o.map((e=>parseFloat(e)+"deg")):a.startsWith("translate")&&(o=o.map(_f)),n.indexOf(a)>=0&&(o.length=1),u.push("".concat(a,"(").concat(o.join(","),")"));else if(r.concat(i).includes(o[0])){a=o[0];var s=o[1];l[a]=i.includes(a)?_f(s):s}})),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>"".concat(function(e){return e.replace(/[A-Z]/g,(e=>"-".concat(e.toLowerCase()))).replace("webkit","-webkit")}(e)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms"))).join(","),l.transformOrigin=l.webkitTransformOrigin=o.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),(n+=1)<i&&setTimeout(a,o.duration+o.delay)}}const bf={props:["animation"],watch:{animation:{deep:!0,handler(){yf(this)}}},mounted(){yf(this)}};var wf=e=>{e.__reserved=!0;var{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(bf),xf(e)},xf=e=>(e.__reserved=!0,e.compatConfig={MODE:3},function(e){return vn(e)?{setup:e,name:e.name}:e}(e)),Sf={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function kf(e){var t,n,r=Ta(!1),i=!1;function a(){requestAnimationFrame((()=>{clearTimeout(n),n=setTimeout((()=>{r.value=!1}),parseInt(e.hoverStayTime))}))}function o(n){n._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(n._hoverPropagationStopped=!0),i=!0,t=setTimeout((()=>{r.value=!0,i||a()}),parseInt(e.hoverStartTime)))}function s(){i=!1,r.value&&a()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:r,binding:{onTouchstartPassive:function(e){e.touches.length>1||o(e)},onMousedown:function(e){i||(o(e),window.addEventListener("mouseup",l))},onTouchend:function(){s()},onMouseup:function(){i&&l()},onTouchcancel:function(){i=!1,r.value=!1,clearTimeout(t)}}}}function Tf(e,t){return gn(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}function Ef(e){return e.__wwe=!0,e}function Cf(e,t){return(n,r,i)=>{e.value&&t(n,function(e,t,n,r){var i=ar(n);return{type:r.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:r}}(n,r,e.value,i||{}))}}var Mf=Jl("uf");const Of=wf({name:"Form",emits:["submit","reset"],setup(e,t){var n,r,{slots:i,emit:a}=t,o=Ta(null);return n=Cf(o,a),r=[],co(Mf,{addField(e){r.push(e)},removeField(e){r.splice(r.indexOf(e),1)},submit(e){n("submit",e,{value:r.reduce(((e,t)=>{if(t.submit){var[n,r]=t.submit();n&&(e[n]=r)}return e}),Object.create(null))})},reset(e){r.forEach((e=>e.reset&&e.reset())),n("reset",e)}}),()=>Ps("uni-form",{ref:o},[Ps("span",null,[i.default&&i.default()])],512)}});var If={for:{type:String,default:""}},Lf=Jl("ul");const Af=wf({name:"Label",props:If,setup(e,t){var{slots:n}=t,r=au(),i=function(){var e=[];return co(Lf,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),a=il((()=>e.for||n.default&&n.default.length)),o=Ef((t=>{var n=t.target,a=/^uni-(checkbox|radio|switch)-/.test(n.className);a||(a=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),a||(e.for?UniViewJSBridge.emit("uni-label-click-"+r+"-"+e.for,t,!0):i.length&&i[0](t,!0))}));return()=>Ps("uni-label",{class:{"uni-label-pointer":a},onClick:o},[n.default&&n.default()],10,["onClick"])}});function Nf(e,t){Bf(e.id,t),vo((()=>e.id),((e,n)=>{Rf(n,t,!0),Bf(e,t,!0)})),No((()=>{Rf(e.id,t)}))}function Bf(e,t,n){var r=au();n&&!e||xn(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge.on("uni-".concat(i,"-").concat(r,"-").concat(e),t[i]):0===i.indexOf("uni-")?UniViewJSBridge.on(i,t[i]):e&&UniViewJSBridge.on("uni-".concat(i,"-").concat(r,"-").concat(e),t[i])}))}function Rf(e,t,n){var r=au();n&&!e||xn(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge.off("uni-".concat(i,"-").concat(r,"-").concat(e),t[i]):0===i.indexOf("uni-")?UniViewJSBridge.off(i,t[i]):e&&UniViewJSBridge.off("uni-".concat(i,"-").concat(r,"-").concat(e),t[i])}))}const Pf=wf({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,t){var{slots:n}=t,r=Ta(null);Dr();var i=ho(Mf,!1),{hovering:a,binding:o}=kf(e),{t:s}=Rr(),l=Ef(((t,n)=>{if(e.disabled)return t.stopImmediatePropagation();n&&r.value.click();var a=e.formType;if(a){if(!i)return;"submit"===a?i.submit(t):"reset"===a&&i.reset(t)}else{var o,l,u;"feedback"===e.openType&&(o=s("uni.button.feedback.title"),l=s("uni.button.feedback.send"),(u=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:o,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:l,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){u.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}})).show("slide-in-right"))}})),u=ho(Lf,!1);return u&&(u.addHandler(l),Ao((()=>{u.removeHandler(l)}))),Nf(e,{"label-click":l}),()=>{var t=e.hoverClass,i=Tf(e,"disabled"),s=Tf(e,"loading"),u=Tf(e,"plain"),c=t&&"none"!==t;return Ps("uni-button",Vs({ref:r,onClick:l,class:c&&a.value?t:""},c&&o,i,s,u),[n.default&&n.default()],16,["onClick"])}}});const zf=wf({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:n}=t,r=Ta(null),i=function(e){return()=>{var{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(r),a=function(e,t,n){var r=ca({width:-1,height:-1});return vo((()=>un({},r)),(e=>t("resize",e))),()=>{var t=e.value;r.width=t.offsetWidth,r.height=t.offsetHeight,n()}}(r,n,i);return function(e,t,n,r){xo(r),Oo((()=>{t.initial&&Ua(n);var i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||r()}))}(r,e,a,i),()=>Ps("uni-resize-sensor",{ref:r,onAnimationstartOnce:a},[Ps("div",{onScroll:a},[Ps("div",null,null)],40,["onScroll"]),Ps("div",{onScroll:a},[Ps("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});var Df=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function Ff(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.width=e.offsetWidth*(t?Df:1),e.height=e.offsetHeight*(t?Df:1),e.getContext("2d").__hidpi__=t}var $f=!1;var jf,Wf=Jn((()=>function(){if(!$f){$f=!0;var e,t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=(e=t.drawImage,function(t,n,r,i,a,o,s,l,u,c){if(!this.__hidpi__)return e.apply(this,arguments);n*=Df,r*=Df,i*=Df,a*=Df,o*=Df,s*=Df,l=c?l*Df:l,u=c?u*Df:u,e.call(this,t,n,r,i,a,o,s,l,u)}),1!==Df&&(function(e,t){for(var n in e)hn(e,n)&&t(e[n],n)}({fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*Df}));else if(Array.isArray(e))for(var r=0;r<e.length;r++)n[e[r]]*=Df;return t.apply(this,n)}}(t[n])})),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=Df,e.apply(this,arguments),this.lineWidth/=Df}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Df,t[2]*=Df,t[3]&&"number"==typeof t[3]&&(t[3]*=Df);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*Df+n})),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Df,t[2]*=Df,t[3]&&"number"==typeof t[3]&&(t[3]*=Df);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*Df+n})),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(Df,Df),e.apply(this,arguments),this.scale(1/Df,1/Df)}}(t.drawImage))}}()));function Vf(e){return e?Fu(e):e}function Hf(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Uf(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}function qf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return jf||(jf=document.createElement("canvas")),jf.width=e,jf.height=t,jf}const Yf=wf({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,t){var{emit:n,slots:r}=t;Wf();var i=Ta(null),a=Ta(null),o=Ta(!1),s=function(e){return(t,n)=>{e(t,Ou(n))}}(n),{$attrs:l,$excludeAttrs:u,$listeners:c}=dv({excludeListeners:!0}),{_listeners:d}=function(e,t,n){var r=il((()=>{var r=["onTouchstart","onTouchmove","onTouchend"],i=t.value,a=un({},(()=>{var e={};for(var t in i)if(hn(i,t)){var n=i[t];e[t]=n}return e})());return r.forEach((t=>{var r=[];a[t]&&r.push(Ef((e=>{var r=e.currentTarget.getBoundingClientRect();Uf(r,e.touches),Uf(r,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&r.push(Zl),a[t]=r})),a}));return{_listeners:r}}(e,c,s),{_handleSubscribe:h,_resize:f}=function(e,t,n){var r=[],i={},a=il((()=>e.hidpi?Df:1));function o(n){var r=t.value;if(!n||r.width!==Math.floor(n.width*a.value)||r.height!==Math.floor(n.height*a.value))if(r.width>0&&r.height>0){var i=r.getContext("2d"),o=i.getImageData(0,0,r.width,r.height);Ff(r,e.hidpi),i.putImageData(o,0,0)}else Ff(r,e.hidpi)}function s(e,a){var{actions:o,reserve:s}=e;if(o)if(n.value)r.push([o,s]);else{var c=t.value,d=c.getContext("2d");s||(d.fillStyle="#000000",d.strokeStyle="#000000",d.shadowColor="#000000",d.shadowBlur=0,d.shadowOffsetX=0,d.shadowOffsetY=0,d.setTransform(1,0,0,1,0,0),d.clearRect(0,0,c.width,c.height)),l(o);for(var h=function(e){var t=o[e],n=t.method,r=t.data,s=r[0];if(/^set/.test(n)&&"setTransform"!==n){var l,c=n[3].toLowerCase()+n.slice(4);if("fillStyle"===c||"strokeStyle"===c){if("normal"===s)l=Hf(r[1]);else if("linear"===s){var h=d.createLinearGradient(...r[1]);r[2].forEach((function(e){var t=e[0],n=Hf(e[1]);h.addColorStop(t,n)})),l=h}else if("radial"===s){var f=r[1],p=f[0],v=f[1],g=f[2],m=d.createRadialGradient(p,v,0,p,v,g);r[2].forEach((function(e){var t=e[0],n=Hf(e[1]);m.addColorStop(t,n)})),l=m}else if("pattern"===s){return u(r[1],o.slice(e+1),a,(function(e){e&&(d[c]=d.createPattern(e,r[2]))}))?"continue":"break"}d[c]=l}else if("globalAlpha"===c)d[c]=Number(s)/255;else if("shadow"===c){var _=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];r.forEach((function(e,t){d[_[t]]="shadowColor"===_[t]?Hf(e):e}))}else if("fontSize"===c){var y=d.__font__||d.font;d.__font__=d.font=y.replace(/\d+\.?\d*px/,s+"px")}else"lineDash"===c?(d.setLineDash(s),d.lineDashOffset=r[1]||0):"textBaseline"===c?("normal"===s&&(r[0]="alphabetic"),d[c]=s):"font"===c?d.__font__=d.font=s:d[c]=s}else if("fillPath"===n||"strokePath"===n)n=n.replace(/Path/,""),d.beginPath(),r.forEach((function(e){d[e.method].apply(d,e.data)})),d[n]();else if("fillText"===n)d.fillText.apply(d,r);else if("drawImage"===n){if("break"===function(){var t=[...r],n=t[0],s=t.slice(1);if(i=i||{},!u(n,o.slice(e+1),a,(function(e){e&&d.drawImage.apply(d,[e].concat([...s.slice(4,8)],[...s.slice(0,4)]))})))return"break"}())return"break"}else"clip"===n?(r.forEach((function(e){d[e.method].apply(d,e.data)})),d.clip()):d[n].apply(d,r)},f=0;f<o.length;f++){var p=h(f);if("break"===p)break}n.value||a({errMsg:"drawCanvas:ok"})}}function l(e){e.forEach((function(e){var t=e.method,n=e.data,r="";function a(){var e=i[r]=new Image;if(e.onload=function(){e.ready=!0},"Google Inc."===navigator.vendor)return 0===r.indexOf("file://")&&(e.crossOrigin="anonymous"),void(e.src=r);Wu(r).then((t=>{e.src=t})).catch((()=>{e.src=r}))}"drawImage"===t?(r=Vf(r=n[0]),n[0]=r):"setFillStyle"===t&&"pattern"===n[0]&&(r=Vf(r=n[1]),n[1]=r),r&&!i[r]&&a()}))}function u(e,t,a,o){var l=i[e];return l.ready?(o(l),!0):(r.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,o(l),n.value=!1;var e=r.slice(0);r=[];for(var t=e.shift();t;)s({actions:t[0],reserve:t[1]},a),t=e.shift()},!1)}function c(e,n){var r,{x:i=0,y:o=0,width:s,height:l,destWidth:u,destHeight:c,hidpi:d=!0,dataType:h,quality:f=1,type:p="png"}=e,v=t.value,g=v.offsetWidth-i;s=s?Math.min(s,g):g;var m=v.offsetHeight-o;l=l?Math.min(l,m):m,d?(u=s,c=l):u||c?u?c||(c=Math.round(l/s*u)):u=Math.round(s/l*c):(u=Math.round(s*a.value),c=Math.round(l*a.value));var _,y=qf(u,c),b=y.getContext("2d");"jpeg"!==p&&"jpg"!==p||(p="jpeg",b.fillStyle="#fff",b.fillRect(0,0,u,c)),b.__hidpi__=!0,b.drawImageByCanvas(v,i,o,s,l,0,0,u,c,!1);try{var w;if("base64"===h)r=y.toDataURL("image/".concat(p),f);else{var x=b.getImageData(0,0,u,c);r=uh.deflateRaw(x.data,{to:"string"}),w=!0}_={data:r,compressed:w,width:u,height:c}}catch(S){_={errMsg:"canvasGetImageData:fail ".concat(S)}}if(y.height=y.width=0,b.__hidpi__=!1,!n)return _;n(_)}function d(e,n){var{data:r,x:i,y:a,width:o,height:s,compressed:l}=e;try{l&&(r=uh.inflateRaw(r)),s||(s=Math.round(r.length/4/o));var u=qf(o,s);u.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(r),o,s),0,0),t.value.getContext("2d").drawImage(u,i,a,o,s),u.height=u.width=0}catch(c){return void n({errMsg:"canvasPutImageData:fail"})}n({errMsg:"canvasPutImageData:ok"})}function h(e,t){var{x:n=0,y:r=0,width:i,height:a,destWidth:o,destHeight:s,fileType:l,quality:u,dirname:d}=e,h=c({x:n,y:r,width:i,height:a,destWidth:o,destHeight:s,hidpi:!1,dataType:"base64",type:l,quality:u});h.data&&h.data.length?function(e,t,n){var r="".concat(Date.now()).concat(ju++),i=e.split(","),a=i[0],o=i[1],s=(a.match(/data:image\/(\S+?);/)||["","png"])[1].replace("jpeg","jpg"),l="".concat(r,".").concat(s),u="".concat(t,"/").concat(l),c=t.indexOf("/"),d=t.substring(0,c),h=t.substring(c+1);plus.io.resolveLocalFileSystemURL(d,(function(e){e.getDirectory(h,{create:!0,exclusive:!1},(function(e){e.getFile(l,{create:!0,exclusive:!1},(function(e){e.createWriter((function(e){e.onwrite=function(){n(null,u)},e.onerror=n,e.seek(0),e.writeAsBinary(o)}),n)}),n)}),n)}),n)}(h.data,d,((e,n)=>{var r="toTempFilePath:".concat(e?"fail":"ok");e&&(r+=" ".concat(e.message)),t({errMsg:r,tempFilePath:n})})):t({errMsg:h.errMsg.replace("canvasPutImageData","toTempFilePath")})}var f={actionsChanged:s,getImageData:c,putImageData:d,toTempFilePath:h};function p(e,t,n){var r=f[e];0!==e.indexOf("_")&&vn(r)&&r(t,n)}return un(f,{_resize:o,_handleSubscribe:p})}(e,i,o);return kg(h,Eg(e.canvasId),!0),Oo((()=>{f()})),()=>{var{canvasId:t,disableScroll:n}=e;return Ps("uni-canvas",Vs({"canvas-id":t,"disable-scroll":n},l.value,u.value,d.value),[Ps("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Ps("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[r.default&&r.default()]),Ps(zf,{ref:a,onResize:f},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});var Xf=Jl("ucg");const Zf=wf({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,t){var{emit:n,slots:r}=t,i=Ta(null);return function(e,t){var n=[],r=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);co(Xf,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:r()})}});var i=ho(Mf,!1);i&&i.addField({submit:()=>{var t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=r()),t}})}(e,Cf(i,n)),()=>Ps("uni-checkbox-group",{ref:i},[r.default&&r.default()],512)}});const Gf=wf({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,t){var{slots:n}=t,r=Ta(e.checked),i=Ta(e.value);vo([()=>e.checked,()=>e.value],(e=>{var[t,n]=e;r.value=t,i.value=n}));var{uniCheckGroup:a,uniLabel:o}=function(e,t,n){var r=il((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),i={reset:n},a=ho(Xf,!1);a&&a.addField(r);var o=ho(Mf,!1);o&&o.addField(i);var s=ho(Lf,!1);return Ao((()=>{a&&a.removeField(r),o&&o.removeField(i)})),{uniCheckGroup:a,uniForm:o,uniLabel:s}}(r,i,(()=>{r.value=!1})),s=t=>{e.disabled||(r.value=!r.value,a&&a.checkboxChange(t),t.stopPropagation())};return o&&(o.addHandler(s),Ao((()=>{o.removeHandler(s)}))),Nf(e,{"label-click":s}),()=>{var t=Tf(e,"disabled");return Ps("uni-checkbox",Vs(t,{onClick:s}),[Ps("div",{class:"uni-checkbox-wrapper"},[Ps("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[r.value?iu(ru,e.color,22):""],2),n.default&&n.default()])],16,["onClick"])}}});var Kf,Jf,Qf,ep,tp,np;function rp(){}function ip(e,t,n){or((()=>{var r="adjustResize",i="adjustPan",a=plus.webview.currentWebview(),o=np||a.getStyle()||{},s={mode:n||o.softinputMode===r?r:e.adjustPosition?i:"nothing",position:{top:0,height:0}};if(s.mode===i){var l=t.getBoundingClientRect();s.position.top=l.top,s.position.height=l.height+(Number(e.cursorSpacing)||0)}a.setSoftinputTemporary(s)}))}or((()=>{Jf="Android"===plus.os.name,Qf=plus.os.version||""})),document.addEventListener("keyboardchange",(function(e){ep=e.height,tp&&tp()}),!1);var ap={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},op=["keyboardheightchange"];function sp(e,t,n){var r={};function i(t){var i,a=il((()=>0===String(navigator.vendor).indexOf("Apple"))),o=()=>{n("keyboardheightchange",{},{height:ep,duration:.25}),i&&0===ep&&ip(e,t),e.autoBlur&&i&&0===ep&&(Jf||parseInt(Qf)>=13)&&document.activeElement.blur()};t.addEventListener("focus",(()=>{i=!0,clearTimeout(Kf),document.addEventListener("click",rp,!1),tp=o,ep&&n("keyboardheightchange",{},{height:ep,duration:0}),function(e,t){"auto"!==e.showConfirmBar?or((()=>{var n=plus.webview.currentWebview(),{softinputNavBar:r}=n.getStyle()||{};"none"!==r!==e.showConfirmBar?(t.softinputNavBar=r||"auto",n.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})):delete t.softinputNavBar}(e,r),ip(e,t)})),Jf&&t.addEventListener("click",(()=>{e.disabled||e.readOnly||!i||0!==ep||ip(e,t)})),Jf||(parseInt(Qf)<12&&t.addEventListener("touchstart",(()=>{e.disabled||e.readOnly||i||ip(e,t)})),parseFloat(Qf)>=14.6&&!np&&or((()=>{var e=plus.webview.currentWebview();np=e.getStyle()||{}})));var s=()=>{document.removeEventListener("click",rp,!1),tp=null,ep&&n("keyboardheightchange",{},{height:0,duration:0}),function(e){var t=e.softinputNavBar;t&&or((()=>{plus.webview.currentWebview().setStyle({softinputNavBar:t})}))}(r),Jf&&(Kf=setTimeout((()=>{ip(e,t,!0)}),300)),a.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};t.addEventListener("blur",(()=>{a.value&&t.blur(),i=!1,s()}))}vo((()=>t.value),(e=>e&&i(e)))}var lp=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,up=/^<\/([-A-Za-z0-9_]+)[^>]*>/,cp=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,dp=_p("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),hp=_p("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),fp=_p("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),pp=_p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),vp=_p("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),gp=_p("script,style");function mp(e,t){var n,r,i,a=[],o=e;for(a.last=function(){return this[this.length-1]};e;){if(r=!0,a.last()&&gp[a.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+a.last()+"[^>]*>"),(function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""})),u("",a.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),r=!1):0==e.indexOf("</")?(i=e.match(up))&&(e=e.substring(i[0].length),i[0].replace(up,u),r=!1):0==e.indexOf("<")&&(i=e.match(lp))&&(e=e.substring(i[0].length),i[0].replace(lp,l),r=!1),r){var s=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}if(e==o)throw"Parse Error: "+e;o=e}function l(e,n,r,i){if(n=n.toLowerCase(),hp[n])for(;a.last()&&fp[a.last()];)u("",a.last());if(pp[n]&&a.last()==n&&u("",n),(i=dp[n]||!!i)||a.push(n),t.start){var o=[];r.replace(cp,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:vp[t]?t:"";o.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,o,i)}}function u(e,n){if(n)for(r=a.length-1;r>=0&&a[r]!=n;r--);else var r=0;if(r>=0){for(var i=a.length-1;i>=r;i--)t.end&&t.end(a[i]);a.length=r}}u()}function _p(e){for(var t={},n=e.split(","),r=0;r<n.length;r++)t[n[r]]=!0;return t}var yp={};function bp(e,t,n){if(gn(e)?window[e]:e)n();else{var r=yp[t];if(!r){r=yp[t]=[];var i=document.createElement("script");i.src=t,document.body.appendChild(i),i.onload=function(){r.forEach((e=>e())),delete yp[t]}}r.push(n)}}function wp(e){var t=e.import("blots/block/embed");class n extends t{}return n.blotName="divider",n.tagName="HR",{"formats/divider":n}}function xp(e){var t=e.import("blots/inline");class n extends t{}return n.blotName="ins",n.tagName="INS",{"formats/ins":n}}function Sp(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK,whitelist:["left","right","center","justify"]};return{"formats/align":new n.Style("align","text-align",r)}}function kp(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK,whitelist:["rtl"]};return{"formats/direction":new n.Style("direction","direction",r)}}function Tp(e){var t=e.import("parchment"),n=e.import("blots/container"),r=e.import("formats/list/item");class i extends n{static create(e){var t="ordered"===e?"OL":"UL",n=super.create(t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}static formats(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}constructor(e){super(e);e.addEventListener("click",(n=>{if(n.target.parentNode===e){var r=this.statics.formats(e),i=t.find(n.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}}))}format(e,t){this.children.length>0&&this.children.tail.format(e,t)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(e,t){if(e instanceof r)super.insertBefore(e,t);else{var n=null==t?this.length():t.offset(this),i=this.split(n);i.parent.insertBefore(e,i)}}optimize(e){super.optimize(e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}replace(e){if(e.statics.blotName!==this.statics.blotName){var n=t.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}super.replace(e)}}return i.blotName="list",i.scope=t.Scope.BLOCK_BLOT,i.tagName=["OL","UL"],i.defaultChild="list-item",i.allowedChildren=[r],{"formats/list":i}}function Ep(e){var{Scope:t}=e.import("parchment");return{"formats/backgroundColor":new(e.import("formats/background").constructor)("backgroundColor","background-color",{scope:t.INLINE})}}function Cp(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK},i={};return["margin","marginTop","marginBottom","marginLeft","marginRight"].concat(["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"]).forEach((e=>{i["formats/".concat(e)]=new n.Style(e,On(e),r)})),i}function Mp(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.INLINE},i={};return["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"].forEach((e=>{i["formats/".concat(e)]=new n.Style(e,On(e),r)})),i}function Op(e){var{Scope:t,Attributor:n}=e.import("parchment"),r=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],i={};return r.forEach((e=>{var{name:t,scope:r}=e;i["formats/".concat(t)]=new n.Style(t,On(t),{scope:r})})),i}function Ip(e){var t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=e=>e?Fu(e):e,t.formats=function(e){return n.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})};var r=t.prototype.format;t.prototype.format=function(e,t){n.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):r.call(this,e,t)}}function Lp(e){var t=e.import("formats/link");t.sanitize=e=>{var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(r)>-1?e:t.SANITIZED_URL}}function Ap(e,t,n){var r,i,a;function o(){return{html:a.root.innerHTML,text:a.getText(),delta:a.getContents()}}function s(e){var t="data-placeholder",n=a.root;n.getAttribute(t)!==e&&n.setAttribute(t,e)}vo((()=>e.readOnly),(e=>{r&&(a.enable(!e),e||a.blur())})),vo((()=>e.placeholder),(e=>{r&&s(e)}));var l={};function u(e){var t=e?a.getFormat(e):{},r=Object.keys(t);(r.length!==Object.keys(l).length||r.find((e=>t[e]!==l[e])))&&(l=t,n("statuschange",{},t))}function c(){n("input",{},o())}function d(l){var d=window.Quill;!function(e){var t={divider:wp,ins:xp,align:Sp,direction:kp,list:Tp,background:Ep,box:Cp,font:Mp,text:Op,image:Ip,link:Lp},n={};Object.values(t).forEach((t=>un(n,t(e)))),e.register(n,!0)}(d);var h={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};l.length&&(d.register("modules/ImageResize",window.ImageResize.default),h.modules={ImageResize:{modules:l}});var f=t.value,p=(a=new d(f,h)).root;["focus","blur","input"].forEach((t=>{p.addEventListener(t,(r=>{var i=o();if("input"===t){if("ios"===Du().platform){var a=(i.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1];s(a&&a.replace(/\s/g,"")?"":e.placeholder)}r.stopPropagation()}else n(t,r,i)}))})),a.on("text-change",c),a.on("selection-change",u),a.on("scroll-optimize",(()=>{u(a.selection.getRange()[0])})),a.clipboard.addMatcher(Node.ELEMENT_NODE,((e,t)=>(i||t.ops&&(t.ops=t.ops.filter((e=>{var{insert:t}=e;return gn(t)})).map((e=>{var{insert:t}=e;return{insert:t}}))),t))),r=!0,n("ready",{},{})}kg(((e,t,n)=>{var s,l,d,{options:h,callbackId:f}=t;if(r){var p=window.Quill;switch(e){case"format":var{name:v="",value:g=!1}=h;l=a.getSelection(!0);var m=a.getFormat(l)[v]||!1;if(["bold","italic","underline","strike","ins"].includes(v))g=!m;else if("direction"===v){g=("rtl"!==g||!m)&&g;var _=a.getFormat(l).align;"rtl"!==g||_?g||"right"!==_||a.format("align",!1,"user"):a.format("align","right","user")}else if("indent"===v){g="+1"===g,"rtl"===a.getFormat(l).direction&&(g=!g),g=g?"+1":"-1"}else"list"===v&&(g="check"===g?"unchecked":g,m="checked"===m?"unchecked":m),g=m&&m!==(g||!1)||!m&&g?g:!m;a.format(v,g,"user");break;case"insertDivider":l=a.getSelection(!0),a.insertText(l.index,Wn,"user"),a.insertEmbed(l.index+1,"divider",!0,"user"),a.setSelection(l.index+2,0,"silent");break;case"insertImage":l=a.getSelection(!0);var{src:y="",alt:b="",width:w="",height:x="",extClass:S="",data:k={}}=h,T=Fu(y);a.insertEmbed(l.index,"image",T,"silent");var E=!!/^(file|blob):/.test(T)&&T;a.formatText(l.index,1,"data-local",E,"silent"),a.formatText(l.index,1,"alt",b,"silent"),a.formatText(l.index,1,"width",w,"silent"),a.formatText(l.index,1,"height",x,"silent"),a.formatText(l.index,1,"class",S,"silent"),a.formatText(l.index,1,"data-custom",Object.keys(k).map((e=>"".concat(e,"=").concat(k[e]))).join("&"),"silent"),a.setSelection(l.index+1,0,"silent"),a.scrollIntoView(),setTimeout((()=>{c()}),1e3);break;case"insertText":l=a.getSelection(!0);var{text:C=""}=h;a.insertText(l.index,C,"user"),a.setSelection(l.index+C.length,0,"silent");break;case"setContents":var{delta:M,html:O}=h;"object"==typeof M?a.setContents(M,"silent"):gn(O)?a.setContents(function(e){var t,n=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],r="";mp(e,{start:function(e,i,a){if(n.includes(e)){t=!1;var o=i.map((e=>{var{name:t,value:n}=e;return"".concat(t,'="').concat(n,'"')})).join(" "),s="<".concat(e," ").concat(o," ").concat(a?"/":"",">");r+=s}else t=!a},end:function(e){t||(r+="</".concat(e,">"))},chars:function(e){t||(r+=e)}}),i=!0;var o=a.clipboard.convert(r);return i=!1,o}(O),"silent"):d="contents is missing";break;case"getContents":s=o();break;case"clear":a.setText("");break;case"removeFormat":l=a.getSelection(!0);var I=p.import("parchment");l.length?a.removeFormat(l.index,l.length,"user"):Object.keys(a.getFormat(l)).forEach((e=>{I.query(e,I.Scope.INLINE)&&a.format(e,!1)}));break;case"undo":a.history.undo();break;case"redo":a.history.redo();break;case"blur":a.blur();break;case"getSelectionText":s={text:""},(l=a.selection.savedRange)&&0!==l.length&&(s.text=a.getText(l.index,l.length));break;case"scrollIntoView":a.scrollIntoView()}u(l)}else d="not ready";f&&n({callbackId:f,data:un({},s,{errMsg:"".concat(e,":").concat(d?"fail "+d:"ok")})})}),Eg(),!0),Oo((()=>{var t=[];e.showImgSize&&t.push("DisplaySize"),e.showImgToolbar&&t.push("Toolbar"),e.showImgResize&&t.push("Resize");bp(window.Quill,"./__uniappquill.js",(()=>{if(t.length){bp(window.ImageResize,"./__uniappquillimageresize.js",(()=>{d(t)}))}else d(t)}))}))}const Np=wf({name:"Editor",props:un({},ap,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),emit:["ready","focus","blur","input","statuschange",...op],setup(e,t){var{emit:n}=t,r=Ta(null),i=Cf(r,n);return Ap(e,r,i),sp(e,r,i),()=>Ps("uni-editor",{ref:r,id:e.id,class:"ql-container"},null,8,["id"])}});var Bp="#10aeff",Rp="#b2b2b2",Pp={success:{d:"M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",c:Vn},success_no_circle:{d:ru,c:Vn},info:{d:"M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",c:Bp},warn:{d:"M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",c:"#f76260"},waiting:{d:"M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",c:Bp},cancel:{d:"M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",c:"#f43530"},download:{d:"M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",c:Vn},search:{d:"M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",c:Rp},clear:{d:"M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",c:Rp}};const zp=wf({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=il((()=>Pp[e.type]));return()=>{var{value:n}=t;return Ps("uni-icon",null,[n&&n.d&&iu(n.d,e.color||n.c,eu(e.size))])}}});var Dp={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},Fp={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},$p={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]};const jp=wf({name:"Image",props:Dp,setup(e,t){var{emit:n}=t,r=Ta(null),i=function(e,t){var n=Ta(""),r=il((()=>{var e="auto",r="",i=$p[t.mode];return i?(i[0]&&(r=i[0]),i[1]&&(e=i[1])):(r="0% 0%",e="100% 100%"),"background-image:".concat(n.value?'url("'+n.value+'")':"none",";background-position:").concat(r,";background-size:").concat(e,";")})),i=ca({rootEl:e,src:il((()=>t.src?Fu(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:r,imgSrc:n});return Oo((()=>{var t=e.value.style;i.origWidth=Number(t.width)||0,i.origHeight=Number(t.height)||0})),i}(r,e),a=Cf(r,n),{fixSize:o}=function(e,t,n){var r=()=>{var{mode:r}=t,i=Fp[r];if(i){var{origWidth:a,origHeight:o}=n,s=a&&o?a/o:0;if(s){var l=e.value,u=l[i[0]];u&&(l.style[i[1]]=function(e){Wp&&e>10&&(e=2*Math.round(e/2));return e}(i[2](u,s))+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},i=()=>{var{style:t}=e.value,{origStyle:{width:r,height:i}}=n;t.width=r,t.height=i};return vo((()=>t.mode),((e,t)=>{Fp[t]&&i(),Fp[e]&&r()})),{fixSize:r,resetSize:i}}(r,e,i);return function(e,t,n,r,i){var a,o,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.origWidth=t,e.origHeight=n,e.imgSrc=r},l=l=>{if(!l)return u(),void s();(a=a||new Image).onload=e=>{var{width:c,height:d}=a;s(c,d,l),r(),a.draggable=t.draggable,o&&o.remove(),o=a,n.value.appendChild(a),u(),i("load",e,{width:c,height:d})},a.onerror=t=>{s(),u(),i("error",t,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},a.src=l},u=()=>{a&&(a.onload=null,a.onerror=null,a=null)};vo((()=>e.src),(e=>l(e))),vo((()=>e.imgSrc),(e=>{!e&&o&&(o.remove(),o=null)})),Oo((()=>l(e.src))),Ao((()=>u()))}(i,e,r,o,a),()=>Ps("uni-image",{ref:r},[Ps("div",{style:i.modeStyle},null,4),Fp[e.mode]?Ps(zf,{onResize:o},null,8,["onResize"]):Ps("span",null,null)],512)}});var Wp="Google Inc."===navigator.vendor;var Vp,Hp=ir(!0),Up=[],qp=0,Yp=e=>Up.forEach((t=>t.userAction=e));function Xp(){var e=ca({userAction:!1});return Oo((()=>{!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userAction:!1};if(!Vp){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!qp&&Yp(!0),qp++,setTimeout((()=>{!--qp&&Yp(!1)}),0)}),Hp)})),Vp=!0}Up.push(e)}(e)})),Ao((()=>{var t,n;t=e,(n=Up.indexOf(t))>=0&&Up.splice(n,1)})),{state:e}}function Zp(){var e=ca({attrs:{}});return Oo((()=>{for(var t=Xs();t;){var n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function Gp(e,t){var n=document.activeElement;if(!n)return t({});var r={};["input","textarea"].includes(n.tagName.toLowerCase())&&(r.start=n.selectionStart,r.end=n.selectionEnd),t(r)}var Kp;function Jp(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}var Qp=un({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"}},ap),ev=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...op];function tv(e,t,n,r){var i=function(e,t,n){var r,{clearTimeout:i,setTimeout:a}=n,o=function(){i(r),r=a((()=>e.apply(this,arguments)),t)};return o.cancel=function(){i(r)},o}((n=>{t.value=Jp(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});vo((()=>e.modelValue),i),vo((()=>e.value),i);var a=function(e,t){var n,r,i=0,a=function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=Date.now();clearTimeout(n),r=()=>{r=null,i=l,e.apply(this,o)},l-i<t?n=setTimeout(r,t-(l-i)):r()};return a.cancel=function(){clearTimeout(n),r=null},a.flush=function(){clearTimeout(n),r&&r()},a}(((e,t)=>{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),r("input",e,t)}),100);return Mo((()=>{i.cancel(),a.cancel()})),{trigger:r,triggerInput:(e,t,n)=>{i.cancel(),a(e,t),n&&a.flush()}}}function nv(e,t){var{state:n}=Xp(),r=il((()=>e.autoFocus||e.focus));function i(){if(r.value){var e=t.value;if(e&&"plus"in window){var a=200-(Date.now()-Kp);a>0?setTimeout(i,a):(e.focus(),n.userAction||plus.key.showSoftKeybord())}else setTimeout(i,100)}}vo((()=>e.focus),(e=>{var n;e?i():(n=t.value)&&n.blur()})),Oo((()=>{Kp=Kp||Date.now(),r.value&&Ua(i)}))}function rv(e,t,n,r){Ur(ou(),"getSelectedTextRange",Gp);var{fieldRef:i,state:a,trigger:o}=function(e,t,n){var r=Ta(null),i=Cf(t,n),a=il((()=>{var t=Number(e.selectionStart);return isNaN(t)?-1:t})),o=il((()=>{var t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=il((()=>{var t=Number(e.cursor);return isNaN(t)?-1:t})),l=il((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),u=Jp(e.modelValue,e.type)||Jp(e.value,e.type),c=ca({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:a,selectionEnd:o,cursor:s});return vo((()=>c.focus),(e=>n("update:focus",e))),vo((()=>c.maxlength),(e=>c.value=c.value.slice(0,e))),{fieldRef:r,state:c,trigger:i}}(e,t,n),{triggerInput:s}=tv(e,a,n,o);nv(e,i),sp(e,i,o);var{state:l}=Zp();return function(e,t){var n=ho(Mf,!1);if(n){var r=Xs(),i={submit(){var n=r.proxy;return[n[e],gn(t)?n[t]:t.value]},reset(){gn(t)?r.proxy[t]="":t.value=""}};n.addField(i),Ao((()=>{n.removeField(i)}))}}("name",a),function(e,t,n,r,i,a){function o(){var n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){var n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}vo([()=>t.selectionStart,()=>t.selectionEnd],o),vo((()=>t.cursor),s),vo((()=>e.value),(function(){var u=e.value;if(u){var c=function(e,r){e.stopPropagation(),vn(a)&&!1===a(e,t)||(t.value=u.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:u.value,cursor:l(u)},r))};u.addEventListener("change",(e=>e.stopPropagation())),u.addEventListener("focus",(function(e){t.focus=!0,r("focus",e,{value:t.value}),o(),s()})),u.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,c(e,!0)),t.focus=!1,r("blur",e,{value:t.value,cursor:l(e.target)})})),u.addEventListener("input",c),u.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),u.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,c(e)),d(e)})),u.addEventListener("compositionupdate",d)}function d(e){n.ignoreCompositionEvent||r(e.type,e,{value:e.data})}}))}(i,a,e,o,s,r),{fieldRef:i,state:a,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:o}}var iv=["none","text","decimal","numeric","tel","search","email","url"];const av=wf({name:"Input",props:un({},Qp,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""},inputmode:{type:String,default:void 0,validator:e=>!!~iv.indexOf(e)}}),emits:["confirm",...ev],setup(e,t){var n,{emit:r}=t,i=["text","number","idcard","digit","password","tel"],a=["off","one-time-code"],o=il((()=>{var t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~i.includes(e.type)?e.type:"text"}return e.password?"password":t})),s=il((()=>{var t=a.indexOf(e.textContentType),n=a.indexOf(On(e.textContentType));return a[-1!==t?t:-1!==n?n:0]})),l=Ta(""),u=Ta(null),{fieldRef:c,state:d,scopedAttrsState:h,fixDisabledColor:f,trigger:p}=rv(e,u,r,((e,t)=>{var r=e.target;if("number"===o.value){if(n&&(r.removeEventListener("blur",n),n=null),r.validity&&!r.validity.valid){if((!l.value||!r.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",n=()=>{l.value=r.value=""},r.addEventListener("blur",n),!1;if(l.value)if(-1!==l.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){var i=l.value.indexOf(".");return l.value=r.value=t.value=l.value.slice(0,i),!0}}else if("."===e.data)return l.value+=".",n=()=>{l.value=r.value=l.value.slice(0,-1)},r.addEventListener("blur",n),!1;return l.value=t.value=r.value="-"===l.value?"":l.value,!1}l.value=r.value;var a=t.maxlength;if(a>0&&r.value.length>a)return r.value=r.value.slice(0,a),t.value=r.value,!1}}));vo((()=>d.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t)}));var v=["number","digit"],g=il((()=>v.includes(e.type)?e.step:""));function m(t){if("Enter"===t.key){var n=t.target;t.stopPropagation(),p("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}}return()=>{var t=e.disabled&&f?Ps("input",{key:"disabled-input",ref:c,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:o.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",onFocus:e=>e.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):Ps("input",{key:"input",ref:c,value:d.value,disabled:!!e.disabled,type:o.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",autocomplete:s.value,onKeyup:m,inputmode:e.inputmode},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return Ps("uni-input",{ref:u},[Ps("div",{class:"uni-input-wrapper"},[Do(Ps("div",Vs(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Al,!(d.value.length||"-"===l.value)]]),"search"===e.confirmType?Ps("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});function ov(e){return Object.keys(e).map((t=>[t,e[t]]))}var sv,lv,uv=["class","style"],cv=/^on[A-Z]+/,dv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:n=[]}=e,r=Xs(),i=Ea({}),a=Ea({}),o=Ea({}),s=n.concat(uv);return r.attrs=ca(r.attrs),fo((()=>{var e=ov(r.attrs).reduce(((e,n)=>{var[r,i]=n;return s.includes(r)?e.exclude[r]=i:cv.test(r)?(t||(e.attrs[r]=i),e.listeners[r]=i):e.attrs[r]=i,e}),{exclude:{},attrs:{},listeners:{}});i.value=e.attrs,a.value=e.listeners,o.value=e.exclude})),{$attrs:i,$listeners:a,$excludeAttrs:o}};function hv(){or((()=>{sv||(sv=plus.webview.currentWebview()),lv||(lv=(sv.getStyle()||{}).pullToRefresh||{})}))}function fv(e){var{disable:t}=e;lv&&lv.support&&sv.setPullToRefresh(Object.assign({},lv,{support:!t}))}function pv(e){var t=[];return fn(e)&&e.forEach((e=>{Is(e)?e.type===Ts?t.push(...pv(e.children)):t.push(e):fn(e)&&t.push(...pv(e))})),t}function vv(e){Xs().rebuild=e}const gv=wf({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,t){var{slots:n}=t,r=Ta(null),i=Ta(!1),{setContexts:a,events:o}=function(e,t){var n=Ta(0),r=Ta(0),i=ca({x:null,y:null}),a=Ta(null),o=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach((function(e){e._setScale(t)})):o&&o._setScale(t))}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=t.value;function i(e){for(var t=0;t<n.length;t++){var a=n[t];if(e===a.rootRef.value)return a}return e===r||e===document.body||e===document?null:i(e.parentNode)}return i(e)}var c=Ef((t=>{fv({disable:!0});var n=t.touches;if(n&&n.length>1){var r={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(a.value=mv(r),i.x=r.x,i.y=r.y,!e.scaleArea){var s=u(n[0].target),l=u(n[1].target);o=s&&s===l?s:null}}})),d=Ef((e=>{var t=e.touches;if(t&&t.length>1){e.preventDefault();var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&a.value&&a.value>0)l(mv(n)/a.value);i.x=n.x,i.y=n.y}})),h=Ef((t=>{fv({disable:!1});var n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,a.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):o&&o._endScale())}));function f(){p(),s.forEach((function(e,t){e.setParent()}))}function p(){var e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce((function(t,n){var r="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[r])}),0),r.value=i.height-["Top","Bottom"].reduce((function(t,n){var r="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[r])}),0)}return co("movableAreaWidth",n),co("movableAreaHeight",r),{setContexts(e){s=e},events:{_onTouchstart:c,_onTouchmove:d,_onTouchend:h,_resize:f}}}(e,r),{$listeners:s,$attrs:l,$excludeAttrs:u}=dv(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{var t=c[e],n=o["_".concat(e)];c[e]=t?[].concat(t,n):n})),Oo((()=>{o._resize(),hv(),i.value=!0}));var d=[],h=[];function f(){for(var e=[],t=function(){var t=d[n];t instanceof Element||(t=t.el);var r=h.find((e=>t===e.rootRef.value));r&&e.push(ya(r))},n=0;n<d.length;n++)t();a(e)}vv((()=>{d=r.value.children,f()}));return co("_isMounted",i),co("movableAreaRootRef",r),co("addMovableViewContext",(e=>{h.push(e),f()})),co("removeMovableViewContext",(e=>{var t=h.indexOf(e);t>=0&&(h.splice(t,1),f())})),()=>(n.default&&n.default(),Ps("uni-movable-area",Vs({ref:r},l.value,u.value,c),[Ps(zf,{onReize:o._resize},null,8,["onReize"]),d],16))}});function mv(e){return Math.sqrt(e.x*e.x+e.y*e.y)}var _v,yv,bv=function(e,t,n,r){e.addEventListener(t,(e=>{vn(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};function wv(e,t,n){Ao((()=>{document.removeEventListener("mousemove",_v),document.removeEventListener("mouseup",yv)}));var r,i,a=0,o=0,s=0,l=0,u=function(e,n,r,i){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:r,y:i,dx:r-a,dy:i-o,ddx:r-s,ddy:i-l,timeStamp:e.timeStamp}}))return!1},c=null;bv(e,"touchstart",(function(e){if(r=!0,1===e.touches.length&&!c)return c=e,a=s=e.touches[0].pageX,o=l=e.touches[0].pageY,u(e,"start",a,o)})),bv(e,"mousedown",(function(e){if(i=!0,!r&&!c)return c=e,a=s=e.pageX,o=l=e.pageY,u(e,"start",a,o)})),bv(e,"touchmove",(function(e){if(1===e.touches.length&&c){var t=u(e,"move",e.touches[0].pageX,e.touches[0].pageY);return s=e.touches[0].pageX,l=e.touches[0].pageY,t}}));var d=_v=function(e){if(!r&&i&&c){var t=u(e,"move",e.pageX,e.pageY);return s=e.pageX,l=e.pageY,t}};document.addEventListener("mousemove",d),bv(e,"touchend",(function(e){if(0===e.touches.length&&c)return r=!1,c=null,u(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));var h=yv=function(e){if(i=!1,!r&&c)return c=null,u(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),bv(e,"touchcancel",(function(e){if(c){r=!1;var t=c;return c=null,u(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function xv(e,t,n){return e>t-n&&e<t+n}function Sv(e,t){return xv(e,0,t)}function kv(){}function Tv(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Ev(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function Cv(e,t,n){this._springX=new Ev(e,t,n),this._springY=new Ev(e,t,n),this._springScale=new Ev(e,t,n),this._startTime=0}function Mv(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}kv.prototype.x=function(e){return Math.sqrt(e)},Tv.prototype.setV=function(e,t){var n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Tv.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Tv.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Tv.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Tv.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Tv.prototype.dt=function(){return-this._x_v/this._x_a},Tv.prototype.done=function(){var e=xv(this.s().x,this._endPositionX)||xv(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Tv.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Tv.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Ev.prototype._solve=function(e,t){var n=this._c,r=this._m,i=this._k,a=n*n-4*r*i;if(0===a){var o=-n/(2*r),s=e,l=t/(o*e);return{x:function(e){return(s+l*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+l*e)*t+l*t}}}if(a>0){var u=(-n-Math.sqrt(a))/(2*r),c=(-n+Math.sqrt(a))/(2*r),d=(t-u*e)/(c-u),h=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*u*t+d*c*n}}}var f=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=e,g=(t-p*e)/f;return{x:function(e){return Math.pow(Math.E,p*e)*(v*Math.cos(f*e)+g*Math.sin(f*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(f*e),r=Math.sin(f*e);return t*(g*f*n-v*f*r)+p*t*(g*r+v*n)}}},Ev.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Ev.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Ev.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Sv(t,.1)){t=t||0;var r=this._endPosition;this._solution&&(Sv(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),Sv(t,.1)&&(t=0),Sv(r,.1)&&(r=0),r+=this._endPosition),this._solution&&Sv(r-e,.1)&&Sv(t,.1)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}},Ev.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Ev.prototype.done=function(e){return e||(e=(new Date).getTime()),xv(this.x(),this._endPosition,.1)&&Sv(this.dx(),.1)},Ev.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Ev.prototype.springConstant=function(){return this._k},Ev.prototype.damping=function(){return this._c},Ev.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Cv.prototype.setEnd=function(e,t,n,r){var i=(new Date).getTime();this._springX.setEnd(e,r,i),this._springY.setEnd(t,r,i),this._springScale.setEnd(n,r,i),this._startTime=i},Cv.prototype.x=function(){var e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Cv.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Cv.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};const Ov=wf({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,t){var{slots:n,emit:r}=t,i=Ta(null),a=Cf(i,r),{setParent:o}=function(e,t,n){var r,i,a=ho("_isMounted",Ta(!1)),o=ho("addMovableViewContext",(()=>{})),s=ho("removeMovableViewContext",(()=>{})),l=Ta(1),u=Ta(1),c=Ta(!1),d=Ta(0),h=Ta(0),f=null,p=null,v=!1,g=null,m=null,_=new kv,y=new kv,b={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=il((()=>{var t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Tv(1,w.value);vo((()=>e.disabled),(()=>{U()}));var{_updateOldScale:S,_endScale:k,_setScale:T,scaleValueSync:E,_updateBoundary:C,_updateOffset:M,_updateWH:O,_scaleOffset:I,minX:L,minY:A,maxX:N,maxY:B,FAandSFACancel:R,_getLimitXY:P,_setTransform:z,_revise:D,dampingNumber:F,xMove:$,yMove:j,xSync:W,ySync:V,_STD:H}=function(e,t,n,r,i,a,o,s,l,u){var c=il((()=>{var t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=il((()=>{var t=Number(e.scaleMax);return isNaN(t)?10:t})),h=Ta(Number(e.scaleValue)||1);vo(h,(e=>{z(e)})),vo(c,(()=>{P()})),vo(d,(()=>{P()})),vo((()=>e.scaleValue),(e=>{h.value=Number(e)||0}));var{_updateBoundary:f,_updateOffset:p,_updateWH:v,_scaleOffset:g,minX:m,minY:_,maxX:y,maxY:b}=function(e,t,n){var r=ho("movableAreaWidth",Ta(0)),i=ho("movableAreaHeight",Ta(0)),a=ho("movableAreaRootRef"),o={x:0,y:0},s={x:0,y:0},l=Ta(0),u=Ta(0),c=Ta(0),d=Ta(0),h=Ta(0),f=Ta(0);function p(){var e=0-o.x+s.x,t=r.value-l.value-o.x-s.x;c.value=Math.min(e,t),h.value=Math.max(e,t);var n=0-o.y+s.y,a=i.value-u.value-o.y-s.y;d.value=Math.min(n,a),f.value=Math.max(n,a)}function v(){o.x=Av(e.value,a.value),o.y=Nv(e.value,a.value)}function g(r){r=r||t.value,r=n(r);var i=e.value.getBoundingClientRect();u.value=i.height/t.value,l.value=i.width/t.value;var a=u.value*r,o=l.value*r;s.x=(o-l.value)/2,s.y=(a-u.value)/2}return{_updateBoundary:p,_updateOffset:v,_updateWH:g,_scaleOffset:s,minX:c,minY:d,maxX:h,maxY:f}}(t,r,R),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:k,_revise:T,dampingNumber:E,xMove:C,yMove:M,xSync:O,ySync:I,_STD:L}=function(e,t,n,r,i,a,o,s,l,u,c,d,h,f){var p=il((()=>{var e=Number(t.damping);return isNaN(e)?20:e})),v=il((()=>"all"===t.direction||"horizontal"===t.direction)),g=il((()=>"all"===t.direction||"vertical"===t.direction)),m=Ta(Rv(t.x)),_=Ta(Rv(t.y));vo((()=>t.x),(e=>{m.value=Rv(e)})),vo((()=>t.y),(e=>{_.value=Rv(e)})),vo(m,(e=>{T(e)})),vo(_,(e=>{E(e)}));var y=new Cv(1,9*Math.pow(p.value,2)/40,p.value);function b(e,t){var n=!1;return e>i.value?(e=i.value,n=!0):e<o.value&&(e=o.value,n=!0),t>a.value?(t=a.value,n=!0):t<s.value&&(t=s.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){d&&d.cancel(),c&&c.cancel()}function x(e,n,i,a,o,s){w(),v.value||(e=l.value),g.value||(n=u.value),t.scale||(i=r.value);var d=b(e,n);e=d.x,n=d.y,t.animation?(y._springX._solution=null,y._springY._solution=null,y._springScale._solution=null,y._springX._endPosition=l.value,y._springY._endPosition=u.value,y._springScale._endPosition=r.value,y.setEnd(e,n,i,1),c=Bv(y,(function(){var e=y.x();S(e.x,e.y,e.scale,a,o,s)}),(function(){c.cancel()}))):S(e,n,i,a,o,s)}function S(i,a,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",c=arguments.length>4?arguments[4]:void 0,d=arguments.length>5?arguments[5]:void 0;null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=l.value||0),null!==a&&"NaN"!==a.toString()&&"number"==typeof a||(a=u.value||0),i=Number(i.toFixed(1)),a=Number(a.toFixed(1)),o=Number(o.toFixed(1)),l.value===i&&u.value===a||c||f("change",{},{x:Mv(i,n.x),y:Mv(a,n.y),source:s}),t.scale||(o=r.value),o=+(o=h(o)).toFixed(3),d&&o!==r.value&&f("scale",{},{x:i,y:a,scale:o});var p="translateX("+i+"px) translateY("+a+"px) translateZ(0px) scale("+o+")";e.value&&(e.value.style.transform=p,e.value.style.webkitTransform=p,l.value=i,u.value=a,r.value=o)}function k(e){var t=b(l.value,u.value),n=t.x,i=t.y,a=t.outOfBounds;return a&&x(n,i,r.value,e),a}function T(e){if(v.value){if(e+n.x===l.value)return l;c&&c.cancel(),x(e+n.x,_.value+n.y,r.value)}return e}function E(e){if(g.value){if(e+n.y===u.value)return u;c&&c.cancel(),x(m.value+n.x,e+n.y,r.value)}return e}return{FAandSFACancel:w,_getLimitXY:b,_animationTo:x,_setTransform:S,_revise:k,dampingNumber:p,xMove:v,yMove:g,xSync:m,ySync:_,_STD:y}}(t,e,g,r,y,b,m,_,o,s,l,u,R,n);function A(t,n){if(e.scale){t=R(t),v(t),f();var r=x(o.value,s.value),i=r.x,a=r.y;n?S(i,a,t,"",!0,!0):Lv((function(){k(i,a,t,"",!0,!0)}))}}function N(){a.value=!0}function B(e){i.value=e}function R(e){return e=Math.max(.5,c.value,e),e=Math.min(10,d.value,e)}function P(){if(!e.scale)return!1;A(r.value,!0),B(r.value)}function z(t){return!!e.scale&&(A(t=R(t),!0),B(t),t)}function D(){a.value=!1,B(r.value)}function F(e){e&&(e=i.value*e,N(),A(e))}return{_updateOldScale:B,_endScale:D,_setScale:F,scaleValueSync:h,_updateBoundary:f,_updateOffset:p,_updateWH:v,_scaleOffset:g,minX:m,minY:_,maxX:y,maxY:b,FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:k,_revise:T,dampingNumber:E,xMove:C,yMove:M,xSync:O,ySync:I,_STD:L}}(e,n,t,l,u,c,d,h,f,p);function U(){c.value||e.disabled||(fv({disable:!0}),R(),b.historyX=[0,0],b.historyY=[0,0],b.historyT=[0,0],$.value&&(r=d.value),j.value&&(i=h.value),n.value.style.willChange="transform",g=null,m=null,v=!0)}function q(t){if(!c.value&&!e.disabled&&v){var n=d.value,a=h.value;if(null===m&&(m=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),$.value&&(n=t.detail.dx+r,b.historyX.shift(),b.historyX.push(n),j.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),j.value&&(a=t.detail.dy+i,b.historyY.shift(),b.historyY.push(a),$.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),b.historyT.shift(),b.historyT.push(t.detail.timeStamp),!g){t.preventDefault();var o="touch";n<L.value?e.outOfBounds?(o="touch-out-of-bounds",n=L.value-_.x(L.value-n)):n=L.value:n>N.value&&(e.outOfBounds?(o="touch-out-of-bounds",n=N.value+_.x(n-N.value)):n=N.value),a<A.value?e.outOfBounds?(o="touch-out-of-bounds",a=A.value-y.x(A.value-a)):a=A.value:a>B.value&&(e.outOfBounds?(o="touch-out-of-bounds",a=B.value+y.x(a-B.value)):a=B.value),Lv((function(){z(n,a,l.value,o)}))}}}function Y(){if(!c.value&&!e.disabled&&v&&(fv({disable:!1}),n.value.style.willChange="auto",v=!1,!g&&!D("out-of-bounds")&&e.inertia)){var t=1e3*(b.historyX[1]-b.historyX[0])/(b.historyT[1]-b.historyT[0]),r=1e3*(b.historyY[1]-b.historyY[0])/(b.historyT[1]-b.historyT[0]),i=d.value,a=h.value;x.setV(t,r),x.setS(i,a);var o=x.delta().x,s=x.delta().y,u=o+i,f=s+a;u<L.value?(u=L.value,f=a+(L.value-i)*s/o):u>N.value&&(u=N.value,f=a+(N.value-i)*s/o),f<A.value?(f=A.value,u=i+(A.value-a)*o/s):f>B.value&&(f=B.value,u=i+(B.value-a)*o/s),x.setEnd(u,f),p=Bv(x,(function(){var e=x.s(),t=e.x,n=e.y;z(t,n,l.value,"friction")}),(function(){p.cancel()}))}e.outOfBounds||e.inertia||R()}function X(){if(a.value){R();var t=e.scale?E.value:1;M(),O(t),C();var n=P(W.value+I.x,V.value+I.y),r=n.x,i=n.y;z(r,i,t,"",!0),S(t)}}return Oo((()=>{wv(n.value,(e=>{switch(e.detail.state){case"start":U();break;case"move":q(e);break;case"end":Y()}})),X(),x.reconfigure(1,w.value),H.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center",hv();var e={rootRef:n,setParent:X,_endScale:k,_setScale:T};o(e),No((()=>{s(e)}))})),No((()=>{R()})),{setParent:X}}(e,a,i);return()=>Ps("uni-movable-view",{ref:i},[Ps(zf,{onResize:o},null,8,["onResize"]),n.default&&n.default()],512)}});var Iv=!1;function Lv(e){Iv||(Iv=!0,requestAnimationFrame((function(){e(),Iv=!1})))}function Av(e,t){if(e===t)return 0;var n=e.offsetLeft;return e.offsetParent?n+=Av(e.offsetParent,t):0}function Nv(e,t){if(e===t)return 0;var n=e.offsetTop;return e.offsetParent?n+=Nv(e.offsetParent,t):0}function Bv(e,t,n){var r={id:0,cancelled:!1};return function e(t,n,r,i){if(!t||!t.cancelled){r(n);var a=n.done();a||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),a&&i&&i(n)}}(r,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,r),model:e}}function Rv(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}var Pv=["navigate","redirect","switchTab","reLaunch","navigateBack"],zv=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],Dv=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"];const Fv=wf({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~Pv.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||zv.concat(Dv).includes(e)},animationDuration:{type:[String,Number],default:300}},setup(e,t){var{slots:n}=t,r=Xs(),i=r&&r.vnode.scopeId||"",{hovering:a,binding:o}=kf(e),s=function(e){return()=>{if("navigateBack"===e.openType||e.url){var t=parseInt(e.animationDuration);switch(e.openType){case"navigate":uni.navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}else console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}(e);return()=>{var{hoverClass:t,url:l}=e,u=e.hoverClass&&"none"!==e.hoverClass;return Ps("a",{class:"navigator-wrap",href:l,onClick:Zl,onMousedown:Zl},[Ps("uni-navigator",Vs({class:u&&a.value?t:""},u&&o,r?r.attrs:{},{[i]:""},{onClick:s}),[n.default&&n.default()],16,["onClick"])],40,["href","onClick","onMousedown"])}}});const $v=wf({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return fn(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:n,emit:r}=t,i=Ta(null),a=Ta(null),o=Cf(i,r),s=function(e){var t=ca([...e.value]),n=ca({value:t,height:34});return vo((()=>e.value),((e,t)=>{(e===t||e.length!==t.length||e.findIndex(((e,n)=>e!==t[n]))>=0)&&(n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)})))})),n}(e),l=Ta(null),u=Ta([]),c=Ta([]);function d(e){var t=c.value;if(t instanceof HTMLCollection)return Array.prototype.indexOf.call(t,e.el);var n=(t=t.filter((e=>e.type!==Cs))).indexOf(e);return-1!==n?n:u.value.indexOf(e)}return co("getPickerViewColumn",(function(e){return il({get(){var t=d(e.vnode);return s.value[t]||0},set(t){var n=d(e.vnode);if(!(n<0)&&s.value[n]!==t){s.value[n]=t;var i=s.value.map((e=>e));r("update:value",i),o("change",{},{value:i})}}})})),co("pickerViewProps",e),co("pickerViewState",s),vv((()=>{var e;e=l.value,s.height=e.$el.offsetHeight,c.value=a.value.children})),()=>{var e=n.default&&n.default();return Ps("uni-picker-view",{ref:i},[Ps(zf,{ref:l,onResize:e=>{var{height:t}=e;return s.height=t}},null,8,["onResize"]),Ps("div",{ref:a,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class jv{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);var t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);var t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){var e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function Wv(e,t,n){return e>t-n&&e<t+n}function Vv(e,t){return Wv(e,0,t)}class Hv{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){var n=this._c,r=this._m,i=this._k,a=n*n-4*r*i;if(0===a){var o=-n/(2*r),s=e,l=t/(o*e);return{x:function(e){return(s+l*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+l*e)*t+l*t}}}if(a>0){var u=(-n-Math.sqrt(a))/(2*r),c=(-n+Math.sqrt(a))/(2*r),d=(t-u*e)/(c-u),h=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*u*t+d*c*n}}}var f=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=e,g=(t-p*e)/f;return{x:function(e){return Math.pow(Math.E,p*e)*(v*Math.cos(f*e)+g*Math.sin(f*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(f*e),r=Math.sin(f*e);return t*(g*f*n-v*f*r)+p*t*(g*r+v*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Vv(t,.4)){t=t||0;var r=this._endPosition;this._solution&&(Vv(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),Vv(t,.4)&&(t=0),Vv(r,.4)&&(r=0),r+=this._endPosition),this._solution&&Vv(r-e,.4)&&Vv(t,.4)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),Wv(this.x(),this._endPosition,.4)&&Vv(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class Uv{constructor(e,t,n){this._extent=e,this._friction=t||new jv(.01),this._spring=n||new Hv(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){var t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class qv{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new Uv(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){var n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}var r,i,a;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var o=this._scroll._friction.x(100),s=o%this._itemSize;(r=Math.abs(s)>this._itemSize/2?o-(this._itemSize-Math.abs(s)):o-s)<=0&&r>=-this._extent&&this._scroll.setVelocityByEnd(r)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=(i=this._scroll,function e(t,n,r,i){if(!t||!t.cancelled){r(n);var a=n.done();a||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),a&&i&&i(n)}}(a={id:0,cancelled:!1},i,(()=>{var e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();var r=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/r),this._lastTime=e)}),(()=>{this._enableSnap&&(r<=0&&r>=-this._extent&&(this._position=r,this.updatePosition()),vn(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,a),model:i})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),vn(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(vn(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){var r=0,i=this._position;this._enableX?(r=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(r=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-r?this._position=-r:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),vn(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=r,this._scroll._extent=r}updatePosition(){var e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}var Yv=0;const Xv=wf({name:"PickerViewColumn",setup(e,t){var n,r,{slots:i,emit:a}=t,o=Ta(null),s=Ta(null),l=ho("getPickerViewColumn"),u=Xs(),c=l?l(u):Ta(0),d=ho("pickerViewProps"),h=ho("pickerViewState"),f=Ta(34),p=Ta(null),v=il((()=>(h.height-f.value)/2)),{state:g}=Zp(),m=function(e){var t="uni-picker-view-content-".concat(Yv++);return vo((()=>e.value),(function(){var n=document.createElement("style");n.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(n)})),t}(f),_=ca({current:c.value,length:0});function y(){n&&!r&&(r=!0,Ua((()=>{r=!1;var e=Math.min(_.current,_.length-1);e=Math.max(e,0),n.update(e*f.value,void 0,f.value)})))}vo((()=>c.value),(e=>{e!==_.current&&(_.current=e,y())})),vo((()=>_.current),(e=>c.value=e)),vo([()=>f.value,()=>_.length,()=>h.height],y);var b=0;function w(e){var t=b+e.deltaY;if(Math.abs(t)>10){b=0;var r=Math.min(_.current+(t<0?-1:1),_.length-1);_.current=r=Math.max(r,0),n.scrollTo(r*f.value)}else b=t;e.preventDefault()}function x(e){var{clientY:t}=e,r=o.value;if(!n.isScrolling()){var i=t-r.getBoundingClientRect().top-h.height/2,a=f.value/2;if(!(Math.abs(i)<=a)){var s=Math.ceil((Math.abs(i)-a)/f.value),l=i<0?-s:s,u=Math.min(_.current+l,_.length-1);_.current=u=Math.max(u,0),n.scrollTo(u*f.value)}}}var S=()=>{var e,t,r,i=o.value,a=s.value,{scroller:l,handleTouchStart:u,handleTouchMove:c,handleTouchEnd:d}=function(e,t){var n={trackingID:-1,maxDy:0,maxDx:0},r=new qv(e,t);function i(e){var t=e,r=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:r.screenX-n.x,y:r.screenY-n.y}}return{scroller:r,handleTouchStart:function(e){var t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=r,r.onTouchStart&&r.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){var t=e,r=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();var a=i(e);if(a){for(n.maxDy=Math.max(n.maxDy,Math.abs(a.y)),n.maxDx=Math.max(n.maxDx,Math.abs(a.x)),n.historyX.push(a.x),n.historyY.push(a.y),n.historyTime.push(t.detail.timeStamp||r.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(a.x,a.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();var t=i(e);if(t){var r=n.listener;n.trackingID=-1,n.listener=null;var a={x:0,y:0};if(n.historyTime.length>2)for(var o=n.historyTime.length-1,s=n.historyTime[o],l=n.historyX[o],u=n.historyY[o];o>0;){o--;var c=s-n.historyTime[o];if(c>30&&c<50){a.x=(l-n.historyX[o])/(c/1e3),a.y=(u-n.historyY[o])/(c/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],r&&r.onTouchEnd&&r.onTouchEnd(t.x,t.y,a)}}}}}(a,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:f.value,friction:new jv(1e-4),spring:new Hv(2,90,20),onSnap:e=>{isNaN(e)||e===_.current||(_.current=e)}});n=l,wv(i,(e=>{switch(e.detail.state){case"start":u(e),fv({disable:!0});break;case"move":c(e),e.stopPropagation();break;case"end":case"cancel":d(e),fv({disable:!1})}}),!0),t=0,r=0,(e=i).addEventListener("touchstart",(e=>{var n=e.changedTouches[0];t=n.clientX,r=n.clientY})),e.addEventListener("touchend",(e=>{var n=e.changedTouches[0];if(Math.abs(n.clientX-t)<20&&Math.abs(n.clientY-r)<20){var i={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},a=new CustomEvent("click",i);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{a[e]=n[e]})),e.target.dispatchEvent(a)}})),hv(),y()},k=!1;return vv((()=>{var e;_.length=s.value.children.length,k||(k=!0,e=p.value,f.value=e.$el.offsetHeight,S())})),()=>{var e=i.default&&i.default(),t="".concat(v.value,"px 0");return Ps("uni-picker-view-column",{ref:o},[Ps("div",{onWheel:w,onClick:x,class:"uni-picker-view-group"},[Ps("div",Vs(g.attrs,{class:["uni-picker-view-mask",d.maskClass],style:"background-size: 100% ".concat(v.value,"px;").concat(d.maskStyle)}),null,16),Ps("div",Vs(g.attrs,{class:["uni-picker-view-indicator",d.indicatorClass],style:d.indicatorStyle}),[Ps(zf,{ref:p,onResize:e=>{var{height:t}=e;return f.value=t}},null,8,["onResize"])],16),Ps("div",{ref:s,class:["uni-picker-view-content",m],style:{padding:t}},[e],6)],40,["onWheel","onClick"])],512)}}});var Zv=Vn,Gv="backwards";const Kv=wf({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:Zv},activeColor:{type:String,default:Zv},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Gv},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){var t=function(e){var t=Ta(0),n=il((()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;"))),r=il((()=>{var n=e.color!==Zv&&e.activeColor===Zv?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(n)})),i=il((()=>{var t=parseFloat(e.percent);return t<0&&(t=0),t>100&&(t=100),t})),a=ca({outerBarStyle:n,innerBarStyle:r,realPercent:i,currentPercent:t,strokeTimer:0,lastPercent:0});return a}(e);return Jv(t,e),vo((()=>t.realPercent),((n,r)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=r||0,Jv(t,e)})),()=>{var{showInfo:n}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:a}=t;return Ps("uni-progress",{class:"uni-progress"},[Ps("div",{style:r,class:"uni-progress-bar"},[Ps("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),n?Ps("p",{class:"uni-progress-info"},[a+"%"]):""])}}});function Jv(e,t){t.active?(e.currentPercent=t.activeMode===Gv?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}var Qv=Jl("ucg");const eg=wf({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,t){var{emit:n,slots:r}=t,i=Ta(null);return function(e,t){var n=[];Oo((()=>{s(n.length-1)}));var r=()=>{var e;return null===(e=n.find((e=>e.value.radioChecked)))||void 0===e?void 0:e.value.value};co(Qv,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,i){s(n.indexOf(i),!0),t("change",e,{value:r()})}});var i=ho(Mf,!1),a={submit:()=>{var t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=r()),t}};i&&(i.addField(a),Ao((()=>{i.removeField(a)})));function o(e,t){e.value={radioChecked:t,value:e.value.value}}function s(e,t){n.forEach(((r,i)=>{i!==e&&(t?o(n[i],!1):n.forEach(((e,t)=>{i>=t||n[t].value.radioChecked&&o(n[i],!1)})))}))}}(e,Cf(i,n)),()=>Ps("uni-radio-group",{ref:i},[r.default&&r.default()],512)}});const tg=wf({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,t){var{slots:n}=t,r=Ta(e.checked),i=Ta(e.value),a=il((()=>e.disabled?"background-color: #E1E1E1;border-color: ##D1D1D1;":"background-color: ".concat(e.color,";border-color: ").concat(e.color,";")));vo([()=>e.checked,()=>e.value],(e=>{var[t,n]=e;r.value=t,i.value=n}));var{uniCheckGroup:o,uniLabel:s,field:l}=function(e,t,n){var r=il({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:t=>{var{radioChecked:n}=t;e.value=n}}),i={reset:n},a=ho(Qv,!1);a&&a.addField(r);var o=ho(Mf,!1);o&&o.addField(i);var s=ho(Lf,!1);return Ao((()=>{a&&a.removeField(r),o&&o.removeField(i)})),{uniCheckGroup:a,uniForm:o,uniLabel:s,field:r}}(r,i,(()=>{r.value=!1})),u=t=>{e.disabled||(r.value=!0,o&&o.radioChange(t,l),t.stopPropagation())};return s&&(s.addHandler(u),Ao((()=>{s.removeHandler(u)}))),Nf(e,{"label-click":u}),()=>{var t=Tf(e,"disabled");return Ps("uni-radio",Vs(t,{onClick:u}),[Ps("div",{class:"uni-radio-wrapper"},[Ps("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:r.value?a.value:""},[r.value?iu(ru,e.disabled?"#ADADAD":"#fff",18):""],6),n.default&&n.default()])],16,["onClick"])}}});var ng={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},rg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};var ig=(e,t,n)=>!n||fn(n)&&!n.length?[]:n.map((n=>{if(xn(n)){if(!hn(n,"type")||"node"===n.type){var r={[e]:""},i=n.name.toLowerCase();if(!hn(ng,i))return;return function(e,t){if(xn(t))for(var n in t)if(hn(t,n)){var r=t[n];"img"===e&&"src"===n&&(t[n]=Fu(r))}}(i,n.attrs),r=un(r,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),al(n.name,r,ig(e,t,n.children))}return"text"===n.type&&gn(n.text)&&""!==n.text?Fs((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return hn(rg,t)&&rg[t]?rg[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e}))):void 0}}));function ag(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(e);var t=[],n={node:"root",children:[]};return mp(e,{start:function(e,r,i){var a={name:e};if(0!==r.length&&(a.attrs=function(e){return e.reduce((function(e,t){var n=t.value,r=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(r)&&(n=n.split(" ")),e[r]?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n,e}),{})}(r)),i){var o=t[0]||n;o.children||(o.children=[]),o.children.push(a)}else t.unshift(a)},end:function(e){var r=t.shift();if(r.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(r);else{var i=t[0];i.children||(i.children=[]),i.children.push(r)}},chars:function(e){var r={type:"text",text:e};if(0===t.length)n.children.push(r);else{var i=t[0];i.children||(i.children=[]),i.children.push(r)}},comment:function(e){var n={node:"comment",text:e},r=t[0];r.children||(r.children=[]),r.children.push(n)}}),n.children}const og=wf({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["click","touchstart","touchmove","touchcancel","touchend","longpress","itemclick"],setup(e,t){var{emit:n}=t,r=Xs(),i=r&&r.vnode.scopeId||"",a=Ta(null),o=Ta([]),s=Cf(a,n);function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s("itemclick",e,t)}return vo((()=>e.nodes),(function(){var t=e.nodes;gn(t)&&(t=ag(e.nodes)),o.value=ig(i,l,t)}),{immediate:!0}),()=>al("uni-rich-text",{ref:a},al("div",{},o.value))}});var sg=ir(!0);const lg=wf({name:"ScrollView",compatConfig:{MODE:3},props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:n,slots:r}=t,i=Ta(null),a=Ta(null),o=Ta(null),s=Ta(null),l=Ta(null),u=Cf(i,n),{state:c,scrollTopNumber:d,scrollLeftNumber:h}=function(e){var t=il((()=>Number(e.scrollTop)||0)),n=il((()=>Number(e.scrollLeft)||0)),r=ca({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:r,scrollTopNumber:t,scrollLeftNumber:n}}(e);!function(e,t,n,r,i,a,o,s,l){var u=!1,c=0,d=!1,h=()=>{},f=il((()=>{var t=Number(e.upperThreshold);return isNaN(t)?50:t})),p=il((()=>{var t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function v(e,t){var n=o.value,r=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?r=n.scrollLeft-e:"y"===t&&(r=n.scrollTop-e),0!==r){var a=s.value;a.style.transition="transform .3s ease-out",a.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+r+"px) translateZ(0)":"y"===t&&(i="translateY("+r+"px) translateZ(0)"),a.removeEventListener("transitionend",h),a.removeEventListener("webkitTransitionEnd",h),h=()=>b(e,t),a.addEventListener("transitionend",h),a.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),a.style.transform=i,a.style.webkitTransform=i}}function g(n){var r=n.target;i("scroll",n,{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,scrollWidth:r.scrollWidth,deltaX:t.lastScrollLeft-r.scrollLeft,deltaY:t.lastScrollTop-r.scrollTop}),e.scrollY&&(r.scrollTop<=f.value&&t.lastScrollTop-r.scrollTop>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",n,{direction:"top"}),t.lastScrollToUpperTime=n.timeStamp),r.scrollTop+r.offsetHeight+p.value>=r.scrollHeight&&t.lastScrollTop-r.scrollTop<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",n,{direction:"bottom"}),t.lastScrollToLowerTime=n.timeStamp)),e.scrollX&&(r.scrollLeft<=f.value&&t.lastScrollLeft-r.scrollLeft>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",n,{direction:"left"}),t.lastScrollToUpperTime=n.timeStamp),r.scrollLeft+r.offsetWidth+p.value>=r.scrollWidth&&t.lastScrollLeft-r.scrollLeft<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",n,{direction:"right"}),t.lastScrollToLowerTime=n.timeStamp)),t.lastScrollTop=r.scrollTop,t.lastScrollLeft=r.scrollLeft}function m(t){e.scrollY&&(e.scrollWithAnimation?v(t,"y"):o.value.scrollTop=t)}function _(t){e.scrollX&&(e.scrollWithAnimation?v(t,"x"):o.value.scrollLeft=t)}function y(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error("id error: scroll-into-view=".concat(t));var n=a.value.querySelector("#"+t);if(n){var r=o.value.getBoundingClientRect(),i=n.getBoundingClientRect();if(e.scrollX){var s=i.left-r.left,l=o.value.scrollLeft+s;e.scrollWithAnimation?v(l,"x"):o.value.scrollLeft=l}if(e.scrollY){var u=i.top-r.top,c=o.value.scrollTop+u;e.scrollWithAnimation?v(c,"y"):o.value.scrollTop=c}}}}function b(t,n){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var r=o.value;"x"===n?(r.style.overflowX=e.scrollX?"auto":"hidden",r.scrollLeft=t):"y"===n&&(r.style.overflowY=e.scrollY?"auto":"hidden",r.scrollTop=t),s.value.removeEventListener("transitionend",h),s.value.removeEventListener("webkitTransitionEnd",h)}function w(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,i("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=c=0,"restore"===n&&(d=!1,i("refresherrestore",{},{})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{}))}t.refreshState=n}}Oo((()=>{Ua((()=>{m(n.value),_(r.value)})),y(e.scrollIntoView);var a=function(e){e.preventDefault(),e.stopPropagation(),g(e)},s={x:0,y:0},l=null,h=function(n){if(null!==s){var r=n.touches[0].pageX,a=n.touches[0].pageY,h=o.value;if(Math.abs(r-s.x)>Math.abs(a-s.y))if(e.scrollX){if(0===h.scrollLeft&&r>s.x)return void(l=!1);if(h.scrollWidth===h.offsetWidth+h.scrollLeft&&r<s.x)return void(l=!1);l=!0}else l=!1;else if(e.scrollY)if(0===h.scrollTop&&a>s.y)l=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(h.scrollHeight===h.offsetHeight+h.scrollTop&&a<s.y)return void(l=!1);l=!0}else l=!1;if(l&&n.stopPropagation(),0===h.scrollTop&&1===n.touches.length&&w("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){var f=a-s.y;0===c&&(c=a),u?(t.refresherHeight=f+e.refresherThreshold,d=!1):(t.refresherHeight=a-c,t.refresherHeight>0&&(d=!0,i("refresherpulling",n,{deltaY:f})));var p=t.refresherHeight/e.refresherThreshold;t.refreshRotate=360*(p>1?1:p)}}},f=function(e){1===e.touches.length&&(fv({disable:!0}),s={x:e.touches[0].pageX,y:e.touches[0].pageY})},p=function(n){s=null,fv({disable:!1}),t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort")};o.value.addEventListener("touchstart",f,sg),o.value.addEventListener("touchmove",h,ir(!1)),o.value.addEventListener("scroll",a,ir(!1)),o.value.addEventListener("touchend",p,sg),hv(),Ao((()=>{o.value.removeEventListener("touchstart",f),o.value.removeEventListener("touchmove",h),o.value.removeEventListener("scroll",a),o.value.removeEventListener("touchend",p)}))})),xo((()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)})),vo(n,(e=>{m(e)})),vo(r,(e=>{_(e)})),vo((()=>e.scrollIntoView),(e=>{y(e)})),vo((()=>e.refresherTriggered),(e=>{!0===e?w("refreshing"):!1===e&&w("restore")}))}(e,c,d,h,u,i,a,s,n);var f=il((()=>{var t="";return e.scrollX?t+="overflow-x:auto;":t+="overflow-x:hidden;",e.scrollY?t+="overflow-y:auto;":t+="overflow-y:hidden;",t}));return()=>{var{refresherEnabled:t,refresherBackground:n,refresherDefaultStyle:u}=e,{refresherHeight:d,refreshState:h,refreshRotate:p}=c;return Ps("uni-scroll-view",{ref:i},[Ps("div",{ref:o,class:"uni-scroll-view"},[Ps("div",{ref:a,style:f.value,class:"uni-scroll-view"},[Ps("div",{ref:s,class:"uni-scroll-view-content"},[t?Ps("div",{ref:l,style:{backgroundColor:n,height:d+"px"},class:"uni-scroll-view-refresher"},["none"!==u?Ps("div",{class:"uni-scroll-view-refresh"},[Ps("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==h?Ps("svg",{key:"refresh__icon",style:{transform:"rotate("+p+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Ps("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),Ps("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==h?Ps("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Ps("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"==u?r.refresher&&r.refresher():null],4):null,r.default&&r.default()],512)],4)],512)],512)}}});const ug=wf({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,t){var{emit:n}=t,r=Ta(null),i=Ta(null),a=Ta(null),o=Ta(Number(e.value));vo((()=>e.value),(e=>{o.value=Number(e)}));var s=Cf(r,n),l=function(e,t){var n=()=>{var n=Number(e.max),r=Number(e.min);return 100*(t.value-r)/(n-r)+"%"},r=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",i=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9",a={setBgColor:il((()=>({backgroundColor:r()}))),setBlockBg:il((()=>({left:n()}))),setActiveColor:il((()=>({backgroundColor:i(),width:n()}))),setBlockStyle:il((()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor})))};return a}(e,o),{_onClick:u,_onTrack:c}=function(e,t,n,r,i){var a=n=>{e.disabled||(s(n),i("change",n,{value:t.value}))},o=t=>{var n=Number(e.max),r=Number(e.min),i=Number(e.step);return t<r?r:t>n?n:cg.mul.call(Math.round((t-r)/i),i)+r},s=i=>{var a=Number(e.max),s=Number(e.min),l=r.value,u=getComputedStyle(l,null).marginLeft,c=l.offsetWidth;c+=parseInt(u);var d=n.value,h=d.offsetWidth-(e.showValue?c:0),f=d.getBoundingClientRect().left,p=(i.x-f)*(a-s)/h+s;t.value=o(p)},l=n=>{if(!e.disabled)return"move"===n.detail.state?(s({x:n.detail.x}),i("changing",n,{value:t.value}),!1):"end"===n.detail.state&&i("change",n,{value:t.value})},u=ho(Mf,!1);if(u){var c={reset:()=>t.value=Number(e.min),submit:()=>{var n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};u.addField(c),Ao((()=>{u.removeField(c)}))}return{_onClick:a,_onTrack:l}}(e,o,r,i,s);return Oo((()=>{wv(a.value,c)})),()=>{var{setBgColor:t,setBlockBg:n,setActiveColor:s,setBlockStyle:c}=l;return Ps("uni-slider",{ref:r,onClick:Ef(u)},[Ps("div",{class:"uni-slider-wrapper"},[Ps("div",{class:"uni-slider-tap-area"},[Ps("div",{style:t.value,class:"uni-slider-handle-wrapper"},[Ps("div",{ref:a,style:n.value,class:"uni-slider-handle"},null,4),Ps("div",{style:c.value,class:"uni-slider-thumb"},null,4),Ps("div",{style:s.value,class:"uni-slider-track"},null,4)],4)]),Do(Ps("span",{ref:i,class:"uni-slider-value"},[o.value],512),[[Al,e.showValue]])]),Ps("slot",null,null)],8,["onClick"])}}});var cg={mul:function(e){var t=0,n=this.toString(),r=e.toString();try{t+=n.split(".")[1].length}catch(i){}try{t+=r.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,t)}};function dg(e,t,n,r,i,a){function o(){u&&(clearTimeout(u),u=null)}var s,l,u=null,c=!0,d=0,h=1,f=null,p=!1,v=0,g="",m=il((()=>n.value.length>t.displayMultipleItems)),_=il((()=>e.circular&&m.value));function y(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||_.value&&function(r){if(!c)for(var i=n.value,a=i.length,o=r+t.displayMultipleItems,s=0;s<a;s++){var l=i[s],u=Math.floor(r/a)*a+s,d=u+a,h=u-a,f=Math.max(r-(u+1),u-o,0),p=Math.max(r-(d+1),d-o,0),v=Math.max(r-(h+1),h-o,0),g=Math.min(f,p,v),m=[u,d,h][[f,p,v].indexOf(g)];l.updatePosition(m,e.vertical)}}(i);var o="translate("+(e.vertical?"0":100*-i*h+"%")+", "+(e.vertical?100*-i*h+"%":"0")+") translateZ(0)",l=r.value;if(l&&(l.style.webkitTransform=o,l.style.transform=o),d=i,!s){if(i%1==0)return;s=i}i-=Math.floor(s);var u=n.value;i<=-(u.length-1)?i+=u.length:i>=u.length&&(i-=u.length),i=s%1>.5||s<0?i-1:i,a("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function b(e){var r=n.value.length;if(!r)return-1;var i=(Math.round(e)%r+r)%r;if(_.value){if(r<=t.displayMultipleItems)return 0}else if(i>r-t.displayMultipleItems)return r-t.displayMultipleItems;return i}function w(){f=null}function x(){if(f){var e=f,r=e.toPos,i=e.acc,o=e.endTime,u=e.source,c=o-Date.now();if(c<=0){y(r),f=null,p=!1,s=null;var d=n.value[t.current];if(d){var h=d.getItemId();a("animationfinish",{},{current:t.current,currentItemId:h,source:u})}}else{y(r+i*c*c/2),l=requestAnimationFrame(x)}}else p=!1}function S(e,r,i){w();var a=t.duration,o=n.value.length,s=d;if(_.value)if(i<0){for(;s<e;)s+=o;for(;s-o>e;)s-=o}else if(i>0){for(;s>e;)s-=o;for(;s+o<e;)s+=o;s+o-e<e-s&&(s+=o)}else{for(;s+o<e;)s+=o;for(;s-o>e;)s-=o;s+o-e<e-s&&(s+=o)}else"click"===r&&(e=e+t.displayMultipleItems-1<o?e:0);f={toPos:e,acc:2*(s-e)/(a*a),endTime:Date.now()+a,source:r},p||(p=!0,l=requestAnimationFrame(x))}function k(){o();var e=n.value,r=function(){u=null,g="autoplay",_.value?t.current=b(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,S(t.current,"autoplay",_.value?1:0),u=setTimeout(r,t.interval)};c||e.length<=t.displayMultipleItems||(u=setTimeout(r,t.interval))}function T(e){e?k():o()}return vo([()=>e.current,()=>e.currentItemId,()=>[...n.value]],(()=>{var r=-1;if(e.currentItemId)for(var i=0,a=n.value;i<a.length;i++){if(a[i].getItemId()===e.currentItemId){r=i;break}}r<0&&(r=Math.round(e.current)||0),r=r<0?0:r,t.current!==r&&(g="",t.current=r)})),vo([()=>e.vertical,()=>_.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){o(),f&&(y(f.toPos),f=null);for(var i=n.value,a=0;a<i.length;a++)i[a].updatePosition(a,e.vertical);h=1;var s=r.value;if(1===t.displayMultipleItems&&i.length){var l=i[0].getBoundingClientRect(),u=s.getBoundingClientRect();(h=l.width/u.width)>0&&h<1||(h=1)}var p=d;d=-2;var g=t.current;g>=0?(c=!1,t.userTracking?(y(p+g-v),v=g):(y(g),e.autoplay&&k())):(c=!0,y(-t.displayMultipleItems-1))})),vo((()=>t.interval),(()=>{u&&(o(),k())})),vo((()=>t.current),((e,r)=>{!function(e,r){var i=g;g="";var o=n.value;if(!i){var s=o.length;S(e,"",_.value&&r+(s-e)%s>s/2?1:0)}var l=o[e];if(l){var u=t.currentItemId=l.getItemId();a("change",{},{current:t.current,currentItemId:u,source:i})}}(e,r),i("update:current",e)})),vo((()=>t.currentItemId),(e=>{i("update:currentItemId",e)})),vo((()=>e.autoplay&&!t.userTracking),T),T(e.autoplay&&!t.userTracking),Oo((()=>{var i=!1,a=0,s=0;function l(e){t.userTracking=!1;var n=a/Math.abs(a),r=0;!e&&Math.abs(a)>.2&&(r=.5*n);var i=b(d+r);e?y(v):(g="touch",t.current=i,S(i,"touch",0!==r?r:0===i&&_.value&&d>=1?1:0))}wv(r.value,(u=>{if(!e.disableTouch&&!c){if("start"===u.detail.state)return t.userTracking=!0,i=!1,o(),v=d,a=0,s=Date.now(),void w();if("end"===u.detail.state)return l(!1);if("cancel"===u.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;var h=Math.abs(u.detail.dx),f=Math.abs(u.detail.dy);if((h>=f&&e.vertical||h<=f&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&k())}return function(i){var o=s;s=Date.now();var l=n.value.length-t.displayMultipleItems;function u(e){return.5-.25/(e+.5)}function c(e,t){var n=v+e;a=.6*a+.4*t,_.value||(n<0||n>l)&&(n<0?n=-u(-n):n>l&&(n=l+u(n-l)),a=0),y(n)}var d=s-o||1,h=r.value;e.vertical?c(-i.dy/h.offsetHeight,-i.ddy/d):c(-i.dx/h.offsetWidth,-i.ddx/d)}(u.detail),!1}}}))})),No((()=>{o(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",_.value?1:0)},circularEnabled:_,swiperEnabled:m}}const hg=wf({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:n,emit:r}=t,i=Ta(null),a=Cf(i,r),o=Ta(null),s=Ta(null),l=function(e){return ca({interval:il((()=>{var t=Number(e.interval);return isNaN(t)?5e3:t})),duration:il((()=>{var t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:il((()=>{var t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),u=il((()=>{var t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:eu(e.previousMargin,!0),bottom:eu(e.nextMargin,!0)}:{top:0,bottom:0,left:eu(e.previousMargin,!0),right:eu(e.nextMargin,!0)}),t})),c=il((()=>{var t=Math.abs(100/l.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}})),d=[],h=[],f=Ta([]);function p(){for(var e=[],t=function(){var t=d[n];t instanceof Element||(t=t.el);var r=h.find((e=>t===e.rootRef.value));r&&e.push(ya(r))},n=0;n<d.length;n++)t();f.value=e}vv((()=>{d=s.value.children,p()}));co("addSwiperContext",(function(e){h.push(e),p()}));co("removeSwiperContext",(function(e){var t=h.indexOf(e);t>=0&&(h.splice(t,1),p())}));var{onSwiperDotClick:v,circularEnabled:g,swiperEnabled:m}=dg(e,l,f,s,r,a);return()=>{var t=n.default&&n.default();return d=pv(t),Ps("uni-swiper",{ref:i},[Ps("div",{ref:o,class:"uni-swiper-wrapper"},[Ps("div",{class:"uni-swiper-slides",style:u.value},[Ps("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[t],4)],4),e.indicatorDots&&Ps("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,r)=>Ps("div",{onClick:()=>v(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<l.current+l.displayMultipleItems&&n>=l.current||n<l.current+l.displayMultipleItems-r.length},style:{background:n===l.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"])))],2),null],512)],512)}}});const fg=wf({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,t){var{slots:n}=t,r=Ta(null),i={rootRef:r,getItemId:()=>e.itemId,getBoundingClientRect:()=>r.value.getBoundingClientRect(),updatePosition(e,t){var n=t?"0":100*e+"%",i=t?100*e+"%":"0",a=r.value,o="translate(".concat(n,",").concat(i,") translateZ(0)");a&&(a.style.webkitTransform=o,a.style.transform=o)}};return Oo((()=>{var e=ho("addSwiperContext");e&&e(i)})),No((()=>{var e=ho("removeSwiperContext");e&&e(i)})),()=>Ps("uni-swiper-item",{ref:r,style:{position:"absolute",width:"100%",height:"100%"}},[n.default&&n.default()],512)}});const pg=wf({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,t){var{emit:n}=t,r=Ta(null),i=Ta(e.checked),a=function(e,t){var n=ho(Mf,!1),r=ho(Lf,!1),i={submit:()=>{var n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(i),No((()=>{n.removeField(i)})));return r}(e,i),o=Cf(r,n);vo((()=>e.checked),(e=>{i.value=e}));var s=t=>{e.disabled||(i.value=!i.value,o("change",t,{value:i.value}))};return a&&(a.addHandler(s),Ao((()=>{a.removeHandler(s)}))),Nf(e,{"label-click":s}),()=>{var{color:t,type:n}=e,a=Tf(e,"disabled"),o={};return t&&i.value&&(o.backgroundColor=t,o.borderColor=t),Ps("uni-switch",Vs({ref:r},a,{onClick:s}),[Ps("div",{class:"uni-switch-wrapper"},[Do(Ps("div",{class:["uni-switch-input",[i.value?"uni-switch-input-checked":""]],style:o},null,6),[[Al,"switch"===n]]),Do(Ps("div",{class:"uni-checkbox-input"},[i.value?iu(ru,e.color,22):""],512),[[Al,"checkbox"===n]])])],16,["onClick"])}}});var vg={ensp:" ",emsp:" ",nbsp:" "};function gg(e,t){return e.replace(/\\n/g,Wn).split(Wn).map((e=>function(e,t){var{space:n,decode:r}=t;if(!e)return e;n&&vg[n]&&(e=e.replace(/ /g,vg[n]));if(!r)return e;return e.replace(/&nbsp;/g,vg.nbsp).replace(/&ensp;/g,vg.ensp).replace(/&emsp;/g,vg.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")}(e,t)))}var mg=un({},Qp,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>yg.concat("return").includes(e)}}),_g=!1,yg=["done","go","next","search","send"];const bg=wf({name:"Textarea",props:mg,emits:["confirm","linechange",...ev],setup(e,t){var n,{emit:r}=t,i=Ta(null),a=Ta(null),{fieldRef:o,state:s,scopedAttrsState:l,fixDisabledColor:u,trigger:c}=rv(e,i,r),d=il((()=>s.value.split(Wn))),h=il((()=>yg.includes(e.confirmType))),f=Ta(0),p=Ta(null);function v(e){var{height:t}=e;f.value=t}function g(e){"Enter"===e.key&&h.value&&e.preventDefault()}function m(t){if("Enter"===t.key&&h.value){!function(e){c("confirm",e,{value:s.value})}(t);var n=t.target;!e.confirmHold&&n.blur()}}return vo((()=>f.value),(t=>{var n=i.value,r=p.value,o=a.value,s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=r.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(n.style.height="auto",o.style.height=t+"px")})),n="(prefers-color-scheme: dark)",_g=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(n).media!==n,()=>{var t=e.disabled&&u?Ps("textarea",{key:"disabled-textarea",ref:o,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":_g},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Ps("textarea",{key:"textarea",ref:o,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":_g},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:g,onKeyup:m},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return Ps("uni-textarea",{ref:i},[Ps("div",{ref:a,class:"uni-textarea-wrapper"},[Do(Ps("div",Vs(l.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Al,!s.value.length]]),Ps("div",{ref:p,class:"uni-textarea-line"},[" "],512),Ps("div",{class:"uni-textarea-compute"},[d.value.map((e=>Ps("div",null,[e.trim()?e:"."]))),Ps(zf,{initial:!0,onResize:v},null,8,["initial","onResize"])]),"search"===e.confirmType?Ps("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}});function wg(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function xg(e,t,n){e&&Ur(n||ou(),e,((e,n)=>{var{type:r,data:i}=e;t(r,i,n)}))}function Sg(e,t){e&&function(e,t){t=Hr(e,t),delete Vr[t]}(t||ou(),e)}function kg(e,t,n,r){var i=Xs().proxy;Oo((()=>{xg(t||wg(i),e,r),!n&&t||vo((()=>i.id),((t,n)=>{xg(wg(i,t),e,r),Sg(n&&wg(i,n))}))})),Ao((()=>{Sg(t||wg(i),r)}))}un({},Sf);var Tg=0;function Eg(e){var t=au(),n=Xs().proxy,r=n.$options.name.toLowerCase(),i=e||n.id||"context".concat(Tg++);return Oo((()=>{n.$el.__uniContextInfo={id:i,type:r,page:t}})),"".concat(r,".").concat(i)}class Cg extends mf{constructor(e,t,n,r,i){super(e,t,n,r,i,[...bf.props,...arguments.length>5&&void 0!==arguments[5]?arguments[5]:[]])}call(e){var t={animation:this.$props.animation,$el:this.$};e.call(t)}setAttribute(e,t){return"animation"===e&&(this.$animate=!0),super.setAttribute(e,t)}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$animate)return e?this.call(bf.mounted):void(this.$animate&&(this.$animate=!1,this.call(bf.watch.animation.handler)))}}var Mg=["space","decode"];var Og=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class Ig extends Cg{constructor(e,t,n,r,i){super(e,t,n,r,i,[...Og,...arguments.length>5&&void 0!==arguments[5]?arguments[5]:[]])}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$props["hover-class"];t&&"none"!==t?(this._hover||(this._hover=new Lg(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(e)}}class Lg{constructor(e,t){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=e,this.props=t,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(e){this._hovering=e;var t=this.props["hover-class"].split(" ").filter(Boolean),n=this.$.classList;e?this.$.classList.add.apply(n,t):this.$.classList.remove.apply(n,t)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){this._listening&&(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(e){if(!e._hoverPropagationStopped){var t=this.props["hover-class"];t&&"none"!==t&&!this.$.disabled&&(e.touches.length>1||(this.props["hover-stop-propagation"]&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()}),this.props["hover-start-time"])))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame((()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout((()=>{this.hovering=!1}),this.props["hover-stay-time"])}))}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}function Ag(){return plus.navigator.isImmersedStatusbar()?Math.round("iOS"===plus.os.name?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function Ng(){var e=plus.webview.currentWebview().getStyle(),t=e&&e.titleNView;return t&&"default"===t.type?44+Ag():0}var Bg=Symbol("onDraw");function Rg(e,t){return il((()=>{var n={};return Object.keys(e).forEach((r=>{if(!t||!t.includes(r)){var i=e[r];i="src"===r?Fu(i):i,n[r.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))]=i}})),n}))}function Pg(e){var t=ca({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),n=Ta(!1);function r(){var r=e.value,i=r.getBoundingClientRect(),a=["width","height"];n.value=0===i.width||0===i.height,n.value||(t.position=function(e){for(var t;e;){var n=getComputedStyle(e),r=n.transform||n.webkitTransform;t=(!r||"none"===r)&&t,t="fixed"===n.position||t,e=e.parentElement}return t}(r)?"absolute":"static",a.push("top","left")),a.forEach((e=>{var n=i[e];n="top"===e?n+("static"===t.position?document.documentElement.scrollTop||document.body.scrollTop||0:Ng()):n,t[e]=n+"px"}))}var i=null;function a(){i&&cancelAnimationFrame(i),i=requestAnimationFrame((()=>{i=null,r()}))}window.addEventListener("updateview",a);var o=[],s=[];return co(Bg,(function(e){o?o.push(e):e(t)})),Oo((()=>{r(),s.forEach((e=>e())),s=null})),Ao((()=>{window.removeEventListener("updateview",a)})),{position:t,hidden:n,onParentReady:function(e){var n=ho(Bg),r=n=>{e(n),o.forEach((e=>e(t))),o=null};!function(e){s?s.push(e):e()}((()=>{n?n(r):r({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})}))}}}const zg=wf({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var n,{emit:r}=t,i=Ta(null),a=Ta(null),o=Cf(i,r),s=Rg(e,["id"]),{position:l,onParentReady:u}=Pg(a);return u((()=>{function t(){var t={adpid:e.adpid,width:l.width,count:e.dataCount};void 0!==e.channel&&(t.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",t,(e=>{var{code:t,data:r,message:i}=e;0===t?n.renderingBind(r):o("error",{},{errMsg:i})}))}n=plus.ad.createAdView(Object.assign({},s.value,l)),plus.webview.currentWebview().append(n),n.setDislikeListener((e=>{a.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),o("close",{},e)})),n.setRenderingListener((e=>{0===e.result?(a.value.style.height=e.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):o("error",{},{errCode:e.result})})),n.setAdClickedListener((()=>{o("adclicked",{},{})})),vo((()=>l),(e=>n.setStyle(e)),{deep:!0}),vo((()=>e.adpid),(e=>{e&&t()})),vo((()=>e.data),(e=>{e&&n.renderingBind(e)})),e.adpid&&t()})),Ao((()=>{n&&n.close()})),()=>Ps("uni-ad",{ref:i},[Ps("div",{ref:a,class:"uni-ad-container"},null,512)],512)}});class Dg extends Hh{constructor(e,t,n,r,i,a,o){super(e,t,r);var s=document.createElement("div");s.__vueParent=function(e){for(;e&&e.pid>0;)if(e=fm(e.pid)){var{__vueParentComponent:t}=e.$;if(t)return t}return null}(this),this.$props=ca({}),this.init(a),this.$app=zl(function(e,t){return()=>al(e,t)}(n,this.$props)),this.$app.mount(s),this.$=s.firstElementChild,o&&(this.$holder=this.$.querySelector(o)),hn(a,"t")&&this.setText(a.t||""),a.a&&hn(a.a,hr)&&gf(this.$,a.a[hr]),this.insert(r,i),Za()}init(e){var{a:t,e:n,w:r}=e;t&&(this.setWxsProps(t),Object.keys(t).forEach((e=>{this.setAttr(e,t[e])}))),hn(e,"s")&&this.setAttr("style",e.s),n&&Object.keys(n).forEach((e=>{this.addEvent(e,n[e])})),r&&this.addWxsEvents(e.w)}setText(e){(this.$holder||this.$).textContent=e,this.updateView()}addWxsEvent(e,t,n){this.$props[e]=vf(this,t,n)}addEvent(e,t){this.$props[e]=ff(this.id,t,lr(e)[1])}removeEvent(e){this.$props[e]=null}setAttr(e,t){if(e===hr)this.$&&gf(this.$,t);else if(e===fr)this.$.__ownerId=t;else if(e===pr)Lh((()=>$h(this,t)),3);else if(e===dr){var n=Wh(t,this.$||fm(this.pid).$),r=this.$props.style;xn(n)&&xn(r)?Object.keys(n).forEach((e=>{r[e]=n[e]})):this.$props.style=n}else Vh(e)?this.$.style.setProperty(e,qh(t)):(t=Wh(t,this.$||fm(this.pid).$),this.wxsPropsInvoke(e,t,!0)||(this.$props[e]=t));this.updateView()}removeAttr(e){Vh(e)?this.$.style.removeProperty(e):this.$props[e]=null,this.updateView()}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),pm(this.id),this.removeUniChildren(),this.updateView()}appendChild(e){var t=(this.$holder||this.$).appendChild(e);return this.updateView(!0),t}insertBefore(e,t){var n=(this.$holder||this.$).insertBefore(e,t);return this.updateView(!0),n}}class Fg extends Dg{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,a,o)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(e){return Lh(this.getRebuildFn(),2),super.setText(e)}appendChild(e){return Lh(this.getRebuildFn(),2),super.appendChild(e)}insertBefore(e,t){return Lh(this.getRebuildFn(),2),super.insertBefore(e,t)}removeUniChild(e){return Lh(this.getRebuildFn(),2),super.removeUniChild(e)}rebuild(){var e=this.$.__vueParentComponent;e.rebuild&&e.rebuild()}}function $g(e,t,n){e.childNodes.forEach((n=>{n instanceof Element?-1===n.className.indexOf(t)&&e.removeChild(n):e.removeChild(n)})),e.appendChild(document.createTextNode(n))}var jg=["value","modelValue"];function Wg(e){jg.forEach((t=>{if(hn(e,t)){var n="onUpdate:"+t;hn(e,n)||(e[n]=n=>e[t]=n)}}))}class Vg extends Hh{constructor(e,t,n,r){super(e,t,n),this.insert(n,r)}}var Hg=0;function Ug(e,t,n){var r,i,{position:a,hidden:o,onParentReady:s}=Pg(e);s((s=>{var l=il((()=>{var e={};for(var t in a){var n=a[t],r=parseFloat(n),i=parseFloat(s[t]);if("top"===t||"left"===t)n=Math.max(r,i)+"px";else if("width"===t||"height"===t){var o="width"===t?"left":"top",l=parseFloat(s[o]),u=parseFloat(a[o]),c=Math.max(l-u,0),d=Math.max(u+r-(l+i),0);n=Math.max(r-c-d,0)+"px"}e[t]=n}return e})),u=["borderRadius","borderColor","borderWidth","backgroundColor"],c=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],d=[],h={start:"left",end:"right"};function f(t){var n=getComputedStyle(e.value);return u.concat(c,d).forEach((e=>{t[e]=n[e]})),t}var p=ca(f({})),v=null;i=function(){v&&cancelAnimationFrame(v),v=requestAnimationFrame((()=>{v=null,f(p)}))},window.addEventListener("updateview",i);var g=il((()=>{var e=function(){var e={};for(var t in e){var n=e[t];"top"!==t&&"left"!==t||(n=Math.min(parseFloat(n)-parseFloat(s[t]),0)+"px"),e[t]=n}return e}(),t=[{tag:"rect",position:e,rectStyles:{color:p.backgroundColor,radius:p.borderRadius,borderColor:p.borderColor,borderWidth:p.borderWidth}}];if("src"in n)n.src&&t.push({tag:"img",position:e,src:n.src});else{var r=parseFloat(p.lineHeight)-parseFloat(p.fontSize),i=parseFloat(e.width)-parseFloat(p.paddingLeft)-parseFloat(p.paddingRight);i=i<0?0:i;var a=parseFloat(e.height)-parseFloat(p.paddingTop)-r/2-parseFloat(p.paddingBottom);a=a<0?0:a,t.push({tag:"font",position:{top:"".concat(parseFloat(e.top)+parseFloat(p.paddingTop)+r/2,"px"),left:"".concat(parseFloat(e.left)+parseFloat(p.paddingLeft),"px"),width:"".concat(i,"px"),height:"".concat(a,"px")},textStyles:{align:h[p.textAlign]||p.textAlign,color:p.color,decoration:"none",lineSpacing:"".concat(r,"px"),margin:"0px",overflow:p.textOverflow,size:p.fontSize,verticalAlign:"top",weight:p.fontWeight,whiteSpace:p.whiteSpace},text:n.text})}return t}));r=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(Hg++),l.value,g.value),plus.webview.currentWebview().append(r),o.value&&r.hide(),r.addEventListener("click",(()=>{t("click",{},{})})),vo((()=>o.value),(e=>{r[e?"hide":"show"]()})),vo((()=>l.value),(e=>{r.setStyle(e)}),{deep:!0}),vo((()=>g.value),(()=>{r.reset(),r.draw(g.value)}),{deep:!0})})),Ao((()=>{r&&r.close(),i&&window.removeEventListener("updateview",i)}))}const qg=wf({name:"CoverImage",props:{src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}},emits:["click","load","error"],setup(e,t){var{emit:n}=t,r=Ta(null),i=Cf(r,n),a=ca({src:""}),o=function(e,t,n){var r,i=Ta("");function a(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var a=e.src?Fu(e.src):"";0===a.indexOf("http://")||0===a.indexOf("https://")?(r=plus.downloader.createDownload(a,{filename:"_doc/uniapp_temp//download/"},((e,t)=>{200===t?o(e.filename):n("error",{},{errMsg:"error"})}))).start():a&&o(a)}function o(r){t.src=r,plus.io.getImageInfo({src:r,success:t=>{var{width:r,height:a}=t;e.autoSize&&(i.value="width:".concat(r,"px;height:").concat(a,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),n("load",{},{width:r,height:a})},fail:()=>{n("error",{},{errMsg:"error"})}})}return e.src&&a(),vo((()=>e.src),a),Ao((()=>{r&&r.abort()})),i}(e,a,i);return Ug(r,i,a),()=>Ps("uni-cover-image",{ref:r,style:o.value},[Ps("div",{class:"uni-cover-image"},null)],4)}});const Yg=wf({name:"CoverView",emits:["click"],setup(e,t){var{emit:n}=t,r=Ta(null),i=Ta(null),a=Cf(r,n),o=ca({text:""});return Ug(r,a,o),vv((()=>{var e=i.value.childNodes[0];o.text=e&&e instanceof Text?e.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))})),()=>Ps("uni-cover-view",{ref:r},[Ps("div",{ref:i,class:"uni-cover-view"},null,512)],512)}});var Xg={id:{type:String,default:""},url:{type:String,default:""},mode:{type:String,default:"SD"},muted:{type:[Boolean,String],default:!1},enableCamera:{type:[Boolean,String],default:!0},autoFocus:{type:[Boolean,String],default:!0},beauty:{type:[Number,String],default:0},whiteness:{type:[Number,String],default:0},aspect:{type:[String],default:"3:2"},minBitrate:{type:[Number],default:200}},Zg=["statechange","netstatus","error"];const Gg=wf({name:"LivePusher",props:Xg,emits:Zg,setup(e,t){var n,{emit:r}=t,i=Ta(null),a=Cf(i,r),o=Ta(null),s=Rg(e,["id"]),{position:l,hidden:u,onParentReady:c}=Pg(o);return c((()=>{n=new plus.video.LivePusher("livePusher"+Date.now(),Object.assign({},s.value,l)),plus.webview.currentWebview().append(n),Zg.forEach((e=>{n.addEventListener(e,(t=>{a(e,{},t.detail)}))})),vo((()=>s.value),(e=>n.setStyles(e)),{deep:!0}),vo((()=>l),(e=>n.setStyles(e)),{deep:!0}),vo((()=>u.value),(e=>{e||n.setStyles(l)}))})),kg(((e,t)=>{n&&n[e](t)}),Eg(),!0),Ao((()=>{n&&n.close()})),()=>Ps("uni-live-pusher",{ref:i,id:e.id},[Ps("div",{ref:o,class:"uni-live-pusher-container"},null,512)],8,["id"])}});function Kg(e){if(0!==e.indexOf("#"))return{color:e,opacity:1};var t=e.slice(7,9);return{color:e.slice(0,7),opacity:t?Number("0x"+t)/255:1}}const Jg=wf({name:"Map",props:{id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]}},emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var n,{emit:r}=t,i=Ta(null),a=Cf(i,r),o=Ta(null),s=Rg(e,["id"]),{position:l,hidden:u,onParentReady:c}=Pg(o),{_addMarkers:d,_addMapLines:h,_addMapCircles:f,_addMapPolygons:p,_setMap:v}=function(e,t){var n;function r(t){var{longitude:r,latitude:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n&&(n.setCenter(new plus.maps.Point(Number(r||e.longitude),Number(i||e.latitude))),t({errMsg:"moveToLocation:ok"}))}function i(e){n&&n.getCurrentCenter(((t,n)=>{e({longitude:n.getLng(),latitude:n.getLat(),errMsg:"getCenterLocation:ok"})}))}function a(e){if(n){var t=n.getBounds();e({southwest:t.getSouthWest(),northeast:t.getNorthEast(),errMsg:"getRegion:ok"})}}function o(e){n&&e({scale:n.getZoom(),errMsg:"getScale:ok"})}function s(e){if(n){var{id:r,latitude:i,longitude:a,iconPath:o,callout:s,label:l}=e;(e=>{var i,{latitude:a,longitude:u}=e.coord,c=new plus.maps.Marker(new plus.maps.Point(u,a));o&&c.setIcon(Fu(o)),l&&l.content&&c.setLabel(l.content);var d=void 0;s&&s.content&&(d=new plus.maps.Bubble(s.content)),d&&c.setBubble(d),(r||0===r)&&(c.onclick=e=>{t("markertap",{},{markerId:r,latitude:a,longitude:u})},d&&(d.onclick=()=>{t("callouttap",{},{markerId:r})})),null===(i=n)||void 0===i||i.addOverlay(c),n.__markers__.push(c)})({coord:{latitude:i,longitude:a}})}}function l(){n&&(n.__markers__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__markers__=[])}function u(e,t){t&&l(),e.forEach((e=>{s(e)}))}function c(e){n&&(n.__lines__.length>0&&(n.__lines__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__lines__=[]),e.forEach((e=>{var t,{color:r,width:i}=e,a=e.points.map((e=>new plus.maps.Point(e.longitude,e.latitude))),o=new plus.maps.Polyline(a);if(r){var s=Kg(r);o.setStrokeColor(s.color),o.setStrokeOpacity(s.opacity)}i&&o.setLineWidth(i),null===(t=n)||void 0===t||t.addOverlay(o),n.__lines__.push(o)})))}function d(e){n&&(n.__circles__.length>0&&(n.__circles__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__circles__=[]),e.forEach((e=>{var t,{latitude:r,longitude:i,color:a,fillColor:o,radius:s,strokeWidth:l}=e,u=new plus.maps.Circle(new plus.maps.Point(i,r),s);if(a){var c=Kg(a);u.setStrokeColor(c.color),u.setStrokeOpacity(c.opacity)}if(o){var d=Kg(o);u.setFillColor(d.color),u.setFillOpacity(d.opacity)}l&&u.setLineWidth(l),null===(t=n)||void 0===t||t.addOverlay(u),n.__circles__.push(u)})))}function h(e){if(n){var t=n.__polygons__;t.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),t.length=0,e.forEach((e=>{var r,{points:i,strokeWidth:a,strokeColor:o,fillColor:s}=e,l=[];i&&i.forEach((e=>{l.push(new plus.maps.Point(e.longitude,e.latitude))}));var u=new plus.maps.Polygon(l);if(o){var c=Kg(o);u.setStrokeColor(c.color),u.setStrokeOpacity(c.opacity)}if(s){var d=Kg(s);u.setFillColor(d.color),u.setFillOpacity(d.opacity)}a&&u.setLineWidth(a),null===(r=n)||void 0===r||r.addOverlay(u),t.push(u)}))}}var f={moveToLocation:r,getCenterLocation:i,getRegion:a,getScale:o};return kg(((e,t,n)=>{f[e]&&f[e](n,t)}),Eg(),!0),{_addMarkers:u,_addMapLines:c,_addMapCircles:d,_addMapPolygons:h,_setMap(e){n=e}}}(e,a);c((()=>{(n=un(plus.maps.create(ou()+"-map-"+(e.id||Date.now()),Object.assign({},s.value,l,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[],__polygons__:[]})).setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(n),u.value&&n.hide(),n.onclick=e=>{a("tap",{},e),a("click",{},e)},n.onstatuschanged=e=>{a("regionchange",{},{})},v(n),d(e.markers),h(e.polyline),f(e.circles),p(e.polygons),vo((()=>s.value),(e=>n&&n.setStyles(e)),{deep:!0}),vo((()=>l),(e=>n&&n.setStyles(e)),{deep:!0}),vo(u,(e=>{n&&n[e?"hide":"show"]()})),vo((()=>e.scale),(e=>{n&&n.setZoom(parseInt(String(e)))})),vo([()=>e.latitude,()=>e.longitude],(e=>{var[t,r]=e;n&&n.setStyles({center:new plus.maps.Point(Number(r),Number(t))})})),vo((()=>e.markers),(e=>{d(e,!0)}),{deep:!0}),vo((()=>e.polyline),(e=>{h(e)}),{deep:!0}),vo((()=>e.circles),(e=>{f(e)}),{deep:!0}),vo((()=>e.polygons),(e=>{p(e)}),{deep:!0})}));var g=il((()=>e.controls.map((e=>{var t={position:"absolute"};return["top","left","width","height"].forEach((n=>{e.position[n]&&(t[n]=e.position[n]+"px")})),{id:e.id,iconPath:Fu(e.iconPath),position:t,clickable:e.clickable}}))));return Ao((()=>{n&&(n.close(),v(null))})),()=>Ps("uni-map",{ref:i,id:e.id},[Ps("div",{ref:o,class:"uni-map-container"},null,512),g.value.map(((e,t)=>Ps(qg,{key:t,src:e.iconPath,style:e.position,"auto-size":!0,onClick:()=>e.clickable&&a("controltap",{},{controlId:e.id})},null,8,["src","style","auto-size","onClick"]))),Ps("div",{class:"uni-map-slot"},null)],8,["id"])}});var Qg={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},em={YEAR:"year",MONTH:"month",DAY:"day"};function tm(e){return e>9?e:"0".concat(e)}function nm(e,t){e=String(e||"");var n=new Date;if(t===Qg.TIME){var r=e.split(":");2===r.length&&n.setHours(parseInt(r[0]),parseInt(r[1]))}else{var i=e.split("-");3===i.length&&n.setFullYear(parseInt(i[0]),parseInt(String(parseFloat(i[1])-1)),parseInt(i[2]))}return n}const rm=wf({name:"Picker",props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Qg.SELECTOR,validator:e=>Object.values(Qg).indexOf(e)>=0},fields:{type:String,default:""},start:{type:String,default:function(e){if(e.mode===Qg.TIME)return"00:00";if(e.mode===Qg.DATE){var t=(new Date).getFullYear()-100;switch(e.fields){case em.YEAR:return t;case em.MONTH:return t+"-01";default:return t+"-01-01"}}return""}},end:{type:String,default:function(e){if(e.mode===Qg.TIME)return"23:59";if(e.mode===Qg.DATE){var t=(new Date).getFullYear()+100;switch(e.fields){case em.YEAR:return t;case em.MONTH:return t+"-12";default:return t+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1}},emits:["change","cancel","columnchange"],setup(e,t){var{emit:n}=t;zr();var{t:r,getLocale:i}=Rr(),a=Ta(null),o=Cf(a,n),s=Ta(null),l=Ta(null),u=()=>{var t=e.value;switch(e.mode){case Qg.MULTISELECTOR:fn(t)||(t=[]),fn(s.value)||(s.value=[]);for(var n=s.value.length=Math.max(t.length,e.range.length),r=0;r<n;r++){var i=Number(t[r]),a=Number(s.value[r]),o=isNaN(i)?isNaN(a)?0:a:i;s.value.splice(r,1,o<0?0:o)}break;case Qg.TIME:case Qg.DATE:s.value=String(t);break;default:var l=Number(t);s.value=l<0?0:l}},c=e=>{l.value&&l.value.sendMessage(e)},d=(t,n)=>{t.mode!==Qg.TIME&&t.mode!==Qg.DATE||t.fields?(t.fields=Object.values(em).includes(t.fields)?t.fields:em.DAY,(e=>{var t={event:"cancel"};l.value=wu({url:"__uniapppicker",data:e,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:n=>{var r=n.event;if("created"!==r)return"columnchange"===r?(delete n.event,void o(r,{},n)):void(t=n);c(e)},onClose:()=>{l.value=null;var e=t.event;delete t.event,e&&o(e,{},t)}})})(t)):((t,n)=>{plus.nativeUI[e.mode===Qg.TIME?"pickTime":"pickDate"]((t=>{var n=t.date;o("change",{},{value:e.mode===Qg.TIME?"".concat(tm(n.getHours()),":").concat(tm(n.getMinutes())):"".concat(n.getFullYear(),"-").concat(tm(n.getMonth()+1),"-").concat(tm(n.getDate()))})}),(()=>{o("cancel",{},{})}),e.mode===Qg.TIME?{time:nm(e.value,Qg.TIME),popover:n}:{date:nm(e.value,Qg.DATE),minDate:nm(e.start,Qg.DATE),maxDate:nm(e.end,Qg.DATE),popover:n})})(0,n)},h=t=>{if(!e.disabled){var n=t.currentTarget.getBoundingClientRect();d(Object.assign({},e,{value:s.value,locale:i(),messages:{done:r("uni.picker.done"),cancel:r("uni.picker.cancel")}}),{top:n.top+Ng(),left:n.left,width:n.width,height:n.height})}},f=ho(Mf,!1),p={submit:()=>[e.name,s.value],reset:()=>{switch(e.mode){case Qg.SELECTOR:s.value=0;break;case Qg.MULTISELECTOR:fn(e.value)&&(s.value=e.value.map((e=>0)));break;case Qg.DATE:case Qg.TIME:s.value=""}}};return f&&(f.addField(p),Ao((()=>f.removeField(p)))),Object.keys(e).forEach((t=>{"name"!==t&&vo((()=>e[t]),(e=>{var n={};n[t]=e,c(n)}),{deep:!0})})),vo((()=>e.value),u,{deep:!0}),u(),()=>Ps("uni-picker",{ref:a,onClick:h},[Ps("slot",null,null)],8,["onClick"])}});var im={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},vslideGesture:{type:[Boolean,String],default:!1},vslideGestureInFullscreen:{type:[Boolean,String],default:!1},showPlayBtn:{type:[Boolean,String],default:!0},showMuteBtn:{type:[Boolean,String],default:!1},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default:()=>({})},advanced:{type:Array,default:()=>[]},title:{type:String,default:""}},am=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],om=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"];const sm=wf({name:"Video",props:im,emits:am,setup(e,t){var n,{emit:r}=t,i=Ta(null),a=Cf(i,r),o=Ta(null),s=Rg(e,["id"]),{position:l,hidden:u,onParentReady:c}=Pg(o);return c((()=>{n=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},s.value,l)),plus.webview.currentWebview().append(n),u.value&&n.hide(),am.forEach((e=>{n.addEventListener(e,(t=>{a(e,{},t.detail)}))})),vo((()=>s.value),(e=>n.setStyles(e)),{deep:!0}),vo((()=>l),(e=>n.setStyles(e)),{deep:!0}),vo((()=>u.value),(e=>{n[e?"hide":"show"](),e||n.setStyles(l)}))})),kg(((e,t)=>{if(om.includes(e)){var r;switch(e){case"seek":r=t.position;break;case"sendDanmu":r=t;break;case"playbackRate":r=t.rate;break;case"requestFullScreen":r=t.direction}n&&n[e](r)}}),Eg(),!0),Ao((()=>{n&&n.close()})),()=>Ps("uni-video",{ref:i,id:e.id},[Ps("div",{ref:o,class:"uni-video-container"},null,512),Ps("div",{class:"uni-video-slot"},null)],8,["id"])}});var lm,um={src:{type:String,default:""},updateTitle:{type:Boolean,default:!0},webviewStyles:{type:Object,default:()=>({})}};const cm=wf({name:"WebView",props:um,setup(e){var t=ou(),n=Ta(null),{hidden:r,onParentReady:i}=Pg(n),a=il((()=>e.webviewStyles));return i((()=>{var n;(e=>{var{htmlId:t,src:n,webviewStyles:r,props:i}=e,a=plus.webview.currentWebview(),o=un({"uni-app":"none",isUniH5:!0,contentAdjust:!1},r),s=a.getTitleNView();if(s){var l=44+parseFloat(o.top||"0");plus.navigator.isImmersedStatusbar()&&(l+=Ag()),o.top=String(l),o.bottom=o.bottom||"0"}lm=plus.webview.create(n,t,o),s&&lm.addEventListener("titleUpdate",(function(){var e;if(i.updateTitle){var t=null===(e=lm)||void 0===e?void 0:e.getTitle();a.setStyle({titleNView:{titleText:t&&"null"!==t?t:" "}})}})),plus.webview.currentWebview().append(lm)})({htmlId:Ta("webviewId"+t).value,src:Fu(e.src),webviewStyles:a.value,props:e}),UniViewJSBridge.publishHandler("webviewInserted",{},t),r.value&&(null===(n=lm)||void 0===n||n.hide())})),Ao((()=>{var e;plus.webview.currentWebview().remove(lm),null===(e=lm)||void 0===e||e.close("none"),lm=null,UniViewJSBridge.publishHandler("webviewRemoved",{},t)})),vo((()=>e.src),(t=>{var n,r=Fu(t)||"";if(r){var i;if(/^(http|https):\/\//.test(r)&&e.webviewStyles.progress)null===(i=lm)||void 0===i||i.setStyle({progress:{color:e.webviewStyles.progress.color}});null===(n=lm)||void 0===n||n.loadURL(r)}})),vo(a,(e=>{var t;null===(t=lm)||void 0===t||t.setStyle(e)})),vo(r,(e=>{lm&&lm[e?"hide":"show"]()})),()=>Ps("uni-web-view",{ref:n},null,512)}});var dm={"#text":class extends Hh{constructor(e,t,n,r){super(e,"#text",t,document.createTextNode("")),this.init(r),this.insert(t,n)}},"#comment":class extends Hh{constructor(e,t,n){super(e,"#comment",t,document.createComment("")),this.insert(t,n)}},VIEW:class extends Ig{constructor(e,t,n,r){super(e,document.createElement("uni-view"),t,n,r)}},IMAGE:class extends Dg{constructor(e,t,n,r){super(e,"uni-image",jp,t,n,r)}},TEXT:class extends Cg{constructor(e,t,n,r){super(e,document.createElement("uni-text"),t,n,r,Mg),this._text=""}init(e){this._text=e.t||"",super.init(e)}setText(e){this._text=e,this.update(),this.updateView()}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{$props:{space:t,decode:n}}=this;this.$.textContent=gg(this._text,{space:t,decode:n}).join(Wn),super.update(e)}},NAVIGATOR:class extends Dg{constructor(e,t,n,r){super(e,"uni-navigator",Fv,t,n,r,"uni-navigator")}},FORM:class extends Dg{constructor(e,t,n,r){super(e,"uni-form",Of,t,n,r,"span")}},BUTTON:class extends Dg{constructor(e,t,n,r){super(e,"uni-button",Pf,t,n,r)}},INPUT:class extends Dg{constructor(e,t,n,r){super(e,"uni-input",av,t,n,r)}init(e){super.init(e),Wg(this.$props)}},LABEL:class extends Dg{constructor(e,t,n,r){super(e,"uni-label",Af,t,n,r)}},RADIO:class extends Dg{constructor(e,t,n,r){super(e,"uni-radio",tg,t,n,r,".uni-radio-wrapper")}setText(e){$g(this.$holder,"uni-radio-input",e)}},CHECKBOX:class extends Dg{constructor(e,t,n,r){super(e,"uni-checkbox",Gf,t,n,r,".uni-checkbox-wrapper")}setText(e){$g(this.$holder,"uni-checkbox-input",e)}},"CHECKBOX-GROUP":class extends Dg{constructor(e,t,n,r){super(e,"uni-checkbox-group",Zf,t,n,r)}},AD:class extends Dg{constructor(e,t,n,r){super(e,"uni-ad",zg,t,n,r)}},CAMERA:class extends Vg{constructor(e,t,n){super(e,"uni-camera",t,n)}},CANVAS:class extends Dg{constructor(e,t,n,r){super(e,"uni-canvas",Yf,t,n,r,"uni-canvas > div")}},"COVER-IMAGE":class extends Dg{constructor(e,t,n,r){super(e,"uni-cover-image",qg,t,n,r)}},"COVER-VIEW":class extends Fg{constructor(e,t,n,r){super(e,"uni-cover-view",Yg,t,n,r,".uni-cover-view")}},EDITOR:class extends Dg{constructor(e,t,n,r){super(e,"uni-editor",Np,t,n,r)}},"FUNCTIONAL-PAGE-NAVIGATOR":class extends Vg{constructor(e,t,n){super(e,"uni-functional-page-navigator",t,n)}},ICON:class extends Dg{constructor(e,t,n,r){super(e,"uni-icon",zp,t,n,r)}},"RADIO-GROUP":class extends Dg{constructor(e,t,n,r){super(e,"uni-radio-group",eg,t,n,r)}},"LIVE-PLAYER":class extends Vg{constructor(e,t,n){super(e,"uni-live-player",t,n)}},"LIVE-PUSHER":class extends Dg{constructor(e,t,n,r){super(e,"uni-live-pusher",Gg,t,n,r,".uni-live-pusher-slot")}},MAP:class extends Dg{constructor(e,t,n,r){super(e,"uni-map",Jg,t,n,r,".uni-map-slot")}},"MOVABLE-AREA":class extends Fg{constructor(e,t,n,r){super(e,"uni-movable-area",gv,t,n,r)}},"MOVABLE-VIEW":class extends Dg{constructor(e,t,n,r){super(e,"uni-movable-view",Ov,t,n,r)}},"OFFICIAL-ACCOUNT":class extends Vg{constructor(e,t,n){super(e,"uni-official-account",t,n)}},"OPEN-DATA":class extends Vg{constructor(e,t,n){super(e,"uni-open-data",t,n)}},PICKER:class extends Dg{constructor(e,t,n,r){super(e,"uni-picker",rm,t,n,r)}},"PICKER-VIEW":class extends Fg{constructor(e,t,n,r){super(e,"uni-picker-view",$v,t,n,r,".uni-picker-view-wrapper")}},"PICKER-VIEW-COLUMN":class extends Fg{constructor(e,t,n,r){super(e,"uni-picker-view-column",Xv,t,n,r,".uni-picker-view-content")}},PROGRESS:class extends Dg{constructor(e,t,n,r){super(e,"uni-progress",Kv,t,n,r)}},"RICH-TEXT":class extends Dg{constructor(e,t,n,r){super(e,"uni-rich-text",og,t,n,r)}},"SCROLL-VIEW":class extends Dg{constructor(e,t,n,r){super(e,"uni-scroll-view",lg,t,n,r,".uni-scroll-view-content")}setText(e){$g(this.$holder,"uni-scroll-view-refresher",e)}},SLIDER:class extends Dg{constructor(e,t,n,r){super(e,"uni-slider",ug,t,n,r)}},SWIPER:class extends Fg{constructor(e,t,n,r){super(e,"uni-swiper",hg,t,n,r,".uni-swiper-slide-frame")}},"SWIPER-ITEM":class extends Dg{constructor(e,t,n,r){super(e,"uni-swiper-item",fg,t,n,r)}},SWITCH:class extends Dg{constructor(e,t,n,r){super(e,"uni-switch",pg,t,n,r)}},TEXTAREA:class extends Dg{constructor(e,t,n,r){super(e,"uni-textarea",bg,t,n,r)}init(e){super.init(e),Wg(this.$props)}},VIDEO:class extends Dg{constructor(e,t,n,r){super(e,"uni-video",sm,t,n,r,".uni-video-slot")}},"WEB-VIEW":class extends Dg{constructor(e,t,n,r){super(e,"uni-web-view",cm,t,n,r)}}};var hm=new Map;function fm(e){return hm.get(e)}function pm(e){return hm.delete(e)}function vm(e,t,n,r){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(0===e)i=new Hh(e,t,n,document.createElement(t));else{var o=dm[t];i=o?new o(e,n,r,a):new mf(e,document.createElement(t),n,r,a)}return hm.set(e,i),i}var gm=[],mm=!1;function _m(e){if(mm)return e();gm.push(e)}function ym(){mm=!0,gm.forEach((e=>{try{e()}catch(t){console.error(t)}})),gm.length=0}function bm(e){var{css:t,route:n,platform:r,pixelRatio:i,windowWidth:a,disableScroll:o,statusbarHeight:s,windowTop:l,windowBottom:u}=e;!function(e){window.__PAGE_INFO__={route:e}}(n),function(e,t,n){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:n}}(r,i,a),vm(0,"div",-1,-1).$=document.getElementById("app");var c=plus.webview.currentWebview().id;window.__id__=c,document.title="".concat(n,"[").concat(c,"]"),function(e,t,n){var r={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":n+"px","--status-bar-height":e+"px"};!function(e){var t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}(r)}(s,l,u),o&&document.addEventListener("touchmove",su),t?function(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=ym,t.onerror=ym,document.head.appendChild(t)}(n):ym()}var wm=!1;function xm(e,t){var{scrollTop:n,selector:r,duration:i}=e;!function(e,t,n){if(gn(e)){var r=document.querySelector(e);if(r){var{height:i,top:a}=r.getBoundingClientRect();e=a+window.pageYOffset,n&&(e-=i)}}e<0&&(e=0);var o=document.documentElement,{clientHeight:s,scrollHeight:l}=o;if(e=Math.min(e,l-s),0!==t){if(window.scrollY!==e){var u=t=>{if(t<=0)window.scrollTo(0,e);else{var n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),u(t-10)}))}};u(t)}}else o.scrollTop=document.body.scrollTop=e}(r||n||0,i),t()}function Sm(e){var t=e[0];1===t[0]?bm(t[1]):_m((()=>function(e){var t=e[0],n=function(e){if(!e.length)return e=>e;var t=function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("number"==typeof n)return e[n];var i={};return n.forEach((e=>{var[n,a]=e;i[t(n)]=r?t(a):a})),i};return t}(0===t[0]?t[1]:[]);e.forEach((e=>{switch(e[0]){case 1:return bm(e[1]);case 2:return;case 3:var t=e[3];return vm(e[1],n(e[2]),-1===t?0:t,e[4],Oh(n,e[5]));case 4:return fm(e[1]).insert(e[2],e[3],Oh(n,e[4]));case 5:return fm(e[1]).remove();case 6:return fm(e[1]).setAttr(n(e[2]),n(e[3]));case 7:return fm(e[1]).removeAttr(n(e[2]));case 8:return fm(e[1]).addEvent(n(e[2]),e[3]);case 12:return fm(e[1]).addWxsEvent(n(e[2]),n(e[3]),e[4]);case 9:return fm(e[1]).removeEvent(n(e[2]));case 10:return fm(e[1]).setText(n(e[2]));case 15:return function(e){if(!wm){wm=!0;var t={onReachBottomDistance:e,onPageScroll(e){UniViewJSBridge.publishHandler("onPageScroll",{scrollTop:e})},onReachBottom(){UniViewJSBridge.publishHandler("onReachBottom")}};requestAnimationFrame((()=>document.addEventListener("scroll",pu(t))))}}(e[1])}})),function(){try{[...Ih].sort(((e,t)=>e.priority-t.priority)).forEach((e=>e()))}finally{Ih.clear()}}()}(e)))}function km(){UniViewJSBridge.publishHandler(Bu)}function Tm(e){return window.__$__(e).$}function Em(e,t){var n={},{top:r,topWindowHeight:i}=function(){var e=document.documentElement.style,t=Kl(),n=Gl(e,"--window-bottom"),r=Gl(e,"--window-left"),i=Gl(e,"--window-right"),a=Gl(e,"--top-window-height");return{top:t,bottom:n?n+Xl.bottom:0,left:r?r+Xl.left:0,right:i?i+Xl.right:0,topWindowHeight:a||0}}();if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=nr(e)),t.rect||t.size){var a=e.getBoundingClientRect();t.rect&&(n.left=a.left,n.right=a.right,n.top=a.top-r-i,n.bottom=a.bottom-r-i),t.size&&(n.width=a.width,n.height=a.height)}if(fn(t.properties)&&t.properties.forEach((e=>{e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){var o=e.children[0].children[0];n.scrollLeft=o.scrollLeft,n.scrollTop=o.scrollTop,n.scrollHeight=o.scrollHeight,n.scrollWidth=o.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(fn(t.computedStyle)){var s=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=s[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function Cm(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=this.parentElement.querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}function Mm(e,t,n,r,i){var a=function(e,t){return e?window.__$__(e).$:t.$el}(t,e),o=a.parentElement;if(!o)return r?null:[];var{nodeType:s}=a,l=3===s||8===s;if(r){var u=l?o.querySelector(n):Cm(a,n)?a:a.querySelector(n);return u?Em(u,i):null}var c=[],d=(l?o:a).querySelectorAll(n);return d&&d.length&&[].forEach.call(d,(e=>{c.push(Em(e,i))})),!l&&Cm(a,n)&&c.unshift(Em(a,i)),c}function Om(e,t,n){var r=[];t.forEach((t=>{var{component:n,selector:i,single:a,fields:o}=t;null===n?r.push(function(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var n=document.documentElement,r=document.body;t.scrollLeft=n.scrollLeft||r.scrollLeft||0,t.scrollTop=n.scrollTop||r.scrollTop||0,t.scrollHeight=n.scrollHeight||r.scrollHeight||0,t.scrollWidth=n.scrollWidth||r.scrollWidth||0}return t}(o)):r.push(Mm(e,n,i,a,o))})),n(r)}function Im(e,t){var{reqId:n,component:r,options:i,callback:a}=e,o=Tm(r);(o.__io||(o.__io={}))[n]=function(e,t,n){Th();var r=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver((e=>{e.forEach((e=>{n({intersectionRatio:Ch(e),intersectionRect:Eh(e.intersectionRect),boundingClientRect:Eh(e.boundingClientRect),relativeRect:Eh(e.rootBounds),time:Date.now(),dataset:nr(e.target),id:e.target.id})}))}),{root:r,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;for(var a=e.querySelectorAll(t.selector),o=0;o<a.length;o++)i.observe(a[o])}else{i.USE_MUTATION_OBSERVER=!1;var s=e.querySelector(t.selector);s?i.observe(s):console.warn("Node ".concat(t.selector," is not found. Intersection observer will not trigger."))}return i}(o,i,a)}var Lm={},Am={};function Nm(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Bm(e,t){var{reqId:n,component:r,options:i,callback:a}=e,o=Lm[n]=window.matchMedia(function(e){var t=[];for(var n of["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"])"orientation"!==n&&e[n]&&Number(e[n]>=0)&&t.push("(".concat(Nm(n),": ").concat(Number(e[n]),"px)")),"orientation"===n&&e[n]&&t.push("(".concat(Nm(n),": ").concat(e[n],")"));return t.join(" and ")}(i)),s=Am[n]=e=>a(e.matches);s(o),o.addListener(s)}function Rm(e,t){var{family:n,source:r,desc:i}=e;(function(e,t,n){var r=document.fonts;if(r){var i=new FontFace(e,t,n);return i.load().then((()=>{r.add&&r.add(i)}))}return new Promise((r=>{var i=document.createElement("style"),a=[];if(n){var{style:o,weight:s,stretch:l,unicodeRange:u,variant:c,featureSettings:d}=n;o&&a.push("font-style:".concat(o)),s&&a.push("font-weight:".concat(s)),l&&a.push("font-stretch:".concat(l)),u&&a.push("unicode-range:".concat(u)),c&&a.push("font-variant:".concat(c)),d&&a.push("font-feature-settings:".concat(d))}i.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(a.join(";"),"}"),document.head.appendChild(i),r()}))})(n,r,i).then((()=>{t()})).catch((e=>{t(e.toString())}))}var Pm={$el:document.body};function zm(){var e=ou();!function(e,t){UniViewJSBridge.subscribe(Hr(e,$r),t?t(qr):qr)}(e,(e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];_m((()=>{e.apply(null,n)}))})),Ur(e,"requestComponentInfo",((e,t)=>{Om(Pm,e.reqs,t)})),Ur(e,"addIntersectionObserver",(e=>{Im(un({},e,{callback(t){UniViewJSBridge.publishHandler(e.eventName,t)}}))})),Ur(e,"removeIntersectionObserver",(e=>{!function(e,t){var{reqId:n,component:r}=e,i=Tm(r),a=i.__io&&i.__io[n];a&&(a.disconnect(),delete i.__io[n])}(e)})),Ur(e,"addMediaQueryObserver",(e=>{Bm(un({},e,{callback(t){UniViewJSBridge.publishHandler(e.eventName,t)}}))})),Ur(e,"removeMediaQueryObserver",(e=>{!function(e,t){var{reqId:n,component:r}=e,i=Am[n],a=Lm[n];a&&(a.removeListener(i),delete Am[n],delete Lm[n])}(e)})),Ur(e,"pageScrollTo",xm),Ur(e,"loadFontFace",Rm),Ur(e,"setPageMeta",(e=>{!function(e,t){var{pageStyle:n,rootFontSize:r}=t;n&&(document.querySelector("uni-page-body")||document.body).setAttribute("style",n),r&&document.documentElement.style.fontSize!==r&&(document.documentElement.style.fontSize=r)}(0,e)}))}function Dm(){ii(),zm(),function(){var{subscribe:e}=UniViewJSBridge;e(Au,Sm),e("setLocale",(e=>Rr().setLocale(e))),e(Bu,km)}(),function(){if(0===String(navigator.vendor).indexOf("Apple")){var e,t=null;document.documentElement.addEventListener("click",(n=>{clearTimeout(e),t&&Math.abs(n.pageX-t.pageX)<=44&&Math.abs(n.pageY-t.pageY)<=44&&n.timeStamp-t.timeStamp<=450&&n.preventDefault(),t=n,e=setTimeout((()=>{t=null}),450)}))}}(),Ru.publishHandler(Bu)}window.uni=Mh,window.UniViewJSBridge=Ru,window.rpx2px=mh,window.normalizeStyleName=of,window.normalizeStyleValue=qh,window.__$__=fm,window.__f__=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];uni.__log__?uni.__log__(e,t,...r):console[e].apply(console,[...r,t])},"undefined"!=typeof plus?Dm():document.addEventListener("plusready",Dm)})); +!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e={},t={get exports(){return e},set exports(t){e=t}},n={},r={get exports(){return n},set exports(e){n=e}},i={},a={get exports(){return i},set exports(e){i=e}}.exports={version:"2.6.12"};"number"==typeof __e&&(__e=a);var o={};({get exports(){return o},set exports(e){o=e}}).exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=window);var s=i,l="__core-js_shared__",u=window[l]||(window[l]={});(r.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:s.version,mode:"window",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var c=0,d=Math.random(),h=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++c+d).toString(36))},f=n("wks"),p=h,v=o.Symbol,g="function"==typeof v;(t.exports=function(e){return f[e]||(f[e]=g&&v[e]||(g?v:p)("Symbol."+e))}).store=f;var m,_,y={},b=function(e){return"object"==typeof e?null!==e:"function"==typeof e},w=b,x=function(e){if(!w(e))throw TypeError(e+" is not an object!");return e},S=function(e){try{return!!e()}catch(t){return!0}},k=!S((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));function T(){if(_)return m;_=1;var e=b,t=o.document,n=e(t)&&e(t.createElement);return m=function(e){return n?t.createElement(e):{}}}var E=!k&&!S((function(){return 7!=Object.defineProperty(T()("div"),"a",{get:function(){return 7}}).a})),C=b,M=x,O=E,I=function(e,t){if(!C(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!C(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!C(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!C(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},L=Object.defineProperty;y.f=k?Object.defineProperty:function(e,t,n){if(M(e),t=I(t,!0),M(n),O)try{return L(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N=y,B=A,R=k?function(e,t,n){return N.f(e,t,B(1,n))}:function(e,t,n){return e[t]=n,e},P=e("unscopables"),z=Array.prototype;null==z[P]&&R(z,P,{});var D={},F={}.toString,$=function(e){return F.call(e).slice(8,-1)},j=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},W=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==$(e)?e.split(""):Object(e)},V=j,H=function(e){return W(V(e))},U={},q={get exports(){return U},set exports(e){U=e}},Y={}.hasOwnProperty,X=function(e,t){return Y.call(e,t)},Z=n("native-function-to-string",Function.toString),G=R,K=X,J=h("src"),Q=Z,ee="toString",te=(""+Q).split(ee);i.inspectSource=function(e){return Q.call(e)},(q.exports=function(e,t,n,r){var i="function"==typeof n;i&&(K(n,"name")||G(n,"name",t)),e[t]!==n&&(i&&(K(n,J)||G(n,J,e[t]?""+e[t]:te.join(String(t)))),e===window?e[t]=n:r?e[t]?e[t]=n:G(e,t,n):(delete e[t],G(e,t,n)))})(Function.prototype,ee,(function(){return"function"==typeof this&&this[J]||Q.call(this)}));var ne=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},re=ne,ie=i,ae=R,oe=U,se=function(e,t,n){if(re(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},le="prototype",ue=function(e,t,n){var r,i,a,o,s=e&ue.F,l=e&ue.G,u=e&ue.S,c=e&ue.P,d=e&ue.B,h=l?window:u?window[t]||(window[t]={}):(window[t]||{})[le],f=l?ie:ie[t]||(ie[t]={}),p=f[le]||(f[le]={});for(r in l&&(n=t),n)a=((i=!s&&h&&void 0!==h[r])?h:n)[r],o=d&&i?se(a,window):c&&"function"==typeof a?se(Function.call,a):a,h&&oe(h,r,a,e&ue.U),f[r]!=a&&ae(f,r,o),c&&p[r]!=a&&(p[r]=a)};window.core=ie,ue.F=1,ue.G=2,ue.S=4,ue.P=8,ue.B=16,ue.W=32,ue.U=64,ue.R=128;var ce,de,he,fe=ue,pe=Math.ceil,ve=Math.floor,ge=function(e){return isNaN(e=+e)?0:(e>0?ve:pe)(e)},me=ge,_e=Math.min,ye=ge,be=Math.max,we=Math.min,xe=H,Se=function(e){return e>0?_e(me(e),9007199254740991):0},ke=function(e,t){return(e=ye(e))<0?be(e+t,0):we(e,t)},Te=n("keys"),Ee=h,Ce=function(e){return Te[e]||(Te[e]=Ee(e))},Me=X,Oe=H,Ie=(ce=!1,function(e,t,n){var r,i=xe(e),a=Se(i.length),o=ke(n,a);if(ce&&t!=t){for(;a>o;)if((r=i[o++])!=r)return!0}else for(;a>o;o++)if((ce||o in i)&&i[o]===t)return ce||o||0;return!ce&&-1}),Le=Ce("IE_PROTO"),Ae="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ne=function(e,t){var n,r=Oe(e),i=0,a=[];for(n in r)n!=Le&&Me(r,n)&&a.push(n);for(;t.length>i;)Me(r,n=t[i++])&&(~Ie(a,n)||a.push(n));return a},Be=Ae,Re=Object.keys||function(e){return Ne(e,Be)},Pe=y,ze=x,De=Re,Fe=k?Object.defineProperties:function(e,t){ze(e);for(var n,r=De(t),i=r.length,a=0;i>a;)Pe.f(e,n=r[a++],t[n]);return e};var $e=x,je=Fe,We=Ae,Ve=Ce("IE_PROTO"),He=function(){},Ue="prototype",qe=function(){var e,t=T()("iframe"),n=We.length;for(t.style.display="none",function(){if(he)return de;he=1;var e=o.document;return de=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),qe=e.F;n--;)delete qe[Ue][We[n]];return qe()},Ye=Object.create||function(e,t){var n;return null!==e?(He[Ue]=$e(e),n=new He,He[Ue]=null,n[Ve]=e):n=qe(),void 0===t?n:je(n,t)},Xe=y.f,Ze=X,Ge=e("toStringTag"),Ke=function(e,t,n){e&&!Ze(e=n?e:e.prototype,Ge)&&Xe(e,Ge,{configurable:!0,value:t})},Je=Ye,Qe=A,et=Ke,tt={};R(tt,e("iterator"),(function(){return this}));var nt=j,rt=function(e){return Object(nt(e))},it=X,at=rt,ot=Ce("IE_PROTO"),st=Object.prototype,lt=Object.getPrototypeOf||function(e){return e=at(e),it(e,ot)?e[ot]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?st:null},ut=fe,ct=U,dt=R,ht=D,ft=function(e,t,n){e.prototype=Je(tt,{next:Qe(1,n)}),et(e,t+" Iterator")},pt=Ke,vt=lt,gt=e("iterator"),mt=!([].keys&&"next"in[].keys()),_t="keys",yt="values",bt=function(){return this},wt=function(e){z[P][e]=!0},xt=function(e,t){return{value:t,done:!!e}},St=D,kt=H,Tt=function(e,t,n,r,i,a,o){ft(n,t,r);var s,l,u,c=function(e){if(!mt&&e in p)return p[e];switch(e){case _t:case yt:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",h=i==yt,f=!1,p=e.prototype,v=p[gt]||p["@@iterator"]||i&&p[i],g=v||c(i),m=i?h?c("entries"):g:void 0,_="Array"==t&&p.entries||v;if(_&&(u=vt(_.call(new e)))!==Object.prototype&&u.next&&(pt(u,d,!0),"function"!=typeof u[gt]&&dt(u,gt,bt)),h&&v&&v.name!==yt&&(f=!0,g=function(){return v.call(this)}),(mt||f||!p[gt])&&dt(p,gt,g),ht[t]=g,ht[d]=bt,i)if(s={values:h?g:c(yt),keys:a?g:c(_t),entries:m},o)for(l in s)l in p||ct(p,l,s[l]);else ut(ut.P+ut.F*(mt||f),t,s);return s}(Array,"Array",(function(e,t){this._t=kt(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,xt(1)):xt(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values");St.Arguments=St.Array,wt("keys"),wt("values"),wt("entries");for(var Et=Tt,Ct=Re,Mt=U,Ot=R,It=D,Lt=e,At=Lt("iterator"),Nt=Lt("toStringTag"),Bt=It.Array,Rt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Pt=Ct(Rt),zt=0;zt<Pt.length;zt++){var Dt,Ft=Pt[zt],$t=Rt[Ft],jt=window[Ft],Wt=jt&&jt.prototype;if(Wt&&(Wt[At]||Ot(Wt,At,Bt),Wt[Nt]||Ot(Wt,Nt,Ft),It[Ft]=Bt,$t))for(Dt in Et)Wt[Dt]||Mt(Wt,Dt,Et[Dt],!0)}function Vt(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function Ht(e){if(fn(e)){for(var t={},n=0;n<e.length;n++){var r=e[n],i=gn(r)?Xt(r):Ht(r);if(i)for(var a in i)t[a]=i[a]}return t}return gn(e)||_n(e)?e:void 0}var Ut=/;(?![^(]*\))/g,qt=/:([^]+)/,Yt=/\/\*[\s\S]*?\*\//g;function Xt(e){var t={};return e.replace(Yt,"").split(Ut).forEach((e=>{if(e){var n=e.split(qt);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Zt(e){var t="";if(gn(e))t=e;else if(fn(e))for(var n=0;n<e.length;n++){var r=Zt(e[n]);r&&(t+=r+" ")}else if(_n(e))for(var i in e)e[i]&&(t+=i+" ");return t.trim()}var Gt=Vt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Kt(e){return!!e||""===e}var Jt,Qt,en,tn={},nn=[],rn=()=>{},an=()=>!1,on=/^on[^a-z]/,sn=e=>on.test(e),ln=e=>e.startsWith("onUpdate:"),un=Object.assign,cn=(e,t)=>{var n=e.indexOf(t);n>-1&&e.splice(n,1)},dn=Object.prototype.hasOwnProperty,hn=(e,t)=>dn.call(e,t),fn=Array.isArray,pn=e=>"[object Map]"===wn(e),vn=e=>"function"==typeof e,gn=e=>"string"==typeof e,mn=e=>"symbol"==typeof e,_n=e=>null!==e&&"object"==typeof e,yn=e=>_n(e)&&vn(e.then)&&vn(e.catch),bn=Object.prototype.toString,wn=e=>bn.call(e),xn=e=>"[object Object]"===wn(e),Sn=e=>gn(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,kn=Vt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=e=>{var t=Object.create(null);return n=>t[n]||(t[n]=e(n))},En=/-(\w)/g,Cn=Tn((e=>e.replace(En,((e,t)=>t?t.toUpperCase():"")))),Mn=/\B([A-Z])/g,On=Tn((e=>e.replace(Mn,"-$1").toLowerCase())),In=Tn((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ln=Tn((e=>e?"on".concat(In(e)):"")),An=(e,t)=>!Object.is(e,t),Nn=(e,t)=>{for(var n=0;n<e.length;n++)e[n](t)},Bn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Rn=e=>{var t=parseFloat(e);return isNaN(t)?e:t};var Pn=fe,zn=ne,Dn=rt,Fn=S,$n=[].sort,jn=[1,2,3];Pn(Pn.P+Pn.F*(Fn((function(){jn.sort(void 0)}))||!Fn((function(){jn.sort(null)}))||!function(){if(en)return Qt;en=1;var e=S;return Qt=function(t,n){return!!t&&e((function(){n?t.call(null,(function(){}),1):t.call(null)}))}}()($n)),"Array",{sort:function(e){return void 0===e?$n.call(Dn(this)):$n.call(Dn(this),zn(e))}});var Wn="\n",Vn="#007aff",Hn=/^([a-z-]+:)?\/\//i,Un=/^data:.*,.*/,qn="wxs://",Yn="json://",Xn="renderjsModules",Zn="onThemeChange",Gn=0;function Kn(e){var t=Date.now(),n=Gn?t-Gn:0;Gn=t;for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return"[".concat(t,"][").concat(n,"ms][").concat(e,"]:").concat(i.map((e=>JSON.stringify(e))).join(" "))}function Jn(e){return function(e){return 0===e.indexOf("/")}(e)?e:"/"+e}function Qn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){if(e){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t=e.apply(n,i),e=null}return t}}function er(e,t){if(gn(t)){var n=(t=t.replace(/\[(\d+)\]/g,".$1")).split("."),r=n[0];return e||(e={}),1===n.length?e[r]:er(e[r],n.slice(1).join("."))}}function tr(e){return Cn(e.substring(5))}var nr=Qn((()=>{var e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){e.startsWith("data-")&&this.tagName.startsWith("UNI-")&&((this.__uniDataset||(this.__uniDataset={}))[tr(e)]=n);t.call(this,e,n)};var n=e.removeAttribute;e.removeAttribute=function(e){this.__uniDataset&&e.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[tr(e)],n.call(this,e)}}));function rr(e){return un({},e.dataset,e.__uniDataset)}var ir=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function ar(e){return{passive:e}}function or(e){var{id:t,offsetTop:n,offsetLeft:r}=e;return{id:t,dataset:rr(e),offsetTop:n,offsetLeft:r}}function sr(e){if(vn(e))return window.plus?e():void document.addEventListener("plusready",e)}var lr=/(?:Once|Passive|Capture)$/;function ur(e){var t,n;if(lr.test(e))for(t={};n=e.match(lr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0;return[On(e.slice(2)),t]}var cr=(()=>({stop:1,prevent:2,self:4}))(),dr="class",hr="style",fr=".vShow",pr=".vOwnerId",vr=".vRenderjs",gr="change:";var mr=function(){};mr.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}};var _r=mr,yr=["{","}"];var br=/^(?:\d)+/,wr=/^(?:\w)+/;var xr="zh-Hans",Sr="zh-Hant",kr="en",Tr="fr",Er="es",Cr=Object.prototype.hasOwnProperty,Mr=(e,t)=>Cr.call(e,t),Or=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yr;if(!t)return[e];var r=this._caches[e];return r||(r=function(e,t){var[n,r]=t,i=[],a=0,o="";for(;a<e.length;){var s=e[a++];if(s===n){o&&i.push({type:"text",value:o}),o="";var l="";for(s=e[a++];void 0!==s&&s!==r;)l+=s,s=e[a++];var u=s===r,c=br.test(l)?"list":u&&wr.test(l)?"named":"unknown";i.push({value:l,type:c})}else o+=s}return o&&i.push({type:"text",value:o}),i}(e,n),this._caches[e]=r),function(e,t){var n=[],r=0,i=Array.isArray(t)?"list":(a=t,null!==a&&"object"==typeof a?"named":"unknown");var a;if("unknown"===i)return n;for(;r<e.length;){var o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(t[o.value])}r++}return n}(r,t)}};function Ir(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return xr;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?xr:e.indexOf("-hant")>-1?Sr:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?Sr:xr);var n,r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,[kr,Tr,Er]);return r||void 0}}class Lr{constructor(e){var{locale:t,fallbackLocale:n,messages:r,watcher:i,formater:a}=e;this.locale=kr,this.fallbackLocale=kr,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=a||Or,this.messages=r||{},this.setLocale(t||kr),i&&this.watchLocale(i)}setLocale(e){var t=this.locale;this.locale=Ir(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){var t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((e=>{Mr(r,e)||(r[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){var r=this.message;return"string"==typeof t?(t=Ir(t,this.messages))&&(r=this.messages[t]):n=t,Mr(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}function Ar(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}function Nr(){return"undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof window&&window.getLocale?window.getLocale():kr}var Br,Rr=Qn((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));function Pr(){var e;if(!Br&&(e="function"==typeof getApp?weex.requireModule("plus").getLanguage():plus.webview.currentWebview().getStyle().locale,Br=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e=Nr()),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||kr);var i=new Lr({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=(e,t)=>{if("function"!=typeof getApp)a=function(e,t){return i.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,Ar(r,i))),i.t(e,t)}}return a(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>a(e,t),add(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i.add(e,t,n)},watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}(e),Rr())){var t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Br.add(e,__uniConfig.locales[e]))),Br.setLocale(e)}return Br}function zr(e,t,n){return t.reduce(((t,r,i)=>(t[e+r]=n[i],t)),{})}var Dr=Qn((()=>{var e="uni.picker.",t=["done","cancel"];Pr().add(kr,zr(e,t,["Done","Cancel"]),!1),Pr().add(Er,zr(e,t,["OK","Cancelar"]),!1),Pr().add(Tr,zr(e,t,["OK","Annuler"]),!1),Pr().add(xr,zr(e,t,["完成","取消"]),!1),Pr().add(Sr,zr(e,t,["完成","取消"]),!1)})),Fr=Qn((()=>{var e="uni.button.",t=["feedback.title","feedback.send"];Pr().add(kr,zr(e,t,["feedback","send"]),!1),Pr().add(Er,zr(e,t,["realimentación","enviar"]),!1),Pr().add(Tr,zr(e,t,["retour d'information","envoyer"]),!1),Pr().add(xr,zr(e,t,["问题反馈","发送"]),!1),Pr().add(Sr,zr(e,t,["問題反饋","發送"]),!1)}));function $r(e){var t=new _r;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.emit(e,...r)},subscribe(n,r){t[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"once":"on"]("".concat(e,".").concat(n),r)},unsubscribe(n,r){t.off("".concat(e,".").concat(n),r)},subscribeHandler(n,r,i){t.emit("".concat(e,".").concat(n),r,i)}}}var jr="invokeViewApi",Wr="invokeServiceApi",Vr=1,Hr=Object.create(null);function Ur(e,t){return e+"."+t}function qr(e,t,n){t=Ur(e,t),Hr[t]||(Hr[t]=n)}function Yr(e,t){var{id:n,name:r,args:i}=e;r=Ur(t,r);var a=e=>{n&&UniViewJSBridge.publishHandler(jr+"."+n,e)},o=Hr[r];o?o(i,a):a({})}var Xr,Zr=un($r("service"),{invokeServiceMethod:(e,t,n)=>{var{subscribe:r,publishHandler:i}=UniViewJSBridge,a=n?Vr++:0;n&&r(Wr+"."+a,n,!0),i(Wr,{id:a,name:e,args:t})}}),Gr=ar(!0);function Kr(){Xr&&(clearTimeout(Xr),Xr=null)}var Jr,Qr=0,ei=0;function ti(e){if(Kr(),1===e.touches.length){var{pageX:t,pageY:n}=e.touches[0];Qr=t,ei=n,Xr=setTimeout((function(){var t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}}function ni(e){if(Xr){if(1!==e.touches.length)return Kr();var{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Qr)>10||Math.abs(n-ei)>10?Kr():void 0}}function ri(e,t){var n=Number(e);return isNaN(n)?t:n}function ii(){var e=__uniConfig.globalStyle||{},t=ri(e.rpxCalcMaxDeviceWidth,960),n=ri(e.rpxCalcBaseDeviceWidth,375);function r(){var e,r,i,a=(e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,r=e&&90===Math.abs(window.orientation),i=e?Math[r?"max":"min"](screen.width,screen.height):screen.width,Math.min(window.innerWidth,document.documentElement.clientWidth,i)||i);a=a<=t?a:n,document.documentElement.style.fontSize=a/23.4375+"px"}r(),document.addEventListener("DOMContentLoaded",r),window.addEventListener("load",r),window.addEventListener("resize",r)}function ai(){ii(),nr(),window.addEventListener("touchstart",ti,Gr),window.addEventListener("touchmove",ni,Gr),window.addEventListener("touchend",Kr,Gr),window.addEventListener("touchcancel",Kr,Gr)}class oi{constructor(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Jr,!e&&Jr&&(this.index=(Jr.scopes||(Jr.scopes=[])).push(this)-1)}run(e){if(this.active){var t=Jr;try{return Jr=this,e()}finally{Jr=t}}}on(){Jr=this}off(){Jr=this.parent}stop(e){if(this.active){var t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}}}var si,li=e=>{var t=new Set(e);return t.w=0,t.n=0,t},ui=e=>(e.w&fi)>0,ci=e=>(e.n&fi)>0,di=new WeakMap,hi=0,fi=1,pi=Symbol(""),vi=Symbol("");class gi{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jr;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();for(var e=si,t=_i;e;){if(e===this)return;e=e.parent}try{return this.parent=si,si=this,_i=!0,fi=1<<++hi,hi<=30?(e=>{var{deps:t}=e;if(t.length)for(var n=0;n<t.length;n++)t[n].w|=fi})(this):mi(this),this.fn()}finally{hi<=30&&(e=>{var{deps:t}=e;if(t.length){for(var n=0,r=0;r<t.length;r++){var i=t[r];ui(i)&&!ci(i)?i.delete(e):t[n++]=i,i.w&=~fi,i.n&=~fi}t.length=n}})(this),fi=1<<--hi,si=this.parent,_i=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){si===this?this.deferStop=!0:this.active&&(mi(this),this.onStop&&this.onStop(),this.active=!1)}}function mi(e){var{deps:t}=e;if(t.length){for(var n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var _i=!0,yi=[];function bi(){yi.push(_i),_i=!1}function wi(){var e=yi.pop();_i=void 0===e||e}function xi(e,t,n){if(_i&&si){var r=di.get(e);r||di.set(e,r=new Map);var i=r.get(n);i||r.set(n,i=li()),Si(i)}}function Si(e,t){var n=!1;hi<=30?ci(e)||(e.n|=fi,n=!ui(e)):n=!e.has(si),n&&(e.add(si),si.deps.push(e))}function ki(e,t,n,r,i,a){var o=di.get(e);if(o){var s=[];if("clear"===t)s=[...o.values()];else if("length"===n&&fn(e)){var l=Rn(r);o.forEach(((e,t)=>{("length"===t||t>=l)&&s.push(e)}))}else switch(void 0!==n&&s.push(o.get(n)),t){case"add":fn(e)?Sn(n)&&s.push(o.get("length")):(s.push(o.get(pi)),pn(e)&&s.push(o.get(vi)));break;case"delete":fn(e)||(s.push(o.get(pi)),pn(e)&&s.push(o.get(vi)));break;case"set":pn(e)&&s.push(o.get(pi))}if(1===s.length)s[0]&&Ti(s[0]);else{var u=[];for(var c of s)c&&u.push(...c);Ti(li(u))}}}function Ti(e,t){var n=fn(e)?e:[...e];for(var r of n)r.computed&&Ei(r);for(var i of n)i.computed||Ei(i)}function Ei(e,t){(e!==si||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}var Ci=Vt("__proto__,__v_isRef,__isVue"),Mi=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(mn)),Oi=Bi(),Ii=Bi(!1,!0),Li=Bi(!0),Ai=Ni();function Ni(){var e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){for(var e=ya(this),n=0,r=this.length;n<r;n++)xi(e,0,n+"");for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=e[t](...a);return-1===s||!1===s?e[t](...a.map(ya)):s}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){bi();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=ya(this)[t].apply(this,n);return wi(),i}})),e}function Bi(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?ua:la:t?sa:oa).get(n))return n;var a=fn(n);if(!e&&a&&hn(Ai,r))return Reflect.get(Ai,r,i);var o=Reflect.get(n,r,i);return(mn(r)?Mi.has(r):Ci(r))?o:(e||xi(n,0,r),t?o:Ta(o)?a&&Sn(r)?o:o.value:_n(o)?e?fa(o):da(o):o)}}function Ri(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,i){var a=t[n];if(ga(a)&&Ta(a)&&!Ta(r))return!1;if(!e&&(ma(r)||ga(r)||(a=ya(a),r=ya(r)),!fn(t)&&Ta(a)&&!Ta(r)))return a.value=r,!0;var o=fn(t)&&Sn(n)?Number(n)<t.length:hn(t,n),s=Reflect.set(t,n,r,i);return t===ya(i)&&(o?An(r,a)&&ki(t,"set",n,r):ki(t,"add",n,r)),s}}var Pi={get:Oi,set:Ri(),deleteProperty:function(e,t){var n=hn(e,t);e[t];var r=Reflect.deleteProperty(e,t);return r&&n&&ki(e,"delete",t,void 0),r},has:function(e,t){var n=Reflect.has(e,t);return mn(t)&&Mi.has(t)||xi(e,0,t),n},ownKeys:function(e){return xi(e,0,fn(e)?"length":pi),Reflect.ownKeys(e)}},zi={get:Li,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Di=un({},Pi,{get:Ii,set:Ri(!0)}),Fi=e=>e,$i=e=>Reflect.getPrototypeOf(e);function ji(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=ya(e=e.__v_raw),a=ya(t);n||(t!==a&&xi(i,0,t),xi(i,0,a));var{has:o}=$i(i),s=r?Fi:n?xa:wa;return o.call(i,t)?s(e.get(t)):o.call(i,a)?s(e.get(a)):void(e!==i&&e.get(t))}function Wi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=ya(n),i=ya(e);return t||(e!==i&&xi(r,0,e),xi(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function Vi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&xi(ya(e),0,pi),Reflect.get(e,"size",e)}function Hi(e){e=ya(e);var t=ya(this);return $i(t).has.call(t,e)||(t.add(e),ki(t,"add",e,e)),this}function Ui(e,t){t=ya(t);var n=ya(this),{has:r,get:i}=$i(n),a=r.call(n,e);a||(e=ya(e),a=r.call(n,e));var o=i.call(n,e);return n.set(e,t),a?An(t,o)&&ki(n,"set",e,t):ki(n,"add",e,t),this}function qi(e){var t=ya(this),{has:n,get:r}=$i(t),i=n.call(t,e);i||(e=ya(e),i=n.call(t,e)),r&&r.call(t,e);var a=t.delete(e);return i&&ki(t,"delete",e,void 0),a}function Yi(){var e=ya(this),t=0!==e.size,n=e.clear();return t&&ki(e,"clear",void 0,void 0),n}function Xi(e,t){return function(n,r){var i=this,a=i.__v_raw,o=ya(a),s=t?Fi:e?xa:wa;return!e&&xi(o,0,pi),a.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Zi(e,t,n){return function(){var r=this.__v_raw,i=ya(r),a=pn(i),o="entries"===e||e===Symbol.iterator&&a,s="keys"===e&&a,l=r[e](...arguments),u=n?Fi:t?xa:wa;return!t&&xi(i,0,s?vi:pi),{next(){var{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:o?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Gi(e){return function(){return"delete"!==e&&this}}function Ki(){var e={get(e){return ji(this,e)},get size(){return Vi(this)},has:Wi,add:Hi,set:Ui,delete:qi,clear:Yi,forEach:Xi(!1,!1)},t={get(e){return ji(this,e,!1,!0)},get size(){return Vi(this)},has:Wi,add:Hi,set:Ui,delete:qi,clear:Yi,forEach:Xi(!1,!0)},n={get(e){return ji(this,e,!0)},get size(){return Vi(this,!0)},has(e){return Wi.call(this,e,!0)},add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear"),forEach:Xi(!0,!1)},r={get(e){return ji(this,e,!0,!0)},get size(){return Vi(this,!0)},has(e){return Wi.call(this,e,!0)},add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear"),forEach:Xi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Zi(i,!1,!1),n[i]=Zi(i,!0,!1),t[i]=Zi(i,!1,!0),r[i]=Zi(i,!0,!0)})),[e,n,t,r]}var[Ji,Qi,ea,ta]=Ki();function na(e,t){var n=t?e?ta:ea:e?Qi:Ji;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(hn(n,r)&&r in t?n:t,r,i)}var ra={get:na(!1,!1)},ia={get:na(!1,!0)},aa={get:na(!0,!1)},oa=new WeakMap,sa=new WeakMap,la=new WeakMap,ua=new WeakMap;function ca(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>wn(e).slice(8,-1))(e))}function da(e){return ga(e)?e:pa(e,!1,Pi,ra,oa)}function ha(e){return pa(e,!1,Di,ia,sa)}function fa(e){return pa(e,!0,zi,aa,la)}function pa(e,t,n,r,i){if(!_n(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;var a=i.get(e);if(a)return a;var o=ca(e);if(0===o)return e;var s=new Proxy(e,2===o?r:n);return i.set(e,s),s}function va(e){return ga(e)?va(e.__v_raw):!(!e||!e.__v_isReactive)}function ga(e){return!(!e||!e.__v_isReadonly)}function ma(e){return!(!e||!e.__v_isShallow)}function _a(e){return va(e)||ga(e)}function ya(e){var t=e&&e.__v_raw;return t?ya(t):e}function ba(e){return Bn(e,"__v_skip",!0),e}var wa=e=>_n(e)?da(e):e,xa=e=>_n(e)?fa(e):e;function Sa(e){_i&&si&&Si((e=ya(e)).dep||(e.dep=li()))}function ka(e,t){(e=ya(e)).dep&&Ti(e.dep)}function Ta(e){return!(!e||!0!==e.__v_isRef)}function Ea(e){return Ma(e,!1)}function Ca(e){return Ma(e,!0)}function Ma(e,t){return Ta(e)?e:new Oa(e,t)}class Oa{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ya(e),this._value=t?e:wa(e)}get value(){return Sa(this),this._value}set value(e){var t=this.__v_isShallow||ma(e)||ga(e);e=t?e:ya(e),An(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:wa(e),ka(this))}}var Ia,La={get:(e,t,n)=>{return Ta(r=Reflect.get(e,t,n))?r.value:r;var r},set:(e,t,n,r)=>{var i=e[t];return Ta(i)&&!Ta(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Aa(e){return va(e)?e:new Proxy(e,La)}class Na{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[Ia]=!1,this._dirty=!0,this.effect=new gi(e,(()=>{this._dirty||(this._dirty=!0,ka(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){var e=ya(this);return Sa(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ba(e,t,n,r){var i;try{i=r?e(...r):e()}catch(a){Pa(a,t,n)}return i}function Ra(e,t,n,r){if(vn(e)){var i=Ba(e,t,n,r);return i&&yn(i)&&i.catch((e=>{Pa(e,t,n)})),i}for(var a=[],o=0;o<e.length;o++)a.push(Ra(e[o],t,n,r));return a}function Pa(e,t,n){if(t&&t.vnode,t){for(var r=t.parent,i=t.proxy,a=n;r;){var o=r.ec;if(o)for(var s=0;s<o.length;s++)if(!1===o[s](e,i,a))return;r=r.parent}var l=t.appContext.config.errorHandler;if(l)return void Ba(l,null,10,[e,i,a])}!function(e,t,n){e instanceof Error?console.error(e.message+"\n"+e.stack):console.error(e)}(e)}Ia="__v_isReadonly";var za=!1,Da=!1,Fa=[],$a=0,ja=[],Wa=null,Va=0,Ha=Promise.resolve(),Ua=null;function qa(e){var t=Ua||Ha;return e?t.then(this?e.bind(this):e):t}function Ya(e){Fa.length&&Fa.includes(e,za&&e.allowRecurse?$a+1:$a)||(null==e.id?Fa.push(e):Fa.splice(function(e){for(var t=$a+1,n=Fa.length;t<n;){var r=t+n>>>1;Ka(Fa[r])<e?t=r+1:n=r}return t}(e.id),0,e),Xa())}function Xa(){za||Da||(Da=!0,Ua=Ha.then(Qa))}function Za(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:za?$a+1:0;t<Fa.length;t++){var n=Fa[t];n&&n.pre&&(Fa.splice(t,1),t--,n())}}function Ga(e){if(ja.length){var t=[...new Set(ja)];if(ja.length=0,Wa)return void Wa.push(...t);for((Wa=t).sort(((e,t)=>Ka(e)-Ka(t))),Va=0;Va<Wa.length;Va++)Wa[Va]();Wa=null,Va=0}}var Ka=e=>null==e.id?1/0:e.id,Ja=(e,t)=>{var n=Ka(e)-Ka(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Qa(e){Da=!1,za=!0,Fa.sort(Ja);try{for($a=0;$a<Fa.length;$a++){var t=Fa[$a];t&&!1!==t.active&&Ba(t,null,14)}}finally{$a=0,Fa.length=0,Ga(),za=!1,Ua=null,(Fa.length||ja.length)&&Qa()}}function eo(e,t){if(!e.isUnmounted){for(var n=e.vnode.props||tn,r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var o,s=i,l=t.startsWith("update:"),u=l&&t.slice(7);if(u&&u in n){var c="".concat("modelValue"===u?"model":u,"Modifiers"),{number:d,trim:h}=n[c]||tn;h&&(s=i.map((e=>gn(e)?e.trim():e))),d&&(s=i.map(Rn))}var f=n[o=Ln(t)]||n[o=Ln(Cn(t))];!f&&l&&(f=n[o=Ln(On(t))]),f&&Ra(f,e,6,s);var p=n[o+"Once"];if(p){if(e.emitted){if(e.emitted[o])return}else e.emitted={};e.emitted[o]=!0,Ra(p,e,6,s)}}}function to(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;var a=e.emits,o={},s=!1;if(!vn(e)){var l=e=>{var n=to(e,t,!0);n&&(s=!0,un(o,n))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return a||s?(fn(a)?a.forEach((e=>o[e]=null)):un(o,a),_n(e)&&r.set(e,o),o):(_n(e)&&r.set(e,null),null)}function no(e,t){return!(!e||!sn(t))&&(t=t.slice(2).replace(/Once$/,""),hn(e,t[0].toLowerCase()+t.slice(1))||hn(e,On(t))||hn(e,t))}var ro=null,io=null;function ao(e){var t=ro;return ro=e,io=e&&e.type.__scopeId||null,t}function oo(e){var t,n,{type:r,vnode:i,proxy:a,withProxy:o,props:s,propsOptions:[l],slots:u,attrs:c,emit:d,render:h,renderCache:f,data:p,setupState:v,ctx:g,inheritAttrs:m}=e,_=ao(e);try{if(4&i.shapeFlag){var y=o||a;t=js(h.call(y,y,f,s,v,p,g)),n=c}else{var b=r;0,t=js(b.length>1?b(s,{attrs:c,slots:u,emit:d}):b(s,null)),n=r.props?c:so(c)}}catch(k){Pa(k,e,1),t=zs(Ms)}var w=t;if(n&&!1!==m){var x=Object.keys(n),{shapeFlag:S}=w;x.length&&7&S&&(l&&x.some(ln)&&(n=lo(n,l)),w=Fs(w,n))}return i.dirs&&((w=Fs(w)).dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&(w.transition=i.transition),t=w,ao(_),t}var so=e=>{var t;for(var n in e)("class"===n||"style"===n||sn(n))&&((t||(t={}))[n]=e[n]);return t},lo=(e,t)=>{var n={};for(var r in e)ln(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function uo(e,t,n){var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(var i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]&&!no(n,a))return!0}return!1}var co=e=>e.__isSuspense;function ho(e,t){if(Xs){var n=Xs.provides,r=Xs.parent&&Xs.parent.provides;r===n&&(n=Xs.provides=Object.create(r)),n[e]=t}else;}function fo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Xs||ro;if(r){var i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&vn(t)?t.call(r.proxy):t}}function po(e,t){return mo(e,null,t)}var vo={};function go(e,t,n){return mo(e,t,n)}function mo(e,t){var n,r,{immediate:i,deep:a,flush:o,onTrack:s,onTrigger:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn,u=Xs,c=!1,d=!1;if(Ta(e)?(n=()=>e.value,c=ma(e)):va(e)?(n=()=>e,a=!0):fn(e)?(d=!0,c=e.some((e=>va(e)||ma(e))),n=()=>e.map((e=>Ta(e)?e.value:va(e)?bo(e):vn(e)?Ba(e,u,2):void 0))):n=vn(e)?t?()=>Ba(e,u,2):()=>{if(!u||!u.isUnmounted)return r&&r(),Ra(e,u,3,[p])}:rn,t&&a){var h=n;n=()=>bo(h())}var f,p=e=>{r=y.onStop=()=>{Ba(e,u,4)}};if(Qs){if(p=rn,t?i&&Ra(t,u,3,[n(),d?[]:void 0,p]):n(),"sync"!==o)return rn;var v=ll();f=v.__watcherHandles||(v.__watcherHandles=[])}var g,m=d?new Array(e.length).fill(vo):vo,_=()=>{if(y.active)if(t){var e=y.run();(a||c||(d?e.some(((e,t)=>An(e,m[t]))):An(e,m)))&&(r&&r(),Ra(t,u,3,[e,m===vo?void 0:d&&m[0]===vo?[]:m,p]),m=e)}else y.run()};_.allowRecurse=!!t,"sync"===o?g=_:"post"===o?g=()=>ws(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),g=()=>Ya(_));var y=new gi(n,g);t?i?_():m=y.run():"post"===o?ws(y.run.bind(y),u&&u.suspense):y.run();var b=()=>{y.stop(),u&&u.scope&&cn(u.scope.effects,y)};return f&&f.push(b),b}function _o(e,t,n){var r,i=this.proxy,a=gn(e)?e.includes(".")?yo(i,e):()=>i[e]:e.bind(i,i);vn(t)?r=t:(r=t.handler,n=t);var o=Xs;Gs(this);var s=mo(a,r.bind(i),n);return o?Gs(o):Ks(),s}function yo(e,t){var n=t.split(".");return()=>{for(var t=e,r=0;r<n.length&&t;r++)t=t[n[r]];return t}}function bo(e,t){if(!_n(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Ta(e))bo(e.value,t);else if(fn(e))for(var n=0;n<e.length;n++)bo(e[n],t);else if("[object Set]"===wn(e)||pn(e))e.forEach((e=>{bo(e,t)}));else if(xn(e))for(var r in e)bo(e[r],t);return e}var wo=e=>!!e.type.__asyncLoader,xo=e=>e.type.__isKeepAlive;function So(e,t){To(e,"a",t)}function ko(e,t){To(e,"da",t)}function To(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xs,r=e.__wdc||(e.__wdc=()=>{for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Co(t,r,n),n)for(var i=n.parent;i&&i.parent;)xo(i.parent.vnode)&&Eo(r,t,n,i),i=i.parent}function Eo(e,t,n,r){var i=Co(t,e,r,!0);Bo((()=>{cn(r[t],i)}),n)}function Co(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xs,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=function(){if(!n.isUnmounted){bi(),Gs(n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=Ra(t,n,e,i);return Ks(),wi(),o}});return r?i.unshift(a):i.push(a),a}}var Mo=e=>function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xs;return(!Qs||"sp"===e)&&Co(e,(function(){return t(...arguments)}),n)},Oo=Mo("bm"),Io=Mo("m"),Lo=Mo("bu"),Ao=Mo("u"),No=Mo("bum"),Bo=Mo("um"),Ro=Mo("sp"),Po=Mo("rtg"),zo=Mo("rtc");function Do(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xs;Co("ec",e,t)}function Fo(e,t){var n=ro;if(null===n)return e;for(var r=rl(n)||n.proxy,i=e.dirs||(e.dirs=[]),a=0;a<t.length;a++){var[o,s,l,u=tn]=t[a];o&&(vn(o)&&(o={mounted:o,updated:o}),o.deep&&bo(s),i.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function $o(e,t,n,r){for(var i=e.dirs,a=t&&t.dirs,o=0;o<i.length;o++){var s=i[o];a&&(s.oldValue=a[o].value);var l=s.dir[r];l&&(bi(),Ra(l,n,8,[e.el,s,e,t]),wi())}}var jo=Symbol(),Wo=e=>e?Js(e)?rl(e)||e.proxy:Wo(e.parent):null,Vo=un(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Wo(e.parent),$root:e=>Wo(e.root),$emit:e=>e.emit,$options:e=>Go(e),$forceUpdate:e=>e.f||(e.f=()=>Ya(e.update)),$nextTick:e=>e.n||(e.n=qa.bind(e.proxy)),$watch:e=>_o.bind(e)}),Ho=(e,t)=>e!==tn&&!e.__isScriptSetup&&hn(e,t),Uo={get(e,t){var n,{_:r}=e,{ctx:i,setupState:a,data:o,props:s,accessCache:l,type:u,appContext:c}=r;if("$"!==t[0]){var d=l[t];if(void 0!==d)switch(d){case 1:return a[t];case 2:return o[t];case 4:return i[t];case 3:return s[t]}else{if(Ho(a,t))return l[t]=1,a[t];if(o!==tn&&hn(o,t))return l[t]=2,o[t];if((n=r.propsOptions[0])&&hn(n,t))return l[t]=3,s[t];if(i!==tn&&hn(i,t))return l[t]=4,i[t];qo&&(l[t]=0)}}var h,f,p=Vo[t];return p?("$attrs"===t&&xi(r,0,t),p(r)):(h=u.__cssModules)&&(h=h[t])?h:i!==tn&&hn(i,t)?(l[t]=4,i[t]):(f=c.config.globalProperties,hn(f,t)?f[t]:void 0)},set(e,t,n){var{_:r}=e,{data:i,setupState:a,ctx:o}=r;return Ho(a,t)?(a[t]=n,!0):i!==tn&&hn(i,t)?(i[t]=n,!0):!hn(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(o[t]=n,!0))},has(e,t){var n,{_:{data:r,setupState:i,accessCache:a,ctx:o,appContext:s,propsOptions:l}}=e;return!!a[t]||r!==tn&&hn(r,t)||Ho(i,t)||(n=l[0])&&hn(n,t)||hn(o,t)||hn(Vo,t)||hn(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:hn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qo=!0;function Yo(e){var t=Go(e),n=e.proxy,r=e.ctx;qo=!1,t.beforeCreate&&Xo(t.beforeCreate,e,"bc");var{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:g,beforeDestroy:m,beforeUnmount:_,destroyed:y,unmounted:b,render:w,renderTracked:x,renderTriggered:S,errorCaptured:k,serverPrefetch:T,expose:E,inheritAttrs:C,components:M,directives:O,filters:I}=t;if(u&&function(e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];fn(e)&&(e=es(e));var r=function(){var r,a=e[i];Ta(r=_n(a)?"default"in a?fo(a.from||i,a.default,!0):fo(a.from||i):fo(a))&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[i]=r};for(var i in e)r()}(u,r,null,e.appContext.config.unwrapInjectedRef),o)for(var L in o){var A=o[L];vn(A)&&(r[L]=A.bind(n))}if(i){var N=i.call(n,n);_n(N)&&(e.data=da(N))}if(qo=!0,a){var B=function(e){var t=a[e],i=vn(t)?t.bind(n,n):vn(t.get)?t.get.bind(n,n):rn,o=!vn(t)&&vn(t.set)?t.set.bind(n):rn,s=al({get:i,set:o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})};for(var R in a)B(R)}if(s)for(var P in s)Zo(s[P],r,n,P);if(l){var z=vn(l)?l.call(n):l;Reflect.ownKeys(z).forEach((e=>{ho(e,z[e])}))}function D(e,t){fn(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(c&&Xo(c,e,"c"),D(Oo,d),D(Io,h),D(Lo,f),D(Ao,p),D(So,v),D(ko,g),D(Do,k),D(zo,x),D(Po,S),D(No,_),D(Bo,b),D(Ro,T),fn(E))if(E.length){var F=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(F,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===rn&&(e.render=w),null!=C&&(e.inheritAttrs=C),M&&(e.components=M),O&&(e.directives=O)}function Xo(e,t,n){Ra(fn(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Zo(e,t,n,r){var i=r.includes(".")?yo(n,r):()=>n[r];if(gn(e)){var a=t[e];vn(a)&&go(i,a)}else if(vn(e))go(i,e.bind(n));else if(_n(e))if(fn(e))e.forEach((e=>Zo(e,t,n,r)));else{var o=vn(e.handler)?e.handler.bind(n):t[e.handler];vn(o)&&go(i,o,e)}}function Go(e){var t,n=e.type,{mixins:r,extends:i}=n,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(n);return l?t=l:a.length||r||i?(t={},a.length&&a.forEach((e=>Ko(t,e,s,!0))),Ko(t,n,s)):t=n,_n(n)&&o.set(n,t),t}function Ko(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],{mixins:i,extends:a}=t;for(var o in a&&Ko(e,a,n,!0),i&&i.forEach((t=>Ko(e,t,n,!0))),t)if(r&&"expose"===o);else{var s=Jo[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Jo={data:Qo,props:ns,emits:ns,methods:ns,computed:ns,beforeCreate:ts,created:ts,beforeMount:ts,mounted:ts,beforeUpdate:ts,updated:ts,beforeDestroy:ts,beforeUnmount:ts,destroyed:ts,unmounted:ts,activated:ts,deactivated:ts,errorCaptured:ts,serverPrefetch:ts,components:ns,directives:ns,watch:function(e,t){if(!e)return t;if(!t)return e;var n=un(Object.create(null),e);for(var r in t)n[r]=ts(e[r],t[r]);return n},provide:Qo,inject:function(e,t){return ns(es(e),es(t))}};function Qo(e,t){return t?e?function(){return un(vn(e)?e.call(this,this):e,vn(t)?t.call(this,this):t)}:t:e}function es(e){if(fn(e)){for(var t={},n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ts(e,t){return e?[...new Set([].concat(e,t))]:t}function ns(e,t){return e?un(un(Object.create(null),e),t):t}function rs(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={},a={};for(var o in Bn(a,Ns,1),e.propsDefaults=Object.create(null),is(e,t,i,a),e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:ha(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function is(e,t,n,r){var i,[a,o]=e.propsOptions,s=!1;if(t)for(var l in t)if(!kn(l)){var u=t[l],c=void 0;a&&hn(a,c=Cn(l))?o&&o.includes(c)?(i||(i={}))[c]=u:n[c]=u:no(e.emitsOptions,l)||l in r&&u===r[l]||(r[l]=u,s=!0)}if(o)for(var d=ya(n),h=i||tn,f=0;f<o.length;f++){var p=o[f];n[p]=as(a,d,p,h[p],e,!hn(h,p))}return s}function as(e,t,n,r,i,a){var o=e[n];if(null!=o){var s=hn(o,"default");if(s&&void 0===r){var l=o.default;if(o.type!==Function&&vn(l)){var{propsDefaults:u}=i;n in u?r=u[n]:(Gs(i),r=u[n]=l.call(null,t),Ks())}else r=l}o[0]&&(a&&!s?r=!1:!o[1]||""!==r&&r!==On(n)||(r=!0))}return r}function os(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.propsCache,i=r.get(e);if(i)return i;var a=e.props,o={},s=[],l=!1;if(!vn(e)){var u=e=>{l=!0;var[n,r]=os(e,t,!0);un(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return _n(e)&&r.set(e,nn),nn;if(fn(a))for(var c=0;c<a.length;c++){var d=Cn(a[c]);ss(d)&&(o[d]=tn)}else if(a)for(var h in a){var f=Cn(h);if(ss(f)){var p=a[h],v=o[f]=fn(p)||vn(p)?{type:p}:Object.assign({},p);if(v){var g=cs(Boolean,v.type),m=cs(String,v.type);v[0]=g>-1,v[1]=m<0||g<m,(g>-1||hn(v,"default"))&&s.push(f)}}}var _=[o,s];return _n(e)&&r.set(e,_),_}function ss(e){return"$"!==e[0]}function ls(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function us(e,t){return ls(e)===ls(t)}function cs(e,t){return fn(t)?t.findIndex((t=>us(t,e))):vn(t)&&us(t,e)?0:-1}var ds=e=>"_"===e[0]||"$stable"===e,hs=e=>fn(e)?e.map(js):[js(e)],fs=(e,t,n)=>{if(t._n)return t;var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ro;if(!t)return e;if(e._n)return e;var n=function(){n._d&&Is(-1);var r,i=ao(t);try{r=e(...arguments)}finally{ao(i),n._d&&Is(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return hs(t(...arguments))}),n);return r._c=!1,r},ps=(e,t,n)=>{var r=e._ctx,i=function(){if(ds(a))return"continue";var n=e[a];if(vn(n))t[a]=fs(0,n,r);else if(null!=n){var i=hs(n);t[a]=()=>i}};for(var a in e)i()},vs=(e,t)=>{var n=hs(t);e.slots.default=()=>n},gs=(e,t)=>{if(32&e.vnode.shapeFlag){var n=t._;n?(e.slots=ya(t),Bn(t,"_",n)):ps(t,e.slots={})}else e.slots={},t&&vs(e,t);Bn(e.slots,Ns,1)};function ms(){return{app:null,config:{isNativeTag:an,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var _s=0;function ys(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;vn(n)||(n=Object.assign({},n)),null==r||_n(r)||(r=null);var i=ms(),a=new Set,o=!1,s=i.app={_uid:_s++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ul,get config(){return i.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.has(e)||(e&&vn(e.install)?(a.add(e),e.install(s,...n)):vn(e)&&(a.add(e),e(s,...n))),s},mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),s),component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(a,l,u){if(!o){var c=zs(n,r);return c.appContext=i,l&&t?t(c,a):e(c,a,u),o=!0,s._container=a,a.__vue_app__=s,rl(c.component)||c.component.proxy}},unmount(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}function bs(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(fn(e))e.forEach(((e,a)=>bs(e,t&&(fn(t)?t[a]:t),n,r,i)));else if(!wo(r)||i){var a=4&r.shapeFlag?rl(r.component)||r.component.proxy:r.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===tn?s.refs={}:s.refs,d=s.setupState;if(null!=u&&u!==l&&(gn(u)?(c[u]=null,hn(d,u)&&(d[u]=null)):Ta(u)&&(u.value=null)),vn(l))Ba(l,s,12,[o,c]);else{var h=gn(l),f=Ta(l);if(h||f){var p=()=>{if(e.f){var t=h?hn(d,l)?d[l]:c[l]:l.value;i?fn(t)&&cn(t,a):fn(t)?t.includes(a)||t.push(a):h?(c[l]=[a],hn(d,l)&&(d[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else h?(c[l]=o,hn(d,l)&&(d[l]=o)):f&&(l.value=o,e.k&&(c[e.k]=o))};o?(p.id=-1,ws(p,n)):p()}}}}var ws=function(e,t){var n;t&&t.pendingBranch?fn(e)?t.effects.push(...e):t.effects.push(e):(fn(n=e)?ja.push(...n):Wa&&Wa.includes(n,n.allowRecurse?Va+1:Va)||ja.push(n),Xa())};function xs(e){return function(e,t){(Jt||(Jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:{})).__VUE__=!0;var n,r,{insert:i,remove:a,patchProp:o,createElement:s,createText:l,createComment:u,setText:c,setElementText:d,parentNode:h,nextSibling:f,setScopeId:p=rn,insertStaticContent:v}=e,g=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!As(e,t)&&(r=H(e),F(e,i,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);var{type:u,ref:c,shapeFlag:d}=t;switch(u){case Cs:m(e,t,n,r);break;case Ms:_(e,t,n,r);break;case Os:null==e&&y(t,n,r,o);break;case Es:O(e,t,n,r,i,a,o,s,l);break;default:1&d?x(e,t,n,r,i,a,o,s,l):6&d?I(e,t,n,r,i,a,o,s,l):(64&d||128&d)&&u.process(e,t,n,r,i,a,o,s,l,q)}null!=c&&i&&bs(c,e&&e.ref,a,t||e,!t)}},m=(e,t,n,r)=>{if(null==e)i(t.el=l(t.children),n,r);else{var a=t.el=e.el;t.children!==e.children&&c(a,t.children)}},_=(e,t,n,r)=>{null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},b=(e,t,n)=>{for(var r,{el:a,anchor:o}=e;a&&a!==o;)r=f(a),i(a,t,n),a=r;i(o,t,n)},w=e=>{for(var t,{el:n,anchor:r}=e;n&&n!==r;)t=f(n),a(n),n=t;a(r)},x=(e,t,n,r,i,a,o,s,l)=>{o=o||"svg"===t.type,null==e?S(t,n,r,i,a,o,s,l):E(e,t,i,a,o,s,l)},S=(e,t,n,r,a,l,u,c)=>{var h,f,{type:p,props:v,shapeFlag:g,transition:m,dirs:_}=e;if(h=e.el=s(e.type,l,v&&v.is,v),8&g?d(h,e.children):16&g&&T(e.children,h,null,r,a,l&&"foreignObject"!==p,u,c),_&&$o(e,null,r,"created"),v){for(var y in v)"value"===y||kn(y)||o(h,y,null,v[y],l,e.children,r,a,V);"value"in v&&o(h,"value",null,v.value),(f=v.onVnodeBeforeMount)&&Us(f,r,e)}k(h,e,e.scopeId,u,r),Object.defineProperty(h,"__vueParentComponent",{value:r,enumerable:!1}),_&&$o(e,null,r,"beforeMount");var b=(!a||a&&!a.pendingBranch)&&m&&!m.persisted;b&&m.beforeEnter(h),i(h,t,n),((f=v&&v.onVnodeMounted)||b||_)&&ws((()=>{f&&Us(f,r,e),b&&m.enter(h),_&&$o(e,null,r,"mounted")}),a)},k=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(var a=0;a<r.length;a++)p(e,r[a]);if(i&&t===i.subTree){var o=i.vnode;k(e,o,o.scopeId,o.slotScopeIds,i.parent)}},T=function(e,t,n,r,i,a,o,s){for(var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;l<e.length;l++){var u=e[l]=s?Ws(e[l]):js(e[l]);g(null,u,t,n,r,i,a,o,s)}},E=(e,t,n,r,i,a,s)=>{var l=t.el=e.el,{patchFlag:u,dynamicChildren:c,dirs:h}=t;u|=16&e.patchFlag;var f,p=e.props||tn,v=t.props||tn;n&&Ss(n,!1),(f=v.onVnodeBeforeUpdate)&&Us(f,n,t,e),h&&$o(t,e,n,"beforeUpdate"),n&&Ss(n,!0);var g=i&&"foreignObject"!==t.type;if(c?C(e.dynamicChildren,c,l,n,r,g,a):s||R(e,t,l,null,n,r,g,a,!1),u>0){if(16&u)M(l,t,p,v,n,r,i);else if(2&u&&p.class!==v.class&&o(l,"class",null,v.class,i),4&u&&o(l,"style",p.style,v.style,i),8&u)for(var m=t.dynamicProps,_=0;_<m.length;_++){var y=m[_],b=p[y],w=v[y];w===b&&"value"!==y||o(l,y,b,w,i,e.children,n,r,V)}1&u&&e.children!==t.children&&d(l,t.children)}else s||null!=c||M(l,t,p,v,n,r,i);((f=v.onVnodeUpdated)||h)&&ws((()=>{f&&Us(f,n,t,e),h&&$o(t,e,n,"updated")}),r)},C=(e,t,n,r,i,a,o)=>{for(var s=0;s<t.length;s++){var l=e[s],u=t[s],c=l.el&&(l.type===Es||!As(l,u)||70&l.shapeFlag)?h(l.el):n;g(l,u,c,null,r,i,a,o,!0)}},M=(e,t,n,r,i,a,s)=>{if(n!==r){if(n!==tn)for(var l in n)kn(l)||l in r||o(e,l,n[l],null,s,t.children,i,a,V);for(var u in r)if(!kn(u)){var c=r[u],d=n[u];c!==d&&"value"!==u&&o(e,u,d,c,s,t.children,i,a,V)}"value"in r&&o(e,"value",n.value,r.value)}},O=(e,t,n,r,a,o,s,u,c)=>{var d=t.el=e?e.el:l(""),h=t.anchor=e?e.anchor:l(""),{patchFlag:f,dynamicChildren:p,slotScopeIds:v}=t;v&&(u=u?u.concat(v):v),null==e?(i(d,n,r),i(h,n,r),T(t.children,n,h,a,o,s,u,c)):f>0&&64&f&&p&&e.dynamicChildren?(C(e.dynamicChildren,p,n,a,o,s,u),(null!=t.key||a&&t===a.subTree)&&ks(e,t,!0)):R(e,t,n,h,a,o,s,u,c)},I=(e,t,n,r,i,a,o,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,o,l):L(t,n,r,i,a,o,l):A(e,t,l)},L=(e,t,n,r,i,a,o)=>{var s=e.component=function(e,t,n){var r=e.type,i=(t?t.appContext:e.appContext)||qs,a={uid:Ys++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new oi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:os(r,i),emitsOptions:to(r,i),emit:null,emitted:null,propsDefaults:tn,inheritAttrs:r.inheritAttrs,ctx:tn,data:tn,props:tn,attrs:tn,slots:tn,refs:tn,setupState:tn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};a.ctx={_:a},a.root=t?t.root:a,a.emit=eo.bind(null,a),e.ce&&e.ce(a);return a}(e,r,i);if(xo(e)&&(s.ctx.renderer=q),function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Qs=t;var{props:n,children:r}=e.vnode,i=Js(e);rs(e,n,i,t),gs(e,r);var a=i?el(e,t):void 0;Qs=!1}(s),s.asyncDep){if(i&&i.registerDep(s,N),!e.el){var l=s.subTree=zs(Ms);_(null,l,t,n)}}else N(s,e,t,n,i,a,o)},A=(e,t,n)=>{var r,i,a=t.component=e.component;if(function(e,t,n){var{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==o&&(r?!o||uo(r,o,u):!!o);if(1024&l)return!0;if(16&l)return r?uo(r,o,u):!!o;if(8&l)for(var c=t.dynamicProps,d=0;d<c.length;d++){var h=c[d];if(o[h]!==r[h]&&!no(u,h))return!0}return!1}(e,t,n)){if(a.asyncDep&&!a.asyncResolved)return void B(a,t,n);a.next=t,r=a.update,(i=Fa.indexOf(r))>$a&&Fa.splice(i,1),a.update()}else t.el=e.el,a.vnode=t},N=(e,t,n,i,a,o,s)=>{var l=()=>{if(e.isMounted){var l,{next:u,bu:c,u:d,parent:f,vnode:p}=e,v=u;Ss(e,!1),u?(u.el=p.el,B(e,u,s)):u=p,c&&Nn(c),(l=u.props&&u.props.onVnodeBeforeUpdate)&&Us(l,f,u,p),Ss(e,!0);var m=oo(e),_=e.subTree;e.subTree=m,g(_,m,h(_.el),H(_),e,a,o),u.el=m.el,null===v&&function(e,t){for(var{vnode:n,parent:r}=e;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}(e,m.el),d&&ws(d,a),(l=u.props&&u.props.onVnodeUpdated)&&ws((()=>Us(l,f,u,p)),a)}else{var y,{el:b,props:w}=t,{bm:x,m:S,parent:k}=e,T=wo(t);if(Ss(e,!1),x&&Nn(x),!T&&(y=w&&w.onVnodeBeforeMount)&&Us(y,k,t),Ss(e,!0),b&&r){var E=()=>{e.subTree=oo(e),r(b,e.subTree,e,a,null)};T?t.type.__asyncLoader().then((()=>!e.isUnmounted&&E())):E()}else{var C=e.subTree=oo(e);g(null,C,n,i,e,a,o),t.el=C.el}if(S&&ws(S,a),!T&&(y=w&&w.onVnodeMounted)){var M=t;ws((()=>Us(y,k,M)),a)}(256&t.shapeFlag||k&&wo(k.vnode)&&256&k.vnode.shapeFlag)&&e.a&&ws(e.a,a),e.isMounted=!0,t=n=i=null}},u=e.effect=new gi(l,(()=>Ya(c)),e.scope),c=e.update=()=>u.run();c.id=e.uid,Ss(e,!0),c()},B=(e,t,n)=>{t.component=e;var r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){var{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=ya(i),[l]=e.propsOptions,u=!1;if(!(r||o>0)||16&o){var c;for(var d in is(e,t,i,a)&&(u=!0),s)t&&(hn(t,d)||(c=On(d))!==d&&hn(t,c))||(l?!n||void 0===n[d]&&void 0===n[c]||(i[d]=as(l,s,d,void 0,e,!0)):delete i[d]);if(a!==s)for(var h in a)t&&hn(t,h)||(delete a[h],u=!0)}else if(8&o)for(var f=e.vnode.dynamicProps,p=0;p<f.length;p++){var v=f[p];if(!no(e.emitsOptions,v)){var g=t[v];if(l)if(hn(a,v))g!==a[v]&&(a[v]=g,u=!0);else{var m=Cn(v);i[m]=as(l,s,m,g,e,!1)}else g!==a[v]&&(a[v]=g,u=!0)}}u&&ki(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{var{vnode:r,slots:i}=e,a=!0,o=tn;if(32&r.shapeFlag){var s=t._;s?n&&1===s?a=!1:(un(i,t),n||1!==s||delete i._):(a=!t.$stable,ps(t,i)),o=t}else t&&(vs(e,t),o={default:1});if(a)for(var l in i)ds(l)||l in o||delete i[l]})(e,t.children,n),bi(),Za(),wi()},R=function(e,t,n,r,i,a,o,s){var l=arguments.length>8&&void 0!==arguments[8]&&arguments[8],u=e&&e.children,c=e?e.shapeFlag:0,h=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(128&f)return void z(u,h,n,r,i,a,o,s,l);if(256&f)return void P(u,h,n,r,i,a,o,s,l)}8&p?(16&c&&V(u,i,a),h!==u&&d(n,h)):16&c?16&p?z(u,h,n,r,i,a,o,s,l):V(u,i,a,!0):(8&c&&d(n,""),16&p&&T(h,n,r,i,a,o,s,l))},P=(e,t,n,r,i,a,o,s,l)=>{t=t||nn;var u,c=(e=e||nn).length,d=t.length,h=Math.min(c,d);for(u=0;u<h;u++){var f=t[u]=l?Ws(t[u]):js(t[u]);g(e[u],f,n,null,i,a,o,s,l)}c>d?V(e,i,a,!0,!1,h):T(t,n,r,i,a,o,s,l,h)},z=(e,t,n,r,i,a,o,s,l)=>{for(var u=0,c=t.length,d=e.length-1,h=c-1;u<=d&&u<=h;){var f=e[u],p=t[u]=l?Ws(t[u]):js(t[u]);if(!As(f,p))break;g(f,p,n,null,i,a,o,s,l),u++}for(;u<=d&&u<=h;){var v=e[d],m=t[h]=l?Ws(t[h]):js(t[h]);if(!As(v,m))break;g(v,m,n,null,i,a,o,s,l),d--,h--}if(u>d){if(u<=h)for(var _=h+1,y=_<c?t[_].el:r;u<=h;)g(null,t[u]=l?Ws(t[u]):js(t[u]),n,y,i,a,o,s,l),u++}else if(u>h)for(;u<=d;)F(e[u],i,a,!0),u++;else{var b,w=u,x=u,S=new Map;for(u=x;u<=h;u++){var k=t[u]=l?Ws(t[u]):js(t[u]);null!=k.key&&S.set(k.key,u)}var T=0,E=h-x+1,C=!1,M=0,O=new Array(E);for(u=0;u<E;u++)O[u]=0;for(u=w;u<=d;u++){var I=e[u];if(T>=E)F(I,i,a,!0);else{var L=void 0;if(null!=I.key)L=S.get(I.key);else for(b=x;b<=h;b++)if(0===O[b-x]&&As(I,t[b])){L=b;break}void 0===L?F(I,i,a,!0):(O[L-x]=u+1,L>=M?M=L:C=!0,g(I,t[L],n,null,i,a,o,s,l),T++)}}var A=C?function(e){var t,n,r,i,a,o=e.slice(),s=[0],l=e.length;for(t=0;t<l;t++){var u=e[t];if(0!==u){if(e[n=s[s.length-1]]<u){o[t]=n,s.push(t);continue}for(r=0,i=s.length-1;r<i;)e[s[a=r+i>>1]]<u?r=a+1:i=a;u<e[s[r]]&&(r>0&&(o[t]=s[r-1]),s[r]=t)}}r=s.length,i=s[r-1];for(;r-- >0;)s[r]=i,i=o[i];return s}(O):nn;for(b=A.length-1,u=E-1;u>=0;u--){var N=x+u,B=t[N],R=N+1<c?t[N+1].el:r;0===O[u]?g(null,B,n,R,i,a,o,s,l):C&&(b<0||u!==A[b]?D(B,n,R,2):b--)}}},D=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,{el:o,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)D(e.component.subTree,t,n,r);else if(128&c)e.suspense.move(t,n,r);else if(64&c)s.move(e,t,n,q);else if(s!==Es){if(s!==Os)if(2!==r&&1&c&&l)if(0===r)l.beforeEnter(o),i(o,t,n),ws((()=>l.enter(o)),a);else{var{leave:d,delayLeave:h,afterLeave:f}=l,p=()=>i(o,t,n),v=()=>{d(o,(()=>{p(),f&&f()}))};h?h(o,p,v):v()}else i(o,t,n);else b(e,t,n)}else{i(o,t,n);for(var g=0;g<u.length;g++)D(u[g],t,n,r);i(e.anchor,t,n)}},F=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],{type:a,props:o,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:h}=e;if(null!=s&&bs(s,null,n,e,!0),256&c)t.ctx.deactivate(e);else{var f,p=1&c&&h,v=!wo(e);if(v&&(f=o&&o.onVnodeBeforeUnmount)&&Us(f,t,e),6&c)W(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);p&&$o(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,i,q,r):u&&(a!==Es||d>0&&64&d)?V(u,t,n,!1,!0):(a===Es&&384&d||!i&&16&c)&&V(l,t,n),r&&$(e)}(v&&(f=o&&o.onVnodeUnmounted)||p)&&ws((()=>{f&&Us(f,t,e),p&&$o(e,null,t,"unmounted")}),n)}},$=e=>{var{type:t,el:n,anchor:r,transition:i}=e;if(t!==Es)if(t!==Os){var o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var{leave:s,delayLeave:l}=i,u=()=>s(n,o);l?l(e.el,o,u):u()}else o()}else w(e);else j(n,r)},j=(e,t)=>{for(var n;e!==t;)n=f(e),a(e),e=n;a(t)},W=(e,t,n)=>{var{bum:r,scope:i,update:a,subTree:o,um:s}=e;r&&Nn(r),i.stop(),a&&(a.active=!1,F(o,e,t,n)),s&&ws(s,t),ws((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;a<e.length;a++)F(e[a],t,n,r,i)},H=e=>6&e.shapeFlag?H(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),U=(e,t,n)=>{if(null==e)t._vnode&&F(t._vnode,null,null,!0);else{var r=t.__vueParent;g(t._vnode||null,e,t,null,r,null,n)}Za(),t._vnode=e},q={p:g,um:F,m:D,r:$,mt:L,mc:T,pc:R,pbc:C,n:H,o:e};t&&([n,r]=t(q));return{render:U,hydrate:n,createApp:ys(U,n)}}(e)}function Ss(e,t){var{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function ks(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.children,i=t.children;if(fn(r)&&fn(i))for(var a=0;a<r.length;a++){var o=r[a],s=i[a];1&s.shapeFlag&&!s.dynamicChildren&&((s.patchFlag<=0||32===s.patchFlag)&&((s=i[a]=Ws(i[a])).el=o.el),n||ks(o,s)),s.type===Cs&&(s.el=o.el)}}var Ts=e=>e.__isTeleport,Es=Symbol(void 0),Cs=Symbol(void 0),Ms=Symbol(void 0),Os=Symbol(void 0);function Is(e){e}function Ls(e){return!!e&&!0===e.__v_isVNode}function As(e,t){return e.type===t.type&&e.key===t.key}var Ns="__vInternal",Bs=e=>{var{key:t}=e;return null!=t?t:null},Rs=e=>{var{ref:t,ref_key:n,ref_for:r}=e;return null!=t?gn(t)||Ta(t)||vn(t)?{i:ro,r:t,k:n,f:!!r}:t:null};function Ps(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===Es?0:1,o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bs(t),ref:t&&Rs(t),scopeId:io,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ro};return o?(Vs(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=gn(n)?8:16),s}var zs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==jo||(e=Ms);if(Ls(e)){var o=Fs(e,t,!0);return n&&Vs(o,n),o.patchFlag|=-2,o}il(e)&&(e=e.__vccOpts);if(t){t=Ds(t);var{class:s,style:l}=t;s&&!gn(s)&&(t.class=Zt(s)),_n(l)&&(_a(l)&&!fn(l)&&(l=un({},l)),t.style=Ht(l))}var u=gn(e)?1:co(e)?128:Ts(e)?64:_n(e)?4:vn(e)?2:0;return Ps(e,t,n,r,i,u,a,!0)};function Ds(e){return e?_a(e)||Ns in e?un({},e):e:null}function Fs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{props:r,ref:i,patchFlag:a,children:o}=e,s=t?Hs(r||{},t):r,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Bs(s),ref:t&&t.ref?n&&i?fn(i)?i.concat(Rs(t)):[i,Rs(t)]:Rs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Es?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fs(e.ssContent),ssFallback:e.ssFallback&&Fs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx};return l}function $s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return zs(Cs,null,e,t)}function js(e){return null==e||"boolean"==typeof e?zs(Ms):fn(e)?zs(Es,null,e.slice()):"object"==typeof e?Ws(e):zs(Cs,null,String(e))}function Ws(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Fs(e)}function Vs(e,t){var n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(fn(t))n=16;else if("object"==typeof t){if(65&r){var i=t.default;return void(i&&(i._c&&(i._d=!1),Vs(e,i()),i._c&&(i._d=!0)))}n=32;var a=t._;a||Ns in t?3===a&&ro&&(1===ro.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=ro}else vn(t)?(t={default:t,_ctx:ro},n=32):(t=String(t),64&r?(n=16,t=[$s(t)]):n=8);e.children=t,e.shapeFlag|=n}function Hs(){for(var e={},t=0;t<arguments.length;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];for(var r in n)if("class"===r)e.class!==n.class&&(e.class=Zt([e.class,n.class]));else if("style"===r)e.style=Ht([e.style,n.style]);else if(sn(r)){var i=e[r],a=n[r];!a||i===a||fn(i)&&i.includes(a)||(e[r]=i?[].concat(i,a):a)}else""!==r&&(e[r]=n[r])}return e}function Us(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Ra(e,t,7,[n,r])}var qs=ms(),Ys=0;var Xs=null,Zs=()=>Xs||ro,Gs=e=>{Xs=e,e.scope.on()},Ks=()=>{Xs&&Xs.scope.off(),Xs=null};function Js(e){return 4&e.vnode.shapeFlag}var Qs=!1;function el(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=ba(new Proxy(e.ctx,Uo));var{setup:r}=n;if(r){var i=e.setupContext=r.length>1?function(e){var t,n=t=>{e.exposed=t||{}};return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(xi(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:n}}(e):null;Gs(e),bi();var a=Ba(r,e,0,[e.props,i]);if(wi(),Ks(),yn(a)){if(a.then(Ks,Ks),t)return a.then((n=>{tl(e,n,t)})).catch((t=>{Pa(t,e,0)}));e.asyncDep=a}else tl(e,a,t)}else nl(e,t)}function tl(e,t,n){vn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_n(t)&&(e.setupState=Aa(t)),nl(e,n)}function nl(e,t,n){var r=e.type;e.render||(e.render=r.render||rn);Gs(e),bi(),Yo(e),wi(),Ks()}function rl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Aa(ba(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Vo?Vo[n](e):void 0,has:(e,t)=>t in e||t in Vo}))}function il(e){return vn(e)&&"__vccOpts"in e}var al=(e,t)=>function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=vn(e);return a?(n=e,r=rn):(n=e.get,r=e.set),new Na(n,r,a||!r,i)}(e,t,Qs);function ol(e,t,n){var r=arguments.length;return 2===r?_n(t)&&!fn(t)?Ls(t)?zs(e,null,[t]):zs(e,t):zs(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Ls(n)&&(n=[n]),zs(e,t,n))}var sl=Symbol(""),ll=()=>fo(sl),ul="3.2.45",cl="undefined"!=typeof document?document:null,dl=cl&&cl.createElement("template"),hl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{var i=t?cl.createElementNS("http://www.w3.org/2000/svg",e):cl.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>cl.createTextNode(e),createComment:e=>cl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){var o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{dl.innerHTML=r?"<svg>".concat(e,"</svg>"):e;var s=dl.content;if(r){for(var l=s.firstChild;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function fl(e,t,n){var r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function pl(e,t,n){var r=e.style,i=gn(n);if(n&&!i){for(var a in n)gl(r,a,n[a]);if(t&&!gn(t))for(var o in t)null==n[o]&&gl(r,o,"")}else{var s=r.display;i?t!==n&&(r.cssText=normalizeStyleValue(n)):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}var vl=/\s*!important$/;function gl(e,t,n){if(fn(n))n.forEach((n=>gl(e,t,n)));else if(null==n&&(n=""),n=normalizeStyleValue(n),t.startsWith("--"))e.setProperty(t,n);else{var r=normalizeStyleName(e,t);vl.test(n)?e.setProperty(On(r),n.replace(vl,""),"important"):e[r]=n}}var ml="http://www.w3.org/1999/xlink";function _l(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(ml,t.slice(6,t.length)):e.setAttributeNS(ml,t,n);else{var a=Gt(t);null==n||a&&!Kt(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function yl(e,t,n,r,i,a,o){if("innerHTML"===t||"textContent"===t)return r&&o(r,i,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;var s=null==n?"":n;return e.value===s&&"OPTION"!==e.tagName||(e.value=s),void(null==n&&e.removeAttribute(t))}var l=!1;if(""===n||null==n){var u=typeof e[t];"boolean"===u?n=Kt(n):null==n&&"string"===u?(n="",l=!0):"number"===u&&(n=0,l=!0)}try{e[t]=n}catch(c){}l&&e.removeAttribute(t)}function bl(e,t,n,r){e.addEventListener(t,n,r)}function wl(e,t,n,r){e.removeEventListener(t,n,r)}function xl(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=e._vei||(e._vei={}),o=a[t];if(r&&o)o.value=r;else{var[s,l]=kl(t);if(r){var u=a[t]=Cl(r,i);bl(e,s,u,l)}else o&&(wl(e,s,o,l),a[t]=void 0)}}var Sl=/(?:Once|Passive|Capture)$/;function kl(e){var t,n;if(Sl.test(e))for(t={};n=e.match(Sl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):On(e.slice(2)),t]}var Tl=0,El=Promise.resolve();function Cl(e,t){var n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Ra(function(e,t){if(fn(t)){var n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Tl||(El.then((()=>Tl=0)),Tl=Date.now()),n}var Ml=/^on[a-z]/;function Ol(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&Ml.test(t)&&vn(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Ml.test(t)||!gn(n))&&t in e))))}var Il=["ctrl","shift","alt","meta"],Ll={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Il.some((n=>e["".concat(n,"Key")]&&!t.includes(n)))},Al=(e,t)=>function(n){for(var r=0;r<t.length;r++){var i=Ll[t[r]];if(i&&i(n,t))return}for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];return e(n,...o)},Nl={beforeMount(e,t,n){var{value:r}=t,{transition:i}=n;e._vod="none"===e.style.display?"":e.style.display,i&&r?i.beforeEnter(e):Bl(e,r)},mounted(e,t,n){var{value:r}=t,{transition:i}=n;i&&r&&i.enter(e)},updated(e,t,n){var{value:r,oldValue:i}=t,{transition:a}=n;!r!=!i&&(a?r?(a.beforeEnter(e),Bl(e,!0),a.enter(e)):a.leave(e,(()=>{Bl(e,!1)})):Bl(e,r))},beforeUnmount(e,t){var{value:n}=t;Bl(e,n)}};function Bl(e,t){e.style.display=t?e._vod:"none"}var Rl,Pl=un({patchProp:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;"class"===t?fl(e,r,i):"style"===t?pl(e,n,r):sn(t)?ln(t)||xl(e,t,n,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Ol(e,t,r,i))?yl(e,t,r,a,o,s,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),_l(e,t,r,i))}},hl);function zl(){return Rl||(Rl=xs(Pl))}var Dl=function(){var e=zl().createApp(...arguments),{mount:t}=e;return e.mount=n=>{var r=Fl(n);if(r){var i=e._component;vn(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";var a=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a}},e};function Fl(e){return gn(e)?document.querySelector(e):e}var $l,jl,Wl=["top","left","right","bottom"],Vl={};function Hl(){return jl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Ul(){if(jl="string"==typeof jl?jl:Hl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var r=document.createElement("div");i(r,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Wl.forEach((function(e){o(r,e)})),document.body.appendChild(r),a(),$l=!0}else Wl.forEach((function(e){Vl[e]=0}));function i(e,t){var n=e.style;Object.keys(t).forEach((function(e){var r=t[e];n[e]=r}))}function a(t){t?e.push(t):e.forEach((function(e){e()}))}function o(e,n){var r=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),u={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:jl+"(safe-area-inset-"+n+")"};i(r,u),i(o,u),i(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),r.appendChild(s),o.appendChild(l),e.appendChild(r),e.appendChild(o),a((function(){r.scrollTop=o.scrollTop=1e4;var e=r.scrollTop,i=o.scrollTop;function a(){this.scrollTop!==(this===r?e:i)&&(r.scrollTop=o.scrollTop=1e4,e=r.scrollTop,i=o.scrollTop,function(e){Yl.length||setTimeout((function(){var e={};Yl.forEach((function(t){e[t]=Vl[t]})),Yl.length=0,Xl.forEach((function(t){t(e)}))}),0);Yl.push(e)}(n))}r.addEventListener("scroll",a,t),o.addEventListener("scroll",a,t)}));var c=getComputedStyle(r);Object.defineProperty(Vl,n,{configurable:!0,get:function(){return parseFloat(c.paddingBottom)}})}}function ql(e){return $l||Ul(),Vl[e]}var Yl=[];var Xl=[];var Zl={get support(){return 0!=("string"==typeof jl?jl:Hl()).length},get top(){return ql("top")},get left(){return ql("left")},get right(){return ql("right")},get bottom(){return ql("bottom")},onChange:function(e){Hl()&&($l||Ul(),"function"==typeof e&&Xl.push(e))},offChange:function(e){var t=Xl.indexOf(e);t>=0&&Xl.splice(t,1)}},Gl=Al((()=>{}),["prevent"]);function Kl(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Jl(){var e=Kl(document.documentElement.style,"--window-top");return e?e+Zl.top:0}function Ql(e){return Symbol(e)}function eu(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function tu(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return nu(e);if(gn(e)){var n=parseInt(e)||0;return eu(e)?uni.upx2px(n):n}return e}function nu(e){return eu(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>uni.upx2px(parseFloat(t))+"px")):e}var ru,iu="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z";function au(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:27;return zs("svg",{width:n,height:n,viewBox:"0 0 32 32"},[zs("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function ou(){return su()}function su(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function lu(e){e.preventDefault()}var uu,cu,du,hu,fu,pu=0;function vu(e){var{onPageScroll:t,onReachBottom:n,onReachBottomDistance:r}=e,i=!1,a=!1,o=!0,s=()=>{function e(){if((()=>{var{scrollHeight:e}=document.documentElement,t=window.innerHeight,n=window.scrollY,i=n>0&&e>t&&n+t+r>=e,o=Math.abs(e-pu)>r;return!i||a&&!o?(!i&&a&&(a=!1),!1):(pu=e,a=!0,!0)})())return n&&n(),o=!1,setTimeout((function(){o=!0}),350),!0}t&&t(window.pageYOffset),n&&o&&(e()||(ru=setTimeout(e,300))),i=!1};return function(){clearTimeout(ru),i||requestAnimationFrame(s),i=!0}}function gu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return gu(e,t.slice(2));for(var n=t.split("/"),r=n.length,i=0;i<r&&".."===n[i];i++);n.splice(0,i),t=n.join("/");var a=e.length>0?e.split("/"):[];return a.splice(a.length-i-1,i+1),Jn(a.concat(n).join("/"))}function mu(){return"object"==typeof window&&"object"==typeof navigator&&"object"==typeof document?"webview":"v8"}function _u(){return uu.webview.currentWebview().id}var yu={};function bu(e){var t=e.data&&e.data.__message;if(t&&t.__page){var n=t.__page,r=yu[n];r&&r(t),t.keep||delete yu[n]}}class wu{constructor(e){this.webview=e}sendMessage(e){var t=JSON.parse(JSON.stringify({__message:{data:e}})),n=this.webview.id;du?new du(n).postMessage(t):uu.webview.postMessageToUniNView&&uu.webview.postMessageToUniNView(t,n)}close(){this.webview.close()}}function xu(e){var{context:t={},url:n,data:r={},style:i={},onMessage:a,onClose:o}=e,s=__uniConfig.darkmode;uu=t.plus||plus,cu=t.weex||("object"==typeof weex?weex:null),du=t.BroadcastChannel||("object"==typeof BroadcastChannel?BroadcastChannel:null);var l="page".concat(Date.now());!1!==(i=un({},i)).titleNView&&"none"!==i.titleNView&&(i.titleNView=un({autoBackButton:!0,titleSize:"17px"},i.titleNView));var u={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"/".concat(n,".js"),defaultFontSize:16,viewport:uu.screen.resolutionWidth}};i=un(u,i);var c=uu.webview.create("",l,i,{extras:{from:_u(),runtime:mu(),data:un({},r,{darkmode:s}),useGlobalEvent:!du}});return c.addEventListener("close",o),function(e,t){"v8"===mu()?du?(hu&&hu.close(),(hu=new du(_u())).onmessage=bu):fu||(fu=cu.requireModule("globalEvent")).addEventListener("plusMessage",bu):window.__plusMessage=bu,yu[e]=t}(l,(e=>{vn(a)&&a(e.data),e.keep||c.close("auto")})),c.show(i.animationType,i.animationDuration),new wu(c)}class Su{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=e.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(this.$el&&e){var t=Eu(this.$el.querySelector(e));if(t)return ku(t)}}selectAllComponents(e){if(!this.$el||!e)return[];for(var t=[],n=this.$el.querySelectorAll(e),r=0;r<n.length;r++){var i=Eu(n[r]);i&&t.push(ku(i))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){var{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){var{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",function(e){var t="";if(!e||gn(e))return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:On(n);(gn(r)||"number"==typeof r)&&(t+="".concat(i,":").concat(r,";"))}return t}(e))}setStyle(e){return this.$el&&e?(gn(e)&&(e=Xt(e)),xn(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;var t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;var{__wxsAddClass:t}=this.$el;if(t){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var r=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===r.indexOf(e)&&(r.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$vm[e];vn(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&UniViewJSBridge.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){var t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function ku(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Su(e)),e.$el.__wxsComponentDescriptor}function Tu(e,t){return ku(e)}function Eu(e){if(e)return Cu(e)}function Cu(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var t,n,{__wxsStyle:r,__wxsAddClass:i,__wxsRemoveClass:a,__wxsStyleChanged:o,__wxsClassChanged:s}=e;o&&(e.__wxsStyleChanged=!1,r&&(n=()=>{Object.keys(r).forEach((t=>{e.style[t]=r[t]}))})),s&&(e.__wxsClassChanged=!1,t=()=>{a&&a.forEach((t=>{e.classList.remove(t)})),i&&i.forEach((t=>{e.classList.add(t)}))}),requestAnimationFrame((()=>{t&&t(),n&&n()}))}})}function Mu(e,t,n){var{currentTarget:r}=e;if(!(e instanceof Event&&r instanceof HTMLElement))return[e];var i=Iu(e,0!==r.tagName.indexOf("UNI-"));if("click"===e.type)!function(e,t){var{x:n,y:r}=t,i=Jl();e.detail={x:n,y:r-i},e.touches=e.changedTouches=[Lu(t,i)]}(i,e);else if((e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){var n=Jl();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Lu(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch"))(e)){var a=Jl();i.touches=Au(e.touches,a),i.changedTouches=Au(e.changedTouches,a)}return[i]}function Ou(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function Iu(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{type:n,timeStamp:r,target:i,currentTarget:a}=e,o={type:n,timeStamp:r,target:or(t?i:Ou(i)),detail:{},currentTarget:or(a)};return e._stopped&&(o._stopped=!0),e.type.startsWith("touch")&&(o.touches=e.touches,o.changedTouches=e.changedTouches),o}function Lu(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Au(e,t){for(var n=[],r=0;r<e.length;r++){var{identifier:i,pageX:a,pageY:o,clientX:s,clientY:l,force:u}=e[r];n.push({identifier:i,pageX:a,pageY:o-t,clientX:s,clientY:l-t,force:u||0})}return n}var Nu="vdSync",Bu="__uniapp__service",Ru="onWebviewReady",Pu=un(Zr,{publishHandler:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=su()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:n}},Bu)}});function zu(e,t,n,r){if(r&&r.beforeInvoke){var i=r.beforeInvoke(t);if(gn(i))return i}var a=function(e,t){var n=e[0];if(t&&(xn(t.formatArgs)||!xn(n)))for(var r=t.formatArgs,i=Object.keys(r),a=0;a<i.length;a++){var o=i[a],s=r[o];if(vn(s)){var l=s(e[0][o],n);if(gn(l))return l}else hn(n,o)||(n[o]=s)}}(t,r);if(a)return a}function Du(e,t,n,r){return function(e,t,n,r){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=zu(0,n,0,r);if(a)throw new Error(a);return t.apply(null,n)}}(0,t,0,r)}function Fu(){if("undefined"!=typeof __SYSTEM_INFO__)return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize()||{resolutionWidth:0};return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}function $u(e){if(0===e.indexOf("//"))return"https:"+e;if(Hn.test(e)||Un.test(e))return e;if(function(e){if(0===e.indexOf("_www")||0===e.indexOf("_doc")||0===e.indexOf("_documents")||0===e.indexOf("_downloads"))return!0;return!1}(e))return"file://"+ju(e);var t="file://"+ju("_www");if(0===e.indexOf("/"))return e.startsWith("/storage/")||e.startsWith("/sdcard/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(0===e.indexOf("../")||0===e.indexOf("./")){if("string"==typeof __id__)return t+gu(Jn(__id__),e);var n=window.__PAGE_INFO__;if(n)return t+gu(Jn(n.route),e)}return e}var ju=function(e){var t=Object.create(null);return n=>t[n]||(t[n]=e(n))}((e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,"")));var Wu=0;function Vu(e){return function(e){return new Promise((function(t,n){0===e.indexOf("http://")||0===e.indexOf("https://")?plus.downloader.createDownload(e,{filename:"".concat("_doc/uniapp_temp","/download/")},(function(e,r){200===r?t(e.filename):n(new Error("network fail"))})).start():t(e)}))}(e).then((function(e){var t,n=window;return n.webkit&&n.webkit.messageHandlers?(t=e,new Promise((function(e,n){function r(){var r=new plus.nativeObj.Bitmap("bitmap_".concat(Date.now(),"_").concat(Math.random(),"}"));r.load(t,(function(){e(r.toBase64Data()),r.clear()}),(function(e){r.clear(),n(e)}))}plus.io.resolveLocalFileSystemURL(t,(function(t){t.file((function(t){var n=new plus.io.FileReader;n.onload=function(t){e(t.target.result)},n.onerror=r,n.readAsDataURL(t)}),r)}),r)}))):plus.io.convertLocalFileSystemURL(e)}))}var Hu={};!function(e){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},i={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)}(Hu);var Uu={},qu={},Yu={},Xu=Hu;function Zu(e){for(var t=e.length;--t>=0;)e[t]=0}var Gu=256,Ku=286,Ju=30,Qu=15,ec=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],tc=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],nc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ic=new Array(576);Zu(ic);var ac=new Array(60);Zu(ac);var oc=new Array(512);Zu(oc);var sc=new Array(256);Zu(sc);var lc=new Array(29);Zu(lc);var uc,cc,dc,hc=new Array(Ju);function fc(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function pc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function vc(e){return e<256?oc[e]:oc[256+(e>>>7)]}function gc(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function mc(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,gc(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function _c(e,t,n){mc(e,n[2*t],n[2*t+1])}function yc(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function bc(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=Qu;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=yc(a[s]++,s))}}function wc(e){var t;for(t=0;t<Ku;t++)e.dyn_ltree[2*t]=0;for(t=0;t<Ju;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function xc(e){e.bi_valid>8?gc(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Sc(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function kc(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&Sc(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Sc(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function Tc(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?_c(e,i,t):(_c(e,(a=sc[i])+Gu+1,t),0!==(o=ec[a])&&mc(e,i-=lc[a],o),_c(e,a=vc(--r),n),0!==(o=tc[a])&&mc(e,r-=hc[a],o))}while(s<e.last_lit);_c(e,256,t)}function Ec(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)kc(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],kc(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,kc(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,v=0;for(a=0;a<=Qu;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(a=p,v++),l[2*r+1]=a,r>u||(e.bl_count[a]++,o=0,r>=f&&(o=h[r-f]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==v){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,v-=2}while(v>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),bc(a,u,e.bl_count)}function Cc(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function Mc(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)do{_c(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(_c(e,i,e.bl_tree),s--),_c(e,16,e.bl_tree),mc(e,s-3,2)):s<=10?(_c(e,17,e.bl_tree),mc(e,s-3,3)):(_c(e,18,e.bl_tree),mc(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}Zu(hc);var Oc=!1;function Ic(e,t,n,r){mc(e,0+(r?1:0),3),function(e,t,n,r){xc(e),r&&(gc(e,n),gc(e,~n)),Xu.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}Yu._tr_init=function(e){Oc||(!function(){var e,t,n,r,i,a=new Array(16);for(n=0,r=0;r<28;r++)for(lc[r]=n,e=0;e<1<<ec[r];e++)sc[n++]=r;for(sc[n-1]=r,i=0,r=0;r<16;r++)for(hc[r]=i,e=0;e<1<<tc[r];e++)oc[i++]=r;for(i>>=7;r<Ju;r++)for(hc[r]=i<<7,e=0;e<1<<tc[r]-7;e++)oc[256+i++]=r;for(t=0;t<=Qu;t++)a[t]=0;for(e=0;e<=143;)ic[2*e+1]=8,e++,a[8]++;for(;e<=255;)ic[2*e+1]=9,e++,a[9]++;for(;e<=279;)ic[2*e+1]=7,e++,a[7]++;for(;e<=287;)ic[2*e+1]=8,e++,a[8]++;for(bc(ic,287,a),e=0;e<Ju;e++)ac[2*e+1]=5,ac[2*e]=yc(e,5);uc=new fc(ic,ec,257,Ku,Qu),cc=new fc(ac,tc,0,Ju,Qu),dc=new fc(new Array(0),nc,0,19,7)}(),Oc=!0),e.l_desc=new pc(e.dyn_ltree,uc),e.d_desc=new pc(e.dyn_dtree,cc),e.bl_desc=new pc(e.bl_tree,dc),e.bi_buf=0,e.bi_valid=0,wc(e)},Yu._tr_stored_block=Ic,Yu._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<Gu;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Ec(e,e.l_desc),Ec(e,e.d_desc),o=function(e){var t;for(Cc(e,e.dyn_ltree,e.l_desc.max_code),Cc(e,e.dyn_dtree,e.d_desc.max_code),Ec(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*rc[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?Ic(e,t,n,r):4===e.strategy||a===i?(mc(e,2+(r?1:0),3),Tc(e,ic,ac)):(mc(e,4+(r?1:0),3),function(e,t,n,r){var i;for(mc(e,t-257,5),mc(e,n-1,5),mc(e,r-4,4),i=0;i<r;i++)mc(e,e.bl_tree[2*rc[i]+1],3);Mc(e,e.dyn_ltree,t-1),Mc(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Tc(e,e.dyn_ltree,e.dyn_dtree)),wc(e),r&&xc(e)},Yu._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(sc[n]+Gu+1)]++,e.dyn_dtree[2*vc(t)]++),e.last_lit===e.lit_bufsize-1},Yu._tr_align=function(e){mc(e,2,3),_c(e,256,ic),function(e){16===e.bi_valid?(gc(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)};var Lc=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0};var Ac=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();var Nc,Bc=function(e,t,n,r){var i=Ac,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e},Rc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Pc=Hu,zc=Yu,Dc=Lc,Fc=Bc,$c=Rc,jc=-2,Wc=258,Vc=262,Hc=103,Uc=113,qc=666;function Yc(e,t){return e.msg=$c[t],t}function Xc(e){return(e<<1)-(e>4?9:0)}function Zc(e){for(var t=e.length;--t>=0;)e[t]=0}function Gc(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Pc.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Kc(e,t){zc._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Gc(e.strm)}function Jc(e,t){e.pending_buf[e.pending++]=t}function Qc(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ed(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Vc?e.strstart-(e.w_size-Vc):0,u=e.window,c=e.w_mask,d=e.prev,h=e.strstart+Wc,f=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===f&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<h);if(r=Wc-(h-a),a=h-Wc,r>o){if(e.match_start=t,o=r,r>=s)break;f=u[a+o-1],p=u[a+o]}}}while((t=d[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function td(e){var t,n,r,i,a,o,s,l,u,c,d=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-Vc)){Pc.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=d?r-d:0}while(--n);t=n=d;do{r=e.prev[--t],e.prev[t]=r>=d?r-d:0}while(--n);i+=d}if(0===e.strm.avail_in)break;if(o=e.strm,s=e.window,l=e.strstart+e.lookahead,u=i,c=void 0,(c=o.avail_in)>u&&(c=u),n=0===c?0:(o.avail_in-=c,Pc.arraySet(s,o.input,o.next_in,c,l),1===o.state.wrap?o.adler=Dc(o.adler,s,c,l):2===o.state.wrap&&(o.adler=Fc(o.adler,s,c,l)),o.next_in+=c,o.total_in+=c,c),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<Vc&&0!==e.strm.avail_in)}function nd(e,t){for(var n,r;;){if(e.lookahead<Vc){if(td(e),e.lookahead<Vc&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Vc&&(e.match_length=ed(e,n)),e.match_length>=3)if(r=zc._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=zc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Kc(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(Kc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Kc(e,!1),0===e.strm.avail_out)?1:2}function rd(e,t){for(var n,r,i;;){if(e.lookahead<Vc){if(td(e),e.lookahead<Vc&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Vc&&(e.match_length=ed(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=zc._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Kc(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=zc._tr_tally(e,0,e.window[e.strstart-1]))&&Kc(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=zc._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(Kc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Kc(e,!1),0===e.strm.avail_out)?1:2}function id(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ad(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Pc.Buf16(1146),this.dyn_dtree=new Pc.Buf16(122),this.bl_tree=new Pc.Buf16(78),Zc(this.dyn_ltree),Zc(this.dyn_dtree),Zc(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Pc.Buf16(16),this.heap=new Pc.Buf16(573),Zc(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Pc.Buf16(573),Zc(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function od(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:Uc,e.adler=2===t.wrap?0:1,t.last_flush=0,zc._tr_init(t),0):Yc(e,jc)}function sd(e){var t,n=od(e);return 0===n&&((t=e.state).window_size=2*t.w_size,Zc(t.head),t.max_lazy_match=Nc[t.level].max_lazy,t.good_match=Nc[t.level].good_length,t.nice_match=Nc[t.level].nice_length,t.max_chain_length=Nc[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function ld(e,t,n,r,i,a){if(!e)return jc;var o=1;if(-1===t&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return Yc(e,jc);8===r&&(r=9);var s=new ad;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Pc.Buf8(2*s.w_size),s.head=new Pc.Buf16(s.hash_size),s.prev=new Pc.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Pc.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,sd(e)}Nc=[new id(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(td(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Kc(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Vc&&(Kc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Kc(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Kc(e,!1),e.strm.avail_out),1)})),new id(4,4,8,4,nd),new id(4,5,16,8,nd),new id(4,6,32,32,nd),new id(4,4,16,16,rd),new id(8,16,32,32,rd),new id(8,16,128,128,rd),new id(8,32,128,256,rd),new id(32,128,258,1024,rd),new id(32,258,258,4096,rd)],qu.deflateInit=function(e,t){return ld(e,t,8,15,8,0)},qu.deflateInit2=ld,qu.deflateReset=sd,qu.deflateResetKeep=od,qu.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?jc:(e.state.gzhead=t,0):jc},qu.deflate=function(e,t){var n,r,i,a;if(!e||!e.state||t>5||t<0)return e?Yc(e,jc):jc;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===qc&&4!==t)return Yc(e,0===e.avail_out?-5:jc);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,Jc(r,31),Jc(r,139),Jc(r,8),r.gzhead?(Jc(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Jc(r,255&r.gzhead.time),Jc(r,r.gzhead.time>>8&255),Jc(r,r.gzhead.time>>16&255),Jc(r,r.gzhead.time>>24&255),Jc(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Jc(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Jc(r,255&r.gzhead.extra.length),Jc(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Fc(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Jc(r,0),Jc(r,0),Jc(r,0),Jc(r,0),Jc(r,0),Jc(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Jc(r,3),r.status=Uc);else{var o=8+(r.w_bits-8<<4)<<8;o|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(o|=32),o+=31-o%31,r.status=Uc,Qc(r,o),0!==r.strstart&&(Qc(r,e.adler>>>16),Qc(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=Fc(e.adler,r.pending_buf,r.pending-i,i)),Gc(e),i=r.pending,r.pending!==r.pending_buf_size));)Jc(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=Fc(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Fc(e.adler,r.pending_buf,r.pending-i,i)),Gc(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Jc(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=Fc(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Fc(e.adler,r.pending_buf,r.pending-i,i)),Gc(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Jc(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=Fc(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.status=Hc)}else r.status=Hc;if(r.status===Hc&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Gc(e),r.pending+2<=r.pending_buf_size&&(Jc(r,255&e.adler),Jc(r,e.adler>>8&255),e.adler=0,r.status=Uc)):r.status=Uc),0!==r.pending){if(Gc(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&Xc(t)<=Xc(n)&&4!==t)return Yc(e,-5);if(r.status===qc&&0!==e.avail_in)return Yc(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==qc){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(td(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=zc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Kc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Kc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Kc(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=Wc){if(td(e),e.lookahead<=Wc&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+Wc;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=Wc-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=zc._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=zc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Kc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Kc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Kc(e,!1),0===e.strm.avail_out)?1:2}(r,t):Nc[r.level].func(r,t);if(3!==s&&4!==s||(r.status=qc),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===t?zc._tr_align(r):5!==t&&(zc._tr_stored_block(r,0,0,!1),3===t&&(Zc(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Gc(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(Jc(r,255&e.adler),Jc(r,e.adler>>8&255),Jc(r,e.adler>>16&255),Jc(r,e.adler>>24&255),Jc(r,255&e.total_in),Jc(r,e.total_in>>8&255),Jc(r,e.total_in>>16&255),Jc(r,e.total_in>>24&255)):(Qc(r,e.adler>>>16),Qc(r,65535&e.adler)),Gc(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},qu.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==Hc&&t!==Uc&&t!==qc?Yc(e,jc):(e.state=null,t===Uc?Yc(e,-3):0):jc},qu.deflateSetDictionary=function(e,t){var n,r,i,a,o,s,l,u,c=t.length;if(!e||!e.state)return jc;if(2===(a=(n=e.state).wrap)||1===a&&42!==n.status||n.lookahead)return jc;for(1===a&&(e.adler=Dc(e.adler,t,c,0)),n.wrap=0,c>=n.w_size&&(0===a&&(Zc(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new Pc.Buf8(n.w_size),Pc.arraySet(u,t,c-n.w_size,n.w_size,0),t=u,c=n.w_size),o=e.avail_in,s=e.next_in,l=e.input,e.avail_in=c,e.next_in=0,e.input=t,td(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,td(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,n.wrap=a,0},qu.deflateInfo="pako deflate (from Nodeca project)";var ud={},cd=Hu,dd=!0,hd=!0;try{String.fromCharCode.apply(null,[0])}catch($m){dd=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch($m){hd=!1}for(var fd=new cd.Buf8(256),pd=0;pd<256;pd++)fd[pd]=pd>=252?6:pd>=248?5:pd>=240?4:pd>=224?3:pd>=192?2:1;function vd(e,t){if(t<65534&&(e.subarray&&hd||!e.subarray&&dd))return String.fromCharCode.apply(null,cd.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}fd[254]=fd[254]=1,ud.string2buf=function(e){var t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new cd.Buf8(s),a=0,i=0;a<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},ud.buf2binstring=function(e){return vd(e,e.length)},ud.binstring2buf=function(e){for(var t=new cd.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},ud.buf2string=function(e,t){var n,r,i,a,o=t||e.length,s=new Array(2*o);for(r=0,n=0;n<o;)if((i=e[n++])<128)s[r++]=i;else if((a=fd[i])>4)s[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n<o;)i=i<<6|63&e[n++],a--;a>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return vd(s,r)},ud.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+fd[e[n]]>t?n:t};var gd=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},md=qu,_d=Hu,yd=ud,bd=Rc,wd=gd,xd=Object.prototype.toString;function Sd(e){if(!(this instanceof Sd))return new Sd(e);this.options=_d.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wd,this.strm.avail_out=0;var n=md.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(bd[n]);if(t.header&&md.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?yd.string2buf(t.dictionary):"[object ArrayBuffer]"===xd.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=md.deflateSetDictionary(this.strm,r)))throw new Error(bd[n]);this._dict_set=!0}}function kd(e,t){var n=new Sd(t);if(n.push(e,!0),n.err)throw n.msg||bd[n.err];return n.result}Sd.prototype.push=function(e,t){var n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=yd.string2buf(e):"[object ArrayBuffer]"===xd.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new _d.Buf8(a),i.next_out=0,i.avail_out=a),1!==(n=md.deflate(i,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(yd.buf2binstring(_d.shrinkBuf(i.output,i.next_out))):this.onData(_d.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=md.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),i.avail_out=0,!0)},Sd.prototype.onData=function(e){this.chunks.push(e)},Sd.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=_d.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},Uu.Deflate=Sd,Uu.deflate=kd,Uu.deflateRaw=function(e,t){return(t=t||{}).raw=!0,kd(e,t)},Uu.gzip=function(e,t){return(t=t||{}).gzip=!0,kd(e,t)};var Td={},Ed={},Cd=Hu,Md=15,Od=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Id=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Ld=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Ad=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Nd=Hu,Bd=Lc,Rd=Bc,Pd=function(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p,v,g,m,_,y,b,w,x,S,k,T,E;n=e.state,r=e.next_in,T=e.input,i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,v=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;e:do{p<15&&(f+=T[r++]<<p,p+=8,f+=T[r++]<<p,p+=8),y=v[f&m];t:for(;;){if(f>>>=b=y>>>24,p-=b,0===(b=y>>>16&255))E[a++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=v[(65535&y)+(f&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&y,(b&=15)&&(p<b&&(f+=T[r++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=T[r++]<<p,p+=8,f+=T[r++]<<p,p+=8),y=g[f&_];n:for(;;){if(f>>>=b=y>>>24,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(f&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&y,p<(b&=15)&&(f+=T[r++]<<p,(p+=8)<b&&(f+=T[r++]<<p,p+=8)),(x+=f&(1<<b)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,x>(b=a-o)){if((b=x-b)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,k=h,0===d){if(S+=u-b,b<w){w-=b;do{E[a++]=h[S++]}while(--b);S=a-x,k=E}}else if(d<b){if(S+=u+d-b,(b-=d)<w){w-=b;do{E[a++]=h[S++]}while(--b);if(S=0,d<w){w-=b=d;do{E[a++]=h[S++]}while(--b);S=a-x,k=E}}}else if(S+=d-b,b<w){w-=b;do{E[a++]=h[S++]}while(--b);S=a-x,k=E}for(;w>2;)E[a++]=k[S++],E[a++]=k[S++],E[a++]=k[S++],w-=3;w&&(E[a++]=k[S++],w>1&&(E[a++]=k[S++]))}else{S=a-x;do{E[a++]=E[S++],E[a++]=E[S++],E[a++]=E[S++],w-=3}while(w>2);w&&(E[a++]=E[S++],w>1&&(E[a++]=E[S++]))}break}}break}}while(r<i&&a<s);r-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p},zd=function(e,t,n,r,i,a,o,s){var l,u,c,d,h,f,p,v,g,m=s.bits,_=0,y=0,b=0,w=0,x=0,S=0,k=0,T=0,E=0,C=0,M=null,O=0,I=new Cd.Buf16(16),L=new Cd.Buf16(16),A=null,N=0;for(_=0;_<=Md;_++)I[_]=0;for(y=0;y<r;y++)I[t[n+y]]++;for(x=m,w=Md;w>=1&&0===I[w];w--);if(x>w&&(x=w),0===w)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;b<w&&0===I[b];b++);for(x<b&&(x=b),T=1,_=1;_<=Md;_++)if(T<<=1,(T-=I[_])<0)return-1;if(T>0&&(0===e||1!==w))return-1;for(L[1]=0,_=1;_<Md;_++)L[_+1]=L[_]+I[_];for(y=0;y<r;y++)0!==t[n+y]&&(o[L[t[n+y]]++]=y);if(0===e?(M=A=o,f=19):1===e?(M=Od,O-=257,A=Id,N-=257,f=256):(M=Ld,A=Ad,f=-1),C=0,y=0,_=b,h=a,S=x,k=0,c=-1,d=(E=1<<x)-1,1===e&&E>852||2===e&&E>592)return 1;for(;;){p=_-k,o[y]<f?(v=0,g=o[y]):o[y]>f?(v=A[N+o[y]],g=M[O+o[y]]):(v=96,g=0),l=1<<_-k,b=u=1<<S;do{i[h+(C>>k)+(u-=l)]=p<<24|v<<16|g|0}while(0!==u);for(l=1<<_-1;C&l;)l>>=1;if(0!==l?(C&=l-1,C+=l):C=0,y++,0==--I[_]){if(_===w)break;_=t[n+o[y]]}if(_>x&&(C&d)!==c){for(0===k&&(k=x),h+=b,T=1<<(S=_-k);S+k<w&&!((T-=I[S+k])<=0);)S++,T<<=1;if(E+=1<<S,1===e&&E>852||2===e&&E>592)return 1;i[c=C&d]=x<<24|S<<16|h-a|0}}return 0!==C&&(i[h+C]=_-k<<24|64<<16|0),s.bits=x,0},Dd=-2,Fd=12,$d=30;function jd(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Wd(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Nd.Buf16(320),this.work=new Nd.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Vd(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Nd.Buf32(852),t.distcode=t.distdyn=new Nd.Buf32(592),t.sane=1,t.back=-1,0):Dd}function Hd(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Vd(e)):Dd}function Ud(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Dd:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Hd(e))):Dd}function qd(e,t){var n,r;return e?(r=new Wd,e.state=r,r.window=null,0!==(n=Ud(e,t))&&(e.state=null),n):Dd}var Yd,Xd,Zd=!0;function Gd(e){if(Zd){var t;for(Yd=new Nd.Buf32(512),Xd=new Nd.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(zd(1,e.lens,0,288,Yd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;zd(2,e.lens,0,32,Xd,0,e.work,{bits:5}),Zd=!1}e.lencode=Yd,e.lenbits=9,e.distcode=Xd,e.distbits=5}function Kd(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Nd.Buf8(a.wsize)),r>=a.wsize?(Nd.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),Nd.arraySet(a.window,t,n-r,i,a.wnext),(r-=i)?(Nd.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}Ed.inflateReset=Hd,Ed.inflateReset2=Ud,Ed.inflateResetKeep=Vd,Ed.inflateInit=function(e){return qd(e,15)},Ed.inflateInit2=qd,Ed.inflate=function(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p,v,g,m,_,y,b,w,x,S,k,T,E=0,C=new Nd.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Dd;(n=e.state).mode===Fd&&(n.mode=13),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,d=s,h=l,S=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(2&n.wrap&&35615===u){n.check=0,C[0]=255&u,C[1]=u>>>8&255,n.check=Rd(n.check,C,2,0),u=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=$d;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=$d;break}if(c-=4,x=8+(15&(u>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=$d;break}n.dmax=1<<x,e.adler=n.check=1,n.mode=512&u?10:Fd,u=0,c=0;break;case 2:for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.flags=u,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=$d;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=$d;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(C[0]=255&u,C[1]=u>>>8&255,n.check=Rd(n.check,C,2,0)),u=0,c=0,n.mode=3;case 3:for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.time=u),512&n.flags&&(C[0]=255&u,C[1]=u>>>8&255,C[2]=u>>>16&255,C[3]=u>>>24&255,n.check=Rd(n.check,C,4,0)),u=0,c=0,n.mode=4;case 4:for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(C[0]=255&u,C[1]=u>>>8&255,n.check=Rd(n.check,C,2,0)),u=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(C[0]=255&u,C[1]=u>>>8&255,n.check=Rd(n.check,C,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Nd.arraySet(n.head.extra,r,a,f,x)),512&n.flags&&(n.check=Rd(n.check,r,f,a)),s-=f,a+=f,n.length-=f),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;f=0;do{x=r[a+f++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&f<s);if(512&n.flags&&(n.check=Rd(n.check,r,f,a)),s-=f,a+=f,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;f=0;do{x=r[a+f++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&f<s);if(512&n.flags&&(n.check=Rd(n.check,r,f,a)),s-=f,a+=f,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;c<16;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=$d;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Fd;break;case 10:for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}e.adler=n.check=jd(u),u=0,c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,2;e.adler=n.check=1,n.mode=Fd;case Fd:if(5===t||6===t)break e;case 13:if(n.last){u>>>=7&c,c-=7&c,n.mode=27;break}for(;c<3;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}switch(n.last=1&u,c-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if(Gd(n),n.mode=20,6===t){u>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=$d}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=$d;break}if(n.length=65535&u,u=0,c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(f=n.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;Nd.arraySet(i,r,a,f,o),s-=f,a+=f,l-=f,o+=f,n.length-=f;break}n.mode=Fd;break;case 17:for(;c<14;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.nlen=257+(31&u),u>>>=5,c-=5,n.ndist=1+(31&u),u>>>=5,c-=5,n.ncode=4+(15&u),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=$d;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.lens[M[n.have++]]=7&u,u>>>=3,c-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k={bits:n.lenbits},S=zd(0,n.lens,0,19,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid code lengths set",n.mode=$d;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;m=(E=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(_<16)u>>>=g,c-=g,n.lens[n.have++]=_;else{if(16===_){for(T=g+2;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u>>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=$d;break}x=n.lens[n.have-1],f=3+(3&u),u>>>=2,c-=2}else if(17===_){for(T=g+3;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}c-=g,x=0,f=3+(7&(u>>>=g)),u>>>=3,c-=3}else{for(T=g+7;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}c-=g,x=0,f=11+(127&(u>>>=g)),u>>>=7,c-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=$d;break}for(;f--;)n.lens[n.have++]=x}}if(n.mode===$d)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=$d;break}if(n.lenbits=9,k={bits:n.lenbits},S=zd(1,n.lens,0,n.nlen,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid literal/lengths set",n.mode=$d;break}if(n.distbits=6,n.distcode=n.distdyn,k={bits:n.distbits},S=zd(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,k),n.distbits=k.bits,S){e.msg="invalid distances set",n.mode=$d;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,Pd(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,n.mode===Fd&&(n.back=-1);break}for(n.back=0;m=(E=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(m&&0==(240&m)){for(y=g,b=m,w=_;m=(E=n.lencode[w+((u&(1<<y+b)-1)>>y)])>>>16&255,_=65535&E,!(y+(g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=y,c-=y,n.back+=y}if(u>>>=g,c-=g,n.back+=g,n.length=_,0===m){n.mode=26;break}if(32&m){n.back=-1,n.mode=Fd;break}if(64&m){e.msg="invalid literal/length code",n.mode=$d;break}n.extra=15&m,n.mode=22;case 22:if(n.extra){for(T=n.extra;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;m=(E=n.distcode[u&(1<<n.distbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(0==(240&m)){for(y=g,b=m,w=_;m=(E=n.distcode[w+((u&(1<<y+b)-1)>>y)])>>>16&255,_=65535&E,!(y+(g=E>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=y,c-=y,n.back+=y}if(u>>>=g,c-=g,n.back+=g,64&m){e.msg="invalid distance code",n.mode=$d;break}n.offset=_,n.extra=15&m,n.mode=24;case 24:if(n.extra){for(T=n.extra;c<T;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=$d;break}n.mode=25;case 25:if(0===l)break e;if(f=h-l,n.offset>f){if((f=n.offset-f)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=$d;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),v=n.window}else v=i,p=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[o++]=v[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;i[o++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;c<32;){if(0===s)break e;s--,u|=r[a++]<<c,c+=8}if(h-=l,e.total_out+=h,n.total+=h,h&&(e.adler=n.check=n.flags?Rd(n.check,i,h,o-h):Bd(n.check,i,h,o-h)),h=l,(n.flags?u:jd(u))!==n.check){e.msg="incorrect data check",n.mode=$d;break}u=0,c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=$d;break}u=0,c=0}n.mode=29;case 29:S=1;break e;case $d:S=-3;break e;case 31:return-4;default:return Dd}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,(n.wsize||h!==e.avail_out&&n.mode<$d&&(n.mode<27||4!==t))&&Kd(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?Rd(n.check,i,h,e.next_out-h):Bd(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Fd?128:0)+(20===n.mode||15===n.mode?256:0),(0===d&&0===h||4===t)&&0===S&&(S=-5),S},Ed.inflateEnd=function(e){if(!e||!e.state)return Dd;var t=e.state;return t.window&&(t.window=null),e.state=null,0},Ed.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?Dd:(n.head=t,t.done=!1,0):Dd},Ed.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?Dd:11===n.mode&&Bd(1,t,r,0)!==n.check?-3:Kd(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):Dd},Ed.inflateInfo="pako inflate (from Nodeca project)";var Jd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var Qd=Ed,eh=Hu,th=ud,nh=Jd,rh=Rc,ih=gd,ah=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},oh=Object.prototype.toString;function sh(e){if(!(this instanceof sh))return new sh(e);this.options=eh.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ih,this.strm.avail_out=0;var n=Qd.inflateInit2(this.strm,t.windowBits);if(n!==nh.Z_OK)throw new Error(rh[n]);if(this.header=new ah,Qd.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=th.string2buf(t.dictionary):"[object ArrayBuffer]"===oh.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Qd.inflateSetDictionary(this.strm,t.dictionary))!==nh.Z_OK))throw new Error(rh[n])}function lh(e,t){var n=new sh(t);if(n.push(e,!0),n.err)throw n.msg||rh[n.err];return n.result}sh.prototype.push=function(e,t){var n,r,i,a,o,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?nh.Z_FINISH:nh.Z_NO_FLUSH,"string"==typeof e?s.input=th.binstring2buf(e):"[object ArrayBuffer]"===oh.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new eh.Buf8(l),s.next_out=0,s.avail_out=l),(n=Qd.inflate(s,nh.Z_NO_FLUSH))===nh.Z_NEED_DICT&&u&&(n=Qd.inflateSetDictionary(this.strm,u)),n===nh.Z_BUF_ERROR&&!0===c&&(n=nh.Z_OK,c=!1),n!==nh.Z_STREAM_END&&n!==nh.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==nh.Z_STREAM_END&&(0!==s.avail_in||r!==nh.Z_FINISH&&r!==nh.Z_SYNC_FLUSH)||("string"===this.options.to?(i=th.utf8border(s.output,s.next_out),a=s.next_out-i,o=th.buf2string(s.output,i),s.next_out=a,s.avail_out=l-a,a&&eh.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(eh.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(c=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==nh.Z_STREAM_END);return n===nh.Z_STREAM_END&&(r=nh.Z_FINISH),r===nh.Z_FINISH?(n=Qd.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===nh.Z_OK):r!==nh.Z_SYNC_FLUSH||(this.onEnd(nh.Z_OK),s.avail_out=0,!0)},sh.prototype.onData=function(e){this.chunks.push(e)},sh.prototype.onEnd=function(e){e===nh.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=eh.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},Td.Inflate=sh,Td.inflate=lh,Td.inflateRaw=function(e,t){return(t=t||{}).raw=!0,lh(e,t)},Td.ungzip=lh;var uh={};(0,Hu.assign)(uh,Uu,Td,Jd);var ch=uh,dh=!1,hh=0,fh=0,ph=960,vh=375,gh=750;function mh(e,t){var n=Number(e);return isNaN(n)?t:n}var _h=Du(0,((e,t)=>{var n;if(0===hh&&(!function(){var{platform:e,pixelRatio:t,windowWidth:n}=Fu();hh=n,fh=t,dh="ios"===e}(),n=__uniConfig.globalStyle||{},ph=mh(n.rpxCalcMaxDeviceWidth,960),vh=mh(n.rpxCalcBaseDeviceWidth,375),gh=mh(n.rpxCalcBaseDeviceWidth,750)),0===(e=Number(e)))return 0;var r=t||hh,i=e/750*(r=e===gh||r<=ph?r:vh);return i<0&&(i=-i),0===(i=Math.floor(i+1e-4))&&(i=1!==fh&&dh?.5:1),e<0?-i:i})),yh={};yh.f={}.propertyIsEnumerable;var bh,wh=k,xh=Re,Sh=H,kh=yh.f,Th=(bh=!1,function(e){for(var t,n=Sh(e),r=xh(n),i=r.length,a=0,o=[];i>a;)t=r[a++],wh&&!kh.call(n,t)||o.push(bh?[t,n[t]]:n[t]);return o});fe(fe.S,"Object",{values:function(e){return Th(e)}});var Eh=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},o._resetCrossOriginUpdater=function(){n=null,r=null},o.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,o=null;this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(o=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),l(e,"resize",r,!0)),l(t,"scroll",r,!0),o&&o.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var c=i(t);c&&this._monitorIntersections(c.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=i(n);if((n=a&&a.ownerDocument)==t)return!0}return!1}))){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var o=i(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},o.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,o=u(i),s=this._rootContainsTarget(i),l=r.entry,c=e&&s&&this._computeTargetAndRootIntersection(i,o,t),d=null;this._rootContainsTarget(i)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=r.entry=new a({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:o,rootBounds:d,intersectionRect:c});l?e&&s?this._hasCrossedThreshold(l,h)&&this._queuedEntries.push(h):l&&l.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(t,i,a){if("none"!=window.getComputedStyle(t).display){for(var o,s,l,c,h,p,v,g,m=i,_=f(t),y=!1;!y&&_;){var b=null,w=1==_.nodeType?window.getComputedStyle(_):{};if("none"==w.display)return null;if(_==this.root||9==_.nodeType)if(y=!0,_==this.root||_==e)n&&!this.root?!r||0==r.width&&0==r.height?(_=null,b=null,m=null):b=r:b=a;else{var x=f(_),S=x&&u(x),k=x&&this._computeTargetAndRootIntersection(x,S,a);S&&k?(_=x,b=d(S,k)):(_=null,m=null)}else{var T=_.ownerDocument;_!=T.body&&_!=T.documentElement&&"visible"!=w.overflow&&(b=u(_))}if(b&&(o=b,s=m,l=void 0,c=void 0,h=void 0,p=void 0,v=void 0,g=void 0,l=Math.max(o.top,s.top),c=Math.min(o.bottom,s.bottom),h=Math.max(o.left,s.left),p=Math.min(o.right,s.right),g=c-l,m=(v=p-h)>=0&&g>=0&&{top:l,bottom:c,left:h,right:p,width:v,height:g}||null),!m)break;_=_&&f(_)}return m}},o.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=u(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var a=this.thresholds[i];if(a==n||a==r||a<n!=a<r)return!0}},o.prototype._rootIsInDom=function(){return!this.root||h(e,this.root)},o.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return h(n,t)&&(!this.root||n==t.ownerDocument)},o.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},o.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=o,window.IntersectionObserverEntry=a}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=c(e.rootBounds),this.boundingClientRect=c(e.boundingClientRect),this.intersectionRect=c(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function o(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function u(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function h(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}};function Ch(e){var{bottom:t,height:n,left:r,right:i,top:a,width:o}=e||{};return{bottom:t,height:n,left:r,right:i,top:a,width:o}}function Mh(e){var{intersectionRatio:t,boundingClientRect:{height:n,width:r},intersectionRect:{height:i,width:a}}=e;return 0!==t?t:i===n?a/r:i/n}const Oh=Object.freeze(Object.defineProperty({__proto__:null,upx2px:_h,navigateTo:function(e){UniViewJSBridge.invokeServiceMethod("navigateTo",e)},navigateBack:function(e){UniViewJSBridge.invokeServiceMethod("navigateBack",e)},reLaunch:function(e){UniViewJSBridge.invokeServiceMethod("reLaunch",e)},redirectTo:function(e){UniViewJSBridge.invokeServiceMethod("redirectTo",e)},switchTab:function(e){UniViewJSBridge.invokeServiceMethod("switchTab",e)}},Symbol.toStringTag,{value:"Module"}));function Ih(e,t){if(t)return hn(t,"a")&&(t.a=e(t.a)),hn(t,"e")&&(t.e=e(t.e,!1)),hn(t,"w")&&(t.w=function(e,t){var n={};return e.forEach((e=>{var[r,[i,a]]=e;n[t(r)]=[t(i),a]})),n}(t.w,e)),hn(t,"s")&&(t.s=e(t.s)),hn(t,"t")&&(t.t=e(t.t)),t}var Lh=new Set;function Ah(e,t){Lh.add(function(e,t){return e.priority=t,e}(e,t))}function Nh(e,t){var n=window.__wxsModules,r=n&&n[e];return r||(t&&t.__renderjsInstances?t.__renderjsInstances[e]:void 0)}var Bh=qn.length;function Rh(e,t,n){var[r,i,a,o]=zh(t),s=Ph(e,r);if(fn(n)||fn(o)){var[l,u]=a.split(".");return Dh(s,i,l,u,n||o)}return function(e,t,n){var r=Nh(t,e);if(!r)return console.error(Kn("wxs","module "+n+" not found"));return er(r,n.slice(n.indexOf(".")+1))}(s,i,a)}function Ph(e,t){if(e.__ownerId===t)return e;for(var n=e.parentElement;n;){if(n.__ownerId===t)return n;n=n.parentElement}return e}function zh(e){return JSON.parse(e.slice(Bh))}function Dh(e,t,n,r,i){var a=Nh(t,e);if(!a)return console.error(Kn("wxs","module "+n+" not found"));var o=a[r];return vn(o)?o.apply(a,i):console.error(n+"."+r+" is not a function")}function Fh(e,t,n){var r=n;return n=>{try{!function(e,t,n,r){var[i,a,o]=zh(e),s=Ph(t,i),[l,u]=o.split(".");Dh(s,a,l,u,[n,r,Tu(Cu(s)),Tu(Cu(t))])}(t,e.$,n,r)}catch(i){console.error(i)}r=n}}function $h(e,t){var n=Cu(t);return Object.defineProperty(e,"instance",{get:()=>Tu(n)}),e}function jh(e,t){Object.keys(t).forEach((n=>{!function(e,t){var n=function(e){var t=window["__"+Xn],n=t&&t[e];if(!n)return console.error(Kn("renderjs",e+" not found"));return n}(t);if(!n)return;var r=e.$;(r.__renderjsInstances||(r.__renderjsInstances={}))[t]=function(e,t){return t=t.default||t,t.render=()=>{},Dl(t).mixin({mounted(){this.$ownerInstance=Tu(Cu(e))}}).mount(document.createElement("div"))}(r,n)}(e,t[n])}))}var Wh=Yn.length;function Vh(e,t){return gn(e)?(0===e.indexOf(Yn)?e=JSON.parse(e.slice(Wh)):0===e.indexOf(qn)&&(e=Rh(t,e)),e):e}function Hh(e){return 0===e.indexOf("--")}class Uh{constructor(e,t,n,r){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=e,this.tag=t,this.pid=n,r&&(this.$=r),this.$wxsProps=new Map;var i=this.$parent=function(e){return fm.get(e)}(n);i&&i.appendUniChild(this)}init(e){hn(e,"t")&&(this.$.textContent=e.t)}setText(e){this.$.textContent=e,this.updateView()}insert(e,t,n){n&&this.init(n,!1);var r=this.$,i=pm(e);-1===t?i.appendChild(r):i.insertBefore(r,pm(t).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:e}=this;e.parentNode.removeChild(e),this.isUnmounted=!0,vm(this.id),function(e){var{__renderjsInstances:t}=e.$;t&&Object.keys(t).forEach((e=>{t[e].$.appContext.app.unmount()}))}(this),this.removeUniChildren(),this.updateView()}appendChild(e){var t=this.$.appendChild(e);return this.updateView(!0),t}insertBefore(e,t){var n=this.$.insertBefore(e,t);return this.updateView(!0),n}appendUniChild(e){this.$children.push(e)}removeUniChild(e){var t=this.$children.indexOf(e);t>=0&&this.$children.splice(t,1)}removeUniParent(){var{$parent:e}=this;e&&(e.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach((e=>e.remove())),this.$children.length=0}setWxsProps(e){Object.keys(e).forEach((t=>{if(0===t.indexOf(gr)){var n=t.replace(gr,""),r=Vh(e[n]),i=Fh(this,e[t],r);Ah((()=>i(r)),4),this.$wxsProps.set(t,i),delete e[t],delete e[n],this.$hasWxsProps=!0}}))}addWxsEvents(e){Object.keys(e).forEach((t=>{var[n,r]=e[t];this.addWxsEvent(t,n,r)}))}addWxsEvent(e,t,n){}wxsPropsInvoke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.$hasWxsProps&&this.$wxsProps.get(gr+e);if(r)return Ah((()=>n?qa((()=>r(t))):r(t)),4),!0}updateView(e){(this.isMounted||e)&&window.dispatchEvent(new CustomEvent("updateview"))}}function qh(e,t){var{__wxsAddClass:n,__wxsRemoveClass:r}=e;r&&r.length&&(t=t.split(/\s+/).filter((e=>-1===r.indexOf(e))).join(" "),r.length=0),n&&n.length&&(t=t+" "+n.join(" ")),e.className=t}function Yh(e){return Jh(rf(e))}var Xh,Zh,Gh,Kh=/url\(\s*'?"?([a-zA-Z0-9\.\-\_\/]+\.(jpg|gif|png))"?'?\s*\)/,Jh=e=>{if(gn(e)&&-1!==e.indexOf("url(")){var t=e.match(Kh);t&&3===t.length&&(e=e.replace(t[1],$u(t[1])))}return e},{unit:Qh,unitRatio:ef,unitPrecision:tf}={unit:"rem",unitRatio:10/320,unitPrecision:5},nf=(Xh=Qh,Zh=ef,Gh=tf,e=>e.replace(ir,((e,t)=>{if(!t)return e;if(1===Zh)return"".concat(t).concat(Xh);var n,r,i,a,o=(n=parseFloat(t)*Zh,r=Gh,i=Math.pow(10,r+1),a=Math.floor(n*i),10*Math.round(a/10)/i);return 0===o?"0":"".concat(o).concat(Xh)}))),rf=e=>gn(e)?nf(e):e,af=["Webkit"],of={};function sf(e,t){var n=of[t];if(n)return n;var r=Cn(t);if("filter"!==r&&r in e)return of[t]=r;r=In(r);for(var i=0;i<af.length;i++){var a=af[i]+r;if(a in e)return of[t]=a}return t}function lf(e,t){var n=e.style;if(gn(t))""===t?e.removeAttribute("style"):n.cssText=Yh(t);else for(var r in t)cf(n,r,t[r]);var{__wxsStyle:i}=e;if(i)for(var a in i)cf(n,a,i[a])}var uf=/\s*!important$/;function cf(e,t,n){if(fn(n))n.forEach((n=>cf(e,t,n)));else if(n=Yh(n),t.startsWith("--"))e.setProperty(t,n);else{var r=sf(e,t);uf.test(n)?e.setProperty(On(r),n.replace(uf,""),"important"):e[r]=n}}function df(e,t){var n=e.__listeners[t];n&&e.removeEventListener(t,n)}function hf(e,t){if(e.__listeners[t])return!0}function ff(e,t,n){var[r,i]=ur(t);-1===n?df(e,r):hf(e,r)||e.addEventListener(r,e.__listeners[r]=pf(e.__id,n,i),i)}function pf(e,t,n){var r=t=>{var[r]=Mu(t);r.type=function(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(In(Cn(e)))}(t.type,n),UniViewJSBridge.publishHandler(Nu,[[20,e,r]])};return t?Al(r,vf(t)):r}function vf(e){var t=[];return e&cr.prevent&&t.push("prevent"),e&cr.self&&t.push("self"),e&cr.stop&&t.push("stop"),t}function gf(e,t,n){var r=n=>{!function(e,t,n){var[r,i,a]=zh(t),[o,s]=a.split("."),l=Ph(e,r);Dh(l,i,o,s,[$h(n,e),Tu(Cu(l))])}(function(e){return!!e.addWxsEvent}(e)?e.$:e,t,Mu(n)[0])};return n?Al(r,vf(n)):r}function mf(e,t){e._vod="none"===e.style.display?"":e.style.display,e.style.display=t?e._vod:"none"}class _f extends Uh{constructor(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];super(e,t.tagName,n,t),this.$props=da({}),this.$.__id=e,this.$.__listeners=Object.create(null),this.$propNames=a,this._update=this.update.bind(this),this.init(i),this.insert(n,r)}init(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];hn(e,"a")&&this.setAttrs(e.a),hn(e,"s")&&this.setAttr("style",e.s),hn(e,"e")&&this.addEvents(e.e),hn(e,"w")&&this.addWxsEvents(e.w),super.init(e),t&&(go(this.$props,(()=>{Ah(this._update,1)}),{flush:"sync"}),this.update(!0))}setAttrs(e){this.setWxsProps(e),Object.keys(e).forEach((t=>{this.setAttr(t,e[t])}))}addEvents(e){Object.keys(e).forEach((t=>{this.addEvent(t,e[t])}))}addWxsEvent(e,t,n){!function(e,t,n,r){var[i,a]=ur(t);-1===r?df(e,i):hf(e,i)||e.addEventListener(i,e.__listeners[i]=gf(e,n,r),a)}(this.$,e,t,n)}addEvent(e,t){ff(this.$,e,t)}removeEvent(e){ff(this.$,e,-1)}setAttr(e,t){e===dr?qh(this.$,t):e===hr?lf(this.$,t):e===fr?mf(this.$,t):e===pr?this.$.__ownerId=t:e===vr?Ah((()=>jh(this,t)),3):"innerHTML"===e?this.$.innerHTML=t:"textContent"===e?this.setText(t):this.setAttribute(e,t),this.updateView()}removeAttr(e){e===dr?qh(this.$,""):e===hr?lf(this.$,""):this.removeAttribute(e),this.updateView()}setAttribute(e,t){t=Vh(t,this.$),-1!==this.$propNames.indexOf(e)?this.$props[e]=t:Hh(e)?this.$.style.setProperty(e,Yh(t)):this.wxsPropsInvoke(e,t)||this.$.setAttribute(e,t)}removeAttribute(e){-1!==this.$propNames.indexOf(e)?delete this.$props[e]:Hh(e)?this.$.style.removeProperty(e):this.$.removeAttribute(e)}update(){}}function yf(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>"".concat(uni.upx2px(parseFloat(t)),"px"))):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function bf(e){var t=e.animation;if(t&&t.actions&&t.actions.length){var n=0,r=t.actions,i=t.actions.length;setTimeout((()=>{a()}),0)}function a(){var t=r[n],o=t.option.transition,s=function(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],r=["opacity","background-color"],i=["width","height","left","right","top","bottom"],a=e.animates,o=e.option,s=o.transition,l={},u=[];return a.forEach((e=>{var a=e.type,o=[...e.args];if(t.concat(n).includes(a))a.startsWith("rotate")||a.startsWith("skew")?o=o.map((e=>parseFloat(e)+"deg")):a.startsWith("translate")&&(o=o.map(yf)),n.indexOf(a)>=0&&(o.length=1),u.push("".concat(a,"(").concat(o.join(","),")"));else if(r.concat(i).includes(o[0])){a=o[0];var s=o[1];l[a]=i.includes(a)?yf(s):s}})),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>"".concat(function(e){return e.replace(/[A-Z]/g,(e=>"-".concat(e.toLowerCase()))).replace("webkit","-webkit")}(e)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms"))).join(","),l.transformOrigin=l.webkitTransformOrigin=o.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),(n+=1)<i&&setTimeout(a,o.duration+o.delay)}}const wf={props:["animation"],watch:{animation:{deep:!0,handler(){bf(this)}}},mounted(){bf(this)}};var xf=e=>{e.__reserved=!0;var{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(wf),Sf(e)},Sf=e=>(e.__reserved=!0,e.compatConfig={MODE:3},function(e){return vn(e)?{setup:e,name:e.name}:e}(e)),kf={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Tf(e){var t,n,r=Ea(!1),i=!1;function a(){requestAnimationFrame((()=>{clearTimeout(n),n=setTimeout((()=>{r.value=!1}),parseInt(e.hoverStayTime))}))}function o(n){n._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(n._hoverPropagationStopped=!0),i=!0,t=setTimeout((()=>{r.value=!0,i||a()}),parseInt(e.hoverStartTime)))}function s(){i=!1,r.value&&a()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:r,binding:{onTouchstartPassive:function(e){e.touches.length>1||o(e)},onMousedown:function(e){i||(o(e),window.addEventListener("mouseup",l))},onTouchend:function(){s()},onMouseup:function(){i&&l()},onTouchcancel:function(){i=!1,r.value=!1,clearTimeout(t)}}}}function Ef(e,t){return gn(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}function Cf(e){return e.__wwe=!0,e}function Mf(e,t){return(n,r,i)=>{e.value&&t(n,function(e,t,n,r){var i=or(n);return{type:r.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:r}}(n,r,e.value,i||{}))}}var Of=Ql("uf");const If=xf({name:"Form",emits:["submit","reset"],setup(e,t){var n,r,{slots:i,emit:a}=t,o=Ea(null);return n=Mf(o,a),r=[],ho(Of,{addField(e){r.push(e)},removeField(e){r.splice(r.indexOf(e),1)},submit(e){n("submit",e,{value:r.reduce(((e,t)=>{if(t.submit){var[n,r]=t.submit();n&&(e[n]=r)}return e}),Object.create(null))})},reset(e){r.forEach((e=>e.reset&&e.reset())),n("reset",e)}}),()=>zs("uni-form",{ref:o},[zs("span",null,[i.default&&i.default()])],512)}});var Lf={for:{type:String,default:""}},Af=Ql("ul");const Nf=xf({name:"Label",props:Lf,setup(e,t){var{slots:n}=t,r=ou(),i=function(){var e=[];return ho(Af,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),a=al((()=>e.for||n.default&&n.default.length)),o=Cf((t=>{var n=t.target,a=/^uni-(checkbox|radio|switch)-/.test(n.className);a||(a=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),a||(e.for?UniViewJSBridge.emit("uni-label-click-"+r+"-"+e.for,t,!0):i.length&&i[0](t,!0))}));return()=>zs("uni-label",{class:{"uni-label-pointer":a},onClick:o},[n.default&&n.default()],10,["onClick"])}});function Bf(e,t){Rf(e.id,t),go((()=>e.id),((e,n)=>{Pf(n,t,!0),Rf(e,t,!0)})),Bo((()=>{Pf(e.id,t)}))}function Rf(e,t,n){var r=ou();n&&!e||xn(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge.on("uni-".concat(i,"-").concat(r,"-").concat(e),t[i]):0===i.indexOf("uni-")?UniViewJSBridge.on(i,t[i]):e&&UniViewJSBridge.on("uni-".concat(i,"-").concat(r,"-").concat(e),t[i])}))}function Pf(e,t,n){var r=ou();n&&!e||xn(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge.off("uni-".concat(i,"-").concat(r,"-").concat(e),t[i]):0===i.indexOf("uni-")?UniViewJSBridge.off(i,t[i]):e&&UniViewJSBridge.off("uni-".concat(i,"-").concat(r,"-").concat(e),t[i])}))}const zf=xf({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,t){var{slots:n}=t,r=Ea(null);Fr();var i=fo(Of,!1),{hovering:a,binding:o}=Tf(e),{t:s}=Pr(),l=Cf(((t,n)=>{if(e.disabled)return t.stopImmediatePropagation();n&&r.value.click();var a=e.formType;if(a){if(!i)return;"submit"===a?i.submit(t):"reset"===a&&i.reset(t)}else{var o,l,u;"feedback"===e.openType&&(o=s("uni.button.feedback.title"),l=s("uni.button.feedback.send"),(u=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:o,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:l,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){u.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}})).show("slide-in-right"))}})),u=fo(Af,!1);return u&&(u.addHandler(l),No((()=>{u.removeHandler(l)}))),Bf(e,{"label-click":l}),()=>{var t=e.hoverClass,i=Ef(e,"disabled"),s=Ef(e,"loading"),u=Ef(e,"plain"),c=t&&"none"!==t;return zs("uni-button",Hs({ref:r,onClick:l,class:c&&a.value?t:""},c&&o,i,s,u),[n.default&&n.default()],16,["onClick"])}}});const Df=xf({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:n}=t,r=Ea(null),i=function(e){return()=>{var{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(r),a=function(e,t,n){var r=da({width:-1,height:-1});return go((()=>un({},r)),(e=>t("resize",e))),()=>{var t=e.value;r.width=t.offsetWidth,r.height=t.offsetHeight,n()}}(r,n,i);return function(e,t,n,r){So(r),Io((()=>{t.initial&&qa(n);var i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||r()}))}(r,e,a,i),()=>zs("uni-resize-sensor",{ref:r,onAnimationstartOnce:a},[zs("div",{onScroll:a},[zs("div",null,null)],40,["onScroll"]),zs("div",{onScroll:a},[zs("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});var Ff=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function $f(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.width=e.offsetWidth*(t?Ff:1),e.height=e.offsetHeight*(t?Ff:1),e.getContext("2d").__hidpi__=t}var jf=!1;var Wf,Vf=Qn((()=>function(){if(!jf){jf=!0;var e,t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=(e=t.drawImage,function(t,n,r,i,a,o,s,l,u,c){if(!this.__hidpi__)return e.apply(this,arguments);n*=Ff,r*=Ff,i*=Ff,a*=Ff,o*=Ff,s*=Ff,l=c?l*Ff:l,u=c?u*Ff:u,e.call(this,t,n,r,i,a,o,s,l,u)}),1!==Ff&&(function(e,t){for(var n in e)hn(e,n)&&t(e[n],n)}({fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*Ff}));else if(Array.isArray(e))for(var r=0;r<e.length;r++)n[e[r]]*=Ff;return t.apply(this,n)}}(t[n])})),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=Ff,e.apply(this,arguments),this.lineWidth/=Ff}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Ff,t[2]*=Ff,t[3]&&"number"==typeof t[3]&&(t[3]*=Ff);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*Ff+n})),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Ff,t[2]*=Ff,t[3]&&"number"==typeof t[3]&&(t[3]*=Ff);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*Ff+n})),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(Ff,Ff),e.apply(this,arguments),this.scale(1/Ff,1/Ff)}}(t.drawImage))}}()));function Hf(e){return e?$u(e):e}function Uf(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function qf(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}function Yf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Wf||(Wf=document.createElement("canvas")),Wf.width=e,Wf.height=t,Wf}const Xf=xf({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,t){var{emit:n,slots:r}=t;Vf();var i=Ea(null),a=Ea(null),o=Ea(!1),s=function(e){return(t,n)=>{e(t,Iu(n))}}(n),{$attrs:l,$excludeAttrs:u,$listeners:c}=hv({excludeListeners:!0}),{_listeners:d}=function(e,t,n){var r=al((()=>{var r=["onTouchstart","onTouchmove","onTouchend"],i=t.value,a=un({},(()=>{var e={};for(var t in i)if(hn(i,t)){var n=i[t];e[t]=n}return e})());return r.forEach((t=>{var r=[];a[t]&&r.push(Cf((e=>{var r=e.currentTarget.getBoundingClientRect();qf(r,e.touches),qf(r,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&r.push(Gl),a[t]=r})),a}));return{_listeners:r}}(e,c,s),{_handleSubscribe:h,_resize:f}=function(e,t,n){var r=[],i={},a=al((()=>e.hidpi?Ff:1));function o(n){var r=t.value;if(!n||r.width!==Math.floor(n.width*a.value)||r.height!==Math.floor(n.height*a.value))if(r.width>0&&r.height>0){var i=r.getContext("2d"),o=i.getImageData(0,0,r.width,r.height);$f(r,e.hidpi),i.putImageData(o,0,0)}else $f(r,e.hidpi)}function s(e,a){var{actions:o,reserve:s}=e;if(o)if(n.value)r.push([o,s]);else{var c=t.value,d=c.getContext("2d");s||(d.fillStyle="#000000",d.strokeStyle="#000000",d.shadowColor="#000000",d.shadowBlur=0,d.shadowOffsetX=0,d.shadowOffsetY=0,d.setTransform(1,0,0,1,0,0),d.clearRect(0,0,c.width,c.height)),l(o);for(var h=function(e){var t=o[e],n=t.method,r=t.data,s=r[0];if(/^set/.test(n)&&"setTransform"!==n){var l,c=n[3].toLowerCase()+n.slice(4);if("fillStyle"===c||"strokeStyle"===c){if("normal"===s)l=Uf(r[1]);else if("linear"===s){var h=d.createLinearGradient(...r[1]);r[2].forEach((function(e){var t=e[0],n=Uf(e[1]);h.addColorStop(t,n)})),l=h}else if("radial"===s){var f=r[1],p=f[0],v=f[1],g=f[2],m=d.createRadialGradient(p,v,0,p,v,g);r[2].forEach((function(e){var t=e[0],n=Uf(e[1]);m.addColorStop(t,n)})),l=m}else if("pattern"===s){return u(r[1],o.slice(e+1),a,(function(e){e&&(d[c]=d.createPattern(e,r[2]))}))?"continue":"break"}d[c]=l}else if("globalAlpha"===c)d[c]=Number(s)/255;else if("shadow"===c){var _=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];r.forEach((function(e,t){d[_[t]]="shadowColor"===_[t]?Uf(e):e}))}else if("fontSize"===c){var y=d.__font__||d.font;d.__font__=d.font=y.replace(/\d+\.?\d*px/,s+"px")}else"lineDash"===c?(d.setLineDash(s),d.lineDashOffset=r[1]||0):"textBaseline"===c?("normal"===s&&(r[0]="alphabetic"),d[c]=s):"font"===c?d.__font__=d.font=s:d[c]=s}else if("fillPath"===n||"strokePath"===n)n=n.replace(/Path/,""),d.beginPath(),r.forEach((function(e){d[e.method].apply(d,e.data)})),d[n]();else if("fillText"===n)d.fillText.apply(d,r);else if("drawImage"===n){if("break"===function(){var t=[...r],n=t[0],s=t.slice(1);if(i=i||{},!u(n,o.slice(e+1),a,(function(e){e&&d.drawImage.apply(d,[e].concat([...s.slice(4,8)],[...s.slice(0,4)]))})))return"break"}())return"break"}else"clip"===n?(r.forEach((function(e){d[e.method].apply(d,e.data)})),d.clip()):d[n].apply(d,r)},f=0;f<o.length;f++){var p=h(f);if("break"===p)break}n.value||a({errMsg:"drawCanvas:ok"})}}function l(e){e.forEach((function(e){var t=e.method,n=e.data,r="";function a(){var e=i[r]=new Image;if(e.onload=function(){e.ready=!0},"Google Inc."===navigator.vendor)return 0===r.indexOf("file://")&&(e.crossOrigin="anonymous"),void(e.src=r);Vu(r).then((t=>{e.src=t})).catch((()=>{e.src=r}))}"drawImage"===t?(r=Hf(r=n[0]),n[0]=r):"setFillStyle"===t&&"pattern"===n[0]&&(r=Hf(r=n[1]),n[1]=r),r&&!i[r]&&a()}))}function u(e,t,a,o){var l=i[e];return l.ready?(o(l),!0):(r.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,o(l),n.value=!1;var e=r.slice(0);r=[];for(var t=e.shift();t;)s({actions:t[0],reserve:t[1]},a),t=e.shift()},!1)}function c(e,n){var r,{x:i=0,y:o=0,width:s,height:l,destWidth:u,destHeight:c,hidpi:d=!0,dataType:h,quality:f=1,type:p="png"}=e,v=t.value,g=v.offsetWidth-i;s=s?Math.min(s,g):g;var m=v.offsetHeight-o;l=l?Math.min(l,m):m,d?(u=s,c=l):u||c?u?c||(c=Math.round(l/s*u)):u=Math.round(s/l*c):(u=Math.round(s*a.value),c=Math.round(l*a.value));var _,y=Yf(u,c),b=y.getContext("2d");"jpeg"!==p&&"jpg"!==p||(p="jpeg",b.fillStyle="#fff",b.fillRect(0,0,u,c)),b.__hidpi__=!0,b.drawImageByCanvas(v,i,o,s,l,0,0,u,c,!1);try{var w;if("base64"===h)r=y.toDataURL("image/".concat(p),f);else{var x=b.getImageData(0,0,u,c);r=ch.deflateRaw(x.data,{to:"string"}),w=!0}_={data:r,compressed:w,width:u,height:c}}catch(S){_={errMsg:"canvasGetImageData:fail ".concat(S)}}if(y.height=y.width=0,b.__hidpi__=!1,!n)return _;n(_)}function d(e,n){var{data:r,x:i,y:a,width:o,height:s,compressed:l}=e;try{l&&(r=ch.inflateRaw(r)),s||(s=Math.round(r.length/4/o));var u=Yf(o,s);u.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(r),o,s),0,0),t.value.getContext("2d").drawImage(u,i,a,o,s),u.height=u.width=0}catch(c){return void n({errMsg:"canvasPutImageData:fail"})}n({errMsg:"canvasPutImageData:ok"})}function h(e,t){var{x:n=0,y:r=0,width:i,height:a,destWidth:o,destHeight:s,fileType:l,quality:u,dirname:d}=e,h=c({x:n,y:r,width:i,height:a,destWidth:o,destHeight:s,hidpi:!1,dataType:"base64",type:l,quality:u});h.data&&h.data.length?function(e,t,n){var r="".concat(Date.now()).concat(Wu++),i=e.split(","),a=i[0],o=i[1],s=(a.match(/data:image\/(\S+?);/)||["","png"])[1].replace("jpeg","jpg"),l="".concat(r,".").concat(s),u="".concat(t,"/").concat(l),c=t.indexOf("/"),d=t.substring(0,c),h=t.substring(c+1);plus.io.resolveLocalFileSystemURL(d,(function(e){e.getDirectory(h,{create:!0,exclusive:!1},(function(e){e.getFile(l,{create:!0,exclusive:!1},(function(e){e.createWriter((function(e){e.onwrite=function(){n(null,u)},e.onerror=n,e.seek(0),e.writeAsBinary(o)}),n)}),n)}),n)}),n)}(h.data,d,((e,n)=>{var r="toTempFilePath:".concat(e?"fail":"ok");e&&(r+=" ".concat(e.message)),t({errMsg:r,tempFilePath:n})})):t({errMsg:h.errMsg.replace("canvasPutImageData","toTempFilePath")})}var f={actionsChanged:s,getImageData:c,putImageData:d,toTempFilePath:h};function p(e,t,n){var r=f[e];0!==e.indexOf("_")&&vn(r)&&r(t,n)}return un(f,{_resize:o,_handleSubscribe:p})}(e,i,o);return Tg(h,Cg(e.canvasId),!0),Io((()=>{f()})),()=>{var{canvasId:t,disableScroll:n}=e;return zs("uni-canvas",Hs({"canvas-id":t,"disable-scroll":n},l.value,u.value,d.value),[zs("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),zs("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[r.default&&r.default()]),zs(Df,{ref:a,onResize:f},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});var Zf=Ql("ucg");const Gf=xf({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,t){var{emit:n,slots:r}=t,i=Ea(null);return function(e,t){var n=[],r=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);ho(Zf,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:r()})}});var i=fo(Of,!1);i&&i.addField({submit:()=>{var t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=r()),t}})}(e,Mf(i,n)),()=>zs("uni-checkbox-group",{ref:i},[r.default&&r.default()],512)}});const Kf=xf({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,t){var{slots:n}=t,r=Ea(e.checked),i=Ea(e.value);go([()=>e.checked,()=>e.value],(e=>{var[t,n]=e;r.value=t,i.value=n}));var{uniCheckGroup:a,uniLabel:o}=function(e,t,n){var r=al((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),i={reset:n},a=fo(Zf,!1);a&&a.addField(r);var o=fo(Of,!1);o&&o.addField(i);var s=fo(Af,!1);return No((()=>{a&&a.removeField(r),o&&o.removeField(i)})),{uniCheckGroup:a,uniForm:o,uniLabel:s}}(r,i,(()=>{r.value=!1})),s=t=>{e.disabled||(r.value=!r.value,a&&a.checkboxChange(t),t.stopPropagation())};return o&&(o.addHandler(s),No((()=>{o.removeHandler(s)}))),Bf(e,{"label-click":s}),()=>{var t=Ef(e,"disabled");return zs("uni-checkbox",Hs(t,{onClick:s}),[zs("div",{class:"uni-checkbox-wrapper"},[zs("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[r.value?au(iu,e.color,22):""],2),n.default&&n.default()])],16,["onClick"])}}});var Jf,Qf,ep,tp,np,rp;function ip(){}function ap(e,t,n){sr((()=>{var r="adjustResize",i="adjustPan",a=plus.webview.currentWebview(),o=rp||a.getStyle()||{},s={mode:n||o.softinputMode===r?r:e.adjustPosition?i:"nothing",position:{top:0,height:0}};if(s.mode===i){var l=t.getBoundingClientRect();s.position.top=l.top,s.position.height=l.height+(Number(e.cursorSpacing)||0)}a.setSoftinputTemporary(s)}))}sr((()=>{Qf="Android"===plus.os.name,ep=plus.os.version||""})),document.addEventListener("keyboardchange",(function(e){tp=e.height,np&&np()}),!1);var op={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},sp=["keyboardheightchange"];function lp(e,t,n){var r={};function i(t){var i,a=al((()=>0===String(navigator.vendor).indexOf("Apple"))),o=()=>{n("keyboardheightchange",{},{height:tp,duration:.25}),i&&0===tp&&ap(e,t),e.autoBlur&&i&&0===tp&&(Qf||parseInt(ep)>=13)&&document.activeElement.blur()};t.addEventListener("focus",(()=>{i=!0,clearTimeout(Jf),document.addEventListener("click",ip,!1),np=o,tp&&n("keyboardheightchange",{},{height:tp,duration:0}),function(e,t){"auto"!==e.showConfirmBar?sr((()=>{var n=plus.webview.currentWebview(),{softinputNavBar:r}=n.getStyle()||{};"none"!==r!==e.showConfirmBar?(t.softinputNavBar=r||"auto",n.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})):delete t.softinputNavBar}(e,r),ap(e,t)})),Qf&&t.addEventListener("click",(()=>{e.disabled||e.readOnly||!i||0!==tp||ap(e,t)})),Qf||(parseInt(ep)<12&&t.addEventListener("touchstart",(()=>{e.disabled||e.readOnly||i||ap(e,t)})),parseFloat(ep)>=14.6&&!rp&&sr((()=>{var e=plus.webview.currentWebview();rp=e.getStyle()||{}})));var s=()=>{document.removeEventListener("click",ip,!1),np=null,tp&&n("keyboardheightchange",{},{height:0,duration:0}),function(e){var t=e.softinputNavBar;t&&sr((()=>{plus.webview.currentWebview().setStyle({softinputNavBar:t})}))}(r),Qf&&(Jf=setTimeout((()=>{ap(e,t,!0)}),300)),a.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};t.addEventListener("blur",(()=>{a.value&&t.blur(),i=!1,s()}))}go((()=>t.value),(e=>e&&i(e)))}var up=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,cp=/^<\/([-A-Za-z0-9_]+)[^>]*>/,dp=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,hp=yp("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),fp=yp("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),pp=yp("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),vp=yp("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),gp=yp("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),mp=yp("script,style");function _p(e,t){var n,r,i,a=[],o=e;for(a.last=function(){return this[this.length-1]};e;){if(r=!0,a.last()&&mp[a.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+a.last()+"[^>]*>"),(function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""})),u("",a.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),r=!1):0==e.indexOf("</")?(i=e.match(cp))&&(e=e.substring(i[0].length),i[0].replace(cp,u),r=!1):0==e.indexOf("<")&&(i=e.match(up))&&(e=e.substring(i[0].length),i[0].replace(up,l),r=!1),r){var s=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}if(e==o)throw"Parse Error: "+e;o=e}function l(e,n,r,i){if(n=n.toLowerCase(),fp[n])for(;a.last()&&pp[a.last()];)u("",a.last());if(vp[n]&&a.last()==n&&u("",n),(i=hp[n]||!!i)||a.push(n),t.start){var o=[];r.replace(dp,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:gp[t]?t:"";o.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,o,i)}}function u(e,n){if(n)for(r=a.length-1;r>=0&&a[r]!=n;r--);else var r=0;if(r>=0){for(var i=a.length-1;i>=r;i--)t.end&&t.end(a[i]);a.length=r}}u()}function yp(e){for(var t={},n=e.split(","),r=0;r<n.length;r++)t[n[r]]=!0;return t}var bp={};function wp(e,t,n){if(gn(e)?window[e]:e)n();else{var r=bp[t];if(!r){r=bp[t]=[];var i=document.createElement("script");i.src=t,document.body.appendChild(i),i.onload=function(){r.forEach((e=>e())),delete bp[t]}}r.push(n)}}function xp(e){var t=e.import("blots/block/embed");class n extends t{}return n.blotName="divider",n.tagName="HR",{"formats/divider":n}}function Sp(e){var t=e.import("blots/inline");class n extends t{}return n.blotName="ins",n.tagName="INS",{"formats/ins":n}}function kp(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK,whitelist:["left","right","center","justify"]};return{"formats/align":new n.Style("align","text-align",r)}}function Tp(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK,whitelist:["rtl"]};return{"formats/direction":new n.Style("direction","direction",r)}}function Ep(e){var t=e.import("parchment"),n=e.import("blots/container"),r=e.import("formats/list/item");class i extends n{static create(e){var t="ordered"===e?"OL":"UL",n=super.create(t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}static formats(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}constructor(e){super(e);e.addEventListener("click",(n=>{if(n.target.parentNode===e){var r=this.statics.formats(e),i=t.find(n.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}}))}format(e,t){this.children.length>0&&this.children.tail.format(e,t)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(e,t){if(e instanceof r)super.insertBefore(e,t);else{var n=null==t?this.length():t.offset(this),i=this.split(n);i.parent.insertBefore(e,i)}}optimize(e){super.optimize(e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}replace(e){if(e.statics.blotName!==this.statics.blotName){var n=t.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}super.replace(e)}}return i.blotName="list",i.scope=t.Scope.BLOCK_BLOT,i.tagName=["OL","UL"],i.defaultChild="list-item",i.allowedChildren=[r],{"formats/list":i}}function Cp(e){var{Scope:t}=e.import("parchment");return{"formats/backgroundColor":new(e.import("formats/background").constructor)("backgroundColor","background-color",{scope:t.INLINE})}}function Mp(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK},i={};return["margin","marginTop","marginBottom","marginLeft","marginRight"].concat(["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"]).forEach((e=>{i["formats/".concat(e)]=new n.Style(e,On(e),r)})),i}function Op(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.INLINE},i={};return["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"].forEach((e=>{i["formats/".concat(e)]=new n.Style(e,On(e),r)})),i}function Ip(e){var{Scope:t,Attributor:n}=e.import("parchment"),r=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],i={};return r.forEach((e=>{var{name:t,scope:r}=e;i["formats/".concat(t)]=new n.Style(t,On(t),{scope:r})})),i}function Lp(e){var t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=e=>e?$u(e):e,t.formats=function(e){return n.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})};var r=t.prototype.format;t.prototype.format=function(e,t){n.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):r.call(this,e,t)}}function Ap(e){var t=e.import("formats/link");t.sanitize=e=>{var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(r)>-1?e:t.SANITIZED_URL}}function Np(e,t,n){var r,i,a;function o(){return{html:a.root.innerHTML,text:a.getText(),delta:a.getContents()}}function s(e){var t="data-placeholder",n=a.root;n.getAttribute(t)!==e&&n.setAttribute(t,e)}go((()=>e.readOnly),(e=>{r&&(a.enable(!e),e||a.blur())})),go((()=>e.placeholder),(e=>{r&&s(e)}));var l={};function u(e){var t=e?a.getFormat(e):{},r=Object.keys(t);(r.length!==Object.keys(l).length||r.find((e=>t[e]!==l[e])))&&(l=t,n("statuschange",{},t))}function c(){n("input",{},o())}function d(l){var d=window.Quill;!function(e){var t={divider:xp,ins:Sp,align:kp,direction:Tp,list:Ep,background:Cp,box:Mp,font:Op,text:Ip,image:Lp,link:Ap},n={};Object.values(t).forEach((t=>un(n,t(e)))),e.register(n,!0)}(d);var h={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};l.length&&(d.register("modules/ImageResize",window.ImageResize.default),h.modules={ImageResize:{modules:l}});var f=t.value,p=(a=new d(f,h)).root;["focus","blur","input"].forEach((t=>{p.addEventListener(t,(r=>{var i=o();if("input"===t){if("ios"===Fu().platform){var a=(i.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1];s(a&&a.replace(/\s/g,"")?"":e.placeholder)}r.stopPropagation()}else n(t,r,i)}))})),a.on("text-change",c),a.on("selection-change",u),a.on("scroll-optimize",(()=>{u(a.selection.getRange()[0])})),a.clipboard.addMatcher(Node.ELEMENT_NODE,((e,t)=>(i||t.ops&&(t.ops=t.ops.filter((e=>{var{insert:t}=e;return gn(t)})).map((e=>{var{insert:t}=e;return{insert:t}}))),t))),r=!0,n("ready",{},{})}Tg(((e,t,n)=>{var s,l,d,{options:h,callbackId:f}=t;if(r){var p=window.Quill;switch(e){case"format":var{name:v="",value:g=!1}=h;l=a.getSelection(!0);var m=a.getFormat(l)[v]||!1;if(["bold","italic","underline","strike","ins"].includes(v))g=!m;else if("direction"===v){g=("rtl"!==g||!m)&&g;var _=a.getFormat(l).align;"rtl"!==g||_?g||"right"!==_||a.format("align",!1,"user"):a.format("align","right","user")}else if("indent"===v){g="+1"===g,"rtl"===a.getFormat(l).direction&&(g=!g),g=g?"+1":"-1"}else"list"===v&&(g="check"===g?"unchecked":g,m="checked"===m?"unchecked":m),g=m&&m!==(g||!1)||!m&&g?g:!m;a.format(v,g,"user");break;case"insertDivider":l=a.getSelection(!0),a.insertText(l.index,Wn,"user"),a.insertEmbed(l.index+1,"divider",!0,"user"),a.setSelection(l.index+2,0,"silent");break;case"insertImage":l=a.getSelection(!0);var{src:y="",alt:b="",width:w="",height:x="",extClass:S="",data:k={}}=h,T=$u(y);a.insertEmbed(l.index,"image",T,"silent");var E=!!/^(file|blob):/.test(T)&&T;a.formatText(l.index,1,"data-local",E,"silent"),a.formatText(l.index,1,"alt",b,"silent"),a.formatText(l.index,1,"width",w,"silent"),a.formatText(l.index,1,"height",x,"silent"),a.formatText(l.index,1,"class",S,"silent"),a.formatText(l.index,1,"data-custom",Object.keys(k).map((e=>"".concat(e,"=").concat(k[e]))).join("&"),"silent"),a.setSelection(l.index+1,0,"silent"),a.scrollIntoView(),setTimeout((()=>{c()}),1e3);break;case"insertText":l=a.getSelection(!0);var{text:C=""}=h;a.insertText(l.index,C,"user"),a.setSelection(l.index+C.length,0,"silent");break;case"setContents":var{delta:M,html:O}=h;"object"==typeof M?a.setContents(M,"silent"):gn(O)?a.setContents(function(e){var t,n=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],r="";_p(e,{start:function(e,i,a){if(n.includes(e)){t=!1;var o=i.map((e=>{var{name:t,value:n}=e;return"".concat(t,'="').concat(n,'"')})).join(" "),s="<".concat(e," ").concat(o," ").concat(a?"/":"",">");r+=s}else t=!a},end:function(e){t||(r+="</".concat(e,">"))},chars:function(e){t||(r+=e)}}),i=!0;var o=a.clipboard.convert(r);return i=!1,o}(O),"silent"):d="contents is missing";break;case"getContents":s=o();break;case"clear":a.setText("");break;case"removeFormat":l=a.getSelection(!0);var I=p.import("parchment");l.length?a.removeFormat(l.index,l.length,"user"):Object.keys(a.getFormat(l)).forEach((e=>{I.query(e,I.Scope.INLINE)&&a.format(e,!1)}));break;case"undo":a.history.undo();break;case"redo":a.history.redo();break;case"blur":a.blur();break;case"getSelectionText":s={text:""},(l=a.selection.savedRange)&&0!==l.length&&(s.text=a.getText(l.index,l.length));break;case"scrollIntoView":a.scrollIntoView()}u(l)}else d="not ready";f&&n({callbackId:f,data:un({},s,{errMsg:"".concat(e,":").concat(d?"fail "+d:"ok")})})}),Cg(),!0),Io((()=>{var t=[];e.showImgSize&&t.push("DisplaySize"),e.showImgToolbar&&t.push("Toolbar"),e.showImgResize&&t.push("Resize");wp(window.Quill,"./__uniappquill.js",(()=>{if(t.length){wp(window.ImageResize,"./__uniappquillimageresize.js",(()=>{d(t)}))}else d(t)}))}))}const Bp=xf({name:"Editor",props:un({},op,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),emit:["ready","focus","blur","input","statuschange",...sp],setup(e,t){var{emit:n}=t,r=Ea(null),i=Mf(r,n);return Np(e,r,i),lp(e,r,i),()=>zs("uni-editor",{ref:r,id:e.id,class:"ql-container"},null,8,["id"])}});var Rp="#10aeff",Pp="#b2b2b2",zp={success:{d:"M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",c:Vn},success_no_circle:{d:iu,c:Vn},info:{d:"M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",c:Rp},warn:{d:"M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",c:"#f76260"},waiting:{d:"M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",c:Rp},cancel:{d:"M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",c:"#f43530"},download:{d:"M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",c:Vn},search:{d:"M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",c:Pp},clear:{d:"M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",c:Pp}};const Dp=xf({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=al((()=>zp[e.type]));return()=>{var{value:n}=t;return zs("uni-icon",null,[n&&n.d&&au(n.d,e.color||n.c,tu(e.size))])}}});var Fp={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},$p={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},jp={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]};const Wp=xf({name:"Image",props:Fp,setup(e,t){var{emit:n}=t,r=Ea(null),i=function(e,t){var n=Ea(""),r=al((()=>{var e="auto",r="",i=jp[t.mode];return i?(i[0]&&(r=i[0]),i[1]&&(e=i[1])):(r="0% 0%",e="100% 100%"),"background-image:".concat(n.value?'url("'+n.value+'")':"none",";background-position:").concat(r,";background-size:").concat(e,";")})),i=da({rootEl:e,src:al((()=>t.src?$u(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:r,imgSrc:n});return Io((()=>{var t=e.value.style;i.origWidth=Number(t.width)||0,i.origHeight=Number(t.height)||0})),i}(r,e),a=Mf(r,n),{fixSize:o}=function(e,t,n){var r=()=>{var{mode:r}=t,i=$p[r];if(i){var{origWidth:a,origHeight:o}=n,s=a&&o?a/o:0;if(s){var l=e.value,u=l[i[0]];u&&(l.style[i[1]]=function(e){Vp&&e>10&&(e=2*Math.round(e/2));return e}(i[2](u,s))+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},i=()=>{var{style:t}=e.value,{origStyle:{width:r,height:i}}=n;t.width=r,t.height=i};return go((()=>t.mode),((e,t)=>{$p[t]&&i(),$p[e]&&r()})),{fixSize:r,resetSize:i}}(r,e,i);return function(e,t,n,r,i){var a,o,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.origWidth=t,e.origHeight=n,e.imgSrc=r},l=l=>{if(!l)return u(),void s();(a=a||new Image).onload=e=>{var{width:c,height:d}=a;s(c,d,l),r(),a.draggable=t.draggable,o&&o.remove(),o=a,n.value.appendChild(a),u(),i("load",e,{width:c,height:d})},a.onerror=t=>{s(),u(),i("error",t,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},a.src=l},u=()=>{a&&(a.onload=null,a.onerror=null,a=null)};go((()=>e.src),(e=>l(e))),go((()=>e.imgSrc),(e=>{!e&&o&&(o.remove(),o=null)})),Io((()=>l(e.src))),No((()=>u()))}(i,e,r,o,a),()=>zs("uni-image",{ref:r},[zs("div",{style:i.modeStyle},null,4),$p[e.mode]?zs(Df,{onResize:o},null,8,["onResize"]):zs("span",null,null)],512)}});var Vp="Google Inc."===navigator.vendor;var Hp,Up=ar(!0),qp=[],Yp=0,Xp=e=>qp.forEach((t=>t.userAction=e));function Zp(){var e=da({userAction:!1});return Io((()=>{!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userAction:!1};if(!Hp){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!Yp&&Xp(!0),Yp++,setTimeout((()=>{!--Yp&&Xp(!1)}),0)}),Up)})),Hp=!0}qp.push(e)}(e)})),No((()=>{var t,n;t=e,(n=qp.indexOf(t))>=0&&qp.splice(n,1)})),{state:e}}function Gp(){var e=da({attrs:{}});return Io((()=>{for(var t=Zs();t;){var n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function Kp(e,t){var n=document.activeElement;if(!n)return t({});var r={};["input","textarea"].includes(n.tagName.toLowerCase())&&(r.start=n.selectionStart,r.end=n.selectionEnd),t(r)}var Jp;function Qp(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}var ev=un({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"}},op),tv=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...sp];function nv(e,t,n,r){var i=function(e,t,n){var r,{clearTimeout:i,setTimeout:a}=n,o=function(){i(r),r=a((()=>e.apply(this,arguments)),t)};return o.cancel=function(){i(r)},o}((n=>{t.value=Qp(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});go((()=>e.modelValue),i),go((()=>e.value),i);var a=function(e,t){var n,r,i=0,a=function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=Date.now();clearTimeout(n),r=()=>{r=null,i=l,e.apply(this,o)},l-i<t?n=setTimeout(r,t-(l-i)):r()};return a.cancel=function(){clearTimeout(n),r=null},a.flush=function(){clearTimeout(n),r&&r()},a}(((e,t)=>{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),r("input",e,t)}),100);return Oo((()=>{i.cancel(),a.cancel()})),{trigger:r,triggerInput:(e,t,n)=>{i.cancel(),a(e,t),n&&a.flush()}}}function rv(e,t){var{state:n}=Zp(),r=al((()=>e.autoFocus||e.focus));function i(){if(r.value){var e=t.value;if(e&&"plus"in window){var a=200-(Date.now()-Jp);a>0?setTimeout(i,a):(e.focus(),n.userAction||plus.key.showSoftKeybord())}else setTimeout(i,100)}}go((()=>e.focus),(e=>{var n;e?i():(n=t.value)&&n.blur()})),Io((()=>{Jp=Jp||Date.now(),r.value&&qa(i)}))}function iv(e,t,n,r){qr(su(),"getSelectedTextRange",Kp);var{fieldRef:i,state:a,trigger:o}=function(e,t,n){var r=Ea(null),i=Mf(t,n),a=al((()=>{var t=Number(e.selectionStart);return isNaN(t)?-1:t})),o=al((()=>{var t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=al((()=>{var t=Number(e.cursor);return isNaN(t)?-1:t})),l=al((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),u=Qp(e.modelValue,e.type)||Qp(e.value,e.type),c=da({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:a,selectionEnd:o,cursor:s});return go((()=>c.focus),(e=>n("update:focus",e))),go((()=>c.maxlength),(e=>c.value=c.value.slice(0,e))),{fieldRef:r,state:c,trigger:i}}(e,t,n),{triggerInput:s}=nv(e,a,n,o);rv(e,i),lp(e,i,o);var{state:l}=Gp();return function(e,t){var n=fo(Of,!1);if(n){var r=Zs(),i={submit(){var n=r.proxy;return[n[e],gn(t)?n[t]:t.value]},reset(){gn(t)?r.proxy[t]="":t.value=""}};n.addField(i),No((()=>{n.removeField(i)}))}}("name",a),function(e,t,n,r,i,a){function o(){var n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){var n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}go([()=>t.selectionStart,()=>t.selectionEnd],o),go((()=>t.cursor),s),go((()=>e.value),(function(){var u=e.value;if(u){var c=function(e,r){e.stopPropagation(),vn(a)&&!1===a(e,t)||(t.value=u.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:u.value,cursor:l(u)},r))};u.addEventListener("change",(e=>e.stopPropagation())),u.addEventListener("focus",(function(e){t.focus=!0,r("focus",e,{value:t.value}),o(),s()})),u.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,c(e,!0)),t.focus=!1,r("blur",e,{value:t.value,cursor:l(e.target)})})),u.addEventListener("input",c),u.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),u.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,c(e)),d(e)})),u.addEventListener("compositionupdate",d)}function d(e){n.ignoreCompositionEvent||r(e.type,e,{value:e.data})}}))}(i,a,e,o,s,r),{fieldRef:i,state:a,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:o}}var av=["none","text","decimal","numeric","tel","search","email","url"];const ov=xf({name:"Input",props:un({},ev,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""},inputmode:{type:String,default:void 0,validator:e=>!!~av.indexOf(e)}}),emits:["confirm",...tv],setup(e,t){var n,{emit:r}=t,i=["text","number","idcard","digit","password","tel"],a=["off","one-time-code"],o=al((()=>{var t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~i.includes(e.type)?e.type:"text"}return e.password?"password":t})),s=al((()=>{var t=a.indexOf(e.textContentType),n=a.indexOf(On(e.textContentType));return a[-1!==t?t:-1!==n?n:0]})),l=Ea(""),u=Ea(null),{fieldRef:c,state:d,scopedAttrsState:h,fixDisabledColor:f,trigger:p}=iv(e,u,r,((e,t)=>{var r=e.target;if("number"===o.value){if(n&&(r.removeEventListener("blur",n),n=null),r.validity&&!r.validity.valid){if((!l.value||!r.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",n=()=>{l.value=r.value=""},r.addEventListener("blur",n),!1;if(l.value)if(-1!==l.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){var i=l.value.indexOf(".");return l.value=r.value=t.value=l.value.slice(0,i),!0}}else if("."===e.data)return l.value+=".",n=()=>{l.value=r.value=l.value.slice(0,-1)},r.addEventListener("blur",n),!1;return l.value=t.value=r.value="-"===l.value?"":l.value,!1}l.value=r.value;var a=t.maxlength;if(a>0&&r.value.length>a)return r.value=r.value.slice(0,a),t.value=r.value,!1}}));go((()=>d.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t)}));var v=["number","digit"],g=al((()=>v.includes(e.type)?e.step:""));function m(t){if("Enter"===t.key){var n=t.target;t.stopPropagation(),p("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}}return()=>{var t=e.disabled&&f?zs("input",{key:"disabled-input",ref:c,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:o.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",onFocus:e=>e.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):zs("input",{key:"input",ref:c,value:d.value,disabled:!!e.disabled,type:o.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",autocomplete:s.value,onKeyup:m,inputmode:e.inputmode},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return zs("uni-input",{ref:u},[zs("div",{class:"uni-input-wrapper"},[Fo(zs("div",Hs(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Nl,!(d.value.length||"-"===l.value)]]),"search"===e.confirmType?zs("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});function sv(e){return Object.keys(e).map((t=>[t,e[t]]))}var lv,uv,cv=["class","style"],dv=/^on[A-Z]+/,hv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:n=[]}=e,r=Zs(),i=Ca({}),a=Ca({}),o=Ca({}),s=n.concat(cv);return r.attrs=da(r.attrs),po((()=>{var e=sv(r.attrs).reduce(((e,n)=>{var[r,i]=n;return s.includes(r)?e.exclude[r]=i:dv.test(r)?(t||(e.attrs[r]=i),e.listeners[r]=i):e.attrs[r]=i,e}),{exclude:{},attrs:{},listeners:{}});i.value=e.attrs,a.value=e.listeners,o.value=e.exclude})),{$attrs:i,$listeners:a,$excludeAttrs:o}};function fv(){sr((()=>{lv||(lv=plus.webview.currentWebview()),uv||(uv=(lv.getStyle()||{}).pullToRefresh||{})}))}function pv(e){var{disable:t}=e;uv&&uv.support&&lv.setPullToRefresh(Object.assign({},uv,{support:!t}))}function vv(e){var t=[];return fn(e)&&e.forEach((e=>{Ls(e)?e.type===Es?t.push(...vv(e.children)):t.push(e):fn(e)&&t.push(...vv(e))})),t}function gv(e){Zs().rebuild=e}const mv=xf({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,t){var{slots:n}=t,r=Ea(null),i=Ea(!1),{setContexts:a,events:o}=function(e,t){var n=Ea(0),r=Ea(0),i=da({x:null,y:null}),a=Ea(null),o=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach((function(e){e._setScale(t)})):o&&o._setScale(t))}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=t.value;function i(e){for(var t=0;t<n.length;t++){var a=n[t];if(e===a.rootRef.value)return a}return e===r||e===document.body||e===document?null:i(e.parentNode)}return i(e)}var c=Cf((t=>{pv({disable:!0});var n=t.touches;if(n&&n.length>1){var r={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(a.value=_v(r),i.x=r.x,i.y=r.y,!e.scaleArea){var s=u(n[0].target),l=u(n[1].target);o=s&&s===l?s:null}}})),d=Cf((e=>{var t=e.touches;if(t&&t.length>1){e.preventDefault();var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&a.value&&a.value>0)l(_v(n)/a.value);i.x=n.x,i.y=n.y}})),h=Cf((t=>{pv({disable:!1});var n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,a.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):o&&o._endScale())}));function f(){p(),s.forEach((function(e,t){e.setParent()}))}function p(){var e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce((function(t,n){var r="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[r])}),0),r.value=i.height-["Top","Bottom"].reduce((function(t,n){var r="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[r])}),0)}return ho("movableAreaWidth",n),ho("movableAreaHeight",r),{setContexts(e){s=e},events:{_onTouchstart:c,_onTouchmove:d,_onTouchend:h,_resize:f}}}(e,r),{$listeners:s,$attrs:l,$excludeAttrs:u}=hv(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{var t=c[e],n=o["_".concat(e)];c[e]=t?[].concat(t,n):n})),Io((()=>{o._resize(),fv(),i.value=!0}));var d=[],h=[];function f(){for(var e=[],t=function(){var t=d[n];t instanceof Element||(t=t.el);var r=h.find((e=>t===e.rootRef.value));r&&e.push(ba(r))},n=0;n<d.length;n++)t();a(e)}gv((()=>{d=r.value.children,f()}));return ho("_isMounted",i),ho("movableAreaRootRef",r),ho("addMovableViewContext",(e=>{h.push(e),f()})),ho("removeMovableViewContext",(e=>{var t=h.indexOf(e);t>=0&&(h.splice(t,1),f())})),()=>(n.default&&n.default(),zs("uni-movable-area",Hs({ref:r},l.value,u.value,c),[zs(Df,{onReize:o._resize},null,8,["onReize"]),d],16))}});function _v(e){return Math.sqrt(e.x*e.x+e.y*e.y)}var yv,bv,wv=function(e,t,n,r){e.addEventListener(t,(e=>{vn(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};function xv(e,t,n){No((()=>{document.removeEventListener("mousemove",yv),document.removeEventListener("mouseup",bv)}));var r,i,a=0,o=0,s=0,l=0,u=function(e,n,r,i){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:r,y:i,dx:r-a,dy:i-o,ddx:r-s,ddy:i-l,timeStamp:e.timeStamp}}))return!1},c=null;wv(e,"touchstart",(function(e){if(r=!0,1===e.touches.length&&!c)return c=e,a=s=e.touches[0].pageX,o=l=e.touches[0].pageY,u(e,"start",a,o)})),wv(e,"mousedown",(function(e){if(i=!0,!r&&!c)return c=e,a=s=e.pageX,o=l=e.pageY,u(e,"start",a,o)})),wv(e,"touchmove",(function(e){if(1===e.touches.length&&c){var t=u(e,"move",e.touches[0].pageX,e.touches[0].pageY);return s=e.touches[0].pageX,l=e.touches[0].pageY,t}}));var d=yv=function(e){if(!r&&i&&c){var t=u(e,"move",e.pageX,e.pageY);return s=e.pageX,l=e.pageY,t}};document.addEventListener("mousemove",d),wv(e,"touchend",(function(e){if(0===e.touches.length&&c)return r=!1,c=null,u(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));var h=bv=function(e){if(i=!1,!r&&c)return c=null,u(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),wv(e,"touchcancel",(function(e){if(c){r=!1;var t=c;return c=null,u(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Sv(e,t,n){return e>t-n&&e<t+n}function kv(e,t){return Sv(e,0,t)}function Tv(){}function Ev(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Cv(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function Mv(e,t,n){this._springX=new Cv(e,t,n),this._springY=new Cv(e,t,n),this._springScale=new Cv(e,t,n),this._startTime=0}function Ov(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}Tv.prototype.x=function(e){return Math.sqrt(e)},Ev.prototype.setV=function(e,t){var n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Ev.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Ev.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Ev.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Ev.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Ev.prototype.dt=function(){return-this._x_v/this._x_a},Ev.prototype.done=function(){var e=Sv(this.s().x,this._endPositionX)||Sv(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Ev.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Ev.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Cv.prototype._solve=function(e,t){var n=this._c,r=this._m,i=this._k,a=n*n-4*r*i;if(0===a){var o=-n/(2*r),s=e,l=t/(o*e);return{x:function(e){return(s+l*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+l*e)*t+l*t}}}if(a>0){var u=(-n-Math.sqrt(a))/(2*r),c=(-n+Math.sqrt(a))/(2*r),d=(t-u*e)/(c-u),h=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*u*t+d*c*n}}}var f=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=e,g=(t-p*e)/f;return{x:function(e){return Math.pow(Math.E,p*e)*(v*Math.cos(f*e)+g*Math.sin(f*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(f*e),r=Math.sin(f*e);return t*(g*f*n-v*f*r)+p*t*(g*r+v*n)}}},Cv.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Cv.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Cv.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!kv(t,.1)){t=t||0;var r=this._endPosition;this._solution&&(kv(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),kv(t,.1)&&(t=0),kv(r,.1)&&(r=0),r+=this._endPosition),this._solution&&kv(r-e,.1)&&kv(t,.1)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}},Cv.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Cv.prototype.done=function(e){return e||(e=(new Date).getTime()),Sv(this.x(),this._endPosition,.1)&&kv(this.dx(),.1)},Cv.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Cv.prototype.springConstant=function(){return this._k},Cv.prototype.damping=function(){return this._c},Cv.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Mv.prototype.setEnd=function(e,t,n,r){var i=(new Date).getTime();this._springX.setEnd(e,r,i),this._springY.setEnd(t,r,i),this._springScale.setEnd(n,r,i),this._startTime=i},Mv.prototype.x=function(){var e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Mv.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Mv.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};const Iv=xf({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,t){var{slots:n,emit:r}=t,i=Ea(null),a=Mf(i,r),{setParent:o}=function(e,t,n){var r,i,a=fo("_isMounted",Ea(!1)),o=fo("addMovableViewContext",(()=>{})),s=fo("removeMovableViewContext",(()=>{})),l=Ea(1),u=Ea(1),c=Ea(!1),d=Ea(0),h=Ea(0),f=null,p=null,v=!1,g=null,m=null,_=new Tv,y=new Tv,b={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=al((()=>{var t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Ev(1,w.value);go((()=>e.disabled),(()=>{U()}));var{_updateOldScale:S,_endScale:k,_setScale:T,scaleValueSync:E,_updateBoundary:C,_updateOffset:M,_updateWH:O,_scaleOffset:I,minX:L,minY:A,maxX:N,maxY:B,FAandSFACancel:R,_getLimitXY:P,_setTransform:z,_revise:D,dampingNumber:F,xMove:$,yMove:j,xSync:W,ySync:V,_STD:H}=function(e,t,n,r,i,a,o,s,l,u){var c=al((()=>{var t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=al((()=>{var t=Number(e.scaleMax);return isNaN(t)?10:t})),h=Ea(Number(e.scaleValue)||1);go(h,(e=>{z(e)})),go(c,(()=>{P()})),go(d,(()=>{P()})),go((()=>e.scaleValue),(e=>{h.value=Number(e)||0}));var{_updateBoundary:f,_updateOffset:p,_updateWH:v,_scaleOffset:g,minX:m,minY:_,maxX:y,maxY:b}=function(e,t,n){var r=fo("movableAreaWidth",Ea(0)),i=fo("movableAreaHeight",Ea(0)),a=fo("movableAreaRootRef"),o={x:0,y:0},s={x:0,y:0},l=Ea(0),u=Ea(0),c=Ea(0),d=Ea(0),h=Ea(0),f=Ea(0);function p(){var e=0-o.x+s.x,t=r.value-l.value-o.x-s.x;c.value=Math.min(e,t),h.value=Math.max(e,t);var n=0-o.y+s.y,a=i.value-u.value-o.y-s.y;d.value=Math.min(n,a),f.value=Math.max(n,a)}function v(){o.x=Nv(e.value,a.value),o.y=Bv(e.value,a.value)}function g(r){r=r||t.value,r=n(r);var i=e.value.getBoundingClientRect();u.value=i.height/t.value,l.value=i.width/t.value;var a=u.value*r,o=l.value*r;s.x=(o-l.value)/2,s.y=(a-u.value)/2}return{_updateBoundary:p,_updateOffset:v,_updateWH:g,_scaleOffset:s,minX:c,minY:d,maxX:h,maxY:f}}(t,r,R),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:k,_revise:T,dampingNumber:E,xMove:C,yMove:M,xSync:O,ySync:I,_STD:L}=function(e,t,n,r,i,a,o,s,l,u,c,d,h,f){var p=al((()=>{var e=Number(t.damping);return isNaN(e)?20:e})),v=al((()=>"all"===t.direction||"horizontal"===t.direction)),g=al((()=>"all"===t.direction||"vertical"===t.direction)),m=Ea(Pv(t.x)),_=Ea(Pv(t.y));go((()=>t.x),(e=>{m.value=Pv(e)})),go((()=>t.y),(e=>{_.value=Pv(e)})),go(m,(e=>{T(e)})),go(_,(e=>{E(e)}));var y=new Mv(1,9*Math.pow(p.value,2)/40,p.value);function b(e,t){var n=!1;return e>i.value?(e=i.value,n=!0):e<o.value&&(e=o.value,n=!0),t>a.value?(t=a.value,n=!0):t<s.value&&(t=s.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){d&&d.cancel(),c&&c.cancel()}function x(e,n,i,a,o,s){w(),v.value||(e=l.value),g.value||(n=u.value),t.scale||(i=r.value);var d=b(e,n);e=d.x,n=d.y,t.animation?(y._springX._solution=null,y._springY._solution=null,y._springScale._solution=null,y._springX._endPosition=l.value,y._springY._endPosition=u.value,y._springScale._endPosition=r.value,y.setEnd(e,n,i,1),c=Rv(y,(function(){var e=y.x();S(e.x,e.y,e.scale,a,o,s)}),(function(){c.cancel()}))):S(e,n,i,a,o,s)}function S(i,a,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",c=arguments.length>4?arguments[4]:void 0,d=arguments.length>5?arguments[5]:void 0;null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=l.value||0),null!==a&&"NaN"!==a.toString()&&"number"==typeof a||(a=u.value||0),i=Number(i.toFixed(1)),a=Number(a.toFixed(1)),o=Number(o.toFixed(1)),l.value===i&&u.value===a||c||f("change",{},{x:Ov(i,n.x),y:Ov(a,n.y),source:s}),t.scale||(o=r.value),o=+(o=h(o)).toFixed(3),d&&o!==r.value&&f("scale",{},{x:i,y:a,scale:o});var p="translateX("+i+"px) translateY("+a+"px) translateZ(0px) scale("+o+")";e.value&&(e.value.style.transform=p,e.value.style.webkitTransform=p,l.value=i,u.value=a,r.value=o)}function k(e){var t=b(l.value,u.value),n=t.x,i=t.y,a=t.outOfBounds;return a&&x(n,i,r.value,e),a}function T(e){if(v.value){if(e+n.x===l.value)return l;c&&c.cancel(),x(e+n.x,_.value+n.y,r.value)}return e}function E(e){if(g.value){if(e+n.y===u.value)return u;c&&c.cancel(),x(m.value+n.x,e+n.y,r.value)}return e}return{FAandSFACancel:w,_getLimitXY:b,_animationTo:x,_setTransform:S,_revise:k,dampingNumber:p,xMove:v,yMove:g,xSync:m,ySync:_,_STD:y}}(t,e,g,r,y,b,m,_,o,s,l,u,R,n);function A(t,n){if(e.scale){t=R(t),v(t),f();var r=x(o.value,s.value),i=r.x,a=r.y;n?S(i,a,t,"",!0,!0):Av((function(){k(i,a,t,"",!0,!0)}))}}function N(){a.value=!0}function B(e){i.value=e}function R(e){return e=Math.max(.5,c.value,e),e=Math.min(10,d.value,e)}function P(){if(!e.scale)return!1;A(r.value,!0),B(r.value)}function z(t){return!!e.scale&&(A(t=R(t),!0),B(t),t)}function D(){a.value=!1,B(r.value)}function F(e){e&&(e=i.value*e,N(),A(e))}return{_updateOldScale:B,_endScale:D,_setScale:F,scaleValueSync:h,_updateBoundary:f,_updateOffset:p,_updateWH:v,_scaleOffset:g,minX:m,minY:_,maxX:y,maxY:b,FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:k,_revise:T,dampingNumber:E,xMove:C,yMove:M,xSync:O,ySync:I,_STD:L}}(e,n,t,l,u,c,d,h,f,p);function U(){c.value||e.disabled||(pv({disable:!0}),R(),b.historyX=[0,0],b.historyY=[0,0],b.historyT=[0,0],$.value&&(r=d.value),j.value&&(i=h.value),n.value.style.willChange="transform",g=null,m=null,v=!0)}function q(t){if(!c.value&&!e.disabled&&v){var n=d.value,a=h.value;if(null===m&&(m=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),$.value&&(n=t.detail.dx+r,b.historyX.shift(),b.historyX.push(n),j.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),j.value&&(a=t.detail.dy+i,b.historyY.shift(),b.historyY.push(a),$.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),b.historyT.shift(),b.historyT.push(t.detail.timeStamp),!g){t.preventDefault();var o="touch";n<L.value?e.outOfBounds?(o="touch-out-of-bounds",n=L.value-_.x(L.value-n)):n=L.value:n>N.value&&(e.outOfBounds?(o="touch-out-of-bounds",n=N.value+_.x(n-N.value)):n=N.value),a<A.value?e.outOfBounds?(o="touch-out-of-bounds",a=A.value-y.x(A.value-a)):a=A.value:a>B.value&&(e.outOfBounds?(o="touch-out-of-bounds",a=B.value+y.x(a-B.value)):a=B.value),Av((function(){z(n,a,l.value,o)}))}}}function Y(){if(!c.value&&!e.disabled&&v&&(pv({disable:!1}),n.value.style.willChange="auto",v=!1,!g&&!D("out-of-bounds")&&e.inertia)){var t=1e3*(b.historyX[1]-b.historyX[0])/(b.historyT[1]-b.historyT[0]),r=1e3*(b.historyY[1]-b.historyY[0])/(b.historyT[1]-b.historyT[0]),i=d.value,a=h.value;x.setV(t,r),x.setS(i,a);var o=x.delta().x,s=x.delta().y,u=o+i,f=s+a;u<L.value?(u=L.value,f=a+(L.value-i)*s/o):u>N.value&&(u=N.value,f=a+(N.value-i)*s/o),f<A.value?(f=A.value,u=i+(A.value-a)*o/s):f>B.value&&(f=B.value,u=i+(B.value-a)*o/s),x.setEnd(u,f),p=Rv(x,(function(){var e=x.s(),t=e.x,n=e.y;z(t,n,l.value,"friction")}),(function(){p.cancel()}))}e.outOfBounds||e.inertia||R()}function X(){if(a.value){R();var t=e.scale?E.value:1;M(),O(t),C();var n=P(W.value+I.x,V.value+I.y),r=n.x,i=n.y;z(r,i,t,"",!0),S(t)}}return Io((()=>{xv(n.value,(e=>{switch(e.detail.state){case"start":U();break;case"move":q(e);break;case"end":Y()}})),X(),x.reconfigure(1,w.value),H.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center",fv();var e={rootRef:n,setParent:X,_endScale:k,_setScale:T};o(e),Bo((()=>{s(e)}))})),Bo((()=>{R()})),{setParent:X}}(e,a,i);return()=>zs("uni-movable-view",{ref:i},[zs(Df,{onResize:o},null,8,["onResize"]),n.default&&n.default()],512)}});var Lv=!1;function Av(e){Lv||(Lv=!0,requestAnimationFrame((function(){e(),Lv=!1})))}function Nv(e,t){if(e===t)return 0;var n=e.offsetLeft;return e.offsetParent?n+=Nv(e.offsetParent,t):0}function Bv(e,t){if(e===t)return 0;var n=e.offsetTop;return e.offsetParent?n+=Bv(e.offsetParent,t):0}function Rv(e,t,n){var r={id:0,cancelled:!1};return function e(t,n,r,i){if(!t||!t.cancelled){r(n);var a=n.done();a||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),a&&i&&i(n)}}(r,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,r),model:e}}function Pv(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}var zv=["navigate","redirect","switchTab","reLaunch","navigateBack"],Dv=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],Fv=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"];const $v=xf({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~zv.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||Dv.concat(Fv).includes(e)},animationDuration:{type:[String,Number],default:300}},setup(e,t){var{slots:n}=t,r=Zs(),i=r&&r.vnode.scopeId||"",{hovering:a,binding:o}=Tf(e),s=function(e){return()=>{if("navigateBack"===e.openType||e.url){var t=parseInt(e.animationDuration);switch(e.openType){case"navigate":uni.navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}else console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}(e);return()=>{var{hoverClass:t,url:l}=e,u=e.hoverClass&&"none"!==e.hoverClass;return zs("a",{class:"navigator-wrap",href:l,onClick:Gl,onMousedown:Gl},[zs("uni-navigator",Hs({class:u&&a.value?t:""},u&&o,r?r.attrs:{},{[i]:""},{onClick:s}),[n.default&&n.default()],16,["onClick"])],40,["href","onClick","onMousedown"])}}});const jv=xf({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return fn(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:n,emit:r}=t,i=Ea(null),a=Ea(null),o=Mf(i,r),s=function(e){var t=da([...e.value]),n=da({value:t,height:34});return go((()=>e.value),((e,t)=>{(e===t||e.length!==t.length||e.findIndex(((e,n)=>e!==t[n]))>=0)&&(n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)})))})),n}(e),l=Ea(null),u=Ea([]),c=Ea([]);function d(e){var t=c.value;if(t instanceof HTMLCollection)return Array.prototype.indexOf.call(t,e.el);var n=(t=t.filter((e=>e.type!==Ms))).indexOf(e);return-1!==n?n:u.value.indexOf(e)}return ho("getPickerViewColumn",(function(e){return al({get(){var t=d(e.vnode);return s.value[t]||0},set(t){var n=d(e.vnode);if(!(n<0)&&s.value[n]!==t){s.value[n]=t;var i=s.value.map((e=>e));r("update:value",i),o("change",{},{value:i})}}})})),ho("pickerViewProps",e),ho("pickerViewState",s),gv((()=>{var e;e=l.value,s.height=e.$el.offsetHeight,c.value=a.value.children})),()=>{var e=n.default&&n.default();return zs("uni-picker-view",{ref:i},[zs(Df,{ref:l,onResize:e=>{var{height:t}=e;return s.height=t}},null,8,["onResize"]),zs("div",{ref:a,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Wv{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);var t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);var t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){var e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function Vv(e,t,n){return e>t-n&&e<t+n}function Hv(e,t){return Vv(e,0,t)}class Uv{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){var n=this._c,r=this._m,i=this._k,a=n*n-4*r*i;if(0===a){var o=-n/(2*r),s=e,l=t/(o*e);return{x:function(e){return(s+l*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+l*e)*t+l*t}}}if(a>0){var u=(-n-Math.sqrt(a))/(2*r),c=(-n+Math.sqrt(a))/(2*r),d=(t-u*e)/(c-u),h=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*u*t+d*c*n}}}var f=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=e,g=(t-p*e)/f;return{x:function(e){return Math.pow(Math.E,p*e)*(v*Math.cos(f*e)+g*Math.sin(f*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(f*e),r=Math.sin(f*e);return t*(g*f*n-v*f*r)+p*t*(g*r+v*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Hv(t,.4)){t=t||0;var r=this._endPosition;this._solution&&(Hv(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),Hv(t,.4)&&(t=0),Hv(r,.4)&&(r=0),r+=this._endPosition),this._solution&&Hv(r-e,.4)&&Hv(t,.4)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),Vv(this.x(),this._endPosition,.4)&&Hv(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class qv{constructor(e,t,n){this._extent=e,this._friction=t||new Wv(.01),this._spring=n||new Uv(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){var t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class Yv{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new qv(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){var n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}var r,i,a;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var o=this._scroll._friction.x(100),s=o%this._itemSize;(r=Math.abs(s)>this._itemSize/2?o-(this._itemSize-Math.abs(s)):o-s)<=0&&r>=-this._extent&&this._scroll.setVelocityByEnd(r)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=(i=this._scroll,function e(t,n,r,i){if(!t||!t.cancelled){r(n);var a=n.done();a||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),a&&i&&i(n)}}(a={id:0,cancelled:!1},i,(()=>{var e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();var r=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/r),this._lastTime=e)}),(()=>{this._enableSnap&&(r<=0&&r>=-this._extent&&(this._position=r,this.updatePosition()),vn(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,a),model:i})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),vn(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(vn(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){var r=0,i=this._position;this._enableX?(r=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(r=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-r?this._position=-r:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),vn(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=r,this._scroll._extent=r}updatePosition(){var e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}var Xv=0;const Zv=xf({name:"PickerViewColumn",setup(e,t){var n,r,{slots:i,emit:a}=t,o=Ea(null),s=Ea(null),l=fo("getPickerViewColumn"),u=Zs(),c=l?l(u):Ea(0),d=fo("pickerViewProps"),h=fo("pickerViewState"),f=Ea(34),p=Ea(null),v=al((()=>(h.height-f.value)/2)),{state:g}=Gp(),m=function(e){var t="uni-picker-view-content-".concat(Xv++);return go((()=>e.value),(function(){var n=document.createElement("style");n.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(n)})),t}(f),_=da({current:c.value,length:0});function y(){n&&!r&&(r=!0,qa((()=>{r=!1;var e=Math.min(_.current,_.length-1);e=Math.max(e,0),n.update(e*f.value,void 0,f.value)})))}go((()=>c.value),(e=>{e!==_.current&&(_.current=e,y())})),go((()=>_.current),(e=>c.value=e)),go([()=>f.value,()=>_.length,()=>h.height],y);var b=0;function w(e){var t=b+e.deltaY;if(Math.abs(t)>10){b=0;var r=Math.min(_.current+(t<0?-1:1),_.length-1);_.current=r=Math.max(r,0),n.scrollTo(r*f.value)}else b=t;e.preventDefault()}function x(e){var{clientY:t}=e,r=o.value;if(!n.isScrolling()){var i=t-r.getBoundingClientRect().top-h.height/2,a=f.value/2;if(!(Math.abs(i)<=a)){var s=Math.ceil((Math.abs(i)-a)/f.value),l=i<0?-s:s,u=Math.min(_.current+l,_.length-1);_.current=u=Math.max(u,0),n.scrollTo(u*f.value)}}}var S=()=>{var e,t,r,i=o.value,a=s.value,{scroller:l,handleTouchStart:u,handleTouchMove:c,handleTouchEnd:d}=function(e,t){var n={trackingID:-1,maxDy:0,maxDx:0},r=new Yv(e,t);function i(e){var t=e,r=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:r.screenX-n.x,y:r.screenY-n.y}}return{scroller:r,handleTouchStart:function(e){var t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=r,r.onTouchStart&&r.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){var t=e,r=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();var a=i(e);if(a){for(n.maxDy=Math.max(n.maxDy,Math.abs(a.y)),n.maxDx=Math.max(n.maxDx,Math.abs(a.x)),n.historyX.push(a.x),n.historyY.push(a.y),n.historyTime.push(t.detail.timeStamp||r.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(a.x,a.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();var t=i(e);if(t){var r=n.listener;n.trackingID=-1,n.listener=null;var a={x:0,y:0};if(n.historyTime.length>2)for(var o=n.historyTime.length-1,s=n.historyTime[o],l=n.historyX[o],u=n.historyY[o];o>0;){o--;var c=s-n.historyTime[o];if(c>30&&c<50){a.x=(l-n.historyX[o])/(c/1e3),a.y=(u-n.historyY[o])/(c/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],r&&r.onTouchEnd&&r.onTouchEnd(t.x,t.y,a)}}}}}(a,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:f.value,friction:new Wv(1e-4),spring:new Uv(2,90,20),onSnap:e=>{isNaN(e)||e===_.current||(_.current=e)}});n=l,xv(i,(e=>{switch(e.detail.state){case"start":u(e),pv({disable:!0});break;case"move":c(e),e.stopPropagation();break;case"end":case"cancel":d(e),pv({disable:!1})}}),!0),t=0,r=0,(e=i).addEventListener("touchstart",(e=>{var n=e.changedTouches[0];t=n.clientX,r=n.clientY})),e.addEventListener("touchend",(e=>{var n=e.changedTouches[0];if(Math.abs(n.clientX-t)<20&&Math.abs(n.clientY-r)<20){var i={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},a=new CustomEvent("click",i);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{a[e]=n[e]})),e.target.dispatchEvent(a)}})),fv(),y()},k=!1;return gv((()=>{var e;_.length=s.value.children.length,k||(k=!0,e=p.value,f.value=e.$el.offsetHeight,S())})),()=>{var e=i.default&&i.default(),t="".concat(v.value,"px 0");return zs("uni-picker-view-column",{ref:o},[zs("div",{onWheel:w,onClick:x,class:"uni-picker-view-group"},[zs("div",Hs(g.attrs,{class:["uni-picker-view-mask",d.maskClass],style:"background-size: 100% ".concat(v.value,"px;").concat(d.maskStyle)}),null,16),zs("div",Hs(g.attrs,{class:["uni-picker-view-indicator",d.indicatorClass],style:d.indicatorStyle}),[zs(Df,{ref:p,onResize:e=>{var{height:t}=e;return f.value=t}},null,8,["onResize"])],16),zs("div",{ref:s,class:["uni-picker-view-content",m],style:{padding:t}},[e],6)],40,["onWheel","onClick"])],512)}}});var Gv=Vn,Kv="backwards";const Jv=xf({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:Gv},activeColor:{type:String,default:Gv},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Kv},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){var t=function(e){var t=Ea(0),n=al((()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;"))),r=al((()=>{var n=e.color!==Gv&&e.activeColor===Gv?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(n)})),i=al((()=>{var t=parseFloat(e.percent);return t<0&&(t=0),t>100&&(t=100),t})),a=da({outerBarStyle:n,innerBarStyle:r,realPercent:i,currentPercent:t,strokeTimer:0,lastPercent:0});return a}(e);return Qv(t,e),go((()=>t.realPercent),((n,r)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=r||0,Qv(t,e)})),()=>{var{showInfo:n}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:a}=t;return zs("uni-progress",{class:"uni-progress"},[zs("div",{style:r,class:"uni-progress-bar"},[zs("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),n?zs("p",{class:"uni-progress-info"},[a+"%"]):""])}}});function Qv(e,t){t.active?(e.currentPercent=t.activeMode===Kv?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}var eg=Ql("ucg");const tg=xf({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,t){var{emit:n,slots:r}=t,i=Ea(null);return function(e,t){var n=[];Io((()=>{s(n.length-1)}));var r=()=>{var e;return null===(e=n.find((e=>e.value.radioChecked)))||void 0===e?void 0:e.value.value};ho(eg,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,i){s(n.indexOf(i),!0),t("change",e,{value:r()})}});var i=fo(Of,!1),a={submit:()=>{var t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=r()),t}};i&&(i.addField(a),No((()=>{i.removeField(a)})));function o(e,t){e.value={radioChecked:t,value:e.value.value}}function s(e,t){n.forEach(((r,i)=>{i!==e&&(t?o(n[i],!1):n.forEach(((e,t)=>{i>=t||n[t].value.radioChecked&&o(n[i],!1)})))}))}}(e,Mf(i,n)),()=>zs("uni-radio-group",{ref:i},[r.default&&r.default()],512)}});const ng=xf({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,t){var{slots:n}=t,r=Ea(e.checked),i=Ea(e.value),a=al((()=>e.disabled?"background-color: #E1E1E1;border-color: ##D1D1D1;":"background-color: ".concat(e.color,";border-color: ").concat(e.color,";")));go([()=>e.checked,()=>e.value],(e=>{var[t,n]=e;r.value=t,i.value=n}));var{uniCheckGroup:o,uniLabel:s,field:l}=function(e,t,n){var r=al({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:t=>{var{radioChecked:n}=t;e.value=n}}),i={reset:n},a=fo(eg,!1);a&&a.addField(r);var o=fo(Of,!1);o&&o.addField(i);var s=fo(Af,!1);return No((()=>{a&&a.removeField(r),o&&o.removeField(i)})),{uniCheckGroup:a,uniForm:o,uniLabel:s,field:r}}(r,i,(()=>{r.value=!1})),u=t=>{e.disabled||(r.value=!0,o&&o.radioChange(t,l),t.stopPropagation())};return s&&(s.addHandler(u),No((()=>{s.removeHandler(u)}))),Bf(e,{"label-click":u}),()=>{var t=Ef(e,"disabled");return zs("uni-radio",Hs(t,{onClick:u}),[zs("div",{class:"uni-radio-wrapper"},[zs("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:r.value?a.value:""},[r.value?au(iu,e.disabled?"#ADADAD":"#fff",18):""],6),n.default&&n.default()])],16,["onClick"])}}});var rg={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},ig={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};var ag=(e,t,n)=>!n||fn(n)&&!n.length?[]:n.map((n=>{if(xn(n)){if(!hn(n,"type")||"node"===n.type){var r={[e]:""},i=n.name.toLowerCase();if(!hn(rg,i))return;return function(e,t){if(xn(t))for(var n in t)if(hn(t,n)){var r=t[n];"img"===e&&"src"===n&&(t[n]=$u(r))}}(i,n.attrs),r=un(r,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),ol(n.name,r,ag(e,t,n.children))}return"text"===n.type&&gn(n.text)&&""!==n.text?$s((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return hn(ig,t)&&ig[t]?ig[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e}))):void 0}}));function og(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(e);var t=[],n={node:"root",children:[]};return _p(e,{start:function(e,r,i){var a={name:e};if(0!==r.length&&(a.attrs=function(e){return e.reduce((function(e,t){var n=t.value,r=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(r)&&(n=n.split(" ")),e[r]?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n,e}),{})}(r)),i){var o=t[0]||n;o.children||(o.children=[]),o.children.push(a)}else t.unshift(a)},end:function(e){var r=t.shift();if(r.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(r);else{var i=t[0];i.children||(i.children=[]),i.children.push(r)}},chars:function(e){var r={type:"text",text:e};if(0===t.length)n.children.push(r);else{var i=t[0];i.children||(i.children=[]),i.children.push(r)}},comment:function(e){var n={node:"comment",text:e},r=t[0];r.children||(r.children=[]),r.children.push(n)}}),n.children}const sg=xf({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["click","touchstart","touchmove","touchcancel","touchend","longpress","itemclick"],setup(e,t){var{emit:n}=t,r=Zs(),i=r&&r.vnode.scopeId||"",a=Ea(null),o=Ea([]),s=Mf(a,n);function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s("itemclick",e,t)}return go((()=>e.nodes),(function(){var t=e.nodes;gn(t)&&(t=og(e.nodes)),o.value=ag(i,l,t)}),{immediate:!0}),()=>ol("uni-rich-text",{ref:a},ol("div",{},o.value))}});var lg=ar(!0);const ug=xf({name:"ScrollView",compatConfig:{MODE:3},props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:n,slots:r}=t,i=Ea(null),a=Ea(null),o=Ea(null),s=Ea(null),l=Ea(null),u=Mf(i,n),{state:c,scrollTopNumber:d,scrollLeftNumber:h}=function(e){var t=al((()=>Number(e.scrollTop)||0)),n=al((()=>Number(e.scrollLeft)||0)),r=da({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:r,scrollTopNumber:t,scrollLeftNumber:n}}(e);!function(e,t,n,r,i,a,o,s,l){var u=!1,c=0,d=!1,h=()=>{},f=al((()=>{var t=Number(e.upperThreshold);return isNaN(t)?50:t})),p=al((()=>{var t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function v(e,t){var n=o.value,r=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?r=n.scrollLeft-e:"y"===t&&(r=n.scrollTop-e),0!==r){var a=s.value;a.style.transition="transform .3s ease-out",a.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+r+"px) translateZ(0)":"y"===t&&(i="translateY("+r+"px) translateZ(0)"),a.removeEventListener("transitionend",h),a.removeEventListener("webkitTransitionEnd",h),h=()=>b(e,t),a.addEventListener("transitionend",h),a.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),a.style.transform=i,a.style.webkitTransform=i}}function g(n){var r=n.target;i("scroll",n,{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,scrollWidth:r.scrollWidth,deltaX:t.lastScrollLeft-r.scrollLeft,deltaY:t.lastScrollTop-r.scrollTop}),e.scrollY&&(r.scrollTop<=f.value&&t.lastScrollTop-r.scrollTop>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",n,{direction:"top"}),t.lastScrollToUpperTime=n.timeStamp),r.scrollTop+r.offsetHeight+p.value>=r.scrollHeight&&t.lastScrollTop-r.scrollTop<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",n,{direction:"bottom"}),t.lastScrollToLowerTime=n.timeStamp)),e.scrollX&&(r.scrollLeft<=f.value&&t.lastScrollLeft-r.scrollLeft>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",n,{direction:"left"}),t.lastScrollToUpperTime=n.timeStamp),r.scrollLeft+r.offsetWidth+p.value>=r.scrollWidth&&t.lastScrollLeft-r.scrollLeft<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",n,{direction:"right"}),t.lastScrollToLowerTime=n.timeStamp)),t.lastScrollTop=r.scrollTop,t.lastScrollLeft=r.scrollLeft}function m(t){e.scrollY&&(e.scrollWithAnimation?v(t,"y"):o.value.scrollTop=t)}function _(t){e.scrollX&&(e.scrollWithAnimation?v(t,"x"):o.value.scrollLeft=t)}function y(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error("id error: scroll-into-view=".concat(t));var n=a.value.querySelector("#"+t);if(n){var r=o.value.getBoundingClientRect(),i=n.getBoundingClientRect();if(e.scrollX){var s=i.left-r.left,l=o.value.scrollLeft+s;e.scrollWithAnimation?v(l,"x"):o.value.scrollLeft=l}if(e.scrollY){var u=i.top-r.top,c=o.value.scrollTop+u;e.scrollWithAnimation?v(c,"y"):o.value.scrollTop=c}}}}function b(t,n){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var r=o.value;"x"===n?(r.style.overflowX=e.scrollX?"auto":"hidden",r.scrollLeft=t):"y"===n&&(r.style.overflowY=e.scrollY?"auto":"hidden",r.scrollTop=t),s.value.removeEventListener("transitionend",h),s.value.removeEventListener("webkitTransitionEnd",h)}function w(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,i("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=c=0,"restore"===n&&(d=!1,i("refresherrestore",{},{})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{}))}t.refreshState=n}}Io((()=>{qa((()=>{m(n.value),_(r.value)})),y(e.scrollIntoView);var a=function(e){e.preventDefault(),e.stopPropagation(),g(e)},s={x:0,y:0},l=null,h=function(n){if(null!==s){var r=n.touches[0].pageX,a=n.touches[0].pageY,h=o.value;if(Math.abs(r-s.x)>Math.abs(a-s.y))if(e.scrollX){if(0===h.scrollLeft&&r>s.x)return void(l=!1);if(h.scrollWidth===h.offsetWidth+h.scrollLeft&&r<s.x)return void(l=!1);l=!0}else l=!1;else if(e.scrollY)if(0===h.scrollTop&&a>s.y)l=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(h.scrollHeight===h.offsetHeight+h.scrollTop&&a<s.y)return void(l=!1);l=!0}else l=!1;if(l&&n.stopPropagation(),0===h.scrollTop&&1===n.touches.length&&w("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){var f=a-s.y;0===c&&(c=a),u?(t.refresherHeight=f+e.refresherThreshold,d=!1):(t.refresherHeight=a-c,t.refresherHeight>0&&(d=!0,i("refresherpulling",n,{deltaY:f})));var p=t.refresherHeight/e.refresherThreshold;t.refreshRotate=360*(p>1?1:p)}}},f=function(e){1===e.touches.length&&(pv({disable:!0}),s={x:e.touches[0].pageX,y:e.touches[0].pageY})},p=function(n){s=null,pv({disable:!1}),t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort")};o.value.addEventListener("touchstart",f,lg),o.value.addEventListener("touchmove",h,ar(!1)),o.value.addEventListener("scroll",a,ar(!1)),o.value.addEventListener("touchend",p,lg),fv(),No((()=>{o.value.removeEventListener("touchstart",f),o.value.removeEventListener("touchmove",h),o.value.removeEventListener("scroll",a),o.value.removeEventListener("touchend",p)}))})),So((()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)})),go(n,(e=>{m(e)})),go(r,(e=>{_(e)})),go((()=>e.scrollIntoView),(e=>{y(e)})),go((()=>e.refresherTriggered),(e=>{!0===e?w("refreshing"):!1===e&&w("restore")}))}(e,c,d,h,u,i,a,s,n);var f=al((()=>{var t="";return e.scrollX?t+="overflow-x:auto;":t+="overflow-x:hidden;",e.scrollY?t+="overflow-y:auto;":t+="overflow-y:hidden;",t}));return()=>{var{refresherEnabled:t,refresherBackground:n,refresherDefaultStyle:u}=e,{refresherHeight:d,refreshState:h,refreshRotate:p}=c;return zs("uni-scroll-view",{ref:i},[zs("div",{ref:o,class:"uni-scroll-view"},[zs("div",{ref:a,style:f.value,class:"uni-scroll-view"},[zs("div",{ref:s,class:"uni-scroll-view-content"},[t?zs("div",{ref:l,style:{backgroundColor:n,height:d+"px"},class:"uni-scroll-view-refresher"},["none"!==u?zs("div",{class:"uni-scroll-view-refresh"},[zs("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==h?zs("svg",{key:"refresh__icon",style:{transform:"rotate("+p+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[zs("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),zs("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==h?zs("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[zs("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"==u?r.refresher&&r.refresher():null],4):null,r.default&&r.default()],512)],4)],512)],512)}}});const cg=xf({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,t){var{emit:n}=t,r=Ea(null),i=Ea(null),a=Ea(null),o=Ea(Number(e.value));go((()=>e.value),(e=>{o.value=Number(e)}));var s=Mf(r,n),l=function(e,t){var n=()=>{var n=Number(e.max),r=Number(e.min);return 100*(t.value-r)/(n-r)+"%"},r=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",i=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9",a={setBgColor:al((()=>({backgroundColor:r()}))),setBlockBg:al((()=>({left:n()}))),setActiveColor:al((()=>({backgroundColor:i(),width:n()}))),setBlockStyle:al((()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor})))};return a}(e,o),{_onClick:u,_onTrack:c}=function(e,t,n,r,i){var a=n=>{e.disabled||(s(n),i("change",n,{value:t.value}))},o=t=>{var n=Number(e.max),r=Number(e.min),i=Number(e.step);return t<r?r:t>n?n:dg.mul.call(Math.round((t-r)/i),i)+r},s=i=>{var a=Number(e.max),s=Number(e.min),l=r.value,u=getComputedStyle(l,null).marginLeft,c=l.offsetWidth;c+=parseInt(u);var d=n.value,h=d.offsetWidth-(e.showValue?c:0),f=d.getBoundingClientRect().left,p=(i.x-f)*(a-s)/h+s;t.value=o(p)},l=n=>{if(!e.disabled)return"move"===n.detail.state?(s({x:n.detail.x}),i("changing",n,{value:t.value}),!1):"end"===n.detail.state&&i("change",n,{value:t.value})},u=fo(Of,!1);if(u){var c={reset:()=>t.value=Number(e.min),submit:()=>{var n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};u.addField(c),No((()=>{u.removeField(c)}))}return{_onClick:a,_onTrack:l}}(e,o,r,i,s);return Io((()=>{xv(a.value,c)})),()=>{var{setBgColor:t,setBlockBg:n,setActiveColor:s,setBlockStyle:c}=l;return zs("uni-slider",{ref:r,onClick:Cf(u)},[zs("div",{class:"uni-slider-wrapper"},[zs("div",{class:"uni-slider-tap-area"},[zs("div",{style:t.value,class:"uni-slider-handle-wrapper"},[zs("div",{ref:a,style:n.value,class:"uni-slider-handle"},null,4),zs("div",{style:c.value,class:"uni-slider-thumb"},null,4),zs("div",{style:s.value,class:"uni-slider-track"},null,4)],4)]),Fo(zs("span",{ref:i,class:"uni-slider-value"},[o.value],512),[[Nl,e.showValue]])]),zs("slot",null,null)],8,["onClick"])}}});var dg={mul:function(e){var t=0,n=this.toString(),r=e.toString();try{t+=n.split(".")[1].length}catch(i){}try{t+=r.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,t)}};function hg(e,t,n,r,i,a){function o(){u&&(clearTimeout(u),u=null)}var s,l,u=null,c=!0,d=0,h=1,f=null,p=!1,v=0,g="",m=al((()=>n.value.length>t.displayMultipleItems)),_=al((()=>e.circular&&m.value));function y(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||_.value&&function(r){if(!c)for(var i=n.value,a=i.length,o=r+t.displayMultipleItems,s=0;s<a;s++){var l=i[s],u=Math.floor(r/a)*a+s,d=u+a,h=u-a,f=Math.max(r-(u+1),u-o,0),p=Math.max(r-(d+1),d-o,0),v=Math.max(r-(h+1),h-o,0),g=Math.min(f,p,v),m=[u,d,h][[f,p,v].indexOf(g)];l.updatePosition(m,e.vertical)}}(i);var o="translate("+(e.vertical?"0":100*-i*h+"%")+", "+(e.vertical?100*-i*h+"%":"0")+") translateZ(0)",l=r.value;if(l&&(l.style.webkitTransform=o,l.style.transform=o),d=i,!s){if(i%1==0)return;s=i}i-=Math.floor(s);var u=n.value;i<=-(u.length-1)?i+=u.length:i>=u.length&&(i-=u.length),i=s%1>.5||s<0?i-1:i,a("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function b(e){var r=n.value.length;if(!r)return-1;var i=(Math.round(e)%r+r)%r;if(_.value){if(r<=t.displayMultipleItems)return 0}else if(i>r-t.displayMultipleItems)return r-t.displayMultipleItems;return i}function w(){f=null}function x(){if(f){var e=f,r=e.toPos,i=e.acc,o=e.endTime,u=e.source,c=o-Date.now();if(c<=0){y(r),f=null,p=!1,s=null;var d=n.value[t.current];if(d){var h=d.getItemId();a("animationfinish",{},{current:t.current,currentItemId:h,source:u})}}else{y(r+i*c*c/2),l=requestAnimationFrame(x)}}else p=!1}function S(e,r,i){w();var a=t.duration,o=n.value.length,s=d;if(_.value)if(i<0){for(;s<e;)s+=o;for(;s-o>e;)s-=o}else if(i>0){for(;s>e;)s-=o;for(;s+o<e;)s+=o;s+o-e<e-s&&(s+=o)}else{for(;s+o<e;)s+=o;for(;s-o>e;)s-=o;s+o-e<e-s&&(s+=o)}else"click"===r&&(e=e+t.displayMultipleItems-1<o?e:0);f={toPos:e,acc:2*(s-e)/(a*a),endTime:Date.now()+a,source:r},p||(p=!0,l=requestAnimationFrame(x))}function k(){o();var e=n.value,r=function(){u=null,g="autoplay",_.value?t.current=b(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,S(t.current,"autoplay",_.value?1:0),u=setTimeout(r,t.interval)};c||e.length<=t.displayMultipleItems||(u=setTimeout(r,t.interval))}function T(e){e?k():o()}return go([()=>e.current,()=>e.currentItemId,()=>[...n.value]],(()=>{var r=-1;if(e.currentItemId)for(var i=0,a=n.value;i<a.length;i++){if(a[i].getItemId()===e.currentItemId){r=i;break}}r<0&&(r=Math.round(e.current)||0),r=r<0?0:r,t.current!==r&&(g="",t.current=r)})),go([()=>e.vertical,()=>_.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){o(),f&&(y(f.toPos),f=null);for(var i=n.value,a=0;a<i.length;a++)i[a].updatePosition(a,e.vertical);h=1;var s=r.value;if(1===t.displayMultipleItems&&i.length){var l=i[0].getBoundingClientRect(),u=s.getBoundingClientRect();(h=l.width/u.width)>0&&h<1||(h=1)}var p=d;d=-2;var g=t.current;g>=0?(c=!1,t.userTracking?(y(p+g-v),v=g):(y(g),e.autoplay&&k())):(c=!0,y(-t.displayMultipleItems-1))})),go((()=>t.interval),(()=>{u&&(o(),k())})),go((()=>t.current),((e,r)=>{!function(e,r){var i=g;g="";var o=n.value;if(!i){var s=o.length;S(e,"",_.value&&r+(s-e)%s>s/2?1:0)}var l=o[e];if(l){var u=t.currentItemId=l.getItemId();a("change",{},{current:t.current,currentItemId:u,source:i})}}(e,r),i("update:current",e)})),go((()=>t.currentItemId),(e=>{i("update:currentItemId",e)})),go((()=>e.autoplay&&!t.userTracking),T),T(e.autoplay&&!t.userTracking),Io((()=>{var i=!1,a=0,s=0;function l(e){t.userTracking=!1;var n=a/Math.abs(a),r=0;!e&&Math.abs(a)>.2&&(r=.5*n);var i=b(d+r);e?y(v):(g="touch",t.current=i,S(i,"touch",0!==r?r:0===i&&_.value&&d>=1?1:0))}xv(r.value,(u=>{if(!e.disableTouch&&!c){if("start"===u.detail.state)return t.userTracking=!0,i=!1,o(),v=d,a=0,s=Date.now(),void w();if("end"===u.detail.state)return l(!1);if("cancel"===u.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;var h=Math.abs(u.detail.dx),f=Math.abs(u.detail.dy);if((h>=f&&e.vertical||h<=f&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&k())}return function(i){var o=s;s=Date.now();var l=n.value.length-t.displayMultipleItems;function u(e){return.5-.25/(e+.5)}function c(e,t){var n=v+e;a=.6*a+.4*t,_.value||(n<0||n>l)&&(n<0?n=-u(-n):n>l&&(n=l+u(n-l)),a=0),y(n)}var d=s-o||1,h=r.value;e.vertical?c(-i.dy/h.offsetHeight,-i.ddy/d):c(-i.dx/h.offsetWidth,-i.ddx/d)}(u.detail),!1}}}))})),Bo((()=>{o(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",_.value?1:0)},circularEnabled:_,swiperEnabled:m}}const fg=xf({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:n,emit:r}=t,i=Ea(null),a=Mf(i,r),o=Ea(null),s=Ea(null),l=function(e){return da({interval:al((()=>{var t=Number(e.interval);return isNaN(t)?5e3:t})),duration:al((()=>{var t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:al((()=>{var t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),u=al((()=>{var t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:tu(e.previousMargin,!0),bottom:tu(e.nextMargin,!0)}:{top:0,bottom:0,left:tu(e.previousMargin,!0),right:tu(e.nextMargin,!0)}),t})),c=al((()=>{var t=Math.abs(100/l.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}})),d=[],h=[],f=Ea([]);function p(){for(var e=[],t=function(){var t=d[n];t instanceof Element||(t=t.el);var r=h.find((e=>t===e.rootRef.value));r&&e.push(ba(r))},n=0;n<d.length;n++)t();f.value=e}gv((()=>{d=s.value.children,p()}));ho("addSwiperContext",(function(e){h.push(e),p()}));ho("removeSwiperContext",(function(e){var t=h.indexOf(e);t>=0&&(h.splice(t,1),p())}));var{onSwiperDotClick:v,circularEnabled:g,swiperEnabled:m}=hg(e,l,f,s,r,a);return()=>{var t=n.default&&n.default();return d=vv(t),zs("uni-swiper",{ref:i},[zs("div",{ref:o,class:"uni-swiper-wrapper"},[zs("div",{class:"uni-swiper-slides",style:u.value},[zs("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[t],4)],4),e.indicatorDots&&zs("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,r)=>zs("div",{onClick:()=>v(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<l.current+l.displayMultipleItems&&n>=l.current||n<l.current+l.displayMultipleItems-r.length},style:{background:n===l.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"])))],2),null],512)],512)}}});const pg=xf({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,t){var{slots:n}=t,r=Ea(null),i={rootRef:r,getItemId:()=>e.itemId,getBoundingClientRect:()=>r.value.getBoundingClientRect(),updatePosition(e,t){var n=t?"0":100*e+"%",i=t?100*e+"%":"0",a=r.value,o="translate(".concat(n,",").concat(i,") translateZ(0)");a&&(a.style.webkitTransform=o,a.style.transform=o)}};return Io((()=>{var e=fo("addSwiperContext");e&&e(i)})),Bo((()=>{var e=fo("removeSwiperContext");e&&e(i)})),()=>zs("uni-swiper-item",{ref:r,style:{position:"absolute",width:"100%",height:"100%"}},[n.default&&n.default()],512)}});const vg=xf({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,t){var{emit:n}=t,r=Ea(null),i=Ea(e.checked),a=function(e,t){var n=fo(Of,!1),r=fo(Af,!1),i={submit:()=>{var n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(i),Bo((()=>{n.removeField(i)})));return r}(e,i),o=Mf(r,n);go((()=>e.checked),(e=>{i.value=e}));var s=t=>{e.disabled||(i.value=!i.value,o("change",t,{value:i.value}))};return a&&(a.addHandler(s),No((()=>{a.removeHandler(s)}))),Bf(e,{"label-click":s}),()=>{var{color:t,type:n}=e,a=Ef(e,"disabled"),o={};return t&&i.value&&(o.backgroundColor=t,o.borderColor=t),zs("uni-switch",Hs({ref:r},a,{onClick:s}),[zs("div",{class:"uni-switch-wrapper"},[Fo(zs("div",{class:["uni-switch-input",[i.value?"uni-switch-input-checked":""]],style:o},null,6),[[Nl,"switch"===n]]),Fo(zs("div",{class:"uni-checkbox-input"},[i.value?au(iu,e.color,22):""],512),[[Nl,"checkbox"===n]])])],16,["onClick"])}}});var gg={ensp:" ",emsp:" ",nbsp:" "};function mg(e,t){return e.replace(/\\n/g,Wn).split(Wn).map((e=>function(e,t){var{space:n,decode:r}=t;if(!e)return e;n&&gg[n]&&(e=e.replace(/ /g,gg[n]));if(!r)return e;return e.replace(/&nbsp;/g,gg.nbsp).replace(/&ensp;/g,gg.ensp).replace(/&emsp;/g,gg.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")}(e,t)))}var _g=un({},ev,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>bg.concat("return").includes(e)}}),yg=!1,bg=["done","go","next","search","send"];const wg=xf({name:"Textarea",props:_g,emits:["confirm","linechange",...tv],setup(e,t){var n,{emit:r}=t,i=Ea(null),a=Ea(null),{fieldRef:o,state:s,scopedAttrsState:l,fixDisabledColor:u,trigger:c}=iv(e,i,r),d=al((()=>s.value.split(Wn))),h=al((()=>bg.includes(e.confirmType))),f=Ea(0),p=Ea(null);function v(e){var{height:t}=e;f.value=t}function g(e){"Enter"===e.key&&h.value&&e.preventDefault()}function m(t){if("Enter"===t.key&&h.value){!function(e){c("confirm",e,{value:s.value})}(t);var n=t.target;!e.confirmHold&&n.blur()}}return go((()=>f.value),(t=>{var n=i.value,r=p.value,o=a.value,s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=r.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(n.style.height="auto",o.style.height=t+"px")})),n="(prefers-color-scheme: dark)",yg=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(n).media!==n,()=>{var t=e.disabled&&u?zs("textarea",{key:"disabled-textarea",ref:o,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":yg},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):zs("textarea",{key:"textarea",ref:o,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":yg},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:g,onKeyup:m},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return zs("uni-textarea",{ref:i},[zs("div",{ref:a,class:"uni-textarea-wrapper"},[Fo(zs("div",Hs(l.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Nl,!s.value.length]]),zs("div",{ref:p,class:"uni-textarea-line"},[" "],512),zs("div",{class:"uni-textarea-compute"},[d.value.map((e=>zs("div",null,[e.trim()?e:"."]))),zs(Df,{initial:!0,onResize:v},null,8,["initial","onResize"])]),"search"===e.confirmType?zs("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}});function xg(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Sg(e,t,n){e&&qr(n||su(),e,((e,n)=>{var{type:r,data:i}=e;t(r,i,n)}))}function kg(e,t){e&&function(e,t){t=Ur(e,t),delete Hr[t]}(t||su(),e)}function Tg(e,t,n,r){var i=Zs().proxy;Io((()=>{Sg(t||xg(i),e,r),!n&&t||go((()=>i.id),((t,n)=>{Sg(xg(i,t),e,r),kg(n&&xg(i,n))}))})),No((()=>{kg(t||xg(i),r)}))}un({},kf);var Eg=0;function Cg(e){var t=ou(),n=Zs().proxy,r=n.$options.name.toLowerCase(),i=e||n.id||"context".concat(Eg++);return Io((()=>{n.$el.__uniContextInfo={id:i,type:r,page:t}})),"".concat(r,".").concat(i)}class Mg extends _f{constructor(e,t,n,r,i){super(e,t,n,r,i,[...wf.props,...arguments.length>5&&void 0!==arguments[5]?arguments[5]:[]])}call(e){var t={animation:this.$props.animation,$el:this.$};e.call(t)}setAttribute(e,t){return"animation"===e&&(this.$animate=!0),super.setAttribute(e,t)}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$animate)return e?this.call(wf.mounted):void(this.$animate&&(this.$animate=!1,this.call(wf.watch.animation.handler)))}}var Og=["space","decode"];var Ig=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class Lg extends Mg{constructor(e,t,n,r,i){super(e,t,n,r,i,[...Ig,...arguments.length>5&&void 0!==arguments[5]?arguments[5]:[]])}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$props["hover-class"];t&&"none"!==t?(this._hover||(this._hover=new Ag(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(e)}}class Ag{constructor(e,t){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=e,this.props=t,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(e){this._hovering=e;var t=this.props["hover-class"].split(" ").filter(Boolean),n=this.$.classList;e?this.$.classList.add.apply(n,t):this.$.classList.remove.apply(n,t)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){this._listening&&(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(e){if(!e._hoverPropagationStopped){var t=this.props["hover-class"];t&&"none"!==t&&!this.$.disabled&&(e.touches.length>1||(this.props["hover-stop-propagation"]&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()}),this.props["hover-start-time"])))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame((()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout((()=>{this.hovering=!1}),this.props["hover-stay-time"])}))}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}function Ng(){return plus.navigator.isImmersedStatusbar()?Math.round("iOS"===plus.os.name?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function Bg(){var e=plus.webview.currentWebview().getStyle(),t=e&&e.titleNView;return t&&"default"===t.type?44+Ng():0}var Rg=Symbol("onDraw");function Pg(e,t){return al((()=>{var n={};return Object.keys(e).forEach((r=>{if(!t||!t.includes(r)){var i=e[r];i="src"===r?$u(i):i,n[r.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))]=i}})),n}))}function zg(e){var t=da({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),n=Ea(!1);function r(){var r=e.value,i=r.getBoundingClientRect(),a=["width","height"];n.value=0===i.width||0===i.height,n.value||(t.position=function(e){for(var t;e;){var n=getComputedStyle(e),r=n.transform||n.webkitTransform;t=(!r||"none"===r)&&t,t="fixed"===n.position||t,e=e.parentElement}return t}(r)?"absolute":"static",a.push("top","left")),a.forEach((e=>{var n=i[e];n="top"===e?n+("static"===t.position?document.documentElement.scrollTop||document.body.scrollTop||0:Bg()):n,t[e]=n+"px"}))}var i=null;function a(){i&&cancelAnimationFrame(i),i=requestAnimationFrame((()=>{i=null,r()}))}window.addEventListener("updateview",a);var o=[],s=[];return ho(Rg,(function(e){o?o.push(e):e(t)})),Io((()=>{r(),s.forEach((e=>e())),s=null})),No((()=>{window.removeEventListener("updateview",a)})),{position:t,hidden:n,onParentReady:function(e){var n=fo(Rg),r=n=>{e(n),o.forEach((e=>e(t))),o=null};!function(e){s?s.push(e):e()}((()=>{n?n(r):r({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})}))}}}const Dg=xf({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var n,{emit:r}=t,i=Ea(null),a=Ea(null),o=Mf(i,r),s=Pg(e,["id"]),{position:l,onParentReady:u}=zg(a);return u((()=>{function t(){var t={adpid:e.adpid,width:l.width,count:e.dataCount};void 0!==e.channel&&(t.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",t,(e=>{var{code:t,data:r,message:i}=e;0===t?n.renderingBind(r):o("error",{},{errMsg:i})}))}n=plus.ad.createAdView(Object.assign({},s.value,l)),plus.webview.currentWebview().append(n),n.setDislikeListener((e=>{a.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),o("close",{},e)})),n.setRenderingListener((e=>{0===e.result?(a.value.style.height=e.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):o("error",{},{errCode:e.result})})),n.setAdClickedListener((()=>{o("adclicked",{},{})})),go((()=>l),(e=>n.setStyle(e)),{deep:!0}),go((()=>e.adpid),(e=>{e&&t()})),go((()=>e.data),(e=>{e&&n.renderingBind(e)})),e.adpid&&t()})),No((()=>{n&&n.close()})),()=>zs("uni-ad",{ref:i},[zs("div",{ref:a,class:"uni-ad-container"},null,512)],512)}});class Fg extends Uh{constructor(e,t,n,r,i,a,o){super(e,t,r);var s=document.createElement("div");s.__vueParent=function(e){for(;e&&e.pid>0;)if(e=pm(e.pid)){var{__vueParentComponent:t}=e.$;if(t)return t}return null}(this),this.$props=da({}),this.init(a),this.$app=Dl(function(e,t){return()=>ol(e,t)}(n,this.$props)),this.$app.mount(s),this.$=s.firstElementChild,o&&(this.$holder=this.$.querySelector(o)),hn(a,"t")&&this.setText(a.t||""),a.a&&hn(a.a,fr)&&mf(this.$,a.a[fr]),this.insert(r,i),Ga()}init(e){var{a:t,e:n,w:r}=e;t&&(this.setWxsProps(t),Object.keys(t).forEach((e=>{this.setAttr(e,t[e])}))),hn(e,"s")&&this.setAttr("style",e.s),n&&Object.keys(n).forEach((e=>{this.addEvent(e,n[e])})),r&&this.addWxsEvents(e.w)}setText(e){(this.$holder||this.$).textContent=e,this.updateView()}addWxsEvent(e,t,n){this.$props[e]=gf(this,t,n)}addEvent(e,t){this.$props[e]=pf(this.id,t,ur(e)[1])}removeEvent(e){this.$props[e]=null}setAttr(e,t){if(e===fr)this.$&&mf(this.$,t);else if(e===pr)this.$.__ownerId=t;else if(e===vr)Ah((()=>jh(this,t)),3);else if(e===hr){var n=Vh(t,this.$||pm(this.pid).$),r=this.$props.style;xn(n)&&xn(r)?Object.keys(n).forEach((e=>{r[e]=n[e]})):this.$props.style=n}else Hh(e)?this.$.style.setProperty(e,Yh(t)):(t=Vh(t,this.$||pm(this.pid).$),this.wxsPropsInvoke(e,t,!0)||(this.$props[e]=t));this.updateView()}removeAttr(e){Hh(e)?this.$.style.removeProperty(e):this.$props[e]=null,this.updateView()}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),vm(this.id),this.removeUniChildren(),this.updateView()}appendChild(e){var t=(this.$holder||this.$).appendChild(e);return this.updateView(!0),t}insertBefore(e,t){var n=(this.$holder||this.$).insertBefore(e,t);return this.updateView(!0),n}}class $g extends Fg{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,a,o)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(e){return Ah(this.getRebuildFn(),2),super.setText(e)}appendChild(e){return Ah(this.getRebuildFn(),2),super.appendChild(e)}insertBefore(e,t){return Ah(this.getRebuildFn(),2),super.insertBefore(e,t)}removeUniChild(e){return Ah(this.getRebuildFn(),2),super.removeUniChild(e)}rebuild(){var e=this.$.__vueParentComponent;e.rebuild&&e.rebuild()}}function jg(e,t,n){e.childNodes.forEach((n=>{n instanceof Element?-1===n.className.indexOf(t)&&e.removeChild(n):e.removeChild(n)})),e.appendChild(document.createTextNode(n))}var Wg=["value","modelValue"];function Vg(e){Wg.forEach((t=>{if(hn(e,t)){var n="onUpdate:"+t;hn(e,n)||(e[n]=n=>e[t]=n)}}))}class Hg extends Uh{constructor(e,t,n,r){super(e,t,n),this.insert(n,r)}}var Ug=0;function qg(e,t,n){var r,i,{position:a,hidden:o,onParentReady:s}=zg(e);s((s=>{var l=al((()=>{var e={};for(var t in a){var n=a[t],r=parseFloat(n),i=parseFloat(s[t]);if("top"===t||"left"===t)n=Math.max(r,i)+"px";else if("width"===t||"height"===t){var o="width"===t?"left":"top",l=parseFloat(s[o]),u=parseFloat(a[o]),c=Math.max(l-u,0),d=Math.max(u+r-(l+i),0);n=Math.max(r-c-d,0)+"px"}e[t]=n}return e})),u=["borderRadius","borderColor","borderWidth","backgroundColor"],c=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],d=[],h={start:"left",end:"right"};function f(t){var n=getComputedStyle(e.value);return u.concat(c,d).forEach((e=>{t[e]=n[e]})),t}var p=da(f({})),v=null;i=function(){v&&cancelAnimationFrame(v),v=requestAnimationFrame((()=>{v=null,f(p)}))},window.addEventListener("updateview",i);var g=al((()=>{var e=function(){var e={};for(var t in e){var n=e[t];"top"!==t&&"left"!==t||(n=Math.min(parseFloat(n)-parseFloat(s[t]),0)+"px"),e[t]=n}return e}(),t=[{tag:"rect",position:e,rectStyles:{color:p.backgroundColor,radius:p.borderRadius,borderColor:p.borderColor,borderWidth:p.borderWidth}}];if("src"in n)n.src&&t.push({tag:"img",position:e,src:n.src});else{var r=parseFloat(p.lineHeight)-parseFloat(p.fontSize),i=parseFloat(e.width)-parseFloat(p.paddingLeft)-parseFloat(p.paddingRight);i=i<0?0:i;var a=parseFloat(e.height)-parseFloat(p.paddingTop)-r/2-parseFloat(p.paddingBottom);a=a<0?0:a,t.push({tag:"font",position:{top:"".concat(parseFloat(e.top)+parseFloat(p.paddingTop)+r/2,"px"),left:"".concat(parseFloat(e.left)+parseFloat(p.paddingLeft),"px"),width:"".concat(i,"px"),height:"".concat(a,"px")},textStyles:{align:h[p.textAlign]||p.textAlign,color:p.color,decoration:"none",lineSpacing:"".concat(r,"px"),margin:"0px",overflow:p.textOverflow,size:p.fontSize,verticalAlign:"top",weight:p.fontWeight,whiteSpace:p.whiteSpace},text:n.text})}return t}));r=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(Ug++),l.value,g.value),plus.webview.currentWebview().append(r),o.value&&r.hide(),r.addEventListener("click",(()=>{t("click",{},{})})),go((()=>o.value),(e=>{r[e?"hide":"show"]()})),go((()=>l.value),(e=>{r.setStyle(e)}),{deep:!0}),go((()=>g.value),(()=>{r.reset(),r.draw(g.value)}),{deep:!0})})),No((()=>{r&&r.close(),i&&window.removeEventListener("updateview",i)}))}const Yg=xf({name:"CoverImage",props:{src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}},emits:["click","load","error"],setup(e,t){var{emit:n}=t,r=Ea(null),i=Mf(r,n),a=da({src:""}),o=function(e,t,n){var r,i=Ea("");function a(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var a=e.src?$u(e.src):"";0===a.indexOf("http://")||0===a.indexOf("https://")?(r=plus.downloader.createDownload(a,{filename:"_doc/uniapp_temp//download/"},((e,t)=>{200===t?o(e.filename):n("error",{},{errMsg:"error"})}))).start():a&&o(a)}function o(r){t.src=r,plus.io.getImageInfo({src:r,success:t=>{var{width:r,height:a}=t;e.autoSize&&(i.value="width:".concat(r,"px;height:").concat(a,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),n("load",{},{width:r,height:a})},fail:()=>{n("error",{},{errMsg:"error"})}})}return e.src&&a(),go((()=>e.src),a),No((()=>{r&&r.abort()})),i}(e,a,i);return qg(r,i,a),()=>zs("uni-cover-image",{ref:r,style:o.value},[zs("div",{class:"uni-cover-image"},null)],4)}});const Xg=xf({name:"CoverView",emits:["click"],setup(e,t){var{emit:n}=t,r=Ea(null),i=Ea(null),a=Mf(r,n),o=da({text:""});return qg(r,a,o),gv((()=>{var e=i.value.childNodes[0];o.text=e&&e instanceof Text?e.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))})),()=>zs("uni-cover-view",{ref:r},[zs("div",{ref:i,class:"uni-cover-view"},null,512)],512)}});var Zg={id:{type:String,default:""},url:{type:String,default:""},mode:{type:String,default:"SD"},muted:{type:[Boolean,String],default:!1},enableCamera:{type:[Boolean,String],default:!0},autoFocus:{type:[Boolean,String],default:!0},beauty:{type:[Number,String],default:0},whiteness:{type:[Number,String],default:0},aspect:{type:[String],default:"3:2"},minBitrate:{type:[Number],default:200}},Gg=["statechange","netstatus","error"];const Kg=xf({name:"LivePusher",props:Zg,emits:Gg,setup(e,t){var n,{emit:r}=t,i=Ea(null),a=Mf(i,r),o=Ea(null),s=Pg(e,["id"]),{position:l,hidden:u,onParentReady:c}=zg(o);return c((()=>{n=new plus.video.LivePusher("livePusher"+Date.now(),Object.assign({},s.value,l)),plus.webview.currentWebview().append(n),Gg.forEach((e=>{n.addEventListener(e,(t=>{a(e,{},t.detail)}))})),go((()=>s.value),(e=>n.setStyles(e)),{deep:!0}),go((()=>l),(e=>n.setStyles(e)),{deep:!0}),go((()=>u.value),(e=>{e||n.setStyles(l)}))})),Tg(((e,t)=>{n&&n[e](t)}),Cg(),!0),No((()=>{n&&n.close()})),()=>zs("uni-live-pusher",{ref:i,id:e.id},[zs("div",{ref:o,class:"uni-live-pusher-container"},null,512)],8,["id"])}});function Jg(e){if(0!==e.indexOf("#"))return{color:e,opacity:1};var t=e.slice(7,9);return{color:e.slice(0,7),opacity:t?Number("0x"+t)/255:1}}const Qg=xf({name:"Map",props:{id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]}},emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var n,{emit:r}=t,i=Ea(null),a=Mf(i,r),o=Ea(null),s=Pg(e,["id"]),{position:l,hidden:u,onParentReady:c}=zg(o),{_addMarkers:d,_addMapLines:h,_addMapCircles:f,_addMapPolygons:p,_setMap:v}=function(e,t){var n;function r(t){var{longitude:r,latitude:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n&&(n.setCenter(new plus.maps.Point(Number(r||e.longitude),Number(i||e.latitude))),t({errMsg:"moveToLocation:ok"}))}function i(e){n&&n.getCurrentCenter(((t,n)=>{e({longitude:n.getLng(),latitude:n.getLat(),errMsg:"getCenterLocation:ok"})}))}function a(e){if(n){var t=n.getBounds();e({southwest:t.getSouthWest(),northeast:t.getNorthEast(),errMsg:"getRegion:ok"})}}function o(e){n&&e({scale:n.getZoom(),errMsg:"getScale:ok"})}function s(e){if(n){var{id:r,latitude:i,longitude:a,iconPath:o,callout:s,label:l}=e;(e=>{var i,{latitude:a,longitude:u}=e.coord,c=new plus.maps.Marker(new plus.maps.Point(u,a));o&&c.setIcon($u(o)),l&&l.content&&c.setLabel(l.content);var d=void 0;s&&s.content&&(d=new plus.maps.Bubble(s.content)),d&&c.setBubble(d),(r||0===r)&&(c.onclick=e=>{t("markertap",{},{markerId:r,latitude:a,longitude:u})},d&&(d.onclick=()=>{t("callouttap",{},{markerId:r})})),null===(i=n)||void 0===i||i.addOverlay(c),n.__markers__.push(c)})({coord:{latitude:i,longitude:a}})}}function l(){n&&(n.__markers__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__markers__=[])}function u(e,t){t&&l(),e.forEach((e=>{s(e)}))}function c(e){n&&(n.__lines__.length>0&&(n.__lines__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__lines__=[]),e.forEach((e=>{var t,{color:r,width:i}=e,a=e.points.map((e=>new plus.maps.Point(e.longitude,e.latitude))),o=new plus.maps.Polyline(a);if(r){var s=Jg(r);o.setStrokeColor(s.color),o.setStrokeOpacity(s.opacity)}i&&o.setLineWidth(i),null===(t=n)||void 0===t||t.addOverlay(o),n.__lines__.push(o)})))}function d(e){n&&(n.__circles__.length>0&&(n.__circles__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__circles__=[]),e.forEach((e=>{var t,{latitude:r,longitude:i,color:a,fillColor:o,radius:s,strokeWidth:l}=e,u=new plus.maps.Circle(new plus.maps.Point(i,r),s);if(a){var c=Jg(a);u.setStrokeColor(c.color),u.setStrokeOpacity(c.opacity)}if(o){var d=Jg(o);u.setFillColor(d.color),u.setFillOpacity(d.opacity)}l&&u.setLineWidth(l),null===(t=n)||void 0===t||t.addOverlay(u),n.__circles__.push(u)})))}function h(e){if(n){var t=n.__polygons__;t.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),t.length=0,e.forEach((e=>{var r,{points:i,strokeWidth:a,strokeColor:o,fillColor:s}=e,l=[];i&&i.forEach((e=>{l.push(new plus.maps.Point(e.longitude,e.latitude))}));var u=new plus.maps.Polygon(l);if(o){var c=Jg(o);u.setStrokeColor(c.color),u.setStrokeOpacity(c.opacity)}if(s){var d=Jg(s);u.setFillColor(d.color),u.setFillOpacity(d.opacity)}a&&u.setLineWidth(a),null===(r=n)||void 0===r||r.addOverlay(u),t.push(u)}))}}var f={moveToLocation:r,getCenterLocation:i,getRegion:a,getScale:o};return Tg(((e,t,n)=>{f[e]&&f[e](n,t)}),Cg(),!0),{_addMarkers:u,_addMapLines:c,_addMapCircles:d,_addMapPolygons:h,_setMap(e){n=e}}}(e,a);c((()=>{(n=un(plus.maps.create(su()+"-map-"+(e.id||Date.now()),Object.assign({},s.value,l,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[],__polygons__:[]})).setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(n),u.value&&n.hide(),n.onclick=e=>{a("tap",{},e),a("click",{},e)},n.onstatuschanged=e=>{a("regionchange",{},{})},v(n),d(e.markers),h(e.polyline),f(e.circles),p(e.polygons),go((()=>s.value),(e=>n&&n.setStyles(e)),{deep:!0}),go((()=>l),(e=>n&&n.setStyles(e)),{deep:!0}),go(u,(e=>{n&&n[e?"hide":"show"]()})),go((()=>e.scale),(e=>{n&&n.setZoom(parseInt(String(e)))})),go([()=>e.latitude,()=>e.longitude],(e=>{var[t,r]=e;n&&n.setStyles({center:new plus.maps.Point(Number(r),Number(t))})})),go((()=>e.markers),(e=>{d(e,!0)}),{deep:!0}),go((()=>e.polyline),(e=>{h(e)}),{deep:!0}),go((()=>e.circles),(e=>{f(e)}),{deep:!0}),go((()=>e.polygons),(e=>{p(e)}),{deep:!0})}));var g=al((()=>e.controls.map((e=>{var t={position:"absolute"};return["top","left","width","height"].forEach((n=>{e.position[n]&&(t[n]=e.position[n]+"px")})),{id:e.id,iconPath:$u(e.iconPath),position:t,clickable:e.clickable}}))));return No((()=>{n&&(n.close(),v(null))})),()=>zs("uni-map",{ref:i,id:e.id},[zs("div",{ref:o,class:"uni-map-container"},null,512),g.value.map(((e,t)=>zs(Yg,{key:t,src:e.iconPath,style:e.position,"auto-size":!0,onClick:()=>e.clickable&&a("controltap",{},{controlId:e.id})},null,8,["src","style","auto-size","onClick"]))),zs("div",{class:"uni-map-slot"},null)],8,["id"])}});var em={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},tm={YEAR:"year",MONTH:"month",DAY:"day"};function nm(e){return e>9?e:"0".concat(e)}function rm(e,t){e=String(e||"");var n=new Date;if(t===em.TIME){var r=e.split(":");2===r.length&&n.setHours(parseInt(r[0]),parseInt(r[1]))}else{var i=e.split("-");3===i.length&&n.setFullYear(parseInt(i[0]),parseInt(String(parseFloat(i[1])-1)),parseInt(i[2]))}return n}const im=xf({name:"Picker",props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:em.SELECTOR,validator:e=>Object.values(em).indexOf(e)>=0},fields:{type:String,default:""},start:{type:String,default:function(e){if(e.mode===em.TIME)return"00:00";if(e.mode===em.DATE){var t=(new Date).getFullYear()-100;switch(e.fields){case tm.YEAR:return t;case tm.MONTH:return t+"-01";default:return t+"-01-01"}}return""}},end:{type:String,default:function(e){if(e.mode===em.TIME)return"23:59";if(e.mode===em.DATE){var t=(new Date).getFullYear()+100;switch(e.fields){case tm.YEAR:return t;case tm.MONTH:return t+"-12";default:return t+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1}},emits:["change","cancel","columnchange"],setup(e,t){var{emit:n}=t;Dr();var{t:r,getLocale:i}=Pr(),a=Ea(null),o=Mf(a,n),s=Ea(null),l=Ea(null),u=__uniConfig.darkmode?plus.navigator.getUIStyle():"light";function c(e){u=e.theme}UniViewJSBridge.subscribe(Zn,c),No((()=>{UniViewJSBridge.unsubscribe(Zn,c)}));var d=()=>{var t=e.value;switch(e.mode){case em.MULTISELECTOR:fn(t)||(t=[]),fn(s.value)||(s.value=[]);for(var n=s.value.length=Math.max(t.length,e.range.length),r=0;r<n;r++){var i=Number(t[r]),a=Number(s.value[r]),o=isNaN(i)?isNaN(a)?0:a:i;s.value.splice(r,1,o<0?0:o)}break;case em.TIME:case em.DATE:s.value=String(t);break;default:var l=Number(t);s.value=l<0?0:l}},h=e=>{l.value&&l.value.sendMessage(e)},f=(t,n)=>{t.mode!==em.TIME&&t.mode!==em.DATE||t.fields?(t.fields=Object.values(tm).includes(t.fields)?t.fields:tm.DAY,(e=>{var t={event:"cancel"};l.value=xu({url:"__uniapppicker",data:un({},e,{theme:u}),style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:n=>{var r=n.event;if("created"!==r)return"columnchange"===r?(delete n.event,void o(r,{},n)):void(t=n);h(e)},onClose:()=>{l.value=null;var e=t.event;delete t.event,e&&o(e,{},t)}})})(t)):((t,n)=>{plus.nativeUI[e.mode===em.TIME?"pickTime":"pickDate"]((t=>{var n=t.date;o("change",{},{value:e.mode===em.TIME?"".concat(nm(n.getHours()),":").concat(nm(n.getMinutes())):"".concat(n.getFullYear(),"-").concat(nm(n.getMonth()+1),"-").concat(nm(n.getDate()))})}),(()=>{o("cancel",{},{})}),e.mode===em.TIME?{time:rm(e.value,em.TIME),popover:n}:{date:rm(e.value,em.DATE),minDate:rm(e.start,em.DATE),maxDate:rm(e.end,em.DATE),popover:n})})(0,n)},p=t=>{if(!e.disabled){var n=t.currentTarget.getBoundingClientRect();f(Object.assign({},e,{value:s.value,locale:i(),messages:{done:r("uni.picker.done"),cancel:r("uni.picker.cancel")}}),{top:n.top+Bg(),left:n.left,width:n.width,height:n.height})}},v=fo(Of,!1),g={submit:()=>[e.name,s.value],reset:()=>{switch(e.mode){case em.SELECTOR:s.value=0;break;case em.MULTISELECTOR:fn(e.value)&&(s.value=e.value.map((e=>0)));break;case em.DATE:case em.TIME:s.value=""}}};return v&&(v.addField(g),No((()=>v.removeField(g)))),Object.keys(e).forEach((t=>{"name"!==t&&go((()=>e[t]),(e=>{var n={};n[t]=e,h(n)}),{deep:!0})})),go((()=>e.value),d,{deep:!0}),d(),()=>zs("uni-picker",{ref:a,onClick:p},[zs("slot",null,null)],8,["onClick"])}});var am={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},vslideGesture:{type:[Boolean,String],default:!1},vslideGestureInFullscreen:{type:[Boolean,String],default:!1},showPlayBtn:{type:[Boolean,String],default:!0},showMuteBtn:{type:[Boolean,String],default:!1},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default:()=>({})},advanced:{type:Array,default:()=>[]},title:{type:String,default:""}},om=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],sm=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"];const lm=xf({name:"Video",props:am,emits:om,setup(e,t){var n,{emit:r}=t,i=Ea(null),a=Mf(i,r),o=Ea(null),s=Pg(e,["id"]),{position:l,hidden:u,onParentReady:c}=zg(o);return c((()=>{n=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},s.value,l)),plus.webview.currentWebview().append(n),u.value&&n.hide(),om.forEach((e=>{n.addEventListener(e,(t=>{a(e,{},t.detail)}))})),go((()=>s.value),(e=>n.setStyles(e)),{deep:!0}),go((()=>l),(e=>n.setStyles(e)),{deep:!0}),go((()=>u.value),(e=>{n[e?"hide":"show"](),e||n.setStyles(l)}))})),Tg(((e,t)=>{if(sm.includes(e)){var r;switch(e){case"seek":r=t.position;break;case"sendDanmu":r=t;break;case"playbackRate":r=t.rate;break;case"requestFullScreen":r=t.direction}n&&n[e](r)}}),Cg(),!0),No((()=>{n&&n.close()})),()=>zs("uni-video",{ref:i,id:e.id},[zs("div",{ref:o,class:"uni-video-container"},null,512),zs("div",{class:"uni-video-slot"},null)],8,["id"])}});var um,cm={src:{type:String,default:""},updateTitle:{type:Boolean,default:!0},webviewStyles:{type:Object,default:()=>({})}};const dm=xf({name:"WebView",props:cm,setup(e){var t=su(),n=Ea(null),{hidden:r,onParentReady:i}=zg(n),a=al((()=>e.webviewStyles));return i((()=>{var n;(e=>{var{htmlId:t,src:n,webviewStyles:r,props:i}=e,a=plus.webview.currentWebview(),o=un({"uni-app":"none",isUniH5:!0,contentAdjust:!1},r),s=a.getTitleNView();if(s){var l=44+parseFloat(o.top||"0");plus.navigator.isImmersedStatusbar()&&(l+=Ng()),o.top=String(l),o.bottom=o.bottom||"0"}um=plus.webview.create(n,t,o),s&&um.addEventListener("titleUpdate",(function(){var e;if(i.updateTitle){var t=null===(e=um)||void 0===e?void 0:e.getTitle();a.setStyle({titleNView:{titleText:t&&"null"!==t?t:" "}})}})),plus.webview.currentWebview().append(um)})({htmlId:Ea("webviewId"+t).value,src:$u(e.src),webviewStyles:a.value,props:e}),UniViewJSBridge.publishHandler("webviewInserted",{},t),r.value&&(null===(n=um)||void 0===n||n.hide())})),No((()=>{var e;plus.webview.currentWebview().remove(um),null===(e=um)||void 0===e||e.close("none"),um=null,UniViewJSBridge.publishHandler("webviewRemoved",{},t)})),go((()=>e.src),(t=>{var n,r=$u(t)||"";if(r){var i;if(/^(http|https):\/\//.test(r)&&e.webviewStyles.progress)null===(i=um)||void 0===i||i.setStyle({progress:{color:e.webviewStyles.progress.color}});null===(n=um)||void 0===n||n.loadURL(r)}})),go(a,(e=>{var t;null===(t=um)||void 0===t||t.setStyle(e)})),go(r,(e=>{um&&um[e?"hide":"show"]()})),()=>zs("uni-web-view",{ref:n},null,512)}});var hm={"#text":class extends Uh{constructor(e,t,n,r){super(e,"#text",t,document.createTextNode("")),this.init(r),this.insert(t,n)}},"#comment":class extends Uh{constructor(e,t,n){super(e,"#comment",t,document.createComment("")),this.insert(t,n)}},VIEW:class extends Lg{constructor(e,t,n,r){super(e,document.createElement("uni-view"),t,n,r)}},IMAGE:class extends Fg{constructor(e,t,n,r){super(e,"uni-image",Wp,t,n,r)}},TEXT:class extends Mg{constructor(e,t,n,r){super(e,document.createElement("uni-text"),t,n,r,Og),this._text=""}init(e){this._text=e.t||"",super.init(e)}setText(e){this._text=e,this.update(),this.updateView()}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{$props:{space:t,decode:n}}=this;this.$.textContent=mg(this._text,{space:t,decode:n}).join(Wn),super.update(e)}},NAVIGATOR:class extends Fg{constructor(e,t,n,r){super(e,"uni-navigator",$v,t,n,r,"uni-navigator")}},FORM:class extends Fg{constructor(e,t,n,r){super(e,"uni-form",If,t,n,r,"span")}},BUTTON:class extends Fg{constructor(e,t,n,r){super(e,"uni-button",zf,t,n,r)}},INPUT:class extends Fg{constructor(e,t,n,r){super(e,"uni-input",ov,t,n,r)}init(e){super.init(e),Vg(this.$props)}},LABEL:class extends Fg{constructor(e,t,n,r){super(e,"uni-label",Nf,t,n,r)}},RADIO:class extends Fg{constructor(e,t,n,r){super(e,"uni-radio",ng,t,n,r,".uni-radio-wrapper")}setText(e){jg(this.$holder,"uni-radio-input",e)}},CHECKBOX:class extends Fg{constructor(e,t,n,r){super(e,"uni-checkbox",Kf,t,n,r,".uni-checkbox-wrapper")}setText(e){jg(this.$holder,"uni-checkbox-input",e)}},"CHECKBOX-GROUP":class extends Fg{constructor(e,t,n,r){super(e,"uni-checkbox-group",Gf,t,n,r)}},AD:class extends Fg{constructor(e,t,n,r){super(e,"uni-ad",Dg,t,n,r)}},CAMERA:class extends Hg{constructor(e,t,n){super(e,"uni-camera",t,n)}},CANVAS:class extends Fg{constructor(e,t,n,r){super(e,"uni-canvas",Xf,t,n,r,"uni-canvas > div")}},"COVER-IMAGE":class extends Fg{constructor(e,t,n,r){super(e,"uni-cover-image",Yg,t,n,r)}},"COVER-VIEW":class extends $g{constructor(e,t,n,r){super(e,"uni-cover-view",Xg,t,n,r,".uni-cover-view")}},EDITOR:class extends Fg{constructor(e,t,n,r){super(e,"uni-editor",Bp,t,n,r)}},"FUNCTIONAL-PAGE-NAVIGATOR":class extends Hg{constructor(e,t,n){super(e,"uni-functional-page-navigator",t,n)}},ICON:class extends Fg{constructor(e,t,n,r){super(e,"uni-icon",Dp,t,n,r)}},"RADIO-GROUP":class extends Fg{constructor(e,t,n,r){super(e,"uni-radio-group",tg,t,n,r)}},"LIVE-PLAYER":class extends Hg{constructor(e,t,n){super(e,"uni-live-player",t,n)}},"LIVE-PUSHER":class extends Fg{constructor(e,t,n,r){super(e,"uni-live-pusher",Kg,t,n,r,".uni-live-pusher-slot")}},MAP:class extends Fg{constructor(e,t,n,r){super(e,"uni-map",Qg,t,n,r,".uni-map-slot")}},"MOVABLE-AREA":class extends $g{constructor(e,t,n,r){super(e,"uni-movable-area",mv,t,n,r)}},"MOVABLE-VIEW":class extends Fg{constructor(e,t,n,r){super(e,"uni-movable-view",Iv,t,n,r)}},"OFFICIAL-ACCOUNT":class extends Hg{constructor(e,t,n){super(e,"uni-official-account",t,n)}},"OPEN-DATA":class extends Hg{constructor(e,t,n){super(e,"uni-open-data",t,n)}},PICKER:class extends Fg{constructor(e,t,n,r){super(e,"uni-picker",im,t,n,r)}},"PICKER-VIEW":class extends $g{constructor(e,t,n,r){super(e,"uni-picker-view",jv,t,n,r,".uni-picker-view-wrapper")}},"PICKER-VIEW-COLUMN":class extends $g{constructor(e,t,n,r){super(e,"uni-picker-view-column",Zv,t,n,r,".uni-picker-view-content")}},PROGRESS:class extends Fg{constructor(e,t,n,r){super(e,"uni-progress",Jv,t,n,r)}},"RICH-TEXT":class extends Fg{constructor(e,t,n,r){super(e,"uni-rich-text",sg,t,n,r)}},"SCROLL-VIEW":class extends Fg{constructor(e,t,n,r){super(e,"uni-scroll-view",ug,t,n,r,".uni-scroll-view-content")}setText(e){jg(this.$holder,"uni-scroll-view-refresher",e)}},SLIDER:class extends Fg{constructor(e,t,n,r){super(e,"uni-slider",cg,t,n,r)}},SWIPER:class extends $g{constructor(e,t,n,r){super(e,"uni-swiper",fg,t,n,r,".uni-swiper-slide-frame")}},"SWIPER-ITEM":class extends Fg{constructor(e,t,n,r){super(e,"uni-swiper-item",pg,t,n,r)}},SWITCH:class extends Fg{constructor(e,t,n,r){super(e,"uni-switch",vg,t,n,r)}},TEXTAREA:class extends Fg{constructor(e,t,n,r){super(e,"uni-textarea",wg,t,n,r)}init(e){super.init(e),Vg(this.$props)}},VIDEO:class extends Fg{constructor(e,t,n,r){super(e,"uni-video",lm,t,n,r,".uni-video-slot")}},"WEB-VIEW":class extends Fg{constructor(e,t,n,r){super(e,"uni-web-view",dm,t,n,r)}}};var fm=new Map;function pm(e){return fm.get(e)}function vm(e){return fm.delete(e)}function gm(e,t,n,r){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(0===e)i=new Uh(e,t,n,document.createElement(t));else{var o=hm[t];i=o?new o(e,n,r,a):new _f(e,document.createElement(t),n,r,a)}return fm.set(e,i),i}var mm=[],_m=!1;function ym(e){if(_m)return e();mm.push(e)}function bm(){_m=!0,mm.forEach((e=>{try{e()}catch(t){console.error(t)}})),mm.length=0}function wm(e){var{css:t,route:n,platform:r,pixelRatio:i,windowWidth:a,disableScroll:o,statusbarHeight:s,windowTop:l,windowBottom:u}=e;!function(e){window.__PAGE_INFO__={route:e}}(n),function(e,t,n){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:n}}(r,i,a),gm(0,"div",-1,-1).$=document.getElementById("app");var c=plus.webview.currentWebview().id;window.__id__=c,document.title="".concat(n,"[").concat(c,"]"),function(e,t,n){var r={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":n+"px","--status-bar-height":e+"px"};!function(e){var t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}(r)}(s,l,u),o&&document.addEventListener("touchmove",lu),t?function(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=bm,t.onerror=bm,document.head.appendChild(t)}(n):bm()}var xm=!1;function Sm(e,t){var{scrollTop:n,selector:r,duration:i}=e;!function(e,t,n){if(gn(e)){var r=document.querySelector(e);if(r){var{height:i,top:a}=r.getBoundingClientRect();e=a+window.pageYOffset,n&&(e-=i)}}e<0&&(e=0);var o=document.documentElement,{clientHeight:s,scrollHeight:l}=o;if(e=Math.min(e,l-s),0!==t){if(window.scrollY!==e){var u=t=>{if(t<=0)window.scrollTo(0,e);else{var n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),u(t-10)}))}};u(t)}}else o.scrollTop=document.body.scrollTop=e}(r||n||0,i),t()}function km(e){var t=e[0];1===t[0]?wm(t[1]):ym((()=>function(e){var t=e[0],n=function(e){if(!e.length)return e=>e;var t=function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("number"==typeof n)return e[n];var i={};return n.forEach((e=>{var[n,a]=e;i[t(n)]=r?t(a):a})),i};return t}(0===t[0]?t[1]:[]);e.forEach((e=>{switch(e[0]){case 1:return wm(e[1]);case 2:return;case 3:var t=e[3];return gm(e[1],n(e[2]),-1===t?0:t,e[4],Ih(n,e[5]));case 4:return pm(e[1]).insert(e[2],e[3],Ih(n,e[4]));case 5:return pm(e[1]).remove();case 6:return pm(e[1]).setAttr(n(e[2]),n(e[3]));case 7:return pm(e[1]).removeAttr(n(e[2]));case 8:return pm(e[1]).addEvent(n(e[2]),e[3]);case 12:return pm(e[1]).addWxsEvent(n(e[2]),n(e[3]),e[4]);case 9:return pm(e[1]).removeEvent(n(e[2]));case 10:return pm(e[1]).setText(n(e[2]));case 15:return function(e){if(!xm){xm=!0;var t={onReachBottomDistance:e,onPageScroll(e){UniViewJSBridge.publishHandler("onPageScroll",{scrollTop:e})},onReachBottom(){UniViewJSBridge.publishHandler("onReachBottom")}};requestAnimationFrame((()=>document.addEventListener("scroll",vu(t))))}}(e[1])}})),function(){try{[...Lh].sort(((e,t)=>e.priority-t.priority)).forEach((e=>e()))}finally{Lh.clear()}}()}(e)))}function Tm(){UniViewJSBridge.publishHandler(Ru)}function Em(e){return window.__$__(e).$}function Cm(e,t){var n={},{top:r,topWindowHeight:i}=function(){var e=document.documentElement.style,t=Jl(),n=Kl(e,"--window-bottom"),r=Kl(e,"--window-left"),i=Kl(e,"--window-right"),a=Kl(e,"--top-window-height");return{top:t,bottom:n?n+Zl.bottom:0,left:r?r+Zl.left:0,right:i?i+Zl.right:0,topWindowHeight:a||0}}();if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=rr(e)),t.rect||t.size){var a=e.getBoundingClientRect();t.rect&&(n.left=a.left,n.right=a.right,n.top=a.top-r-i,n.bottom=a.bottom-r-i),t.size&&(n.width=a.width,n.height=a.height)}if(fn(t.properties)&&t.properties.forEach((e=>{e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){var o=e.children[0].children[0];n.scrollLeft=o.scrollLeft,n.scrollTop=o.scrollTop,n.scrollHeight=o.scrollHeight,n.scrollWidth=o.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(fn(t.computedStyle)){var s=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=s[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function Mm(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=this.parentElement.querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}function Om(e,t,n,r,i){var a=function(e,t){return e?window.__$__(e).$:t.$el}(t,e),o=a.parentElement;if(!o)return r?null:[];var{nodeType:s}=a,l=3===s||8===s;if(r){var u=l?o.querySelector(n):Mm(a,n)?a:a.querySelector(n);return u?Cm(u,i):null}var c=[],d=(l?o:a).querySelectorAll(n);return d&&d.length&&[].forEach.call(d,(e=>{c.push(Cm(e,i))})),!l&&Mm(a,n)&&c.unshift(Cm(a,i)),c}function Im(e,t,n){var r=[];t.forEach((t=>{var{component:n,selector:i,single:a,fields:o}=t;null===n?r.push(function(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var n=document.documentElement,r=document.body;t.scrollLeft=n.scrollLeft||r.scrollLeft||0,t.scrollTop=n.scrollTop||r.scrollTop||0,t.scrollHeight=n.scrollHeight||r.scrollHeight||0,t.scrollWidth=n.scrollWidth||r.scrollWidth||0}return t}(o)):r.push(Om(e,n,i,a,o))})),n(r)}function Lm(e,t){var{reqId:n,component:r,options:i,callback:a}=e,o=Em(r);(o.__io||(o.__io={}))[n]=function(e,t,n){Eh();var r=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver((e=>{e.forEach((e=>{n({intersectionRatio:Mh(e),intersectionRect:Ch(e.intersectionRect),boundingClientRect:Ch(e.boundingClientRect),relativeRect:Ch(e.rootBounds),time:Date.now(),dataset:rr(e.target),id:e.target.id})}))}),{root:r,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;for(var a=e.querySelectorAll(t.selector),o=0;o<a.length;o++)i.observe(a[o])}else{i.USE_MUTATION_OBSERVER=!1;var s=e.querySelector(t.selector);s?i.observe(s):console.warn("Node ".concat(t.selector," is not found. Intersection observer will not trigger."))}return i}(o,i,a)}var Am={},Nm={};function Bm(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Rm(e,t){var{reqId:n,component:r,options:i,callback:a}=e,o=Am[n]=window.matchMedia(function(e){var t=[];for(var n of["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"])"orientation"!==n&&e[n]&&Number(e[n]>=0)&&t.push("(".concat(Bm(n),": ").concat(Number(e[n]),"px)")),"orientation"===n&&e[n]&&t.push("(".concat(Bm(n),": ").concat(e[n],")"));return t.join(" and ")}(i)),s=Nm[n]=e=>a(e.matches);s(o),o.addListener(s)}function Pm(e,t){var{family:n,source:r,desc:i}=e;(function(e,t,n){var r=document.fonts;if(r){var i=new FontFace(e,t,n);return i.load().then((()=>{r.add&&r.add(i)}))}return new Promise((r=>{var i=document.createElement("style"),a=[];if(n){var{style:o,weight:s,stretch:l,unicodeRange:u,variant:c,featureSettings:d}=n;o&&a.push("font-style:".concat(o)),s&&a.push("font-weight:".concat(s)),l&&a.push("font-stretch:".concat(l)),u&&a.push("unicode-range:".concat(u)),c&&a.push("font-variant:".concat(c)),d&&a.push("font-feature-settings:".concat(d))}i.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(a.join(";"),"}"),document.head.appendChild(i),r()}))})(n,r,i).then((()=>{t()})).catch((e=>{t(e.toString())}))}var zm={$el:document.body};function Dm(){var e=su();!function(e,t){UniViewJSBridge.subscribe(Ur(e,jr),t?t(Yr):Yr)}(e,(e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];ym((()=>{e.apply(null,n)}))})),qr(e,"requestComponentInfo",((e,t)=>{Im(zm,e.reqs,t)})),qr(e,"addIntersectionObserver",(e=>{Lm(un({},e,{callback(t){UniViewJSBridge.publishHandler(e.eventName,t)}}))})),qr(e,"removeIntersectionObserver",(e=>{!function(e,t){var{reqId:n,component:r}=e,i=Em(r),a=i.__io&&i.__io[n];a&&(a.disconnect(),delete i.__io[n])}(e)})),qr(e,"addMediaQueryObserver",(e=>{Rm(un({},e,{callback(t){UniViewJSBridge.publishHandler(e.eventName,t)}}))})),qr(e,"removeMediaQueryObserver",(e=>{!function(e,t){var{reqId:n,component:r}=e,i=Nm[n],a=Am[n];a&&(a.removeListener(i),delete Nm[n],delete Am[n])}(e)})),qr(e,"pageScrollTo",Sm),qr(e,"loadFontFace",Pm),qr(e,"setPageMeta",(e=>{!function(e,t){var{pageStyle:n,rootFontSize:r}=t;n&&(document.querySelector("uni-page-body")||document.body).setAttribute("style",n),r&&document.documentElement.style.fontSize!==r&&(document.documentElement.style.fontSize=r)}(0,e)}))}function Fm(){ai(),Dm(),function(){var{subscribe:e}=UniViewJSBridge;e(Nu,km),e("setLocale",(e=>Pr().setLocale(e))),e(Ru,Tm)}(),function(){if(0===String(navigator.vendor).indexOf("Apple")){var e,t=null;document.documentElement.addEventListener("click",(n=>{clearTimeout(e),t&&Math.abs(n.pageX-t.pageX)<=44&&Math.abs(n.pageY-t.pageY)<=44&&n.timeStamp-t.timeStamp<=450&&n.preventDefault(),t=n,e=setTimeout((()=>{t=null}),450)}))}}(),Pu.publishHandler(Ru)}window.uni=Oh,window.UniViewJSBridge=Pu,window.rpx2px=_h,window.normalizeStyleName=sf,window.normalizeStyleValue=Yh,window.__$__=pm,window.__f__=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];uni.__log__?uni.__log__(e,t,...r):console[e].apply(console,[...r,t])},"undefined"!=typeof plus?Fm():document.addEventListener("plusready",Fm)})); diff --git a/packages/uni-app-plus/dist/uni.runtime.esm.js b/packages/uni-app-plus/dist/uni.runtime.esm.js index 1776bcad6e3..df7f4f66848 100644 --- a/packages/uni-app-plus/dist/uni.runtime.esm.js +++ b/packages/uni-app-plus/dist/uni.runtime.esm.js @@ -1727,6 +1727,7 @@ class Page { } } function showPage({ context = {}, url, data = {}, style = {}, onMessage, onClose, }) { + let darkmode = __uniConfig.darkmode; // eslint-disable-next-line plus_ = context.plus || plus; // eslint-disable-next-line @@ -1763,7 +1764,7 @@ function showPage({ context = {}, url, data = {}, style = {}, onMessage, onClose extras: { from: getPageId(), runtime: getRuntime(), - data, + data: extend({}, data, { darkmode }), useGlobalEvent: !BroadcastChannel_, }, }); @@ -19791,7 +19792,7 @@ function initTabBar() { function initGlobalEvent() { const plusGlobalEvent = plus.globalEvent; const weexGlobalEvent = weex.requireModule('globalEvent'); - const emit = UniServiceJSBridge.emit; + const { emit, publishHandler } = UniServiceJSBridge; if (weex.config.preload) { plus.key.addEventListener(EVENT_BACKBUTTON, backbuttonListener); } @@ -19815,6 +19816,7 @@ function initGlobalEvent() { theme: event.uistyle, }; emit(ON_THEME_CHANGE, args); + publishHandler(ON_THEME_CHANGE, args, getCurrentPageId()); changePagesNavigatorStyle(); }); let keyboardHeightChange = 0; diff --git a/packages/uni-components/dist/components.js b/packages/uni-components/dist/components.js index ae17f3a67c7..1526299a444 100644 --- a/packages/uni-components/dist/components.js +++ b/packages/uni-components/dist/components.js @@ -171,7 +171,14 @@ function PolySymbol(name) { return Symbol(process.env.NODE_ENV !== "production" ? "[uni-app]: " + name : name); } function useCurrentPageId() { - return getCurrentInstance().root.proxy.$page.id; + let pageId; + try { + pageId = getCurrentInstance().root.proxy.$page.id; + } catch { + const webviewId = plus.webview.currentWebview().id; + pageId = isNaN(Number(webviewId)) ? webviewId : Number(webviewId); + } + return pageId; } let plus_; let weex_; @@ -244,6 +251,7 @@ function showPage({ onMessage, onClose }) { + let darkmode = __uniConfig.darkmode; plus_ = context.plus || plus; weex_ = context.weex || (typeof weex === "object" ? weex : null); BroadcastChannel_ = context.BroadcastChannel || (typeof BroadcastChannel === "object" ? BroadcastChannel : null); @@ -275,7 +283,7 @@ function showPage({ extras: { from: getPageId(), runtime: getRuntime(), - data, + data: extend({}, data, { darkmode }), useGlobalEvent: !BroadcastChannel_ } });
a5262a8a58c4c89f8953510e4f6dc50f9828eb8f
2024-08-14 08:30:58
fxy060608
chore: update tests
false
update tests
chore
diff --git a/packages/uni-uts-v1/__tests__/tsc/uni-app-x/uts/__snapshots__/android.spec.ts.snap b/packages/uni-uts-v1/__tests__/tsc/uni-app-x/uts/__snapshots__/android.spec.ts.snap new file mode 100644 index 00000000000..55f627a5736 --- /dev/null +++ b/packages/uni-uts-v1/__tests__/tsc/uni-app-x/uts/__snapshots__/android.spec.ts.snap @@ -0,0 +1,12 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`android uts 1`] = ` +"function getStorageSync(_key: string): any | null { + return null; +} +export function main() { + const res = getStorageSync('key'); + // console.log(res instanceof UTSJSONObject) +} +" +`; diff --git a/packages/uni-uts-v1/__tests__/tsc/uni-app-x/uts/src/index.ts b/packages/uni-uts-v1/__tests__/tsc/uni-app-x/uts/src/index.ts index 3463b22bae2..a152727ffed 100644 --- a/packages/uni-uts-v1/__tests__/tsc/uni-app-x/uts/src/index.ts +++ b/packages/uni-uts-v1/__tests__/tsc/uni-app-x/uts/src/index.ts @@ -1,7 +1,7 @@ function getStorageSync(_key: string): any | null { return null } - export function main() { const res = getStorageSync('key') + // console.log(res instanceof UTSJSONObject) }
701c70a1000da056a619ea3d7f97676cb87fba50
2024-10-17 17:29:30
王亚琪
feat: 独立包拷贝modules.json5文件
false
独立包拷贝modules.json5文件
feat
diff --git a/packages/uni-app-harmony/src/compiler/constants.ts b/packages/uni-app-harmony/src/compiler/constants.ts index 8b7599b7cbc..f558dd02deb 100644 --- a/packages/uni-app-harmony/src/compiler/constants.ts +++ b/packages/uni-app-harmony/src/compiler/constants.ts @@ -31,4 +31,12 @@ export const StandaloneExtApi: IStandaloneExtApi[] = [ name: 'uni-push', type: 'extapi', }, + { + name: 'uni-clipboard', + type: 'extapi', + }, + { + name: 'uni-addPhoneContact', + type: 'extapi', + }, ] diff --git a/packages/uni-uts-v1/src/arkts.ts b/packages/uni-uts-v1/src/arkts.ts index 54bb28af5bc..69751feb3f0 100644 --- a/packages/uni-uts-v1/src/arkts.ts +++ b/packages/uni-uts-v1/src/arkts.ts @@ -231,21 +231,32 @@ export async function compileArkTSExtApi( } // TODO 以下文件用户可定制 - // src/main/module.json5 - fs.outputJSONSync( - path.resolve(outputUniModuleDir, 'src/main/module.json5'), - { - module: { - name: harmonyModuleName, - type: 'har', - deviceTypes: ['default', 'tablet', '2in1'], - }, - }, - { - spaces: 2, - } + const moduleJson5Path = path.resolve( + pluginDir, + 'utssdk/app-harmony/module.json5' ) + if (fs.existsSync(moduleJson5Path)) { + // copy module.json5 + fs.copySync( + moduleJson5Path, + path.resolve(outputUniModuleDir, 'src/main/module.json5') + ) + } else { + fs.outputJSONSync( + path.resolve(outputUniModuleDir, 'src/main/module.json5'), + { + module: { + name: harmonyModuleName, + type: 'har', + deviceTypes: ['default', 'tablet', '2in1'], + }, + }, + { + spaces: 2, + } + ) + } // build-profile.json5 fs.outputJSONSync(
cd336b0894df4394aab43dc9cdbb6d0f43887b93
2023-06-13 15:45:17
DCloud_LXH
fix: i18n Douyin
false
i18n Douyin
fix
diff --git a/packages/uni-cli-shared/src/messages/en.ts b/packages/uni-cli-shared/src/messages/en.ts index a70b1bdbbf7..bbb5ed90724 100644 --- a/packages/uni-cli-shared/src/messages/en.ts +++ b/packages/uni-cli-shared/src/messages/en.ts @@ -41,7 +41,7 @@ export default { 'prompt.run.devtools.mp--kuaishou': 'Kuaishou Mini Program Devtools', 'prompt.run.devtools.mp-lark': 'Lark Mini Program Devtools', 'prompt.run.devtools.mp-qq': 'QQ Mini Program Devtools', - 'prompt.run.devtools.mp-toutiao': 'ByteDance Mini Program Devtools', + 'prompt.run.devtools.mp-toutiao': 'Douyin Mini Program Devtools', 'prompt.run.devtools.mp-weixin': 'Weixin Mini Program Devtools', 'prompt.run.devtools.mp-jd': 'Jingdong Mini Program Devtools', 'prompt.run.devtools.mp-xhs': 'Xiaohongshu Mini Program Devtools', diff --git a/packages/uni-cli-shared/src/messages/zh_CN.ts b/packages/uni-cli-shared/src/messages/zh_CN.ts index ee949a01ef6..3102d22b10b 100644 --- a/packages/uni-cli-shared/src/messages/zh_CN.ts +++ b/packages/uni-cli-shared/src/messages/zh_CN.ts @@ -41,7 +41,7 @@ export default { 'prompt.run.devtools.mp--kuaishou': '快手开发者工具', 'prompt.run.devtools.mp-lark': '飞书开发者工具', 'prompt.run.devtools.mp-qq': 'QQ小程序开发者工具', - 'prompt.run.devtools.mp-toutiao': '字节跳动开发者工具', + 'prompt.run.devtools.mp-toutiao': '抖音开发者工具', 'prompt.run.devtools.mp-weixin': '微信开发者工具', 'prompt.run.devtools.mp-jd': '京东开发者工具', 'prompt.run.devtools.mp-xhs': '小红书开发者工具',
e6e37bebda7fce00f9aa2c7791cbb2369773dff6
2021-05-25 12:01:46
fxy060608
chore: update yarn.lock
false
update yarn.lock
chore
diff --git a/packages/playground/ssr/yarn.lock b/packages/playground/ssr/yarn.lock index 210144b84b8..ecbcfb88ac9 100644 --- a/packages/playground/ssr/yarn.lock +++ b/packages/playground/ssr/yarn.lock @@ -65,10 +65,10 @@ lodash.once "^4.1.1" "@dcloudio/uni-app@../../uni-app": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" "@dcloudio/uni-cli-shared@../../uni-cli-shared": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" dependencies: debug "^4.3.1" jsonc-parser "^3.0.0" @@ -77,16 +77,16 @@ xregexp "3.1.0" "@dcloudio/uni-cloud@../../uni-cloud": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" "@dcloudio/uni-components@../../uni-components": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" "@dcloudio/uni-h5-vue@../../uni-h5-vue": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" "@dcloudio/uni-h5@../../uni-h5": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" dependencies: localstorage-polyfill "^1.0.1" pako "^2.0.3" @@ -94,13 +94,13 @@ xmlhttprequest "^1.8.0" "@dcloudio/uni-i18n@../../uni-i18n": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" "@dcloudio/uni-shared@../../uni-shared": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" "@dcloudio/vite-plugin-uni@../../vite-plugin-uni": - version "3.0.0-alpha-3000020210521005" + version "3.0.0-alpha-3000020210524001" dependencies: "@rollup/pluginutils" "^4.1.0" autoprefixer "^10.2.5" @@ -174,14 +174,14 @@ integrity sha512-1z8k4wzFnNjVK/tlxvrWuK5WMt6mydWWP7+zvH5eFep4oj+UkrfiJTRtjCeBXNpwaA/FYqqtb4/QS4ianFpIRA== "@types/node@*": - version "15.6.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-15.6.0.tgz#f0ddca5a61e52627c9dcb771a6039d44694597bc" - integrity sha512-gCYSfQpy+LYhOFTKAeE8BkyGqaxmlFxe+n4DKM6DR0wzw/HISUE/hAmkC/KT8Sw5PCJblqg062b3z9gucv3k0A== + version "15.6.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-15.6.1.tgz#32d43390d5c62c5b6ec486a9bc9c59544de39a08" + integrity sha512-7EIraBEyRHEe7CH+Fm1XvgqU6uwZN8Q7jppJGcqjROMT29qhAuuOxYB1uEY5UMYQKEmA5D+5tBnhdaPXSsLONA== "@types/node@^14.14.31": - version "14.17.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.0.tgz#3ba770047723b3eeb8dc9fca02cce8a7fb6378da" - integrity sha512-w8VZUN/f7SSbvVReb9SWp6cJFevxb4/nkG65yLAya//98WgocKm5PLDAtSs5CtJJJM+kHmJjO/6mmYW4MHShZA== + version "14.17.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.1.tgz#5e07e0cb2ff793aa7a1b41deae76221e6166049f" + integrity sha512-/tpUyFD7meeooTRwl3sYlihx2BrJE7q9XF71EguPFIySj9B7qgnRtHsHTho+0AUm4m1SvWGm6uSncrR94q6Vtw== "@types/sinonjs__fake-timers@^6.0.2": version "6.0.2" @@ -193,41 +193,48 @@ resolved "https://registry.yarnpkg.com/@types/sizzle/-/sizzle-2.3.3.tgz#ff5e2f1902969d305225a047c8a0fd5c915cebef" integrity sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ== +"@types/yauzl@^2.9.1": + version "2.9.1" + resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.9.1.tgz#d10f69f9f522eef3cf98e30afb684a1e1ec923af" + integrity sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0rOrcd9EjA== + dependencies: + "@types/node" "*" + "@vitejs/plugin-vue@^1.2.2": version "1.2.2" resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.2.2.tgz#b0038fc11b9099f4cd01fcbf0ee419adda417b52" integrity sha512-5BI2WFfs/Z0pAV4S/IQf1oH3bmFYlL5ATMBHgTt1Lf7hAnfpNd5oUAAs6hZPfk3QhvyUQgtk0rJBlabwNFcBJQ== -"@vue/[email protected]": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.1.0-beta.3.tgz#87fdac4c56f2a9a4182d930c70fc77f1efd8db45" - integrity sha512-4oviMm56Bk/PWDDqOx0DM5RsYMkMGmP54iK9cC8tG4vUTU2YagR4Suh7TJhidy1+SlBVGgujPwiOHtR8ehN1yQ== +"@vue/[email protected]": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.1.0-beta.4.tgz#ed8b7dd3d2a42688283875de13c500099fe5d612" + integrity sha512-ukGe7aVKkzD3lDAGeiCPJutY0+FH0JEVglVRY9pm3oAYkX3gdOfrfUCZKx2Vm0IGHci7oyfnIigT3yVTEvcBRg== dependencies: "@babel/parser" "^7.12.0" "@babel/types" "^7.12.0" - "@vue/shared" "3.1.0-beta.3" + "@vue/shared" "3.1.0-beta.4" estree-walker "^2.0.1" source-map "^0.6.1" -"@vue/[email protected]": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.1.0-beta.3.tgz#2f17427de9c51046ff6d186f5a8100813084e9c1" - integrity sha512-eN5fg6WLKauhX/vo7iiTsS7ITUXjkYRWl+KNRz94QeqmDkXKeK0f322u867tUtPZedO0bXnMt35VaBV6swJUEA== +"@vue/[email protected]": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.1.0-beta.4.tgz#2d56d21bf39bc8e57278ecc3abb4c36f971c94d1" + integrity sha512-D6s1WkunFOANb8gu3F9MhTsF0R0PwxrQAgswY9v0yTKur44vyv0mwaEgQCw0FIwnPNmL15wh5ahtItDvmfkbzQ== dependencies: - "@vue/compiler-core" "3.1.0-beta.3" - "@vue/shared" "3.1.0-beta.3" + "@vue/compiler-core" "3.1.0-beta.4" + "@vue/shared" "3.1.0-beta.4" -"@vue/compiler-sfc@^3.1.0-beta.3": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.1.0-beta.3.tgz#67da747d4aa5025c9b2b48222ac76713e95ce887" - integrity sha512-rEGYgsjC+iLzkgV1FQnhPERzYjSkmdkv9/nySdUHtKPwN/rex9Z/Yq1d8MmMJ627UyoGusg/A2VRtcN4eUfE6w== +"@vue/compiler-sfc@^3.1.0-beta.4": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.1.0-beta.4.tgz#fb4e1b3cee19a34428c9e52c64df3b81ffda6687" + integrity sha512-G89oMfxPN33d2g1LXxpLIWi7e3wLCh0/w3dV1HWswq3+5YWCW4ITVc/nArPKKT+B9h0CTJ8WSRkBDsbe4AHDTQ== dependencies: "@babel/parser" "^7.13.9" "@babel/types" "^7.13.0" - "@vue/compiler-core" "3.1.0-beta.3" - "@vue/compiler-dom" "3.1.0-beta.3" - "@vue/compiler-ssr" "3.1.0-beta.3" - "@vue/shared" "3.1.0-beta.3" + "@vue/compiler-core" "3.1.0-beta.4" + "@vue/compiler-dom" "3.1.0-beta.4" + "@vue/compiler-ssr" "3.1.0-beta.4" + "@vue/shared" "3.1.0-beta.4" consolidate "^0.16.0" estree-walker "^2.0.1" hash-sum "^2.0.0" @@ -239,50 +246,50 @@ postcss-selector-parser "^6.0.4" source-map "^0.6.1" -"@vue/[email protected]": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.1.0-beta.3.tgz#7d8a061546f9a4cd48c21f3f8b14da2817e3379e" - integrity sha512-hoKitlYjftlEQfq2l+GglkdTrtpO4xL+mZqGqnjHiyrDNtfr/iiklHn4ISbFc8oLsJMNDF3rGH0fxxGQQaB7RQ== +"@vue/[email protected]": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.1.0-beta.4.tgz#9d49a8c7bd047ac446db899b80b3345c5f1e154d" + integrity sha512-yvE0tee9AjElRKOLS2U4wmYHoxYRfsI+XK/QPEv1gg56M7+CGCK2+Bjwt4nNsCy4Wd0QuD75frCVLIaeOzzn9w== dependencies: - "@vue/compiler-dom" "3.1.0-beta.3" - "@vue/shared" "3.1.0-beta.3" + "@vue/compiler-dom" "3.1.0-beta.4" + "@vue/shared" "3.1.0-beta.4" -"@vue/[email protected]": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.1.0-beta.3.tgz#94328652d2f76c691332806b9ff205847c7f956b" - integrity sha512-zA5m8IajiNbIrDiha8HaEzxqTcT0ZmcQkUoAwPK7exq70Z+AD4eemIWnXFiAaf+Mi8pePQ0dk0sITcWgXGo/pQ== +"@vue/[email protected]": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.1.0-beta.4.tgz#7ef9eb60a05da9662fbdb004ed47c8aaf657e8d3" + integrity sha512-TfvJ897j4KfTX4g0nKntYTPTijD2eJqVbWIQIQCV6xqTAhqTl+4tsu6RRzPA7Ynh8mv9td7OJoaQYZ3zxM4siA== dependencies: - "@vue/shared" "3.1.0-beta.3" + "@vue/shared" "3.1.0-beta.4" -"@vue/[email protected]": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.1.0-beta.3.tgz#1c360e12c0f8016c227a9df46d5b13158cdbdc14" - integrity sha512-/GzufgW/y3O2ZHtvKoBqWCLXj13u5qGBFN4cPY2mbazHxyVCqX+FplVj/PI2wo02txzoJtH3/BXbC151fCx/Gg== +"@vue/[email protected]": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.1.0-beta.4.tgz#3c41b38d8518a6778d93541c3760d4264c971fca" + integrity sha512-hsB+s5/JyFxYB56MHHq/XowB8jj8n5cYB9wqon2cMylC/HSxgvSMdehNbky6X5s8vAQ8HYCSjqzn94MlOP5USA== dependencies: - "@vue/reactivity" "3.1.0-beta.3" - "@vue/shared" "3.1.0-beta.3" + "@vue/reactivity" "3.1.0-beta.4" + "@vue/shared" "3.1.0-beta.4" -"@vue/[email protected]": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.1.0-beta.3.tgz#83bca683010df26eac2b2b3544d0e52134b3ee41" - integrity sha512-s5W/6G8VQNEoTTLSb7cZ0uTWum8K5Sx5AFc0tRvUi2VyXJbgHUB/pN6SNvi3qsTbgSrYPG7kKWnhoxCZCBUwrA== +"@vue/[email protected]": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.1.0-beta.4.tgz#72f63309defa7b7b19af5c2118c8e9fdf4b44adb" + integrity sha512-jg7Bn6aLoUZ5ACobEQYZovexgXKKhh95vudsyTSIZoq5m/tKRTCQg/UbzkWlE1P9UrRigQsF2sbhoxa0COktSg== dependencies: - "@vue/runtime-core" "3.1.0-beta.3" - "@vue/shared" "3.1.0-beta.3" + "@vue/runtime-core" "3.1.0-beta.4" + "@vue/shared" "3.1.0-beta.4" csstype "^2.6.8" -"@vue/server-renderer@^3.1.0-beta.3": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.1.0-beta.3.tgz#d30d467965165c6e68dd76044d3315f55d61fc0d" - integrity sha512-WQFnWOLHN6NUi8T8yZRaPcR3Q0yHtGiQp0/igTQB9PG/0xtQkhOhtwOw5o7fHu3Wm6E3XSQ+4uEsIZhriq9znw== +"@vue/server-renderer@^3.1.0-beta.4": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.1.0-beta.4.tgz#5d3580137a1a7af0aa0922e90c27aa5eb0ad64e6" + integrity sha512-I2vFQ05u+TByV0XSEm/dyZQxuiA02lc+r2tGl6iWNiJY946xfLr7av5xGsivvFkqZ4vtQQtOLY77WVPfSmAFlg== dependencies: - "@vue/compiler-ssr" "3.1.0-beta.3" - "@vue/shared" "3.1.0-beta.3" + "@vue/compiler-ssr" "3.1.0-beta.4" + "@vue/shared" "3.1.0-beta.4" -"@vue/[email protected]", "@vue/shared@^3.1.0-beta.3": - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.1.0-beta.3.tgz#649a15552a8160d0f51ef7a23f442537e8b805f0" - integrity sha512-zYrNcrpA2Ini2o3XoS6M9w82lyjRudvB8CmCEZ8/orLWXmDOtvQVT+5wRGSOQmWyFGa3ljwxsbhU0bY1PsFvJQ== +"@vue/[email protected]", "@vue/shared@^3.1.0-beta.4": + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.1.0-beta.4.tgz#eb7038506cfc0a0a89fa2a46b40186df17adf58c" + integrity sha512-W2vWLh8XEK1xOkzBQdqDNng324hbWe3LEebHaHBM2o3vIPp5zCO/P8LCfTGpLaFU2ISy2NhAUk44VZBswFAKEQ== accepts@~1.3.5, accepts@~1.3.7: version "1.3.7" @@ -484,11 +491,6 @@ buffer-crc32@~0.2.3: resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" integrity sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI= -buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== - [email protected]: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" @@ -670,16 +672,6 @@ [email protected]: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -concat-stream@^1.6.2: - version "1.6.2" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" - integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== - dependencies: - buffer-from "^1.0.0" - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - consolidate@^0.16.0: version "0.16.0" resolved "https://registry.yarnpkg.com/consolidate/-/consolidate-0.16.0.tgz#a11864768930f2f19431660a65906668f5fbdc16" @@ -709,7 +701,7 @@ [email protected]: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== [email protected], core-util-is@~1.0.0: [email protected]: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= @@ -734,9 +726,9 @@ csstype@^2.6.8: integrity sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A== cypress@^7.3.0: - version "7.3.0" - resolved "https://registry.yarnpkg.com/cypress/-/cypress-7.3.0.tgz#17345b8d18681c120f033e7d8fd0f0271e9d0d51" - integrity sha512-aseRCH1tRVCrM6oEfja6fR/bo5l6e4SkHRRSATh27UeN4f/ANC8U7tGIulmrISJVy9xuOkOdbYKbUb2MNM+nrw== + version "7.4.0" + resolved "https://registry.yarnpkg.com/cypress/-/cypress-7.4.0.tgz#679bfe75335b9a4873d44f0d989e9f0367f00665" + integrity sha512-+CmSoT5DS88e92YDfc6aDA3Zf3uCBRKVB92caWsjXMilz0tf6NpByFvIbLLVWXiYOwrhtWV0m/k93+rzodYwRQ== dependencies: "@cypress/listr-verbose-renderer" "^0.4.1" "@cypress/request" "^2.88.5" @@ -758,7 +750,7 @@ cypress@^7.3.0: eventemitter2 "^6.4.3" execa "4.1.0" executable "^4.1.1" - extract-zip "^1.7.0" + extract-zip "2.0.1" fs-extra "^9.1.0" getos "^3.2.1" is-ci "^3.0.0" @@ -795,7 +787,7 @@ dayjs@^1.10.4: resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.10.4.tgz#8e544a9b8683f61783f570980a8a80eaf54ab1e2" integrity sha512-RI/Hh4kqRc1UKLOAf/T5zdMMX5DQIlDxwUe3wSyMMnEbGunnpENCdbUgM+dW7kXidZqCttBrmw7BhN4TMddkCw== [email protected], debug@^2.6.9: [email protected]: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== @@ -816,7 +808,7 @@ debug@^3.1.0: dependencies: ms "^2.1.1" -debug@^4.3.1: +debug@^4.1.1, debug@^4.3.1: version "4.3.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== @@ -859,9 +851,9 @@ [email protected]: integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= electron-to-chromium@^1.3.723: - version "1.3.735" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.735.tgz#fa1a8660f2790662291cb2136f0e446a444cdfdc" - integrity sha512-cp7MWzC3NseUJV2FJFgaiesdrS+A8ZUjX5fLAxdRlcaPDkaPGFplX930S5vf84yqDp4LjuLdKouWuVOTwUfqHQ== + version "1.3.737" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.737.tgz#196f2e9656f4f3c31930750e1899c091b72d36b5" + integrity sha512-P/B84AgUSQXaum7a8m11HUsYL8tj9h/Pt5f7Hg7Ty6bm5DxlFq+e5+ouHUoNQMsKDJ7u4yGfI8mOErCmSH9wyg== elegant-spinner@^1.0.1: version "1.0.1" @@ -993,15 +985,16 @@ extend@~3.0.2: resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== -extract-zip@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.7.0.tgz#556cc3ae9df7f452c493a0cfb51cc30277940927" - integrity sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA== [email protected]: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-2.0.1.tgz#663dca56fe46df890d5f131ef4a06d22bb8ba13a" + integrity sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg== dependencies: - concat-stream "^1.6.2" - debug "^2.6.9" - mkdirp "^0.5.4" + debug "^4.1.1" + get-stream "^5.1.0" yauzl "^2.10.0" + optionalDependencies: + "@types/yauzl" "^2.9.1" [email protected]: version "1.3.0" @@ -1104,9 +1097,9 @@ forwarded@~0.1.2: integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= fraction.js@^4.0.13: - version "4.1.0" - resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.1.0.tgz#229ec1cedc8c3c7e5d2d20688ba64f0a43af5830" - integrity sha512-o9lSKpK0TDqDwTL24Hxqi6I99s942l6TYkfl6WvGWgLOIFz/YonSGKfiSeMadoiNvTfqnfOa9mjb5SGVbBK9/w== + version "4.1.1" + resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.1.1.tgz#ac4e520473dae67012d618aab91eda09bcb400ff" + integrity sha512-MHOhvvxHTfRFpF1geTK9czMIZ6xclsEor2wkIGYYq+PxcQqT7vStJqjhe6S1TenZrMZzo+wlqOufBDVepUEgPg== [email protected]: version "0.5.2" @@ -1154,7 +1147,7 @@ generic-names@^2.0.1: dependencies: loader-utils "^1.1.0" -get-stream@^5.0.0: +get-stream@^5.0.0, get-stream@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== @@ -1333,7 +1326,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, [email protected], inherits@^2.0.3, inherits@~2.0.3: +inherits@2, [email protected]: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -1451,11 +1444,6 @@ is-unicode-supported@^0.1.0: resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -1724,13 +1712,6 @@ minimist@^1.2.0, minimist@^1.2.5: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== -mkdirp@^0.5.4: - version "0.5.5" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== - dependencies: - minimist "^1.2.5" - module-alias@^2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/module-alias/-/module-alias-2.2.2.tgz#151cdcecc24e25739ff0aa6e51e1c5716974c0e0" @@ -1970,11 +1951,6 @@ pretty-bytes@^5.6.0: resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb" integrity sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg== -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - proxy-addr@~2.0.5: version "2.0.6" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.6.tgz#fdc2336505447d3f2f2c638ed272caf614bbb2bf" @@ -2046,19 +2022,6 @@ [email protected]: iconv-lite "0.4.24" unpipe "1.0.0" -readable-stream@^2.2.2: - version "2.3.7" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" - integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - request-progress@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-3.0.0.tgz#4ca754081c7fec63f505e4faa825aa06cd669dbe" @@ -2114,9 +2077,9 @@ rollup-plugin-copy@^3.4.0: is-plain-object "^3.0.0" rollup@^2.38.5: - version "2.48.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.48.0.tgz#fceb01ed771f991f29f7bd2ff7838146e55acb74" - integrity sha512-wl9ZSSSsi5579oscSDYSzGn092tCS076YB+TQrzsGuSfYyJeep8eEWj0eaRjuC5McuMNmcnR8icBqiE/FWNB1A== + version "2.49.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.49.0.tgz#f0e5bb2b770ddf1be8cc30d4cce3457574c8c871" + integrity sha512-UnrCjMXICx9q0jF8L7OYs7LPk95dW0U5UYp/VANnWqfuhyr66FWi/YVlI34Oy8Tp4ZGLcaUDt4APJm80b9oPWQ== optionalDependencies: fsevents "~2.3.1" @@ -2139,7 +2102,7 @@ safe-area-insets@^1.4.1: resolved "https://registry.yarnpkg.com/safe-area-insets/-/safe-area-insets-1.4.1.tgz#89309e01a516dcd7d2fe012a9c4115182957bd8b" integrity sha512-r/nRWTjFGhhm3w1Z6Kd/jY11srN+lHt2mNl1E/emQGW8ic7n3Avu4noibklfSM+Y34peNphHD/BSZecav0sXYQ== [email protected], safe-buffer@~5.1.0, safe-buffer@~5.1.1: [email protected]: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== @@ -2281,13 +2244,6 @@ string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.0" -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - strip-ansi@^3.0.0, strip-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" @@ -2412,11 +2368,6 @@ type-is@~1.6.17, type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" - integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= - universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" @@ -2452,7 +2403,7 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" -util-deprecate@^1.0.2, util-deprecate@~1.0.1: +util-deprecate@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= @@ -2493,14 +2444,14 @@ vite@^2.3.3: optionalDependencies: fsevents "~2.3.1" -vue@^3.1.0-beta.3: - version "3.1.0-beta.3" - resolved "https://registry.yarnpkg.com/vue/-/vue-3.1.0-beta.3.tgz#ed7d944b3d276cbdcda8993f73833a05a182bd13" - integrity sha512-Um1HjcgTBs65/imtgxKJEfFV00UaAAxbTTpuWlTfHeKd2wSyvoMMvQdiwL+GuEeKzgG0pZomZ8z2otekcLkmCA== +vue@^3.1.0-beta.4: + version "3.1.0-beta.4" + resolved "https://registry.yarnpkg.com/vue/-/vue-3.1.0-beta.4.tgz#c17c14f60a9267c5f33d9fa4dbc9bc54605d5ae2" + integrity sha512-HzJnk1iaWGcExAaAIO2yVMMhxHX6wSLcKF3/PwF2NZMlMpUf7ZQSFHVfzIyJqaQ96K1KJOlDPbpqKYLpRq947w== dependencies: - "@vue/compiler-dom" "3.1.0-beta.3" - "@vue/runtime-dom" "3.1.0-beta.3" - "@vue/shared" "3.1.0-beta.3" + "@vue/compiler-dom" "3.1.0-beta.4" + "@vue/runtime-dom" "3.1.0-beta.4" + "@vue/shared" "3.1.0-beta.4" which@^2.0.1: version "2.0.2"
23184e6c4b407bb84fe6c5d94580af516514bf6e
2022-06-22 12:00:34
fxy060608
chore: build
false
build
chore
diff --git a/packages/uni-app-plus/dist/uni.runtime.esm.js b/packages/uni-app-plus/dist/uni.runtime.esm.js index 49e348f5db3..401bfbcc9c7 100644 --- a/packages/uni-app-plus/dist/uni.runtime.esm.js +++ b/packages/uni-app-plus/dist/uni.runtime.esm.js @@ -16496,7 +16496,10 @@ const getProvider = defineAsyncApi(API_GET_PROVIDER, ({ service }, { resolve, re if (Object.hasOwnProperty.call(provider, key)) { const item = provider[key]; if (!isFunction(item) && typeof item !== 'undefined') { - returnProvider[key] = item; + const _key = key === 'nativeClient' || key === 'serviceReady' + ? 'isAppExist' + : key; + returnProvider[_key] = item; } } }
a29a75dc942b3ad18a60f5ab0c1f57e769e98533
2024-05-17 14:02:54
jixinbao
feat(mp-alipay): 支付宝小程序支持用户传递 options
false
支付宝小程序支持用户传递 options
feat
diff --git a/packages/uni-mp-alipay/src/runtime/createComponent.ts b/packages/uni-mp-alipay/src/runtime/createComponent.ts index 96f38e69d4f..159436273c0 100644 --- a/packages/uni-mp-alipay/src/runtime/createComponent.ts +++ b/packages/uni-mp-alipay/src/runtime/createComponent.ts @@ -85,7 +85,9 @@ function initVm( export function initCreateComponent() { return function createComponent(vueOptions: ComponentOptions) { vueOptions = vueOptions.default || vueOptions - const mpComponentOptions: tinyapp.ComponentOptions = { + const mpComponentOptions: tinyapp.ComponentOptions & { + options: any + } = { props: initComponentProps(vueOptions.props), didMount() { const createComponent = (parent?: ComponentPublicInstance) => { @@ -115,6 +117,7 @@ export function initCreateComponent() { __l: handleLink, triggerEvent, }, + options: vueOptions.options || {}, } if (__VUE_OPTIONS_API__) { mpComponentOptions.data = initData(vueOptions)
c8a5865a64c1b8da90ba3b7f2295124c0ccc133c
2025-03-17 19:12:04
jixinbao
feat(mp-harmony): 移除 mp-harmony submodule
false
移除 mp-harmony submodule
feat
diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index d25d24af1a1..00000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "packages/uni-mp-harmony"] - path = packages/uni-mp-harmony - url = http://git.dcloud.io/uni-app-next/uni-mp-harmony.git diff --git a/packages/uni-mp-harmony b/packages/uni-mp-harmony deleted file mode 160000 index 1d70b52d6d0..00000000000 --- a/packages/uni-mp-harmony +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1d70b52d6d0bc79dffb613d0eb3e1d3b921bb27a
43a38070e3205f6a68d10f15348e6a206bf4abdc
2023-05-04 08:27:34
yurj26
feat(uts): transformText
false
transformText
feat
diff --git a/packages/uni-app-uts/__tests__/transforms/transformText.spec.ts b/packages/uni-app-uts/__tests__/transforms/transformText.spec.ts new file mode 100644 index 00000000000..35318b4cb5a --- /dev/null +++ b/packages/uni-app-uts/__tests__/transforms/transformText.spec.ts @@ -0,0 +1,30 @@ +import { assert } from '../testUtils' + +describe('compiler: transform text', () => { + test('transform text', () => { + assert( + `<view>hello</view>`, + `createElementVNode("view", null, [ + createElementVNode("text", null, "hello") +])` + ) + assert( + `<view><text>hello</text></view>`, + `createElementVNode("view", null, [ + createElementVNode("text", null, "hello") +])` + ) + assert( + `<view>hello{{a}}<view>aaa{{a}}</view>{{b}}</view>`, + `createElementVNode("view", null, [ + createElementVNode("text", null, "hello"), + createElementVNode("text", null, toDisplayString(_ctx.a), 1 /* TEXT */), + createElementVNode("view", null, [ + createElementVNode("text", null, "aaa"), + createElementVNode("text", null, toDisplayString(_ctx.a), 1 /* TEXT */) + ]), + createElementVNode("text", null, toDisplayString(_ctx.b), 1 /* TEXT */) +])` + ) + }) +}) diff --git a/packages/uni-app-uts/src/plugins/uvue/compiler/index.ts b/packages/uni-app-uts/src/plugins/uvue/compiler/index.ts index 39d281336d4..d987d9bc401 100644 --- a/packages/uni-app-uts/src/plugins/uvue/compiler/index.ts +++ b/packages/uni-app-uts/src/plugins/uvue/compiler/index.ts @@ -18,6 +18,7 @@ import { transformIf } from './transforms/vIf' import { transformFor } from './transforms/vFor' import { transformModel } from './transforms/vModel' import { transformShow } from './transforms/vShow' +import { transformText } from './transforms/transformText' export type TransformPreset = [ NodeTransform[], @@ -36,6 +37,7 @@ export function getBaseTransformPreset( transformExpression, transformElement, trackSlotScopes, + transformText, ] as any, { on: transformOn, diff --git a/packages/uni-app-uts/src/plugins/uvue/compiler/transforms/transformText.ts b/packages/uni-app-uts/src/plugins/uvue/compiler/transforms/transformText.ts new file mode 100644 index 00000000000..c89f8990ad5 --- /dev/null +++ b/packages/uni-app-uts/src/plugins/uvue/compiler/transforms/transformText.ts @@ -0,0 +1,107 @@ +import { isElementNode } from '@dcloudio/uni-cli-shared' +import { + CompoundExpressionNode, + ElementNode, + ElementTypes, + InterpolationNode, + NodeTransform, + NodeTypes, + TemplateChildNode, + TextCallNode, + TextNode, +} from '@vue/compiler-core' + +function isTextNode({ tag }: ElementNode) { + return tag === 'text' || tag === 'u-text' || tag === 'button' +} + +function isTextElement(node: TemplateChildNode) { + return node.type === NodeTypes.ELEMENT && node.tag === 'text' +} + +function isText( + node: TemplateChildNode +): node is + | TextNode + | TextCallNode + | InterpolationNode + | CompoundExpressionNode { + const { type } = node + return ( + type === NodeTypes.TEXT || + type === NodeTypes.TEXT_CALL || + type === NodeTypes.INTERPOLATION || + type === NodeTypes.COMPOUND_EXPRESSION + ) +} + +export const transformText: NodeTransform = (node, _) => { + if (!isElementNode(node)) { + return + } + if (isTextNode(node)) { + return + } + const { children } = node + if (!children.length) { + return + } + children.forEach((child, index) => { + if (isTextElement(child)) { + parseText(child as ElementNode) + } + + if (isText(child)) { + children.splice(index, 1, createText(node, child)) + } + }) +} + +/* + 1. 转换 \\n 为 \n + 2. u-text 下只能有一个文本节点(不支持 children),需要移除子组件并合并文本 +*/ +function parseText(node: ElementNode) { + if (node.children.length) { + let firstTextChild + for (let i = 0; i < node.children.length; i++) { + const child = node.children[i] + if (isText(child) && typeof (child as TextNode).content === 'string') { + if (!firstTextChild) { + firstTextChild = child + ;(firstTextChild as TextNode).content = ( + firstTextChild as TextNode + ).content.replace(/\\n/g, '\n') + } else { + ;(firstTextChild as TextNode).content += ( + child as TextNode + ).content.replace(/\\n/g, '\n') + node.children.splice(i, 1) + i-- + } + } else if (child.type === 1 || child.type === 3) { + node.children.splice(i, 1) + i-- + } else { + firstTextChild = null + } + } + } +} + +function createText( + parent: ElementNode, + node: TextNode | TextCallNode | InterpolationNode | CompoundExpressionNode +): ElementNode { + return { + tag: 'text', + type: NodeTypes.ELEMENT, + tagType: ElementTypes.ELEMENT, + props: [], + isSelfClosing: false, + children: [node], + codegenNode: undefined, + ns: parent.ns, + loc: node.loc, + } +}
a1cab18c711056241071172b0bcdb4a6f4f91c7b
2024-08-29 18:00:23
fxy060608
fix(x-android): 修复 默认导入包名
false
修复 默认导入包名
fix
diff --git a/packages/uni-uts-v1/src/kotlin.ts b/packages/uni-uts-v1/src/kotlin.ts index 6be6b8080cb..9a7bedf6927 100644 --- a/packages/uni-uts-v1/src/kotlin.ts +++ b/packages/uni-uts-v1/src/kotlin.ts @@ -567,13 +567,14 @@ const DEFAULT_IMPORTS = [ 'io.dcloud.uniapp.*', ] -const DEFAULT_IMPORTS_X = [ +const DEFAULT_IMPORTS_VUE_X = [ 'io.dcloud.uniapp.framework.*', 'io.dcloud.uniapp.vue.*', 'io.dcloud.uniapp.vue.shared.*', - 'io.dcloud.uniapp.runtime.*', ] +const DEFAULT_IMPORTS_X = ['io.dcloud.uniapp.runtime.*'] + function resolveBundleInputRoot(root: string) { if (process.env.UNI_APP_X_TSC === 'true') { return uvueOutDir('app-android') @@ -602,8 +603,11 @@ export async function compile( const { bundle, UTSTarget } = getUTSCompiler() // let time = Date.now() const imports = [...DEFAULT_IMPORTS] - if (isX && !process.env.UNI_UTS_DISABLE_X_IMPORT) { + if (isX) { imports.push(...DEFAULT_IMPORTS_X) + if (!process.env.UNI_UTS_DISABLE_X_IMPORT) { + imports.push(...DEFAULT_IMPORTS_VUE_X) + } } const rClass = resolveAndroidResourceClass(filename) if (rClass) {
b28a776e1905b2f38095ecb99c6deee875db22a0
2022-11-28 16:33:21
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 49288a25cfa..e86ba754e6b 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index 983ceb68482..d67bab4eac8 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index 14a81e4a4aa..dec872c81fe 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index d7abb7acd7f..8ec37f3436e 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
05fecdf168f4741c29fabdfb8af7666c5bedc9b0
2022-06-17 13:40:25
fxy060608
chore: build
false
build
chore
diff --git a/packages/uni-mp-vue/dist/vue.runtime.esm.js b/packages/uni-mp-vue/dist/vue.runtime.esm.js index f0c6b32464c..a6b8db5d126 100644 --- a/packages/uni-mp-vue/dist/vue.runtime.esm.js +++ b/packages/uni-mp-vue/dist/vue.runtime.esm.js @@ -4805,11 +4805,28 @@ function setRef$1(instance, isUnmount = false) { if (isUnmount) { return $templateRefs.forEach(templateRef => setTemplateRef(templateRef, null, setupState)); } - const doSet = () => { + const check = $mpPlatform === 'mp-baidu' || $mpPlatform === 'mp-toutiao'; + const doSetByRefs = (refs) => { const mpComponents = $scope .selectAllComponents('.r') .concat($scope.selectAllComponents('.r-i-f')); - $templateRefs.forEach(templateRef => setTemplateRef(templateRef, findComponentPublicInstance(mpComponents, templateRef.i), setupState)); + return refs.filter(templateRef => { + const refValue = findComponentPublicInstance(mpComponents, templateRef.i); + // 部分平台,在一些 if 条件下,部分 slot 组件初始化会被延迟到下一次渲染,需要二次检测 + if (check && refValue === null) { + return true; + } + setTemplateRef(templateRef, refValue, setupState); + return false; + }); + }; + const doSet = () => { + const refs = doSetByRefs($templateRefs); + if (refs.length) { + setTimeout(() => { + doSetByRefs(refs); + }, 10); + } }; if ($scope._$setRef) { $scope._$setRef(doSet);
ed74dde6250bfc06ee3a2b4c72448e9465f2a693
2024-08-21 14:02:41
jixinbao
fix(x): 多次设置 tabBarStyle 边框不变化
false
多次设置 tabBarStyle 边框不变化
fix
diff --git a/packages/uni-app-plus/src/x/framework/app/tabBar.ts b/packages/uni-app-plus/src/x/framework/app/tabBar.ts index 998580d36d8..fdbe060bcd3 100644 --- a/packages/uni-app-plus/src/x/framework/app/tabBar.ts +++ b/packages/uni-app-plus/src/x/framework/app/tabBar.ts @@ -35,21 +35,22 @@ function getBorderStyle(borderStyle: string): string { // keep borderStyle aliways black/white export function fixBorderStyle(tabBarConfig: Map<string, any>) { let borderStyle = tabBarConfig.get('borderStyle') - if (!isString(borderStyle)) { - borderStyle = 'black' + let borderColor = tabBarConfig.get('borderColor') + const isBorderStyleFilled = isString(borderStyle) + const isBorderColorFilled = isString(borderColor) + + // 如果设置 borderStyle 做格式化 + if (isBorderStyleFilled) { + borderStyle = getBorderStyle(borderStyle as string) } - let borderColor = getBorderStyle(borderStyle as string) // 同时存在 borderColor>borderStyle,前者没有颜色限制,也不做格式化 - if ( - tabBarConfig.has('borderColor') && - isString(tabBarConfig.get('borderColor')) - ) { - borderColor = tabBarConfig.get('borderColor') - tabBarConfig.delete('borderColor') + if (isBorderStyleFilled && isBorderColorFilled) { + borderStyle = borderColor } - tabBarConfig.set('borderStyle', borderColor) + tabBarConfig.set('borderStyle', borderStyle) + tabBarConfig.delete('borderColor') } function getTabList() {
6740c613e0437d3a73e550d5c60fcc93db8ac207
2024-03-11 17:35:45
zhenyuWang
chore(uts): ios 自动化测试支持 element.tap
false
ios 自动化测试支持 element.tap
chore
diff --git a/packages/uni-app-uts/lib/automator/ios/automator.js b/packages/uni-app-uts/lib/automator/ios/automator.js index 2a7544da387..add73b59523 100644 --- a/packages/uni-app-uts/lib/automator/ios/automator.js +++ b/packages/uni-app-uts/lib/automator/ios/automator.js @@ -12,4 +12,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,c=i.length;u<c;u++,o++)r[o]=i[u];return r}var n,r=Object.prototype.hasOwnProperty,o=function(e){return null==e},i=Array.isArray,u=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},c=/\B([A-Z])/g,a=u((function(e){return e.replace(c,"-$1").toLowerCase()})),s=/-(\w)/g,l=u((function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))})),f=u((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function g(e,t){if(i(e))return e;if(t&&(n=t,o=e,r.call(n,o)))return[e];var n,o,u=[];return e.replace(d,(function(e,t,n,r){return u.push(n?r.replace(/\\(\\)?/g,"$1"):t||e),r})),u}function p(e,t){var n,r=g(t,e);for(n=r.shift();!o(n);){if(null==(e=e[n]))return;n=r.shift()}return e}function v(e){return e.__wxWebviewId__?e.__wxWebviewId__:e.privateProperties?e.privateProperties.slaveId:e.$page?e.$page.id:void 0}function m(e){return e.route||e.uri}function h(e){return e.options||e.$page&&e.$page.options||{}}function _(e){return{id:v(e),path:m(e),query:h(e)}}function E(e){var t=function(e){return getCurrentPages().find((function(t){return v(t)===e}))}(e);return t&&t.$vm}function y(e,t){return function(e){if(e._$weex)return e._uid;if(e._$id)return e._$id;var t=function(e){for(var t=e.$parent;t;){if(t._$id)return t;t=t.$parent}}(e);if(!e.$parent)return"-1";var n=e.$vnode,r=n.context;return r&&r!==t&&r._$id?r._$id+";"+t._$id+","+n.data.attrs._i:t._$id+","+n.data.attrs._i}(e)===t}function w(e,t,n){var r,o,i;if(void 0===n&&(n=!1),n)if(e.component&&y(e.component,t))i=e.component;else{var u=[];e.children instanceof Array?u=e.children:(null===(o=null===(r=e.component)||void 0===r?void 0:r.subTree)||void 0===o?void 0:o.children)&&(u=e.component.subTree.children),u.find((function(e){return i=w(e,t,!0)}))}else e&&(y(e,t)?i=e:e.$children.find((function(e){return i=w(e,t)})));return i}function T(e,t){var n=E(e);if(n)return $(n)?w(n.$.subTree,t,!0):w(n,t)}function S(e,t){var n,r=e.$data||e.data;return e&&(n=t?p(r,t):Object.assign({},r)),Promise.resolve({data:n})}function b(e,t){if(e){var n=$(e);Object.keys(t).forEach((function(r){n?(e.$data||e.data)[r]=t[r]:e[r]=t[r]}))}return Promise.resolve()}function P(e,t,r){return $(e)&&(e=e.$vm||e.ctx),new Promise((function(o,i){var u,c;if(!e)return i(n.VM_NOT_EXISTS);if(!e[t]&&!(null===(c=e.$.exposed)||void 0===c?void 0:c[t]))return i(n.METHOD_NOT_EXISTS);var a,s=e[t]?e[t].apply(e,r):(u=e.$.exposed)[t].apply(u,r);!(a=s)||"object"!=typeof a&&"function"!=typeof a||"function"!=typeof a.then?o({result:s}):s.then((function(e){o({result:e})}))}))}function $(e){return!e.$children}!function(e){e.VM_NOT_EXISTS="VM_NOT_EXISTS",e.METHOD_NOT_EXISTS="METHOD_NOT_EXISTS"}(n||(n={}));var x=1,O={};var I=new Map,M=function(t){return new Promise((function(n,r){var o=I.values().next().value;if(o){var i=t.method;if("onOpen"===i)return C(o,n);if(i.startsWith("on"))return o.instance[i]((function(e){n(e)}));"sendMessage"===i&&(i="send"),o.instance[i](e(e({},t),{success:function(e){n({result:e}),"close"===i&&I.delete(I.keys().next().value)},fail:function(e){r(e)}}))}else r({errMsg:"socketTask not exists."})}))};function C(e,t){if(e.isOpend)t({data:e.openData});else{var n=setInterval((function(){e.isOpend&&(clearInterval(n),t(e.openData))}),200);setTimeout((function(){clearInterval(n)}),2e3)}}var A=["stopRecord","getRecorderManager","pauseVoice","stopVoice","pauseBackgroundAudio","stopBackgroundAudio","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","createVideoContext","createCameraContext","createMapContext","canIUse","startAccelerometer","stopAccelerometer","startCompass","stopCompass","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","navigateBack","createAnimation","pageScrollTo","createSelectorQuery","createCanvasContext","createContext","drawCanvas","hideKeyboard","stopPullDownRefresh","arrayBufferToBase64","base64ToArrayBuffer"],k=new Map,q=["onCompassChange","onThemeChange","onUserCaptureScreen","onWindowResize","onMemoryWarning","onAccelerometerChange","onKeyboardHeightChange","onNetworkStatusChange","onPushMessage","onLocationChange","onGetWifiList","onWifiConnected","onWifiConnectedWithPartialInfo","onSocketOpen","onSocketError","onSocketMessage","onSocketClose"],N={},W=/^\$|Sync$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,D=/^on|^off/;function H(e){return W.test(e)||-1!==A.indexOf(e)}var L={getPageStack:function(){return Promise.resolve({pageStack:getCurrentPages().map((function(e){return _(e)}))})},getCurrentPage:function(){var e=getCurrentPages(),t=e.length;return new Promise((function(n,r){t?n(_(e[t-1])):r(Error("getCurrentPages().length=0"))}))},callUniMethod:function(t,n){var r=t.method,o=t.args;return new Promise((function(t,i){if("connectSocket"!==r){var u,c;if(q.includes(r)){k.has(r)||k.set(r,new Map);var a=o[0],s=function(e){n({id:a,result:{method:r,data:e}})};return r.startsWith("onSocket")?M({method:r.replace("Socket","")}).then((function(e){return s(e)})).catch((function(e){return s(e)})):(k.get(r).set(a,s),uni[r](s)),t({result:null})}if(r.startsWith("off")&&q.includes(r.replace("off","on"))){var l=r.replace("off","on");if(k.has(l)){var f=o[0];if(void 0!==f){var d=k.get(l).get(f);uni[r](d),k.get(l).delete(f)}else{k.get(l).forEach((function(e){uni[r](e)})),k.delete(l)}}return t({result:null})}if(r.indexOf("Socket")>0)return M(e({method:r.replace("Socket","")},o[0])).then((function(e){return t(e)})).catch((function(e){return i(e)}));if(!uni[r])return i(Error("uni."+r+" not exists"));if(H(r))return t({result:uni[r].apply(uni,o)});var g=[Object.assign({},o[0]||{},{success:function(e){setTimeout((function(){t({result:e})}),"pageScrollTo"===r?350:0)},fail:function(e){i(Error(e.errMsg.replace(r+":fail ","")))}})];uni[r].apply(uni,g)}else(u=o[0].id,c=o[0].url,new Promise((function(e,t){var n=uni.connectSocket({url:c,success:function(){e({result:{errMsg:"connectSocket:ok"}})},fail:function(){t({result:{errMsg:"connectSocket:fail"}})}});I.set(u,{instance:n,isOpend:!1}),n.onOpen((function(e){I.get(u).isOpend=!0,I.get(u).openData=e}))}))).then((function(e){return t(e)})).catch((function(e){return i(e)}))}))},mockUniMethod:function(e){var t=e.method;if(!uni[t])throw Error("uni."+t+" not exists");if(!function(e){return!D.test(e)}(t))throw Error("You can't mock uni."+t);var n,r=e.result,i=e.functionDeclaration;return o(r)&&o(i)?(N[t]&&(uni[t]=N[t],delete N[t]),Promise.resolve()):(n=o(i)?H(t)?function(){return r}:function(e){setTimeout((function(){r.errMsg&&-1!==r.errMsg.indexOf(":fail")?e.fail&&e.fail(r):e.success&&e.success(r),e.complete&&e.complete(r)}),4)}:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new Function("return "+i)().apply(n,t.concat(e.args))},n.origin=N[t]||uni[t],N[t]||(N[t]=uni[t]),uni[t]=n,Promise.resolve())},captureScreenshot:function(e){return new Promise((function(t,n){var r=getCurrentPages(),o=r.length;if(o){var i=r[o-1];if(i){var u=i.$getAppWebview(),c=new plus.nativeObj.Bitmap("captureScreenshot","captureScreenshot.png");u.draw(c,(function(e){var n=c.toBase64Data().replace("data:image/png;base64,","").replace("data:image/(null);base64,","");c.clear(),t({data:n})}),(function(e){n(Error("captureScreenshot fail: "+e.message))}),{wholeContent:!!e.fullPage})}}else n(Error("getCurrentPage fail."))}))},socketEmitter:function(t){return new Promise((function(n,r){(function(t){return new Promise((function(n,r){if(I.has(t.id)){var o=I.get(t.id),i=o.instance,u=t.method,c=t.id;if("onOpen"==u)return C(o,n);if(u.startsWith("on"))return i[u]((function(e){n({method:"Socket."+u,id:c,data:e})}));i[u](e(e({},t),{success:function(e){n(e),"close"===u&&I.delete(t.id)},fail:function(e){r(e)}}))}else r({errMsg:"socketTask not exists."})}))})(t).then((function(e){return n(e)})).catch((function(e){return r(e)}))}))}},B=L,j={getData:function(e){return S(E(e.pageId),e.path)},setData:function(e){return b(E(e.pageId),e.data)},callMethod:function(e){var t,r=((t={})[n.VM_NOT_EXISTS]="Page["+e.pageId+"] not exists",t[n.METHOD_NOT_EXISTS]="page."+e.method+" not exists",t);return new Promise((function(t,n){P(E(e.pageId),e.method,e.args).then((function(e){return t(e)})).catch((function(e){n(Error(r[e]))}))}))},callMethodWithCallback:function(e){var t,r=((t={})[n.VM_NOT_EXISTS]="callMethodWithCallback:fail, Page["+e.pageId+"] not exists",t[n.METHOD_NOT_EXISTS]="callMethodWithCallback:fail, page."+e.method+" not exists",t),o=e.args[e.args.length-1];P(E(e.pageId),e.method,e.args).catch((function(e){o({errMsg:r[e]})}))}};function U(e){return e.nodeId||e.elementId}var V={getData:function(e){return S(T(e.pageId,U(e)),e.path)},setData:function(e){return b(T(e.pageId,U(e)),e.data)},callMethod:function(e){var t,r=U(e),o=((t={})[n.VM_NOT_EXISTS]="Component["+e.pageId+":"+r+"] not exists",t[n.METHOD_NOT_EXISTS]="component."+e.method+" not exists",t);return new Promise((function(t,n){P(T(e.pageId,r),e.method,e.args).then((function(e){return t(e)})).catch((function(e){n(Error(o[e]))}))}))}};function R(e){var t=getCurrentPages().find((function(t){return t.$page.id===e}));if(!t)throw Error("page["+e+"] not found");var n=t.$vm._$weex;return n.document.__$weex__||(n.document.__$weex__=n),n.document}var X={},J={};["text","image","input","textarea","video","web-view","slider"].forEach((function(e){X[e]=!0,J["u-"+e]=!0}));var z=["movable-view","picker","ad","button","checkbox-group","checkbox","form","icon","label","movable-area","navigator","picker-view-column","picker-view","progress","radio-group","radio","rich-text","u-slider","swiper-item","swiper","switch"],F=z.map((function(e){return f(l(e))}));function G(e){var t=e.type;if(J[t])return t.replace("u-","");var n=e.__vue__&&e.__vue__.$options.name;return"USlider"===n?"slider":n&&-1!==F.indexOf(n)?a(n):t}function K(e){var t={elementId:e.nodeId,tagName:G(e),nvue:!0},n=e.__vue__;return n&&!n.$options.isReserved&&(t.nodeId=n._uid),"video"===t.tagName&&(t.videoId=t.nodeId),t}function Y(e,t,n){for(var r=e.children,o=0;o<r.length;o++){var i=r[o];if(t(i)){if(!n)return i;n.push(i)}if(n)Y(i,t,n);else{var u=Y(i,t,n);if(u)return u}}return n}function Q(e,t,n){var r,o;if(0===t.indexOf("#")?(r=t.substr(1),o=function(e){return e.attr&&e.attr.id===r}):0===t.indexOf(".")&&(r=t.substr(1),o=function(e){return e.classList&&-1!==e.classList.indexOf(r)}),o){var i=Y(e,o,n);if(!i)throw Error("Node("+t+") not exists");return i}if("body"===t)return Object.assign({},e,{type:"page"});0===t.indexOf("uni-")&&(t=t.replace("uni-",""));var u=X[t]?"u-"+t:t,c=-1!==z.indexOf(u)?f(l(u)):"",a=Y(e,(function(e){return e.type===u||c&&e.__vue__&&e.__vue__.$options.name===c}),n);if(!a)throw Error("Node("+t+") not exists");return a}var Z=[{test:function(e){return 2===e.length&&-1!==e.indexOf("document.documentElement.scrollWidth")&&-1!==e.indexOf("document.documentElement.scrollHeight")},call:function(e){var t=e.__$weex__||e.ownerDocument.__$weex__;return new Promise((function(n){"scroll-view"===e.type&&1===e.children.length&&(e=e.children[0]),t.requireModule("dom").getComponentRect(e.ref,(function(e){e.result?n([e.size.width,e.size.height]):n([0,0])}))}))}},{test:function(e){return 1===e.length&&"document.documentElement.scrollTop"===e[0]},call:function(e){var t=e.__$weex__||e.ownerDocument.__$weex__;return new Promise((function(n){"scroll-view"===e.type&&1===e.children.length&&(e=e.children[0]),t.requireModule("dom").getComponentRect(e.ref,(function(e){n([e.size&&Math.abs(e.size.top)||0])}))}))}},{test:function(e){return 2===e.length&&-1!==e.indexOf("offsetWidth")&&-1!==e.indexOf("offsetHeight")},call:function(e){var t=e.__$weex__||e.ownerDocument.__$weex__;return new Promise((function(n){t.requireModule("dom").getComponentRect(e.ref,(function(e){e.result?n([e.size.width,e.size.height]):n([0,0])}))}))}},{test:function(e,t){return 1===e.length&&"innerText"===e[0]},call:function(e){return Promise.resolve([ee(e,[]).join("")])}}];function ee(e,t){return"u-text"===e.type?t.push(e.attr.value):e.pureChildren.map((function(e){return ee(e,t)})),t}function te(e){return e.replace(/\n/g,"").replace(/<u-/g,"<").replace(/<\/u-/g,"</")}function ne(e,t){return"outer"===t?"body"===e.role&&"scroll-view"===e.type?"<page>"+te(ne(e,"inner"))+"</page>":te(e.toString()):te(e.pureChildren.map((function(e){return e.toString()})).join(""))}var re={input:{input:function(e,t){e.setValue(t)}},textarea:{input:function(e,t){e.setValue(t)}},"scroll-view":{scrollTo:function(e,t,n){e.scrollTo(n)},scrollTop:function(e){return 0},scrollLeft:function(e){return 0},scrollWidth:function(e){return 0},scrollHeight:function(e){return 0}},swiper:{swipeTo:function(e,t){e.__vue__.current=t}},"movable-view":{moveTo:function(e,t,n){var r=e.__vue__;r.x=t,r.y=n}},switch:{tap:function(e){var t=e.__vue__;t.checked=!t.checked}},slider:{slideTo:function(e,t){e.__vue__.value=t}}};function oe(e){return R(e).body}var ie={getWindow:function(e){return oe(e)},getDocument:function(e){return oe(e)},getEl:function(e,t){var n=R(t).getRef(e);if(!n)throw Error("element destroyed");return n},getOffset:function(e){var t=e.__$weex__||e.ownerDocument.__$weex__;return new Promise((function(n){t.requireModule("dom").getComponentRect(e.ref,(function(e){e.result?n({left:e.size.left,top:e.size.top}):n({left:0,top:0})}))}))},querySelector:function(e,t){return Promise.resolve(K(Q(e,t)))},querySelectorAll:function(e,t){return Promise.resolve({elements:Q(e,t,[]).map((function(e){return K(e)}))})},queryProperties:function(e,t){var n=Z.find((function(n){return n.test(t,e)}));return n?n.call(e).then((function(e){return{properties:e}})):Promise.resolve({properties:t.map((function(t){return p(e,t)}))})},queryAttributes:function(e,t){var n=e.attr;return Promise.resolve({attributes:t.map((function(t){return"class"===t?(e.classList||[]).join(" "):String(n[t]||n[l(t)]||"")}))})},queryStyles:function(e,t){var n=e.style;return Promise.resolve({styles:t.map((function(e){return n[e]}))})},queryHTML:function(e,t){return Promise.resolve({html:ne(e,t)})},dispatchTapEvent:function(e){return e.fireEvent("click",{timeStamp:Date.now(),target:e,currentTarget:e},!0),Promise.resolve()},dispatchLongpressEvent:function(e){return e.fireEvent("longpress",{timeStamp:Date.now(),target:e,currentTarget:e},!0),Promise.resolve()},dispatchTouchEvent:function(e,t,n){return n||(n={}),n.touches||(n.touches=[]),n.changedTouches||(n.changedTouches=[]),n.touches.length||n.touches.push({identifier:Date.now(),target:e}),e.fireEvent(t,Object.assign({timeStamp:Date.now(),target:e,currentTarget:e},n),!0),Promise.resolve()},callFunction:function(e,n,r){var o=p(re,n);return o?Promise.resolve({result:o.apply(null,t([e],r))}):Promise.reject(Error(n+" not exists"))},triggerEvent:function(e,t,n){var r=e.__vue__;return r?r.$trigger&&r.$trigger(t,{},n):e.fireEvent(t,{timeStamp:Date.now(),target:e,currentTarget:e},!1,{params:[{detail:n}]}),Promise.resolve()}};function ue(){return Object.assign({},function(e){return{"Page.getElement":function(t){return e.querySelector(e.getDocument(t.pageId),t.selector)},"Page.getElements":function(t){return e.querySelectorAll(e.getDocument(t.pageId),t.selector)},"Page.getWindowProperties":function(t){return e.queryProperties(e.getWindow(t.pageId),t.names)}}}(ie),function(e){var t=function(t){return e.getEl(t.elementId,t.pageId)};return{"Element.getElement":function(n){return e.querySelector(t(n),n.selector)},"Element.getElements":function(n){return e.querySelectorAll(t(n),n.selector)},"Element.getDOMProperties":function(n){return e.queryProperties(t(n),n.names)},"Element.getProperties":function(n){var r=t(n),o=r.__vue__||r.attr||{};return r.__vueParentComponent&&(o=Object.assign({},o,r.__vueParentComponent.attrs,r.__vueParentComponent.props)),e.queryProperties(o,n.names)},"Element.getOffset":function(n){return e.getOffset(t(n))},"Element.getAttributes":function(n){return e.queryAttributes(t(n),n.names)},"Element.getStyles":function(n){return e.queryStyles(t(n),n.names)},"Element.getHTML":function(n){return e.queryHTML(t(n),n.type)},"Element.tap":function(n){return e.dispatchTapEvent(t(n))},"Element.longpress":function(n){return e.dispatchLongpressEvent(t(n))},"Element.touchstart":function(n){return e.dispatchTouchEvent(t(n),"touchstart",n)},"Element.touchmove":function(n){return e.dispatchTouchEvent(t(n),"touchmove",n)},"Element.touchend":function(n){return e.dispatchTouchEvent(t(n),"touchend",n)},"Element.callFunction":function(n){return e.callFunction(t(n),n.functionName,n.args)},"Element.triggerEvent":function(n){return e.triggerEvent(t(n),n.type,n.detail)}}}(ie))}var ce=function(){};ce.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t){for(var i=r.length-1;i>=0;i--)if(r[i].fn===t||r[i].fn._===t){r.splice(i,1);break}o=r}return o.length?n[e]=o:delete n[e],this}};var ae=ce;function se(e){var t=new ae;return{subscribe:function(n,r,o){void 0===o&&(o=!1),t[o?"once":"on"](e+"."+n,r)},subscribeHandler:function(n,r,o){t.emit(e+"."+n,r,o)}}}var le=Object.assign,fe=le(se("service"),{publishHandler:function(e,t,n){UniViewJSBridge.subscribeHandler(e,t,n)}}),de=le(se("view"),{publishHandler:function(e,t,n){UniServiceJSBridge.subscribeHandler(e,t,n)}});if("undefined"==typeof UniServiceJSBridge&&"undefined"==typeof UniViewJSBridge){var ge="undefined"==typeof globalThis?Function("return this")():globalThis;ge.UniServiceJSBridge=fe,ge.UniViewJSBridge=de}var pe={};Object.keys(B).forEach((function(e){pe["App."+e]=B[e]})),Object.keys(j).forEach((function(e){pe["Page."+e]=j[e]})),Object.keys(V).forEach((function(e){pe["Element."+e]=V[e]}));var ve,me,he,_e=process.env.UNI_AUTOMATOR_WS_ENDPOINT;function Ee(e){he.send({data:JSON.stringify(e)})}function ye(e){var t=JSON.parse(e.data),n=t.id,r=t.method,o=t.params,i={id:n},u=pe[r];if(!u){if(me){var c=me(n,r,o,i);if(!0===c)return;u=c}if(!u)return i.error={message:r+" unimplemented"},Ee(i)}try{u(o,Ee).then((function(e){e&&(i.result=e)})).catch((function(e){i.error={message:e.message}})).finally((function(){Ee(i)}))}catch(e){i.error={message:e.message},Ee(i)}}me=function(e,t,n,r){var o=n.pageId,i=function(e){var t=getCurrentPages();if(!e)return t[t.length-1];return t.find((function(t){return t.$page.id===e}))}(o);return i?!i.$page.meta.isNVue?(UniServiceJSBridge.publishHandler("sendAutoMessage",{id:e,method:t,params:n},o),!0):(ve||(ve=ue()),ve[t]):(r.error={message:"page["+o+"] not exists"},Ee(r),!0)},UniServiceJSBridge.subscribe("onAutoMessageReceive",(function(e){Ee(e)})),setTimeout((function(){if("undefined"!=typeof window&&window.__uniapp_x_)!function(e,t){var n=0;t&&(n=x++,O[n]=t);var r={data:{id:n,type:"automator",data:e}};console.log("postMessageToUniXWebView",r),"undefined"!=typeof window&&window.__uniapp_x_.postMessage(JSON.stringify(r))}({action:"ready"});else{if(_e&&_e.endsWith(":0000"))return;void 0===e&&(e={}),(he=uni.connectSocket({url:e.wsEndpoint||_e,complete:function(){}})).onMessage(ye),he.onOpen((function(t){e.success&&e.success(),console.log("已开启自动化测试...")})),he.onError((function(e){console.log("automator.onError",e)})),he.onClose((function(){e.fail&&e.fail({errMsg:"$$initRuntimeAutomator:fail"}),console.log("automator.onClose")}))}var e}),500);var we=Object.prototype.hasOwnProperty,Te=Array.isArray,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function be(e,t){if(Te(e))return e;if(t&&(n=t,r=e,we.call(n,r)))return[e];var n,r,o=[];return e.replace(Se,(function(e,t,n,r){return o.push(n?r.replace(/\\(\\)?/g,"$1"):t||e),r})),o}function Pe(e){if(e._$weex)return e._uid;if(e._$id)return e._$id;var t=function(e){for(var t=e.$parent;t;){if(t._$id)return t;t=t.$parent}}(e);if(!e.$parent)return"-1";var n=e.$vnode,r=n.context;return r&&r!==t&&r._$id?r._$id+";"+t._$id+","+n.data.attrs._i:t._$id+","+n.data.attrs._i}function $e(e){return"TEXT"===e.tagName||"TEXTAREA"===e.tagName}function xe(e){var t="";return e.childNodes.forEach((function(e){$e(e)?t+=e.getAttribute("value"):t+=xe(e)})),t}function Oe(e){return e.startsWith("uni-")?e.replace("uni-",""):e}var Ie=new Map;function Me(e){var t,n,r,o,i,u={elementId:(r=e,o=r._id,o||(o=Date.now()+"-"+Math.random(),r._id=o,Ie.set(o,{id:o,element:r})),o),tagName:e.tagName.toLocaleLowerCase().replace("uni-","")};e.__vue__?(i=e.__vue__)&&(i.$parent&&i.$parent.$el===e&&(i=i.$parent),i&&!(null===(t=i.$options)||void 0===t?void 0:t.isReserved)&&(u.nodeId=Pe(i))):(i=e.__vnode)&&(i.el===e&&(i=i.ctx.parent),i&&!(null===(n=i.type)||void 0===n?void 0:n.__reserved)&&(u.nodeId=Pe(i)));return"video"===u.tagName&&(u.videoId=u.nodeId),u}var Ce={input:{input:function(e,t){var n=e.__vue__;n?(n.valueSync=t,n.$triggerInput({},{value:t})):(n=e.__vnode).ctx.exposed.$triggerInput({value:t})}},textarea:{input:function(e,t){var n=e.__vue__;n?(n.valueSync=t,n.$triggerInput({},{value:t})):(n=e.__vnode).ctx.exposed.$triggerInput({value:t})}},"scroll-view":{scrollTo:function(e,t,n){var r=e.__vue__?e.__vue__.$refs.main:e;r.scrollLeft=t,r.scrollTop=n},scrollTop:function(e){return e.__vue__?e.__vue__.$refs.main.scrollTop:e.scrollTop},scrollLeft:function(e){return e.__vue__?e.__vue__.$refs.main.scrollLeft:e.scrollLeft},scrollWidth:function(e){return e.__vue__?e.__vue__.$refs.main.scrollWidth:e.scrollWidth},scrollHeight:function(e){return e.__vue__?e.__vue__.$refs.main.scrollHeight:e.scrollHeight}},swiper:{swipeTo:function(e,t){e.__vue__.current=t}},"movable-view":{moveTo:function(e,t,n){e.__vue__._animationTo(t,n)}},switch:{tap:function(e){e.click()}},slider:{slideTo:function(e,t){var n=e.__vue__,r=n.$refs["uni-slider"],o=r.offsetWidth,i=r.getBoundingClientRect().left;n.value=t,n._onClick({x:(t-n.min)*o/(n.max-n.min)+i})}}};function Ae(e){var t=getCurrentPages().find((function(t){return t.$page.id===e}));if(!t)throw Error("page["+e+"] not found");return t.$el.parentNode}function ke(e){var t,n=e.map((function(e){return function(e){if(document.createTouch)return document.createTouch(window,e.target,e.identifier,e.pageX,e.pageY,e.screenX,e.screenY);return new Touch(e)}(e)}));return document.createTouchList?(t=document).createTouchList.apply(t,n):n}var qe={getWindow:function(e){var t=Ae(e);return 1===t.childNodes.length?t.childNodes[0]:t},getDocument:function(e){return Ae(e)},getEl:function(e){var t=Ie.get(e);if(!t)throw Error("element destroyed");return t.element},getOffset:function(e){var t=e.getBoundingClientRect();return Promise.resolve({left:t.left,top:t.top})},querySelector:function(e,t){return"page"===(t=Oe(t))&&(t="body"),Promise.resolve(Me(e.querySelector(t)))},querySelectorAll:function(e,t){t=Oe(t);var n=[],r=e.querySelectorAll(t);return[].forEach.call(r,(function(e){try{n.push(Me(e))}catch(e){}})),Promise.resolve({elements:n})},queryProperties:function(e,t){return Promise.resolve({properties:t.map((function(t){return"innerText"==t?$e(e)?e.getAttribute("value"):xe(e):"value"==t?e.getAnyAttribute("value"):"offsetWidth"==t?e.offsetWidth:"offsetHeight"==t?e.offsetHeight:"document.documentElement.scrollWidth"===t?e.scrollWidth:"document.documentElement.scrollHeight"===t?e.scrollHeight:"document.documentElement.scrollTop"===t?e.scrollTop:"Element.getDOMProperties not support "+t}))})},queryAttributes:function(e,t){return Promise.resolve({attributes:t.map((function(t){return String(e.getAnyAttribute(t))}))})},queryStyles:function(e,t){var n=e.__style;return Promise.resolve({styles:t.map((function(e){return n[e]}))})},queryHTML:function(e,t){return Promise.resolve({html:(n="outer"===t?e.outerHTML:e.innerHTML,n.replace(/\n/g,"").replace(/(<uni-text[^>]*>)(<span[^>]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(e){return-1<e.indexOf("<body")?"<page>":"</body>"===e?"</page>":0!==e.indexOf("<uni-")&&0!==e.indexOf("</uni-")?"":e.replace(/uni-/g,"").replace(/ role=""/g,"").replace(/ aria-label=""/g,"")})))});var n},dispatchTapEvent:function(e){return e.click(),Promise.resolve()},dispatchLongpressEvent:function(e){return Promise.resolve()},dispatchTouchEvent:function(e,t,n){n||(n={}),n.touches||(n.touches=[]),n.changedTouches||(n.changedTouches=[]),n.touches.length||n.touches.push({identifier:Date.now(),target:e});var r=ke(n.touches),o=ke(n.changedTouches),i=ke([]);return e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,touches:r,targetTouches:i,changedTouches:o})),Promise.resolve()},callFunction:function(e,n,r){var o=function(e,t){var n,r=be(t,e);for(n=r.shift();null!=n;){if(null==(e=e[n]))return;n=r.shift()}return e}(Ce,n);return o?Promise.resolve({result:o.apply(null,t([e],r))}):Promise.reject(Error(n+" not exists"))},triggerEvent:function(e,t,n){var r=e.__vue__;return r.$trigger&&r.$trigger(t,{},n),Promise.resolve()}};var Ne=Object.assign({},function(e){return{"Page.getElement":function(t){return e.querySelector(e.getDocument(t.pageId),t.selector)},"Page.getElements":function(t){return e.querySelectorAll(e.getDocument(t.pageId),t.selector)},"Page.getWindowProperties":function(t){return e.queryProperties(e.getWindow(t.pageId),t.names)}}}(qe),function(e){var t=function(t){return e.getEl(t.elementId,t.pageId)};return{"Element.getElement":function(n){return e.querySelector(t(n),n.selector)},"Element.getElements":function(n){return e.querySelectorAll(t(n),n.selector)},"Element.getDOMProperties":function(n){return e.queryProperties(t(n),n.names)},"Element.getProperties":function(n){var r=t(n);return e.queryProperties(r,n.names)},"Element.getOffset":function(n){return e.getOffset(t(n))},"Element.getAttributes":function(n){return e.queryAttributes(t(n),n.names)},"Element.getStyles":function(n){return e.queryStyles(t(n),n.names)},"Element.getHTML":function(n){return e.queryHTML(t(n),n.type)},"Element.tap":function(n){return e.dispatchTapEvent(t(n))},"Element.longpress":function(n){return e.dispatchLongpressEvent(t(n))},"Element.touchstart":function(n){return e.dispatchTouchEvent(t(n),"touchstart",n)},"Element.touchmove":function(n){return e.dispatchTouchEvent(t(n),"touchmove",n)},"Element.touchend":function(n){return e.dispatchTouchEvent(t(n),"touchend",n)},"Element.callFunction":function(n){return e.callFunction(t(n),n.functionName,n.args)},"Element.triggerEvent":function(n){return e.triggerEvent(t(n),n.type,n.detail)}}}(qe));function We(e){return UniViewJSBridge.publishHandler("onAutoMessageReceive",e)}UniViewJSBridge.subscribe("sendAutoMessage",(function(e){var t=e.id,n=e.method,r=e.params,o={id:t};if("ping"==n)return o.result="pong",void We(o);var i=Ne[n];if(!i)return o.error={message:n+" unimplemented"},We(o);try{i(r).then((function(e){e&&(o.result=e)})).catch((function(e){o.error={message:e.message}})).finally((function(){We(o)}))}catch(e){o.error={message:e.message},We(o)}})); +var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,c=i.length;u<c;u++,o++)r[o]=i[u];return r}var n,r=Object.prototype.hasOwnProperty,o=function(e){return null==e},i=Array.isArray,u=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},c=/\B([A-Z])/g,a=u((function(e){return e.replace(c,"-$1").toLowerCase()})),s=/-(\w)/g,l=u((function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))})),f=u((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function g(e,t){if(i(e))return e;if(t&&(n=t,o=e,r.call(n,o)))return[e];var n,o,u=[];return e.replace(d,(function(e,t,n,r){return u.push(n?r.replace(/\\(\\)?/g,"$1"):t||e),r})),u}function p(e,t){var n,r=g(t,e);for(n=r.shift();!o(n);){if(null==(e=e[n]))return;n=r.shift()}return e}function v(e){return e.__wxWebviewId__?e.__wxWebviewId__:e.privateProperties?e.privateProperties.slaveId:e.$page?e.$page.id:void 0}function m(e){return e.route||e.uri}function h(e){return e.options||e.$page&&e.$page.options||{}}function _(e){return{id:v(e),path:m(e),query:h(e)}}function E(e){var t=function(e){return getCurrentPages().find((function(t){return v(t)===e}))}(e);return t&&t.$vm}function y(e,t){return function(e){if(e._$weex)return e._uid;if(e._$id)return e._$id;var t=function(e){for(var t=e.$parent;t;){if(t._$id)return t;t=t.$parent}}(e);if(!e.$parent)return"-1";var n=e.$vnode,r=n.context;return r&&r!==t&&r._$id?r._$id+";"+t._$id+","+n.data.attrs._i:t._$id+","+n.data.attrs._i}(e)===t}function w(e,t,n){var r,o,i;if(void 0===n&&(n=!1),n)if(e.component&&y(e.component,t))i=e.component;else{var u=[];e.children instanceof Array?u=e.children:(null===(o=null===(r=e.component)||void 0===r?void 0:r.subTree)||void 0===o?void 0:o.children)&&(u=e.component.subTree.children),u.find((function(e){return i=w(e,t,!0)}))}else e&&(y(e,t)?i=e:e.$children.find((function(e){return i=w(e,t)})));return i}function T(e,t){var n=E(e);if(n)return $(n)?w(n.$.subTree,t,!0):w(n,t)}function S(e,t){var n,r=e.$data||e.data;return e&&(n=t?p(r,t):Object.assign({},r)),Promise.resolve({data:n})}function P(e,t){if(e){var n=$(e);Object.keys(t).forEach((function(r){n?(e.$data||e.data)[r]=t[r]:e[r]=t[r]}))}return Promise.resolve()}function b(e,t,r){return $(e)&&(e=e.$vm||e.ctx),new Promise((function(o,i){var u,c;if(!e)return i(n.VM_NOT_EXISTS);if(!e[t]&&!(null===(c=e.$.exposed)||void 0===c?void 0:c[t]))return i(n.METHOD_NOT_EXISTS);var a,s=e[t]?e[t].apply(e,r):(u=e.$.exposed)[t].apply(u,r);!(a=s)||"object"!=typeof a&&"function"!=typeof a||"function"!=typeof a.then?o({result:s}):s.then((function(e){o({result:e})}))}))}function $(e){return!e.$children}!function(e){e.VM_NOT_EXISTS="VM_NOT_EXISTS",e.METHOD_NOT_EXISTS="METHOD_NOT_EXISTS"}(n||(n={}));var x=1,O={};var I=new Map,M=function(t){return new Promise((function(n,r){var o=I.values().next().value;if(o){var i=t.method;if("onOpen"===i)return C(o,n);if(i.startsWith("on"))return o.instance[i]((function(e){n(e)}));"sendMessage"===i&&(i="send"),o.instance[i](e(e({},t),{success:function(e){n({result:e}),"close"===i&&I.delete(I.keys().next().value)},fail:function(e){r(e)}}))}else r({errMsg:"socketTask not exists."})}))};function C(e,t){if(e.isOpend)t({data:e.openData});else{var n=setInterval((function(){e.isOpend&&(clearInterval(n),t(e.openData))}),200);setTimeout((function(){clearInterval(n)}),2e3)}}var k=["stopRecord","getRecorderManager","pauseVoice","stopVoice","pauseBackgroundAudio","stopBackgroundAudio","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","createVideoContext","createCameraContext","createMapContext","canIUse","startAccelerometer","stopAccelerometer","startCompass","stopCompass","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","navigateBack","createAnimation","pageScrollTo","createSelectorQuery","createCanvasContext","createContext","drawCanvas","hideKeyboard","stopPullDownRefresh","arrayBufferToBase64","base64ToArrayBuffer"],A=new Map,q=["onCompassChange","onThemeChange","onUserCaptureScreen","onWindowResize","onMemoryWarning","onAccelerometerChange","onKeyboardHeightChange","onNetworkStatusChange","onPushMessage","onLocationChange","onGetWifiList","onWifiConnected","onWifiConnectedWithPartialInfo","onSocketOpen","onSocketError","onSocketMessage","onSocketClose"],N={},W=/^\$|Sync$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,D=/^on|^off/;function H(e){return W.test(e)||-1!==k.indexOf(e)}var L={getPageStack:function(){return Promise.resolve({pageStack:getCurrentPages().map((function(e){return _(e)}))})},getCurrentPage:function(){var e=getCurrentPages(),t=e.length;return new Promise((function(n,r){t?n(_(e[t-1])):r(Error("getCurrentPages().length=0"))}))},callUniMethod:function(t,n){var r=t.method,o=t.args;return new Promise((function(t,i){if("connectSocket"!==r){var u,c;if(q.includes(r)){A.has(r)||A.set(r,new Map);var a=o[0],s=function(e){n({id:a,result:{method:r,data:e}})};return r.startsWith("onSocket")?M({method:r.replace("Socket","")}).then((function(e){return s(e)})).catch((function(e){return s(e)})):(A.get(r).set(a,s),uni[r](s)),t({result:null})}if(r.startsWith("off")&&q.includes(r.replace("off","on"))){var l=r.replace("off","on");if(A.has(l)){var f=o[0];if(void 0!==f){var d=A.get(l).get(f);uni[r](d),A.get(l).delete(f)}else{A.get(l).forEach((function(e){uni[r](e)})),A.delete(l)}}return t({result:null})}if(r.indexOf("Socket")>0)return M(e({method:r.replace("Socket","")},o[0])).then((function(e){return t(e)})).catch((function(e){return i(e)}));if(!uni[r])return i(Error("uni."+r+" not exists"));if(H(r))return t({result:uni[r].apply(uni,o)});var g=[Object.assign({},o[0]||{},{success:function(e){setTimeout((function(){t({result:e})}),"pageScrollTo"===r?350:0)},fail:function(e){i(Error(e.errMsg.replace(r+":fail ","")))}})];uni[r].apply(uni,g)}else(u=o[0].id,c=o[0].url,new Promise((function(e,t){var n=uni.connectSocket({url:c,success:function(){e({result:{errMsg:"connectSocket:ok"}})},fail:function(){t({result:{errMsg:"connectSocket:fail"}})}});I.set(u,{instance:n,isOpend:!1}),n.onOpen((function(e){I.get(u).isOpend=!0,I.get(u).openData=e}))}))).then((function(e){return t(e)})).catch((function(e){return i(e)}))}))},mockUniMethod:function(e){var t=e.method;if(!uni[t])throw Error("uni."+t+" not exists");if(!function(e){return!D.test(e)}(t))throw Error("You can't mock uni."+t);var n,r=e.result,i=e.functionDeclaration;return o(r)&&o(i)?(N[t]&&(uni[t]=N[t],delete N[t]),Promise.resolve()):(n=o(i)?H(t)?function(){return r}:function(e){setTimeout((function(){r.errMsg&&-1!==r.errMsg.indexOf(":fail")?e.fail&&e.fail(r):e.success&&e.success(r),e.complete&&e.complete(r)}),4)}:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new Function("return "+i)().apply(n,t.concat(e.args))},n.origin=N[t]||uni[t],N[t]||(N[t]=uni[t]),uni[t]=n,Promise.resolve())},captureScreenshot:function(e){return new Promise((function(t,n){var r=getCurrentPages(),o=r.length;if(o){var i=r[o-1];if(i){var u=i.$getAppWebview(),c=new plus.nativeObj.Bitmap("captureScreenshot","captureScreenshot.png");u.draw(c,(function(e){var n=c.toBase64Data().replace("data:image/png;base64,","").replace("data:image/(null);base64,","");c.clear(),t({data:n})}),(function(e){n(Error("captureScreenshot fail: "+e.message))}),{wholeContent:!!e.fullPage})}}else n(Error("getCurrentPage fail."))}))},socketEmitter:function(t){return new Promise((function(n,r){(function(t){return new Promise((function(n,r){if(I.has(t.id)){var o=I.get(t.id),i=o.instance,u=t.method,c=t.id;if("onOpen"==u)return C(o,n);if(u.startsWith("on"))return i[u]((function(e){n({method:"Socket."+u,id:c,data:e})}));i[u](e(e({},t),{success:function(e){n(e),"close"===u&&I.delete(t.id)},fail:function(e){r(e)}}))}else r({errMsg:"socketTask not exists."})}))})(t).then((function(e){return n(e)})).catch((function(e){return r(e)}))}))}},B=L,U={getData:function(e){return S(E(e.pageId),e.path)},setData:function(e){return P(E(e.pageId),e.data)},callMethod:function(e){var t,r=((t={})[n.VM_NOT_EXISTS]="Page["+e.pageId+"] not exists",t[n.METHOD_NOT_EXISTS]="page."+e.method+" not exists",t);return new Promise((function(t,n){b(E(e.pageId),e.method,e.args).then((function(e){return t(e)})).catch((function(e){n(Error(r[e]))}))}))},callMethodWithCallback:function(e){var t,r=((t={})[n.VM_NOT_EXISTS]="callMethodWithCallback:fail, Page["+e.pageId+"] not exists",t[n.METHOD_NOT_EXISTS]="callMethodWithCallback:fail, page."+e.method+" not exists",t),o=e.args[e.args.length-1];b(E(e.pageId),e.method,e.args).catch((function(e){o({errMsg:r[e]})}))}};function j(e){return e.nodeId||e.elementId}var V={getData:function(e){return S(T(e.pageId,j(e)),e.path)},setData:function(e){return P(T(e.pageId,j(e)),e.data)},callMethod:function(e){var t,r=j(e),o=((t={})[n.VM_NOT_EXISTS]="Component["+e.pageId+":"+r+"] not exists",t[n.METHOD_NOT_EXISTS]="component."+e.method+" not exists",t);return new Promise((function(t,n){b(T(e.pageId,r),e.method,e.args).then((function(e){return t(e)})).catch((function(e){n(Error(o[e]))}))}))}};function R(e){var t=getCurrentPages().find((function(t){return t.$page.id===e}));if(!t)throw Error("page["+e+"] not found");var n=t.$vm._$weex;return n.document.__$weex__||(n.document.__$weex__=n),n.document}var X={},J={};["text","image","input","textarea","video","web-view","slider"].forEach((function(e){X[e]=!0,J["u-"+e]=!0}));var z=["movable-view","picker","ad","button","checkbox-group","checkbox","form","icon","label","movable-area","navigator","picker-view-column","picker-view","progress","radio-group","radio","rich-text","u-slider","swiper-item","swiper","switch"],F=z.map((function(e){return f(l(e))}));function G(e){var t=e.type;if(J[t])return t.replace("u-","");var n=e.__vue__&&e.__vue__.$options.name;return"USlider"===n?"slider":n&&-1!==F.indexOf(n)?a(n):t}function K(e){var t={elementId:e.nodeId,tagName:G(e),nvue:!0},n=e.__vue__;return n&&!n.$options.isReserved&&(t.nodeId=n._uid),"video"===t.tagName&&(t.videoId=t.nodeId),t}function Y(e,t,n){for(var r=e.children,o=0;o<r.length;o++){var i=r[o];if(t(i)){if(!n)return i;n.push(i)}if(n)Y(i,t,n);else{var u=Y(i,t,n);if(u)return u}}return n}function Q(e,t,n){var r,o;if(0===t.indexOf("#")?(r=t.substr(1),o=function(e){return e.attr&&e.attr.id===r}):0===t.indexOf(".")&&(r=t.substr(1),o=function(e){return e.classList&&-1!==e.classList.indexOf(r)}),o){var i=Y(e,o,n);if(!i)throw Error("Node("+t+") not exists");return i}if("body"===t)return Object.assign({},e,{type:"page"});0===t.indexOf("uni-")&&(t=t.replace("uni-",""));var u=X[t]?"u-"+t:t,c=-1!==z.indexOf(u)?f(l(u)):"",a=Y(e,(function(e){return e.type===u||c&&e.__vue__&&e.__vue__.$options.name===c}),n);if(!a)throw Error("Node("+t+") not exists");return a}var Z=[{test:function(e){return 2===e.length&&-1!==e.indexOf("document.documentElement.scrollWidth")&&-1!==e.indexOf("document.documentElement.scrollHeight")},call:function(e){var t=e.__$weex__||e.ownerDocument.__$weex__;return new Promise((function(n){"scroll-view"===e.type&&1===e.children.length&&(e=e.children[0]),t.requireModule("dom").getComponentRect(e.ref,(function(e){e.result?n([e.size.width,e.size.height]):n([0,0])}))}))}},{test:function(e){return 1===e.length&&"document.documentElement.scrollTop"===e[0]},call:function(e){var t=e.__$weex__||e.ownerDocument.__$weex__;return new Promise((function(n){"scroll-view"===e.type&&1===e.children.length&&(e=e.children[0]),t.requireModule("dom").getComponentRect(e.ref,(function(e){n([e.size&&Math.abs(e.size.top)||0])}))}))}},{test:function(e){return 2===e.length&&-1!==e.indexOf("offsetWidth")&&-1!==e.indexOf("offsetHeight")},call:function(e){var t=e.__$weex__||e.ownerDocument.__$weex__;return new Promise((function(n){t.requireModule("dom").getComponentRect(e.ref,(function(e){e.result?n([e.size.width,e.size.height]):n([0,0])}))}))}},{test:function(e,t){return 1===e.length&&"innerText"===e[0]},call:function(e){return Promise.resolve([ee(e,[]).join("")])}}];function ee(e,t){return"u-text"===e.type?t.push(e.attr.value):e.pureChildren.map((function(e){return ee(e,t)})),t}function te(e){return e.replace(/\n/g,"").replace(/<u-/g,"<").replace(/<\/u-/g,"</")}function ne(e,t){return"outer"===t?"body"===e.role&&"scroll-view"===e.type?"<page>"+te(ne(e,"inner"))+"</page>":te(e.toString()):te(e.pureChildren.map((function(e){return e.toString()})).join(""))}var re={input:{input:function(e,t){e.setValue(t)}},textarea:{input:function(e,t){e.setValue(t)}},"scroll-view":{scrollTo:function(e,t,n){e.scrollTo(n)},scrollTop:function(e){return 0},scrollLeft:function(e){return 0},scrollWidth:function(e){return 0},scrollHeight:function(e){return 0}},swiper:{swipeTo:function(e,t){e.__vue__.current=t}},"movable-view":{moveTo:function(e,t,n){var r=e.__vue__;r.x=t,r.y=n}},switch:{tap:function(e){var t=e.__vue__;t.checked=!t.checked}},slider:{slideTo:function(e,t){e.__vue__.value=t}}};function oe(e){return R(e).body}var ie={getWindow:function(e){return oe(e)},getDocument:function(e){return oe(e)},getEl:function(e,t){var n=R(t).getRef(e);if(!n)throw Error("element destroyed");return n},getOffset:function(e){var t=e.__$weex__||e.ownerDocument.__$weex__;return new Promise((function(n){t.requireModule("dom").getComponentRect(e.ref,(function(e){e.result?n({left:e.size.left,top:e.size.top}):n({left:0,top:0})}))}))},querySelector:function(e,t){return Promise.resolve(K(Q(e,t)))},querySelectorAll:function(e,t){return Promise.resolve({elements:Q(e,t,[]).map((function(e){return K(e)}))})},queryProperties:function(e,t){var n=Z.find((function(n){return n.test(t,e)}));return n?n.call(e).then((function(e){return{properties:e}})):Promise.resolve({properties:t.map((function(t){return p(e,t)}))})},queryAttributes:function(e,t){var n=e.attr;return Promise.resolve({attributes:t.map((function(t){return"class"===t?(e.classList||[]).join(" "):String(n[t]||n[l(t)]||"")}))})},queryStyles:function(e,t){var n=e.style;return Promise.resolve({styles:t.map((function(e){return n[e]}))})},queryHTML:function(e,t){return Promise.resolve({html:ne(e,t)})},dispatchTapEvent:function(e){return e.fireEvent("click",{timeStamp:Date.now(),target:e,currentTarget:e},!0),Promise.resolve()},dispatchLongpressEvent:function(e){return e.fireEvent("longpress",{timeStamp:Date.now(),target:e,currentTarget:e},!0),Promise.resolve()},dispatchTouchEvent:function(e,t,n){return n||(n={}),n.touches||(n.touches=[]),n.changedTouches||(n.changedTouches=[]),n.touches.length||n.touches.push({identifier:Date.now(),target:e}),e.fireEvent(t,Object.assign({timeStamp:Date.now(),target:e,currentTarget:e},n),!0),Promise.resolve()},callFunction:function(e,n,r){var o=p(re,n);return o?Promise.resolve({result:o.apply(null,t([e],r))}):Promise.reject(Error(n+" not exists"))},triggerEvent:function(e,t,n){var r=e.__vue__;return r?r.$trigger&&r.$trigger(t,{},n):e.fireEvent(t,{timeStamp:Date.now(),target:e,currentTarget:e},!1,{params:[{detail:n}]}),Promise.resolve()}};function ue(){return Object.assign({},function(e){return{"Page.getElement":function(t){return e.querySelector(e.getDocument(t.pageId),t.selector)},"Page.getElements":function(t){return e.querySelectorAll(e.getDocument(t.pageId),t.selector)},"Page.getWindowProperties":function(t){return e.queryProperties(e.getWindow(t.pageId),t.names)}}}(ie),function(e){var t=function(t){return e.getEl(t.elementId,t.pageId)};return{"Element.getElement":function(n){return e.querySelector(t(n),n.selector)},"Element.getElements":function(n){return e.querySelectorAll(t(n),n.selector)},"Element.getDOMProperties":function(n){return e.queryProperties(t(n),n.names)},"Element.getProperties":function(n){var r=t(n),o=r.__vue__||r.attr||{};return r.__vueParentComponent&&(o=Object.assign({},o,r.__vueParentComponent.attrs,r.__vueParentComponent.props)),e.queryProperties(o,n.names)},"Element.getOffset":function(n){return e.getOffset(t(n))},"Element.getAttributes":function(n){return e.queryAttributes(t(n),n.names)},"Element.getStyles":function(n){return e.queryStyles(t(n),n.names)},"Element.getHTML":function(n){return e.queryHTML(t(n),n.type)},"Element.tap":function(n){return e.dispatchTapEvent(t(n))},"Element.longpress":function(n){return e.dispatchLongpressEvent(t(n))},"Element.touchstart":function(n){return e.dispatchTouchEvent(t(n),"touchstart",n)},"Element.touchmove":function(n){return e.dispatchTouchEvent(t(n),"touchmove",n)},"Element.touchend":function(n){return e.dispatchTouchEvent(t(n),"touchend",n)},"Element.callFunction":function(n){return e.callFunction(t(n),n.functionName,n.args)},"Element.triggerEvent":function(n){return e.triggerEvent(t(n),n.type,n.detail)}}}(ie))}var ce=function(){};ce.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t){for(var i=r.length-1;i>=0;i--)if(r[i].fn===t||r[i].fn._===t){r.splice(i,1);break}o=r}return o.length?n[e]=o:delete n[e],this}};var ae=ce;function se(e){var t=new ae;return{subscribe:function(n,r,o){void 0===o&&(o=!1),t[o?"once":"on"](e+"."+n,r)},subscribeHandler:function(n,r,o){t.emit(e+"."+n,r,o)}}}var le=Object.assign,fe=le(se("service"),{publishHandler:function(e,t,n){UniViewJSBridge.subscribeHandler(e,t,n)}}),de=le(se("view"),{publishHandler:function(e,t,n){UniServiceJSBridge.subscribeHandler(e,t,n)}});if("undefined"==typeof UniServiceJSBridge&&"undefined"==typeof UniViewJSBridge){var ge="undefined"==typeof globalThis?Function("return this")():globalThis;ge.UniServiceJSBridge=fe,ge.UniViewJSBridge=de}var pe={};Object.keys(B).forEach((function(e){pe["App."+e]=B[e]})),Object.keys(U).forEach((function(e){pe["Page."+e]=U[e]})),Object.keys(V).forEach((function(e){pe["Element."+e]=V[e]}));var ve,me,he,_e=process.env.UNI_AUTOMATOR_WS_ENDPOINT;function Ee(e){he.send({data:JSON.stringify(e)})}function ye(e){var t=JSON.parse(e.data),n=t.id,r=t.method,o=t.params,i={id:n},u=pe[r];if(!u){if(me){var c=me(n,r,o,i);if(!0===c)return;u=c}if(!u)return i.error={message:r+" unimplemented"},Ee(i)}try{u(o,Ee).then((function(e){e&&(i.result=e)})).catch((function(e){i.error={message:e.message}})).finally((function(){Ee(i)}))}catch(e){i.error={message:e.message},Ee(i)}}me=function(e,t,n,r){var o=n.pageId,i=function(e){var t=getCurrentPages();if(!e)return t[t.length-1];return t.find((function(t){return t.$page.id===e}))}(o);return i?!i.$page.meta.isNVue?(UniServiceJSBridge.publishHandler("sendAutoMessage",{id:e,method:t,params:n},o),!0):(ve||(ve=ue()),ve[t]):(r.error={message:"page["+o+"] not exists"},Ee(r),!0)},UniServiceJSBridge.subscribe("onAutoMessageReceive",(function(e){Ee(e)})),setTimeout((function(){if("undefined"!=typeof window&&window.__uniapp_x_)!function(e,t){var n=0;t&&(n=x++,O[n]=t);var r={data:{id:n,type:"automator",data:e}};console.log("postMessageToUniXWebView",r),"undefined"!=typeof window&&window.__uniapp_x_.postMessage(JSON.stringify(r))}({action:"ready"});else{if(_e&&_e.endsWith(":0000"))return;void 0===e&&(e={}),(he=uni.connectSocket({url:e.wsEndpoint||_e,complete:function(){}})).onMessage(ye),he.onOpen((function(t){e.success&&e.success(),console.log("已开启自动化测试...")})),he.onError((function(e){console.log("automator.onError",e)})),he.onClose((function(){e.fail&&e.fail({errMsg:"$$initRuntimeAutomator:fail"}),console.log("automator.onClose")}))}var e}),500);var we=Object.prototype.hasOwnProperty,Te=Array.isArray,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function Pe(e,t){if(Te(e))return e;if(t&&(n=t,r=e,we.call(n,r)))return[e];var n,r,o=[];return e.replace(Se,(function(e,t,n,r){return o.push(n?r.replace(/\\(\\)?/g,"$1"):t||e),r})),o}function be(e){if(e._$weex)return e._uid;if(e._$id)return e._$id;var t=function(e){for(var t=e.$parent;t;){if(t._$id)return t;t=t.$parent}}(e);if(!e.$parent)return"-1";var n=e.$vnode,r=n.context;return r&&r!==t&&r._$id?r._$id+";"+t._$id+","+n.data.attrs._i:t._$id+","+n.data.attrs._i}function $e(e){return"TEXT"===e.tagName||"TEXTAREA"===e.tagName}function xe(e){var t="";return e.childNodes.forEach((function(e){$e(e)?t+=e.getAttribute("value"):t+=xe(e)})),t}function Oe(e){return e.startsWith("uni-")?e.replace("uni-",""):e}var Ie=new Map;function Me(e){var t,n,r,o,i,u={elementId:(r=e,o=r._id,o||(o=Date.now()+"-"+Math.random(),r._id=o,Ie.set(o,{id:o,element:r})),o),tagName:e.tagName.toLocaleLowerCase().replace("uni-","")};e.__vue__?(i=e.__vue__)&&(i.$parent&&i.$parent.$el===e&&(i=i.$parent),i&&!(null===(t=i.$options)||void 0===t?void 0:t.isReserved)&&(u.nodeId=be(i))):(i=e.__vnode)&&(i.el===e&&(i=i.ctx.parent),i&&!(null===(n=i.type)||void 0===n?void 0:n.__reserved)&&(u.nodeId=be(i)));return"video"===u.tagName&&(u.videoId=u.nodeId),u}var Ce={input:{input:function(e,t){var n=e.__vue__;n?(n.valueSync=t,n.$triggerInput({},{value:t})):(n=e.__vnode).ctx.exposed.$triggerInput({value:t})}},textarea:{input:function(e,t){var n=e.__vue__;n?(n.valueSync=t,n.$triggerInput({},{value:t})):(n=e.__vnode).ctx.exposed.$triggerInput({value:t})}},"scroll-view":{scrollTo:function(e,t,n){var r=e.__vue__?e.__vue__.$refs.main:e;r.scrollLeft=t,r.scrollTop=n},scrollTop:function(e){return e.__vue__?e.__vue__.$refs.main.scrollTop:e.scrollTop},scrollLeft:function(e){return e.__vue__?e.__vue__.$refs.main.scrollLeft:e.scrollLeft},scrollWidth:function(e){return e.__vue__?e.__vue__.$refs.main.scrollWidth:e.scrollWidth},scrollHeight:function(e){return e.__vue__?e.__vue__.$refs.main.scrollHeight:e.scrollHeight}},swiper:{swipeTo:function(e,t){e.__vue__.current=t}},"movable-view":{moveTo:function(e,t,n){e.__vue__._animationTo(t,n)}},switch:{tap:function(e){e.click()}},slider:{slideTo:function(e,t){var n=e.__vue__,r=n.$refs["uni-slider"],o=r.offsetWidth,i=r.getBoundingClientRect().left;n.value=t,n._onClick({x:(t-n.min)*o/(n.max-n.min)+i})}}};function ke(e){var t=getCurrentPages().find((function(t){return t.$page.id===e}));if(!t)throw Error("page["+e+"] not found");return t.$el.parentNode}function Ae(e){var t,n=e.map((function(e){return function(e){if(document.createTouch)return document.createTouch(window,e.target,e.identifier,e.pageX,e.pageY,e.screenX,e.screenY);return new Touch(e)}(e)}));return document.createTouchList?(t=document).createTouchList.apply(t,n):n}var qe={getWindow:function(e){var t=ke(e);return 1===t.childNodes.length?t.childNodes[0]:t},getDocument:function(e){return ke(e)},getEl:function(e){var t=Ie.get(e);if(!t)throw Error("element destroyed");return t.element},getOffset:function(e){var t=e.getBoundingClientRect();return Promise.resolve({left:t.left,top:t.top})},querySelector:function(e,t){return"page"===(t=Oe(t))&&(t="body"),Promise.resolve(Me(e.querySelector(t)))},querySelectorAll:function(e,t){t=Oe(t);var n=[],r=e.querySelectorAll(t);return[].forEach.call(r,(function(e){try{n.push(Me(e))}catch(e){}})),Promise.resolve({elements:n})},queryProperties:function(e,t){return Promise.resolve({properties:t.map((function(t){return"innerText"==t?$e(e)?e.getAttribute("value"):xe(e):"value"==t?e.getAnyAttribute("value"):"offsetWidth"==t?e.offsetWidth:"offsetHeight"==t?e.offsetHeight:"document.documentElement.scrollWidth"===t?e.scrollWidth:"document.documentElement.scrollHeight"===t?e.scrollHeight:"document.documentElement.scrollTop"===t?e.scrollTop:"Element.getDOMProperties not support "+t}))})},queryAttributes:function(e,t){return Promise.resolve({attributes:t.map((function(t){return String(e.getAnyAttribute(t))}))})},queryStyles:function(e,t){var n=e._style;return Promise.resolve({styles:t.map((function(e){return n[e]}))})},queryHTML:function(e,t){return Promise.resolve({html:(n="outer"===t?e.outerHTML:e.innerHTML,n.replace(/\n/g,"").replace(/(<uni-text[^>]*>)(<span[^>]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(e){return-1<e.indexOf("<body")?"<page>":"</body>"===e?"</page>":0!==e.indexOf("<uni-")&&0!==e.indexOf("</uni-")?"":e.replace(/uni-/g,"").replace(/ role=""/g,"").replace(/ aria-label=""/g,"")})))});var n},dispatchTapEvent:function(e){return e.dispatchEvent("click",new UniPointerEvent("click")),Promise.resolve()},dispatchLongpressEvent:function(e){return Promise.resolve()},dispatchTouchEvent:function(e,t,n){n||(n={}),n.touches||(n.touches=[]),n.changedTouches||(n.changedTouches=[]),n.touches.length||n.touches.push({identifier:Date.now(),target:e});var r=Ae(n.touches),o=Ae(n.changedTouches),i=Ae([]);return e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,touches:r,targetTouches:i,changedTouches:o})),Promise.resolve()},callFunction:function(e,n,r){var o=function(e,t){var n,r=Pe(t,e);for(n=r.shift();null!=n;){if(null==(e=e[n]))return;n=r.shift()}return e}(Ce,n);return o?Promise.resolve({result:o.apply(null,t([e],r))}):Promise.reject(Error(n+" not exists"))},triggerEvent:function(e,t,n){var r=e.__vue__;return r.$trigger&&r.$trigger(t,{},n),Promise.resolve()}};var Ne=Object.assign({},function(e){return{"Page.getElement":function(t){return e.querySelector(e.getDocument(t.pageId),t.selector)},"Page.getElements":function(t){return e.querySelectorAll(e.getDocument(t.pageId),t.selector)},"Page.getWindowProperties":function(t){return e.queryProperties(e.getWindow(t.pageId),t.names)}}}(qe),function(e){var t=function(t){return e.getEl(t.elementId,t.pageId)};return{"Element.getElement":function(n){return e.querySelector(t(n),n.selector)},"Element.getElements":function(n){return e.querySelectorAll(t(n),n.selector)},"Element.getDOMProperties":function(n){return e.queryProperties(t(n),n.names)},"Element.getProperties":function(n){var r=t(n);return e.queryProperties(r,n.names)},"Element.getOffset":function(n){return e.getOffset(t(n))},"Element.getAttributes":function(n){return e.queryAttributes(t(n),n.names)},"Element.getStyles":function(n){return e.queryStyles(t(n),n.names)},"Element.getHTML":function(n){return e.queryHTML(t(n),n.type)},"Element.tap":function(n){return e.dispatchTapEvent(t(n))},"Element.longpress":function(n){return e.dispatchLongpressEvent(t(n))},"Element.touchstart":function(n){return e.dispatchTouchEvent(t(n),"touchstart",n)},"Element.touchmove":function(n){return e.dispatchTouchEvent(t(n),"touchmove",n)},"Element.touchend":function(n){return e.dispatchTouchEvent(t(n),"touchend",n)},"Element.callFunction":function(n){return e.callFunction(t(n),n.functionName,n.args)},"Element.triggerEvent":function(n){return e.triggerEvent(t(n),n.type,n.detail)}}}(qe));function We(e){return UniViewJSBridge.publishHandler("onAutoMessageReceive",e)}UniViewJSBridge.subscribe("sendAutoMessage",(function(e){var t=e.id,n=e.method,r=e.params,o={id:t};if("ping"==n)return o.result="pong",void We(o);var i=Ne[n];if(!i)return o.error={message:n+" unimplemented"},We(o);try{i(r).then((function(e){e&&(o.result=e)})).catch((function(e){o.error={message:e.message}})).finally((function(){We(o)}))}catch(e){o.error={message:e.message},We(o)}}));
e924ee2cc9bfe53e8c872930ce51f85e6ae1512d
2024-01-15 14:08:36
wangyaqi
fix(uni-app-x web): 调整build target支持低版本浏览器
false
调整build target支持低版本浏览器
fix
diff --git a/packages/uni-h5-vite/src/plugin/config.ts b/packages/uni-h5-vite/src/plugin/config.ts index 8db5f633d97..6b0adb595db 100644 --- a/packages/uni-h5-vite/src/plugin/config.ts +++ b/packages/uni-h5-vite/src/plugin/config.ts @@ -89,6 +89,9 @@ export function createConfig(options: { external, }, build: { + target: process.env.UNI_APP_X + ? ['es2015', 'edge79', 'firefox62', 'chrome64', 'safari11.1'] + : undefined, rollupOptions: { // resolveSSRExternal 会判定package.json,hbx 工程可能没有,通过 rollup 来配置 external: isSsr(env.command, config) ? external : [],
e98d659a65e1c41ffdbe51af386c042ef7c992f2
2022-12-21 11:42:01
fxy060608
chore: lock @dcloudio/[email protected]
false
lock @dcloudio/[email protected]
chore
diff --git a/package.json b/package.json index 8bbf8702807..a5527019cac 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "devDependencies": { "@babel/core": "^7.17.10", "@babel/preset-env": "^7.16.11", - "@dcloudio/types": "^3.2.2", + "@dcloudio/types": "3.0.20", "@dcloudio/uni-api": "3.0.0-alpha-3061520221220001", "@dcloudio/uni-app": "3.0.0-alpha-3061520221220001", "@jest/types": "^29.0.3", diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index cd09e319387..f4d8174ca0a 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -33,9 +33,9 @@ "@vue/shared": "3.2.45" }, "peerDependencies": { - "@dcloudio/types": "^3.2.2" + "@dcloudio/types": "3.0.20" }, "devDependencies": { - "@dcloudio/types": "^3.2.2" + "@dcloudio/types": "3.0.20" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 58fdbcb800e..850444ffa76 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: 5.3 +lockfileVersion: 5.4 importers: @@ -6,7 +6,7 @@ importers: specifiers: '@babel/core': ^7.17.10 '@babel/preset-env': ^7.16.11 - '@dcloudio/types': ^3.2.2 + '@dcloudio/types': 3.0.20 '@dcloudio/uni-api': 3.0.0-alpha-3061520221220001 '@dcloudio/uni-app': 3.0.0-alpha-3061520221220001 '@jest/types': ^29.0.3 @@ -59,13 +59,13 @@ importers: devDependencies: '@babel/core': 7.19.6 '@babel/preset-env': 7.19.4_@[email protected] - '@dcloudio/types': 3.2.2 + '@dcloudio/types': 3.0.20 '@dcloudio/uni-api': link:packages/uni-api '@dcloudio/uni-app': link:packages/uni-app '@jest/types': 29.3.1 '@microsoft/api-extractor': 7.33.6 '@rollup/plugin-alias': [email protected] - '@rollup/plugin-babel': 5.3.1_@[email protected][email protected] + '@rollup/plugin-babel': 5.3.1_vyv4jbhmcriklval33ak5sngky '@rollup/plugin-commonjs': [email protected] '@rollup/plugin-json': [email protected] '@rollup/plugin-node-resolve': [email protected] @@ -73,7 +73,7 @@ importers: '@rollup/plugin-strip': [email protected] '@types/jest': 29.2.3 '@types/node': 18.11.9 - '@typescript-eslint/parser': [email protected][email protected] + '@typescript-eslint/parser': 5.44.0_wy4udjehnvkneqnogzx5kughki '@vitejs/plugin-vue': [email protected][email protected] '@vitejs/plugin-vue-jsx': [email protected][email protected] '@vue/compiler-sfc': 3.2.45 @@ -98,14 +98,14 @@ importers: rollup-plugin-node-builtins: 2.1.2 rollup-plugin-node-globals: 1.4.0 rollup-plugin-terser: [email protected] - rollup-plugin-typescript2: [email protected][email protected] + rollup-plugin-typescript2: 0.29.0_ntuob3xud5wukob6phfmz2mbyy rollup-plugin-vue: 6.0.0_@[email protected] semver: 7.3.8 simple-git-hooks: 2.8.1 terser: 5.15.1 - ts-jest: 29.0.3_0851e7c1e6f225db69083958aa4d4f28 + ts-jest: 29.0.3_bbi6pqpg6is5w2iihfmkutkpfa typescript: 4.9.4 - vite: 3.2.5_acfac08db804951cc161eafca4c9a747 + vite: 3.2.5_vt5mbdnyaskrzqlb5l6kjsnhi4 vue: 3.2.45 vue-router: [email protected] yorkie: 2.0.0 @@ -135,7 +135,7 @@ importers: compression: 1.7.4 cypress: 10.11.0 serve-static: 1.15.0 - vite: 3.2.5_acfac08db804951cc161eafca4c9a747 + vite: 3.2.5 packages/size-check: specifiers: @@ -169,7 +169,7 @@ importers: packages/uni-app: specifiers: - '@dcloudio/types': ^3.2.2 + '@dcloudio/types': 3.0.20 '@dcloudio/uni-cloud': 3.0.0-alpha-3061520221220001 '@dcloudio/uni-components': 3.0.0-alpha-3061520221220001 '@dcloudio/uni-i18n': 3.0.0-alpha-3061520221220001 @@ -186,7 +186,7 @@ importers: '@dcloudio/uni-stat': link:../uni-stat '@vue/shared': 3.2.45 devDependencies: - '@dcloudio/types': 3.2.2 + '@dcloudio/types': 3.0.20 packages/uni-app-plus: specifiers: @@ -259,7 +259,7 @@ importers: '@vue/compiler-core': 3.2.45 esbuild: 0.15.12 postcss: 8.4.18 - vite: 3.2.5_acfac08db804951cc161eafca4c9a747 + vite: 3.2.5 vue: 3.2.45 packages/uni-app-vue: @@ -941,7 +941,7 @@ importers: '@types/sass': 1.43.1 '@vue/babel-plugin-jsx': 1.1.1_@[email protected] chokidar: 3.5.3 - vite: 3.2.5_acfac08db804951cc161eafca4c9a747 + vite: [email protected] vue: 3.2.45 packages: @@ -2124,6 +2124,13 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true + /@colors/colors/1.5.0: + resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} + engines: {node: '>=0.1.90'} + requiresBuild: true + dev: true + optional: true + /@cypress/request/2.88.10: resolution: {integrity: sha512-Zp7F+R93N0yZyG34GutyTNr+okam7s/Fzc1+i3kcqOP8vk6OuajuE9qZJ6Rs+10/1JFtXFYMdyarnU1rZuJesg==} engines: {node: '>= 6'} @@ -2148,21 +2155,39 @@ packages: uuid: 8.3.2 dev: true - /@cypress/xvfb/1.2.4: + /@cypress/xvfb/[email protected]: resolution: {integrity: sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==} dependencies: - debug: 3.2.7 + debug: [email protected] lodash.once: 4.1.1 + transitivePeerDependencies: + - supports-color dev: true /@dcloudio/types/2.6.12: resolution: {integrity: sha512-mrCMwcINy1IFjU9VUqLeWBkj404yWs5paLDttBcA+eqUjanuUQbBcTVPqlrGgkyzLXDcV2oDDZRSNxNpXi4kMQ==} dev: true - /@dcloudio/types/3.2.2: - resolution: {integrity: sha512-efHpsZABWdOEIVYI6dYtG1OTXfum1JQB5b6KTeIQLRNealQxnGGsPGecMk4YHLGamRoev0Fy/k6wUITYYKzbJQ==} + /@dcloudio/types/3.0.20: + resolution: {integrity: sha512-rZ4okvj3LCN77rzZWtQg/uQLL4DPl72XjNdmRxTXgboGpBYuyjJ9V9do87RkHNM0bA0l0RIUoy3nh7P6Exb3hA==} dev: true + /@esbuild/android-arm/0.15.12: + resolution: {integrity: sha512-IC7TqIqiyE0MmvAhWkl/8AEzpOtbhRNDo7aph47We1NbE5w2bt/Q+giAhe0YYeVpYnIhGMcuZY92qDK6dQauvA==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/linux-loong64/0.15.12: + resolution: {integrity: sha512-tZEowDjvU7O7I04GYvWQOS4yyP9E/7YlsB0jjw1Ycukgr2ycEzKyIk5tms5WnLBymaewc6VmRKnn5IJWgK4eFw==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + optional: true + /@eslint/eslintrc/1.3.3: resolution: {integrity: sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2397,7 +2422,7 @@ packages: collect-v8-coverage: 1.0.1 exit: 0.1.2 glob: 7.2.3 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 istanbul-lib-coverage: 3.2.0 istanbul-lib-instrument: 5.2.1 istanbul-lib-report: 3.0.0 @@ -2427,7 +2452,7 @@ packages: dependencies: '@jridgewell/trace-mapping': 0.3.17 callsites: 3.1.0 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 dev: true /@jest/test-result/29.3.1: @@ -2445,7 +2470,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/test-result': 29.3.1 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jest-haste-map: 29.3.1 slash: 3.0.0 dev: true @@ -2461,7 +2486,7 @@ packages: chalk: 4.1.2 convert-source-map: 2.0.0 fast-json-stable-stringify: 2.1.0 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jest-haste-map: 29.3.1 jest-regex-util: 29.2.0 jest-util: 29.3.1 @@ -2600,7 +2625,7 @@ packages: slash: 3.0.0 dev: true - /@rollup/plugin-babel/5.3.1_@[email protected][email protected]: + /@rollup/plugin-babel/5.3.1_vyv4jbhmcriklval33ak5sngky: resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==} engines: {node: '>= 10.0.0'} peerDependencies: @@ -2997,7 +3022,15 @@ packages: '@types/yargs-parser': 21.0.0 dev: true - /@typescript-eslint/parser/[email protected][email protected]: + /@types/yauzl/2.9.2: + resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==} + requiresBuild: true + dependencies: + '@types/node': 18.11.9 + dev: true + optional: true + + /@typescript-eslint/parser/5.44.0_wy4udjehnvkneqnogzx5kughki: resolution: {integrity: sha512-H7LCqbZnKqkkgQHaKLGC6KUjt3pjJDx8ETDqmwncyb6PuoigYajyAwBGz08VU/l86dZWZgI4zm5k2VaKqayYyA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -3072,7 +3105,7 @@ packages: regenerator-runtime: 0.13.10 systemjs: 6.13.0 terser: 5.15.1 - vite: 3.2.5_acfac08db804951cc161eafca4c9a747 + vite: [email protected] dev: false /@vitejs/plugin-vue-jsx/[email protected][email protected]: @@ -3085,7 +3118,7 @@ packages: '@babel/core': 7.19.6 '@babel/plugin-transform-typescript': 7.20.0_@[email protected] '@vue/babel-plugin-jsx': 1.1.1_@[email protected] - vite: 3.2.5_acfac08db804951cc161eafca4c9a747 + vite: 3.2.5_vt5mbdnyaskrzqlb5l6kjsnhi4 vue: 3.2.45 transitivePeerDependencies: - supports-color @@ -3097,7 +3130,7 @@ packages: vite: ^3.0.0 vue: ^3.2.25 dependencies: - vite: 3.2.5_acfac08db804951cc161eafca4c9a747 + vite: 3.2.5_vt5mbdnyaskrzqlb5l6kjsnhi4 vue: 3.2.45 /@vue/babel-helper-vue-transform-on/1.0.2: @@ -3493,7 +3526,7 @@ packages: babel-plugin-istanbul: 6.1.1 babel-preset-jest: 29.2.0_@[email protected] chalk: 4.1.2 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 slash: 3.0.0 transitivePeerDependencies: - supports-color @@ -3655,6 +3688,8 @@ packages: raw-body: 2.5.1 type-is: 1.6.18 unpipe: 1.0.0 + transitivePeerDependencies: + - supports-color dev: false /brace-expansion/1.1.11: @@ -3867,7 +3902,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: registry.npmjs.org/fsevents/2.3.2 + fsevents: 2.3.2 /ci-info/1.6.0: resolution: {integrity: sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==} @@ -3906,7 +3941,7 @@ packages: dependencies: string-width: 4.2.3 optionalDependencies: - '@colors/colors': registry.npmjs.org/@colors/colors/1.5.0 + '@colors/colors': 1.5.0 dev: true /cli-truncate/2.1.0: @@ -4018,6 +4053,8 @@ packages: on-headers: 1.0.2 safe-buffer: 5.1.2 vary: 1.1.2 + transitivePeerDependencies: + - supports-color dev: true /concat-map/0.0.1: @@ -4219,7 +4256,7 @@ packages: requiresBuild: true dependencies: '@cypress/request': 2.88.10 - '@cypress/xvfb': 1.2.4 + '@cypress/xvfb': [email protected] '@types/node': 14.18.33 '@types/sinonjs__fake-timers': 8.1.1 '@types/sizzle': 2.3.3 @@ -4275,13 +4312,24 @@ packages: /debug/2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true dependencies: ms: 2.0.0 - /debug/3.2.7: + /debug/[email protected]: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true dependencies: ms: 2.1.3 + supports-color: 8.1.1 dev: true /debug/4.3.4: @@ -4494,34 +4542,194 @@ packages: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} dev: false + /esbuild-android-64/0.15.12: + resolution: {integrity: sha512-MJKXwvPY9g0rGps0+U65HlTsM1wUs9lbjt5CU19RESqycGFDRijMDQsh68MtbzkqWSRdEtiKS1mtPzKneaAI0Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + optional: true + + /esbuild-android-arm64/0.15.12: + resolution: {integrity: sha512-Hc9SEcZbIMhhLcvhr1DH+lrrec9SFTiRzfJ7EGSBZiiw994gfkVV6vG0sLWqQQ6DD7V4+OggB+Hn0IRUdDUqvA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + /esbuild-darwin-64/0.15.12: + resolution: {integrity: sha512-qkmqrTVYPFiePt5qFjP8w/S+GIUMbt6k8qmiPraECUWfPptaPJUGkCKrWEfYFRWB7bY23FV95rhvPyh/KARP8Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /esbuild-darwin-arm64/0.15.12: + resolution: {integrity: sha512-z4zPX02tQ41kcXMyN3c/GfZpIjKoI/BzHrdKUwhC/Ki5BAhWv59A9M8H+iqaRbwpzYrYidTybBwiZAIWCLJAkw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /esbuild-freebsd-64/0.15.12: + resolution: {integrity: sha512-XFL7gKMCKXLDiAiBjhLG0XECliXaRLTZh6hsyzqUqPUf/PY4C6EJDTKIeqqPKXaVJ8+fzNek88285krSz1QECw==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + /esbuild-freebsd-arm64/0.15.12: + resolution: {integrity: sha512-jwEIu5UCUk6TjiG1X+KQnCGISI+ILnXzIzt9yDVrhjug2fkYzlLbl0K43q96Q3KB66v6N1UFF0r5Ks4Xo7i72g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + /esbuild-linux-32/0.15.12: + resolution: {integrity: sha512-uSQuSEyF1kVzGzuIr4XM+v7TPKxHjBnLcwv2yPyCz8riV8VUCnO/C4BF3w5dHiVpCd5Z1cebBtZJNlC4anWpwA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + /esbuild-linux-64/0.15.12: + resolution: {integrity: sha512-QcgCKb7zfJxqT9o5z9ZUeGH1k8N6iX1Y7VNsEi5F9+HzN1OIx7ESxtQXDN9jbeUSPiRH1n9cw6gFT3H4qbdvcA==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /esbuild-linux-arm/0.15.12: + resolution: {integrity: sha512-Wf7T0aNylGcLu7hBnzMvsTfEXdEdJY/hY3u36Vla21aY66xR0MS5I1Hw8nVquXjTN0A6fk/vnr32tkC/C2lb0A==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /esbuild-linux-arm64/0.15.12: + resolution: {integrity: sha512-HtNq5xm8fUpZKwWKS2/YGwSfTF+339L4aIA8yphNKYJckd5hVdhfdl6GM2P3HwLSCORS++++7++//ApEwXEuAQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /esbuild-linux-mips64le/0.15.12: + resolution: {integrity: sha512-Qol3+AvivngUZkTVFgLpb0H6DT+N5/zM3V1YgTkryPYFeUvuT5JFNDR3ZiS6LxhyF8EE+fiNtzwlPqMDqVcc6A==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + /esbuild-linux-ppc64le/0.15.12: + resolution: {integrity: sha512-4D8qUCo+CFKaR0cGXtGyVsOI7w7k93Qxb3KFXWr75An0DHamYzq8lt7TNZKoOq/Gh8c40/aKaxvcZnTgQ0TJNg==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + /esbuild-linux-riscv64/0.15.12: + resolution: {integrity: sha512-G9w6NcuuCI6TUUxe6ka0enjZHDnSVK8bO+1qDhMOCtl7Tr78CcZilJj8SGLN00zO5iIlwNRZKHjdMpfFgNn1VA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + /esbuild-linux-s390x/0.15.12: + resolution: {integrity: sha512-Lt6BDnuXbXeqSlVuuUM5z18GkJAZf3ERskGZbAWjrQoi9xbEIsj/hEzVnSAFLtkfLuy2DE4RwTcX02tZFunXww==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + /esbuild-netbsd-64/0.15.12: + resolution: {integrity: sha512-jlUxCiHO1dsqoURZDQts+HK100o0hXfi4t54MNRMCAqKGAV33JCVvMplLAa2FwviSojT/5ZG5HUfG3gstwAG8w==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + /esbuild-openbsd-64/0.15.12: + resolution: {integrity: sha512-1o1uAfRTMIWNOmpf8v7iudND0L6zRBYSH45sofCZywrcf7NcZA+c7aFsS1YryU+yN7aRppTqdUK1PgbZVaB1Dw==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + /esbuild-sunos-64/0.15.12: + resolution: {integrity: sha512-nkl251DpoWoBO9Eq9aFdoIt2yYmp4I3kvQjba3jFKlMXuqQ9A4q+JaqdkCouG3DHgAGnzshzaGu6xofGcXyPXg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + /esbuild-windows-32/0.15.12: + resolution: {integrity: sha512-WlGeBZHgPC00O08luIp5B2SP4cNCp/PcS+3Pcg31kdcJPopHxLkdCXtadLU9J82LCfw4TVls21A6lilQ9mzHrw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /esbuild-windows-64/0.15.12: + resolution: {integrity: sha512-VActO3WnWZSN//xjSfbiGOSyC+wkZtI8I4KlgrTo5oHJM6z3MZZBCuFaZHd8hzf/W9KPhF0lY8OqlmWC9HO5AA==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + /esbuild-windows-arm64/0.15.12: + resolution: {integrity: sha512-Of3MIacva1OK/m4zCNIvBfz8VVROBmQT+gRX6pFTLPngFYcj6TFH/12VveAqq1k9VB2l28EoVMNMUCcmsfwyuA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + /esbuild/0.15.12: resolution: {integrity: sha512-PcT+/wyDqJQsRVhaE9uX/Oq4XLrFh0ce/bs2TJh4CSaw9xuvI+xFrH2nAYOADbhQjUgAhNWC5LKoUsakm4dxng==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': registry.npmjs.org/@esbuild/android-arm/0.15.12 - '@esbuild/linux-loong64': registry.npmjs.org/@esbuild/linux-loong64/0.15.12 - esbuild-android-64: registry.npmjs.org/esbuild-android-64/0.15.12 - esbuild-android-arm64: registry.npmjs.org/esbuild-android-arm64/0.15.12 - esbuild-darwin-64: registry.npmjs.org/esbuild-darwin-64/0.15.12 - esbuild-darwin-arm64: registry.npmjs.org/esbuild-darwin-arm64/0.15.12 - esbuild-freebsd-64: registry.npmjs.org/esbuild-freebsd-64/0.15.12 - esbuild-freebsd-arm64: registry.npmjs.org/esbuild-freebsd-arm64/0.15.12 - esbuild-linux-32: registry.npmjs.org/esbuild-linux-32/0.15.12 - esbuild-linux-64: registry.npmjs.org/esbuild-linux-64/0.15.12 - esbuild-linux-arm: registry.npmjs.org/esbuild-linux-arm/0.15.12 - esbuild-linux-arm64: registry.npmjs.org/esbuild-linux-arm64/0.15.12 - esbuild-linux-mips64le: registry.npmjs.org/esbuild-linux-mips64le/0.15.12 - esbuild-linux-ppc64le: registry.npmjs.org/esbuild-linux-ppc64le/0.15.12 - esbuild-linux-riscv64: registry.npmjs.org/esbuild-linux-riscv64/0.15.12 - esbuild-linux-s390x: registry.npmjs.org/esbuild-linux-s390x/0.15.12 - esbuild-netbsd-64: registry.npmjs.org/esbuild-netbsd-64/0.15.12 - esbuild-openbsd-64: registry.npmjs.org/esbuild-openbsd-64/0.15.12 - esbuild-sunos-64: registry.npmjs.org/esbuild-sunos-64/0.15.12 - esbuild-windows-32: registry.npmjs.org/esbuild-windows-32/0.15.12 - esbuild-windows-64: registry.npmjs.org/esbuild-windows-64/0.15.12 - esbuild-windows-arm64: registry.npmjs.org/esbuild-windows-arm64/0.15.12 + '@esbuild/android-arm': 0.15.12 + '@esbuild/linux-loong64': 0.15.12 + esbuild-android-64: 0.15.12 + esbuild-android-arm64: 0.15.12 + esbuild-darwin-64: 0.15.12 + esbuild-darwin-arm64: 0.15.12 + esbuild-freebsd-64: 0.15.12 + esbuild-freebsd-arm64: 0.15.12 + esbuild-linux-32: 0.15.12 + esbuild-linux-64: 0.15.12 + esbuild-linux-arm: 0.15.12 + esbuild-linux-arm64: 0.15.12 + esbuild-linux-mips64le: 0.15.12 + esbuild-linux-ppc64le: 0.15.12 + esbuild-linux-riscv64: 0.15.12 + esbuild-linux-s390x: 0.15.12 + esbuild-netbsd-64: 0.15.12 + esbuild-openbsd-64: 0.15.12 + esbuild-sunos-64: 0.15.12 + esbuild-windows-32: 0.15.12 + esbuild-windows-64: 0.15.12 + esbuild-windows-arm64: 0.15.12 /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -4789,6 +4997,8 @@ packages: type-is: 1.6.18 utils-merge: 1.0.1 vary: 1.1.2 + transitivePeerDependencies: + - supports-color dev: false /extend/3.0.2: @@ -4804,7 +5014,7 @@ packages: get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: - '@types/yauzl': registry.npmjs.org/@types/yauzl/2.9.2 + '@types/yauzl': 2.9.2 transitivePeerDependencies: - supports-color dev: true @@ -4884,6 +5094,8 @@ packages: parseurl: 1.3.3 statuses: 2.0.1 unpipe: 1.0.0 + transitivePeerDependencies: + - supports-color dev: false /find-cache-dir/3.3.2: @@ -4964,7 +5176,7 @@ packages: resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} engines: {node: '>=6 <7 || >=8'} dependencies: - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jsonfile: 4.0.0 universalify: 0.1.2 dev: true @@ -4992,6 +5204,13 @@ packages: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true + /fsevents/2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + optional: true + /function-bind/1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} @@ -5577,7 +5796,7 @@ packages: ci-info: 3.5.0 deepmerge: 4.2.2 glob: 7.2.3 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jest-circus: 29.3.1 jest-environment-node: 29.3.1 jest-get-type: 29.2.0 @@ -5649,14 +5868,14 @@ packages: '@types/node': 18.11.9 anymatch: 3.1.2 fb-watchman: 2.0.2 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jest-regex-util: 29.2.0 jest-util: 29.3.1 jest-worker: 29.3.1 micromatch: 4.0.5 walker: 1.0.8 optionalDependencies: - fsevents: registry.npmjs.org/fsevents/2.3.2 + fsevents: 2.3.2 dev: true /jest-leak-detector/29.3.1: @@ -5685,7 +5904,7 @@ packages: '@jest/types': 29.3.1 '@types/stack-utils': 2.0.1 chalk: 4.1.2 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 micromatch: 4.0.5 pretty-format: 29.3.1 slash: 3.0.0 @@ -5733,7 +5952,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: chalk: 4.1.2 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jest-haste-map: 29.3.1 jest-pnp-resolver: [email protected] jest-util: 29.3.1 @@ -5755,7 +5974,7 @@ packages: '@types/node': 18.11.9 chalk: 4.1.2 emittery: 0.13.1 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jest-docblock: 29.2.0 jest-environment-node: 29.3.1 jest-haste-map: 29.3.1 @@ -5788,7 +6007,7 @@ packages: cjs-module-lexer: 1.2.2 collect-v8-coverage: 1.0.1 glob: 7.2.3 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jest-haste-map: 29.3.1 jest-message-util: 29.3.1 jest-mock: 29.3.1 @@ -5820,7 +6039,7 @@ packages: babel-preset-current-node-syntax: 1.0.1_@[email protected] chalk: 4.1.2 expect: 29.3.1 - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 jest-diff: 29.3.1 jest-get-type: 29.2.0 jest-haste-map: 29.3.1 @@ -5994,7 +6213,7 @@ packages: /jsonfile/4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} optionalDependencies: - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 dev: true /jsonfile/6.1.0: @@ -6002,7 +6221,7 @@ packages: dependencies: universalify: 2.0.0 optionalDependencies: - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: 4.2.10 /jsprim/2.0.2: resolution: {integrity: sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==} @@ -7207,7 +7426,7 @@ packages: terser: 5.15.1 dev: true - /rollup-plugin-typescript2/[email protected][email protected]: + /rollup-plugin-typescript2/0.29.0_ntuob3xud5wukob6phfmz2mbyy: resolution: {integrity: sha512-YytahBSZCIjn/elFugEGQR5qTsVhxhUwGZIsA9TmrSsC88qroGo65O5HZP/TTArH2dm0vUmYWhKchhwi2wL9bw==} peerDependencies: rollup: '>=1.26.3' @@ -7246,7 +7465,7 @@ packages: engines: {node: '>=10.0.0'} hasBin: true optionalDependencies: - fsevents: registry.npmjs.org/fsevents/2.3.2 + fsevents: 2.3.2 /run-parallel/1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -7315,6 +7534,8 @@ packages: on-finished: 2.4.1 range-parser: 1.2.1 statuses: 2.0.1 + transitivePeerDependencies: + - supports-color /serialize-javascript/4.0.0: resolution: {integrity: sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==} @@ -7330,6 +7551,8 @@ packages: escape-html: 1.0.3 parseurl: 1.3.3 send: 0.18.0 + transitivePeerDependencies: + - supports-color /setprototypeof/1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -7689,7 +7912,7 @@ packages: punycode: 2.1.1 dev: true - /ts-jest/29.0.3_0851e7c1e6f225db69083958aa4d4f28: + /ts-jest/29.0.3_bbi6pqpg6is5w2iihfmkutkpfa: resolution: {integrity: sha512-Ibygvmuyq1qp/z3yTh9QTwVVAbFdDy/+4BtIQR2sp6baF2SJU/8CKK/hhnGIDY2L90Az2jIqTwZPnN2p+BweiQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -7908,7 +8131,73 @@ packages: extsprintf: 1.3.0 dev: true - /vite/3.2.5_acfac08db804951cc161eafca4c9a747: + /vite/3.2.5: + resolution: {integrity: sha512-4mVEpXpSOgrssFZAOmGIr85wPHKvaDAcXqxVxVRZhljkJOMZi1ibLibzjLHzJvcok8BMguLc7g1W6W/GqZbLdQ==} + engines: {node: ^14.18.0 || >=16.0.0} + hasBin: true + peerDependencies: + '@types/node': '>= 14' + less: '*' + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.15.12 + postcss: 8.4.18 + resolve: 1.22.1 + rollup: 2.79.1 + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /vite/[email protected]: + resolution: {integrity: sha512-4mVEpXpSOgrssFZAOmGIr85wPHKvaDAcXqxVxVRZhljkJOMZi1ibLibzjLHzJvcok8BMguLc7g1W6W/GqZbLdQ==} + engines: {node: ^14.18.0 || >=16.0.0} + hasBin: true + peerDependencies: + '@types/node': '>= 14' + less: '*' + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.15.12 + postcss: 8.4.18 + resolve: 1.22.1 + rollup: 2.79.1 + terser: 5.15.1 + optionalDependencies: + fsevents: 2.3.2 + + /vite/3.2.5_vt5mbdnyaskrzqlb5l6kjsnhi4: resolution: {integrity: sha512-4mVEpXpSOgrssFZAOmGIr85wPHKvaDAcXqxVxVRZhljkJOMZi1ibLibzjLHzJvcok8BMguLc7g1W6W/GqZbLdQ==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -7940,8 +8229,7 @@ packages: rollup: 2.79.1 terser: 5.15.1 optionalDependencies: - fsevents: registry.npmjs.org/fsevents/2.3.2 - dev: true + fsevents: 2.3.2 /vlq/0.2.3: resolution: {integrity: sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==} @@ -8187,266 +8475,5 @@ packages: lodash.isequal: 4.5.0 validator: 13.7.0 optionalDependencies: - commander: registry.npmjs.org/commander/2.20.3 - dev: true - - registry.npmjs.org/@colors/colors/1.5.0: - resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz} - name: '@colors/colors' - version: 1.5.0 - engines: {node: '>=0.1.90'} - requiresBuild: true - dev: true - optional: true - - registry.npmjs.org/@esbuild/android-arm/0.15.12: - resolution: {integrity: sha512-IC7TqIqiyE0MmvAhWkl/8AEzpOtbhRNDo7aph47We1NbE5w2bt/Q+giAhe0YYeVpYnIhGMcuZY92qDK6dQauvA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.12.tgz} - name: '@esbuild/android-arm' - version: 0.15.12 - engines: {node: '>=12'} - cpu: [arm] - os: [android] - requiresBuild: true - optional: true - - registry.npmjs.org/@esbuild/linux-loong64/0.15.12: - resolution: {integrity: sha512-tZEowDjvU7O7I04GYvWQOS4yyP9E/7YlsB0jjw1Ycukgr2ycEzKyIk5tms5WnLBymaewc6VmRKnn5IJWgK4eFw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.12.tgz} - name: '@esbuild/linux-loong64' - version: 0.15.12 - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/@types/yauzl/2.9.2: - resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.2.tgz} - name: '@types/yauzl' - version: 2.9.2 - requiresBuild: true - dependencies: - '@types/node': 18.11.9 - dev: true - optional: true - - registry.npmjs.org/commander/2.20.3: - resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/commander/-/commander-2.20.3.tgz} - name: commander - version: 2.20.3 - requiresBuild: true + commander: 2.20.3 dev: true - optional: true - - registry.npmjs.org/esbuild-android-64/0.15.12: - resolution: {integrity: sha512-MJKXwvPY9g0rGps0+U65HlTsM1wUs9lbjt5CU19RESqycGFDRijMDQsh68MtbzkqWSRdEtiKS1mtPzKneaAI0Q==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.12.tgz} - name: esbuild-android-64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-android-arm64/0.15.12: - resolution: {integrity: sha512-Hc9SEcZbIMhhLcvhr1DH+lrrec9SFTiRzfJ7EGSBZiiw994gfkVV6vG0sLWqQQ6DD7V4+OggB+Hn0IRUdDUqvA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.12.tgz} - name: esbuild-android-arm64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-darwin-64/0.15.12: - resolution: {integrity: sha512-qkmqrTVYPFiePt5qFjP8w/S+GIUMbt6k8qmiPraECUWfPptaPJUGkCKrWEfYFRWB7bY23FV95rhvPyh/KARP8Q==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.12.tgz} - name: esbuild-darwin-64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-darwin-arm64/0.15.12: - resolution: {integrity: sha512-z4zPX02tQ41kcXMyN3c/GfZpIjKoI/BzHrdKUwhC/Ki5BAhWv59A9M8H+iqaRbwpzYrYidTybBwiZAIWCLJAkw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.12.tgz} - name: esbuild-darwin-arm64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-freebsd-64/0.15.12: - resolution: {integrity: sha512-XFL7gKMCKXLDiAiBjhLG0XECliXaRLTZh6hsyzqUqPUf/PY4C6EJDTKIeqqPKXaVJ8+fzNek88285krSz1QECw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.12.tgz} - name: esbuild-freebsd-64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-freebsd-arm64/0.15.12: - resolution: {integrity: sha512-jwEIu5UCUk6TjiG1X+KQnCGISI+ILnXzIzt9yDVrhjug2fkYzlLbl0K43q96Q3KB66v6N1UFF0r5Ks4Xo7i72g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.12.tgz} - name: esbuild-freebsd-arm64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-linux-32/0.15.12: - resolution: {integrity: sha512-uSQuSEyF1kVzGzuIr4XM+v7TPKxHjBnLcwv2yPyCz8riV8VUCnO/C4BF3w5dHiVpCd5Z1cebBtZJNlC4anWpwA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.12.tgz} - name: esbuild-linux-32 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-linux-64/0.15.12: - resolution: {integrity: sha512-QcgCKb7zfJxqT9o5z9ZUeGH1k8N6iX1Y7VNsEi5F9+HzN1OIx7ESxtQXDN9jbeUSPiRH1n9cw6gFT3H4qbdvcA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.12.tgz} - name: esbuild-linux-64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-linux-arm/0.15.12: - resolution: {integrity: sha512-Wf7T0aNylGcLu7hBnzMvsTfEXdEdJY/hY3u36Vla21aY66xR0MS5I1Hw8nVquXjTN0A6fk/vnr32tkC/C2lb0A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.12.tgz} - name: esbuild-linux-arm - version: 0.15.12 - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-linux-arm64/0.15.12: - resolution: {integrity: sha512-HtNq5xm8fUpZKwWKS2/YGwSfTF+339L4aIA8yphNKYJckd5hVdhfdl6GM2P3HwLSCORS++++7++//ApEwXEuAQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.12.tgz} - name: esbuild-linux-arm64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-linux-mips64le/0.15.12: - resolution: {integrity: sha512-Qol3+AvivngUZkTVFgLpb0H6DT+N5/zM3V1YgTkryPYFeUvuT5JFNDR3ZiS6LxhyF8EE+fiNtzwlPqMDqVcc6A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.12.tgz} - name: esbuild-linux-mips64le - version: 0.15.12 - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-linux-ppc64le/0.15.12: - resolution: {integrity: sha512-4D8qUCo+CFKaR0cGXtGyVsOI7w7k93Qxb3KFXWr75An0DHamYzq8lt7TNZKoOq/Gh8c40/aKaxvcZnTgQ0TJNg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.12.tgz} - name: esbuild-linux-ppc64le - version: 0.15.12 - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-linux-riscv64/0.15.12: - resolution: {integrity: sha512-G9w6NcuuCI6TUUxe6ka0enjZHDnSVK8bO+1qDhMOCtl7Tr78CcZilJj8SGLN00zO5iIlwNRZKHjdMpfFgNn1VA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.12.tgz} - name: esbuild-linux-riscv64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-linux-s390x/0.15.12: - resolution: {integrity: sha512-Lt6BDnuXbXeqSlVuuUM5z18GkJAZf3ERskGZbAWjrQoi9xbEIsj/hEzVnSAFLtkfLuy2DE4RwTcX02tZFunXww==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.12.tgz} - name: esbuild-linux-s390x - version: 0.15.12 - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-netbsd-64/0.15.12: - resolution: {integrity: sha512-jlUxCiHO1dsqoURZDQts+HK100o0hXfi4t54MNRMCAqKGAV33JCVvMplLAa2FwviSojT/5ZG5HUfG3gstwAG8w==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.12.tgz} - name: esbuild-netbsd-64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-openbsd-64/0.15.12: - resolution: {integrity: sha512-1o1uAfRTMIWNOmpf8v7iudND0L6zRBYSH45sofCZywrcf7NcZA+c7aFsS1YryU+yN7aRppTqdUK1PgbZVaB1Dw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.12.tgz} - name: esbuild-openbsd-64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-sunos-64/0.15.12: - resolution: {integrity: sha512-nkl251DpoWoBO9Eq9aFdoIt2yYmp4I3kvQjba3jFKlMXuqQ9A4q+JaqdkCouG3DHgAGnzshzaGu6xofGcXyPXg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.12.tgz} - name: esbuild-sunos-64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-windows-32/0.15.12: - resolution: {integrity: sha512-WlGeBZHgPC00O08luIp5B2SP4cNCp/PcS+3Pcg31kdcJPopHxLkdCXtadLU9J82LCfw4TVls21A6lilQ9mzHrw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.12.tgz} - name: esbuild-windows-32 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-windows-64/0.15.12: - resolution: {integrity: sha512-VActO3WnWZSN//xjSfbiGOSyC+wkZtI8I4KlgrTo5oHJM6z3MZZBCuFaZHd8hzf/W9KPhF0lY8OqlmWC9HO5AA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.12.tgz} - name: esbuild-windows-64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - optional: true - - registry.npmjs.org/esbuild-windows-arm64/0.15.12: - resolution: {integrity: sha512-Of3MIacva1OK/m4zCNIvBfz8VVROBmQT+gRX6pFTLPngFYcj6TFH/12VveAqq1k9VB2l28EoVMNMUCcmsfwyuA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.12.tgz} - name: esbuild-windows-arm64 - version: 0.15.12 - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - optional: true - - registry.npmjs.org/fsevents/2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz} - name: fsevents - version: 2.3.2 - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - optional: true - - registry.npmjs.org/graceful-fs/4.2.10: - resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz} - name: graceful-fs - version: 4.2.10
fd4f8c649b4cb1acf312ddc9893d1faedce18718
2021-08-04 14:30:09
fxy060608
fix(app): css-post
false
css-post
fix
diff --git a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts index 60a34537196..914c0104b3f 100644 --- a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts +++ b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts @@ -190,11 +190,19 @@ function normalizeCssChunkFilename(id: string) { function findCssModuleIds( this: PluginContext, moduleId: string, - cssModuleIds?: Set<string> + cssModuleIds?: Set<string>, + seen?: Set<string> ) { if (!cssModuleIds) { cssModuleIds = new Set<string>() } + if (!seen) { + seen = new Set<string>() + } + if (seen.has(moduleId)) { + return cssModuleIds + } + seen.add(moduleId) const moduleInfo = this.getModuleInfo(moduleId) if (moduleInfo) { moduleInfo.importedIds.forEach((id) => { @@ -205,7 +213,7 @@ function findCssModuleIds( if (cssLangRE.test(id) && !commonjsProxyRE.test(id)) { cssModuleIds!.add(id) } else { - findCssModuleIds.call(this, id, cssModuleIds) + findCssModuleIds.call(this, id, cssModuleIds, seen) } }) }
e1afff5508e0c3b1ec9c3c9c721217a5e7439712
2024-09-14 09:13:47
r-u
release: v3.0.0-alpha-4020820240914001
false
v3.0.0-alpha-4020820240914001
release
diff --git a/package.json b/package.json index f54b697bbdc..b510a498c59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "workspaces": [ "packages/*" ], @@ -49,10 +49,10 @@ "@babel/parser": "^7.23.9", "@babel/preset-env": "^7.20.2", "@dcloudio/types": "3.4.11", - "@dcloudio/uni-api": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-app": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-api": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-app": "3.0.0-alpha-4020820240914001", "@dcloudio/uni-app-x": "^0.7.30", - "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4020620240828001", + "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4020820240914001", "@jest/types": "^29.0.3", "@microsoft/api-extractor": "^7.34.5", "@rollup/plugin-alias": "^4.0.2", diff --git a/packages/size-check/package.json b/packages/size-check/package.json index 44a1e185f0e..5be910525a9 100644 --- a/packages/size-check/package.json +++ b/packages/size-check/package.json @@ -1,17 +1,17 @@ { "private": true, "name": "@dcloudio/size-check", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "dependencies": { - "@dcloudio/uni-app": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-h5": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-app": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-h5": "3.0.0-alpha-4020820240914001", "vue": "3.4.21", "vue-i18n": "9.1.9", "vuex": "^4.1.0" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-components": "3.0.0-alpha-4020520240719001", - "@dcloudio/vite-plugin-uni": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-components": "3.0.0-alpha-4020820240914001", + "@dcloudio/vite-plugin-uni": "3.0.0-alpha-4020820240914001" } } diff --git a/packages/uni-api/package.json b/packages/uni-api/package.json index 68b8bebccb9..14e0eaba8e2 100644 --- a/packages/uni-api/package.json +++ b/packages/uni-api/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-api", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-api", "sideEffects": false, "module": "src/index.ts", @@ -18,6 +18,6 @@ "@vue/shared": "3.4.21" }, "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001" } } diff --git a/packages/uni-app-harmony/dist/uni-api-shared.ets b/packages/uni-app-harmony/dist/uni-api-shared.ets deleted file mode 100644 index fdda60a6023..00000000000 --- a/packages/uni-app-harmony/dist/uni-api-shared.ets +++ /dev/null @@ -1,142 +0,0 @@ -import { defineAsyncApi as originalDefineAsyncApi, defineOffApi as originalDefineOffApi, defineOnApi as originalDefineOnApi, defineSyncApi as originalDefineSyncApi, defineTaskApi as originalDefineTaskApi } from "@dcloudio/uni-mp-sdk"; -interface UniProvider { - id: string; - description: string; -} -const providers: Map<String, Map<String, UniProvider>> = new Map(); -function getUniProvider<T extends UniProvider>(service: string, providerName: String): T | null { - return providers.get(service)?.get(providerName) as T | null; -} -function getUniProviders(service: string): UniProvider[] { - const result: UniProvider[] = []; - providers.get(service)?.forEach((provider)=>{ - result.push(provider); - }); - return result; -} -function registerUniProvider<T extends UniProvider>(service: string, providerName: string, provider: T) { - if (!providers.has(service)) { - providers.set(service, new Map()); - } - providers.get(service)?.set(providerName, provider); -} -type Anything = Object | null | undefined; -type NullType = null | undefined; -type FormatArgsValueType = Function | string | number | boolean; -interface AsyncApiSuccessResult { -} -interface AsyncApiResult { -} -interface ApiError { - errMsg?: string | null; - errCode?: number | null; -} -interface ApiExecutor<K> { - resolve: (res?: K | void) => void; - reject: (errMsg?: string, errRes?: ApiError) => void; -} -interface ProtocolOptions { - name?: string | null; - type?: string | null; - required?: boolean | null; - validator?: (value: Object) => boolean | undefined | string; -} -interface ApiOptions<T> { - beforeInvoke?: (args: Object) => boolean | void | string; - beforeAll?: (res: Object) => void; - beforeSuccess?: (res: Object, args: T) => void; - formatArgs?: Map<string, FormatArgsValueType>; -} -interface AsyncMethodOptionLike { - success?: Function | null; -} -const TYPE_MAP = new Map<string, Object>([ - [ - 'string', - String - ], - [ - 'number', - Number - ], - [ - 'boolean', - Boolean - ], - [ - 'array', - Array - ], - [ - 'object', - Object - ] -]); -function getPropType(type: string | NullType): Anything { - if (!type) { - return; - } - return TYPE_MAP.get(type); -} -function buildProtocol(protocol: Map<string, ProtocolOptions> | null = null) { - const originalProtocol = {} as Record<string, Object>; - protocol?.forEach((value, key)=>{ - const protocol = originalProtocol[key] = {} as Record<string, Anything>; - protocol.name = value.name; - protocol.type = getPropType(value.type); - protocol.required = value.required; - protocol.validator = value.validator; - }); - return originalProtocol; -} -function buildOptions(options: ApiOptions<AsyncMethodOptionLike> | null = null) { - const originalFormatArgs = {} as Record<string, FormatArgsValueType>; - const originalOptions = {} as Record<string, Anything>; - if (options) { - if (options.formatArgs) { - options.formatArgs.forEach((value, key)=>{ - originalFormatArgs[key] = value; - }); - } - originalOptions.beforeInvoke = options.beforeInvoke; - originalOptions.beforeAll = options.beforeAll; - originalOptions.beforeSuccess = options.beforeSuccess; - originalOptions.formatArgs = originalFormatArgs; - } - return originalOptions; -} -function defineAsyncApi<T extends AsyncMethodOptionLike, K>(name: string, fn: (options: T, res: ApiExecutor<K>) => void, protocol: Map<string, ProtocolOptions> | null = null, options: ApiOptions<T> | null = null): Function { - const originalProtocol = buildProtocol(protocol); - const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); - return originalDefineAsyncApi(name, fn, originalProtocol, originalOptions); -} -function defineTaskApi<T, K, TASK>(name: string, fn: (options: T, res: ApiExecutor<K>) => TASK, protocol: Map<string, ProtocolOptions>, options: ApiOptions<T>): Object { - const originalProtocol = buildProtocol(protocol); - const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); - return originalDefineTaskApi(name, fn, originalProtocol, originalOptions); -} -function defineSyncApi<K>(name: string, fn: Function, protocol: Map<string, ProtocolOptions> | null = null, options: ApiOptions<Object> | null = null): (...args: Object[]) => K { - const originalProtocol = buildProtocol(protocol); - const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); - return originalDefineSyncApi(name, fn, originalProtocol, originalOptions); -} -function defineOnApi<T>(name: string, fn: () => void, options: ApiOptions<T> | null = null): Function { - const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); - return originalDefineOnApi(name, fn, originalOptions); -} -function defineOffApi<T>(name: string, fn: () => void, options: ApiOptions<T> | null = null): Function { - const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); - return originalDefineOffApi(name, fn, originalOptions); -} -export { UniProvider as UniProvider, getUniProvider as getUniProvider, getUniProviders as getUniProviders, registerUniProvider as registerUniProvider }; -export { AsyncApiSuccessResult as AsyncApiSuccessResult }; -export { AsyncApiResult as AsyncApiResult }; -export { ApiError as ApiError }; -export { ApiExecutor as ApiExecutor }; -export { ProtocolOptions as ProtocolOptions }; -export { ApiOptions as ApiOptions }; -export { defineAsyncApi as defineAsyncApi }; -export { defineTaskApi as defineTaskApi }; -export { defineSyncApi as defineSyncApi }; -export { defineOnApi as defineOnApi }; -export { defineOffApi as defineOffApi }; diff --git a/packages/uni-app-harmony/dist/uni.api.ets b/packages/uni-app-harmony/dist/uni.api.ets deleted file mode 100644 index 45c287465aa..00000000000 --- a/packages/uni-app-harmony/dist/uni.api.ets +++ /dev/null @@ -1,8020 +0,0 @@ -import Want from '@ohos.app.ability.Want'; -import common from '@ohos.app.ability.common'; -import wantConstant from '@ohos.app.ability.wantConstant'; -import buffer from '@ohos.buffer'; -import deviceInfo from '@ohos.deviceInfo'; -import fs from '@ohos.file.fs'; -import photoAccessHelper from '@ohos.file.photoAccessHelper'; -import inputMethod from '@ohos.inputMethod'; -import image from '@ohos.multimedia.image'; -import connection from '@ohos.net.connection'; -import http from '@ohos.net.http'; -import webSocket from '@ohos.net.webSocket'; -import call from '@ohos.telephony.call'; -import radio from '@ohos.telephony.radio'; -import webview from '@ohos.web.webview'; -import { BusinessError as BusinessError1 } from '@kit.BasicServicesKit'; -import { BusinessError as BusinessError10 } from '@ohos.base'; -import { BusinessError as BusinessError2 } from '@ohos.base'; -import { BusinessError as BusinessError3 } from '@kit.BasicServicesKit'; -import { BusinessError as BusinessError4 } from '@kit.BasicServicesKit'; -import { BusinessError as BusinessError5 } from '@kit.BasicServicesKit'; -import { BusinessError as BusinessError6 } from '@kit.BasicServicesKit'; -import { BusinessError as BusinessError7 } from '@kit.BasicServicesKit'; -import { BusinessError as BusinessError8 } from '@kit.BasicServicesKit'; -import { BusinessError as BusinessError9 } from '@ohos.base'; -import { BusinessError } from '@kit.BasicServicesKit'; -import { Emitter as Emitter5, getCurrentMP as getCurrentMP4 } from "@dcloudio/uni-mp-sdk"; -import { Emitter } from "@dcloudio/uni-mp-sdk"; -import Hash from '@ohos.file.hash'; -import I18n from '@ohos.i18n'; -import I18n1 from '@ohos.i18n'; -import I18n2 from '@ohos.i18n'; -import { ListFileOptions } from '@ohos.file.fs'; -import { ReadOptions } from '@ohos.file.fs'; -import { UTSHarmony as UTSHarmony1 } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony10 } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony2 } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony3 } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony4, getDeviceId } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony5, Emitter as Emitter1, waitForCurrentNativePage } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony6 } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony7, getWindowInfo as internalGetWindowInfo, getDeviceId as getDeviceId1 } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony8 } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony as UTSHarmony9 } from "@dcloudio/uni-mp-sdk"; -import { UTSHarmony } from "@dcloudio/uni-mp-sdk"; -import { UTSObject, UTSJSONObject } from "@dcloudio/uts-harmony"; -import { UniProvider, IUniError, UniError, string, AsyncApiSuccessResult, AsyncApiResult, ProtocolOptions, defineAsyncApi, ApiExecutor, getUniProvider, ApiError, ApiOptions, defineSyncApi, getUniProviders, defineTaskApi } from "@dcloudio/uni-app-harmony"; -import Want1 from '@ohos.app.ability.Want'; -import { abilityAccessCtrl } from '@kit.AbilityKit'; -import { access } from '@kit.ConnectivityKit'; -import { audio as audio1 } from '@kit.AudioKit'; -import { audio } from '@kit.AudioKit'; -import { avSession } from '@kit.AVSessionKit'; -import { backgroundTaskManager } from '@kit.BackgroundTasksKit'; -import { bundleManager } from '@kit.AbilityKit'; -import bundleManager1 from '@ohos.bundle.bundleManager'; -import bundleManager2 from '@ohos.bundle.bundleManager'; -import { camera } from '@kit.CameraKit'; -import { cameraPicker as cameraPicker1 } from '@kit.CameraKit'; -import { cameraPicker } from '@kit.CameraKit'; -import { clipboard } from "@dcloudio/uni-mp-sdk"; -import common1 from '@ohos.app.ability.common'; -import common2 from '@ohos.app.ability.common'; -import common3 from '@ohos.app.ability.common'; -import common4 from '@ohos.app.ability.common'; -import { contact } from '@kit.ContactsKit'; -import dataPreferences from '@ohos.data.preferences'; -import deviceInfo1 from '@ohos.deviceInfo'; -import { display } from '@kit.ArkUI'; -import { fileIo as fileIo1 } from '@kit.CoreFileKit'; -import { fileIo as fileIo2 } from '@kit.CoreFileKit'; -import { fileIo as fileIo3 } from '@kit.CoreFileKit'; -import { fileIo as fileIo4 } from '@kit.CoreFileKit'; -import { fileIo as fs2 } from '@kit.CoreFileKit'; -import { fileIo } from '@kit.CoreFileKit'; -import fileUri from '@ohos.file.fileuri'; -import fs1 from '@ohos.file.fs'; -import fs3 from '@ohos.file.fs'; -import fs4 from '@ohos.file.fs'; -import fs5 from '@ohos.file.fs'; -import { geoLocationManager } from '@kit.LocationKit'; -import { getAbilityContext as getAbilityContext1 } from "@dcloudio/uni-mp-sdk"; -import { getAbilityContext as getAbilityContext3 } from "@dcloudio/uni-mp-sdk"; -import { getAbilityContext as getAbilityContext4, getCurrentWindow as getCurrentWindow2 } from "@dcloudio/uni-mp-sdk"; -import { getAbilityContext as getAbilityContext5 } from "@dcloudio/uni-mp-sdk"; -import { getAbilityContext as getAbilityContext6 } from "@dcloudio/uni-mp-sdk"; -import { getAbilityContext as getAbilityContext7 } from "@dcloudio/uni-mp-sdk"; -import { getAbilityContext as getAbilityContext8 } from "@dcloudio/uni-mp-sdk"; -import { getAbilityContext as getAbilityContext9, getCurrentMP as getCurrentMP3 } from "@dcloudio/uni-mp-sdk"; -import { getAbilityContext } from "@dcloudio/uni-mp-sdk"; -import { getCurrentWindow as getCurrentWindow1 } from "@dcloudio/uni-mp-sdk"; -import { getCurrentWindow as getCurrentWindow3 } from "@dcloudio/uni-mp-sdk"; -import { getCurrentWindow as getCurrentWindow4 } from "@dcloudio/uni-mp-sdk"; -import { getCurrentWindow as getCurrentWindow5 } from "@dcloudio/uni-mp-sdk"; -import { getCurrentWindow } from "@dcloudio/uni-mp-sdk"; -import { getEnv as getEnv1 } from "@dcloudio/uni-mp-sdk"; -import { getEnv as getEnv2 } from "@dcloudio/uni-mp-sdk"; -import { getEnv as getEnv3, Emitter as Emitter4, getCurrentMP as getCurrentMP2 } from "@dcloudio/uni-mp-sdk"; -import { getEnv, getRealPath } from "@dcloudio/uni-mp-sdk"; -import { getOSRuntime as getOSRuntime1, waitForCurrentNativePage as waitForCurrentNativePage2 } from "@dcloudio/uni-mp-sdk"; -import { getOSRuntime } from "@dcloudio/uni-mp-sdk"; -import { getRealPath as getRealPath1 } from "@dcloudio/uni-mp-sdk"; -import { getRealPath as getRealPath2, waitForCurrentNativePage as waitForCurrentNativePage1 } from "@dcloudio/uni-mp-sdk"; -import { getRealPath as getRealPath3, Emitter as Emitter3, getCurrentMP as getCurrentMP1 } from "@dcloudio/uni-mp-sdk"; -import { getResourceStr, getAbilityContext as getAbilityContext2 } from "@dcloudio/uni-mp-sdk"; -import { getTabBar } from "@dcloudio/uni-mp-sdk"; -import harmonyUrl from '@ohos.url'; -import harmonyUrl1 from '@ohos.url'; -import harmonyWindow from '@ohos.window'; -import http1 from '@ohos.net.http'; -import http2 from '@ohos.net.http'; -import { image as image1 } from '@kit.ImageKit'; -import { isPlainObject, Emitter as Emitter2, getCurrentMP } from "@dcloudio/uni-mp-sdk"; -import { media as media1 } from '@kit.MediaKit'; -import { media } from '@kit.MediaKit'; -import media2 from '@ohos.multimedia.media'; -import media3 from '@ohos.multimedia.media'; -import { notificationManager } from '@kit.NotificationKit'; -import photoAccessHelper1 from '@ohos.file.photoAccessHelper'; -import photoAccessHelper2 from '@ohos.file.photoAccessHelper'; -import photoAccessHelper3 from '@ohos.file.photoAccessHelper'; -import photoAccessHelper4 from '@ohos.file.photoAccessHelper'; -import { picker, fileIo as fileIo5 } from '@kit.CoreFileKit'; -import { promptAction as promptAction1 } from '@kit.ArkUI'; -import { promptAction as promptAction2 } from '@kit.ArkUI'; -import { promptAction as promptAction4 } from '@kit.ArkUI'; -import { promptAction } from '@kit.ArkUI'; -import promptAction3 from '@ohos.promptAction'; -import promptAction5 from '@ohos.promptAction'; -import { scanCore, scanBarcode } from '@kit.ScanKit'; -import { startPullDownRefresh as internalStartPullDownRefresh, stopPullDownRefresh as internalStopPullDownRefresh } from "@dcloudio/uni-mp-sdk"; -import { systemShare } from '@kit.ShareKit'; -import { uni } from "@dcloudio/uni-mp-sdk"; -import { uniformTypeDescriptor } from '@kit.ArkData'; -import { userAuth } from '@kit.UserAuthenticationKit'; -import { wantAgent } from '@kit.AbilityKit'; -import { wifiManager } from '@kit.ConnectivityKit'; -import { window as window1 } from '@kit.ArkUI'; -import { window as window2 } from '@kit.ArkUI'; -import { window } from '@kit.ArkUI'; -export interface UniOAuthProvider extends UniProvider { - login(options: LoginOptions): void; - getUserInfo(options: GetUserInfoOptions): void; -} -export type Login = (options: LoginOptions) => void; -class AppleLoginAppleInfo extends UTSObject { - authorizationCode: string | null = null; - fullName: Object | null = null; - identityToken: string | null = null; - realUserStatus: number | null = null; - user: string | null = null; -} -export class LoginSuccess extends UTSObject { - errMsg!: string; - authResult!: Object; - code!: string; - anonymousCode: string | null = null; - authCode: string | null = null; - authErrorScope: Object | null = null; - authSucessScope: (string[]) | null = null; - appleInfo: AppleLoginAppleInfo | null = null; -} -type LoginSuccessCallback = (result: LoginSuccess) => void; -export type LoginFail = IUniError; -type LoginFailCallback = (result: LoginFail) => void; -type LoginComplete = Object; -type LoginCompleteCallback = (result: LoginComplete) => void; -export class LoginOptions extends UTSObject { - provider: 'weixin' | 'qq' | 'sinaweibo' | 'xiaomi' | 'apple' | 'univerify' | 'huawei' | null = null; - scopes: Object | null = null; - timeout: number | null = null; - univerifyStyle: UniverifyStyle | null = null; - onlyAuthorize: boolean | null = null; - success: LoginSuccessCallback | null = null; - fail: LoginFailCallback | null = null; - complete: LoginCompleteCallback | null = null; -} -class UniverifyIconStyles extends UTSObject { - path!: string; - width: string | null = null; - height: string | null = null; -} -class UniverifyPhoneNumStyles extends UTSObject { - color: string | null = null; - fontSize: string | null = null; -} -class UniverifySloganStyles extends UTSObject { - color: string | null = null; - fontSize: string | null = null; -} -class UniverifyAuthButtonStyles extends UTSObject { - normalColor: string | null = null; - highlightColor: string | null = null; - disabledColor: string | null = null; - width: string | null = null; - height: string | null = null; - textColor: string | null = null; - title: string | null = null; - borderRadius: string | null = null; -} -class UniverifyOtherButtonStyles extends UTSObject { - visible: boolean | null = null; - normalColor: string | null = null; - highlightColor: string | null = null; - width: string | null = null; - height: string | null = null; - textColor: string | null = null; - title: string | null = null; - borderWidth: string | null = null; - borderColor: string | null = null; - borderRadius: string | null = null; -} -class UniverifyPrivacyItemStyles extends UTSObject { - url!: string; - title!: string; -} -class UniverifyPrivacyTermsStyles extends UTSObject { - defaultCheckBoxState: boolean | null = null; - textColor: string | null = null; - termsColor: string | null = null; - prefix: string | null = null; - suffix: string | null = null; - fontSize: string | null = null; - privacyItems: (UniverifyPrivacyItemStyles[]) | null = null; -} -class UniVerifyButtonListItem extends UTSObject { - provider!: string; - iconPath!: string; -} -class UniVerifyButtonsStyles extends UTSObject { - iconWidth: string | null = null; - list!: UniVerifyButtonListItem[]; -} -class UniverifyStyle extends UTSObject { - fullScreen: boolean | null = null; - backgroundColor: string | null = null; - backgroundImage: string | null = null; - icon: UniverifyIconStyles | null = null; - phoneNum: UniverifyPhoneNumStyles | null = null; - slogan: UniverifySloganStyles | null = null; - authButton: UniverifyAuthButtonStyles | null = null; - otherLoginButton: UniverifyOtherButtonStyles | null = null; - privacyTerms: UniverifyPrivacyTermsStyles | null = null; - buttons: UniVerifyButtonsStyles | null = null; -} -export type GetUserInfo = (options: GetUserInfoOptions) => void; -export class UserInfo extends UTSObject { - nickName!: string; - openId: string | null = null; - avatarUrl!: string; -} -export class GetUserInfoSuccess extends UTSObject { - userInfo!: UserInfo; - rawData: string | null = null; - signature: string | null = null; - encryptedData: string | null = null; - iv: string | null = null; - errMsg!: string; -} -type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void; -export type GetUserInfoFail = IUniError; -type GetUserInfoFailCallback = (result: GetUserInfoFail) => void; -type GetUserInfoComplete = Object; -type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void; -export class GetUserInfoOptions extends UTSObject { - provider: 'weixin' | 'qq' | 'sinaweibo' | 'xiaomi' | 'apple' | 'huawei' | null = null; - withCredentials: boolean | null = null; - lang: string | null = null; - timeout: number | null = null; - success: GetUserInfoSuccessCallback | null = null; - fail: GetUserInfoFailCallback | null = null; - complete: GetUserInfoCompleteCallback | null = null; -} -export interface UniPaymentProvider extends UniProvider { - requestPayment(options: RequestPaymentOptions): void; -} -type RequestPaymentErrorCode = 700600 | 701100 | 701110 | 700601 | 700602 | 700603 | 700000 | 700604 | 700605 | 700607 | 700608 | 700800 | 700801; -export type RequestPayment = (options: RequestPaymentOptions) => void; -export class RequestPaymentSuccess extends UTSObject { - data: object | null = null; -} -type RequestPaymentSuccessCallback = (result: RequestPaymentSuccess) => void; -export type RequestPaymentFail = IRequestPaymentFail; -type RequestPaymentFailCallback = (result: RequestPaymentFail) => void; -type RequestPaymentComplete = Object; -interface IRequestPaymentFail extends IUniError { - errCode: RequestPaymentErrorCode; -} -type RequestPaymentCompleteCallback = (result: RequestPaymentComplete) => void; -export class RequestPaymentOptions extends UTSObject { - provider!: string; - orderInfo!: string; - success: RequestPaymentSuccessCallback | null = null; - fail: RequestPaymentFailCallback | null = null; - complete: RequestPaymentCompleteCallback | null = null; -} -type AddPhoneContact = (options: AddPhoneContactOptions) => void; -class AddPhoneContactSuccess extends UTSObject { -} -class UniError1 extends UTSObject { - errSubject!: string; - errCode!: number; - errMsg!: string; - data: object | null = null; - cause: Object | null = null; -} -type AddPhoneContactSuccessCallback = (result: AddPhoneContactSuccess) => void; -type AddPhoneContactFail = UniError1; -type AddPhoneContactFailCallback = (result: AddPhoneContactFail) => void; -type AddPhoneContactComplete = Object; -type AddPhoneContactCompleteCallback = (result: AddPhoneContactComplete) => void; -class AddPhoneContactOptions extends UTSObject { - photoFilePath: string | null = null; - nickName: string | null = null; - lastName: string | null = null; - middleName: string | null = null; - firstName: string | null = null; - remark: string | null = null; - mobilePhoneNumber: string | null = null; - weChatNumber: string | null = null; - addressCountry: string | null = null; - addressState: string | null = null; - addressCity: string | null = null; - addressStreet: string | null = null; - addressPostalCode: string | null = null; - organization: string | null = null; - title: string | null = null; - workFaxNumber: string | null = null; - workPhoneNumber: string | null = null; - hostNumber: string | null = null; - email: string | null = null; - url: string | null = null; - workAddressCountry: string | null = null; - workAddressState: string | null = null; - workAddressCity: string | null = null; - workAddressStreet: string | null = null; - workAddressPostalCode: string | null = null; - homeFaxNumber: string | null = null; - homePhoneNumber: string | null = null; - homeAddressCountry: string | null = null; - homeAddressState: string | null = null; - homeAddressCity: string | null = null; - homeAddressStreet: string | null = null; - homeAddressPostalCode: string | null = null; - success: AddPhoneContactSuccessCallback | null = null; - fail: AddPhoneContactFailCallback | null = null; - complete: AddPhoneContactCompleteCallback | null = null; -} -type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void; -type SoterAuthMode = 'fingerPrint' | 'facial' | 'speech'; -class StartSoterAuthenticationSuccess extends UTSObject { - errCode!: number; - authMode!: SoterAuthMode; - resultJSON: string | null = null; - resultJSONSignature: string | null = null; - errMsg!: string; -} -type StartSoterAuthenticationSuccessCallback = (result: StartSoterAuthenticationSuccess) => void; -type StartSoterAuthenticationFail = UniError2; -class UniError2 extends UTSObject { - errSubject!: string; - errCode!: number; - errMsg!: string; - data: object | null = null; - cause: Object | null = null; -} -type StartSoterAuthenticationFailCallback = (result: StartSoterAuthenticationFail) => void; -type StartSoterAuthenticationComplete = Object; -type StartSoterAuthenticationCompleteCallback = (result: StartSoterAuthenticationComplete) => void; -class StartSoterAuthenticationOptions extends UTSObject { - requestAuthModes!: SoterAuthMode[]; - challenge: string | null = null; - authContent: string | null = null; - success: StartSoterAuthenticationSuccessCallback | null = null; - fail: StartSoterAuthenticationFailCallback | null = null; - complete: StartSoterAuthenticationCompleteCallback | null = null; -} -type CheckIsSupportSoterAuthentication = (options: CheckIsSupportSoterAuthenticationOptions) => void; -class CheckIsSupportSoterAuthenticationSuccess extends UTSObject { - supportMode!: SoterAuthMode[]; - errMsg!: string; -} -type CheckIsSupportSoterAuthenticationSuccessCallback = (result: CheckIsSupportSoterAuthenticationSuccess) => void; -type CheckIsSupportSoterAuthenticationFail = UniError2; -type CheckIsSupportSoterAuthenticationFailCallback = (result: CheckIsSupportSoterAuthenticationFail) => void; -type CheckIsSupportSoterAuthenticationComplete = Object; -type CheckIsSupportSoterAuthenticationCompleteCallback = (result: CheckIsSupportSoterAuthenticationComplete) => void; -class CheckIsSupportSoterAuthenticationOptions extends UTSObject { - success: CheckIsSupportSoterAuthenticationSuccessCallback | null = null; - fail: CheckIsSupportSoterAuthenticationFailCallback | null = null; - complete: CheckIsSupportSoterAuthenticationCompleteCallback | null = null; -} -type CheckIsSoterEnrolledInDevice = (options: CheckIsSoterEnrolledInDeviceOptions) => void; -class CheckIsSoterEnrolledInDeviceSuccess extends UTSObject { - isEnrolled!: boolean; - errMsg!: string; -} -type CheckIsSoterEnrolledInDeviceSuccessCallback = (result: CheckIsSoterEnrolledInDeviceSuccess) => void; -type CheckIsSoterEnrolledInDeviceFail = UniError2; -type CheckIsSoterEnrolledInDeviceFailCallback = (result: CheckIsSoterEnrolledInDeviceFail) => void; -type CheckIsSoterEnrolledInDeviceComplete = Object; -type CheckIsSoterEnrolledInDeviceCompleteCallback = (result: CheckIsSoterEnrolledInDeviceComplete) => void; -class CheckIsSoterEnrolledInDeviceOptions extends UTSObject { - checkAuthMode!: SoterAuthMode; - success: CheckIsSoterEnrolledInDeviceSuccessCallback | null = null; - fail: CheckIsSoterEnrolledInDeviceFailCallback | null = null; - complete: CheckIsSoterEnrolledInDeviceCompleteCallback | null = null; -} -export type SetClipboardData = (options: SetClipboardDataOptions) => void; -export class SetClipboardDataSuccess extends UTSObject { -} -type SetClipboardDataSuccessCallback = (result: SetClipboardDataSuccess) => void; -type SetClipboardDataFail = UniError; -type SetClipboardDataFailCallback = (result: SetClipboardDataFail) => void; -type SetClipboardDataComplete = Object; -type SetClipboardDataCompleteCallback = (result: SetClipboardDataComplete) => void; -export class SetClipboardDataOptions extends UTSObject { - data!: string; - showToast: boolean | null = null; - success: SetClipboardDataSuccessCallback | null = null; - fail: SetClipboardDataFailCallback | null = null; - complete: SetClipboardDataCompleteCallback | null = null; -} -export type GetClipboardData = (options: GetClipboardDataOptions) => void; -export class GetClipboardDataSuccess extends UTSObject { - data!: string; -} -type GetClipboardDataSuccessCallback = (result: GetClipboardDataSuccess) => void; -type GetClipboardDataFail = UniError; -type GetClipboardDataFailCallback = (result: GetClipboardDataFail) => void; -type GetClipboardDataComplete = Object; -type GetClipboardDataCompleteCallback = (result: GetClipboardDataComplete) => void; -export class GetClipboardDataOptions extends UTSObject { - success: GetClipboardDataSuccessCallback | null = null; - fail: GetClipboardDataFailCallback | null = null; - complete: GetClipboardDataCompleteCallback | null = null; -} -interface ClipboardModuleGetStringOptions { - result: string; - data: string; -} -type CreateInnerAudioContext = () => InnerAudioContext; -interface InnerAudioContext { - duration: number; - currentTime: number; - paused: boolean; - src: string; - startTime: number; - buffered: number; - autoplay: boolean; - loop: boolean; - obeyMuteSwitch: boolean; - volume: number; - playbackRate?: number; - pause(): void; - stop(): void; - play(): void; - seek(position: number): void; - destroy(): void; - onCanplay(callback: (result: Object) => void): void; - onPlay(callback: (result: Object) => void): void; - onPause(callback: (result: Object) => void): void; - onStop(callback: (result: Object) => void): void; - onEnded(callback: (result: Object) => void): void; - onTimeUpdate(callback: (result: Object) => void): void; - onError(callback: (result: Object) => void): void; - onWaiting(callback: (result: Object) => void): void; - onSeeking(callback: (result: Object) => void): void; - onSeeked(callback: (result: Object) => void): void; - offCanplay(callback: (result: Object) => void): void; - offPlay(callback: (result: Object) => void): void; - offPause(callback: (result: Object) => void): void; - offStop(callback: (result: Object) => void): void; - offEnded(callback: (result: Object) => void): void; - offTimeUpdate(callback: (result: Object) => void): void; - offError(callback: (result: Object) => void): void; - offWaiting(callback: (result: Object) => void): void; - offSeeking(callback: (result: Object) => void): void; - offSeeked(callback: (result: Object) => void): void; -} -type $OnCallback = Function; -type $On = (eventName: string, callback: $OnCallback) => void; -type $OnceCallback = Function; -type $Once = (eventName: string, callback: $OnceCallback) => void; -type $OffCallback = Function; -type $Off = (eventName: string, callback?: $OffCallback | null) => void; -type $Emit = (eventName: string, args: Object | null) => void; -interface IUniEventEmitter { - on: (eventName: string, callback: Function) => void; - once: (eventName: string, callback: Function) => void; - off: (eventName: string, callback?: Function | null) => void; - emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; -} -class ExitSuccess extends UTSObject { - errMsg!: string; -} -type ExitErrorCode = 12001 | 12002; -interface IExitError extends IUniError { - errCode: ExitErrorCode; -} -type ExitFail = IExitError; -type ExitSuccessCallback = (res: ExitSuccess) => void; -type ExitFailCallback = (res: ExitFail) => void; -type ExitCompleteCallback = (res: Object) => void; -class ExitOptions extends UTSObject { - success: ExitSuccessCallback | null = null; - fail: ExitFailCallback | null = null; - complete: ExitCompleteCallback | null = null; -} -type Exit = (options?: ExitOptions | null) => void; -export class SaveFileSuccess extends UTSObject { - savedFilePath!: string; -} -type SaveFileSuccessCallback = (res: SaveFileSuccess) => void; -export class SaveFileFail extends UTSObject { -} -type SaveFileFailCallback = (res: SaveFileFail) => void; -type SaveFileCompleteCallback = (res: Object) => void; -export class SaveFileOptions extends UTSObject { - tempFilePath!: string; - success: SaveFileSuccessCallback | null = null; - fail: SaveFileFailCallback | null = null; - complete: SaveFileCompleteCallback | null = null; -} -export class GetFileInfoSuccess extends UTSObject { - digest!: string; - size!: number; -} -type GetFileInfoSuccessCallback = (res: GetFileInfoSuccess) => void; -export class GetFileInfoFail extends UTSObject { -} -type GetFileInfoFailCallback = (res: GetFileInfoFail) => void; -type GetFileInfoCompleteCallback = (res: Object) => void; -export class GetFileInfoOptions extends UTSObject { - filePath!: string; - digestAlgorithm: string | null = null; - success: GetFileInfoSuccessCallback | null = null; - fail: GetFileInfoFailCallback | null = null; - complete: GetFileInfoCompleteCallback | null = null; -} -export class GetSavedFileInfoSuccess extends UTSObject { - size!: number; - createTime!: number; -} -type GetSavedFileInfoSuccessCallback = (res: GetSavedFileInfoSuccess) => void; -export class GetSavedFileInfoFail extends UTSObject { -} -type GetSavedFileInfoFailCallback = (res: GetSavedFileInfoFail) => void; -type GetSavedFileInfoCompleteCallback = (res: Object) => void; -export class GetSavedFileInfoOptions extends UTSObject { - filePath!: string; - success: GetSavedFileInfoSuccessCallback | null = null; - fail: GetSavedFileInfoFailCallback | null = null; - complete: GetSavedFileInfoCompleteCallback | null = null; -} -export class RemoveSavedFileSuccess extends UTSObject { -} -type RemoveSavedFileSuccessCallback = (res: RemoveSavedFileSuccess) => void; -export class RemoveSavedFileFail extends UTSObject { -} -type RemoveSavedFileFailCallback = (res: RemoveSavedFileFail) => void; -type RemoveSavedFileCompleteCallback = (res: Object) => void; -export class RemoveSavedFileOptions extends UTSObject { - filePath!: string; - success: RemoveSavedFileSuccessCallback | null = null; - fail: RemoveSavedFileFailCallback | null = null; - complete: RemoveSavedFileCompleteCallback | null = null; -} -export class SavedFileListItem extends UTSObject { - filePath!: string; - size!: number; - createTime!: number; -} -export class GetSavedFileListSuccess extends UTSObject { - fileList!: SavedFileListItem[]; -} -type GetSavedFileListSuccessCallback = (res: GetSavedFileListSuccess) => void; -export class GetSavedFileListFail extends UTSObject { -} -type GetSavedFileListFailCallback = (res: GetSavedFileListFail) => void; -type GetSavedFileListCompleteCallback = (res: Object) => void; -export class GetSavedFileListOptions extends UTSObject { - success: GetSavedFileListSuccessCallback | null = null; - fail: GetSavedFileListFailCallback | null = null; - complete: GetSavedFileListCompleteCallback | null = null; -} -export type SaveFile = (options?: SaveFileOptions | null) => void; -export type GetFileInfo = (options?: GetFileInfoOptions | null) => void; -export type GetSavedFileInfo = (options?: GetSavedFileInfoOptions | null) => void; -export type RemoveSavedFile = (options?: RemoveSavedFileOptions | null) => void; -export type GetSavedFileList = (options?: GetSavedFileListOptions | null) => void; -type GetAppAuthorizeSetting = () => GetAppAuthorizeSettingResult; -class GetAppAuthorizeSettingResult extends UTSObject { - albumAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; - bluetoothAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; - cameraAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; - locationAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; - locationAccuracy: 'reduced' | 'full' | 'unsupported' | null = null; - locationReducedAccuracy: boolean | null = null; - microphoneAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; - notificationAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; - notificationAlertAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; - notificationBadgeAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; - notificationSoundAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; - phoneCalendarAuthorized: 'authorized' | 'denied' | 'not determined' | null = null; -} -class GetAppBaseInfoOptions extends UTSObject { - filter!: Array<string>; -} -export class GetAppBaseInfoResult extends UTSObject { - appId: string | null = null; - appName: string | null = null; - appVersion: string | null = null; - appVersionCode: string | null = null; - appLanguage: string | null = null; - language: string | null = null; - version: string | null = null; - appWgtVersion: string | null = null; - hostLanguage: string | null = null; - hostVersion: string | null = null; - hostName: string | null = null; - hostPackageName: string | null = null; - hostSDKVersion: string | null = null; - hostTheme: string | null = null; - isUniAppX: boolean | null = null; - uniCompileVersion: string | null = null; - uniCompilerVersion: string | null = null; - uniPlatform: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei' | null = null; - uniRuntimeVersion: string | null = null; - uniCompileVersionCode: number | null = null; - uniCompilerVersionCode: number | null = null; - uniRuntimeVersionCode: number | null = null; - packageName: string | null = null; - bundleId: string | null = null; - signature: string | null = null; - appTheme: 'light' | 'dark' | 'auto' | null = null; - channel: string | null = null; -} -export type GetAppBaseInfo = (options?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult; -interface IAppBaseInfoAppVersion { - name: string; - code: string; -} -type GetBackgroundAudioManager = () => BackgroundAudioManager; -interface BackgroundAudioManager { - duration: number; - currentTime: number; - paused: boolean; - src: string; - startTime: number; - buffered: number; - title: string; - epname: string; - singer: string; - coverImgUrl: string; - webUrl: string; - protocol: string; - playbackRate?: number; - play(): void; - pause(): void; - seek(position: number): void; - stop(): void; - onCanplay(callback: (result: Object) => void): void; - onPlay(callback: (result: Object) => void): void; - onPause(callback: (result: Object) => void): void; - onStop(callback: (result: Object) => void): void; - onEnded(callback: (result: Object) => void): void; - onTimeUpdate(callback: (result: Object) => void): void; - onPrev(callback: (result: Object) => void): void; - onNext(callback: (result: Object) => void): void; - onError(callback: (result: Object) => void): void; - onWaiting(callback: (result: Object) => void): void; -} -interface TempAbilityInfo { - bundleName: string; - name: string; -} -class GetDeviceInfoOptions extends UTSObject { - filter!: Array<string>; -} -export class GetDeviceInfoResult extends UTSObject { - brand: string | null = null; - deviceBrand: string | null = null; - deviceId: string | null = null; - model: string | null = null; - deviceModel: string | null = null; - deviceType: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance' | null = null; - deviceOrientation: string | null = null; - devicePixelRatio: number | null = null; - system: string | null = null; - platform: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux' | null = null; - isRoot: boolean | null = null; - isSimulator: boolean | null = null; - isUSBDebugging: boolean | null = null; - osName: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux' | null = null; - osVersion: string | null = null; - osLanguage: string | null = null; - osTheme: 'light' | 'dark' | null = null; - osAndroidAPILevel: number | null = null; - romName: string | null = null; - romVersion: string | null = null; -} -export type GetDeviceInfo = (options?: GetDeviceInfoOptions | null) => GetDeviceInfoResult; -type GetNetworkType = (options: GetNetworkTypeOptions) => void; -class GetNetworkTypeSuccess extends UTSObject { - networkType!: string; -} -type GetNetworkTypeSuccessCallback = (result: GetNetworkTypeSuccess) => void; -type GetNetworkTypeFail = UniError; -type GetNetworkTypeFailCallback = (result: GetNetworkTypeFail) => void; -type GetNetworkTypeComplete = Object; -type GetNetworkTypeCompleteCallback = (result: GetNetworkTypeComplete) => void; -class GetNetworkTypeOptions extends UTSObject { - success: GetNetworkTypeSuccessCallback | null = null; - fail: GetNetworkTypeFailCallback | null = null; - complete: GetNetworkTypeCompleteCallback | null = null; -} -class OnNetworkStatusChangeCallbackResult extends UTSObject { - isConnected!: boolean; - networkType!: string; -} -type OnNetworkStatusChangeCallback = (result: OnNetworkStatusChangeCallbackResult) => void; -type OnNetworkStatusChange = (callback: OnNetworkStatusChangeCallback) => void; -type OffNetworkStatusChange = (callback: (result: Object) => void) => void; -interface IUniGetNetworkTypeEventEmitter { - on: (eventName: string, callback: Function) => void; - once: (eventName: string, callback: Function) => void; - off: (eventName: string, callback?: Function) => void; - emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; -} -export class GetProviderSuccess extends UTSObject { - service!: 'payment' | 'oauth'; - provider!: string[]; - providers!: UniProvider[]; -} -export class GetProviderSyncSuccess extends UTSObject { - service!: 'payment' | 'location' | 'oauth'; - providerIds!: string[]; - providerObjects!: UniProvider[]; -} -export type GetProviderSync = (options: GetProviderSyncOptions) => GetProviderSyncSuccess; -export class GetProviderSyncOptions extends UTSObject { - service!: 'payment' | 'location' | 'oauth'; -} -type GetProviderSuccessCallback = (result: GetProviderSuccess) => void; -type GetProviderFail = IGetProviderFail; -type GetProviderFailCallback = (result: GetProviderFail) => void; -type GetProviderComplete = Object; -type GetProviderCompleteCallback = (result: GetProviderComplete) => void; -export class GetProviderOptions extends UTSObject { - service!: 'payment' | 'oauth'; - success: GetProviderSuccessCallback | null = null; - fail: GetProviderFailCallback | null = null; - complete: GetProviderCompleteCallback | null = null; -} -export type GetProvider = (options: GetProviderOptions) => void; -type ProviderErrorCode = 110600; -interface IGetProviderFail extends IUniError { - errCode: ProviderErrorCode; -} -type GetRecorderManager = () => RecorderManager; -class RecorderManagerStartOptions extends UTSObject { - duration: number | null = null; - sampleRate: number | null = null; - numberOfChannels: number | null = null; - encodeBitRate: number | null = null; - format: 'aac' | 'mp3' | 'PCM' | 'wav' | null = null; - frameSize: number | null = null; -} -interface RecorderManagerOnStopResult { - tempFilePath: string; -} -interface RecorderManager { - start(options: RecorderManagerStartOptions): void; - pause(): void; - resume(): void; - stop(): void; - onStart(options: (result: Object) => void): void; - onPause(options: (result: Object) => void): void; - onStop(options: (result: RecorderManagerOnStopResult) => void): void; - onFrameRecorded(options: (result: Object) => void): void; - onError(options: (result: Object) => void): void; - onResume?: (options: (result: Object) => void) => void; - onInterruptionBegin?: (options: (result: Object) => void) => void; - onInterruptionEnd?: (options: (result: Object) => void) => void; -} -type RecorderState = 'pause' | 'resume' | 'start' | 'stop' | 'error' | 'frameRecorded' | 'interruptionBegin' | 'interruptionEnd'; -interface Callbacks { - pause: Function[]; - resume: Function[]; - start: Function[]; - stop: Function[]; - error: Function[]; - frameRecorded: Function[]; - interruptionBegin: Function[]; - interruptionEnd: Function[]; -} -interface StateChangeRes extends RecorderManagerOnStopResult { - errMsg?: string; - frameBuffer?: ArrayBuffer; - isLastFrame?: boolean; -} -export type GetSystemInfo = (options: GetSystemInfoOptions) => void; -export type GetSystemInfoSync = () => GetSystemInfoResult; -export type GetWindowInfo = () => GetWindowInfoResult; -export class SafeArea extends UTSObject { - left!: number; - right!: number; - top!: number; - bottom!: number; - width!: number; - height!: number; -} -export class SafeAreaInsets extends UTSObject { - left!: number; - right!: number; - top!: number; - bottom!: number; -} -class CutoutRect extends UTSObject { - left!: number; - right!: number; - top!: number; - bottom!: number; -} -export class GetSystemInfoResult extends UTSObject { - SDKVersion!: string; - appId!: string; - appLanguage!: string; - appName!: string; - appVersion!: string; - appVersionCode!: string; - appWgtVersion: string | null = null; - brand!: string; - browserName!: string; - browserVersion!: string; - deviceId!: string; - deviceBrand!: string; - deviceModel!: string; - deviceType!: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance'; - devicePixelRatio!: number; - deviceOrientation!: 'portrait' | 'landscape'; - language!: string; - model: string | null = null; - osName!: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux'; - osVersion!: string; - osLanguage!: string; - osTheme: 'light' | 'dark' | null = null; - pixelRatio!: number; - platform!: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux'; - screenWidth!: number; - screenHeight!: number; - statusBarHeight!: number; - system!: string; - safeArea!: SafeArea; - safeAreaInsets!: SafeAreaInsets; - ua!: string; - uniCompileVersion!: string; - uniCompilerVersion!: string; - uniPlatform!: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei'; - uniRuntimeVersion!: string; - uniCompileVersionCode!: number; - uniCompilerVersionCode!: number; - uniRuntimeVersionCode!: number; - version!: string; - romName!: string; - romVersion!: string; - windowWidth!: number; - windowHeight!: number; - windowTop!: number; - windowBottom!: number; - osAndroidAPILevel: number | null = null; - appTheme: 'light' | 'dark' | 'auto' | null = null; -} -type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void; -type GetSystemInfoFail = UniError; -type GetSystemInfoFailCallback = (result: GetSystemInfoFail) => void; -type GetSystemInfoComplete = Object; -type GetSystemInfoCompleteCallback = (result: GetSystemInfoComplete) => void; -export class GetSystemInfoOptions extends UTSObject { - success: GetSystemInfoSuccessCallback | null = null; - fail: GetSystemInfoFailCallback | null = null; - complete: GetSystemInfoCompleteCallback | null = null; -} -export class GetWindowInfoResult extends UTSObject { - pixelRatio!: number; - screenWidth!: number; - screenHeight!: number; - windowWidth!: number; - windowHeight!: number; - statusBarHeight!: number; - windowTop!: number; - windowBottom!: number; - safeArea!: SafeArea; - safeAreaInsets!: SafeAreaInsets; - screenTop!: number; - cutoutArea: Array<CutoutRect> | null = null; -} -interface ISystemInfoAppVersion { - name: string; - code: string; -} -class GetSystemSettingResult extends UTSObject { - bluetoothEnabled: boolean | null = null; - bluetoothError: string | null = null; - locationEnabled!: boolean; - wifiEnabled: boolean | null = null; - wifiError: string | null = null; - deviceOrientation!: 'portrait' | 'landscape'; -} -type GetSystemSetting = () => GetSystemSettingResult; -export class HideKeyboardSuccess extends UTSObject { -} -export class HideKeyboardFail extends UTSObject { -} -type HideKeyboardSuccessCallback = (res: HideKeyboardSuccess) => void; -type HideKeyboardFailCallback = (res: HideKeyboardFail) => void; -type HideKeyboardCompleteCallback = (res: Object) => void; -export class HideKeyboardOptions extends UTSObject { - success: HideKeyboardSuccessCallback | null = null; - fail: HideKeyboardFailCallback | null = null; - complete: HideKeyboardCompleteCallback | null = null; -} -type HideKeyboard = (options?: HideKeyboardOptions | null) => void; -export type MakePhoneCall = (options: MakePhoneCallOptions) => void; -export class MakePhoneCallSuccess extends UTSObject { -} -type MakePhoneCallSuccessCallback = (result: MakePhoneCallSuccess) => void; -type MakePhoneCallFail = UniError; -type MakePhoneCallFailCallback = (result: MakePhoneCallFail) => void; -type MakePhoneCallComplete = Object; -type MakePhoneCallCompleteCallback = (result: MakePhoneCallComplete) => void; -export class MakePhoneCallOptions extends UTSObject { - phoneNumber!: string; - success: MakePhoneCallSuccessCallback | null = null; - fail: MakePhoneCallFailCallback | null = null; - complete: MakePhoneCallCompleteCallback | null = null; -} -type MediaOrientation = 'up' | 'down' | 'left' | 'right' | 'up-mirrored' | 'down-mirrored' | 'left-mirrored' | 'right-mirrored'; -type MediaErrorCode = 1101001 | 1101002 | 1101003 | 1101004 | 1101005 | 1101006 | 1101007 | 1101008 | 1101009 | 1101010; -interface IMediaError extends IUniError { - errCode: MediaErrorCode; -} -class ChooseImageTempFile extends UTSObject { - path!: string; - size!: number; - name: string | null = null; - type: string | null = null; -} -export class ChooseImageSuccess extends UTSObject { - errSubject!: string; - errMsg!: string; - tempFilePaths!: Array<string>; - tempFiles!: ChooseImageTempFile[]; -} -type ChooseImageFail = IMediaError; -type ChooseImageSuccessCallback = (callback: ChooseImageSuccess) => void; -type ChooseImageFailCallback = (callback: ChooseImageFail) => void; -type ChooseImageCompleteCallback = (callback: Object) => void; -class ChooseImageCropOptions extends UTSObject { - width!: number; - height!: number; - quality: (number) | null = null; - resize: (boolean) | null = null; -} -export class ChooseImageOptions extends UTSObject { - count: (number) | null = null; - sizeType: (string[]) | null = null; - sourceType: (string[]) | null = null; - extension: (string[]) | null = null; - crop: (ChooseImageCropOptions) | null = null; - success: (ChooseImageSuccessCallback) | null = null; - fail: (ChooseImageFailCallback) | null = null; - complete: (ChooseImageCompleteCallback) | null = null; -} -export type ChooseImage = (options: ChooseImageOptions) => void; -export class PreviewImageSuccess extends UTSObject { - errSubject!: string; - errMsg!: string; -} -class LongPressActionsSuccessData extends UTSObject { - tapIndex!: number; - index!: number; -} -class LongPressActionsOptions extends UTSObject { - itemList!: string[]; - itemColor: string | null = null; - success: ((result: LongPressActionsSuccessData) => void) | null = null; - fail: ((result: Object) => void) | null = null; - complete: ((result: Object) => void) | null = null; -} -type PreviewImageFail = IMediaError; -type PreviewImageSuccessCallback = (callback: PreviewImageSuccess) => void; -type PreviewImageFailCallback = (callback: PreviewImageFail) => void; -type PreviewImageCompleteCallback = ChooseImageCompleteCallback; -export class PreviewImageOptions extends UTSObject { - current: Object | null = null; - urls!: Array<string.ImageURIString>; - showmenu: boolean | null = null; - indicator: 'default' | 'number' | 'none' | null = null; - loop: boolean | null = null; - longPressActions: LongPressActionsOptions | null = null; - success: (PreviewImageSuccessCallback) | null = null; - fail: (PreviewImageFailCallback) | null = null; - complete: (PreviewImageCompleteCallback) | null = null; -} -export type PreviewImage = (options: PreviewImageOptions) => void; -export type ClosePreviewImage = (options: ClosePreviewImageOptions) => void; -export class ClosePreviewImageSuccess extends UTSObject { - errMsg!: string; -} -type ClosePreviewImageFail = IMediaError; -type ClosePreviewImageSuccessCallback = (callback: ClosePreviewImageSuccess) => void; -type ClosePreviewImageFailCallback = (callback: ClosePreviewImageFail) => void; -type ClosePreviewImageCompleteCallback = ChooseImageCompleteCallback; -export class ClosePreviewImageOptions extends UTSObject { - success: (ClosePreviewImageSuccessCallback) | null = null; - fail: (ClosePreviewImageFailCallback) | null = null; - complete: (ClosePreviewImageCompleteCallback) | null = null; -} -export type GetImageInfo = (options: GetImageInfoOptions) => void; -export class GetImageInfoSuccess extends UTSObject { - width!: number; - height!: number; - path!: string; - orientation: MediaOrientation | null = null; - type: string | null = null; -} -type GetImageInfoFail = IMediaError; -type GetImageInfoSuccessCallback = (callback: GetImageInfoSuccess) => void; -type GetImageInfoFailCallback = (callback: GetImageInfoFail) => void; -type GetImageInfoCompleteCallback = ChooseImageCompleteCallback; -export class GetImageInfoOptions extends UTSObject { - src!: string.ImageURIString; - success: (GetImageInfoSuccessCallback) | null = null; - fail: (GetImageInfoFailCallback) | null = null; - complete: (GetImageInfoCompleteCallback) | null = null; -} -export type SaveImageToPhotosAlbum = (options: SaveImageToPhotosAlbumOptions) => void; -export class SaveImageToPhotosAlbumSuccess extends UTSObject { - path!: string; -} -type SaveImageToPhotosAlbumFail = IMediaError; -type SaveImageToPhotosAlbumSuccessCallback = (callback: SaveImageToPhotosAlbumSuccess) => void; -type SaveImageToPhotosAlbumFailCallback = (callback: SaveImageToPhotosAlbumFail) => void; -type SaveImageToPhotosAlbumCompleteCallback = ChooseImageCompleteCallback; -export class SaveImageToPhotosAlbumOptions extends UTSObject { - filePath!: string.ImageURIString; - success: (SaveImageToPhotosAlbumSuccessCallback) | null = null; - fail: (SaveImageToPhotosAlbumFailCallback) | null = null; - complete: (SaveImageToPhotosAlbumCompleteCallback) | null = null; -} -type CompressImage = (options: CompressImageOptions) => void; -class CompressImageSuccess extends UTSObject { - tempFilePath!: string; -} -type CompressImageFail = IMediaError; -type CompressImageSuccessCallback = (callback: CompressImageSuccess) => void; -type CompressImageFailCallback = (callback: CompressImageFail) => void; -type CompressImageCompleteCallback = ChooseImageCompleteCallback; -class CompressImageOptions extends UTSObject { - src!: string.ImageURIString; - quality: number | null = null; - rotate: number | null = null; - width: string | null = null; - height: string | null = null; - compressedHeight: number | null = null; - compressedWidth: number | null = null; - success: (CompressImageSuccessCallback) | null = null; - fail: (CompressImageFailCallback) | null = null; - complete: (CompressImageCompleteCallback) | null = null; -} -export class ChooseVideoSuccess extends UTSObject { - tempFilePath!: string; - duration!: number; - size!: number; - height!: number; - width!: number; -} -type ChooseVideoFail = IMediaError; -type ChooseVideoSuccessCallback = (callback: ChooseVideoSuccess) => void; -type ChooseVideoFailCallback = (callback: ChooseVideoFail) => void; -type ChooseVideoCompleteCallback = ChooseImageCompleteCallback; -export class ChooseVideoOptions extends UTSObject { - sourceType: (string[]) | null = null; - compressed: boolean | null = true; - maxDuration: number | null = null; - camera: 'front' | 'back' | null = null; - extension: (string[]) | null = null; - success: (ChooseVideoSuccessCallback) | null = null; - fail: (ChooseVideoFailCallback) | null = null; - complete: (ChooseVideoCompleteCallback) | null = null; -} -export type ChooseVideo = (options: ChooseVideoOptions) => void; -export class GetVideoInfoSuccess extends UTSObject { - orientation: MediaOrientation | null = null; - type: string | null = null; - duration!: number; - size!: number; - height!: number; - width!: number; - fps: number | null = null; - bitrate: number | null = null; -} -type GetVideoInfoFail = IMediaError; -type GetVideoInfoSuccessCallback = (callback: GetVideoInfoSuccess) => void; -type GetVideoInfoFailCallback = (callback: GetVideoInfoFail) => void; -type GetVideoInfoCompleteCallback = ChooseImageCompleteCallback; -export class GetVideoInfoOptions extends UTSObject { - src!: string.VideoURIString; - success: (GetVideoInfoSuccessCallback) | null = null; - fail: (GetVideoInfoFailCallback) | null = null; - complete: (GetVideoInfoCompleteCallback) | null = null; -} -export type GetVideoInfo = (options: GetVideoInfoOptions) => void; -export class SaveVideoToPhotosAlbumSuccess extends UTSObject { -} -type SaveVideoToPhotosAlbumFail = IMediaError; -type SaveVideoToPhotosAlbumSuccessCallback = (callback: SaveVideoToPhotosAlbumSuccess) => void; -type SaveVideoToPhotosAlbumFailCallback = (callback: SaveVideoToPhotosAlbumFail) => void; -type SaveVideoToPhotosAlbumCompleteCallback = ChooseImageCompleteCallback; -export class SaveVideoToPhotosAlbumOptions extends UTSObject { - filePath!: string.VideoURIString; - success: (SaveVideoToPhotosAlbumSuccessCallback) | null = null; - fail: (SaveVideoToPhotosAlbumFailCallback) | null = null; - complete: (SaveVideoToPhotosAlbumCompleteCallback) | null = null; -} -export type SaveVideoToPhotosAlbum = (options: SaveVideoToPhotosAlbumOptions) => void; -export type ChooseFile = (options: ChooseFileOptions) => void; -export class ChooseFileSuccess extends UTSObject { - tempFilePaths!: string[]; - tempFiles!: Object; -} -type ChooseFileSuccessCallback = (result: ChooseFileSuccess) => void; -type ChooseFileFail = IMediaError; -type ChooseFileFailCallback = (result: ChooseFileFail) => void; -type ChooseFileComplete = Object; -type ChooseFileCompleteCallback = (result: ChooseFileComplete) => void; -export class ChooseFileOptions extends UTSObject { - count: number | null = null; - type: 'image' | 'video' | 'all' | null = null; - extension: (string[]) | null = null; - sizeType: Object | null = null; - sourceType: (string[]) | null = null; - success: ChooseFileSuccessCallback | null = null; - fail: ChooseFileFailCallback | null = null; - complete: ChooseFileCompleteCallback | null = null; -} -type ChooseMediaFileType = 'image' | 'video'; -class ChooseMediaTempFile extends UTSObject { - tempFilePath!: string; - fileType!: ChooseMediaFileType; - size!: number; - duration: number | null = null; - height: number | null = null; - width: number | null = null; - thumbTempFilePath: string | null = null; -} -export class ChooseMediaSuccess extends UTSObject { - tempFiles!: ChooseMediaTempFile[]; - type!: 'image' | 'video' | 'mix'; -} -type ChooseMediaFail = IMediaError; -type ChooseMediaSuccessCallback = (callback: ChooseMediaSuccess) => void; -type ChooseMediaFailCallback = (callback: ChooseMediaFail) => void; -type ChooseMediaCompleteCallback = ChooseImageCompleteCallback; -export class ChooseMediaOptions extends UTSObject { - count: number | null = null; - mediaType: (string[]) | null = null; - sourceType: (string[]) | null = null; - sizeType: (string[]) | null = null; - maxDuration: number | null = null; - camera: 'front' | 'back' | null = null; - success: (ChooseMediaSuccessCallback) | null = null; - fail: (ChooseMediaFailCallback) | null = null; - complete: (ChooseMediaCompleteCallback) | null = null; -} -export type ChooseMedia = (options: ChooseMediaOptions) => void; -interface MediaFile { - fileType: 'video' | 'image'; - tempFilePath: string; - size: number; - width?: number; - height?: number; - duration?: number; - thumbTempFilePath?: string; -} -interface _ChooseMediaOptions { - mimeType: photoAccessHelper.PhotoViewMIMETypes.VIDEO_TYPE | photoAccessHelper.PhotoViewMIMETypes.IMAGE_TYPE | photoAccessHelper.PhotoViewMIMETypes.IMAGE_VIDEO_TYPE; - count?: number; - sourceType?: ('album' | 'camera')[]; -} -interface chooseMediaSuccessCallbackResult { - tempFiles: MediaFile[]; -} -type CameraPosition = 'back' | 'front'; -interface TempFiles { - tempFilePath: string; - size: number; -} -interface TakePhotoRes { - tempFiles: TempFiles[]; -} -interface TakeVideoOptions { - cameraType?: CameraPosition; - videoDuration?: number; -} -interface TakeVideoRes { - path: string; - duration: number; - size: number; - height: number; - width: number; - orientation: MediaOrientation; - type: string; -} -interface IGetImageInfoDownloadOptions { - url: string; - success: (res: IGetImageInfoDownloadSuccess) => void; - fail: (err: IGetImageInfoDownloadFail) => void; -} -interface IGetImageInfoDownloadSuccess { - tempFilePath: string; -} -interface IGetImageInfoDownloadFail { - errMsg: string; -} -interface IPreviewImageOptions { - urls: string[]; - current: string; - showmenu: boolean; -} -interface ISaveMediaError { - code: number; - message: string; -} -interface _CompressImageSuccess { - size: number; - tempFilePath: string; -} -interface IFile { - path: string; - size: number; - name: string; - type: string; -} -type UNI_MEDIA_TYPE = 'image' | 'video' | 'mix'; -export type Request<T = Object> = (param: RequestOptions<T>) => RequestTask; -export class RequestOptions<T = Object> extends UTSObject { - url!: string; - data: Object | null = null; - header: UTSJSONObject | null = null; - method: RequestMethod | null = null; - timeout: number | null = null; - dataType: string | null = null; - responseType: string | null = null; - sslVerify: boolean | null = null; - withCredentials: boolean | null = null; - firstIpv4: boolean | null = null; - success: RequestSuccessCallback<T> | null = null; - fail: RequestFailCallback | null = null; - complete: RequestCompleteCallback | null = null; -} -export class RequestSuccess<T = Object> extends UTSObject { - data: T | null = null; - statusCode!: number; - header!: Object; - cookies!: Array<string>; -} -type RequestMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"; -type RequestErrorCode = 5 | 1000 | 100001 | 100002 | 600003 | 600008 | 600009 | 602001; -interface RequestFail extends IUniError { - errCode: RequestErrorCode; -} -type RequestSuccessCallback<T> = (option: RequestSuccess<T>) => void; -type RequestFailCallback = (option: RequestFail) => void; -type RequestCompleteCallback = (option: Object) => void; -export interface RequestTask { - abort(): void; -} -export type UploadFile = (options: UploadFileOptions) => UploadTask; -class UploadFileOptionFiles extends UTSObject { - name: string | null = null; - uri!: string; - file: Object | null = null; -} -export class UploadFileSuccess extends UTSObject { - data!: string; - statusCode!: number; -} -type UploadFileSuccessCallback = (result: UploadFileSuccess) => void; -interface UploadFileFail extends IUniError { - errCode: RequestErrorCode; -} -type UploadFileFailCallback = (result: UploadFileFail) => void; -type UploadFileCompleteCallback = (result: Object) => void; -export class UploadFileOptions extends UTSObject { - url!: string; - filePath: string | null = null; - name: string | null = null; - files: (UploadFileOptionFiles[]) | null = null; - header: UTSJSONObject | null = null; - formData: UTSJSONObject | null = null; - timeout: number | null = null; - success: UploadFileSuccessCallback | null = null; - fail: UploadFileFailCallback | null = null; - complete: UploadFileCompleteCallback | null = null; -} -export class OnProgressUpdateResult extends UTSObject { - progress!: number; - totalBytesSent!: number; - totalBytesExpectedToSend!: number; -} -type UploadFileProgressUpdateCallback = (result: OnProgressUpdateResult) => void; -export interface UploadTask { - abort(): void; - onProgressUpdate(callback: UploadFileProgressUpdateCallback): void; -} -export type DownloadFile = (options: DownloadFileOptions) => DownloadTask; -export class DownloadFileSuccess extends UTSObject { - tempFilePath!: string; - statusCode!: number; -} -type DownloadFileSuccessCallback = (result: DownloadFileSuccess) => void; -interface DownloadFileFail extends IUniError { - errCode: RequestErrorCode; -} -type DownloadFileFailCallback = (result: DownloadFileFail) => void; -type DownloadFileComplete = Object; -type DownloadFileCompleteCallback = (result: DownloadFileComplete) => void; -export class DownloadFileOptions extends UTSObject { - url!: string; - header: UTSJSONObject | null = null; - filePath: string | null = null; - timeout: number | null = null; - success: DownloadFileSuccessCallback | null = null; - fail: DownloadFileFailCallback | null = null; - complete: DownloadFileCompleteCallback | null = null; -} -export class OnProgressDownloadResult extends UTSObject { - progress!: number; - totalBytesWritten!: number; - totalBytesExpectedToWrite!: number; -} -type DownloadFileProgressUpdateCallback = (result: OnProgressDownloadResult) => void; -export interface DownloadTask { - abort(): void; - onProgressUpdate(callback: DownloadFileProgressUpdateCallback): void; -} -interface IUniNetworkMPUserAgent { - fullUserAgent: string; -} -interface IUniNetworkMP { - on: Function; - off: Function; - userAgent: IUniNetworkMPUserAgent; -} -interface IUniRequestEmitter { - on: (eventName: string, callback: Function) => void; - once: (eventName: string, callback: Function) => void; - off: (eventName: string, callback?: Function | null) => void; - emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; -} -interface IRequestTask { - abort: Function; - onHeadersReceived: Function; - offHeadersReceived: Function; -} -interface IUniUploadFileEmitter { - on: (eventName: string, callback: Function) => void; - once: (eventName: string, callback: Function) => void; - off: (eventName: string, callback?: Function | null) => void; - emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; -} -interface IUploadTask { - abort: Function; - onHeadersReceived: Function; - offHeadersReceived: Function; - onProgressUpdate: Function; - offProgressUpdate: Function; -} -interface IUniDownloadFileEmitter { - on: (eventName: string, callback: Function) => void; - once: (eventName: string, callback: Function) => void; - off: (eventName: string, callback?: Function | null) => void; - emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; -} -interface IDownloadTask { - abort: Function; - onHeadersReceived: Function; - offHeadersReceived: Function; - onProgressUpdate: Function; - offProgressUpdate: Function; -} -export type OpenAppAuthorizeSetting = (options: OpenAppAuthorizeSettingOptions) => void; -export class OpenAppAuthorizeSettingSuccess extends UTSObject { - errMsg!: string; -} -type OpenAppAuthorizeSettingSuccessCallback = (result: OpenAppAuthorizeSettingSuccess) => void; -class OpenAppAuthorizeSettingFail extends UTSObject { - errMsg!: string; -} -type OpenAppAuthorizeSettingFailCallback = (result: OpenAppAuthorizeSettingFail) => void; -class OpenAppAuthorizeSettingComplete extends UTSObject { - errMsg!: string; -} -type OpenAppAuthorizeSettingCompleteCallback = (result: OpenAppAuthorizeSettingComplete) => void; -export class OpenAppAuthorizeSettingOptions extends UTSObject { - success: OpenAppAuthorizeSettingSuccessCallback | null = null; - fail: OpenAppAuthorizeSettingFailCallback | null = null; - complete: OpenAppAuthorizeSettingCompleteCallback | null = null; -} -export class OpenDocumentSuccess extends UTSObject { -} -export class OpenDocumentFail extends UTSObject { -} -type OpenDocumentSuccessCallback = (res: OpenDocumentSuccess) => void; -type OpenDocumentFailCallback = (res: OpenDocumentFail) => void; -type OpenDocumentCompleteCallback = (res: Object) => void; -type OpenDocumentSupportedTypes = 'doc' | 'xls' | 'ppt' | 'pdf' | 'docx' | 'xlsx' | 'pptx'; -export class OpenDocumentOptions extends UTSObject { - filePath!: string; - fileType: OpenDocumentSupportedTypes | null = null; - success: OpenDocumentSuccessCallback | null = null; - fail: OpenDocumentFailCallback | null = null; - complete: OpenDocumentCompleteCallback | null = null; -} -type OpenDocument = (options?: OpenDocumentOptions | null) => void; -type PromptErrorCode = 1 | 1001; -interface IPromptError extends IUniError { - errCode: PromptErrorCode; -} -class ShowToastSuccess extends UTSObject { -} -type ShowToastFail = IPromptError; -type ShowToastSuccessCallback = (res: ShowToastSuccess) => void; -type ShowToastFailCallback = (res: ShowToastFail) => void; -type ShowToastCompleteCallback = (res: Object) => void; -type Icon = "success" | "error" | "fail" | "exception" | "loading" | "none"; -type Position = "top" | "center" | "bottom"; -class ShowToastOptions extends UTSObject { - title!: string; - icon: Icon | null = null; - image: string.ImageURIString | null = null; - mask: boolean | null = null; - duration: number | null = null; - position: Position | null = null; - success: ShowToastSuccessCallback | null = null; - fail: ShowToastFailCallback | null = null; - complete: ShowToastCompleteCallback | null = null; -} -type ShowToast = (options: ShowToastOptions) => void; -type HideToast = () => void; -class ShowLoadingSuccess extends UTSObject { -} -type ShowLoadingFail = IPromptError; -type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void; -type ShowLoadingFailCallback = (res: ShowLoadingFail) => void; -type ShowLoadingCompleteCallback = (res: Object) => void; -class ShowLoadingOptions extends UTSObject { - title!: string; - mask: boolean | null = null; - success: ShowLoadingSuccessCallback | null = null; - fail: ShowLoadingFailCallback | null = null; - complete: ShowLoadingCompleteCallback | null = null; -} -type ShowLoading = (options: ShowLoadingOptions) => void; -type HideLoading = () => void; -class ShowModalSuccess extends UTSObject { - confirm!: boolean; - cancel!: boolean; - content: string | null = null; -} -type ShowModalFail = IPromptError; -type ShowModalSuccessCallback = (res: ShowModalSuccess) => void; -type ShowModalFailCallback = (res: ShowModalFail) => void; -type ShowModalCompleteCallback = (res: Object) => void; -class ShowModalOptions extends UTSObject { - title: string | null = null; - content: string | null = null; - showCancel: boolean | null = true; - cancelText: string | null = null; - cancelColor: string.ColorString | null = null; - confirmText: string | null = null; - confirmColor: string.ColorString | null = null; - editable: boolean | null = false; - placeholderText: string | null = null; - success: ShowModalSuccessCallback | null = null; - fail: ShowModalFailCallback | null = null; - complete: ShowModalCompleteCallback | null = null; -} -type ShowModal = (options: ShowModalOptions) => void; -class ShowActionSheetSuccess extends UTSObject { - tapIndex: number | null = null; -} -class Popover extends UTSObject { - top!: number; - left!: number; - width!: number; - height!: number; -} -type ShowActionSheetFail = IPromptError; -type ShowActionSheetSuccessCallback = (res: ShowActionSheetSuccess) => void; -type ShowActionSheetFailCallback = (res: ShowActionSheetFail) => void; -type ShowActionSheetCompleteCallback = (res: Object) => void; -class ShowActionSheetOptions extends UTSObject { - title: string | null = null; - alertText: string | null = null; - itemList!: string[]; - itemColor: string.ColorString | null = null; - popover: Popover | null = null; - success: ShowActionSheetSuccessCallback | null = null; - fail: ShowActionSheetFailCallback | null = null; - complete: ShowActionSheetCompleteCallback | null = null; -} -type ShowActionSheet = (options: ShowActionSheetOptions) => void; -interface IShowLoadingOptions { - title: string; - mask: boolean; -} -type PullDownRefreshErrorCode = 4; -interface StartPullDownRefreshFail extends IUniError { - errCode: PullDownRefreshErrorCode; -} -export class StartPullDownRefreshOptions extends UTSObject { - success: StartPullDownRefreshSuccessCallback | null = null; - fail: StartPullDownRefreshFailCallback | null = null; - complete: StartPullDownRefreshCompleteCallback | null = null; -} -export type StartPullDownRefreshSuccess = AsyncApiSuccessResult; -type StartPullDownRefreshSuccessCallback = (result: StartPullDownRefreshSuccess) => void; -type StartPullDownRefreshFailCallback = (result: StartPullDownRefreshFail) => void; -type StartPullDownRefreshComplete = AsyncApiResult; -type StartPullDownRefreshCompleteCallback = (result: StartPullDownRefreshComplete) => void; -type StartPullDownRefresh = (options: StartPullDownRefreshOptions) => void; -type StopPullDownRefresh = () => void; -export type Rpx2px = (number: number) => number; -export class ScanCodeSuccess extends UTSObject { - result!: string; - scanType!: string; -} -export class ScanCodeFail extends UTSObject { -} -type ScanCodeSuccessCallback = (res: ScanCodeSuccess) => void; -type ScanCodeFailCallback = (res: ScanCodeFail) => void; -type ScanCodeCompleteCallback = (res: Object) => void; -type ScanCodeSupportedTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf417'; -export class ScanCodeOptions extends UTSObject { - onlyFromCamera: boolean | null = null; - scanType: ScanCodeSupportedTypes[] | null = null; - success: ScanCodeSuccessCallback | null = null; - fail: ScanCodeFailCallback | null = null; - complete: ScanCodeCompleteCallback | null = null; -} -type ScanCode = (options?: ScanCodeOptions | null) => void; -type UniScanOptionsTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf417'; -type UniScanResultTypes = "QR_CODE" | "AZTEC" | "CODABAR" | "CODE_39" | "CODE_93" | "CODE_128" | "DATA_MATRIX" | "EAN_8" | "EAN_13" | "ITF" | "MAXICODE" | "PDF_417" | "RSS_14" | "RSS_EXPANDED" | "UPC_A" | "UPC_E" | "UPC_EAN_EXTENSION" | "WX_CODE" | "CODE_25"; -type HarmonyScanResultTypes = scanCore.ScanType.AZTEC_CODE | scanCore.ScanType.CODABAR_CODE | scanCore.ScanType.CODE128_CODE | scanCore.ScanType.CODE39_CODE | scanCore.ScanType.CODE93_CODE | scanCore.ScanType.DATAMATRIX_CODE | scanCore.ScanType.EAN13_CODE | scanCore.ScanType.EAN8_CODE | scanCore.ScanType.ITF14_CODE | scanCore.ScanType.MULTIFUNCTIONAL_CODE | scanCore.ScanType.PDF417_CODE | scanCore.ScanType.QR_CODE | scanCore.ScanType.UPC_A_CODE | scanCore.ScanType.UPC_E_CODE; -export class ShareWithSystemSuccess extends UTSObject { -} -export class ShareWithSystemFail extends UTSObject { -} -type ShareWithSystemSuccessCallback = (res: ShareWithSystemSuccess) => void; -type ShareWithSystemFailCallback = (res: ShareWithSystemFail) => void; -type ShareWithSystemCallback = (res: Object) => void; -export class ShareWithSystemOptions extends UTSObject { - type: 'text' | 'image' | null = null; - summary: string | null = null; - href: string | null = null; - imageUrl: string | null = null; - success: ShareWithSystemSuccessCallback | null = null; - fail: ShareWithSystemFailCallback | null = null; - complete: ShareWithSystemCallback | null = null; -} -export type ShareWithSystem = (options: ShareWithSystemOptions) => void; -export class SetStorageSuccess extends UTSObject { -} -type SetStorageSuccessCallback = (res: SetStorageSuccess) => void; -type SetStorageFailCallback = (res: UniError) => void; -type SetStorageCompleteCallback = (res: Object) => void; -export class SetStorageOptions extends UTSObject { - key!: string; - data!: Object; - success: SetStorageSuccessCallback | null = null; - fail: SetStorageFailCallback | null = null; - complete: SetStorageCompleteCallback | null = null; -} -export type SetStorage = (options: SetStorageOptions) => void; -export type SetStorageSync = (key: string, data: Object) => void; -export class GetStorageSuccess extends UTSObject { - data: Object | null = null; -} -type GetStorageSuccessCallback = (res: GetStorageSuccess) => void; -type GetStorageFailCallback = (res: UniError) => void; -type GetStorageCompleteCallback = (res: Object) => void; -export class GetStorageOptions extends UTSObject { - key!: string; - success: GetStorageSuccessCallback | null = null; - fail: GetStorageFailCallback | null = null; - complete: GetStorageCompleteCallback | null = null; -} -export type GetStorage = (options: GetStorageOptions) => void; -export type GetStorageSync = (key: string) => Object | null; -export class GetStorageInfoSuccess extends UTSObject { - keys!: Array<string>; - currentSize!: number; - limitSize!: number; -} -type GetStorageInfoSuccessCallback = (res: GetStorageInfoSuccess) => void; -type GetStorageInfoFailCallback = (res: UniError) => void; -type GetStorageInfoCompleteCallback = (res: Object) => void; -export class GetStorageInfoOptions extends UTSObject { - success: GetStorageInfoSuccessCallback | null = null; - fail: GetStorageInfoFailCallback | null = null; - complete: GetStorageInfoCompleteCallback | null = null; -} -export type GetStorageInfo = (options: GetStorageInfoOptions) => void; -export type GetStorageInfoSync = () => GetStorageInfoSuccess; -export class RemoveStorageSuccess extends UTSObject { -} -type RemoveStorageSuccessCallback = (res: RemoveStorageSuccess) => void; -type RemoveStorageFailCallback = (res: UniError) => void; -type RemoveStorageCompleteCallback = (res: Object) => void; -export class RemoveStorageOptions extends UTSObject { - key!: string; - success: RemoveStorageSuccessCallback | null = null; - fail: RemoveStorageFailCallback | null = null; - complete: RemoveStorageCompleteCallback | null = null; -} -export type RemoveStorage = (options: RemoveStorageOptions) => void; -export type RemoveStorageSync = (key: string) => void; -export class ClearStorageSuccess extends UTSObject { -} -type ClearStorageSuccessCallback = (res: ClearStorageSuccess) => void; -type ClearStorageFailCallback = (res: UniError) => void; -type ClearStorageCompleteCallback = (res: Object) => void; -export class ClearStorageOptions extends UTSObject { - success: ClearStorageSuccessCallback | null = null; - fail: ClearStorageFailCallback | null = null; - complete: ClearStorageCompleteCallback | null = null; -} -export type ClearStorage = (option?: ClearStorageOptions | null) => void; -export type ClearStorageSync = () => void; -interface UniStorageMP { - id: string; -} -export type SetTabBarBadgeSuccess = AsyncApiSuccessResult; -type SetTabBarBadgeSuccessCallback = (result: SetTabBarBadgeSuccess) => void; -type SetTabBarErrorCode = 100 | 200; -interface SetTabBarFail extends IUniError { - errCode: SetTabBarErrorCode; -} -type SetTabBarBadgeFail = SetTabBarFail; -type SetTabBarBadgeFailCallback = (result: SetTabBarBadgeFail) => void; -type SetTabBarBadgeComplete = AsyncApiResult; -type SetTabBarBadgeCompleteCallback = (result: SetTabBarBadgeComplete) => void; -export class SetTabBarBadgeOptions extends UTSObject { - index!: number; - text!: string; - success: SetTabBarBadgeSuccessCallback | null = null; - fail: SetTabBarBadgeFailCallback | null = null; - complete: SetTabBarBadgeCompleteCallback | null = null; -} -export type RemoveTabBarBadgeSuccess = AsyncApiSuccessResult; -type RemoveTabBarBadgeSuccessCallback = (result: RemoveTabBarBadgeSuccess) => void; -type RemoveTabBarBadgeFail = SetTabBarFail; -type RemoveTabBarBadgeFailCallback = (result: RemoveTabBarBadgeFail) => void; -type RemoveTabBarBadgeComplete = AsyncApiResult; -type RemoveTabBarBadgeCompleteCallback = (result: RemoveTabBarBadgeComplete) => void; -export class RemoveTabBarBadgeOptions extends UTSObject { - index!: number; - success: RemoveTabBarBadgeSuccessCallback | null = null; - fail: RemoveTabBarBadgeFailCallback | null = null; - complete: RemoveTabBarBadgeCompleteCallback | null = null; -} -export type SetTabBarItemSuccess = AsyncApiSuccessResult; -type SetTabBarItemSuccessCallback = (result: SetTabBarItemSuccess) => void; -type SetTabBarItemFail = SetTabBarFail; -type SetTabBarItemFailCallback = (result: SetTabBarItemFail) => void; -type SetTabBarItemComplete = AsyncApiResult; -type SetTabBarItemCompleteCallback = (result: SetTabBarItemComplete) => void; -class SetTabBarItemIconFontOptions extends UTSObject { - text!: string; - selectedText!: string; - fontSize: string | null = null; - color: string | null = null; - selectedColor: string | null = null; -} -export class SetTabBarItemOptions extends UTSObject { - index!: number; - text: string | null = null; - iconPath: string | null = null; - selectedIconPath: string | null = null; - pagePath: string | null = null; - iconfont: SetTabBarItemIconFontOptions | null = null; - visible: boolean | null = null; - success: SetTabBarItemSuccessCallback | null = null; - fail: SetTabBarItemFailCallback | null = null; - complete: SetTabBarItemCompleteCallback | null = null; -} -class MidButtonIconFont extends UTSObject { - text: string | null = null; - selectedText: string | null = null; - fontSize: string | null = null; - color: string | null = null; - selectedColor: string | null = null; -} -class MidButtonOptions extends UTSObject { - width: string | null = null; - height: string | null = null; - text: string | null = null; - iconPath: string | null = null; - iconWidth: string | null = null; - backgroundImage: string | null = null; - iconfont: MidButtonIconFont | null = null; -} -export type SetTabBarStyleSuccess = AsyncApiSuccessResult; -type SetTabBarStyleSuccessCallback = (result: SetTabBarStyleSuccess) => void; -type SetTabBarStyleFail = SetTabBarFail; -type SetTabBarStyleFailCallback = (result: SetTabBarStyleFail) => void; -type SetTabBarStyleComplete = AsyncApiResult; -type SetTabBarStyleCompleteCallback = (result: SetTabBarStyleComplete) => void; -export class SetTabBarStyleOptions extends UTSObject { - color: string | string.ColorString | null = null; - selectedColor: string | string.ColorString | null = null; - backgroundColor: string | string.ColorString | null = null; - backgroundImage: string | null = null; - backgroundRepeat: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' | null = null; - borderColor: string | string.ColorString | null = null; - borderStyle: 'black' | 'white' | null = null; - midButton: MidButtonOptions | null = null; - success: SetTabBarStyleSuccessCallback | null = null; - fail: SetTabBarStyleFailCallback | null = null; - complete: SetTabBarStyleCompleteCallback | null = null; -} -export type HideTabBarSuccess = AsyncApiSuccessResult; -type HideTabBarSuccessCallback = (result: HideTabBarSuccess) => void; -type HideTabBarFail = SetTabBarFail; -type HideTabBarFailCallback = (result: HideTabBarFail) => void; -type HideTabBarComplete = AsyncApiResult; -type HideTabBarCompleteCallback = (result: HideTabBarComplete) => void; -export class HideTabBarOptions extends UTSObject { - animation: boolean | null = null; - success: HideTabBarSuccessCallback | null = null; - fail: HideTabBarFailCallback | null = null; - complete: HideTabBarCompleteCallback | null = null; -} -export type ShowTabBarSuccess = AsyncApiSuccessResult; -type ShowTabBarSuccessCallback = (result: ShowTabBarSuccess) => void; -type ShowTabBarFail = SetTabBarFail; -type ShowTabBarFailCallback = (result: ShowTabBarFail) => void; -type ShowTabBarComplete = AsyncApiResult; -type ShowTabBarCompleteCallback = (result: ShowTabBarComplete) => void; -export class ShowTabBarOptions extends UTSObject { - animation: boolean | null = null; - success: ShowTabBarSuccessCallback | null = null; - fail: ShowTabBarFailCallback | null = null; - complete: ShowTabBarCompleteCallback | null = null; -} -export type ShowTabBarRedDotSuccess = AsyncApiSuccessResult; -type ShowTabBarRedDotSuccessCallback = (result: ShowTabBarRedDotSuccess) => void; -type ShowTabBarRedDotFail = SetTabBarFail; -type ShowTabBarRedDotFailCallback = (result: ShowTabBarRedDotFail) => void; -type ShowTabBarRedDotComplete = AsyncApiResult; -type ShowTabBarRedDotCompleteCallback = (result: ShowTabBarRedDotComplete) => void; -export class ShowTabBarRedDotOptions extends UTSObject { - index!: number; - success: ShowTabBarRedDotSuccessCallback | null = null; - fail: ShowTabBarRedDotFailCallback | null = null; - complete: ShowTabBarRedDotCompleteCallback | null = null; -} -export type HideTabBarRedDotSuccess = AsyncApiSuccessResult; -type HideTabBarRedDotSuccessCallback = (result: HideTabBarRedDotSuccess) => void; -type HideTabBarRedDotFail = SetTabBarFail; -type HideTabBarRedDotFailCallback = (result: HideTabBarRedDotFail) => void; -type HideTabBarRedDotComplete = AsyncApiResult; -type HideTabBarRedDotCompleteCallback = (result: HideTabBarRedDotComplete) => void; -export class HideTabBarRedDotOptions extends UTSObject { - index!: number; - success: HideTabBarRedDotSuccessCallback | null = null; - fail: HideTabBarRedDotFailCallback | null = null; - complete: HideTabBarRedDotCompleteCallback | null = null; -} -export type SetTabBarBadge = (options: SetTabBarBadgeOptions) => void; -export type RemoveTabBarBadge = (options: RemoveTabBarBadgeOptions) => void; -export type SetTabBarItem = (options: SetTabBarItemOptions) => void; -export type SetTabBarStyle = (options: SetTabBarStyleOptions) => void; -export type ShowTabBar = (options?: ShowTabBarOptions | null) => void; -export type HideTabBar = (options?: HideTabBarOptions | null) => void; -export type ShowTabBarRedDot = (options: ShowTabBarRedDotOptions) => void; -export type HideTabBarRedDot = (options: HideTabBarRedDotOptions) => void; -interface ITabBar { - setTabBarBadge: (options: SetTabBarBadgeOptions) => void; - removeTabBarBadge: (options: RemoveTabBarBadgeOptions) => void; - setTabBarItem: (options: SetTabBarItemOptions) => void; - setTabBarStyle: (options: SetTabBarStyleOptions) => void; - hideTabBar: () => void; - showTabBar: () => void; - showTabBarRedDot: (options: ShowTabBarRedDotOptions) => void; - hideTabBarRedDot: (options: HideTabBarRedDotOptions) => void; -} -export type ConnectSocket = (options: ConnectSocketOptions) => SocketTask; -export class ConnectSocketSuccess extends UTSObject { - errMsg!: string; -} -type ConnectSocketSuccessCallback = (result: ConnectSocketSuccess) => void; -type ConnectSocketErrorCode = 600009; -interface ConnectSocketFail extends IUniError { - errCode: ConnectSocketErrorCode; -} -type ConnectSocketFailCallback = (result: ConnectSocketFail) => void; -type ConnectSocketComplete = Object; -type ConnectSocketCompleteCallback = (result: ConnectSocketComplete) => void; -export class ConnectSocketOptions extends UTSObject { - url!: string; - header: UTSJSONObject | null = null; - protocols: (string[]) | null = null; - success: ConnectSocketSuccessCallback | null = null; - fail: ConnectSocketFailCallback | null = null; - complete: ConnectSocketCompleteCallback | null = null; -} -class GeneralCallbackResult extends UTSObject { - errMsg!: string; -} -type SendSocketMessageErrorCode = 10001 | 10002 | 602001; -interface SendSocketMessageFail extends IUniError { - errCode: SendSocketMessageErrorCode; -} -export class SendSocketMessageOptions extends UTSObject { - data!: Object; - success: ((result: GeneralCallbackResult) => void) | null = null; - fail: ((result: SendSocketMessageFail) => void) | null = null; - complete: ((result: Object) => void) | null = null; -} -export class CloseSocketOptions extends UTSObject { - code: number | null = null; - reason: string | null = null; - success: ((result: GeneralCallbackResult) => void) | null = null; - fail: ((result: GeneralCallbackResult) => void) | null = null; - complete: ((result: GeneralCallbackResult) => void) | null = null; -} -class OnSocketOpenCallbackResult extends UTSObject { - header!: Object; -} -export class OnSocketMessageCallbackResult extends UTSObject { - data!: Object; -} -export interface SocketTask { - send(options: SendSocketMessageOptions): void; - close(options: CloseSocketOptions): void; - onOpen(callback: (result: OnSocketOpenCallbackResult) => void): void; - onClose(callback: (result: Object) => void): void; - onError(callback: (result: GeneralCallbackResult) => void): void; - onMessage(callback: (result: OnSocketMessageCallbackResult) => void): void; -} -type OnSocketOpenCallback = (result: OnSocketOpenCallbackResult) => void; -type OnSocketOpen = (options: OnSocketOpenCallback) => void; -export class OnSocketErrorCallbackResult extends UTSObject { - errMsg!: string; -} -type OnSocketErrorCallback = (result: OnSocketErrorCallbackResult) => void; -type OnSocketError = (callback: OnSocketErrorCallback) => void; -type SendSocketMessage = (options: SendSocketMessageOptions) => void; -type OnSocketMessageCallback = (result: OnSocketMessageCallbackResult) => void; -type OnSocketMessage = (callback: OnSocketMessageCallback) => void; -type CloseSocket = (options: CloseSocketOptions) => void; -class OnSocketCloseCallbackResult extends UTSObject { - code!: number; - reason!: string; -} -type OnSocketCloseCallback = (result: OnSocketCloseCallbackResult) => void; -type OnSocketClose = (callback: OnSocketCloseCallback) => void; -interface UniWebsocketMP { - id: string; - on: Function; - off: Function; -} -interface IUniWebsocketEmitter { - on: (eventName: string, callback: Function) => void; - once: (eventName: string, callback: Function) => void; - off: (eventName: string, callback?: Function | null) => void; - emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; -} -interface UniExtApi { - login: Login; - getUserInfo: GetUserInfo; - requestPayment: RequestPayment; - addPhoneContact: AddPhoneContact; - startSoterAuthentication: StartSoterAuthentication; - checkIsSupportSoterAuthentication: CheckIsSupportSoterAuthentication; - checkIsSoterEnrolledInDevice: CheckIsSoterEnrolledInDevice; - getClipboardData: GetClipboardData; - setClipboardData: SetClipboardData; - createInnerAudioContext: CreateInnerAudioContext; - $on: $On; - $once: $Once; - $off: $Off; - $emit: $Emit; - exit: Exit; - saveFile: SaveFile; - getSavedFileList: GetSavedFileList; - getSavedFileInfo: GetSavedFileInfo; - removeSavedFile: RemoveSavedFile; - getFileInfo: GetFileInfo; - getAppAuthorizeSetting: GetAppAuthorizeSetting; - getAppBaseInfo: GetAppBaseInfo; - getBackgroundAudioManager: GetBackgroundAudioManager; - getDeviceInfo: GetDeviceInfo; - getNetworkType: GetNetworkType; - onNetworkStatusChange: OnNetworkStatusChange; - offNetworkStatusChange: OffNetworkStatusChange; - getProvider: GetProvider; - getProviderSync: GetProviderSync; - getRecorderManager: GetRecorderManager; - getSystemInfo: GetSystemInfo; - getSystemInfoSync: GetSystemInfoSync; - getWindowInfo: GetWindowInfo; - getSystemSetting: GetSystemSetting; - hideKeyboard: HideKeyboard; - makePhoneCall: MakePhoneCall; - chooseImage: ChooseImage; - previewImage: PreviewImage; - closePreviewImage: ClosePreviewImage; - getImageInfo: GetImageInfo; - saveImageToPhotosAlbum: SaveImageToPhotosAlbum; - compressImage: CompressImage; - chooseVideo: ChooseVideo; - saveVideoToPhotosAlbum: SaveVideoToPhotosAlbum; - getVideoInfo: GetVideoInfo; - chooseFile: ChooseFile; - chooseMedia: ChooseMedia; - request: Request<Object>; - uploadFile: UploadFile; - downloadFile: DownloadFile; - openAppAuthorizeSetting: OpenAppAuthorizeSetting; - openDocument: OpenDocument; - showToast: ShowToast; - hideToast: HideToast; - showLoading: ShowLoading; - hideLoading: HideLoading; - showModal: ShowModal; - showActionSheet: ShowActionSheet; - startPullDownRefresh: StartPullDownRefresh; - stopPullDownRefresh: StopPullDownRefresh; - rpx2px: Rpx2px; - scanCode: ScanCode; - shareWithSystem: ShareWithSystem; - setStorage: SetStorage; - setStorageSync: SetStorageSync; - getStorage: GetStorage; - getStorageSync: GetStorageSync; - getStorageInfo: GetStorageInfo; - getStorageInfoSync: GetStorageInfoSync; - removeStorage: RemoveStorage; - removeStorageSync: RemoveStorageSync; - clearStorage: ClearStorage; - clearStorageSync: ClearStorageSync; - showTabBarRedDot: ShowTabBarRedDot; - hideTabBarRedDot: HideTabBarRedDot; - setTabBarBadge: SetTabBarBadge; - removeTabBarBadge: RemoveTabBarBadge; - setTabBarItem: SetTabBarItem; - setTabBarStyle: SetTabBarStyle; - showTabBar: ShowTabBar; - hideTabBar: HideTabBar; - connectSocket: ConnectSocket; - sendSocketMessage: SendSocketMessage; - closeSocket: CloseSocket; - onSocketOpen: OnSocketOpen; - onSocketMessage: OnSocketMessage; - onSocketClose: OnSocketClose; - onSocketError: OnSocketError; -} -export function initUniExtApi() { - const API_LOGIN = 'login'; - const LoginApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'provider', - { - type: 'string' - } - ], - [ - 'timeout', - { - type: 'number' - } - ] - ]); - const API_GET_USER_INFO = 'getUserInfo'; - const GetUserInfoApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'provider', - { - type: 'string' - } - ], - [ - 'timeout', - { - type: 'number' - } - ] - ]); - const SERVICE = 'oauth'; - const PROVIDER = 'huawei'; - const login: Login = defineAsyncApi<LoginOptions, LoginSuccess>(API_LOGIN, (args: LoginOptions, executor: ApiExecutor<LoginSuccess>)=>{ - const provider = getUniProvider<UniOAuthProvider>(SERVICE, args.provider ?? PROVIDER); - if (!provider) { - executor.reject('Provider not found.'); - return; - } - provider.login({ - success (res) { - executor.resolve(res); - }, - fail (err) { - executor.reject(err.errMsg); - } - } as LoginOptions); - }, LoginApiProtocol) as Login; - const getUserInfo: GetUserInfo = defineAsyncApi<GetUserInfoOptions, GetUserInfoSuccess>(API_GET_USER_INFO, (args: GetUserInfoOptions, executor: ApiExecutor<GetUserInfoSuccess>)=>{ - const provider = getUniProvider<UniOAuthProvider>(SERVICE, args.provider ?? PROVIDER); - if (!provider) { - executor.reject('Provider not found.'); - return; - } - provider.getUserInfo({ - success (res) { - executor.resolve(res); - }, - fail (err) { - executor.reject(err.errMsg); - } - } as GetUserInfoOptions); - }, GetUserInfoApiProtocol) as GetUserInfo; - const RequestPaymentUniErrors: Map<RequestPaymentErrorCode, string> = new Map([ - [ - 700600, - 'The payment result is unknown (it may have been successfully paid). Please check the payment status of the order in the merchant order list.' - ], - [ - 701100, - 'Order payment failure.' - ], - [ - 701110, - 'Repeat the request.' - ], - [ - 700601, - 'The user canceled midway.' - ], - [ - 700602, - 'Network connection error.' - ], - [ - 700603, - 'Payment result unknown (may have been successfully paid), please check the payment status of the order in the merchant order list.' - ], - [ - 700607, - 'Payment not completed.' - ], - [ - 700608, - 'Parameter error.' - ], - [ - 700000, - 'Other payment errors.' - ], - [ - 700604, - 'Wechat is not installed.' - ], - [ - 700605, - 'Failed to get provider.' - ], - [ - 700800, - 'URL Scheme is not configured.' - ], - [ - 700801, - 'Universal Link is not configured.' - ] - ]); - const API_REQUEST_PAYMENT = 'requestPayment'; - const requestPayment: RequestPayment = defineAsyncApi<RequestPaymentOptions, RequestPaymentSuccess>(API_REQUEST_PAYMENT, (options: RequestPaymentOptions, exec: ApiExecutor<RequestPaymentSuccess>): void =>{ - const provider = getUniProvider<UniPaymentProvider>('payment', options.provider); - if (!provider) { - exec.reject('Provider not found.'); - return; - } - provider.requestPayment({ - orderInfo: options.orderInfo, - success: (result: RequestPaymentSuccess)=>{ - exec.resolve(result); - }, - fail: (error: RequestPaymentFail)=>{ - const errMsg = RequestPaymentUniErrors.get(error.errCode) ?? ""; - exec.reject(errMsg, { - errCode: error.errCode - } as ApiError); - } - } as RequestPaymentOptions); - }) as RequestPayment; - const API_ADD_PHONE_CONTACT = 'addPhoneContact'; - const AddPhoneContactApiOptions: ApiOptions<AddPhoneContactOptions> = { - formatArgs: new Map<string, ((firstName: string) => string | undefined)>([ - [ - 'firstName', - (firstName: string)=>{ - if (!firstName) { - return 'addPhoneContact:fail parameter error: parameter.firstName should not be empty;'; - } - return undefined; - } - ] - ]) - }; - const AddPhoneContactApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'firstName', - { - type: 'string', - required: true - } - ], - [ - 'photoFilePath', - { - type: 'string' - } - ], - [ - 'nickName', - { - type: 'string' - } - ], - [ - 'lastName', - { - type: 'string' - } - ], - [ - 'middleName', - { - type: 'string' - } - ], - [ - 'remark', - { - type: 'string' - } - ], - [ - 'mobilePhoneNumber', - { - type: 'string' - } - ], - [ - 'weChatNumber', - { - type: 'string' - } - ], - [ - 'addressCountry', - { - type: 'string' - } - ], - [ - 'addressState', - { - type: 'string' - } - ], - [ - 'addressCity', - { - type: 'string' - } - ], - [ - 'addressStreet', - { - type: 'string' - } - ], - [ - 'addressPostalCode', - { - type: 'string' - } - ], - [ - 'organization', - { - type: 'string' - } - ], - [ - 'title', - { - type: 'string' - } - ], - [ - 'workFaxNumber', - { - type: 'string' - } - ], - [ - 'workPhoneNumber', - { - type: 'string' - } - ], - [ - 'hostNumber', - { - type: 'string' - } - ], - [ - 'email', - { - type: 'string' - } - ], - [ - 'url', - { - type: 'string' - } - ], - [ - 'workAddressCountry', - { - type: 'string' - } - ], - [ - 'workAddressState', - { - type: 'string' - } - ], - [ - 'workAddressCity', - { - type: 'string' - } - ], - [ - 'workAddressStreet', - { - type: 'string' - } - ], - [ - 'workAddressPostalCode', - { - type: 'string' - } - ], - [ - 'homeFaxNumber', - { - type: 'string' - } - ], - [ - 'homePhoneNumber', - { - type: 'string' - } - ], - [ - 'homeAddressCountry', - { - type: 'string' - } - ], - [ - 'homeAddressState', - { - type: 'string' - } - ], - [ - 'homeAddressCity', - { - type: 'string' - } - ], - [ - 'homeAddressStreet', - { - type: 'string' - } - ], - [ - 'homeAddressPostalCode', - { - type: 'string' - } - ] - ]); - const addPhoneContact: AddPhoneContact = defineAsyncApi<AddPhoneContactOptions, AddPhoneContactSuccess>(API_ADD_PHONE_CONTACT, (args: AddPhoneContactOptions, executor: ApiExecutor<AddPhoneContactSuccess>)=>{ - UTSHarmony.requestSystemPermission([ - 'ohos.permission.WRITE_CONTACTS' - ], (allRight: boolean)=>{ - if (allRight) { - const photoFilePath = args.photoFilePath, _args_nickName = args.nickName, nickName = _args_nickName == null ? '' : _args_nickName, _args_lastName = args.lastName, lastName = _args_lastName == null ? '' : _args_lastName, _args_middleName = args.middleName, middleName = _args_middleName == null ? '' : _args_middleName, _args_firstName = args.firstName, firstName = _args_firstName == null ? '' : _args_firstName, _args_remark = args.remark, remark = _args_remark == null ? '' : _args_remark, _args_mobilePhoneNumber = args.mobilePhoneNumber, mobilePhoneNumber = _args_mobilePhoneNumber == null ? '' : _args_mobilePhoneNumber, _args_addressCountry = args.addressCountry, addressCountry = _args_addressCountry == null ? '' : _args_addressCountry, _args_addressState = args.addressState, addressState = _args_addressState == null ? '' : _args_addressState, _args_addressCity = args.addressCity, addressCity = _args_addressCity == null ? '' : _args_addressCity, _args_addressStreet = args.addressStreet, addressStreet = _args_addressStreet == null ? '' : _args_addressStreet, _args_addressPostalCode = args.addressPostalCode, addressPostalCode = _args_addressPostalCode == null ? '' : _args_addressPostalCode, _args_organization = args.organization, organization = _args_organization == null ? '' : _args_organization, _args_url = args.url, url = _args_url == null ? '' : _args_url, _args_workPhoneNumber = args.workPhoneNumber, workPhoneNumber = _args_workPhoneNumber == null ? '' : _args_workPhoneNumber, _args_workFaxNumber = args.workFaxNumber, workFaxNumber = _args_workFaxNumber == null ? '' : _args_workFaxNumber, _args_hostNumber = args.hostNumber, hostNumber = _args_hostNumber == null ? '' : _args_hostNumber, _args_email = args.email, email = _args_email == null ? '' : _args_email, _args_title = args.title, title = _args_title == null ? '' : _args_title, _args_workAddressCountry = args.workAddressCountry, workAddressCountry = _args_workAddressCountry == null ? '' : _args_workAddressCountry, _args_workAddressState = args.workAddressState, workAddressState = _args_workAddressState == null ? '' : _args_workAddressState, _args_workAddressCity = args.workAddressCity, workAddressCity = _args_workAddressCity == null ? '' : _args_workAddressCity, _args_workAddressStreet = args.workAddressStreet, workAddressStreet = _args_workAddressStreet == null ? '' : _args_workAddressStreet, workAddressPostalCode = args.workAddressPostalCode, _args_homeFaxNumber = args.homeFaxNumber, homeFaxNumber = _args_homeFaxNumber == null ? '' : _args_homeFaxNumber, _args_homePhoneNumber = args.homePhoneNumber, homePhoneNumber = _args_homePhoneNumber == null ? '' : _args_homePhoneNumber, _args_homeAddressCountry = args.homeAddressCountry, homeAddressCountry = _args_homeAddressCountry == null ? '' : _args_homeAddressCountry, _args_homeAddressState = args.homeAddressState, homeAddressState = _args_homeAddressState == null ? '' : _args_homeAddressState, _args_homeAddressCity = args.homeAddressCity, homeAddressCity = _args_homeAddressCity == null ? '' : _args_homeAddressCity, _args_homeAddressStreet = args.homeAddressStreet, homeAddressStreet = _args_homeAddressStreet == null ? '' : _args_homeAddressStreet, _args_homeAddressPostalCode = args.homeAddressPostalCode, homeAddressPostalCode = _args_homeAddressPostalCode == null ? '' : _args_homeAddressPostalCode; - const contactInfo: contact.Contact = { - name: { - familyName: lastName!, - middleName: middleName!, - givenName: firstName!, - fullName: lastName! + middleName! + firstName! - }, - nickName: { - nickName: nickName! - }, - emails: [ - { - email: email!, - displayName: '邮箱' - } - ], - phoneNumbers: [ - { - phoneNumber: homePhoneNumber!, - labelId: contact.PhoneNumber.NUM_HOME - }, - { - phoneNumber: mobilePhoneNumber!, - labelId: contact.PhoneNumber.NUM_MOBILE - }, - { - phoneNumber: homeFaxNumber!, - labelId: contact.PhoneNumber.NUM_FAX_HOME - }, - { - phoneNumber: workFaxNumber!, - labelId: contact.PhoneNumber.NUM_FAX_WORK - }, - { - phoneNumber: workPhoneNumber!, - labelId: contact.PhoneNumber.NUM_WORK - }, - { - phoneNumber: hostNumber!, - labelId: contact.PhoneNumber.NUM_COMPANY_MAIN - } - ], - portrait: { - uri: photoFilePath! - }, - postalAddresses: [ - { - city: homeAddressCity!, - country: homeAddressCountry!, - postcode: homeAddressPostalCode!, - street: homeAddressStreet!, - postalAddress: homeAddressCountry! + homeAddressState! + homeAddressCity + homeAddressStreet, - labelId: contact.PostalAddress.ADDR_HOME - }, - { - city: workAddressCity!, - country: workAddressCountry!, - postcode: workAddressPostalCode!, - street: workAddressStreet!, - postalAddress: workAddressCountry! + workAddressState! + workAddressCity + workAddressStreet, - labelId: contact.PostalAddress.ADDR_WORK - }, - { - city: addressCity!, - country: addressCountry!, - postcode: addressPostalCode!, - street: addressStreet!, - postalAddress: addressCountry! + addressState! + addressCity + addressStreet, - labelId: contact.PostalAddress.CUSTOM_LABEL - } - ], - websites: [ - { - website: url! - } - ], - note: { - noteContent: remark! - }, - organization: { - name: organization!, - title: title! - } - }; - contact.addContact(getContext(), contactInfo).then((contactId)=>{ - executor.resolve(contactId); - }).catch((err: BusinessError)=>{ - executor.reject(err.message); - }); - } else { - executor.reject('Permission denied'); - } - }, ()=>executor.reject('Permission denied')); - }, AddPhoneContactApiProtocol, AddPhoneContactApiOptions) as AddPhoneContact; - const API_START_SOTER_AUTHENTICATION = 'startSoterAuthentication'; - const StartSoterAuthenticationApiOptions: ApiOptions<StartSoterAuthenticationOptions> = { - formatArgs: new Map<string, ((value: string) => string | undefined)>([ - [ - 'requestAuthModes', - (value: string)=>{ - if (!value.includes('fingerPrint') && !value.includes('facial')) { - return 'requestAuthModes 填写错误'; - } - return undefined; - } - ] - ]) - }; - const StartSoterAuthenticationApiProtocols = new Map<string, ProtocolOptions>([ - [ - 'requestAuthModes', - { - type: 'array', - required: true - } - ], - [ - 'challenge', - { - type: 'string' - } - ], - [ - 'authContent', - { - type: 'string' - } - ] - ]); - const API_CHECK_IS_SOTER_ENROLLED_IN_DEVICE = 'checkIsSoterEnrolledInDevice'; - const checkAuthModes: SoterAuthMode[] = [ - 'fingerPrint', - 'facial', - 'speech' - ]; - const CheckIsSoterEnrolledInDeviceApiOptions: ApiOptions<CheckIsSoterEnrolledInDeviceOptions> = { - formatArgs: new Map<string, ((value: string) => string | undefined)>([ - [ - 'checkAuthMode', - (value: string)=>{ - if (!checkAuthModes.includes(value as SoterAuthMode)) { - return 'checkAuthMode 填写错误'; - } - return undefined; - } - ] - ]) - }; - const CheckIsSoterEnrolledInDeviceProtocols = new Map<string, ProtocolOptions>([ - [ - 'checkAuthMode', - { - type: 'string' - } - ] - ]); - const API_CHECK_IS_SUPPORT_SOTER_AUTHENTICATION = 'checkIsSupportSoterAuthentication'; - const getErrorMessage = (code: number): string =>{ - switch(code){ - case 201: - return "权限认证失败"; - case 401: - return "参数不正确。可能的一个原因: 强制参数未指定"; - case userAuth.UserAuthResultCode.FAIL: - return "认证失败"; - case userAuth.UserAuthResultCode.GENERAL_ERROR: - return "操作通用错误"; - case userAuth.UserAuthResultCode.CANCELED: - return "操作取消"; - case userAuth.UserAuthResultCode.TIMEOUT: - return "操作超时"; - case userAuth.UserAuthResultCode.TYPE_NOT_SUPPORT: - return "不支持的认证类型"; - case userAuth.UserAuthResultCode.TRUST_LEVEL_NOT_SUPPORT: - return "不支持的认证等级"; - case userAuth.UserAuthResultCode.BUSY: - return "忙碌状态"; - case userAuth.UserAuthResultCode.LOCKED: - return "认证器已锁定"; - case userAuth.UserAuthResultCode.NOT_ENROLLED: - return "用户未录入认证信息"; - case userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET: - return "切换到自定义身份验证过程"; - case 12500013: - return "系统锁屏密码过期"; - default: - return ''; - } - }; - const getUniErrMsg = (code: number): number =>{ - switch(code){ - case 201: - return 90002; - case 401: - return 90004; - case userAuth.UserAuthResultCode.FAIL: - return 90009; - case userAuth.UserAuthResultCode.GENERAL_ERROR: - return 90007; - case userAuth.UserAuthResultCode.CANCELED: - return 90008; - case userAuth.UserAuthResultCode.TIMEOUT: - return 90007; - case userAuth.UserAuthResultCode.TYPE_NOT_SUPPORT: - return 90003; - case userAuth.UserAuthResultCode.TRUST_LEVEL_NOT_SUPPORT: - return 90003; - case userAuth.UserAuthResultCode.BUSY: - return 90010; - case userAuth.UserAuthResultCode.LOCKED: - return 90010; - case userAuth.UserAuthResultCode.NOT_ENROLLED: - return 90011; - case userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET: - return userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET; - case 12500013: - return 12500013; - default: - return -1; - } - }; - const toUint8Arr = (str: string)=>{ - const buffer: number[] = []; - for (let i of str){ - const _code: number = i.charCodeAt(0); - if (_code < 0x80) { - buffer.push(_code); - } else if (_code < 0x800) { - buffer.push(0xc0 + (_code >> 6)); - buffer.push(0x80 + (_code & 0x3f)); - } else if (_code < 0x10000) { - buffer.push(0xe0 + (_code >> 12)); - buffer.push(0x80 + (_code >> 6 & 0x3f)); - buffer.push(0x80 + (_code & 0x3f)); - } - } - return Uint8Array.from(buffer); - }; - const startSoterAuthentication: StartSoterAuthentication = defineAsyncApi<StartSoterAuthenticationOptions, StartSoterAuthenticationSuccess>(API_START_SOTER_AUTHENTICATION, (args: StartSoterAuthenticationOptions, executor: ApiExecutor<StartSoterAuthenticationSuccess>)=>{ - const authType: userAuth.UserAuthType[] = []; - args.requestAuthModes.forEach((item)=>{ - if (item === 'fingerPrint') { - authType.push(userAuth.UserAuthType.FINGERPRINT); - } else if (item === 'facial') { - authType.push(userAuth.UserAuthType.FACE); - } - }); - const challengeArr = toUint8Arr(args.challenge ?? ''); - const authContent = args.authContent ?? ''; - try { - const auth = userAuth.getUserAuthInstance({ - challenge: challengeArr, - authType, - authTrustLevel: userAuth.AuthTrustLevel.ATL1 - } as userAuth.AuthParam, { - title: authContent - } as userAuth.WidgetParam); - auth.on("result", { - onResult: (result: userAuth.UserAuthResult)=>{ - if (result.result === userAuth.UserAuthResultCode.SUCCESS) { - executor.resolve({ - errCode: 0, - authMode: result.authType === userAuth.UserAuthType.FINGERPRINT ? 'fingerPrint' : 'facial' - } as StartSoterAuthenticationSuccess); - } else { - const errMsg = getErrorMessage(result.result); - const errCode = getUniErrMsg(result.result); - executor.reject(errMsg, { - errCode - } as ApiError); - } - } - } as userAuth.IAuthCallback); - if (authContent) { - promptAction.showToast({ - message: authContent - } as promptAction.ShowToastOptions); - } - auth.start(); - } catch (error) { - const code = (error as BusinessError1).code; - executor.reject(getErrorMessage(code), { - errCode: getUniErrMsg(code) - } as ApiError); - } - }, StartSoterAuthenticationApiProtocols, StartSoterAuthenticationApiOptions) as StartSoterAuthentication; - const fingerPrintAvailable = ()=>{ - try { - userAuth.getAvailableStatus(userAuth.UserAuthType.FINGERPRINT, userAuth.AuthTrustLevel.ATL1); - return true; - } catch (error) { - return false; - } - }; - const faceAvailable = ()=>{ - try { - userAuth.getAvailableStatus(userAuth.UserAuthType.FACE, userAuth.AuthTrustLevel.ATL1); - return true; - } catch (error) { - return false; - } - }; - const PERMISSIONS = [ - 'ohos.permission.ACCESS_BIOMETRIC' - ]; - const checkIsSupportSoterAuthentication: CheckIsSupportSoterAuthentication = defineAsyncApi<CheckIsSupportSoterAuthenticationOptions, CheckIsSupportSoterAuthenticationSuccess>(API_CHECK_IS_SUPPORT_SOTER_AUTHENTICATION, (args: CheckIsSupportSoterAuthenticationOptions, executor: ApiExecutor<CheckIsSupportSoterAuthenticationSuccess>)=>{ - UTSHarmony1.requestSystemPermission(PERMISSIONS, (allRight: boolean)=>{ - if (allRight) { - try { - const supportMode: SoterAuthMode[] = []; - if (fingerPrintAvailable()) supportMode.push('fingerPrint'); - if (faceAvailable()) supportMode.push('facial'); - return executor.resolve({ - supportMode, - errMsg: '' - } as CheckIsSupportSoterAuthenticationSuccess); - } catch (error) { - const code = (error as BusinessError1).code; - executor.reject(getErrorMessage(code), { - errCode: getUniErrMsg(code) - } as ApiError); - } - } else { - executor.reject(getErrorMessage(201)); - } - }, ()=>{ - executor.reject(getErrorMessage(201)); - }); - }) as CheckIsSupportSoterAuthentication; - const getFingerPrintEnrolledState = ()=>{ - userAuth.getEnrolledState(userAuth.UserAuthType.FINGERPRINT); - return true; - }; - const getFaceEnrolledState = ()=>{ - userAuth.getEnrolledState(userAuth.UserAuthType.FACE); - return true; - }; - const harmonyCheckIsSoterEnrolledInDevice = (checkAuthMode: SoterAuthMode): boolean =>{ - if (checkAuthMode === 'fingerPrint') { - return getFingerPrintEnrolledState(); - } else if (checkAuthMode === 'facial') { - return getFaceEnrolledState(); - } - return false; - }; - const checkIsSoterEnrolledInDevice: CheckIsSoterEnrolledInDevice = defineAsyncApi<CheckIsSoterEnrolledInDeviceOptions, CheckIsSoterEnrolledInDeviceSuccess>(API_CHECK_IS_SOTER_ENROLLED_IN_DEVICE, (args: CheckIsSoterEnrolledInDeviceOptions, executor: ApiExecutor<CheckIsSoterEnrolledInDeviceSuccess>)=>{ - UTSHarmony1.requestSystemPermission(PERMISSIONS, (allRight: boolean)=>{ - if (allRight) { - try { - const isEnrolled = harmonyCheckIsSoterEnrolledInDevice(args.checkAuthMode); - executor.resolve({ - isEnrolled, - errMsg: '' - } as CheckIsSoterEnrolledInDeviceSuccess); - } catch (error) { - const code = (error as BusinessError1).code; - executor.reject(getErrorMessage(code), { - errCode: getUniErrMsg(code) - } as ApiError); - } - } else { - executor.reject(getErrorMessage(201)); - } - }, ()=>{ - executor.reject(getErrorMessage(201)); - }); - }, CheckIsSoterEnrolledInDeviceProtocols, CheckIsSoterEnrolledInDeviceApiOptions) as CheckIsSoterEnrolledInDevice; - const API_GET_CLIPBOARD_DATA = 'getClipboardData'; - const API_SET_CLIPBOARD_DATA = 'setClipboardData'; - const SetClipboardDataApiOptions: ApiOptions<SetClipboardDataOptions> = { - formatArgs: new Map<string, boolean>([ - [ - 'showToast', - true - ] - ]) - }; - const SetClipboardDataProtocol = new Map<string, ProtocolOptions>([ - [ - 'data', - { - type: 'string', - required: true - } - ], - [ - 'showToast', - { - type: 'boolean' - } - ] - ]); - const getClipboardData: GetClipboardData = defineAsyncApi<GetClipboardDataOptions, GetClipboardDataSuccess>(API_GET_CLIPBOARD_DATA, (_: GetClipboardDataOptions, res: ApiExecutor<GetClipboardDataSuccess>)=>{ - clipboard.getString((ret: ClipboardModuleGetStringOptions)=>{ - if (ret.result === 'success') { - res.resolve({ - data: ret.data - } as GetClipboardDataSuccess); - } else { - res.reject('getClipboardData:fail'); - } - }); - }) as GetClipboardData; - const setClipboardData: SetClipboardData = defineAsyncApi<SetClipboardDataOptions, SetClipboardDataSuccess>(API_SET_CLIPBOARD_DATA, (options: SetClipboardDataOptions, res: ApiExecutor<SetClipboardDataSuccess>)=>{ - clipboard.setString(options.data); - res.resolve(); - }, SetClipboardDataProtocol, SetClipboardDataApiOptions) as SetClipboardData; - const API_CREATE_INNER_AUDIO_CONTEXT = 'createInnerAudioContext'; - const isFileUri = (path: string)=>{ - return path && typeof path === 'string' && (path.startsWith('file://') || path.startsWith('datashare://')); - }; - const isSandboxPath = (path: string)=>{ - return path && typeof path === 'string' && path.startsWith('/data/storage/'); - }; - const getFdFromUriOrSandBoxPath = (uri: string)=>{ - try { - const file = fileIo.openSync(uri, fileIo.OpenMode.READ_ONLY); - return file.fd; - } catch (error) { - console.info(`[AdvancedAPI] Can not get file from uri: ${uri} `); - } - throw new Error('file is not exist'); - }; - const callCallbacks = (callbacks: Function[], ...args: Object[])=>{ - callbacks.forEach((cb)=>{ - typeof cb === 'function' && cb(...args); - }); - }; - const remoteCallback = (callbacks: Function[], callback: Function)=>{ - const index = callbacks.indexOf(callback); - if (index > -1) { - callbacks.splice(index, 1); - } - }; - class AudioPlayerError { - errMsg: string; - errCode: number; - constructor(errMsg: string, errCode: number){ - this.errMsg = errMsg; - this.errCode = errCode; - } - } - class AudioPlayerCallback { - onCanplayCallbacks: Function[] = []; - onPlayCallbacks: Function[] = []; - onPauseCallbacks: Function[] = []; - onStopCallbacks: Function[] = []; - onEndedCallbacks: Function[] = []; - onTimeUpdateCallbacks: Function[] = []; - onErrorCallbacks: Function[] = []; - onWaitingCallbacks: Function[] = []; - onSeekingCallbacks: Function[] = []; - onSeekedCallbacks: Function[] = []; - constructor(){} - canPlay() { - callCallbacks(this.onCanplayCallbacks); - } - onCanplay(callback: Function) { - this.onCanplayCallbacks.push(callback); - } - offCanplay(callback: Function) { - remoteCallback(this.onCanplayCallbacks, callback); - } - play() { - callCallbacks(this.onPlayCallbacks); - } - onPlay(callback: Function) { - this.onPlayCallbacks.push(callback); - } - offPlay(callback: Function) { - remoteCallback(this.onPlayCallbacks, callback); - } - pause() { - callCallbacks(this.onPauseCallbacks); - } - onPause(callback: Function) { - this.onPauseCallbacks.push(callback); - } - offPause(callback: Function) { - remoteCallback(this.onPauseCallbacks, callback); - } - stop() { - callCallbacks(this.onStopCallbacks); - } - onStop(callback: Function) { - this.onStopCallbacks.push(callback); - } - offStop(callback: Function) { - remoteCallback(this.onStopCallbacks, callback); - } - ended() { - callCallbacks(this.onEndedCallbacks); - } - onEnded(callback: Function) { - this.onEndedCallbacks.push(callback); - } - offEnded(callback: Function) { - remoteCallback(this.onEndedCallbacks, callback); - } - timeUpdate(time: number) { - callCallbacks(this.onTimeUpdateCallbacks, time); - } - onTimeUpdate(callback: Function) { - this.onTimeUpdateCallbacks.push(callback); - } - offTimeUpdate(callback: Function) { - remoteCallback(this.onTimeUpdateCallbacks, callback); - } - error(res: AudioPlayerError) { - callCallbacks(this.onErrorCallbacks, res); - } - onError(callback: Function) { - this.onErrorCallbacks.push(callback); - } - offError(callback: Function) { - remoteCallback(this.onErrorCallbacks, callback); - } - onPrev(callback: Function) { - console.info('ios only'); - } - onNext(callback: Function) { - console.info('ios only'); - } - waiting() { - callCallbacks(this.onWaitingCallbacks); - } - onWaiting(callback: Function) { - this.onWaitingCallbacks.push(callback); - } - offWaiting(callback: Function) { - remoteCallback(this.onWaitingCallbacks, callback); - } - seeking() { - callCallbacks(this.onSeekingCallbacks); - } - onSeeking(callback: Function) { - this.onSeekingCallbacks.push(callback); - } - offSeeking(callback: Function) { - remoteCallback(this.onSeekingCallbacks, callback); - } - seeked() { - callCallbacks(this.onSeekedCallbacks); - } - onSeeked(callback: Function) { - this.onSeekedCallbacks.push(callback); - } - offSeeked(callback: Function) { - remoteCallback(this.onSeekedCallbacks, callback); - } - } - const AUDIOS: Record<string, InnerAudioContext | undefined> = {}; - const AUDIO_PLAYERS: Record<string, media.AudioPlayer | undefined> = {}; - const LOG = (msg: string)=>console.log(`[createInnerAudioContext]: ${msg}`); - class STATE_TYPE { - static IDLE: string = 'idle'; - static PLAYING: string = 'playing'; - static PAUSED: string = 'paused'; - static STOPPED: string = 'stopped'; - static ERROR: string = 'error'; - } - class AudioPlayer implements InnerAudioContext { - private audioPlayerCallback: AudioPlayerCallback = new AudioPlayerCallback(); - private _volume: number = 1; - private _src: string = ''; - private _autoplay: boolean = false; - private _startTime: number = 0; - private _buffered: number = 0; - private _title: string = ''; - private audioId: string = ''; - private _playbackRate: number = 1; - readonly obeyMuteSwitch: boolean = false; - constructor(audioId: string){ - this.audioId = audioId; - this.init(); - } - init() { - AUDIO_PLAYERS[this.audioId]?.on('dataLoad', ()=>{ - this.audioPlayerCallback.canPlay(); - }); - AUDIO_PLAYERS[this.audioId]?.on('play', ()=>{ - this.audioPlayerCallback.play(); - }); - AUDIO_PLAYERS[this.audioId]?.on('pause', ()=>{ - this.audioPlayerCallback.pause(); - }); - AUDIO_PLAYERS[this.audioId]?.on('finish', ()=>{ - this.audioPlayerCallback.ended(); - }); - AUDIO_PLAYERS[this.audioId]?.on('timeUpdate', (res)=>{ - this.audioPlayerCallback.timeUpdate(res / 1000); - }); - AUDIO_PLAYERS[this.audioId]?.on('error', (err)=>{ - this.audioPlayerCallback.error(new AudioPlayerError(err.message, err.code)); - }); - AUDIO_PLAYERS[this.audioId]?.on('bufferingUpdate', (infoType, value)=>{ - console.info(`[AdvancedAPI] audioPlayer bufferingUpdate ${infoType} ${value}`); - if (infoType === media.BufferingInfoType.BUFFERING_PERCENT && value !== 0 && AUDIO_PLAYERS[this.audioId]) { - this._buffered = value; - if ((AUDIO_PLAYERS[this.audioId]!.currentTime / 1000) >= (AUDIO_PLAYERS[this.audioId]!.duration * value / 100000)) { - this.audioPlayerCallback.waiting(); - } - } - }); - AUDIO_PLAYERS[this.audioId]?.on('audioInterrupt', (InterruptEvent)=>{ - console.info('[AdvancedAPI] audioInterrupt:' + JSON.stringify(InterruptEvent)); - if (AUDIO_PLAYERS[this.audioId] && InterruptEvent.hintType === audio.InterruptHint.INTERRUPT_HINT_PAUSE) { - AUDIO_PLAYERS[this.audioId]!.pause(); - } - }); - } - get duration() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return 0; - } - return audioPlayer.duration / 1000; - } - get currentTime() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return 0; - } - return audioPlayer.currentTime / 1000; - } - get paused() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return false; - } - return audioPlayer.state === STATE_TYPE.PAUSED; - } - get loop() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return false; - } - return audioPlayer.loop; - } - set loop(value) { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (audioPlayer) { - audioPlayer.loop = value; - } - } - get volume() { - return this._volume; - } - set volume(value) { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (audioPlayer) { - this._volume = value; - audioPlayer.setVolume(value); - } - } - get src() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return ''; - } - return audioPlayer.src; - } - set src(value) { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (typeof value !== 'string') { - this.audioPlayerCallback.error(new AudioPlayerError(`set src: ${value} is not string`, 10004)); - return; - } - if (!audioPlayer) { - this.audioPlayerCallback.error(new AudioPlayerError(`player is not exist`, 10001)); - return; - } - if (!value || !(value.startsWith('http:') || value.startsWith('https:') || isFileUri(value) || isSandboxPath(value))) { - LOG(`set src: ${value} is invalid`); - return; - } - let path: string = ''; - if (value.startsWith('http:') || value.startsWith('https:')) { - path = value; - } else if (isFileUri(value) || isSandboxPath(value)) { - try { - const fd = getFdFromUriOrSandBoxPath(value); - path = `fd://${fd}`; - } catch (error) { - console.error(`${JSON.stringify(error)}`); - } - } - if (audioPlayer.src && path !== audioPlayer.src) { - audioPlayer.reset(); - } - AUDIO_PLAYERS[this.audioId]!.src = path; - this._src = value; - if (this._autoplay) { - audioPlayer.play(); - if (this._startTime) { - audioPlayer.seek(this._startTime); - } - } - } - get startTime() { - return this._startTime / 1000; - } - set startTime(time: number) { - this._startTime = time * 1000; - } - get autoplay() { - return this._autoplay; - } - set autoplay(flag) { - this._autoplay = flag; - } - get buffered() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) return 0; - return audioPlayer.duration * this._buffered / 100000; - } - set playbackRate(rate: number) { - this.audioPlayerCallback.error(new AudioPlayerError('HarmonyOS Next Audio setting playbackRate is not supported.', -1)); - } - get playbackRate() { - return this._playbackRate; - } - play() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return; - } - const state = audioPlayer.state ?? ''; - if (![ - STATE_TYPE.PAUSED, - STATE_TYPE.STOPPED, - STATE_TYPE.IDLE - ].includes(state)) { - return; - } - if (this._src && audioPlayer.src === '') { - this.src = this._src; - } - audioPlayer.play(); - } - pause() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return; - } - const state = audioPlayer.state; - if (STATE_TYPE.PLAYING !== state) { - return; - } - audioPlayer.pause(); - } - stop() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return; - } - if (![ - STATE_TYPE.PAUSED, - STATE_TYPE.PLAYING - ].includes(audioPlayer.state)) { - return; - } - audioPlayer.stop(); - this.audioPlayerCallback.stop(); - audioPlayer.release(); - } - seek(position: number) { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return; - } - const state = audioPlayer.state; - if (![ - STATE_TYPE.PAUSED, - STATE_TYPE.PLAYING - ].includes(state)) { - return; - } - this.audioPlayerCallback.seeking(); - audioPlayer.seek(position * 1000); - this.audioPlayerCallback.seeked(); - } - destroy() { - const audioPlayer = AUDIO_PLAYERS[this.audioId]; - if (!audioPlayer) { - return; - } - audioPlayer.release(); - AUDIO_PLAYERS[this.audioId] = undefined; - AUDIOS[this.audioId] = undefined; - } - onCanplay(callback: (result: Object) => void): void { - this.audioPlayerCallback.onCanplay(callback); - } - onPlay(callback: (result: Object) => void): void { - this.audioPlayerCallback.onPlay(callback); - } - onPause(callback: (result: Object) => void): void { - this.audioPlayerCallback.onPause(callback); - } - onStop(callback: (result: Object) => void): void { - this.audioPlayerCallback.onStop(callback); - } - onEnded(callback: (result: Object) => void): void { - this.audioPlayerCallback.onEnded(callback); - } - onTimeUpdate(callback: (result: Object) => void): void { - this.audioPlayerCallback.onTimeUpdate(callback); - } - onError(callback: (result: Object) => void): void { - this.audioPlayerCallback.onError(callback); - } - onWaiting(callback: (result: Object) => void): void { - this.audioPlayerCallback.onWaiting(callback); - } - onSeeking(callback: (result: Object) => void): void { - this.audioPlayerCallback.onSeeking(callback); - } - onSeeked(callback: (result: Object) => void): void { - this.audioPlayerCallback.onSeeked(callback); - } - offCanplay(callback: (result: Object) => void): void { - this.audioPlayerCallback.offCanplay(callback); - } - offPlay(callback: (result: Object) => void): void { - this.audioPlayerCallback.offPlay(callback); - } - offPause(callback: (result: Object) => void): void { - this.audioPlayerCallback.offPause(callback); - } - offStop(callback: (result: Object) => void): void { - this.audioPlayerCallback.offStop(callback); - } - offEnded(callback: (result: Object) => void): void { - this.audioPlayerCallback.offEnded(callback); - } - offTimeUpdate(callback: (result: Object) => void): void { - this.audioPlayerCallback.offTimeUpdate(callback); - } - offError(callback: (result: Object) => void): void { - this.audioPlayerCallback.offError(callback); - } - offWaiting(callback: (result: Object) => void): void { - this.audioPlayerCallback.offWaiting(callback); - } - offSeeking(callback: (result: Object) => void): void { - this.audioPlayerCallback.offSeeking(callback); - } - offSeeked(callback: (result: Object) => void): void { - this.audioPlayerCallback.offSeeked(callback); - } - } - const createAudioInstance = ()=>{ - const audioId = `${Date.now()}${Math.random()}`; - AUDIO_PLAYERS[audioId] = media.createAudioPlayer(); - AUDIOS[audioId] = new AudioPlayer(audioId); - return audioId; - }; - const createInnerAudioContext: CreateInnerAudioContext = defineSyncApi<InnerAudioContext>(API_CREATE_INNER_AUDIO_CONTEXT, ()=>{ - const audioId = createAudioInstance(); - return AUDIOS[audioId]; - }) as CreateInnerAudioContext; - const API_$_ON = '$on'; - const API_$_ONCE = '$once'; - const API_$_OFF = '$off'; - const API_$_EMIT = '$emit'; - const emitter: IUniEventEmitter = new Emitter() as IUniEventEmitter; - const $on: $On = defineSyncApi<void>(API_$_ON, (eventName: string, callback: Function)=>{ - emitter.on(eventName, callback); - }) as $On; - const $once: $Once = defineSyncApi<void>(API_$_ONCE, (eventName: string, callback: Function)=>{ - emitter.once(eventName, callback); - }) as $Once; - const $off: $Off = defineSyncApi<void>(API_$_OFF, (eventName: string, callback: Function)=>{ - emitter.off(eventName, callback); - }) as $Off; - const $emit: $Emit = defineSyncApi<void>(API_$_EMIT, (eventName: string, ...args: (Object | undefined | null)[])=>{ - emitter.emit(eventName, ...args); - }) as $Emit; - const API_EXIT = 'exit'; - const exit: Exit = defineSyncApi<void>(API_EXIT, ()=>{ - UTSHarmony2.exit(); - }) as Exit; - const API_SAVE_FILE = 'saveFile'; - const API_GET_FILE_INFO = 'getFileInfo'; - const API_GET_SAVED_FILE_INFO = 'getSavedFileInfo'; - const API_GET_SAVED_FILE_LIST = 'getSavedFileList'; - const API_REMOVE_SAVED_FILE = 'removeSavedFile'; - const getSavedDir = ()=>{ - return getEnv().USER_DATA_PATH + '/saved'; - }; - let savedIndex: [string, number] = [ - '0', - 0 - ]; - const getSavedFileName = (filePath: string)=>{ - const ext = filePath.split('/').pop()?.split('.').slice(1).join('.'); - let fileName = Date.now() + ''; - if (savedIndex[0] === fileName) { - savedIndex[1]++; - if (savedIndex[1] > 0) { - fileName += '-' + savedIndex[1]; - } - } else { - savedIndex[0] = fileName; - savedIndex[1] = 0; - } - if (ext) { - fileName += '.' + ext; - } - return fileName; - }; - const getFsPath = (filePath: string)=>{ - filePath = getRealPath(filePath) as string; - if (!/^file:/.test(filePath)) { - return filePath; - } - const rawPath = filePath.replace(/^file:\/\//, ''); - if (rawPath[0] === '/') { - return rawPath; - } - return filePath; - }; - const saveFile: SaveFile = defineAsyncApi<SaveFileOptions, SaveFileSuccess>(API_SAVE_FILE, (options: SaveFileOptions, exec: ApiExecutor<SaveFileSuccess>)=>{ - const tempFilePath = getRealPath(options.tempFilePath) as string; - const savedPath = getSavedDir(); - if (!fs.accessSync(savedPath)) { - fs.mkdirSync(savedPath, true); - } - let srcFile: fs.File; - try { - srcFile = fs.openSync(tempFilePath, fs.OpenMode.READ_ONLY); - } catch (error) { - exec.reject((error as Error).message); - return; - } - const savedFilePath = savedPath + '/' + getSavedFileName(tempFilePath); - fs.copyFile(srcFile.fd, savedFilePath, (err)=>{ - fs.closeSync(srcFile); - if (err) { - exec.reject(err.message); - } else { - exec.resolve({ - savedFilePath: 'file://' + savedFilePath - } as SaveFileSuccess); - } - }); - }) as SaveFile; - const getSavedFileList: GetSavedFileList = defineAsyncApi<GetSavedFileListOptions, GetSavedFileListSuccess>(API_GET_SAVED_FILE_LIST, (options: GetSavedFileListOptions, exec: ApiExecutor<GetSavedFileListSuccess>)=>{ - const savedPath = getSavedDir(); - if (!fs.accessSync(savedPath)) { - exec.resolve({ - fileList: [] - } as GetSavedFileListSuccess); - } - fs.listFile(savedPath, {} as ListFileOptions, (err, fileList)=>{ - if (err) { - exec.reject(err.message); - } else { - exec.resolve({ - fileList: fileList.map((filePath: string)=>{ - const fullPath = savedPath + '/' + filePath; - const stat = fs.statSync(fullPath); - if (!stat.isFile()) { - return null; - } - return { - filePath: 'file://' + fullPath, - size: stat.size, - createTime: stat.ctime - } as SavedFileListItem; - }).filter((item)=>!!item) - } as GetSavedFileListSuccess); - } - }); - }) as GetSavedFileList; - const getSavedFileInfo: GetSavedFileInfo = defineAsyncApi<GetSavedFileInfoOptions, GetSavedFileInfoSuccess>(API_GET_SAVED_FILE_INFO, (options: GetSavedFileInfoOptions, exec: ApiExecutor<GetSavedFileInfoSuccess>)=>{ - const savedFilePath = getFsPath(options.filePath); - if (!fs.accessSync(savedFilePath)) { - exec.reject('file not exist'); - return; - } - const stat = fs.statSync(savedFilePath); - if (!stat.isFile()) { - exec.reject('file not exist'); - } - exec.resolve({ - size: stat.size, - createTime: stat.ctime - } as GetSavedFileInfoSuccess); - }) as GetSavedFileInfo; - const removeSavedFile: RemoveSavedFile = defineAsyncApi<RemoveSavedFileOptions, RemoveSavedFileSuccess>(API_REMOVE_SAVED_FILE, (options: RemoveSavedFileOptions, exec: ApiExecutor<RemoveSavedFileSuccess>)=>{ - const savedFilePath = getFsPath(options.filePath); - if (!fs.accessSync(savedFilePath)) { - exec.reject('file not exist'); - return; - } - fs.unlink(savedFilePath, (err)=>{ - if (err) { - exec.reject(err.message); - } else { - exec.resolve(); - } - }); - }) as RemoveSavedFile; - const SupportedHashAlgorithm = [ - 'md5', - 'sha1' - ]; - const getFileInfo: GetFileInfo = defineAsyncApi<GetFileInfoOptions, GetFileInfoSuccess>(API_GET_FILE_INFO, (options: GetFileInfoOptions, exec: ApiExecutor<GetFileInfoSuccess>)=>{ - const filePath = getFsPath(options.filePath); - const digestAlgorithm = options.digestAlgorithm && SupportedHashAlgorithm.includes(options.digestAlgorithm) ? options.digestAlgorithm : 'md5'; - if (!fs.accessSync(filePath)) { - exec.reject('file not exist'); - return; - } - const stat = fs.statSync(filePath); - if (!stat.isFile()) { - exec.reject('file not exist'); - } - Hash.hash(filePath, digestAlgorithm, (err, hash)=>{ - if (err) { - exec.reject(err.message); - } else { - exec.resolve({ - size: stat.size, - digest: hash - } as GetFileInfoSuccess); - } - }); - }) as GetFileInfo; - const AUTHORIZED = 'authorized'; - const DENIED = 'denied'; - const NOT_DETERMINED = 'not determined'; - class AppAuthorizeSetting { - albumAuthorized: string = NOT_DETERMINED; - bluetoothAuthorized: string = NOT_DETERMINED; - cameraAuthorized: string = NOT_DETERMINED; - locationAuthorized: string = NOT_DETERMINED; - locationAccuracy: string = NOT_DETERMINED; - microphoneAuthorized: string = NOT_DETERMINED; - notificationAuthorized: string = NOT_DETERMINED; - notificationAlertAuthorized: string = NOT_DETERMINED; - notificationBadgeAuthorized: string = NOT_DETERMINED; - notificationSoundAuthorized: string = NOT_DETERMINED; - phoneCalendarAuthorized: string = NOT_DETERMINED; - } - class GetAppAuthorizeSettingImpl { - accessTokenId: number; - atManager: abilityAccessCtrl.AtManager; - appAuthorizeSetting: AppAuthorizeSetting; - constructor(accessTokenId: number, atManager: abilityAccessCtrl.AtManager, appAuthorizeSetting: AppAuthorizeSetting){ - this.accessTokenId = accessTokenId; - this.atManager = atManager; - this.appAuthorizeSetting = appAuthorizeSetting; - this.getAlbumAuthorizeSetting(); - this.getBlueToothAuthorizeSetting(); - this.getCameraAuthorizeSetting(); - this.getLocationAuthorizeSetting(); - this.getMicrophoneAuthorizeSetting(); - this.getNotificationAuthorizeSetting(); - this.getPhoneCalendarAuthorizeSetting(); - } - getAlbumAuthorizeSetting() { - const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.READ_IMAGEVIDEO'); - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { - this.appAuthorizeSetting.albumAuthorized = DENIED; - } - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { - this.appAuthorizeSetting.albumAuthorized = AUTHORIZED; - } - } - getBlueToothAuthorizeSetting() { - const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.ACCESS_BLUETOOTH'); - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { - this.appAuthorizeSetting.bluetoothAuthorized = DENIED; - } - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { - this.appAuthorizeSetting.bluetoothAuthorized = AUTHORIZED; - } - } - getCameraAuthorizeSetting() { - const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.CAMERA'); - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { - this.appAuthorizeSetting.cameraAuthorized = DENIED; - } - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { - this.appAuthorizeSetting.cameraAuthorized = AUTHORIZED; - } - } - getLocationAuthorizeSetting() { - const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.LOCATION'); - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { - this.appAuthorizeSetting.locationAuthorized = DENIED; - } - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { - this.appAuthorizeSetting.locationAuthorized = AUTHORIZED; - } - } - getMicrophoneAuthorizeSetting() { - const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.MICROPHONE'); - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { - this.appAuthorizeSetting.microphoneAuthorized = DENIED; - } - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { - this.appAuthorizeSetting.microphoneAuthorized = AUTHORIZED; - } - } - getNotificationAuthorizeSetting() { - try { - const isNotificationEnabled = notificationManager.isNotificationEnabledSync(); - if (isNotificationEnabled) { - this.appAuthorizeSetting.notificationAuthorized = DENIED; - } - if (isNotificationEnabled) { - this.appAuthorizeSetting.notificationAuthorized = AUTHORIZED; - } - } catch (error) { - this.appAuthorizeSetting.notificationAuthorized = DENIED; - } - } - getPhoneCalendarAuthorizeSetting() { - const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.WRITE_CALENDAR'); - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { - this.appAuthorizeSetting.phoneCalendarAuthorized = DENIED; - } - if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { - this.appAuthorizeSetting.phoneCalendarAuthorized = AUTHORIZED; - } - } - } - const getAppAuthorizeSetting: GetAppAuthorizeSetting = defineSyncApi<GetAppAuthorizeSettingResult>('getAppAuthorizeSetting', ()=>{ - const bundleInfoWithApplication = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION); - const appAuthorizeSettingImpl = new GetAppAuthorizeSettingImpl(bundleInfoWithApplication.appInfo.accessTokenId, abilityAccessCtrl.createAtManager(), new AppAuthorizeSetting()); - return appAuthorizeSettingImpl.appAuthorizeSetting as GetAppAuthorizeSettingResult; - }) as GetAppAuthorizeSetting; - const API_GET_APP_BASE_INFO = 'getAppBaseInfo'; - const getBundleInfoOnce = ()=>{ - let bundleInfo: bundleManager1.BundleInfo | null = null; - return (): bundleManager1.BundleInfo =>{ - if (bundleInfo) { - return bundleInfo; - } - bundleInfo = bundleManager1.getBundleInfoForSelfSync(bundleManager1.BundleFlag.GET_BUNDLE_INFO_DEFAULT); - return bundleInfo; - }; - }; - const getBundleInfo = getBundleInfoOnce(); - const getAppBaseInfo: GetAppBaseInfo = defineSyncApi<GetAppBaseInfoResult>(API_GET_APP_BASE_INFO, (): GetAppBaseInfoResult =>{ - const appVersion: IAppBaseInfoAppVersion = UTSHarmony3.getAppVersion(); - const appLanguage = I18n.System.getAppPreferredLanguage(); - const uniCompilerVersion: string = UTSHarmony3.getUniCompilerVersion(); - const uniRuntimeVersion: string = UTSHarmony3.getUniRuntimeVersion(); - return { - appId: UTSHarmony3.getAppId() as string, - appLanguage, - appName: UTSHarmony3.getAppName() as string, - appTheme: UTSHarmony3.getAppTheme() as string, - appVersion: appVersion.name, - appVersionCode: appVersion.code, - appWgtVersion: appVersion.name, - hostLanguage: I18n.System.getSystemLanguage(), - isUniAppX: UTSHarmony3.isUniAppX() as boolean, - packageName: getBundleInfo().name, - uniCompilerVersion: uniCompilerVersion, - uniCompilerVersionCode: parseFloat(uniCompilerVersion), - uniRuntimeVersion: uniRuntimeVersion, - uniRuntimeVersionCode: parseFloat(uniRuntimeVersion), - uniPlatform: 'app' - } as GetAppBaseInfoResult; - }) as GetAppBaseInfo; - const API_GET_BACKGROUND_AUDIO_MANAGER = 'getBackgroundAudioManager'; - const isFileUri1 = (path: string)=>{ - return path && typeof path === 'string' && (path.startsWith('file://') || path.startsWith('datashare://')); - }; - const isSandboxPath1 = (path: string)=>{ - return path && typeof path === 'string' && path.startsWith('/data/storage/'); - }; - const getFdFromUriOrSandBoxPath1 = (uri: string)=>{ - try { - const file = fileIo1.openSync(uri, fileIo1.OpenMode.READ_ONLY); - return file.fd; - } catch (error) { - console.info(`[AdvancedAPI] Can not get file from uri: ${uri} `); - } - throw new Error('file is not exist'); - }; - const callCallbacks1 = (callbacks: Function[], ...args: Object[])=>{ - callbacks.forEach((cb)=>{ - typeof cb === 'function' && cb(...args); - }); - }; - const remoteCallback1 = (callbacks: Function[], callback: Function)=>{ - const index = callbacks.indexOf(callback); - if (index > -1) { - callbacks.splice(index, 1); - } - }; - class AudioPlayerError1 { - errMsg: string; - errCode: number; - constructor(errMsg: string, errCode: number){ - this.errMsg = errMsg; - this.errCode = errCode; - } - } - class AudioPlayerCallback1 { - onCanplayCallbacks: Function[] = []; - onPlayCallbacks: Function[] = []; - onPauseCallbacks: Function[] = []; - onStopCallbacks: Function[] = []; - onEndedCallbacks: Function[] = []; - onTimeUpdateCallbacks: Function[] = []; - onErrorCallbacks: Function[] = []; - onWaitingCallbacks: Function[] = []; - onSeekingCallbacks: Function[] = []; - onSeekedCallbacks: Function[] = []; - constructor(){} - canPlay() { - callCallbacks1(this.onCanplayCallbacks); - } - onCanplay(callback: Function) { - this.onCanplayCallbacks.push(callback); - } - offCanplay(callback: Function) { - remoteCallback1(this.onCanplayCallbacks, callback); - } - play() { - callCallbacks1(this.onPlayCallbacks); - } - onPlay(callback: Function) { - this.onPlayCallbacks.push(callback); - } - offPlay(callback: Function) { - remoteCallback1(this.onPlayCallbacks, callback); - } - pause() { - callCallbacks1(this.onPauseCallbacks); - } - onPause(callback: Function) { - this.onPauseCallbacks.push(callback); - } - offPause(callback: Function) { - remoteCallback1(this.onPauseCallbacks, callback); - } - stop() { - callCallbacks1(this.onStopCallbacks); - } - onStop(callback: Function) { - this.onStopCallbacks.push(callback); - } - offStop(callback: Function) { - remoteCallback1(this.onStopCallbacks, callback); - } - ended() { - callCallbacks1(this.onEndedCallbacks); - } - onEnded(callback: Function) { - this.onEndedCallbacks.push(callback); - } - offEnded(callback: Function) { - remoteCallback1(this.onEndedCallbacks, callback); - } - timeUpdate(time: number) { - callCallbacks1(this.onTimeUpdateCallbacks, time); - } - onTimeUpdate(callback: Function) { - this.onTimeUpdateCallbacks.push(callback); - } - offTimeUpdate(callback: Function) { - remoteCallback1(this.onTimeUpdateCallbacks, callback); - } - error(res: AudioPlayerError1) { - callCallbacks1(this.onErrorCallbacks, res); - } - onError(callback: Function) { - this.onErrorCallbacks.push(callback); - } - offError(callback: Function) { - remoteCallback1(this.onErrorCallbacks, callback); - } - onPrev(callback: Function) { - console.info('ios only'); - } - onNext(callback: Function) { - console.info('ios only'); - } - waiting() { - callCallbacks1(this.onWaitingCallbacks); - } - onWaiting(callback: Function) { - this.onWaitingCallbacks.push(callback); - } - offWaiting(callback: Function) { - remoteCallback1(this.onWaitingCallbacks, callback); - } - seeking() { - callCallbacks1(this.onSeekingCallbacks); - } - onSeeking(callback: Function) { - this.onSeekingCallbacks.push(callback); - } - offSeeking(callback: Function) { - remoteCallback1(this.onSeekingCallbacks, callback); - } - seeked() { - callCallbacks1(this.onSeekedCallbacks); - } - onSeeked(callback: Function) { - this.onSeekedCallbacks.push(callback); - } - offSeeked(callback: Function) { - remoteCallback1(this.onSeekedCallbacks, callback); - } - } - const audioPlayerCallback = new AudioPlayerCallback1(); - let AV_SESSION: avSession.AVSession | null = null; - const createAVSession = ()=>{ - avSession.createAVSession(getAbilityContext()!, 'player', 'audio').then((data)=>{ - AV_SESSION = data; - }); - }; - const destroyAVSession = ()=>{ - if (AV_SESSION === null) { - return; - } - AV_SESSION.destroy(); - AV_SESSION = null; - }; - const startBackgroundTask = ()=>{ - const abilityInfo: TempAbilityInfo = getAbilityContext()!.abilityInfo; - const wantAgentInfo: wantAgent.WantAgentInfo = { - wants: [ - { - bundleName: abilityInfo.bundleName, - abilityName: abilityInfo.name - } - ], - operationType: wantAgent.OperationType.START_ABILITY, - requestCode: 0, - wantAgentFlags: [ - wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG - ] - }; - wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj)=>{ - return backgroundTaskManager.startBackgroundRunning(getAbilityContext()!, backgroundTaskManager.BackgroundMode.AUDIO_PLAYBACK, wantAgentObj); - }).then(()=>{ - console.debug('[getBackgroundAudioManager] start bg operation succeeded'); - }).catch((err: BusinessError2)=>{ - audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); - }); - }; - const stopBackgroundTask = ()=>{ - backgroundTaskManager.stopBackgroundRunning(getAbilityContext()!).then(()=>{ - console.debug('[getBackgroundAudioManager] stop operation succeeded'); - }).catch((err: BusinessError2)=>{ - audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); - }); - }; - const START_BACKGROUND = ()=>{ - startBackgroundTask(); - createAVSession(); - }; - const STOP_BACKGROUND = ()=>{ - destroyAVSession(); - stopBackgroundTask(); - }; - const LOG1 = (msg: string)=>console.log(`[getBackgroundAudioManager]: ${msg}`); - class STATE_TYPE1 { - static IDLE: string = 'idle'; - static PLAYING: string = 'playing'; - static PAUSED: string = 'paused'; - static STOPPED: string = 'stopped'; - static ERROR: string = 'error'; - } - class BackgroundAudioManagerImpl implements BackgroundAudioManager { - static audioPlayer?: media1.AudioPlayer; - private _src: string = ''; - private _startTime: number = 0; - private _buffered: number = 0; - private _title: string = ''; - private _epname: string = ''; - private _singer: string = ''; - private _coverImgUrl: string = ''; - private _webUrl: string = ''; - private _protocol: string = ''; - private _playbackRate: number = 1; - readonly obeyMuteSwitch: boolean = false; - constructor(){ - this.init(); - } - init() { - BackgroundAudioManagerImpl.audioPlayer = media1.createAudioPlayer(); - BackgroundAudioManagerImpl.audioPlayer.on('dataLoad', ()=>{ - audioPlayerCallback.canPlay(); - }); - BackgroundAudioManagerImpl.audioPlayer.on('play', ()=>{ - audioPlayerCallback.play(); - }); - BackgroundAudioManagerImpl.audioPlayer.on('pause', ()=>{ - audioPlayerCallback.pause(); - }); - BackgroundAudioManagerImpl.audioPlayer.on('finish', ()=>{ - STOP_BACKGROUND(); - audioPlayerCallback.ended(); - }); - BackgroundAudioManagerImpl.audioPlayer.on('timeUpdate', (res)=>{ - audioPlayerCallback.timeUpdate(res / 1000); - }); - BackgroundAudioManagerImpl.audioPlayer.on('error', (err)=>{ - audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); - }); - BackgroundAudioManagerImpl.audioPlayer.on('bufferingUpdate', (infoType, value)=>{ - console.info(`[AdvancedAPI] audioPlayer bufferingUpdate ${infoType} ${value}`); - if (infoType === media1.BufferingInfoType.BUFFERING_PERCENT && value !== 0 && BackgroundAudioManagerImpl.audioPlayer) { - this._buffered = value; - if ((BackgroundAudioManagerImpl.audioPlayer.currentTime / 1000) >= (BackgroundAudioManagerImpl.audioPlayer.duration * value / 100000)) { - audioPlayerCallback.waiting(); - } - } - }); - BackgroundAudioManagerImpl.audioPlayer.on('audioInterrupt', (InterruptEvent)=>{ - console.info('[AdvancedAPI] audioInterrupt:' + JSON.stringify(InterruptEvent)); - if (BackgroundAudioManagerImpl.audioPlayer && InterruptEvent.hintType === audio1.InterruptHint.INTERRUPT_HINT_PAUSE) { - BackgroundAudioManagerImpl.audioPlayer.pause(); - } - if (BackgroundAudioManagerImpl.audioPlayer && InterruptEvent.hintType === audio1.InterruptHint.INTERRUPT_HINT_RESUME) { - BackgroundAudioManagerImpl.audioPlayer.play(); - } - }); - } - get duration() { - if (!BackgroundAudioManagerImpl.audioPlayer) { - return 0; - } - return BackgroundAudioManagerImpl.audioPlayer.duration / 1000; - } - get currentTime() { - if (!BackgroundAudioManagerImpl.audioPlayer) { - return 0; - } - return BackgroundAudioManagerImpl.audioPlayer.currentTime / 1000; - } - get paused() { - if (!BackgroundAudioManagerImpl.audioPlayer) { - return false; - } - return BackgroundAudioManagerImpl.audioPlayer.state === STATE_TYPE1.PAUSED; - } - get src() { - if (!BackgroundAudioManagerImpl.audioPlayer) { - return ''; - } - return BackgroundAudioManagerImpl.audioPlayer.src; - } - set src(value) { - if (typeof value !== 'string') { - audioPlayerCallback.error(new AudioPlayerError1(`set src: ${value} is not string`, 10004)); - return; - } - if (!BackgroundAudioManagerImpl.audioPlayer) { - audioPlayerCallback.error(new AudioPlayerError1(`player is not exist`, 10001)); - return; - } - if (!value || !(value.startsWith('http:') || value.startsWith('https:') || isFileUri1(value) || isSandboxPath1(value))) { - LOG1(`set src: ${value} is invalid`); - return; - } - let path: string = ''; - if (value.startsWith('http:') || value.startsWith('https:')) { - path = value; - } else if (isFileUri1(value) || isSandboxPath1(value)) { - try { - const fd = getFdFromUriOrSandBoxPath1(value); - path = `fd://${fd}`; - } catch (err) { - audioPlayerCallback.error(new AudioPlayerError1((err as BusinessError2).message, (err as BusinessError2).code)); - } - } - if (BackgroundAudioManagerImpl.audioPlayer.src && path !== BackgroundAudioManagerImpl.audioPlayer.src) { - BackgroundAudioManagerImpl.audioPlayer.reset(); - } - BackgroundAudioManagerImpl.audioPlayer.src = path; - this._src = value; - if (this._startTime) { - BackgroundAudioManagerImpl.audioPlayer.seek(this._startTime); - } - BackgroundAudioManagerImpl.audioPlayer.play(); - START_BACKGROUND(); - } - get startTime() { - return this._startTime / 1000; - } - set startTime(time: number) { - this._startTime = time * 1000; - } - get title() { - return this._title; - } - set title(titleName: string) { - this._title = titleName; - } - get buffered() { - if (!BackgroundAudioManagerImpl.audioPlayer) return 0; - return BackgroundAudioManagerImpl.audioPlayer.duration * this._buffered / 100000; - } - get epname() { - return this._epname; - } - set epname(epName: string) { - this._epname = epName; - } - get singer() { - return this._singer; - } - set singer(singerName: string) { - this._singer = singerName; - } - get coverImgUrl() { - return this._coverImgUrl; - } - set coverImgUrl(url: string) { - this._coverImgUrl = url; - } - get webUrl() { - return this._webUrl; - } - set webUrl(url: string) { - this._webUrl = url; - } - get protocol() { - return this._protocol; - } - set protocol(protocolType: string) { - this._protocol = protocolType; - } - set playbackRate(rate: number) { - audioPlayerCallback.error(new AudioPlayerError1('HarmonyOS Next Audio setting playbackRate is not supported.', -1)); - } - get playbackRate() { - return this._playbackRate; - } - play() { - if (!BackgroundAudioManagerImpl.audioPlayer) { - return; - } - const state = BackgroundAudioManagerImpl.audioPlayer.state; - if (![ - STATE_TYPE1.PAUSED, - STATE_TYPE1.STOPPED, - STATE_TYPE1.IDLE - ].includes(state)) { - return; - } - if (this._src && BackgroundAudioManagerImpl.audioPlayer.src === '') { - this.src = this._src; - } - BackgroundAudioManagerImpl.audioPlayer.play(); - START_BACKGROUND(); - } - pause() { - if (!BackgroundAudioManagerImpl.audioPlayer) { - return; - } - const state = BackgroundAudioManagerImpl.audioPlayer.state; - if (STATE_TYPE1.PLAYING !== state) { - return; - } - BackgroundAudioManagerImpl.audioPlayer.pause(); - } - stop() { - if (!BackgroundAudioManagerImpl.audioPlayer) { - return; - } - if (![ - STATE_TYPE1.PAUSED, - STATE_TYPE1.PLAYING - ].includes(BackgroundAudioManagerImpl.audioPlayer.state)) { - return; - } - BackgroundAudioManagerImpl.audioPlayer.stop(); - BackgroundAudioManagerImpl.audioPlayer.release(); - this.init(); - STOP_BACKGROUND(); - audioPlayerCallback.stop(); - } - seek(position: number) { - if (!BackgroundAudioManagerImpl.audioPlayer) { - return; - } - const state = BackgroundAudioManagerImpl.audioPlayer.state; - if (![ - STATE_TYPE1.PAUSED, - STATE_TYPE1.PLAYING - ].includes(state)) { - return; - } - BackgroundAudioManagerImpl.audioPlayer.seek(position * 1000); - } - onCanplay(callback: (result: Object) => void): void { - audioPlayerCallback.onCanplay(callback); - } - onPlay(callback: (result: Object) => void): void { - audioPlayerCallback.onPlay(callback); - } - onPause(callback: (result: Object) => void): void { - audioPlayerCallback.onPause(callback); - } - onStop(callback: (result: Object) => void): void { - audioPlayerCallback.onStop(callback); - } - onEnded(callback: (result: Object) => void): void { - audioPlayerCallback.onEnded(callback); - } - onTimeUpdate(callback: (result: Object) => void): void { - audioPlayerCallback.onTimeUpdate(callback); - } - onError(callback: (result: Object) => void): void { - audioPlayerCallback.onError(callback); - } - onWaiting(callback: (result: Object) => void): void { - audioPlayerCallback.onWaiting(callback); - } - offCanplay(callback: (result: Object) => void): void { - audioPlayerCallback.offCanplay(callback); - } - offPlay(callback: (result: Object) => void): void { - audioPlayerCallback.offPlay(callback); - } - offPause(callback: (result: Object) => void): void { - audioPlayerCallback.offPause(callback); - } - offStop(callback: (result: Object) => void): void { - audioPlayerCallback.offStop(callback); - } - offEnded(callback: (result: Object) => void): void { - audioPlayerCallback.offEnded(callback); - } - offTimeUpdate(callback: (result: Object) => void): void { - audioPlayerCallback.offTimeUpdate(callback); - } - offError(callback: (result: Object) => void): void { - audioPlayerCallback.offError(callback); - } - offWaiting(callback: (result: Object) => void): void { - audioPlayerCallback.offWaiting(callback); - } - onPrev(callback: (result: Object) => void): void { - throw new Error('Method not implemented.'); - } - onNext(callback: (result: Object) => void): void { - throw new Error('Method not implemented.'); - } - } - let backgroundAudioManager: BackgroundAudioManager | null = null; - const getBackgroundAudioManager: GetBackgroundAudioManager = defineSyncApi<BackgroundAudioManager>(API_GET_BACKGROUND_AUDIO_MANAGER, ()=>{ - if (!backgroundAudioManager) backgroundAudioManager = new BackgroundAudioManagerImpl(); - return backgroundAudioManager; - }) as GetBackgroundAudioManager; - const API_GET_DEVICE_INFO = 'getDeviceInfo'; - const parseDeviceType = (deviceType: string): 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'unknown' | 'car' | 'vr' | 'appliance' =>{ - switch(deviceType){ - case 'phone': - return 'phone'; - case 'wearable': - return 'watch'; - case 'tablet': - return 'pad'; - case '2in1': - return 'pc'; - case 'tv': - return 'tv'; - case 'car': - return 'car'; - case 'smartVision': - return 'vr'; - default: - return 'unknown'; - } - }; - const getDeviceInfo: GetDeviceInfo = defineSyncApi<GetDeviceInfoResult>(API_GET_DEVICE_INFO, (): GetDeviceInfoResult =>{ - return { - deviceBrand: deviceInfo.brand.toLowerCase(), - deviceId: getDeviceId(), - deviceModel: deviceInfo.productModel, - deviceOrientation: 'portrait', - devicePixelRatio: vp2px(1), - deviceType: parseDeviceType(deviceInfo.deviceType), - osLanguage: I18n1.System.getSystemLanguage(), - osTheme: UTSHarmony4.getOsTheme() as string, - osVersion: deviceInfo.majorVersion + '.' + deviceInfo.seniorVersion + '.' + deviceInfo.featureVersion + '.' + deviceInfo.buildVersion, - osName: 'harmonyos', - platform: 'harmonyos', - romName: deviceInfo.distributionOSName, - romVersion: deviceInfo.distributionOSVersion, - system: deviceInfo.osFullName - } as GetDeviceInfoResult; - }) as GetDeviceInfo; - const API_GET_NETWORK_TYPE = 'getNetworkType'; - const PERMISSIONS1 = [ - 'ohos.permission.GET_NETWORK_INFO' - ]; - enum NetworkinfoType { - UNKNOW = 0, - NONE = 1, - ETHERNET = 2, - WIFI = 3, - "2G" = 4, - "3G" = 5, - "4G" = 6, - "5G" = 7 - } - const signalType = (resultObj: radio.NetworkType)=>{ - switch(resultObj){ - case radio.NetworkType.NETWORK_TYPE_GSM: - case radio.NetworkType.NETWORK_TYPE_CDMA: - return NetworkinfoType['2G']; - case radio.NetworkType.NETWORK_TYPE_WCDMA: - case radio.NetworkType.NETWORK_TYPE_TDSCDMA: - return NetworkinfoType['3G']; - case radio.NetworkType.NETWORK_TYPE_LTE: - return NetworkinfoType['4G']; - case radio.NetworkType.NETWORK_TYPE_NR: - return NetworkinfoType['5G']; - case radio.NetworkType.NETWORK_TYPE_UNKNOWN: - return NetworkinfoType.UNKNOW; - default: - return NetworkinfoType.NONE; - } - }; - const networkGetType = ()=>{ - return new Promise<number>((resolve, reject)=>{ - UTSHarmony5.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ - if (allRight) { - try { - radio.getPrimarySlotId().then((slotId: number)=>radio.getSignalInformationSync(slotId)).then((signalInformation: Array<radio.SignalInformation>)=>{ - const data = signalInformation[0]; - if (data && data.signalType) { - resolve(signalType(data.signalType)); - } else { - resolve(NetworkinfoType.NONE); - } - }); - } catch (error) { - reject(error as BusinessError3); - } - } else { - reject('permission denied'); - } - }, ()=>reject('permission denied')); - }); - }; - class GlobalContext { - netList: connection.NetHandle[] = []; - netHandle: connection.NetHandle | null = null; - private constructor(){} - private static instance: GlobalContext; - public static getContext(): GlobalContext { - if (!GlobalContext.instance) { - GlobalContext.instance = new GlobalContext(); - } - return GlobalContext.instance; - } - } - const getCurrentType = ()=>{ - return new Promise<number>((resolve, reject)=>{ - UTSHarmony5.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ - if (allRight) { - try { - connection.getDefaultNet().then((data: connection.NetHandle)=>{ - if (data) { - GlobalContext.getContext().netHandle = data; - connection.getNetCapabilities(GlobalContext.getContext().netHandle!).then((data: connection.NetCapabilities)=>{ - const bearerTypes: Set<number> = new Set(data.bearerTypes); - const bearerTypesNum = Array.from(bearerTypes.values()); - for (const item of bearerTypesNum){ - if (item == connection.NetBearType.BEARER_CELLULAR) { - networkGetType().then(resolve).catch(reject); - } else if (item == connection.NetBearType.BEARER_WIFI) { - resolve(NetworkinfoType.WIFI); - } else if (item == connection.NetBearType.BEARER_ETHERNET) { - resolve(NetworkinfoType.ETHERNET); - } else { - resolve(NetworkinfoType.UNKNOW); - } - } - }).catch((err: BusinessError3)=>{ - reject(err); - }); - } - }); - } catch (error) { - reject(error); - } - } else { - reject('permission denied'); - } - }); - }); - }; - class Network { - static netConnection: connection.NetConnection | null = null; - constructor(){ - Network.netConnection = connection.createNetConnection(); - } - static ohoSubscribe() { - if (!Network.netConnection) { - Network.netConnection = connection.createNetConnection(); - } - UTSHarmony5.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ - if (allRight && Network.netConnection) { - Network.netConnection.register((err: BusinessError3)=>{}); - Network.netConnection.on('netCapabilitiesChange', (capability: connection.NetCapabilityInfo)=>{ - const NetBearType = capability?.netCap?.bearerTypes[0]; - let networkType = ''; - switch(NetBearType){ - case connection.NetBearType.BEARER_CELLULAR: - getCurrentType().then((type: number)=>{ - invokeOnNetworkStatusChange(NetworkinfoType[type]); - }).catch(()=>{ - invokeOnNetworkStatusChange(NetworkinfoType[1]); - }); - return; - case connection.NetBearType.BEARER_WIFI: - networkType = NetworkinfoType[3]; - break; - case connection.NetBearType.BEARER_ETHERNET: - networkType = NetworkinfoType[2]; - break; - default: - networkType = NetworkinfoType[1]; - } - invokeOnNetworkStatusChange(networkType); - }); - Network.netConnection.on('netLost', (netLost: connection.NetHandle)=>{ - invokeOnNetworkStatusChange(NetworkinfoType[1]); - }); - } - }); - } - } - new Network(); - waitForCurrentNativePage().then(()=>{ - Network.ohoSubscribe(); - }); - const getNetworkType: GetNetworkType = defineAsyncApi<GetNetworkTypeOptions, GetNetworkTypeSuccess>(API_GET_NETWORK_TYPE, (options: GetNetworkTypeOptions, res: ApiExecutor<GetNetworkTypeSuccess>)=>{ - getCurrentType().then((type: number)=>{ - res.resolve({ - networkType: NetworkinfoType[type].toLocaleLowerCase() - } as GetNetworkTypeSuccess); - }).catch((err: BusinessError3)=>{ - res.reject(err.message); - }); - }) as GetNetworkType; - const invokeOnNetworkStatusChange = (networkType: string)=>{ - UniGetNetworkTypeEventEmitter.emit('networkStatusChange', { - isConnected: networkType !== NetworkinfoType[1], - networkType: networkType.toLocaleLowerCase() - } as OnNetworkStatusChangeCallbackResult); - }; - const UniGetNetworkTypeEventEmitter = new Emitter1() as IUniGetNetworkTypeEventEmitter; - const onNetworkStatusChange: OnNetworkStatusChange = (callback: Function)=>{ - UniGetNetworkTypeEventEmitter.on('networkStatusChange', callback); - }; - const offNetworkStatusChange: OffNetworkStatusChange = (callback: Function)=>{ - UniGetNetworkTypeEventEmitter.off('networkStatusChange', callback); - }; - const API_GET_PROVIDER = 'getProvider'; - const API_GET_PROVIDER_SYNC = 'getProviderSync'; - const SupportedProviderServiceList = [ - 'oauth', - 'share', - 'payment', - 'push', - 'location' - ]; - const _getProviderSync = (options: GetProviderOptions)=>{ - if (!SupportedProviderServiceList.includes(options.service)) { - return 'Parameter service invalid.'; - } - const providers = getUniProviders(options.service); - const providerIds = providers.map((provider): string =>{ - return provider.id; - }); - const result: GetProviderSuccess = { - service: options.service, - provider: providerIds, - providers - }; - return result; - }; - const getProvider: GetProvider = defineAsyncApi<GetProviderOptions, GetProviderSuccess>(API_GET_PROVIDER, (options: GetProviderOptions, exec: ApiExecutor<GetProviderSuccess>): void =>{ - const res = _getProviderSync(options); - if (typeof res === 'string') exec.reject(res); - else exec.resolve(res); - }) as GetProvider; - const getProviderSync: GetProviderSync = defineSyncApi<GetProviderSyncSuccess>(API_GET_PROVIDER_SYNC, (options: GetProviderSyncOptions): GetProviderSyncSuccess =>{ - const res = _getProviderSync(options as GetProviderOptions); - if (typeof res === 'string') throw new Error(res); - return { - service: res.service, - providerIds: res.provider, - providerObjects: res.providers - } as GetProviderSyncSuccess; - }) as GetProviderSync; - const API_GET_RECORDER_MANAGER = 'getRecorderManager'; - const callbacks: Callbacks = { - pause: [], - resume: [], - start: [], - stop: [], - error: [], - frameRecorded: [], - interruptionBegin: [], - interruptionEnd: [] - }; - const setRecordStateCallback = (state: RecorderState, cb: Function)=>{ - switch(state){ - case 'pause': - callbacks.pause.push(cb); - break; - case 'resume': - callbacks.resume.push(cb); - break; - case 'start': - callbacks.start.push(cb); - break; - case 'stop': - callbacks.stop.push(cb); - break; - case 'error': - callbacks.error.push(cb); - break; - case 'frameRecorded': - callbacks.frameRecorded.push(cb); - break; - case 'interruptionBegin': - callbacks.interruptionBegin.push(cb); - break; - case 'interruptionEnd': - callbacks.interruptionEnd.push(cb); - break; - } - }; - const onRecorderStateChange = (state: RecorderState, res: StateChangeRes | null = null)=>{ - const cbs: Function[] = (()=>{ - switch(state){ - case 'pause': - return callbacks.pause; - case 'resume': - return callbacks.resume; - case 'start': - return callbacks.start; - case 'stop': - return callbacks.stop; - case 'error': - return callbacks.error; - case 'frameRecorded': - return callbacks.frameRecorded; - case 'interruptionBegin': - return callbacks.interruptionBegin; - case 'interruptionEnd': - return callbacks.interruptionEnd; - default: - return []; - } - })(); - cbs.forEach((fn)=>{ - if (typeof fn === 'function') { - fn(res); - } - }); - }; - const createFile = (supportFormats: string[], format: string, defaultExt: string)=>{ - const TEMP_PATH = getEnv1().TEMP_PATH as string; - const filePath = `${TEMP_PATH}/recorder/`; - if (!fileIo2.accessSync(filePath)) { - fileIo2.mkdirSync(filePath, true); - } - const fileName = `${Date.now()}.${supportFormats.includes(format ?? '') ? format?.toLocaleLowerCase() : defaultExt}`; - const file: fileIo2.File = fileIo2.openSync(`${filePath}${fileName}`, fileIo2.OpenMode.READ_WRITE | fileIo2.OpenMode.CREATE); - return file; - }; - const permissionDenied = ()=>{ - throw new Error('Permission MICROPHONE denied'); - }; - const supportFormats = [ - 'aac' - ]; - class AVRecorder implements RecorderManager { - private avRecorder?: media2.AVRecorder; - private isFirstStart: boolean = true; - constructor(){} - private onStateChange(file: fileIo3.File) { - if (this.avRecorder) { - this.avRecorder.on('stateChange', async (state, reason)=>{ - switch(state){ - case 'idle': - this.isFirstStart = true; - break; - case 'started': - if (this.isFirstStart) { - this.isFirstStart = false; - onRecorderStateChange('start'); - } else { - if (reason === media2.StateChangeReason.BACKGROUND) { - onRecorderStateChange('interruptionEnd'); - } - onRecorderStateChange('resume'); - } - break; - case 'paused': - if (reason === media2.StateChangeReason.BACKGROUND) { - onRecorderStateChange('interruptionBegin'); - } - onRecorderStateChange('pause'); - break; - case 'stopped': - onRecorderStateChange('stop', { - tempFilePath: file.path - } as StateChangeRes); - fileIo3.closeSync(file); - break; - } - }); - this.avRecorder.on('error', (err: BusinessError4)=>{ - onRecorderStateChange('error', { - errMsg: `${err.message} ${err.code}` - } as StateChangeRes); - }); - } - } - private async release() { - if (this.avRecorder !== undefined) { - await this.avRecorder.reset(); - await this.avRecorder.release(); - this.avRecorder = undefined; - } - } - async start(options: RecorderManagerStartOptions): Promise<void> { - if (this.avRecorder !== undefined) { - await this.release(); - } - this.avRecorder = await media2.createAVRecorder(); - const _options_sampleRate = options.sampleRate, sampleRate = _options_sampleRate == null ? 48000 : _options_sampleRate, _options_numberOfChannels = options.numberOfChannels, numberOfChannels = _options_numberOfChannels == null ? 2 : _options_numberOfChannels, _options_encodeBitRate = options.encodeBitRate, encodeBitRate = _options_encodeBitRate == null ? 48000 : _options_encodeBitRate, _options_duration = options.duration, duration = _options_duration == null ? null : _options_duration; - const file = createFile(supportFormats, options.format ?? '', 'aac'); - this.onStateChange(file); - const audioProfile: media2.AVRecorderProfile = { - audioBitrate: encodeBitRate!, - audioChannels: numberOfChannels!, - audioCodec: media2.CodecMimeType.AUDIO_AAC, - audioSampleRate: sampleRate!, - fileFormat: media2.ContainerFormatType.CFT_MPEG_4A - }; - const audioConfig: media2.AVRecorderConfig = { - audioSourceType: media2.AudioSourceType.AUDIO_SOURCE_TYPE_MIC, - profile: audioProfile, - url: 'fd://' + file.fd - }; - UTSHarmony6.requestSystemPermission([ - 'ohos.permission.MICROPHONE' - ], async (allRight: boolean)=>{ - if (allRight) { - await this.avRecorder?.prepare(audioConfig); - await this.avRecorder?.start(); - if (duration) { - setTimeout(async ()=>{ - await this.avRecorder?.stop(); - }, duration); - } - } else { - permissionDenied(); - } - }, permissionDenied); - } - async pause(): Promise<void> { - if (this.avRecorder !== undefined && this.avRecorder.state === 'started') { - await this.avRecorder.pause(); - } - } - async resume(): Promise<void> { - if (this.avRecorder !== undefined && this.avRecorder.state === 'paused') { - await this.avRecorder.resume(); - } - } - async stop(): Promise<void> { - if (this.avRecorder !== undefined && (this.avRecorder.state === 'started' || this.avRecorder.state === 'paused')) { - await this.avRecorder.stop(); - await this.release(); - this.isFirstStart = true; - } - } - onStart(options: (result: Object) => void): void { - setRecordStateCallback('start', options); - } - onPause(options: (result: Object) => void): void { - setRecordStateCallback('pause', options); - } - onStop(options: (result: RecorderManagerOnStopResult) => void): void { - setRecordStateCallback('stop', options); - } - onFrameRecorded(options: (result: Object) => void): void { - setRecordStateCallback('frameRecorded', options); - } - onError(options: (result: Object) => void): void { - setRecordStateCallback('error', options); - } - onResume(options: (result: Object) => void): void { - setRecordStateCallback('resume', options); - } - onInterruptionBegin(options: (result: Object) => void): void { - setRecordStateCallback('interruptionBegin', options); - } - onInterruptionEnd(options: (result: Object) => void): void { - setRecordStateCallback('interruptionEnd', options); - } - } - let RECORDER_MANAGER: RecorderManager | null = null; - class RecorderManagerImpl implements RecorderManager { - start(options: RecorderManagerStartOptions): void { - if (!options.format) options.format = 'aac'; - const DEFAULT_DURATION = 1000 * 60; - const MAX_DURATION = DEFAULT_DURATION * 10; - if (typeof options.duration === 'undefined' || options.duration === null) { - options.duration = DEFAULT_DURATION; - } - if (options.duration > MAX_DURATION) { - options.duration = MAX_DURATION; - } - if (supportFormats.includes(options.format ?? '')) { - RECORDER_MANAGER = new AVRecorder(); - } - if (RECORDER_MANAGER) { - RECORDER_MANAGER.start(options); - } else { - onRecorderStateChange('error', { - errMsg: `format not supported. Only supported ${supportFormats.join(',')}` - } as StateChangeRes); - } - } - pause(): void { - if (RECORDER_MANAGER) RECORDER_MANAGER.pause(); - } - resume(): void { - if (RECORDER_MANAGER) RECORDER_MANAGER.resume(); - } - async stop() { - if (RECORDER_MANAGER) { - try { - await RECORDER_MANAGER.stop(); - } catch (error) {} - RECORDER_MANAGER = null; - } - } - onStart(options: (result: Object) => void): void { - setRecordStateCallback('start', options); - } - onPause(options: (result: Object) => void): void { - setRecordStateCallback('pause', options); - } - onStop(options: (result: RecorderManagerOnStopResult) => void): void { - setRecordStateCallback('stop', options); - } - onFrameRecorded(options: (result: Object) => void): void { - setRecordStateCallback('frameRecorded', options); - } - onError(options: (result: Object) => void): void { - setRecordStateCallback('error', options); - } - onResume(options: (result: Object) => void): void { - setRecordStateCallback('resume', options); - } - onInterruptionBegin(options: (result: Object) => void): void { - setRecordStateCallback('interruptionBegin', options); - } - onInterruptionEnd(options: (result: Object) => void): void { - setRecordStateCallback('interruptionEnd', options); - } - } - let recorderManager: RecorderManager | null = null; - const getRecorderManager: GetRecorderManager = defineSyncApi<RecorderManager>(API_GET_RECORDER_MANAGER, (): RecorderManager =>{ - if (recorderManager) return recorderManager; - else recorderManager = new RecorderManagerImpl(); - return recorderManager; - }) as GetRecorderManager; - const API_GET_SYSTEM_INFO = 'getSystemInfo'; - const API_GET_SYSTEM_INFO_SYNC = 'getSystemInfoSync'; - const API_GET_WINDOW_INFO = 'getWindowInfo'; - const parseDeviceType1 = (deviceType: string): 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'unknown' | 'car' | 'vr' | 'appliance' =>{ - switch(deviceType){ - case 'phone': - return 'phone'; - case 'wearable': - return 'watch'; - case 'tablet': - return 'pad'; - case '2in1': - return 'pc'; - case 'tv': - return 'tv'; - case 'car': - return 'car'; - case 'smartVision': - return 'vr'; - default: - return 'unknown'; - } - }; - const getWindowInfo: GetWindowInfo = defineSyncApi<GetWindowInfoResult>(API_GET_WINDOW_INFO, (): GetWindowInfoResult =>{ - return internalGetWindowInfo() as GetWindowInfoResult; - }) as GetWindowInfo; - const internalGetSystemInfo = (): GetSystemInfoResult =>{ - const appVersion: ISystemInfoAppVersion = UTSHarmony7.getAppVersion(); - const appLanguage = I18n2.System.getAppPreferredLanguage(); - const uniCompilerVersion: string = UTSHarmony7.getUniCompilerVersion(); - const uniCompilerVersionCode: number = parseFloat(uniCompilerVersion); - const uniRuntimeVersion: string = UTSHarmony7.getUniRuntimeVersion(); - const windowInfo = internalGetWindowInfo() as GetWindowInfoResult; - const pixelRatio = windowInfo.pixelRatio; - const safeArea = windowInfo.safeArea; - const safeAreaInsets = windowInfo.safeAreaInsets; - const screenHeight = windowInfo.screenHeight; - const screenWidth = windowInfo.screenWidth; - const statusBarHeight = windowInfo.statusBarHeight; - const windowBottom = windowInfo.windowBottom; - const windowHeight = windowInfo.windowHeight; - const windowTop = windowInfo.windowTop; - const windowWidth = windowInfo.windowWidth; - return { - appId: UTSHarmony7.getAppId() as string, - appLanguage, - appName: UTSHarmony7.getAppName() as string, - appTheme: UTSHarmony7.getAppTheme() as string, - appVersion: appVersion.name, - appVersionCode: appVersion.code, - appWgtVersion: appVersion.name, - uniCompilerVersion: uniCompilerVersion, - uniCompilerVersionCode: uniCompilerVersionCode, - uniRuntimeVersion: uniRuntimeVersion, - uniRuntimeVersionCode: parseFloat(uniRuntimeVersion), - uniPlatform: 'app', - deviceBrand: deviceInfo1.brand.toLowerCase(), - deviceId: getDeviceId1(), - deviceModel: deviceInfo1.productModel, - deviceOrientation: 'portrait', - devicePixelRatio: vp2px(1), - deviceType: parseDeviceType1(deviceInfo1.deviceType), - osLanguage: I18n2.System.getSystemLanguage(), - osTheme: UTSHarmony7.getOsTheme() as string, - osVersion: deviceInfo1.majorVersion + '.' + deviceInfo1.seniorVersion + '.' + deviceInfo1.featureVersion + '.' + deviceInfo1.buildVersion, - osName: 'harmonyos', - romName: deviceInfo1.distributionOSName, - romVersion: deviceInfo1.distributionOSVersion, - system: deviceInfo1.osFullName, - pixelRatio, - safeArea, - safeAreaInsets, - screenHeight, - screenWidth, - statusBarHeight, - windowBottom, - windowHeight, - windowTop, - windowWidth, - SDKVersion: '', - browserName: '', - browserVersion: '', - ua: '', - language: appLanguage, - brand: deviceInfo1.brand, - model: '', - platform: 'harmonyos', - uniCompileVersion: uniCompilerVersion, - uniCompileVersionCode: uniCompilerVersionCode, - version: '' - } as GetSystemInfoResult; - }; - const getSystemInfoSync: GetSystemInfoSync = defineSyncApi<GetSystemInfoResult>(API_GET_SYSTEM_INFO_SYNC, (): GetSystemInfoResult =>{ - return internalGetSystemInfo(); - }) as GetSystemInfoSync; - const getSystemInfo: GetSystemInfo = defineAsyncApi<GetSystemInfoOptions, GetSystemInfoResult>(API_GET_SYSTEM_INFO, (options: GetSystemInfoOptions, exec: ApiExecutor<GetSystemInfoResult>)=>{ - try { - exec.resolve(internalGetSystemInfo()); - } catch (error) { - exec.reject((error as Error).message); - } - }) as GetSystemInfo; - const getSystemSetting: GetSystemSetting = defineSyncApi<GetSystemSettingResult>('getSystemSetting', (): GetSystemSettingResult =>{ - const defaultDisplay = display.getDefaultDisplaySync(); - const res: GetSystemSettingResult = { - bluetoothEnabled: false, - bluetoothError: null, - locationEnabled: false, - wifiEnabled: false, - wifiError: null, - deviceOrientation: (defaultDisplay.orientation === display.Orientation.PORTRAIT || defaultDisplay.orientation === display.Orientation.PORTRAIT_INVERTED) ? 'portrait' : 'landscape' - }; - try { - if (access.getState() === access.BluetoothState.STATE_ON) res.bluetoothEnabled = true; - } catch (err) { - res.bluetoothError = (err as BusinessError5).message; - } - try { - res.locationEnabled = geoLocationManager.isLocationEnabled(); - } catch (err) {} - try { - res.wifiEnabled = wifiManager.isWifiActive(); - } catch (err) { - res.wifiError = (err as BusinessError5).message; - } - return res; - }) as GetSystemSetting; - const API_HIDE_KEYBOARD = 'hideKeyboard'; - const hideKeyboard: HideKeyboard = defineAsyncApi<HideKeyboardOptions, HideKeyboardSuccess>(API_HIDE_KEYBOARD, (options: HideKeyboardOptions, exec: ApiExecutor<HideKeyboardSuccess>)=>{ - inputMethod.getController().hideTextInput().then(()=>{ - exec.resolve(); - }, (err: Error)=>{ - exec.reject(err.message); - }); - }) as HideKeyboard; - const API_MAKE_PHONE_CALL = 'makePhoneCall'; - const MakePhoneCallProtocol = new Map<string, ProtocolOptions>([ - [ - 'phoneNumber', - { - type: 'string', - required: true - } - ] - ]); - const isPromise = (res: Object)=>{ - if ((typeof res === "object" || typeof res === "function") && typeof (res as Promise<void>).then === "function") { - return true; - } - return false; - }; - const dial = (number: string, confirm = true)=>{ - if (!confirm && typeof call.dial === 'function') { - return new Promise<void>((resolve, reject)=>{ - UTSHarmony8.requestSystemPermission([ - 'ohos.permission.PLACE_CALL' - ], (allRight: boolean)=>{ - if (allRight) { - call.dial(number).then(()=>{ - resolve(); - }).catch(reject); - } else { - reject('permission denied'); - } - }, ()=>{ - reject('permission denied'); - }); - }); - } else { - return call.makeCall(number); - } - }; - const makePhoneCall: MakePhoneCall = defineAsyncApi<MakePhoneCallOptions, MakePhoneCallSuccess>(API_MAKE_PHONE_CALL, (options: MakePhoneCallOptions, res: ApiExecutor<MakePhoneCallSuccess>)=>{ - const dialRes = dial(options.phoneNumber) as Object as Promise<void>; - if (isPromise(dialRes)) { - dialRes.then(res.resolve).catch((err: BusinessError6<void>)=>{ - res.reject(err.message); - }); - } else { - res.resolve(); - } - }, MakePhoneCallProtocol) as MakePhoneCall; - const _getVideoInfo = async (uri: string): Promise<GetVideoInfoSuccess> =>{ - const file = await fs1.open(uri, fs1.OpenMode.READ_ONLY); - const avMetadataExtractor = await media3.createAVMetadataExtractor(); - let metadata: media3.AVMetadata | null = null; - let size: number = 0; - try { - size = (await fs1.stat(file.fd)).size; - avMetadataExtractor.dataSrc = { - fileSize: size, - callback: (buffer: ArrayBuffer, length: number, pos: number | null = null)=>{ - return fs1.readSync(file.fd, buffer, { - offset: pos, - length - } as ReadOptions); - } - }; - metadata = await avMetadataExtractor.fetchMetadata(); - } catch (error) { - throw error as Error; - } finally{ - await avMetadataExtractor.release(); - await fs1.close(file); - } - const videoOrientationArr = [ - 'up', - 'right', - 'down', - 'left' - ] as MediaOrientation[]; - return { - size: size, - duration: metadata.duration ? Number(metadata.duration) / 1000 : undefined, - width: metadata.videoWidth ? Number(metadata.videoWidth) : undefined, - height: metadata.videoHeight ? Number(metadata.videoHeight) : undefined, - type: metadata.mimeType, - orientation: metadata.videoOrientation ? videoOrientationArr[Number(metadata.videoOrientation) / 90] : undefined - } as GetVideoInfoSuccess; - }; - const _getImageInfo = async (uri: string): Promise<GetImageInfoSuccess> =>{ - const file = await fs1.open(uri, fs1.OpenMode.READ_ONLY); - const imageSource = image.createImageSource(file.fd); - const imageInfo = await imageSource.getImageInfo(); - let orientation: string = ''; - try { - orientation = await imageSource.getImageProperty(image.PropertyKey.ORIENTATION); - } catch (error) {} - await imageSource.release(); - await fs1.close(file.fd); - let orientationNum = 0; - if (typeof orientation === 'string') { - const matched = orientation.match(/^Unknown value (\d)$/); - if (matched && matched[1]) { - orientationNum = Number(matched[1]); - } else if (/^\d$/.test(orientation)) { - orientationNum = Number(orientation); - } - } else if (typeof orientation === 'number') { - orientationNum = orientation; - } - let orientationStr: MediaOrientation = 'up'; - switch(orientationNum){ - case 2: - orientationStr = 'up-mirrored'; - break; - case 3: - orientationStr = 'down'; - break; - case 4: - orientationStr = 'down-mirrored'; - break; - case 5: - orientationStr = 'left-mirrored'; - break; - case 6: - orientationStr = 'right'; - break; - case 7: - orientationStr = 'right-mirrored'; - break; - case 8: - orientationStr = 'left'; - break; - case 0: - case 1: - default: - orientationStr = 'up'; - break; - } - return { - path: uri, - width: imageInfo.size.width, - height: imageInfo.size.height, - orientation: orientationStr - } as GetImageInfoSuccess; - }; - const _chooseMedia = async (options: _ChooseMediaOptions): Promise<chooseMediaSuccessCallbackResult> =>{ - const photoSelectOptions = new photoAccessHelper.PhotoSelectOptions(); - const mimeType = options.mimeType; - photoSelectOptions.MIMEType = mimeType; - photoSelectOptions.maxSelectNumber = options.count || 9; - photoSelectOptions.isPhotoTakingSupported = !(options.sourceType && !options.sourceType.includes('camera')); - const photoPicker = new photoAccessHelper.PhotoViewPicker(); - const photoSelectResult = await photoPicker.select(photoSelectOptions); - const uris = photoSelectResult.photoUris; - if (mimeType !== photoAccessHelper.PhotoViewMIMETypes.VIDEO_TYPE) { - return { - tempFiles: uris.map((uri)=>{ - const file = fs1.openSync(uri, fs1.OpenMode.READ_ONLY); - const stat = fs1.statSync(file.fd); - fs1.closeSync(file); - return { - fileType: 'image', - tempFilePath: uri, - size: stat.size - } as MediaFile; - }) - }; - } - const tempFiles: MediaFile[] = []; - for(let i = 0; i < uris.length; i++){ - const uri = uris[i]; - const videoInfo = await _getVideoInfo(uri); - tempFiles.push({ - fileType: 'video', - tempFilePath: uri, - size: videoInfo.size, - duration: videoInfo.duration, - width: videoInfo.width, - height: videoInfo.height - } as MediaFile); - } - return { - tempFiles - } as chooseMediaSuccessCallbackResult; - }; - const API_GET_IMAGE_INFO = 'getImageInfo'; - const GetImageInfoApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'src', - { - type: 'string', - required: true - } - ] - ]); - const GetImageInfoApiOptions: ApiOptions<GetImageInfoOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'src', - (src: string, params: GetImageInfoOptions)=>{ - params.src = getRealPath1(src); - } - ] - ]) - }; - const API_CHOOSE_IMAGE = 'chooseImage'; - const ChooseImageApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'count', - { - type: 'number', - required: false - } - ], - [ - 'sizeType', - { - type: 'array', - required: false - } - ], - [ - 'sourceType', - { - type: 'array', - required: false - } - ], - [ - 'extension', - { - type: 'array', - required: false - } - ] - ]); - const ChooseImageApiOptions: ApiOptions<ChooseImageOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'count', - (count: number, params: ChooseImageOptions)=>{ - if (count == null) { - params.count = 9; - } - } - ], - [ - 'sizeType', - (sizeType: string[], params: ChooseImageOptions)=>{ - if (sizeType == null) { - params.sizeType = [ - 'original', - 'compressed' - ]; - } - } - ], - [ - 'sourceType', - (sourceType: string[], params: ChooseImageOptions)=>{ - if (sourceType == null) { - params.sourceType = [ - 'album', - 'camera' - ]; - } - } - ], - [ - 'extension', - (extension: string[], params: ChooseImageOptions)=>{ - if (extension == null) { - params.extension = [ - '*' - ]; - } - } - ] - ]) - }; - const API_GET_VIDEO_INFO = 'getVideoInfo'; - const GetVideoInfoApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'src', - { - type: 'string', - required: true - } - ] - ]); - const GetVideoInfoApiOptions: ApiOptions<GetVideoInfoOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'src', - (src: string, params: GetVideoInfoOptions)=>{ - params.src = getRealPath1(src); - } - ] - ]) - }; - const API_CHOOSE_VIDEO = 'chooseVideo'; - const ChooseVideoApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'sourceType', - { - type: 'array', - required: false - } - ], - [ - 'compressed', - { - type: 'boolean', - required: false - } - ], - [ - 'maxDuration', - { - type: 'number', - required: false - } - ], - [ - 'camera', - { - type: 'string', - required: false - } - ], - [ - 'extension', - { - type: 'array', - required: false - } - ] - ]); - const ChooseVideoApiOptions: ApiOptions<ChooseVideoOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'sourceType', - (sourceType: string[], params: ChooseVideoOptions)=>{ - if (sourceType == null) { - params.sourceType = [ - 'album', - 'camera' - ]; - } - } - ], - [ - 'compressed', - (compressed: boolean, params: ChooseVideoOptions)=>{ - if (compressed == null) { - params.compressed = true; - } - } - ], - [ - 'maxDuration', - (maxDuration: number, params: ChooseVideoOptions)=>{ - if (maxDuration == null) { - params.maxDuration = 60; - } - } - ], - [ - 'camera', - (camera: string, params: ChooseVideoOptions)=>{ - if (camera == null) { - params.camera = 'back'; - } - } - ], - [ - 'extension', - (extension: string[], params: ChooseVideoOptions)=>{ - if (extension == null) { - params.extension = [ - '*' - ]; - } - } - ] - ]) - }; - const API_PREVIEW_IMAGE = 'previewImage'; - const PreviewImageApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'urls', - { - type: 'array', - required: true - } - ], - [ - 'current', - { - type: 'string', - required: false - } - ] - ]); - const PreviewImageApiOptions: ApiOptions<PreviewImageOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'urls', - (urls: string[], params: PreviewImageOptions)=>{ - params.urls = urls.map((url)=>getRealPath1(url) as string); - } - ] - ]) - }; - const API_CLOSE_PREVIEW_IMAGE = 'closePreviewImage'; - const API_SAVE_IMAGE_TO_PHOTOS_ALBUM = 'saveImageToPhotosAlbum'; - const SaveImageToPhotosAlbumApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'filePath', - { - type: 'string', - required: true - } - ] - ]); - const API_SAVE_VIDEO_TO_PHOTOS_ALBUM = 'saveVideoToPhotosAlbum'; - const SaveVideoToPhotosAlbumApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'filePath', - { - type: 'string', - required: true - } - ] - ]); - const CompressImageApiOptions: ApiOptions<CompressImageOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'src', - (src: string, params: CompressImageOptions)=>{ - if (src) params.src = getRealPath1(src); - } - ], - [ - 'quality', - (quality: number, params: CompressImageOptions)=>{ - if (quality == null) { - params.quality = 80; - } - } - ] - ]) - }; - const CompressImageApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'src', - { - type: 'string', - required: true - } - ], - [ - 'quality', - { - type: 'number' - } - ], - [ - 'compressedWidth', - { - type: 'number' - } - ], - [ - 'compressedHeight', - { - type: 'number' - } - ] - ]); - const API_CHOOSE_FILE = 'chooseFile'; - const CHOOSE_MEDIA_TYPE: string[] = [ - 'all', - 'image', - 'video' - ]; - const CHOOSE_FILE_SOURCE_TYPE: string[] = [ - 'album', - 'camera' - ]; - const ChooseFileApiOptions: ApiOptions<ChooseFileOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'count', - (count: number, params: ChooseFileOptions)=>{ - if (!count || count <= 0) { - params.count = 100; - } - return undefined; - } - ], - [ - 'sourceType', - (sourceType: string[] = [], params: ChooseFileOptions)=>{ - sourceType = sourceType.filter((type)=>CHOOSE_FILE_SOURCE_TYPE.includes(type)); - if (!sourceType.length) { - params.sourceType = [ - 'album', - 'camera' - ]; - } - return undefined; - } - ], - [ - 'type', - (type: string = 'all', params: ChooseFileOptions)=>{ - if (!CHOOSE_MEDIA_TYPE.includes(type)) { - params.type = 'all'; - } - return undefined; - } - ], - [ - 'extension', - (extension: string[], params: ChooseFileOptions)=>{ - if (extension instanceof Array && extension.length === 0) { - return 'param extension should not be empty.'; - } - if (!extension) params.extension = [ - '' - ]; - return undefined; - } - ] - ]) - }; - const ChooseFileApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'count', - { - type: 'number' - } - ], - [ - 'sourceType', - { - type: 'array' - } - ], - [ - 'type', - { - 'type': 'string' - } - ], - [ - 'extension', - { - type: 'array' - } - ] - ]); - const API_CHOOSE_MEDIA = 'chooseMedia'; - const ChooseMediaApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'count', - { - type: 'number', - required: false - } - ], - [ - 'mediaType', - { - type: 'array', - required: false - } - ], - [ - 'sourceType', - { - type: 'array', - required: false - } - ], - [ - 'maxDuration', - { - type: 'number', - required: false - } - ], - [ - 'camera', - { - type: 'string', - required: false - } - ] - ]); - const ChooseMediaApiOptions: ApiOptions<ChooseMediaOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'count', - (count: number, params: ChooseMediaOptions)=>{ - if (count == null) { - params.count = 9; - } - if (params.count != null && params.count > 9) { - params.count = 9; - } - } - ], - [ - 'mediaType', - (mediaType: string[], params: ChooseMediaOptions)=>{ - if (mediaType == null) { - params.mediaType = [ - 'image', - 'video' - ]; - } - } - ], - [ - 'sourceType', - (sourceType: string[], params: ChooseMediaOptions)=>{ - if (sourceType == null) { - params.sourceType = [ - 'album', - 'camera' - ]; - } - } - ], - [ - 'sizeType', - (sizeType: string[], params: ChooseMediaOptions)=>{ - if (sizeType == null) { - params.sizeType = [ - 'original', - 'compressed' - ]; - } - } - ], - [ - 'maxDuration', - (maxDuration: number, params: ChooseMediaOptions)=>{ - if (maxDuration == null) { - params.maxDuration = 10; - } - } - ], - [ - 'camera', - (camera: string, params: ChooseMediaOptions)=>{ - if (camera == null) { - params.camera = 'back'; - } - } - ] - ]) - }; - const MediaUniErrors: Map<number, string> = new Map([ - [ - 1101001, - 'user cancel' - ], - [ - 1101002, - 'fail parameter error: parameter.urls should have at least 1 item' - ], - [ - 1101003, - "file not find" - ], - [ - 1101004, - "Failed to load resource" - ], - [ - 1101005, - "No Permission" - ], - [ - 1101006, - "save error" - ], - [ - 1101007, - "crop error" - ], - [ - 1101008, - 'camera error' - ], - [ - 1101009, - "image output failed" - ], - [ - 1101010, - "unexpect error:" - ] - ]); - const getHMCameraPosition = (cameraType: CameraPosition)=>{ - switch(cameraType){ - case 'back': - return camera.CameraPosition.CAMERA_POSITION_BACK; - case 'front': - return camera.CameraPosition.CAMERA_POSITION_FRONT; - default: - return camera.CameraPosition.CAMERA_POSITION_BACK; - } - }; - const takePhoto = async (cameraType: CameraPosition = 'back')=>{ - let pickerProfile: cameraPicker.PickerProfile = { - cameraPosition: getHMCameraPosition(cameraType) - }; - const res = await cameraPicker.pick(getAbilityContext1()!, [ - cameraPicker.PickerMediaType.PHOTO - ], pickerProfile); - const file = fs2.openSync(res.resultUri, fs2.OpenMode.READ_ONLY); - const stat = fs2.statSync(file.fd); - return { - tempFiles: [ - { - tempFilePath: res.resultUri, - size: stat.size - } - ] - } as TakePhotoRes; - }; - const takeVideo = async (args: TakeVideoOptions | null = null)=>{ - let pickerProfile: cameraPicker.PickerProfile = { - cameraPosition: getHMCameraPosition(args?.cameraType ?? 'back'), - videoDuration: args?.videoDuration - }; - const res = await cameraPicker.pick(getAbilityContext1()!, [ - cameraPicker.PickerMediaType.VIDEO - ], pickerProfile); - return _getVideoInfo(res.resultUri).then((getVideInfoRes)=>{ - return { - path: res.resultUri, - size: getVideInfoRes.size, - duration: getVideInfoRes.duration!, - width: getVideInfoRes.width!, - height: getVideInfoRes.height!, - type: getVideInfoRes.type!, - orientation: getVideInfoRes.orientation! - } as TakeVideoRes; - }); - }; - const errSubject = 'uni-chooseImage'; - const _chooseImage = (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ - _chooseMedia({ - mimeType: photoAccessHelper1.PhotoViewMIMETypes.IMAGE_TYPE, - sourceType: [ - "album" - ], - count: options.count! - } as _ChooseMediaOptions).then((chooseMediaRes)=>{ - const tempFiles = chooseMediaRes.tempFiles; - if (tempFiles.length === 0) { - const errMsg = MediaUniErrors.get(1101001) as string; - res.reject(errMsg, { - errCode: 1101001 - } as ApiError); - return; - } - res.resolve({ - errMsg: '', - errSubject, - tempFilePaths: chooseMediaRes.tempFiles.map((file)=>file.tempFilePath), - tempFiles: chooseMediaRes.tempFiles.map((file)=>{ - return { - path: file.tempFilePath, - size: file.size - } as ChooseImageTempFile; - }) - } as ChooseImageSuccess); - }, (err: Error)=>{ - res.reject(err.message); - }); - }; - const _takePhoto = (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ - takePhoto().then((photo)=>{ - res.resolve({ - errMsg: '', - errSubject, - tempFilePaths: photo.tempFiles.map((file)=>file.tempFilePath), - tempFiles: photo.tempFiles.map((tempFile): ChooseImageTempFile =>({ - path: tempFile.tempFilePath, - size: tempFile.size - } as ChooseImageTempFile)) - } as ChooseImageSuccess); - }).catch((err: Error)=>{ - res.reject(err.message); - }); - }; - const chooseImage: ChooseImage = defineAsyncApi<ChooseImageOptions, ChooseImageSuccess>(API_CHOOSE_IMAGE, async (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ - if (options.sourceType?.length === 1 && options.sourceType[0] === 'camera') { - _takePhoto(options, res); - } else if (options.sourceType?.length === 1 && options.sourceType[0] === 'album') { - _chooseImage(options, res); - } else { - const lastWindow = getCurrentWindow() as window.Window; - const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); - UIContextPromptAction.showActionMenu({ - buttons: [ - { - text: '拍照', - color: '#000000' - }, - { - text: '从相册选择', - color: '#000000' - } - ] - } as promptAction1.ActionMenuOptions, (err, ref)=>{ - let index = ref.index; - if (err) { - res.reject('cancel'); - } else { - if (index === 0) { - _takePhoto(options, res); - } else if (index === 1) { - _chooseImage(options, res); - } - } - }); - } - }, ChooseImageApiProtocol, ChooseImageApiOptions) as ChooseImage; - const _chooseVideo = (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ - _chooseMedia({ - mimeType: photoAccessHelper2.PhotoViewMIMETypes.VIDEO_TYPE, - sourceType: [ - "album" - ] - } as _ChooseMediaOptions).then((chooseMediaRes)=>{ - const file = chooseMediaRes.tempFiles[0]; - if (!file) { - const errMsg = MediaUniErrors.get(1101001) as string; - res.reject(errMsg, { - errCode: 1101001 - } as ApiError); - return; - } - res.resolve({ - tempFilePath: file.tempFilePath, - duration: file.duration, - size: file.size, - width: file.width, - height: file.height - } as ChooseVideoSuccess); - }, (err: Error)=>{ - res.reject(err.message); - }); - }; - const _takeVideo = (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ - const takeVideoOptions: TakeVideoOptions = { - cameraType: options.camera! as CameraPosition, - videoDuration: options.maxDuration! - }; - takeVideo(takeVideoOptions).then((video)=>{ - res.resolve({ - tempFilePath: video.path, - duration: video.duration, - size: video.size, - width: video.width, - height: video.height - } as ChooseVideoSuccess); - }).catch((err: Error)=>{ - res.reject(err.message); - }); - }; - const chooseVideo: ChooseVideo = defineAsyncApi<ChooseVideoOptions, ChooseVideoSuccess>(API_CHOOSE_VIDEO, async (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ - if (options.sourceType?.length === 1 && options.sourceType[0] === 'camera') { - _takeVideo(options, res); - } else if (options.sourceType?.length === 1 && options.sourceType[0] === 'album') { - _chooseVideo(options, res); - } else { - const lastWindow = getCurrentWindow1() as window1.Window; - const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); - UIContextPromptAction.showActionMenu({ - buttons: [ - { - text: '拍摄', - color: '#000000' - }, - { - text: '从相册选择', - color: '#000000' - } - ] - } as promptAction2.ActionMenuOptions, (err, ref)=>{ - let index = ref.index; - if (err) { - res.reject('cancel'); - } else { - if (index === 0) { - _takeVideo(options, res); - } else if (index === 1) { - _chooseVideo(options, res); - } - } - }); - } - }, ChooseVideoApiProtocol, ChooseVideoApiOptions) as ChooseVideo; - const getImageInfo: GetImageInfo = defineAsyncApi<GetImageInfoOptions, GetImageInfoSuccess>(API_GET_IMAGE_INFO, async (options: GetImageInfoOptions, res: ApiExecutor<GetImageInfoSuccess>)=>{ - let src = options.src; - if (src.startsWith('http:') || src.startsWith('https:')) { - try { - src = await new Promise<string>((resolve, reject)=>{ - uni.downloadFile({ - url: options.src, - success: (res: IGetImageInfoDownloadSuccess)=>{ - resolve(res.tempFilePath); - }, - fail: (err: IGetImageInfoDownloadFail)=>{ - reject(err); - } - } as IGetImageInfoDownloadOptions); - }); - } catch (err) { - const error = err as IGetImageInfoDownloadFail; - res.reject(error.errMsg); - return; - } - } - _getImageInfo(src).then((getImageInfoRes)=>{ - res.resolve(getImageInfoRes); - }, (err: Error)=>{ - res.reject(err.message); - }); - }, GetImageInfoApiProtocol, GetImageInfoApiOptions) as GetImageInfo; - const getVideoInfo: GetVideoInfo = defineAsyncApi<GetVideoInfoOptions, GetVideoInfoSuccess>(API_GET_VIDEO_INFO, (options: GetVideoInfoOptions, res: ApiExecutor<GetVideoInfoSuccess>)=>{ - _getVideoInfo(options.src).then((getVideInfoRes)=>{ - res.resolve({ - size: getVideInfoRes.size, - duration: getVideInfoRes.duration!, - width: getVideInfoRes.width!, - height: getVideInfoRes.height!, - type: getVideInfoRes.type!, - orientation: getVideInfoRes.orientation! - } as GetVideoInfoSuccess); - }, (err: Error)=>{ - res.reject(err.message); - }); - }, GetVideoInfoApiProtocol, GetVideoInfoApiOptions) as GetVideoInfo; - const previewImage: PreviewImage = defineAsyncApi<PreviewImageOptions, PreviewImageSuccess>(API_PREVIEW_IMAGE, (options: PreviewImageOptions, exec: ApiExecutor<PreviewImageSuccess>)=>{ - const currentUrl = typeof options.current === 'number' ? options.urls[options.current ?? 0] : options.current as string; - waitForCurrentNativePage1().then((nativePage: Object)=>{ - getOSRuntime().previewImage({ - urls: options.urls.map((url)=>getRealPath2(url) as string), - current: getRealPath2(currentUrl || ''), - showmenu: options.showmenu === false ? false : true - } as IPreviewImageOptions, nativePage); - exec.resolve({ - errSubject: 'uni-previewImage', - errMsg: '' - } as PreviewImageSuccess); - }); - }, PreviewImageApiProtocol, PreviewImageApiOptions) as PreviewImage; - const closePreviewImage: ClosePreviewImage = defineAsyncApi<ClosePreviewImageOptions, ClosePreviewImageSuccess>(API_CLOSE_PREVIEW_IMAGE, (options: ClosePreviewImageOptions, exec: ApiExecutor<ClosePreviewImageSuccess>)=>{ - waitForCurrentNativePage1().then((nativePage: Object)=>{ - getOSRuntime().closePreviewImage(); - exec.resolve({ - errMsg: '' - } as ClosePreviewImageSuccess); - }); - }) as ClosePreviewImage; - const saveResource = async (src: Resource, dest: string)=>{ - const context = getAbilityContext2() as common.UIAbilityContext; - const resourceManager = context.resourceManager; - const srcPath: string = src.params?.[0] as string; - const destFile = fs3.openSync(dest, fs3.OpenMode.WRITE_ONLY); - const content = await resourceManager.getRawFileContent(srcPath); - await fs3.write(destFile.fd, content.buffer); - await fs3.close(destFile); - }; - const saveUri = async (src: string, dest: string)=>{ - const srcFile = fs3.openSync(src, fs3.OpenMode.READ_ONLY); - const destFile = fs3.openSync(dest, fs3.OpenMode.WRITE_ONLY); - await fs3.copyFile(srcFile.fd, destFile.fd); - await fs3.close(srcFile); - await fs3.close(destFile); - }; - const saveMediaToAlbum = async (fromUri: string, type: 'image' | 'video'): Promise<string | ISaveMediaError> =>{ - const realPath = getResourceStr(fromUri) as string | Resource; - const context = getAbilityContext2() as common.UIAbilityContext; - let fileName = Date.now() + (type === 'image' ? '.png' : '.mp4'); - const isResource = typeof realPath !== 'string'; - if (isResource) { - if (typeof realPath.params?.[0] === 'string') { - fileName = realPath.params?.[0].split('/').pop() || fileName; - } - } else { - fileName = realPath.split('/').pop() || fileName; - } - const phAccessHelper = photoAccessHelper3.getPhotoAccessHelper(context); - const fileNameParts = fileName.split('.'); - const title = fileNameParts[0]; - const fileNameExtension = fileNameParts.pop()!; - const photoCreationConfigs: Array<photoAccessHelper3.PhotoCreationConfig> = [ - { - title, - fileNameExtension, - photoType: type === 'image' ? photoAccessHelper3.PhotoType.IMAGE : photoAccessHelper3.PhotoType.VIDEO - } - ]; - const desFileUris: Array<string> = await phAccessHelper.showAssetsCreationDialog([ - fromUri - ], photoCreationConfigs); - if (!desFileUris || desFileUris.length === 0) { - return { - code: 1101001, - message: MediaUniErrors.get(1101001) as string - } as ISaveMediaError; - } - const destUri = desFileUris[0]; - if (!destUri.startsWith('file://')) { - return { - code: 1101006, - message: MediaUniErrors.get(1101006) as string + ', code: ' + destUri - } as ISaveMediaError; - } - if (isResource) { - await saveResource(realPath as Resource, destUri); - } else { - await saveUri(realPath as string, destUri); - } - return destUri; - }; - const saveImageToPhotosAlbum: SaveImageToPhotosAlbum = defineAsyncApi<SaveImageToPhotosAlbumOptions, SaveImageToPhotosAlbumSuccess>(API_SAVE_IMAGE_TO_PHOTOS_ALBUM, (options: SaveImageToPhotosAlbumOptions, res: ApiExecutor<SaveImageToPhotosAlbumSuccess>)=>{ - saveMediaToAlbum(options.filePath, 'image').then((uri)=>{ - if (typeof uri === 'object') { - const err = uri as ISaveMediaError; - res.reject(err.message, { - errCode: err.code - } as ApiError); - return; - } - res.resolve({ - path: uri - } as SaveImageToPhotosAlbumSuccess); - }, (err: Error)=>{ - res.reject(err.message); - }); - }, SaveImageToPhotosAlbumApiProtocol) as SaveImageToPhotosAlbum; - const saveVideoToPhotosAlbum: SaveVideoToPhotosAlbum = defineAsyncApi<SaveVideoToPhotosAlbumOptions, SaveVideoToPhotosAlbumSuccess>(API_SAVE_VIDEO_TO_PHOTOS_ALBUM, (options: SaveVideoToPhotosAlbumOptions, res: ApiExecutor<SaveVideoToPhotosAlbumSuccess>)=>{ - saveMediaToAlbum(options.filePath, 'video').then((uri)=>{ - if (typeof uri === 'object') { - const err = uri as ISaveMediaError; - res.reject(err.message, { - errCode: err.code - } as ApiError); - return; - } - res.resolve({} as SaveVideoToPhotosAlbumSuccess); - }, (err: Error)=>{ - res.reject(err.message); - }); - }, SaveVideoToPhotosAlbumApiProtocol) as SaveVideoToPhotosAlbum; - const getFileName = (path: string)=>{ - const array = path.split('/'); - return array[array.length - 1]; - }; - let id: number = 0; - const _compressImage = (args: CompressImageOptions)=>{ - const imageName = getFileName(args.src); - const imageExt = imageName.split('.').slice(-1)[0]; - const imagePacker: image1.ImagePacker = image1.createImagePacker(); - const file2 = fileIo4.openSync(args.src, fileIo4.OpenMode.READ_ONLY); - if (!file2) { - throw new Error('open file failed'); - } - const imageSource: image1.ImageSource = image1.createImageSource(file2.fd); - if (imageSource == null) { - throw new Error('create image source failed'); - } - let decodingOptions: image1.DecodingOptions = { - editable: true - }; - if (args.rotate != null) { - decodingOptions.rotate = args.rotate; - } - if (args.compressedHeight != null || args.compressedWidth != null) { - decodingOptions.desiredSize = { - height: (args.compressedHeight ?? args.compressedWidth)!, - width: (args.compressedWidth ?? args.compressedHeight)! - }; - } - const pixelMap = imageSource.createPixelMapSync(decodingOptions); - let format: string = ''; - if ([ - 'jpg', - 'jpe', - 'jpeg', - 'png' - ].includes(imageExt)) { - format = 'image/jpeg'; - } - if (imageExt === 'webp') format = 'image/webp'; - if (!format.length) { - throw new Error('error image format'); - } - const packOptions: image1.PackingOption = { - format, - quality: args.quality ?? 80 - }; - const tempFileName = `${Date.now()}_${id++}_${imageName}`; - const tempDirPath = `${getEnv2().TEMP_PATH}/compress`; - if (!fileIo4.accessSync(tempDirPath)) { - fileIo4.mkdirSync(tempDirPath, true); - } - const tempFilePath: string = `${tempDirPath}/${tempFileName}`; - const file = fileIo4.openSync(tempFilePath, fileIo4.OpenMode.CREATE | fileIo4.OpenMode.READ_WRITE); - return imagePacker.packToFile(pixelMap, file.fd, packOptions).then((_)=>{ - const size = fileIo4.statSync(file.fd).size; - fileIo4.closeSync(file.fd); - pixelMap.release(); - return { - size, - tempFilePath - } as _CompressImageSuccess; - }); - }; - const compressImage: CompressImage = defineAsyncApi<CompressImageOptions, CompressImageSuccess>(API_CHOOSE_IMAGE, (args: CompressImageOptions, executor: ApiExecutor<CompressImageSuccess>)=>{ - try { - _compressImage(args).then((res)=>{ - executor.resolve({ - tempFilePath: res.tempFilePath - } as CompressImageSuccess); - }); - } catch (error) { - executor.reject((error as BusinessError7).message); - } - }, CompressImageApiProtocol, CompressImageApiOptions) as CompressImage; - const IMAGES: string[] = [ - "jpg", - "jpe", - "pbm", - "pgm", - "pnm", - "ppm", - "psd", - "pic", - "rgb", - "svg", - "svgz", - "tif", - "xif", - "wbmp", - "wdp", - "xbm", - "ico" - ]; - const VIDEOS: string[] = [ - "3g2", - "3gp", - "avi", - "f4v", - "flv", - "jpgm", - "jpgv", - "m1v", - "m2v", - "mpe", - "mpg", - "mpg4", - "m4v", - "mkv", - "mov", - "qt", - "movie", - "mp4v", - "ogv", - "smv", - "wm", - "wmv", - "wmx", - "wvx" - ]; - const getFile = (url: string)=>{ - const file = fileIo5.openSync(url, fileIo5.OpenMode.READ_ONLY); - const size = fileIo5.statSync(file.fd).size; - return { - path: url, - name: file.name, - size, - type: file.name.split('.').pop()! - } as IFile; - }; - const chooseFile: ChooseFile = defineAsyncApi<ChooseFileOptions, ChooseFileSuccess>(API_CHOOSE_FILE, (args: ChooseFileOptions, executor: ApiExecutor<ChooseFileSuccess>)=>{ - if ([ - 'image', - 'video' - ].includes(args.type ?? '')) { - if (args.type === 'image') { - chooseImage({ - sourceType: args.sourceType, - success (res: ChooseFileSuccess) { - executor.resolve({ - tempFilePaths: res.tempFilePaths, - tempFiles: res.tempFilePaths.map((url): IFile =>getFile(url)) - } as ChooseFileSuccess); - }, - fail (err: IMediaError) { - executor.reject(err.errMsg, { - errCode: err.errCode - } as ApiError); - } - } as ChooseImageOptions); - } - if (args.type === 'video') { - chooseVideo({ - sourceType: args.sourceType, - success (res: ChooseVideoSuccess) { - executor.resolve({ - tempFilePaths: [ - res.tempFilePath - ], - tempFiles: [ - getFile(res.tempFilePath) - ] - } as ChooseFileSuccess); - }, - fail (err: IMediaError) { - executor.reject(err.errMsg, { - errCode: err.errCode - } as ApiError); - } - } as ChooseVideoOptions); - } - } else { - try { - let documentSelectOptions = new picker.DocumentSelectOptions(); - let documentPicker = new picker.DocumentViewPicker(getAbilityContext3()!); - documentSelectOptions.selectMode = picker.DocumentSelectMode.FILE; - if (args.count) documentSelectOptions.maxSelectNumber = args.count; - if (args.extension) documentSelectOptions.fileSuffixFilters = args.extension; - if (args.type === 'image') { - documentSelectOptions.fileSuffixFilters = documentSelectOptions.fileSuffixFilters?.concat(IMAGES); - } - if (args.type === 'video') { - documentSelectOptions.fileSuffixFilters = documentSelectOptions.fileSuffixFilters?.concat(VIDEOS); - } - documentPicker.select(documentSelectOptions).then((documentSelectResult: Array<string>)=>{ - let tempFiles = documentSelectResult.map((url): IFile =>getFile(url)); - executor.resolve({ - tempFilePaths: documentSelectResult, - tempFiles - } as ChooseFileSuccess); - }).catch((err: BusinessError8)=>{ - executor.reject(err.message, { - errCode: err.code - } as ApiError); - }); - } catch (error) { - let err: BusinessError8 = error as BusinessError8; - executor.reject(err.message, { - errCode: err.code - } as ApiError); - } - } - }, ChooseFileApiProtocol, ChooseFileApiOptions) as ChooseFile; - const getCameraPickerMediaTypes = (UniMediaTypes: UNI_MEDIA_TYPE[]): cameraPicker1.PickerMediaType[] =>{ - let mediaTypes: Array<cameraPicker1.PickerMediaType> = []; - if (UniMediaTypes.includes('mix')) { - mediaTypes.push(cameraPicker1.PickerMediaType.PHOTO, cameraPicker1.PickerMediaType.VIDEO); - } else { - if (UniMediaTypes.includes('image')) { - mediaTypes.push(cameraPicker1.PickerMediaType.PHOTO); - } - if (UniMediaTypes.includes('video')) { - mediaTypes.push(cameraPicker1.PickerMediaType.VIDEO); - } - } - return mediaTypes; - }; - const _takeCamera = async (args: ChooseMediaOptions, executor: ApiExecutor<ChooseMediaSuccess>)=>{ - try { - let pickerProfile: cameraPicker1.PickerProfile = { - cameraPosition: getHMCameraPosition(args?.camera ?? 'back'), - videoDuration: args?.maxDuration ?? 10 - }; - const mediaTypes = getCameraPickerMediaTypes((args.mediaType ?? []) as UNI_MEDIA_TYPE[]); - const res = await cameraPicker1.pick(getAbilityContext4()!, mediaTypes, pickerProfile); - executor.resolve({ - type: 'mix', - tempFiles: [ - { - tempFilePath: res.resultUri, - fileType: res.mediaType === cameraPicker1.PickerMediaType.PHOTO ? 'image' : 'video' - } - ] - } as ChooseMediaSuccess); - } catch (error) { - const err = error as BusinessError9; - executor.reject(err.message, { - errCode: err.code - } as ApiError); - } - }; - const __chooseMedia = async (args: ChooseMediaOptions, executor: ApiExecutor<ChooseMediaSuccess>)=>_chooseMedia({ - mimeType: photoAccessHelper4.PhotoViewMIMETypes.IMAGE_VIDEO_TYPE, - sourceType: [ - "album" - ], - count: args.count! - } as _ChooseMediaOptions).then((res)=>{ - executor.resolve({ - type: 'mix', - tempFiles: res.tempFiles.map((tempFile): ChooseMediaTempFile =>{ - if (tempFile.fileType === 'image') { - return { - fileType: tempFile.fileType, - tempFilePath: tempFile.tempFilePath, - size: tempFile.size - } as ChooseMediaTempFile; - } - return { - tempFilePath: tempFile.tempFilePath, - duration: tempFile.duration, - size: tempFile.size, - height: tempFile.height, - width: tempFile.width, - fileType: tempFile.fileType - } as ChooseMediaTempFile; - }) - } as ChooseMediaSuccess); - }).catch((err: Error)=>{ - executor.reject(err.message); - }); - const chooseMedia: ChooseMedia = defineAsyncApi<ChooseMediaOptions, ChooseMediaSuccess>(API_CHOOSE_MEDIA, async (args: ChooseMediaOptions, executor: ApiExecutor<ChooseMediaSuccess>)=>{ - if (args.mediaType?.length === 1 && args.mediaType[0] === 'image') { - chooseImage({ - count: args.count, - sizeType: args.sizeType, - sourceType: args.sourceType, - success (res) { - executor.resolve({ - type: 'image', - tempFiles: res.tempFiles.map((tempFile: ChooseImageTempFile)=>{ - return { - fileType: 'image', - tempFilePath: tempFile.path, - size: tempFile.size - } as ChooseMediaTempFile; - }) - } as ChooseMediaSuccess); - }, - fail (err: IMediaError) { - executor.reject(err.errMsg, { - errCode: err.errCode - } as ApiError); - } - } as ChooseImageOptions); - return; - } - if (args.mediaType?.length === 1 && args.mediaType[0] === 'video') { - chooseVideo({ - sourceType: args.sourceType, - maxDuration: args.maxDuration, - camera: args.camera, - success (res) { - executor.resolve({ - type: 'video', - tempFiles: [ - { - tempFilePath: res.tempFilePath, - duration: res.duration, - size: res.size, - height: res.height, - width: res.width, - fileType: 'video' - } - ] - } as ChooseMediaSuccess); - }, - fail (err: IMediaError) { - executor.reject(err.errMsg, { - errCode: err.errCode - } as ApiError); - } - } as ChooseVideoOptions); - return; - } - if (args.sourceType?.length === 1 && args.sourceType[0] === 'camera') { - _takeCamera(args, executor); - } else { - const lastWindow = getCurrentWindow2() as window2.Window; - const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); - UIContextPromptAction.showActionMenu({ - buttons: [ - { - text: '拍摄', - color: '#000000' - }, - { - text: '从相册选择', - color: '#000000' - } - ] - } as promptAction3.ActionMenuOptions, (err, ref)=>{ - let index = ref.index; - if (err) { - executor.reject('cancel'); - } else { - if (index === 0) { - _takeCamera(args, executor); - } else if (index === 1) { - __chooseMedia(args, executor); - } - } - }); - } - }, ChooseMediaApiProtocol, ChooseMediaApiOptions) as ChooseMedia; - const API_REQUEST = 'request'; - const RequestApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'url', - { - type: 'string', - required: true - } - ], - [ - 'data', - { - type: 'object', - required: false - } - ], - [ - 'header', - { - type: 'object', - required: false - } - ], - [ - 'method', - { - type: 'string', - required: false - } - ], - [ - 'dataType', - { - type: 'string', - required: false - } - ], - [ - 'responseType', - { - type: 'string', - required: false - } - ], - [ - 'timeout', - { - type: 'number', - required: false - } - ], - [ - 'sslVerify', - { - type: 'boolean', - required: false - } - ], - [ - 'withCredentials', - { - type: 'boolean', - required: false - } - ], - [ - 'firstIpv4', - { - type: 'boolean', - required: false - } - ] - ]); - const RequestApiOptions: ApiOptions<RequestOptions<Object>> = { - formatArgs: new Map<string, Function>([ - [ - 'url', - (url: string, params: RequestOptions<Object>)=>{ - if (url == null) { - throw new Error('url is required'); - } - } - ], - [ - 'method', - (method: string, params: RequestOptions<Object>)=>{ - params.method = (method || 'GET').toUpperCase() as RequestMethod; - } - ], - [ - 'dataType', - (dataType: string, params: RequestOptions<Object>)=>{ - if (dataType == null) { - params.dataType = 'json'; - } - } - ], - [ - 'responseType', - (responseType: string, params: RequestOptions<Object>)=>{ - if (responseType == null) { - params.responseType = 'text'; - } - } - ], - [ - 'timeout', - (timeout: number, params: RequestOptions<Object>)=>{ - if (timeout == null) { - params.timeout = 60000; - } - } - ], - [ - 'sslVerify', - (sslVerify: boolean, params: RequestOptions<Object>)=>{ - if (sslVerify == null) { - params.sslVerify = true; - } - } - ], - [ - 'withCredentials', - (withCredentials: boolean, params: RequestOptions<Object>)=>{ - if (withCredentials == null) { - params.withCredentials = false; - } - } - ], - [ - 'firstIpv4', - (firstIpv4: boolean, params: RequestOptions<Object>)=>{ - if (firstIpv4 == null) { - params.firstIpv4 = false; - } - } - ] - ]) - }; - const API_DOWNLOAD_FILE = 'downloadFile'; - const DownloadFileApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'url', - { - type: 'string', - required: true - } - ], - [ - 'header', - { - type: 'object', - required: false - } - ], - [ - 'timeout', - { - type: 'number', - required: false - } - ] - ]); - const DownloadFileApiOptions: ApiOptions<DownloadFileOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'url', - (url: string, params: DownloadFileOptions)=>{ - if (url == null) { - throw new Error('url is required'); - } - } - ] - ]) - }; - const API_UPLOAD_FILE = 'uploadFile'; - const UploadFileApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'url', - { - type: 'string', - required: true - } - ], - [ - 'filePath', - { - type: 'string', - required: false - } - ], - [ - 'name', - { - type: 'string', - required: false - } - ], - [ - 'header', - { - type: 'object', - required: false - } - ], - [ - 'formData', - { - type: 'object', - required: false - } - ], - [ - 'timeout', - { - type: 'number', - required: false - } - ] - ]); - const UploadFileApiOptions: ApiOptions<UploadFileOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'url', - (url: string, params: UploadFileOptions)=>{ - if (url == null) { - throw new Error('url is required'); - } - } - ], - [ - 'name', - (name: string, params: UploadFileOptions)=>{ - if (name == null) { - params.name = 'file'; - } - } - ] - ]) - }; - const needsEncoding = (str: string)=>{ - const decoded = decodeURIComponent(str); - if (decoded !== str) { - if (encodeURIComponent(decoded) === str) { - return false; - } - } - return encodeURIComponent(decoded) !== decoded; - }; - const parseUrl = (url: string)=>{ - const urlObj = harmonyUrl.URL.parseURL(url); - urlObj.params.forEach((value, key)=>{ - if (needsEncoding(value)) { - urlObj.params.set(key, value); - } - }); - return urlObj.toString(); - }; - const getCookieSync = (url: string): string =>{ - return webview.WebCookieManager.fetchCookieSync(url); - }; - const setCookieSync = (url: string, cookies: string[]): void =>{ - cookies.forEach((cookie)=>{ - webview.WebCookieManager.configCookieSync(url, cookie); - }); - webview.WebCookieManager.saveCookieAsync(); - }; - const cookiesParse = (header: Record<string, string>)=>{ - let cookiesArr: string[] = []; - const handleCookiesArr = (header['Set-Cookie'] || header['set-cookie'] || []) as string[]; - for(let i = 0; i < handleCookiesArr.length; i++){ - if (handleCookiesArr[i].indexOf('Expires=') !== -1 || handleCookiesArr[i].indexOf('expires=') !== -1) { - cookiesArr.push(handleCookiesArr[i].replace(',', '')); - } else { - cookiesArr.push(handleCookiesArr[i]); - } - } - cookiesArr = cookiesArr.join(';').split(','); - return cookiesArr; - }; - class RequestTask1 implements RequestTask { - private _requestTask: IRequestTask; - constructor(requestTask: IRequestTask){ - this._requestTask = requestTask; - } - abort() { - this._requestTask.abort(); - } - onHeadersReceived(callback: Function) { - this._requestTask.onHeadersReceived(callback); - } - offHeadersReceived(callback: Function | null = null) { - this._requestTask.offHeadersReceived(callback); - } - } - const request = defineTaskApi<RequestOptions<Object>, RequestSuccess<Object>, RequestTask>(API_REQUEST, (args: RequestOptions<Object>, exec: ApiExecutor<RequestSuccess<Object>>)=>{ - let header = args.header, method = args.method, data = args.data, dataType = args.dataType, timeout = args.timeout, url = args.url, responseType = args.responseType; - header = header || {} as ESObject; - if (!header!['Cookie'] && !header!['cookie']) { - header!['Cookie'] = getCookieSync(url); - } - let contentType = ''; - const headers = {} as Record<string, Object>; - const headerRecord = header as Object as Record<string, string>; - const headerKeys = Object.keys(headerRecord); - for(let i = 0; i < headerKeys.length; i++){ - const name = headerKeys[i]; - if (name.toLowerCase() === 'content-type') { - contentType = headerRecord[name] as string; - } - headers[name.toLowerCase()] = headerRecord[name]; - } - if (!contentType && method === 'POST') { - headers['Content-Type'] = 'application/json'; - contentType = 'application/json'; - } - if (method === 'GET' && data && isPlainObject(data)) { - const dataRecord = data as Record<string, Object>; - const query = Object.keys(dataRecord).map((key)=>{ - return (encodeURIComponent(key) + '=' + encodeURIComponent(dataRecord[key] as string | number | boolean)); - }).join('&'); - url += query ? (url.indexOf('?') > -1 ? '&' : '?') + query : ''; - data = null; - } else if (method !== 'GET' && contentType && contentType.indexOf('application/json') === 0 && isPlainObject(data)) { - data = JSON.stringify(data); - } else if (method !== 'GET' && contentType && contentType.indexOf('application/x-www-form-urlencoded') === 0 && isPlainObject(data)) { - const dataRecord = data as Record<string, Object>; - data = Object.keys(dataRecord).map((key)=>{ - return (encodeURIComponent(key) + '=' + encodeURIComponent(dataRecord[key] as number | string | boolean)); - }).join('&'); - } - const httpRequest = http.createHttp(); - const mp = getCurrentMP() as IUniNetworkMP; - const userAgent = mp.userAgent.fullUserAgent; - if (userAgent && headers && !headers!['User-Agent'] && !headers!['user-agent']) { - headers!['User-Agent'] = userAgent; - } - const emitter = new Emitter2() as IUniRequestEmitter; - const requestTask: IRequestTask = { - abort () { - emitter.off('headersReceive'); - httpRequest.destroy(); - }, - onHeadersReceived (callback: Function) { - emitter.on('headersReceive', callback); - }, - offHeadersReceived (callback: Function | null = null) { - emitter.off('headersReceive', callback); - } - }; - const destroy = ()=>{ - emitter.off('headersReceive'); - httpRequest.destroy(); - }; - mp.on('beforeClose', destroy); - let latestHeaders: Object | null = null; - httpRequest.on('headersReceive', (headers: Object)=>{ - const realHeaders = headers as Record<string, string | string[]>; - const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; - if (setCookieHeader) { - setCookieSync(url, setCookieHeader as string[]); - } - latestHeaders = headers; - }); - const bufs = [] as buffer.Buffer[]; - httpRequest.on('dataReceive', (data)=>{ - bufs.push(buffer.from(data)); - }); - httpRequest.requestInStream(parseUrl(url), { - header: headers, - method: (method || 'GET').toUpperCase() as http.RequestMethod, - extraData: data || undefined, - connectTimeout: timeout ? timeout : undefined, - readTimeout: timeout ? timeout : undefined - } as http.HttpRequestOptions, (err, statusCode)=>{ - if (err) { - exec.reject(err.message); - } else { - const responseData = buffer.concat(bufs); - let data: ArrayBuffer | string | object = ''; - if (responseType === 'arraybuffer') { - data = responseData.buffer; - } else { - data = responseData.toString('utf8'); - if (dataType === 'json') { - try { - data = JSON.parse(data); - } catch (e) {} - } - } - const headers = latestHeaders as Record<string, string | string[]>; - const oldCookies = (headers['Set-Cookie'] || headers['set-cookie'] || []) as string[]; - const cookies = latestHeaders ? cookiesParse(latestHeaders as Record<string, string>) : []; - let newCookies = oldCookies.join(','); - if (newCookies) { - if (headers['Set-Cookie']) { - headers['Set-Cookie'] = newCookies; - } else { - headers['set-cookie'] = newCookies; - } - } - exec.resolve({ - data, - statusCode, - header: latestHeaders!, - cookies: cookies - } as RequestSuccess<Object>); - } - requestTask.offHeadersReceived(); - httpRequest.destroy(); - mp.off('beforeClose', destroy); - }); - return new RequestTask1(requestTask); - }, RequestApiProtocol, RequestApiOptions) as Request<Object>; - const lookupExt = (contentType: string): string | undefined =>{ - const rawContentType = contentType.split(';')[0].trim().toLowerCase(); - return (UTSHarmony9.getExtensionFromMimeType(rawContentType) as string | null) || undefined; - }; - const lookupContentTypeWithUri = (uri: string): string | undefined =>{ - const uriArr = uri.split('.'); - if (uriArr.length <= 1) { - return undefined; - } - const ext = uriArr.pop() as string; - return (UTSHarmony9.getMimeTypeFromExtension(ext) as string | null) || undefined; - }; - class UploadTask1 implements UploadTask { - private _uploadTask: IUploadTask; - constructor(uploadTask: IUploadTask){ - this._uploadTask = uploadTask; - } - abort() { - this._uploadTask.abort(); - } - onProgressUpdate(callback: Function) { - this._uploadTask.onProgressUpdate(callback); - } - offProgressUpdate(callback: Function | null = null) { - this._uploadTask.offProgressUpdate(callback); - } - onHeadersReceived(callback: Function) { - this._uploadTask.onHeadersReceived(callback); - } - offHeadersReceived(callback: Function | null = null) { - this._uploadTask.offHeadersReceived(callback); - } - } - const readFile = (filePath: string): ArrayBuffer =>{ - const readFilePath = getRealPath3(filePath) as string; - const file = fs4.openSync(readFilePath, fs4.OpenMode.READ_ONLY); - const stat = fs4.statSync(file.fd); - const data = new ArrayBuffer(stat.size); - fs4.readSync(file.fd, data); - fs4.closeSync(file.fd); - return data; - }; - const uploadFile = defineTaskApi<UploadFileOptions, UploadFileSuccess, UploadTask>(API_UPLOAD_FILE, (args: UploadFileOptions, exec: ApiExecutor<UploadFileSuccess>)=>{ - let url = args.url, timeout = args.timeout, header = args.header, formData = args.formData, files = args.files, filePath = args.filePath, name = args.name; - header = header || {} as ESObject; - if (!header!['Cookie'] && !header!['cookie']) { - header!['Cookie'] = getCookieSync(url); - } - const headers = {} as Record<string, Object>; - if (header) { - const headerRecord = header as Object as Record<string, string>; - const headerKeys = Object.keys(headerRecord); - for(let i = 0; i < headerKeys.length; i++){ - const name = headerKeys[i]; - headers[name.toLowerCase()] = headerRecord[name]; - } - } - headers['Content-Type'] = 'multipart/form-data'; - const multiFormDataList = [] as Array<http1.MultiFormData>; - if (formData) { - const formDataRecord = formData as Object as Record<string, Object>; - const formDataKeys = Object.keys(formDataRecord); - for(let i = 0; i < formDataKeys.length; i++){ - const name = formDataKeys[i]; - multiFormDataList.push({ - name, - contentType: 'text/plain', - data: String(formDataRecord[name]) - } as http1.MultiFormData); - } - } - try { - if (files && files.length) { - for(let i = 0; i < files.length; i++){ - const _files_i = files[i], name = _files_i.name, uri = _files_i.uri; - multiFormDataList.push({ - name: name || 'file', - contentType: lookupContentTypeWithUri(uri) || 'application/octet-stream', - remoteFileName: uri.split('/').pop() || 'no-name', - data: readFile(uri!) - } as http1.MultiFormData); - } - } else if (filePath) { - multiFormDataList.push({ - name: name || 'file', - contentType: lookupContentTypeWithUri(filePath!) || 'application/octet-stream', - remoteFileName: filePath.split('/').pop() || 'no-name', - data: readFile(filePath!) - } as http1.MultiFormData); - } - } catch (error) { - exec.reject((error as Error).message); - return new UploadTask1({ - abort: ()=>{}, - onHeadersReceived: (callback: Function)=>{}, - offHeadersReceived: (callback: Function)=>{}, - onProgressUpdate: (callback: Function)=>{}, - offProgressUpdate: (callback: Function)=>{} - } as IUploadTask); - } - const httpRequest = http1.createHttp(); - const mp = getCurrentMP1() as IUniNetworkMP; - const userAgent = mp.userAgent.fullUserAgent; - if (userAgent && !headers['User-Agent'] && !headers['user-agent']) { - headers['User-Agent'] = userAgent; - } - const emitter = new Emitter3() as IUniUploadFileEmitter; - const uploadTask: IUploadTask = { - abort () { - emitter.off('headersReceive'); - emitter.off('progress'); - httpRequest.destroy(); - }, - onHeadersReceived (callback: Function) { - emitter.on('headersReceive', callback); - }, - offHeadersReceived (callback: Function | null = null) { - emitter.off('headersReceive', callback); - }, - onProgressUpdate (callback: Function) { - emitter.on('progress', callback); - }, - offProgressUpdate (callback: Function | null = null) { - emitter.off('progress', callback); - } - }; - const destroy = ()=>{ - emitter.off('headersReceive'); - emitter.off('progress'); - httpRequest.destroy(); - }; - mp.on('beforeClose', destroy); - httpRequest.on('headersReceive', (headers: Object)=>{ - const realHeaders = headers as Record<string, string | string[]>; - const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; - if (setCookieHeader) { - setCookieSync(url, setCookieHeader as string[]); - } - }); - httpRequest.on('dataSendProgress', (ref)=>{ - let sendSize = ref.sendSize, totalSize = ref.totalSize; - emitter.emit('progress', { - progress: Math.floor((sendSize / totalSize) * 100), - totalBytesSent: sendSize, - totalBytesExpectedToSend: totalSize - } as OnProgressUpdateResult); - }); - httpRequest.request(parseUrl(url), { - header: headers, - method: http1.RequestMethod.POST, - connectTimeout: timeout ? timeout : undefined, - readTimeout: timeout ? timeout : undefined, - multiFormDataList, - expectDataType: http1.HttpDataType.STRING - } as http1.HttpRequestOptions, (err, res)=>{ - if (err) { - exec.reject(err.message); - } else { - exec.resolve({ - data: res.result as string, - statusCode: res.responseCode - } as UploadFileSuccess); - } - uploadTask.offHeadersReceived(); - uploadTask.offProgressUpdate(); - httpRequest.destroy(); - mp.off('beforeClose', destroy); - }); - return new UploadTask1(uploadTask); - }, UploadFileApiProtocol, UploadFileApiOptions) as UploadFile; - const getPossibleExt = (contentType: string, contentDisposition: string, url: string): string =>{ - const contentDispositionFileNameMatches = contentDisposition.match(/filename="(.*)"/); - const contentDispositionFileName = contentDispositionFileNameMatches ? contentDispositionFileNameMatches[1] : ''; - const contentDispositionExt = contentDispositionFileName ? contentDispositionFileName.split('.').pop() : ''; - if (contentDispositionExt) { - return contentDispositionExt; - } - const urlPath = harmonyUrl1.URL.parseURL(url).pathname; - const urlExt = urlPath.split('/').pop()?.split('.')[1] || ''; - if (urlExt) { - return urlExt; - } - const contentTypeExt = lookupExt(contentType); - return contentTypeExt || ''; - }; - class DownloadTask1 implements DownloadTask { - private _downloadTask: IDownloadTask; - constructor(downloadTask: IDownloadTask){ - this._downloadTask = downloadTask; - } - abort() { - this._downloadTask.abort(); - } - onProgressUpdate(callback: Function) { - this._downloadTask.onProgressUpdate(callback); - } - offProgressUpdate(callback: Function | null = null) { - this._downloadTask.offProgressUpdate(callback); - } - onHeadersReceived(callback: Function) { - this._downloadTask.onHeadersReceived(callback); - } - offHeadersReceived(callback: Function | null = null) { - this._downloadTask.offHeadersReceived(callback); - } - } - let downloadIndex: [string, number] = [ - '0', - 0 - ]; - const getDownloadFileName = (ext: string)=>{ - let fileName = Date.now() + ''; - if (downloadIndex[0] === fileName) { - downloadIndex[1]++; - if (downloadIndex[1] > 0) { - fileName += '-' + downloadIndex[1]; - } - } else { - downloadIndex[0] = fileName; - downloadIndex[1] = 0; - } - if (ext) { - fileName += '.' + ext; - } - return fileName; - }; - const downloadFile = defineTaskApi<DownloadFileOptions, DownloadFileSuccess, DownloadTask>(API_DOWNLOAD_FILE, (args: DownloadFileOptions, exec: ApiExecutor<DownloadFileSuccess>)=>{ - let url = args.url, timeout = args.timeout, header = args.header, filePath = args.filePath; - header = header || {} as ESObject; - if (!header!['Cookie'] && !header!['cookie']) { - header!['Cookie'] = getCookieSync(url); - } - const httpRequest = http2.createHttp(); - const mp = getCurrentMP2()! as IUniNetworkMP; - const userAgent = mp.userAgent.fullUserAgent; - if (userAgent && !header!['User-Agent'] && !header!['user-agent']) { - header!['User-Agent'] = userAgent; - } - const emitter = new Emitter4() as IUniDownloadFileEmitter; - const downloadTask: IDownloadTask = { - abort () { - emitter.off('headersReceive'); - emitter.off('progress'); - httpRequest.destroy(); - }, - onHeadersReceived (callback: Function) { - emitter.on('headersReceive', callback); - }, - offHeadersReceived (callback: Function | null = null) { - emitter.off('headersReceive', callback); - }, - onProgressUpdate (callback: Function) { - emitter.on('progress', callback); - }, - offProgressUpdate (callback: Function | null = null) { - emitter.off('progress', callback); - } - }; - const destroy = ()=>{ - downloadTask.abort(); - }; - mp.on('beforeClose', destroy); - let responseContentType = ''; - let responseContentDisposition = ''; - httpRequest.on('headersReceive', (headers: Object)=>{ - const realHeaders = headers as Record<string, string | string[]>; - responseContentType = realHeaders['content-type'] as string || realHeaders['Content-Type'] as string || ''; - responseContentDisposition = realHeaders['content-disposition'] as string || realHeaders['Content-Disposition'] as string || ''; - const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; - if (setCookieHeader) { - setCookieSync(url, setCookieHeader as string[]); - } - }); - httpRequest.on('dataReceiveProgress', (ref)=>{ - let receiveSize = ref.receiveSize, totalSize = ref.totalSize; - emitter.emit('progress', { - progress: Math.floor((receiveSize / totalSize) * 100), - totalBytesWritten: receiveSize, - totalBytesExpectedToWrite: totalSize - } as OnProgressDownloadResult); - }); - const TEMP_PATH = getEnv3().TEMP_PATH as string; - const downloadPath = TEMP_PATH + '/download'; - if (!fs5.accessSync(downloadPath)) { - fs5.mkdirSync(downloadPath, true); - } - let stream: fs5.Stream; - let tempFilePath = ''; - let writePromise = Promise.resolve(0); - const queueWrite = async (data: ArrayBuffer): Promise<number> =>{ - writePromise = writePromise.then(async (total)=>{ - const length = await stream.write(data); - return total + length; - }); - return writePromise; - }; - httpRequest.on('dataReceive', (data)=>{ - if (!stream) { - const ext = getPossibleExt(responseContentType, responseContentDisposition, url); - tempFilePath = filePath ? filePath.replace(/^file:\/\//, '') : downloadPath + '/' + getDownloadFileName(ext); - stream = fs5.createStreamSync(tempFilePath, 'w+'); - } - queueWrite(data); - }); - httpRequest.requestInStream(parseUrl(url), { - header: header ? header : {} as ESObject, - method: http2.RequestMethod.GET, - connectTimeout: timeout ? timeout : undefined, - readTimeout: timeout ? timeout : undefined - } as http2.HttpRequestOptions, (err, statusCode)=>{ - let finishPromise: Promise<void> = Promise.resolve(); - if (err) { - exec.reject(err.message); - } else { - finishPromise = writePromise.then(async ()=>{ - await stream.flush(); - await stream.close(); - exec.resolve({ - tempFilePath: 'file://' + tempFilePath, - statusCode - } as DownloadFileSuccess); - }).catch((err: Error)=>{ - exec.reject(err.message); - }); - } - finishPromise.then(()=>{ - downloadTask.offHeadersReceived(); - downloadTask.offProgressUpdate(); - httpRequest.destroy(); - mp.off('beforeClose', destroy); - }); - }); - return new DownloadTask1(downloadTask); - }, DownloadFileApiProtocol, DownloadFileApiOptions) as DownloadFile; - const API_OPEN_APP_AUTHORIZE_SETTING = 'openAppAuthorizeSetting'; - const openAppAuthorizeSetting: OpenAppAuthorizeSetting = defineAsyncApi<OpenAppAuthorizeSettingOptions, OpenAppAuthorizeSettingSuccess>(API_OPEN_APP_AUTHORIZE_SETTING, (options: OpenAppAuthorizeSettingOptions, exec: ApiExecutor<OpenAppAuthorizeSettingSuccess>)=>{ - const want: Want = { - bundleName: 'com.huawei.hmos.settings', - abilityName: 'com.huawei.hmos.settings.MainAbility', - uri: 'application_info_entry', - parameters: { - pushParams: bundleManager2.getBundleInfoForSelfSync(bundleManager2.BundleFlag.GET_BUNDLE_INFO_DEFAULT).name - } - } as Want; - const context = getAbilityContext5() as common1.UIAbilityContext; - context.startAbility(want).then(()=>{ - exec.resolve({ - errMsg: '' - } as OpenAppAuthorizeSettingSuccess); - }, (err: Error)=>{ - exec.reject(err.message); - }); - }) as OpenAppAuthorizeSetting; - const API_OPEN_DOCUMENT = 'openDocument'; - const getContentType = (filePath: string, fileType: string | null = null): string | void =>{ - const suffix = fileType || filePath.split('.').pop(); - if (!suffix) { - return; - } - switch(suffix){ - case 'doc': - case 'docx': - return 'application/msword'; - case 'xls': - case 'xlsx': - return 'application/vnd.ms-excel'; - case 'ppt': - case 'pptx': - return 'application/vnd.ms-powerpoint'; - case 'pdf': - return 'application/pdf'; - default: - return; - } - }; - const openDocument: OpenDocument = defineAsyncApi<OpenDocumentOptions, OpenDocumentSuccess>(API_OPEN_DOCUMENT, (options: OpenDocumentOptions, exec: ApiExecutor<OpenDocumentSuccess>)=>{ - const filePath = options.filePath; - const uri = fileUri.getUriFromPath(filePath.replace(/^file:\/\//, '')); - const fileContentType = getContentType(filePath, options.fileType); - if (!fileContentType) { - exec.reject('file type not supported'); - return; - } - const want: Want1 = { - flags: wantConstant.Flags.FLAG_AUTH_WRITE_URI_PERMISSION | wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION | wantConstant.Flags.FLAG_AUTH_PERSISTABLE_URI_PERMISSION, - action: 'ohos.want.action.sendData', - uri: uri, - type: fileContentType as string - }; - const abilityContext = getAbilityContext6() as common2.UIAbilityContext; - abilityContext.startAbility(want).then(()=>{ - exec.resolve({} as OpenDocumentSuccess); - }, (err: Error)=>{ - exec.reject(err.message); - }); - }) as OpenDocument; - const API_SHOW_TOAST = 'showToast'; - const ShowToastProtocol = new Map<string, ProtocolOptions>([ - [ - 'title', - { - type: 'string', - required: true - } - ], - [ - 'duration', - { - type: 'number' - } - ] - ]); - const ShowToastApiOptions: ApiOptions<ShowToastOptions> = { - formatArgs: new Map<string, Function | string | number>([ - [ - "title", - "" - ], - [ - "duration", - 1500 - ] - ]) - }; - const API_HIDE_TOAST = 'hideToast'; - const PRIMARY_COLOR = '#007aff'; - const API_SHOW_MODAL = 'showModal'; - const ShowModalProtocol = new Map<string, ProtocolOptions>([ - [ - "title", - { - type: "string" - } - ], - [ - "content", - { - type: "string" - } - ], - [ - "showCancel", - { - type: "boolean" - } - ], - [ - "cancelText", - { - type: "string" - } - ], - [ - "cancelColor", - { - type: "string" - } - ], - [ - "confirmText", - { - type: "string" - } - ], - [ - "confirmColor", - { - type: "string" - } - ] - ]); - const ShowModalApiOptions: ApiOptions<ShowModalOptions> = { - formatArgs: new Map<string, Function | string | boolean>([ - [ - "title", - "" - ], - [ - "content", - "" - ], - [ - "placeholderText", - "" - ], - [ - "showCancel", - true - ], - [ - "editable", - false - ], - [ - "cancelColor", - "#000000" - ], - [ - "confirmColor", - PRIMARY_COLOR - ] - ]) - }; - const API_SHOW_ACTION_SHEET = 'showActionSheet'; - const ShowActionSheetProtocol = new Map<string, ProtocolOptions>([ - [ - "title", - { - type: "string" - } - ], - [ - "itemList", - { - type: "array", - required: true - } - ], - [ - "itemColor", - { - type: "string" - } - ] - ]); - const ShowActionSheetApiOptions: ApiOptions<ShowActionSheetOptions> = { - formatArgs: new Map<string, string>([ - [ - "itemColor", - "#000000" - ] - ]) - }; - const API_SHOW_LOADING = 'showLoading'; - const ShowLoadingProtocol = new Map<string, ProtocolOptions>([ - [ - 'title', - { - type: 'string' - } - ], - [ - 'mask', - { - type: 'boolean' - } - ] - ]); - const ShowLoadingApiOptions: ApiOptions<ShowLoadingOptions> = { - formatArgs: new Map<string, Function | string | boolean>([ - [ - "title", - "" - ], - [ - "mask", - false - ] - ]) - }; - const API_HIDE_LOADING = 'hideLoading'; - const showToast: ShowToast = defineAsyncApi<ShowToastOptions, ShowToastSuccess>(API_SHOW_TOAST, (options: ShowToastOptions, res: ApiExecutor<ShowToastSuccess>)=>{ - try { - const showToastOptions: promptAction4.ShowToastOptions = { - message: options.title, - duration: options.duration!, - alignment: Alignment.Center - }; - if (options.position) { - switch(options.position){ - case 'top': - showToastOptions.alignment = Alignment.Top; - break; - case 'bottom': - showToastOptions.alignment = Alignment.Bottom; - break; - } - } - const window = getCurrentWindow3() as window.Window; - window.getUIContext().getPromptAction().showToast(showToastOptions); - res.resolve({} as ShowToastSuccess); - } catch (error) { - let message = (error as BusinessError10).message; - res.reject(message); - } - }, ShowToastProtocol, ShowToastApiOptions) as ShowToast; - const hideToast: HideToast = defineAsyncApi(API_HIDE_TOAST, (_, res: ApiExecutor<Object>)=>{ - res.reject('hideToast is not supported on HarmonyOS'); - }) as HideToast; - const showModal: ShowModal = defineAsyncApi<ShowModalOptions, ShowModalSuccess>(API_SHOW_MODAL, async (args: ShowModalOptions, res: ApiExecutor<ShowModalSuccess>)=>{ - const modalRes = await new Promise<ShowModalSuccess>((resolve, reject)=>{ - const confirmButton: AlertDialogButtonOptions = { - value: args.confirmText ?? '确定', - fontColor: args.confirmColor!, - action: ()=>{ - resolve({ - "confirm": true - } as ShowModalSuccess); - } - }; - const cancelButton: AlertDialogButtonOptions = { - value: args.cancelText ?? '取消', - fontColor: args.cancelColor ?? '#000000', - action: ()=>{ - resolve({ - "cancel": true - } as ShowModalSuccess); - } - }; - const buttons: Array<AlertDialogButtonOptions> = []; - if (args.showCancel) { - buttons.push(cancelButton); - } - buttons.push(confirmButton); - const window = getCurrentWindow4() as window.Window; - window.getUIContext().showAlertDialog({ - title: args.title ?? '', - message: args.content ?? '', - autoCancel: false, - alignment: DialogAlignment.Center, - buttons, - cancel: ()=>{ - resolve({ - 'cancel': true - } as ShowModalSuccess); - } - } as AlertDialogParamWithOptions); - }); - if (modalRes.confirm) { - modalRes.cancel = false; - } - if (modalRes.cancel) { - modalRes.confirm = false; - } - modalRes.content = null; - res.resolve(modalRes as ShowModalSuccess); - }, ShowModalProtocol, ShowModalApiOptions) as ShowModal; - const showActionSheet: ShowActionSheet = defineAsyncApi<ShowActionSheetOptions, ShowActionSheetSuccess>(API_SHOW_ACTION_SHEET, async (options: ShowActionSheetOptions, res: ApiExecutor<ShowActionSheetSuccess>)=>{ - const actionItemList = options.itemList.filter(Boolean); - if (actionItemList.length === 0) { - return; - } - type ActionMenuButtons = [promptAction5.Button, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?]; - const actionMenuButtons: ActionMenuButtons = [ - { - text: actionItemList[0], - color: options.itemColor! - } - ]; - actionItemList.slice(1).forEach((item)=>{ - actionMenuButtons.push({ - text: item, - color: options.itemColor! - } as promptAction5.Button); - }); - const window = getCurrentWindow5() as window.Window; - window.getUIContext().getPromptAction().showActionMenu({ - title: options.title, - buttons: actionMenuButtons - } as promptAction5.ActionMenuOptions).then((showACtionSheetRes)=>{ - res.resolve({ - tapIndex: showACtionSheetRes.index - } as ShowActionSheetSuccess); - }).catch((e: Error)=>{ - if (e.message === 'cancel') { - res.reject('cancel'); - return; - } - res.reject(e.message); - }); - }, ShowActionSheetProtocol, ShowActionSheetApiOptions) as ShowActionSheet; - const showLoading: ShowLoading = defineAsyncApi<ShowLoadingOptions, ShowLoadingSuccess>(API_SHOW_LOADING, async (options: ShowLoadingOptions, exec: ApiExecutor<ShowLoadingSuccess>)=>{ - waitForCurrentNativePage2().then((nativePage: Object)=>{ - getOSRuntime1().showLoading({ - title: options.title || '', - mask: options.mask == null ? false : options.mask - } as IShowLoadingOptions, nativePage); - exec.resolve({} as ShowLoadingSuccess); - }); - }, ShowLoadingProtocol, ShowLoadingApiOptions) as ShowLoading; - const hideLoading: HideLoading = defineSyncApi<void>(API_HIDE_LOADING, ()=>{ - waitForCurrentNativePage2().then((nativePage: Object)=>{ - getOSRuntime1().hideLoading(); - }); - }) as HideLoading; - const API_START_PULL_DOWN_REFRESH = 'startPullDownRefresh'; - const API_STOP_PULL_DOWN_REFRESH = 'stopPullDownRefresh'; - const startPullDownRefresh = defineAsyncApi<StartPullDownRefreshOptions, StartPullDownRefreshSuccess>(API_START_PULL_DOWN_REFRESH, (_, res)=>{ - internalStartPullDownRefresh(); - res.resolve(); - }) as StartPullDownRefresh; - const stopPullDownRefresh = defineSyncApi<void>(API_STOP_PULL_DOWN_REFRESH, ()=>{ - internalStopPullDownRefresh(); - }) as StopPullDownRefresh; - const API_RPX2PX = 'rpx2px'; - const EPS = 1e-4; - const rpx2px: Rpx2px = defineSyncApi<number>(API_RPX2PX, (number: number): number =>{ - const windowStage: harmonyWindow.WindowStage = UTSHarmony10.getWindowStage(); - let windowWidthInVp: number = 384; - let windowWidthInPx: number = 1344; - if (windowStage) { - const mainWindow: harmonyWindow.Window = windowStage.getMainWindowSync(); - windowWidthInPx = mainWindow.getWindowProperties().windowRect.width; - windowWidthInVp = px2vp(windowWidthInPx); - } - let result = (number / 750) * windowWidthInVp; - if (result < 0) { - result = -result; - } - result = Math.floor(result + EPS); - if (result == 0) { - if (windowWidthInPx == windowWidthInVp) { - result = 1; - } else { - result = 0.5; - } - } - return number < 0 ? -result : result; - }) as Rpx2px; - const API_SCAN_CODE = 'scanCode'; - const HarmonyScanTypeMap = new Map<UniScanOptionsTypes, scanCore.ScanType[]>([ - [ - 'barCode', - [ - scanCore.ScanType.ONE_D_CODE - ] - ], - [ - 'qrCode', - [ - scanCore.ScanType.TWO_D_CODE - ] - ], - [ - 'datamatrix', - [ - scanCore.ScanType.DATAMATRIX_CODE - ] - ], - [ - 'pdf417', - [ - scanCore.ScanType.PDF417_CODE - ] - ] - ]); - const UniScanTypeMap = new Map<HarmonyScanResultTypes, UniScanResultTypes>([ - [ - scanCore.ScanType.AZTEC_CODE, - 'AZTEC' - ], - [ - scanCore.ScanType.CODABAR_CODE, - 'CODABAR' - ], - [ - scanCore.ScanType.CODE128_CODE, - 'CODE_128' - ], - [ - scanCore.ScanType.CODE39_CODE, - 'CODE_39' - ], - [ - scanCore.ScanType.CODE93_CODE, - 'CODE_93' - ], - [ - scanCore.ScanType.DATAMATRIX_CODE, - 'DATA_MATRIX' - ], - [ - scanCore.ScanType.EAN13_CODE, - 'EAN_13' - ], - [ - scanCore.ScanType.EAN8_CODE, - 'EAN_8' - ], - [ - scanCore.ScanType.ITF14_CODE, - 'ITF' - ], - [ - scanCore.ScanType.PDF417_CODE, - 'PDF_417' - ], - [ - scanCore.ScanType.QR_CODE, - 'QR_CODE' - ], - [ - scanCore.ScanType.UPC_A_CODE, - 'UPC_A' - ], - [ - scanCore.ScanType.UPC_E_CODE, - 'UPC_E' - ] - ]); - const scanCode: ScanCode = defineAsyncApi<ScanCodeOptions, ScanCodeSuccess>(API_SCAN_CODE, (options: ScanCodeOptions, exec: ApiExecutor<ScanCodeSuccess>)=>{ - if (!canIUse('SystemCapability.Multimedia.Scan.ScanBarcode')) { - exec.reject('not support'); - return; - } - let scanTypes: scanCore.ScanType[] = []; - if (options.scanType && Array.isArray(options.scanType) && options.scanType.length > 0) { - for(let i = 0; i < options.scanType.length; i++){ - const uniScanType = options.scanType[i]; - const harmonyScanTypes = HarmonyScanTypeMap.get(uniScanType); - if (!harmonyScanTypes) { - continue; - } - scanTypes = scanTypes.concat(harmonyScanTypes); - } - } - if (scanTypes.length === 0) { - scanTypes = [ - scanCore.ScanType.ALL - ]; - } - const scanOptions: scanBarcode.ScanOptions = { - scanTypes, - enableMultiMode: true, - enableAlbum: !options.onlyFromCamera - }; - scanBarcode.startScanForResult(getAbilityContext7()!, scanOptions, (err, data)=>{ - if (err) { - exec.reject(err.message); - return; - } - exec.resolve({ - result: data.originalValue, - scanType: UniScanTypeMap.get(data.scanType as HarmonyScanResultTypes) || '' - } as ScanCodeSuccess); - }); - }) as ScanCode; - const API_SHARE_WITH_SYSTEM = 'shareWithSystem'; - const shareWithSystem = defineAsyncApi<ShareWithSystemOptions, ShareWithSystemSuccess>(API_SHARE_WITH_SYSTEM, (args: ShareWithSystemOptions, exec: ApiExecutor<ShareWithSystemSuccess>)=>{ - const href = args.href; - const imageUrl = args.imageUrl; - const summary = args.summary; - const shareRecords: systemShare.SharedRecord[] = []; - if (href) { - shareRecords.push({ - utd: uniformTypeDescriptor.UniformDataType.HYPERLINK, - content: href - } as systemShare.SharedRecord); - } - if (imageUrl) { - shareRecords.push({ - utd: uniformTypeDescriptor.UniformDataType.IMAGE, - uri: imageUrl - } as systemShare.SharedRecord); - } - if (summary) { - shareRecords.push({ - utd: uniformTypeDescriptor.UniformDataType.TEXT, - content: summary - } as systemShare.SharedRecord); - } - if (shareRecords.length === 0) { - exec.reject('No share data'); - return; - } - const shareData = new systemShare.SharedData(shareRecords[0]); - for(let index = 1; index < shareRecords.length; index++){ - shareData.addRecord(shareRecords[index]); - } - const shareController: systemShare.ShareController = new systemShare.ShareController(shareData); - shareController.show(getAbilityContext8() as common3.UIAbilityContext, {} as systemShare.ShareControllerOptions); - const onDismiss = ()=>{ - shareController.off('dismiss', onDismiss); - exec.resolve({} as ShareWithSystemSuccess); - }; - shareController.on('dismiss', onDismiss); - }) as ShareWithSystem; - const API_GET_STORAGE = 'getStorage'; - const API_GET_STORAGE_SYNC = 'getStorageSync'; - const API_SET_STORAGE = 'setStorage'; - const API_SET_STORAGE_SYNC = 'setStorageSync'; - const API_REMOVE_STORAGE = 'removeStorage'; - const API_REMOVE_STORAGE_SYNC = 'removeStorageSync'; - const API_CLEAR_STORAGE = 'clearStorage'; - const API_CLEAR_STORAGE_SYNC = 'clearStorageSync'; - const API_GET_STORAGE_INFO = 'getStorageInfo'; - const API_GET_STORAGE_INFO_SYNC = 'getStorageInfoSync'; - const parseStorageValue = (value: string): Object =>{ - try { - return JSON.parse(value).data; - } catch (e) { - return value; - } - }; - const stringifyStorageValue = (value: Object): string =>{ - return JSON.stringify({ - type: typeof value, - data: value - } as ESObject); - }; - const stores = new Map<string, dataPreferences.Preferences>(); - const createStore = (): dataPreferences.Preferences =>{ - const appId = (getCurrentMP3() as UniStorageMP).id; - if (stores.has(appId)) { - return stores.get(appId)!; - } - const store = dataPreferences.getPreferencesSync(getAbilityContext9() as common4.UIAbilityContext, { - name: `storage.${appId}` - } as dataPreferences.Options); - stores.set(appId, store); - return store; - }; - const getStorageSync = defineSyncApi<Object>(API_GET_STORAGE_SYNC, (key: string)=>{ - const storeValue = createStore().getSync(key, ''); - if (!storeValue) { - return ''; - } - return parseStorageValue(storeValue as string); - }) as GetStorageSync; - const getStorage = defineAsyncApi<GetStorageOptions, GetStorageSuccess>(API_GET_STORAGE, (args: GetStorageOptions, exec: ApiExecutor<GetStorageSuccess>)=>{ - createStore().get(args.key, '').then((storeValue)=>{ - if (!storeValue) { - return exec.reject('data not found'); - } - let value: Object; - try { - value = parseStorageValue(storeValue as string); - } catch (error) { - exec.reject('data parse error'); - return; - } - exec.resolve({ - data: value - } as GetStorageSuccess); - }); - }) as GetStorage; - const setStorageSync = defineSyncApi<void>(API_SET_STORAGE_SYNC, (key: string, value: Object)=>{ - createStore().putSync(key, stringifyStorageValue(value)); - createStore().flush(); - }) as SetStorageSync; - const setStorage = defineAsyncApi<SetStorageOptions, SetStorageSuccess>(API_SET_STORAGE, (args: SetStorageOptions, exec: ApiExecutor<SetStorageSuccess>)=>{ - try { - createStore().put(args.key, stringifyStorageValue(args.data)).then(()=>{ - createStore().flush(); - exec.resolve({} as ESObject); - }, (error: Error)=>{ - exec.reject(error.message); - }); - } catch (error) { - exec.reject((error as Error).message); - } - }) as SetStorage; - const removeStorageSync = defineSyncApi<void>(API_REMOVE_STORAGE_SYNC, (key: string)=>{ - createStore().deleteSync(key); - createStore().flush(); - }) as RemoveStorageSync; - const removeStorage = defineAsyncApi<RemoveStorageOptions, RemoveStorageSuccess>(API_REMOVE_STORAGE, (args: RemoveStorageOptions, exec: ApiExecutor<RemoveStorageSuccess>)=>{ - createStore().delete(args.key).then(()=>{ - createStore().flush(); - exec.resolve({} as ESObject); - }, (error: Error)=>{ - exec.reject(error.message); - }); - }) as RemoveStorage; - const clearStorageSync = defineSyncApi<void>(API_CLEAR_STORAGE_SYNC, ()=>{ - createStore().clearSync(); - createStore().flush(); - }) as ClearStorageSync; - const clearStorage = defineAsyncApi<ClearStorageOptions, ClearStorageSuccess>(API_CLEAR_STORAGE, (args: ClearStorageOptions, exec: ApiExecutor<ClearStorageSuccess>)=>{ - createStore().clear().then(()=>{ - createStore().flush(); - exec.resolve({} as ESObject); - }, (error: Error)=>{ - exec.reject(error.message); - }); - }) as ClearStorage; - const getStorageInfoSync = defineSyncApi<GetStorageInfoSuccess>(API_GET_STORAGE_INFO_SYNC, ()=>{ - const allData = createStore().getAllSync(); - return { - keys: Object.keys(allData), - currentSize: 0, - limitSize: 0 - } as GetStorageInfoSuccess; - }) as GetStorageInfoSync; - const getStorageInfo = defineAsyncApi<GetStorageInfoOptions, GetStorageInfoSuccess>(API_GET_STORAGE_INFO, (args: GetStorageInfoOptions, exec: ApiExecutor<GetStorageInfoSuccess>)=>{ - createStore().getAll().then((allData)=>{ - exec.resolve({ - keys: Object.keys(allData), - currentSize: 0, - limitSize: 0 - } as GetStorageInfoSuccess); - }); - }) as GetStorageInfo; - const API_SHOW_TAB_BAR_RED_DOT = 'showTabBarRedDot'; - const API_HIDE_TAB_BAR_RED_DOT = 'hideTabBarRedDot'; - const API_SET_TAB_BAR_BADGE = 'setTabBarBadge'; - const API_REMOVE_TAB_BAR_BADGE = 'removeTabBarBadge'; - const API_SET_TAB_BAR_ITEM = 'setTabBarItem'; - const API_SET_TAB_BAR_STYLE = 'setTabBarStyle'; - const API_SHOW_TAB_BAR = 'showTabBar'; - const API_HIDE_TAB_BAR = 'hideTabBar'; - const ShowTabBarRedDotApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'index', - { - type: 'number', - required: true - } - ] - ]); - const HideTabBarRedDotApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'index', - { - type: 'number', - required: true - } - ] - ]); - const SetTabBarBadgeApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'index', - { - type: 'number', - required: true - } - ], - [ - 'text', - { - type: 'string', - required: true - } - ] - ]); - const RemoveTabBarBadgeApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'index', - { - type: 'number', - required: true - } - ] - ]); - const SetTabBarItemApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'index', - { - type: 'number', - required: true - } - ], - [ - 'text', - { - type: 'string', - required: false - } - ], - [ - 'iconPath', - { - type: 'string', - required: false - } - ], - [ - 'selectedIconPath', - { - type: 'string', - required: false - } - ], - [ - 'pagePath', - { - type: 'string', - required: false - } - ], - [ - 'visible', - { - type: 'boolean', - required: false - } - ], - [ - 'iconfont', - { - type: 'object', - required: false - } - ], - [ - 'visible', - { - type: 'boolean', - required: false - } - ] - ]); - const SetTabBarStyleApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'color', - { - type: 'string', - required: false - } - ], - [ - 'selectedColor', - { - type: 'string', - required: false - } - ], - [ - 'backgroundColor', - { - type: 'string', - required: false - } - ], - [ - 'backgroundImage', - { - type: 'string', - required: false - } - ], - [ - 'backgroundRepeat', - { - type: 'string', - required: false - } - ], - [ - 'borderStyle', - { - type: 'string', - required: false - } - ], - [ - 'borderColor', - { - type: 'string', - required: false - } - ] - ]); - const setTabBarBadge = defineAsyncApi<SetTabBarBadgeOptions, SetTabBarBadgeSuccess>(API_SET_TAB_BAR_BADGE, (options: SetTabBarBadgeOptions, exec: ApiExecutor<SetTabBarBadgeSuccess>)=>{ - const tabBar = getTabBar() as ITabBar; - if (tabBar === null) { - exec.reject('tabBar is not exist'); - return; - } - tabBar!.setTabBarBadge(options); - exec.resolve(); - }, SetTabBarBadgeApiProtocol); - const removeTabBarBadge = defineAsyncApi<RemoveTabBarBadgeOptions, RemoveTabBarBadgeSuccess>(API_REMOVE_TAB_BAR_BADGE, (options: RemoveTabBarBadgeOptions, exec: ApiExecutor<RemoveTabBarBadgeSuccess>)=>{ - const tabBar = getTabBar() as ITabBar; - if (tabBar == null) { - exec.reject('tabBar is not exist'); - return; - } - tabBar!.removeTabBarBadge(options); - exec.resolve(); - }, RemoveTabBarBadgeApiProtocol); - const setTabBarItem = defineAsyncApi<SetTabBarItemOptions, SetTabBarItemSuccess>(API_SET_TAB_BAR_ITEM, (options: SetTabBarItemOptions, res: ApiExecutor<SetTabBarItemSuccess>)=>{ - const tabBar = getTabBar() as ITabBar; - if (tabBar == null) { - res.reject('tabBar is not exist'); - return; - } - tabBar!.setTabBarItem(options); - res.resolve(); - }, SetTabBarItemApiProtocol); - const setTabBarStyle = defineAsyncApi<SetTabBarStyleOptions, SetTabBarStyleSuccess>(API_SET_TAB_BAR_STYLE, (options: SetTabBarStyleOptions, exec: ApiExecutor<SetTabBarStyleSuccess>)=>{ - const tabBar = getTabBar() as ITabBar; - if (tabBar == null) { - exec.reject('tabBar is not exist'); - return; - } - tabBar!.setTabBarStyle(options); - exec.resolve(); - }, SetTabBarStyleApiProtocol); - const hideTabBar = defineAsyncApi<HideTabBarOptions, HideTabBarSuccess>(API_HIDE_TAB_BAR, (options: HideTabBarOptions | null, exec: ApiExecutor<HideTabBarSuccess>)=>{ - const tabBar = getTabBar() as ITabBar; - if (tabBar == null) { - exec.reject('tabBar is not exist'); - return; - } - tabBar!.hideTabBar(); - exec.resolve(); - }); - const showTabBar = defineAsyncApi<ShowTabBarOptions, ShowTabBarSuccess>(API_SHOW_TAB_BAR, (options: ShowTabBarOptions, exec: ApiExecutor<ShowTabBarSuccess>)=>{ - const tabBar = getTabBar() as ITabBar; - if (tabBar == null) { - exec.reject('tabBar is not exist'); - return; - } - tabBar!.showTabBar(); - exec.resolve(); - }); - const showTabBarRedDot = defineAsyncApi<ShowTabBarRedDotOptions, ShowTabBarRedDotSuccess>(API_SHOW_TAB_BAR_RED_DOT, (options: ShowTabBarRedDotOptions, exec: ApiExecutor<ShowTabBarRedDotSuccess>)=>{ - const tabBar = getTabBar() as ITabBar; - if (tabBar == null) { - exec.reject('tabBar is not exist'); - return; - } - tabBar!.showTabBarRedDot(options); - exec.resolve(); - }, ShowTabBarRedDotApiProtocol); - const hideTabBarRedDot = defineAsyncApi<HideTabBarRedDotOptions, HideTabBarRedDotSuccess>(API_HIDE_TAB_BAR_RED_DOT, (options: HideTabBarRedDotOptions, exec: ApiExecutor<HideTabBarRedDotSuccess>)=>{ - const tabBar = getTabBar() as ITabBar; - if (tabBar == null) { - exec.reject('tabBar is not exist'); - return; - } - tabBar!.hideTabBarRedDot(options); - exec.resolve(); - }, HideTabBarRedDotApiProtocol); - const API_CONNECT_SOCKET = 'connectSocket'; - const ConnectSocketApiProtocol = new Map<string, ProtocolOptions>([ - [ - 'url', - { - type: 'string', - required: true - } - ], - [ - 'header', - { - type: 'boolean', - required: false - } - ], - [ - 'protocols', - { - type: 'string[]', - required: false - } - ] - ]); - const ConnectSocketApiOptions: ApiOptions<ConnectSocketOptions> = { - formatArgs: new Map<string, Function>([ - [ - 'url', - (url: string, params: ConnectSocketOptions)=>{ - if (url == null) { - throw new Error('url is required'); - } - } - ] - ]) - }; - const API_SEND_SOCKET_MESSAGE = 'sendSocketMessage'; - const API_CLOSE_SOCKET = 'closeSocket'; - const tryExec = (fn: Function | null | undefined, ...args: Object[])=>{ - if (!fn) { - return; - } - try { - fn(...args); - } catch (error) { - console.error(error); - } - }; - const GlobalWebsocketEmitter = new Emitter5() as IUniWebsocketEmitter; - const destroySocketTaskEmitter = (emitter: IUniWebsocketEmitter)=>{ - emitter.off('message'); - emitter.off('open'); - emitter.off('error'); - emitter.off('close'); - }; - class SocketTask1 implements SocketTask { - _destroy: Function; - private _ws: webSocket.WebSocket; - private _emitter: IUniWebsocketEmitter = new Emitter5() as IUniWebsocketEmitter; - constructor(ws: webSocket.WebSocket){ - const mp = getCurrentMP4() as UniWebsocketMP; - this._ws = ws; - this._ws.on('message', (_, data)=>{ - const message = { - data - } as OnSocketMessageCallbackResult; - this._emitter.emit('message', message); - const socketTasks = getSocketTasks(mp.id); - if (this === socketTasks[0]) { - GlobalWebsocketEmitter.emit('message', message); - } - }); - this._ws.on('open', (_, data)=>{ - this._emitter.emit('open', data); - const socketTasks = getSocketTasks(mp.id); - if (this === socketTasks[0]) { - GlobalWebsocketEmitter.emit('open', data); - } - }); - this._ws.on('error', (error)=>{ - const message = { - errMsg: error.message - } as OnSocketErrorCallbackResult; - this._emitter.emit('error', message); - const socketTasks = getSocketTasks(mp.id); - if (this === socketTasks[0]) { - GlobalWebsocketEmitter.emit('error', message); - } - }); - this._ws.on('close', (_, data)=>{ - this._emitter.emit('close', data); - const socketTasks = getSocketTasks(mp.id); - if (this === socketTasks[0]) { - GlobalWebsocketEmitter.emit('close', data); - } - const index = socketTasks.indexOf(this); - if (index >= 0) { - socketTasks.splice(index, 1); - } - }); - this._destroy = ()=>{ - destroySocketTaskEmitter(this._emitter); - this.close(); - }; - } - send(options: SendSocketMessageOptions) { - this._ws.send(options.data as string | ArrayBuffer).then((success: boolean)=>{ - if (success) { - tryExec(options.success, {} as GeneralCallbackResult); - } else { - tryExec(options.fail, new UniError('send message failed')); - } - }, (err: Error)=>{ - tryExec(options.fail, new UniError(err.message)); - }); - } - close(options: CloseSocketOptions | null = null) { - this._ws.close({ - code: typeof options?.code === 'number' ? options.code : 1000, - reason: typeof options?.reason === 'string' ? options.reason : '' - } as webSocket.WebSocketCloseOptions).then((success: boolean)=>{ - if (success) { - tryExec(options?.success, {} as GeneralCallbackResult); - } else { - tryExec(options?.fail, new UniError('close socket failed')); - } - }, (err: Error)=>{ - tryExec(options?.fail, new UniError(err.message)); - }); - } - onMessage(callback: Function) { - this._emitter.on('message', callback); - } - onOpen(callback: Function) { - this._emitter.on('open', callback); - } - onError(callback: Function) { - this._emitter.on('error', callback); - } - onClose(callback: Function) { - this._emitter.on('close', callback); - destroySocketTaskEmitter(this._emitter); - } - } - const socketTasksMap: Map<string, SocketTask1[]> = new Map(); - const addSocketTask = (task: SocketTask1)=>{ - const mp = getCurrentMP4() as UniWebsocketMP; - mp.on('beforeClose', task._destroy); - task.onClose(()=>{ - mp.off('beforeClose', task._destroy); - }); - const id = mp.id; - if (!socketTasksMap.has(id)) { - socketTasksMap.set(id, []); - } - const socketTasks = socketTasksMap.get(id) as SocketTask1[]; - socketTasks.push(task); - }; - const getSocketTasks = (id: string | null = null)=>{ - if (!id) { - const mp = getCurrentMP4() as UniWebsocketMP; - id = mp.id; - } - return socketTasksMap.get(id) || []; - }; - const connectSocket = defineTaskApi<ConnectSocketOptions, ConnectSocketSuccess, SocketTask>(API_CONNECT_SOCKET, (args: ConnectSocketOptions, exec: ApiExecutor<ConnectSocketSuccess>)=>{ - const ws = webSocket.createWebSocket(); - const mp = getCurrentMP4() as UniWebsocketMP; - ws.connect(args.url, { - header: args.header ? args.header as Object : undefined, - protocol: args.protocols ? Array.isArray(args.protocols) ? args.protocols.join(',') : args.protocols : '' - } as webSocket.WebSocketRequestOptions); - const task = new SocketTask1(ws); - mp.on('beforeClose', task._destroy); - task.onClose(()=>{ - mp.off('beforeClose', task._destroy); - }); - addSocketTask(task); - return task; - }, ConnectSocketApiProtocol, ConnectSocketApiOptions) as ConnectSocket; - const onSocketMessage: OnSocketMessage = (callback: Function)=>{ - GlobalWebsocketEmitter.on('message', callback); - }; - const onSocketOpen: OnSocketOpen = (callback: Function)=>{ - GlobalWebsocketEmitter.on('open', callback); - }; - const onSocketError: OnSocketError = (callback: Function)=>{ - GlobalWebsocketEmitter.on('error', callback); - }; - const onSocketClose: OnSocketClose = (callback: Function)=>{ - GlobalWebsocketEmitter.on('close', callback); - }; - const sendSocketMessage = defineAsyncApi<SendSocketMessageOptions, GeneralCallbackResult>(API_SEND_SOCKET_MESSAGE, (args: SendSocketMessageOptions, exec: ApiExecutor<GeneralCallbackResult>)=>{ - const socketTasks = getSocketTasks(); - const task = socketTasks[0]; - if (task) { - task.send({ - data: args.data, - success (res) { - exec.resolve(res); - }, - fail (err) { - exec.reject('sendSocketMessage:fail'); - } - } as SendSocketMessageOptions); - } else { - exec.reject('WebSocket is not connected'); - } - }) as SendSocketMessage; - const closeSocket = defineAsyncApi<CloseSocketOptions, GeneralCallbackResult>(API_CLOSE_SOCKET, (args: CloseSocketOptions, exec: ApiExecutor<GeneralCallbackResult>)=>{ - const socketTasks = getSocketTasks(); - const task = socketTasks[0]; - if (task) { - task.close({ - code: args.code, - reason: args.reason, - success (res) { - exec.resolve(res); - }, - fail (err) { - exec.reject('closeSocket:fail'); - } - } as CloseSocketOptions); - } else { - exec.reject('WebSocket is not connected'); - } - }) as CloseSocket; - return { - login, - getUserInfo, - requestPayment, - addPhoneContact, - startSoterAuthentication, - checkIsSupportSoterAuthentication, - checkIsSoterEnrolledInDevice, - getClipboardData, - setClipboardData, - createInnerAudioContext, - $on, - $once, - $off, - $emit, - exit, - saveFile, - getSavedFileList, - getSavedFileInfo, - removeSavedFile, - getFileInfo, - getAppAuthorizeSetting, - getAppBaseInfo, - getBackgroundAudioManager, - getDeviceInfo, - getNetworkType, - onNetworkStatusChange, - offNetworkStatusChange, - getProvider, - getProviderSync, - getRecorderManager, - getSystemInfo, - getSystemInfoSync, - getWindowInfo, - getSystemSetting, - hideKeyboard, - makePhoneCall, - chooseImage, - previewImage, - closePreviewImage, - getImageInfo, - saveImageToPhotosAlbum, - compressImage, - chooseVideo, - saveVideoToPhotosAlbum, - getVideoInfo, - chooseFile, - chooseMedia, - request, - uploadFile, - downloadFile, - openAppAuthorizeSetting, - openDocument, - showToast, - hideToast, - showLoading, - hideLoading, - showModal, - showActionSheet, - startPullDownRefresh, - stopPullDownRefresh, - rpx2px, - scanCode, - shareWithSystem, - setStorage, - setStorageSync, - getStorage, - getStorageSync, - getStorageInfo, - getStorageInfoSync, - removeStorage, - removeStorageSync, - clearStorage, - clearStorageSync, - showTabBarRedDot, - hideTabBarRedDot, - setTabBarBadge, - removeTabBarBadge, - setTabBarItem, - setTabBarStyle, - showTabBar, - hideTabBar, - connectSocket, - sendSocketMessage, - closeSocket, - onSocketOpen, - onSocketMessage, - onSocketClose, - onSocketError - } as UniExtApi; -} diff --git a/packages/uni-app-harmony/dist/uni.compiler.js b/packages/uni-app-harmony/dist/uni.compiler.js deleted file mode 100644 index 2588800a317..00000000000 --- a/packages/uni-app-harmony/dist/uni.compiler.js +++ /dev/null @@ -1,303 +0,0 @@ -'use strict'; - -var appVite = require('@dcloudio/uni-app-vite'); -var path = require('path'); -var fs = require('fs-extra'); -var uniCliShared = require('@dcloudio/uni-cli-shared'); - -function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } - -var appVite__default = /*#__PURE__*/_interopDefault(appVite); -var path__default = /*#__PURE__*/_interopDefault(path); -var fs__default = /*#__PURE__*/_interopDefault(fs); - -var StandaloneExtApis = [ - { - type: "extapi", - plugin: "uni-facialRecognitionVerify", - apis: [ - "startFacialRecognitionVerify", - "getFacialRecognitionMetaInfo" - ] - }, - { - type: "provider", - plugin: "uni-oauth-huawei", - provider: "huawei", - service: "oauth" - }, - { - type: "provider", - plugin: "uni-payment-alipay", - provider: "alipay", - service: "payment" - } -]; - -const commondGlobals = { - vue: 'Vue', - '@vue/shared': 'uni.VueShared', -}; -const harmonyGlobals = [ - /^@ohos\./, - /^@kit\./, - /^@hms\./, - /^@arkts\./, - /^@system\./, - '@ohos/hypium', - '@ohos/hamock', -]; -function isHarmoneyGlobal(id) { - return harmonyGlobals.some((harmonyGlobal) => typeof harmonyGlobal === 'string' - ? harmonyGlobal === id - : harmonyGlobal.test(id)); -} -function generateHarmonyImportSpecifier(id) { - return id.replace(/([@\/\.])/g, function (_, $1) { - switch ($1) { - case '.': - return '_'; - case '/': - return '__'; - default: - return ''; - } - }); -} -function generateHarmonyImportExternalCode(hamonyPackageNames) { - return hamonyPackageNames - .filter((hamonyPackageName) => isHarmoneyGlobal(hamonyPackageName)) - .map((hamonyPackageName) => `import ${generateHarmonyImportSpecifier(hamonyPackageName)} from '${hamonyPackageName}';`) - .join(''); -} -function uniAppHarmonyPlugin() { - return { - name: 'uni:app-harmony', - apply: 'build', - config() { - return { - build: { - rollupOptions: { - external: [...Object.keys(commondGlobals), ...harmonyGlobals], - output: { - globals: function (id) { - return (commondGlobals[id] || - (isHarmoneyGlobal(id) - ? generateHarmonyImportSpecifier(id) - : '')); - }, - }, - }, - }, - }; - }, - async generateBundle(_, bundle) { - genAppHarmonyIndex(process.env.UNI_INPUT_DIR, uniCliShared.getCurrentCompiledUTSPlugins()); - for (const key in bundle) { - const serviceBundle = bundle[key]; - if (serviceBundle.code) { - serviceBundle.code = - generateHarmonyImportExternalCode(serviceBundle.imports) + - serviceBundle.code; - } - } - }, - async writeBundle() { - if (!uniCliShared.isNormalCompileTarget()) { - return; - } - // x 上暂时编译所有uni ext api,不管代码里是否调用了 - await uniCliShared.buildUniExtApis(); - }, - }; -} -// 仅存放重命名的provider service -const SupportedProviderService = { - oauth: {}, - payment: { - weixin: 'wxpay', - }, -}; -/** - * 获取manifest.json中勾选的provider - */ -function getRelatedProviders(inputDir) { - const manifest = uniCliShared.parseManifestJsonOnce(inputDir); - const providers = []; - const sdkConfigs = manifest?.['app-plus']?.distribute?.sdkConfigs; - if (!sdkConfigs) { - return providers; - } - for (const service in sdkConfigs) { - if (Object.prototype.hasOwnProperty.call(sdkConfigs, service)) { - const ProviderNameMap = SupportedProviderService[service]; - if (!ProviderNameMap) { - continue; - } - const relatedProviders = sdkConfigs[service]; - for (const name in relatedProviders) { - if (Object.prototype.hasOwnProperty.call(relatedProviders, name)) { - const providerName = ProviderNameMap[name]; - providers.push({ - service, - name: providerName || name, - }); - } - } - } - } - return providers; -} -const SupportedModules = { - FacialRecognitionVerify: 'uni-facialRecognitionVerify', -}; -// 获取uni_modules中的相关模块 -function getRelatedModules(inputDir) { - const manifest = uniCliShared.parseManifestJsonOnce(inputDir); - const modules = []; - const manifestModules = manifest?.['app-plus']?.modules; - if (!manifestModules) { - return modules; - } - for (const manifestModule in manifestModules) { - if (Object.prototype.hasOwnProperty.call(manifestModules, manifestModule)) { - const moduleName = SupportedModules[manifestModule]; - if (!moduleName) { - continue; - } - modules.push(moduleName); - } - } - return modules; -} -function genAppHarmonyIndex(inputDir, utsPlugins) { - const uniModulesDir = path__default.default.resolve(inputDir, 'uni_modules'); - const importCodes = []; - const extApiCodes = []; - const registerCodes = []; - utsPlugins.forEach((plugin) => { - const injects = uniCliShared.parseUniExtApi(path__default.default.resolve(uniModulesDir, plugin), plugin, true, 'app-harmony', 'arkts'); - if (injects) { - Object.keys(injects).forEach((key) => { - const inject = injects[key]; - if (Array.isArray(inject) && inject.length > 1) { - const apiName = inject[1]; - importCodes.push(`import { ${inject[1]} } from '@uni_modules/${plugin}'`); - extApiCodes.push(`uni.${apiName} = ${apiName}`); - } - }); - } - else { - const ident = uniCliShared.camelize(plugin); - importCodes.push(`import * as ${ident} from '@uni_modules/${plugin}'`); - registerCodes.push(`uni.registerUTSPlugin('uni_modules/${plugin}', ${ident})`); - } - }); - const relatedProviders = getRelatedProviders(inputDir); - const relatedModules = getRelatedModules(inputDir); - const projectDeps = []; - relatedModules.forEach((module) => { - if (utsPlugins.has(module)) { - projectDeps.push({ - moduleSpecifier: `@uni_modules/${module}`, - plugin: module, - source: 'local', - }); - } - else { - projectDeps.push({ - moduleSpecifier: `@uni_modules/${module}`, - plugin: module, - source: 'ohpm', - }); - } - importCodes.push(`import '@uni_modules/${module}'`); - }); - const importProviderCodes = []; - const registerProviderCodes = []; - const providers = uniCliShared.getUniExtApiProviderRegisters(); - const allProviders = providers.map((provider) => { - return { - service: provider.service, - name: provider.name, - moduleSpecifier: `@uni_modules/${provider.plugin}`, - plugin: provider.plugin, - source: 'local', - }; - }); - StandaloneExtApis.filter((item) => { - return item.type === 'provider'; - }).forEach((extapi) => { - if (allProviders.find((item) => item.plugin === extapi.plugin)) { - return; - } - const [_, service, provider] = extapi.plugin.split('-'); - allProviders.push({ - service, - name: provider, - moduleSpecifier: `@uni_modules/${extapi.plugin}`, - plugin: extapi.plugin, - source: 'ohpm', - }); - }); - relatedProviders.forEach((relatedProvider) => { - const provider = allProviders.find((item) => item.service === relatedProvider.service && - item.name === relatedProvider.name); - if (!provider) { - return; - } - projectDeps.push({ - moduleSpecifier: provider.moduleSpecifier, - plugin: provider.plugin, - source: provider.source, - }); - const className = uniCliShared.formatExtApiProviderName(provider.service, provider.name); - importProviderCodes.push(`import { ${className} } from '${provider.moduleSpecifier}'`); - registerProviderCodes.push(`registerUniProvider('${provider.service}', '${provider.name}', new ${className}())`); - }); - if (importProviderCodes.length) { - importProviderCodes.unshift(`import { registerUniProvider, uni } from '@dcloudio/uni-app-runtime'`); - importCodes.push(...importProviderCodes); - extApiCodes.push(...registerProviderCodes); - } - const uniModuleEntryDir = uniCliShared.resolveUTSCompiler().resolveAppHarmonyUniModulesEntryDir(); - fs__default.default.outputFileSync(path__default.default.resolve(uniModuleEntryDir, 'index.generated.ets'), `// This file is automatically generated by uni-app. -// Do not modify this file -- YOUR CHANGES WILL BE ERASED! -${importCodes.join('\n')} - -export function initUniModules() { - initUniExtApi() - ${registerCodes.join('\n ')} -} - -function initUniExtApi() { - ${extApiCodes.join('\n ')} -} -`); - const dependencies = {}; - const modules = []; - projectDeps.forEach((dep) => { - // TODO 依赖版本绑定编译器版本 - if (dep.source === 'local') { - const depPath = './uni_modules/' + dep.plugin; - dependencies[dep.moduleSpecifier] = depPath; - modules.push({ - name: dep.moduleSpecifier - .replace(/@/g, '') - .replace(/\//g, '__') - .replace(/-/g, '_'), - srcPath: depPath, - }); - } - else { - dependencies[dep.moduleSpecifier] = '*'; - } - }); - // TODO 写入到用户项目的oh-package.json5、build-profile.json5内 - fs__default.default.outputJSONSync(path__default.default.resolve(uniModuleEntryDir, 'oh-package.json5'), { dependencies }, { spaces: 2 }); - fs__default.default.outputJSONSync(path__default.default.resolve(uniModuleEntryDir, 'build-profile.json5'), { modules }, { spaces: 2 }); -} - -var index = [appVite__default.default, uniAppHarmonyPlugin]; - -module.exports = index; diff --git a/packages/uni-app-harmony/dist/uni.runtime.esm.js b/packages/uni-app-harmony/dist/uni.runtime.esm.js deleted file mode 100644 index c36022480db..00000000000 --- a/packages/uni-app-harmony/dist/uni.runtime.esm.js +++ /dev/null @@ -1,14114 +0,0 @@ -import { ref, createVNode, render, injectHook, queuePostFlushCb, getCurrentInstance, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, createCommentVNode } from 'vue'; - -/* - * base64-arraybuffer - * https://github.com/niklasvh/base64-arraybuffer - * - * Copyright (c) 2012 Niklas von Hertzen - * Licensed under the MIT license. - */ - - -var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - -// Use a lookup table to find the index. -var lookup = /*#__PURE__*/ (function () { - const lookup = new Uint8Array(256); - for (var i = 0; i < chars.length; i++) { - lookup[chars.charCodeAt(i)] = i; - } - return lookup -})(); - -function encode$2(arraybuffer) { - var bytes = new Uint8Array(arraybuffer), - i, - len = bytes.length, - base64 = ''; - - for (i = 0; i < len; i += 3) { - base64 += chars[bytes[i] >> 2]; - base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)]; - base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)]; - base64 += chars[bytes[i + 2] & 63]; - } - - if (len % 3 === 2) { - base64 = base64.substring(0, base64.length - 1) + '='; - } else if (len % 3 === 1) { - base64 = base64.substring(0, base64.length - 2) + '=='; - } - - return base64 -} - -function decode$1(base64) { - var bufferLength = base64.length * 0.75, - len = base64.length, - i, - p = 0, - encoded1, - encoded2, - encoded3, - encoded4; - - if (base64[base64.length - 1] === '=') { - bufferLength--; - if (base64[base64.length - 2] === '=') { - bufferLength--; - } - } - - var arraybuffer = new ArrayBuffer(bufferLength), - bytes = new Uint8Array(arraybuffer); - - for (i = 0; i < len; i += 4) { - encoded1 = lookup[base64.charCodeAt(i)]; - encoded2 = lookup[base64.charCodeAt(i + 1)]; - encoded3 = lookup[base64.charCodeAt(i + 2)]; - encoded4 = lookup[base64.charCodeAt(i + 3)]; - - bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); - bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); - bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); - } - - return arraybuffer -} - -/** -* @vue/shared v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/ -function makeMap(str, expectsLowerCase) { - const set = new Set(str.split(",")); - return (val) => set.has(val); -} -const extend = Object.assign; -const remove = (arr, el) => { - const i = arr.indexOf(el); - if (i > -1) { - arr.splice(i, 1); - } -}; -const hasOwnProperty$1 = Object.prototype.hasOwnProperty; -const hasOwn$1 = (val, key) => hasOwnProperty$1.call(val, key); -const isArray = Array.isArray; -const isFunction = (val) => typeof val === "function"; -const isString = (val) => typeof val === "string"; -const isObject$1 = (val) => val !== null && typeof val === "object"; -const isPromise = (val) => { - return (isObject$1(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch); -}; -const objectToString = Object.prototype.toString; -const toTypeString = (value) => objectToString.call(value); -const toRawType = (value) => { - return toTypeString(value).slice(8, -1); -}; -const isPlainObject = (val) => toTypeString(val) === "[object Object]"; -const cacheStringFunction$1 = (fn) => { - const cache = /* @__PURE__ */ Object.create(null); - return (str) => { - const hit = cache[str]; - return hit || (cache[str] = fn(str)); - }; -}; -const camelizeRE = /-(\w)/g; -const camelize = cacheStringFunction$1((str) => { - return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : ""); -}); -const hyphenateRE = /\B([A-Z])/g; -const hyphenate = cacheStringFunction$1( - (str) => str.replace(hyphenateRE, "-$1").toLowerCase() -); -const capitalize = cacheStringFunction$1((str) => { - return str.charAt(0).toUpperCase() + str.slice(1); -}); - -function validateProtocolFail(name, msg) { - console.warn(`${name}: ${msg}`); -} -function validateProtocol(name, data, protocol, onFail) { - if (!onFail) { - onFail = validateProtocolFail; - } - for (const key in protocol) { - const errMsg = validateProp(key, data[key], protocol[key], !hasOwn$1(data, key)); - if (isString(errMsg)) { - onFail(name, errMsg); - } - } -} -function validateProtocols(name, args, protocol, onFail) { - if (!protocol) { - return; - } - if (!isArray(protocol)) { - return validateProtocol(name, args[0] || Object.create(null), protocol, onFail); - } - const len = protocol.length; - const argsLen = args.length; - for (let i = 0; i < len; i++) { - const opts = protocol[i]; - const data = Object.create(null); - if (argsLen > i) { - data[opts.name] = args[i]; - } - validateProtocol(name, data, { [opts.name]: opts }, onFail); - } -} -function validateProp(name, value, prop, isAbsent) { - if (!isPlainObject(prop)) { - prop = { type: prop }; - } - const { type, required, validator } = prop; - // required! - if (required && isAbsent) { - return 'Missing required args: "' + name + '"'; - } - // missing but optional - if (value == null && !required) { - return; - } - // type check - if (type != null) { - let isValid = false; - const types = isArray(type) ? type : [type]; - const expectedTypes = []; - // value is valid as long as one of the specified types match - for (let i = 0; i < types.length && !isValid; i++) { - const { valid, expectedType } = assertType(value, types[i]); - expectedTypes.push(expectedType || ''); - isValid = valid; - } - if (!isValid) { - return getInvalidTypeMessage(name, value, expectedTypes); - } - } - // custom validator - if (validator) { - return validator(value); - } -} -const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol'); -function assertType(value, type) { - let valid; - const expectedType = getType$1(type); - if (isSimpleType(expectedType)) { - const t = typeof value; - valid = t === expectedType.toLowerCase(); - // for primitive wrapper objects - if (!valid && t === 'object') { - valid = value instanceof type; - } - } - else if (expectedType === 'Object') { - valid = isObject$1(value); - } - else if (expectedType === 'Array') { - valid = isArray(value); - } - else { - { - // App平台ArrayBuffer等参数跨实例传输,无法通过 instanceof 识别 - valid = value instanceof type || toRawType(value) === getType$1(type); - } - } - return { - valid, - expectedType, - }; -} -function getInvalidTypeMessage(name, value, expectedTypes) { - let message = `Invalid args: type check failed for args "${name}".` + - ` Expected ${expectedTypes.map(capitalize).join(', ')}`; - const expectedType = expectedTypes[0]; - const receivedType = toRawType(value); - const expectedValue = styleValue(value, expectedType); - const receivedValue = styleValue(value, receivedType); - // check if we need to specify expected value - if (expectedTypes.length === 1 && - isExplicable(expectedType) && - !isBoolean(expectedType, receivedType)) { - message += ` with value ${expectedValue}`; - } - message += `, got ${receivedType} `; - // check if we need to specify received value - if (isExplicable(receivedType)) { - message += `with value ${receivedValue}.`; - } - return message; -} -function getType$1(ctor) { - const match = ctor && ctor.toString().match(/^\s*function (\w+)/); - return match ? match[1] : ''; -} -function styleValue(value, type) { - if (type === 'String') { - return `"${value}"`; - } - else if (type === 'Number') { - return `${Number(value)}`; - } - else { - return `${value}`; - } -} -function isExplicable(type) { - const explicitTypes = ['string', 'number', 'boolean']; - return explicitTypes.some((elem) => type.toLowerCase() === elem); -} -function isBoolean(...args) { - return args.some((elem) => elem.toLowerCase() === 'boolean'); -} - -function tryCatch(fn) { - return function () { - try { - return fn.apply(fn, arguments); - } - catch (e) { - // TODO - console.error(e); - } - }; -} - -let invokeCallbackId = 1; -const invokeCallbacks = {}; -function addInvokeCallback(id, name, callback, keepAlive = false) { - invokeCallbacks[id] = { - name, - keepAlive, - callback, - }; - return id; -} -// onNativeEventReceive((event,data)=>{}) 需要两个参数,目前写死最多两个参数 -function invokeCallback(id, res, extras) { - if (typeof id === 'number') { - const opts = invokeCallbacks[id]; - if (opts) { - if (!opts.keepAlive) { - delete invokeCallbacks[id]; - } - return opts.callback(res, extras); - } - } - return res; -} -function findInvokeCallbackByName(name) { - for (const key in invokeCallbacks) { - if (invokeCallbacks[key].name === name) { - return true; - } - } - return false; -} -function removeKeepAliveApiCallback(name, callback) { - for (const key in invokeCallbacks) { - const item = invokeCallbacks[key]; - if (item.callback === callback && item.name === name) { - delete invokeCallbacks[key]; - } - } -} -function offKeepAliveApiCallback(name) { - UniServiceJSBridge.off('api.' + name); -} -function onKeepAliveApiCallback(name) { - UniServiceJSBridge.on('api.' + name, (res) => { - for (const key in invokeCallbacks) { - const opts = invokeCallbacks[key]; - if (opts.name === name) { - opts.callback(res); - } - } - }); -} -function createKeepAliveApiCallback(name, callback) { - return addInvokeCallback(invokeCallbackId++, name, callback, true); -} -const API_SUCCESS = 'success'; -const API_FAIL = 'fail'; -const API_COMPLETE = 'complete'; -function getApiCallbacks(args) { - const apiCallbacks = {}; - for (const name in args) { - const fn = args[name]; - if (isFunction(fn)) { - apiCallbacks[name] = tryCatch(fn); - delete args[name]; - } - } - return apiCallbacks; -} -function normalizeErrMsg(errMsg, name) { - if (!errMsg || errMsg.indexOf(':fail') === -1) { - return name + ':ok'; - } - return name + errMsg.substring(errMsg.indexOf(':fail')); -} -function createAsyncApiCallback(name, args = {}, { beforeAll, beforeSuccess } = {}) { - if (!isPlainObject(args)) { - args = {}; - } - const { success, fail, complete } = getApiCallbacks(args); - const hasSuccess = isFunction(success); - const hasFail = isFunction(fail); - const hasComplete = isFunction(complete); - const callbackId = invokeCallbackId++; - addInvokeCallback(callbackId, name, (res) => { - res = res || {}; - res.errMsg = normalizeErrMsg(res.errMsg, name); - isFunction(beforeAll) && beforeAll(res); - if (res.errMsg === name + ':ok') { - isFunction(beforeSuccess) && beforeSuccess(res, args); - hasSuccess && success(res); - } - else { - hasFail && fail(res); - } - hasComplete && complete(res); - }); - return callbackId; -} - -const HOOK_SUCCESS = 'success'; -const HOOK_FAIL = 'fail'; -const HOOK_COMPLETE = 'complete'; -const globalInterceptors = {}; -const scopedInterceptors = {}; -function wrapperHook(hook, params) { - return function (data) { - return hook(data, params) || data; - }; -} -function queue(hooks, data, params) { - let promise = false; - for (let i = 0; i < hooks.length; i++) { - const hook = hooks[i]; - if (promise) { - promise = Promise.resolve(wrapperHook(hook, params)); - } - else { - const res = hook(data, params); - if (isPromise(res)) { - promise = Promise.resolve(res); - } - if (res === false) { - return { - then() { }, - catch() { }, - }; - } - } - } - return (promise || { - then(callback) { - return callback(data); - }, - catch() { }, - }); -} -function wrapperOptions(interceptors, options = {}) { - [HOOK_SUCCESS, HOOK_FAIL, HOOK_COMPLETE].forEach((name) => { - const hooks = interceptors[name]; - if (!isArray(hooks)) { - return; - } - const oldCallback = options[name]; - options[name] = function callbackInterceptor(res) { - queue(hooks, res, options).then((res) => { - return (isFunction(oldCallback) && oldCallback(res)) || res; - }); - }; - }); - return options; -} -function wrapperReturnValue(method, returnValue) { - const returnValueHooks = []; - if (isArray(globalInterceptors.returnValue)) { - returnValueHooks.push(...globalInterceptors.returnValue); - } - const interceptor = scopedInterceptors[method]; - if (interceptor && isArray(interceptor.returnValue)) { - returnValueHooks.push(...interceptor.returnValue); - } - returnValueHooks.forEach((hook) => { - returnValue = hook(returnValue) || returnValue; - }); - return returnValue; -} -function getApiInterceptorHooks(method) { - const interceptor = Object.create(null); - Object.keys(globalInterceptors).forEach((hook) => { - if (hook !== 'returnValue') { - interceptor[hook] = globalInterceptors[hook].slice(); - } - }); - const scopedInterceptor = scopedInterceptors[method]; - if (scopedInterceptor) { - Object.keys(scopedInterceptor).forEach((hook) => { - if (hook !== 'returnValue') { - interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]); - } - }); - } - return interceptor; -} -function invokeApi(method, api, options, params) { - const interceptor = getApiInterceptorHooks(method); - if (interceptor && Object.keys(interceptor).length) { - if (isArray(interceptor.invoke)) { - const res = queue(interceptor.invoke, options); - return res.then((options) => { - // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor - return api(wrapperOptions(getApiInterceptorHooks(method), options), ...params); - }); - } - else { - return api(wrapperOptions(interceptor, options), ...params); - } - } - return api(options, ...params); -} - -function hasCallback(args) { - if (isPlainObject(args) && - [API_SUCCESS, API_FAIL, API_COMPLETE].find((cb) => isFunction(args[cb]))) { - return true; - } - return false; -} -function handlePromise(promise) { - // if (false) { - // return promise - // .then((data) => { - // return [null, data] - // }) - // .catch((err) => [err]) - // } - return promise; -} -function promisify(name, fn) { - return (args = {}, ...rest) => { - if (hasCallback(args)) { - return wrapperReturnValue(name, invokeApi(name, fn, args, rest)); - } - return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => { - invokeApi(name, fn, extend(args, { success: resolve, fail: reject }), rest); - }))); - }; -} - -function formatApiArgs(args, options) { - const params = args[0]; - if (!options || - !options.formatArgs || - (!isPlainObject(options.formatArgs) && isPlainObject(params))) { - return; - } - const formatArgs = options.formatArgs; - const keys = Object.keys(formatArgs); - for (let i = 0; i < keys.length; i++) { - const name = keys[i]; - const formatterOrDefaultValue = formatArgs[name]; - if (isFunction(formatterOrDefaultValue)) { - const errMsg = formatterOrDefaultValue(args[0][name], params); - if (isString(errMsg)) { - return errMsg; - } - } - else { - // defaultValue - if (!hasOwn$1(params, name)) { - params[name] = formatterOrDefaultValue; - } - } - } -} -function invokeSuccess(id, name, res) { - const result = { - errMsg: name + ':ok', - }; - return invokeCallback(id, extend((res || {}), result)); -} -function invokeFail(id, name, errMsg, errRes = {}) { - const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : ''); - { - delete errRes.errCode; - } - let res = extend({ errMsg: apiErrMsg }, errRes); - return invokeCallback(id, res); -} -function beforeInvokeApi(name, args, protocol, options) { - if (('production' !== 'production')) { - validateProtocols(name, args, protocol); - } - if (options && options.beforeInvoke) { - const errMsg = options.beforeInvoke(args); - if (isString(errMsg)) { - return errMsg; - } - } - const errMsg = formatApiArgs(args, options); - if (errMsg) { - return errMsg; - } -} -function checkCallback(callback) { - if (!isFunction(callback)) { - throw new Error('Invalid args: type check failed for args "callback". Expected Function'); - } -} -function wrapperOnApi(name, fn, options) { - return (callback) => { - checkCallback(callback); - const errMsg = beforeInvokeApi(name, [callback], undefined, options); - if (errMsg) { - throw new Error(errMsg); - } - // 是否是首次调用on,如果是首次,需要初始化onMethod监听 - const isFirstInvokeOnApi = !findInvokeCallbackByName(name); - createKeepAliveApiCallback(name, callback); - if (isFirstInvokeOnApi) { - onKeepAliveApiCallback(name); - fn(); - } - }; -} -function wrapperOffApi(name, fn, options) { - return (callback) => { - checkCallback(callback); - const errMsg = beforeInvokeApi(name, [callback], undefined, options); - if (errMsg) { - throw new Error(errMsg); - } - name = name.replace('off', 'on'); - removeKeepAliveApiCallback(name, callback); - // 是否还存在监听,若已不存在,则移除onMethod监听 - const hasInvokeOnApi = findInvokeCallbackByName(name); - if (!hasInvokeOnApi) { - offKeepAliveApiCallback(name); - fn(); - } - }; -} -function parseErrMsg(errMsg) { - if (!errMsg || isString(errMsg)) { - return errMsg; - } - if (errMsg.stack) { - console.error(errMsg.message + '\n' + errMsg.stack); - return errMsg.message; - } - return errMsg; -} -function wrapperTaskApi(name, fn, protocol, options) { - return (args) => { - const id = createAsyncApiCallback(name, args, options); - const errMsg = beforeInvokeApi(name, [args], protocol, options); - if (errMsg) { - return invokeFail(id, name, errMsg); - } - return fn(args, { - resolve: (res) => invokeSuccess(id, name, res), - reject: (errMsg, errRes) => invokeFail(id, name, parseErrMsg(errMsg), errRes), - }); - }; -} -function wrapperSyncApi(name, fn, protocol, options) { - return (...args) => { - const errMsg = beforeInvokeApi(name, args, protocol, options); - if (errMsg) { - throw new Error(errMsg); - } - return fn.apply(null, args); - }; -} -function wrapperAsyncApi(name, fn, protocol, options) { - return wrapperTaskApi(name, fn, protocol, options); -} -function defineOnApi(name, fn, options) { - return wrapperOnApi(name, fn, options); -} -function defineOffApi(name, fn, options) { - return wrapperOffApi(name, fn, options); -} -function defineTaskApi(name, fn, protocol, options) { - return promisify(name, wrapperTaskApi(name, fn, ('production' !== 'production') ? protocol : undefined, options)); -} -function defineSyncApi(name, fn, protocol, options) { - return wrapperSyncApi(name, fn, ('production' !== 'production') ? protocol : undefined, options); -} -function defineAsyncApi(name, fn, protocol, options) { - return promisify(name, wrapperAsyncApi(name, fn, ('production' !== 'production') ? protocol : undefined, options)); -} - -const API_BASE64_TO_ARRAY_BUFFER = 'base64ToArrayBuffer'; -const Base64ToArrayBufferProtocol = [ - { - name: 'base64', - type: String, - required: true, - }, -]; -const API_ARRAY_BUFFER_TO_BASE64 = 'arrayBufferToBase64'; -const ArrayBufferToBase64Protocol = [ - { - name: 'arrayBuffer', - type: [ArrayBuffer, Uint8Array], - required: true, - }, -]; - -const base64ToArrayBuffer = defineSyncApi(API_BASE64_TO_ARRAY_BUFFER, (base64) => { - return decode$1(base64); -}, Base64ToArrayBufferProtocol); -const arrayBufferToBase64 = defineSyncApi(API_ARRAY_BUFFER_TO_BASE64, (arrayBuffer) => { - return encode$2(arrayBuffer); -}, ArrayBufferToBase64Protocol); - -/** - * 简易版systemInfo,主要为upx2px,i18n服务 - * @returns - */ -function getBaseSystemInfo() { - // @ts-expect-error view 层 - if (typeof __SYSTEM_INFO__ !== 'undefined') { - return window.__SYSTEM_INFO__; - } - return { - platform: 'harmonyos', - pixelRatio: vp2px(1), - windowWidth: lpx2px(720), // TODO designWidth可配置 - }; -} - -var common = {}; - -(function (exports) { - - - var TYPED_OK = (typeof Uint8Array !== 'undefined') && - (typeof Uint16Array !== 'undefined') && - (typeof Int32Array !== 'undefined'); - - function _has(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); - } - - exports.assign = function (obj /*from1, from2, from3, ...*/) { - var sources = Array.prototype.slice.call(arguments, 1); - while (sources.length) { - var source = sources.shift(); - if (!source) { continue; } - - if (typeof source !== 'object') { - throw new TypeError(source + 'must be non-object'); - } - - for (var p in source) { - if (_has(source, p)) { - obj[p] = source[p]; - } - } - } - - return obj; - }; - - - // reduce buffer size, avoiding mem copy - exports.shrinkBuf = function (buf, size) { - if (buf.length === size) { return buf; } - if (buf.subarray) { return buf.subarray(0, size); } - buf.length = size; - return buf; - }; - - - var fnTyped = { - arraySet: function (dest, src, src_offs, len, dest_offs) { - if (src.subarray && dest.subarray) { - dest.set(src.subarray(src_offs, src_offs + len), dest_offs); - return; - } - // Fallback to ordinary array - for (var i = 0; i < len; i++) { - dest[dest_offs + i] = src[src_offs + i]; - } - }, - // Join array of chunks to single array. - flattenChunks: function (chunks) { - var i, l, len, pos, chunk, result; - - // calculate data length - len = 0; - for (i = 0, l = chunks.length; i < l; i++) { - len += chunks[i].length; - } - - // join chunks - result = new Uint8Array(len); - pos = 0; - for (i = 0, l = chunks.length; i < l; i++) { - chunk = chunks[i]; - result.set(chunk, pos); - pos += chunk.length; - } - - return result; - } - }; - - var fnUntyped = { - arraySet: function (dest, src, src_offs, len, dest_offs) { - for (var i = 0; i < len; i++) { - dest[dest_offs + i] = src[src_offs + i]; - } - }, - // Join array of chunks to single array. - flattenChunks: function (chunks) { - return [].concat.apply([], chunks); - } - }; - - - // Enable/Disable typed arrays use, for testing - // - exports.setTyped = function (on) { - if (on) { - exports.Buf8 = Uint8Array; - exports.Buf16 = Uint16Array; - exports.Buf32 = Int32Array; - exports.assign(exports, fnTyped); - } else { - exports.Buf8 = Array; - exports.Buf16 = Array; - exports.Buf32 = Array; - exports.assign(exports, fnUntyped); - } - }; - - exports.setTyped(TYPED_OK); -} (common)); - -var deflate$4 = {}; - -var deflate$3 = {}; - -var trees$1 = {}; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -/* eslint-disable space-unary-ops */ - -var utils$6 = common; - -/* Public constants ==========================================================*/ -/* ===========================================================================*/ - - -//var Z_FILTERED = 1; -//var Z_HUFFMAN_ONLY = 2; -//var Z_RLE = 3; -var Z_FIXED$1 = 4; -//var Z_DEFAULT_STRATEGY = 0; - -/* Possible values of the data_type field (though see inflate()) */ -var Z_BINARY = 0; -var Z_TEXT = 1; -//var Z_ASCII = 1; // = Z_TEXT -var Z_UNKNOWN$1 = 2; - -/*============================================================================*/ - - -function zero$1(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } } - -// From zutil.h - -var STORED_BLOCK = 0; -var STATIC_TREES = 1; -var DYN_TREES = 2; -/* The three kinds of block type */ - -var MIN_MATCH$1 = 3; -var MAX_MATCH$1 = 258; -/* The minimum and maximum match lengths */ - -// From deflate.h -/* =========================================================================== - * Internal compression state. - */ - -var LENGTH_CODES$1 = 29; -/* number of length codes, not counting the special END_BLOCK code */ - -var LITERALS$1 = 256; -/* number of literal bytes 0..255 */ - -var L_CODES$1 = LITERALS$1 + 1 + LENGTH_CODES$1; -/* number of Literal or Length codes, including the END_BLOCK code */ - -var D_CODES$1 = 30; -/* number of distance codes */ - -var BL_CODES$1 = 19; -/* number of codes used to transfer the bit lengths */ - -var HEAP_SIZE$1 = 2 * L_CODES$1 + 1; -/* maximum heap size */ - -var MAX_BITS$1 = 15; -/* All codes must not exceed MAX_BITS bits */ - -var Buf_size = 16; -/* size of bit buffer in bi_buf */ - - -/* =========================================================================== - * Constants - */ - -var MAX_BL_BITS = 7; -/* Bit length codes must not exceed MAX_BL_BITS bits */ - -var END_BLOCK = 256; -/* end of block literal code */ - -var REP_3_6 = 16; -/* repeat previous bit length 3-6 times (2 bits of repeat count) */ - -var REPZ_3_10 = 17; -/* repeat a zero length 3-10 times (3 bits of repeat count) */ - -var REPZ_11_138 = 18; -/* repeat a zero length 11-138 times (7 bits of repeat count) */ - -/* eslint-disable comma-spacing,array-bracket-spacing */ -var extra_lbits = /* extra bits for each length code */ - [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]; - -var extra_dbits = /* extra bits for each distance code */ - [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]; - -var extra_blbits = /* extra bits for each bit length code */ - [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]; - -var bl_order = - [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]; -/* eslint-enable comma-spacing,array-bracket-spacing */ - -/* The lengths of the bit length codes are sent in order of decreasing - * probability, to avoid transmitting the lengths for unused bit length codes. - */ - -/* =========================================================================== - * Local data. These are initialized only once. - */ - -// We pre-fill arrays with 0 to avoid uninitialized gaps - -var DIST_CODE_LEN = 512; /* see definition of array dist_code below */ - -// !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1 -var static_ltree = new Array((L_CODES$1 + 2) * 2); -zero$1(static_ltree); -/* The static literal tree. Since the bit lengths are imposed, there is no - * need for the L_CODES extra codes used during heap construction. However - * The codes 286 and 287 are needed to build a canonical tree (see _tr_init - * below). - */ - -var static_dtree = new Array(D_CODES$1 * 2); -zero$1(static_dtree); -/* The static distance tree. (Actually a trivial tree since all codes use - * 5 bits.) - */ - -var _dist_code = new Array(DIST_CODE_LEN); -zero$1(_dist_code); -/* Distance codes. The first 256 values correspond to the distances - * 3 .. 258, the last 256 values correspond to the top 8 bits of - * the 15 bit distances. - */ - -var _length_code = new Array(MAX_MATCH$1 - MIN_MATCH$1 + 1); -zero$1(_length_code); -/* length code for each normalized match length (0 == MIN_MATCH) */ - -var base_length = new Array(LENGTH_CODES$1); -zero$1(base_length); -/* First normalized length for each code (0 = MIN_MATCH) */ - -var base_dist = new Array(D_CODES$1); -zero$1(base_dist); -/* First normalized distance for each code (0 = distance of 1) */ - - -function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) { - - this.static_tree = static_tree; /* static tree or NULL */ - this.extra_bits = extra_bits; /* extra bits for each code or NULL */ - this.extra_base = extra_base; /* base index for extra_bits */ - this.elems = elems; /* max number of elements in the tree */ - this.max_length = max_length; /* max bit length for the codes */ - - // show if `static_tree` has data or dummy - needed for monomorphic objects - this.has_stree = static_tree && static_tree.length; -} - - -var static_l_desc; -var static_d_desc; -var static_bl_desc; - - -function TreeDesc(dyn_tree, stat_desc) { - this.dyn_tree = dyn_tree; /* the dynamic tree */ - this.max_code = 0; /* largest code with non zero frequency */ - this.stat_desc = stat_desc; /* the corresponding static tree */ -} - - - -function d_code(dist) { - return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)]; -} - - -/* =========================================================================== - * Output a short LSB first on the stream. - * IN assertion: there is enough room in pendingBuf. - */ -function put_short(s, w) { -// put_byte(s, (uch)((w) & 0xff)); -// put_byte(s, (uch)((ush)(w) >> 8)); - s.pending_buf[s.pending++] = (w) & 0xff; - s.pending_buf[s.pending++] = (w >>> 8) & 0xff; -} - - -/* =========================================================================== - * Send a value on a given number of bits. - * IN assertion: length <= 16 and value fits in length bits. - */ -function send_bits(s, value, length) { - if (s.bi_valid > (Buf_size - length)) { - s.bi_buf |= (value << s.bi_valid) & 0xffff; - put_short(s, s.bi_buf); - s.bi_buf = value >> (Buf_size - s.bi_valid); - s.bi_valid += length - Buf_size; - } else { - s.bi_buf |= (value << s.bi_valid) & 0xffff; - s.bi_valid += length; - } -} - - -function send_code(s, c, tree) { - send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/); -} - - -/* =========================================================================== - * Reverse the first len bits of a code, using straightforward code (a faster - * method would use a table) - * IN assertion: 1 <= len <= 15 - */ -function bi_reverse(code, len) { - var res = 0; - do { - res |= code & 1; - code >>>= 1; - res <<= 1; - } while (--len > 0); - return res >>> 1; -} - - -/* =========================================================================== - * Flush the bit buffer, keeping at most 7 bits in it. - */ -function bi_flush(s) { - if (s.bi_valid === 16) { - put_short(s, s.bi_buf); - s.bi_buf = 0; - s.bi_valid = 0; - - } else if (s.bi_valid >= 8) { - s.pending_buf[s.pending++] = s.bi_buf & 0xff; - s.bi_buf >>= 8; - s.bi_valid -= 8; - } -} - - -/* =========================================================================== - * Compute the optimal bit lengths for a tree and update the total bit length - * for the current block. - * IN assertion: the fields freq and dad are set, heap[heap_max] and - * above are the tree nodes sorted by increasing frequency. - * OUT assertions: the field len is set to the optimal bit length, the - * array bl_count contains the frequencies for each bit length. - * The length opt_len is updated; static_len is also updated if stree is - * not null. - */ -function gen_bitlen(s, desc) -// deflate_state *s; -// tree_desc *desc; /* the tree descriptor */ -{ - var tree = desc.dyn_tree; - var max_code = desc.max_code; - var stree = desc.stat_desc.static_tree; - var has_stree = desc.stat_desc.has_stree; - var extra = desc.stat_desc.extra_bits; - var base = desc.stat_desc.extra_base; - var max_length = desc.stat_desc.max_length; - var h; /* heap index */ - var n, m; /* iterate over the tree elements */ - var bits; /* bit length */ - var xbits; /* extra bits */ - var f; /* frequency */ - var overflow = 0; /* number of elements with bit length too large */ - - for (bits = 0; bits <= MAX_BITS$1; bits++) { - s.bl_count[bits] = 0; - } - - /* In a first pass, compute the optimal bit lengths (which may - * overflow in the case of the bit length tree). - */ - tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */ - - for (h = s.heap_max + 1; h < HEAP_SIZE$1; h++) { - n = s.heap[h]; - bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1; - if (bits > max_length) { - bits = max_length; - overflow++; - } - tree[n * 2 + 1]/*.Len*/ = bits; - /* We overwrite tree[n].Dad which is no longer needed */ - - if (n > max_code) { continue; } /* not a leaf node */ - - s.bl_count[bits]++; - xbits = 0; - if (n >= base) { - xbits = extra[n - base]; - } - f = tree[n * 2]/*.Freq*/; - s.opt_len += f * (bits + xbits); - if (has_stree) { - s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits); - } - } - if (overflow === 0) { return; } - - // Trace((stderr,"\nbit length overflow\n")); - /* This happens for example on obj2 and pic of the Calgary corpus */ - - /* Find the first bit length which could increase: */ - do { - bits = max_length - 1; - while (s.bl_count[bits] === 0) { bits--; } - s.bl_count[bits]--; /* move one leaf down the tree */ - s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */ - s.bl_count[max_length]--; - /* The brother of the overflow item also moves one step up, - * but this does not affect bl_count[max_length] - */ - overflow -= 2; - } while (overflow > 0); - - /* Now recompute all bit lengths, scanning in increasing frequency. - * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all - * lengths instead of fixing only the wrong ones. This idea is taken - * from 'ar' written by Haruhiko Okumura.) - */ - for (bits = max_length; bits !== 0; bits--) { - n = s.bl_count[bits]; - while (n !== 0) { - m = s.heap[--h]; - if (m > max_code) { continue; } - if (tree[m * 2 + 1]/*.Len*/ !== bits) { - // Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits)); - s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/; - tree[m * 2 + 1]/*.Len*/ = bits; - } - n--; - } - } -} - - -/* =========================================================================== - * Generate the codes for a given tree and bit counts (which need not be - * optimal). - * IN assertion: the array bl_count contains the bit length statistics for - * the given tree and the field len is set for all tree elements. - * OUT assertion: the field code is set for all tree elements of non - * zero code length. - */ -function gen_codes(tree, max_code, bl_count) -// ct_data *tree; /* the tree to decorate */ -// int max_code; /* largest code with non zero frequency */ -// ushf *bl_count; /* number of codes at each bit length */ -{ - var next_code = new Array(MAX_BITS$1 + 1); /* next code value for each bit length */ - var code = 0; /* running code value */ - var bits; /* bit index */ - var n; /* code index */ - - /* The distribution counts are first used to generate the code values - * without bit reversal. - */ - for (bits = 1; bits <= MAX_BITS$1; bits++) { - next_code[bits] = code = (code + bl_count[bits - 1]) << 1; - } - /* Check that the bit counts in bl_count are consistent. The last code - * must be all ones. - */ - //Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1, - // "inconsistent bit counts"); - //Tracev((stderr,"\ngen_codes: max_code %d ", max_code)); - - for (n = 0; n <= max_code; n++) { - var len = tree[n * 2 + 1]/*.Len*/; - if (len === 0) { continue; } - /* Now reverse the bits */ - tree[n * 2]/*.Code*/ = bi_reverse(next_code[len]++, len); - - //Tracecv(tree != static_ltree, (stderr,"\nn %3d %c l %2d c %4x (%x) ", - // n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1)); - } -} - - -/* =========================================================================== - * Initialize the various 'constant' tables. - */ -function tr_static_init() { - var n; /* iterates over tree elements */ - var bits; /* bit counter */ - var length; /* length value */ - var code; /* code value */ - var dist; /* distance index */ - var bl_count = new Array(MAX_BITS$1 + 1); - /* number of codes at each bit length for an optimal tree */ - - // do check in _tr_init() - //if (static_init_done) return; - - /* For some embedded targets, global variables are not initialized: */ -/*#ifdef NO_INIT_GLOBAL_POINTERS - static_l_desc.static_tree = static_ltree; - static_l_desc.extra_bits = extra_lbits; - static_d_desc.static_tree = static_dtree; - static_d_desc.extra_bits = extra_dbits; - static_bl_desc.extra_bits = extra_blbits; -#endif*/ - - /* Initialize the mapping length (0..255) -> length code (0..28) */ - length = 0; - for (code = 0; code < LENGTH_CODES$1 - 1; code++) { - base_length[code] = length; - for (n = 0; n < (1 << extra_lbits[code]); n++) { - _length_code[length++] = code; - } - } - //Assert (length == 256, "tr_static_init: length != 256"); - /* Note that the length 255 (match length 258) can be represented - * in two different ways: code 284 + 5 bits or code 285, so we - * overwrite length_code[255] to use the best encoding: - */ - _length_code[length - 1] = code; - - /* Initialize the mapping dist (0..32K) -> dist code (0..29) */ - dist = 0; - for (code = 0; code < 16; code++) { - base_dist[code] = dist; - for (n = 0; n < (1 << extra_dbits[code]); n++) { - _dist_code[dist++] = code; - } - } - //Assert (dist == 256, "tr_static_init: dist != 256"); - dist >>= 7; /* from now on, all distances are divided by 128 */ - for (; code < D_CODES$1; code++) { - base_dist[code] = dist << 7; - for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) { - _dist_code[256 + dist++] = code; - } - } - //Assert (dist == 256, "tr_static_init: 256+dist != 512"); - - /* Construct the codes of the static literal tree */ - for (bits = 0; bits <= MAX_BITS$1; bits++) { - bl_count[bits] = 0; - } - - n = 0; - while (n <= 143) { - static_ltree[n * 2 + 1]/*.Len*/ = 8; - n++; - bl_count[8]++; - } - while (n <= 255) { - static_ltree[n * 2 + 1]/*.Len*/ = 9; - n++; - bl_count[9]++; - } - while (n <= 279) { - static_ltree[n * 2 + 1]/*.Len*/ = 7; - n++; - bl_count[7]++; - } - while (n <= 287) { - static_ltree[n * 2 + 1]/*.Len*/ = 8; - n++; - bl_count[8]++; - } - /* Codes 286 and 287 do not exist, but we must include them in the - * tree construction to get a canonical Huffman tree (longest code - * all ones) - */ - gen_codes(static_ltree, L_CODES$1 + 1, bl_count); - - /* The static distance tree is trivial: */ - for (n = 0; n < D_CODES$1; n++) { - static_dtree[n * 2 + 1]/*.Len*/ = 5; - static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5); - } - - // Now data ready and we can init static trees - static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS$1 + 1, L_CODES$1, MAX_BITS$1); - static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES$1, MAX_BITS$1); - static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES$1, MAX_BL_BITS); - - //static_init_done = true; -} - - -/* =========================================================================== - * Initialize a new block. - */ -function init_block(s) { - var n; /* iterates over tree elements */ - - /* Initialize the trees. */ - for (n = 0; n < L_CODES$1; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; } - for (n = 0; n < D_CODES$1; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; } - for (n = 0; n < BL_CODES$1; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; } - - s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1; - s.opt_len = s.static_len = 0; - s.last_lit = s.matches = 0; -} - - -/* =========================================================================== - * Flush the bit buffer and align the output on a byte boundary - */ -function bi_windup(s) -{ - if (s.bi_valid > 8) { - put_short(s, s.bi_buf); - } else if (s.bi_valid > 0) { - //put_byte(s, (Byte)s->bi_buf); - s.pending_buf[s.pending++] = s.bi_buf; - } - s.bi_buf = 0; - s.bi_valid = 0; -} - -/* =========================================================================== - * Copy a stored block, storing first the length and its - * one's complement if requested. - */ -function copy_block(s, buf, len, header) -//DeflateState *s; -//charf *buf; /* the input data */ -//unsigned len; /* its length */ -//int header; /* true if block header must be written */ -{ - bi_windup(s); /* align on byte boundary */ - - { - put_short(s, len); - put_short(s, ~len); - } -// while (len--) { -// put_byte(s, *buf++); -// } - utils$6.arraySet(s.pending_buf, s.window, buf, len, s.pending); - s.pending += len; -} - -/* =========================================================================== - * Compares to subtrees, using the tree depth as tie breaker when - * the subtrees have equal frequency. This minimizes the worst case length. - */ -function smaller(tree, n, m, depth) { - var _n2 = n * 2; - var _m2 = m * 2; - return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ || - (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m])); -} - -/* =========================================================================== - * Restore the heap property by moving down the tree starting at node k, - * exchanging a node with the smallest of its two sons if necessary, stopping - * when the heap property is re-established (each father smaller than its - * two sons). - */ -function pqdownheap(s, tree, k) -// deflate_state *s; -// ct_data *tree; /* the tree to restore */ -// int k; /* node to move down */ -{ - var v = s.heap[k]; - var j = k << 1; /* left son of k */ - while (j <= s.heap_len) { - /* Set j to the smallest of the two sons: */ - if (j < s.heap_len && - smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) { - j++; - } - /* Exit if v is smaller than both sons */ - if (smaller(tree, v, s.heap[j], s.depth)) { break; } - - /* Exchange v with the smallest son */ - s.heap[k] = s.heap[j]; - k = j; - - /* And continue down the tree, setting j to the left son of k */ - j <<= 1; - } - s.heap[k] = v; -} - - -// inlined manually -// var SMALLEST = 1; - -/* =========================================================================== - * Send the block data compressed using the given Huffman trees - */ -function compress_block(s, ltree, dtree) -// deflate_state *s; -// const ct_data *ltree; /* literal tree */ -// const ct_data *dtree; /* distance tree */ -{ - var dist; /* distance of matched string */ - var lc; /* match length or unmatched char (if dist == 0) */ - var lx = 0; /* running index in l_buf */ - var code; /* the code to send */ - var extra; /* number of extra bits to send */ - - if (s.last_lit !== 0) { - do { - dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]); - lc = s.pending_buf[s.l_buf + lx]; - lx++; - - if (dist === 0) { - send_code(s, lc, ltree); /* send a literal byte */ - //Tracecv(isgraph(lc), (stderr," '%c' ", lc)); - } else { - /* Here, lc is the match length - MIN_MATCH */ - code = _length_code[lc]; - send_code(s, code + LITERALS$1 + 1, ltree); /* send the length code */ - extra = extra_lbits[code]; - if (extra !== 0) { - lc -= base_length[code]; - send_bits(s, lc, extra); /* send the extra length bits */ - } - dist--; /* dist is now the match distance - 1 */ - code = d_code(dist); - //Assert (code < D_CODES, "bad d_code"); - - send_code(s, code, dtree); /* send the distance code */ - extra = extra_dbits[code]; - if (extra !== 0) { - dist -= base_dist[code]; - send_bits(s, dist, extra); /* send the extra distance bits */ - } - } /* literal or match pair ? */ - - /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */ - //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx, - // "pendingBuf overflow"); - - } while (lx < s.last_lit); - } - - send_code(s, END_BLOCK, ltree); -} - - -/* =========================================================================== - * Construct one Huffman tree and assigns the code bit strings and lengths. - * Update the total bit length for the current block. - * IN assertion: the field freq is set for all tree elements. - * OUT assertions: the fields len and code are set to the optimal bit length - * and corresponding code. The length opt_len is updated; static_len is - * also updated if stree is not null. The field max_code is set. - */ -function build_tree(s, desc) -// deflate_state *s; -// tree_desc *desc; /* the tree descriptor */ -{ - var tree = desc.dyn_tree; - var stree = desc.stat_desc.static_tree; - var has_stree = desc.stat_desc.has_stree; - var elems = desc.stat_desc.elems; - var n, m; /* iterate over heap elements */ - var max_code = -1; /* largest code with non zero frequency */ - var node; /* new node being created */ - - /* Construct the initial heap, with least frequent element in - * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1]. - * heap[0] is not used. - */ - s.heap_len = 0; - s.heap_max = HEAP_SIZE$1; - - for (n = 0; n < elems; n++) { - if (tree[n * 2]/*.Freq*/ !== 0) { - s.heap[++s.heap_len] = max_code = n; - s.depth[n] = 0; - - } else { - tree[n * 2 + 1]/*.Len*/ = 0; - } - } - - /* The pkzip format requires that at least one distance code exists, - * and that at least one bit should be sent even if there is only one - * possible code. So to avoid special checks later on we force at least - * two codes of non zero frequency. - */ - while (s.heap_len < 2) { - node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0); - tree[node * 2]/*.Freq*/ = 1; - s.depth[node] = 0; - s.opt_len--; - - if (has_stree) { - s.static_len -= stree[node * 2 + 1]/*.Len*/; - } - /* node is 0 or 1 so it does not have extra bits */ - } - desc.max_code = max_code; - - /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree, - * establish sub-heaps of increasing lengths: - */ - for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); } - - /* Construct the Huffman tree by repeatedly combining the least two - * frequent nodes. - */ - node = elems; /* next internal node of the tree */ - do { - //pqremove(s, tree, n); /* n = node of least frequency */ - /*** pqremove ***/ - n = s.heap[1/*SMALLEST*/]; - s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--]; - pqdownheap(s, tree, 1/*SMALLEST*/); - /***/ - - m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */ - - s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */ - s.heap[--s.heap_max] = m; - - /* Create a new node father of n and m */ - tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/; - s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1; - tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node; - - /* and insert the new node in the heap */ - s.heap[1/*SMALLEST*/] = node++; - pqdownheap(s, tree, 1/*SMALLEST*/); - - } while (s.heap_len >= 2); - - s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/]; - - /* At this point, the fields freq and dad are set. We can now - * generate the bit lengths. - */ - gen_bitlen(s, desc); - - /* The field len is now set, we can generate the bit codes */ - gen_codes(tree, max_code, s.bl_count); -} - - -/* =========================================================================== - * Scan a literal or distance tree to determine the frequencies of the codes - * in the bit length tree. - */ -function scan_tree(s, tree, max_code) -// deflate_state *s; -// ct_data *tree; /* the tree to be scanned */ -// int max_code; /* and its largest code of non zero frequency */ -{ - var n; /* iterates over all tree elements */ - var prevlen = -1; /* last emitted length */ - var curlen; /* length of current code */ - - var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */ - - var count = 0; /* repeat count of the current code */ - var max_count = 7; /* max repeat count */ - var min_count = 4; /* min repeat count */ - - if (nextlen === 0) { - max_count = 138; - min_count = 3; - } - tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */ - - for (n = 0; n <= max_code; n++) { - curlen = nextlen; - nextlen = tree[(n + 1) * 2 + 1]/*.Len*/; - - if (++count < max_count && curlen === nextlen) { - continue; - - } else if (count < min_count) { - s.bl_tree[curlen * 2]/*.Freq*/ += count; - - } else if (curlen !== 0) { - - if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; } - s.bl_tree[REP_3_6 * 2]/*.Freq*/++; - - } else if (count <= 10) { - s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++; - - } else { - s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++; - } - - count = 0; - prevlen = curlen; - - if (nextlen === 0) { - max_count = 138; - min_count = 3; - - } else if (curlen === nextlen) { - max_count = 6; - min_count = 3; - - } else { - max_count = 7; - min_count = 4; - } - } -} - - -/* =========================================================================== - * Send a literal or distance tree in compressed form, using the codes in - * bl_tree. - */ -function send_tree(s, tree, max_code) -// deflate_state *s; -// ct_data *tree; /* the tree to be scanned */ -// int max_code; /* and its largest code of non zero frequency */ -{ - var n; /* iterates over all tree elements */ - var prevlen = -1; /* last emitted length */ - var curlen; /* length of current code */ - - var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */ - - var count = 0; /* repeat count of the current code */ - var max_count = 7; /* max repeat count */ - var min_count = 4; /* min repeat count */ - - /* tree[max_code+1].Len = -1; */ /* guard already set */ - if (nextlen === 0) { - max_count = 138; - min_count = 3; - } - - for (n = 0; n <= max_code; n++) { - curlen = nextlen; - nextlen = tree[(n + 1) * 2 + 1]/*.Len*/; - - if (++count < max_count && curlen === nextlen) { - continue; - - } else if (count < min_count) { - do { send_code(s, curlen, s.bl_tree); } while (--count !== 0); - - } else if (curlen !== 0) { - if (curlen !== prevlen) { - send_code(s, curlen, s.bl_tree); - count--; - } - //Assert(count >= 3 && count <= 6, " 3_6?"); - send_code(s, REP_3_6, s.bl_tree); - send_bits(s, count - 3, 2); - - } else if (count <= 10) { - send_code(s, REPZ_3_10, s.bl_tree); - send_bits(s, count - 3, 3); - - } else { - send_code(s, REPZ_11_138, s.bl_tree); - send_bits(s, count - 11, 7); - } - - count = 0; - prevlen = curlen; - if (nextlen === 0) { - max_count = 138; - min_count = 3; - - } else if (curlen === nextlen) { - max_count = 6; - min_count = 3; - - } else { - max_count = 7; - min_count = 4; - } - } -} - - -/* =========================================================================== - * Construct the Huffman tree for the bit lengths and return the index in - * bl_order of the last bit length code to send. - */ -function build_bl_tree(s) { - var max_blindex; /* index of last bit length code of non zero freq */ - - /* Determine the bit length frequencies for literal and distance trees */ - scan_tree(s, s.dyn_ltree, s.l_desc.max_code); - scan_tree(s, s.dyn_dtree, s.d_desc.max_code); - - /* Build the bit length tree: */ - build_tree(s, s.bl_desc); - /* opt_len now includes the length of the tree representations, except - * the lengths of the bit lengths codes and the 5+5+4 bits for the counts. - */ - - /* Determine the number of bit length codes to send. The pkzip format - * requires that at least 4 bit length codes be sent. (appnote.txt says - * 3 but the actual value used is 4.) - */ - for (max_blindex = BL_CODES$1 - 1; max_blindex >= 3; max_blindex--) { - if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) { - break; - } - } - /* Update opt_len to include the bit length tree and counts */ - s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4; - //Tracev((stderr, "\ndyn trees: dyn %ld, stat %ld", - // s->opt_len, s->static_len)); - - return max_blindex; -} - - -/* =========================================================================== - * Send the header for a block using dynamic Huffman trees: the counts, the - * lengths of the bit length codes, the literal tree and the distance tree. - * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4. - */ -function send_all_trees(s, lcodes, dcodes, blcodes) -// deflate_state *s; -// int lcodes, dcodes, blcodes; /* number of codes for each tree */ -{ - var rank; /* index in bl_order */ - - //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, "not enough codes"); - //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES, - // "too many codes"); - //Tracev((stderr, "\nbl counts: ")); - send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */ - send_bits(s, dcodes - 1, 5); - send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */ - for (rank = 0; rank < blcodes; rank++) { - //Tracev((stderr, "\nbl code %2d ", bl_order[rank])); - send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3); - } - //Tracev((stderr, "\nbl tree: sent %ld", s->bits_sent)); - - send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */ - //Tracev((stderr, "\nlit tree: sent %ld", s->bits_sent)); - - send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */ - //Tracev((stderr, "\ndist tree: sent %ld", s->bits_sent)); -} - - -/* =========================================================================== - * Check if the data type is TEXT or BINARY, using the following algorithm: - * - TEXT if the two conditions below are satisfied: - * a) There are no non-portable control characters belonging to the - * "black list" (0..6, 14..25, 28..31). - * b) There is at least one printable character belonging to the - * "white list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255). - * - BINARY otherwise. - * - The following partially-portable control characters form a - * "gray list" that is ignored in this detection algorithm: - * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}). - * IN assertion: the fields Freq of dyn_ltree are set. - */ -function detect_data_type(s) { - /* black_mask is the bit mask of black-listed bytes - * set bits 0..6, 14..25, and 28..31 - * 0xf3ffc07f = binary 11110011111111111100000001111111 - */ - var black_mask = 0xf3ffc07f; - var n; - - /* Check for non-textual ("black-listed") bytes. */ - for (n = 0; n <= 31; n++, black_mask >>>= 1) { - if ((black_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) { - return Z_BINARY; - } - } - - /* Check for textual ("white-listed") bytes. */ - if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 || - s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) { - return Z_TEXT; - } - for (n = 32; n < LITERALS$1; n++) { - if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) { - return Z_TEXT; - } - } - - /* There are no "black-listed" or "white-listed" bytes: - * this stream either is empty or has tolerated ("gray-listed") bytes only. - */ - return Z_BINARY; -} - - -var static_init_done = false; - -/* =========================================================================== - * Initialize the tree data structures for a new zlib stream. - */ -function _tr_init(s) -{ - - if (!static_init_done) { - tr_static_init(); - static_init_done = true; - } - - s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc); - s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc); - s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc); - - s.bi_buf = 0; - s.bi_valid = 0; - - /* Initialize the first block of the first file: */ - init_block(s); -} - - -/* =========================================================================== - * Send a stored block - */ -function _tr_stored_block(s, buf, stored_len, last) -//DeflateState *s; -//charf *buf; /* input block */ -//ulg stored_len; /* length of input block */ -//int last; /* one if this is the last block for a file */ -{ - send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */ - copy_block(s, buf, stored_len); /* with header */ -} - - -/* =========================================================================== - * Send one empty static block to give enough lookahead for inflate. - * This takes 10 bits, of which 7 may remain in the bit buffer. - */ -function _tr_align(s) { - send_bits(s, STATIC_TREES << 1, 3); - send_code(s, END_BLOCK, static_ltree); - bi_flush(s); -} - - -/* =========================================================================== - * Determine the best encoding for the current block: dynamic trees, static - * trees or store, and output the encoded block to the zip file. - */ -function _tr_flush_block(s, buf, stored_len, last) -//DeflateState *s; -//charf *buf; /* input block, or NULL if too old */ -//ulg stored_len; /* length of input block */ -//int last; /* one if this is the last block for a file */ -{ - var opt_lenb, static_lenb; /* opt_len and static_len in bytes */ - var max_blindex = 0; /* index of last bit length code of non zero freq */ - - /* Build the Huffman trees unless a stored block is forced */ - if (s.level > 0) { - - /* Check if the file is binary or text */ - if (s.strm.data_type === Z_UNKNOWN$1) { - s.strm.data_type = detect_data_type(s); - } - - /* Construct the literal and distance trees */ - build_tree(s, s.l_desc); - // Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len, - // s->static_len)); - - build_tree(s, s.d_desc); - // Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len, - // s->static_len)); - /* At this point, opt_len and static_len are the total bit lengths of - * the compressed block data, excluding the tree representations. - */ - - /* Build the bit length tree for the above two trees, and get the index - * in bl_order of the last bit length code to send. - */ - max_blindex = build_bl_tree(s); - - /* Determine the best encoding. Compute the block lengths in bytes. */ - opt_lenb = (s.opt_len + 3 + 7) >>> 3; - static_lenb = (s.static_len + 3 + 7) >>> 3; - - // Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ", - // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len, - // s->last_lit)); - - if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; } - - } else { - // Assert(buf != (char*)0, "lost buf"); - opt_lenb = static_lenb = stored_len + 5; /* force a stored block */ - } - - if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) { - /* 4: two words for the lengths */ - - /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE. - * Otherwise we can't have processed more than WSIZE input bytes since - * the last block flush, because compression would have been - * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to - * transform a block into a stored block. - */ - _tr_stored_block(s, buf, stored_len, last); - - } else if (s.strategy === Z_FIXED$1 || static_lenb === opt_lenb) { - - send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3); - compress_block(s, static_ltree, static_dtree); - - } else { - send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3); - send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1); - compress_block(s, s.dyn_ltree, s.dyn_dtree); - } - // Assert (s->compressed_len == s->bits_sent, "bad compressed size"); - /* The above check is made mod 2^32, for files larger than 512 MB - * and uLong implemented on 32 bits. - */ - init_block(s); - - if (last) { - bi_windup(s); - } - // Tracev((stderr,"\ncomprlen %lu(%lu) ", s->compressed_len>>3, - // s->compressed_len-7*last)); -} - -/* =========================================================================== - * Save the match info and tally the frequency counts. Return true if - * the current block must be flushed. - */ -function _tr_tally(s, dist, lc) -// deflate_state *s; -// unsigned dist; /* distance of matched string */ -// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */ -{ - //var out_length, in_length, dcode; - - s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff; - s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff; - - s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff; - s.last_lit++; - - if (dist === 0) { - /* lc is the unmatched char */ - s.dyn_ltree[lc * 2]/*.Freq*/++; - } else { - s.matches++; - /* Here, lc is the match length - MIN_MATCH */ - dist--; /* dist = match distance - 1 */ - //Assert((ush)dist < (ush)MAX_DIST(s) && - // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) && - // (ush)d_code(dist) < (ush)D_CODES, "_tr_tally: bad match"); - - s.dyn_ltree[(_length_code[lc] + LITERALS$1 + 1) * 2]/*.Freq*/++; - s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++; - } - -// (!) This block is disabled in zlib defaults, -// don't enable it for binary compatibility - -//#ifdef TRUNCATE_BLOCK -// /* Try to guess if it is profitable to stop the current block here */ -// if ((s.last_lit & 0x1fff) === 0 && s.level > 2) { -// /* Compute an upper bound for the compressed length */ -// out_length = s.last_lit*8; -// in_length = s.strstart - s.block_start; -// -// for (dcode = 0; dcode < D_CODES; dcode++) { -// out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]); -// } -// out_length >>>= 3; -// //Tracev((stderr,"\nlast_lit %u, in %ld, out ~%ld(%ld%%) ", -// // s->last_lit, in_length, out_length, -// // 100L - out_length*100L/in_length)); -// if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) { -// return true; -// } -// } -//#endif - - return (s.last_lit === s.lit_bufsize - 1); - /* We avoid equality with lit_bufsize because of wraparound at 64K - * on 16 bit machines and because stored blocks are restricted to - * 64K-1 bytes. - */ -} - -trees$1._tr_init = _tr_init; -trees$1._tr_stored_block = _tr_stored_block; -trees$1._tr_flush_block = _tr_flush_block; -trees$1._tr_tally = _tr_tally; -trees$1._tr_align = _tr_align; - -// Note: adler32 takes 12% for level 0 and 2% for level 6. -// It isn't worth it to make additional optimizations as in original. -// Small size is preferable. - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -function adler32$2(adler, buf, len, pos) { - var s1 = (adler & 0xffff) |0, - s2 = ((adler >>> 16) & 0xffff) |0, - n = 0; - - while (len !== 0) { - // Set limit ~ twice less than 5552, to keep - // s2 in 31-bits, because we force signed ints. - // in other case %= will fail. - n = len > 2000 ? 2000 : len; - len -= n; - - do { - s1 = (s1 + buf[pos++]) |0; - s2 = (s2 + s1) |0; - } while (--n); - - s1 %= 65521; - s2 %= 65521; - } - - return (s1 | (s2 << 16)) |0; -} - - -var adler32_1 = adler32$2; - -// Note: we can't get significant speed boost here. -// So write code to minimize size - no pregenerated tables -// and array tools dependencies. - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -// Use ordinary array, since untyped makes no boost here -function makeTable() { - var c, table = []; - - for (var n = 0; n < 256; n++) { - c = n; - for (var k = 0; k < 8; k++) { - c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1)); - } - table[n] = c; - } - - return table; -} - -// Create table on load. Just 255 signed longs. Not a problem. -var crcTable = makeTable(); - - -function crc32$2(crc, buf, len, pos) { - var t = crcTable, - end = pos + len; - - crc ^= -1; - - for (var i = pos; i < end; i++) { - crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF]; - } - - return (crc ^ (-1)); // >>> 0; -} - - -var crc32_1 = crc32$2; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -var messages = { - 2: 'need dictionary', /* Z_NEED_DICT 2 */ - 1: 'stream end', /* Z_STREAM_END 1 */ - 0: '', /* Z_OK 0 */ - '-1': 'file error', /* Z_ERRNO (-1) */ - '-2': 'stream error', /* Z_STREAM_ERROR (-2) */ - '-3': 'data error', /* Z_DATA_ERROR (-3) */ - '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */ - '-5': 'buffer error', /* Z_BUF_ERROR (-5) */ - '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */ -}; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -var utils$5 = common; -var trees = trees$1; -var adler32$1 = adler32_1; -var crc32$1 = crc32_1; -var msg$2 = messages; - -/* Public constants ==========================================================*/ -/* ===========================================================================*/ - - -/* Allowed flush values; see deflate() and inflate() below for details */ -var Z_NO_FLUSH$1 = 0; -var Z_PARTIAL_FLUSH = 1; -//var Z_SYNC_FLUSH = 2; -var Z_FULL_FLUSH = 3; -var Z_FINISH$2 = 4; -var Z_BLOCK$1 = 5; -//var Z_TREES = 6; - - -/* Return codes for the compression/decompression functions. Negative values - * are errors, positive values are used for special but normal events. - */ -var Z_OK$2 = 0; -var Z_STREAM_END$2 = 1; -//var Z_NEED_DICT = 2; -//var Z_ERRNO = -1; -var Z_STREAM_ERROR$1 = -2; -var Z_DATA_ERROR$1 = -3; -//var Z_MEM_ERROR = -4; -var Z_BUF_ERROR$1 = -5; -//var Z_VERSION_ERROR = -6; - - -/* compression levels */ -//var Z_NO_COMPRESSION = 0; -//var Z_BEST_SPEED = 1; -//var Z_BEST_COMPRESSION = 9; -var Z_DEFAULT_COMPRESSION$1 = -1; - - -var Z_FILTERED = 1; -var Z_HUFFMAN_ONLY = 2; -var Z_RLE = 3; -var Z_FIXED = 4; -var Z_DEFAULT_STRATEGY$1 = 0; - -/* Possible values of the data_type field (though see inflate()) */ -//var Z_BINARY = 0; -//var Z_TEXT = 1; -//var Z_ASCII = 1; // = Z_TEXT -var Z_UNKNOWN = 2; - - -/* The deflate compression method */ -var Z_DEFLATED$2 = 8; - -/*============================================================================*/ - - -var MAX_MEM_LEVEL = 9; -/* Maximum value for memLevel in deflateInit2 */ -var MAX_WBITS$1 = 15; -/* 32K LZ77 window */ -var DEF_MEM_LEVEL = 8; - - -var LENGTH_CODES = 29; -/* number of length codes, not counting the special END_BLOCK code */ -var LITERALS = 256; -/* number of literal bytes 0..255 */ -var L_CODES = LITERALS + 1 + LENGTH_CODES; -/* number of Literal or Length codes, including the END_BLOCK code */ -var D_CODES = 30; -/* number of distance codes */ -var BL_CODES = 19; -/* number of codes used to transfer the bit lengths */ -var HEAP_SIZE = 2 * L_CODES + 1; -/* maximum heap size */ -var MAX_BITS = 15; -/* All codes must not exceed MAX_BITS bits */ - -var MIN_MATCH = 3; -var MAX_MATCH = 258; -var MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1); - -var PRESET_DICT = 0x20; - -var INIT_STATE = 42; -var EXTRA_STATE = 69; -var NAME_STATE = 73; -var COMMENT_STATE = 91; -var HCRC_STATE = 103; -var BUSY_STATE = 113; -var FINISH_STATE = 666; - -var BS_NEED_MORE = 1; /* block not completed, need more input or more output */ -var BS_BLOCK_DONE = 2; /* block flush performed */ -var BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */ -var BS_FINISH_DONE = 4; /* finish done, accept no more input or output */ - -var OS_CODE = 0x03; // Unix :) . Don't detect, use this default. - -function err(strm, errorCode) { - strm.msg = msg$2[errorCode]; - return errorCode; -} - -function rank(f) { - return ((f) << 1) - ((f) > 4 ? 9 : 0); -} - -function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } } - - -/* ========================================================================= - * Flush as much pending output as possible. All deflate() output goes - * through this function so some applications may wish to modify it - * to avoid allocating a large strm->output buffer and copying into it. - * (See also read_buf()). - */ -function flush_pending(strm) { - var s = strm.state; - - //_tr_flush_bits(s); - var len = s.pending; - if (len > strm.avail_out) { - len = strm.avail_out; - } - if (len === 0) { return; } - - utils$5.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out); - strm.next_out += len; - s.pending_out += len; - strm.total_out += len; - strm.avail_out -= len; - s.pending -= len; - if (s.pending === 0) { - s.pending_out = 0; - } -} - - -function flush_block_only(s, last) { - trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last); - s.block_start = s.strstart; - flush_pending(s.strm); -} - - -function put_byte(s, b) { - s.pending_buf[s.pending++] = b; -} - - -/* ========================================================================= - * Put a short in the pending buffer. The 16-bit value is put in MSB order. - * IN assertion: the stream state is correct and there is enough room in - * pending_buf. - */ -function putShortMSB(s, b) { -// put_byte(s, (Byte)(b >> 8)); -// put_byte(s, (Byte)(b & 0xff)); - s.pending_buf[s.pending++] = (b >>> 8) & 0xff; - s.pending_buf[s.pending++] = b & 0xff; -} - - -/* =========================================================================== - * Read a new buffer from the current input stream, update the adler32 - * and total number of bytes read. All deflate() input goes through - * this function so some applications may wish to modify it to avoid - * allocating a large strm->input buffer and copying from it. - * (See also flush_pending()). - */ -function read_buf(strm, buf, start, size) { - var len = strm.avail_in; - - if (len > size) { len = size; } - if (len === 0) { return 0; } - - strm.avail_in -= len; - - // zmemcpy(buf, strm->next_in, len); - utils$5.arraySet(buf, strm.input, strm.next_in, len, start); - if (strm.state.wrap === 1) { - strm.adler = adler32$1(strm.adler, buf, len, start); - } - - else if (strm.state.wrap === 2) { - strm.adler = crc32$1(strm.adler, buf, len, start); - } - - strm.next_in += len; - strm.total_in += len; - - return len; -} - - -/* =========================================================================== - * Set match_start to the longest match starting at the given string and - * return its length. Matches shorter or equal to prev_length are discarded, - * in which case the result is equal to prev_length and match_start is - * garbage. - * IN assertions: cur_match is the head of the hash chain for the current - * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1 - * OUT assertion: the match length is not greater than s->lookahead. - */ -function longest_match(s, cur_match) { - var chain_length = s.max_chain_length; /* max hash chain length */ - var scan = s.strstart; /* current string */ - var match; /* matched string */ - var len; /* length of current match */ - var best_len = s.prev_length; /* best match length so far */ - var nice_match = s.nice_match; /* stop if match long enough */ - var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ? - s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/; - - var _win = s.window; // shortcut - - var wmask = s.w_mask; - var prev = s.prev; - - /* Stop when cur_match becomes <= limit. To simplify the code, - * we prevent matches with the string of window index 0. - */ - - var strend = s.strstart + MAX_MATCH; - var scan_end1 = _win[scan + best_len - 1]; - var scan_end = _win[scan + best_len]; - - /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16. - * It is easy to get rid of this optimization if necessary. - */ - // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); - - /* Do not waste too much time if we already have a good match: */ - if (s.prev_length >= s.good_match) { - chain_length >>= 2; - } - /* Do not look for matches beyond the end of the input. This is necessary - * to make deflate deterministic. - */ - if (nice_match > s.lookahead) { nice_match = s.lookahead; } - - // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead"); - - do { - // Assert(cur_match < s->strstart, "no future"); - match = cur_match; - - /* Skip to next match if the match length cannot increase - * or if the match length is less than 2. Note that the checks below - * for insufficient lookahead only occur occasionally for performance - * reasons. Therefore uninitialized memory will be accessed, and - * conditional jumps will be made that depend on those values. - * However the length of the match is limited to the lookahead, so - * the output of deflate is not affected by the uninitialized values. - */ - - if (_win[match + best_len] !== scan_end || - _win[match + best_len - 1] !== scan_end1 || - _win[match] !== _win[scan] || - _win[++match] !== _win[scan + 1]) { - continue; - } - - /* The check at best_len-1 can be removed because it will be made - * again later. (This heuristic is not always a win.) - * It is not necessary to compare scan[2] and match[2] since they - * are always equal when the other bytes match, given that - * the hash keys are equal and that HASH_BITS >= 8. - */ - scan += 2; - match++; - // Assert(*scan == *match, "match[2]?"); - - /* We check for insufficient lookahead only every 8th comparison; - * the 256th check will be made at strstart+258. - */ - do { - /*jshint noempty:false*/ - } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && - _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && - _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && - _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && - scan < strend); - - // Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan"); - - len = MAX_MATCH - (strend - scan); - scan = strend - MAX_MATCH; - - if (len > best_len) { - s.match_start = cur_match; - best_len = len; - if (len >= nice_match) { - break; - } - scan_end1 = _win[scan + best_len - 1]; - scan_end = _win[scan + best_len]; - } - } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0); - - if (best_len <= s.lookahead) { - return best_len; - } - return s.lookahead; -} - - -/* =========================================================================== - * Fill the window when the lookahead becomes insufficient. - * Updates strstart and lookahead. - * - * IN assertion: lookahead < MIN_LOOKAHEAD - * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD - * At least one byte has been read, or avail_in == 0; reads are - * performed for at least two bytes (required for the zip translate_eol - * option -- not supported here). - */ -function fill_window(s) { - var _w_size = s.w_size; - var p, n, m, more, str; - - //Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead"); - - do { - more = s.window_size - s.lookahead - s.strstart; - - // JS ints have 32 bit, block below not needed - /* Deal with !@#$% 64K limit: */ - //if (sizeof(int) <= 2) { - // if (more == 0 && s->strstart == 0 && s->lookahead == 0) { - // more = wsize; - // - // } else if (more == (unsigned)(-1)) { - // /* Very unlikely, but possible on 16 bit machine if - // * strstart == 0 && lookahead == 1 (input done a byte at time) - // */ - // more--; - // } - //} - - - /* If the window is almost full and there is insufficient lookahead, - * move the upper half to the lower one to make room in the upper half. - */ - if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) { - - utils$5.arraySet(s.window, s.window, _w_size, _w_size, 0); - s.match_start -= _w_size; - s.strstart -= _w_size; - /* we now have strstart >= MAX_DIST */ - s.block_start -= _w_size; - - /* Slide the hash table (could be avoided with 32 bit values - at the expense of memory usage). We slide even when level == 0 - to keep the hash table consistent if we switch back to level > 0 - later. (Using level 0 permanently is not an optimal usage of - zlib, so we don't care about this pathological case.) - */ - - n = s.hash_size; - p = n; - do { - m = s.head[--p]; - s.head[p] = (m >= _w_size ? m - _w_size : 0); - } while (--n); - - n = _w_size; - p = n; - do { - m = s.prev[--p]; - s.prev[p] = (m >= _w_size ? m - _w_size : 0); - /* If n is not on any hash chain, prev[n] is garbage but - * its value will never be used. - */ - } while (--n); - - more += _w_size; - } - if (s.strm.avail_in === 0) { - break; - } - - /* If there was no sliding: - * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 && - * more == window_size - lookahead - strstart - * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1) - * => more >= window_size - 2*WSIZE + 2 - * In the BIG_MEM or MMAP case (not yet supported), - * window_size == input_size + MIN_LOOKAHEAD && - * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD. - * Otherwise, window_size == 2*WSIZE so more >= 2. - * If there was sliding, more >= WSIZE. So in all cases, more >= 2. - */ - //Assert(more >= 2, "more < 2"); - n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more); - s.lookahead += n; - - /* Initialize the hash value now that we have some input: */ - if (s.lookahead + s.insert >= MIN_MATCH) { - str = s.strstart - s.insert; - s.ins_h = s.window[str]; - - /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */ - s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask; -//#if MIN_MATCH != 3 -// Call update_hash() MIN_MATCH-3 more times -//#endif - while (s.insert) { - /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */ - s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask; - - s.prev[str & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = str; - str++; - s.insert--; - if (s.lookahead + s.insert < MIN_MATCH) { - break; - } - } - } - /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage, - * but this is not important since only literal bytes will be emitted. - */ - - } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0); - - /* If the WIN_INIT bytes after the end of the current data have never been - * written, then zero those bytes in order to avoid memory check reports of - * the use of uninitialized (or uninitialised as Julian writes) bytes by - * the longest match routines. Update the high water mark for the next - * time through here. WIN_INIT is set to MAX_MATCH since the longest match - * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead. - */ -// if (s.high_water < s.window_size) { -// var curr = s.strstart + s.lookahead; -// var init = 0; -// -// if (s.high_water < curr) { -// /* Previous high water mark below current data -- zero WIN_INIT -// * bytes or up to end of window, whichever is less. -// */ -// init = s.window_size - curr; -// if (init > WIN_INIT) -// init = WIN_INIT; -// zmemzero(s->window + curr, (unsigned)init); -// s->high_water = curr + init; -// } -// else if (s->high_water < (ulg)curr + WIN_INIT) { -// /* High water mark at or above current data, but below current data -// * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up -// * to end of window, whichever is less. -// */ -// init = (ulg)curr + WIN_INIT - s->high_water; -// if (init > s->window_size - s->high_water) -// init = s->window_size - s->high_water; -// zmemzero(s->window + s->high_water, (unsigned)init); -// s->high_water += init; -// } -// } -// -// Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD, -// "not enough room for search"); -} - -/* =========================================================================== - * Copy without compression as much as possible from the input stream, return - * the current block state. - * This function does not insert new strings in the dictionary since - * uncompressible data is probably not useful. This function is used - * only for the level=0 compression option. - * NOTE: this function should be optimized to avoid extra copying from - * window to pending_buf. - */ -function deflate_stored(s, flush) { - /* Stored blocks are limited to 0xffff bytes, pending_buf is limited - * to pending_buf_size, and each stored block has a 5 byte header: - */ - var max_block_size = 0xffff; - - if (max_block_size > s.pending_buf_size - 5) { - max_block_size = s.pending_buf_size - 5; - } - - /* Copy as much as possible from input to output: */ - for (;;) { - /* Fill the window as much as possible: */ - if (s.lookahead <= 1) { - - //Assert(s->strstart < s->w_size+MAX_DIST(s) || - // s->block_start >= (long)s->w_size, "slide too late"); -// if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) || -// s.block_start >= s.w_size)) { -// throw new Error("slide too late"); -// } - - fill_window(s); - if (s.lookahead === 0 && flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - - if (s.lookahead === 0) { - break; - } - /* flush the current block */ - } - //Assert(s->block_start >= 0L, "block gone"); -// if (s.block_start < 0) throw new Error("block gone"); - - s.strstart += s.lookahead; - s.lookahead = 0; - - /* Emit a stored block if pending_buf will be full: */ - var max_start = s.block_start + max_block_size; - - if (s.strstart === 0 || s.strstart >= max_start) { - /* strstart == 0 is possible when wraparound on 16-bit machine */ - s.lookahead = s.strstart - max_start; - s.strstart = max_start; - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - - - } - /* Flush if we may have to slide, otherwise block_start may become - * negative and the data will be gone: - */ - if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - } - - s.insert = 0; - - if (flush === Z_FINISH$2) { - /*** FLUSH_BLOCK(s, 1); ***/ - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - /***/ - return BS_FINISH_DONE; - } - - if (s.strstart > s.block_start) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - - return BS_NEED_MORE; -} - -/* =========================================================================== - * Compress as much as possible from the input stream, return the current - * block state. - * This function does not perform lazy evaluation of matches and inserts - * new strings in the dictionary only for unmatched strings or for short - * matches. It is used only for the fast compression options. - */ -function deflate_fast(s, flush) { - var hash_head; /* head of the hash chain */ - var bflush; /* set if current block must be flushed */ - - for (;;) { - /* Make sure that we always have enough lookahead, except - * at the end of the input file. We need MAX_MATCH bytes - * for the next match, plus MIN_MATCH bytes to insert the - * string following the next match. - */ - if (s.lookahead < MIN_LOOKAHEAD) { - fill_window(s); - if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - if (s.lookahead === 0) { - break; /* flush the current block */ - } - } - - /* Insert the string window[strstart .. strstart+2] in the - * dictionary, and set hash_head to the head of the hash chain: - */ - hash_head = 0/*NIL*/; - if (s.lookahead >= MIN_MATCH) { - /*** INSERT_STRING(s, s.strstart, hash_head); ***/ - s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; - hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = s.strstart; - /***/ - } - - /* Find the longest match, discarding those <= prev_length. - * At this point we have always match_length < MIN_MATCH - */ - if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) { - /* To simplify the code, we prevent matches with the string - * of window index 0 (in particular we have to avoid a match - * of the string with itself at the start of the input file). - */ - s.match_length = longest_match(s, hash_head); - /* longest_match() sets match_start */ - } - if (s.match_length >= MIN_MATCH) { - // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only - - /*** _tr_tally_dist(s, s.strstart - s.match_start, - s.match_length - MIN_MATCH, bflush); ***/ - bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH); - - s.lookahead -= s.match_length; - - /* Insert new strings in the hash table only if the match length - * is not too large. This saves time but degrades compression. - */ - if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) { - s.match_length--; /* string at strstart already in table */ - do { - s.strstart++; - /*** INSERT_STRING(s, s.strstart, hash_head); ***/ - s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; - hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = s.strstart; - /***/ - /* strstart never exceeds WSIZE-MAX_MATCH, so there are - * always MIN_MATCH bytes ahead. - */ - } while (--s.match_length !== 0); - s.strstart++; - } else - { - s.strstart += s.match_length; - s.match_length = 0; - s.ins_h = s.window[s.strstart]; - /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */ - s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask; - -//#if MIN_MATCH != 3 -// Call UPDATE_HASH() MIN_MATCH-3 more times -//#endif - /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not - * matter since it will be recomputed at next deflate call. - */ - } - } else { - /* No match, output a literal byte */ - //Tracevv((stderr,"%c", s.window[s.strstart])); - /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/ - bflush = trees._tr_tally(s, 0, s.window[s.strstart]); - - s.lookahead--; - s.strstart++; - } - if (bflush) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - } - s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1); - if (flush === Z_FINISH$2) { - /*** FLUSH_BLOCK(s, 1); ***/ - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - /***/ - return BS_FINISH_DONE; - } - if (s.last_lit) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - return BS_BLOCK_DONE; -} - -/* =========================================================================== - * Same as above, but achieves better compression. We use a lazy - * evaluation for matches: a match is finally adopted only if there is - * no better match at the next window position. - */ -function deflate_slow(s, flush) { - var hash_head; /* head of hash chain */ - var bflush; /* set if current block must be flushed */ - - var max_insert; - - /* Process the input block. */ - for (;;) { - /* Make sure that we always have enough lookahead, except - * at the end of the input file. We need MAX_MATCH bytes - * for the next match, plus MIN_MATCH bytes to insert the - * string following the next match. - */ - if (s.lookahead < MIN_LOOKAHEAD) { - fill_window(s); - if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - if (s.lookahead === 0) { break; } /* flush the current block */ - } - - /* Insert the string window[strstart .. strstart+2] in the - * dictionary, and set hash_head to the head of the hash chain: - */ - hash_head = 0/*NIL*/; - if (s.lookahead >= MIN_MATCH) { - /*** INSERT_STRING(s, s.strstart, hash_head); ***/ - s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; - hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = s.strstart; - /***/ - } - - /* Find the longest match, discarding those <= prev_length. - */ - s.prev_length = s.match_length; - s.prev_match = s.match_start; - s.match_length = MIN_MATCH - 1; - - if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match && - s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) { - /* To simplify the code, we prevent matches with the string - * of window index 0 (in particular we have to avoid a match - * of the string with itself at the start of the input file). - */ - s.match_length = longest_match(s, hash_head); - /* longest_match() sets match_start */ - - if (s.match_length <= 5 && - (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) { - - /* If prev_match is also MIN_MATCH, match_start is garbage - * but we will ignore the current match anyway. - */ - s.match_length = MIN_MATCH - 1; - } - } - /* If there was a match at the previous step and the current - * match is not better, output the previous match: - */ - if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) { - max_insert = s.strstart + s.lookahead - MIN_MATCH; - /* Do not insert strings in hash table beyond this. */ - - //check_match(s, s.strstart-1, s.prev_match, s.prev_length); - - /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match, - s.prev_length - MIN_MATCH, bflush);***/ - bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH); - /* Insert in hash table all strings up to the end of the match. - * strstart-1 and strstart are already inserted. If there is not - * enough lookahead, the last two strings are not inserted in - * the hash table. - */ - s.lookahead -= s.prev_length - 1; - s.prev_length -= 2; - do { - if (++s.strstart <= max_insert) { - /*** INSERT_STRING(s, s.strstart, hash_head); ***/ - s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask; - hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h]; - s.head[s.ins_h] = s.strstart; - /***/ - } - } while (--s.prev_length !== 0); - s.match_available = 0; - s.match_length = MIN_MATCH - 1; - s.strstart++; - - if (bflush) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - - } else if (s.match_available) { - /* If there was no match at the previous position, output a - * single literal. If there was a match but the current match - * is longer, truncate the previous match to a single literal. - */ - //Tracevv((stderr,"%c", s->window[s->strstart-1])); - /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/ - bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]); - - if (bflush) { - /*** FLUSH_BLOCK_ONLY(s, 0) ***/ - flush_block_only(s, false); - /***/ - } - s.strstart++; - s.lookahead--; - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - } else { - /* There is no previous match to compare with, wait for - * the next step to decide. - */ - s.match_available = 1; - s.strstart++; - s.lookahead--; - } - } - //Assert (flush != Z_NO_FLUSH, "no flush?"); - if (s.match_available) { - //Tracevv((stderr,"%c", s->window[s->strstart-1])); - /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/ - bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]); - - s.match_available = 0; - } - s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1; - if (flush === Z_FINISH$2) { - /*** FLUSH_BLOCK(s, 1); ***/ - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - /***/ - return BS_FINISH_DONE; - } - if (s.last_lit) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - - return BS_BLOCK_DONE; -} - - -/* =========================================================================== - * For Z_RLE, simply look for runs of bytes, generate matches only of distance - * one. Do not maintain a hash table. (It will be regenerated if this run of - * deflate switches away from Z_RLE.) - */ -function deflate_rle(s, flush) { - var bflush; /* set if current block must be flushed */ - var prev; /* byte at distance one to match */ - var scan, strend; /* scan goes up to strend for length of run */ - - var _win = s.window; - - for (;;) { - /* Make sure that we always have enough lookahead, except - * at the end of the input file. We need MAX_MATCH bytes - * for the longest run, plus one for the unrolled loop. - */ - if (s.lookahead <= MAX_MATCH) { - fill_window(s); - if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - if (s.lookahead === 0) { break; } /* flush the current block */ - } - - /* See how many times the previous byte repeats */ - s.match_length = 0; - if (s.lookahead >= MIN_MATCH && s.strstart > 0) { - scan = s.strstart - 1; - prev = _win[scan]; - if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) { - strend = s.strstart + MAX_MATCH; - do { - /*jshint noempty:false*/ - } while (prev === _win[++scan] && prev === _win[++scan] && - prev === _win[++scan] && prev === _win[++scan] && - prev === _win[++scan] && prev === _win[++scan] && - prev === _win[++scan] && prev === _win[++scan] && - scan < strend); - s.match_length = MAX_MATCH - (strend - scan); - if (s.match_length > s.lookahead) { - s.match_length = s.lookahead; - } - } - //Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan"); - } - - /* Emit match if have run of MIN_MATCH or longer, else emit literal */ - if (s.match_length >= MIN_MATCH) { - //check_match(s, s.strstart, s.strstart - 1, s.match_length); - - /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/ - bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH); - - s.lookahead -= s.match_length; - s.strstart += s.match_length; - s.match_length = 0; - } else { - /* No match, output a literal byte */ - //Tracevv((stderr,"%c", s->window[s->strstart])); - /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/ - bflush = trees._tr_tally(s, 0, s.window[s.strstart]); - - s.lookahead--; - s.strstart++; - } - if (bflush) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - } - s.insert = 0; - if (flush === Z_FINISH$2) { - /*** FLUSH_BLOCK(s, 1); ***/ - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - /***/ - return BS_FINISH_DONE; - } - if (s.last_lit) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - return BS_BLOCK_DONE; -} - -/* =========================================================================== - * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table. - * (It will be regenerated if this run of deflate switches away from Huffman.) - */ -function deflate_huff(s, flush) { - var bflush; /* set if current block must be flushed */ - - for (;;) { - /* Make sure that we have a literal to write. */ - if (s.lookahead === 0) { - fill_window(s); - if (s.lookahead === 0) { - if (flush === Z_NO_FLUSH$1) { - return BS_NEED_MORE; - } - break; /* flush the current block */ - } - } - - /* Output a literal byte */ - s.match_length = 0; - //Tracevv((stderr,"%c", s->window[s->strstart])); - /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/ - bflush = trees._tr_tally(s, 0, s.window[s.strstart]); - s.lookahead--; - s.strstart++; - if (bflush) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - } - s.insert = 0; - if (flush === Z_FINISH$2) { - /*** FLUSH_BLOCK(s, 1); ***/ - flush_block_only(s, true); - if (s.strm.avail_out === 0) { - return BS_FINISH_STARTED; - } - /***/ - return BS_FINISH_DONE; - } - if (s.last_lit) { - /*** FLUSH_BLOCK(s, 0); ***/ - flush_block_only(s, false); - if (s.strm.avail_out === 0) { - return BS_NEED_MORE; - } - /***/ - } - return BS_BLOCK_DONE; -} - -/* Values for max_lazy_match, good_match and max_chain_length, depending on - * the desired pack level (0..9). The values given below have been tuned to - * exclude worst case performance for pathological files. Better values may be - * found for specific files. - */ -function Config(good_length, max_lazy, nice_length, max_chain, func) { - this.good_length = good_length; - this.max_lazy = max_lazy; - this.nice_length = nice_length; - this.max_chain = max_chain; - this.func = func; -} - -var configuration_table; - -configuration_table = [ - /* good lazy nice chain */ - new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */ - new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */ - new Config(4, 5, 16, 8, deflate_fast), /* 2 */ - new Config(4, 6, 32, 32, deflate_fast), /* 3 */ - - new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */ - new Config(8, 16, 32, 32, deflate_slow), /* 5 */ - new Config(8, 16, 128, 128, deflate_slow), /* 6 */ - new Config(8, 32, 128, 256, deflate_slow), /* 7 */ - new Config(32, 128, 258, 1024, deflate_slow), /* 8 */ - new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */ -]; - - -/* =========================================================================== - * Initialize the "longest match" routines for a new zlib stream - */ -function lm_init(s) { - s.window_size = 2 * s.w_size; - - /*** CLEAR_HASH(s); ***/ - zero(s.head); // Fill with NIL (= 0); - - /* Set the default configuration parameters: - */ - s.max_lazy_match = configuration_table[s.level].max_lazy; - s.good_match = configuration_table[s.level].good_length; - s.nice_match = configuration_table[s.level].nice_length; - s.max_chain_length = configuration_table[s.level].max_chain; - - s.strstart = 0; - s.block_start = 0; - s.lookahead = 0; - s.insert = 0; - s.match_length = s.prev_length = MIN_MATCH - 1; - s.match_available = 0; - s.ins_h = 0; -} - - -function DeflateState() { - this.strm = null; /* pointer back to this zlib stream */ - this.status = 0; /* as the name implies */ - this.pending_buf = null; /* output still pending */ - this.pending_buf_size = 0; /* size of pending_buf */ - this.pending_out = 0; /* next pending byte to output to the stream */ - this.pending = 0; /* nb of bytes in the pending buffer */ - this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */ - this.gzhead = null; /* gzip header information to write */ - this.gzindex = 0; /* where in extra, name, or comment */ - this.method = Z_DEFLATED$2; /* can only be DEFLATED */ - this.last_flush = -1; /* value of flush param for previous deflate call */ - - this.w_size = 0; /* LZ77 window size (32K by default) */ - this.w_bits = 0; /* log2(w_size) (8..16) */ - this.w_mask = 0; /* w_size - 1 */ - - this.window = null; - /* Sliding window. Input bytes are read into the second half of the window, - * and move to the first half later to keep a dictionary of at least wSize - * bytes. With this organization, matches are limited to a distance of - * wSize-MAX_MATCH bytes, but this ensures that IO is always - * performed with a length multiple of the block size. - */ - - this.window_size = 0; - /* Actual size of window: 2*wSize, except when the user input buffer - * is directly used as sliding window. - */ - - this.prev = null; - /* Link to older string with same hash index. To limit the size of this - * array to 64K, this link is maintained only for the last 32K strings. - * An index in this array is thus a window index modulo 32K. - */ - - this.head = null; /* Heads of the hash chains or NIL. */ - - this.ins_h = 0; /* hash index of string to be inserted */ - this.hash_size = 0; /* number of elements in hash table */ - this.hash_bits = 0; /* log2(hash_size) */ - this.hash_mask = 0; /* hash_size-1 */ - - this.hash_shift = 0; - /* Number of bits by which ins_h must be shifted at each input - * step. It must be such that after MIN_MATCH steps, the oldest - * byte no longer takes part in the hash key, that is: - * hash_shift * MIN_MATCH >= hash_bits - */ - - this.block_start = 0; - /* Window position at the beginning of the current output block. Gets - * negative when the window is moved backwards. - */ - - this.match_length = 0; /* length of best match */ - this.prev_match = 0; /* previous match */ - this.match_available = 0; /* set if previous match exists */ - this.strstart = 0; /* start of string to insert */ - this.match_start = 0; /* start of matching string */ - this.lookahead = 0; /* number of valid bytes ahead in window */ - - this.prev_length = 0; - /* Length of the best match at previous step. Matches not greater than this - * are discarded. This is used in the lazy match evaluation. - */ - - this.max_chain_length = 0; - /* To speed up deflation, hash chains are never searched beyond this - * length. A higher limit improves compression ratio but degrades the - * speed. - */ - - this.max_lazy_match = 0; - /* Attempt to find a better match only when the current match is strictly - * smaller than this value. This mechanism is used only for compression - * levels >= 4. - */ - // That's alias to max_lazy_match, don't use directly - //this.max_insert_length = 0; - /* Insert new strings in the hash table only if the match length is not - * greater than this length. This saves time but degrades compression. - * max_insert_length is used only for compression levels <= 3. - */ - - this.level = 0; /* compression level (1..9) */ - this.strategy = 0; /* favor or force Huffman coding*/ - - this.good_match = 0; - /* Use a faster search when the previous match is longer than this */ - - this.nice_match = 0; /* Stop searching when current match exceeds this */ - - /* used by trees.c: */ - - /* Didn't use ct_data typedef below to suppress compiler warning */ - - // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ - // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */ - // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */ - - // Use flat array of DOUBLE size, with interleaved fata, - // because JS does not support effective - this.dyn_ltree = new utils$5.Buf16(HEAP_SIZE * 2); - this.dyn_dtree = new utils$5.Buf16((2 * D_CODES + 1) * 2); - this.bl_tree = new utils$5.Buf16((2 * BL_CODES + 1) * 2); - zero(this.dyn_ltree); - zero(this.dyn_dtree); - zero(this.bl_tree); - - this.l_desc = null; /* desc. for literal tree */ - this.d_desc = null; /* desc. for distance tree */ - this.bl_desc = null; /* desc. for bit length tree */ - - //ush bl_count[MAX_BITS+1]; - this.bl_count = new utils$5.Buf16(MAX_BITS + 1); - /* number of codes at each bit length for an optimal tree */ - - //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */ - this.heap = new utils$5.Buf16(2 * L_CODES + 1); /* heap used to build the Huffman trees */ - zero(this.heap); - - this.heap_len = 0; /* number of elements in the heap */ - this.heap_max = 0; /* element of largest frequency */ - /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used. - * The same heap array is used to build all trees. - */ - - this.depth = new utils$5.Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1]; - zero(this.depth); - /* Depth of each subtree used as tie breaker for trees of equal frequency - */ - - this.l_buf = 0; /* buffer index for literals or lengths */ - - this.lit_bufsize = 0; - /* Size of match buffer for literals/lengths. There are 4 reasons for - * limiting lit_bufsize to 64K: - * - frequencies can be kept in 16 bit counters - * - if compression is not successful for the first block, all input - * data is still in the window so we can still emit a stored block even - * when input comes from standard input. (This can also be done for - * all blocks if lit_bufsize is not greater than 32K.) - * - if compression is not successful for a file smaller than 64K, we can - * even emit a stored file instead of a stored block (saving 5 bytes). - * This is applicable only for zip (not gzip or zlib). - * - creating new Huffman trees less frequently may not provide fast - * adaptation to changes in the input data statistics. (Take for - * example a binary file with poorly compressible code followed by - * a highly compressible string table.) Smaller buffer sizes give - * fast adaptation but have of course the overhead of transmitting - * trees more frequently. - * - I can't count above 4 - */ - - this.last_lit = 0; /* running index in l_buf */ - - this.d_buf = 0; - /* Buffer index for distances. To simplify the code, d_buf and l_buf have - * the same number of elements. To use different lengths, an extra flag - * array would be necessary. - */ - - this.opt_len = 0; /* bit length of current block with optimal trees */ - this.static_len = 0; /* bit length of current block with static trees */ - this.matches = 0; /* number of string matches in current block */ - this.insert = 0; /* bytes at end of window left to insert */ - - - this.bi_buf = 0; - /* Output buffer. bits are inserted starting at the bottom (least - * significant bits). - */ - this.bi_valid = 0; - /* Number of valid bits in bi_buf. All bits above the last valid bit - * are always zero. - */ - - // Used for window memory init. We safely ignore it for JS. That makes - // sense only for pointers and memory check tools. - //this.high_water = 0; - /* High water mark offset in window for initialized bytes -- bytes above - * this are set to zero in order to avoid memory check warnings when - * longest match routines access bytes past the input. This is then - * updated to the new high water mark. - */ -} - - -function deflateResetKeep(strm) { - var s; - - if (!strm || !strm.state) { - return err(strm, Z_STREAM_ERROR$1); - } - - strm.total_in = strm.total_out = 0; - strm.data_type = Z_UNKNOWN; - - s = strm.state; - s.pending = 0; - s.pending_out = 0; - - if (s.wrap < 0) { - s.wrap = -s.wrap; - /* was made negative by deflate(..., Z_FINISH); */ - } - s.status = (s.wrap ? INIT_STATE : BUSY_STATE); - strm.adler = (s.wrap === 2) ? - 0 // crc32(0, Z_NULL, 0) - : - 1; // adler32(0, Z_NULL, 0) - s.last_flush = Z_NO_FLUSH$1; - trees._tr_init(s); - return Z_OK$2; -} - - -function deflateReset(strm) { - var ret = deflateResetKeep(strm); - if (ret === Z_OK$2) { - lm_init(strm.state); - } - return ret; -} - - -function deflateSetHeader(strm, head) { - if (!strm || !strm.state) { return Z_STREAM_ERROR$1; } - if (strm.state.wrap !== 2) { return Z_STREAM_ERROR$1; } - strm.state.gzhead = head; - return Z_OK$2; -} - - -function deflateInit2(strm, level, method, windowBits, memLevel, strategy) { - if (!strm) { // === Z_NULL - return Z_STREAM_ERROR$1; - } - var wrap = 1; - - if (level === Z_DEFAULT_COMPRESSION$1) { - level = 6; - } - - if (windowBits < 0) { /* suppress zlib wrapper */ - wrap = 0; - windowBits = -windowBits; - } - - else if (windowBits > 15) { - wrap = 2; /* write gzip wrapper instead */ - windowBits -= 16; - } - - - if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED$2 || - windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || - strategy < 0 || strategy > Z_FIXED) { - return err(strm, Z_STREAM_ERROR$1); - } - - - if (windowBits === 8) { - windowBits = 9; - } - /* until 256-byte window bug fixed */ - - var s = new DeflateState(); - - strm.state = s; - s.strm = strm; - - s.wrap = wrap; - s.gzhead = null; - s.w_bits = windowBits; - s.w_size = 1 << s.w_bits; - s.w_mask = s.w_size - 1; - - s.hash_bits = memLevel + 7; - s.hash_size = 1 << s.hash_bits; - s.hash_mask = s.hash_size - 1; - s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH); - - s.window = new utils$5.Buf8(s.w_size * 2); - s.head = new utils$5.Buf16(s.hash_size); - s.prev = new utils$5.Buf16(s.w_size); - - // Don't need mem init magic for JS. - //s.high_water = 0; /* nothing written to s->window yet */ - - s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */ - - s.pending_buf_size = s.lit_bufsize * 4; - - //overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2); - //s->pending_buf = (uchf *) overlay; - s.pending_buf = new utils$5.Buf8(s.pending_buf_size); - - // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`) - //s->d_buf = overlay + s->lit_bufsize/sizeof(ush); - s.d_buf = 1 * s.lit_bufsize; - - //s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize; - s.l_buf = (1 + 2) * s.lit_bufsize; - - s.level = level; - s.strategy = strategy; - s.method = method; - - return deflateReset(strm); -} - -function deflateInit(strm, level) { - return deflateInit2(strm, level, Z_DEFLATED$2, MAX_WBITS$1, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY$1); -} - - -function deflate$2(strm, flush) { - var old_flush, s; - var beg, val; // for gzip header write only - - if (!strm || !strm.state || - flush > Z_BLOCK$1 || flush < 0) { - return strm ? err(strm, Z_STREAM_ERROR$1) : Z_STREAM_ERROR$1; - } - - s = strm.state; - - if (!strm.output || - (!strm.input && strm.avail_in !== 0) || - (s.status === FINISH_STATE && flush !== Z_FINISH$2)) { - return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR$1 : Z_STREAM_ERROR$1); - } - - s.strm = strm; /* just in case */ - old_flush = s.last_flush; - s.last_flush = flush; - - /* Write the header */ - if (s.status === INIT_STATE) { - - if (s.wrap === 2) { // GZIP header - strm.adler = 0; //crc32(0L, Z_NULL, 0); - put_byte(s, 31); - put_byte(s, 139); - put_byte(s, 8); - if (!s.gzhead) { // s->gzhead == Z_NULL - put_byte(s, 0); - put_byte(s, 0); - put_byte(s, 0); - put_byte(s, 0); - put_byte(s, 0); - put_byte(s, s.level === 9 ? 2 : - (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? - 4 : 0)); - put_byte(s, OS_CODE); - s.status = BUSY_STATE; - } - else { - put_byte(s, (s.gzhead.text ? 1 : 0) + - (s.gzhead.hcrc ? 2 : 0) + - (!s.gzhead.extra ? 0 : 4) + - (!s.gzhead.name ? 0 : 8) + - (!s.gzhead.comment ? 0 : 16) - ); - put_byte(s, s.gzhead.time & 0xff); - put_byte(s, (s.gzhead.time >> 8) & 0xff); - put_byte(s, (s.gzhead.time >> 16) & 0xff); - put_byte(s, (s.gzhead.time >> 24) & 0xff); - put_byte(s, s.level === 9 ? 2 : - (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? - 4 : 0)); - put_byte(s, s.gzhead.os & 0xff); - if (s.gzhead.extra && s.gzhead.extra.length) { - put_byte(s, s.gzhead.extra.length & 0xff); - put_byte(s, (s.gzhead.extra.length >> 8) & 0xff); - } - if (s.gzhead.hcrc) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending, 0); - } - s.gzindex = 0; - s.status = EXTRA_STATE; - } - } - else // DEFLATE header - { - var header = (Z_DEFLATED$2 + ((s.w_bits - 8) << 4)) << 8; - var level_flags = -1; - - if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) { - level_flags = 0; - } else if (s.level < 6) { - level_flags = 1; - } else if (s.level === 6) { - level_flags = 2; - } else { - level_flags = 3; - } - header |= (level_flags << 6); - if (s.strstart !== 0) { header |= PRESET_DICT; } - header += 31 - (header % 31); - - s.status = BUSY_STATE; - putShortMSB(s, header); - - /* Save the adler32 of the preset dictionary: */ - if (s.strstart !== 0) { - putShortMSB(s, strm.adler >>> 16); - putShortMSB(s, strm.adler & 0xffff); - } - strm.adler = 1; // adler32(0L, Z_NULL, 0); - } - } - -//#ifdef GZIP - if (s.status === EXTRA_STATE) { - if (s.gzhead.extra/* != Z_NULL*/) { - beg = s.pending; /* start of bytes to update crc */ - - while (s.gzindex < (s.gzhead.extra.length & 0xffff)) { - if (s.pending === s.pending_buf_size) { - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - flush_pending(strm); - beg = s.pending; - if (s.pending === s.pending_buf_size) { - break; - } - } - put_byte(s, s.gzhead.extra[s.gzindex] & 0xff); - s.gzindex++; - } - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - if (s.gzindex === s.gzhead.extra.length) { - s.gzindex = 0; - s.status = NAME_STATE; - } - } - else { - s.status = NAME_STATE; - } - } - if (s.status === NAME_STATE) { - if (s.gzhead.name/* != Z_NULL*/) { - beg = s.pending; /* start of bytes to update crc */ - //int val; - - do { - if (s.pending === s.pending_buf_size) { - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - flush_pending(strm); - beg = s.pending; - if (s.pending === s.pending_buf_size) { - val = 1; - break; - } - } - // JS specific: little magic to add zero terminator to end of string - if (s.gzindex < s.gzhead.name.length) { - val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff; - } else { - val = 0; - } - put_byte(s, val); - } while (val !== 0); - - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - if (val === 0) { - s.gzindex = 0; - s.status = COMMENT_STATE; - } - } - else { - s.status = COMMENT_STATE; - } - } - if (s.status === COMMENT_STATE) { - if (s.gzhead.comment/* != Z_NULL*/) { - beg = s.pending; /* start of bytes to update crc */ - //int val; - - do { - if (s.pending === s.pending_buf_size) { - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - flush_pending(strm); - beg = s.pending; - if (s.pending === s.pending_buf_size) { - val = 1; - break; - } - } - // JS specific: little magic to add zero terminator to end of string - if (s.gzindex < s.gzhead.comment.length) { - val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff; - } else { - val = 0; - } - put_byte(s, val); - } while (val !== 0); - - if (s.gzhead.hcrc && s.pending > beg) { - strm.adler = crc32$1(strm.adler, s.pending_buf, s.pending - beg, beg); - } - if (val === 0) { - s.status = HCRC_STATE; - } - } - else { - s.status = HCRC_STATE; - } - } - if (s.status === HCRC_STATE) { - if (s.gzhead.hcrc) { - if (s.pending + 2 > s.pending_buf_size) { - flush_pending(strm); - } - if (s.pending + 2 <= s.pending_buf_size) { - put_byte(s, strm.adler & 0xff); - put_byte(s, (strm.adler >> 8) & 0xff); - strm.adler = 0; //crc32(0L, Z_NULL, 0); - s.status = BUSY_STATE; - } - } - else { - s.status = BUSY_STATE; - } - } -//#endif - - /* Flush as much pending output as possible */ - if (s.pending !== 0) { - flush_pending(strm); - if (strm.avail_out === 0) { - /* Since avail_out is 0, deflate will be called again with - * more output space, but possibly with both pending and - * avail_in equal to zero. There won't be anything to do, - * but this is not an error situation so make sure we - * return OK instead of BUF_ERROR at next call of deflate: - */ - s.last_flush = -1; - return Z_OK$2; - } - - /* Make sure there is something to do and avoid duplicate consecutive - * flushes. For repeated and useless calls with Z_FINISH, we keep - * returning Z_STREAM_END instead of Z_BUF_ERROR. - */ - } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) && - flush !== Z_FINISH$2) { - return err(strm, Z_BUF_ERROR$1); - } - - /* User must not provide more input after the first FINISH: */ - if (s.status === FINISH_STATE && strm.avail_in !== 0) { - return err(strm, Z_BUF_ERROR$1); - } - - /* Start a new block or continue the current one. - */ - if (strm.avail_in !== 0 || s.lookahead !== 0 || - (flush !== Z_NO_FLUSH$1 && s.status !== FINISH_STATE)) { - var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) : - (s.strategy === Z_RLE ? deflate_rle(s, flush) : - configuration_table[s.level].func(s, flush)); - - if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) { - s.status = FINISH_STATE; - } - if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) { - if (strm.avail_out === 0) { - s.last_flush = -1; - /* avoid BUF_ERROR next call, see above */ - } - return Z_OK$2; - /* If flush != Z_NO_FLUSH && avail_out == 0, the next call - * of deflate should use the same flush parameter to make sure - * that the flush is complete. So we don't have to output an - * empty block here, this will be done at next call. This also - * ensures that for a very small output buffer, we emit at most - * one empty block. - */ - } - if (bstate === BS_BLOCK_DONE) { - if (flush === Z_PARTIAL_FLUSH) { - trees._tr_align(s); - } - else if (flush !== Z_BLOCK$1) { /* FULL_FLUSH or SYNC_FLUSH */ - - trees._tr_stored_block(s, 0, 0, false); - /* For a full flush, this empty block will be recognized - * as a special marker by inflate_sync(). - */ - if (flush === Z_FULL_FLUSH) { - /*** CLEAR_HASH(s); ***/ /* forget history */ - zero(s.head); // Fill with NIL (= 0); - - if (s.lookahead === 0) { - s.strstart = 0; - s.block_start = 0; - s.insert = 0; - } - } - } - flush_pending(strm); - if (strm.avail_out === 0) { - s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */ - return Z_OK$2; - } - } - } - //Assert(strm->avail_out > 0, "bug2"); - //if (strm.avail_out <= 0) { throw new Error("bug2");} - - if (flush !== Z_FINISH$2) { return Z_OK$2; } - if (s.wrap <= 0) { return Z_STREAM_END$2; } - - /* Write the trailer */ - if (s.wrap === 2) { - put_byte(s, strm.adler & 0xff); - put_byte(s, (strm.adler >> 8) & 0xff); - put_byte(s, (strm.adler >> 16) & 0xff); - put_byte(s, (strm.adler >> 24) & 0xff); - put_byte(s, strm.total_in & 0xff); - put_byte(s, (strm.total_in >> 8) & 0xff); - put_byte(s, (strm.total_in >> 16) & 0xff); - put_byte(s, (strm.total_in >> 24) & 0xff); - } - else - { - putShortMSB(s, strm.adler >>> 16); - putShortMSB(s, strm.adler & 0xffff); - } - - flush_pending(strm); - /* If avail_out is zero, the application will call deflate again - * to flush the rest. - */ - if (s.wrap > 0) { s.wrap = -s.wrap; } - /* write the trailer only once! */ - return s.pending !== 0 ? Z_OK$2 : Z_STREAM_END$2; -} - -function deflateEnd(strm) { - var status; - - if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) { - return Z_STREAM_ERROR$1; - } - - status = strm.state.status; - if (status !== INIT_STATE && - status !== EXTRA_STATE && - status !== NAME_STATE && - status !== COMMENT_STATE && - status !== HCRC_STATE && - status !== BUSY_STATE && - status !== FINISH_STATE - ) { - return err(strm, Z_STREAM_ERROR$1); - } - - strm.state = null; - - return status === BUSY_STATE ? err(strm, Z_DATA_ERROR$1) : Z_OK$2; -} - - -/* ========================================================================= - * Initializes the compression dictionary from the given byte - * sequence without producing any compressed output. - */ -function deflateSetDictionary(strm, dictionary) { - var dictLength = dictionary.length; - - var s; - var str, n; - var wrap; - var avail; - var next; - var input; - var tmpDict; - - if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) { - return Z_STREAM_ERROR$1; - } - - s = strm.state; - wrap = s.wrap; - - if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) { - return Z_STREAM_ERROR$1; - } - - /* when using zlib wrappers, compute Adler-32 for provided dictionary */ - if (wrap === 1) { - /* adler32(strm->adler, dictionary, dictLength); */ - strm.adler = adler32$1(strm.adler, dictionary, dictLength, 0); - } - - s.wrap = 0; /* avoid computing Adler-32 in read_buf */ - - /* if dictionary would fill window, just replace the history */ - if (dictLength >= s.w_size) { - if (wrap === 0) { /* already empty otherwise */ - /*** CLEAR_HASH(s); ***/ - zero(s.head); // Fill with NIL (= 0); - s.strstart = 0; - s.block_start = 0; - s.insert = 0; - } - /* use the tail */ - // dictionary = dictionary.slice(dictLength - s.w_size); - tmpDict = new utils$5.Buf8(s.w_size); - utils$5.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0); - dictionary = tmpDict; - dictLength = s.w_size; - } - /* insert dictionary into window and hash */ - avail = strm.avail_in; - next = strm.next_in; - input = strm.input; - strm.avail_in = dictLength; - strm.next_in = 0; - strm.input = dictionary; - fill_window(s); - while (s.lookahead >= MIN_MATCH) { - str = s.strstart; - n = s.lookahead - (MIN_MATCH - 1); - do { - /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */ - s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask; - - s.prev[str & s.w_mask] = s.head[s.ins_h]; - - s.head[s.ins_h] = str; - str++; - } while (--n); - s.strstart = str; - s.lookahead = MIN_MATCH - 1; - fill_window(s); - } - s.strstart += s.lookahead; - s.block_start = s.strstart; - s.insert = s.lookahead; - s.lookahead = 0; - s.match_length = s.prev_length = MIN_MATCH - 1; - s.match_available = 0; - strm.next_in = next; - strm.input = input; - strm.avail_in = avail; - s.wrap = wrap; - return Z_OK$2; -} - - -deflate$3.deflateInit = deflateInit; -deflate$3.deflateInit2 = deflateInit2; -deflate$3.deflateReset = deflateReset; -deflate$3.deflateResetKeep = deflateResetKeep; -deflate$3.deflateSetHeader = deflateSetHeader; -deflate$3.deflate = deflate$2; -deflate$3.deflateEnd = deflateEnd; -deflate$3.deflateSetDictionary = deflateSetDictionary; -deflate$3.deflateInfo = 'pako deflate (from Nodeca project)'; - -var strings$2 = {}; - -var utils$4 = common; - - -// Quick check if we can use fast array to bin string conversion -// -// - apply(Array) can fail on Android 2.2 -// - apply(Uint8Array) can fail on iOS 5.1 Safari -// -var STR_APPLY_OK = true; -var STR_APPLY_UIA_OK = true; - -try { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; } -try { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; } - - -// Table with utf8 lengths (calculated by first byte of sequence) -// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS, -// because max possible codepoint is 0x10ffff -var _utf8len = new utils$4.Buf8(256); -for (var q = 0; q < 256; q++) { - _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1); -} -_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start - - -// convert string to array (typed, when possible) -strings$2.string2buf = function (str) { - var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0; - - // count binary size - for (m_pos = 0; m_pos < str_len; m_pos++) { - c = str.charCodeAt(m_pos); - if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) { - c2 = str.charCodeAt(m_pos + 1); - if ((c2 & 0xfc00) === 0xdc00) { - c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00); - m_pos++; - } - } - buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4; - } - - // allocate buffer - buf = new utils$4.Buf8(buf_len); - - // convert - for (i = 0, m_pos = 0; i < buf_len; m_pos++) { - c = str.charCodeAt(m_pos); - if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) { - c2 = str.charCodeAt(m_pos + 1); - if ((c2 & 0xfc00) === 0xdc00) { - c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00); - m_pos++; - } - } - if (c < 0x80) { - /* one byte */ - buf[i++] = c; - } else if (c < 0x800) { - /* two bytes */ - buf[i++] = 0xC0 | (c >>> 6); - buf[i++] = 0x80 | (c & 0x3f); - } else if (c < 0x10000) { - /* three bytes */ - buf[i++] = 0xE0 | (c >>> 12); - buf[i++] = 0x80 | (c >>> 6 & 0x3f); - buf[i++] = 0x80 | (c & 0x3f); - } else { - /* four bytes */ - buf[i++] = 0xf0 | (c >>> 18); - buf[i++] = 0x80 | (c >>> 12 & 0x3f); - buf[i++] = 0x80 | (c >>> 6 & 0x3f); - buf[i++] = 0x80 | (c & 0x3f); - } - } - - return buf; -}; - -// Helper (used in 2 places) -function buf2binstring(buf, len) { - // On Chrome, the arguments in a function call that are allowed is `65534`. - // If the length of the buffer is smaller than that, we can use this optimization, - // otherwise we will take a slower path. - if (len < 65534) { - if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) { - return String.fromCharCode.apply(null, utils$4.shrinkBuf(buf, len)); - } - } - - var result = ''; - for (var i = 0; i < len; i++) { - result += String.fromCharCode(buf[i]); - } - return result; -} - - -// Convert byte array to binary string -strings$2.buf2binstring = function (buf) { - return buf2binstring(buf, buf.length); -}; - - -// Convert binary string (typed, when possible) -strings$2.binstring2buf = function (str) { - var buf = new utils$4.Buf8(str.length); - for (var i = 0, len = buf.length; i < len; i++) { - buf[i] = str.charCodeAt(i); - } - return buf; -}; - - -// convert array to string -strings$2.buf2string = function (buf, max) { - var i, out, c, c_len; - var len = max || buf.length; - - // Reserve max possible length (2 words per char) - // NB: by unknown reasons, Array is significantly faster for - // String.fromCharCode.apply than Uint16Array. - var utf16buf = new Array(len * 2); - - for (out = 0, i = 0; i < len;) { - c = buf[i++]; - // quick process ascii - if (c < 0x80) { utf16buf[out++] = c; continue; } - - c_len = _utf8len[c]; - // skip 5 & 6 byte codes - if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; } - - // apply mask on first byte - c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07; - // join the rest - while (c_len > 1 && i < len) { - c = (c << 6) | (buf[i++] & 0x3f); - c_len--; - } - - // terminated by end of string? - if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; } - - if (c < 0x10000) { - utf16buf[out++] = c; - } else { - c -= 0x10000; - utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff); - utf16buf[out++] = 0xdc00 | (c & 0x3ff); - } - } - - return buf2binstring(utf16buf, out); -}; - - -// Calculate max possible position in utf8 buffer, -// that will not break sequence. If that's not possible -// - (very small limits) return max size as is. -// -// buf[] - utf8 bytes array -// max - length limit (mandatory); -strings$2.utf8border = function (buf, max) { - var pos; - - max = max || buf.length; - if (max > buf.length) { max = buf.length; } - - // go back from last position, until start of sequence found - pos = max - 1; - while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; } - - // Very small and broken sequence, - // return max, because we should return something anyway. - if (pos < 0) { return max; } - - // If we came to start of buffer - that means buffer is too small, - // return max too. - if (pos === 0) { return max; } - - return (pos + _utf8len[buf[pos]] > max) ? pos : max; -}; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -function ZStream$2() { - /* next input byte */ - this.input = null; // JS specific, because we have no pointers - this.next_in = 0; - /* number of bytes available at input */ - this.avail_in = 0; - /* total number of input bytes read so far */ - this.total_in = 0; - /* next output byte should be put there */ - this.output = null; // JS specific, because we have no pointers - this.next_out = 0; - /* remaining free space at output */ - this.avail_out = 0; - /* total number of bytes output so far */ - this.total_out = 0; - /* last error message, NULL if no error */ - this.msg = ''/*Z_NULL*/; - /* not visible by applications */ - this.state = null; - /* best guess about the data type: binary or text */ - this.data_type = 2/*Z_UNKNOWN*/; - /* adler32 value of the uncompressed data */ - this.adler = 0; -} - -var zstream = ZStream$2; - -var zlib_deflate = deflate$3; -var utils$3 = common; -var strings$1 = strings$2; -var msg$1 = messages; -var ZStream$1 = zstream; - -var toString$1 = Object.prototype.toString; - -/* Public constants ==========================================================*/ -/* ===========================================================================*/ - -var Z_NO_FLUSH = 0; -var Z_FINISH$1 = 4; - -var Z_OK$1 = 0; -var Z_STREAM_END$1 = 1; -var Z_SYNC_FLUSH = 2; - -var Z_DEFAULT_COMPRESSION = -1; - -var Z_DEFAULT_STRATEGY = 0; - -var Z_DEFLATED$1 = 8; - -/* ===========================================================================*/ - - -/** - * class Deflate - * - * Generic JS-style wrapper for zlib calls. If you don't need - * streaming behaviour - use more simple functions: [[deflate]], - * [[deflateRaw]] and [[gzip]]. - **/ - -/* internal - * Deflate.chunks -> Array - * - * Chunks of output data, if [[Deflate#onData]] not overridden. - **/ - -/** - * Deflate.result -> Uint8Array|Array - * - * Compressed result, generated by default [[Deflate#onData]] - * and [[Deflate#onEnd]] handlers. Filled after you push last chunk - * (call [[Deflate#push]] with `Z_FINISH` / `true` param) or if you - * push a chunk with explicit flush (call [[Deflate#push]] with - * `Z_SYNC_FLUSH` param). - **/ - -/** - * Deflate.err -> Number - * - * Error code after deflate finished. 0 (Z_OK) on success. - * You will not need it in real life, because deflate errors - * are possible only on wrong options or bad `onData` / `onEnd` - * custom handlers. - **/ - -/** - * Deflate.msg -> String - * - * Error message, if [[Deflate.err]] != 0 - **/ - - -/** - * new Deflate(options) - * - options (Object): zlib deflate options. - * - * Creates new deflator instance with specified params. Throws exception - * on bad params. Supported options: - * - * - `level` - * - `windowBits` - * - `memLevel` - * - `strategy` - * - `dictionary` - * - * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced) - * for more information on these. - * - * Additional options, for internal needs: - * - * - `chunkSize` - size of generated data chunks (16K by default) - * - `raw` (Boolean) - do raw deflate - * - `gzip` (Boolean) - create gzip wrapper - * - `to` (String) - if equal to 'string', then result will be "binary string" - * (each char code [0..255]) - * - `header` (Object) - custom header for gzip - * - `text` (Boolean) - true if compressed data believed to be text - * - `time` (Number) - modification time, unix timestamp - * - `os` (Number) - operation system code - * - `extra` (Array) - array of bytes with extra data (max 65536) - * - `name` (String) - file name (binary string) - * - `comment` (String) - comment (binary string) - * - `hcrc` (Boolean) - true if header crc should be added - * - * ##### Example: - * - * ```javascript - * var pako = require('pako') - * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9]) - * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]); - * - * var deflate = new pako.Deflate({ level: 3}); - * - * deflate.push(chunk1, false); - * deflate.push(chunk2, true); // true -> last chunk - * - * if (deflate.err) { throw new Error(deflate.err); } - * - * console.log(deflate.result); - * ``` - **/ -function Deflate(options) { - if (!(this instanceof Deflate)) return new Deflate(options); - - this.options = utils$3.assign({ - level: Z_DEFAULT_COMPRESSION, - method: Z_DEFLATED$1, - chunkSize: 16384, - windowBits: 15, - memLevel: 8, - strategy: Z_DEFAULT_STRATEGY, - to: '' - }, options || {}); - - var opt = this.options; - - if (opt.raw && (opt.windowBits > 0)) { - opt.windowBits = -opt.windowBits; - } - - else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) { - opt.windowBits += 16; - } - - this.err = 0; // error code, if happens (0 = Z_OK) - this.msg = ''; // error message - this.ended = false; // used to avoid multiple onEnd() calls - this.chunks = []; // chunks of compressed data - - this.strm = new ZStream$1(); - this.strm.avail_out = 0; - - var status = zlib_deflate.deflateInit2( - this.strm, - opt.level, - opt.method, - opt.windowBits, - opt.memLevel, - opt.strategy - ); - - if (status !== Z_OK$1) { - throw new Error(msg$1[status]); - } - - if (opt.header) { - zlib_deflate.deflateSetHeader(this.strm, opt.header); - } - - if (opt.dictionary) { - var dict; - // Convert data if needed - if (typeof opt.dictionary === 'string') { - // If we need to compress text, change encoding to utf8. - dict = strings$1.string2buf(opt.dictionary); - } else if (toString$1.call(opt.dictionary) === '[object ArrayBuffer]') { - dict = new Uint8Array(opt.dictionary); - } else { - dict = opt.dictionary; - } - - status = zlib_deflate.deflateSetDictionary(this.strm, dict); - - if (status !== Z_OK$1) { - throw new Error(msg$1[status]); - } - - this._dict_set = true; - } -} - -/** - * Deflate#push(data[, mode]) -> Boolean - * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be - * converted to utf8 byte sequence. - * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes. - * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH. - * - * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with - * new compressed chunks. Returns `true` on success. The last data block must have - * mode Z_FINISH (or `true`). That will flush internal pending buffers and call - * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you - * can use mode Z_SYNC_FLUSH, keeping the compression context. - * - * On fail call [[Deflate#onEnd]] with error code and return false. - * - * We strongly recommend to use `Uint8Array` on input for best speed (output - * array format is detected automatically). Also, don't skip last param and always - * use the same type in your code (boolean or number). That will improve JS speed. - * - * For regular `Array`-s make sure all elements are [0..255]. - * - * ##### Example - * - * ```javascript - * push(chunk, false); // push one of data chunks - * ... - * push(chunk, true); // push last chunk - * ``` - **/ -Deflate.prototype.push = function (data, mode) { - var strm = this.strm; - var chunkSize = this.options.chunkSize; - var status, _mode; - - if (this.ended) { return false; } - - _mode = (mode === ~~mode) ? mode : ((mode === true) ? Z_FINISH$1 : Z_NO_FLUSH); - - // Convert data if needed - if (typeof data === 'string') { - // If we need to compress text, change encoding to utf8. - strm.input = strings$1.string2buf(data); - } else if (toString$1.call(data) === '[object ArrayBuffer]') { - strm.input = new Uint8Array(data); - } else { - strm.input = data; - } - - strm.next_in = 0; - strm.avail_in = strm.input.length; - - do { - if (strm.avail_out === 0) { - strm.output = new utils$3.Buf8(chunkSize); - strm.next_out = 0; - strm.avail_out = chunkSize; - } - status = zlib_deflate.deflate(strm, _mode); /* no bad return value */ - - if (status !== Z_STREAM_END$1 && status !== Z_OK$1) { - this.onEnd(status); - this.ended = true; - return false; - } - if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH$1 || _mode === Z_SYNC_FLUSH))) { - if (this.options.to === 'string') { - this.onData(strings$1.buf2binstring(utils$3.shrinkBuf(strm.output, strm.next_out))); - } else { - this.onData(utils$3.shrinkBuf(strm.output, strm.next_out)); - } - } - } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END$1); - - // Finalize on the last chunk. - if (_mode === Z_FINISH$1) { - status = zlib_deflate.deflateEnd(this.strm); - this.onEnd(status); - this.ended = true; - return status === Z_OK$1; - } - - // callback interim results if Z_SYNC_FLUSH. - if (_mode === Z_SYNC_FLUSH) { - this.onEnd(Z_OK$1); - strm.avail_out = 0; - return true; - } - - return true; -}; - - -/** - * Deflate#onData(chunk) -> Void - * - chunk (Uint8Array|Array|String): output data. Type of array depends - * on js engine support. When string output requested, each chunk - * will be string. - * - * By default, stores data blocks in `chunks[]` property and glue - * those in `onEnd`. Override this handler, if you need another behaviour. - **/ -Deflate.prototype.onData = function (chunk) { - this.chunks.push(chunk); -}; - - -/** - * Deflate#onEnd(status) -> Void - * - status (Number): deflate status. 0 (Z_OK) on success, - * other if not. - * - * Called once after you tell deflate that the input stream is - * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH) - * or if an error happened. By default - join collected chunks, - * free memory and fill `results` / `err` properties. - **/ -Deflate.prototype.onEnd = function (status) { - // On success - join - if (status === Z_OK$1) { - if (this.options.to === 'string') { - this.result = this.chunks.join(''); - } else { - this.result = utils$3.flattenChunks(this.chunks); - } - } - this.chunks = []; - this.err = status; - this.msg = this.strm.msg; -}; - - -/** - * deflate(data[, options]) -> Uint8Array|Array|String - * - data (Uint8Array|Array|String): input data to compress. - * - options (Object): zlib deflate options. - * - * Compress `data` with deflate algorithm and `options`. - * - * Supported options are: - * - * - level - * - windowBits - * - memLevel - * - strategy - * - dictionary - * - * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced) - * for more information on these. - * - * Sugar (options): - * - * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify - * negative windowBits implicitly. - * - `to` (String) - if equal to 'string', then result will be "binary string" - * (each char code [0..255]) - * - * ##### Example: - * - * ```javascript - * var pako = require('pako') - * , data = Uint8Array([1,2,3,4,5,6,7,8,9]); - * - * console.log(pako.deflate(data)); - * ``` - **/ -function deflate$1(input, options) { - var deflator = new Deflate(options); - - deflator.push(input, true); - - // That will never happens, if you don't cheat with options :) - if (deflator.err) { throw deflator.msg || msg$1[deflator.err]; } - - return deflator.result; -} - - -/** - * deflateRaw(data[, options]) -> Uint8Array|Array|String - * - data (Uint8Array|Array|String): input data to compress. - * - options (Object): zlib deflate options. - * - * The same as [[deflate]], but creates raw data, without wrapper - * (header and adler32 crc). - **/ -function deflateRaw(input, options) { - options = options || {}; - options.raw = true; - return deflate$1(input, options); -} - - -/** - * gzip(data[, options]) -> Uint8Array|Array|String - * - data (Uint8Array|Array|String): input data to compress. - * - options (Object): zlib deflate options. - * - * The same as [[deflate]], but create gzip wrapper instead of - * deflate one. - **/ -function gzip(input, options) { - options = options || {}; - options.gzip = true; - return deflate$1(input, options); -} - - -deflate$4.Deflate = Deflate; -deflate$4.deflate = deflate$1; -deflate$4.deflateRaw = deflateRaw; -deflate$4.gzip = gzip; - -var inflate$4 = {}; - -var inflate$3 = {}; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -// See state defs from inflate.js -var BAD$1 = 30; /* got a data error -- remain here until reset */ -var TYPE$1 = 12; /* i: waiting for type bits, including last-flag bit */ - -/* - Decode literal, length, and distance codes and write out the resulting - literal and match bytes until either not enough input or output is - available, an end-of-block is encountered, or a data error is encountered. - When large enough input and output buffers are supplied to inflate(), for - example, a 16K input buffer and a 64K output buffer, more than 95% of the - inflate execution time is spent in this routine. - - Entry assumptions: - - state.mode === LEN - strm.avail_in >= 6 - strm.avail_out >= 258 - start >= strm.avail_out - state.bits < 8 - - On return, state.mode is one of: - - LEN -- ran out of enough output space or enough available input - TYPE -- reached end of block code, inflate() to interpret next block - BAD -- error in block data - - Notes: - - - The maximum input bits used by a length/distance pair is 15 bits for the - length code, 5 bits for the length extra, 15 bits for the distance code, - and 13 bits for the distance extra. This totals 48 bits, or six bytes. - Therefore if strm.avail_in >= 6, then there is enough input to avoid - checking for available input while decoding. - - - The maximum bytes that a single length/distance pair can output is 258 - bytes, which is the maximum length that can be coded. inflate_fast() - requires strm.avail_out >= 258 for each loop to avoid checking for - output space. - */ -var inffast = function inflate_fast(strm, start) { - var state; - var _in; /* local strm.input */ - var last; /* have enough input while in < last */ - var _out; /* local strm.output */ - var beg; /* inflate()'s initial strm.output */ - var end; /* while out < end, enough space available */ -//#ifdef INFLATE_STRICT - var dmax; /* maximum distance from zlib header */ -//#endif - var wsize; /* window size or zero if not using window */ - var whave; /* valid bytes in the window */ - var wnext; /* window write index */ - // Use `s_window` instead `window`, avoid conflict with instrumentation tools - var s_window; /* allocated sliding window, if wsize != 0 */ - var hold; /* local strm.hold */ - var bits; /* local strm.bits */ - var lcode; /* local strm.lencode */ - var dcode; /* local strm.distcode */ - var lmask; /* mask for first level of length codes */ - var dmask; /* mask for first level of distance codes */ - var here; /* retrieved table entry */ - var op; /* code bits, operation, extra bits, or */ - /* window position, window bytes to copy */ - var len; /* match length, unused bytes */ - var dist; /* match distance */ - var from; /* where to copy match from */ - var from_source; - - - var input, output; // JS specific, because we have no pointers - - /* copy state to local variables */ - state = strm.state; - //here = state.here; - _in = strm.next_in; - input = strm.input; - last = _in + (strm.avail_in - 5); - _out = strm.next_out; - output = strm.output; - beg = _out - (start - strm.avail_out); - end = _out + (strm.avail_out - 257); -//#ifdef INFLATE_STRICT - dmax = state.dmax; -//#endif - wsize = state.wsize; - whave = state.whave; - wnext = state.wnext; - s_window = state.window; - hold = state.hold; - bits = state.bits; - lcode = state.lencode; - dcode = state.distcode; - lmask = (1 << state.lenbits) - 1; - dmask = (1 << state.distbits) - 1; - - - /* decode literals and length/distances until end-of-block or not enough - input data or output space */ - - top: - do { - if (bits < 15) { - hold += input[_in++] << bits; - bits += 8; - hold += input[_in++] << bits; - bits += 8; - } - - here = lcode[hold & lmask]; - - dolen: - for (;;) { // Goto emulation - op = here >>> 24/*here.bits*/; - hold >>>= op; - bits -= op; - op = (here >>> 16) & 0xff/*here.op*/; - if (op === 0) { /* literal */ - //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ? - // "inflate: literal '%c'\n" : - // "inflate: literal 0x%02x\n", here.val)); - output[_out++] = here & 0xffff/*here.val*/; - } - else if (op & 16) { /* length base */ - len = here & 0xffff/*here.val*/; - op &= 15; /* number of extra bits */ - if (op) { - if (bits < op) { - hold += input[_in++] << bits; - bits += 8; - } - len += hold & ((1 << op) - 1); - hold >>>= op; - bits -= op; - } - //Tracevv((stderr, "inflate: length %u\n", len)); - if (bits < 15) { - hold += input[_in++] << bits; - bits += 8; - hold += input[_in++] << bits; - bits += 8; - } - here = dcode[hold & dmask]; - - dodist: - for (;;) { // goto emulation - op = here >>> 24/*here.bits*/; - hold >>>= op; - bits -= op; - op = (here >>> 16) & 0xff/*here.op*/; - - if (op & 16) { /* distance base */ - dist = here & 0xffff/*here.val*/; - op &= 15; /* number of extra bits */ - if (bits < op) { - hold += input[_in++] << bits; - bits += 8; - if (bits < op) { - hold += input[_in++] << bits; - bits += 8; - } - } - dist += hold & ((1 << op) - 1); -//#ifdef INFLATE_STRICT - if (dist > dmax) { - strm.msg = 'invalid distance too far back'; - state.mode = BAD$1; - break top; - } -//#endif - hold >>>= op; - bits -= op; - //Tracevv((stderr, "inflate: distance %u\n", dist)); - op = _out - beg; /* max distance in output */ - if (dist > op) { /* see if copy from window */ - op = dist - op; /* distance back in window */ - if (op > whave) { - if (state.sane) { - strm.msg = 'invalid distance too far back'; - state.mode = BAD$1; - break top; - } - -// (!) This block is disabled in zlib defaults, -// don't enable it for binary compatibility -//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR -// if (len <= op - whave) { -// do { -// output[_out++] = 0; -// } while (--len); -// continue top; -// } -// len -= op - whave; -// do { -// output[_out++] = 0; -// } while (--op > whave); -// if (op === 0) { -// from = _out - dist; -// do { -// output[_out++] = output[from++]; -// } while (--len); -// continue top; -// } -//#endif - } - from = 0; // window index - from_source = s_window; - if (wnext === 0) { /* very common case */ - from += wsize - op; - if (op < len) { /* some from window */ - len -= op; - do { - output[_out++] = s_window[from++]; - } while (--op); - from = _out - dist; /* rest from output */ - from_source = output; - } - } - else if (wnext < op) { /* wrap around window */ - from += wsize + wnext - op; - op -= wnext; - if (op < len) { /* some from end of window */ - len -= op; - do { - output[_out++] = s_window[from++]; - } while (--op); - from = 0; - if (wnext < len) { /* some from start of window */ - op = wnext; - len -= op; - do { - output[_out++] = s_window[from++]; - } while (--op); - from = _out - dist; /* rest from output */ - from_source = output; - } - } - } - else { /* contiguous in window */ - from += wnext - op; - if (op < len) { /* some from window */ - len -= op; - do { - output[_out++] = s_window[from++]; - } while (--op); - from = _out - dist; /* rest from output */ - from_source = output; - } - } - while (len > 2) { - output[_out++] = from_source[from++]; - output[_out++] = from_source[from++]; - output[_out++] = from_source[from++]; - len -= 3; - } - if (len) { - output[_out++] = from_source[from++]; - if (len > 1) { - output[_out++] = from_source[from++]; - } - } - } - else { - from = _out - dist; /* copy direct from output */ - do { /* minimum length is three */ - output[_out++] = output[from++]; - output[_out++] = output[from++]; - output[_out++] = output[from++]; - len -= 3; - } while (len > 2); - if (len) { - output[_out++] = output[from++]; - if (len > 1) { - output[_out++] = output[from++]; - } - } - } - } - else if ((op & 64) === 0) { /* 2nd level distance code */ - here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))]; - continue dodist; - } - else { - strm.msg = 'invalid distance code'; - state.mode = BAD$1; - break top; - } - - break; // need to emulate goto via "continue" - } - } - else if ((op & 64) === 0) { /* 2nd level length code */ - here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))]; - continue dolen; - } - else if (op & 32) { /* end-of-block */ - //Tracevv((stderr, "inflate: end of block\n")); - state.mode = TYPE$1; - break top; - } - else { - strm.msg = 'invalid literal/length code'; - state.mode = BAD$1; - break top; - } - - break; // need to emulate goto via "continue" - } - } while (_in < last && _out < end); - - /* return unused bytes (on entry, bits < 8, so in won't go too far back) */ - len = bits >> 3; - _in -= len; - bits -= len << 3; - hold &= (1 << bits) - 1; - - /* update state and return */ - strm.next_in = _in; - strm.next_out = _out; - strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last)); - strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end)); - state.hold = hold; - state.bits = bits; - return; -}; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -var utils$2 = common; - -var MAXBITS = 15; -var ENOUGH_LENS$1 = 852; -var ENOUGH_DISTS$1 = 592; -//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS); - -var CODES$1 = 0; -var LENS$1 = 1; -var DISTS$1 = 2; - -var lbase = [ /* Length codes 257..285 base */ - 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, - 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0 -]; - -var lext = [ /* Length codes 257..285 extra */ - 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, - 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78 -]; - -var dbase = [ /* Distance codes 0..29 base */ - 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, - 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, - 8193, 12289, 16385, 24577, 0, 0 -]; - -var dext = [ /* Distance codes 0..29 extra */ - 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, - 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, - 28, 28, 29, 29, 64, 64 -]; - -var inftrees = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts) -{ - var bits = opts.bits; - //here = opts.here; /* table entry for duplication */ - - var len = 0; /* a code's length in bits */ - var sym = 0; /* index of code symbols */ - var min = 0, max = 0; /* minimum and maximum code lengths */ - var root = 0; /* number of index bits for root table */ - var curr = 0; /* number of index bits for current table */ - var drop = 0; /* code bits to drop for sub-table */ - var left = 0; /* number of prefix codes available */ - var used = 0; /* code entries in table used */ - var huff = 0; /* Huffman code */ - var incr; /* for incrementing code, index */ - var fill; /* index for replicating entries */ - var low; /* low bits for current root entry */ - var mask; /* mask for low root bits */ - var next; /* next available space in table */ - var base = null; /* base value table to use */ - var base_index = 0; -// var shoextra; /* extra bits table to use */ - var end; /* use base and extra for symbol > end */ - var count = new utils$2.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */ - var offs = new utils$2.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */ - var extra = null; - var extra_index = 0; - - var here_bits, here_op, here_val; - - /* - Process a set of code lengths to create a canonical Huffman code. The - code lengths are lens[0..codes-1]. Each length corresponds to the - symbols 0..codes-1. The Huffman code is generated by first sorting the - symbols by length from short to long, and retaining the symbol order - for codes with equal lengths. Then the code starts with all zero bits - for the first code of the shortest length, and the codes are integer - increments for the same length, and zeros are appended as the length - increases. For the deflate format, these bits are stored backwards - from their more natural integer increment ordering, and so when the - decoding tables are built in the large loop below, the integer codes - are incremented backwards. - - This routine assumes, but does not check, that all of the entries in - lens[] are in the range 0..MAXBITS. The caller must assure this. - 1..MAXBITS is interpreted as that code length. zero means that that - symbol does not occur in this code. - - The codes are sorted by computing a count of codes for each length, - creating from that a table of starting indices for each length in the - sorted table, and then entering the symbols in order in the sorted - table. The sorted table is work[], with that space being provided by - the caller. - - The length counts are used for other purposes as well, i.e. finding - the minimum and maximum length codes, determining if there are any - codes at all, checking for a valid set of lengths, and looking ahead - at length counts to determine sub-table sizes when building the - decoding tables. - */ - - /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */ - for (len = 0; len <= MAXBITS; len++) { - count[len] = 0; - } - for (sym = 0; sym < codes; sym++) { - count[lens[lens_index + sym]]++; - } - - /* bound code lengths, force root to be within code lengths */ - root = bits; - for (max = MAXBITS; max >= 1; max--) { - if (count[max] !== 0) { break; } - } - if (root > max) { - root = max; - } - if (max === 0) { /* no symbols to code at all */ - //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */ - //table.bits[opts.table_index] = 1; //here.bits = (var char)1; - //table.val[opts.table_index++] = 0; //here.val = (var short)0; - table[table_index++] = (1 << 24) | (64 << 16) | 0; - - - //table.op[opts.table_index] = 64; - //table.bits[opts.table_index] = 1; - //table.val[opts.table_index++] = 0; - table[table_index++] = (1 << 24) | (64 << 16) | 0; - - opts.bits = 1; - return 0; /* no symbols, but wait for decoding to report error */ - } - for (min = 1; min < max; min++) { - if (count[min] !== 0) { break; } - } - if (root < min) { - root = min; - } - - /* check for an over-subscribed or incomplete set of lengths */ - left = 1; - for (len = 1; len <= MAXBITS; len++) { - left <<= 1; - left -= count[len]; - if (left < 0) { - return -1; - } /* over-subscribed */ - } - if (left > 0 && (type === CODES$1 || max !== 1)) { - return -1; /* incomplete set */ - } - - /* generate offsets into symbol table for each length for sorting */ - offs[1] = 0; - for (len = 1; len < MAXBITS; len++) { - offs[len + 1] = offs[len] + count[len]; - } - - /* sort symbols by length, by symbol order within each length */ - for (sym = 0; sym < codes; sym++) { - if (lens[lens_index + sym] !== 0) { - work[offs[lens[lens_index + sym]]++] = sym; - } - } - - /* - Create and fill in decoding tables. In this loop, the table being - filled is at next and has curr index bits. The code being used is huff - with length len. That code is converted to an index by dropping drop - bits off of the bottom. For codes where len is less than drop + curr, - those top drop + curr - len bits are incremented through all values to - fill the table with replicated entries. - - root is the number of index bits for the root table. When len exceeds - root, sub-tables are created pointed to by the root entry with an index - of the low root bits of huff. This is saved in low to check for when a - new sub-table should be started. drop is zero when the root table is - being filled, and drop is root when sub-tables are being filled. - - When a new sub-table is needed, it is necessary to look ahead in the - code lengths to determine what size sub-table is needed. The length - counts are used for this, and so count[] is decremented as codes are - entered in the tables. - - used keeps track of how many table entries have been allocated from the - provided *table space. It is checked for LENS and DIST tables against - the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in - the initial root table size constants. See the comments in inftrees.h - for more information. - - sym increments through all symbols, and the loop terminates when - all codes of length max, i.e. all codes, have been processed. This - routine permits incomplete codes, so another loop after this one fills - in the rest of the decoding tables with invalid code markers. - */ - - /* set up for code type */ - // poor man optimization - use if-else instead of switch, - // to avoid deopts in old v8 - if (type === CODES$1) { - base = extra = work; /* dummy value--not used */ - end = 19; - - } else if (type === LENS$1) { - base = lbase; - base_index -= 257; - extra = lext; - extra_index -= 257; - end = 256; - - } else { /* DISTS */ - base = dbase; - extra = dext; - end = -1; - } - - /* initialize opts for loop */ - huff = 0; /* starting code */ - sym = 0; /* starting code symbol */ - len = min; /* starting code length */ - next = table_index; /* current table to fill in */ - curr = root; /* current table index bits */ - drop = 0; /* current bits to drop from code for index */ - low = -1; /* trigger new sub-table when len > root */ - used = 1 << root; /* use root table entries */ - mask = used - 1; /* mask for comparing low */ - - /* check available table space */ - if ((type === LENS$1 && used > ENOUGH_LENS$1) || - (type === DISTS$1 && used > ENOUGH_DISTS$1)) { - return 1; - } - - /* process all codes and make table entries */ - for (;;) { - /* create table entry */ - here_bits = len - drop; - if (work[sym] < end) { - here_op = 0; - here_val = work[sym]; - } - else if (work[sym] > end) { - here_op = extra[extra_index + work[sym]]; - here_val = base[base_index + work[sym]]; - } - else { - here_op = 32 + 64; /* end of block */ - here_val = 0; - } - - /* replicate for those indices with low len bits equal to huff */ - incr = 1 << (len - drop); - fill = 1 << curr; - min = fill; /* save offset to next table */ - do { - fill -= incr; - table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0; - } while (fill !== 0); - - /* backwards increment the len-bit code huff */ - incr = 1 << (len - 1); - while (huff & incr) { - incr >>= 1; - } - if (incr !== 0) { - huff &= incr - 1; - huff += incr; - } else { - huff = 0; - } - - /* go to next symbol, update count, len */ - sym++; - if (--count[len] === 0) { - if (len === max) { break; } - len = lens[lens_index + work[sym]]; - } - - /* create new sub-table if needed */ - if (len > root && (huff & mask) !== low) { - /* if first time, transition to sub-tables */ - if (drop === 0) { - drop = root; - } - - /* increment past last table */ - next += min; /* here min is 1 << curr */ - - /* determine length of next table */ - curr = len - drop; - left = 1 << curr; - while (curr + drop < max) { - left -= count[curr + drop]; - if (left <= 0) { break; } - curr++; - left <<= 1; - } - - /* check for enough space */ - used += 1 << curr; - if ((type === LENS$1 && used > ENOUGH_LENS$1) || - (type === DISTS$1 && used > ENOUGH_DISTS$1)) { - return 1; - } - - /* point entry in root table to sub-table */ - low = huff & mask; - /*table.op[low] = curr; - table.bits[low] = root; - table.val[low] = next - opts.table_index;*/ - table[low] = (root << 24) | (curr << 16) | (next - table_index) |0; - } - } - - /* fill in remaining table entry if code is incomplete (guaranteed to have - at most one remaining entry, since if the code is incomplete, the - maximum code length that was allowed to get this far is one bit) */ - if (huff !== 0) { - //table.op[next + huff] = 64; /* invalid code marker */ - //table.bits[next + huff] = len - drop; - //table.val[next + huff] = 0; - table[next + huff] = ((len - drop) << 24) | (64 << 16) |0; - } - - /* set return parameters */ - //opts.table_index += used; - opts.bits = root; - return 0; -}; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -var utils$1 = common; -var adler32 = adler32_1; -var crc32 = crc32_1; -var inflate_fast = inffast; -var inflate_table = inftrees; - -var CODES = 0; -var LENS = 1; -var DISTS = 2; - -/* Public constants ==========================================================*/ -/* ===========================================================================*/ - - -/* Allowed flush values; see deflate() and inflate() below for details */ -//var Z_NO_FLUSH = 0; -//var Z_PARTIAL_FLUSH = 1; -//var Z_SYNC_FLUSH = 2; -//var Z_FULL_FLUSH = 3; -var Z_FINISH = 4; -var Z_BLOCK = 5; -var Z_TREES = 6; - - -/* Return codes for the compression/decompression functions. Negative values - * are errors, positive values are used for special but normal events. - */ -var Z_OK = 0; -var Z_STREAM_END = 1; -var Z_NEED_DICT = 2; -//var Z_ERRNO = -1; -var Z_STREAM_ERROR = -2; -var Z_DATA_ERROR = -3; -var Z_MEM_ERROR = -4; -var Z_BUF_ERROR = -5; -//var Z_VERSION_ERROR = -6; - -/* The deflate compression method */ -var Z_DEFLATED = 8; - - -/* STATES ====================================================================*/ -/* ===========================================================================*/ - - -var HEAD = 1; /* i: waiting for magic header */ -var FLAGS = 2; /* i: waiting for method and flags (gzip) */ -var TIME = 3; /* i: waiting for modification time (gzip) */ -var OS = 4; /* i: waiting for extra flags and operating system (gzip) */ -var EXLEN = 5; /* i: waiting for extra length (gzip) */ -var EXTRA = 6; /* i: waiting for extra bytes (gzip) */ -var NAME = 7; /* i: waiting for end of file name (gzip) */ -var COMMENT = 8; /* i: waiting for end of comment (gzip) */ -var HCRC = 9; /* i: waiting for header crc (gzip) */ -var DICTID = 10; /* i: waiting for dictionary check value */ -var DICT = 11; /* waiting for inflateSetDictionary() call */ -var TYPE = 12; /* i: waiting for type bits, including last-flag bit */ -var TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */ -var STORED = 14; /* i: waiting for stored size (length and complement) */ -var COPY_ = 15; /* i/o: same as COPY below, but only first time in */ -var COPY = 16; /* i/o: waiting for input or output to copy stored block */ -var TABLE = 17; /* i: waiting for dynamic block table lengths */ -var LENLENS = 18; /* i: waiting for code length code lengths */ -var CODELENS = 19; /* i: waiting for length/lit and distance code lengths */ -var LEN_ = 20; /* i: same as LEN below, but only first time in */ -var LEN = 21; /* i: waiting for length/lit/eob code */ -var LENEXT = 22; /* i: waiting for length extra bits */ -var DIST = 23; /* i: waiting for distance code */ -var DISTEXT = 24; /* i: waiting for distance extra bits */ -var MATCH = 25; /* o: waiting for output space to copy string */ -var LIT = 26; /* o: waiting for output space to write literal */ -var CHECK = 27; /* i: waiting for 32-bit check value */ -var LENGTH = 28; /* i: waiting for 32-bit length (gzip) */ -var DONE = 29; /* finished check, done -- remain here until reset */ -var BAD = 30; /* got a data error -- remain here until reset */ -var MEM = 31; /* got an inflate() memory error -- remain here until reset */ -var SYNC = 32; /* looking for synchronization bytes to restart inflate() */ - -/* ===========================================================================*/ - - - -var ENOUGH_LENS = 852; -var ENOUGH_DISTS = 592; -//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS); - -var MAX_WBITS = 15; -/* 32K LZ77 window */ -var DEF_WBITS = MAX_WBITS; - - -function zswap32(q) { - return (((q >>> 24) & 0xff) + - ((q >>> 8) & 0xff00) + - ((q & 0xff00) << 8) + - ((q & 0xff) << 24)); -} - - -function InflateState() { - this.mode = 0; /* current inflate mode */ - this.last = false; /* true if processing last block */ - this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */ - this.havedict = false; /* true if dictionary provided */ - this.flags = 0; /* gzip header method and flags (0 if zlib) */ - this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */ - this.check = 0; /* protected copy of check value */ - this.total = 0; /* protected copy of output count */ - // TODO: may be {} - this.head = null; /* where to save gzip header information */ - - /* sliding window */ - this.wbits = 0; /* log base 2 of requested window size */ - this.wsize = 0; /* window size or zero if not using window */ - this.whave = 0; /* valid bytes in the window */ - this.wnext = 0; /* window write index */ - this.window = null; /* allocated sliding window, if needed */ - - /* bit accumulator */ - this.hold = 0; /* input bit accumulator */ - this.bits = 0; /* number of bits in "in" */ - - /* for string and stored block copying */ - this.length = 0; /* literal or length of data to copy */ - this.offset = 0; /* distance back to copy string from */ - - /* for table and code decoding */ - this.extra = 0; /* extra bits needed */ - - /* fixed and dynamic code tables */ - this.lencode = null; /* starting table for length/literal codes */ - this.distcode = null; /* starting table for distance codes */ - this.lenbits = 0; /* index bits for lencode */ - this.distbits = 0; /* index bits for distcode */ - - /* dynamic table building */ - this.ncode = 0; /* number of code length code lengths */ - this.nlen = 0; /* number of length code lengths */ - this.ndist = 0; /* number of distance code lengths */ - this.have = 0; /* number of code lengths in lens[] */ - this.next = null; /* next available space in codes[] */ - - this.lens = new utils$1.Buf16(320); /* temporary storage for code lengths */ - this.work = new utils$1.Buf16(288); /* work area for code table building */ - - /* - because we don't have pointers in js, we use lencode and distcode directly - as buffers so we don't need codes - */ - //this.codes = new utils.Buf32(ENOUGH); /* space for code tables */ - this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */ - this.distdyn = null; /* dynamic table for distance codes (JS specific) */ - this.sane = 0; /* if false, allow invalid distance too far */ - this.back = 0; /* bits back of last unprocessed length/lit */ - this.was = 0; /* initial length of match */ -} - -function inflateResetKeep(strm) { - var state; - - if (!strm || !strm.state) { return Z_STREAM_ERROR; } - state = strm.state; - strm.total_in = strm.total_out = state.total = 0; - strm.msg = ''; /*Z_NULL*/ - if (state.wrap) { /* to support ill-conceived Java test suite */ - strm.adler = state.wrap & 1; - } - state.mode = HEAD; - state.last = 0; - state.havedict = 0; - state.dmax = 32768; - state.head = null/*Z_NULL*/; - state.hold = 0; - state.bits = 0; - //state.lencode = state.distcode = state.next = state.codes; - state.lencode = state.lendyn = new utils$1.Buf32(ENOUGH_LENS); - state.distcode = state.distdyn = new utils$1.Buf32(ENOUGH_DISTS); - - state.sane = 1; - state.back = -1; - //Tracev((stderr, "inflate: reset\n")); - return Z_OK; -} - -function inflateReset(strm) { - var state; - - if (!strm || !strm.state) { return Z_STREAM_ERROR; } - state = strm.state; - state.wsize = 0; - state.whave = 0; - state.wnext = 0; - return inflateResetKeep(strm); - -} - -function inflateReset2(strm, windowBits) { - var wrap; - var state; - - /* get the state */ - if (!strm || !strm.state) { return Z_STREAM_ERROR; } - state = strm.state; - - /* extract wrap request from windowBits parameter */ - if (windowBits < 0) { - wrap = 0; - windowBits = -windowBits; - } - else { - wrap = (windowBits >> 4) + 1; - if (windowBits < 48) { - windowBits &= 15; - } - } - - /* set number of window bits, free window if different */ - if (windowBits && (windowBits < 8 || windowBits > 15)) { - return Z_STREAM_ERROR; - } - if (state.window !== null && state.wbits !== windowBits) { - state.window = null; - } - - /* update state and reset the rest of it */ - state.wrap = wrap; - state.wbits = windowBits; - return inflateReset(strm); -} - -function inflateInit2(strm, windowBits) { - var ret; - var state; - - if (!strm) { return Z_STREAM_ERROR; } - //strm.msg = Z_NULL; /* in case we return an error */ - - state = new InflateState(); - - //if (state === Z_NULL) return Z_MEM_ERROR; - //Tracev((stderr, "inflate: allocated\n")); - strm.state = state; - state.window = null/*Z_NULL*/; - ret = inflateReset2(strm, windowBits); - if (ret !== Z_OK) { - strm.state = null/*Z_NULL*/; - } - return ret; -} - -function inflateInit(strm) { - return inflateInit2(strm, DEF_WBITS); -} - - -/* - Return state with length and distance decoding tables and index sizes set to - fixed code decoding. Normally this returns fixed tables from inffixed.h. - If BUILDFIXED is defined, then instead this routine builds the tables the - first time it's called, and returns those tables the first time and - thereafter. This reduces the size of the code by about 2K bytes, in - exchange for a little execution time. However, BUILDFIXED should not be - used for threaded applications, since the rewriting of the tables and virgin - may not be thread-safe. - */ -var virgin = true; - -var lenfix, distfix; // We have no pointers in JS, so keep tables separate - -function fixedtables(state) { - /* build fixed huffman tables if first call (may not be thread safe) */ - if (virgin) { - var sym; - - lenfix = new utils$1.Buf32(512); - distfix = new utils$1.Buf32(32); - - /* literal/length table */ - sym = 0; - while (sym < 144) { state.lens[sym++] = 8; } - while (sym < 256) { state.lens[sym++] = 9; } - while (sym < 280) { state.lens[sym++] = 7; } - while (sym < 288) { state.lens[sym++] = 8; } - - inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 }); - - /* distance table */ - sym = 0; - while (sym < 32) { state.lens[sym++] = 5; } - - inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 }); - - /* do this just once */ - virgin = false; - } - - state.lencode = lenfix; - state.lenbits = 9; - state.distcode = distfix; - state.distbits = 5; -} - - -/* - Update the window with the last wsize (normally 32K) bytes written before - returning. If window does not exist yet, create it. This is only called - when a window is already in use, or when output has been written during this - inflate call, but the end of the deflate stream has not been reached yet. - It is also called to create a window for dictionary data when a dictionary - is loaded. - - Providing output buffers larger than 32K to inflate() should provide a speed - advantage, since only the last 32K of output is copied to the sliding window - upon return from inflate(), and since all distances after the first 32K of - output will fall in the output data, making match copies simpler and faster. - The advantage may be dependent on the size of the processor's data caches. - */ -function updatewindow(strm, src, end, copy) { - var dist; - var state = strm.state; - - /* if it hasn't been done already, allocate space for the window */ - if (state.window === null) { - state.wsize = 1 << state.wbits; - state.wnext = 0; - state.whave = 0; - - state.window = new utils$1.Buf8(state.wsize); - } - - /* copy state->wsize or less output bytes into the circular window */ - if (copy >= state.wsize) { - utils$1.arraySet(state.window, src, end - state.wsize, state.wsize, 0); - state.wnext = 0; - state.whave = state.wsize; - } - else { - dist = state.wsize - state.wnext; - if (dist > copy) { - dist = copy; - } - //zmemcpy(state->window + state->wnext, end - copy, dist); - utils$1.arraySet(state.window, src, end - copy, dist, state.wnext); - copy -= dist; - if (copy) { - //zmemcpy(state->window, end - copy, copy); - utils$1.arraySet(state.window, src, end - copy, copy, 0); - state.wnext = copy; - state.whave = state.wsize; - } - else { - state.wnext += dist; - if (state.wnext === state.wsize) { state.wnext = 0; } - if (state.whave < state.wsize) { state.whave += dist; } - } - } - return 0; -} - -function inflate$2(strm, flush) { - var state; - var input, output; // input/output buffers - var next; /* next input INDEX */ - var put; /* next output INDEX */ - var have, left; /* available input and output */ - var hold; /* bit buffer */ - var bits; /* bits in bit buffer */ - var _in, _out; /* save starting available input and output */ - var copy; /* number of stored or match bytes to copy */ - var from; /* where to copy match bytes from */ - var from_source; - var here = 0; /* current decoding table entry */ - var here_bits, here_op, here_val; // paked "here" denormalized (JS specific) - //var last; /* parent table entry */ - var last_bits, last_op, last_val; // paked "last" denormalized (JS specific) - var len; /* length to copy for repeats, bits to drop */ - var ret; /* return code */ - var hbuf = new utils$1.Buf8(4); /* buffer for gzip header crc calculation */ - var opts; - - var n; // temporary var for NEED_BITS - - var order = /* permutation of code lengths */ - [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ]; - - - if (!strm || !strm.state || !strm.output || - (!strm.input && strm.avail_in !== 0)) { - return Z_STREAM_ERROR; - } - - state = strm.state; - if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */ - - - //--- LOAD() --- - put = strm.next_out; - output = strm.output; - left = strm.avail_out; - next = strm.next_in; - input = strm.input; - have = strm.avail_in; - hold = state.hold; - bits = state.bits; - //--- - - _in = have; - _out = left; - ret = Z_OK; - - inf_leave: // goto emulation - for (;;) { - switch (state.mode) { - case HEAD: - if (state.wrap === 0) { - state.mode = TYPEDO; - break; - } - //=== NEEDBITS(16); - while (bits < 16) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */ - state.check = 0/*crc32(0L, Z_NULL, 0)*/; - //=== CRC2(state.check, hold); - hbuf[0] = hold & 0xff; - hbuf[1] = (hold >>> 8) & 0xff; - state.check = crc32(state.check, hbuf, 2, 0); - //===// - - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - state.mode = FLAGS; - break; - } - state.flags = 0; /* expect zlib header */ - if (state.head) { - state.head.done = false; - } - if (!(state.wrap & 1) || /* check if zlib header allowed */ - (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) { - strm.msg = 'incorrect header check'; - state.mode = BAD; - break; - } - if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) { - strm.msg = 'unknown compression method'; - state.mode = BAD; - break; - } - //--- DROPBITS(4) ---// - hold >>>= 4; - bits -= 4; - //---// - len = (hold & 0x0f)/*BITS(4)*/ + 8; - if (state.wbits === 0) { - state.wbits = len; - } - else if (len > state.wbits) { - strm.msg = 'invalid window size'; - state.mode = BAD; - break; - } - state.dmax = 1 << len; - //Tracev((stderr, "inflate: zlib header ok\n")); - strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/; - state.mode = hold & 0x200 ? DICTID : TYPE; - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - break; - case FLAGS: - //=== NEEDBITS(16); */ - while (bits < 16) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - state.flags = hold; - if ((state.flags & 0xff) !== Z_DEFLATED) { - strm.msg = 'unknown compression method'; - state.mode = BAD; - break; - } - if (state.flags & 0xe000) { - strm.msg = 'unknown header flags set'; - state.mode = BAD; - break; - } - if (state.head) { - state.head.text = ((hold >> 8) & 1); - } - if (state.flags & 0x0200) { - //=== CRC2(state.check, hold); - hbuf[0] = hold & 0xff; - hbuf[1] = (hold >>> 8) & 0xff; - state.check = crc32(state.check, hbuf, 2, 0); - //===// - } - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - state.mode = TIME; - /* falls through */ - case TIME: - //=== NEEDBITS(32); */ - while (bits < 32) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - if (state.head) { - state.head.time = hold; - } - if (state.flags & 0x0200) { - //=== CRC4(state.check, hold) - hbuf[0] = hold & 0xff; - hbuf[1] = (hold >>> 8) & 0xff; - hbuf[2] = (hold >>> 16) & 0xff; - hbuf[3] = (hold >>> 24) & 0xff; - state.check = crc32(state.check, hbuf, 4, 0); - //=== - } - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - state.mode = OS; - /* falls through */ - case OS: - //=== NEEDBITS(16); */ - while (bits < 16) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - if (state.head) { - state.head.xflags = (hold & 0xff); - state.head.os = (hold >> 8); - } - if (state.flags & 0x0200) { - //=== CRC2(state.check, hold); - hbuf[0] = hold & 0xff; - hbuf[1] = (hold >>> 8) & 0xff; - state.check = crc32(state.check, hbuf, 2, 0); - //===// - } - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - state.mode = EXLEN; - /* falls through */ - case EXLEN: - if (state.flags & 0x0400) { - //=== NEEDBITS(16); */ - while (bits < 16) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - state.length = hold; - if (state.head) { - state.head.extra_len = hold; - } - if (state.flags & 0x0200) { - //=== CRC2(state.check, hold); - hbuf[0] = hold & 0xff; - hbuf[1] = (hold >>> 8) & 0xff; - state.check = crc32(state.check, hbuf, 2, 0); - //===// - } - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - } - else if (state.head) { - state.head.extra = null/*Z_NULL*/; - } - state.mode = EXTRA; - /* falls through */ - case EXTRA: - if (state.flags & 0x0400) { - copy = state.length; - if (copy > have) { copy = have; } - if (copy) { - if (state.head) { - len = state.head.extra_len - state.length; - if (!state.head.extra) { - // Use untyped array for more convenient processing later - state.head.extra = new Array(state.head.extra_len); - } - utils$1.arraySet( - state.head.extra, - input, - next, - // extra field is limited to 65536 bytes - // - no need for additional size check - copy, - /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/ - len - ); - //zmemcpy(state.head.extra + len, next, - // len + copy > state.head.extra_max ? - // state.head.extra_max - len : copy); - } - if (state.flags & 0x0200) { - state.check = crc32(state.check, input, copy, next); - } - have -= copy; - next += copy; - state.length -= copy; - } - if (state.length) { break inf_leave; } - } - state.length = 0; - state.mode = NAME; - /* falls through */ - case NAME: - if (state.flags & 0x0800) { - if (have === 0) { break inf_leave; } - copy = 0; - do { - // TODO: 2 or 1 bytes? - len = input[next + copy++]; - /* use constant limit because in js we should not preallocate memory */ - if (state.head && len && - (state.length < 65536 /*state.head.name_max*/)) { - state.head.name += String.fromCharCode(len); - } - } while (len && copy < have); - - if (state.flags & 0x0200) { - state.check = crc32(state.check, input, copy, next); - } - have -= copy; - next += copy; - if (len) { break inf_leave; } - } - else if (state.head) { - state.head.name = null; - } - state.length = 0; - state.mode = COMMENT; - /* falls through */ - case COMMENT: - if (state.flags & 0x1000) { - if (have === 0) { break inf_leave; } - copy = 0; - do { - len = input[next + copy++]; - /* use constant limit because in js we should not preallocate memory */ - if (state.head && len && - (state.length < 65536 /*state.head.comm_max*/)) { - state.head.comment += String.fromCharCode(len); - } - } while (len && copy < have); - if (state.flags & 0x0200) { - state.check = crc32(state.check, input, copy, next); - } - have -= copy; - next += copy; - if (len) { break inf_leave; } - } - else if (state.head) { - state.head.comment = null; - } - state.mode = HCRC; - /* falls through */ - case HCRC: - if (state.flags & 0x0200) { - //=== NEEDBITS(16); */ - while (bits < 16) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - if (hold !== (state.check & 0xffff)) { - strm.msg = 'header crc mismatch'; - state.mode = BAD; - break; - } - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - } - if (state.head) { - state.head.hcrc = ((state.flags >> 9) & 1); - state.head.done = true; - } - strm.adler = state.check = 0; - state.mode = TYPE; - break; - case DICTID: - //=== NEEDBITS(32); */ - while (bits < 32) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - strm.adler = state.check = zswap32(hold); - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - state.mode = DICT; - /* falls through */ - case DICT: - if (state.havedict === 0) { - //--- RESTORE() --- - strm.next_out = put; - strm.avail_out = left; - strm.next_in = next; - strm.avail_in = have; - state.hold = hold; - state.bits = bits; - //--- - return Z_NEED_DICT; - } - strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/; - state.mode = TYPE; - /* falls through */ - case TYPE: - if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; } - /* falls through */ - case TYPEDO: - if (state.last) { - //--- BYTEBITS() ---// - hold >>>= bits & 7; - bits -= bits & 7; - //---// - state.mode = CHECK; - break; - } - //=== NEEDBITS(3); */ - while (bits < 3) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - state.last = (hold & 0x01)/*BITS(1)*/; - //--- DROPBITS(1) ---// - hold >>>= 1; - bits -= 1; - //---// - - switch ((hold & 0x03)/*BITS(2)*/) { - case 0: /* stored block */ - //Tracev((stderr, "inflate: stored block%s\n", - // state.last ? " (last)" : "")); - state.mode = STORED; - break; - case 1: /* fixed block */ - fixedtables(state); - //Tracev((stderr, "inflate: fixed codes block%s\n", - // state.last ? " (last)" : "")); - state.mode = LEN_; /* decode codes */ - if (flush === Z_TREES) { - //--- DROPBITS(2) ---// - hold >>>= 2; - bits -= 2; - //---// - break inf_leave; - } - break; - case 2: /* dynamic block */ - //Tracev((stderr, "inflate: dynamic codes block%s\n", - // state.last ? " (last)" : "")); - state.mode = TABLE; - break; - case 3: - strm.msg = 'invalid block type'; - state.mode = BAD; - } - //--- DROPBITS(2) ---// - hold >>>= 2; - bits -= 2; - //---// - break; - case STORED: - //--- BYTEBITS() ---// /* go to byte boundary */ - hold >>>= bits & 7; - bits -= bits & 7; - //---// - //=== NEEDBITS(32); */ - while (bits < 32) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) { - strm.msg = 'invalid stored block lengths'; - state.mode = BAD; - break; - } - state.length = hold & 0xffff; - //Tracev((stderr, "inflate: stored length %u\n", - // state.length)); - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - state.mode = COPY_; - if (flush === Z_TREES) { break inf_leave; } - /* falls through */ - case COPY_: - state.mode = COPY; - /* falls through */ - case COPY: - copy = state.length; - if (copy) { - if (copy > have) { copy = have; } - if (copy > left) { copy = left; } - if (copy === 0) { break inf_leave; } - //--- zmemcpy(put, next, copy); --- - utils$1.arraySet(output, input, next, copy, put); - //---// - have -= copy; - next += copy; - left -= copy; - put += copy; - state.length -= copy; - break; - } - //Tracev((stderr, "inflate: stored end\n")); - state.mode = TYPE; - break; - case TABLE: - //=== NEEDBITS(14); */ - while (bits < 14) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257; - //--- DROPBITS(5) ---// - hold >>>= 5; - bits -= 5; - //---// - state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1; - //--- DROPBITS(5) ---// - hold >>>= 5; - bits -= 5; - //---// - state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4; - //--- DROPBITS(4) ---// - hold >>>= 4; - bits -= 4; - //---// -//#ifndef PKZIP_BUG_WORKAROUND - if (state.nlen > 286 || state.ndist > 30) { - strm.msg = 'too many length or distance symbols'; - state.mode = BAD; - break; - } -//#endif - //Tracev((stderr, "inflate: table sizes ok\n")); - state.have = 0; - state.mode = LENLENS; - /* falls through */ - case LENLENS: - while (state.have < state.ncode) { - //=== NEEDBITS(3); - while (bits < 3) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - state.lens[order[state.have++]] = (hold & 0x07);//BITS(3); - //--- DROPBITS(3) ---// - hold >>>= 3; - bits -= 3; - //---// - } - while (state.have < 19) { - state.lens[order[state.have++]] = 0; - } - // We have separate tables & no pointers. 2 commented lines below not needed. - //state.next = state.codes; - //state.lencode = state.next; - // Switch to use dynamic table - state.lencode = state.lendyn; - state.lenbits = 7; - - opts = { bits: state.lenbits }; - ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts); - state.lenbits = opts.bits; - - if (ret) { - strm.msg = 'invalid code lengths set'; - state.mode = BAD; - break; - } - //Tracev((stderr, "inflate: code lengths ok\n")); - state.have = 0; - state.mode = CODELENS; - /* falls through */ - case CODELENS: - while (state.have < state.nlen + state.ndist) { - for (;;) { - here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/ - here_bits = here >>> 24; - here_op = (here >>> 16) & 0xff; - here_val = here & 0xffff; - - if ((here_bits) <= bits) { break; } - //--- PULLBYTE() ---// - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - //---// - } - if (here_val < 16) { - //--- DROPBITS(here.bits) ---// - hold >>>= here_bits; - bits -= here_bits; - //---// - state.lens[state.have++] = here_val; - } - else { - if (here_val === 16) { - //=== NEEDBITS(here.bits + 2); - n = here_bits + 2; - while (bits < n) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - //--- DROPBITS(here.bits) ---// - hold >>>= here_bits; - bits -= here_bits; - //---// - if (state.have === 0) { - strm.msg = 'invalid bit length repeat'; - state.mode = BAD; - break; - } - len = state.lens[state.have - 1]; - copy = 3 + (hold & 0x03);//BITS(2); - //--- DROPBITS(2) ---// - hold >>>= 2; - bits -= 2; - //---// - } - else if (here_val === 17) { - //=== NEEDBITS(here.bits + 3); - n = here_bits + 3; - while (bits < n) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - //--- DROPBITS(here.bits) ---// - hold >>>= here_bits; - bits -= here_bits; - //---// - len = 0; - copy = 3 + (hold & 0x07);//BITS(3); - //--- DROPBITS(3) ---// - hold >>>= 3; - bits -= 3; - //---// - } - else { - //=== NEEDBITS(here.bits + 7); - n = here_bits + 7; - while (bits < n) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - //--- DROPBITS(here.bits) ---// - hold >>>= here_bits; - bits -= here_bits; - //---// - len = 0; - copy = 11 + (hold & 0x7f);//BITS(7); - //--- DROPBITS(7) ---// - hold >>>= 7; - bits -= 7; - //---// - } - if (state.have + copy > state.nlen + state.ndist) { - strm.msg = 'invalid bit length repeat'; - state.mode = BAD; - break; - } - while (copy--) { - state.lens[state.have++] = len; - } - } - } - - /* handle error breaks in while */ - if (state.mode === BAD) { break; } - - /* check for end-of-block code (better have one) */ - if (state.lens[256] === 0) { - strm.msg = 'invalid code -- missing end-of-block'; - state.mode = BAD; - break; - } - - /* build code tables -- note: do not change the lenbits or distbits - values here (9 and 6) without reading the comments in inftrees.h - concerning the ENOUGH constants, which depend on those values */ - state.lenbits = 9; - - opts = { bits: state.lenbits }; - ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts); - // We have separate tables & no pointers. 2 commented lines below not needed. - // state.next_index = opts.table_index; - state.lenbits = opts.bits; - // state.lencode = state.next; - - if (ret) { - strm.msg = 'invalid literal/lengths set'; - state.mode = BAD; - break; - } - - state.distbits = 6; - //state.distcode.copy(state.codes); - // Switch to use dynamic table - state.distcode = state.distdyn; - opts = { bits: state.distbits }; - ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts); - // We have separate tables & no pointers. 2 commented lines below not needed. - // state.next_index = opts.table_index; - state.distbits = opts.bits; - // state.distcode = state.next; - - if (ret) { - strm.msg = 'invalid distances set'; - state.mode = BAD; - break; - } - //Tracev((stderr, 'inflate: codes ok\n')); - state.mode = LEN_; - if (flush === Z_TREES) { break inf_leave; } - /* falls through */ - case LEN_: - state.mode = LEN; - /* falls through */ - case LEN: - if (have >= 6 && left >= 258) { - //--- RESTORE() --- - strm.next_out = put; - strm.avail_out = left; - strm.next_in = next; - strm.avail_in = have; - state.hold = hold; - state.bits = bits; - //--- - inflate_fast(strm, _out); - //--- LOAD() --- - put = strm.next_out; - output = strm.output; - left = strm.avail_out; - next = strm.next_in; - input = strm.input; - have = strm.avail_in; - hold = state.hold; - bits = state.bits; - //--- - - if (state.mode === TYPE) { - state.back = -1; - } - break; - } - state.back = 0; - for (;;) { - here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/ - here_bits = here >>> 24; - here_op = (here >>> 16) & 0xff; - here_val = here & 0xffff; - - if (here_bits <= bits) { break; } - //--- PULLBYTE() ---// - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - //---// - } - if (here_op && (here_op & 0xf0) === 0) { - last_bits = here_bits; - last_op = here_op; - last_val = here_val; - for (;;) { - here = state.lencode[last_val + - ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)]; - here_bits = here >>> 24; - here_op = (here >>> 16) & 0xff; - here_val = here & 0xffff; - - if ((last_bits + here_bits) <= bits) { break; } - //--- PULLBYTE() ---// - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - //---// - } - //--- DROPBITS(last.bits) ---// - hold >>>= last_bits; - bits -= last_bits; - //---// - state.back += last_bits; - } - //--- DROPBITS(here.bits) ---// - hold >>>= here_bits; - bits -= here_bits; - //---// - state.back += here_bits; - state.length = here_val; - if (here_op === 0) { - //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ? - // "inflate: literal '%c'\n" : - // "inflate: literal 0x%02x\n", here.val)); - state.mode = LIT; - break; - } - if (here_op & 32) { - //Tracevv((stderr, "inflate: end of block\n")); - state.back = -1; - state.mode = TYPE; - break; - } - if (here_op & 64) { - strm.msg = 'invalid literal/length code'; - state.mode = BAD; - break; - } - state.extra = here_op & 15; - state.mode = LENEXT; - /* falls through */ - case LENEXT: - if (state.extra) { - //=== NEEDBITS(state.extra); - n = state.extra; - while (bits < n) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/; - //--- DROPBITS(state.extra) ---// - hold >>>= state.extra; - bits -= state.extra; - //---// - state.back += state.extra; - } - //Tracevv((stderr, "inflate: length %u\n", state.length)); - state.was = state.length; - state.mode = DIST; - /* falls through */ - case DIST: - for (;;) { - here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/ - here_bits = here >>> 24; - here_op = (here >>> 16) & 0xff; - here_val = here & 0xffff; - - if ((here_bits) <= bits) { break; } - //--- PULLBYTE() ---// - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - //---// - } - if ((here_op & 0xf0) === 0) { - last_bits = here_bits; - last_op = here_op; - last_val = here_val; - for (;;) { - here = state.distcode[last_val + - ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)]; - here_bits = here >>> 24; - here_op = (here >>> 16) & 0xff; - here_val = here & 0xffff; - - if ((last_bits + here_bits) <= bits) { break; } - //--- PULLBYTE() ---// - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - //---// - } - //--- DROPBITS(last.bits) ---// - hold >>>= last_bits; - bits -= last_bits; - //---// - state.back += last_bits; - } - //--- DROPBITS(here.bits) ---// - hold >>>= here_bits; - bits -= here_bits; - //---// - state.back += here_bits; - if (here_op & 64) { - strm.msg = 'invalid distance code'; - state.mode = BAD; - break; - } - state.offset = here_val; - state.extra = (here_op) & 15; - state.mode = DISTEXT; - /* falls through */ - case DISTEXT: - if (state.extra) { - //=== NEEDBITS(state.extra); - n = state.extra; - while (bits < n) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/; - //--- DROPBITS(state.extra) ---// - hold >>>= state.extra; - bits -= state.extra; - //---// - state.back += state.extra; - } -//#ifdef INFLATE_STRICT - if (state.offset > state.dmax) { - strm.msg = 'invalid distance too far back'; - state.mode = BAD; - break; - } -//#endif - //Tracevv((stderr, "inflate: distance %u\n", state.offset)); - state.mode = MATCH; - /* falls through */ - case MATCH: - if (left === 0) { break inf_leave; } - copy = _out - left; - if (state.offset > copy) { /* copy from window */ - copy = state.offset - copy; - if (copy > state.whave) { - if (state.sane) { - strm.msg = 'invalid distance too far back'; - state.mode = BAD; - break; - } -// (!) This block is disabled in zlib defaults, -// don't enable it for binary compatibility -//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR -// Trace((stderr, "inflate.c too far\n")); -// copy -= state.whave; -// if (copy > state.length) { copy = state.length; } -// if (copy > left) { copy = left; } -// left -= copy; -// state.length -= copy; -// do { -// output[put++] = 0; -// } while (--copy); -// if (state.length === 0) { state.mode = LEN; } -// break; -//#endif - } - if (copy > state.wnext) { - copy -= state.wnext; - from = state.wsize - copy; - } - else { - from = state.wnext - copy; - } - if (copy > state.length) { copy = state.length; } - from_source = state.window; - } - else { /* copy from output */ - from_source = output; - from = put - state.offset; - copy = state.length; - } - if (copy > left) { copy = left; } - left -= copy; - state.length -= copy; - do { - output[put++] = from_source[from++]; - } while (--copy); - if (state.length === 0) { state.mode = LEN; } - break; - case LIT: - if (left === 0) { break inf_leave; } - output[put++] = state.length; - left--; - state.mode = LEN; - break; - case CHECK: - if (state.wrap) { - //=== NEEDBITS(32); - while (bits < 32) { - if (have === 0) { break inf_leave; } - have--; - // Use '|' instead of '+' to make sure that result is signed - hold |= input[next++] << bits; - bits += 8; - } - //===// - _out -= left; - strm.total_out += _out; - state.total += _out; - if (_out) { - strm.adler = state.check = - /*UPDATE(state.check, put - _out, _out);*/ - (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out)); - - } - _out = left; - // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too - if ((state.flags ? hold : zswap32(hold)) !== state.check) { - strm.msg = 'incorrect data check'; - state.mode = BAD; - break; - } - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - //Tracev((stderr, "inflate: check matches trailer\n")); - } - state.mode = LENGTH; - /* falls through */ - case LENGTH: - if (state.wrap && state.flags) { - //=== NEEDBITS(32); - while (bits < 32) { - if (have === 0) { break inf_leave; } - have--; - hold += input[next++] << bits; - bits += 8; - } - //===// - if (hold !== (state.total & 0xffffffff)) { - strm.msg = 'incorrect length check'; - state.mode = BAD; - break; - } - //=== INITBITS(); - hold = 0; - bits = 0; - //===// - //Tracev((stderr, "inflate: length matches trailer\n")); - } - state.mode = DONE; - /* falls through */ - case DONE: - ret = Z_STREAM_END; - break inf_leave; - case BAD: - ret = Z_DATA_ERROR; - break inf_leave; - case MEM: - return Z_MEM_ERROR; - case SYNC: - /* falls through */ - default: - return Z_STREAM_ERROR; - } - } - - // inf_leave <- here is real place for "goto inf_leave", emulated via "break inf_leave" - - /* - Return from inflate(), updating the total counts and the check value. - If there was no progress during the inflate() call, return a buffer - error. Call updatewindow() to create and/or update the window state. - Note: a memory error from inflate() is non-recoverable. - */ - - //--- RESTORE() --- - strm.next_out = put; - strm.avail_out = left; - strm.next_in = next; - strm.avail_in = have; - state.hold = hold; - state.bits = bits; - //--- - - if (state.wsize || (_out !== strm.avail_out && state.mode < BAD && - (state.mode < CHECK || flush !== Z_FINISH))) { - if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) ; - } - _in -= strm.avail_in; - _out -= strm.avail_out; - strm.total_in += _in; - strm.total_out += _out; - state.total += _out; - if (state.wrap && _out) { - strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/ - (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out)); - } - strm.data_type = state.bits + (state.last ? 64 : 0) + - (state.mode === TYPE ? 128 : 0) + - (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0); - if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) { - ret = Z_BUF_ERROR; - } - return ret; -} - -function inflateEnd(strm) { - - if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) { - return Z_STREAM_ERROR; - } - - var state = strm.state; - if (state.window) { - state.window = null; - } - strm.state = null; - return Z_OK; -} - -function inflateGetHeader(strm, head) { - var state; - - /* check state */ - if (!strm || !strm.state) { return Z_STREAM_ERROR; } - state = strm.state; - if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; } - - /* save header structure */ - state.head = head; - head.done = false; - return Z_OK; -} - -function inflateSetDictionary(strm, dictionary) { - var dictLength = dictionary.length; - - var state; - var dictid; - var ret; - - /* check state */ - if (!strm /* == Z_NULL */ || !strm.state /* == Z_NULL */) { return Z_STREAM_ERROR; } - state = strm.state; - - if (state.wrap !== 0 && state.mode !== DICT) { - return Z_STREAM_ERROR; - } - - /* check for correct dictionary identifier */ - if (state.mode === DICT) { - dictid = 1; /* adler32(0, null, 0)*/ - /* dictid = adler32(dictid, dictionary, dictLength); */ - dictid = adler32(dictid, dictionary, dictLength, 0); - if (dictid !== state.check) { - return Z_DATA_ERROR; - } - } - /* copy dictionary to window using updatewindow(), which will amend the - existing dictionary if appropriate */ - ret = updatewindow(strm, dictionary, dictLength, dictLength); - if (ret) { - state.mode = MEM; - return Z_MEM_ERROR; - } - state.havedict = 1; - // Tracev((stderr, "inflate: dictionary set\n")); - return Z_OK; -} - -inflate$3.inflateReset = inflateReset; -inflate$3.inflateReset2 = inflateReset2; -inflate$3.inflateResetKeep = inflateResetKeep; -inflate$3.inflateInit = inflateInit; -inflate$3.inflateInit2 = inflateInit2; -inflate$3.inflate = inflate$2; -inflate$3.inflateEnd = inflateEnd; -inflate$3.inflateGetHeader = inflateGetHeader; -inflate$3.inflateSetDictionary = inflateSetDictionary; -inflate$3.inflateInfo = 'pako inflate (from Nodeca project)'; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -var constants$1 = { - - /* Allowed flush values; see deflate() and inflate() below for details */ - Z_NO_FLUSH: 0, - Z_PARTIAL_FLUSH: 1, - Z_SYNC_FLUSH: 2, - Z_FULL_FLUSH: 3, - Z_FINISH: 4, - Z_BLOCK: 5, - Z_TREES: 6, - - /* Return codes for the compression/decompression functions. Negative values - * are errors, positive values are used for special but normal events. - */ - Z_OK: 0, - Z_STREAM_END: 1, - Z_NEED_DICT: 2, - Z_ERRNO: -1, - Z_STREAM_ERROR: -2, - Z_DATA_ERROR: -3, - //Z_MEM_ERROR: -4, - Z_BUF_ERROR: -5, - //Z_VERSION_ERROR: -6, - - /* compression levels */ - Z_NO_COMPRESSION: 0, - Z_BEST_SPEED: 1, - Z_BEST_COMPRESSION: 9, - Z_DEFAULT_COMPRESSION: -1, - - - Z_FILTERED: 1, - Z_HUFFMAN_ONLY: 2, - Z_RLE: 3, - Z_FIXED: 4, - Z_DEFAULT_STRATEGY: 0, - - /* Possible values of the data_type field (though see inflate()) */ - Z_BINARY: 0, - Z_TEXT: 1, - //Z_ASCII: 1, // = Z_TEXT (deprecated) - Z_UNKNOWN: 2, - - /* The deflate compression method */ - Z_DEFLATED: 8 - //Z_NULL: null // Use -1 or null inline, depending on var type -}; - -// (C) 1995-2013 Jean-loup Gailly and Mark Adler -// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. - -function GZheader$1() { - /* true if compressed data believed to be text */ - this.text = 0; - /* modification time */ - this.time = 0; - /* extra flags (not used when writing a gzip file) */ - this.xflags = 0; - /* operating system */ - this.os = 0; - /* pointer to extra field or Z_NULL if none */ - this.extra = null; - /* extra field length (valid if extra != Z_NULL) */ - this.extra_len = 0; // Actually, we don't need it in JS, - // but leave for few code modifications - - // - // Setup limits is not necessary because in js we should not preallocate memory - // for inflate use constant limit in 65536 bytes - // - - /* space at extra (only when reading header) */ - // this.extra_max = 0; - /* pointer to zero-terminated file name or Z_NULL */ - this.name = ''; - /* space at name (only when reading header) */ - // this.name_max = 0; - /* pointer to zero-terminated comment or Z_NULL */ - this.comment = ''; - /* space at comment (only when reading header) */ - // this.comm_max = 0; - /* true if there was or will be a header crc */ - this.hcrc = 0; - /* true when done reading gzip header (not used when writing a gzip file) */ - this.done = false; -} - -var gzheader = GZheader$1; - -var zlib_inflate = inflate$3; -var utils = common; -var strings = strings$2; -var c = constants$1; -var msg = messages; -var ZStream = zstream; -var GZheader = gzheader; - -var toString = Object.prototype.toString; - -/** - * class Inflate - * - * Generic JS-style wrapper for zlib calls. If you don't need - * streaming behaviour - use more simple functions: [[inflate]] - * and [[inflateRaw]]. - **/ - -/* internal - * inflate.chunks -> Array - * - * Chunks of output data, if [[Inflate#onData]] not overridden. - **/ - -/** - * Inflate.result -> Uint8Array|Array|String - * - * Uncompressed result, generated by default [[Inflate#onData]] - * and [[Inflate#onEnd]] handlers. Filled after you push last chunk - * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you - * push a chunk with explicit flush (call [[Inflate#push]] with - * `Z_SYNC_FLUSH` param). - **/ - -/** - * Inflate.err -> Number - * - * Error code after inflate finished. 0 (Z_OK) on success. - * Should be checked if broken data possible. - **/ - -/** - * Inflate.msg -> String - * - * Error message, if [[Inflate.err]] != 0 - **/ - - -/** - * new Inflate(options) - * - options (Object): zlib inflate options. - * - * Creates new inflator instance with specified params. Throws exception - * on bad params. Supported options: - * - * - `windowBits` - * - `dictionary` - * - * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced) - * for more information on these. - * - * Additional options, for internal needs: - * - * - `chunkSize` - size of generated data chunks (16K by default) - * - `raw` (Boolean) - do raw inflate - * - `to` (String) - if equal to 'string', then result will be converted - * from utf8 to utf16 (javascript) string. When string output requested, - * chunk length can differ from `chunkSize`, depending on content. - * - * By default, when no options set, autodetect deflate/gzip data format via - * wrapper header. - * - * ##### Example: - * - * ```javascript - * var pako = require('pako') - * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9]) - * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]); - * - * var inflate = new pako.Inflate({ level: 3}); - * - * inflate.push(chunk1, false); - * inflate.push(chunk2, true); // true -> last chunk - * - * if (inflate.err) { throw new Error(inflate.err); } - * - * console.log(inflate.result); - * ``` - **/ -function Inflate(options) { - if (!(this instanceof Inflate)) return new Inflate(options); - - this.options = utils.assign({ - chunkSize: 16384, - windowBits: 0, - to: '' - }, options || {}); - - var opt = this.options; - - // Force window size for `raw` data, if not set directly, - // because we have no header for autodetect. - if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) { - opt.windowBits = -opt.windowBits; - if (opt.windowBits === 0) { opt.windowBits = -15; } - } - - // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate - if ((opt.windowBits >= 0) && (opt.windowBits < 16) && - !(options && options.windowBits)) { - opt.windowBits += 32; - } - - // Gzip header has no info about windows size, we can do autodetect only - // for deflate. So, if window size not set, force it to max when gzip possible - if ((opt.windowBits > 15) && (opt.windowBits < 48)) { - // bit 3 (16) -> gzipped data - // bit 4 (32) -> autodetect gzip/deflate - if ((opt.windowBits & 15) === 0) { - opt.windowBits |= 15; - } - } - - this.err = 0; // error code, if happens (0 = Z_OK) - this.msg = ''; // error message - this.ended = false; // used to avoid multiple onEnd() calls - this.chunks = []; // chunks of compressed data - - this.strm = new ZStream(); - this.strm.avail_out = 0; - - var status = zlib_inflate.inflateInit2( - this.strm, - opt.windowBits - ); - - if (status !== c.Z_OK) { - throw new Error(msg[status]); - } - - this.header = new GZheader(); - - zlib_inflate.inflateGetHeader(this.strm, this.header); - - // Setup dictionary - if (opt.dictionary) { - // Convert data if needed - if (typeof opt.dictionary === 'string') { - opt.dictionary = strings.string2buf(opt.dictionary); - } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') { - opt.dictionary = new Uint8Array(opt.dictionary); - } - if (opt.raw) { //In raw mode we need to set the dictionary early - status = zlib_inflate.inflateSetDictionary(this.strm, opt.dictionary); - if (status !== c.Z_OK) { - throw new Error(msg[status]); - } - } - } -} - -/** - * Inflate#push(data[, mode]) -> Boolean - * - data (Uint8Array|Array|ArrayBuffer|String): input data - * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes. - * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH. - * - * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with - * new output chunks. Returns `true` on success. The last data block must have - * mode Z_FINISH (or `true`). That will flush internal pending buffers and call - * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you - * can use mode Z_SYNC_FLUSH, keeping the decompression context. - * - * On fail call [[Inflate#onEnd]] with error code and return false. - * - * We strongly recommend to use `Uint8Array` on input for best speed (output - * format is detected automatically). Also, don't skip last param and always - * use the same type in your code (boolean or number). That will improve JS speed. - * - * For regular `Array`-s make sure all elements are [0..255]. - * - * ##### Example - * - * ```javascript - * push(chunk, false); // push one of data chunks - * ... - * push(chunk, true); // push last chunk - * ``` - **/ -Inflate.prototype.push = function (data, mode) { - var strm = this.strm; - var chunkSize = this.options.chunkSize; - var dictionary = this.options.dictionary; - var status, _mode; - var next_out_utf8, tail, utf8str; - - // Flag to properly process Z_BUF_ERROR on testing inflate call - // when we check that all output data was flushed. - var allowBufError = false; - - if (this.ended) { return false; } - _mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH); - - // Convert data if needed - if (typeof data === 'string') { - // Only binary strings can be decompressed on practice - strm.input = strings.binstring2buf(data); - } else if (toString.call(data) === '[object ArrayBuffer]') { - strm.input = new Uint8Array(data); - } else { - strm.input = data; - } - - strm.next_in = 0; - strm.avail_in = strm.input.length; - - do { - if (strm.avail_out === 0) { - strm.output = new utils.Buf8(chunkSize); - strm.next_out = 0; - strm.avail_out = chunkSize; - } - - status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH); /* no bad return value */ - - if (status === c.Z_NEED_DICT && dictionary) { - status = zlib_inflate.inflateSetDictionary(this.strm, dictionary); - } - - if (status === c.Z_BUF_ERROR && allowBufError === true) { - status = c.Z_OK; - allowBufError = false; - } - - if (status !== c.Z_STREAM_END && status !== c.Z_OK) { - this.onEnd(status); - this.ended = true; - return false; - } - - if (strm.next_out) { - if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) { - - if (this.options.to === 'string') { - - next_out_utf8 = strings.utf8border(strm.output, strm.next_out); - - tail = strm.next_out - next_out_utf8; - utf8str = strings.buf2string(strm.output, next_out_utf8); - - // move tail - strm.next_out = tail; - strm.avail_out = chunkSize - tail; - if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); } - - this.onData(utf8str); - - } else { - this.onData(utils.shrinkBuf(strm.output, strm.next_out)); - } - } - } - - // When no more input data, we should check that internal inflate buffers - // are flushed. The only way to do it when avail_out = 0 - run one more - // inflate pass. But if output data not exists, inflate return Z_BUF_ERROR. - // Here we set flag to process this error properly. - // - // NOTE. Deflate does not return error in this case and does not needs such - // logic. - if (strm.avail_in === 0 && strm.avail_out === 0) { - allowBufError = true; - } - - } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END); - - if (status === c.Z_STREAM_END) { - _mode = c.Z_FINISH; - } - - // Finalize on the last chunk. - if (_mode === c.Z_FINISH) { - status = zlib_inflate.inflateEnd(this.strm); - this.onEnd(status); - this.ended = true; - return status === c.Z_OK; - } - - // callback interim results if Z_SYNC_FLUSH. - if (_mode === c.Z_SYNC_FLUSH) { - this.onEnd(c.Z_OK); - strm.avail_out = 0; - return true; - } - - return true; -}; - - -/** - * Inflate#onData(chunk) -> Void - * - chunk (Uint8Array|Array|String): output data. Type of array depends - * on js engine support. When string output requested, each chunk - * will be string. - * - * By default, stores data blocks in `chunks[]` property and glue - * those in `onEnd`. Override this handler, if you need another behaviour. - **/ -Inflate.prototype.onData = function (chunk) { - this.chunks.push(chunk); -}; - - -/** - * Inflate#onEnd(status) -> Void - * - status (Number): inflate status. 0 (Z_OK) on success, - * other if not. - * - * Called either after you tell inflate that the input stream is - * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH) - * or if an error happened. By default - join collected chunks, - * free memory and fill `results` / `err` properties. - **/ -Inflate.prototype.onEnd = function (status) { - // On success - join - if (status === c.Z_OK) { - if (this.options.to === 'string') { - // Glue & convert here, until we teach pako to send - // utf8 aligned strings to onData - this.result = this.chunks.join(''); - } else { - this.result = utils.flattenChunks(this.chunks); - } - } - this.chunks = []; - this.err = status; - this.msg = this.strm.msg; -}; - - -/** - * inflate(data[, options]) -> Uint8Array|Array|String - * - data (Uint8Array|Array|String): input data to decompress. - * - options (Object): zlib inflate options. - * - * Decompress `data` with inflate/ungzip and `options`. Autodetect - * format via wrapper header by default. That's why we don't provide - * separate `ungzip` method. - * - * Supported options are: - * - * - windowBits - * - * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced) - * for more information. - * - * Sugar (options): - * - * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify - * negative windowBits implicitly. - * - `to` (String) - if equal to 'string', then result will be converted - * from utf8 to utf16 (javascript) string. When string output requested, - * chunk length can differ from `chunkSize`, depending on content. - * - * - * ##### Example: - * - * ```javascript - * var pako = require('pako') - * , input = pako.deflate([1,2,3,4,5,6,7,8,9]) - * , output; - * - * try { - * output = pako.inflate(input); - * } catch (err) - * console.log(err); - * } - * ``` - **/ -function inflate$1(input, options) { - var inflator = new Inflate(options); - - inflator.push(input, true); - - // That will never happens, if you don't cheat with options :) - if (inflator.err) { throw inflator.msg || msg[inflator.err]; } - - return inflator.result; -} - - -/** - * inflateRaw(data[, options]) -> Uint8Array|Array|String - * - data (Uint8Array|Array|String): input data to decompress. - * - options (Object): zlib inflate options. - * - * The same as [[inflate]], but creates raw data, without wrapper - * (header and adler32 crc). - **/ -function inflateRaw(input, options) { - options = options || {}; - options.raw = true; - return inflate$1(input, options); -} - - -/** - * ungzip(data[, options]) -> Uint8Array|Array|String - * - data (Uint8Array|Array|String): input data to decompress. - * - options (Object): zlib inflate options. - * - * Just shortcut to [[inflate]], because it autodetects format - * by header.content. Done for convenience. - **/ - - -inflate$4.Inflate = Inflate; -inflate$4.inflate = inflate$1; -inflate$4.inflateRaw = inflateRaw; -inflate$4.ungzip = inflate$1; - -var assign = common.assign; - -var deflate = deflate$4; -var inflate = inflate$4; -var constants = constants$1; - -var pako = {}; - -assign(pako, deflate, inflate, constants); - -var pako_1 = pako; - -const TABBAR_HEIGHT = 50; -const ON_REACH_BOTTOM_DISTANCE = 50; -const I18N_JSON_DELIMITERS = ['%', '%']; -const SCHEME_RE = /^([a-z-]+:)?\/\//i; -const DATA_RE = /^data:.*,.*/; -const WEB_INVOKE_APPSERVICE = 'WEB_INVOKE_APPSERVICE'; -// lifecycle -// App and Page -const ON_SHOW = 'onShow'; -const ON_HIDE = 'onHide'; -//App -const ON_LAUNCH = 'onLaunch'; -const ON_ERROR = 'onError'; -const ON_KEYBOARD_HEIGHT_CHANGE = 'onKeyboardHeightChange'; -const ON_PAGE_NOT_FOUND = 'onPageNotFound'; -const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; -const ON_READY = 'onReady'; -const ON_UNLOAD = 'onUnload'; -const ON_RESIZE = 'onResize'; -const ON_BACK_PRESS = 'onBackPress'; -const ON_PAGE_SCROLL = 'onPageScroll'; -const ON_TAB_ITEM_TAP = 'onTabItemTap'; -const ON_REACH_BOTTOM = 'onReachBottom'; -const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh'; -// navigationBar -const ON_NAVIGATION_BAR_BUTTON_TAP = 'onNavigationBarButtonTap'; -// framework -const ON_APP_ENTER_FOREGROUND = 'onAppEnterForeground'; -const ON_APP_ENTER_BACKGROUND = 'onAppEnterBackground'; -const ON_WXS_INVOKE_CALL_METHOD = 'onWxsInvokeCallMethod'; - -function isComponentInternalInstance(vm) { - return !!vm.appContext; -} -function resolveComponentInstance(instance) { - return (instance && - (isComponentInternalInstance(instance) ? instance.proxy : instance)); -} - -let lastLogTime = 0; -function formatLog(module, ...args) { - const now = Date.now(); - const diff = lastLogTime ? now - lastLogTime : 0; - lastLogTime = now; - return `[${now}][${diff}ms][${module}]:${args - .map((arg) => JSON.stringify(arg)) - .join(' ')}`; -} - -function cache(fn) { - const cache = Object.create(null); - return (str) => { - const hit = cache[str]; - return hit || (cache[str] = fn(str)); - }; -} -function cacheStringFunction(fn) { - return cache(fn); -} -function getLen(str = '') { - return ('' + str).replace(/[^\x00-\xff]/g, '**').length; -} -function hasLeadingSlash(str) { - return str.indexOf('/') === 0; -} -function addLeadingSlash(str) { - return hasLeadingSlash(str) ? str : '/' + str; -} -function removeLeadingSlash(str) { - return hasLeadingSlash(str) ? str.slice(1) : str; -} -const invokeArrayFns = (fns, arg) => { - let ret; - for (let i = 0; i < fns.length; i++) { - ret = fns[i](arg); - } - return ret; -}; -function once(fn, ctx = null) { - let res; - return ((...args) => { - if (fn) { - res = fn.apply(ctx, args); - fn = null; - } - return res; - }); -} -function callOptions(options, data) { - options = options || {}; - if (isString(data)) { - data = { - errMsg: data, - }; - } - if (/:ok$/.test(data.errMsg)) { - if (isFunction(options.success)) { - options.success(data); - } - } - else { - if (isFunction(options.fail)) { - options.fail(data); - } - } - if (isFunction(options.complete)) { - options.complete(data); - } -} - -const encode$1 = encodeURIComponent; -function stringifyQuery(obj, encodeStr = encode$1) { - const res = obj - ? Object.keys(obj) - .map((key) => { - let val = obj[key]; - if (typeof val === undefined || val === null) { - val = ''; - } - else if (isPlainObject(val)) { - val = JSON.stringify(val); - } - return encodeStr(key) + '=' + encodeStr(val); - }) - .filter((x) => x.length > 0) - .join('&') - : null; - return res ? `?${res}` : ''; -} -/** - * Decode text using `decodeURIComponent`. Returns the original text if it - * fails. - * - * @param text - string to decode - * @returns decoded string - */ -function decode(text) { - try { - return decodeURIComponent('' + text); - } - catch (err) { } - return '' + text; -} -const PLUS_RE = /\+/g; // %2B -/** - * https://github.com/vuejs/vue-router-next/blob/master/src/query.ts - * @internal - * - * @param search - search string to parse - * @returns a query object - */ -function parseQuery(search) { - const query = {}; - // avoid creating an object with an empty key and empty value - // because of split('&') - if (search === '' || search === '?') - return query; - const hasLeadingIM = search[0] === '?'; - const searchParams = (hasLeadingIM ? search.slice(1) : search).split('&'); - for (let i = 0; i < searchParams.length; ++i) { - // pre decode the + into space - const searchParam = searchParams[i].replace(PLUS_RE, ' '); - // allow the = character - let eqPos = searchParam.indexOf('='); - let key = decode(eqPos < 0 ? searchParam : searchParam.slice(0, eqPos)); - let value = eqPos < 0 ? null : decode(searchParam.slice(eqPos + 1)); - if (key in query) { - // an extra variable for ts types - let currentValue = query[key]; - if (!isArray(currentValue)) { - currentValue = query[key] = [currentValue]; - } - currentValue.push(value); - } - else { - query[key] = value; - } - } - return query; -} - -function parseUrl(url) { - const [path, querystring] = url.split('?', 2); - return { - path, - query: parseQuery(querystring || ''), - }; -} - -function parseNVueDataset(attr) { - const dataset = {}; - if (attr) { - Object.keys(attr).forEach((key) => { - if (key.indexOf('data-') === 0) { - dataset[key.replace('data-', '')] = attr[key]; - } - }); - } - return dataset; -} - -class DOMException extends Error { - constructor(message) { - super(message); - this.name = 'DOMException'; - } -} - -function normalizeEventType(type, options) { - if (options) { - if (options.capture) { - type += 'Capture'; - } - if (options.once) { - type += 'Once'; - } - if (options.passive) { - type += 'Passive'; - } - } - return `on${capitalize(camelize(type))}`; -} -class UniEvent { - constructor(type, opts) { - this.defaultPrevented = false; - this.timeStamp = Date.now(); - this._stop = false; - this._end = false; - this.type = type; - this.bubbles = !!opts.bubbles; - this.cancelable = !!opts.cancelable; - } - preventDefault() { - this.defaultPrevented = true; - } - stopImmediatePropagation() { - this._end = this._stop = true; - } - stopPropagation() { - this._stop = true; - } -} -function createUniEvent(evt) { - if (evt instanceof UniEvent) { - return evt; - } - const [type] = parseEventName(evt.type); - const uniEvent = new UniEvent(type, { - bubbles: false, - cancelable: false, - }); - extend(uniEvent, evt); - return uniEvent; -} -class UniEventTarget { - constructor() { - this.listeners = Object.create(null); - } - dispatchEvent(evt) { - const listeners = this.listeners[evt.type]; - if (!listeners) { - if (('production' !== 'production')) { - console.error(formatLog('dispatchEvent', this.nodeId), evt.type, 'not found'); - } - return false; - } - // 格式化事件类型 - const event = createUniEvent(evt); - const len = listeners.length; - for (let i = 0; i < len; i++) { - listeners[i].call(this, event); - if (event._end) { - break; - } - } - return event.cancelable && event.defaultPrevented; - } - addEventListener(type, listener, options) { - type = normalizeEventType(type, options); - (this.listeners[type] || (this.listeners[type] = [])).push(listener); - } - removeEventListener(type, callback, options) { - type = normalizeEventType(type, options); - const listeners = this.listeners[type]; - if (!listeners) { - return; - } - const index = listeners.indexOf(callback); - if (index > -1) { - listeners.splice(index, 1); - } - } -} -const optionsModifierRE = /(?:Once|Passive|Capture)$/; -function parseEventName(name) { - let options; - if (optionsModifierRE.test(name)) { - options = {}; - let m; - while ((m = name.match(optionsModifierRE))) { - name = name.slice(0, name.length - m[0].length); - options[m[0].toLowerCase()] = true; - } - } - return [hyphenate(name.slice(2)), options]; -} - -const NODE_TYPE_PAGE = 0; -const NODE_TYPE_ELEMENT = 1; -function sibling(node, type) { - const { parentNode } = node; - if (!parentNode) { - return null; - } - const { childNodes } = parentNode; - return childNodes[childNodes.indexOf(node) + (type === 'n' ? 1 : -1)] || null; -} -function removeNode(node) { - const { parentNode } = node; - if (parentNode) { - const { childNodes } = parentNode; - const index = childNodes.indexOf(node); - if (index > -1) { - node.parentNode = null; - childNodes.splice(index, 1); - } - } -} -function checkNodeId(node) { - if (!node.nodeId && node.pageNode) { - node.nodeId = node.pageNode.genId(); - } -} -// 为优化性能,各平台不使用proxy来实现node的操作拦截,而是直接通过pageNode定制 -class UniNode extends UniEventTarget { - constructor(nodeType, nodeName, container) { - super(); - this.pageNode = null; - this.parentNode = null; - this._text = null; - if (container) { - const { pageNode } = container; - if (pageNode) { - this.pageNode = pageNode; - this.nodeId = pageNode.genId(); - !pageNode.isUnmounted && pageNode.onCreate(this, nodeName); - } - } - this.nodeType = nodeType; - this.nodeName = nodeName; - this.childNodes = []; - } - get firstChild() { - return this.childNodes[0] || null; - } - get lastChild() { - const { childNodes } = this; - const length = childNodes.length; - return length ? childNodes[length - 1] : null; - } - get nextSibling() { - return sibling(this, 'n'); - } - get nodeValue() { - return null; - } - set nodeValue(_val) { } - get textContent() { - return this._text || ''; - } - set textContent(text) { - this._text = text; - if (this.pageNode && !this.pageNode.isUnmounted) { - this.pageNode.onTextContent(this, text); - } - } - get parentElement() { - const { parentNode } = this; - if (parentNode && parentNode.nodeType === NODE_TYPE_ELEMENT) { - return parentNode; - } - return null; - } - get previousSibling() { - return sibling(this, 'p'); - } - appendChild(newChild) { - return this.insertBefore(newChild, null); - } - cloneNode(deep) { - const cloned = extend(Object.create(Object.getPrototypeOf(this)), this); - const { attributes } = cloned; - if (attributes) { - cloned.attributes = extend({}, attributes); - } - if (deep) { - cloned.childNodes = cloned.childNodes.map((childNode) => childNode.cloneNode(true)); - } - return cloned; - } - insertBefore(newChild, refChild) { - // 先从现在的父节点移除(注意:不能触发onRemoveChild,否则会生成先remove该 id,再 insert) - removeNode(newChild); - newChild.pageNode = this.pageNode; - newChild.parentNode = this; - checkNodeId(newChild); - const { childNodes } = this; - if (refChild) { - const index = childNodes.indexOf(refChild); - if (index === -1) { - throw new DOMException(`Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.`); - } - childNodes.splice(index, 0, newChild); - } - else { - childNodes.push(newChild); - } - return this.pageNode && !this.pageNode.isUnmounted - ? this.pageNode.onInsertBefore(this, newChild, refChild) - : newChild; - } - removeChild(oldChild) { - const { childNodes } = this; - const index = childNodes.indexOf(oldChild); - if (index === -1) { - throw new DOMException(`Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.`); - } - oldChild.parentNode = null; - childNodes.splice(index, 1); - return this.pageNode && !this.pageNode.isUnmounted - ? this.pageNode.onRemoveChild(oldChild) - : oldChild; - } -} - -const ACTION_TYPE_PAGE_CREATE = 1; -const ACTION_TYPE_PAGE_CREATED = 2; -const ACTION_TYPE_CREATE = 3; -const ACTION_TYPE_INSERT = 4; -const ACTION_TYPE_REMOVE = 5; -const ACTION_TYPE_SET_ATTRIBUTE = 6; -const ACTION_TYPE_REMOVE_ATTRIBUTE = 7; -const ACTION_TYPE_ADD_EVENT = 8; -const ACTION_TYPE_REMOVE_EVENT = 9; -const ACTION_TYPE_SET_TEXT = 10; -const ACTION_TYPE_ADD_WXS_EVENT = 12; -const ACTION_TYPE_PAGE_SCROLL = 15; -const ACTION_TYPE_EVENT = 20; - -/** - * 需要手动传入 timer,主要是解决 App 平台的定制 timer - */ -function debounce(fn, delay, { clearTimeout, setTimeout }) { - let timeout; - const newFn = function () { - clearTimeout(timeout); - const timerFn = () => fn.apply(this, arguments); - timeout = setTimeout(timerFn, delay); - }; - newFn.cancel = function () { - clearTimeout(timeout); - }; - return newFn; -} - -class EventChannel { - constructor(id, events) { - this.id = id; - this.listener = {}; - this.emitCache = []; - if (events) { - Object.keys(events).forEach((name) => { - this.on(name, events[name]); - }); - } - } - emit(eventName, ...args) { - const fns = this.listener[eventName]; - if (!fns) { - return this.emitCache.push({ - eventName, - args, - }); - } - fns.forEach((opt) => { - opt.fn.apply(opt.fn, args); - }); - this.listener[eventName] = fns.filter((opt) => opt.type !== 'once'); - } - on(eventName, fn) { - this._addListener(eventName, 'on', fn); - this._clearCache(eventName); - } - once(eventName, fn) { - this._addListener(eventName, 'once', fn); - this._clearCache(eventName); - } - off(eventName, fn) { - const fns = this.listener[eventName]; - if (!fns) { - return; - } - if (fn) { - for (let i = 0; i < fns.length;) { - if (fns[i].fn === fn) { - fns.splice(i, 1); - i--; - } - i++; - } - } - else { - delete this.listener[eventName]; - } - } - _clearCache(eventName) { - for (let index = 0; index < this.emitCache.length; index++) { - const cache = this.emitCache[index]; - const _name = eventName - ? cache.eventName === eventName - ? eventName - : null - : cache.eventName; - if (!_name) - continue; - const location = this.emit.apply(this, [_name, ...cache.args]); - if (typeof location === 'number') { - this.emitCache.pop(); - continue; - } - this.emitCache.splice(index, 1); - index--; - } - } - _addListener(eventName, type, fn) { - (this.listener[eventName] || (this.listener[eventName] = [])).push({ - fn, - type, - }); - } -} - -const E = function () { - // Keep this empty so it's easier to inherit from - // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3) -}; -E.prototype = { - on: function (name, callback, ctx) { - var e = this.e || (this.e = {}); - (e[name] || (e[name] = [])).push({ - fn: callback, - ctx: ctx, - }); - return this; - }, - once: function (name, callback, ctx) { - var self = this; - function listener() { - self.off(name, listener); - callback.apply(ctx, arguments); - } - listener._ = callback; - return this.on(name, listener, ctx); - }, - emit: function (name) { - var data = [].slice.call(arguments, 1); - var evtArr = ((this.e || (this.e = {}))[name] || []).slice(); - var i = 0; - var len = evtArr.length; - for (i; i < len; i++) { - evtArr[i].fn.apply(evtArr[i].ctx, data); - } - return this; - }, - off: function (name, callback) { - var e = this.e || (this.e = {}); - var evts = e[name]; - var liveEvents = []; - if (evts && callback) { - for (var i = evts.length - 1; i >= 0; i--) { - if (evts[i].fn === callback || evts[i].fn._ === callback) { - evts.splice(i, 1); - break; - } - } - liveEvents = evts; - } - // Remove event from queue to prevent memory leak - // Suggested by https://github.com/lazd - // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910 - liveEvents.length ? (e[name] = liveEvents) : delete e[name]; - return this; - }, -}; -var Emitter = E; - -const borderStyles = { - black: 'rgba(0,0,0,0.4)', - white: 'rgba(255,255,255,0.4)', -}; -function normalizeTabBarStyles(borderStyle) { - if (borderStyle && borderStyle in borderStyles) { - return borderStyles[borderStyle]; - } - return borderStyle; -} -function normalizeTitleColor(titleColor) { - return titleColor === 'black' ? '#000000' : '#ffffff'; -} -function resolveStringStyleItem(modeStyle, styleItem, key) { - if (isString(styleItem) && styleItem.startsWith('@')) { - const _key = styleItem.replace('@', ''); - let _styleItem = modeStyle[_key] || styleItem; - switch (key) { - case 'titleColor': - _styleItem = normalizeTitleColor(_styleItem); - break; - case 'borderStyle': - _styleItem = normalizeTabBarStyles(_styleItem); - break; - } - return _styleItem; - } - return styleItem; -} -function normalizeStyles(pageStyle, themeConfig = {}, mode = 'light') { - const modeStyle = themeConfig[mode]; - const styles = {}; - if (typeof modeStyle === 'undefined' || !pageStyle) - return pageStyle; - Object.keys(pageStyle).forEach((key) => { - const styleItem = pageStyle[key]; // Object Array String - const parseStyleItem = () => { - if (isPlainObject(styleItem)) - return normalizeStyles(styleItem, themeConfig, mode); - if (isArray(styleItem)) - return styleItem.map((item) => { - if (typeof item === 'object') - return normalizeStyles(item, themeConfig, mode); - return resolveStringStyleItem(modeStyle, item); - }); - return resolveStringStyleItem(modeStyle, styleItem, key); - }; - styles[key] = parseStyleItem(); - }); - return styles; -} - -/** - * 主要文件路径分为如下四种 - * - 安装文件路径(仅能访问rawfile)鸿蒙$rawfile('index.html')对应一个Resource对象,为方便拼接路径,使用`resource://`协议表示 - * - 临时文件路径(temp) 系统api如下载、选择图片产生的压缩文件会存放于此处,应用退出后自动删除 - * - 缓存文件路径(cache) 用于存储图片缓存等,达到一定大小或时间会被系统自动清理 - * - 用户文件路径(files) 持久保存 - * - * TODO fileManager、原生fs对象?沙箱 - * - * 参考文档: - * - [微信小程序文件系统](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/file-system.html) - * - [鸿蒙应用沙箱目录](https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/app-sandbox-directory-0000001774280086) - */ -/** - * 内部使用不暴露给用户 - */ -const env = { - // RESOURCE_PATH: 'resource://', - // 以下路径均不以`/`结尾 - USER_DATA_PATH: '', - TEMP_PATH: '', // 示例值 /data/storage/el2/base/haps/entry/temp - CACHE_PATH: '', -}; -function initEnv() { - // @ts-expect-error getEnv for plus - const plusIoEnv = plus.io.getEnv(); - env.USER_DATA_PATH = plusIoEnv.USER_DATA_PATH; - env.TEMP_PATH = plusIoEnv.TEMP_PATH; - env.CACHE_PATH = plusIoEnv.CACHE_PATH; - return env; -} -const initEnvOnce = once(initEnv); -function getEnv() { - return initEnvOnce(); -} - -const isObject = (val) => val !== null && typeof val === 'object'; -const defaultDelimiters = ['{', '}']; -class BaseFormatter { - constructor() { - this._caches = Object.create(null); - } - interpolate(message, values, delimiters = defaultDelimiters) { - if (!values) { - return [message]; - } - let tokens = this._caches[message]; - if (!tokens) { - tokens = parse(message, delimiters); - this._caches[message] = tokens; - } - return compile(tokens, values); - } -} -const RE_TOKEN_LIST_VALUE = /^(?:\d)+/; -const RE_TOKEN_NAMED_VALUE = /^(?:\w)+/; -function parse(format, [startDelimiter, endDelimiter]) { - const tokens = []; - let position = 0; - let text = ''; - while (position < format.length) { - let char = format[position++]; - if (char === startDelimiter) { - if (text) { - tokens.push({ type: 'text', value: text }); - } - text = ''; - let sub = ''; - char = format[position++]; - while (char !== undefined && char !== endDelimiter) { - sub += char; - char = format[position++]; - } - const isClosed = char === endDelimiter; - const type = RE_TOKEN_LIST_VALUE.test(sub) - ? 'list' - : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) - ? 'named' - : 'unknown'; - tokens.push({ value: sub, type }); - } - // else if (char === '%') { - // // when found rails i18n syntax, skip text capture - // if (format[position] !== '{') { - // text += char - // } - // } - else { - text += char; - } - } - text && tokens.push({ type: 'text', value: text }); - return tokens; -} -function compile(tokens, values) { - const compiled = []; - let index = 0; - const mode = Array.isArray(values) - ? 'list' - : isObject(values) - ? 'named' - : 'unknown'; - if (mode === 'unknown') { - return compiled; - } - while (index < tokens.length) { - const token = tokens[index]; - switch (token.type) { - case 'text': - compiled.push(token.value); - break; - case 'list': - compiled.push(values[parseInt(token.value, 10)]); - break; - case 'named': - if (mode === 'named') { - compiled.push(values[token.value]); - } - break; - } - index++; - } - return compiled; -} - -const LOCALE_ZH_HANS = 'zh-Hans'; -const LOCALE_ZH_HANT = 'zh-Hant'; -const LOCALE_EN = 'en'; -const LOCALE_FR = 'fr'; -const LOCALE_ES = 'es'; -const hasOwnProperty = Object.prototype.hasOwnProperty; -const hasOwn = (val, key) => hasOwnProperty.call(val, key); -const defaultFormatter = new BaseFormatter(); -function include(str, parts) { - return !!parts.find((part) => str.indexOf(part) !== -1); -} -function startsWith(str, parts) { - return parts.find((part) => str.indexOf(part) === 0); -} -function normalizeLocale(locale, messages) { - if (!locale) { - return; - } - locale = locale.trim().replace(/_/g, '-'); - if (messages && messages[locale]) { - return locale; - } - locale = locale.toLowerCase(); - if (locale === 'chinese') { - // 支付宝 - return LOCALE_ZH_HANS; - } - if (locale.indexOf('zh') === 0) { - if (locale.indexOf('-hans') > -1) { - return LOCALE_ZH_HANS; - } - if (locale.indexOf('-hant') > -1) { - return LOCALE_ZH_HANT; - } - if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) { - return LOCALE_ZH_HANT; - } - return LOCALE_ZH_HANS; - } - let locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES]; - if (messages && Object.keys(messages).length > 0) { - locales = Object.keys(messages); - } - const lang = startsWith(locale, locales); - if (lang) { - return lang; - } -} -class I18n { - constructor({ locale, fallbackLocale, messages, watcher, formater, }) { - this.locale = LOCALE_EN; - this.fallbackLocale = LOCALE_EN; - this.message = {}; - this.messages = {}; - this.watchers = []; - if (fallbackLocale) { - this.fallbackLocale = fallbackLocale; - } - this.formater = formater || defaultFormatter; - this.messages = messages || {}; - this.setLocale(locale || LOCALE_EN); - if (watcher) { - this.watchLocale(watcher); - } - } - setLocale(locale) { - const oldLocale = this.locale; - this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale; - if (!this.messages[this.locale]) { - // 可能初始化时不存在 - this.messages[this.locale] = {}; - } - this.message = this.messages[this.locale]; - // 仅发生变化时,通知 - if (oldLocale !== this.locale) { - this.watchers.forEach((watcher) => { - watcher(this.locale, oldLocale); - }); - } - } - getLocale() { - return this.locale; - } - watchLocale(fn) { - const index = this.watchers.push(fn) - 1; - return () => { - this.watchers.splice(index, 1); - }; - } - add(locale, message, override = true) { - const curMessages = this.messages[locale]; - if (curMessages) { - if (override) { - Object.assign(curMessages, message); - } - else { - Object.keys(message).forEach((key) => { - if (!hasOwn(curMessages, key)) { - curMessages[key] = message[key]; - } - }); - } - } - else { - this.messages[locale] = message; - } - } - f(message, values, delimiters) { - return this.formater.interpolate(message, values, delimiters).join(''); - } - t(key, locale, values) { - let message = this.message; - if (typeof locale === 'string') { - locale = normalizeLocale(locale, this.messages); - locale && (message = this.messages[locale]); - } - else { - values = locale; - } - if (!hasOwn(message, key)) { - console.warn(`Cannot translate the value of keypath ${key}. Use the value of keypath as default.`); - return key; - } - return this.formater.interpolate(message[key], values).join(''); - } -} - -function watchAppLocale(appVm, i18n) { - // 需要保证 watch 的触发在组件渲染之前 - if (appVm.$watchLocale) { - // vue2 - appVm.$watchLocale((newLocale) => { - i18n.setLocale(newLocale); - }); - } - else { - appVm.$watch(() => appVm.$locale, (newLocale) => { - i18n.setLocale(newLocale); - }); - } -} -function getDefaultLocale() { - if (typeof uni !== 'undefined' && uni.getLocale) { - return uni.getLocale(); - } - // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale - if (typeof global !== 'undefined' && global.getLocale) { - return global.getLocale(); - } - return LOCALE_EN; -} -function initVueI18n(locale, messages = {}, fallbackLocale, watcher) { - // 兼容旧版本入参 - if (typeof locale !== 'string') { - // ;[locale, messages] = [ - // messages as unknown as string, - // locale as unknown as LocaleMessages, - // ] - // 暂不使用数组解构,uts编译器暂未支持。 - const options = [ - messages, - locale, - ]; - locale = options[0]; - messages = options[1]; - } - if (typeof locale !== 'string') { - // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined - locale = getDefaultLocale(); - } - if (typeof fallbackLocale !== 'string') { - fallbackLocale = - (typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale) || - LOCALE_EN; - } - const i18n = new I18n({ - locale, - fallbackLocale, - messages, - watcher, - }); - let t = (key, values) => { - if (typeof getApp !== 'function') { - // app view - /* eslint-disable no-func-assign */ - t = function (key, values) { - return i18n.t(key, values); - }; - } - else { - let isWatchedAppLocale = false; - t = function (key, values) { - const appVm = getApp().$vm; - // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化 - // options: { - // type: Array, - // default () { - // return [{ - // icon: 'shop', - // text: t("uni-goods-nav.options.shop"), - // }, { - // icon: 'cart', - // text: t("uni-goods-nav.options.cart") - // }] - // } - // }, - if (appVm) { - // 触发响应式 - appVm.$locale; - if (!isWatchedAppLocale) { - isWatchedAppLocale = true; - watchAppLocale(appVm, i18n); - } - } - return i18n.t(key, values); - }; - } - return t(key, values); - }; - return { - i18n, - f(message, values, delimiters) { - return i18n.f(message, values, delimiters); - }, - t(key, values) { - return t(key, values); - }, - add(locale, message, override = true) { - return i18n.add(locale, message, override); - }, - watch(fn) { - return i18n.watchLocale(fn); - }, - getLocale() { - return i18n.getLocale(); - }, - setLocale(newLocale) { - return i18n.setLocale(newLocale); - }, - }; -} - -function isI18nStr(value, delimiters) { - return value.indexOf(delimiters[0]) > -1; -} - -const isEnableLocale = /*#__PURE__*/ once(() => typeof __uniConfig !== 'undefined' && - __uniConfig.locales && - !!Object.keys(__uniConfig.locales).length); - -let i18n; -function getLocaleMessage() { - const locale = uni.getLocale(); - const locales = __uniConfig.locales; - return (locales[locale] || locales[__uniConfig.fallbackLocale] || locales.en || {}); -} -function formatI18n(message) { - if (isI18nStr(message, I18N_JSON_DELIMITERS)) { - return useI18n().f(message, getLocaleMessage(), I18N_JSON_DELIMITERS); - } - return message; -} -function resolveJsonObj(jsonObj, names) { - if (names.length === 1) { - if (jsonObj) { - const _isI18nStr = (value) => isString(value) && isI18nStr(value, I18N_JSON_DELIMITERS); - const _name = names[0]; - let filterJsonObj = []; - if (isArray(jsonObj) && - (filterJsonObj = jsonObj.filter((item) => _isI18nStr(item[_name]))) - .length) { - return filterJsonObj; - } - const value = jsonObj[names[0]]; - if (_isI18nStr(value)) { - return jsonObj; - } - } - return; - } - const name = names.shift(); - return resolveJsonObj(jsonObj && jsonObj[name], names); -} -function defineI18nProperties(obj, names) { - return names.map((name) => defineI18nProperty(obj, name)); -} -function defineI18nProperty(obj, names) { - const jsonObj = resolveJsonObj(obj, names); - if (!jsonObj) { - return false; - } - const prop = names[names.length - 1]; - if (isArray(jsonObj)) { - jsonObj.forEach((item) => defineI18nProperty(item, [prop])); - } - else { - let value = jsonObj[prop]; - Object.defineProperty(jsonObj, prop, { - get() { - return formatI18n(value); - }, - set(v) { - value = v; - }, - }); - } - return true; -} -function useI18n() { - if (!i18n) { - let locale; - { - if (typeof getApp === 'function') { - locale = weex.requireModule('plus').getLanguage(); - } - else { - locale = plus.webview.currentWebview().getStyle().locale; - } - } - i18n = initVueI18n(locale); - // 自定义locales - if (isEnableLocale()) { - const localeKeys = Object.keys(__uniConfig.locales || {}); - if (localeKeys.length) { - localeKeys.forEach((locale) => i18n.add(locale, __uniConfig.locales[locale])); - } - // initVueI18n 时 messages 还没有,导致用户自定义 locale 可能不生效,当设置完 messages 后,重新设置 locale - i18n.setLocale(locale); - } - } - return i18n; -} - -// This file is created by scripts/i18n.js -// Do not modify this file!!!!!!!!! -function normalizeMessages(module, keys, values) { - return keys.reduce((res, name, index) => { - res[module + name] = values[index]; - return res; - }, {}); -} -const initI18nAppMsgsOnce = /*#__PURE__*/ once(() => { - const name = 'uni.app.'; - const keys = ['quit']; - { - useI18n().add(LOCALE_EN, normalizeMessages(name, keys, ['Press back button again to exit']), false); - } - { - useI18n().add(LOCALE_ES, normalizeMessages(name, keys, ['Pulse otra vez para salir']), false); - } - { - useI18n().add(LOCALE_FR, normalizeMessages(name, keys, [ - "Appuyez à nouveau pour quitter l'application", - ]), false); - } - { - useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, keys, ['再按一次退出应用']), false); - } - { - useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ['再按一次退出應用']), false); - } -}); - -function initNavigationBarI18n(navigationBar) { - if (isEnableLocale()) { - return defineI18nProperties(navigationBar, [ - ['titleText'], - ['searchInput', 'placeholder'], - ['buttons', 'text'], - ]); - } -} -function initPullToRefreshI18n(pullToRefresh) { - if (isEnableLocale()) { - const CAPTION = 'caption'; - return defineI18nProperties(pullToRefresh, [ - ['contentdown', CAPTION], - ['contentover', CAPTION], - ['contentrefresh', CAPTION], - ]); - } -} - -function initBridge(subscribeNamespace) { - const emitter = new Emitter(); - return { - on(event, callback) { - return emitter.on(event, callback); - }, - once(event, callback) { - return emitter.once(event, callback); - }, - off(event, callback) { - return emitter.off(event, callback); - }, - emit(event, ...args) { - return emitter.emit(event, ...args); - }, - subscribe(event, callback, once = false) { - emitter[once ? 'once' : 'on'](`${subscribeNamespace}.${event}`, callback); - }, - unsubscribe(event, callback) { - emitter.off(`${subscribeNamespace}.${event}`, callback); - }, - subscribeHandler(event, args, pageId) { - emitter.emit(`${subscribeNamespace}.${event}`, args, pageId); - }, - }; -} - -const INVOKE_VIEW_API = 'invokeViewApi'; -const INVOKE_SERVICE_API = 'invokeServiceApi'; - -function hasRpx(str) { - str = str + ''; - return str.indexOf('rpx') !== -1 || str.indexOf('upx') !== -1; -} -function rpx2px(str, replace = false) { - if (replace) { - return rpx2pxWithReplace(str); - } - if (isString(str)) { - const res = parseInt(str) || 0; - if (hasRpx(str)) { - return uni.upx2px(res); - } - return res; - } - return str; -} -function rpx2pxWithReplace(str) { - if (!hasRpx(str)) { - return str; - } - return str.replace(/(\d+(\.\d+)?)[ru]px/g, (_a, b) => { - return uni.upx2px(parseFloat(b)) + 'px'; - }); -} -function get$pageByPage(page) { - return page.$page; -} - -function getPageIdByVm(instance) { - const vm = resolveComponentInstance(instance); - if (vm.$page) { - return getPageProxyId(vm); - } - if (!vm.$) { - return; - } - const rootProxy = vm.$.root.proxy; - if (rootProxy && rootProxy.$page) { - return getPageProxyId(rootProxy); - } -} -function getCurrentPage() { - const pages = getCurrentPages(); - const len = pages.length; - if (len) { - return pages[len - 1]; - } -} -function getCurrentPageMeta() { - const $page = getCurrentPage()?.$page; - if ($page) { - return $page.meta; - } -} -function getCurrentPageId() { - const meta = getCurrentPageMeta(); - if (meta) { - return meta.id; - } - return -1; -} -function getCurrentPageVm() { - const page = getCurrentPage(); - if (page) { - return page.$vm; - } -} -const PAGE_META_KEYS = ['navigationBar', 'pullToRefresh']; -function initGlobalStyle() { - return JSON.parse(JSON.stringify(__uniConfig.globalStyle || {})); -} -function initRouteMeta(pageMeta, id) { - const globalStyle = initGlobalStyle(); - const res = extend({ id }, globalStyle, pageMeta); - PAGE_META_KEYS.forEach((name) => { - res[name] = extend({}, globalStyle[name], pageMeta[name]); - }); - const { navigationBar } = res; - navigationBar.titleText && - navigationBar.titleImage && - (navigationBar.titleText = ''); - return res; -} -function normalizePullToRefreshRpx(pullToRefresh) { - if (pullToRefresh.offset) { - pullToRefresh.offset = rpx2px(pullToRefresh.offset); - } - if (pullToRefresh.height) { - pullToRefresh.height = rpx2px(pullToRefresh.height); - } - if (pullToRefresh.range) { - pullToRefresh.range = rpx2px(pullToRefresh.range); - } - return pullToRefresh; -} -function initPageInternalInstance(openType, url, pageQuery, meta, eventChannel, themeMode) { - const { id, route } = meta; - const titleColor = normalizeStyles(meta.navigationBar, __uniConfig.themeConfig, themeMode).titleColor; - return { - id: id, - path: addLeadingSlash(route), - route: route, - fullPath: url, - options: pageQuery, - meta, - openType, - eventChannel, - statusBarStyle: titleColor === '#ffffff' ? 'light' : 'dark', - }; -} -function getPageProxyId(proxy) { - return proxy.$page?.id || proxy.$basePage?.id; -} - -function invokeHook(vm, name, args) { - if (isString(vm)) { - args = name; - name = vm; - vm = getCurrentPageVm(); - } - else if (typeof vm === 'number') { - const page = getCurrentPages().find((page) => get$pageByPage(page).id === vm); - if (page) { - vm = page.$vm; - } - else { - vm = getCurrentPageVm(); - } - } - if (!vm) { - return; - } - // 兼容 nvue - { - if (vm.__call_hook) { - return vm.__call_hook(name, args); - } - } - const hooks = vm.$[name]; - return hooks && invokeArrayFns(hooks, args); -} - -function normalizeRoute(toRoute) { - if (toRoute.indexOf('/') === 0) { - return toRoute; - } - let fromRoute = ''; - const pages = getCurrentPages(); - if (pages.length) { - fromRoute = get$pageByPage(pages[pages.length - 1]).route; - } - return getRealRoute(fromRoute, toRoute); -} -function getRealRoute(fromRoute, toRoute) { - if (toRoute.indexOf('/') === 0) { - return toRoute; - } - if (toRoute.indexOf('./') === 0) { - return getRealRoute(fromRoute, toRoute.slice(2)); - } - const toRouteArray = toRoute.split('/'); - const toRouteLength = toRouteArray.length; - let i = 0; - for (; i < toRouteLength && toRouteArray[i] === '..'; i++) { - // noop - } - toRouteArray.splice(0, i); - toRoute = toRouteArray.join('/'); - const fromRouteArray = fromRoute.length > 0 ? fromRoute.split('/') : []; - fromRouteArray.splice(fromRouteArray.length - i - 1, i + 1); - return addLeadingSlash(fromRouteArray.concat(toRouteArray).join('/')); -} -function getRouteOptions(path, alias = false) { - if (alias) { - return __uniRoutes.find((route) => route.path === path || route.alias === path); - } - return __uniRoutes.find((route) => route.path === path); -} -function getRouteMeta(path) { - const routeOptions = getRouteOptions(path); - if (routeOptions) { - return routeOptions.meta; - } -} -function normalizeTabBarRoute(index, oldPagePath, newPagePath) { - const oldTabBarRoute = getRouteOptions(addLeadingSlash(oldPagePath)); - if (oldTabBarRoute) { - const { meta } = oldTabBarRoute; - delete meta.tabBarIndex; - meta.isQuit = meta.isTabBar = false; - } - const newTabBarRoute = getRouteOptions(addLeadingSlash(newPagePath)); - if (newTabBarRoute) { - const { meta } = newTabBarRoute; - meta.tabBarIndex = index; - meta.isQuit = meta.isTabBar = true; - const tabBar = __uniConfig.tabBar; - if (tabBar && tabBar.list && tabBar.list[index]) { - tabBar.list[index].pagePath = removeLeadingSlash(newPagePath); - } - } -} - -const invokeOnCallback = (name, res) => UniServiceJSBridge.emit('api.' + name, res); - -let invokeViewMethodId = 1; -function publishViewMethodName(pageId) { - return (pageId || getCurrentPageId()) + '.' + INVOKE_VIEW_API; -} -const invokeViewMethod = (name, args, pageId, callback) => { - const { subscribe, publishHandler } = UniServiceJSBridge; - const id = callback ? invokeViewMethodId++ : 0; - callback && subscribe(INVOKE_VIEW_API + '.' + id, callback, true); - publishHandler(publishViewMethodName(pageId), { id, name, args }, pageId); -}; -const invokeViewMethodKeepAlive = (name, args, callback, pageId) => { - const { subscribe, unsubscribe, publishHandler } = UniServiceJSBridge; - const id = invokeViewMethodId++; - const subscribeName = INVOKE_VIEW_API + '.' + id; - subscribe(subscribeName, callback); - publishHandler(publishViewMethodName(pageId), { id, name, args }, pageId); - return () => { - unsubscribe(subscribeName); - }; -}; - -const serviceMethods = Object.create(null); -function subscribeServiceMethod() { - UniServiceJSBridge.subscribe(INVOKE_SERVICE_API, onInvokeServiceMethod); -} -function registerServiceMethod(name, fn) { - if (!serviceMethods[name]) { - serviceMethods[name] = fn; - } -} -function onInvokeServiceMethod({ id, name, args, }, pageId) { - const publish = (res) => { - id && - UniServiceJSBridge.publishHandler(INVOKE_SERVICE_API + '.' + id, res, pageId); - }; - const handler = serviceMethods[name]; - if (handler) { - handler(args, publish); - } - else { - publish({}); - } -} - -const ServiceJSBridge = /*#__PURE__*/ extend( -/*#__PURE__*/ initBridge('view' /* view 指的是 service 层订阅的是 view 层事件 */), { - invokeOnCallback, - invokeViewMethod, - invokeViewMethodKeepAlive, -}); - -function initOn() { - const { on } = UniServiceJSBridge; - on(ON_RESIZE, onResize); - on(ON_APP_ENTER_FOREGROUND, onAppEnterForeground); - on(ON_APP_ENTER_BACKGROUND, onAppEnterBackground); -} -function onResize(res) { - const page = getCurrentPage(); - invokeHook(page, ON_RESIZE, res); - UniServiceJSBridge.invokeOnCallback('onWindowResize', res); // API -} -function onAppEnterForeground(enterOptions) { - const page = getCurrentPage(); - invokeHook((getApp()), ON_SHOW, enterOptions); - invokeHook(page, ON_SHOW); -} -function onAppEnterBackground() { - invokeHook((getApp()), ON_HIDE); - invokeHook((getCurrentPage()), ON_HIDE); -} - -const SUBSCRIBE_LIFECYCLE_HOOKS = [ON_PAGE_SCROLL, ON_REACH_BOTTOM]; -function initSubscribe() { - SUBSCRIBE_LIFECYCLE_HOOKS.forEach((name) => UniServiceJSBridge.subscribe(name, createPageEvent(name))); -} -function createPageEvent(name) { - return (args, pageId) => { - invokeHook(parseInt(pageId), name, args); - }; -} - -function initService() { - { - initOn(); - initSubscribe(); - } -} -function initAppVm(appVm) { - appVm.$vm = appVm; - appVm.$mpType = 'app'; - const locale = ref(useI18n().getLocale()); - Object.defineProperty(appVm, '$locale', { - get() { - return locale.value; - }, - set(v) { - locale.value = v; - }, - }); -} -function initPageVm(pageVm, page) { - pageVm.route = page.route; - pageVm.$vm = pageVm; - pageVm.$page = page; - pageVm.$mpType = 'page'; - pageVm.$fontFamilySet = new Set(); - if (page.meta.isTabBar) { - pageVm.$.__isTabBar = true; - // TODO preload? 初始化时,状态肯定是激活 - pageVm.$.__isActive = true; - } -} - -function createLaunchOptions() { - return { - path: '', - query: {}, - scene: 1001, - referrerInfo: { - appId: '', - extraData: {}, - }, - }; -} -function defineGlobalData(app, defaultGlobalData) { - const options = app.$options || {}; - options.globalData = extend(options.globalData || {}, defaultGlobalData); - Object.defineProperty(app, 'globalData', { - get() { - return options.globalData; - }, - set(newGlobalData) { - options.globalData = newGlobalData; - }, - }); -} - -function getRealPath(filepath) { - // 无协议的情况补全 https - if (filepath.indexOf('//') === 0) { - return 'https:' + filepath; - } - // 网络资源或base64 - if (SCHEME_RE.test(filepath) || DATA_RE.test(filepath)) { - return filepath; - } - if (isSystemURL(filepath)) { - // 鸿蒙平台特性 - return 'file:/' + normalizeLocalPath(filepath); - } - // TODO 暂时使用当前 dirname,service 层注入 location - const href = location.href; - const wwwPath = href.substring(0, href.lastIndexOf('/')); - // 绝对路径转换为本地文件系统路径 - if (filepath.indexOf('/') === 0) { - // 平台绝对路径 - if (filepath.startsWith('/data/storage/')) { - // 鸿蒙平台特性 - return 'file://' + filepath; - } - return wwwPath + filepath; - } - // 相对资源 - if (filepath.indexOf('../') === 0 || filepath.indexOf('./') === 0) { - // app-view - if (typeof __id__ === 'string') { - // app-view - return wwwPath + getRealRoute(addLeadingSlash(__id__), filepath); - } - else { - const page = getCurrentPage(); - if (page) { - return wwwPath + getRealRoute(addLeadingSlash(page.route), filepath); - } - } - } - return filepath; -} -const normalizeLocalPath = cacheStringFunction((filepath) => { - return plus.io.convertLocalFileSystemURL(filepath).replace(/\/$/, ''); -}); -function isSystemURL(filepath) { - if (filepath.indexOf('_www') === 0 || - filepath.indexOf('_doc') === 0 || - filepath.indexOf('_documents') === 0 || - filepath.indexOf('_downloads') === 0) { - return true; - } - return false; -} - -let vueApp; -function getVueApp() { - return vueApp; -} -function initVueApp(appVm) { - const internalInstance = appVm.$; - // 定制 App 的 $children 为 devtools 服务 false - Object.defineProperty(internalInstance.ctx, '$children', { - get() { - return getAllPages().map((page) => page.$vm); - }, - }); - const appContext = internalInstance.appContext; - vueApp = extend(appContext.app, { - mountPage(pageComponent, pageProps, pageContainer) { - const vnode = createVNode(pageComponent, pageProps); - // store app context on the root VNode. - // this will be set on the root instance on initial mount. - vnode.appContext = appContext; - vnode.__page_container__ = pageContainer; - render(vnode, pageContainer); - const publicThis = vnode.component.proxy; - publicThis.__page_container__ = pageContainer; - return publicThis; - }, - unmountPage: (pageInstance) => { - const { __page_container__ } = pageInstance; - if (__page_container__) { - __page_container__.isUnmounted = true; - render(null, __page_container__); - } - }, - }); -} - -function getPage$BasePage(page) { - return page.$page; -} -const pages = []; -function addCurrentPage(page) { - const $page = getPage$BasePage(page); - if (!$page.meta.isNVue) { - return pages.push(page); - } - // 开发阶段热刷新需要移除旧的相同 id 的 page - const index = pages.findIndex((p) => getPage$BasePage(page).id === $page.id); - if (index > -1) { - pages.splice(index, 1, page); - } - else { - pages.push(page); - } -} -function getPageById(id) { - return pages.find((page) => getPage$BasePage(page).id === id); -} -function getAllPages() { - return pages; -} -function getCurrentPages$1() { - const curPages = getCurrentBasePages(); - return curPages; -} -function getCurrentBasePages() { - const curPages = []; - pages.forEach((page) => { - if (page.$.__isTabBar) { - if (page.$.__isActive) { - curPages.push(page); - } - } - else { - curPages.push(page); - } - }); - return curPages; -} -function removePage(curPage) { - const index = pages.findIndex((page) => page === curPage); - if (index === -1) { - return; - } - const $basePage = getPage$BasePage(curPage); - if (!$basePage.meta.isNVue) { - getVueApp().unmountPage(curPage); - } - pages.splice(index, 1); - if (('production' !== 'production')) { - console.log(formatLog('removePage', $basePage)); - } -} - -function requestComponentInfo(pageVm, reqs, callback) { - if (getPage$BasePage(pageVm).meta.isNVue) { - requestNVueComponentInfo(pageVm, reqs, callback); - } - else { - requestVueComponentInfo(pageVm, reqs, callback); - } -} -function requestVueComponentInfo(pageVm, reqs, callback) { - UniServiceJSBridge.invokeViewMethod('requestComponentInfo', { - reqs: reqs.map((req) => { - if (req.component) { - req.component = req.component.$el.nodeId; - } - return req; - }), - }, getPage$BasePage(pageVm).id, callback); -} -function requestNVueComponentInfo(pageVm, reqs, callback) { - const ids = findNVueElementIds(reqs); - const nvueElementInfos = new Array(ids.length); - findNVueElementInfos(ids, pageVm.$el, nvueElementInfos); - findComponentRectAll(pageVm.$requireNativePlugin('dom'), nvueElementInfos, 0, [], (result) => { - callback(result); - }); -} -function findNVueElementIds(reqs) { - const ids = []; - for (let i = 0; i < reqs.length; i++) { - const selector = reqs[i].selector; - if (selector.indexOf('#') === 0) { - ids.push(selector.substring(1)); - } - } - return ids; -} -function findNVueElementInfos(ids, elm, infos) { - const nodes = elm.children; - if (!isArray(nodes)) { - return false; - } - for (let i = 0; i < nodes.length; i++) { - const node = nodes[i]; - if (node.attr) { - const index = ids.indexOf(node.attr.id); - if (index >= 0) { - infos[index] = { - id: ids[index], - ref: node.ref, - dataset: parseNVueDataset(node.attr), - }; - if (ids.length === 1) { - break; - } - } - } - if (node.children) { - findNVueElementInfos(ids, node, infos); - } - } -} -function findComponentRectAll(dom, nvueElementInfos, index, result, callback) { - const attr = nvueElementInfos[index]; - dom.getComponentRect(attr.ref, (option) => { - option.size.id = attr.id; - option.size.dataset = attr.dataset; - result.push(option.size); - index += 1; - if (index < nvueElementInfos.length) { - findComponentRectAll(dom, nvueElementInfos, index, result, callback); - } - else { - callback(result); - } - }); -} - -function getEventName$1(reqId) { - const EVENT_NAME = 'IntersectionObserver'; - return `${EVENT_NAME}.${reqId}`; -} -function addIntersectionObserver({ reqId, component, options, callback }, _pageId) { - const eventName = getEventName$1(reqId); - UniServiceJSBridge.invokeViewMethod('addIntersectionObserver', { - reqId, - component: component.$el.nodeId, - options, - eventName, - }, _pageId); - UniServiceJSBridge.subscribe(eventName, callback); -} -function removeIntersectionObserver({ reqId, component }, _pageId) { - UniServiceJSBridge.invokeViewMethod('removeIntersectionObserver', { - reqId, - component: component.$el.nodeId, - }, _pageId); - UniServiceJSBridge.unsubscribe(getEventName$1(reqId)); -} - -function getEventName(reqId) { - const EVENT_NAME = 'MediaQueryObserver'; - return `${EVENT_NAME}.${reqId}`; -} -function addMediaQueryObserver({ reqId, component, options, callback }, _pageId) { - const eventName = getEventName(reqId); - UniServiceJSBridge.invokeViewMethod('addMediaQueryObserver', { - reqId, - component: component.$el.nodeId, - options, - eventName, - }, _pageId); - UniServiceJSBridge.subscribe(eventName, callback); -} -function removeMediaQueryObserver({ reqId, component }, _pageId) { - UniServiceJSBridge.invokeViewMethod('removeMediaQueryObserver', { - reqId, - component: component.$el.nodeId, - }, _pageId); - UniServiceJSBridge.unsubscribe(getEventName(reqId)); -} - -const EVENT_BACKBUTTON = 'backbutton'; -function backbuttonListener() { - uni.navigateBack({ - from: 'backbutton', - success() { }, // 传入空方法,避免返回Promise,因为onBackPress可能导致fail - }); -} -const enterOptions = /*#__PURE__*/ createLaunchOptions(); -const launchOptions = /*#__PURE__*/ createLaunchOptions(); -function getLaunchOptions() { - return extend({}, launchOptions); -} -function getEnterOptions() { - return extend({}, enterOptions); -} -function initLaunchOptions({ path, query, referrerInfo, }) { - extend(launchOptions, { - path, - query: query ? parseQuery(query) : {}, - referrerInfo: referrerInfo || {}, - // TODO uni-app x - channel: plus.runtime.channel, - launcher: plus.runtime.launcher, - }); - extend(enterOptions, launchOptions); - return enterOptions; -} -function parseRedirectInfo() { - const weexPlus = weex.requireModule('plus'); - if (weexPlus.getRedirectInfo) { - const { path, query, extraData, userAction, fromAppid } = weexPlus.getRedirectInfo() || {}; - const referrerInfo = { - appId: fromAppid, - extraData: {}, - }; - if (extraData) { - referrerInfo.extraData = extraData; - } - return { - path: path || '', - query: query ? '?' + query : '', - referrerInfo, - userAction, - }; - } -} - -const TEMP_PATH = ''; // TODO 需要从applicationContext获取 - -function operateVideoPlayer(videoId, pageId, type, data) { - UniServiceJSBridge.invokeViewMethod('video.' + videoId, { - videoId, - type, - data, - }, pageId); -} - -function operateMap(id, pageId, type, data, operateMapCallback) { - UniServiceJSBridge.invokeViewMethod('map.' + id, { - type, - data, - }, pageId, operateMapCallback); -} - -const API_ADD_INTERCEPTOR = 'addInterceptor'; -const API_REMOVE_INTERCEPTOR = 'removeInterceptor'; -const AddInterceptorProtocol = [ - { - name: 'method', - type: [String, Object], - required: true, - }, -]; -const RemoveInterceptorProtocol = AddInterceptorProtocol; - -function mergeInterceptorHook(interceptors, interceptor) { - Object.keys(interceptor).forEach((hook) => { - if (isFunction(interceptor[hook])) { - interceptors[hook] = mergeHook(interceptors[hook], interceptor[hook]); - } - }); -} -function removeInterceptorHook(interceptors, interceptor) { - if (!interceptors || !interceptor) { - return; - } - Object.keys(interceptor).forEach((name) => { - const hooks = interceptors[name]; - const hook = interceptor[name]; - if (isArray(hooks) && isFunction(hook)) { - remove(hooks, hook); - } - }); -} -function mergeHook(parentVal, childVal) { - const res = childVal - ? parentVal - ? parentVal.concat(childVal) - : isArray(childVal) - ? childVal - : [childVal] - : parentVal; - return res ? dedupeHooks(res) : res; -} -function dedupeHooks(hooks) { - const res = []; - for (let i = 0; i < hooks.length; i++) { - if (res.indexOf(hooks[i]) === -1) { - res.push(hooks[i]); - } - } - return res; -} -const addInterceptor = defineSyncApi(API_ADD_INTERCEPTOR, (method, interceptor) => { - if (isString(method) && isPlainObject(interceptor)) { - mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), interceptor); - } - else if (isPlainObject(method)) { - mergeInterceptorHook(globalInterceptors, method); - } -}, AddInterceptorProtocol); -const removeInterceptor = defineSyncApi(API_REMOVE_INTERCEPTOR, (method, interceptor) => { - if (isString(method)) { - if (isPlainObject(interceptor)) { - removeInterceptorHook(scopedInterceptors[method], interceptor); - } - else { - delete scopedInterceptors[method]; - } - } - else if (isPlainObject(method)) { - removeInterceptorHook(globalInterceptors, method); - } -}, RemoveInterceptorProtocol); -const interceptors = {}; - -const validator = [ - { - name: 'id', - type: String, - required: true, - }, -]; -/* export const API_CREATE_AUDIO_CONTEXT = 'createAudioContext' -export type API_TYPE_CREATE_AUDIO_CONTEXT = typeof uni.createAudioContext -export const CreateAudioContextProtocol = validator */ -const API_CREATE_VIDEO_CONTEXT = 'createVideoContext'; -const API_CREATE_MAP_CONTEXT = 'createMapContext'; -const CreateMapContextProtocol = validator; -const API_CREATE_CANVAS_CONTEXT = 'createCanvasContext'; -const CreateCanvasContextProtocol = [ - { - name: 'canvasId', - type: String, - required: true, - }, - { - name: 'componentInstance', - type: Object, - }, -]; -validator.concat({ - name: 'componentInstance', - type: Object, -}); - -const RATES = [0.5, 0.8, 1.0, 1.25, 1.5, 2.0]; -class VideoContext { - constructor(id, pageId) { - this.id = id; - this.pageId = pageId; - } - play() { - operateVideoPlayer(this.id, this.pageId, 'play'); - } - pause() { - operateVideoPlayer(this.id, this.pageId, 'pause'); - } - stop() { - operateVideoPlayer(this.id, this.pageId, 'stop'); - } - seek(position) { - operateVideoPlayer(this.id, this.pageId, 'seek', { - position, - }); - } - sendDanmu(args) { - operateVideoPlayer(this.id, this.pageId, 'sendDanmu', args); - } - playbackRate(rate) { - if (!~RATES.indexOf(rate)) { - rate = 1.0; - } - operateVideoPlayer(this.id, this.pageId, 'playbackRate', { - rate, - }); - } - requestFullScreen(args = {}) { - operateVideoPlayer(this.id, this.pageId, 'requestFullScreen', args); - } - exitFullScreen() { - operateVideoPlayer(this.id, this.pageId, 'exitFullScreen'); - } - showStatusBar() { - operateVideoPlayer(this.id, this.pageId, 'showStatusBar'); - } - hideStatusBar() { - operateVideoPlayer(this.id, this.pageId, 'hideStatusBar'); - } -} -const createVideoContext = defineSyncApi(API_CREATE_VIDEO_CONTEXT, (id, context) => { - if (context) { - return new VideoContext(id, getPageIdByVm(context)); - } - return new VideoContext(id, getPageIdByVm(getCurrentPageVm())); -}); - -const operateMapCallback = (options, res) => { - const errMsg = res.errMsg || ''; - if (new RegExp('\\:\\s*fail').test(errMsg)) { - options.fail && options.fail(res); - } - else { - options.success && options.success(res); - } - options.complete && options.complete(res); -}; -const operateMapWrap = (id, pageId, type, options) => { - operateMap(id, pageId, type, options, (res) => { - options && operateMapCallback(options, res); - }); -}; -class MapContext { - constructor(id, pageId) { - this.id = id; - this.pageId = pageId; - } - getCenterLocation(options) { - operateMapWrap(this.id, this.pageId, 'getCenterLocation', options); - } - moveToLocation(options) { - operateMapWrap(this.id, this.pageId, 'moveToLocation', options); - } - getScale(options) { - operateMapWrap(this.id, this.pageId, 'getScale', options); - } - getRegion(options) { - operateMapWrap(this.id, this.pageId, 'getRegion', options); - } - includePoints(options) { - operateMapWrap(this.id, this.pageId, 'includePoints', options); - } - translateMarker(options) { - operateMapWrap(this.id, this.pageId, 'translateMarker', options); - } - $getAppMap() { - { - return plus.maps.getMapById(this.pageId + '-map-' + this.id); - } - } - addCustomLayer(options) { - operateMapWrap(this.id, this.pageId, 'addCustomLayer', options); - } - removeCustomLayer(options) { - operateMapWrap(this.id, this.pageId, 'removeCustomLayer', options); - } - addGroundOverlay(options) { - operateMapWrap(this.id, this.pageId, 'addGroundOverlay', options); - } - removeGroundOverlay(options) { - operateMapWrap(this.id, this.pageId, 'removeGroundOverlay', options); - } - updateGroundOverlay(options) { - operateMapWrap(this.id, this.pageId, 'updateGroundOverlay', options); - } - initMarkerCluster(options) { - operateMapWrap(this.id, this.pageId, 'initMarkerCluster', options); - } - addMarkers(options) { - operateMapWrap(this.id, this.pageId, 'addMarkers', options); - } - removeMarkers(options) { - operateMapWrap(this.id, this.pageId, 'removeMarkers', options); - } - moveAlong(options) { - operateMapWrap(this.id, this.pageId, 'moveAlong', options); - } - setLocMarkerIcon(options) { - operateMapWrap(this.id, this.pageId, 'setLocMarkerIcon', options); - } - openMapApp(options) { - operateMapWrap(this.id, this.pageId, 'openMapApp', options); - } - on(name, callback) { - operateMapWrap(this.id, this.pageId, 'on', { name, callback }); - } -} -const createMapContext = defineSyncApi(API_CREATE_MAP_CONTEXT, (id, context) => { - if (context) { - return new MapContext(id, getPageIdByVm(context)); - } - return new MapContext(id, getPageIdByVm(getCurrentPageVm())); -}, CreateMapContextProtocol); - -function getInt(name, defaultValue) { - return function (value, params) { - if (value) { - params[name] = Math.round(value); - } - else if (typeof defaultValue !== 'undefined') { - params[name] = defaultValue; - } - }; -} -const formatWidth = getInt('width'); -const formatHeight = getInt('height'); -//#region getImageDataOptions -const API_CANVAS_GET_IMAGE_DATA = 'canvasGetImageData'; -const CanvasGetImageDataOptions = { - formatArgs: { - x: getInt('x'), - y: getInt('y'), - width: formatWidth, - height: formatHeight, - }, -}; -const CanvasGetImageDataProtocol = { - canvasId: { - type: String, - required: true, - }, - x: { - type: Number, - required: true, - }, - y: { - type: Number, - required: true, - }, - width: { - type: Number, - required: true, - }, - height: { - type: Number, - required: true, - }, -}; -//#endregion -//#region putImageData -const API_CANVAS_PUT_IMAGE_DATA = 'canvasPutImageData'; -const CanvasPutImageDataOptions = CanvasGetImageDataOptions; -const CanvasPutImageDataProtocol = -/*#__PURE__*/ extend({ - data: { - type: Uint8ClampedArray, - required: true, - }, -}, CanvasGetImageDataProtocol, { - height: { - type: Number, - }, -}); -//#endregion -//#region toTempFilePath -const fileTypes = { - PNG: 'png', - JPG: 'jpg', - JPEG: 'jpg', -}; -const API_CANVAS_TO_TEMP_FILE_PATH = 'canvasToTempFilePath'; -const CanvasToTempFilePathOptions = { - formatArgs: { - x: getInt('x', 0), - y: getInt('y', 0), - width: formatWidth, - height: formatHeight, - destWidth: getInt('destWidth'), - destHeight: getInt('destHeight'), - fileType(value, params) { - value = (value || '').toUpperCase(); - let type = fileTypes[value]; - if (!type) { - type = fileTypes.PNG; - } - params.fileType = type; - }, - quality(value, params) { - params.quality = value && value > 0 && value < 1 ? value : 1; - }, - }, -}; -const CanvasToTempFilePathProtocol = { - x: Number, - y: Number, - width: Number, - height: Number, - destWidth: Number, - destHeight: Number, - canvasId: { - type: String, - required: true, - }, - fileType: String, - quality: Number, -}; - -//#region import -function operateCanvas(canvasId, pageId, type, data, callback) { - UniServiceJSBridge.invokeViewMethod(`canvas.${canvasId}`, { - type, - data, - }, pageId, (data) => { - if (callback) - callback(data); - }); -} -//#endregion -//#region methods -var methods1 = ['scale', 'rotate', 'translate', 'setTransform', 'transform']; -var methods2 = [ - 'drawImage', - 'fillText', - 'fill', - 'stroke', - 'fillRect', - 'strokeRect', - 'clearRect', - 'strokeText', -]; -var methods3 = [ - 'setFillStyle', - 'setTextAlign', - 'setStrokeStyle', - 'setGlobalAlpha', - 'setShadow', - 'setFontSize', - 'setLineCap', - 'setLineJoin', - 'setLineWidth', - 'setMiterLimit', - 'setTextBaseline', - 'setLineDash', -]; -//#endregion -//#region checkColor -const predefinedColor = { - aliceblue: '#f0f8ff', - antiquewhite: '#faebd7', - aqua: '#00ffff', - aquamarine: '#7fffd4', - azure: '#f0ffff', - beige: '#f5f5dc', - bisque: '#ffe4c4', - black: '#000000', - blanchedalmond: '#ffebcd', - blue: '#0000ff', - blueviolet: '#8a2be2', - brown: '#a52a2a', - burlywood: '#deb887', - cadetblue: '#5f9ea0', - chartreuse: '#7fff00', - chocolate: '#d2691e', - coral: '#ff7f50', - cornflowerblue: '#6495ed', - cornsilk: '#fff8dc', - crimson: '#dc143c', - cyan: '#00ffff', - darkblue: '#00008b', - darkcyan: '#008b8b', - darkgoldenrod: '#b8860b', - darkgray: '#a9a9a9', - darkgrey: '#a9a9a9', - darkgreen: '#006400', - darkkhaki: '#bdb76b', - darkmagenta: '#8b008b', - darkolivegreen: '#556b2f', - darkorange: '#ff8c00', - darkorchid: '#9932cc', - darkred: '#8b0000', - darksalmon: '#e9967a', - darkseagreen: '#8fbc8f', - darkslateblue: '#483d8b', - darkslategray: '#2f4f4f', - darkslategrey: '#2f4f4f', - darkturquoise: '#00ced1', - darkviolet: '#9400d3', - deeppink: '#ff1493', - deepskyblue: '#00bfff', - dimgray: '#696969', - dimgrey: '#696969', - dodgerblue: '#1e90ff', - firebrick: '#b22222', - floralwhite: '#fffaf0', - forestgreen: '#228b22', - fuchsia: '#ff00ff', - gainsboro: '#dcdcdc', - ghostwhite: '#f8f8ff', - gold: '#ffd700', - goldenrod: '#daa520', - gray: '#808080', - grey: '#808080', - green: '#008000', - greenyellow: '#adff2f', - honeydew: '#f0fff0', - hotpink: '#ff69b4', - indianred: '#cd5c5c', - indigo: '#4b0082', - ivory: '#fffff0', - khaki: '#f0e68c', - lavender: '#e6e6fa', - lavenderblush: '#fff0f5', - lawngreen: '#7cfc00', - lemonchiffon: '#fffacd', - lightblue: '#add8e6', - lightcoral: '#f08080', - lightcyan: '#e0ffff', - lightgoldenrodyellow: '#fafad2', - lightgray: '#d3d3d3', - lightgrey: '#d3d3d3', - lightgreen: '#90ee90', - lightpink: '#ffb6c1', - lightsalmon: '#ffa07a', - lightseagreen: '#20b2aa', - lightskyblue: '#87cefa', - lightslategray: '#778899', - lightslategrey: '#778899', - lightsteelblue: '#b0c4de', - lightyellow: '#ffffe0', - lime: '#00ff00', - limegreen: '#32cd32', - linen: '#faf0e6', - magenta: '#ff00ff', - maroon: '#800000', - mediumaquamarine: '#66cdaa', - mediumblue: '#0000cd', - mediumorchid: '#ba55d3', - mediumpurple: '#9370db', - mediumseagreen: '#3cb371', - mediumslateblue: '#7b68ee', - mediumspringgreen: '#00fa9a', - mediumturquoise: '#48d1cc', - mediumvioletred: '#c71585', - midnightblue: '#191970', - mintcream: '#f5fffa', - mistyrose: '#ffe4e1', - moccasin: '#ffe4b5', - navajowhite: '#ffdead', - navy: '#000080', - oldlace: '#fdf5e6', - olive: '#808000', - olivedrab: '#6b8e23', - orange: '#ffa500', - orangered: '#ff4500', - orchid: '#da70d6', - palegoldenrod: '#eee8aa', - palegreen: '#98fb98', - paleturquoise: '#afeeee', - palevioletred: '#db7093', - papayawhip: '#ffefd5', - peachpuff: '#ffdab9', - peru: '#cd853f', - pink: '#ffc0cb', - plum: '#dda0dd', - powderblue: '#b0e0e6', - purple: '#800080', - rebeccapurple: '#663399', - red: '#ff0000', - rosybrown: '#bc8f8f', - royalblue: '#4169e1', - saddlebrown: '#8b4513', - salmon: '#fa8072', - sandybrown: '#f4a460', - seagreen: '#2e8b57', - seashell: '#fff5ee', - sienna: '#a0522d', - silver: '#c0c0c0', - skyblue: '#87ceeb', - slateblue: '#6a5acd', - slategray: '#708090', - slategrey: '#708090', - snow: '#fffafa', - springgreen: '#00ff7f', - steelblue: '#4682b4', - tan: '#d2b48c', - teal: '#008080', - thistle: '#d8bfd8', - tomato: '#ff6347', - turquoise: '#40e0d0', - violet: '#ee82ee', - wheat: '#f5deb3', - white: '#ffffff', - whitesmoke: '#f5f5f5', - yellow: '#ffff00', - yellowgreen: '#9acd32', - transparent: '#00000000', -}; -function checkColor(e) { - // 其他开发者适配的echarts会传入一个undefined到这里 - e = e || '#000000'; - let t = null; - if ((t = /^#([0-9|A-F|a-f]{6})$/.exec(e)) != null) { - const n = parseInt(t[1].slice(0, 2), 16); - const o = parseInt(t[1].slice(2, 4), 16); - const r = parseInt(t[1].slice(4), 16); - return [n, o, r, 255]; - } - if ((t = /^#([0-9|A-F|a-f]{3})$/.exec(e)) != null) { - let n = t[1].slice(0, 1); - let o = t[1].slice(1, 2); - let r = t[1].slice(2, 3); - n = parseInt(n + n, 16); - o = parseInt(o + o, 16); - r = parseInt(r + r, 16); - return [n, o, r, 255]; - } - if ((t = /^rgb\((.+)\)$/.exec(e)) != null) { - return t[1] - .split(',') - .map(function (e) { - return Math.min(255, parseInt(e.trim())); - }) - .concat(255); - } - if ((t = /^rgba\((.+)\)$/.exec(e)) != null) { - return t[1].split(',').map(function (e, t) { - return t === 3 - ? Math.floor(255 * parseFloat(e.trim())) - : Math.min(255, parseInt(e.trim())); - }); - } - var i = e.toLowerCase(); - if (hasOwn$1(predefinedColor, i)) { - t = /^#([0-9|A-F|a-f]{6,8})$/.exec(predefinedColor[i]); - const n = parseInt(t[1].slice(0, 2), 16); - const o = parseInt(t[1].slice(2, 4), 16); - const r = parseInt(t[1].slice(4, 6), 16); - let a = parseInt(t[1].slice(6, 8), 16); - a = a >= 0 ? a : 255; - return [n, o, r, a]; - } - console.error('unsupported color:' + e); - return [0, 0, 0, 255]; -} -//#endregion -//#region Class -class CanvasGradient { - constructor(type, data) { - this.type = type; - this.data = data; - this.colorStop = []; - } - addColorStop(position, color) { - this.colorStop.push([position, checkColor(color)]); - } -} -class Pattern { - constructor(image, repetition) { - this.type = 'pattern'; - this.data = image; - this.colorStop = repetition; - } -} -class TextMetrics { - constructor(width) { - this.width = width; - } -} -//#endregion -const getTempPath = () => { - let _TEMP_PATH = TEMP_PATH; - { - typeof getEnv !== 'undefined' && (_TEMP_PATH = getEnv().TEMP_PATH); - } - return _TEMP_PATH; -}; -class CanvasContext { - constructor(id, pageId) { - this.id = id; - this.pageId = pageId; - this.actions = []; - this.path = []; - this.subpath = []; - // this.currentTransform = [] - // this.currentStepAnimates = [] - this.drawingState = []; - this.state = { - lineDash: [0, 0], - shadowOffsetX: 0, - shadowOffsetY: 0, - shadowBlur: 0, - shadowColor: [0, 0, 0, 0], - font: '10px sans-serif', - fontSize: 10, - fontWeight: 'normal', - fontStyle: 'normal', - fontFamily: 'sans-serif', - }; - } - setFillStyle(color) { - console.log('initCanvasContextProperty implemented.'); - } - setStrokeStyle(color) { - console.log('initCanvasContextProperty implemented.'); - } - setShadow(offsetX, offsetY, blur, color) { - console.log('initCanvasContextProperty implemented.'); - } - addColorStop(stop, color) { - console.log('initCanvasContextProperty implemented.'); - } - setLineWidth(lineWidth) { - console.log('initCanvasContextProperty implemented.'); - } - setLineCap(lineCap) { - console.log('initCanvasContextProperty implemented.'); - } - setLineJoin(lineJoin) { - console.log('initCanvasContextProperty implemented.'); - } - setLineDash(pattern, offset) { - console.log('initCanvasContextProperty implemented.'); - } - setMiterLimit(miterLimit) { - console.log('initCanvasContextProperty implemented.'); - } - fillRect(x, y, width, height) { - console.log('initCanvasContextProperty implemented.'); - } - strokeRect(x, y, width, height) { - console.log('initCanvasContextProperty implemented.'); - } - clearRect(x, y, width, height) { - console.log('initCanvasContextProperty implemented.'); - } - fill() { - console.log('initCanvasContextProperty implemented.'); - } - stroke() { - console.log('initCanvasContextProperty implemented.'); - } - scale(scaleWidth, scaleHeight) { - console.log('initCanvasContextProperty implemented.'); - } - rotate(rotate) { - console.log('initCanvasContextProperty implemented.'); - } - translate(x, y) { - console.log('initCanvasContextProperty implemented.'); - } - setFontSize(fontSize) { - console.log('initCanvasContextProperty implemented.'); - } - fillText(text, x, y, maxWidth) { - console.log('initCanvasContextProperty implemented.'); - } - setTextAlign(align) { - console.log('initCanvasContextProperty implemented.'); - } - setTextBaseline(textBaseline) { - console.log('initCanvasContextProperty implemented.'); - } - drawImage(imageResource, dx, dy, dWidth, dHeigt, sx, sy, sWidth, sHeight) { - console.log('initCanvasContextProperty implemented.'); - } - setGlobalAlpha(alpha) { - console.log('initCanvasContextProperty implemented.'); - } - strokeText(text, x, y, maxWidth) { - console.log('initCanvasContextProperty implemented.'); - } - setTransform(scaleX, skewX, skewY, scaleY, translateX, translateY) { - console.log('initCanvasContextProperty implemented.'); - } - draw(reserve = false, callback) { - var actions = [...this.actions]; - this.actions = []; - this.path = []; - operateCanvas(this.id, this.pageId, 'actionsChanged', { - actions, - reserve, - }, callback); - } - createLinearGradient(x0, y0, x1, y1) { - return new CanvasGradient('linear', [x0, y0, x1, y1]); - } - createCircularGradient(x, y, r) { - return new CanvasGradient('radial', [x, y, r]); - } - createPattern(image, repetition) { - if (undefined === repetition) { - console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present."); - } - else if (['repeat', 'repeat-x', 'repeat-y', 'no-repeat'].indexOf(repetition) < 0) { - console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('" + - repetition + - "') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'."); - } - else { - return new Pattern(image, repetition); - } - } - measureText(text, callback) { - const font = this.state.font; - let width = 0; - { - { - if (typeof callback === 'function') { - const webview = plus.webview.getLaunchWebview(); - // @ts-expect-error evalJSASync 后新增,和 plus 签名不匹配,暂时忽略 ts 报错 - if (webview && typeof webview.evalJSASync === 'function') { - webview.evalJSASync(`(function measureText(text, font) { - const canvas = document.createElement('canvas') - const c2d = canvas.getContext('2d') - c2d.font = font - return c2d.measureText(text).width || 0 -})(${JSON.stringify(text)},${JSON.stringify(font)})`).then((res) => { - callback(new TextMetrics(parseFloat(res))); - }); - } - } - } - } - return new TextMetrics(width); - } - save() { - this.actions.push({ - method: 'save', - data: [], - }); - this.drawingState.push(this.state); - } - restore() { - this.actions.push({ - method: 'restore', - data: [], - }); - this.state = this.drawingState.pop() || { - lineDash: [0, 0], - shadowOffsetX: 0, - shadowOffsetY: 0, - shadowBlur: 0, - shadowColor: [0, 0, 0, 0], - font: '10px sans-serif', - fontSize: 10, - fontWeight: 'normal', - fontStyle: 'normal', - fontFamily: 'sans-serif', - }; - } - beginPath() { - this.path = []; - this.subpath = []; - this.path.push({ - method: 'beginPath', - data: [], - }); - } - moveTo(x, y) { - this.path.push({ - method: 'moveTo', - data: [x, y], - }); - this.subpath = [[x, y]]; - } - lineTo(x, y) { - if (this.path.length === 0 && this.subpath.length === 0) { - this.path.push({ - method: 'moveTo', - data: [x, y], - }); - } - else { - this.path.push({ - method: 'lineTo', - data: [x, y], - }); - } - this.subpath.push([x, y]); - } - quadraticCurveTo(cpx, cpy, x, y) { - this.path.push({ - method: 'quadraticCurveTo', - data: [cpx, cpy, x, y], - }); - this.subpath.push([x, y]); - } - bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) { - this.path.push({ - method: 'bezierCurveTo', - data: [cp1x, cp1y, cp2x, cp2y, x, y], - }); - this.subpath.push([x, y]); - } - arc(x, y, r, sAngle, eAngle, counterclockwise = false) { - this.path.push({ - method: 'arc', - data: [x, y, r, sAngle, eAngle, counterclockwise], - }); - this.subpath.push([x, y]); - } - rect(x, y, width, height) { - this.path.push({ - method: 'rect', - data: [x, y, width, height], - }); - this.subpath = [[x, y]]; - } - arcTo(x1, y1, x2, y2, radius) { - this.path.push({ - method: 'arcTo', - data: [x1, y1, x2, y2, radius], - }); - this.subpath.push([x2, y2]); - } - clip() { - this.actions.push({ - method: 'clip', - data: [...this.path], - }); - } - closePath() { - this.path.push({ - method: 'closePath', - data: [], - }); - if (this.subpath.length) { - this.subpath = [this.subpath.shift()]; - } - } - clearActions() { - this.actions = []; - this.path = []; - this.subpath = []; - } - getActions() { - var actions = [...this.actions]; - this.clearActions(); - return actions; - } - set lineDashOffset(value) { - this.actions.push({ - method: 'setLineDashOffset', - data: [value], - }); - } - set globalCompositeOperation(type) { - this.actions.push({ - method: 'setGlobalCompositeOperation', - data: [type], - }); - } - set shadowBlur(level) { - this.actions.push({ - method: 'setShadowBlur', - data: [level], - }); - } - set shadowColor(color) { - this.actions.push({ - method: 'setShadowColor', - data: [color], - }); - } - set shadowOffsetX(x) { - this.actions.push({ - method: 'setShadowOffsetX', - data: [x], - }); - } - set shadowOffsetY(y) { - this.actions.push({ - method: 'setShadowOffsetY', - data: [y], - }); - } - set font(value) { - var self = this; - this.state.font = value; - // eslint-disable-next-line - var fontFormat = value.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/); - if (fontFormat) { - var style = fontFormat[1].trim().split(/\s/); - var fontSize = parseFloat(fontFormat[3]); - var fontFamily = fontFormat[7]; - var actions = []; - style.forEach(function (value, index) { - if (['italic', 'oblique', 'normal'].indexOf(value) > -1) { - actions.push({ - method: 'setFontStyle', - data: [value], - }); - self.state.fontStyle = value; - } - else if (['bold', 'normal'].indexOf(value) > -1) { - actions.push({ - method: 'setFontWeight', - data: [value], - }); - self.state.fontWeight = value; - } - else if (index === 0) { - actions.push({ - method: 'setFontStyle', - data: ['normal'], - }); - self.state.fontStyle = 'normal'; - } - else if (index === 1) { - pushAction(); - } - }); - if (style.length === 1) { - pushAction(); - } - style = actions - .map(function (action) { - return action.data[0]; - }) - .join(' '); - this.state.fontSize = fontSize; - this.state.fontFamily = fontFamily; - this.actions.push({ - method: 'setFont', - data: [`${style} ${fontSize}px ${fontFamily}`], - }); - } - else { - console.warn("Failed to set 'font' on 'CanvasContext': invalid format."); - } - function pushAction() { - actions.push({ - method: 'setFontWeight', - data: ['normal'], - }); - self.state.fontWeight = 'normal'; - } - } - get font() { - return this.state.font; - } - set fillStyle(color) { - this.setFillStyle(color); - } - set strokeStyle(color) { - this.setStrokeStyle(color); - } - set globalAlpha(value) { - value = Math.floor(255 * parseFloat(value)); - this.actions.push({ - method: 'setGlobalAlpha', - data: [value], - }); - } - set textAlign(align) { - this.actions.push({ - method: 'setTextAlign', - data: [align], - }); - } - set lineCap(type) { - this.actions.push({ - method: 'setLineCap', - data: [type], - }); - } - set lineJoin(type) { - this.actions.push({ - method: 'setLineJoin', - data: [type], - }); - } - set lineWidth(value) { - this.actions.push({ - method: 'setLineWidth', - data: [value], - }); - } - set miterLimit(value) { - this.actions.push({ - method: 'setMiterLimit', - data: [value], - }); - } - set textBaseline(type) { - this.actions.push({ - method: 'setTextBaseline', - data: [type], - }); - } -} -const initCanvasContextProperty = /*#__PURE__*/ once(() => { - [...methods1, ...methods2].forEach(function (method) { - function get(method) { - switch (method) { - case 'fill': - case 'stroke': - return function () { - // @ts-expect-error - this.actions.push({ - method: method + 'Path', - // @ts-expect-error - data: [...this.path], - }); - }; - case 'fillRect': - return function (x, y, width, height) { - // @ts-expect-error - this.actions.push({ - method: 'fillPath', - data: [ - { - method: 'rect', - data: [x, y, width, height], - }, - ], - }); - }; - case 'strokeRect': - return function (x, y, width, height) { - // @ts-expect-error - this.actions.push({ - method: 'strokePath', - data: [ - { - method: 'rect', - data: [x, y, width, height], - }, - ], - }); - }; - case 'fillText': - case 'strokeText': - return function (text, x, y, maxWidth) { - var data = [text.toString(), x, y]; - if (typeof maxWidth === 'number') { - data.push(maxWidth); - } - // @ts-expect-error - this.actions.push({ - method, - data, - }); - }; - case 'drawImage': - return function (imageResource, dx, dy, dWidth, dHeight, sx, sy, sWidth, sHeight) { - if (sHeight === undefined) { - sx = dx; - sy = dy; - sWidth = dWidth; - sHeight = dHeight; - dx = undefined; - dy = undefined; - dWidth = undefined; - dHeight = undefined; - } - var data; - function isNumber(e) { - return typeof e === 'number'; - } - data = - isNumber(dx) && - isNumber(dy) && - isNumber(dWidth) && - isNumber(dHeight) - ? [ - imageResource, - sx, - sy, - sWidth, - sHeight, - dx, - dy, - dWidth, - dHeight, - ] - : isNumber(sWidth) && isNumber(sHeight) - ? [imageResource, sx, sy, sWidth, sHeight] - : [imageResource, sx, sy]; - // @ts-expect-error - this.actions.push({ - method, - data, - }); - }; - default: - return function (...data) { - // @ts-expect-error - this.actions.push({ - method, - data, - }); - }; - } - } - CanvasContext.prototype[method] = get(method); - }); - methods3.forEach(function (method) { - function get(method) { - switch (method) { - case 'setFillStyle': - case 'setStrokeStyle': - return function (color) { - if (typeof color !== 'object') { - // @ts-expect-error - this.actions.push({ - method, - data: ['normal', checkColor(color)], - }); - } - else { - // @ts-expect-error - this.actions.push({ - method, - data: [color.type, color.data, color.colorStop], - }); - } - }; - case 'setGlobalAlpha': - return function (alpha) { - alpha = Math.floor(255 * parseFloat(alpha)); - // @ts-expect-error - this.actions.push({ - method, - data: [alpha], - }); - }; - case 'setShadow': - return function (offsetX, offsetY, blur, color) { - color = checkColor(color); - // @ts-expect-error - this.actions.push({ - method, - data: [offsetX, offsetY, blur, color], - }); - // @ts-expect-error - this.state.shadowBlur = blur; - // @ts-expect-error - this.state.shadowColor = color; - // @ts-expect-error - this.state.shadowOffsetX = offsetX; - // @ts-expect-error - this.state.shadowOffsetY = offsetY; - }; - case 'setLineDash': - return function (pattern, offset) { - pattern = pattern || [0, 0]; - offset = offset || 0; - // @ts-expect-error - this.actions.push({ - method, - data: [pattern, offset], - }); - // @ts-expect-error - this.state.lineDash = pattern; - }; - case 'setFontSize': - return function (fontSize) { - // @ts-expect-error - this.state.font = this.state.font.replace(/\d+\.?\d*px/, fontSize + 'px'); - // @ts-expect-error - this.state.fontSize = fontSize; - // @ts-expect-error - this.actions.push({ - method, - data: [fontSize], - }); - }; - default: - return function (...data) { - // @ts-expect-error - this.actions.push({ - method, - data, - }); - }; - } - } - CanvasContext.prototype[method] = get(method); - }); -}); -const createCanvasContext = defineSyncApi(API_CREATE_CANVAS_CONTEXT, (canvasId, componentInstance) => { - initCanvasContextProperty(); - if (componentInstance) { - return new CanvasContext(canvasId, getPageIdByVm(componentInstance)); - } - const pageId = getPageIdByVm(getCurrentPageVm()); - if (pageId) { - return new CanvasContext(canvasId, pageId); - } - else { - UniServiceJSBridge.emit(ON_ERROR, 'createCanvasContext:fail'); - } -}, CreateCanvasContextProtocol); -const canvasGetImageData = defineAsyncApi(API_CANVAS_GET_IMAGE_DATA, ({ canvasId, x, y, width, height }, { resolve, reject }) => { - const pageId = getPageIdByVm(getCurrentPageVm()); - if (!pageId) { - reject(); - return; - } - function callback(data) { - if (data.errMsg && data.errMsg.indexOf('fail') !== -1) { - reject('', data); - return; - } - let imgData = data.data; - if (imgData && imgData.length) { - if (data.compressed) { - imgData = pako_1.inflateRaw(imgData); - } - data.data = new Uint8ClampedArray(imgData); - } - delete data.compressed; - resolve(data); - } - operateCanvas(canvasId, pageId, 'getImageData', { - x, - y, - width, - height, - }, callback); -}, CanvasGetImageDataProtocol, CanvasGetImageDataOptions); -const canvasPutImageData = defineAsyncApi(API_CANVAS_PUT_IMAGE_DATA, ({ canvasId, data, x, y, width, height }, { resolve, reject }) => { - var pageId = getPageIdByVm(getCurrentPageVm()); - if (!pageId) { - reject(); - return; - } - let compressed; - const operate = () => { - operateCanvas(canvasId, pageId, 'putImageData', { - data, - x, - y, - width, - height, - compressed, - }, (data) => { - if (data.errMsg && data.errMsg.indexOf('fail') !== -1) { - reject(); - return; - } - resolve(data); - }); - }; - // iOS真机非调试模式压缩太慢暂时排除 - { - data = pako_1.deflateRaw(data, { to: 'string' }); - compressed = true; - } - operate(); -}, CanvasPutImageDataProtocol, CanvasPutImageDataOptions); -const canvasToTempFilePath = defineAsyncApi(API_CANVAS_TO_TEMP_FILE_PATH, ({ x = 0, y = 0, width, height, destWidth, destHeight, canvasId, fileType, quality, }, { resolve, reject }) => { - var pageId = getPageIdByVm(getCurrentPageVm()); - if (!pageId) { - reject(); - return; - } - let dirname = `${getTempPath()}/canvas`; - operateCanvas(canvasId, pageId, 'toTempFilePath', { - x, - y, - width, - height, - destWidth, - destHeight, - fileType, - quality, - dirname, - }, (res) => { - if (res.errMsg && res.errMsg.indexOf('fail') !== -1) { - reject('', res); - return; - } - resolve(res); - }); -}, CanvasToTempFilePathProtocol, CanvasToTempFilePathOptions); - -const defaultOptions = { - thresholds: [0], - initialRatio: 0, - observeAll: false, -}; -const MARGINS = ['top', 'right', 'bottom', 'left']; -let reqComponentObserverId$1 = 1; -function normalizeRootMargin(margins = {}) { - return MARGINS.map((name) => `${Number(margins[name]) || 0}px`).join(' '); -} -class ServiceIntersectionObserver { - constructor(component, options) { - this._pageId = getPageIdByVm(component); - this._component = component; - this._options = extend({}, defaultOptions, options); - } - relativeTo(selector, margins) { - this._options.relativeToSelector = selector; - this._options.rootMargin = normalizeRootMargin(margins); - return this; - } - relativeToViewport(margins) { - this._options.relativeToSelector = undefined; - this._options.rootMargin = normalizeRootMargin(margins); - return this; - } - observe(selector, callback) { - if (!isFunction(callback)) { - return; - } - this._options.selector = selector; - this._reqId = reqComponentObserverId$1++; - addIntersectionObserver({ - reqId: this._reqId, - component: this._component, - options: this._options, - callback, - }, this._pageId); - } - disconnect() { - this._reqId && - removeIntersectionObserver({ reqId: this._reqId, component: this._component }, this._pageId); - } -} -const createIntersectionObserver = defineSyncApi('createIntersectionObserver', (context, options) => { - context = resolveComponentInstance(context); - if (context && !getPageIdByVm(context)) { - options = context; - context = null; - } - if (context) { - return new ServiceIntersectionObserver(context, options); - } - return new ServiceIntersectionObserver(getCurrentPageVm(), options); -}); - -let reqComponentObserverId = 1; -class ServiceMediaQueryObserver { - constructor(component) { - this._pageId = - component.$page && component.$page.id; - this._component = component; - } - observe(options, callback) { - if (!isFunction(callback)) { - return; - } - this._reqId = reqComponentObserverId++; - addMediaQueryObserver({ - reqId: this._reqId, - component: this._component, - options, - callback, - }, this._pageId); - } - disconnect() { - this._reqId && - removeMediaQueryObserver({ - reqId: this._reqId, - component: this._component, - }, this._pageId); - } -} -const createMediaQueryObserver = defineSyncApi('createMediaQueryObserver', (context) => { - context = resolveComponentInstance(context); - if (context && !getPageIdByVm(context)) { - context = null; - } - if (context) { - return new ServiceMediaQueryObserver(context); - } - return new ServiceMediaQueryObserver(getCurrentPageVm()); -}); - -// let eventReady = false -let index$1 = 0; -let optionsCache = {}; -function operateEditor(componentId, pageId, type, options) { - const data = { options }; - const needCallOptions = options && - ('success' in options || 'fail' in options || 'complete' in options); - if (needCallOptions) { - const callbackId = String(index$1++); - data.callbackId = callbackId; - optionsCache[callbackId] = options; - } - UniServiceJSBridge.invokeViewMethod(`editor.${componentId}`, { - type, - data, - }, pageId, ({ callbackId, data }) => { - if (needCallOptions) { - callOptions(optionsCache[callbackId], data); - delete optionsCache[callbackId]; - } - }); -} -class EditorContext { - constructor(id, pageId) { - this.id = id; - this.pageId = pageId; - } - format(name, value) { - this._exec('format', { - name, - value, - }); - } - insertDivider() { - this._exec('insertDivider'); - } - insertImage(options) { - this._exec('insertImage', options); - } - insertText(options) { - this._exec('insertText', options); - } - setContents(options) { - this._exec('setContents', options); - } - getContents(options) { - this._exec('getContents', options); - } - clear(options) { - this._exec('clear', options); - } - removeFormat(options) { - this._exec('removeFormat', options); - } - undo(options) { - this._exec('undo', options); - } - redo(options) { - this._exec('redo', options); - } - blur(options) { - this._exec('blur', options); - } - getSelectionText(options) { - this._exec('getSelectionText', options); - } - scrollIntoView(options) { - this._exec('scrollIntoView', options); - } - _exec(method, options) { - operateEditor(this.id, this.pageId, method, options); - } -} - -const ContextClasss = { - canvas: CanvasContext, - map: MapContext, - video: VideoContext, - editor: EditorContext, -}; -function convertContext(result) { - if (result && result.contextInfo) { - const { id, type, page } = result.contextInfo; - const ContextClass = ContextClasss[type]; - result.context = new ContextClass(id, page); - delete result.contextInfo; - } -} -class NodesRef { - constructor(selectorQuery, component, selector, single) { - this._selectorQuery = selectorQuery; - this._component = component; - this._selector = selector; - this._single = single; - } - boundingClientRect(callback) { - this._selectorQuery._push(this._selector, this._component, this._single, { - id: true, - dataset: true, - rect: true, - size: true, - }, callback); - return this._selectorQuery; - } - fields(fields, callback) { - this._selectorQuery._push(this._selector, this._component, this._single, fields, callback); - return this._selectorQuery; - } - scrollOffset(callback) { - this._selectorQuery._push(this._selector, this._component, this._single, { - id: true, - dataset: true, - scrollOffset: true, - }, callback); - return this._selectorQuery; - } - context(callback) { - this._selectorQuery._push(this._selector, this._component, this._single, { - context: true, - }, callback); - return this._selectorQuery; - } - node(callback) { - this._selectorQuery._push(this._selector, this._component, this._single, { - node: true, - }, callback); - return this._selectorQuery; - } -} -class SelectorQuery { - constructor(page) { - this._component = undefined; - this._page = page; - this._queue = []; - this._queueCb = []; - } - exec(callback) { - requestComponentInfo(this._page, this._queue, (res) => { - const queueCbs = this._queueCb; - res.forEach((result, index) => { - if (isArray(result)) { - result.forEach(convertContext); - } - else { - convertContext(result); - } - const queueCb = queueCbs[index]; - if (isFunction(queueCb)) { - queueCb.call(this, result); - } - }); - // isFn(callback) && - if (isFunction(callback)) { - callback.call(this, res); - } - }); - // TODO - return this._nodesRef; - } - in(component) { - this._component = resolveComponentInstance(component); - return this; - } - select(selector) { - return (this._nodesRef = new NodesRef(this, this._component, selector, true)); - } - selectAll(selector) { - return (this._nodesRef = new NodesRef(this, this._component, selector, false)); - } - selectViewport() { - return (this._nodesRef = new NodesRef(this, null, '', true)); - } - _push(selector, component, single, fields, callback) { - this._queue.push({ - component, - selector, - single, - fields, - }); - this._queueCb.push(callback); - } -} -const createSelectorQuery = defineSyncApi('createSelectorQuery', (context) => { - context = resolveComponentInstance(context); - if (context && !getPageIdByVm(context)) { - context = null; - } - return new SelectorQuery(context || getCurrentPageVm()); -}); - -// import { elemInArray } from '../../helpers/protocol' -const API_CREATE_ANIMATION = 'createAnimation'; -// const timingFunctions: API_TYPE_CREATE_ANIMATION_Timing_Function[] = [ -// 'linear', -// 'ease', -// 'ease-in', -// 'ease-in-out', -// 'ease-out', -// 'step-start', -// 'step-end', -// ] -const CreateAnimationOptions = { - // 目前参数校验不支持此api校验 - formatArgs: { - /* duration: 400, - timingFunction(timingFunction, params) { - params.timingFunction = elemInArray(timingFunction, timingFunctions) - }, - delay: 0, - transformOrigin: '50% 50% 0', */ - }, -}; -const CreateAnimationProtocol = { - duration: Number, - timingFunction: String, - delay: Number, - transformOrigin: String, -}; - -const defaultOption = { - duration: 400, - timingFunction: 'linear', - delay: 0, - transformOrigin: '50% 50% 0', -}; -class MPAnimation { - constructor(option) { - this.actions = []; - this.currentTransform = {}; - this.currentStepAnimates = []; - this.option = extend({}, defaultOption, option); - } - _getOption(option) { - const _option = { - transition: extend({}, this.option, option), - transformOrigin: '', - }; - _option.transformOrigin = _option.transition.transformOrigin; - delete _option.transition.transformOrigin; - return _option; - } - _pushAnimates(type, args) { - this.currentStepAnimates.push({ - type: type, - args: args, - }); - } - _converType(type) { - return type.replace(/[A-Z]/g, (text) => { - return `-${text.toLowerCase()}`; - }); - } - _getValue(value) { - return typeof value === 'number' ? `${value}px` : value; - } - export() { - const actions = this.actions; - this.actions = []; - return { - actions, - }; - } - step(option) { - this.currentStepAnimates.forEach((animate) => { - if (animate.type !== 'style') { - this.currentTransform[animate.type] = animate; - } - else { - this.currentTransform[`${animate.type}.${animate.args[0]}`] = animate; - } - }); - this.actions.push({ - animates: Object.values(this.currentTransform), - option: this._getOption(option), - }); - this.currentStepAnimates = []; - return this; - } -} -const initAnimationProperty = /*#__PURE__*/ once(() => { - const animateTypes1 = [ - 'matrix', - 'matrix3d', - 'rotate', - 'rotate3d', - 'rotateX', - 'rotateY', - 'rotateZ', - 'scale', - 'scale3d', - 'scaleX', - 'scaleY', - 'scaleZ', - 'skew', - 'skewX', - 'skewY', - 'translate', - 'translate3d', - 'translateX', - 'translateY', - 'translateZ', - ]; - const animateTypes2 = ['opacity', 'backgroundColor']; - const animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom']; - animateTypes1.concat(animateTypes2, animateTypes3).forEach((type) => { - MPAnimation.prototype[type] = function (...args) { - if (animateTypes2.concat(animateTypes3).includes(type)) { - this._pushAnimates('style', [ - this._converType(type), - animateTypes3.includes(type) ? this._getValue(args[0]) : args[0], - ]); - } - else { - this._pushAnimates(type, args); - } - return this; - }; - }); -}); -const createAnimation = defineSyncApi(API_CREATE_ANIMATION, (option) => { - initAnimationProperty(); - return new MPAnimation(option); -}, CreateAnimationProtocol, CreateAnimationOptions); - -const API_ON_TAB_BAR_MID_BUTTON_TAP = 'onTabBarMidButtonTap'; - -const API_ON_WINDOW_RESIZE = 'onWindowResize'; - -/** - * 监听窗口大小变化 - */ -const onWindowResize = defineOnApi(API_ON_WINDOW_RESIZE, () => { - // 生命周期包括onResize,框架直接监听resize - // window.addEventListener('resize', onResize) -}); - -const API_SET_LOCALE = 'setLocale'; -const API_GET_LOCALE = 'getLocale'; -const API_ON_LOCALE_CHANGE = 'onLocaleChange'; -const getLocale = defineSyncApi(API_GET_LOCALE, () => { - // 优先使用 $locale - const app = getApp({ allowDefault: true }); - if (app && app.$vm) { - return app.$vm.$locale; - } - return useI18n().getLocale(); -}); -const onLocaleChange = defineOnApi(API_ON_LOCALE_CHANGE, () => { }); -const setLocale = defineSyncApi(API_SET_LOCALE, (locale) => { - const app = getApp(); - if (!app) { - return false; - } - const oldLocale = app.$vm.$locale; - if (oldLocale !== locale) { - app.$vm.$locale = locale; - { - const pages = getCurrentPages(); - pages.forEach((page) => { - UniServiceJSBridge.publishHandler(API_SET_LOCALE, locale, page.$page.id); - }); - weex.requireModule('plus').setLanguage(locale); - } - // 执行 uni.onLocaleChange - UniServiceJSBridge.invokeOnCallback(API_ON_LOCALE_CHANGE, { locale }); - return true; - } - return false; -}); - -const API_GET_SELECTED_TEXT_RANGE = 'getSelectedTextRange'; - -const getSelectedTextRange = defineAsyncApi(API_GET_SELECTED_TEXT_RANGE, (_, { resolve, reject }) => { - UniServiceJSBridge.invokeViewMethod(API_GET_SELECTED_TEXT_RANGE, {}, getCurrentPageId(), (res) => { - if (typeof res.end === 'undefined' && - typeof res.start === 'undefined') { - reject('no focused'); - } - else { - resolve(res); - } - }); -}); - -const appHooks = { - [ON_UNHANDLE_REJECTION]: [], - [ON_PAGE_NOT_FOUND]: [], - [ON_ERROR]: [], - [ON_SHOW]: [], - [ON_HIDE]: [], -}; -function injectAppHooks(appInstance) { - Object.keys(appHooks).forEach((type) => { - appHooks[type].forEach((hook) => { - injectHook(type, hook, appInstance); - }); - }); -} -const API_GET_ENTER_OPTIONS_SYNC = 'getEnterOptionsSync'; -const getEnterOptionsSync = defineSyncApi(API_GET_ENTER_OPTIONS_SYNC, () => { - return getEnterOptions(); -}); -const API_GET_LAUNCH_OPTIONS_SYNC = 'getLaunchOptionsSync'; -const getLaunchOptionsSync = defineSyncApi(API_GET_LAUNCH_OPTIONS_SYNC, () => { - return getLaunchOptions(); -}); - -const API_CAN_I_USE = 'canIUse'; -const CanIUseProtocol = [ - { - name: 'schema', - type: String, - required: true, - }, -]; - -const API_CHOOSE_LOCATION = 'chooseLocation'; -const ChooseLocationProtocol = { - keyword: String, - latitude: Number, - longitude: Number, -}; - -const API_GET_LOCATION = 'getLocation'; -const coordTypes$1 = ['wgs84', 'gcj02']; -const GetLocationOptions = { - formatArgs: { - type(value, params) { - value = (value || '').toLowerCase(); - if (coordTypes$1.indexOf(value) === -1) { - params.type = coordTypes$1[0]; - } - else { - params.type = value; - } - }, - altitude(value, params) { - params.altitude = value ? value : false; - }, - }, -}; -const GetLocationProtocol = { - type: String, - altitude: Boolean, -}; - -const API_OPEN_LOCATION = 'openLocation'; -const checkProps = (key, value) => { - if (value === undefined) { - return `${key} should not be empty.`; - } - if (typeof value !== 'number') { - let receivedType = typeof value; - receivedType = receivedType[0].toUpperCase() + receivedType.substring(1); - return `Expected Number, got ${receivedType} with value ${JSON.stringify(value)}.`; - } -}; -const OpenLocationOptions = { - formatArgs: { - latitude(value, params) { - const checkedInfo = checkProps('latitude', value); - if (checkedInfo) { - return checkedInfo; - } - params.latitude = value; - }, - longitude(value, params) { - const checkedInfo = checkProps('longitude', value); - if (checkedInfo) { - return checkedInfo; - } - params.longitude = value; - }, - scale(value, params) { - value = Math.floor(value); - params.scale = value >= 5 && value <= 18 ? value : 18; - }, - }, -}; -const OpenLocationProtocol = { - latitude: Number, - longitude: Number, - scale: Number, - name: String, - address: String, -}; - -const API_START_LOCATION_UPDATE = 'startLocationUpdate'; -const API_ON_LOCATION_CHANGE = 'onLocationChange'; -const API_STOP_LOCATION_UPDATE = 'stopLocationUpdate'; -const API_OFF_LOCATION_CHANGE = 'offLocationChange'; -const API_OFF_LOCATION_CHANGE_ERROR = 'offLocationChangeError'; -const API_ON_LOCATION_CHANGE_ERROR = 'onLocationChangeError'; -const coordTypes = ['wgs84', 'gcj02']; -const StartLocationUpdateProtocol = { - type: String, -}; -const StartLocationUpdateOptions = { - formatArgs: { - type(value, params) { - value = (value || '').toLowerCase(); - if (coordTypes.indexOf(value) === -1) { - params.type = coordTypes[1]; - } - else { - params.type = value; - } - }, - }, -}; - -function encodeQueryString(url) { - if (!isString(url)) { - return url; - } - const index = url.indexOf('?'); - if (index === -1) { - return url; - } - const query = url - .slice(index + 1) - .trim() - .replace(/^(\?|#|&)/, ''); - if (!query) { - return url; - } - url = url.slice(0, index); - const params = []; - query.split('&').forEach((param) => { - const parts = param.replace(/\+/g, ' ').split('='); - const key = parts.shift(); - const val = parts.length > 0 ? parts.join('=') : ''; - params.push(key + '=' + encodeURIComponent(val)); - }); - return params.length ? url + '?' + params.join('&') : url; -} - -const ANIMATION_IN = [ - 'slide-in-right', - 'slide-in-left', - 'slide-in-top', - 'slide-in-bottom', - 'fade-in', - 'zoom-out', - 'zoom-fade-out', - 'pop-in', - 'none', -]; -const ANIMATION_OUT = [ - 'slide-out-right', - 'slide-out-left', - 'slide-out-top', - 'slide-out-bottom', - 'fade-out', - 'zoom-in', - 'zoom-fade-in', - 'pop-out', - 'none', -]; -const BaseRouteProtocol = { - url: { - type: String, - required: true, - }, -}; -const API_NAVIGATE_TO = 'navigateTo'; -const API_REDIRECT_TO = 'redirectTo'; -const API_RE_LAUNCH = 'reLaunch'; -const API_SWITCH_TAB = 'switchTab'; -const API_NAVIGATE_BACK = 'navigateBack'; -const API_PRELOAD_PAGE = 'preloadPage'; -const API_UN_PRELOAD_PAGE = 'unPreloadPage'; -const NavigateToProtocol = -/*#__PURE__*/ extend({}, BaseRouteProtocol, createAnimationProtocol(ANIMATION_IN)); -const NavigateBackProtocol = -/*#__PURE__*/ extend({ - delta: { - type: Number, - }, -}, createAnimationProtocol(ANIMATION_OUT)); -const RedirectToProtocol = BaseRouteProtocol; -const ReLaunchProtocol = BaseRouteProtocol; -const SwitchTabProtocol = BaseRouteProtocol; -const NavigateToOptions = -/*#__PURE__*/ createRouteOptions(API_NAVIGATE_TO); -const RedirectToOptions = -/*#__PURE__*/ createRouteOptions(API_REDIRECT_TO); -const ReLaunchOptions = -/*#__PURE__*/ createRouteOptions(API_RE_LAUNCH); -const SwitchTabOptions = -/*#__PURE__*/ createRouteOptions(API_SWITCH_TAB); -const NavigateBackOptions = { - formatArgs: { - delta(value, params) { - value = parseInt(value + '') || 1; - params.delta = Math.min(getCurrentPages().length - 1, value); - }, - }, -}; -function createAnimationProtocol(animationTypes) { - return { - animationType: { - type: String, - validator(type) { - if (type && animationTypes.indexOf(type) === -1) { - return ('`' + - type + - '` is not supported for `animationType` (supported values are: `' + - animationTypes.join('`|`') + - '`)'); - } - }, - }, - animationDuration: { - type: Number, - }, - }; -} -let navigatorLock; -function beforeRoute() { - navigatorLock = ''; -} -function createRouteOptions(type) { - return { - formatArgs: { - url: createNormalizeUrl(type), - }, - beforeAll: beforeRoute, - }; -} -function createNormalizeUrl(type) { - return function normalizeUrl(url, params) { - if (!url) { - return `Missing required args: "url"`; - } - // 格式化为绝对路径路由 - url = normalizeRoute(url); - const pagePath = url.split('?')[0]; - // 匹配路由是否存在 - const routeOptions = getRouteOptions(pagePath, true); - if (!routeOptions) { - return 'page `' + url + '` is not found'; - } - // 检测不同类型跳转 - if (type === API_NAVIGATE_TO || type === API_REDIRECT_TO) { - if (routeOptions.meta.isTabBar) { - return `can not ${type} a tabbar page`; - } - } - else if (type === API_SWITCH_TAB) { - if (!routeOptions.meta.isTabBar) { - return 'can not switch to no-tabBar page'; - } - } - // switchTab不允许传递参数,reLaunch到一个tabBar页面是可以的 - if ((type === API_SWITCH_TAB || type === API_PRELOAD_PAGE) && - routeOptions.meta.isTabBar && - params.openType !== 'appLaunch') { - url = pagePath; - } - // 首页自动格式化为`/` - if (routeOptions.meta.isEntry) { - url = url.replace(routeOptions.alias, '/'); - } - // 参数格式化 - params.url = encodeQueryString(url); - if (type === API_UN_PRELOAD_PAGE) { - return; - } - else if (type === API_PRELOAD_PAGE) { - { - if (!routeOptions.meta.isNVue) { - return 'can not preload vue page'; - } - } - if (routeOptions.meta.isTabBar) { - const pages = getCurrentPages(); - const tabBarPagePath = routeOptions.path.slice(1); - if (pages.find((page) => page.route === tabBarPagePath)) { - return 'tabBar page `' + tabBarPagePath + '` already exists'; - } - } - return; - } - // 主要拦截目标为用户快速点击时触发的多次跳转,该情况,通常前后 url 是一样的 - if (navigatorLock === url && params.openType !== 'appLaunch') { - return `${navigatorLock} locked`; - } - // 至少 onLaunch 之后,再启用lock逻辑(onLaunch之前可能开发者手动调用路由API,来提前跳转) - // enableNavigatorLock 临时开关(不对外开放),避免该功能上线后,有部分情况异常,可以让开发者临时关闭 lock 功能 - if (__uniConfig.ready) { - navigatorLock = url; - } - }; -} - -const API_LOAD_FONT_FACE = 'loadFontFace'; -const LoadFontFaceProtocol = { - family: { - type: String, - required: true, - }, - source: { - type: String, - required: true, - }, - desc: Object, -}; - -const FRONT_COLORS = ['#ffffff', '#000000']; -const API_SET_NAVIGATION_BAR_COLOR = 'setNavigationBarColor'; -const SetNavigationBarColorOptions = { - formatArgs: { - animation(animation, params) { - if (!animation) { - animation = { duration: 0, timingFunc: 'linear' }; - } - params.animation = { - duration: animation.duration || 0, - timingFunc: animation.timingFunc || 'linear', - }; - }, - }, -}; -const SetNavigationBarColorProtocol = { - frontColor: { - type: String, - required: true, - validator(frontColor) { - if (FRONT_COLORS.indexOf(frontColor) === -1) { - return `invalid frontColor "${frontColor}"`; - } - }, - }, - backgroundColor: { - type: String, - required: true, - }, - animation: Object, -}; -const API_SET_NAVIGATION_BAR_TITLE = 'setNavigationBarTitle'; -const SetNavigationBarTitleProtocol = { - title: { - type: String, - required: true, - }, -}; -const API_SHOW_NAVIGATION_BAR_LOADING = 'showNavigationBarLoading'; -const API_HIDE_NAVIGATION_BAR_LOADING = 'hideNavigationBarLoading'; - -const API_PAGE_SCROLL_TO = 'pageScrollTo'; -const PageScrollToProtocol = { - scrollTop: Number, - selector: String, - duration: Number, -}; -const PageScrollToOptions = { - formatArgs: { - duration: 300, - }, -}; - -const IndexProtocol = { - index: { - type: Number, - required: true, - }, -}; -const IndexOptions = { - beforeInvoke() { - const pageMeta = getCurrentPageMeta(); - if (pageMeta && !pageMeta.isTabBar) { - return 'not TabBar page'; - } - }, - formatArgs: { - index(value) { - if (!__uniConfig.tabBar.list[value]) { - return 'tabbar item not found'; - } - }, - }, -}; -const API_SET_TAB_BAR_ITEM = 'setTabBarItem'; -const SetTabBarItemProtocol = -/*#__PURE__*/ extend({ - text: String, - iconPath: String, - selectedIconPath: String, - pagePath: String, -}, IndexProtocol); -const SetTabBarItemOptions = { - beforeInvoke: IndexOptions.beforeInvoke, - formatArgs: /*#__PURE__*/ extend({ - pagePath(value, params) { - if (value) { - params.pagePath = removeLeadingSlash(value); - } - }, - }, IndexOptions.formatArgs), -}; -const API_SET_TAB_BAR_STYLE = 'setTabBarStyle'; -const SetTabBarStyleProtocol = { - color: String, - selectedColor: String, - backgroundColor: String, - backgroundImage: String, - backgroundRepeat: String, - borderStyle: String, -}; -const GRADIENT_RE = /^(linear|radial)-gradient\(.+?\);?$/; -const SetTabBarStyleOptions = { - beforeInvoke: IndexOptions.beforeInvoke, - formatArgs: { - backgroundImage(value, params) { - if (value && !GRADIENT_RE.test(value)) { - params.backgroundImage = getRealPath(value); - } - }, - borderStyle(value, params) { - if (value) { - params.borderStyle = value === 'white' ? 'white' : 'black'; - } - }, - }, -}; -const API_HIDE_TAB_BAR = 'hideTabBar'; -const HideTabBarProtocol = { - animation: Boolean, -}; -const API_SHOW_TAB_BAR = 'showTabBar'; -const ShowTabBarProtocol = HideTabBarProtocol; -const API_HIDE_TAB_BAR_RED_DOT = 'hideTabBarRedDot'; -const HideTabBarRedDotProtocol = IndexProtocol; -const HideTabBarRedDotOptions = IndexOptions; -const API_SHOW_TAB_BAR_RED_DOT = 'showTabBarRedDot'; -const ShowTabBarRedDotProtocol = IndexProtocol; -const ShowTabBarRedDotOptions = IndexOptions; -const API_REMOVE_TAB_BAR_BADGE = 'removeTabBarBadge'; -const RemoveTabBarBadgeProtocol = IndexProtocol; -const RemoveTabBarBadgeOptions = IndexOptions; -const API_SET_TAB_BAR_BADGE = 'setTabBarBadge'; -const SetTabBarBadgeProtocol = -/*#__PURE__*/ extend({ - text: { - type: String, - required: true, - }, -}, IndexProtocol); -const SetTabBarBadgeOptions = { - beforeInvoke: IndexOptions.beforeInvoke, - formatArgs: /*#__PURE__*/ extend({ - text(value, params) { - if (getLen(value) >= 4) { - params.text = '...'; - } - }, - }, IndexOptions.formatArgs), -}; - -let config; -/** - * tabbar显示状态 - */ -let visible = true; -let tabBar; -/** - * 设置角标 - * @param {string} type - * @param {number} index - * @param {string} text - */ -function setTabBarBadge$1(type, index, text) { - if (!tabBar) { - return; - } - if (type === 'none') { - tabBar.hideTabBarRedDot({ - index, - }); - tabBar.removeTabBarBadge({ - index, - }); - } - else if (type === 'text') { - tabBar.setTabBarBadge({ - index, - text, - }); - } - else if (type === 'redDot') { - tabBar.showTabBarRedDot({ - index, - }); - } -} -/** - * 动态设置 tabBar 多项的内容 - */ -function setTabBarItems(tabBarConfig) { - tabBar && tabBar.setTabBarItems(tabBarConfig); -} -/** - * 动态设置 tabBar 某一项的内容 - */ -function setTabBarItem$1(index, text, iconPath, selectedIconPath, visible, iconfont) { - const item = { - index, - }; - if (text !== undefined) { - item.text = text; - } - if (iconPath) { - item.iconPath = getRealPath(iconPath); - } - if (selectedIconPath) { - item.selectedIconPath = getRealPath(selectedIconPath); - } - if (iconfont !== undefined) { - item.iconfont = iconfont; - } - if (visible !== undefined) { - item.visible = config.list[index].visible = visible; - delete item.index; - const tabbarItems = config.list.map((item) => ({ - visible: item.visible, - })); - tabbarItems[index] = item; - setTabBarItems({ list: tabbarItems }); - } - else { - tabBar && tabBar.setTabBarItem(item); - } -} -/** - * 动态设置 tabBar 的整体样式 - * @param {Object} style 样式 - */ -function setTabBarStyle$1(style) { - tabBar && tabBar.setTabBarStyle(style); -} -/** - * 隐藏 tabBar - * @param {boolean} animation 是否需要动画效果 - */ -function hideTabBar$1(animation) { - visible = false; - tabBar && - tabBar.hideTabBar({ - animation, - }); -} -/** - * 显示 tabBar - * @param {boolean} animation 是否需要动画效果 - */ -function showTabBar$1(animation) { - visible = true; - tabBar && - tabBar.showTabBar({ - animation, - }); -} -const maskClickCallback = []; -var tabBarInstance = { - id: '0', - init(options, clickCallback) { - if (options && options.list.length) { - config = options; - } - try { - tabBar = weex.requireModule('uni-tabview'); - } - catch (error) { - console.log(`uni.requireNativePlugin("uni-tabview") error ${error}`); - } - tabBar.onMaskClick(() => { - maskClickCallback.forEach((callback) => { - callback(); - }); - }); - tabBar && - tabBar.onClick(({ index }) => { - clickCallback(config.list[index], index); - }); - tabBar && - tabBar.onMidButtonClick(() => { - return UniServiceJSBridge.invokeOnCallback(API_ON_TAB_BAR_MID_BUTTON_TAP); - }); - // TODO useTabBarThemeChange(tabBar, options) - }, - indexOf(page) { - const config = this.config; - const itemLength = config && config.list && config.list.length; - if (itemLength) { - for (let i = 0; i < itemLength; i++) { - if (config.list[i].pagePath === page || - config.list[i].pagePath === `${page}.html`) { - return i; - } - } - } - return -1; - }, - switchTab(page) { - const index = this.indexOf(page); - if (index >= 0) { - tabBar && - tabBar.switchSelect({ - index, - }); - return true; - } - return false; - }, - setTabBarBadge: setTabBarBadge$1, - setTabBarItem: setTabBarItem$1, - setTabBarStyle: setTabBarStyle$1, - hideTabBar: hideTabBar$1, - showTabBar: showTabBar$1, - append(webview) { - tabBar && - tabBar.append({ - id: webview.id, - }, ({ code }) => { - if (code !== 0) { - setTimeout(() => { - this.append(webview); - }, 20); - } - }); - }, - get config() { - return config || __uniConfig.tabBar; - }, - get visible() { - return visible; - }, - get height() { - const config = this.config; - return ((config && config.height ? parseFloat(config.height) : TABBAR_HEIGHT) + - plus.navigator.getSafeAreaInsets().deviceBottom); - }, - // tabBar是否遮挡内容区域 - get cover() { - const config = this.config; - const array = ['extralight', 'light', 'dark']; - return config && array.indexOf(config.blurEffect) >= 0; - }, - setStyle({ mask }) { - tabBar.setMask({ - color: mask, - }); - }, - addEventListener(_name, callback) { - maskClickCallback.push(callback); - }, - removeEventListener(_name, callback) { - const callbackIndex = maskClickCallback.indexOf(callback); - maskClickCallback.splice(callbackIndex, 1); - }, -}; - -function isTabBarPage(path = '') { - if (!(__uniConfig.tabBar && isArray(__uniConfig.tabBar.list))) { - return false; - } - try { - if (!path) { - const pages = getCurrentPages(); - if (!pages.length) { - return false; - } - const page = pages[pages.length - 1]; - if (!page) { - return false; - } - return page.$page.meta.isTabBar; - } - if (!/^\//.test(path)) { - path = addLeadingSlash(path); - } - const route = getRouteOptions(path); - return route && route.meta.isTabBar; - } - catch (e) { - if (('production' !== 'production')) { - console.error(formatLog('isTabBarPage', e)); - } - } - return false; -} - -const setTabBarBadge = defineAsyncApi(API_SET_TAB_BAR_BADGE, ({ index, text }, { resolve, reject }) => { - tabBarInstance.setTabBarBadge('text', index, text); - resolve(); -}, SetTabBarBadgeProtocol, SetTabBarBadgeOptions); -const setTabBarItem = defineAsyncApi(API_SET_TAB_BAR_ITEM, ({ index, text, iconPath, selectedIconPath, pagePath, visible, iconfont }, { resolve }) => { - tabBarInstance.setTabBarItem(index, text, iconPath, selectedIconPath, visible, iconfont); - if (pagePath) { - const tabBarItem = __uniConfig.tabBar.list[index]; - if (tabBarItem) { - const oldPagePath = tabBarItem.pagePath; - const newPagePath = removeLeadingSlash(pagePath); - if (newPagePath !== oldPagePath) { - normalizeTabBarRoute(index, oldPagePath, newPagePath); - } - } - } - resolve(); -}, SetTabBarItemProtocol, SetTabBarItemOptions); -const setTabBarStyle = defineAsyncApi(API_SET_TAB_BAR_STYLE, (style = {}, { resolve, reject }) => { - if (!isTabBarPage()) { - return reject('not TabBar page'); - } - style.borderStyle = normalizeTabBarStyles(style.borderStyle); - tabBarInstance.setTabBarStyle(style); - resolve(); -}, SetTabBarStyleProtocol, SetTabBarStyleOptions); -const hideTabBar = defineAsyncApi(API_HIDE_TAB_BAR, (args, { resolve, reject }) => { - const animation = args && args.animation; - if (!isTabBarPage()) { - return reject('not TabBar page'); - } - tabBarInstance.hideTabBar(Boolean(animation)); - resolve(); -}, HideTabBarProtocol); -const showTabBar = defineAsyncApi(API_SHOW_TAB_BAR, (args, { resolve, reject }) => { - const animation = args && args.animation; - if (!isTabBarPage()) { - return reject('not TabBar page'); - } - tabBarInstance.showTabBar(Boolean(animation)); - resolve(); -}, ShowTabBarProtocol); -const showTabBarRedDot = defineAsyncApi(API_SHOW_TAB_BAR_RED_DOT, ({ index }, { resolve, reject }) => { - tabBarInstance.setTabBarBadge('redDot', index); - resolve(); -}, ShowTabBarRedDotProtocol, ShowTabBarRedDotOptions); -const setTabBarBadgeNone = (index) => tabBarInstance.setTabBarBadge('none', index); -const removeTabBarBadge = defineAsyncApi(API_REMOVE_TAB_BAR_BADGE, ({ index }, { resolve, reject }) => { - setTabBarBadgeNone(index); - resolve(); -}, RemoveTabBarBadgeProtocol, RemoveTabBarBadgeOptions); -const hideTabBarRedDot = defineAsyncApi(API_HIDE_TAB_BAR_RED_DOT, ({ index }, { resolve, reject }) => { - setTabBarBadgeNone(index); - resolve(); -}, HideTabBarRedDotProtocol, HideTabBarRedDotOptions); - -const loadFontFace = defineAsyncApi(API_LOAD_FONT_FACE, (options, { resolve, reject }) => { - const pageId = getPageIdByVm(getCurrentPageVm()); - UniServiceJSBridge.invokeViewMethod(API_LOAD_FONT_FACE, options, pageId, (err) => { - if (typeof err === 'string') { - reject(err); - } - else { - resolve(); - } - }); -}, LoadFontFaceProtocol); - -function getCurrentWebview() { - const page = getCurrentPage(); - if (page) { - return page.$getAppWebview(); - } - return null; -} -function getWebview(page) { - if (page) { - return page.$getAppWebview(); - } - return getCurrentWebview(); -} - -const setNavigationBarTitle = defineAsyncApi(API_SET_NAVIGATION_BAR_TITLE, ({ __page__, title }, { resolve, reject }) => { - const webview = getWebview(__page__); - if (webview) { - const style = webview.getStyle(); - if (style && style.titleNView) { - webview.setStyle({ - titleNView: { - titleText: title, - }, - }); - } - resolve(); - } - else { - reject(); - } -}, SetNavigationBarTitleProtocol); -const showNavigationBarLoading = defineAsyncApi(API_SHOW_NAVIGATION_BAR_LOADING, (args, { resolve, reject }) => { - let webview = null; - if (args) - webview = getWebview(args.__page__); - if (webview) { - const style = webview.getStyle(); - if (style && style.titleNView) { - webview.setStyle({ - titleNView: { - // @ts-expect-error - loading: true, - }, - }); - } - resolve(); - } - else { - reject(); - } -}); -const hideNavigationBarLoading = defineAsyncApi(API_HIDE_NAVIGATION_BAR_LOADING, (args, { resolve, reject }) => { - let webview = null; - if (args) - webview = getWebview(args.__page__); - if (webview) { - const style = webview.getStyle(); - if (style && style.titleNView) { - webview.setStyle({ - titleNView: { - // @ts-expect-error - loading: false, - }, - }); - } - resolve(); - } - else { - reject(); - } -}); -function setPageStatusBarStyle(statusBarStyle) { - const pages = getCurrentPages(); - if (!pages.length) { - return; - } - // 框架内部页面跳转会从这里获取style配置 - pages[pages.length - 1].$page.statusBarStyle = statusBarStyle; -} -const setNavigationBarColor = defineAsyncApi(API_SET_NAVIGATION_BAR_COLOR, ({ __page__, frontColor, backgroundColor }, { resolve, reject }) => { - const webview = getWebview(__page__); - if (webview) { - const styles = {}; - if (frontColor) { - styles.titleColor = frontColor; - } - if (backgroundColor) { - styles.backgroundColor = backgroundColor; - } - const statusBarStyle = frontColor === '#000000' ? 'dark' : 'light'; - plus.navigator.setStatusBarStyle(statusBarStyle); - // 用户调用api时同时改变当前页配置,这样在系统调用设置时,可以避免覆盖用户设置 - setPageStatusBarStyle(statusBarStyle); - const style = webview.getStyle(); - if (style && style.titleNView) { - if (style.titleNView.autoBackButton) { - styles.backButton = styles.backButton || {}; - styles.backButton.color = frontColor; - } - webview.setStyle({ - titleNView: styles, - }); - } - resolve(); - } - else { - reject(); - } -}, SetNavigationBarColorProtocol, SetNavigationBarColorOptions); - -function onKeyboardHeightChangeCallback(res) { - UniServiceJSBridge.invokeOnCallback(ON_KEYBOARD_HEIGHT_CHANGE, res); -} -const onKeyboardHeightChange = defineOnApi(ON_KEYBOARD_HEIGHT_CHANGE, () => { - UniServiceJSBridge.on(ON_KEYBOARD_HEIGHT_CHANGE, onKeyboardHeightChangeCallback); -}); -const offKeyboardHeightChange = defineOffApi(ON_KEYBOARD_HEIGHT_CHANGE, () => { - UniServiceJSBridge.off(ON_KEYBOARD_HEIGHT_CHANGE, onKeyboardHeightChangeCallback); -}); - -const canIUse = defineSyncApi(API_CAN_I_USE, (schema) => { - if (hasOwn$1(uni, schema)) { - return true; - } - return false; -}, CanIUseProtocol); - -const VD_SYNC = 'vdSync'; -const ON_WEBVIEW_READY = 'onWebviewReady'; -const ACTION_TYPE_DICT = 0; -const WEBVIEW_INSERTED = 'webviewInserted'; -const WEBVIEW_REMOVED = 'webviewRemoved'; - -function initNVue(webviewStyle, routeMeta, path) { - if (path && routeMeta.isNVue) { - webviewStyle.uniNView = { - path, - defaultFontSize: __uniConfig.defaultFontSize, - viewport: __uniConfig.viewport, - }; - } -} - -const colorRE = /^#[a-z0-9]{6}$/i; -function isColor(color) { - return color && (colorRE.test(color) || color === 'transparent'); -} - -function initBackgroundColor(webviewStyle, routeMeta) { - let { backgroundColor } = routeMeta; - if (!backgroundColor) { - return; - } - if (!isColor(backgroundColor)) { - return; - } - if (!webviewStyle.background) { - webviewStyle.background = backgroundColor; - } - else { - backgroundColor = webviewStyle.background; - } - if (!webviewStyle.backgroundColorTop) { - webviewStyle.backgroundColorTop = backgroundColor; - } - if (!webviewStyle.backgroundColorBottom) { - webviewStyle.backgroundColorBottom = backgroundColor; - } - if (!webviewStyle.animationAlphaBGColor) { - webviewStyle.animationAlphaBGColor = backgroundColor; - } - if (typeof webviewStyle.webviewBGTransparent === 'undefined') { - webviewStyle.webviewBGTransparent = true; - } -} - -function initPopGesture(webviewStyle, routeMeta) { - // 不支持 hide - if (webviewStyle.popGesture === 'hide') { - delete webviewStyle.popGesture; - } - // 似乎没用了吧?记得是之前流应用时,需要 appback 的逻辑 - if (routeMeta.isQuit) { - webviewStyle.popGesture = ('none'); - } -} - -function initPullToRefresh(webviewStyle, routeMeta) { - if (!routeMeta.enablePullDownRefresh) { - return; - } - const pullToRefresh = normalizePullToRefreshRpx(extend({}, defaultPullToRefresh, routeMeta.pullToRefresh)); - webviewStyle.pullToRefresh = initWebviewPullToRefreshI18n(pullToRefresh, routeMeta); -} -function initWebviewPullToRefreshI18n(pullToRefresh, routeMeta) { - const i18nResult = initPullToRefreshI18n(pullToRefresh); - if (!i18nResult) { - return pullToRefresh; - } - const [contentdownI18n, contentoverI18n, contentrefreshI18n] = i18nResult; - if (contentdownI18n || contentoverI18n || contentrefreshI18n) { - uni.onLocaleChange(() => { - const webview = plus.webview.getWebviewById(routeMeta.id + ''); - if (!webview) { - return; - } - const newPullToRefresh = { - support: true, - }; - if (contentdownI18n) { - newPullToRefresh.contentdown = { - caption: pullToRefresh.contentdown.caption, - }; - } - if (contentoverI18n) { - newPullToRefresh.contentover = { - caption: pullToRefresh.contentover.caption, - }; - } - if (contentrefreshI18n) { - newPullToRefresh.contentrefresh = { - caption: pullToRefresh.contentrefresh.caption, - }; - } - if (('production' !== 'production')) { - console.log(formatLog('updateWebview', webview.id, newPullToRefresh)); - } - webview.setStyle({ - pullToRefresh: newPullToRefresh, - }); - }); - } - return pullToRefresh; -} -const defaultPullToRefresh = { - support: true, - style: 'default', - height: '50px', - range: '200px', - contentdown: { - caption: '', - }, - contentover: { - caption: '', - }, - contentrefresh: { - caption: '', - }, -}; - -function initTitleNView(webviewStyle, routeMeta) { - const { navigationBar } = routeMeta; - if (navigationBar.style === 'custom') { - return false; - } - let autoBackButton = true; - if (routeMeta.isQuit) { - autoBackButton = false; - } - const titleNView = { - autoBackButton, - }; - Object.keys(navigationBar).forEach((name) => { - const value = navigationBar[name]; - if (name === 'titleImage' && value) { - titleNView.tags = createTitleImageTags(value); - } - else if (name === 'buttons' && isArray(value)) { - titleNView.buttons = value.map((button, index) => { - button.onclick = createTitleNViewBtnClick(index); - return button; - }); - } - else { - titleNView[name] = - value; - } - }); - webviewStyle.titleNView = initTitleNViewI18n(titleNView, routeMeta); -} -function initTitleNViewI18n(titleNView, routeMeta) { - const i18nResult = initNavigationBarI18n(titleNView); - if (!i18nResult) { - return titleNView; - } - const [titleTextI18n, searchInputPlaceholderI18n] = i18nResult; - if (titleTextI18n || searchInputPlaceholderI18n) { - uni.onLocaleChange(() => { - const webview = plus.webview.getWebviewById(routeMeta.id + ''); - if (!webview) { - return; - } - const newTitleNView = {}; - if (titleTextI18n) { - newTitleNView.titleText = titleNView.titleText; - } - if (searchInputPlaceholderI18n) { - newTitleNView.searchInput = { - placeholder: titleNView.searchInput.placeholder, - }; - } - if (('production' !== 'production')) { - console.log(formatLog('updateWebview', webview.id, newTitleNView)); - } - webview.setStyle({ - titleNView: newTitleNView, - }); - }); - } - return titleNView; -} -function createTitleImageTags(titleImage) { - return [ - { - tag: 'img', - src: titleImage, - position: { - left: 'auto', - top: 'auto', - width: 'auto', - height: '26px', - }, - }, - ]; -} -function createTitleNViewBtnClick(index) { - return function onClick(btn) { - btn.index = index; - invokeHook(ON_NAVIGATION_BAR_BUTTON_TAP, btn); - }; -} - -function parseWebviewStyle(path, routeMeta, webview) { - const webviewStyle = { - bounce: 'vertical', - }; - Object.keys(routeMeta).forEach((name) => { - if (WEBVIEW_STYLE_BLACKLIST.indexOf(name) === -1) { - webviewStyle[name] = - routeMeta[name]; - } - }); - if (webview.id !== '1') { - // 首页 nvue 已经在 manifest.json 中设置了 uniNView,不能再次设置,否则会二次加载 - initNVue(webviewStyle, routeMeta, path); - } - initPopGesture(webviewStyle, routeMeta); - initBackgroundColor(webviewStyle, routeMeta); - initTitleNView(webviewStyle, routeMeta); - initPullToRefresh(webviewStyle, routeMeta); - return webviewStyle; -} -const WEBVIEW_STYLE_BLACKLIST = [ - 'id', - 'route', - 'isNVue', - 'isQuit', - 'isEntry', - 'isTabBar', - 'tabBarIndex', - 'windowTop', - 'topWindow', - 'leftWindow', - 'rightWindow', - 'maxWidth', - 'usingComponents', - 'disableScroll', - 'enablePullDownRefresh', - 'navigationBar', - 'pullToRefresh', - 'onReachBottomDistance', - 'pageOrientation', - 'backgroundColor', -]; - -let id = 2; -function getWebviewId() { - return id; -} -function genWebviewId() { - return id++; -} -function encode(val) { - return val; -} -function initUniPageUrl(path, query) { - const queryString = query ? stringifyQuery(query, encode) : ''; - return { - path: path.slice(1), - query: queryString ? queryString.slice(1) : queryString, - }; -} -function initDebugRefresh(isTab, path, query) { - const queryString = query ? stringifyQuery(query, encode) : ''; - return { - isTab, - arguments: JSON.stringify({ - path: path.slice(1), - query: queryString ? queryString.slice(1) : queryString, - }), - }; -} - -const downgrade = 'HarmonyOS' === 'Android'; -const ANI_SHOW = 'pop-in'; -const ANI_DURATION = 300; -const ANI_CLOSE = downgrade ? 'slide-out-right' : 'pop-out'; -const VIEW_WEBVIEW_PATH = '_www/__uniappview.html'; - -let preloadWebview; -function setPreloadWebview(webview) { - return (preloadWebview = webview); -} -function getPreloadWebview() { - return preloadWebview; -} -function createPreloadWebview() { - if (!preloadWebview || preloadWebview.__uniapp_route) { - // 不存在,或已被使用 - preloadWebview = plus.webview.create(VIEW_WEBVIEW_PATH, String(genWebviewId()), - // @ts-expect-error - { contentAdjust: false }); - if (('production' !== 'production')) { - console.log(formatLog('createPreloadWebview', preloadWebview.id)); - } - } - return preloadWebview; -} - -/** - * 是否处于直达页面 - * @param page - * @returns - */ -function isDirectPage(page) { - return (__uniConfig.realEntryPagePath && - getPage$BasePage(page).route === - __uniConfig.entryPagePath); -} -/** - * 重新启动到首页 - */ -function reLaunchEntryPage() { - __uniConfig.entryPagePath = __uniConfig.realEntryPagePath; - delete __uniConfig.realEntryPagePath; - uni.reLaunch({ - url: addLeadingSlash(__uniConfig.entryPagePath), - }); -} - -function onWebviewResize(webview) { - const { emit } = UniServiceJSBridge; - const onResize = function ({ width, height, }) { - const landscape = Math.abs(plus.navigator.getOrientation()) === 90; - const res = { - deviceOrientation: landscape ? 'landscape' : 'portrait', - size: { - windowWidth: Math.ceil(width), - windowHeight: Math.ceil(height), - }, - }; - emit(ON_RESIZE, res, parseInt(webview.id)); // Page lifecycle - }; - webview.addEventListener('resize', debounce(onResize, 50, { setTimeout, clearTimeout })); -} - -function onWebviewReady(pageId, callback) { - UniServiceJSBridge.once(ON_WEBVIEW_READY + '.' + pageId, callback); -} - -function closeWebview$1(webview, animationType, animationDuration) { - webview[webview.__preload__ ? 'hide' : 'close'](animationType, animationDuration); -} -function showWebview(webview, animationType, animationDuration, showCallback, delay) { - if (typeof delay === 'undefined') { - delay = webview.nvue ? 0 : 100; - } - if (('production' !== 'production')) { - console.log(formatLog('showWebview', 'delay', delay)); - } - const execShowCallback = function () { - if (execShowCallback._called) { - if (('production' !== 'production')) { - console.log(formatLog('execShowCallback', 'prevent')); - } - return; - } - execShowCallback._called = true; - showCallback && showCallback(); - navigateFinish(); - }; - execShowCallback._called = false; - setTimeout(() => { - const timer = setTimeout(() => { - if (('production' !== 'production')) { - console.log(formatLog('showWebview', 'callback', 'timer')); - } - execShowCallback(); - }, animationDuration + 150); - webview.show(animationType, animationDuration, () => { - if (('production' !== 'production')) { - console.log(formatLog('showWebview', 'callback')); - } - if (!execShowCallback._called) { - clearTimeout(timer); - } - execShowCallback(); - }); - }, delay); -} - -let pendingNavigator = false; -function getPendingNavigator() { - return pendingNavigator; -} -function setPendingNavigator(path, callback, msg) { - pendingNavigator = { - path, - nvue: getRouteMeta(path).isNVue, - callback, - }; - if (('production' !== 'production')) { - console.log(formatLog('setPendingNavigator', path, msg)); - } -} -function closePage(page, animationType, animationDuration) { - removePage(page); - closeWebview$1(page.$getAppWebview(), animationType, animationDuration); -} -function pendingNavigate() { - if (!pendingNavigator) { - return; - } - const { callback } = pendingNavigator; - if (('production' !== 'production')) { - console.log(formatLog('pendingNavigate', pendingNavigator.path)); - } - pendingNavigator = false; - return callback(); -} -function navigateFinish() { - if (__uniConfig.renderer === 'native') { - if (!pendingNavigator) { - return; - } - if (pendingNavigator.nvue) { - return pendingNavigate(); - } - return; - } - // 创建预加载 - const preloadWebview = createPreloadWebview(); - if (('production' !== 'production')) { - console.log(formatLog('navigateFinish', 'preloadWebview', preloadWebview.id)); - } - if (!pendingNavigator) { - return; - } - if (pendingNavigator.nvue) { - return pendingNavigate(); - } - preloadWebview.loaded - ? pendingNavigator.callback() - : onWebviewReady(preloadWebview.id, pendingNavigate); -} - -function navigate(path, callback, isAppLaunch) { - const pendingNavigator = getPendingNavigator(); - if (!isAppLaunch && pendingNavigator) { - return console.error(`Waiting to navigate to: ${pendingNavigator.path}, do not operate continuously: ${path}.`); - } - // 未创建 preloadWebview 或 preloadWebview 已被使用 - const preloadWebview = getPreloadWebview(); - const waitPreloadWebview = !preloadWebview || (preloadWebview && preloadWebview.__uniapp_route); - // 已创建未 loaded - const waitPreloadWebviewReady = preloadWebview && !preloadWebview.loaded; - if (waitPreloadWebview || waitPreloadWebviewReady) { - setPendingNavigator(path, callback, waitPreloadWebview ? 'waitForCreate' : 'waitForReady'); - } - else { - callback(); - } - if (waitPreloadWebviewReady) { - onWebviewReady(preloadWebview.id, pendingNavigate); - } -} - -class UniPageNode extends UniNode { - constructor(pageId, options, setup = false) { - super(NODE_TYPE_PAGE, '#page', null); - this._id = 1; - this._created = false; - this._updating = false; - this._createActionMap = new Map(); - this.updateActions = []; - this.dicts = []; - this.nodeId = 0; - this.pageId = pageId; - this.pageNode = this; - this.options = options; - this.isUnmounted = false; - this.createAction = [ACTION_TYPE_PAGE_CREATE, options]; - this.createdAction = [ACTION_TYPE_PAGE_CREATED]; - this.normalizeDict = this._normalizeDict.bind(this); - this._update = this.update.bind(this); - setup && this.setup(); - } - _normalizeDict(value, normalizeValue = true) { - if (!isPlainObject(value)) { - return this.addDict(value); - } - const dictArray = []; - Object.keys(value).forEach((n) => { - const dict = [this.addDict(n)]; - const v = value[n]; - if (normalizeValue) { - dict.push(this.addDict(v)); - } - else { - dict.push(v); - } - dictArray.push(dict); - }); - return dictArray; - } - addDict(value) { - const { dicts } = this; - const index = dicts.indexOf(value); - if (index > -1) { - return index; - } - return dicts.push(value) - 1; - } - onInjectHook(hook) { - if ((hook === ON_PAGE_SCROLL || hook === ON_REACH_BOTTOM) && - !this.scrollAction) { - this.scrollAction = [ - ACTION_TYPE_PAGE_SCROLL, - this.options.onReachBottomDistance, - ]; - this.push(this.scrollAction); - } - } - onCreate(thisNode, nodeName) { - pushCreateAction(this, thisNode.nodeId, nodeName); - return thisNode; - } - onInsertBefore(thisNode, newChild, refChild) { - pushInsertAction(this, newChild, thisNode.nodeId, (refChild && refChild.nodeId) || -1); - return newChild; - } - onRemoveChild(oldChild) { - pushRemoveAction(this, oldChild.nodeId); - return oldChild; - } - onAddEvent(thisNode, name, flag) { - if (thisNode.parentNode) { - pushAddEventAction(this, thisNode.nodeId, name, flag); - } - } - onAddWxsEvent(thisNode, name, wxsEvent, flag) { - if (thisNode.parentNode) { - pushAddWxsEventAction(this, thisNode.nodeId, name, wxsEvent, flag); - } - } - onRemoveEvent(thisNode, name) { - if (thisNode.parentNode) { - pushRemoveEventAction(this, thisNode.nodeId, name); - } - } - onSetAttribute(thisNode, qualifiedName, value) { - if (thisNode.parentNode) { - pushSetAttributeAction(this, thisNode.nodeId, qualifiedName, value); - } - } - onRemoveAttribute(thisNode, qualifiedName) { - if (thisNode.parentNode) { - pushRemoveAttributeAction(this, thisNode.nodeId, qualifiedName); - } - } - onTextContent(thisNode, text) { - if (thisNode.parentNode) { - pushSetTextAction(this, thisNode.nodeId, text); - } - } - onNodeValue(thisNode, val) { - if (thisNode.parentNode) { - pushSetTextAction(this, thisNode.nodeId, val); - } - } - genId() { - return this._id++; - } - push(action, extras) { - if (this.isUnmounted) { - if (('production' !== 'production')) { - console.log(formatLog('PageNode', 'push.prevent', action)); - } - return; - } - switch (action[0]) { - case ACTION_TYPE_CREATE: - this._createActionMap.set(action[1], action); - break; - case ACTION_TYPE_INSERT: - const createAction = this._createActionMap.get(action[1]); - if (createAction) { - createAction[3] = action[2]; // parentNodeId - createAction[4] = action[3]; // anchorId - if (extras) { - createAction[5] = extras; - } - } - else { - // 部分手机上,create 和 insert 可能不在同一批次,被分批发送 - if (extras) { - action[4] = extras; - } - this.updateActions.push(action); - // if (('production' !== 'production')) { - // console.error(formatLog(`Insert`, action, 'not found createAction')) - // } - } - break; - } - // insert 被合并进 create - if (action[0] !== ACTION_TYPE_INSERT) { - this.updateActions.push(action); - } - if (!this._updating) { - this._updating = true; - queuePostFlushCb(this._update); - } - } - restore() { - this.clear(); - // createAction 需要单独发送,因为 view 层需要现根据 create 来设置 page 的 ready - this.setup(); - if (this.scrollAction) { - this.push(this.scrollAction); - } - const restoreNode = (node) => { - this.onCreate(node, node.nodeName); - this.onInsertBefore(node.parentNode, node, null); - node.childNodes.forEach((childNode) => { - restoreNode(childNode); - }); - }; - this.childNodes.forEach((childNode) => restoreNode(childNode)); - this.push(this.createdAction); - } - setup() { - this.send([this.createAction]); - } - update() { - const { dicts, updateActions, _createActionMap } = this; - if (('production' !== 'production')) { - console.log(formatLog('PageNode', 'update', updateActions.length, _createActionMap.size)); - } - // 首次 - if (!this._created) { - this._created = true; - updateActions.push(this.createdAction); - } - if (updateActions.length) { - if (dicts.length) { - updateActions.unshift([ACTION_TYPE_DICT, dicts]); - } - this.send(updateActions); - } - this.clear(); - } - clear() { - this.dicts.length = 0; - this.updateActions.length = 0; - this._updating = false; - this._createActionMap.clear(); - } - send(action) { - UniServiceJSBridge.publishHandler(VD_SYNC, action, this.pageId); - } - fireEvent(id, evt) { - const node = findNodeById(id, this); - if (node) { - node.dispatchEvent(evt); - } - else if (('production' !== 'production')) { - console.error(formatLog('PageNode', 'fireEvent', id, 'not found', evt)); - } - } -} -function getPageNode(pageId) { - const page = getPageById(pageId); - if (!page) - return null; - return page.__page_container__; -} -function findNode(name, value, uniNode) { - if (typeof uniNode === 'number') { - uniNode = getPageNode(uniNode); - } - if (uniNode[name] === value) { - return uniNode; - } - const { childNodes } = uniNode; - for (let i = 0; i < childNodes.length; i++) { - const uniNode = findNode(name, value, childNodes[i]); - if (uniNode) { - return uniNode; - } - } - return null; -} -function findNodeById(nodeId, uniNode) { - return findNode('nodeId', nodeId, uniNode); -} -function findNodeByTagName(tagName, uniNode) { - return findNode('nodeName', tagName.toUpperCase(), uniNode); -} -function pushCreateAction(pageNode, nodeId, nodeName) { - pageNode.push([ - ACTION_TYPE_CREATE, - nodeId, - pageNode.addDict(nodeName), - -1, - -1, - ]); -} -function pushInsertAction(pageNode, newChild, parentNodeId, refChildId) { - const nodeJson = newChild.toJSON({ - attr: true, - normalize: pageNode.normalizeDict, - }); - pageNode.push([ACTION_TYPE_INSERT, newChild.nodeId, parentNodeId, refChildId], Object.keys(nodeJson).length ? nodeJson : undefined); -} -function pushRemoveAction(pageNode, nodeId) { - pageNode.push([ACTION_TYPE_REMOVE, nodeId]); -} -function pushAddEventAction(pageNode, nodeId, name, value) { - pageNode.push([ACTION_TYPE_ADD_EVENT, nodeId, pageNode.addDict(name), value]); -} -function pushAddWxsEventAction(pageNode, nodeId, name, wxsEvent, value) { - pageNode.push([ - ACTION_TYPE_ADD_WXS_EVENT, - nodeId, - pageNode.addDict(name), - pageNode.addDict(wxsEvent), - value, - ]); -} -function pushRemoveEventAction(pageNode, nodeId, name) { - pageNode.push([ACTION_TYPE_REMOVE_EVENT, nodeId, pageNode.addDict(name)]); -} -function normalizeAttrValue(pageNode, name, value) { - return name === 'style' && isPlainObject(value) - ? pageNode.normalizeDict(value) - : pageNode.addDict(value); -} -function pushSetAttributeAction(pageNode, nodeId, name, value) { - pageNode.push([ - ACTION_TYPE_SET_ATTRIBUTE, - nodeId, - pageNode.addDict(name), - normalizeAttrValue(pageNode, name, value), - ]); -} -function pushRemoveAttributeAction(pageNode, nodeId, name) { - pageNode.push([ACTION_TYPE_REMOVE_ATTRIBUTE, nodeId, pageNode.addDict(name)]); -} -function pushSetTextAction(pageNode, nodeId, text) { - pageNode.push([ACTION_TYPE_SET_TEXT, nodeId, pageNode.addDict(text)]); -} -function createPageNode(pageId, pageOptions, setup) { - return new UniPageNode(pageId, pageOptions, setup); -} - -function setupPage(component) { - const oldSetup = component.setup; - component.inheritAttrs = false; // 禁止继承 __pageId 等属性,避免告警 - component.setup = (props, ctx) => { - const { attrs: { __pageId, __pagePath, /*__pageQuery,*/ __pageInstance }, } = ctx; - if (('production' !== 'production')) { - console.log(formatLog(__pagePath, 'setup')); - } - const instance = getCurrentInstance(); - instance.$dialogPages = []; - const pageVm = instance.proxy; - initPageVm(pageVm, __pageInstance); - if (getPage$BasePage(pageVm).openType !== 'openDialogPage') { - addCurrentPage(initScope(__pageId, pageVm, __pageInstance)); - } - { - onMounted(() => { - nextTick(() => { - // onShow被延迟,故onReady也同时延迟 - invokeHook(pageVm, ON_READY); - }); - // TODO preloadSubPackages - }); - onBeforeUnmount(() => { - invokeHook(pageVm, ON_UNLOAD); - }); - } - if (oldSetup) { - return oldSetup(props, ctx); - } - }; - return component; -} -function initScope(pageId, vm, pageInstance) { - { - const $getAppWebview = () => { - return plus.webview.getWebviewById(pageId + ''); - }; - vm.$getAppWebview = $getAppWebview; - vm.$.ctx.$scope = { - $getAppWebview, - }; - } - vm.getOpenerEventChannel = () => { - if (!pageInstance.eventChannel) { - pageInstance.eventChannel = new EventChannel(pageId); - } - return pageInstance.eventChannel; - }; - return vm; -} - -function isVuePageAsyncComponent(component) { - return isFunction(component); -} -const pagesMap = new Map(); -function definePage(pagePath, asyncComponent) { - pagesMap.set(pagePath, once(createFactory(asyncComponent))); -} -function createVuePage(__pageId, __pagePath, __pageQuery, __pageInstance, pageOptions) { - const pageNode = createPageNode(__pageId, pageOptions, true); - const app = getVueApp(); - const component = pagesMap.get(__pagePath)(); - const mountPage = (component) => app.mountPage(component, extend({ - __pageId, - __pagePath, - __pageQuery, - __pageInstance, - }, __pageQuery), pageNode); - if (isPromise(component)) { - return component.then((component) => mountPage(component)); - } - return mountPage(component); -} -function createFactory(component) { - return () => { - if (isVuePageAsyncComponent(component)) { - return component().then((component) => setupPage(component)); - } - return setupPage(component); - }; -} - -function initRouteOptions(path, openType) { - // 需要序列化一遍 - const routeOptions = JSON.parse(JSON.stringify(getRouteOptions(path))); - routeOptions.meta = initRouteMeta(routeOptions.meta); - if (openType !== 'preloadPage' && - !__uniConfig.realEntryPagePath && - (openType === 'reLaunch' || getCurrentPages().length === 0) // redirectTo - ) { - routeOptions.meta.isQuit = true; - } - else if (!routeOptions.meta.isTabBar) { - routeOptions.meta.isQuit = false; - } - // TODO - // if (routeOptions.meta.isTabBar) { - // routeOptions.meta.visible = true - // } - return routeOptions; -} - -function initWebviewStyle(webview, path, query, routeMeta) { - // TODO parseTheme - const getWebviewStyle = () => parseWebviewStyle(path, routeMeta, webview); - const webviewStyle = getWebviewStyle(); - webviewStyle.uniPageUrl = initUniPageUrl(path, query); - const isTabBar = !!routeMeta.isTabBar; - webviewStyle.debugRefresh = initDebugRefresh(isTabBar, path, query); - webviewStyle.locale = weex.requireModule('plus').getLanguage(); - if (('production' !== 'production')) { - console.log(formatLog('updateWebview', webviewStyle)); - } - // TODO useWebviewThemeChange - webview.setStyle(webviewStyle); -} - -const WEBVIEW_LISTENERS = { - pullToRefresh: ON_PULL_DOWN_REFRESH, -}; -function initWebviewEvent(webview) { - const id = parseInt(webview.id); - Object.keys(WEBVIEW_LISTENERS).forEach((name) => { - const hook = WEBVIEW_LISTENERS[name]; - webview.addEventListener(name, (e) => { - invokeHook(id, hook, e); - }); - }); - // TODO onWebviewClose - onWebviewResize(webview); -} - -function initWebview(webview, path, query, routeMeta) { - initWebviewStyle(webview, path, query, routeMeta); - initWebviewEvent(webview); -} - -function createWebview(options) { - if (getWebviewId() === 2) { - return plus.webview.getLaunchWebview(); - } - return getPreloadWebview(); -} - -function getStatusbarHeight() { - // 使用安全区高度,以适配小窗模式 - return plus.navigator.getSafeAreaInsets().top; -} -let lastStatusBarStyle; -function setStatusBarStyle(statusBarStyle) { - if (!statusBarStyle) { - const page = getCurrentPage(); - if (!page) { - return; - } - statusBarStyle = page.$page.statusBarStyle; - if (!statusBarStyle || statusBarStyle === lastStatusBarStyle) { - return; - } - } - if (statusBarStyle === lastStatusBarStyle) { - return; - } - if (('production' !== 'production')) { - console.log(formatLog('setStatusBarStyle', statusBarStyle)); - } - lastStatusBarStyle = statusBarStyle; - plus.navigator.setStatusBarStyle(statusBarStyle); -} - -function registerPage({ url, path, query, openType, webview, nvuePageVm, eventChannel, }) { - // TODO initEntry() - // TODO preloadWebviews[url] - const routeOptions = initRouteOptions(path, openType); - if (!webview) { - webview = createWebview(); - } - else { - webview = plus.webview.getWebviewById(webview.id); - webview.nvue = routeOptions.meta.isNVue; - } - routeOptions.meta.id = parseInt(webview.id); - const isTabBar = !!routeOptions.meta.isTabBar; - if (isTabBar) { - tabBarInstance.append(webview); - } - if (('production' !== 'production')) { - console.log(formatLog('registerPage', path, webview.id)); - } - initWebview(webview, path, query, routeOptions.meta); - const route = path.slice(1); - webview.__uniapp_route = route; - const pageInstance = initPageInternalInstance(openType, url, query, routeOptions.meta, eventChannel, - // TODO theme - 'light'); - const id = parseInt(webview.id); - createVuePage(id, route, query, pageInstance, initPageOptions(routeOptions)); - return webview; -} -function initPageOptions({ meta }) { - const statusbarHeight = getStatusbarHeight(); - const { platform, pixelRatio, windowWidth } = getBaseSystemInfo(); - return { - css: true, - route: meta.route, - version: 1, - locale: '', - platform, - pixelRatio, - windowWidth, - disableScroll: meta.disableScroll === true, - onPageScroll: false, - onPageReachBottom: false, - onReachBottomDistance: hasOwn$1(meta, 'onReachBottomDistance') - ? meta.onReachBottomDistance - : ON_REACH_BOTTOM_DISTANCE, - statusbarHeight, - // TODO meta.navigationBar.type === 'float' - windowTop: 0, - // TODO tabBar.cover - windowBottom: 0, - nvueFlexDirection: meta.isNVueStyle && __uniConfig.nvue - ? __uniConfig.nvue['flex-direction'] - : undefined, - }; -} - -let isInitEntryPage = false; -function initEntry() { - if (isInitEntryPage) { - return; - } - isInitEntryPage = true; - let entryPagePath; - let entryPageQuery; - const weexPlus = weex.requireModule('plus'); - if (weexPlus.getRedirectInfo) { - const { path, query, referrerInfo } = parseRedirectInfo(); - if (path) { - entryPagePath = path; - entryPageQuery = query; - } - __uniConfig.referrerInfo = referrerInfo; - } - else { - const argsJsonStr = plus.runtime.arguments; - if (!argsJsonStr) { - return; - } - try { - const args = JSON.parse(argsJsonStr); - entryPagePath = args.path || args.pathName; - entryPageQuery = args.query ? '?' + args.query : ''; - } - catch (e) { } - } - if (!entryPagePath || entryPagePath === __uniConfig.entryPagePath) { - if (entryPageQuery) { - __uniConfig.entryPageQuery = entryPageQuery; - } - return; - } - const entryRoute = addLeadingSlash(entryPagePath); - const routeOptions = getRouteOptions(entryRoute); - if (!routeOptions) { - return; - } - if (!routeOptions.meta.isTabBar) { - __uniConfig.realEntryPagePath = - __uniConfig.realEntryPagePath || __uniConfig.entryPagePath; - } - __uniConfig.entryPagePath = entryPagePath; - __uniConfig.entryPageQuery = entryPageQuery; -} - -function initAnimation(path, animationType, animationDuration) { - const { globalStyle } = __uniConfig; - const meta = getRouteMeta(path); - return [ - animationType || - meta.animationType || - globalStyle.animationType || - ANI_SHOW, - animationDuration || - meta.animationDuration || - globalStyle.animationDuration || - ANI_DURATION, - ]; -} - -const $navigateTo = (args, { resolve, reject }) => { - const { url, events, animationType, animationDuration } = args; - const { path, query } = parseUrl(url); - const [aniType, aniDuration] = initAnimation(path, animationType, animationDuration); - navigate(path, () => { - _navigateTo({ - url, - path, - query, - events, - aniType, - aniDuration, - }) - .then(resolve) - .catch(reject); - }, args.openType === 'appLaunch'); -}; -const navigateTo = defineAsyncApi(API_NAVIGATE_TO, $navigateTo, NavigateToProtocol, NavigateToOptions); -function _navigateTo({ url, path, query, events, aniType, aniDuration, }) { - // 当前页面触发 onHide - invokeHook(ON_HIDE); - invokeHook(ON_HIDE); - const eventChannel = new EventChannel(getWebviewId() + 1, events); - return new Promise((resolve) => { - showWebview(registerPage({ url, path, query, openType: 'navigateTo', eventChannel }), aniType, aniDuration, () => { - resolve({ eventChannel }); - }); - setStatusBarStyle(); - }); -} - -function closeWebview(webview, animationType, animationDuration) { - if (webview.__preload__) { - webview.hide(animationType, animationDuration); - } - else { - webview.close(animationType, animationDuration); - } -} -function backWebview(webview, callback) { - const children = webview.children(); - if (!children || !children.length) { - // 无子 webview - return callback(); - } - // 支持且仅支持一个子webview - const childWebview = children[0]; - childWebview.canBack(({ canBack }) => { - if (canBack) { - childWebview.back(); // webview 返回 - } - else { - callback(); - } - }); -} - -const navigateBack = defineAsyncApi(API_NAVIGATE_BACK, (args, { resolve, reject }) => { - const page = getCurrentPage(); - if (!page) { - return reject(`getCurrentPages is empty`); - } - if (invokeHook(page, ON_BACK_PRESS, { - from: args.from || 'navigateBack', - })) { - return resolve(); - } - if (uni.hideToast) { - uni.hideToast(); - } - if (uni.hideLoading) { - uni.hideLoading(); - } - if (page.$page.meta.isQuit) { - quit(); - } - else if (isDirectPage(page)) { - reLaunchEntryPage(); - } - else { - const { delta, animationType, animationDuration } = args; - back(delta, animationType, animationDuration); - } - return resolve(); -}, NavigateBackProtocol, NavigateBackOptions); -let firstBackTime = 0; -function quit() { - initI18nAppMsgsOnce(); - if (!firstBackTime) { - firstBackTime = Date.now(); - plus.nativeUI.toast(useI18n().t('uni.app.quit')); - setTimeout(() => { - firstBackTime = 0; - }, 2000); - } - else if (Date.now() - firstBackTime < 2000) { - plus.runtime.quit(); - } -} -function back(delta, animationType, animationDuration) { - const pages = getCurrentPages(); - const len = pages.length; - const currentPage = pages[len - 1]; - if (delta > 1) { - // 中间页隐藏 - pages - .slice(len - delta, len - 1) - .reverse() - .forEach((deltaPage) => { - closeWebview(plus.webview.getWebviewById(deltaPage.$page.id + ''), 'none', 0); - }); - } - const backPage = function (webview) { - if (animationType) { - closeWebview(webview, animationType, animationDuration || ANI_DURATION); - } - else { - if (currentPage.$page.openType === 'redirectTo') { - // 如果是 redirectTo 跳转的,需要指定 back 动画 - closeWebview(webview, ANI_CLOSE, ANI_DURATION); - } - else { - closeWebview(webview, 'auto'); - } - } - pages - .slice(len - delta, len) - .forEach((page) => removePage(page)); - setStatusBarStyle(); - // 前一个页面触发 onShow - invokeHook(ON_SHOW); - }; - const webview = plus.webview.getWebviewById(currentPage.$page.id + ''); - if (!currentPage.__uniapp_webview) { - return backPage(webview); - } - backWebview(webview, () => { - backPage(webview); - }); -} - -const redirectTo = defineAsyncApi(API_REDIRECT_TO, ({ url }, { resolve, reject }) => { - const { path, query } = parseUrl(url); - navigate(path, () => { - _redirectTo({ - url, - path, - query, - }) - .then(resolve) - .catch(reject); - }, false); -}, RedirectToProtocol, RedirectToOptions); -function _redirectTo({ url, path, query, }) { - // TODO exists - // if (exists === 'back') { - // const existsPageIndex = findExistsPageIndex(url) - // if (existsPageIndex !== -1) { - // const delta = len - existsPageIndex - // if (delta > 0) { - // navigateBack({ - // delta, - // }) - // invoke(callbackId, { - // errMsg: 'redirectTo:ok', - // }) - // return - // } - // } - // } - const lastPage = getCurrentPage(); - lastPage && removePage(lastPage); - return new Promise((resolve) => { - showWebview(registerPage({ - url, - path, - query, - openType: 'redirectTo', - }), 'none', 0, () => { - if (lastPage) { - const webview = lastPage - .$getAppWebview(); - webview.close('none'); - } - resolve(undefined); - }); - setStatusBarStyle(); - }); -} - -const $reLaunch = ({ url }, { resolve, reject }) => { - const { path, query } = parseUrl(url); - navigate(path, () => { - _reLaunch({ - url, - path, - query, - }) - .then(resolve) - .catch(reject); - }, false); -}; -function _reLaunch({ url, path, query }) { - return new Promise((resolve) => { - // 获取目前所有页面 - const pages = getAllPages().slice(0); - const routeOptions = __uniRoutes.find((route) => route.path === path); - if (routeOptions.meta.isTabBar) { - tabBarInstance.switchTab(path.slice(1)); - } - showWebview(registerPage({ - url, - path, - query, - openType: 'reLaunch', - }), 'none', 0, () => { - pages.forEach((page) => closePage(page, 'none')); - resolve(undefined); - }); - setStatusBarStyle(); - }); -} - -const reLaunch = defineAsyncApi(API_RE_LAUNCH, $reLaunch, ReLaunchProtocol, ReLaunchOptions); - -const $switchTab = (args, { resolve, reject }) => { - const { url } = args; - const { path, query } = parseUrl(url); - navigate(path, () => { - _switchTab({ - url, - path, - query, - }) - .then(resolve) - .catch(reject); - }, args.openType === 'appLaunch'); -}; -const switchTab = defineAsyncApi(API_SWITCH_TAB, $switchTab, SwitchTabProtocol, SwitchTabOptions); -function _switchTab({ url, path, query, }) { - tabBarInstance.switchTab(path.slice(1)); - const pages = getCurrentPages(); - const len = pages.length; - let callOnHide = false; - let callOnShow = false; - let currentPage; - if (len >= 1) { - // 前一个页面是非 tabBar 页面 - currentPage = pages[len - 1]; - if (currentPage && !currentPage.$.__isTabBar) { - // 前一个页面为非 tabBar 页面时,目标tabBar需要强制触发onShow - // 该情况下目标页tabBarPage的visible是不对的 - // 除非每次路由跳转都处理一遍tabBarPage的visible,目前仅switchTab会处理 - // 简单起见,暂时直接判断该情况,执行onShow - callOnShow = true; - pages.reverse().forEach((page) => { - if (!page.$.__isTabBar && page !== currentPage) { - closePage(page, 'none'); - } - }); - removePage(currentPage); - if (currentPage.$page.openType === - 'redirectTo') { - closeWebview$1(currentPage.$getAppWebview(), ANI_CLOSE, ANI_DURATION); - } - else { - closeWebview$1(currentPage.$getAppWebview(), 'auto'); - } - } - else { - callOnHide = true; - } - } - let tabBarPage; - // 查找当前 tabBarPage,且设置 visible - getAllPages().forEach((page) => { - if (addLeadingSlash(page.route) === path) { - if (!page.$.__isActive) { - // 之前未显示 - callOnShow = true; - } - page.$.__isActive = true; - tabBarPage = page; - } - else { - if (page.$.__isTabBar) { - page.$.__isActive = false; - } - } - }); - // 相同tabBar页面 - if (currentPage === tabBarPage) { - callOnHide = false; - } - if (currentPage && callOnHide) { - invokeHook(currentPage, ON_HIDE); - } - return new Promise((resolve) => { - if (tabBarPage) { - const webview = tabBarPage.$getAppWebview(); - webview.show('none'); - // 等visible状态都切换完之后,再触发onShow,否则开发者在onShow里边 getCurrentPages 会不准确 - if (callOnShow && !webview.__preload__) { - invokeHook(tabBarPage, ON_SHOW); - } - setStatusBarStyle(); - resolve(undefined); - } - else { - showWebview(registerPage({ - url, - path, - query, - openType: 'switchTab', - }), 'none', 0, () => { - setStatusBarStyle(); - resolve(undefined); - }, 70); - } - }); -} - -// @ts-nocheck -// TODO 优化此处代码,此页面无对应的css -const LocationPickerPage = { - data() { - return { - keyword: '', - latitude: 0, - longitude: 0, - loaded: false, - channel: void 0, - closed: false, - }; - }, - onLoad(e) { - this.latitude = e.latitude; - this.longitude = e.longitude; - this.keyword = e.keyword; - this.loaded = true; - this.channel = this.getOpenerEventChannel(); - }, - onUnload() { - if (this.closed) { - return; - } - this.channel.emit('close', {}); - }, - methods: { - onClose(e) { - this.closed = true; - this.channel.emit('close', e.detail); - uni.navigateBack(); - }, - }, - render: function (_ctx, _cache, $props, $setup, $data, $options) { - return $data.loaded - ? (openBlock(), - createElementBlock('location-picker', { - key: 0, - style: { width: '100%', height: '100%' }, - latitude: $data.latitude, - longitude: $data.longitude, - keyword: $data.keyword, - onClose: _cache[0] || - (_cache[0] = (...args) => $options.onClose && $options.onClose(...args)), - }, null, 40, ['latitude', 'longitude', 'keyword'])) - : createCommentVNode('v-if', true); - }, -}; -const ROUTE_LOCATION_PICKER_PAGE = '__uniappchooselocation'; -const initLocationPickerPageOnce = once(() => { - definePage(ROUTE_LOCATION_PICKER_PAGE, LocationPickerPage); - __uniRoutes.push({ - meta: { - navigationBar: { - style: 'custom', - }, - isNVue: false, - route: ROUTE_LOCATION_PICKER_PAGE, - }, - path: '/' + ROUTE_LOCATION_PICKER_PAGE, - }); -}); - -const chooseLocation = defineAsyncApi(API_CHOOSE_LOCATION, (args, { resolve, reject }) => { - initLocationPickerPageOnce(); - const { keyword = '', latitude = '', longitude = '' } = args; - uni.navigateTo({ - url: '/' + - ROUTE_LOCATION_PICKER_PAGE + - '?keyword=' + - keyword + - '&latitude=' + - latitude + - '&longitude=' + - longitude, - events: { - close: (res) => { - if (res && res.latitude) { - resolve(res); - } - else { - reject('cancel'); - } - }, - }, - fail: (err) => { - reject(err.errMsg || 'cancel'); - }, - }); -}, ChooseLocationProtocol); - -// @ts-nocheck -// TODO 优化此处代码,此页面无对应的css -const LocationViewPage = { - data() { - return { - latitude: 0, - longitude: 0, - loaded: false, - showNav: false, - }; - }, - onLoad(e) { - this.latitude = e.latitude; - this.longitude = e.longitude; - this.loaded = true; - }, - onBackPress() { - if (this.showNav) { - this.showNav = false; - return true; - } - }, - methods: { - onClose(e) { - uni.navigateBack(); - }, - onNavChange(event) { - this.showNav = event.detail.showNav; - }, - }, - render: function (_ctx, _cache, $props, $setup, $data, $options) { - return $data.loaded - ? (openBlock(), - createElementBlock('location-view', { - key: 0, - style: { width: '100%', height: '100%' }, - latitude: $data.latitude, - longitude: $data.longitude, - showNav: $data.showNav, - onClose: _cache[0] || - (_cache[0] = (...args) => $options.onClose && $options.onClose(...args)), - onNavChange: _cache[1] || - (_cache[1] = (...args) => $options.onNavChange && $options.onNavChange(...args)), - }, null, 40, ['latitude', 'longitude', 'showNav'])) - : createCommentVNode('v-if', true); - }, -}; -const ROUTE_LOCATION_VIEW_PAGE = '__uniappopenlocation'; -const initLocationViewPageOnce = once(() => { - definePage(ROUTE_LOCATION_VIEW_PAGE, LocationViewPage); - __uniRoutes.push({ - meta: { - navigationBar: { - style: 'custom', - }, - isNVue: false, - route: ROUTE_LOCATION_VIEW_PAGE, - }, - path: '/' + ROUTE_LOCATION_VIEW_PAGE, - }); -}); - -const openLocation = defineAsyncApi(API_OPEN_LOCATION, (args, { resolve, reject }) => { - initLocationViewPageOnce(); - const { latitude = '', longitude = '' } = args; - uni.navigateTo({ - url: '/' + - ROUTE_LOCATION_VIEW_PAGE + - '?latitude=' + - latitude + - '&longitude=' + - longitude, - success: (res) => { - resolve(); - }, - fail: (err) => { - reject(err.errMsg || 'cancel'); - }, - }); -}, OpenLocationProtocol, OpenLocationOptions); - -function getLocationSuccess(type, position, resolve) { - const coords = position.coords; - resolve({ - type, - altitude: coords.altitude || 0, - latitude: coords.latitude, - longitude: coords.longitude, - speed: coords.speed, - accuracy: coords.accuracy, - address: position.address, - errMsg: 'getLocation:ok', - }); -} -const getLocation = defineAsyncApi(API_GET_LOCATION, ({ type = 'wgs84', geocode = false, altitude = false, highAccuracyExpireTime, isHighAccuracy = false, }, { resolve, reject }) => { - plus.geolocation.getCurrentPosition((position) => { - getLocationSuccess(type, position, resolve); - }, (e) => { - // 坐标地址解析失败 - if (e.code === 1501) { - getLocationSuccess(type, e, resolve); - return; - } - reject('getLocation:fail ' + e.message); - }, { - geocode: geocode, - enableHighAccuracy: isHighAccuracy || altitude, - timeout: highAccuracyExpireTime, - coordsType: type, - }); -}, GetLocationProtocol, GetLocationOptions); -function subscribeGetLocation() { - registerServiceMethod(API_GET_LOCATION, (args, resolve) => { - getLocation({ - type: args.type, - altitude: args.altitude, - highAccuracyExpireTime: args.highAccuracyExpireTime, - isHighAccuracy: args.isHighAccuracy, - success(res) { - resolve({ - latitude: res.latitude, - longitude: res.longitude, - speed: res.speed, - accuracy: res.accuracy, - altitude: res.altitude, - verticalAccuracy: res.verticalAccuracy, - horizontalAccuracy: res.horizontalAccuracy, - }); - }, - fail(err) { - resolve({ - errMsg: err.errMsg || 'getLocation:fail', - }); - }, - }); - }); -} - -let started = false; -let watchId = 0; -const startLocationUpdate = defineAsyncApi(API_START_LOCATION_UPDATE, (options, { resolve, reject }) => { - watchId = - watchId || - plus.geolocation.watchPosition((res) => { - started = true; - UniServiceJSBridge.invokeOnCallback(API_ON_LOCATION_CHANGE, res.coords); - }, (error) => { - if (!started) { - reject(error.message); - started = true; - } - UniServiceJSBridge.invokeOnCallback(API_ON_LOCATION_CHANGE_ERROR, { - errMsg: `onLocationChange:fail ${error.message}`, - }); - }, { - coordsType: options?.type, - }); - setTimeout(resolve, 100); -}, StartLocationUpdateProtocol, StartLocationUpdateOptions); -const stopLocationUpdate = defineAsyncApi(API_STOP_LOCATION_UPDATE, (_, { resolve }) => { - if (watchId) { - plus.geolocation.clearWatch(watchId); - started = false; - watchId = 0; - } - resolve(); -}); -const onLocationChange = defineOnApi(API_ON_LOCATION_CHANGE, () => { }); -const offLocationChange = defineOffApi(API_OFF_LOCATION_CHANGE, () => { }); -const onLocationChangeError = defineOnApi(API_ON_LOCATION_CHANGE_ERROR, () => { }); -const offLocationChangeError = defineOffApi(API_OFF_LOCATION_CHANGE_ERROR, () => { }); - -function operateWebView(id, pageId, type, data, operateMapCallback) { - UniServiceJSBridge.invokeViewMethod('webview.' + id, { - type, - data, - }, pageId, operateMapCallback); -} -// TODO 完善类型定义,规范化。目前非uni-app-x仅鸿蒙支持 -function createWebviewContext(id, componentInstance) { - const pageId = getPageIdByVm(componentInstance); - if (pageId) { - return { - evalJs(jsCode) { - operateWebView(id, pageId, 'evalJs', { - jsCode, - }); - }, - back() { - operateWebView(id, pageId, 'back'); - }, - forward() { - operateWebView(id, pageId, 'forward'); - }, - reload() { - operateWebView(id, pageId, 'reload'); - }, - stop() { - operateWebView(id, pageId, 'stop'); - }, - }; - } - else { - UniServiceJSBridge.emit(ON_ERROR, 'createWebviewContext:fail'); - } -} - -const pageScrollTo = defineAsyncApi(API_PAGE_SCROLL_TO, (options, { resolve }) => { - const pageId = getPageIdByVm(getCurrentPageVm()); - UniServiceJSBridge.invokeViewMethod(API_PAGE_SCROLL_TO, options, pageId, resolve); -}, PageScrollToProtocol, PageScrollToOptions); - -var uni$1 = { - __proto__: null, - addInterceptor: addInterceptor, - arrayBufferToBase64: arrayBufferToBase64, - base64ToArrayBuffer: base64ToArrayBuffer, - canIUse: canIUse, - canvasGetImageData: canvasGetImageData, - canvasPutImageData: canvasPutImageData, - canvasToTempFilePath: canvasToTempFilePath, - chooseLocation: chooseLocation, - createAnimation: createAnimation, - createCanvasContext: createCanvasContext, - createIntersectionObserver: createIntersectionObserver, - createMapContext: createMapContext, - createMediaQueryObserver: createMediaQueryObserver, - createSelectorQuery: createSelectorQuery, - createVideoContext: createVideoContext, - createWebviewContext: createWebviewContext, - getEnterOptionsSync: getEnterOptionsSync, - getLaunchOptionsSync: getLaunchOptionsSync, - getLocale: getLocale, - getLocation: getLocation, - getSelectedTextRange: getSelectedTextRange, - hideNavigationBarLoading: hideNavigationBarLoading, - hideTabBar: hideTabBar, - hideTabBarRedDot: hideTabBarRedDot, - interceptors: interceptors, - loadFontFace: loadFontFace, - navigateBack: navigateBack, - navigateTo: navigateTo, - offKeyboardHeightChange: offKeyboardHeightChange, - offLocationChange: offLocationChange, - offLocationChangeError: offLocationChangeError, - onKeyboardHeightChange: onKeyboardHeightChange, - onLocaleChange: onLocaleChange, - onLocationChange: onLocationChange, - onLocationChangeError: onLocationChangeError, - onWindowResize: onWindowResize, - openLocation: openLocation, - pageScrollTo: pageScrollTo, - reLaunch: reLaunch, - redirectTo: redirectTo, - removeInterceptor: removeInterceptor, - removeTabBarBadge: removeTabBarBadge, - setLocale: setLocale, - setNavigationBarColor: setNavigationBarColor, - setNavigationBarTitle: setNavigationBarTitle, - setTabBarBadge: setTabBarBadge, - setTabBarItem: setTabBarItem, - setTabBarStyle: setTabBarStyle, - showNavigationBarLoading: showNavigationBarLoading, - showTabBar: showTabBar, - showTabBarRedDot: showTabBarRedDot, - startLocationUpdate: startLocationUpdate, - stopLocationUpdate: stopLocationUpdate, - switchTab: switchTab -}; - -const UniServiceJSBridge$1 = /*#__PURE__*/ extend(ServiceJSBridge, { - publishHandler, -}); -function publishHandler(event, args, pageIds) { - args = JSON.stringify(args); - if (('production' !== 'production')) { - console.log(formatLog('publishHandler', event, args, pageIds)); - } - if (!isArray(pageIds)) { - pageIds = [pageIds]; - } - const evalJSCode = `typeof UniViewJSBridge !== 'undefined' && UniViewJSBridge.subscribeHandler("${event}",${args},__PAGE_ID__)`; - if (('production' !== 'production')) { - console.log(formatLog('publishHandler', 'size', evalJSCode.length)); - } - pageIds.forEach((id) => { - const idStr = String(id); - const webview = plus.webview.getWebviewById(idStr); - const code = evalJSCode.replace('__PAGE_ID__', idStr); - webview && webview.evalJS(code); - }); -} - -let focusTimeout = 0; -let keyboardHeight = 0; -let focusTimer = null; -function hookKeyboardEvent(event, callback) { - if (focusTimer) { - clearTimeout(focusTimer); - focusTimer = null; - } - if (event.type === 'onFocus') { - { - focusTimer = setTimeout(function () { - event.detail.height = keyboardHeight; - callback(event); - }, focusTimeout); - return; - } - } - callback(event); -} - -function onNodeEvent(nodeId, evt, pageNode) { - const type = evt.type; - if (type === 'onFocus' || type === 'onBlur') { - hookKeyboardEvent(evt, (evt) => { - pageNode.fireEvent(nodeId, evt); - }); - } - else { - pageNode.fireEvent(nodeId, evt); - } -} - -function onVdSync(actions, pageId) { - // 从所有pages中获取 - const page = getPageById(parseInt(pageId)); - if (!page) { - if (('production' !== 'production')) { - console.error(formatLog('onVdSync', 'page', pageId, 'not found')); - } - return; - } - const pageNode = page.__page_container__; - actions.forEach((action) => { - switch (action[0]) { - case ACTION_TYPE_EVENT: - onNodeEvent(action[1], action[2], pageNode); - break; - } - }); -} - -function subscribePlusMessage({ data, }) { - if (('production' !== 'production')) { - console.log(formatLog('plusMessage', data)); - } - if (data && data.type) { - UniServiceJSBridge.subscribeHandler('plusMessage.' + data.type, data.args); - } -} -function onPlusMessage(type, callback, once = false) { - UniServiceJSBridge.subscribe('plusMessage.' + type, callback, once); -} -// function initEnterReLaunch(info: RedirectInfo) { -// __uniConfig.realEntryPagePath = -// __uniConfig.realEntryPagePath || __uniConfig.entryPagePath -// __uniConfig.entryPagePath = info.path -// __uniConfig.entryPageQuery = info.query -// $reLaunch( -// { url: addLeadingSlash(info.path) + info.query }, -// { resolve() {}, reject() {} } -// ) -// } - -const API_ROUTE = [ - 'switchTab', - 'reLaunch', - 'redirectTo', - 'navigateTo', - 'navigateBack', -]; -function subscribeNavigator() { - API_ROUTE.forEach((name) => { - registerServiceMethod(name, (args) => { - uni[name](extend(args, { - fail(res) { - console.error(res.errMsg); - }, - })); - }); - }); -} - -let isLaunchWebviewReady = false; // 目前首页双向确定 ready,可能会导致触发两次 onWebviewReady -function subscribeWebviewReady(_data, pageId) { - const isLaunchWebview = pageId === '1'; - if (isLaunchWebview && isLaunchWebviewReady) { - if (('production' !== 'production')) { - console.log('[uni-app] onLaunchWebviewReady.prevent'); - } - return; - } - let preloadWebview = getPreloadWebview(); - if (isLaunchWebview) { - // 首页 - isLaunchWebviewReady = true; - preloadWebview = setPreloadWebview(plus.webview.getLaunchWebview()); - } - else if (!preloadWebview) { - // preloadWebview 不存在,重新加载一下 - preloadWebview = setPreloadWebview(plus.webview.getWebviewById(pageId)); - } - // 仅当 preloadWebview 未 loaded 时处理 - if (!preloadWebview.loaded) { - if (preloadWebview.id !== pageId) { - return console.error(`webviewReady[${preloadWebview.id}][${pageId}] not match`); - } - preloadWebview.loaded = true; // 标记已 ready - } - UniServiceJSBridge.emit(ON_WEBVIEW_READY + '.' + pageId); - isLaunchWebview && onLaunchWebviewReady(); -} -function onLaunchWebviewReady() { - // TODO closeSplashscreen - const entryPagePath = addLeadingSlash(__uniConfig.entryPagePath); - const routeOptions = getRouteOptions(entryPagePath); - const args = { - url: entryPagePath + (__uniConfig.entryPageQuery || ''), - openType: 'appLaunch', - }; - const handler = { resolve() { }, reject() { } }; - if (routeOptions.meta.isTabBar) { - return $switchTab(args, handler); - } - return $navigateTo(args, handler); -} - -function onWebviewInserted(_, pageId) { - const page = getPageById(parseInt(pageId)); - page && (page.__uniapp_webview = true); -} -function onWebviewRemoved(_, pageId) { - const page = getPageById(parseInt(pageId)); - page && delete page.__uniapp_webview; -} - -const onWebInvokeAppService = ({ name, arg }, pageIds) => { - if (name === 'postMessage') { - onMessage(pageIds[0], arg); - } - else { - uni[name](extend(arg, { - fail(res) { - console.error(res.errMsg); - }, - })); - } -}; -function onMessage(pageId, arg) { - const uniNode = findNodeByTagName('web-view', parseInt(pageId)); - uniNode && - uniNode.dispatchEvent(createUniEvent({ - type: 'onMessage', - target: Object.create(null), - currentTarget: Object.create(null), - detail: { - data: [arg], - }, - })); -} - -function onWxsInvokeCallMethod({ nodeId, ownerId, method, args, }, pageId) { - const node = findNodeById(nodeId, parseInt(pageId)); - if (!node) { - if (('production' !== 'production')) { - console.error(formatLog('Wxs', 'CallMethod', nodeId, 'not found')); - } - return; - } - const vm = resolveOwnerVm(ownerId, node.__vueParentComponent); - if (!vm) { - if (('production' !== 'production')) { - console.error(formatLog('Wxs', 'CallMethod', 'vm not found')); - } - return; - } - if (!vm[method]) { - if (('production' !== 'production')) { - console.error(formatLog('Wxs', 'CallMethod', method, ' not found')); - } - return; - } - vm[method](args); -} -function resolveOwnerVm(ownerId, vm) { - if (!vm) { - return null; - } - if (vm.uid === ownerId) { - return vm.proxy; - } - let parent = vm.parent; - while (parent) { - if (parent.uid === ownerId) { - return parent.proxy; - } - parent = parent.parent; - } - return vm.proxy; -} - -function initSubscribeHandlers() { - const { subscribe, subscribeHandler, publishHandler } = UniServiceJSBridge; - onPlusMessage('subscribeHandler', ({ type, data, pageId }) => { - subscribeHandler(type, data, pageId); - }); - onPlusMessage(WEB_INVOKE_APPSERVICE, ({ data, webviewIds }) => { - onWebInvokeAppService(data, webviewIds); - }); - subscribe(ON_WEBVIEW_READY, subscribeWebviewReady); - subscribe(VD_SYNC, onVdSync); - subscribeServiceMethod(); - // TODO subscribeAd - subscribeNavigator(); - subscribe(WEBVIEW_INSERTED, onWebviewInserted); - subscribe(WEBVIEW_REMOVED, onWebviewRemoved); - subscribeGetLocation(); - subscribe(ON_WXS_INVOKE_CALL_METHOD, onWxsInvokeCallMethod); - const routeOptions = getRouteOptions(addLeadingSlash(__uniConfig.entryPagePath)); - if (routeOptions) { - // 防止首页 webview 初始化过早, service 还未开始监听 - publishHandler(ON_WEBVIEW_READY, {}, 1); - } -} - -function initGlobalEvent() { - const plusGlobalEvent = plus.globalEvent; - const { emit } = UniServiceJSBridge; - plus.key.addEventListener(EVENT_BACKBUTTON, backbuttonListener); - plusGlobalEvent.addEventListener('pause', () => { - emit(ON_APP_ENTER_BACKGROUND); - }); - plusGlobalEvent.addEventListener('resume', () => { - // TODO options - emit(ON_APP_ENTER_FOREGROUND, {}); - }); - plusGlobalEvent.addEventListener('KeyboardHeightChange', function (event) { - emit(ON_KEYBOARD_HEIGHT_CHANGE, { - height: event.height, - }); - }); - plusGlobalEvent.addEventListener('plusMessage', subscribePlusMessage); -} - -function initAppLaunch(appVm) { - injectAppHooks(appVm.$); - const { entryPagePath, entryPageQuery, referrerInfo } = __uniConfig; - const args = initLaunchOptions({ - path: entryPagePath, - query: entryPageQuery, - referrerInfo: referrerInfo, - }); - invokeHook(appVm, ON_LAUNCH, args); - invokeHook(appVm, ON_SHOW, args); -} - -function initTabBar() { - const { tabBar } = __uniConfig; - const len = tabBar && tabBar.list && tabBar.list.length; - if (!len) { - return; - } - const { entryPagePath } = __uniConfig; - tabBar.selectedIndex = 0; - const selected = tabBar.list.findIndex((page) => page.pagePath === entryPagePath); - tabBarInstance.init(tabBar, (item, index) => { - uni.switchTab({ - url: addLeadingSlash(item.pagePath), - openType: 'switchTab', - from: 'tabBar', - success() { - invokeHook(ON_TAB_ITEM_TAP, { - index, - text: item.text, - pagePath: item.pagePath, - }); - }, - }); - }); - if (selected !== -1) { - // 取当前 tab 索引值 - tabBar.selectedIndex = selected; - selected !== 0 && tabBarInstance.switchTab(entryPagePath); - } -} - -let appCtx; -const defaultApp = { - globalData: {}, -}; -function getApp$1({ allowDefault = false } = {}) { - if (appCtx) { - // 真实的 App 已初始化 - return appCtx; - } - if (allowDefault) { - // 返回默认实现 - return defaultApp; - } - console.error('[warn]: getApp() failed. Learn more: https://uniapp.dcloud.io/collocation/frame/window?id=getapp.'); -} -function registerApp(appVm) { - if (('production' !== 'production')) { - console.log(formatLog('registerApp')); - } - // TODO 定制 useStore - initVueApp(appVm); - appCtx = appVm; - initAppVm(appCtx); - extend(appCtx, defaultApp); // 拷贝默认实现 - defineGlobalData(appCtx, defaultApp.globalData); - initService(); - initEntry(); - initTabBar(); - initGlobalEvent(); - initSubscribeHandlers(); - initAppLaunch(appVm); - // TODO clearTempFile - __uniConfig.ready = true; -} - -function setUniRuntime(runtime) { - // @ts-expect-error - globalThis.UTSJSONObject = runtime.UTSJSONObject; - // @ts-expect-error - globalThis.UniError = runtime.UniError; -} - -function getType(val) { - return Object.prototype.toString.call(val).slice(8, -1).toLowerCase(); -} -function disableEnumerable(obj, properties) { - const propertyDescriptorMap = {}; - for (let i = 0; i < properties.length; i++) { - const property = properties[i]; - propertyDescriptorMap[property] = { - enumerable: false, - value: obj[property], - }; - } - Object.defineProperties(obj, propertyDescriptorMap); -} - -const __uniConfig$1 = globalThis.__uniConfig; - -var index = { - uni: uni$1, - getApp: getApp$1, - getCurrentPages: getCurrentPages$1, - __definePage: definePage, - __registerApp: registerApp, - UniServiceJSBridge: UniServiceJSBridge$1, -}; - -export { Emitter, UniServiceJSBridge$1 as UniServiceJSBridge, __uniConfig$1 as __uniConfig, addIntersectionObserver, index as default, defineAsyncApi, defineOffApi, defineOnApi, defineSyncApi, defineTaskApi, disableEnumerable, extend, getCurrentPage, getCurrentPageId, getCurrentPageMeta, getCurrentPageVm, getEnv, getPageIdByVm, getRealPath, getType, hasOwn$1 as hasOwn, isArray, isFunction, isPlainObject, isString, registerServiceMethod, removeIntersectionObserver, requestComponentInfo, resolveComponentInstance, setUniRuntime }; diff --git a/packages/uni-app-harmony/package.json b/packages/uni-app-harmony/package.json index 0f35bab40a4..e496646d86f 100644 --- a/packages/uni-app-harmony/package.json +++ b/packages/uni-app-harmony/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-harmony", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-app-harmony", "files": [ "dist", @@ -27,18 +27,18 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-app-vite": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-app-vite": "3.0.0-alpha-4020820240914001", "debug": "^4.3.3", "fs-extra": "^10.0.0", "licia": "^1.29.0", "postcss-selector-parser": "^6.0.6" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-app-plus": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-components": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-app-plus": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-components": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@types/pako": "1.0.2", "@types/google.maps": "^3.45.6", "@amap/amap-jsapi-types": "^0.0.8", diff --git a/packages/uni-app-plus/package.json b/packages/uni-app-plus/package.json index be60b152f86..a6d7d1c85b6 100644 --- a/packages/uni-app-plus/package.json +++ b/packages/uni-app-plus/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-app-plus", "files": [ "dist", @@ -29,20 +29,20 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-app-uts": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-app-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-app-vue": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-app-uts": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-app-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-app-vue": "3.0.0-alpha-4020820240914001", "debug": "^4.3.3", "fs-extra": "^10.0.0", "licia": "^1.29.0", "postcss-selector-parser": "^6.0.6" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-components": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-h5": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-components": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-h5": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@types/pako": "1.0.2", "@vue/compiler-sfc": "3.4.21", "autoprefixer": "^10.4.19", diff --git a/packages/uni-app-uts/package.json b/packages/uni-app-uts/package.json index c17c8a3b83d..d413fb1222d 100644 --- a/packages/uni-app-uts/package.json +++ b/packages/uni-app-uts/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-uts", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app-uts", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -20,10 +20,10 @@ "dependencies": { "@babel/parser": "^7.23.9", "@babel/types": "^7.20.7", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@jridgewell/gen-mapping": "^0.3.3", "@jridgewell/trace-mapping": "^0.3.19", "@rollup/pluginutils": "^5.0.5", diff --git a/packages/uni-app-vite/package.json b/packages/uni-app-vite/package.json index bcbc5b5e88b..d61a7c13b1b 100644 --- a/packages/uni-app-vite/package.json +++ b/packages/uni-app-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vite", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,10 +19,10 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-nvue-styler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@rollup/pluginutils": "^5.0.5", "@vitejs/plugin-vue": "5.1.0", "@vue/compiler-dom": "3.4.21", diff --git a/packages/uni-app-vue/package.json b/packages/uni-app-vue/package.json index 53082a9e2f8..bc47e8acf2f 100644 --- a/packages/uni-app-vue/package.json +++ b/packages/uni-app-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vue", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-app-vue", "main": "dist/service.runtime.esm.dev.js", "module": "dist/service.runtime.esm.dev.js", @@ -19,6 +19,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001" } } diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index a4d9f2ba57a..088c600e056 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-app", "main": "./dist/uni-app.cjs.js", "module": "./dist/uni-app.es.js", @@ -24,12 +24,12 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-cloud": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-components": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-push": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-stat": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cloud": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-components": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-push": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-stat": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21" }, "peerDependencies": { diff --git a/packages/uni-automator/package.json b/packages/uni-automator/package.json index 62a0d4f0b18..852fa6b1780 100644 --- a/packages/uni-automator/package.json +++ b/packages/uni-automator/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-automator", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-automator", "main": "dist/index.js", "files": [ @@ -28,7 +28,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", "address": "^1.1.2", "cross-env": "^7.0.3", "debug": "^4.3.3", diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index 98e26128630..6723fd7feef 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-shared", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-cli-shared", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -26,8 +26,8 @@ "@babel/core": "^7.23.3", "@babel/parser": "^7.23.9", "@babel/types": "^7.20.7", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@intlify/core-base": "9.1.9", "@intlify/shared": "9.1.9", "@intlify/vue-devtools": "9.1.9", @@ -71,7 +71,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-uts-v1": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-uts-v1": "3.0.0-alpha-4020820240914001", "@types/adm-zip": "^0.5.5", "@types/babel__code-frame": "^7.0.6", "@types/babel__core": "^7.1.19", diff --git a/packages/uni-cli-utils/package.json b/packages/uni-cli-utils/package.json index 0456a8f1ecb..d48b5bbb3b1 100644 --- a/packages/uni-cli-utils/package.json +++ b/packages/uni-cli-utils/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-utils", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-cli-utils", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/uni-cloud/package.json b/packages/uni-cloud/package.json index 9c2ecdbee93..75339a5ced5 100644 --- a/packages/uni-cloud/package.json +++ b/packages/uni-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cloud", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-cloud", "main": "dist/uni-cloud.cjs.js", "module": "dist/uni-cloud.es.js", @@ -20,9 +20,9 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21", "fast-glob": "^3.2.11" } diff --git a/packages/uni-components/package.json b/packages/uni-components/package.json index 1d2aeb1df42..81fc62d06fa 100644 --- a/packages/uni-components/package.json +++ b/packages/uni-components/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-components", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-components", "main": "index.js", "files": [ @@ -20,12 +20,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cloud": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-h5": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-cloud": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-h5": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001" }, "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@types/quill": "1.3.10" } } diff --git a/packages/uni-core/package.json b/packages/uni-core/package.json index 1f0a135425f..6cd6b8db68c 100644 --- a/packages/uni-core/package.json +++ b/packages/uni-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-core", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-core", "sideEffects": false, "repository": { @@ -14,9 +14,9 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "safe-area-insets": "^1.4.1" } } diff --git a/packages/uni-h5-vite/package.json b/packages/uni-h5-vite/package.json index ed879a9d3d8..c9c0a0a6057 100644 --- a/packages/uni-h5-vite/package.json +++ b/packages/uni-h5-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vite", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-h5-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,8 +19,8 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@rollup/pluginutils": "^5.0.5", "@vue/compiler-dom": "3.4.21", "@vue/compiler-sfc": "3.4.21", diff --git a/packages/uni-h5-vue/package.json b/packages/uni-h5-vue/package.json index c3ac1bbef1c..427744cfdea 100644 --- a/packages/uni-h5-vue/package.json +++ b/packages/uni-h5-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vue", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-h5-vue", "main": "dist/vue.runtime.cjs.js", "module": "dist/vue.runtime.esm.js", @@ -21,7 +21,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/server-renderer": "3.4.21" } } diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index fc7ebbae132..ddacc41f7b5 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-h5", "main": "./dist/uni-h5.cjs.js", "module": "./dist/uni-h5.es.js", @@ -30,10 +30,10 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-h5-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-h5-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-h5-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-h5-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/server-renderer": "3.4.21", "@vue/shared": "3.4.21", "debug": "^4.3.3", @@ -45,7 +45,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", "@types/estree": "^1.0.5", "@types/google.maps": "^3.45.6", "@amap/amap-jsapi-types": "^0.0.8", diff --git a/packages/uni-i18n/package.json b/packages/uni-i18n/package.json index 91027cdd7df..6d0063c5cba 100644 --- a/packages/uni-i18n/package.json +++ b/packages/uni-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-i18n", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-i18n", "main": "./dist/uni-i18n.cjs.js", "module": "./dist/uni-i18n.es.js", diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index ba8702b2cc8..1b38fa517bc 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app mp-alipay", "main": "dist/index.js", "files": [ @@ -25,10 +25,10 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21" } diff --git a/packages/uni-mp-baidu/package.json b/packages/uni-mp-baidu/package.json index f74b2f69ca7..2fb09e8fde4 100644 --- a/packages/uni-mp-baidu/package.json +++ b/packages/uni-mp-baidu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-baidu", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app mp-baidu", "main": "dist/index.js", "files": [ @@ -26,12 +26,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21", "jimp": "^0.10.1", diff --git a/packages/uni-mp-compiler/package.json b/packages/uni-mp-compiler/package.json index b9f77f189ce..214496c1228 100644 --- a/packages/uni-mp-compiler/package.json +++ b/packages/uni-mp-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-compiler", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-mp-compiler", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -21,8 +21,8 @@ "@babel/generator": "^7.20.5", "@babel/parser": "^7.23.9", "@babel/types": "^7.20.7", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/compiler-core": "3.4.21", "@vue/compiler-dom": "3.4.21", "@vue/shared": "3.4.21", diff --git a/packages/uni-mp-core/package.json b/packages/uni-mp-core/package.json index 6c0934ea8d5..219fd59fde1 100644 --- a/packages/uni-mp-core/package.json +++ b/packages/uni-mp-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-mp-core", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-mp-core", "sideEffects": false, "repository": { diff --git a/packages/uni-mp-jd/package.json b/packages/uni-mp-jd/package.json index 675b838c1be..81ed8ea0dd1 100644 --- a/packages/uni-mp-jd/package.json +++ b/packages/uni-mp-jd/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-jd", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app mp-jd", "main": "dist/index.js", "files": [ @@ -25,15 +25,15 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020820240914001", "@vue/compiler-core": "3.4.21" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21" } } diff --git a/packages/uni-mp-kuaishou/package.json b/packages/uni-mp-kuaishou/package.json index c02d45f2089..57c1f2ed3fa 100644 --- a/packages/uni-mp-kuaishou/package.json +++ b/packages/uni-mp-kuaishou/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-kuaishou", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app mp-kuaishou", "main": "dist/index.js", "files": [ @@ -25,12 +25,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21" } diff --git a/packages/uni-mp-lark/package.json b/packages/uni-mp-lark/package.json index c0b8740cda4..76f526be5e5 100644 --- a/packages/uni-mp-lark/package.json +++ b/packages/uni-mp-lark/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-lark", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app mp-lark", "main": "dist/index.js", "files": [ @@ -25,12 +25,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/compiler-core": "3.4.21", "@vue/shared": "3.4.21" } diff --git a/packages/uni-mp-qq/package.json b/packages/uni-mp-qq/package.json index 02388cb715e..2e13a2b1dee 100644 --- a/packages/uni-mp-qq/package.json +++ b/packages/uni-mp-qq/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-qq", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app mp-qq", "main": "dist/index.js", "files": [ @@ -25,15 +25,15 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020820240914001", "@types/fs-extra": "^9.0.13", "@vue/compiler-core": "3.4.21" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21", "fs-extra": "^10.0.0" } diff --git a/packages/uni-mp-toutiao/package.json b/packages/uni-mp-toutiao/package.json index fb92bd62a95..5d3f273d37a 100644 --- a/packages/uni-mp-toutiao/package.json +++ b/packages/uni-mp-toutiao/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-toutiao", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app mp-toutiao", "main": "dist/index.js", "files": [ @@ -25,11 +25,11 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21", "@vue/compiler-core": "3.4.21" } diff --git a/packages/uni-mp-vite/package.json b/packages/uni-mp-vite/package.json index 1792a5374c1..b9a11a7844f 100644 --- a/packages/uni-mp-vite/package.json +++ b/packages/uni-mp-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vite", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-mp-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -17,11 +17,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-i18n": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/compiler-sfc": "3.4.21", "@vue/shared": "3.4.21", "debug": "^4.3.3" diff --git a/packages/uni-mp-vue/package.json b/packages/uni-mp-vue/package.json index 967614c62bc..d82c5ab7bb1 100644 --- a/packages/uni-mp-vue/package.json +++ b/packages/uni-mp-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vue", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-mp-vue", "main": "dist/vue.runtime.esm.js", "module": "dist/vue.runtime.esm.js", @@ -19,10 +19,10 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001" } } diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index 5afb4ac6f57..bb785f21bf7 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app mp-weixin", "main": "dist/index.js", "files": [ @@ -29,10 +29,10 @@ "@vue/compiler-core": "3.4.21" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21", "jimp": "^0.10.1", "licia": "^1.29.0", diff --git a/packages/uni-mp-xhs/package.json b/packages/uni-mp-xhs/package.json index 94019117d1d..099a4efd2f7 100644 --- a/packages/uni-mp-xhs/package.json +++ b/packages/uni-mp-xhs/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-xhs", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uniapp mp-xhs", "main": "dist/index.js", "files": [ @@ -26,16 +26,16 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-alipay": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-alipay": "3.0.0-alpha-4020820240914001", "@vue/compiler-core": "3.4.21" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21" } } diff --git a/packages/uni-nvue-styler/package.json b/packages/uni-nvue-styler/package.json index 4df42d42c99..593e9efd48d 100644 --- a/packages/uni-nvue-styler/package.json +++ b/packages/uni-nvue-styler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-nvue-styler", - "version": "3.0.0-alpha-4020620240828001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-nvue-styler", "main": "./dist/uni-nvue-styler.cjs.js", "types": "./dist/uni-nvue-styler.d.ts", diff --git a/packages/uni-preprocess/package.json b/packages/uni-preprocess/package.json index 1bdce407865..122e4d46cb2 100644 --- a/packages/uni-preprocess/package.json +++ b/packages/uni-preprocess/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-preprocess", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-preprocess", "main": "dist/index.cjs.js", "module": "dist/index.es.js", diff --git a/packages/uni-push/package.json b/packages/uni-push/package.json index 6575d1ce0d4..45ed2deb93f 100644 --- a/packages/uni-push/package.json +++ b/packages/uni-push/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-push", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-push", "main": "lib/uni-push.js", "module": "lib/uni-push.js", @@ -20,6 +20,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001" } } diff --git a/packages/uni-quickapp-webview/package.json b/packages/uni-quickapp-webview/package.json index bf7a1076813..e2729140d16 100644 --- a/packages/uni-quickapp-webview/package.json +++ b/packages/uni-quickapp-webview/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-quickapp-webview", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app quickapp-webview", "main": "dist/index.js", "files": [ @@ -25,13 +25,13 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4020820240914001" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@vue/shared": "3.4.21" } } diff --git a/packages/uni-runtime/package.json b/packages/uni-runtime/package.json index 7df25d4d2df..ca75341c35d 100644 --- a/packages/uni-runtime/package.json +++ b/packages/uni-runtime/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-runtime", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-runtime", "sideEffects": false, "module": "src/index.ts", @@ -18,6 +18,6 @@ "@vue/shared": "3.4.21" }, "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001" } } diff --git a/packages/uni-shared/package.json b/packages/uni-shared/package.json index 375a87ed33c..e5240b01c1e 100644 --- a/packages/uni-shared/package.json +++ b/packages/uni-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-shared", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-shared", "main": "./dist/uni-shared.cjs.js", "module": "./dist/uni-shared.es.js", diff --git a/packages/uni-stacktracey/package.json b/packages/uni-stacktracey/package.json index 0d73b3cffe4..283d466601d 100644 --- a/packages/uni-stacktracey/package.json +++ b/packages/uni-stacktracey/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stacktracey", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-stacktracey", "main": "dist/uni-stacktracey.cjs.js", "module": "dist/uni-stacktracey.es.js", diff --git a/packages/uni-stat/package.json b/packages/uni-stat/package.json index d65136f6937..2cf7b5c4766 100644 --- a/packages/uni-stat/package.json +++ b/packages/uni-stat/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stat", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-stat", "main": "dist/uni-stat.es.js", "module": "dist/uni-stat.es.js", @@ -20,8 +20,8 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "debug": "^4.3.3" }, "devDependencies": { diff --git a/packages/uni-uts-v1/package.json b/packages/uni-uts-v1/package.json index c2a980c84b4..0a921e95148 100644 --- a/packages/uni-uts-v1/package.json +++ b/packages/uni-uts-v1/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-uts-v1", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-uts-v1", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -20,7 +20,7 @@ "dependencies": { "@babel/code-frame": "^7.23.5", "@dcloudio/uni-app-x": "^0.7.30", - "@dcloudio/uts": "3.0.0-alpha-4020520240719001", + "@dcloudio/uts": "3.0.0-alpha-4020820240914001", "@rollup/pluginutils": "^5.0.5", "@vue/shared": "3.4.21", "adm-zip": "^0.5.12", diff --git a/packages/uni-vue-devtools/package.json b/packages/uni-vue-devtools/package.json index cd9feed1e3b..9640fbbe48d 100644 --- a/packages/uni-vue-devtools/package.json +++ b/packages/uni-vue-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-vue-devtools", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-vue-devtools", "module": "dist/runtime.es.js", "files": [ @@ -22,7 +22,7 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", "detect-port": "^1.5.1", "express": "^4.17.1", "open": "^8.4.0", diff --git a/packages/uni-vue/package.json b/packages/uni-vue/package.json index c102f5c9cb1..759f178e8ef 100644 --- a/packages/uni-vue/package.json +++ b/packages/uni-vue/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-vue", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "@dcloudio/uni-vue", "files": [ "dist" @@ -17,7 +17,7 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001" + "@dcloudio/uni-mp-vue": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001" } } diff --git a/packages/uts-darwin-arm64/package.json b/packages/uts-darwin-arm64/package.json index 5e4e06b09ed..f4105508f3e 100644 --- a/packages/uts-darwin-arm64/package.json +++ b/packages/uts-darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-darwin-arm64", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "os": [ "darwin" ], diff --git a/packages/uts-darwin-x64/package.json b/packages/uts-darwin-x64/package.json index b357ee3ddaa..93a510b3927 100644 --- a/packages/uts-darwin-x64/package.json +++ b/packages/uts-darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-darwin-x64", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "os": [ "darwin" ], diff --git a/packages/uts-linux-x64-gnu/package.json b/packages/uts-linux-x64-gnu/package.json index 015fbde22ee..1341e774777 100644 --- a/packages/uts-linux-x64-gnu/package.json +++ b/packages/uts-linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-linux-x64-gnu", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "os": [ "linux" ], diff --git a/packages/uts-linux-x64-musl/package.json b/packages/uts-linux-x64-musl/package.json index dc4ce2dcdd5..e51d61d6f3e 100644 --- a/packages/uts-linux-x64-musl/package.json +++ b/packages/uts-linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-linux-x64-musl", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "os": [ "linux" ], diff --git a/packages/uts-win32-ia32-msvc/package.json b/packages/uts-win32-ia32-msvc/package.json index d10627ba855..278367c306a 100644 --- a/packages/uts-win32-ia32-msvc/package.json +++ b/packages/uts-win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-win32-ia32-msvc", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "os": [ "win32" ], diff --git a/packages/uts-win32-x64-msvc/package.json b/packages/uts-win32-x64-msvc/package.json index 51631bfb90f..c52b7cddf96 100644 --- a/packages/uts-win32-x64-msvc/package.json +++ b/packages/uts-win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-win32-x64-msvc", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "os": [ "win32" ], diff --git a/packages/uts/package.json b/packages/uts/package.json index 0de011106ea..06b090b9cf0 100644 --- a/packages/uts/package.json +++ b/packages/uts/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uts", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -14,11 +14,11 @@ "directory": "packages/uts" }, "optionalDependencies": { - "@dcloudio/uts-darwin-arm64": "3.0.0-alpha-4020520240719001", - "@dcloudio/uts-darwin-x64": "3.0.0-alpha-4020520240719001", - "@dcloudio/uts-linux-x64-gnu": "3.0.0-alpha-4020520240719001", - "@dcloudio/uts-linux-x64-musl": "3.0.0-alpha-4020520240719001", - "@dcloudio/uts-win32-ia32-msvc": "3.0.0-alpha-4020520240719001", - "@dcloudio/uts-win32-x64-msvc": "3.0.0-alpha-4020520240719001" + "@dcloudio/uts-darwin-arm64": "3.0.0-alpha-4020820240914001", + "@dcloudio/uts-darwin-x64": "3.0.0-alpha-4020820240914001", + "@dcloudio/uts-linux-x64-gnu": "3.0.0-alpha-4020820240914001", + "@dcloudio/uts-linux-x64-musl": "3.0.0-alpha-4020820240914001", + "@dcloudio/uts-win32-ia32-msvc": "3.0.0-alpha-4020820240914001", + "@dcloudio/uts-win32-x64-msvc": "3.0.0-alpha-4020820240914001" } } diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 64f0e643a92..04997802307 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vite-plugin-uni", - "version": "3.0.0-alpha-4020520240719001", + "version": "3.0.0-alpha-4020820240914001", "description": "uni-app vite plugin", "bin": { "uni": "bin/uni.js" @@ -27,8 +27,8 @@ "@babel/core": "^7.23.3", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-transform-typescript": "^7.23.3", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020520240719001", - "@dcloudio/uni-shared": "3.0.0-alpha-4020520240719001", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-4020820240914001", + "@dcloudio/uni-shared": "3.0.0-alpha-4020820240914001", "@rollup/pluginutils": "^5.0.5", "@vitejs/plugin-legacy": "5.3.2", "@vitejs/plugin-vue": "5.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f24e6d1d43f..43f512296aa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,16 +24,16 @@ importers: specifier: 3.4.11 version: 3.4.11 '@dcloudio/uni-api': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:packages/uni-api '@dcloudio/uni-app': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:packages/uni-app '@dcloudio/uni-app-x': specifier: ^0.7.30 version: 0.7.30 '@dcloudio/uni-nvue-styler': - specifier: 3.0.0-alpha-4020620240828001 + specifier: 3.0.0-alpha-4020820240914001 version: link:packages/uni-nvue-styler '@jest/types': specifier: ^29.0.3 @@ -397,10 +397,10 @@ importers: packages/size-check: dependencies: '@dcloudio/uni-app': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-app '@dcloudio/uni-h5': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-h5 vue: specifier: 3.4.21 @@ -413,13 +413,13 @@ importers: version: 4.1.0([email protected]([email protected])) devDependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-components': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-components '@dcloudio/vite-plugin-uni': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../vite-plugin-uni packages/uni-api: @@ -429,7 +429,7 @@ importers: version: 3.4.21 devDependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared packages/uni-app: @@ -438,22 +438,22 @@ importers: specifier: ^3.4.11 version: 3.4.11 '@dcloudio/uni-cloud': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cloud '@dcloudio/uni-components': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-components '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-push': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-push '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@dcloudio/uni-stat': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-stat '@vue/shared': specifier: 3.4.21 @@ -462,7 +462,7 @@ importers: packages/uni-app-harmony: dependencies: '@dcloudio/uni-app-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-app-vite debug: specifier: ^4.3.3 @@ -481,19 +481,19 @@ importers: specifier: ^0.0.8 version: 0.0.8 '@dcloudio/uni-app-plus': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-app-plus '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-components': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-components '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@types/google.maps': specifier: ^3.45.6 @@ -520,13 +520,13 @@ importers: packages/uni-app-plus: dependencies: '@dcloudio/uni-app-uts': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-app-uts '@dcloudio/uni-app-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-app-vite '@dcloudio/uni-app-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-app-vue debug: specifier: ^4.3.3 @@ -542,19 +542,19 @@ importers: version: 6.1.2 devDependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-components': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-components '@dcloudio/uni-h5': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-h5 '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@types/pako': specifier: 1.0.2 @@ -584,16 +584,16 @@ importers: specifier: ^7.20.7 version: 7.25.6 '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-nvue-styler': - specifier: 3.0.0-alpha-4020520240719001 - version: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 + version: link:../uni-nvue-styler '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@jridgewell/gen-mapping': specifier: ^0.3.3 @@ -657,16 +657,16 @@ importers: packages/uni-app-vite: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-nvue-styler': - specifier: 3.0.0-alpha-4020520240719001 - version: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 + version: link:../uni-nvue-styler '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@rollup/pluginutils': specifier: ^5.0.5 @@ -718,13 +718,13 @@ importers: packages/uni-app-vue: devDependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared packages/uni-automator: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared address: specifier: ^1.1.2 @@ -791,10 +791,10 @@ importers: specifier: ^7.20.7 version: 7.25.6 '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@intlify/core-base': specifier: 9.1.9 @@ -918,7 +918,7 @@ importers: version: 3.1.0 devDependencies: '@dcloudio/uni-uts-v1': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-uts-v1 '@types/adm-zip': specifier: ^0.5.5 @@ -1012,13 +1012,13 @@ importers: packages/uni-cloud: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/shared': specifier: 3.4.21 @@ -1030,17 +1030,17 @@ importers: packages/uni-components: dependencies: '@dcloudio/uni-cloud': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cloud '@dcloudio/uni-h5': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-h5 '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n devDependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@types/quill': specifier: 1.3.10 @@ -1049,13 +1049,13 @@ importers: packages/uni-core: devDependencies: '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared safe-area-insets: specifier: ^1.4.1 @@ -1064,16 +1064,16 @@ importers: packages/uni-h5: dependencies: '@dcloudio/uni-h5-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-h5-vite '@dcloudio/uni-h5-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-h5-vue '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/server-renderer': specifier: 3.4.21 @@ -1104,7 +1104,7 @@ importers: specifier: ^0.0.8 version: 0.0.8 '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@types/estree': specifier: ^1.0.5 @@ -1137,10 +1137,10 @@ importers: packages/uni-h5-vite: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@rollup/pluginutils': specifier: ^5.0.5 @@ -1198,7 +1198,7 @@ importers: packages/uni-h5-vue: dependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/server-renderer': specifier: 3.4.21 @@ -1209,16 +1209,16 @@ importers: packages/uni-mp-alipay: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/compiler-core': specifier: 3.4.21 @@ -1230,22 +1230,22 @@ importers: packages/uni-mp-baidu: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-weixin '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/compiler-core': specifier: 3.4.21 @@ -1281,10 +1281,10 @@ importers: specifier: ^7.20.7 version: 7.25.6 '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/compiler-core': specifier: 3.4.21 @@ -1314,26 +1314,26 @@ importers: packages/uni-mp-jd: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/shared': specifier: 3.4.21 version: 3.4.21 devDependencies: '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-weixin '@vue/compiler-core': specifier: 3.4.21 @@ -1342,22 +1342,22 @@ importers: packages/uni-mp-kuaishou: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-weixin '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/compiler-core': specifier: 3.4.21 @@ -1369,22 +1369,22 @@ importers: packages/uni-mp-lark: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-compiler '@dcloudio/uni-mp-toutiao': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-toutiao '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/compiler-core': specifier: 3.4.21 @@ -1396,16 +1396,16 @@ importers: packages/uni-mp-qq: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/shared': specifier: 3.4.21 @@ -1415,7 +1415,7 @@ importers: version: 10.1.0 devDependencies: '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-weixin '@types/fs-extra': specifier: ^9.0.13 @@ -1427,19 +1427,19 @@ importers: packages/uni-mp-toutiao: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/compiler-core': specifier: 3.4.21 @@ -1451,19 +1451,19 @@ importers: packages/uni-mp-vite: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-i18n': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-i18n '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/compiler-sfc': specifier: 3.4.21 @@ -1482,29 +1482,29 @@ importers: packages/uni-mp-vue: dependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/shared': specifier: 3.4.21 version: 3.4.21 devDependencies: '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: 'link:' packages/uni-mp-weixin: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/shared': specifier: 3.4.21 @@ -1532,29 +1532,29 @@ importers: packages/uni-mp-xhs: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-compiler '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/shared': specifier: 3.4.21 version: 3.4.21 devDependencies: '@dcloudio/uni-mp-alipay': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-alipay '@dcloudio/uni-mp-weixin': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-weixin '@vue/compiler-core': specifier: 3.4.21 @@ -1581,29 +1581,29 @@ importers: packages/uni-push: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared packages/uni-quickapp-webview: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-mp-vite': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vite '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@vue/shared': specifier: 3.4.21 version: 3.4.21 devDependencies: '@dcloudio/uni-mp-compiler': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-compiler packages/uni-runtime: @@ -1613,7 +1613,7 @@ importers: version: 3.4.21 devDependencies: '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared packages/uni-shared: @@ -1635,10 +1635,10 @@ importers: packages/uni-stat: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared debug: specifier: ^4.3.3 @@ -1657,7 +1657,7 @@ importers: specifier: ^0.7.30 version: 0.7.30 '@dcloudio/uts': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uts '@rollup/pluginutils': specifier: ^5.0.5 @@ -1727,16 +1727,16 @@ importers: packages/uni-vue: devDependencies: '@dcloudio/uni-mp-vue': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-mp-vue '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared packages/uni-vue-devtools: dependencies: '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared detect-port: specifier: ^1.5.1 @@ -1754,22 +1754,22 @@ importers: packages/uts: optionalDependencies: '@dcloudio/uts-darwin-arm64': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uts-darwin-arm64 '@dcloudio/uts-darwin-x64': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uts-darwin-x64 '@dcloudio/uts-linux-x64-gnu': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uts-linux-x64-gnu '@dcloudio/uts-linux-x64-musl': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uts-linux-x64-musl '@dcloudio/uts-win32-ia32-msvc': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uts-win32-ia32-msvc '@dcloudio/uts-win32-x64-msvc': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uts-win32-x64-msvc packages/uts-darwin-arm64: {} @@ -1796,10 +1796,10 @@ importers: specifier: ^7.23.3 version: 7.25.2(@babel/[email protected]) '@dcloudio/uni-cli-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-cli-shared '@dcloudio/uni-shared': - specifier: 3.0.0-alpha-4020520240719001 + specifier: 3.0.0-alpha-4020820240914001 version: link:../uni-shared '@rollup/pluginutils': specifier: ^5.0.5 @@ -2505,7 +2505,7 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} '@colors/[email protected]': - resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} + resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==, tarball: https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz} engines: {node: '>=0.1.90'} '@cypress/[email protected]': @@ -2524,146 +2524,143 @@ packages: '@dcloudio/[email protected]': resolution: {integrity: sha512-QhUpdeT9UR9T0ZWb6BzCDlk5bKfWh8LfjmXObyj7+KZJkukgAOVXwm4qkMkAdUmXjLeuhkVjWLbxbuV2qLycPw==} - '@dcloudio/[email protected]': - resolution: {integrity: sha512-uqUEQH5TKHgXVjwAh6r0GdTxL3saUKDhFMrJoYBhwSsfymI8uXplPSgxBQw3YQXQ6pFDOwJCl0mT3eH89xBUFg==} - '@dcloudio/[email protected]': resolution: {integrity: sha512-jmb98PasFvZkrIDXGh94GbdWg2/jyhgs1HUG+bU8eyL7Ltias/5XBz4q8w9RXyWUfqepJRqapPA2IIQpLCuTIg==} '@esbuild/[email protected]': - resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==} + resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==, tarball: https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz} engines: {node: '>=12'} cpu: [ppc64] os: [aix] '@esbuild/[email protected]': - resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==} + resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==, tarball: https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz} engines: {node: '>=12'} cpu: [arm64] os: [android] '@esbuild/[email protected]': - resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==} + resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==, tarball: https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz} engines: {node: '>=12'} cpu: [arm] os: [android] '@esbuild/[email protected]': - resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==} + resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==, tarball: https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz} engines: {node: '>=12'} cpu: [x64] os: [android] '@esbuild/[email protected]': - resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==} + resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==, tarball: https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz} engines: {node: '>=12'} cpu: [arm64] os: [darwin] '@esbuild/[email protected]': - resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==} + resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==, tarball: https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz} engines: {node: '>=12'} cpu: [x64] os: [darwin] '@esbuild/[email protected]': - resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==} + resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==, tarball: https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] '@esbuild/[email protected]': - resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==} + resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==, tarball: https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz} engines: {node: '>=12'} cpu: [x64] os: [freebsd] '@esbuild/[email protected]': - resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==} + resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==, tarball: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz} engines: {node: '>=12'} cpu: [arm64] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==} + resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==, tarball: https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz} engines: {node: '>=12'} cpu: [arm] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==} + resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==, tarball: https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz} engines: {node: '>=12'} cpu: [ia32] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==} + resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==, tarball: https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz} engines: {node: '>=12'} cpu: [loong64] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==} + resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==, tarball: https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz} engines: {node: '>=12'} cpu: [mips64el] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==} + resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==, tarball: https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz} engines: {node: '>=12'} cpu: [ppc64] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==} + resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==, tarball: https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz} engines: {node: '>=12'} cpu: [riscv64] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==} + resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==, tarball: https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz} engines: {node: '>=12'} cpu: [s390x] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==} + resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==, tarball: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz} engines: {node: '>=12'} cpu: [x64] os: [linux] '@esbuild/[email protected]': - resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==} + resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==, tarball: https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz} engines: {node: '>=12'} cpu: [x64] os: [netbsd] '@esbuild/[email protected]': - resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==} + resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==, tarball: https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz} engines: {node: '>=12'} cpu: [x64] os: [openbsd] '@esbuild/[email protected]': - resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==} + resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==, tarball: https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz} engines: {node: '>=12'} cpu: [x64] os: [sunos] '@esbuild/[email protected]': - resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==} + resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==, tarball: https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz} engines: {node: '>=12'} cpu: [arm64] os: [win32] '@esbuild/[email protected]': - resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==} + resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==, tarball: https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz} engines: {node: '>=12'} cpu: [ia32] os: [win32] '@esbuild/[email protected]': - resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==} + resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==, tarball: https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -3166,82 +3163,82 @@ packages: optional: true '@rollup/[email protected]': - resolution: {integrity: sha512-fSuPrt0ZO8uXeS+xP3b+yYTCBUd05MoSp2N/MFOgjhhUhMmchXlpTQrTpI8T+YAwAQuK7MafsCOxW7VrPMrJcg==} + resolution: {integrity: sha512-fSuPrt0ZO8uXeS+xP3b+yYTCBUd05MoSp2N/MFOgjhhUhMmchXlpTQrTpI8T+YAwAQuK7MafsCOxW7VrPMrJcg==, tarball: https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.21.2.tgz} cpu: [arm] os: [android] '@rollup/[email protected]': - resolution: {integrity: sha512-xGU5ZQmPlsjQS6tzTTGwMsnKUtu0WVbl0hYpTPauvbRAnmIvpInhJtgjj3mcuJpEiuUw4v1s4BimkdfDWlh7gA==} + resolution: {integrity: sha512-xGU5ZQmPlsjQS6tzTTGwMsnKUtu0WVbl0hYpTPauvbRAnmIvpInhJtgjj3mcuJpEiuUw4v1s4BimkdfDWlh7gA==, tarball: https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.21.2.tgz} cpu: [arm64] os: [android] '@rollup/[email protected]': - resolution: {integrity: sha512-99AhQ3/ZMxU7jw34Sq8brzXqWH/bMnf7ZVhvLk9QU2cOepbQSVTns6qoErJmSiAvU3InRqC2RRZ5ovh1KN0d0Q==} + resolution: {integrity: sha512-99AhQ3/ZMxU7jw34Sq8brzXqWH/bMnf7ZVhvLk9QU2cOepbQSVTns6qoErJmSiAvU3InRqC2RRZ5ovh1KN0d0Q==, tarball: https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.21.2.tgz} cpu: [arm64] os: [darwin] '@rollup/[email protected]': - resolution: {integrity: sha512-ZbRaUvw2iN/y37x6dY50D8m2BnDbBjlnMPotDi/qITMJ4sIxNY33HArjikDyakhSv0+ybdUxhWxE6kTI4oX26w==} + resolution: {integrity: sha512-ZbRaUvw2iN/y37x6dY50D8m2BnDbBjlnMPotDi/qITMJ4sIxNY33HArjikDyakhSv0+ybdUxhWxE6kTI4oX26w==, tarball: https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.21.2.tgz} cpu: [x64] os: [darwin] '@rollup/[email protected]': - resolution: {integrity: sha512-ztRJJMiE8nnU1YFcdbd9BcH6bGWG1z+jP+IPW2oDUAPxPjo9dverIOyXz76m6IPA6udEL12reYeLojzW2cYL7w==} + resolution: {integrity: sha512-ztRJJMiE8nnU1YFcdbd9BcH6bGWG1z+jP+IPW2oDUAPxPjo9dverIOyXz76m6IPA6udEL12reYeLojzW2cYL7w==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.21.2.tgz} cpu: [arm] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-flOcGHDZajGKYpLV0JNc0VFH361M7rnV1ee+NTeC/BQQ1/0pllYcFmxpagltANYt8FYf9+kL6RSk80Ziwyhr7w==} + resolution: {integrity: sha512-flOcGHDZajGKYpLV0JNc0VFH361M7rnV1ee+NTeC/BQQ1/0pllYcFmxpagltANYt8FYf9+kL6RSk80Ziwyhr7w==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.21.2.tgz} cpu: [arm] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-69CF19Kp3TdMopyteO/LJbWufOzqqXzkrv4L2sP8kfMaAQ6iwky7NoXTp7bD6/irKgknDKM0P9E/1l5XxVQAhw==} + resolution: {integrity: sha512-69CF19Kp3TdMopyteO/LJbWufOzqqXzkrv4L2sP8kfMaAQ6iwky7NoXTp7bD6/irKgknDKM0P9E/1l5XxVQAhw==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.21.2.tgz} cpu: [arm64] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-48pD/fJkTiHAZTnZwR0VzHrao70/4MlzJrq0ZsILjLW/Ab/1XlVUStYyGt7tdyIiVSlGZbnliqmult/QGA2O2w==} + resolution: {integrity: sha512-48pD/fJkTiHAZTnZwR0VzHrao70/4MlzJrq0ZsILjLW/Ab/1XlVUStYyGt7tdyIiVSlGZbnliqmult/QGA2O2w==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.21.2.tgz} cpu: [arm64] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-cZdyuInj0ofc7mAQpKcPR2a2iu4YM4FQfuUzCVA2u4HI95lCwzjoPtdWjdpDKyHxI0UO82bLDoOaLfpZ/wviyQ==} + resolution: {integrity: sha512-cZdyuInj0ofc7mAQpKcPR2a2iu4YM4FQfuUzCVA2u4HI95lCwzjoPtdWjdpDKyHxI0UO82bLDoOaLfpZ/wviyQ==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.21.2.tgz} cpu: [ppc64] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-RL56JMT6NwQ0lXIQmMIWr1SW28z4E4pOhRRNqwWZeXpRlykRIlEpSWdsgNWJbYBEWD84eocjSGDu/XxbYeCmwg==} + resolution: {integrity: sha512-RL56JMT6NwQ0lXIQmMIWr1SW28z4E4pOhRRNqwWZeXpRlykRIlEpSWdsgNWJbYBEWD84eocjSGDu/XxbYeCmwg==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.21.2.tgz} cpu: [riscv64] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-PMxkrWS9z38bCr3rWvDFVGD6sFeZJw4iQlhrup7ReGmfn7Oukrr/zweLhYX6v2/8J6Cep9IEA/SmjXjCmSbrMQ==} + resolution: {integrity: sha512-PMxkrWS9z38bCr3rWvDFVGD6sFeZJw4iQlhrup7ReGmfn7Oukrr/zweLhYX6v2/8J6Cep9IEA/SmjXjCmSbrMQ==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.21.2.tgz} cpu: [s390x] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-B90tYAUoLhU22olrafY3JQCFLnT3NglazdwkHyxNDYF/zAxJt5fJUB/yBoWFoIQ7SQj+KLe3iL4BhOMa9fzgpw==} + resolution: {integrity: sha512-B90tYAUoLhU22olrafY3JQCFLnT3NglazdwkHyxNDYF/zAxJt5fJUB/yBoWFoIQ7SQj+KLe3iL4BhOMa9fzgpw==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.21.2.tgz} cpu: [x64] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-7twFizNXudESmC9oneLGIUmoHiiLppz/Xs5uJQ4ShvE6234K0VB1/aJYU3f/4g7PhssLGKBVCC37uRkkOi8wjg==} + resolution: {integrity: sha512-7twFizNXudESmC9oneLGIUmoHiiLppz/Xs5uJQ4ShvE6234K0VB1/aJYU3f/4g7PhssLGKBVCC37uRkkOi8wjg==, tarball: https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.21.2.tgz} cpu: [x64] os: [linux] '@rollup/[email protected]': - resolution: {integrity: sha512-9rRero0E7qTeYf6+rFh3AErTNU1VCQg2mn7CQcI44vNUWM9Ze7MSRS/9RFuSsox+vstRt97+x3sOhEey024FRQ==} + resolution: {integrity: sha512-9rRero0E7qTeYf6+rFh3AErTNU1VCQg2mn7CQcI44vNUWM9Ze7MSRS/9RFuSsox+vstRt97+x3sOhEey024FRQ==, tarball: https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.21.2.tgz} cpu: [arm64] os: [win32] '@rollup/[email protected]': - resolution: {integrity: sha512-5rA4vjlqgrpbFVVHX3qkrCo/fZTj1q0Xxpg+Z7yIo3J2AilW7t2+n6Q8Jrx+4MrYpAnjttTYF8rr7bP46BPzRw==} + resolution: {integrity: sha512-5rA4vjlqgrpbFVVHX3qkrCo/fZTj1q0Xxpg+Z7yIo3J2AilW7t2+n6Q8Jrx+4MrYpAnjttTYF8rr7bP46BPzRw==, tarball: https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.21.2.tgz} cpu: [ia32] os: [win32] '@rollup/[email protected]': - resolution: {integrity: sha512-6UUxd0+SKomjdzuAcp+HAmxw1FlGBnl1v2yEPSabtx4lBfdXHDVsW7+lQkgz9cNFJGY3AWR7+V8P5BqkD9L9nA==} + resolution: {integrity: sha512-6UUxd0+SKomjdzuAcp+HAmxw1FlGBnl1v2yEPSabtx4lBfdXHDVsW7+lQkgz9cNFJGY3AWR7+V8P5BqkD9L9nA==, tarball: https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.21.2.tgz} cpu: [x64] os: [win32] @@ -3452,7 +3449,7 @@ packages: resolution: {integrity: sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==} '@types/[email protected]': - resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} + resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==, tarball: https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz} '@typescript-eslint/[email protected]': resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} @@ -4755,7 +4752,7 @@ packages: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} [email protected]: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==, tarball: https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] @@ -8012,11 +8009,6 @@ snapshots: '@dcloudio/[email protected]': {} - '@dcloudio/[email protected]': - dependencies: - parse-css-font: 4.0.0 - postcss: 8.4.45 - '@dcloudio/[email protected]': {} '@esbuild/[email protected]':
92547b91f1f8807096b09e57bd73e3a1c8ec1b73
2022-01-20 15:17:08
qiang
chore: build
false
build
chore
diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index 8fdde6fce32..bf519d1eed5 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -1,3 +1,3 @@ (function(Jn){typeof define=="function"&&define.amd?define(Jn):Jn()})(function(){"use strict";var Jn="",YT="",qT="",Nr={exports:{}},va={exports:{}},da={exports:{}},Uh=da.exports={version:"2.6.12"};typeof __e=="number"&&(__e=Uh);var Ft={exports:{}},ha=Ft.exports=typeof ha!="undefined"&&ha.Math==Math?ha:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=ha);var Hh=da.exports,$l=Ft.exports,Fl="__core-js_shared__",zl=$l[Fl]||($l[Fl]={});(va.exports=function(e,t){return zl[e]||(zl[e]=t!==void 0?t:{})})("versions",[]).push({version:Hh.version,mode:"window",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"});var Wh=0,Vh=Math.random(),Qn=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++Wh+Vh).toString(36))},eo=va.exports("wks"),jh=Qn,to=Ft.exports.Symbol,Ul=typeof to=="function",Yh=Nr.exports=function(e){return eo[e]||(eo[e]=Ul&&to[e]||(Ul?to:jh)("Symbol."+e))};Yh.store=eo;var ga={},ro=function(e){return typeof e=="object"?e!==null:typeof e=="function"},qh=ro,io=function(e){if(!qh(e))throw TypeError(e+" is not an object!");return e},pa=function(e){try{return!!e()}catch(t){return!0}},ci=!pa(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Hl=ro,ao=Ft.exports.document,Xh=Hl(ao)&&Hl(ao.createElement),Wl=function(e){return Xh?ao.createElement(e):{}},Zh=!ci&&!pa(function(){return Object.defineProperty(Wl("div"),"a",{get:function(){return 7}}).a!=7}),ma=ro,Kh=function(e,t){if(!ma(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!ma(i=r.call(e))||typeof(r=e.valueOf)=="function"&&!ma(i=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ma(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")},Vl=io,Gh=Zh,Jh=Kh,Qh=Object.defineProperty;ga.f=ci?Object.defineProperty:function(t,r,i){if(Vl(t),r=Jh(r,!0),Vl(i),Gh)try{return Qh(t,r,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[r]=i.value),t};var jl=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},eg=ga,tg=jl,Dr=ci?function(e,t,r){return eg.f(e,t,tg(1,r))}:function(e,t,r){return e[t]=r,e},no=Nr.exports("unscopables"),oo=Array.prototype;oo[no]==null&&Dr(oo,no,{});var rg=function(e){oo[no][e]=!0},ig=function(e,t){return{value:t,done:!!e}},so={},ag={}.toString,ng=function(e){return ag.call(e).slice(8,-1)},og=ng,sg=Object("z").propertyIsEnumerable(0)?Object:function(e){return og(e)=="String"?e.split(""):Object(e)},Yl=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},lg=sg,ug=Yl,_a=function(e){return lg(ug(e))},ba={exports:{}},fg={}.hasOwnProperty,wa=function(e,t){return fg.call(e,t)},cg=va.exports("native-function-to-string",Function.toString),vg=Ft.exports,xa=Dr,ql=wa,lo=Qn("src"),uo=cg,Xl="toString",dg=(""+uo).split(Xl);da.exports.inspectSource=function(e){return uo.call(e)},(ba.exports=function(e,t,r,i){var a=typeof r=="function";a&&(ql(r,"name")||xa(r,"name",t)),e[t]!==r&&(a&&(ql(r,lo)||xa(r,lo,e[t]?""+e[t]:dg.join(String(t)))),e===vg?e[t]=r:i?e[t]?e[t]=r:xa(e,t,r):(delete e[t],xa(e,t,r)))})(Function.prototype,Xl,function(){return typeof this=="function"&&this[lo]||uo.call(this)});var Zl=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},hg=Zl,gg=function(e,t,r){if(hg(e),t===void 0)return e;switch(r){case 1:return function(i){return e.call(t,i)};case 2:return function(i,a){return e.call(t,i,a)};case 3:return function(i,a,n){return e.call(t,i,a,n)}}return function(){return e.apply(t,arguments)}},Br=Ft.exports,ya=da.exports,pg=Dr,mg=ba.exports,Kl=gg,fo="prototype",We=function(e,t,r){var i=e&We.F,a=e&We.G,n=e&We.S,o=e&We.P,s=e&We.B,u=a?Br:n?Br[t]||(Br[t]={}):(Br[t]||{})[fo],l=a?ya:ya[t]||(ya[t]={}),f=l[fo]||(l[fo]={}),v,m,d,_;a&&(r=t);for(v in r)m=!i&&u&&u[v]!==void 0,d=(m?u:r)[v],_=s&&m?Kl(d,Br):o&&typeof d=="function"?Kl(Function.call,d):d,u&&mg(u,v,d,e&We.U),l[v]!=d&&pg(l,v,_),o&&f[v]!=d&&(f[v]=d)};Br.core=ya,We.F=1,We.G=2,We.S=4,We.P=8,We.B=16,We.W=32,We.U=64,We.R=128;var co=We,_g=Math.ceil,bg=Math.floor,Gl=function(e){return isNaN(e=+e)?0:(e>0?bg:_g)(e)},wg=Gl,xg=Math.min,yg=function(e){return e>0?xg(wg(e),9007199254740991):0},Sg=Gl,Eg=Math.max,Tg=Math.min,Cg=function(e,t){return e=Sg(e),e<0?Eg(e+t,0):Tg(e,t)},Og=_a,Ag=yg,Ig=Cg,kg=function(e){return function(t,r,i){var a=Og(t),n=Ag(a.length),o=Ig(i,n),s;if(e&&r!=r){for(;n>o;)if(s=a[o++],s!=s)return!0}else for(;n>o;o++)if((e||o in a)&&a[o]===r)return e||o||0;return!e&&-1}},Jl=va.exports("keys"),Mg=Qn,vo=function(e){return Jl[e]||(Jl[e]=Mg(e))},Ql=wa,Rg=_a,Lg=kg(!1),Pg=vo("IE_PROTO"),Ng=function(e,t){var r=Rg(e),i=0,a=[],n;for(n in r)n!=Pg&&Ql(r,n)&&a.push(n);for(;t.length>i;)Ql(r,n=t[i++])&&(~Lg(a,n)||a.push(n));return a},eu="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Dg=Ng,Bg=eu,ho=Object.keys||function(t){return Dg(t,Bg)},$g=ga,Fg=io,zg=ho,Ug=ci?Object.defineProperties:function(t,r){Fg(t);for(var i=zg(r),a=i.length,n=0,o;a>n;)$g.f(t,o=i[n++],r[o]);return t},tu=Ft.exports.document,Hg=tu&&tu.documentElement,Wg=io,Vg=Ug,ru=eu,jg=vo("IE_PROTO"),go=function(){},po="prototype",Sa=function(){var e=Wl("iframe"),t=ru.length,r="<",i=">",a;for(e.style.display="none",Hg.appendChild(e),e.src="javascript:",a=e.contentWindow.document,a.open(),a.write(r+"script"+i+"document.F=Object"+r+"/script"+i),a.close(),Sa=a.F;t--;)delete Sa[po][ru[t]];return Sa()},Yg=Object.create||function(t,r){var i;return t!==null?(go[po]=Wg(t),i=new go,go[po]=null,i[jg]=t):i=Sa(),r===void 0?i:Vg(i,r)},qg=ga.f,Xg=wa,iu=Nr.exports("toStringTag"),au=function(e,t,r){e&&!Xg(e=r?e:e.prototype,iu)&&qg(e,iu,{configurable:!0,value:t})},Zg=Yg,Kg=jl,Gg=au,nu={};Dr(nu,Nr.exports("iterator"),function(){return this});var Jg=function(e,t,r){e.prototype=Zg(nu,{next:Kg(1,r)}),Gg(e,t+" Iterator")},Qg=Yl,ou=function(e){return Object(Qg(e))},ep=wa,tp=ou,su=vo("IE_PROTO"),rp=Object.prototype,ip=Object.getPrototypeOf||function(e){return e=tp(e),ep(e,su)?e[su]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?rp:null},mo=co,ap=ba.exports,lu=Dr,uu=so,np=Jg,op=au,sp=ip,vi=Nr.exports("iterator"),_o=!([].keys&&"next"in[].keys()),lp="@@iterator",fu="keys",Ea="values",cu=function(){return this},up=function(e,t,r,i,a,n,o){np(r,t,i);var s=function(c){if(!_o&&c in v)return v[c];switch(c){case fu:return function(){return new r(this,c)};case Ea:return function(){return new r(this,c)}}return function(){return new r(this,c)}},u=t+" Iterator",l=a==Ea,f=!1,v=e.prototype,m=v[vi]||v[lp]||a&&v[a],d=m||s(a),_=a?l?s("entries"):d:void 0,b=t=="Array"&&v.entries||m,x,p,g;if(b&&(g=sp(b.call(new e)),g!==Object.prototype&&g.next&&(op(g,u,!0),typeof g[vi]!="function"&&lu(g,vi,cu))),l&&m&&m.name!==Ea&&(f=!0,d=function(){return m.call(this)}),(_o||f||!v[vi])&&lu(v,vi,d),uu[t]=d,uu[u]=cu,a)if(x={values:l?d:s(Ea),keys:n?d:s(fu),entries:_},o)for(p in x)p in v||ap(v,p,x[p]);else mo(mo.P+mo.F*(_o||f),t,x);return x},bo=rg,Ta=ig,vu=so,fp=_a,cp=up(Array,"Array",function(e,t){this._t=fp(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,Ta(1)):t=="keys"?Ta(0,r):t=="values"?Ta(0,e[r]):Ta(0,[r,e[r]])},"values");vu.Arguments=vu.Array,bo("keys"),bo("values"),bo("entries");for(var du=cp,vp=ho,dp=ba.exports,hp=Ft.exports,hu=Dr,gu=so,pu=Nr.exports,mu=pu("iterator"),_u=pu("toStringTag"),bu=gu.Array,wu={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},xu=vp(wu),wo=0;wo<xu.length;wo++){var Ca=xu[wo],gp=wu[Ca],yu=hp[Ca],sr=yu&&yu.prototype,Oa;if(sr&&(sr[mu]||hu(sr,mu,bu),sr[_u]||hu(sr,_u,Ca),gu[Ca]=bu,gp))for(Oa in du)sr[Oa]||dp(sr,Oa,du[Oa],!0)}function Aa(e,t){for(var r=Object.create(null),i=e.split(","),a=0;a<i.length;a++)r[i[a]]=!0;return t?n=>!!r[n.toLowerCase()]:n=>!!r[n]}var pp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",mp=Aa(pp);function Su(e){return!!e||e===""}var _p=Aa("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function xo(e){if(ne(e)){for(var t={},r=0;r<e.length;r++){var i=e[r],a=ye(i)?Eu(i):xo(i);if(a)for(var n in a)t[n]=a[n]}return t}else{if(ye(e))return e;if(He(e))return e}}var bp=/;(?![^(]*\))/g,wp=/:(.+)/;function Eu(e){var t={};return e.split(bp).forEach(r=>{if(r){var i=r.split(wp);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function xp(e){var t="";if(!e||ye(e))return t;for(var r in e){var i=e[r],a=r.startsWith("--")?r:Ke(r);(ye(i)||typeof i=="number"&&_p(a))&&(t+="".concat(a,":").concat(i,";"))}return t}function yo(e){var t="";if(ye(e))t=e;else if(ne(e))for(var r=0;r<e.length;r++){var i=yo(e[r]);i&&(t+=i+" ")}else if(He(e))for(var a in e)e[a]&&(t+=a+" ");return t.trim()}var xe={},di=[],pt=()=>{},yp=()=>!1,Sp=/^on[^a-z]/,Ia=e=>Sp.test(e),So=e=>e.startsWith("onUpdate:"),ve=Object.assign,Eo=(e,t)=>{var r=e.indexOf(t);r>-1&&e.splice(r,1)},Ep=Object.prototype.hasOwnProperty,re=(e,t)=>Ep.call(e,t),ne=Array.isArray,hi=e=>gi(e)==="[object Map]",Tp=e=>gi(e)==="[object Set]",oe=e=>typeof e=="function",ye=e=>typeof e=="string",To=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",Tu=e=>He(e)&&oe(e.then)&&oe(e.catch),Cp=Object.prototype.toString,gi=e=>Cp.call(e),Co=e=>gi(e).slice(8,-1),mt=e=>gi(e)==="[object Object]",Oo=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ka=Aa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ma=e=>{var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}},Op=/-(\w)/g,zt=Ma(e=>e.replace(Op,(t,r)=>r?r.toUpperCase():"")),Ap=/\B([A-Z])/g,Ke=Ma(e=>e.replace(Ap,"-$1").toLowerCase()),Ra=Ma(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ao=Ma(e=>e?"on".concat(Ra(e)):""),pi=(e,t)=>!Object.is(e,t),Io=(e,t)=>{for(var r=0;r<e.length;r++)e[r](t)},La=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Ip=e=>{var t=parseFloat(e);return isNaN(t)?e:t},Cu,kp=()=>Cu||(Cu=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{}),mi=` `,Ou=44,Pa="#007aff",Mp=/^([a-z-]+:)?\/\//i,Rp=/^data:.*,.*/,Au="wxs://",Iu="json://",Lp="wxsModules",Pp="renderjsModules",Np="onPageScroll",Dp="onReachBottom",Bp="onWxsInvokeCallMethod",ko=0;function Mo(e){var t=Date.now(),r=ko?t-ko:0;ko=t;for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return"[".concat(t,"][").concat(r,"ms][").concat(e,"]\uFF1A").concat(a.map(o=>JSON.stringify(o)).join(" "))}function Ro(e){return ve({},e.dataset,e.__uniDataset)}function _i(e){return{passive:e}}function Lo(e){var{id:t,offsetTop:r,offsetLeft:i}=e;return{id:t,dataset:Ro(e),offsetTop:r,offsetLeft:i}}function $p(e,t,r){var i=document.fonts;if(i){var a=new FontFace(e,t,r);return a.load().then(()=>{i.add&&i.add(a)})}return new Promise(n=>{var o=document.createElement("style"),s=[];if(r){var{style:u,weight:l,stretch:f,unicodeRange:v,variant:m,featureSettings:d}=r;u&&s.push("font-style:".concat(u)),l&&s.push("font-weight:".concat(l)),f&&s.push("font-stretch:".concat(f)),v&&s.push("unicode-range:".concat(v)),m&&s.push("font-variant:".concat(m)),d&&s.push("font-feature-settings:".concat(d))}o.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(s.join(";"),"}"),document.head.appendChild(o),n()})}function Fp(e,t){if(ye(e)){var r=document.querySelector(e);r&&(e=r.getBoundingClientRect().top+window.pageYOffset)}e<0&&(e=0);var i=document.documentElement,{clientHeight:a,scrollHeight:n}=i;if(e=Math.min(e,n-a),t===0){i.scrollTop=document.body.scrollTop=e;return}if(window.scrollY!==e){var o=s=>{if(s<=0){window.scrollTo(0,e);return}var u=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+u/s*10),o(s-10)})};o(t)}}function zp(){return typeof __channelId__=="string"&&__channelId__}function Up(e,t){switch(Co(t)){case"Function":return"function() { [native code] }";default:return t}}function Hp(e,t,r){if(zp())return r.push(t.replace("at ","uni-app:///")),console[e].apply(console,r);var i=r.map(function(a){var n=gi(a).toLowerCase();if(n==="[object object]"||n==="[object array]")try{a="---BEGIN:JSON---"+JSON.stringify(a,Up)+"---END:JSON---"}catch(s){a=n}else if(a===null)a="---NULL---";else if(a===void 0)a="---UNDEFINED---";else{var o=Co(a).toUpperCase();o==="NUMBER"||o==="BOOLEAN"?a="---BEGIN:"+o+"---"+a+"---END:"+o+"---":a=String(a)}return a});return i.join("---COMMA---")+" "+t}function Wp(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var n=Hp(e,t,i);n&&console[e](n)}function $r(e){if(typeof e=="function"){if(window.plus)return e();document.addEventListener("plusready",e)}}function Vp(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(Ra(zt(e)))}var ku=/(?:Once|Passive|Capture)$/;function Po(e){var t;if(ku.test(e)){t={};for(var r;r=e.match(ku);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ke(e.slice(2)),t]}var No={stop:1,prevent:1<<1,self:1<<2},Mu="class",Do="style",jp="innerHTML",Yp="textContent",Na=".vShow",Ru=".vOwnerId",Lu=".vRenderjs",Bo="change:",Pu=1,qp=2,Xp=3,Zp=5,Kp=6,Gp=7,Jp=8,Qp=9,e0=10,t0=12,r0=15,i0=20;function a0(e){var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}}function n0(e){return a0(e)}function o0(e){return e.indexOf("/")===0}function $o(e){return o0(e)?e:"/"+e}function Da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r;return function(){if(e){for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];r=e.apply(t,a),e=null}return r}}function Nu(e,t){if(!!ye(t)){t=t.replace(/\[(\d+)\]/g,".$1");var r=t.split("."),i=r[0];return e||(e={}),r.length===1?e[i]:Nu(e[i],r.slice(1).join("."))}}function s0(e,t){var r,i=function(){clearTimeout(r);var a=()=>e.apply(this,arguments);r=setTimeout(a,t)};return i.cancel=function(){clearTimeout(r)},i}var l0=Array.isArray,u0=e=>e!==null&&typeof e=="object",f0=["{","}"];class c0{constructor(){this._caches=Object.create(null)}interpolate(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f0;if(!r)return[t];var a=this._caches[t];return a||(a=h0(t,i),this._caches[t]=a),g0(a,r)}}var v0=/^(?:\d)+/,d0=/^(?:\w)+/;function h0(e,t){for(var[r,i]=t,a=[],n=0,o="";n<e.length;){var s=e[n++];if(s===r){o&&a.push({type:"text",value:o}),o="";var u="";for(s=e[n++];s!==void 0&&s!==i;)u+=s,s=e[n++];var l=s===i,f=v0.test(u)?"list":l&&d0.test(u)?"named":"unknown";a.push({value:u,type:f})}else o+=s}return o&&a.push({type:"text",value:o}),a}function g0(e,t){var r=[],i=0,a=l0(t)?"list":u0(t)?"named":"unknown";if(a==="unknown")return r;for(;i<e.length;){var n=e[i];switch(n.type){case"text":r.push(n.value);break;case"list":r.push(t[parseInt(n.value,10)]);break;case"named":a==="named"&&r.push(t[n.value]);break}i++}return r}var bi="zh-Hans",Ba="zh-Hant",Ut="en",Fo="fr",zo="es",p0=Object.prototype.hasOwnProperty,Du=(e,t)=>p0.call(e,t),m0=new c0;function _0(e,t){return!!t.find(r=>e.indexOf(r)!==-1)}function b0(e,t){return t.find(r=>e.indexOf(r)===0)}function Bu(e,t){if(!!e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return bi;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?bi:e.indexOf("-hant")>-1||_0(e,["-tw","-hk","-mo","-cht"])?Ba:bi;var r=b0(e,[Ut,Fo,zo]);if(r)return r}}class w0{constructor(t){var{locale:r,fallbackLocale:i,messages:a,watcher:n,formater:o}=t;this.locale=Ut,this.fallbackLocale=Ut,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=o||m0,this.messages=a||{},this.setLocale(r||Ut),n&&this.watchLocale(n)}setLocale(t){var r=this.locale;this.locale=Bu(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach(i=>{i(this.locale,r)})}getLocale(){return this.locale}watchLocale(t){var r=this.watchers.push(t)-1;return()=>{this.watchers.splice(r,1)}}add(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=this.messages[t];a?i?Object.assign(a,r):Object.keys(r).forEach(n=>{Du(a,n)||(a[n]=r[n])}):this.messages[t]=r}f(t,r,i){return this.formater.interpolate(t,r,i).join("")}t(t,r,i){var a=this.message;return typeof r=="string"?(r=Bu(r,this.messages),r&&(a=this.messages[r])):i=r,Du(a,t)?this.formater.interpolate(a[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}function x0(e,t){e.$watchLocale?e.$watchLocale(r=>{t.setLocale(r)}):e.$watch(()=>e.$locale,r=>{t.setLocale(r)})}function y0(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof window!="undefined"&&window.getLocale?window.getLocale():Ut}function S0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;typeof e!="string"&&([e,t]=[t,e]),typeof e!="string"&&(e=y0()),typeof r!="string"&&(r=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||Ut);var a=new w0({locale:e,fallbackLocale:r,messages:t,watcher:i}),n=(o,s)=>{if(typeof getApp!="function")n=function(l,f){return a.t(l,f)};else{var u=!1;n=function(l,f){var v=getApp().$vm;return v&&(v.$locale,u||(u=!0,x0(v,a))),a.t(l,f)}}return n(o,s)};return{i18n:a,f(o,s,u){return a.f(o,s,u)},t(o,s){return n(o,s)},add(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.add(o,s,u)},watch(o){return a.watchLocale(o)},getLocale(){return a.getLocale()},setLocale(o){return a.setLocale(o)}}}var E0=Da(()=>typeof __uniConfig!="undefined"&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length),wi;function Ge(){if(!wi){var e;if(typeof getApp=="function"?e=weex.requireModule("plus").getLanguage():e=plus.webview.currentWebview().getStyle().locale,wi=S0(e),E0()){var t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(r=>wi.add(r,__uniConfig.locales[r])),wi.setLocale(e)}}return wi}function _t(e,t,r){return t.reduce((i,a,n)=>(i[e+a]=r[n],i),{})}var T0=Da(()=>{var e="uni.picker.",t=["done","cancel"];Ge().add(Ut,_t(e,t,["Done","Cancel"]),!1),Ge().add(zo,_t(e,t,["OK","Cancelar"]),!1),Ge().add(Fo,_t(e,t,["OK","Annuler"]),!1),Ge().add(bi,_t(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1),Ge().add(Ba,_t(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1)}),C0=Da(()=>{var e="uni.button.",t=["feedback.title","feedback.send"];Ge().add(Ut,_t(e,t,["feedback","send"]),!1),Ge().add(zo,_t(e,t,["realimentaci\xF3n","enviar"]),!1),Ge().add(Fo,_t(e,t,["retour d'information","envoyer"]),!1),Ge().add(bi,_t(e,t,["\u95EE\u9898\u53CD\u9988","\u53D1\u9001"]),!1),Ge().add(Ba,_t(e,t,["\u554F\u984C\u53CD\u994B","\u767C\u9001"]),!1)}),$u=function(){};$u.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function a(){i.off(e,a),t.apply(r,arguments)}return a._=t,this.on(e,a,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,a=r.length;for(i;i<a;i++)r[i].fn.apply(r[i].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),i=r[e],a=[];if(i&&t)for(var n=0,o=i.length;n<o;n++)i[n].fn!==t&&i[n].fn._!==t&&a.push(i[n]);return a.length?r[e]=a:delete r[e],this}};function O0(e){var t=new $u;return{on(r,i){return t.on(r,i)},once(r,i){return t.once(r,i)},off(r,i){return t.off(r,i)},emit(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return t.emit(r,...a)},subscribe(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t[a?"once":"on"]("".concat(e,".").concat(r),i)},unsubscribe(r,i){t.off("".concat(e,".").concat(r),i)},subscribeHandler(r,i,a){t.emit("".concat(e,".").concat(r),i,a)}}}var Fu="invokeViewApi",zu="invokeServiceApi",A0=1,I0=(e,t,r)=>{var{subscribe:i,publishHandler:a}=UniViewJSBridge,n=r?A0++:0;r&&i(zu+"."+n,r,!0),a(zu,{id:n,name:e,args:t})},$a=Object.create(null);function Fa(e,t){return e+"."+t}function k0(e,t){UniViewJSBridge.subscribe(Fa(e,Fu),t?t(Uu):Uu)}function bt(e,t,r){t=Fa(e,t),$a[t]||($a[t]=r)}function M0(e,t){t=Fa(e,t),delete $a[t]}function Uu(e,t){var{id:r,name:i,args:a}=e;i=Fa(t,i);var n=s=>{r&&UniViewJSBridge.publishHandler(Fu+"."+r,s)},o=$a[i];o?o(a,n):n({})}var R0=ve(O0("service"),{invokeServiceMethod:I0}),L0=350,Hu=10,za=_i(!0),xi;function yi(){xi&&(clearTimeout(xi),xi=null)}var Wu=0,Vu=0;function P0(e){if(yi(),e.touches.length===1){var{pageX:t,pageY:r}=e.touches[0];Wu=t,Vu=r,xi=setTimeout(function(){var i=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});i.touches=e.touches,i.changedTouches=e.changedTouches,e.target.dispatchEvent(i)},L0)}}function N0(e){if(!!xi){if(e.touches.length!==1)return yi();var{pageX:t,pageY:r}=e.touches[0];if(Math.abs(t-Wu)>Hu||Math.abs(r-Vu)>Hu)return yi()}}function D0(){window.addEventListener("touchstart",P0,za),window.addEventListener("touchmove",N0,za),window.addEventListener("touchend",yi,za),window.addEventListener("touchcancel",yi,za)}function ju(e,t){var r=Number(e);return isNaN(r)?t:r}function B0(){var e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90,r=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,i=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r;return i}function $0(){function e(){var t=__uniConfig.globalStyle||{},r=ju(t.rpxCalcMaxDeviceWidth,960),i=ju(t.rpxCalcBaseDeviceWidth,375),a=B0();a=a<=r?a:i,document.documentElement.style.fontSize=a/23.4375+"px"}e(),document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e),window.addEventListener("resize",e)}function F0(){$0(),D0()}var z0=pa,U0=function(e,t){return!!e&&z0(function(){t?e.call(null,function(){},1):e.call(null)})},Uo=co,H0=Zl,Yu=ou,qu=pa,Ho=[].sort,Xu=[1,2,3];Uo(Uo.P+Uo.F*(qu(function(){Xu.sort(void 0)})||!qu(function(){Xu.sort(null)})||!U0(Ho)),"Array",{sort:function(t){return t===void 0?Ho.call(Yu(this)):Ho.call(Yu(this),H0(t))}});var lr,Ua=[];class W0{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.active=!0,this.effects=[],this.cleanups=[],!t&&lr&&(this.parent=lr,this.index=(lr.scopes||(lr.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Ua.push(this),lr=this)}off(){this.active&&(Ua.pop(),lr=Ua[Ua.length-1])}stop(t){if(this.active){if(this.effects.forEach(i=>i.stop()),this.cleanups.forEach(i=>i()),this.scopes&&this.scopes.forEach(i=>i.stop(!0)),this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function V0(e,t){t=t||lr,t&&t.active&&t.effects.push(e)}var Wo=e=>{var t=new Set(e);return t.w=0,t.n=0,t},Zu=e=>(e.w&Ht)>0,Ku=e=>(e.n&Ht)>0,j0=e=>{var{deps:t}=e;if(t.length)for(var r=0;r<t.length;r++)t[r].w|=Ht},Y0=e=>{var{deps:t}=e;if(t.length){for(var r=0,i=0;i<t.length;i++){var a=t[i];Zu(a)&&!Ku(a)?a.delete(e):t[r++]=a,a.w&=~Ht,a.n&=~Ht}t.length=r}},Vo=new WeakMap,Si=0,Ht=1,jo=30,Ei=[],ur,fr=Symbol(""),Yo=Symbol("");class qo{constructor(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],V0(this,i)}run(){if(!this.active)return this.fn();if(!Ei.includes(this))try{return Ei.push(ur=this),q0(),Ht=1<<++Si,Si<=jo?j0(this):Gu(this),this.fn()}finally{Si<=jo&&Y0(this),Ht=1<<--Si,cr(),Ei.pop();var t=Ei.length;ur=t>0?Ei[t-1]:void 0}}stop(){this.active&&(Gu(this),this.onStop&&this.onStop(),this.active=!1)}}function Gu(e){var{deps:t}=e;if(t.length){for(var r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var Fr=!0,Xo=[];function zr(){Xo.push(Fr),Fr=!1}function q0(){Xo.push(Fr),Fr=!0}function cr(){var e=Xo.pop();Fr=e===void 0?!0:e}function Je(e,t,r){if(!!Ju()){var i=Vo.get(e);i||Vo.set(e,i=new Map);var a=i.get(r);a||i.set(r,a=Wo()),Qu(a)}}function Ju(){return Fr&&ur!==void 0}function Qu(e,t){var r=!1;Si<=jo?Ku(e)||(e.n|=Ht,r=!Zu(e)):r=!e.has(ur),r&&(e.add(ur),ur.deps.push(e))}function Mt(e,t,r,i,a,n){var o=Vo.get(e);if(!!o){var s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&ne(e))o.forEach((f,v)=>{(v==="length"||v>=i)&&s.push(f)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":ne(e)?Oo(r)&&s.push(o.get("length")):(s.push(o.get(fr)),hi(e)&&s.push(o.get(Yo)));break;case"delete":ne(e)||(s.push(o.get(fr)),hi(e)&&s.push(o.get(Yo)));break;case"set":hi(e)&&s.push(o.get(fr));break}if(s.length===1)s[0]&&Zo(s[0]);else{var u=[];for(var l of s)l&&u.push(...l);Zo(Wo(u))}}}function Zo(e,t){for(var r of ne(e)?e:[...e])(r!==ur||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}var X0=Aa("__proto__,__v_isRef,__isVue"),ef=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(To)),Z0=Ko(),K0=Ko(!1,!0),G0=Ko(!0),tf=J0();function J0(){var e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(){for(var r=me(this),i=0,a=this.length;i<a;i++)Je(r,"get",i+"");for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var u=r[t](...o);return u===-1||u===!1?r[t](...o.map(me)):u}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(){zr();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var n=me(this)[t].apply(this,i);return cr(),n}}),e}function Ko(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i,a,n){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&n===(e?t?hm:cf:t?ff:uf).get(i))return i;var o=ne(i);if(!e&&o&&re(tf,a))return Reflect.get(tf,a,n);var s=Reflect.get(i,a,n);if((To(a)?ef.has(a):X0(a))||(e||Je(i,"get",a),t))return s;if(Ve(s)){var u=!o||!Oo(a);return u?s.value:s}return He(s)?e?vf(s):Ae(s):s}}var Q0=rf(),em=rf(!0);function rf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return function(r,i,a,n){var o=r[i];if(!e&&!Xa(a)&&(df(a)||(a=me(a),o=me(o)),!ne(r)&&Ve(o)&&!Ve(a)))return o.value=a,!0;var s=ne(r)&&Oo(i)?Number(i)<r.length:re(r,i),u=Reflect.set(r,i,a,n);return r===me(n)&&(s?pi(a,o)&&Mt(r,"set",i,a):Mt(r,"add",i,a)),u}}function tm(e,t){var r=re(e,t);e[t];var i=Reflect.deleteProperty(e,t);return i&&r&&Mt(e,"delete",t,void 0),i}function rm(e,t){var r=Reflect.has(e,t);return(!To(t)||!ef.has(t))&&Je(e,"has",t),r}function im(e){return Je(e,"iterate",ne(e)?"length":fr),Reflect.ownKeys(e)}var af={get:Z0,set:Q0,deleteProperty:tm,has:rm,ownKeys:im},am={get:G0,set(e,t){return!0},deleteProperty(e,t){return!0}},nm=ve({},af,{get:K0,set:em}),Go=e=>e,Ha=e=>Reflect.getPrototypeOf(e);function Wa(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e=e.__v_raw;var a=me(e),n=me(t);t!==n&&!r&&Je(a,"get",t),!r&&Je(a,"get",n);var{has:o}=Ha(a),s=i?Go:r?es:Ti;if(o.call(a,t))return s(e.get(t));if(o.call(a,n))return s(e.get(n));e!==a&&e.get(t)}function Va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.__v_raw,i=me(r),a=me(e);return e!==a&&!t&&Je(i,"has",e),!t&&Je(i,"has",a),e===a?r.has(e):r.has(e)||r.has(a)}function ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e=e.__v_raw,!t&&Je(me(e),"iterate",fr),Reflect.get(e,"size",e)}function nf(e){e=me(e);var t=me(this),r=Ha(t),i=r.has.call(t,e);return i||(t.add(e),Mt(t,"add",e,e)),this}function of(e,t){t=me(t);var r=me(this),{has:i,get:a}=Ha(r),n=i.call(r,e);n||(e=me(e),n=i.call(r,e));var o=a.call(r,e);return r.set(e,t),n?pi(t,o)&&Mt(r,"set",e,t):Mt(r,"add",e,t),this}function sf(e){var t=me(this),{has:r,get:i}=Ha(t),a=r.call(t,e);a||(e=me(e),a=r.call(t,e)),i&&i.call(t,e);var n=t.delete(e);return a&&Mt(t,"delete",e,void 0),n}function lf(){var e=me(this),t=e.size!==0,r=e.clear();return t&&Mt(e,"clear",void 0,void 0),r}function Ya(e,t){return function(i,a){var n=this,o=n.__v_raw,s=me(o),u=t?Go:e?es:Ti;return!e&&Je(s,"iterate",fr),o.forEach((l,f)=>i.call(a,u(l),u(f),n))}}function qa(e,t,r){return function(){var i=this.__v_raw,a=me(i),n=hi(a),o=e==="entries"||e===Symbol.iterator&&n,s=e==="keys"&&n,u=i[e](...arguments),l=r?Go:t?es:Ti;return!t&&Je(a,"iterate",s?Yo:fr),{next(){var{value:f,done:v}=u.next();return v?{value:f,done:v}:{value:o?[l(f[0]),l(f[1])]:l(f),done:v}},[Symbol.iterator](){return this}}}}function Wt(e){return function(){return e==="delete"?!1:this}}function om(){var e={get(n){return Wa(this,n)},get size(){return ja(this)},has:Va,add:nf,set:of,delete:sf,clear:lf,forEach:Ya(!1,!1)},t={get(n){return Wa(this,n,!1,!0)},get size(){return ja(this)},has:Va,add:nf,set:of,delete:sf,clear:lf,forEach:Ya(!1,!0)},r={get(n){return Wa(this,n,!0)},get size(){return ja(this,!0)},has(n){return Va.call(this,n,!0)},add:Wt("add"),set:Wt("set"),delete:Wt("delete"),clear:Wt("clear"),forEach:Ya(!0,!1)},i={get(n){return Wa(this,n,!0,!0)},get size(){return ja(this,!0)},has(n){return Va.call(this,n,!0)},add:Wt("add"),set:Wt("set"),delete:Wt("delete"),clear:Wt("clear"),forEach:Ya(!0,!0)},a=["keys","values","entries",Symbol.iterator];return a.forEach(n=>{e[n]=qa(n,!1,!1),r[n]=qa(n,!0,!1),t[n]=qa(n,!1,!0),i[n]=qa(n,!0,!0)}),[e,r,t,i]}var[sm,lm,um,fm]=om();function Jo(e,t){var r=t?e?fm:um:e?lm:sm;return(i,a,n)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?i:Reflect.get(re(r,a)&&a in i?r:i,a,n)}var cm={get:Jo(!1,!1)},vm={get:Jo(!1,!0)},dm={get:Jo(!0,!1)},uf=new WeakMap,ff=new WeakMap,cf=new WeakMap,hm=new WeakMap;function gm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pm(e){return e.__v_skip||!Object.isExtensible(e)?0:gm(Co(e))}function Ae(e){return Xa(e)?e:Qo(e,!1,af,cm,uf)}function mm(e){return Qo(e,!1,nm,vm,ff)}function vf(e){return Qo(e,!0,am,dm,cf)}function Qo(e,t,r,i,a){if(!He(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;var n=a.get(e);if(n)return n;var o=pm(e);if(o===0)return e;var s=new Proxy(e,o===2?i:r);return a.set(e,s),s}function Ur(e){return Xa(e)?Ur(e.__v_raw):!!(e&&e.__v_isReactive)}function Xa(e){return!!(e&&e.__v_isReadonly)}function df(e){return!!(e&&e.__v_isShallow)}function hf(e){return Ur(e)||Xa(e)}function me(e){var t=e&&e.__v_raw;return t?me(t):e}function Za(e){return La(e,"__v_skip",!0),e}var Ti=e=>He(e)?Ae(e):e,es=e=>He(e)?vf(e):e;function gf(e){Ju()&&(e=me(e),e.dep||(e.dep=Wo()),Qu(e.dep))}function pf(e,t){e=me(e),e.dep&&Zo(e.dep)}function Ve(e){return Boolean(e&&e.__v_isRef===!0)}function U(e){return mf(e,!1)}function ts(e){return mf(e,!0)}function mf(e,t){return Ve(e)?e:new _m(e,t)}class _m{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:me(t),this._value=r?t:Ti(t)}get value(){return gf(this),this._value}set value(t){t=this.__v_isShallow?t:me(t),pi(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Ti(t),pf(this))}}function bm(e){return Ve(e)?e.value:e}var wm={get:(e,t,r)=>bm(Reflect.get(e,t,r)),set:(e,t,r,i)=>{var a=e[t];return Ve(a)&&!Ve(r)?(a.value=r,!0):Reflect.set(e,t,r,i)}};function _f(e){return Ur(e)?e:new Proxy(e,wm)}class xm{constructor(t,r,i,a){this._setter=r,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new qo(t,()=>{this._dirty||(this._dirty=!0,pf(this))}),this.effect.active=!a,this.__v_isReadonly=i}get value(){var t=me(this);return gf(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function bf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i,a,n=oe(e);n?(i=e,a=pt):(i=e.get,a=e.set);var o=new xm(i,a,n||!a,r);return o}function Vt(e,t,r,i){var a;try{a=i?e(...i):e()}catch(n){Ka(n,t,r)}return a}function ft(e,t,r,i){if(oe(e)){var a=Vt(e,t,r,i);return a&&Tu(a)&&a.catch(s=>{Ka(s,t,r)}),a}for(var n=[],o=0;o<e.length;o++)n.push(ft(e[o],t,r,i));return n}function Ka(e,t,r){if(t&&t.vnode,t){for(var i=t.parent,a=t.proxy,n=r;i;){var o=i.ec;if(o){for(var s=0;s<o.length;s++)if(o[s](e,a,n)===!1)return}i=i.parent}var u=t.appContext.config.errorHandler;if(u){Vt(u,null,10,[e,a,n]);return}}ym(e)}function ym(e,t,r){e instanceof Error?console.error(e.message+` -`+e.stack):console.error(e)}var Ga=!1,rs=!1,Qe=[],Rt=0,Ci=[],Oi=null,Hr=0,Ai=[],jt=null,Wr=0,wf=Promise.resolve(),is=null,as=null;function Vr(e){var t=is||wf;return e?t.then(this?e.bind(this):e):t}function Sm(e){for(var t=Rt+1,r=Qe.length;t<r;){var i=t+r>>>1,a=Ii(Qe[i]);a<e?t=i+1:r=i}return t}function xf(e){(!Qe.length||!Qe.includes(e,Ga&&e.allowRecurse?Rt+1:Rt))&&e!==as&&(e.id==null?Qe.push(e):Qe.splice(Sm(e.id),0,e),yf())}function yf(){!Ga&&!rs&&(rs=!0,is=wf.then(Tf))}function Em(e){var t=Qe.indexOf(e);t>Rt&&Qe.splice(t,1)}function Sf(e,t,r,i){ne(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),yf()}function Tm(e){Sf(e,Oi,Ci,Hr)}function Cm(e){Sf(e,jt,Ai,Wr)}function ns(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Ci.length){for(as=t,Oi=[...new Set(Ci)],Ci.length=0,Hr=0;Hr<Oi.length;Hr++)Oi[Hr]();Oi=null,Hr=0,as=null,ns(e,t)}}function Ef(e){if(Ai.length){var t=[...new Set(Ai)];if(Ai.length=0,jt){jt.push(...t);return}for(jt=t,jt.sort((r,i)=>Ii(r)-Ii(i)),Wr=0;Wr<jt.length;Wr++)jt[Wr]();jt=null,Wr=0}}var Ii=e=>e.id==null?1/0:e.id;function Tf(e){rs=!1,Ga=!0,ns(e),Qe.sort((i,a)=>Ii(i)-Ii(a));var t=pt;try{for(Rt=0;Rt<Qe.length;Rt++){var r=Qe[Rt];r&&r.active!==!1&&Vt(r,null,14)}}finally{Rt=0,Qe.length=0,Ef(),Ga=!1,is=null,(Qe.length||Ci.length||Ai.length)&&Tf(e)}}function Om(e,t){for(var r=e.vnode.props||xe,i=arguments.length,a=new Array(i>2?i-2:0),n=2;n<i;n++)a[n-2]=arguments[n];var o=a,s=t.startsWith("update:"),u=s&&t.slice(7);if(u&&u in r){var l="".concat(u==="modelValue"?"model":u,"Modifiers"),{number:f,trim:v}=r[l]||xe;v?o=a.map(b=>b.trim()):f&&(o=a.map(Ip))}var m,d=r[m=Ao(t)]||r[m=Ao(zt(t))];!d&&s&&(d=r[m=Ao(Ke(t))]),d&&ft(d,e,6,o);var _=r[m+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[m])return;e.emitted[m]=!0,ft(_,e,6,o)}}function Cf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;var n=e.emits,o={},s=!1;if(!oe(e)){var u=l=>{var f=Cf(l,t,!0);f&&(s=!0,ve(o,f))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!n&&!s?(i.set(e,null),null):(ne(n)?n.forEach(l=>o[l]=null):ve(o,n),i.set(e,o),o)}function os(e,t){return!e||!Ia(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Ke(t))||re(e,t))}var ct=null,Of=null;function Ja(e){var t=ct;return ct=e,Of=e&&e.type.__scopeId||null,t}function Am(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct;if(!t||e._n)return e;var r=function(){r._d&&Gf(-1);var i=Ja(t),a=e(...arguments);return Ja(i),r._d&&Gf(1),a};return r._n=!0,r._c=!0,r._d=!0,r}function XT(){}function ss(e){var{type:t,vnode:r,proxy:i,withProxy:a,props:n,propsOptions:[o],slots:s,attrs:u,emit:l,render:f,renderCache:v,data:m,setupState:d,ctx:_,inheritAttrs:b}=e,x,p,g=Ja(e);try{if(r.shapeFlag&4){var c=a||i;x=xt(f.call(c,c,v,n,d,m,_)),p=u}else{var h=t;x=xt(h.length>1?h(n,{attrs:u,slots:s,emit:l}):h(n,null)),p=t.props?u:Im(u)}}catch(E){Ka(E,e,1),x=I(jr)}var w=x;if(p&&b!==!1){var y=Object.keys(p),{shapeFlag:T}=w;y.length&&T&(1|6)&&(o&&y.some(So)&&(p=km(p,o)),w=Ri(w,p))}return r.dirs&&(w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),x=w,Ja(g),x}var Im=e=>{var t;for(var r in e)(r==="class"||r==="style"||Ia(r))&&((t||(t={}))[r]=e[r]);return t},km=(e,t)=>{var r={};for(var i in e)(!So(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function Mm(e,t,r){var{props:i,children:a,component:n}=e,{props:o,children:s,patchFlag:u}=t,l=n.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return i?Af(i,o,l):!!o;if(u&8)for(var f=t.dynamicProps,v=0;v<f.length;v++){var m=f[v];if(o[m]!==i[m]&&!os(l,m))return!0}}else return(a||s)&&(!s||!s.$stable)?!0:i===o?!1:i?o?Af(i,o,l):!0:!!o;return!1}function Af(e,t,r){var i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(var a=0;a<i.length;a++){var n=i[a];if(t[n]!==e[n]&&!os(r,n))return!0}return!1}function Rm(e,t){for(var{vnode:r,parent:i}=e;i&&i.subTree===r;)(r=i.vnode).el=t,i=i.parent}var Lm=e=>e.__isSuspense;function Pm(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Cm(e)}function Fe(e,t){if(ze){var r=ze.provides,i=ze.parent&&ze.parent.provides;i===r&&(r=ze.provides=Object.create(i)),r[e]=t}}function _e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=ze||ct;if(i){var a=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&oe(t)?t.call(i.proxy):t}}function Nm(e,t){return ls(e,null,t)}var If={};function H(e,t,r){return ls(e,t,r)}function ls(e,t){var{immediate:r,deep:i,flush:a,onTrack:n,onTrigger:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,s=ze,u,l=!1,f=!1;if(Ve(e)?(u=()=>e.value,l=df(e)):Ur(e)?(u=()=>e,i=!0):ne(e)?(f=!0,l=e.some(Ur),u=()=>e.map(g=>{if(Ve(g))return g.value;if(Ur(g))return vr(g);if(oe(g))return Vt(g,s,2)})):oe(e)?t?u=()=>Vt(e,s,2):u=()=>{if(!(s&&s.isUnmounted))return m&&m(),ft(e,s,3,[d])}:u=pt,t&&i){var v=u;u=()=>vr(v())}var m,d=g=>{m=p.onStop=()=>{Vt(g,s,4)}};if(Li)return d=pt,t?r&&ft(t,s,3,[u(),f?[]:void 0,d]):u(),pt;var _=f?[]:If,b=()=>{if(!!p.active)if(t){var g=p.run();(i||l||(f?g.some((c,h)=>pi(c,_[h])):pi(g,_)))&&(m&&m(),ft(t,s,3,[g,_===If?void 0:_,d]),_=g)}else p.run()};b.allowRecurse=!!t;var x;a==="sync"?x=b:a==="post"?x=()=>qe(b,s&&s.suspense):x=()=>{!s||s.isMounted?Tm(b):b()};var p=new qo(u,x);return t?r?b():_=p.run():a==="post"?qe(p.run.bind(p),s&&s.suspense):p.run(),()=>{p.stop(),s&&s.scope&&Eo(s.scope.effects,p)}}function Dm(e,t,r){var i=this.proxy,a=ye(e)?e.includes(".")?kf(i,e):()=>i[e]:e.bind(i,i),n;oe(t)?n=t:(n=t.handler,r=t);var o=ze;Yr(this);var s=ls(a,n.bind(i),r);return o?Yr(o):pr(),s}function kf(e,t){var r=t.split(".");return()=>{for(var i=e,a=0;a<r.length&&i;a++)i=i[r[a]];return i}}function vr(e,t){if(!He(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ve(e))vr(e.value,t);else if(ne(e))for(var r=0;r<e.length;r++)vr(e[r],t);else if(Tp(e)||hi(e))e.forEach(a=>{vr(a,t)});else if(mt(e))for(var i in e)vr(e[i],t);return e}function Bm(e){return oe(e)?{setup:e,name:e.name}:e}var us=e=>!!e.type.__asyncLoader,Mf=e=>e.type.__isKeepAlive;function fs(e,t){Rf(e,"a",t)}function $m(e,t){Rf(e,"da",t)}function Rf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ze,i=e.__wdc||(e.__wdc=()=>{for(var n=r;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Qa(t,i,r),r)for(var a=r.parent;a&&a.parent;)Mf(a.parent.vnode)&&Fm(i,t,r,a),a=a.parent}function Fm(e,t,r,i){var a=Qa(t,e,i,!0);Yt(()=>{Eo(i[t],a)},r)}function Qa(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ze,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r){var a=r[e]||(r[e]=[]),n=t.__weh||(t.__weh=function(){if(!r.isUnmounted){zr(),Yr(r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var l=ft(t,r,e,s);return pr(),cr(),l}});return i?a.unshift(n):a.push(n),n}}var Lt=e=>function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ze;return(!Li||e==="sp")&&Qa(e,t,r)},Lf=Lt("bm"),Re=Lt("m"),zm=Lt("bu"),Um=Lt("u"),Ce=Lt("bum"),Yt=Lt("um"),Hm=Lt("sp"),Wm=Lt("rtg"),Vm=Lt("rtc");function jm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ze;Qa("ec",e,t)}var cs=!0;function Ym(e){var t=Df(e),r=e.proxy,i=e.ctx;cs=!1,t.beforeCreate&&Pf(t.beforeCreate,e,"bc");var{data:a,computed:n,methods:o,watch:s,provide:u,inject:l,created:f,beforeMount:v,mounted:m,beforeUpdate:d,updated:_,activated:b,deactivated:x,beforeDestroy:p,beforeUnmount:g,destroyed:c,unmounted:h,render:w,renderTracked:y,renderTriggered:T,errorCaptured:E,serverPrefetch:O,expose:N,inheritAttrs:R,components:V,directives:ue,filters:M}=t,B=null;if(l&&qm(l,i,B,e.appContext.config.unwrapInjectedRef),o)for(var Q in o){var te=o[Q];oe(te)&&(i[Q]=te.bind(r))}if(a&&function(){var ie=a.call(r,r);He(ie)&&(e.data=Ae(ie))}(),cs=!0,n){var W=function(ie){var le=n[ie],Ie=oe(le)?le.bind(r,r):oe(le.get)?le.get.bind(r,r):pt,ke=!oe(le)&&oe(le.set)?le.set.bind(r):pt,nt=bf({get:Ie,set:ke});Object.defineProperty(i,ie,{enumerable:!0,configurable:!0,get:()=>nt.value,set:nr=>nt.value=nr})};for(var G in n)W(G)}if(s)for(var ae in s)Nf(s[ae],i,r,ae);if(u){var Se=oe(u)?u.call(r):u;Reflect.ownKeys(Se).forEach(ie=>{Fe(ie,Se[ie])})}f&&Pf(f,e,"c");function se(ie,le){ne(le)?le.forEach(Ie=>ie(Ie.bind(r))):le&&ie(le.bind(r))}if(se(Lf,v),se(Re,m),se(zm,d),se(Um,_),se(fs,b),se($m,x),se(jm,E),se(Vm,y),se(Wm,T),se(Ce,g),se(Yt,h),se(Hm,O),ne(N))if(N.length){var K=e.exposed||(e.exposed={});N.forEach(ie=>{Object.defineProperty(K,ie,{get:()=>r[ie],set:le=>r[ie]=le})})}else e.exposed||(e.exposed={});w&&e.render===pt&&(e.render=w),R!=null&&(e.inheritAttrs=R),V&&(e.components=V),ue&&(e.directives=ue)}function qm(e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;ne(e)&&(e=vs(e));var i=function(n){var o=e[n],s=void 0;He(o)?"default"in o?s=_e(o.from||n,o.default,!0):s=_e(o.from||n):s=_e(o),Ve(s)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:u=>s.value=u}):t[n]=s};for(var a in e)i(a)}function Pf(e,t,r){ft(ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function Nf(e,t,r,i){var a=i.includes(".")?kf(r,i):()=>r[i];if(ye(e)){var n=t[e];oe(n)&&H(a,n)}else if(oe(e))H(a,e.bind(r));else if(He(e))if(ne(e))e.forEach(s=>Nf(s,t,r,i));else{var o=oe(e.handler)?e.handler.bind(r):t[e.handler];oe(o)&&H(a,o,e)}}function Df(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:n,config:{optionMergeStrategies:o}}=e.appContext,s=n.get(t),u;return s?u=s:!a.length&&!r&&!i?u=t:(u={},a.length&&a.forEach(l=>en(u,l,o,!0)),en(u,t,o)),n.set(t,u),u}function en(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,{mixins:a,extends:n}=t;n&&en(e,n,r,!0),a&&a.forEach(u=>en(e,u,r,!0));for(var o in t)if(!(i&&o==="expose")){var s=Xm[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Xm={data:Bf,props:dr,emits:dr,methods:dr,computed:dr,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:dr,directives:dr,watch:Km,provide:Bf,inject:Zm};function Bf(e,t){return t?e?function(){return ve(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function Zm(e,t){return dr(vs(e),vs(t))}function vs(e){if(ne(e)){for(var t={},r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function dr(e,t){return e?ve(ve(Object.create(null),e),t):t}function Km(e,t){if(!e)return t;if(!t)return e;var r=ve(Object.create(null),e);for(var i in t)r[i]=je(e[i],t[i]);return r}function Gm(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a={},n={};La(n,rn,1),e.propsDefaults=Object.create(null),$f(e,t,a,n);for(var o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=i?a:mm(a):e.type.props?e.props=a:e.props=n,e.attrs=n}function Jm(e,t,r,i){var{props:a,attrs:n,vnode:{patchFlag:o}}=e,s=me(a),[u]=e.propsOptions,l=!1;if((i||o>0)&&!(o&16)){if(o&8)for(var f=e.vnode.dynamicProps,v=0;v<f.length;v++){var m=f[v],d=t[m];if(u)if(re(n,m))d!==n[m]&&(n[m]=d,l=!0);else{var _=zt(m);a[_]=ds(u,s,_,d,e,!1)}else d!==n[m]&&(n[m]=d,l=!0)}}else{$f(e,t,a,n)&&(l=!0);var b;for(var x in s)(!t||!re(t,x)&&((b=Ke(x))===x||!re(t,b)))&&(u?r&&(r[x]!==void 0||r[b]!==void 0)&&(a[x]=ds(u,s,x,void 0,e,!0)):delete a[x]);if(n!==s)for(var p in n)(!t||!re(t,p))&&(delete n[p],l=!0)}l&&Mt(e,"set","$attrs")}function $f(e,t,r,i){var[a,n]=e.propsOptions,o=!1,s;if(t){for(var u in t)if(!ka(u)){var l=t[u],f=void 0;a&&re(a,f=zt(u))?!n||!n.includes(f)?r[f]=l:(s||(s={}))[f]=l:os(e.emitsOptions,u)||(!(u in i)||l!==i[u])&&(i[u]=l,o=!0)}}if(n)for(var v=me(r),m=s||xe,d=0;d<n.length;d++){var _=n[d];r[_]=ds(a,v,_,m[_],e,!re(m,_))}return o}function ds(e,t,r,i,a,n){var o=e[r];if(o!=null){var s=re(o,"default");if(s&&i===void 0){var u=o.default;if(o.type!==Function&&oe(u)){var{propsDefaults:l}=a;r in l?i=l[r]:(Yr(a),i=l[r]=u.call(null,t),pr())}else i=u}o[0]&&(n&&!s?i=!1:o[1]&&(i===""||i===Ke(r))&&(i=!0))}return i}function Ff(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.propsCache,a=i.get(e);if(a)return a;var n=e.props,o={},s=[],u=!1;if(!oe(e)){var l=c=>{u=!0;var[h,w]=Ff(c,t,!0);ve(o,h),w&&s.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!n&&!u)return i.set(e,di),di;if(ne(n))for(var f=0;f<n.length;f++){var v=zt(n[f]);zf(v)&&(o[v]=xe)}else if(n)for(var m in n){var d=zt(m);if(zf(d)){var _=n[m],b=o[d]=ne(_)||oe(_)?{type:_}:_;if(b){var x=Wf(Boolean,b.type),p=Wf(String,b.type);b[0]=x>-1,b[1]=p<0||x<p,(x>-1||re(b,"default"))&&s.push(d)}}}var g=[o,s];return i.set(e,g),g}function zf(e){return e[0]!=="$"}function Uf(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Hf(e,t){return Uf(e)===Uf(t)}function Wf(e,t){return ne(t)?t.findIndex(r=>Hf(r,e)):oe(t)&&Hf(t,e)?0:-1}var Vf=e=>e[0]==="_"||e==="$stable",hs=e=>ne(e)?e.map(xt):[xt(e)],Qm=(e,t,r)=>{var i=Am(function(){return hs(t(...arguments))},r);return i._c=!1,i},jf=(e,t,r)=>{var i=e._ctx;for(var a in e)if(!Vf(a)){var n=e[a];oe(n)?t[a]=Qm(a,n,i):n!=null&&function(){var o=hs(n);t[a]=()=>o}()}},Yf=(e,t)=>{var r=hs(t);e.slots.default=()=>r},e_=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=me(t),La(t,"_",r)):jf(t,e.slots={})}else e.slots={},t&&Yf(e,t);La(e.slots,rn,1)},t_=(e,t,r)=>{var{vnode:i,slots:a}=e,n=!0,o=xe;if(i.shapeFlag&32){var s=t._;s?r&&s===1?n=!1:(ve(a,t),!r&&s===1&&delete a._):(n=!t.$stable,jf(t,a)),o=t}else t&&(Yf(e,t),o={default:1});if(n)for(var u in a)!Vf(u)&&!(u in o)&&delete a[u]};function ki(e,t){var r=ct;if(r===null)return e;for(var i=r.proxy,a=e.dirs||(e.dirs=[]),n=0;n<t.length;n++){var[o,s,u,l=xe]=t[n];oe(o)&&(o={mounted:o,updated:o}),o.deep&&vr(s),a.push({dir:o,instance:i,value:s,oldValue:void 0,arg:u,modifiers:l})}return e}function hr(e,t,r,i){for(var a=e.dirs,n=t&&t.dirs,o=0;o<a.length;o++){var s=a[o];n&&(s.oldValue=n[o].value);var u=s.dir[i];u&&(zr(),ft(u,r,8,[e.el,s,e,t]),cr())}}function qf(){return{app:null,config:{isNativeTag:yp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var r_=0;function i_(e,t){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;a!=null&&!He(a)&&(a=null);var n=qf(),o=new Set,s=!1,u=n.app={_uid:r_++,_component:i,_props:a,_container:null,_context:n,_instance:null,version:S_,get config(){return n.config},set config(l){},use(l){for(var f=arguments.length,v=new Array(f>1?f-1:0),m=1;m<f;m++)v[m-1]=arguments[m];return o.has(l)||(l&&oe(l.install)?(o.add(l),l.install(u,...v)):oe(l)&&(o.add(l),l(u,...v))),u},mixin(l){return n.mixins.includes(l)||n.mixins.push(l),u},component(l,f){return f?(n.components[l]=f,u):n.components[l]},directive(l,f){return f?(n.directives[l]=f,u):n.directives[l]},mount(l,f,v){if(!s){var m=I(i,a);return m.appContext=n,f&&t?t(m,l):e(m,l,v),s=!0,u._container=l,l.__vue_app__=u,ws(m.component)||m.component.proxy}},unmount(){s&&(e(null,u._container),delete u._container.__vue_app__)},provide(l,f){return n.provides[l]=f,u}};return u}}function gs(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ne(e)){e.forEach((b,x)=>gs(b,t&&(ne(t)?t[x]:t),r,i,a));return}if(!(us(i)&&!a)){var n=i.shapeFlag&4?ws(i.component)||i.component.proxy:i.el,o=a?null:n,{i:s,r:u}=e,l=t&&t.r,f=s.refs===xe?s.refs={}:s.refs,v=s.setupState;if(l!=null&&l!==u&&(ye(l)?(f[l]=null,re(v,l)&&(v[l]=null)):Ve(l)&&(l.value=null)),oe(u))Vt(u,s,12,[o,f]);else{var m=ye(u),d=Ve(u);if(m||d){var _=()=>{if(e.f){var b=m?f[u]:u.value;a?ne(b)&&Eo(b,n):ne(b)?b.includes(n)||b.push(n):m?f[u]=[n]:(u.value=[n],e.k&&(f[e.k]=u.value))}else m?(f[u]=o,re(v,u)&&(v[u]=o)):Ve(u)&&(u.value=o,e.k&&(f[e.k]=o))};o?(_.id=-1,qe(_,r)):_()}}}}var qe=Pm;function a_(e){return n_(e)}function n_(e,t){var r=kp();r.__VUE__=!0;var{insert:i,remove:a,patchProp:n,createElement:o,createText:s,createComment:u,setText:l,setElementText:f,parentNode:v,nextSibling:m,setScopeId:d=pt,cloneNode:_,insertStaticContent:b}=e,x=function(S,C,k){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,j=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,$=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!!C.dynamicChildren;if(S!==C){S&&!Mi(S,C)&&(L=nt(S),K(S,P,F,!0),S=null),C.patchFlag===-2&&(z=!1,C.dynamicChildren=null);var{type:D,ref:J,shapeFlag:Z}=C;switch(D){case ps:p(S,C,k,L);break;case jr:g(S,C,k,L);break;case ms:S==null&&c(C,k,L,j);break;case wt:ue(S,C,k,L,P,F,j,$,z);break;default:Z&1?y(S,C,k,L,P,F,j,$,z):Z&6?M(S,C,k,L,P,F,j,$,z):(Z&64||Z&128)&&D.process(S,C,k,L,P,F,j,$,z,Ne)}J!=null&&P&&gs(J,S&&S.ref,F,C||S,!C)}},p=(S,C,k,L)=>{if(S==null)i(C.el=s(C.children),k,L);else{var P=C.el=S.el;C.children!==S.children&&l(P,C.children)}},g=(S,C,k,L)=>{S==null?i(C.el=u(C.children||""),k,L):C.el=S.el},c=(S,C,k,L)=>{[S.el,S.anchor]=b(S.children,C,k,L,S.el,S.anchor)},h=(S,C,k)=>{for(var{el:L,anchor:P}=S,F;L&&L!==P;)F=m(L),i(L,C,k),L=F;i(P,C,k)},w=S=>{for(var{el:C,anchor:k}=S,L;C&&C!==k;)L=m(C),a(C),C=L;a(k)},y=(S,C,k,L,P,F,j,$,z)=>{j=j||C.type==="svg",S==null?T(C,k,L,P,F,j,$,z):N(S,C,P,F,j,$,z)},T=(S,C,k,L,P,F,j,$)=>{var z,D,{type:J,props:Z,shapeFlag:X,transition:ce,patchFlag:Be,dirs:Te}=S;if(S.el&&_!==void 0&&Be===-1)z=S.el=_(S.el);else{if(z=S.el=o(S.type,F,Z&&Z.is,Z),X&8?f(z,S.children):X&16&&O(S.children,z,null,L,P,F&&J!=="foreignObject",j,$),Te&&hr(S,null,L,"created"),Z){for(var A in Z)A!=="value"&&!ka(A)&&n(z,A,null,Z[A],F,S.children,L,P,ke);"value"in Z&&n(z,"value",null,Z.value),(D=Z.onVnodeBeforeMount)&&yt(D,L,S)}E(z,S,S.scopeId,j,L)}Object.defineProperty(z,"__vueParentComponent",{value:L,enumerable:!1}),Te&&hr(S,null,L,"beforeMount");var Y=(!P||P&&!P.pendingBranch)&&ce&&!ce.persisted;Y&&ce.beforeEnter(z),i(z,C,k),((D=Z&&Z.onVnodeMounted)||Y||Te)&&qe(()=>{D&&yt(D,L,S),Y&&ce.enter(z),Te&&hr(S,null,L,"mounted")},P)},E=(S,C,k,L,P)=>{if(k&&d(S,k),L)for(var F=0;F<L.length;F++)d(S,L[F]);if(P){var j=P.subTree;if(C===j){var $=P.vnode;E(S,$,$.scopeId,$.slotScopeIds,P.parent)}}},O=function(S,C,k,L,P,F,j,$){for(var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,D=z;D<S.length;D++){var J=S[D]=$?qt(S[D]):xt(S[D]);x(null,J,C,k,L,P,F,j,$)}},N=(S,C,k,L,P,F,j)=>{var $=C.el=S.el,{patchFlag:z,dynamicChildren:D,dirs:J}=C;z|=S.patchFlag&16;var Z=S.props||xe,X=C.props||xe,ce;k&&gr(k,!1),(ce=X.onVnodeBeforeUpdate)&&yt(ce,k,C,S),J&&hr(C,S,k,"beforeUpdate"),k&&gr(k,!0);var Be=P&&C.type!=="foreignObject";if(D?R(S.dynamicChildren,D,$,k,L,Be,F):j||G(S,C,$,null,k,L,Be,F,!1),z>0){if(z&16)V($,C,Z,X,k,L,P);else if(z&2&&Z.class!==X.class&&n($,"class",null,X.class,P),z&4&&n($,"style",Z.style,X.style,P),z&8)for(var Te=C.dynamicProps,A=0;A<Te.length;A++){var Y=Te[A],q=Z[Y],he=X[Y];(he!==q||Y==="value")&&n($,Y,q,he,P,S.children,k,L,ke)}z&1&&S.children!==C.children&&f($,C.children)}else!j&&D==null&&V($,C,Z,X,k,L,P);((ce=X.onVnodeUpdated)||J)&&qe(()=>{ce&&yt(ce,k,C,S),J&&hr(C,S,k,"updated")},L)},R=(S,C,k,L,P,F,j)=>{for(var $=0;$<C.length;$++){var z=S[$],D=C[$],J=z.el&&(z.type===wt||!Mi(z,D)||z.shapeFlag&(6|64))?v(z.el):k;x(z,D,J,null,L,P,F,j,!0)}},V=(S,C,k,L,P,F,j)=>{if(k!==L){for(var $ in L)if(!ka($)){var z=L[$],D=k[$];z!==D&&$!=="value"&&n(S,$,D,z,j,C.children,P,F,ke)}if(k!==xe)for(var J in k)!ka(J)&&!(J in L)&&n(S,J,k[J],null,j,C.children,P,F,ke);"value"in L&&n(S,"value",k.value,L.value)}},ue=(S,C,k,L,P,F,j,$,z)=>{var D=C.el=S?S.el:s(""),J=C.anchor=S?S.anchor:s(""),{patchFlag:Z,dynamicChildren:X,slotScopeIds:ce}=C;ce&&($=$?$.concat(ce):ce),S==null?(i(D,k,L),i(J,k,L),O(C.children,k,J,P,F,j,$,z)):Z>0&&Z&64&&X&&S.dynamicChildren?(R(S.dynamicChildren,X,k,P,F,j,$),(C.key!=null||P&&C===P.subTree)&&Xf(S,C,!0)):G(S,C,k,J,P,F,j,$,z)},M=(S,C,k,L,P,F,j,$,z)=>{C.slotScopeIds=$,S==null?C.shapeFlag&512?P.ctx.activate(C,k,L,j,z):B(C,k,L,P,F,j,z):Q(S,C,z)},B=(S,C,k,L,P,F,j)=>{var $=S.component=p_(S,L,P);if(Mf(S)&&($.ctx.renderer=Ne),m_($),$.asyncDep){if(P&&P.registerDep($,te),!S.el){var z=$.subTree=I(jr);g(null,z,C,k)}return}te($,S,C,k,P,F,j)},Q=(S,C,k)=>{var L=C.component=S.component;if(Mm(S,C,k))if(L.asyncDep&&!L.asyncResolved){W(L,C,k);return}else L.next=C,Em(L.update),L.update();else C.component=S.component,C.el=S.el,L.vnode=C},te=(S,C,k,L,P,F,j)=>{var $=()=>{if(S.isMounted){var{next:fe,bu:$e,u:Ze,parent:De,vnode:gt}=S,or=fe,kt;gr(S,!1),fe?(fe.el=gt.el,W(S,fe,j)):fe=gt,$e&&Io($e),(kt=fe.props&&fe.props.onVnodeBeforeUpdate)&&yt(kt,De,fe,gt),gr(S,!0);var Lr=ss(S),$t=S.subTree;S.subTree=Lr,x($t,Lr,v($t.el),nt($t),S,P,F),fe.el=Lr.el,or===null&&Rm(S,Lr.el),Ze&&qe(Ze,P),(kt=fe.props&&fe.props.onVnodeUpdated)&&qe(()=>yt(kt,De,fe,gt),P)}else{var J,{el:Z,props:X}=C,{bm:ce,m:Be,parent:Te}=S,A=us(C);if(gr(S,!1),ce&&Io(ce),!A&&(J=X&&X.onVnodeBeforeMount)&&yt(J,Te,C),gr(S,!0),Z&&ca){var Y=()=>{S.subTree=ss(S),ca(Z,S.subTree,S,P,null)};A?C.type.__asyncLoader().then(()=>!S.isUnmounted&&Y()):Y()}else{var q=S.subTree=ss(S);x(null,q,k,L,S,P,F),C.el=q.el}if(Be&&qe(Be,P),!A&&(J=X&&X.onVnodeMounted)){var he=C;qe(()=>yt(J,Te,he),P)}C.shapeFlag&256&&S.a&&qe(S.a,P),S.isMounted=!0,C=k=L=null}},z=S.effect=new qo($,()=>xf(S.update),S.scope),D=S.update=z.run.bind(z);D.id=S.uid,gr(S,!0),D()},W=(S,C,k)=>{C.component=S;var L=S.vnode.props;S.vnode=C,S.next=null,Jm(S,C.props,L,k),t_(S,C.children,k),zr(),ns(void 0,S.update),cr()},G=function(S,C,k,L,P,F,j,$){var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,D=S&&S.children,J=S?S.shapeFlag:0,Z=C.children,{patchFlag:X,shapeFlag:ce}=C;if(X>0){if(X&128){Se(D,Z,k,L,P,F,j,$,z);return}else if(X&256){ae(D,Z,k,L,P,F,j,$,z);return}}ce&8?(J&16&&ke(D,P,F),Z!==D&&f(k,Z)):J&16?ce&16?Se(D,Z,k,L,P,F,j,$,z):ke(D,P,F,!0):(J&8&&f(k,""),ce&16&&O(Z,k,L,P,F,j,$,z))},ae=(S,C,k,L,P,F,j,$,z)=>{S=S||di,C=C||di;var D=S.length,J=C.length,Z=Math.min(D,J),X;for(X=0;X<Z;X++){var ce=C[X]=z?qt(C[X]):xt(C[X]);x(S[X],ce,k,null,P,F,j,$,z)}D>J?ke(S,P,F,!0,!1,Z):O(C,k,L,P,F,j,$,z,Z)},Se=(S,C,k,L,P,F,j,$,z)=>{for(var D=0,J=C.length,Z=S.length-1,X=J-1;D<=Z&&D<=X;){var ce=S[D],Be=C[D]=z?qt(C[D]):xt(C[D]);if(Mi(ce,Be))x(ce,Be,k,null,P,F,j,$,z);else break;D++}for(;D<=Z&&D<=X;){var Te=S[Z],A=C[X]=z?qt(C[X]):xt(C[X]);if(Mi(Te,A))x(Te,A,k,null,P,F,j,$,z);else break;Z--,X--}if(D>Z){if(D<=X)for(var Y=X+1,q=Y<J?C[Y].el:L;D<=X;)x(null,C[D]=z?qt(C[D]):xt(C[D]),k,q,P,F,j,$,z),D++}else if(D>X)for(;D<=Z;)K(S[D],P,F,!0),D++;else{var he=D,fe=D,$e=new Map;for(D=fe;D<=X;D++){var Ze=C[D]=z?qt(C[D]):xt(C[D]);Ze.key!=null&&$e.set(Ze.key,D)}var De,gt=0,or=X-fe+1,kt=!1,Lr=0,$t=new Array(or);for(D=0;D<or;D++)$t[D]=0;for(D=he;D<=Z;D++){var fi=S[D];if(gt>=or){K(fi,P,F,!0);continue}var Pr=void 0;if(fi.key!=null)Pr=$e.get(fi.key);else for(De=fe;De<=X;De++)if($t[De-fe]===0&&Mi(fi,C[De])){Pr=De;break}Pr===void 0?K(fi,P,F,!0):($t[Pr-fe]=D+1,Pr>=Lr?Lr=Pr:kt=!0,x(fi,C[Pr],k,null,P,F,j,$,z),gt++)}var $h=kt?o_($t):di;for(De=$h.length-1,D=or-1;D>=0;D--){var Bl=fe+D,Fh=C[Bl],zh=Bl+1<J?C[Bl+1].el:L;$t[D]===0?x(null,Fh,k,zh,P,F,j,$,z):kt&&(De<0||D!==$h[De]?se(Fh,k,zh,2):De--)}}},se=function(S,C,k,L){var P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,{el:F,type:j,transition:$,children:z,shapeFlag:D}=S;if(D&6){se(S.component.subTree,C,k,L);return}if(D&128){S.suspense.move(C,k,L);return}if(D&64){j.move(S,C,k,Ne);return}if(j===wt){i(F,C,k);for(var J=0;J<z.length;J++)se(z[J],C,k,L);i(S.anchor,C,k);return}if(j===ms){h(S,C,k);return}var Z=L!==2&&D&1&&$;if(Z)if(L===0)$.beforeEnter(F),i(F,C,k),qe(()=>$.enter(F),P);else{var{leave:X,delayLeave:ce,afterLeave:Be}=$,Te=()=>i(F,C,k),A=()=>{X(F,()=>{Te(),Be&&Be()})};ce?ce(F,Te,A):A()}else i(F,C,k)},K=function(S,C,k){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,{type:F,props:j,ref:$,children:z,dynamicChildren:D,shapeFlag:J,patchFlag:Z,dirs:X}=S;if($!=null&&gs($,null,k,S,!0),J&256){C.ctx.deactivate(S);return}var ce=J&1&&X,Be=!us(S),Te;if(Be&&(Te=j&&j.onVnodeBeforeUnmount)&&yt(Te,C,S),J&6)Ie(S.component,k,L);else{if(J&128){S.suspense.unmount(k,L);return}ce&&hr(S,null,C,"beforeUnmount"),J&64?S.type.remove(S,C,k,P,Ne,L):D&&(F!==wt||Z>0&&Z&64)?ke(D,C,k,!1,!0):(F===wt&&Z&(128|256)||!P&&J&16)&&ke(z,C,k),L&&ie(S)}(Be&&(Te=j&&j.onVnodeUnmounted)||ce)&&qe(()=>{Te&&yt(Te,C,S),ce&&hr(S,null,C,"unmounted")},k)},ie=S=>{var{type:C,el:k,anchor:L,transition:P}=S;if(C===wt){le(k,L);return}if(C===ms){w(S);return}var F=()=>{a(k),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(S.shapeFlag&1&&P&&!P.persisted){var{leave:j,delayLeave:$}=P,z=()=>j(k,F);$?$(S.el,F,z):z()}else F()},le=(S,C)=>{for(var k;S!==C;)k=m(S),a(S),S=k;a(C)},Ie=(S,C,k)=>{var{bum:L,scope:P,update:F,subTree:j,um:$}=S;L&&Io(L),P.stop(),F&&(F.active=!1,K(j,S,C,k)),$&&qe($,C),qe(()=>{S.isUnmounted=!0},C),C&&C.pendingBranch&&!C.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===C.pendingId&&(C.deps--,C.deps===0&&C.resolve())},ke=function(S,C,k){for(var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,j=F;j<S.length;j++)K(S[j],C,k,L,P)},nt=S=>S.shapeFlag&6?nt(S.component.subTree):S.shapeFlag&128?S.suspense.next():m(S.anchor||S.el),nr=(S,C,k)=>{if(S==null)C._vnode&&K(C._vnode,null,null,!0);else{var L=C.__vueParent;x(C._vnode||null,S,C,null,L,null,k)}C._vnode=S},Ne={p:x,um:K,m:se,r:ie,mt:B,mc:O,pc:G,pbc:R,n:nt,o:e},fa,ca;return t&&([fa,ca]=t(Ne)),{render:nr,hydrate:fa,createApp:i_(nr,fa)}}function gr(e,t){var{effect:r,update:i}=e;r.allowRecurse=i.allowRecurse=t}function Xf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=e.children,a=t.children;if(ne(i)&&ne(a))for(var n=0;n<i.length;n++){var o=i[n],s=a[n];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[n]=qt(a[n]),s.el=o.el),r||Xf(o,s))}}function o_(e){var t=e.slice(),r=[0],i,a,n,o,s,u=e.length;for(i=0;i<u;i++){var l=e[i];if(l!==0){if(a=r[r.length-1],e[a]<l){t[i]=a,r.push(i);continue}for(n=0,o=r.length-1;n<o;)s=n+o>>1,e[r[s]]<l?n=s+1:o=s;l<e[r[n]]&&(n>0&&(t[i]=r[n-1]),r[n]=i)}}for(n=r.length,o=r[n-1];n-- >0;)r[n]=o,o=t[o];return r}var s_=e=>e.__isTeleport,l_=Symbol(),wt=Symbol(void 0),ps=Symbol(void 0),jr=Symbol(void 0),ms=Symbol(void 0),Zf=null,Kf=1;function Gf(e){Kf+=e}function tn(e){return e?e.__v_isVNode===!0:!1}function Mi(e,t){return e.type===t.type&&e.key===t.key}var rn="__vInternal",Jf=e=>{var{key:t}=e;return t!=null?t:null},an=e=>{var{ref:t,ref_key:r,ref_for:i}=e;return t!=null?ye(t)||Ve(t)||oe(t)?{i:ct,r:t,k:r,f:!!i}:t:null};function u_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e===wt?0:1,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jf(t),ref:t&&an(t),scopeId:Of,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null};return s?(_s(u,r),n&128&&e.normalize(u)):r&&(u.shapeFlag|=ye(r)?8:16),Kf>0&&!o&&Zf&&(u.patchFlag>0||n&6)&&u.patchFlag!==32&&Zf.push(u),u}var I=f_;function f_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if((!e||e===l_)&&(e=jr),tn(e)){var o=Ri(e,t,!0);return r&&_s(o,r),o}if(x_(e)&&(e=e.__vccOpts),t){t=c_(t);var{class:s,style:u}=t;s&&!ye(s)&&(t.class=yo(s)),He(u)&&(hf(u)&&!ne(u)&&(u=ve({},u)),t.style=xo(u))}var l=ye(e)?1:Lm(e)?128:s_(e)?64:He(e)?4:oe(e)?2:0;return u_(e,t,r,i,a,l,n,!0)}function c_(e){return e?hf(e)||rn in e?ve({},e):e:null}function Ri(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{props:i,ref:a,patchFlag:n,children:o}=e,s=t?et(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Jf(s),ref:t&&t.ref?r&&a?ne(a)?a.concat(an(t)):[a,an(t)]:an(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==wt?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ri(e.ssContent),ssFallback:e.ssFallback&&Ri(e.ssFallback),el:e.el,anchor:e.anchor};return u}function v_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return I(ps,null,e,t)}function xt(e){return e==null||typeof e=="boolean"?I(jr):ne(e)?I(wt,null,e.slice()):typeof e=="object"?qt(e):I(ps,null,String(e))}function qt(e){return e.el===null||e.memo?e:Ri(e)}function _s(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(ne(t))r=16;else if(typeof t=="object")if(i&(1|64)){var a=t.default;a&&(a._c&&(a._d=!1),_s(e,a()),a._c&&(a._d=!0));return}else{r=32;var n=t._;!n&&!(rn in t)?t._ctx=ct:n===3&&ct&&(ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:ct},r=32):(t=String(t),i&64?(r=16,t=[v_(t)]):r=8);e.children=t,e.shapeFlag|=r}function et(){for(var e={},t=0;t<arguments.length;t++){var r=t<0||arguments.length<=t?void 0:arguments[t];for(var i in r)if(i==="class")e.class!==r.class&&(e.class=yo([e.class,r.class]));else if(i==="style")e.style=xo([e.style,r.style]);else if(Ia(i)){var a=e[i],n=r[i];a!==n&&!(ne(a)&&a.includes(n))&&(e[i]=a?[].concat(a,n):n)}else i!==""&&(e[i]=r[i])}return e}function yt(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ft(e,t,7,[r,i])}var bs=e=>e?Qf(e)?ws(e)||e.proxy:bs(e.parent):null,nn=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bs(e.parent),$root:e=>bs(e.root),$emit:e=>e.emit,$options:e=>Df(e),$forceUpdate:e=>()=>xf(e.update),$nextTick:e=>Vr.bind(e.proxy),$watch:e=>Dm.bind(e)}),d_={get(e,t){var{_:r}=e,{ctx:i,setupState:a,data:n,props:o,accessCache:s,type:u,appContext:l}=r,f;if(t[0]!=="$"){var v=s[t];if(v!==void 0)switch(v){case 1:return a[t];case 2:return n[t];case 4:return i[t];case 3:return o[t]}else{if(a!==xe&&re(a,t))return s[t]=1,a[t];if(n!==xe&&re(n,t))return s[t]=2,n[t];if((f=r.propsOptions[0])&&re(f,t))return s[t]=3,o[t];if(i!==xe&&re(i,t))return s[t]=4,i[t];cs&&(s[t]=0)}}var m=nn[t],d,_;if(m)return t==="$attrs"&&Je(r,"get",t),m(r);if((d=u.__cssModules)&&(d=d[t]))return d;if(i!==xe&&re(i,t))return s[t]=4,i[t];if(_=l.config.globalProperties,re(_,t))return _[t]},set(e,t,r){var{_:i}=e,{data:a,setupState:n,ctx:o}=i;if(n!==xe&&re(n,t))n[t]=r;else if(a!==xe&&re(a,t))a[t]=r;else if(re(i.props,t))return!1;return t[0]==="$"&&t.slice(1)in i?!1:(o[t]=r,!0)},has(e,t){var{_:{data:r,setupState:i,accessCache:a,ctx:n,appContext:o,propsOptions:s}}=e,u;return!!a[t]||r!==xe&&re(r,t)||i!==xe&&re(i,t)||(u=s[0])&&re(u,t)||re(n,t)||re(nn,t)||re(o.config.globalProperties,t)}},h_=qf(),g_=0;function p_(e,t,r){var i=e.type,a=(t?t.appContext:e.appContext)||h_,n={uid:g_++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new W0(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ff(i,a),emitsOptions:Cf(i,a),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:i.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return n.ctx={_:n},n.root=t?t.root:n,n.emit=Om.bind(null,n),e.ce&&e.ce(n),n}var ze=null,Pt=()=>ze||ct,Yr=e=>{ze=e,e.scope.on()},pr=()=>{ze&&ze.scope.off(),ze=null};function Qf(e){return e.vnode.shapeFlag&4}var Li=!1;function m_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Li=t;var{props:r,children:i}=e.vnode,a=Qf(e);Gm(e,r,a,t),e_(e,i);var n=a?__(e,t):void 0;return Li=!1,n}function __(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=Za(new Proxy(e.ctx,d_));var{setup:i}=r;if(i){var a=e.setupContext=i.length>1?w_(e):null;Yr(e),zr();var n=Vt(i,e,0,[e.props,a]);if(cr(),pr(),Tu(n)){if(n.then(pr,pr),t)return n.then(o=>{ec(e,o,t)}).catch(o=>{Ka(o,e,0)});e.asyncDep=n}else ec(e,n,t)}else rc(e,t)}function ec(e,t,r){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)&&(e.setupState=_f(t)),rc(e,r)}var tc;function rc(e,t,r){var i=e.type;if(!e.render){if(!t&&tc&&!i.render){var a=i.template;if(a){var{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:u}=i,l=ve(ve({isCustomElement:n,delimiters:s},o),u);i.render=tc(a,l)}}e.render=i.render||pt}Yr(e),zr(),Ym(e),cr(),pr()}function b_(e){return new Proxy(e.attrs,{get(t,r){return Je(e,"get","$attrs"),t[r]}})}function w_(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=b_(e))},slots:e.slots,emit:e.emit,expose:t}}function ws(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(_f(Za(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in nn)return nn[r](e)}}))}function x_(e){return oe(e)&&"__vccOpts"in e}var ee=(e,t)=>bf(e,t,Li);function y_(e,t,r){var i=arguments.length;return i===2?He(t)&&!ne(t)?tn(t)?I(e,null,[t]):I(e,t):I(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&tn(r)&&(r=[r]),I(e,t,r))}var S_="3.2.27",E_="http://www.w3.org/2000/svg",mr=typeof document!="undefined"?document:null,ic=mr&&mr.createElement("template"),T_={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var a=t?mr.createElementNS(E_,e):mr.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:e=>mr.createTextNode(e),createComment:e=>mr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i,a,n){var o=r?r.previousSibling:t.lastChild;if(a&&n)for(;t.insertBefore(a.cloneNode(!0),r),!(a===n||!(a=a.nextSibling)););else{ic.innerHTML=i?"<svg>".concat(e,"</svg>"):e;var s=ic.content;if(i){for(var u=s.firstChild;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function C_(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function O_(e,t,r){var i=e.style,a=ye(r);if(r&&!a){for(var n in r)xs(i,n,r[n]);if(t&&!ye(t))for(var o in t)r[o]==null&&xs(i,o,"")}else{var s=i.display;a?t!==r&&(i.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=s)}}var ac=/\s*!important$/;function xs(e,t,r){if(ne(r))r.forEach(a=>xs(e,t,a));else if(r=k_(r),t.startsWith("--"))e.setProperty(t,r);else{var i=A_(e,t);ac.test(r)?e.setProperty(Ke(i),r.replace(ac,""),"important"):e[i]=r}}var nc=["Webkit","Moz","ms"],ys={};function A_(e,t){var r=ys[t];if(r)return r;var i=zt(t);if(i!=="filter"&&i in e)return ys[t]=i;i=Ra(i);for(var a=0;a<nc.length;a++){var n=nc[a]+i;if(n in e)return ys[t]=n}return t}var I_=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,k_=e=>typeof rpx2px!="function"?e:ye(e)?e.replace(I_,(t,r)=>rpx2px(r)+"px"):e,oc="http://www.w3.org/1999/xlink";function M_(e,t,r,i,a){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(oc,t.slice(6,t.length)):e.setAttributeNS(oc,t,r);else{var n=mp(t);r==null||n&&!Su(r)?e.removeAttribute(t):e.setAttribute(t,n?"":r)}}function R_(e,t,r,i,a,n,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,a,n),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;var s=r==null?"":r;(e.value!==s||e.tagName==="OPTION")&&(e.value=s),r==null&&e.removeAttribute(t);return}if(r===""||r==null){var u=typeof e[t];if(u==="boolean"){e[t]=Su(r);return}else if(r==null&&u==="string"){e[t]="",e.removeAttribute(t);return}else if(u==="number"){try{e[t]=0}catch(l){}e.removeAttribute(t);return}}try{e[t]=r}catch(l){}}var on=Date.now,sc=!1;if(typeof window!="undefined"){on()>document.createEvent("Event").timeStamp&&(on=()=>performance.now());var lc=navigator.userAgent.match(/firefox\/(\d+)/i);sc=!!(lc&&Number(lc[1])<=53)}var Ss=0,L_=Promise.resolve(),P_=()=>{Ss=0},N_=()=>Ss||(L_.then(P_),Ss=on());function D_(e,t,r,i){e.addEventListener(t,r,i)}function B_(e,t,r,i){e.removeEventListener(t,r,i)}function $_(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=e._vei||(e._vei={}),o=n[t];if(i&&o)o.value=i;else{var[s,u]=F_(t);if(i){var l=n[t]=z_(i,a);D_(e,s,l,u)}else o&&(B_(e,s,o,u),n[t]=void 0)}}var uc=/(?:Once|Passive|Capture)$/;function F_(e){var t;if(uc.test(e)){t={};for(var r;r=e.match(uc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ke(e.slice(2)),t]}function z_(e,t){var r=i=>{var a=i.timeStamp||on();(sc||a>=r.attached-1)&&ft(U_(i,r.value),t,5,[i])};return r.value=e,r.attached=N_(),r}function U_(e,t){if(ne(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>a=>!a._stopped&&i(a))}else return t}var fc=/^on[a-z]/,H_=function(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,n=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0;t==="class"?C_(e,i,a):t==="style"?O_(e,r,i):Ia(t)?So(t)||$_(e,t,r,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):W_(e,t,i,a))?R_(e,t,i,n,o,s,u):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),M_(e,t,i,a))};function W_(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&fc.test(t)&&oe(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||fc.test(t)&&ye(r)?!1:t in e}var V_=["ctrl","shift","alt","meta"],j_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>V_.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},Es=(e,t)=>function(r){for(var i=0;i<t.length;i++){var a=j_[t[i]];if(a&&a(r,t))return}for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return e(r,...o)},Pi={beforeMount(e,t,r){var{value:i}=t,{transition:a}=r;e._vod=e.style.display==="none"?"":e.style.display,a&&i?a.beforeEnter(e):Ni(e,i)},mounted(e,t,r){var{value:i}=t,{transition:a}=r;a&&i&&a.enter(e)},updated(e,t,r){var{value:i,oldValue:a}=t,{transition:n}=r;!i!=!a&&(n?i?(n.beforeEnter(e),Ni(e,!0),n.enter(e)):n.leave(e,()=>{Ni(e,!1)}):Ni(e,i))},beforeUnmount(e,t){var{value:r}=t;Ni(e,r)}};function Ni(e,t){e.style.display=t?e._vod:"none"}var Y_=ve({patchProp:H_},T_),cc;function q_(){return cc||(cc=a_(Y_))}var vc=function(){var e=q_().createApp(...arguments),{mount:t}=e;return e.mount=r=>{var i=X_(r);if(!!i){var a=e._component;!oe(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";var n=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),n}},e};function X_(e){if(ye(e)){var t=document.querySelector(e);return t}return e}var dc=["top","left","right","bottom"],Ts,sn={},ot;function Cs(){return!("CSS"in window)||typeof CSS.supports!="function"?ot="":CSS.supports("top: env(safe-area-inset-top)")?ot="env":CSS.supports("top: constant(safe-area-inset-top)")?ot="constant":ot="",ot}function hc(){if(ot=typeof ot=="string"?ot:Cs(),!ot){dc.forEach(function(s){sn[s]=0});return}function e(s,u){var l=s.style;Object.keys(u).forEach(function(f){var v=u[f];l[f]=v})}var t=[];function r(s){s?t.push(s):t.forEach(function(u){u()})}var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,a)}catch(s){}function n(s,u){var l=document.createElement("div"),f=document.createElement("div"),v=document.createElement("div"),m=document.createElement("div"),d=100,_=1e4,b={position:"absolute",width:d+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:ot+"(safe-area-inset-"+u+")"};e(l,b),e(f,b),e(v,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(m,{transition:"0s",animation:"none",width:"250%",height:"250%"}),l.appendChild(v),f.appendChild(m),s.appendChild(l),s.appendChild(f),r(function(){l.scrollTop=f.scrollTop=_;var p=l.scrollTop,g=f.scrollTop;function c(){this.scrollTop!==(this===l?p:g)&&(l.scrollTop=f.scrollTop=_,p=l.scrollTop,g=f.scrollTop,Z_(u))}l.addEventListener("scroll",c,i),f.addEventListener("scroll",c,i)});var x=getComputedStyle(l);Object.defineProperty(sn,u,{configurable:!0,get:function(){return parseFloat(x.paddingBottom)}})}var o=document.createElement("div");e(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),dc.forEach(function(s){n(o,s)}),document.body.appendChild(o),r(),Ts=!0}function ln(e){return Ts||hc(),sn[e]}var un=[];function Z_(e){un.length||setTimeout(function(){var t={};un.forEach(function(r){t[r]=sn[r]}),un.length=0,fn.forEach(function(r){r(t)})},0),un.push(e)}var fn=[];function K_(e){!Cs()||(Ts||hc(),typeof e=="function"&&fn.push(e))}function G_(e){var t=fn.indexOf(e);t>=0&&fn.splice(t,1)}var J_={get support(){return(typeof ot=="string"?ot:Cs()).length!=0},get top(){return ln("top")},get left(){return ln("left")},get right(){return ln("right")},get bottom(){return ln("bottom")},onChange:K_,offChange:G_},cn=J_,gc=Es(()=>{},["prevent"]);function vn(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Os(){var e=document.documentElement.style,t=vn(e,"--window-top");return t?t+cn.top:0}function Q_(){var e=document.documentElement.style,t=Os(),r=vn(e,"--window-bottom"),i=vn(e,"--window-left"),a=vn(e,"--window-right");return{top:t,bottom:r?r+cn.bottom:0,left:i?i+cn.left:0,right:a?a+cn.right:0}}function eb(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function dn(e){return Symbol(e)}function pc(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function _r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t)return tb(e);if(typeof e=="string"){var r=parseInt(e)||0;return pc(e)?uni.upx2px(r):r}return e}function tb(e){return pc(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var rb="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",ib="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",ab="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",nb="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",ob="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",hn="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",sb="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",lb="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",ub="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function gn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#000",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:27;return I("svg",{width:r,height:r,viewBox:"0 0 32 32"},[I("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function pn(){return Xt()}function fb(){return window.__PAGE_INFO__}function Xt(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function cb(e){e.preventDefault()}var mc,_c=0;function vb(e){var{onPageScroll:t,onReachBottom:r,onReachBottomDistance:i}=e,a=!1,n=!1,o=!0,s=()=>{var{scrollHeight:l}=document.documentElement,f=window.innerHeight,v=window.scrollY,m=v>0&&l>f&&v+f+i>=l,d=Math.abs(l-_c)>i;return m&&(!n||d)?(_c=l,n=!0,!0):(!m&&n&&(n=!1),!1)},u=()=>{t&&t(window.pageYOffset);function l(){if(s())return r&&r(),o=!1,setTimeout(function(){o=!0},350),!0}r&&o&&(l()||(mc=setTimeout(l,300))),a=!1};return function(){clearTimeout(mc),a||requestAnimationFrame(u),a=!0}}function As(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return As(e,t.substr(2));for(var r=t.split("/"),i=r.length,a=0;a<i&&r[a]==="..";a++);r.splice(0,a),t=r.join("/");var n=e.length>0?e.split("/"):[];return n.splice(n.length-a-1,a+1),$o(n.concat(r).join("/"))}class db{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=bc(this.$el.querySelector(t));if(!!r)return Is(r)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),a=0;a<i.length;a++){var n=bc(i[a]);n&&r.push(Is(n))}return r}forceUpdate(t){t==="class"?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():t==="style"&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){var{__wxsAddClass:t}=this.$el;t.length&&(this.$el.className=t.join(" "))}updateWxsStyle(){var{__wxsStyle:t}=this.$el;t&&this.$el.setAttribute("style",xp(t))}setStyle(t){return!this.$el||!t?this:(typeof t=="string"&&(t=Eu(t)),mt(t)&&(this.$el.__wxsStyle=t,this.forceUpdate("style")),this)}addClass(t){if(!this.$el||!t)return this;var r=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return r.indexOf(t)===-1&&(r.push(t),this.forceUpdate("class")),this}removeClass(t){if(!this.$el||!t)return this;var{__wxsAddClass:r}=this.$el;if(r){var i=r.indexOf(t);i>-1&&r.splice(i,1)}var a=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return a.indexOf(t)===-1&&(a.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.$vm[t];oe(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(Bp,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,a)=>(i[a]=r[a],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Is(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new db(e)),e.$el.__wxsComponentDescriptor}function Di(e,t){return Is(e)}function bc(e){if(!!e)return qr(e)}function qr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:a,__wxsClassChanged:n}=e,o,s;a&&(e.__wxsStyleChanged=!1,t&&(s=()=>{Object.keys(t).forEach(u=>{e.style[u]=t[u]})})),n&&(e.__wxsClassChanged=!1,o=()=>{i&&i.forEach(u=>{e.classList.remove(u)}),r&&r.forEach(u=>{e.classList.add(u)})}),requestAnimationFrame(()=>{o&&o(),s&&s()})}})}var hb=e=>e.type==="click";function wc(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];if(i.tagName.indexOf("UNI-")!==0)return[e];var a=xc(e);if(hb(e))pb(a,e);else if(e instanceof TouchEvent){var n=Os();a.touches=yc(e.touches,n),a.changedTouches=yc(e.changedTouches,n)}return[a]}function gb(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function xc(e){var{type:t,timeStamp:r,target:i,currentTarget:a}=e,n={type:t,timeStamp:r,target:Lo(gb(i)),detail:{},currentTarget:Lo(a)};return e._stopped&&(n._stopped=!0),e.type.startsWith("touch")&&(n.touches=e.touches,n.changedTouches=e.changedTouches),n}function pb(e,t){var{x:r,y:i}=t,a=Os();e.detail={x:r,y:i-a},e.touches=e.changedTouches=[mb(t,a)]}function mb(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function yc(e,t){for(var r=[],i=0;i<e.length;i++){var{identifier:a,pageX:n,pageY:o,clientX:s,clientY:u,force:l}=e[i];r.push({identifier:a,pageX:n,pageY:o-t,clientX:s,clientY:u-t,force:l||0})}return r}var Sc="vdSync",_b="__uniapp__service",Ec="onWebviewReady",bb=0,wb="webviewInserted",xb="webviewRemoved",yb="webviewId",Sb="setLocale",Tc=ve(R0,{publishHandler:Eb});function Eb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Xt()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:r}},_b)}function Tb(e,t){var r=e[0];if(!(!t||!mt(t.formatArgs)&&mt(r)))for(var i=t.formatArgs,a=Object.keys(i),n=0;n<a.length;n++){var o=a[n],s=i[o];if(oe(s)){var u=s(e[0][o],r);if(ye(u))return u}else re(r,o)||(r[o]=s)}}function Cb(e,t,r,i){if(i&&i.beforeInvoke){var a=i.beforeInvoke(t);if(ye(a))return a}var n=Tb(t,i);if(n)return n}function Ob(e,t,r,i){return function(){for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];var s=Cb(e,n,r,i);if(s)throw new Error(s);return t.apply(null,n)}}function Ab(e,t,r,i){return Ob(e,t,void 0,i)}function Cc(){if(typeof __SYSTEM_INFO__!="undefined")return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize();return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}function vt(e){if(e.indexOf("//")===0)return"https:"+e;if(Mp.test(e)||Rp.test(e))return e;if(Ib(e))return"file://"+Oc(e);var t="file://"+Oc("_www");if(e.indexOf("/")===0)return e.startsWith("/storage/")||e.startsWith("/sdcard/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(e.indexOf("../")===0||e.indexOf("./")===0){if(typeof __id__=="string")return t+As($o(__id__),e);var r=fb();if(r)return t+As($o(r.route),e)}return e}var Oc=n0(e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Ib(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}var kb=0;function Mb(e,t,r){var i="".concat(Date.now()).concat(kb++),a=new plus.nativeObj.Bitmap("bitmap".concat(i));a.loadBase64Data(e,function(){var o=e.match(/data:image\/(\S+?);/)||[null,"png"],s;o[1]&&(s=o[1].replace("jpeg","jpg"));var u="".concat(t,"/").concat(i,".").concat(s);a.save(u,{overwrite:!0,quality:100,format:s},function(){n(),r(null,u)},function(l){n(),r(l)})},function(o){n(),r(o)});function n(){a.clear()}}var Nt={};(function(e){var t=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function r(n,o){return Object.prototype.hasOwnProperty.call(n,o)}e.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(!!s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var u in s)r(s,u)&&(n[u]=s[u])}}return n},e.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var i={arraySet:function(n,o,s,u,l){if(o.subarray&&n.subarray){n.set(o.subarray(s,s+u),l);return}for(var f=0;f<u;f++)n[l+f]=o[s+f]},flattenChunks:function(n){var o,s,u,l,f,v;for(u=0,o=0,s=n.length;o<s;o++)u+=n[o].length;for(v=new Uint8Array(u),l=0,o=0,s=n.length;o<s;o++)f=n[o],v.set(f,l),l+=f.length;return v}},a={arraySet:function(n,o,s,u,l){for(var f=0;f<u;f++)n[l+f]=o[s+f]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(Nt);var Bi={},St={},Xr={},Rb=Nt,Lb=4,Ac=0,Ic=1,Pb=2;function Zr(e){for(var t=e.length;--t>=0;)e[t]=0}var Nb=0,kc=1,Db=2,Bb=3,$b=258,ks=29,$i=256,Fi=$i+1+ks,Kr=30,Ms=19,Mc=2*Fi+1,br=15,Rs=16,Fb=7,Ls=256,Rc=16,Lc=17,Pc=18,Ps=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],mn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],zb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Nc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ub=512,Dt=new Array((Fi+2)*2);Zr(Dt);var zi=new Array(Kr*2);Zr(zi);var Ui=new Array(Ub);Zr(Ui);var Hi=new Array($b-Bb+1);Zr(Hi);var Ns=new Array(ks);Zr(Ns);var _n=new Array(Kr);Zr(_n);function Ds(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var Dc,Bc,$c;function Bs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Fc(e){return e<256?Ui[e]:Ui[256+(e>>>7)]}function Wi(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Xe(e,t,r){e.bi_valid>Rs-r?(e.bi_buf|=t<<e.bi_valid&65535,Wi(e,e.bi_buf),e.bi_buf=t>>Rs-e.bi_valid,e.bi_valid+=r-Rs):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Et(e,t,r){Xe(e,r[t*2],r[t*2+1])}function zc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Hb(e){e.bi_valid===16?(Wi(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function Wb(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,n=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,l,f,v,m,d,_,b=0;for(m=0;m<=br;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Mc;l++)f=e.heap[l],m=r[r[f*2+1]*2+1]+1,m>u&&(m=u,b++),r[f*2+1]=m,!(f>i)&&(e.bl_count[m]++,d=0,f>=s&&(d=o[f-s]),_=r[f*2],e.opt_len+=_*(m+d),n&&(e.static_len+=_*(a[f*2+1]+d)));if(b!==0){do{for(m=u-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[u]--,b-=2}while(b>0);for(m=u;m!==0;m--)for(f=e.bl_count[m];f!==0;)v=e.heap[--l],!(v>i)&&(r[v*2+1]!==m&&(e.opt_len+=(m-r[v*2+1])*r[v*2],r[v*2+1]=m),f--)}}function Uc(e,t,r){var i=new Array(br+1),a=0,n,o;for(n=1;n<=br;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=zc(i[s]++,s))}}function Vb(){var e,t,r,i,a,n=new Array(br+1);for(r=0,i=0;i<ks-1;i++)for(Ns[i]=r,e=0;e<1<<Ps[i];e++)Hi[r++]=i;for(Hi[r-1]=i,a=0,i=0;i<16;i++)for(_n[i]=a,e=0;e<1<<mn[i];e++)Ui[a++]=i;for(a>>=7;i<Kr;i++)for(_n[i]=a<<7,e=0;e<1<<mn[i]-7;e++)Ui[256+a++]=i;for(t=0;t<=br;t++)n[t]=0;for(e=0;e<=143;)Dt[e*2+1]=8,e++,n[8]++;for(;e<=255;)Dt[e*2+1]=9,e++,n[9]++;for(;e<=279;)Dt[e*2+1]=7,e++,n[7]++;for(;e<=287;)Dt[e*2+1]=8,e++,n[8]++;for(Uc(Dt,Fi+1,n),e=0;e<Kr;e++)zi[e*2+1]=5,zi[e*2]=zc(e,5);Dc=new Ds(Dt,Ps,$i+1,Fi,br),Bc=new Ds(zi,mn,0,Kr,br),$c=new Ds(new Array(0),zb,0,Ms,Fb)}function Hc(e){var t;for(t=0;t<Fi;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Kr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ms;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ls*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Wc(e){e.bi_valid>8?Wi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function jb(e,t,r,i){Wc(e),i&&(Wi(e,r),Wi(e,~r)),Rb.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function Vc(e,t,r,i){var a=t*2,n=r*2;return e[a]<e[n]||e[a]===e[n]&&i[t]<=i[r]}function $s(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&Vc(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Vc(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function jc(e,t,r){var i,a,n=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],a=e.pending_buf[e.l_buf+n],n++,i===0?Et(e,a,t):(o=Hi[a],Et(e,o+$i+1,t),s=Ps[o],s!==0&&(a-=Ns[o],Xe(e,a,s)),i--,o=Fc(i),Et(e,o,r),s=mn[o],s!==0&&(i-=_n[o],Xe(e,i,s)));while(n<e.last_lit);Et(e,Ls,t)}function Fs(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,n=t.stat_desc.elems,o,s,u=-1,l;for(e.heap_len=0,e.heap_max=Mc,o=0;o<n;o++)r[o*2]!==0?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=u<2?++u:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,a&&(e.static_len-=i[l*2+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)$s(e,r,o);l=n;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$s(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[l*2]=r[o*2]+r[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=l,e.heap[1]=l++,$s(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Wb(e,t),Uc(r,u,e.bl_count)}function Yc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)n=o,o=t[(i+1)*2+1],!(++s<u&&n===o)&&(s<l?e.bl_tree[n*2]+=s:n!==0?(n!==a&&e.bl_tree[n*2]++,e.bl_tree[Rc*2]++):s<=10?e.bl_tree[Lc*2]++:e.bl_tree[Pc*2]++,s=0,a=n,o===0?(u=138,l=3):n===o?(u=6,l=3):(u=7,l=4))}function qc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),i=0;i<=r;i++)if(n=o,o=t[(i+1)*2+1],!(++s<u&&n===o)){if(s<l)do Et(e,n,e.bl_tree);while(--s!=0);else n!==0?(n!==a&&(Et(e,n,e.bl_tree),s--),Et(e,Rc,e.bl_tree),Xe(e,s-3,2)):s<=10?(Et(e,Lc,e.bl_tree),Xe(e,s-3,3)):(Et(e,Pc,e.bl_tree),Xe(e,s-11,7));s=0,a=n,o===0?(u=138,l=3):n===o?(u=6,l=3):(u=7,l=4)}}function Yb(e){var t;for(Yc(e,e.dyn_ltree,e.l_desc.max_code),Yc(e,e.dyn_dtree,e.d_desc.max_code),Fs(e,e.bl_desc),t=Ms-1;t>=3&&e.bl_tree[Nc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function qb(e,t,r,i){var a;for(Xe(e,t-257,5),Xe(e,r-1,5),Xe(e,i-4,4),a=0;a<i;a++)Xe(e,e.bl_tree[Nc[a]*2+1],3);qc(e,e.dyn_ltree,t-1),qc(e,e.dyn_dtree,r-1)}function Xb(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Ac;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ic;for(r=32;r<$i;r++)if(e.dyn_ltree[r*2]!==0)return Ic;return Ac}var Xc=!1;function Zb(e){Xc||(Vb(),Xc=!0),e.l_desc=new Bs(e.dyn_ltree,Dc),e.d_desc=new Bs(e.dyn_dtree,Bc),e.bl_desc=new Bs(e.bl_tree,$c),e.bi_buf=0,e.bi_valid=0,Hc(e)}function Zc(e,t,r,i){Xe(e,(Nb<<1)+(i?1:0),3),jb(e,t,r,!0)}function Kb(e){Xe(e,kc<<1,3),Et(e,Ls,Dt),Hb(e)}function Gb(e,t,r,i){var a,n,o=0;e.level>0?(e.strm.data_type===Pb&&(e.strm.data_type=Xb(e)),Fs(e,e.l_desc),Fs(e,e.d_desc),o=Yb(e),a=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=a&&(a=n)):a=n=r+5,r+4<=a&&t!==-1?Zc(e,t,r,i):e.strategy===Lb||n===a?(Xe(e,(kc<<1)+(i?1:0),3),jc(e,Dt,zi)):(Xe(e,(Db<<1)+(i?1:0),3),qb(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),jc(e,e.dyn_ltree,e.dyn_dtree)),Hc(e),i&&Wc(e)}function Jb(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Hi[r]+$i+1)*2]++,e.dyn_dtree[Fc(t)*2]++),e.last_lit===e.lit_bufsize-1}Xr._tr_init=Zb,Xr._tr_stored_block=Zc,Xr._tr_flush_block=Gb,Xr._tr_tally=Jb,Xr._tr_align=Kb;function Qb(e,t,r,i){for(var a=e&65535|0,n=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do a=a+t[i++]|0,n=n+a|0;while(--o);a%=65521,n%=65521}return a|n<<16|0}var Kc=Qb;function ew(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var tw=ew();function rw(e,t,r,i){var a=tw,n=i+r;e^=-1;for(var o=i;o<n;o++)e=e>>>8^a[(e^t[o])&255];return e^-1}var Gc=rw,zs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ye=Nt,st=Xr,Jc=Kc,Zt=Gc,iw=zs,wr=0,aw=1,nw=3,Kt=4,Qc=5,Tt=0,ev=1,lt=-2,ow=-3,Us=-5,sw=-1,lw=1,bn=2,uw=3,fw=4,cw=0,vw=2,wn=8,dw=9,hw=15,gw=8,pw=29,mw=256,Hs=mw+1+pw,_w=30,bw=19,ww=2*Hs+1,xw=15,de=3,Gt=258,dt=Gt+de+1,yw=32,xn=42,Ws=69,yn=73,Sn=91,En=103,xr=113,Vi=666,Le=1,ji=2,yr=3,Gr=4,Sw=3;function Jt(e,t){return e.msg=iw[t],t}function tv(e){return(e<<1)-(e>4?9:0)}function Qt(e){for(var t=e.length;--t>=0;)e[t]=0}function er(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(Ye.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Ue(e,t){st._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,er(e.strm)}function pe(e,t){e.pending_buf[e.pending++]=t}function Yi(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Ew(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,Ye.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Jc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Zt(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function rv(e,t){var r=e.max_chain_length,i=e.strstart,a,n,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-dt?e.strstart-(e.w_size-dt):0,l=e.window,f=e.w_mask,v=e.prev,m=e.strstart+Gt,d=l[i+o-1],_=l[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(l[a+o]!==_||l[a+o-1]!==d||l[a]!==l[i]||l[++a]!==l[i+1])){i+=2,a++;do;while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<m);if(n=Gt-(m-i),i=m-Gt,n>o){if(e.match_start=t,o=n,n>=s)break;d=l[i+o-1],_=l[i+o]}}while((t=v[t&f])>u&&--r!=0);return o<=e.lookahead?o:e.lookahead}function Sr(e){var t=e.w_size,r,i,a,n,o;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-dt)){Ye.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);n+=t}if(e.strm.avail_in===0)break;if(i=Ew(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=i,e.lookahead+e.insert>=de)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+de-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<de)););}while(e.lookahead<dt&&e.strm.avail_in!==0)}function Tw(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Sr(e),e.lookahead===0&&t===wr)return Le;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Ue(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-dt&&(Ue(e,!1),e.strm.avail_out===0))return Le}return e.insert=0,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):(e.strstart>e.block_start&&(Ue(e,!1),e.strm.avail_out===0),Le)}function Vs(e,t){for(var r,i;;){if(e.lookahead<dt){if(Sr(e),e.lookahead<dt&&t===wr)return Le;if(e.lookahead===0)break}if(r=0,e.lookahead>=de&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-dt&&(e.match_length=rv(e,r)),e.match_length>=de)if(i=st._tr_tally(e,e.strstart-e.match_start,e.match_length-de),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=de){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!=0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=st._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ue(e,!1),e.strm.avail_out===0))return Le}return e.insert=e.strstart<de-1?e.strstart:de-1,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):e.last_lit&&(Ue(e,!1),e.strm.avail_out===0)?Le:ji}function Jr(e,t){for(var r,i,a;;){if(e.lookahead<dt){if(Sr(e),e.lookahead<dt&&t===wr)return Le;if(e.lookahead===0)break}if(r=0,e.lookahead>=de&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=de-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-dt&&(e.match_length=rv(e,r),e.match_length<=5&&(e.strategy===lw||e.match_length===de&&e.strstart-e.match_start>4096)&&(e.match_length=de-1)),e.prev_length>=de&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-de,i=st._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-de),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!=0);if(e.match_available=0,e.match_length=de-1,e.strstart++,i&&(Ue(e,!1),e.strm.avail_out===0))return Le}else if(e.match_available){if(i=st._tr_tally(e,0,e.window[e.strstart-1]),i&&Ue(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Le}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=st._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<de-1?e.strstart:de-1,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):e.last_lit&&(Ue(e,!1),e.strm.avail_out===0)?Le:ji}function Cw(e,t){for(var r,i,a,n,o=e.window;;){if(e.lookahead<=Gt){if(Sr(e),e.lookahead<=Gt&&t===wr)return Le;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=de&&e.strstart>0&&(a=e.strstart-1,i=o[a],i===o[++a]&&i===o[++a]&&i===o[++a])){n=e.strstart+Gt;do;while(i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&a<n);e.match_length=Gt-(n-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=de?(r=st._tr_tally(e,1,e.match_length-de),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=st._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ue(e,!1),e.strm.avail_out===0))return Le}return e.insert=0,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):e.last_lit&&(Ue(e,!1),e.strm.avail_out===0)?Le:ji}function Ow(e,t){for(var r;;){if(e.lookahead===0&&(Sr(e),e.lookahead===0)){if(t===wr)return Le;break}if(e.match_length=0,r=st._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ue(e,!1),e.strm.avail_out===0))return Le}return e.insert=0,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):e.last_lit&&(Ue(e,!1),e.strm.avail_out===0)?Le:ji}function Ct(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var Qr;Qr=[new Ct(0,0,0,0,Tw),new Ct(4,4,8,4,Vs),new Ct(4,5,16,8,Vs),new Ct(4,6,32,32,Vs),new Ct(4,4,16,16,Jr),new Ct(8,16,32,32,Jr),new Ct(8,16,128,128,Jr),new Ct(8,32,128,256,Jr),new Ct(32,128,258,1024,Jr),new Ct(32,258,258,4096,Jr)];function Aw(e){e.window_size=2*e.w_size,Qt(e.head),e.max_lazy_match=Qr[e.level].max_lazy,e.good_match=Qr[e.level].good_length,e.nice_match=Qr[e.level].nice_length,e.max_chain_length=Qr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=de-1,e.match_available=0,e.ins_h=0}function Iw(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=wn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Ye.Buf16(ww*2),this.dyn_dtree=new Ye.Buf16((2*_w+1)*2),this.bl_tree=new Ye.Buf16((2*bw+1)*2),Qt(this.dyn_ltree),Qt(this.dyn_dtree),Qt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Ye.Buf16(xw+1),this.heap=new Ye.Buf16(2*Hs+1),Qt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Ye.Buf16(2*Hs+1),Qt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function iv(e){var t;return!e||!e.state?Jt(e,lt):(e.total_in=e.total_out=0,e.data_type=vw,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?xn:xr,e.adler=t.wrap===2?0:1,t.last_flush=wr,st._tr_init(t),Tt)}function av(e){var t=iv(e);return t===Tt&&Aw(e.state),t}function kw(e,t){return!e||!e.state||e.state.wrap!==2?lt:(e.state.gzhead=t,Tt)}function nv(e,t,r,i,a,n){if(!e)return lt;var o=1;if(t===sw&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),a<1||a>dw||r!==wn||i<8||i>15||t<0||t>9||n<0||n>fw)return Jt(e,lt);i===8&&(i=9);var s=new Iw;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+de-1)/de),s.window=new Ye.Buf8(s.w_size*2),s.head=new Ye.Buf16(s.hash_size),s.prev=new Ye.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Ye.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=(1+2)*s.lit_bufsize,s.level=t,s.strategy=n,s.method=r,av(e)}function Mw(e,t){return nv(e,t,wn,hw,gw,cw)}function Rw(e,t){var r,i,a,n;if(!e||!e.state||t>Qc||t<0)return e?Jt(e,lt):lt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Vi&&t!==Kt)return Jt(e,e.avail_out===0?Us:lt);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===xn)if(i.wrap===2)e.adler=0,pe(i,31),pe(i,139),pe(i,8),i.gzhead?(pe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),pe(i,i.gzhead.time&255),pe(i,i.gzhead.time>>8&255),pe(i,i.gzhead.time>>16&255),pe(i,i.gzhead.time>>24&255),pe(i,i.level===9?2:i.strategy>=bn||i.level<2?4:0),pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(pe(i,i.gzhead.extra.length&255),pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Zt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Ws):(pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,i.level===9?2:i.strategy>=bn||i.level<2?4:0),pe(i,Sw),i.status=xr);else{var o=wn+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=bn||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=yw),o+=31-o%31,i.status=xr,Yi(i,o),i.strstart!==0&&(Yi(i,e.adler>>>16),Yi(i,e.adler&65535)),e.adler=1}if(i.status===Ws)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),er(e),a=i.pending,i.pending===i.pending_buf_size));)pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=yn)}else i.status=yn;if(i.status===yn)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),er(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.name.length?n=i.gzhead.name.charCodeAt(i.gzindex++)&255:n=0,pe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.gzindex=0,i.status=Sn)}else i.status=Sn;if(i.status===Sn)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),er(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.comment.length?n=i.gzhead.comment.charCodeAt(i.gzindex++)&255:n=0,pe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.status=En)}else i.status=En;if(i.status===En&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&er(e),i.pending+2<=i.pending_buf_size&&(pe(i,e.adler&255),pe(i,e.adler>>8&255),e.adler=0,i.status=xr)):i.status=xr),i.pending!==0){if(er(e),e.avail_out===0)return i.last_flush=-1,Tt}else if(e.avail_in===0&&tv(t)<=tv(r)&&t!==Kt)return Jt(e,Us);if(i.status===Vi&&e.avail_in!==0)return Jt(e,Us);if(e.avail_in!==0||i.lookahead!==0||t!==wr&&i.status!==Vi){var u=i.strategy===bn?Ow(i,t):i.strategy===uw?Cw(i,t):Qr[i.level].func(i,t);if((u===yr||u===Gr)&&(i.status=Vi),u===Le||u===yr)return e.avail_out===0&&(i.last_flush=-1),Tt;if(u===ji&&(t===aw?st._tr_align(i):t!==Qc&&(st._tr_stored_block(i,0,0,!1),t===nw&&(Qt(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),er(e),e.avail_out===0))return i.last_flush=-1,Tt}return t!==Kt?Tt:i.wrap<=0?ev:(i.wrap===2?(pe(i,e.adler&255),pe(i,e.adler>>8&255),pe(i,e.adler>>16&255),pe(i,e.adler>>24&255),pe(i,e.total_in&255),pe(i,e.total_in>>8&255),pe(i,e.total_in>>16&255),pe(i,e.total_in>>24&255)):(Yi(i,e.adler>>>16),Yi(i,e.adler&65535)),er(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Tt:ev)}function Lw(e){var t;return!e||!e.state?lt:(t=e.state.status,t!==xn&&t!==Ws&&t!==yn&&t!==Sn&&t!==En&&t!==xr&&t!==Vi?Jt(e,lt):(e.state=null,t===xr?Jt(e,ow):Tt))}function Pw(e,t){var r=t.length,i,a,n,o,s,u,l,f;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==xn||i.lookahead))return lt;for(o===1&&(e.adler=Jc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(Qt(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new Ye.Buf8(i.w_size),Ye.arraySet(f,t,r-i.w_size,i.w_size,0),t=f,r=i.w_size),s=e.avail_in,u=e.next_in,l=e.input,e.avail_in=r,e.next_in=0,e.input=t,Sr(i);i.lookahead>=de;){a=i.strstart,n=i.lookahead-(de-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+de-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--n);i.strstart=a,i.lookahead=de-1,Sr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=de-1,i.match_available=0,e.next_in=u,e.input=l,e.avail_in=s,i.wrap=o,Tt}St.deflateInit=Mw,St.deflateInit2=nv,St.deflateReset=av,St.deflateResetKeep=iv,St.deflateSetHeader=kw,St.deflate=Rw,St.deflateEnd=Lw,St.deflateSetDictionary=Pw,St.deflateInfo="pako deflate (from Nodeca project)";var Er={},Tn=Nt,ov=!0,sv=!0;try{String.fromCharCode.apply(null,[0])}catch(e){ov=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){sv=!1}for(var qi=new Tn.Buf8(256),tr=0;tr<256;tr++)qi[tr]=tr>=252?6:tr>=248?5:tr>=240?4:tr>=224?3:tr>=192?2:1;qi[254]=qi[254]=1,Er.string2buf=function(e){var t,r,i,a,n,o=e.length,s=0;for(a=0;a<o;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<o&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Tn.Buf8(s),n=0,a=0;n<s;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<o&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[n++]=r:r<2048?(t[n++]=192|r>>>6,t[n++]=128|r&63):r<65536?(t[n++]=224|r>>>12,t[n++]=128|r>>>6&63,t[n++]=128|r&63):(t[n++]=240|r>>>18,t[n++]=128|r>>>12&63,t[n++]=128|r>>>6&63,t[n++]=128|r&63);return t};function lv(e,t){if(t<65534&&(e.subarray&&sv||!e.subarray&&ov))return String.fromCharCode.apply(null,Tn.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Er.buf2binstring=function(e){return lv(e,e.length)},Er.binstring2buf=function(e){for(var t=new Tn.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},Er.buf2string=function(e,t){var r,i,a,n,o=t||e.length,s=new Array(o*2);for(i=0,r=0;r<o;){if(a=e[r++],a<128){s[i++]=a;continue}if(n=qi[a],n>4){s[i++]=65533,r+=n-1;continue}for(a&=n===2?31:n===3?15:7;n>1&&r<o;)a=a<<6|e[r++]&63,n--;if(n>1){s[i++]=65533;continue}a<65536?s[i++]=a:(a-=65536,s[i++]=55296|a>>10&1023,s[i++]=56320|a&1023)}return lv(s,i)},Er.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)==128;)r--;return r<0||r===0?t:r+qi[e[r]]>t?r:t};function Nw(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var uv=Nw,Xi=St,Zi=Nt,js=Er,Ys=zs,Dw=uv,fv=Object.prototype.toString,Bw=0,qs=4,ei=0,cv=1,vv=2,$w=-1,Fw=0,zw=8;function Tr(e){if(!(this instanceof Tr))return new Tr(e);this.options=Zi.assign({level:$w,method:zw,chunkSize:16384,windowBits:15,memLevel:8,strategy:Fw,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Dw,this.strm.avail_out=0;var r=Xi.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ei)throw new Error(Ys[r]);if(t.header&&Xi.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=js.string2buf(t.dictionary):fv.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Xi.deflateSetDictionary(this.strm,i),r!==ei)throw new Error(Ys[r]);this._dict_set=!0}}Tr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,n;if(this.ended)return!1;n=t===~~t?t:t===!0?qs:Bw,typeof e=="string"?r.input=js.string2buf(e):fv.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Zi.Buf8(i),r.next_out=0,r.avail_out=i),a=Xi.deflate(r,n),a!==cv&&a!==ei)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(n===qs||n===vv))&&(this.options.to==="string"?this.onData(js.buf2binstring(Zi.shrinkBuf(r.output,r.next_out))):this.onData(Zi.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==cv);return n===qs?(a=Xi.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ei):(n===vv&&(this.onEnd(ei),r.avail_out=0),!0)},Tr.prototype.onData=function(e){this.chunks.push(e)},Tr.prototype.onEnd=function(e){e===ei&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Zi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xs(e,t){var r=new Tr(t);if(r.push(e,!0),r.err)throw r.msg||Ys[r.err];return r.result}function Uw(e,t){return t=t||{},t.raw=!0,Xs(e,t)}function Hw(e,t){return t=t||{},t.gzip=!0,Xs(e,t)}Bi.Deflate=Tr,Bi.deflate=Xs,Bi.deflateRaw=Uw,Bi.gzip=Hw;var Ki={},ht={},Cn=30,Ww=12,Vw=function(t,r){var i,a,n,o,s,u,l,f,v,m,d,_,b,x,p,g,c,h,w,y,T,E,O,N,R;i=t.state,a=t.next_in,N=t.input,n=a+(t.avail_in-5),o=t.next_out,R=t.output,s=o-(r-t.avail_out),u=o+(t.avail_out-257),l=i.dmax,f=i.wsize,v=i.whave,m=i.wnext,d=i.window,_=i.hold,b=i.bits,x=i.lencode,p=i.distcode,g=(1<<i.lenbits)-1,c=(1<<i.distbits)-1;e:do{b<15&&(_+=N[a++]<<b,b+=8,_+=N[a++]<<b,b+=8),h=x[_&g];t:for(;;){if(w=h>>>24,_>>>=w,b-=w,w=h>>>16&255,w===0)R[o++]=h&65535;else if(w&16){y=h&65535,w&=15,w&&(b<w&&(_+=N[a++]<<b,b+=8),y+=_&(1<<w)-1,_>>>=w,b-=w),b<15&&(_+=N[a++]<<b,b+=8,_+=N[a++]<<b,b+=8),h=p[_&c];r:for(;;){if(w=h>>>24,_>>>=w,b-=w,w=h>>>16&255,w&16){if(T=h&65535,w&=15,b<w&&(_+=N[a++]<<b,b+=8,b<w&&(_+=N[a++]<<b,b+=8)),T+=_&(1<<w)-1,T>l){t.msg="invalid distance too far back",i.mode=Cn;break e}if(_>>>=w,b-=w,w=o-s,T>w){if(w=T-w,w>v&&i.sane){t.msg="invalid distance too far back",i.mode=Cn;break e}if(E=0,O=d,m===0){if(E+=f-w,w<y){y-=w;do R[o++]=d[E++];while(--w);E=o-T,O=R}}else if(m<w){if(E+=f+m-w,w-=m,w<y){y-=w;do R[o++]=d[E++];while(--w);if(E=0,m<y){w=m,y-=w;do R[o++]=d[E++];while(--w);E=o-T,O=R}}}else if(E+=m-w,w<y){y-=w;do R[o++]=d[E++];while(--w);E=o-T,O=R}for(;y>2;)R[o++]=O[E++],R[o++]=O[E++],R[o++]=O[E++],y-=3;y&&(R[o++]=O[E++],y>1&&(R[o++]=O[E++]))}else{E=o-T;do R[o++]=R[E++],R[o++]=R[E++],R[o++]=R[E++],y-=3;while(y>2);y&&(R[o++]=R[E++],y>1&&(R[o++]=R[E++]))}}else if((w&64)==0){h=p[(h&65535)+(_&(1<<w)-1)];continue r}else{t.msg="invalid distance code",i.mode=Cn;break e}break}}else if((w&64)==0){h=x[(h&65535)+(_&(1<<w)-1)];continue t}else if(w&32){i.mode=Ww;break e}else{t.msg="invalid literal/length code",i.mode=Cn;break e}break}}while(a<n&&o<u);y=b>>3,a-=y,b-=y<<3,_&=(1<<b)-1,t.next_in=a,t.next_out=o,t.avail_in=a<n?5+(n-a):5-(a-n),t.avail_out=o<u?257+(u-o):257-(o-u),i.hold=_,i.bits=b},dv=Nt,ti=15,hv=852,gv=592,pv=0,Zs=1,mv=2,jw=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Yw=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],qw=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Xw=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Zw=function(t,r,i,a,n,o,s,u){var l=u.bits,f=0,v=0,m=0,d=0,_=0,b=0,x=0,p=0,g=0,c=0,h,w,y,T,E,O=null,N=0,R,V=new dv.Buf16(ti+1),ue=new dv.Buf16(ti+1),M=null,B=0,Q,te,W;for(f=0;f<=ti;f++)V[f]=0;for(v=0;v<a;v++)V[r[i+v]]++;for(_=l,d=ti;d>=1&&V[d]===0;d--);if(_>d&&(_=d),d===0)return n[o++]=1<<24|64<<16|0,n[o++]=1<<24|64<<16|0,u.bits=1,0;for(m=1;m<d&&V[m]===0;m++);for(_<m&&(_=m),p=1,f=1;f<=ti;f++)if(p<<=1,p-=V[f],p<0)return-1;if(p>0&&(t===pv||d!==1))return-1;for(ue[1]=0,f=1;f<ti;f++)ue[f+1]=ue[f]+V[f];for(v=0;v<a;v++)r[i+v]!==0&&(s[ue[r[i+v]]++]=v);if(t===pv?(O=M=s,R=19):t===Zs?(O=jw,N-=257,M=Yw,B-=257,R=256):(O=qw,M=Xw,R=-1),c=0,v=0,f=m,E=o,b=_,x=0,y=-1,g=1<<_,T=g-1,t===Zs&&g>hv||t===mv&&g>gv)return 1;for(;;){Q=f-x,s[v]<R?(te=0,W=s[v]):s[v]>R?(te=M[B+s[v]],W=O[N+s[v]]):(te=32+64,W=0),h=1<<f-x,w=1<<b,m=w;do w-=h,n[E+(c>>x)+w]=Q<<24|te<<16|W|0;while(w!==0);for(h=1<<f-1;c&h;)h>>=1;if(h!==0?(c&=h-1,c+=h):c=0,v++,--V[f]==0){if(f===d)break;f=r[i+s[v]]}if(f>_&&(c&T)!==y){for(x===0&&(x=_),E+=m,b=f-x,p=1<<b;b+x<d&&(p-=V[b+x],!(p<=0));)b++,p<<=1;if(g+=1<<b,t===Zs&&g>hv||t===mv&&g>gv)return 1;y=c&T,n[y]=_<<24|b<<16|E-o|0}}return c!==0&&(n[E+c]=f-x<<24|64<<16|0),u.bits=_,0},tt=Nt,Ks=Kc,Ot=Gc,Kw=Vw,Gi=Zw,Gw=0,_v=1,bv=2,wv=4,Jw=5,On=6,Cr=0,Qw=1,e1=2,ut=-2,xv=-3,yv=-4,t1=-5,Sv=8,Ev=1,Tv=2,Cv=3,Ov=4,Av=5,Iv=6,kv=7,Mv=8,Rv=9,Lv=10,An=11,Bt=12,Gs=13,Pv=14,Js=15,Nv=16,Dv=17,Bv=18,$v=19,In=20,kn=21,Fv=22,zv=23,Uv=24,Hv=25,Wv=26,Qs=27,Vv=28,jv=29,Ee=30,Yv=31,r1=32,i1=852,a1=592,n1=15,o1=n1;function qv(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function s1(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new tt.Buf16(320),this.work=new tt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Xv(e){var t;return!e||!e.state?ut:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Ev,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new tt.Buf32(i1),t.distcode=t.distdyn=new tt.Buf32(a1),t.sane=1,t.back=-1,Cr)}function Zv(e){var t;return!e||!e.state?ut:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Xv(e))}function Kv(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ut:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Zv(e))}function Gv(e,t){var r,i;return e?(i=new s1,e.state=i,i.window=null,r=Kv(e,t),r!==Cr&&(e.state=null),r):ut}function l1(e){return Gv(e,o1)}var Jv=!0,el,tl;function u1(e){if(Jv){var t;for(el=new tt.Buf32(512),tl=new tt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Gi(_v,e.lens,0,288,el,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Gi(bv,e.lens,0,32,tl,0,e.work,{bits:5}),Jv=!1}e.lencode=el,e.lenbits=9,e.distcode=tl,e.distbits=5}function Qv(e,t,r,i){var a,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new tt.Buf8(n.wsize)),i>=n.wsize?(tt.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a>i&&(a=i),tt.arraySet(n.window,t,r-i,a,n.wnext),i-=a,i?(tt.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=a))),0}function f1(e,t){var r,i,a,n,o,s,u,l,f,v,m,d,_,b,x=0,p,g,c,h,w,y,T,E,O=new tt.Buf8(4),N,R,V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ut;r=e.state,r.mode===Bt&&(r.mode=Gs),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,v=s,m=u,E=Cr;e:for(;;)switch(r.mode){case Ev:if(r.wrap===0){r.mode=Gs;break}for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.wrap&2&&l===35615){r.check=0,O[0]=l&255,O[1]=l>>>8&255,r.check=Ot(r.check,O,2,0),l=0,f=0,r.mode=Tv;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Ee;break}if((l&15)!==Sv){e.msg="unknown compression method",r.mode=Ee;break}if(l>>>=4,f-=4,T=(l&15)+8,r.wbits===0)r.wbits=T;else if(T>r.wbits){e.msg="invalid window size",r.mode=Ee;break}r.dmax=1<<T,e.adler=r.check=1,r.mode=l&512?Lv:Bt,l=0,f=0;break;case Tv:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.flags=l,(r.flags&255)!==Sv){e.msg="unknown compression method",r.mode=Ee;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Ee;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=Ot(r.check,O,2,0)),l=0,f=0,r.mode=Cv;case Cv:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.head&&(r.head.time=l),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,r.check=Ot(r.check,O,4,0)),l=0,f=0,r.mode=Ov;case Ov:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=Ot(r.check,O,2,0)),l=0,f=0,r.mode=Av;case Av:if(r.flags&1024){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=Ot(r.check,O,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=Iv;case Iv:if(r.flags&1024&&(d=r.length,d>s&&(d=s),d&&(r.head&&(T=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),tt.arraySet(r.head.extra,i,n,d,T)),r.flags&512&&(r.check=Ot(r.check,i,d,n)),s-=d,n+=d,r.length-=d),r.length))break e;r.length=0,r.mode=kv;case kv:if(r.flags&2048){if(s===0)break e;d=0;do T=i[n+d++],r.head&&T&&r.length<65536&&(r.head.name+=String.fromCharCode(T));while(T&&d<s);if(r.flags&512&&(r.check=Ot(r.check,i,d,n)),s-=d,n+=d,T)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Mv;case Mv:if(r.flags&4096){if(s===0)break e;d=0;do T=i[n+d++],r.head&&T&&r.length<65536&&(r.head.comment+=String.fromCharCode(T));while(T&&d<s);if(r.flags&512&&(r.check=Ot(r.check,i,d,n)),s-=d,n+=d,T)break e}else r.head&&(r.head.comment=null);r.mode=Rv;case Rv:if(r.flags&512){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Ee;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Bt;break;case Lv:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}e.adler=r.check=qv(l),l=0,f=0,r.mode=An;case An:if(r.havedict===0)return e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,e1;e.adler=r.check=1,r.mode=Bt;case Bt:if(t===Jw||t===On)break e;case Gs:if(r.last){l>>>=f&7,f-=f&7,r.mode=Qs;break}for(;f<3;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}switch(r.last=l&1,l>>>=1,f-=1,l&3){case 0:r.mode=Pv;break;case 1:if(u1(r),r.mode=In,t===On){l>>>=2,f-=2;break e}break;case 2:r.mode=Dv;break;case 3:e.msg="invalid block type",r.mode=Ee}l>>>=2,f-=2;break;case Pv:for(l>>>=f&7,f-=f&7;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if((l&65535)!=(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Ee;break}if(r.length=l&65535,l=0,f=0,r.mode=Js,t===On)break e;case Js:r.mode=Nv;case Nv:if(d=r.length,d){if(d>s&&(d=s),d>u&&(d=u),d===0)break e;tt.arraySet(a,i,n,d,o),s-=d,n+=d,u-=d,o+=d,r.length-=d;break}r.mode=Bt;break;case Dv:for(;f<14;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.nlen=(l&31)+257,l>>>=5,f-=5,r.ndist=(l&31)+1,l>>>=5,f-=5,r.ncode=(l&15)+4,l>>>=4,f-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Ee;break}r.have=0,r.mode=Bv;case Bv:for(;r.have<r.ncode;){for(;f<3;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.lens[V[r.have++]]=l&7,l>>>=3,f-=3}for(;r.have<19;)r.lens[V[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},E=Gi(Gw,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,E){e.msg="invalid code lengths set",r.mode=Ee;break}r.have=0,r.mode=$v;case $v:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[l&(1<<r.lenbits)-1],p=x>>>24,g=x>>>16&255,c=x&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(c<16)l>>>=p,f-=p,r.lens[r.have++]=c;else{if(c===16){for(R=p+2;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l>>>=p,f-=p,r.have===0){e.msg="invalid bit length repeat",r.mode=Ee;break}T=r.lens[r.have-1],d=3+(l&3),l>>>=2,f-=2}else if(c===17){for(R=p+3;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=p,f-=p,T=0,d=3+(l&7),l>>>=3,f-=3}else{for(R=p+7;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=p,f-=p,T=0,d=11+(l&127),l>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Ee;break}for(;d--;)r.lens[r.have++]=T}}if(r.mode===Ee)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Ee;break}if(r.lenbits=9,N={bits:r.lenbits},E=Gi(_v,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,E){e.msg="invalid literal/lengths set",r.mode=Ee;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},E=Gi(bv,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,E){e.msg="invalid distances set",r.mode=Ee;break}if(r.mode=In,t===On)break e;case In:r.mode=kn;case kn:if(s>=6&&u>=258){e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,Kw(e,m),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,r.mode===Bt&&(r.back=-1);break}for(r.back=0;x=r.lencode[l&(1<<r.lenbits)-1],p=x>>>24,g=x>>>16&255,c=x&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(g&&(g&240)==0){for(h=p,w=g,y=c;x=r.lencode[y+((l&(1<<h+w)-1)>>h)],p=x>>>24,g=x>>>16&255,c=x&65535,!(h+p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=h,f-=h,r.back+=h}if(l>>>=p,f-=p,r.back+=p,r.length=c,g===0){r.mode=Wv;break}if(g&32){r.back=-1,r.mode=Bt;break}if(g&64){e.msg="invalid literal/length code",r.mode=Ee;break}r.extra=g&15,r.mode=Fv;case Fv:if(r.extra){for(R=r.extra;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=zv;case zv:for(;x=r.distcode[l&(1<<r.distbits)-1],p=x>>>24,g=x>>>16&255,c=x&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if((g&240)==0){for(h=p,w=g,y=c;x=r.distcode[y+((l&(1<<h+w)-1)>>h)],p=x>>>24,g=x>>>16&255,c=x&65535,!(h+p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=h,f-=h,r.back+=h}if(l>>>=p,f-=p,r.back+=p,g&64){e.msg="invalid distance code",r.mode=Ee;break}r.offset=c,r.extra=g&15,r.mode=Uv;case Uv:if(r.extra){for(R=r.extra;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Ee;break}r.mode=Hv;case Hv:if(u===0)break e;if(d=m-u,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Ee;break}d>r.wnext?(d-=r.wnext,_=r.wsize-d):_=r.wnext-d,d>r.length&&(d=r.length),b=r.window}else b=a,_=o-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do a[o++]=b[_++];while(--d);r.length===0&&(r.mode=kn);break;case Wv:if(u===0)break e;a[o++]=r.length,u--,r.mode=kn;break;case Qs:if(r.wrap){for(;f<32;){if(s===0)break e;s--,l|=i[n++]<<f,f+=8}if(m-=u,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?Ot(r.check,a,m,o-m):Ks(r.check,a,m,o-m)),m=u,(r.flags?l:qv(l))!==r.check){e.msg="incorrect data check",r.mode=Ee;break}l=0,f=0}r.mode=Vv;case Vv:if(r.wrap&&r.flags){for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Ee;break}l=0,f=0}r.mode=jv;case jv:E=Qw;break e;case Ee:E=xv;break e;case Yv:return yv;case r1:default:return ut}return e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,(r.wsize||m!==e.avail_out&&r.mode<Ee&&(r.mode<Qs||t!==wv))&&Qv(e,e.output,e.next_out,m-e.avail_out),v-=e.avail_in,m-=e.avail_out,e.total_in+=v,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?Ot(r.check,a,m,e.next_out-m):Ks(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Bt?128:0)+(r.mode===In||r.mode===Js?256:0),(v===0&&m===0||t===wv)&&E===Cr&&(E=t1),E}function c1(e){if(!e||!e.state)return ut;var t=e.state;return t.window&&(t.window=null),e.state=null,Cr}function v1(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)==0)?ut:(r.head=t,t.done=!1,Cr)}function d1(e,t){var r=t.length,i,a,n;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==An)?ut:i.mode===An&&(a=1,a=Ks(a,t,r,0),a!==i.check)?xv:(n=Qv(e,t,r,r),n?(i.mode=Yv,yv):(i.havedict=1,Cr))}ht.inflateReset=Zv,ht.inflateReset2=Kv,ht.inflateResetKeep=Xv,ht.inflateInit=l1,ht.inflateInit2=Gv,ht.inflate=f1,ht.inflateEnd=c1,ht.inflateGetHeader=v1,ht.inflateSetDictionary=d1,ht.inflateInfo="pako inflate (from Nodeca project)";var ed={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function h1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var g1=h1,ri=ht,Ji=Nt,Mn=Er,Me=ed,rl=zs,p1=uv,m1=g1,td=Object.prototype.toString;function Or(e){if(!(this instanceof Or))return new Or(e);this.options=Ji.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p1,this.strm.avail_out=0;var r=ri.inflateInit2(this.strm,t.windowBits);if(r!==Me.Z_OK)throw new Error(rl[r]);if(this.header=new m1,ri.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Mn.string2buf(t.dictionary):td.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ri.inflateSetDictionary(this.strm,t.dictionary),r!==Me.Z_OK)))throw new Error(rl[r])}Or.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,n,o,s,u,l,f=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?Me.Z_FINISH:Me.Z_NO_FLUSH,typeof e=="string"?r.input=Mn.binstring2buf(e):td.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Ji.Buf8(i),r.next_out=0,r.avail_out=i),n=ri.inflate(r,Me.Z_NO_FLUSH),n===Me.Z_NEED_DICT&&a&&(n=ri.inflateSetDictionary(this.strm,a)),n===Me.Z_BUF_ERROR&&f===!0&&(n=Me.Z_OK,f=!1),n!==Me.Z_STREAM_END&&n!==Me.Z_OK)return this.onEnd(n),this.ended=!0,!1;r.next_out&&(r.avail_out===0||n===Me.Z_STREAM_END||r.avail_in===0&&(o===Me.Z_FINISH||o===Me.Z_SYNC_FLUSH))&&(this.options.to==="string"?(s=Mn.utf8border(r.output,r.next_out),u=r.next_out-s,l=Mn.buf2string(r.output,s),r.next_out=u,r.avail_out=i-u,u&&Ji.arraySet(r.output,r.output,s,u,0),this.onData(l)):this.onData(Ji.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(f=!0)}while((r.avail_in>0||r.avail_out===0)&&n!==Me.Z_STREAM_END);return n===Me.Z_STREAM_END&&(o=Me.Z_FINISH),o===Me.Z_FINISH?(n=ri.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Me.Z_OK):(o===Me.Z_SYNC_FLUSH&&(this.onEnd(Me.Z_OK),r.avail_out=0),!0)},Or.prototype.onData=function(e){this.chunks.push(e)},Or.prototype.onEnd=function(e){e===Me.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ji.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function il(e,t){var r=new Or(t);if(r.push(e,!0),r.err)throw r.msg||rl[r.err];return r.result}function _1(e,t){return t=t||{},t.raw=!0,il(e,t)}Ki.Inflate=Or,Ki.inflate=il,Ki.inflateRaw=_1,Ki.ungzip=il;var b1=Nt.assign,w1=Bi,x1=Ki,y1=ed,rd={};b1(rd,w1,x1,y1);var id=rd;function S1(e){return Promise.resolve(e)}var E1="upx2px",T1=1e-4,C1=750,ad=!1,al=0,nd=0;function O1(){var{platform:e,pixelRatio:t,windowWidth:r}=Cc();al=r,nd=t,ad=e==="ios"}function od(e,t){var r=Number(e);return isNaN(r)?t:r}var sd=Ab(E1,(e,t)=>{if(al===0&&O1(),e=Number(e),e===0)return 0;var r=t||al;{var i=__uniConfig.globalStyle||{},a=od(i.rpxCalcMaxDeviceWidth,960),n=od(i.rpxCalcBaseDeviceWidth,375);r=r<=a?r:n}var o=e/C1*r;return o<0&&(o=-o),o=Math.floor(o+T1),o===0&&(nd===1||!ad?o=1:o=.5),e<0?-o:o}),A1=[{name:"id",type:String,required:!0}];A1.concat({name:"componentInstance",type:Object});var ld={};ld.f={}.propertyIsEnumerable;var I1=ci,k1=ho,M1=_a,R1=ld.f,L1=function(e){return function(t){for(var r=M1(t),i=k1(r),a=i.length,n=0,o=[],s;a>n;)s=i[n++],(!I1||R1.call(r,s))&&o.push(e?[s,r[s]]:r[s]);return o}},ud=co,P1=L1(!1);ud(ud.S,"Object",{values:function(t){return P1(t)}});var N1="setPageMeta",D1="loadFontFace",B1="pageScrollTo",$1=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(c){try{return c.defaultView&&c.defaultView.frameElement||null}catch(h){return null}}var t=function(c){for(var h=c,w=e(h);w;)h=w.ownerDocument,w=e(h);return h}(window.document),r=[],i=null,a=null;function n(c){this.time=c.time,this.target=c.target,this.rootBounds=_(c.rootBounds),this.boundingClientRect=_(c.boundingClientRect),this.intersectionRect=_(c.intersectionRect||d()),this.isIntersecting=!!c.intersectionRect;var h=this.boundingClientRect,w=h.width*h.height,y=this.intersectionRect,T=y.width*y.height;w?this.intersectionRatio=Number((T/w).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(c,h){var w=h||{};if(typeof c!="function")throw new Error("callback must be a function");if(w.root&&w.root.nodeType!=1&&w.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=u(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=c,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(w.rootMargin),this.thresholds=this._initThresholds(w.threshold),this.root=w.root||null,this.rootMargin=this._rootMarginValues.map(function(y){return y.value+y.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return i||(i=function(c,h){!c||!h?a=d():a=b(c,h),r.forEach(function(w){w._checkForIntersections()})}),i},o._resetCrossOriginUpdater=function(){i=null,a=null},o.prototype.observe=function(c){var h=this._observationTargets.some(function(w){return w.element==c});if(!h){if(!(c&&c.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:c,entry:null}),this._monitorIntersections(c.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(c){this._observationTargets=this._observationTargets.filter(function(h){return h.element!=c}),this._unmonitorIntersections(c.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var c=this._queuedEntries.slice();return this._queuedEntries=[],c},o.prototype._initThresholds=function(c){var h=c||[0];return Array.isArray(h)||(h=[h]),h.sort().filter(function(w,y,T){if(typeof w!="number"||isNaN(w)||w<0||w>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return w!==T[y-1]})},o.prototype._parseRootMargin=function(c){var h=c||"0px",w=h.split(/\s+/).map(function(y){var T=/^(-?\d*\.?\d+)(px|%)$/.exec(y);if(!T)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(T[1]),unit:T[2]}});return w[1]=w[1]||w[0],w[2]=w[2]||w[0],w[3]=w[3]||w[1],w},o.prototype._monitorIntersections=function(c){var h=c.defaultView;if(!!h&&this._monitoringDocuments.indexOf(c)==-1){var w=this._checkForIntersections,y=null,T=null;this.POLL_INTERVAL?y=h.setInterval(w,this.POLL_INTERVAL):(l(h,"resize",w,!0),l(c,"scroll",w,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in h&&(T=new h.MutationObserver(w),T.observe(c,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(c),this._monitoringUnsubscribes.push(function(){var N=c.defaultView;N&&(y&&N.clearInterval(y),f(N,"resize",w,!0)),f(c,"scroll",w,!0),T&&T.disconnect()});var E=this.root&&(this.root.ownerDocument||this.root)||t;if(c!=E){var O=e(c);O&&this._monitorIntersections(O.ownerDocument)}}},o.prototype._unmonitorIntersections=function(c){var h=this._monitoringDocuments.indexOf(c);if(h!=-1){var w=this.root&&(this.root.ownerDocument||this.root)||t,y=this._observationTargets.some(function(O){var N=O.element.ownerDocument;if(N==c)return!0;for(;N&&N!=w;){var R=e(N);if(N=R&&R.ownerDocument,N==c)return!0}return!1});if(!y){var T=this._monitoringUnsubscribes[h];if(this._monitoringDocuments.splice(h,1),this._monitoringUnsubscribes.splice(h,1),T(),c!=w){var E=e(c);E&&this._unmonitorIntersections(E.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var c=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var h=0;h<c.length;h++)c[h]()},o.prototype._checkForIntersections=function(){if(!(!this.root&&i&&!a)){var c=this._rootIsInDom(),h=c?this._getRootRect():d();this._observationTargets.forEach(function(w){var y=w.element,T=m(y),E=this._rootContainsTarget(y),O=w.entry,N=c&&E&&this._computeTargetAndRootIntersection(y,T,h),R=null;this._rootContainsTarget(y)?(!i||this.root)&&(R=h):R=d();var V=w.entry=new n({time:s(),target:y,boundingClientRect:T,rootBounds:R,intersectionRect:N});O?c&&E?this._hasCrossedThreshold(O,V)&&this._queuedEntries.push(V):O&&O.isIntersecting&&this._queuedEntries.push(V):this._queuedEntries.push(V)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(c,h,w){if(window.getComputedStyle(c).display!="none"){for(var y=h,T=p(c),E=!1;!E&&T;){var O=null,N=T.nodeType==1?window.getComputedStyle(T):{};if(N.display=="none")return null;if(T==this.root||T.nodeType==9)if(E=!0,T==this.root||T==t)i&&!this.root?!a||a.width==0&&a.height==0?(T=null,O=null,y=null):O=a:O=w;else{var R=p(T),V=R&&m(R),ue=R&&this._computeTargetAndRootIntersection(R,V,w);V&&ue?(T=R,O=b(V,ue)):(T=null,y=null)}else{var M=T.ownerDocument;T!=M.body&&T!=M.documentElement&&N.overflow!="visible"&&(O=m(T))}if(O&&(y=v(O,y)),!y)break;T=T&&p(T)}return y}},o.prototype._getRootRect=function(){var c;if(this.root&&!g(this.root))c=m(this.root);else{var h=g(this.root)?this.root:t,w=h.documentElement,y=h.body;c={top:0,left:0,right:w.clientWidth||y.clientWidth,width:w.clientWidth||y.clientWidth,bottom:w.clientHeight||y.clientHeight,height:w.clientHeight||y.clientHeight}}return this._expandRectByRootMargin(c)},o.prototype._expandRectByRootMargin=function(c){var h=this._rootMarginValues.map(function(y,T){return y.unit=="px"?y.value:y.value*(T%2?c.width:c.height)/100}),w={top:c.top-h[0],right:c.right+h[1],bottom:c.bottom+h[2],left:c.left-h[3]};return w.width=w.right-w.left,w.height=w.bottom-w.top,w},o.prototype._hasCrossedThreshold=function(c,h){var w=c&&c.isIntersecting?c.intersectionRatio||0:-1,y=h.isIntersecting?h.intersectionRatio||0:-1;if(w!==y)for(var T=0;T<this.thresholds.length;T++){var E=this.thresholds[T];if(E==w||E==y||E<w!=E<y)return!0}},o.prototype._rootIsInDom=function(){return!this.root||x(t,this.root)},o.prototype._rootContainsTarget=function(c){var h=this.root&&(this.root.ownerDocument||this.root)||t;return x(h,c)&&(!this.root||h==c.ownerDocument)},o.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},o.prototype._unregisterInstance=function(){var c=r.indexOf(this);c!=-1&&r.splice(c,1)};function s(){return window.performance&&performance.now&&performance.now()}function u(c,h){var w=null;return function(){w||(w=setTimeout(function(){c(),w=null},h))}}function l(c,h,w,y){typeof c.addEventListener=="function"?c.addEventListener(h,w,y||!1):typeof c.attachEvent=="function"&&c.attachEvent("on"+h,w)}function f(c,h,w,y){typeof c.removeEventListener=="function"?c.removeEventListener(h,w,y||!1):typeof c.detatchEvent=="function"&&c.detatchEvent("on"+h,w)}function v(c,h){var w=Math.max(c.top,h.top),y=Math.min(c.bottom,h.bottom),T=Math.max(c.left,h.left),E=Math.min(c.right,h.right),O=E-T,N=y-w;return O>=0&&N>=0&&{top:w,bottom:y,left:T,right:E,width:O,height:N}||null}function m(c){var h;try{h=c.getBoundingClientRect()}catch(w){}return h?(h.width&&h.height||(h={top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.right-h.left,height:h.bottom-h.top}),h):d()}function d(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function _(c){return!c||"x"in c?c:{top:c.top,y:c.top,bottom:c.bottom,left:c.left,x:c.left,right:c.right,width:c.width,height:c.height}}function b(c,h){var w=h.top-c.top,y=h.left-c.left;return{top:w,left:y,height:h.height,width:h.width,bottom:w+h.height,right:y+h.width}}function x(c,h){for(var w=h;w;){if(w==c)return!0;w=p(w)}return!1}function p(c){var h=c.parentNode;return c.nodeType==9&&c!=t?e(c):(h&&h.assignedSlot&&(h=h.assignedSlot.parentNode),h&&h.nodeType==11&&h.host?h.host:h)}function g(c){return c&&c.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=n};function nl(e){var{bottom:t,height:r,left:i,right:a,top:n,width:o}=e||{};return{bottom:t,height:r,left:i,right:a,top:n,width:o}}function F1(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:a,width:n}}=e;return t!==0?t:a===r?n/i:a/r}function z1(e,t,r){$1();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,a=new IntersectionObserver(u=>{u.forEach(l=>{r({intersectionRatio:F1(l),intersectionRect:nl(l.intersectionRect),boundingClientRect:nl(l.boundingClientRect),relativeRect:nl(l.rootBounds),time:Date.now(),dataset:Ro(l.target),id:l.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){a.USE_MUTATION_OBSERVER=!0;for(var n=e.querySelectorAll(t.selector),o=0;o<n.length;o++)a.observe(n[o])}else{a.USE_MUTATION_OBSERVER=!1;var s=e.querySelector(t.selector);s?a.observe(s):console.warn("Node ".concat(t.selector," is not found. Intersection observer will not trigger."))}return a}function U1(e){UniViewJSBridge.invokeServiceMethod("navigateTo",e)}function H1(e){UniViewJSBridge.invokeServiceMethod("navigateBack",e)}function W1(e){UniViewJSBridge.invokeServiceMethod("reLaunch",e)}function V1(e){UniViewJSBridge.invokeServiceMethod("redirectTo",e)}function j1(e){UniViewJSBridge.invokeServiceMethod("switchTab",e)}var Y1=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",upx2px:sd,navigateTo:U1,navigateBack:H1,reLaunch:W1,redirectTo:V1,switchTab:j1});function q1(){if(String(navigator.vendor).indexOf("Apple")===0){var e=null,t;document.documentElement.addEventListener("click",r=>{var i=450,a=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=a&&Math.abs(r.pageY-e.pageY)<=a&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function X1(e){if(!e.length)return r=>r;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof r=="number")return e[r];var a={};return r.forEach(n=>{var[o,s]=n;i?a[t(o)]=t(s):a[t(o)]=s}),a};return t}function Z1(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=K1(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function K1(e,t){var r={};return e.forEach(i=>{var[a,[n,o]]=i;r[t(a)]=[t(n),o]}),r}function G1(e,t){return e.priority=t,e}var ol=new Set,J1=1,sl=2,fd=3,cd=4;function rr(e,t){ol.add(G1(e,t))}function Q1(){try{[...ol].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{ol.clear()}}function vd(e,t){var r=window["__"+Lp],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var ex=Au.length;function tx(e,t,r){var[i,a,n,o]=ul(t),s=ll(e,i);if(ne(r)||ne(o)){var[u,l]=n.split(".");return fl(s,a,u,l,r||o)}return ax(s,a,n)}function rx(e,t,r){var[i,a,n]=ul(t),[o,s]=n.split("."),u=ll(e,i);return fl(u,a,o,s,[ox(r,e),Di(qr(u))])}function ll(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function ul(e){return JSON.parse(e.substr(ex))}function ix(e,t,r,i){var[a,n,o]=ul(e),s=ll(t,a),[u,l]=o.split(".");return fl(s,n,u,l,[r,i,Di(qr(s)),Di(qr(t))])}function fl(e,t,r,i,a){var n=vd(t,e);if(!n)return console.error(Mo("wxs","module "+r+" not found"));var o=n[i];return oe(o)?o.apply(n,a):console.error(r+"."+i+" is not a function")}function ax(e,t,r){var i=vd(t,e);return i?Nu(i,r.substr(r.indexOf(".")+1)):console.error(Mo("wxs","module "+r+" not found"))}function nx(e,t,r){var i=r;return a=>{try{ix(t,e.$,a,i)}catch(n){console.error(n)}i=a}}function ox(e,t){var r=qr(t);return Object.defineProperty(e,"instance",{get(){return Di(r)}}),e}function dd(e,t){Object.keys(t).forEach(r=>{lx(e,t[r])})}function sx(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function lx(e,t){var r=ux(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=fx(i,r)}}function ux(e){var t=window["__"+Pp],r=t&&t[e];return r||console.error(Mo("renderjs",e+" not found"))}function fx(e,t){return t=t.default||t,t.render=()=>{},vc(t).mixin({mounted(){this.$ownerInstance=Di(qr(e))}}).mount(document.createElement("div"))}class ii{constructor(t,r,i,a){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=t,this.tag=r,this.pid=i,a&&(this.$=a),this.$wxsProps=new Map;var n=this.$parent=bT(i);n&&n.appendUniChild(this)}init(t){re(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t}insert(t,r){var i=this.$,a=at(t);r===-1?a.appendChild(i):a.insertBefore(i,at(r).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,Ah(this.id),sx(this),this.removeUniChildren()}appendChild(t){return this.$.appendChild(t)}insertBefore(t,r){return this.$.insertBefore(t,r)}appendUniChild(t){this.$children.push(t)}removeUniChild(t){var r=this.$children.indexOf(t);r>=0&&this.$children.splice(r,1)}removeUniParent(){var{$parent:t}=this;t&&(t.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach(t=>t.remove()),this.$children.length=0}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(Bo)===0){var i=r.replace(Bo,""),a=t[i],n=nx(this,t[r],a);rr(()=>n(a),cd),this.$wxsProps.set(r,n),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,a]=t[r];this.addWxsEvent(r,i,a)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.$hasWxsProps&&this.$wxsProps.get(Bo+t);if(a)return rr(()=>i?Vr(()=>a(r)):a(r),cd),!0}}function hd(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(a=>i.indexOf(a)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function gd(e,t){var r=e.style;if(ye(t))t===""?e.removeAttribute("style"):r.cssText=_r(t,!0);else for(var i in t)cl(r,i,t[i]);var{__wxsStyle:a}=e;if(a)for(var n in a)cl(r,n,a[n])}var pd=/\s*!important$/;function cl(e,t,r){if(ne(r))r.forEach(a=>cl(e,t,a));else if(r=_r(r,!0),t.startsWith("--"))e.setProperty(t,r);else{var i=cx(e,t);pd.test(r)?e.setProperty(Ke(i),r.replace(pd,""),"important"):e[i]=r}}var md=["Webkit"],vl={};function cx(e,t){var r=vl[t];if(r)return r;var i=zt(t);if(i!=="filter"&&i in e)return vl[t]=i;i=Ra(i);for(var a=0;a<md.length;a++){var n=md[a]+i;if(n in e)return vl[t]=n}return t}function _d(e,t){var r=e.__listeners[t];r&&e.removeEventListener(t,r)}function bd(e,t){if(e.__listeners[t])return!0}function wd(e,t,r){var[i,a]=Po(t);r===-1?_d(e,i):bd(e,i)||e.addEventListener(i,e.__listeners[i]=xd(e.__id,r,a),a)}function xd(e,t,r){var i=a=>{var[n]=wc(a);n.type=Vp(a.type,r),UniViewJSBridge.publishHandler(Sc,[[i0,e,n]])};return t?Es(i,yd(t)):i}function yd(e){var t=[];return e&No.prevent&&t.push("prevent"),e&No.self&&t.push("self"),e&No.stop&&t.push("stop"),t}function vx(e,t,r,i){var[a,n]=Po(t);i===-1?_d(e,a):bd(e,a)||e.addEventListener(a,e.__listeners[a]=Sd(e,r,i),n)}function Sd(e,t,r){var i=a=>{rx(e,t,wc(a)[0])};return r?Es(i,yd(r)):i}var dx=Iu.length;function dl(e,t){return ye(t)&&(t.indexOf(Iu)===0?t=JSON.parse(t.substr(dx)):t.indexOf(Au)===0&&(t=tx(e,t))),t}function Rn(e){return e.indexOf("--")===0}function hl(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Ed extends ii{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r.tagName,i,r);this.$props=Ae({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=o,this._update=this.update.bind(this),this.init(n),this.insert(i,a)}init(t){re(t,"a")&&this.setAttrs(t.a),re(t,"s")&&this.setAttr("style",t.s),re(t,"e")&&this.addEvents(t.e),re(t,"w")&&this.addWxsEvents(t.w),super.init(t),H(this.$props,()=>{rr(this._update,J1)},{flush:"sync"}),this.update(!0)}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){vx(this.$,t,r,i)}addEvent(t,r){wd(this.$,t,r)}removeEvent(t){wd(this.$,t,-1)}setAttr(t,r){t===Mu?hd(this.$,r):t===Do?gd(this.$,r):t===Na?hl(this.$,r):t===Ru?this.$.__ownerId=r:t===Lu?rr(()=>dd(this,r),fd):t===jp?this.$.innerHTML=r:t===Yp?this.setText(r):this.setAttribute(t,r)}removeAttr(t){t===Mu?hd(this.$,""):t===Do?gd(this.$,""):this.removeAttribute(t)}setAttribute(t,r){r=dl(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:Rn(t)?this.$.style.setProperty(t,r):this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:Rn(t)?this.$.style.removeProperty(t):this.$.removeAttribute(t)}update(){}}class hx extends ii{constructor(t,r,i){super(t,"#comment",r,document.createComment(""));this.insert(r,i)}}var ZT="";function Td(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function gx(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function px(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],a=["width","height","left","right","top","bottom"],n=e.animates,o=e.option,s=o.transition,u={},l=[];return n.forEach(f=>{var v=f.type,m=[...f.args];if(t.concat(r).includes(v))v.startsWith("rotate")||v.startsWith("skew")?m=m.map(_=>parseFloat(_)+"deg"):v.startsWith("translate")&&(m=m.map(Td)),r.indexOf(v)>=0&&(m.length=1),l.push("".concat(v,"(").concat(m.join(","),")"));else if(i.concat(a).includes(m[0])){v=m[0];var d=m[1];u[v]=a.includes(v)?Td(d):d}}),u.transform=u.webkitTransform=l.join(" "),u.transition=u.webkitTransition=Object.keys(u).map(f=>"".concat(gx(f)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")).join(","),u.transformOrigin=u.webkitTransformOrigin=o.transformOrigin,u}function Cd(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,a=t.actions.length;function n(){var o=i[r],s=o.option.transition,u=px(o);Object.keys(u).forEach(l=>{e.$el.style[l]=u[l]}),r+=1,r<a&&setTimeout(n,s.duration+s.delay)}setTimeout(()=>{n()},0)}var Ln={props:["animation"],watch:{animation:{deep:!0,handler(){Cd(this)}}},mounted(){Cd(this)}},ge=e=>{e.__reserved=!0;var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(Ln),mx(e)},mx=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Bm(e)),_x={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function gl(e){var t=U(!1),r=!1,i,a;function n(){requestAnimationFrame(()=>{clearTimeout(a),a=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function o(l){l._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||l.touches.length>1||(e.hoverStopPropagation&&(l._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||n()},parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&n()}function u(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:o,onTouchend:s,onTouchcancel:u}}}function ai(e,t){return ye(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Ar(e){return e.__wwe=!0,e}function Pe(e,t){return(r,i,a)=>{e.value&&t(r,wx(r,i,e.value,a||{}))}}function bx(e){return(t,r)=>{e(t,xc(r))}}function wx(e,t,r,i){var a=Lo(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:a,currentTarget:a,detail:i}}var At=dn("uf"),xx=ge({name:"Form",emits:["submit","reset"],setup(e,t){var{slots:r,emit:i}=t,a=U(null);return yx(Pe(a,i)),()=>I("uni-form",{ref:a},[I("span",null,[r.default&&r.default()])],512)}});function yx(e){var t=[];return Fe(At,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,a)=>{if(a.submit){var[n,o]=a.submit();n&&(i[n]=o)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var Qi=dn("ul"),Sx={for:{type:String,default:""}},Ex=ge({name:"Label",props:Sx,setup(e,t){var{slots:r}=t,i=pn(),a=Tx(),n=ee(()=>e.for||r.default&&r.default.length),o=Ar(s=>{var u=s.target,l=/^uni-(checkbox|radio|switch)-/.test(u.className);l||(l=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(u.tagName)),!l&&(e.for?UniViewJSBridge.emit("uni-label-click-"+i+"-"+e.for,s,!0):a.length&&a[0](s,!0))});return()=>I("uni-label",{class:{"uni-label-pointer":n},onClick:o},[r.default&&r.default()],10,["onClick"])}});function Tx(){var e=[];return Fe(Qi,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}function Pn(e,t){Od(e.id,t),H(()=>e.id,(r,i)=>{Ad(i,t,!0),Od(r,t,!0)}),Yt(()=>{Ad(e.id,t)})}function Od(e,t,r){var i=pn();r&&!e||!mt(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.on(a,t[a]):e&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}function Ad(e,t,r){var i=pn();r&&!e||!mt(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.off(a,t[a]):e&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}var Cx={id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},Ox=ge({name:"Button",props:Cx,setup(e,t){var{slots:r}=t,i=U(null);C0();var a=_e(At,!1),{hovering:n,binding:o}=gl(e),{t:s}=Ge(),u=Ar((f,v)=>{if(e.disabled)return f.stopImmediatePropagation();v&&i.value.click();var m=e.formType;if(m){if(!a)return;m==="submit"?a.submit(f):m==="reset"&&a.reset(f);return}e.openType==="feedback"&&Ax(s("uni.button.feedback.title"),s("uni.button.feedback.send"))}),l=_e(Qi,!1);return l&&(l.addHandler(u),Ce(()=>{l.removeHandler(u)})),Pn(e,{"label-click":u}),()=>{var f=e.hoverClass,v=ai(e,"disabled"),m=ai(e,"loading"),d=ai(e,"plain"),_=f&&f!=="none";return I("uni-button",et({ref:i,onClick:u,class:_&&n.value?f:""},_&&o,v,m,d),[r.default&&r.default()],16,["onClick"])}}});function Ax(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var Ir=ge({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:r}=t,i=U(null),a=kx(i),n=Ix(i,r,a);return Mx(i,e,n,a),()=>I("uni-resize-sensor",{ref:i,onAnimationstartOnce:n},[I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"]),I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Ix(e,t,r){var i=Ae({width:-1,height:-1});return H(()=>ve({},i),a=>t("resize",a)),()=>{var a=e.value;i.width=a.offsetWidth,i.height=a.offsetHeight,r()}}function kx(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function Mx(e,t,r,i){fs(i),Re(()=>{t.initial&&Vr(r);var a=e.value;a.offsetParent!==a.parentElement&&(a.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var be=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function Id(e){e.width=e.offsetWidth*be,e.height=e.offsetHeight*be,e.getContext("2d").__hidpi__=!0}var kd=!1;function Rx(){if(!kd){kd=!0;var e=function(i,a){for(var n in i)re(i,n)&&a(i[n],n)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(a,n,o,s,u,l,f,v,m,d){if(!this.__hidpi__)return i.apply(this,arguments);n*=be,o*=be,s*=be,u*=be,l*=be,f*=be,v=d?v*be:v,m=d?m*be:m,i.call(this,a,n,o,s,u,l,f,v,m)}}(r.drawImage),be!==1&&(e(t,function(i,a){r[a]=function(n){return function(){if(!this.__hidpi__)return n.apply(this,arguments);var o=Array.prototype.slice.call(arguments);if(i==="all")o=o.map(function(u){return u*be});else if(Array.isArray(i))for(var s=0;s<i.length;s++)o[i[s]]*=be;return n.apply(this,o)}}(r[a])}),r.stroke=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);this.lineWidth*=be,i.apply(this,arguments),this.lineWidth/=be}}(r.stroke),r.fillText=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);var a=Array.prototype.slice.call(arguments);a[1]*=be,a[2]*=be;var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(o,s,u){return s*be+u}),i.apply(this,a),this.font=n}}(r.fillText),r.strokeText=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);var a=Array.prototype.slice.call(arguments);a[1]*=be,a[2]*=be;var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(o,s,u){return s*be+u}),i.apply(this,a),this.font=n}}(r.strokeText),r.drawImage=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);this.scale(be,be),i.apply(this,arguments),this.scale(1/be,1/be)}}(r.drawImage))}}var Lx=Da(()=>Rx());function Md(e){return e&&vt(e)}function Nn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Rd(e,t){var r=e;return Array.from(t).map(i=>{var a=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-a.left,y:i.clientY-a.top}})}var ea;function Ld(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ea||(ea=document.createElement("canvas")),ea.width=e,ea.height=t,ea}var Px={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},Nx=ge({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:Px,computed:{id(){return this.canvasId}},setup(e,t){var{emit:r,slots:i}=t;Lx();var a=U(null),n=U(null),o=U(!1),s=bx(r),{$attrs:u,$excludeAttrs:l,$listeners:f}=Jd({excludeListeners:!0}),{_listeners:v}=Dx(e,f,s),{_handleSubscribe:m,_resize:d}=Bx(a,o);return Yn(m,qn(e.canvasId),!0),Re(()=>{d()}),()=>{var{canvasId:_,disableScroll:b}=e;return I("uni-canvas",et({"canvas-id":_,"disable-scroll":b},u.value,l.value,v.value),[I("canvas",{ref:a,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),I("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[i.default&&i.default()]),I(Ir,{ref:n,onResize:d},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function Dx(e,t,r){var i=ee(()=>{var a=["onTouchstart","onTouchmove","onTouchend"],n=t.value,o=ve({},(()=>{var s={};for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)){var l=n[u];s[u]=l}return s})());return a.forEach(s=>{var u=o[s],l=[];u&&l.push(Ar(f=>{r(s.replace("on","").toLocaleLowerCase(),ve({},(()=>{var v={};for(var m in f)v[m]=f[m];return v})(),{touches:Rd(f.currentTarget,f.touches),changedTouches:Rd(f.currentTarget,f.changedTouches)}))})),e.disableScroll&&s==="onTouchmove"&&l.push(gc),o[s]=l}),o});return{_listeners:i}}function Bx(e,t){var r=[],i={};function a(d){var _=e.value,b=!d||_.width!==Math.floor(d.width*be)||_.height!==Math.floor(d.height*be);if(!!b)if(_.width>0&&_.height>0){var x=_.getContext("2d"),p=x.getImageData(0,0,_.width,_.height);Id(_),x.putImageData(p,0,0)}else Id(_)}function n(d,_){var{actions:b,reserve:x}=d;if(!!b){if(t.value){r.push([b,x]);return}var p=e.value,g=p.getContext("2d");x||(g.fillStyle="#000000",g.strokeStyle="#000000",g.shadowColor="#000000",g.shadowBlur=0,g.shadowOffsetX=0,g.shadowOffsetY=0,g.setTransform(1,0,0,1,0,0),g.clearRect(0,0,p.width,p.height)),o(b);for(var c=function(y){var T=b[y],E=T.method,O=T.data,N=O[0];if(/^set/.test(E)&&E!=="setTransform"){var R=E[3].toLowerCase()+E.slice(4),V;if(R==="fillStyle"||R==="strokeStyle"){if(N==="normal")V=Nn(O[1]);else if(N==="linear"){var ue=g.createLinearGradient(...O[1]);O[2].forEach(function(K){var ie=K[0],le=Nn(K[1]);ue.addColorStop(ie,le)}),V=ue}else if(N==="radial"){var M=O[1],B=M[0],Q=M[1],te=M[2],W=g.createRadialGradient(B,Q,0,B,Q,te);O[2].forEach(function(K){var ie=K[0],le=Nn(K[1]);W.addColorStop(ie,le)}),V=W}else if(N==="pattern"){var G=s(O[1],b.slice(y+1),_,function(K){K&&(g[R]=g.createPattern(K,O[2]))});return G?"continue":"break"}g[R]=V}else if(R==="globalAlpha")g[R]=Number(N)/255;else if(R==="shadow"){var ae=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];O.forEach(function(K,ie){g[ae[ie]]=ae[ie]==="shadowColor"?Nn(K):K})}else if(R==="fontSize"){var Se=g.__font__||g.font;g.__font__=g.font=Se.replace(/\d+\.?\d*px/,N+"px")}else R==="lineDash"?(g.setLineDash(N),g.lineDashOffset=O[1]||0):R==="textBaseline"?(N==="normal"&&(O[0]="alphabetic"),g[R]=N):R==="font"?g.__font__=g.font=N:g[R]=N}else if(E==="fillPath"||E==="strokePath")E=E.replace(/Path/,""),g.beginPath(),O.forEach(function(K){g[K.method].apply(g,K.data)}),g[E]();else if(E==="fillText")g.fillText.apply(g,O);else if(E==="drawImage"){var se=function(){var K=[...O],ie=K[0],le=K.slice(1);if(i=i||{},s(ie,b.slice(y+1),_,function(Ie){Ie&&g.drawImage.apply(g,[Ie].concat([...le.slice(4,8)],[...le.slice(0,4)]))}))return"break"}();if(se==="break")return"break"}else E==="clip"?(O.forEach(function(K){g[K.method].apply(g,K.data)}),g.clip()):g[E].apply(g,O)},h=0;h<b.length;h++){var w=c(h);if(w==="break")break}t.value||_({errMsg:"drawCanvas:ok"})}}function o(d){d.forEach(function(_){var b=_.method,x=_.data,p="";b==="drawImage"?(p=x[0],p=Md(p),x[0]=p):b==="setFillStyle"&&x[0]==="pattern"&&(p=x[1],p=Md(p),x[1]=p),p&&!i[p]&&g();function g(){var c=i[p]=new Image;if(c.onload=function(){c.ready=!0},navigator.vendor==="Google Inc."){p.indexOf("file://")===0&&(c.crossOrigin="anonymous"),c.src=p;return}S1(p).then(h=>{c.src=h}).catch(()=>{c.src=p})}})}function s(d,_,b,x){var p=i[d];return p.ready?(x(p),!0):(r.unshift([_,!0]),t.value=!0,p.onload=function(){p.ready=!0,x(p),t.value=!1;var g=r.slice(0);r=[];for(var c=g.shift();c;)n({actions:c[0],reserve:c[1]},b),c=g.shift()},!1)}function u(d,_){var{x:b=0,y:x=0,width:p,height:g,destWidth:c,destHeight:h,hidpi:w=!0,dataType:y,quality:T=1,type:E="png"}=d,O=e.value,N,R=O.offsetWidth-b;p=p?Math.min(p,R):R;var V=O.offsetHeight-x;g=g?Math.min(g,V):V,w?(c=p,h=g):!c&&!h?(c=Math.round(p*be),h=Math.round(g*be)):c?h||(h=Math.round(g/p*c)):c=Math.round(p/g*h);var ue=Ld(c,h),M=ue.getContext("2d");(E==="jpeg"||E==="jpg")&&(E="jpeg",M.fillStyle="#fff",M.fillRect(0,0,c,h)),M.__hidpi__=!0,M.drawImageByCanvas(O,b,x,p,g,0,0,c,h,!1);var B;try{var Q;if(y==="base64")N=ue.toDataURL("image/".concat(E),T);else{var te=M.getImageData(0,0,c,h);N=id.deflateRaw(te.data,{to:"string"}),Q=!0}B={data:N,compressed:Q,width:c,height:h}}catch(W){B={errMsg:"canvasGetImageData:fail ".concat(W)}}if(ue.height=ue.width=0,M.__hidpi__=!1,_)_(B);else return B}function l(d,_){var{data:b,x,y:p,width:g,height:c,compressed:h}=d;try{h&&(b=id.inflateRaw(b)),c||(c=Math.round(b.length/4/g));var w=Ld(g,c),y=w.getContext("2d");y.putImageData(new ImageData(new Uint8ClampedArray(b),g,c),0,0),e.value.getContext("2d").drawImage(w,x,p,g,c),w.height=w.width=0}catch(T){_({errMsg:"canvasPutImageData:fail"});return}_({errMsg:"canvasPutImageData:ok"})}function f(d,_){var{x:b=0,y:x=0,width:p,height:g,destWidth:c,destHeight:h,fileType:w,quality:y,dirname:T}=d,E=u({x:b,y:x,width:p,height:g,destWidth:c,destHeight:h,hidpi:!1,dataType:"base64",type:w,quality:y});if(!E.data||!E.data.length){_({errMsg:E.errMsg.replace("canvasPutImageData","toTempFilePath")});return}Mb(E.data,T,(O,N)=>{var R="toTempFilePath:".concat(O?"fail":"ok");O&&(R+=" ".concat(O.message)),_({errMsg:R,tempFilePath:N})})}var v={actionsChanged:n,getImageData:u,putImageData:l,toTempFilePath:f};function m(d,_,b){var x=v[d];d.indexOf("_")!==0&&typeof x=="function"&&x(_,b)}return ve(v,{_resize:a,_handleSubscribe:m})}var Pd=dn("ucg"),$x={name:{type:String,default:""}},Fx=ge({name:"CheckboxGroup",props:$x,emits:["change"],setup(e,t){var{emit:r,slots:i}=t,a=U(null),n=Pe(a,r);return zx(e,n),()=>I("uni-checkbox-group",{ref:a},[i.default&&i.default()],512)}});function zx(e,t){var r=[],i=()=>r.reduce((n,o)=>(o.value.checkboxChecked&&n.push(o.value.value),n),new Array);Fe(Pd,{addField(n){r.push(n)},removeField(n){r.splice(r.indexOf(n),1)},checkboxChange(n){t("change",n,{value:i()})}});var a=_e(At,!1);return a&&a.addField({submit:()=>{var n=["",null];return e.name!==""&&(n[0]=e.name,n[1]=i()),n}}),i}var Ux={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},Hx=ge({name:"Checkbox",props:Ux,setup(e,t){var{slots:r}=t,i=U(e.checked),a=U(e.value);H([()=>e.checked,()=>e.value],l=>{var[f,v]=l;i.value=f,a.value=v});var n=()=>{i.value=!1},{uniCheckGroup:o,uniLabel:s}=Wx(i,a,n),u=l=>{e.disabled||(i.value=!i.value,o&&o.checkboxChange(l))};return s&&(s.addHandler(u),Ce(()=>{s.removeHandler(u)})),Pn(e,{"label-click":u}),()=>{var l=ai(e,"disabled");return I("uni-checkbox",et(l,{onClick:u}),[I("div",{class:"uni-checkbox-wrapper"},[I("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[i.value?gn(hn,e.color,22):""],2),r.default&&r.default()])],16,["onClick"])}}});function Wx(e,t,r){var i=ee(()=>({checkboxChecked:Boolean(e.value),value:t.value})),a={reset:r},n=_e(Pd,!1);n&&n.addField(i);var o=_e(At,!1);o&&o.addField(a);var s=_e(Qi,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s}}var Nd,ta,Dn,ir,Bn,pl;$r(()=>{ta=plus.os.name==="Android",Dn=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){ir=e.height,Bn&&Bn()},!1);function Dd(){}function ra(e,t,r){$r(()=>{var i="adjustResize",a="adjustPan",n="nothing",o=plus.webview.currentWebview(),s=pl||o.getStyle()||{},u={mode:r||s.softinputMode===i?i:e.adjustPosition?a:n,position:{top:0,height:0}};if(u.mode===a){var l=t.getBoundingClientRect();u.position.top=l.top,u.position.height=l.height+(Number(e.cursorSpacing)||0)}o.setSoftinputTemporary(u)})}function Vx(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}$r(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},a=i!=="none";a!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function jx(e){var t=e.softinputNavBar;t&&$r(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var Bd={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},$d=["keyboardheightchange"];function Fd(e,t,r){var i={};function a(n){var o,s=()=>{r("keyboardheightchange",{},{height:ir,duration:.25}),o&&ir===0&&ra(e,n),e.autoBlur&&o&&ir===0&&(ta||parseInt(Dn)>=13)&&document.activeElement.blur()};n.addEventListener("focus",()=>{o=!0,clearTimeout(Nd),document.addEventListener("click",Dd,!1),Bn=s,ir&&r("keyboardheightchange",{},{height:ir,duration:0}),Vx(e,i),ra(e,n)}),ta&&n.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&o&&ir===0&&ra(e,n)}),ta||(parseInt(Dn)<12&&n.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!o&&ra(e,n)}),parseFloat(Dn)>=14.6&&!pl&&$r(()=>{var l=plus.webview.currentWebview();pl=l.getStyle()||{}}));var u=()=>{document.removeEventListener("click",Dd,!1),Bn=null,ir&&r("keyboardheightchange",{},{height:0,duration:0}),jx(i),ta&&(Nd=setTimeout(()=>{ra(e,n,!0)},300)),String(navigator.vendor).indexOf("Apple")===0&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};n.addEventListener("blur",()=>{n.blur(),o=!1,u()})}H(()=>t.value,n=>a(n))}var zd=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Ud=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Yx=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,qx=ni("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Xx=ni("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Zx=ni("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Kx=ni("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Gx=ni("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Jx=ni("script,style");function Hd(e,t){var r,i,a,n=[],o=e;for(n.last=function(){return this[this.length-1]};e;){if(i=!0,!n.last()||!Jx[n.last()]){if(e.indexOf("<!--")==0?(r=e.indexOf("-->"),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("</")==0?(a=e.match(Ud),a&&(e=e.substring(a[0].length),a[0].replace(Ud,l),i=!1)):e.indexOf("<")==0&&(a=e.match(zd),a&&(e=e.substring(a[0].length),a[0].replace(zd,u),i=!1)),i){r=e.indexOf("<");var s=r<0?e:e.substring(0,r);e=r<0?"":e.substring(r),t.chars&&t.chars(s)}}else e=e.replace(new RegExp("([\\s\\S]*?)</"+n.last()+"[^>]*>"),function(f,v){return v=v.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(v),""}),l("",n.last());if(e==o)throw"Parse Error: "+e;o=e}l();function u(f,v,m,d){if(v=v.toLowerCase(),Xx[v])for(;n.last()&&Zx[n.last()];)l("",n.last());if(Kx[v]&&n.last()==v&&l("",v),d=qx[v]||!!d,d||n.push(v),t.start){var _=[];m.replace(Yx,function(b,x){var p=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:Gx[x]?x:"";_.push({name:x,value:p,escaped:p.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(v,_,d)}}function l(f,v){if(v)for(var m=n.length-1;m>=0&&n[m]!=v;m--);else var m=0;if(m>=0){for(var d=n.length-1;d>=m;d--)t.end&&t.end(n[d]);n.length=m}}}function ni(e){for(var t={},r=e.split(","),i=0;i<r.length;i++)t[r[i]]=!0;return t}var ml={};function Wd(e,t,r){var i=typeof e=="string"?window[e]:e;if(i){r();return}var a=ml[t];if(!a){a=ml[t]=[];var n=document.createElement("script");n.src=t,document.body.appendChild(n),n.onload=function(){a.forEach(o=>o()),delete ml[t]}}a.push(r)}function Qx(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function ey(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function ty(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},a=new r.Style("align","text-align",i);return{"formats/align":a}}function ry(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},a=new r.Style("direction","direction",i);return{"formats/direction":a}}function iy(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class a extends r{static create(o){var s=o==="ordered"?"OL":"UL",u=super.create(s);return(o==="checked"||o==="unchecked")&&u.setAttribute("data-checked",o==="checked"),u}static formats(o){if(o.tagName==="OL")return"ordered";if(o.tagName==="UL")return o.hasAttribute("data-checked")?o.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(o){super(o);var s=u=>{if(u.target.parentNode===o){var l=this.statics.formats(o),f=t.find(u.target);l==="checked"?f.format("list","unchecked"):l==="unchecked"&&f.format("list","checked")}};o.addEventListener("click",s)}format(o,s){this.children.length>0&&this.children.tail.format(o,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(o,s){if(o instanceof i)super.insertBefore(o,s);else{var u=s==null?this.length():s.offset(this),l=this.split(u);l.parent.insertBefore(o,l)}}optimize(o){super.optimize(o);var s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(o){if(o.statics.blotName!==this.statics.blotName){var s=t.create(this.statics.defaultChild);o.moveChildren(s),this.appendChild(s)}super.replace(o)}}return a.blotName="list",a.scope=t.Scope.BLOCK_BLOT,a.tagName=["OL","UL"],a.defaultChild="list-item",a.allowedChildren=[i],{"formats/list":a}}function ay(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function ny(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},a=["margin","marginTop","marginBottom","marginLeft","marginRight"],n=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],o={};return a.concat(n).forEach(s=>{o["formats/".concat(s)]=new r.Style(s,Ke(s),i)}),o}function oy(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},a=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],n={};return a.forEach(o=>{n["formats/".concat(o)]=new r.Style(o,Ke(o),i)}),n}function sy(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],a={};return i.forEach(n=>{var{name:o,scope:s}=n;a["formats/".concat(o)]=new r.Style(o,Ke(o),{scope:s})}),a}function ly(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=a=>a&&vt(a),t.formats=function(n){return r.reduce(function(o,s){return n.hasAttribute(s)&&(o[s]=n.getAttribute(s)),o},{})};var i=t.prototype.format;t.prototype.format=function(a,n){r.indexOf(a)>-1?n?this.domNode.setAttribute(a,n):this.domNode.removeAttribute(a):i.call(this,a,n)}}function uy(e){var t=e.import("formats/link");t.sanitize=r=>{var i=document.createElement("a");i.href=r;var a=i.href.slice(0,i.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(a)>-1?r:t.SANITIZED_URL}}function fy(e){var t={divider:Qx,ins:ey,align:ty,direction:ry,list:iy,background:ay,box:ny,font:oy,text:sy,image:ly,link:uy},r={};Object.values(t).forEach(i=>ve(r,i(e))),e.register(r,!0)}function cy(e,t,r){var i,a,n,o=!1;H(()=>e.readOnly,_=>{i&&(n.enable(!_),_||n.blur())}),H(()=>e.placeholder,_=>{i&&l(_)});function s(_){var b=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],x="",p;Hd(_,{start:function(c,h,w){if(!b.includes(c)){p=!w;return}p=!1;var y=h.map(E=>{var{name:O,value:N}=E;return"".concat(O,'="').concat(N,'"')}).join(" "),T="<".concat(c," ").concat(y," ").concat(w?"/":"",">");x+=T},end:function(c){p||(x+="</".concat(c,">"))},chars:function(c){p||(x+=c)}}),a=!0;var g=n.clipboard.convert(x);return a=!1,g}function u(){var _=n.root.innerHTML,b=n.getText(),x=n.getContents();return{html:_,text:b,delta:x}}function l(_){var b="data-placeholder",x=n.root;x.getAttribute(b)!==_&&x.setAttribute(b,_)}var f={};function v(_){var b=_?n.getFormat(_):{},x=Object.keys(b);(x.length!==Object.keys(f).length||x.find(p=>b[p]!==f[p]))&&(f=b,r("statuschange",{},b))}function m(_){var b=window.Quill;fy(b);var x={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};_.length&&(b.register("modules/ImageResize",window.ImageResize.default),x.modules={ImageResize:{modules:_}});var p=t.value;n=new b(p,x);var g=n.root,c=["focus","blur","input"];c.forEach(h=>{g.addEventListener(h,w=>{var y=u();if(h==="input"){if(Cc().platform==="ios"){var T=(y.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],E=T&&T.replace(/\s/g,"")?"":e.placeholder;l(E)}w.stopPropagation()}else r(h,w,y)})}),n.on("text-change",()=>{o||r("input",{},u())}),n.on("selection-change",v),n.on("scroll-optimize",()=>{var h=n.selection.getRange()[0];v(h)}),n.clipboard.addMatcher(Node.ELEMENT_NODE,(h,w)=>(a||w.ops&&(w.ops=w.ops.filter(y=>{var{insert:T}=y;return typeof T=="string"}).map(y=>{var{insert:T}=y;return{insert:T}})),w)),i=!0,r("ready",{},{})}Re(()=>{var _=[];e.showImgSize&&_.push("DisplaySize"),e.showImgToolbar&&_.push("Toolbar"),e.showImgResize&&_.push("Resize");var b="./__uniappquill.js";Wd(window.Quill,b,()=>{if(_.length){var x="./__uniappquillimageresize.js";Wd(window.ImageResize,x,()=>{m(_)})}else m(_)})});var d=qn();Yn((_,b,x)=>{var{options:p,callbackId:g}=b,c,h,w;if(i){var y=window.Quill;switch(_){case"format":{var{name:T="",value:E=!1}=p;h=n.getSelection(!0);var O=n.getFormat(h)[T]||!1;if(["bold","italic","underline","strike","ins"].includes(T))E=!O;else if(T==="direction"){E=E==="rtl"&&O?!1:E;var N=n.getFormat(h).align;E==="rtl"&&!N?n.format("align","right","user"):!E&&N==="right"&&n.format("align",!1,"user")}else if(T==="indent"){var R=n.getFormat(h).direction==="rtl";E=E==="+1",R&&(E=!E),E=E?"+1":"-1"}else T==="list"&&(E=E==="check"?"unchecked":E,O=O==="checked"?"unchecked":O),E=O&&O!==(E||!1)||!O&&E?E:!O;n.format(T,E,"user")}break;case"insertDivider":h=n.getSelection(!0),n.insertText(h.index,mi,"user"),n.insertEmbed(h.index+1,"divider",!0,"user"),n.setSelection(h.index+2,0,"silent");break;case"insertImage":{h=n.getSelection(!0);var{src:V="",alt:ue="",width:M="",height:B="",extClass:Q="",data:te={}}=p,W=vt(V);n.insertEmbed(h.index,"image",W,"user");var G=/^(file|blob):/.test(W)?W:!1;o=!0,n.formatText(h.index,1,"data-local",G),n.formatText(h.index,1,"alt",ue),n.formatText(h.index,1,"width",M),n.formatText(h.index,1,"height",B),n.formatText(h.index,1,"class",Q),o=!1,n.formatText(h.index,1,"data-custom",Object.keys(te).map(ie=>"".concat(ie,"=").concat(te[ie])).join("&")),n.setSelection(h.index+1,0,"silent")}break;case"insertText":{h=n.getSelection(!0);var{text:ae=""}=p;n.insertText(h.index,ae,"user"),n.setSelection(h.index+ae.length,0,"silent")}break;case"setContents":{var{delta:Se,html:se}=p;typeof Se=="object"?n.setContents(Se,"silent"):typeof se=="string"?n.setContents(s(se),"silent"):w="contents is missing"}break;case"getContents":c=u();break;case"clear":n.setText("");break;case"removeFormat":{h=n.getSelection(!0);var K=y.import("parchment");h.length?n.removeFormat(h.index,h.length,"user"):Object.keys(n.getFormat(h)).forEach(ie=>{K.query(ie,K.Scope.INLINE)&&n.format(ie,!1)})}break;case"undo":n.history.undo();break;case"redo":n.history.redo();break;case"blur":n.blur();break;case"getSelectionText":h=n.selection.savedRange,c={text:""},h&&h.length!==0&&(c.text=n.getText(h.index,h.length));break;case"scrollIntoView":n.scrollIntoView();break}v(h)}else w="not ready";g&&x({callbackId:g,data:ve({},c,{errMsg:"".concat(_,":").concat(w?"fail "+w:"ok")})})},d,!0)}var vy=ve({},Bd,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),dy=ge({name:"Editor",props:vy,emit:["ready","focus","blur","input","statuschange",...$d],setup(e,t){var{emit:r}=t,i=U(null),a=Pe(i,r);return cy(e,i,a),Fd(e,i,a),()=>I("uni-editor",{ref:i,id:e.id,class:"ql-container"},null,8,["id"])}}),Vd="#10aeff",hy="#f76260",jd="#b2b2b2",gy="#f43530",py={success:{d:sb,c:Pa},success_no_circle:{d:hn,c:Pa},info:{d:nb,c:Vd},warn:{d:ub,c:hy},waiting:{d:lb,c:Vd},cancel:{d:rb,c:gy},download:{d:ab,c:Pa},search:{d:ob,c:jd},clear:{d:ib,c:jd}},my=ge({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=ee(()=>py[e.type]);return()=>{var{value:r}=t;return I("uni-icon",null,[r&&r.d&&gn(r.d,e.color||r.c,_r(e.size))])}}}),_y={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},$n={widthFix:["offsetWidth","height"],heightFix:["offsetHeight","width"]},by={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},wy=ge({name:"Image",props:_y,setup(e,t){var{emit:r}=t,i=U(null),a=xy(i,e),n=Pe(i,r),{fixSize:o}=Ty(i,e,a);return yy(a,o,n),()=>{var{mode:s}=e,{imgSrc:u,modeStyle:l,src:f}=a,v;return v=u?I("img",{src:u,draggable:e.draggable},null,8,["src","draggable"]):I("img",null,null),I("uni-image",{ref:i},[I("div",{style:l},null,4),v,$n[s]?I(Ir,{onResize:o},null,8,["onResize"]):I("span",null,null)],512)}}});function xy(e,t){var r=U(""),i=ee(()=>{var n="auto",o="",s=by[t.mode];return s?(s[0]&&(o=s[0]),s[1]&&(n=s[1])):(o="0% 0%",n="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",";background-position:").concat(o,";background-size:").concat(n,";")}),a=Ae({rootEl:e,src:ee(()=>t.src?vt(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Re(()=>{var n=e.value,o=n.style;a.origWidth=Number(o.width)||0,a.origHeight=Number(o.height)||0}),a}function yy(e,t,r){var i,a=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";e.origWidth=s,e.origHeight=u,e.imgSrc=l},n=s=>{if(!s){o(),a();return}i=i||new Image,i.onload=u=>{var{width:l,height:f}=i;a(l,f,s),t(),o(),r("load",u,{width:l,height:f})},i.onerror=u=>{a(),o(),r("error",u,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},i.src=s},o=()=>{i&&(i.onload=null,i.onerror=null,i=null)};H(()=>e.src,s=>n(s)),Re(()=>n(e.src)),Ce(()=>o())}var Sy=navigator.vendor==="Google Inc.";function Ey(e){return Sy&&e>10&&(e=Math.round(e/2)*2),e}function Ty(e,t,r){var i=()=>{var{mode:n}=t,o=$n[n];if(!!o){var{origWidth:s,origHeight:u}=r,l=s&&u?s/u:0;if(!!l){var f=e.value,v=f[o[0]];v&&(f.style[o[1]]=Ey(v/l)+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},a=()=>{var{style:n}=e.value,{origStyle:{width:o,height:s}}=r;n.width=o,n.height=s};return H(()=>t.mode,(n,o)=>{$n[o]&&a(),$n[n]&&i()}),{fixSize:i,resetSize:a}}function Cy(e,t){var r=0,i,a,n=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var l=Date.now();if(clearTimeout(i),a=()=>{a=null,r=l,e.apply(this,s)},l-r<t){i=setTimeout(a,t-(l-r));return}a()};return n.cancel=function(){clearTimeout(i),a=null},n.flush=function(){clearTimeout(i),a&&a()},n}var Oy=_i(!0),Fn=[],_l=0,Yd,qd=e=>Fn.forEach(t=>t.userAction=e);function Ay(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{userAction:!1};if(!Yd){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach(r=>{document.addEventListener(r,function(){!_l&&qd(!0),_l++,setTimeout(()=>{!--_l&&qd(!1)},0)},Oy)}),Yd=!0}Fn.push(e)}function Iy(e){var t=Fn.indexOf(e);t>=0&&Fn.splice(t,1)}function ky(){var e=Ae({userAction:!1});return Re(()=>{Ay(e)}),Ce(()=>{Iy(e)}),{state:e}}function Xd(){var e=Ae({attrs:{}});return Re(()=>{for(var t=Pt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function My(e,t){var r=_e(At,!1);if(!!r){var i=Pt(),a={submit(){var n=i.proxy;return[n[e],typeof t=="string"?n[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(a),Ce(()=>{r.removeField(a)})}}function Ry(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var Ly=function(){bt(Xt(),"getSelectedTextRange",Ry)},Py=200,bl;function wl(e){return e===null?"":String(e)}var Zd=ve({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1}},Bd),Kd=["input","focus","blur","update:value","update:modelValue","update:focus",...$d];function Ny(e,t,r){var i=U(null),a=Pe(t,r),n=ee(()=>{var v=Number(e.selectionStart);return isNaN(v)?-1:v}),o=ee(()=>{var v=Number(e.selectionEnd);return isNaN(v)?-1:v}),s=ee(()=>{var v=Number(e.cursor);return isNaN(v)?-1:v}),u=ee(()=>{var v=Number(e.maxlength);return isNaN(v)?140:v}),l=wl(e.modelValue)||wl(e.value),f=Ae({value:l,valueOrigin:l,maxlength:u,focus:e.focus,composing:!1,selectionStart:n,selectionEnd:o,cursor:s});return H(()=>f.focus,v=>r("update:focus",v)),H(()=>f.maxlength,v=>f.value=f.value.slice(0,v)),{fieldRef:i,state:f,trigger:a}}function Dy(e,t,r,i){var a=s0(s=>{t.value=wl(s)},100);H(()=>e.modelValue,a),H(()=>e.value,a);var n=Cy((s,u)=>{a.cancel(),r("update:modelValue",u.value),r("update:value",u.value),i("input",s,u)},100),o=(s,u,l)=>{a.cancel(),n(s,u),l&&n.flush()};return Lf(()=>{a.cancel(),n.cancel()}),{trigger:i,triggerInput:o}}function By(e,t){var{state:r}=ky(),i=ee(()=>e.autoFocus||e.focus);function a(){if(!!i.value){var o=t.value;if(!o||!("plus"in window)){setTimeout(a,100);return}{var s=Py-(Date.now()-bl);if(s>0){setTimeout(a,s);return}o.focus(),r.userAction||plus.key.showSoftKeybord()}}}function n(){var o=t.value;o&&o.blur()}H(()=>e.focus,o=>{o?a():n()}),Re(()=>{bl=bl||Date.now(),i.value&&Vr(a)})}function $y(e,t,r,i,a){function n(){var l=e.value;l&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&l.type!=="number"&&(l.selectionStart=t.selectionStart,l.selectionEnd=t.selectionEnd)}function o(){var l=e.value;l&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&l.type!=="number"&&(l.selectionEnd=l.selectionStart=t.cursor)}function s(l){return l.type==="number"?null:l.selectionEnd}function u(){var l=e.value,f=function(d){t.focus=!0,r("focus",d,{value:t.value}),n(),o()},v=function(d,_){d.stopPropagation(),!(typeof a=="function"&&a(d,t)===!1)&&(t.value=l.value,t.composing||i(d,{value:l.value,cursor:s(l)},_))},m=function(d){t.composing&&(t.composing=!1,v(d,!0)),t.focus=!1,r("blur",d,{value:t.value,cursor:s(d.target)})};l.addEventListener("change",d=>d.stopPropagation()),l.addEventListener("focus",f),l.addEventListener("blur",m),l.addEventListener("input",v),l.addEventListener("compositionstart",d=>{d.stopPropagation(),t.composing=!0}),l.addEventListener("compositionend",d=>{d.stopPropagation(),t.composing&&(t.composing=!1,v(d))})}H([()=>t.selectionStart,()=>t.selectionEnd],n),H(()=>t.cursor,o),H(()=>e.value,u)}function Gd(e,t,r,i){Ly();var{fieldRef:a,state:n,trigger:o}=Ny(e,t,r),{triggerInput:s}=Dy(e,n,r,o);By(e,a),Fd(e,a,o);var{state:u}=Xd();My("name",n),$y(a,n,o,s,i);var l=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:a,state:n,scopedAttrsState:u,fixDisabledColor:l,trigger:o}}var Fy=ve({},Zd,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),zy=ge({name:"Input",props:Fy,emits:["confirm",...Kd],setup(e,t){var{emit:r}=t,i=["text","number","idcard","digit","password","tel"],a=["off","one-time-code"],n=ee(()=>{var g="";switch(e.type){case"text":e.confirmType==="search"&&(g="search");break;case"idcard":g="text";break;case"digit":g="number";break;default:g=~i.includes(e.type)?e.type:"text";break}return e.password?"password":g}),o=ee(()=>{var g=a.indexOf(e.textContentType),c=a.indexOf(Ke(e.textContentType)),h=g!==-1?g:c!==-1?c:0;return a[h]}),s=U(""),u,l=U(null),{fieldRef:f,state:v,scopedAttrsState:m,fixDisabledColor:d,trigger:_}=Gd(e,l,r,(g,c)=>{var h=g.target;if(n.value==="number"){if(u&&(h.removeEventListener("blur",u),u=null),h.validity&&!h.validity.valid)return!s.value&&g.data==="-"||s.value[0]==="-"&&g.inputType==="deleteContentBackward"?(s.value="-",c.value="",u=()=>{s.value=h.value=""},h.addEventListener("blur",u),!1):(s.value=c.value=h.value=s.value==="-"?"":s.value,!1);s.value=h.value;var w=c.maxlength;if(w>0&&h.value.length>w)return h.value=h.value.slice(0,w),c.value=h.value,!1}}),b=["number","digit"],x=ee(()=>b.includes(e.type)?"0.000000000000000001":"");function p(g){if(g.key==="Enter"){var c=g.target;g.stopPropagation(),_("confirm",g,{value:c.value}),!e.confirmHold&&c.blur()}}return()=>{var g=e.disabled&&d?I("input",{ref:f,value:v.value,tabindex:"-1",readonly:!!e.disabled,type:n.value,maxlength:v.maxlength,step:x.value,class:"uni-input-input",onFocus:c=>c.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):I("input",{ref:f,value:v.value,disabled:!!e.disabled,type:n.value,maxlength:v.maxlength,step:x.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:o.value,onKeyup:p},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return I("uni-input",{ref:l},[I("div",{class:"uni-input-wrapper"},[ki(I("div",et(m.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Pi,!(v.value.length||s.value==="-")]]),e.confirmType==="search"?I("form",{action:"",onSubmit:c=>c.preventDefault(),class:"uni-input-form"},[g],40,["onSubmit"]):g])],512)}}});function Uy(e){return Object.keys(e).map(t=>[t,e[t]])}var Hy=["class","style"],Wy=/^on[A-Z]+/,Jd=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=Pt(),a=ts({}),n=ts({}),o=ts({}),s=r.concat(Hy);return i.attrs=Ae(i.attrs),Nm(()=>{var u=Uy(i.attrs).reduce((l,f)=>{var[v,m]=f;return s.includes(v)?l.exclude[v]=m:Wy.test(v)?(t||(l.attrs[v]=m),l.listeners[v]=m):l.attrs[v]=m,l},{exclude:{},attrs:{},listeners:{}});a.value=u.attrs,n.value=u.listeners,o.value=u.exclude}),{$attrs:a,$listeners:n,$excludeAttrs:o}},zn,ia;function Un(){$r(()=>{zn||(zn=plus.webview.currentWebview()),ia||(ia=(zn.getStyle()||{}).pullToRefresh||{})})}function ar(e){var{disable:t}=e;ia&&ia.support&&zn.setPullToRefresh(Object.assign({},ia,{support:!t}))}function xl(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{tn(r)?r.type===wt?t.push(...xl(r.children)):t.push(r):Array.isArray(r)&&t.push(...xl(r))}),t}function aa(e){var t=Pt();t.rebuild=e}var Vy={scaleArea:{type:Boolean,default:!1}},jy=ge({inheritAttrs:!1,name:"MovableArea",props:Vy,setup(e,t){var{slots:r}=t,i=U(null),a=U(!1),{setContexts:n,events:o}=Yy(e,i),{$listeners:s,$attrs:u,$excludeAttrs:l}=Jd(),f=s.value,v=["onTouchstart","onTouchmove","onTouchend"];v.forEach(p=>{var g=f[p],c=o["_".concat(p)];f[p]=g?[].concat(g,c):c}),Re(()=>{o._resize(),Un(),a.value=!0});var m=[],d=[];function _(){for(var p=[],g=function(h){var w=m[h];w instanceof Element||(w=w.el);var y=d.find(T=>w===T.rootRef.value);y&&p.push(Za(y))},c=0;c<m.length;c++)g(c);n(p)}aa(()=>{m=i.value.children,_()});var b=p=>{d.push(p),_()},x=p=>{var g=d.indexOf(p);g>=0&&(d.splice(g,1),_())};return Fe("_isMounted",a),Fe("movableAreaRootRef",i),Fe("addMovableViewContext",b),Fe("removeMovableViewContext",x),()=>(r.default&&r.default(),I("uni-movable-area",et({ref:i},u.value,l.value,f),[I(Ir,{onReize:o._resize},null,8,["onReize"]),m],16))}});function Qd(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function Yy(e,t){var r=U(0),i=U(0),a=Ae({x:null,y:null}),n=U(null),o=null,s=[];function u(b){b&&b!==1&&(e.scaleArea?s.forEach(function(x){x._setScale(b)}):o&&o._setScale(b))}function l(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,p=t.value;function g(c){for(var h=0;h<x.length;h++){var w=x[h];if(c===w.rootRef.value)return w}return c===p||c===document.body||c===document?null:g(c.parentNode)}return g(b)}var f=Ar(b=>{ar({disable:!0});var x=b.touches;if(x&&x.length>1){var p={x:x[1].pageX-x[0].pageX,y:x[1].pageY-x[0].pageY};if(n.value=Qd(p),a.x=p.x,a.y=p.y,!e.scaleArea){var g=l(x[0].target),c=l(x[1].target);o=g&&g===c?g:null}}}),v=Ar(b=>{var x=b.touches;if(x&&x.length>1){b.preventDefault();var p={x:x[1].pageX-x[0].pageX,y:x[1].pageY-x[0].pageY};if(a.x!==null&&n.value&&n.value>0){var g=Qd(p)/n.value;u(g)}a.x=p.x,a.y=p.y}}),m=Ar(b=>{ar({disable:!1});var x=b.touches;x&&x.length||b.changedTouches&&(a.x=0,a.y=0,n.value=null,e.scaleArea?s.forEach(function(p){p._endScale()}):o&&o._endScale())});function d(){_(),s.forEach(function(b,x){b.setParent()})}function _(){var b=window.getComputedStyle(t.value),x=t.value.getBoundingClientRect();r.value=x.width-["Left","Right"].reduce(function(p,g){var c="border"+g+"Width",h="padding"+g;return p+parseFloat(b[c])+parseFloat(b[h])},0),i.value=x.height-["Top","Bottom"].reduce(function(p,g){var c="border"+g+"Width",h="padding"+g;return p+parseFloat(b[c])+parseFloat(b[h])},0)}return Fe("movableAreaWidth",r),Fe("movableAreaHeight",i),{setContexts(b){s=b},events:{_onTouchstart:f,_onTouchmove:v,_onTouchend:m,_resize:d}}}var na=function(e,t,r,i){e.addEventListener(t,a=>{typeof r=="function"&&r(a)===!1&&((typeof a.cancelable!="undefined"?a.cancelable:!0)&&a.preventDefault(),a.stopPropagation())},{passive:!1})},eh,th;function Hn(e,t,r){Ce(()=>{document.removeEventListener("mousemove",eh),document.removeEventListener("mouseup",th)});var i=0,a=0,n=0,o=0,s=function(d,_,b,x){if(t({target:d.target,currentTarget:d.currentTarget,preventDefault:d.preventDefault.bind(d),stopPropagation:d.stopPropagation.bind(d),touches:d.touches,changedTouches:d.changedTouches,detail:{state:_,x:b,y:x,dx:b-i,dy:x-a,ddx:b-n,ddy:x-o,timeStamp:d.timeStamp}})===!1)return!1},u=null,l,f;na(e,"touchstart",function(d){if(l=!0,d.touches.length===1&&!u)return u=d,i=n=d.touches[0].pageX,a=o=d.touches[0].pageY,s(d,"start",i,a)}),na(e,"mousedown",function(d){if(f=!0,!l&&!u)return u=d,i=n=d.pageX,a=o=d.pageY,s(d,"start",i,a)}),na(e,"touchmove",function(d){if(d.touches.length===1&&u){var _=s(d,"move",d.touches[0].pageX,d.touches[0].pageY);return n=d.touches[0].pageX,o=d.touches[0].pageY,_}});var v=eh=function(d){if(!l&&f&&u){var _=s(d,"move",d.pageX,d.pageY);return n=d.pageX,o=d.pageY,_}};document.addEventListener("mousemove",v),na(e,"touchend",function(d){if(d.touches.length===0&&u)return l=!1,u=null,s(d,"end",d.changedTouches[0].pageX,d.changedTouches[0].pageY)});var m=th=function(d){if(f=!1,!l&&u)return u=null,s(d,"end",d.pageX,d.pageY)};document.addEventListener("mouseup",m),na(e,"touchcancel",function(d){if(u){l=!1;var _=u;return u=null,s(d,r?"cancel":"end",_.touches[0].pageX,_.touches[0].pageY)}})}function Wn(e,t,r){return e>t-r&&e<t+r}function kr(e,t){return Wn(e,0,t)}function yl(){}yl.prototype.x=function(e){return Math.sqrt(e)};function It(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}It.prototype.setV=function(e,t){var r=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/r,this._y_a=-this._f*this._y_v/r,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=new Date().getTime()},It.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},It.prototype.s=function(e){e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&r<this._endPositionY||this._y_a<0&&r>this._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},It.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},It.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},It.prototype.dt=function(){return-this._x_v/this._x_a},It.prototype.done=function(){var e=Wn(this.s().x,this._endPositionX)||Wn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},It.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},It.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function rt(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}rt.prototype._solve=function(e,t){var r=this._c,i=this._m,a=this._k,n=r*r-4*i*a;if(n===0){var o=-r/(2*i),s=e,u=t/(o*e);return{x:function(p){return(s+u*p)*Math.pow(Math.E,o*p)},dx:function(p){var g=Math.pow(Math.E,o*p);return o*(s+u*p)*g+u*g}}}if(n>0){var l=(-r-Math.sqrt(n))/(2*i),f=(-r+Math.sqrt(n))/(2*i),v=(t-l*e)/(f-l),m=e-v;return{x:function(p){var g,c;return p===this._t&&(g=this._powER1T,c=this._powER2T),this._t=p,g||(g=this._powER1T=Math.pow(Math.E,l*p)),c||(c=this._powER2T=Math.pow(Math.E,f*p)),m*g+v*c},dx:function(p){var g,c;return p===this._t&&(g=this._powER1T,c=this._powER2T),this._t=p,g||(g=this._powER1T=Math.pow(Math.E,l*p)),c||(c=this._powER2T=Math.pow(Math.E,f*p)),m*l*g+v*f*c}}}var d=Math.sqrt(4*i*a-r*r)/(2*i),_=-r/2*i,b=e,x=(t-_*e)/d;return{x:function(p){return Math.pow(Math.E,_*p)*(b*Math.cos(d*p)+x*Math.sin(d*p))},dx:function(p){var g=Math.pow(Math.E,_*p),c=Math.cos(d*p),h=Math.sin(d*p);return g*(x*d*c-b*d*h)+_*g*(x*h+b*c)}}},rt.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},rt.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},rt.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!kr(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(kr(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),kr(t,.1)&&(t=0),kr(i,.1)&&(i=0),i+=this._endPosition),this._solution&&kr(i-e,.1)&&kr(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},rt.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},rt.prototype.done=function(e){return e||(e=new Date().getTime()),Wn(this.x(),this._endPosition,.1)&&kr(this.dx(),.1)},rt.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},rt.prototype.springConstant=function(){return this._k},rt.prototype.damping=function(){return this._c},rt.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function oa(e,t,r){this._springX=new rt(e,t,r),this._springY=new rt(e,t,r),this._springScale=new rt(e,t,r),this._startTime=0}oa.prototype.setEnd=function(e,t,r,i){var a=new Date().getTime();this._springX.setEnd(e,i,a),this._springY.setEnd(t,i,a),this._springScale.setEnd(r,i,a),this._startTime=a},oa.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},oa.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},oa.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var qy={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},Xy=ge({name:"MovableView",props:qy,emits:["change","scale"],setup(e,t){var{slots:r,emit:i}=t,a=U(null),n=Pe(a,i),{setParent:o}=Zy(e,n,a);return()=>I("uni-movable-view",{ref:a},[I(Ir,{onResize:o},null,8,["onResize"]),r.default&&r.default()],512)}}),Sl=!1;function rh(e){Sl||(Sl=!0,requestAnimationFrame(function(){e(),Sl=!1}))}function ih(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=ih(e.offsetParent,t):0}function ah(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=ah(e.offsetParent,t):0}function nh(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function oh(e,t,r){var i={id:0,cancelled:!1},a=function(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)};function n(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(n.bind(null,o,s,u,l))),f&&l&&l(s)}}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}function Vn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function Zy(e,t,r){var i=_e("movableAreaWidth",U(0)),a=_e("movableAreaHeight",U(0)),n=_e("_isMounted",U(!1)),o=_e("movableAreaRootRef"),s=_e("addMovableViewContext",()=>{}),u=_e("removeMovableViewContext",()=>{}),l=U(Vn(e.x)),f=U(Vn(e.y)),v=U(Number(e.scaleValue)||1),m=U(0),d=U(0),_=U(0),b=U(0),x=U(0),p=U(0),g=null,c=null,h={x:0,y:0},w={x:0,y:0},y=1,T=1,E=0,O=0,N=!1,R=!1,V,ue,M=null,B=null,Q=new yl,te=new yl,W={historyX:[0,0],historyY:[0,0],historyT:[0,0]},G=ee(()=>{var A=Number(e.damping);return isNaN(A)?20:A}),ae=ee(()=>{var A=Number(e.friction);return isNaN(A)||A<=0?2:A}),Se=ee(()=>{var A=Number(e.scaleMin);return isNaN(A)?.5:A}),se=ee(()=>{var A=Number(e.scaleMax);return isNaN(A)?10:A}),K=ee(()=>e.direction==="all"||e.direction==="horizontal"),ie=ee(()=>e.direction==="all"||e.direction==="vertical"),le=new oa(1,9*Math.pow(G.value,2)/40,G.value),Ie=new It(1,ae.value);H(()=>e.x,A=>{l.value=Vn(A)}),H(()=>e.y,A=>{f.value=Vn(A)}),H(l,A=>{nt(A)}),H(f,A=>{nr(A)}),H(()=>e.scaleValue,A=>{v.value=Number(A)||0}),H(v,A=>{fa(A)}),H(Se,()=>{Ne()}),H(se,()=>{Ne()});function ke(){c&&c.cancel(),g&&g.cancel()}function nt(A){if(K.value){if(A+w.x===E)return E;g&&g.cancel(),J(A+w.x,f.value+w.y,y)}return A}function nr(A){if(ie.value){if(A+w.y===O)return O;g&&g.cancel(),J(l.value+w.x,A+w.y,y)}return A}function Ne(){if(!e.scale)return!1;$(y,!0),z(y)}function fa(A){return e.scale?(A=D(A),$(A,!0),z(A),A):!1}function ca(){N||e.disabled||(ar({disable:!0}),ke(),W.historyX=[0,0],W.historyY=[0,0],W.historyT=[0,0],K.value&&(V=E),ie.value&&(ue=O),r.value.style.willChange="transform",M=null,B=null,R=!0)}function S(A){if(A.stopPropagation(),!N&&!e.disabled&&R){var Y=E,q=O;if(B===null&&(B=Math.abs(A.detail.dx/A.detail.dy)>1?"htouchmove":"vtouchmove"),K.value&&(Y=A.detail.dx+V,W.historyX.shift(),W.historyX.push(Y),!ie.value&&M===null&&(M=Math.abs(A.detail.dx/A.detail.dy)<1)),ie.value&&(q=A.detail.dy+ue,W.historyY.shift(),W.historyY.push(q),!K.value&&M===null&&(M=Math.abs(A.detail.dy/A.detail.dx)<1)),W.historyT.shift(),W.historyT.push(A.detail.timeStamp),!M){A.preventDefault();var he="touch";Y<_.value?e.outOfBounds?(he="touch-out-of-bounds",Y=_.value-Q.x(_.value-Y)):Y=_.value:Y>x.value&&(e.outOfBounds?(he="touch-out-of-bounds",Y=x.value+Q.x(Y-x.value)):Y=x.value),q<b.value?e.outOfBounds?(he="touch-out-of-bounds",q=b.value-te.x(b.value-q)):q=b.value:q>p.value&&(e.outOfBounds?(he="touch-out-of-bounds",q=p.value+te.x(q-p.value)):q=p.value),rh(function(){X(Y,q,y,he)})}}}function C(){if(!N&&!e.disabled&&R&&(ar({disable:!1}),r.value.style.willChange="auto",R=!1,!M&&!Z("out-of-bounds")&&e.inertia)){var A=1e3*(W.historyX[1]-W.historyX[0])/(W.historyT[1]-W.historyT[0]),Y=1e3*(W.historyY[1]-W.historyY[0])/(W.historyT[1]-W.historyT[0]);Ie.setV(A,Y),Ie.setS(E,O);var q=Ie.delta().x,he=Ie.delta().y,fe=q+E,$e=he+O;fe<_.value?(fe=_.value,$e=O+(_.value-E)*he/q):fe>x.value&&(fe=x.value,$e=O+(x.value-E)*he/q),$e<b.value?($e=b.value,fe=E+(b.value-O)*q/he):$e>p.value&&($e=p.value,fe=E+(p.value-O)*q/he),Ie.setEnd(fe,$e),c=oh(Ie,function(){var Ze=Ie.s(),De=Ze.x,gt=Ze.y;X(De,gt,y,"friction")},function(){c.cancel()})}!e.outOfBounds&&!e.inertia&&ke()}function k(A,Y){var q=!1;return A>x.value?(A=x.value,q=!0):A<_.value&&(A=_.value,q=!0),Y>p.value?(Y=p.value,q=!0):Y<b.value&&(Y=b.value,q=!0),{x:A,y:Y,outOfBounds:q}}function L(){h.x=ih(r.value,o.value),h.y=ah(r.value,o.value)}function P(A){A=A||y,A=D(A);var Y=r.value.getBoundingClientRect();d.value=Y.height/y,m.value=Y.width/y;var q=d.value*A,he=m.value*A;w.x=(he-m.value)/2,w.y=(q-d.value)/2}function F(){var A=0-h.x+w.x,Y=i.value-m.value-h.x-w.x;_.value=Math.min(A,Y),x.value=Math.max(A,Y);var q=0-h.y+w.y,he=a.value-d.value-h.y-w.y;b.value=Math.min(q,he),p.value=Math.max(q,he)}function j(){N=!0}function $(A,Y){if(e.scale){A=D(A),P(A),F();var q=k(E,O),he=q.x,fe=q.y;Y?J(he,fe,A,"",!0,!0):rh(function(){X(he,fe,A,"",!0,!0)})}}function z(A){T=A}function D(A){return A=Math.max(.5,Se.value,A),A=Math.min(10,se.value,A),A}function J(A,Y,q,he,fe,$e){ke(),K.value||(A=E),ie.value||(Y=O),e.scale||(q=y);var Ze=k(A,Y);if(A=Ze.x,Y=Ze.y,!e.animation){X(A,Y,q,he,fe,$e);return}le._springX._solution=null,le._springY._solution=null,le._springScale._solution=null,le._springX._endPosition=E,le._springY._endPosition=O,le._springScale._endPosition=y,le.setEnd(A,Y,q,1),g=oh(le,function(){var De=le.x(),gt=De.x,or=De.y,kt=De.scale;X(gt,or,kt,he,fe,$e)},function(){g.cancel()})}function Z(A){var Y=k(E,O),q=Y.x,he=Y.y,fe=Y.outOfBounds;return fe&&J(q,he,y,A),fe}function X(A,Y,q){var he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",fe=arguments.length>4?arguments[4]:void 0,$e=arguments.length>5?arguments[5]:void 0;A!==null&&A.toString()!=="NaN"&&typeof A=="number"||(A=E||0),Y!==null&&Y.toString()!=="NaN"&&typeof Y=="number"||(Y=O||0),A=Number(A.toFixed(1)),Y=Number(Y.toFixed(1)),q=Number(q.toFixed(1)),E===A&&O===Y||fe||t("change",{},{x:nh(A,w.x),y:nh(Y,w.y),source:he}),e.scale||(q=y),q=D(q),q=+q.toFixed(3),$e&&q!==y&&t("scale",{},{x:A,y:Y,scale:q});var Ze="translateX("+A+"px) translateY("+Y+"px) translateZ(0px) scale("+q+")";r.value.style.transform=Ze,r.value.style.webkitTransform=Ze,E=A,O=Y,y=q}function ce(){if(!!n.value){ke();var A=e.scale?v.value:1;L(),P(A),F(),E=l.value+w.x,O=f.value+w.y;var Y=k(E,O),q=Y.x,he=Y.y;X(q,he,A,"",!0),z(A)}}function Be(){N=!1,z(y)}function Te(A){A&&(A=T*A,j(),$(A))}return Re(()=>{Hn(r.value,Y=>{switch(Y.detail.state){case"start":ca();break;case"move":S(Y);break;case"end":C()}}),ce(),Ie.reconfigure(1,ae.value),le.reconfigure(1,9*Math.pow(G.value,2)/40,G.value),r.value.style.transformOrigin="center",Un();var A={rootRef:r,setParent:ce,_endScale:Be,_setScale:Te};s(A),Yt(()=>{u(A)})}),Yt(()=>{ke()}),{setParent:ce}}var Ky=["navigate","redirect","switchTab","reLaunch","navigateBack"],Gy={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~Ky.indexOf(e))}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1}};function Jy(e){return()=>{if(e.openType!=="navigateBack"&&!e.url){console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}switch(e.openType){case"navigate":uni.navigateTo({url:e.url});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta});break}}}var Qy=ge({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:Gy,setup(e,t){var{slots:r}=t,i=Pt(),a=i&&i.root.type.__scopeId||"",{hovering:n,binding:o}=gl(e),s=Jy(e);return()=>{var{hoverClass:u,url:l}=e,f=e.hoverClass&&e.hoverClass!=="none";return I("a",{class:"navigator-wrap",href:l,onClick:gc},[I("uni-navigator",et({class:f&&n.value?u:""},f&&o,i?i.attrs:{},{[a]:""},{onClick:s}),[r.default&&r.default()],16,["onClick"])],8,["href","onClick"])}}}),eS={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function tS(e){var t=Ae([...e.value]),r=Ae({value:t,height:34});return H(()=>e.value,(i,a)=>{(i===a||i.length!==a.length||i.findIndex((n,o)=>n!==a[o])>=0)&&(r.value.length=i.length,i.forEach((n,o)=>{n!==r.value[o]&&r.value.splice(o,1,n)}))}),r}var rS=ge({name:"PickerView",props:eS,emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:r,emit:i}=t,a=U(null),n=U(null),o=Pe(a,i),s=tS(e),u=U(null),l=()=>{var _=u.value;s.height=_.$el.offsetHeight},f=U([]),v=U([]);function m(_){var b=v.value;if(b instanceof HTMLCollection)return Array.prototype.indexOf.call(b,_.el);b=b.filter(p=>p.type!==jr);var x=b.indexOf(_);return x!==-1?x:f.value.indexOf(_)}var d=function(_){var b=ee({get(){var x=m(_.vnode);return s.value[x]||0},set(x){var p=m(_.vnode);if(!(p<0)){var g=s.value[p];if(g!==x){s.value[p]=x;var c=s.value.map(h=>h);i("update:value",c),o("change",{},{value:c})}}}});return b};return Fe("getPickerViewColumn",d),Fe("pickerViewProps",e),Fe("pickerViewState",s),aa(()=>{l(),v.value=n.value.children}),()=>{var _=r.default&&r.default();return I("uni-picker-view",{ref:a},[I(Ir,{ref:u,onResize:b=>{var{height:x}=b;return s.height=x}},null,8,["onResize"]),I("div",{ref:n,class:"uni-picker-view-wrapper"},[_],512)],512)}}});class sh{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function lh(e,t,r){return e>t-r&&e<t+r}function Mr(e,t){return lh(e,0,t)}class uh{constructor(t,r,i){this._m=t,this._k=r,this._c=i,this._solution=null,this._endPosition=0,this._startTime=0}_solve(t,r){var i=this._c,a=this._m,n=this._k,o=i*i-4*a*n;if(o===0){var s=-i/(2*a),u=t,l=r/(s*t);return{x:function(g){return(u+l*g)*Math.pow(Math.E,s*g)},dx:function(g){var c=Math.pow(Math.E,s*g);return s*(u+l*g)*c+l*c}}}if(o>0){var f=(-i-Math.sqrt(o))/(2*a),v=(-i+Math.sqrt(o))/(2*a),m=(r-f*t)/(v-f),d=t-m;return{x:function(g){var c,h;return g===this._t&&(c=this._powER1T,h=this._powER2T),this._t=g,c||(c=this._powER1T=Math.pow(Math.E,f*g)),h||(h=this._powER2T=Math.pow(Math.E,v*g)),d*c+m*h},dx:function(g){var c,h;return g===this._t&&(c=this._powER1T,h=this._powER2T),this._t=g,c||(c=this._powER1T=Math.pow(Math.E,f*g)),h||(h=this._powER2T=Math.pow(Math.E,v*g)),d*f*c+m*v*h}}}var _=Math.sqrt(4*a*n-i*i)/(2*a),b=-i/2*a,x=t,p=(r-b*t)/_;return{x:function(g){return Math.pow(Math.E,b*g)*(x*Math.cos(_*g)+p*Math.sin(_*g))},dx:function(g){var c=Math.pow(Math.E,b*g),h=Math.cos(_*g),w=Math.sin(_*g);return c*(p*_*h-x*_*w)+b*c*(p*w+x*h)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!Mr(r,.4)){r=r||0;var a=this._endPosition;this._solution&&(Mr(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),a=this._solution.x((i-this._startTime)/1e3),Mr(r,.4)&&(r=0),Mr(a,.4)&&(a=0),a+=this._endPosition),this._solution&&Mr(a-t,.4)&&Mr(r,.4)||(this._endPosition=t,this._solution=this._solve(a-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),lh(this.x(),this._endPosition,.4)&&Mr(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,a){i.reconfigure(1,a,i.damping())}function r(i,a){i.reconfigure(1,i.springConstant(),a)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class iS{constructor(t,r,i){this._extent=t,this._friction=r||new sh(.01),this._spring=i||new uh(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function aS(e,t,r){var i={id:0,cancelled:!1};function a(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(a.bind(null,o,s,u,l))),f&&l&&l(s)}}function n(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}class nS{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new iS(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)<this._itemSize&&Math.abs(i.y)<300||Math.abs(i.y)<150)){this.snap();return}if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(i.x)<300||Math.abs(i.x)<150)){this.snap();return}}this._enableX?this._scroll.set(this._position,i.x):this._enableY&&this._scroll.set(this._position,i.y);var a;if(this._enableSnap){var n=this._scroll._friction.x(100),o=n%this._itemSize;a=Math.abs(o)>this._itemSize/2?n-(this._itemSize-Math.abs(o)):n-o,a<=0&&a>=-this._extent&&this._scroll.setVelocityByEnd(a)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=aS(this._scroll,()=>{var s=Date.now(),u=(s-this._scroll._startTime)/1e3,l=this._scroll.x(u);this._position=l,this.updatePosition();var f=this._scroll.dx(u);this._shouldDispatchScrollEvent&&s-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/f),this._lastTime=s)},()=>{this._enableSnap&&(a<=0&&a>=-this._extent&&(this._position=a,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var a=0,n=this._position;this._enableX?(a=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(a=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-a?this._position=-a:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),n!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=a,this._scroll._extent=a}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function oS(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new nS(e,t);function a(u){var l=u,f=u;return l.detail.state==="move"||l.detail.state==="end"?{x:l.detail.dx,y:l.detail.dy}:{x:f.screenX-r.x,y:f.screenY-r.y}}function n(u){var l=u,f=u;l.detail.state==="start"?(r.trackingID="touch",r.x=l.detail.x,r.y=l.detail.y):(r.trackingID="mouse",r.x=f.screenX,r.y=f.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[l.detail.timeStamp||f.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),u.preventDefault()}function o(u){var l=u,f=u;if(r.trackingID!==-1){u.preventDefault();var v=a(u);if(v){for(r.maxDy=Math.max(r.maxDy,Math.abs(v.y)),r.maxDx=Math.max(r.maxDx,Math.abs(v.x)),r.historyX.push(v.x),r.historyY.push(v.y),r.historyTime.push(l.detail.timeStamp||f.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(v.x,v.y)}}}function s(u){if(r.trackingID!==-1){u.preventDefault();var l=a(u);if(l){var f=r.listener;r.trackingID=-1,r.listener=null;var v=r.historyTime.length,m={x:0,y:0};if(v>2)for(var d=r.historyTime.length-1,_=r.historyTime[d],b=r.historyX[d],x=r.historyY[d];d>0;){d--;var p=r.historyTime[d],g=_-p;if(g>30&&g<50){m.x=(b-r.historyX[d])/(g/1e3),m.y=(x-r.historyY[d])/(g/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],f&&f.onTouchEnd&&f.onTouchEnd(l.x,l.y,m)}}}return{scroller:i,handleTouchStart:n,handleTouchMove:o,handleTouchEnd:s}}var sS=0;function lS(e){var t="uni-picker-view-content-".concat(sS++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return H(()=>e.value,r),t}function uS(e){var t=20,r=0,i=0;e.addEventListener("touchstart",a=>{var n=a.changedTouches[0];r=n.clientX,i=n.clientY}),e.addEventListener("touchend",a=>{var n=a.changedTouches[0];if(Math.abs(n.clientX-r)<t&&Math.abs(n.clientY-i)<t){var o={bubbles:!0,cancelable:!0,target:a.target,currentTarget:a.currentTarget},s=new CustomEvent("click",o),u=["screenX","screenY","clientX","clientY","pageX","pageY"];u.forEach(l=>{s[l]=n[l]}),a.target.dispatchEvent(s)}})}var fS=ge({name:"PickerViewColumn",setup(e,t){var{slots:r,emit:i}=t,a=U(null),n=U(null),o=_e("getPickerViewColumn"),s=Pt(),u=o?o(s):U(0),l=_e("pickerViewProps"),f=_e("pickerViewState"),v=U(34),m=U(null),d=()=>{var O=m.value;v.value=O.$el.offsetHeight},_=ee(()=>(f.height-v.value)/2),{state:b}=Xd(),x=lS(v),p,g=Ae({current:u.value,length:0}),c;function h(){p&&!c&&(c=!0,Vr(()=>{c=!1;var O=Math.min(g.current,g.length-1);O=Math.max(O,0),p.update(O*v.value,void 0,v.value)}))}H(()=>u.value,O=>{O!==g.current&&(g.current=O,h())}),H(()=>g.current,O=>u.value=O),H([()=>v.value,()=>g.length,()=>f.height],h);var w=0;function y(O){var N=w+O.deltaY;if(Math.abs(N)>10){w=0;var R=Math.min(g.current+(N<0?-1:1),g.length-1);g.current=R=Math.max(R,0),p.scrollTo(R*v.value)}else w=N;O.preventDefault()}function T(O){var{clientY:N}=O,R=a.value;if(!p.isScrolling()){var V=R.getBoundingClientRect(),ue=N-V.top-f.height/2,M=v.value/2;if(!(Math.abs(ue)<=M)){var B=Math.ceil((Math.abs(ue)-M)/v.value),Q=ue<0?-B:B,te=Math.min(g.current+Q,g.length-1);g.current=te=Math.max(te,0),p.scrollTo(te*v.value)}}}var E=()=>{var O=a.value,N=n.value,{scroller:R,handleTouchStart:V,handleTouchMove:ue,handleTouchEnd:M}=oS(N,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:v.value,friction:new sh(1e-4),spring:new uh(2,90,20),onSnap:B=>{!isNaN(B)&&B!==g.current&&(g.current=B)}});p=R,Hn(O,B=>{switch(B.detail.state){case"start":V(B),ar({disable:!0});break;case"move":ue(B),B.stopPropagation();break;case"end":case"cancel":M(B),ar({disable:!1})}},!0),uS(O),Un(),h()};return aa(()=>{g.length=n.value.children.length,d(),E()}),()=>{var O=r.default&&r.default(),N="".concat(_.value,"px 0");return I("uni-picker-view-column",{ref:a},[I("div",{onWheel:y,onClick:T,class:"uni-picker-view-group"},[I("div",et(b.attrs,{class:["uni-picker-view-mask",l.maskClass],style:"background-size: 100% ".concat(_.value,"px;").concat(l.maskStyle)}),null,16),I("div",et(b.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[I(Ir,{ref:m,onResize:R=>{var{height:V}=R;return v.value=V}},null,8,["onResize"])],16),I("div",{ref:n,class:["uni-picker-view-content",x],style:{padding:N}},[O],6)],40,["onWheel","onClick"])],512)}}}),Rr={activeColor:Pa,backgroundColor:"#EBEBEB",activeMode:"backwards"},cS={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:Rr.activeColor},activeColor:{type:String,default:Rr.activeColor},backgroundColor:{type:String,default:Rr.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Rr.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}}},vS=ge({name:"Progress",props:cS,setup(e){var t=dS(e);return fh(t,e),H(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,fh(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:a,currentPercent:n}=t;return I("uni-progress",{class:"uni-progress"},[I("div",{style:i,class:"uni-progress-bar"},[I("div",{style:a,class:"uni-progress-inner-bar"},null,4)],4),r?I("p",{class:"uni-progress-info"},[n+"%"]):""])}}});function dS(e){var t=U(0),r=ee(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=ee(()=>{var o=e.color!==Rr.activeColor&&e.activeColor===Rr.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(o)}),a=ee(()=>{var o=parseFloat(e.percent);return o<0&&(o=0),o>100&&(o=100),o}),n=Ae({outerBarStyle:r,innerBarStyle:i,realPercent:a,currentPercent:t,strokeTimer:0,lastPercent:0});return n}function fh(e,t){t.active?(e.currentPercent=t.activeMode===Rr.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var ch=dn("ucg"),hS={name:{type:String,default:""}},gS=ge({name:"RadioGroup",props:hS,setup(e,t){var{emit:r,slots:i}=t,a=U(null),n=Pe(a,r);return pS(e,n),()=>I("uni-radio-group",{ref:a},[i.default&&i.default()],512)}});function pS(e,t){var r=[];Re(()=>{s(r.length-1)});var i=()=>{var u;return(u=r.find(l=>l.value.radioChecked))===null||u===void 0?void 0:u.value.value};Fe(ch,{addField(u){r.push(u)},removeField(u){r.splice(r.indexOf(u),1)},radioChange(u,l){var f=r.indexOf(l);s(f,!0),t("change",u,{value:i()})}});var a=_e(At,!1),n={submit:()=>{var u=["",null];return e.name!==""&&(u[0]=e.name,u[1]=i()),u}};a&&(a.addField(n),Ce(()=>{a.removeField(n)}));function o(u,l){u.value={radioChecked:l,value:u.value.value}}function s(u,l){r.forEach((f,v)=>{v!==u&&(l?o(r[v],!1):r.forEach((m,d)=>{v>=d||r[d].value.radioChecked&&o(r[v],!1)}))})}return r}var mS={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},_S=ge({name:"Radio",props:mS,setup(e,t){var{slots:r}=t,i=U(e.checked),a=U(e.value),n=ee(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));H([()=>e.checked,()=>e.value],v=>{var[m,d]=v;i.value=m,a.value=d});var o=()=>{i.value=!1},{uniCheckGroup:s,uniLabel:u,field:l}=bS(i,a,o),f=v=>{e.disabled||(i.value=!0,s&&s.radioChange(v,l))};return u&&(u.addHandler(f),Ce(()=>{u.removeHandler(f)})),Pn(e,{"label-click":f}),()=>{var v=ai(e,"disabled");return I("uni-radio",et(v,{onClick:f}),[I("div",{class:"uni-radio-wrapper"},[I("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:i.value?n.value:""},[i.value?gn(hn,"#fff",18):""],6),r.default&&r.default()])],16,["onClick"])}}});function bS(e,t,r){var i=ee({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:u=>{var{radioChecked:l}=u;e.value=l}}),a={reset:r},n=_e(ch,!1);n&&n.addField(i);var o=_e(At,!1);o&&o.addField(a);var s=_e(Qi,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s,field:i}}function wS(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function xS(e){return e.reduce(function(t,r){var i=r.value,a=r.name;return i.match(/ /)&&a!=="style"&&(i=i.split(" ")),t[a]?Array.isArray(t[a])?t[a].push(i):t[a]=[t[a],i]:t[a]=i,t},{})}function yS(e){e=wS(e);var t=[],r={node:"root",children:[]};return Hd(e,{start:function(i,a,n){var o={name:i};if(a.length!==0&&(o.attrs=xS(a)),n){var s=t[0]||r;s.children||(s.children=[]),s.children.push(o)}else t.unshift(o)},end:function(i){var a=t.shift();if(a.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},chars:function(i){var a={type:"text",text:i};if(t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},comment:function(i){var a={node:"comment",text:i},n=t[0];n.children||(n.children=[]),n.children.push(a)}}),r.children}var vh={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},El={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function SS(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(re(El,r)&&El[r])return El[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function ES(e,t,r){return e==="img"&&t==="src"?vt(r):r}function dh(e,t,r,i){return e.forEach(function(a){if(!!mt(a))if(!re(a,"type")||a.type==="node"){if(!(typeof a.name=="string"&&a.name))return;var n=a.name.toLowerCase();if(!re(vh,n))return;var o=document.createElement(n);if(!o)return;var s=a.attrs;if(mt(s)){var u=vh[n]||[];Object.keys(s).forEach(function(f){var v=s[f];switch(f){case"class":Array.isArray(v)&&(v=v.join(" "));case"style":o.setAttribute(f,v),r&&o.setAttribute(r,"");break;default:u.indexOf(f)!==-1&&o.setAttribute(f,ES(n,f,v))}})}TS(a,o,i);var l=a.children;Array.isArray(l)&&l.length&&dh(a.children,o,r,i),t.appendChild(o)}else a.type==="text"&&typeof a.text=="string"&&a.text!==""&&t.appendChild(document.createTextNode(SS(a.text)))}),t}function TS(e,t,r){["a","img"].includes(e.name)&&r&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",i=>{r(i,{node:e}),i.stopPropagation()},!0))}var CS={nodes:{type:[Array,String],default:function(){return[]}}},OS=ge({name:"RichText",compatConfig:{MODE:3},props:CS,emits:["click","touchstart","touchmove","touchcancel","touchend","longpress"],setup(e,t){var{emit:r,attrs:i}=t,a=Pt(),n=U(null),o=Pe(n,r),s=!!i.onItemclick;function u(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o("itemclick",f,v)}function l(f){typeof f=="string"&&(f=yS(f));var v=dh(f,document.createDocumentFragment(),(a&&a.root.type).__scopeId||"",s&&u);n.value.firstElementChild.innerHTML="",n.value.firstElementChild.appendChild(v)}return H(()=>e.nodes,f=>{l(f)}),Re(()=>{l(e.nodes)}),()=>I("uni-rich-text",{ref:n},[I("div",null,null)],512)}}),hh=_i(!0),AS={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},IS=ge({name:"ScrollView",compatConfig:{MODE:3},props:AS,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:r,slots:i}=t,a=U(null),n=U(null),o=U(null),s=U(null),u=U(null),l=Pe(a,r),{state:f,scrollTopNumber:v,scrollLeftNumber:m}=kS(e);MS(e,f,v,m,l,a,n,s,r);var d=ee(()=>{var _="";return e.scrollX?_+="overflow-x:auto;":_+="overflow-x:hidden;",e.scrollY?_+="overflow-y:auto;":_+="overflow-y:hidden;",_});return()=>{var{refresherEnabled:_,refresherBackground:b,refresherDefaultStyle:x}=e,{refresherHeight:p,refreshState:g,refreshRotate:c}=f;return I("uni-scroll-view",{ref:a},[I("div",{ref:o,class:"uni-scroll-view"},[I("div",{ref:n,style:d.value,class:"uni-scroll-view"},[I("div",{ref:s,class:"uni-scroll-view-content"},[_?I("div",{ref:u,style:{backgroundColor:b,height:p+"px"},class:"uni-scroll-view-refresher"},[x!=="none"?I("div",{class:"uni-scroll-view-refresh"},[I("div",{class:"uni-scroll-view-refresh-inner"},[g=="pulling"?I("svg",{key:"refresh__icon",style:{transform:"rotate("+c+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[I("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),I("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,g=="refreshing"?I("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[I("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,x=="none"?i.refresher&&i.refresher():null],4):null,i.default&&i.default()],512)],4)],512)],512)}}});function kS(e){var t=ee(()=>Number(e.scrollTop)||0),r=ee(()=>Number(e.scrollLeft)||0),i=Ae({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function MS(e,t,r,i,a,n,o,s,u){var l=!1,f=0,v=!1,m=()=>{},d=ee(()=>{var y=Number(e.upperThreshold);return isNaN(y)?50:y}),_=ee(()=>{var y=Number(e.lowerThreshold);return isNaN(y)?50:y});function b(y,T){var E=o.value,O=0,N="";if(y<0?y=0:T==="x"&&y>E.scrollWidth-E.offsetWidth?y=E.scrollWidth-E.offsetWidth:T==="y"&&y>E.scrollHeight-E.offsetHeight&&(y=E.scrollHeight-E.offsetHeight),T==="x"?O=E.scrollLeft-y:T==="y"&&(O=E.scrollTop-y),O!==0){var R=s.value;R.style.transition="transform .3s ease-out",R.style.webkitTransition="-webkit-transform .3s ease-out",T==="x"?N="translateX("+O+"px) translateZ(0)":T==="y"&&(N="translateY("+O+"px) translateZ(0)"),R.removeEventListener("transitionend",m),R.removeEventListener("webkitTransitionEnd",m),m=()=>h(y,T),R.addEventListener("transitionend",m),R.addEventListener("webkitTransitionEnd",m),T==="x"?E.style.overflowX="hidden":T==="y"&&(E.style.overflowY="hidden"),R.style.transform=N,R.style.webkitTransform=N}}function x(y){var T=y.target;a("scroll",y,{scrollLeft:T.scrollLeft,scrollTop:T.scrollTop,scrollHeight:T.scrollHeight,scrollWidth:T.scrollWidth,deltaX:t.lastScrollLeft-T.scrollLeft,deltaY:t.lastScrollTop-T.scrollTop}),e.scrollY&&(T.scrollTop<=d.value&&t.lastScrollTop-T.scrollTop>0&&y.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",y,{direction:"top"}),t.lastScrollToUpperTime=y.timeStamp),T.scrollTop+T.offsetHeight+_.value>=T.scrollHeight&&t.lastScrollTop-T.scrollTop<0&&y.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",y,{direction:"bottom"}),t.lastScrollToLowerTime=y.timeStamp)),e.scrollX&&(T.scrollLeft<=d.value&&t.lastScrollLeft-T.scrollLeft>0&&y.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",y,{direction:"left"}),t.lastScrollToUpperTime=y.timeStamp),T.scrollLeft+T.offsetWidth+_.value>=T.scrollWidth&&t.lastScrollLeft-T.scrollLeft<0&&y.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",y,{direction:"right"}),t.lastScrollToLowerTime=y.timeStamp)),t.lastScrollTop=T.scrollTop,t.lastScrollLeft=T.scrollLeft}function p(y){e.scrollY&&(e.scrollWithAnimation?b(y,"y"):o.value.scrollTop=y)}function g(y){e.scrollX&&(e.scrollWithAnimation?b(y,"x"):o.value.scrollLeft=y)}function c(y){if(y){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(y)){console.error("id error: scroll-into-view=".concat(y));return}var T=n.value.querySelector("#"+y);if(T){var E=o.value.getBoundingClientRect(),O=T.getBoundingClientRect();if(e.scrollX){var N=O.left-E.left,R=o.value.scrollLeft,V=R+N;e.scrollWithAnimation?b(V,"x"):o.value.scrollLeft=V}if(e.scrollY){var ue=O.top-E.top,M=o.value.scrollTop,B=M+ue;e.scrollWithAnimation?b(B,"y"):o.value.scrollTop=B}}}}function h(y,T){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var E=o.value;T==="x"?(E.style.overflowX=e.scrollX?"auto":"hidden",E.scrollLeft=y):T==="y"&&(E.style.overflowY=e.scrollY?"auto":"hidden",E.scrollTop=y),s.value.removeEventListener("transitionend",m),s.value.removeEventListener("webkitTransitionEnd",m)}function w(y){switch(y){case"refreshing":t.refresherHeight=e.refresherThreshold,l||(l=!0,a("refresherrefresh",{},{}),u("update:refresherTriggered",!0));break;case"restore":case"refresherabort":l=!1,t.refresherHeight=f=0,y==="restore"&&(v=!1,a("refresherrestore",{},{})),y==="refresherabort"&&v&&(v=!1,a("refresherabort",{},{}));break}t.refreshState=y}Re(()=>{Vr(()=>{p(r.value),g(i.value)}),c(e.scrollIntoView);var y=function(V){V.preventDefault(),V.stopPropagation(),x(V)},T={x:0,y:0},E=null,O=function(V){if(T!==null){var ue=V.touches[0].pageX,M=V.touches[0].pageY,B=o.value;if(Math.abs(ue-T.x)>Math.abs(M-T.y))if(e.scrollX){if(B.scrollLeft===0&&ue>T.x){E=!1;return}else if(B.scrollWidth===B.offsetWidth+B.scrollLeft&&ue<T.x){E=!1;return}E=!0}else E=!1;else if(e.scrollY)if(B.scrollTop===0&&M>T.y)E=!1,e.refresherEnabled&&V.cancelable!==!1&&V.preventDefault();else if(B.scrollHeight===B.offsetHeight+B.scrollTop&&M<T.y){E=!1;return}else E=!0;else E=!1;if(E&&V.stopPropagation(),B.scrollTop===0&&V.touches.length===1&&(t.refreshState="pulling"),e.refresherEnabled&&t.refreshState==="pulling"){var Q=M-T.y;f===0&&(f=M),l?(t.refresherHeight=Q+e.refresherThreshold,v=!1):(t.refresherHeight=M-f,t.refresherHeight>0&&(v=!0,a("refresherpulling",V,{deltaY:Q})));var te=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(te>1?1:te)*360}}},N=function(V){V.touches.length===1&&(ar({disable:!0}),T={x:V.touches[0].pageX,y:V.touches[0].pageY})},R=function(V){T=null,ar({disable:!1}),t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort")};o.value.addEventListener("touchstart",N,hh),o.value.addEventListener("touchmove",O,_i(!1)),o.value.addEventListener("scroll",y,_i(!1)),o.value.addEventListener("touchend",R,hh),Un(),Ce(()=>{o.value.removeEventListener("touchstart",N),o.value.removeEventListener("touchmove",O),o.value.removeEventListener("scroll",y),o.value.removeEventListener("touchend",R)})}),fs(()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)}),H(r,y=>{p(y)}),H(i,y=>{g(y)}),H(()=>e.scrollIntoView,y=>{c(y)}),H(()=>e.refresherTriggered,y=>{y===!0?w("refreshing"):y===!1&&w("restore")})}var RS={name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},LS=ge({name:"Slider",props:RS,emits:["changing","change"],setup(e,t){var{emit:r}=t,i=U(null),a=U(null),n=U(null),o=U(Number(e.value));H(()=>e.value,v=>{o.value=Number(v)});var s=Pe(i,r),u=PS(e,o),{_onClick:l,_onTrack:f}=NS(e,o,i,a,s);return Re(()=>{Hn(n.value,f)}),()=>{var{setBgColor:v,setBlockBg:m,setActiveColor:d,setBlockStyle:_}=u;return I("uni-slider",{ref:i,onClick:Ar(l)},[I("div",{class:"uni-slider-wrapper"},[I("div",{class:"uni-slider-tap-area"},[I("div",{style:v.value,class:"uni-slider-handle-wrapper"},[I("div",{ref:n,style:m.value,class:"uni-slider-handle"},null,4),I("div",{style:_.value,class:"uni-slider-thumb"},null,4),I("div",{style:d.value,class:"uni-slider-track"},null,4)],4)]),ki(I("span",{ref:a,class:"uni-slider-value"},[o.value],512),[[Pi,e.showValue]])]),I("slot",null,null)],8,["onClick"])}}});function PS(e,t){var r=()=>{var o=Number(e.max),s=Number(e.min);return 100*(t.value-s)/(o-s)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",a=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",n={setBgColor:ee(()=>({backgroundColor:i()})),setBlockBg:ee(()=>({left:r()})),setActiveColor:ee(()=>({backgroundColor:a(),width:r()})),setBlockStyle:ee(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return n}function NS(e,t,r,i,a){var n=v=>{e.disabled||(s(v),a("change",v,{value:t.value}))},o=v=>{var m=Number(e.max),d=Number(e.min),_=Number(e.step);return v<d?d:v>m?m:DS.mul.call(Math.round((v-d)/_),_)+d},s=v=>{var m=Number(e.max),d=Number(e.min),_=i.value,b=getComputedStyle(_,null).marginLeft,x=_.offsetWidth;x=x+parseInt(b);var p=r.value,g=p.offsetWidth-(e.showValue?x:0),c=p.getBoundingClientRect().left,h=(v.x-c)*(m-d)/g+d;t.value=o(h)},u=v=>{if(!e.disabled)return v.detail.state==="move"?(s({x:v.detail.x}),a("changing",v,{value:t.value}),!1):v.detail.state==="end"&&a("change",v,{value:t.value})},l=_e(At,!1);if(l){var f={reset:()=>t.value=Number(e.min),submit:()=>{var v=["",null];return e.name!==""&&(v[0]=e.name,v[1]=t.value),v}};l.addField(f),Ce(()=>{l.removeField(f)})}return{_onClick:n,_onTrack:u}}var DS={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch(a){}try{t+=i.split(".")[1].length}catch(a){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},BS={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function $S(e){var t=ee(()=>{var n=Number(e.interval);return isNaN(n)?5e3:n}),r=ee(()=>{var n=Number(e.duration);return isNaN(n)?500:n}),i=ee(()=>{var n=Math.round(e.displayMultipleItems);return isNaN(n)?1:n}),a=Ae({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return a}function FS(e,t,r,i,a,n){function o(){s&&(clearTimeout(s),s=null)}var s=null,u=!0,l=0,f=1,v=null,m=!1,d=0,_,b="",x,p=ee(()=>e.circular&&r.value.length>t.displayMultipleItems);function g(M){if(!u)for(var B=r.value,Q=B.length,te=M+t.displayMultipleItems,W=0;W<Q;W++){var G=B[W],ae=Math.floor(M/Q)*Q+W,Se=ae+Q,se=ae-Q,K=Math.max(M-(ae+1),ae-te,0),ie=Math.max(M-(Se+1),Se-te,0),le=Math.max(M-(se+1),se-te,0),Ie=Math.min(K,ie,le),ke=[ae,Se,se][[K,ie,le].indexOf(Ie)];G.updatePosition(ke,e.vertical)}}function c(M){Math.floor(2*l)===Math.floor(2*M)&&Math.ceil(2*l)===Math.ceil(2*M)||p.value&&g(M);var B=e.vertical?"0":100*-M*f+"%",Q=e.vertical?100*-M*f+"%":"0",te="translate("+B+", "+Q+") translateZ(0)",W=i.value;if(W&&(W.style.webkitTransform=te,W.style.transform=te),l=M,!_){if(M%1==0)return;_=M}M-=Math.floor(_);var G=r.value;M<=-(G.length-1)?M+=G.length:M>=G.length&&(M-=G.length),M=_%1>.5||_<0?M-1:M,n("transition",{},{dx:e.vertical?0:M*W.offsetWidth,dy:e.vertical?M*W.offsetHeight:0})}function h(){v&&(c(v.toPos),v=null)}function w(M){var B=r.value.length;if(!B)return-1;var Q=(Math.round(M)%B+B)%B;if(p.value){if(B<=t.displayMultipleItems)return 0}else if(Q>B-t.displayMultipleItems)return B-t.displayMultipleItems;return Q}function y(){v=null}function T(){if(!v){m=!1;return}var M=v,B=M.toPos,Q=M.acc,te=M.endTime,W=M.source,G=te-Date.now();if(G<=0){c(B),v=null,m=!1,_=null;var ae=r.value[t.current];if(ae){var Se=ae.getItemId();n("animationfinish",{},{current:t.current,currentItemId:Se,source:W})}return}var se=Q*G*G/2,K=B+se;c(K),x=requestAnimationFrame(T)}function E(M,B,Q){y();var te=t.duration,W=r.value.length,G=l;if(p.value)if(Q<0){for(;G<M;)G+=W;for(;G-W>M;)G-=W}else if(Q>0){for(;G>M;)G-=W;for(;G+W<M;)G+=W;G+W-M<M-G&&(G+=W)}else{for(;G+W<M;)G+=W;for(;G-W>M;)G-=W;G+W-M<M-G&&(G+=W)}v={toPos:M,acc:2*(G-M)/(te*te),endTime:Date.now()+te,source:B},m||(m=!0,x=requestAnimationFrame(T))}function O(){o();var M=r.value,B=function(){s=null,b="autoplay",p.value?t.current=w(t.current+1):t.current=t.current+t.displayMultipleItems<M.length?t.current+1:0,E(t.current,"autoplay",p.value?1:0),s=setTimeout(B,t.interval)};u||M.length<=t.displayMultipleItems||(s=setTimeout(B,t.interval))}function N(){o(),h();for(var M=r.value,B=0;B<M.length;B++)M[B].updatePosition(B,e.vertical);f=1;var Q=i.value;if(t.displayMultipleItems===1&&M.length){var te=M[0].getBoundingClientRect(),W=Q.getBoundingClientRect();f=te.width/W.width,f>0&&f<1||(f=1)}var G=l;l=-2;var ae=t.current;ae>=0?(u=!1,t.userTracking?(c(G+ae-d),d=ae):(c(ae),e.autoplay&&O())):(u=!0,c(-t.displayMultipleItems-1))}H([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var M=-1;if(e.currentItemId)for(var B=0,Q=r.value;B<Q.length;B++){var te=Q[B].getItemId();if(te===e.currentItemId){M=B;break}}M<0&&(M=Math.round(e.current)||0),M=M<0?0:M,t.current!==M&&(b="",t.current=M)}),H([()=>e.vertical,()=>p.value,()=>t.displayMultipleItems,()=>[...r.value]],N),H(()=>t.interval,()=>{s&&(o(),O())});function R(M,B){var Q=b;b="";var te=r.value;if(!Q){var W=te.length;E(M,"",p.value&&B+(W-M)%W>W/2?1:0)}var G=te[M];if(G){var ae=t.currentItemId=G.getItemId();n("change",{},{current:t.current,currentItemId:ae,source:Q})}}H(()=>t.current,(M,B)=>{R(M,B),a("update:current",M)}),H(()=>t.currentItemId,M=>{a("update:currentItemId",M)});function V(M){M?O():o()}H(()=>e.autoplay&&!t.userTracking,V),V(e.autoplay&&!t.userTracking),Re(()=>{var M=!1,B=0,Q=0;function te(){o(),d=l,B=0,Q=Date.now(),y()}function W(ae){var Se=Q;Q=Date.now();var se=r.value.length,K=se-t.displayMultipleItems;function ie(nt){return .5-.25/(nt+.5)}function le(nt,nr){var Ne=d+nt;B=.6*B+.4*nr,p.value||(Ne<0||Ne>K)&&(Ne<0?Ne=-ie(-Ne):Ne>K&&(Ne=K+ie(Ne-K)),B=0),c(Ne)}var Ie=Q-Se||1,ke=i.value;e.vertical?le(-ae.dy/ke.offsetHeight,-ae.ddy/Ie):le(-ae.dx/ke.offsetWidth,-ae.ddx/Ie)}function G(ae){t.userTracking=!1;var Se=B/Math.abs(B),se=0;!ae&&Math.abs(B)>.2&&(se=.5*Se);var K=w(l+se);ae?c(d):(b="touch",t.current=K,E(K,"touch",se!==0?se:K===0&&p.value&&l>=1?1:0))}Hn(i.value,ae=>{if(!e.disableTouch&&!u){if(ae.detail.state==="start")return t.userTracking=!0,M=!1,te();if(ae.detail.state==="end")return G(!1);if(ae.detail.state==="cancel")return G(!0);if(t.userTracking){if(!M){M=!0;var Se=Math.abs(ae.detail.dx),se=Math.abs(ae.detail.dy);if((Se>=se&&e.vertical||Se<=se&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&O();return}}return W(ae.detail),!1}}})}),Yt(()=>{o(),cancelAnimationFrame(x)});function ue(M){E(t.current=M,b="click",p.value?1:0)}return{onSwiperDotClick:ue}}var zS=ge({name:"Swiper",props:BS,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:r,emit:i}=t,a=U(null),n=Pe(a,i),o=U(null),s=U(null),u=$S(e),l=ee(()=>{var g={};return(e.nextMargin||e.previousMargin)&&(g=e.vertical?{left:0,right:0,top:_r(e.previousMargin,!0),bottom:_r(e.nextMargin,!0)}:{top:0,bottom:0,left:_r(e.previousMargin,!0),right:_r(e.nextMargin,!0)}),g}),f=ee(()=>{var g=Math.abs(100/u.displayMultipleItems)+"%";return{width:e.vertical?"100%":g,height:e.vertical?g:"100%"}}),v=[],m=[],d=U([]);function _(){for(var g=[],c=function(w){var y=v[w];y instanceof Element||(y=y.el);var T=m.find(E=>y===E.rootRef.value);T&&g.push(Za(T))},h=0;h<v.length;h++)c(h);d.value=g}aa(()=>{v=s.value.children,_()});var b=function(g){m.push(g),_()};Fe("addSwiperContext",b);var x=function(g){var c=m.indexOf(g);c>=0&&(m.splice(c,1),_())};Fe("removeSwiperContext",x);var{onSwiperDotClick:p}=FS(e,u,d,s,i,n);return()=>{var g=r.default&&r.default();return v=xl(g),I("uni-swiper",{ref:a},[I("div",{ref:o,class:"uni-swiper-wrapper"},[I("div",{class:"uni-swiper-slides",style:l.value},[I("div",{ref:s,class:"uni-swiper-slide-frame",style:f.value},[g],4)],4),e.indicatorDots&&I("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[d.value.map((c,h,w)=>I("div",{onClick:()=>p(h),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":h<u.current+u.displayMultipleItems&&h>=u.current||h<u.current+u.displayMultipleItems-w.length},style:{background:h===u.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2)],512)],512)}}}),US={itemId:{type:String,default:""}},HS=ge({name:"SwiperItem",props:US,setup(e,t){var{slots:r}=t,i=U(null),a={rootRef:i,getItemId(){return e.itemId},getBoundingClientRect(){var n=i.value;return n.getBoundingClientRect()},updatePosition(n,o){var s=o?"0":100*n+"%",u=o?100*n+"%":"0",l=i.value,f="translate(".concat(s,",").concat(u,") translateZ(0)");l&&(l.style.webkitTransform=f,l.style.transform=f)}};return Re(()=>{var n=_e("addSwiperContext");n&&n(a)}),Yt(()=>{var n=_e("removeSwiperContext");n&&n(a)}),()=>I("uni-swiper-item",{ref:i,style:{position:"absolute",width:"100%",height:"100%"}},[r.default&&r.default()],512)}}),WS={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},VS=ge({name:"Switch",props:WS,emits:["change"],setup(e,t){var{emit:r}=t,i=U(null),a=U(e.checked),n=jS(e,a),o=Pe(i,r);H(()=>e.checked,u=>{a.value=u});var s=u=>{e.disabled||(a.value=!a.value,o("change",u,{value:a.value}))};return n&&(n.addHandler(s),Ce(()=>{n.removeHandler(s)})),Pn(e,{"label-click":s}),()=>{var{color:u,type:l}=e,f=ai(e,"disabled");return I("uni-switch",et({ref:i},f,{onClick:s}),[I("div",{class:"uni-switch-wrapper"},[ki(I("div",{class:["uni-switch-input",[a.value?"uni-switch-input-checked":""]],style:{backgroundColor:a.value?u:"#DFDFDF",borderColor:a.value?u:"#DFDFDF"}},null,6),[[Pi,l==="switch"]]),ki(I("div",{class:"uni-checkbox-input"},[a.value?gn(hn,e.color,22):""],512),[[Pi,l==="checkbox"]])])],16,["onClick"])}}});function jS(e,t){var r=_e(At,!1),i=_e(Qi,!1),a={submit:()=>{var n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};return r&&(r.addField(a),Yt(()=>{r.removeField(a)})),i}var sa={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function YS(e,t){return e.replace(/\\n/g,mi).split(mi).map(r=>qS(r,t))}function qS(e,t){var{space:r,decode:i}=t;return!e||(r&&sa[r]&&(e=e.replace(/ /g,sa[r])),!i)?e:e.replace(/&nbsp;/g,sa.nbsp).replace(/&ensp;/g,sa.ensp).replace(/&emsp;/g,sa.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")}var XS=ve({},Zd,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}}),Tl=!1;function ZS(){var e="(prefers-color-scheme: dark)";Tl=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var KS=ge({name:"Textarea",props:XS,emit:["confirm","linechange",...Kd],setup(e,t){var{emit:r}=t,i=U(null),{fieldRef:a,state:n,scopedAttrsState:o,fixDisabledColor:s,trigger:u}=Gd(e,i,r),l=ee(()=>n.value.split(mi)),f=ee(()=>["done","go","next","search","send"].includes(e.confirmType)),v=U(0),m=U(null);H(()=>v.value,p=>{var g=i.value,c=m.value,h=parseFloat(getComputedStyle(g).lineHeight);isNaN(h)&&(h=c.offsetHeight);var w=Math.round(p/h);u("linechange",{},{height:p,heightRpx:750/window.innerWidth*p,lineCount:w}),e.autoHeight&&(g.style.height=p+"px")});function d(p){var{height:g}=p;v.value=g}function _(p){u("confirm",p,{value:n.value})}function b(p){p.key==="Enter"&&f.value&&p.preventDefault()}function x(p){if(p.key==="Enter"&&f.value){_(p);var g=p.target;!e.confirmHold&&g.blur()}}return ZS(),()=>{var p=e.disabled&&s?I("textarea",{ref:a,value:n.value,tabindex:"-1",readonly:!!e.disabled,maxlength:n.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tl},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:g=>g.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):I("textarea",{ref:a,value:n.value,disabled:!!e.disabled,maxlength:n.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tl},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:b,onKeyup:x},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return I("uni-textarea",{ref:i},[I("div",{class:"uni-textarea-wrapper"},[ki(I("div",et(o.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Pi,!n.value.length]]),I("div",{ref:m,class:"uni-textarea-line"},[" "],512),I("div",{class:"uni-textarea-compute"},[l.value.map(g=>I("div",null,[g.trim()?g:"."])),I(Ir,{initial:!0,onResize:d},null,8,["initial","onResize"])]),e.confirmType==="search"?I("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[p],40,["onSubmit"]):p])],512)}}});ve({},_x);function jn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function gh(e,t,r){!e||bt(r||Xt(),e,(i,a)=>{var{type:n,data:o}=i;t(n,o,a)})}function ph(e,t){!e||M0(t||Xt(),e)}function Yn(e,t,r,i){var a=Pt(),n=a.proxy;Re(()=>{gh(t||jn(n),e,i),(r||!t)&&H(()=>n.id,(o,s)=>{gh(jn(n,o),e,i),ph(s&&jn(n,s))})}),Ce(()=>{ph(t||jn(n),i)})}var GS=0;function qn(e){var t=pn(),r=Pt(),i=r.proxy,a=i.$options.name.toLowerCase(),n=e||i.id||"context".concat(GS++);return Re(()=>{var o=i.$el;o.__uniContextInfo={id:n,type:a,page:t}}),"".concat(a,".").concat(n)}function JS(e){return e.__uniContextInfo}class mh extends Ed{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...Ln.props,...o])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!!this.$animate){if(t)return this.call(Ln.mounted);this.$animate&&(this.$animate=!1,this.call(Ln.watch.animation.handler))}}}var QS=["space","decode"];class eE extends mh{constructor(t,r,i,a){super(t,document.createElement("uni-text"),r,i,a,QS);this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update()}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{$props:{space:r,decode:i}}=this;this.$.textContent=YS(this._text,{space:r,decode:i}).join(mi),super.update(t)}}class tE extends ii{constructor(t,r,i,a){super(t,"#text",r,document.createTextNode(""));this.init(a),this.insert(r,i)}}var KT="",rE=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class iE extends mh{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...rE,...o])}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new aE(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class aE{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class nE extends iE{constructor(t,r,i,a){super(t,document.createElement("uni-view"),r,i,a)}}function _h(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function bh(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?Ou+_h():0}var wh=Symbol("onDraw");function oE(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function Cl(e,t){return ee(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var a=e[i];a=i==="src"?vt(a):a,r[i.replace(/[A-Z]/g,n=>"-"+n.toLowerCase())]=a}}),r})}function la(e){var t=Ae({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=U(!1);function i(){var v=e.value,m=v.getBoundingClientRect(),d=["width","height"];r.value=m.width===0||m.height===0,r.value||(t.position=oE(v)?"absolute":"static",d.push("top","left")),d.forEach(_=>{var b=m[_];b=_==="top"?b+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:bh()):b,t[_]=b+"px"})}var a=null;function n(){a&&cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=null,i()})}window.addEventListener("updateview",n);var o=[],s=[];function u(v){s?s.push(v):v()}function l(v){var m=_e(wh),d=_=>{v(_),o.forEach(b=>b(t)),o=null};u(()=>{m?m(d):d({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var f=function(v){o?o.push(v):v(t)};return Fe(wh,f),Re(()=>{i(),s.forEach(v=>v()),s=null}),Ce(()=>{window.removeEventListener("updateview",n)}),{position:t,hidden:r,onParentReady:l}}var sE=ge({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var{emit:r}=t,i=U(null),a=U(null),n=Pe(i,r),o=Cl(e,["id"]),{position:s,onParentReady:u}=la(a),l;return u(()=>{l=plus.ad.createAdView(Object.assign({},o.value,s)),plus.webview.currentWebview().append(l),l.setDislikeListener(v=>{a.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),n("close",{},v)}),l.setRenderingListener(v=>{v.result===0?(a.value.style.height=v.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):n("error",{},{errCode:v.result})}),l.setAdClickedListener(()=>{n("adclicked",{},{})}),H(()=>s,v=>l.setStyle(v),{deep:!0}),H(()=>e.adpid,v=>{v&&f()}),H(()=>e.data,v=>{v&&l.renderingBind(v)});function f(){var v={adpid:e.adpid,width:s.width,count:e.dataCount};e.channel!==void 0&&(v.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",v,m=>{var{code:d,data:_,message:b}=m;d===0?l.renderingBind(_):n("error",{},{errMsg:b})})}e.adpid&&f()}),Ce(()=>{l&&l.close()}),()=>I("uni-ad",{ref:i},[I("div",{ref:a,class:"uni-ad-container"},null,512)],512)}});class we extends ii{constructor(t,r,i,a,n,o,s){super(t,r,a);var u=document.createElement("div");u.__vueParent=lE(this),this.$props=Ae({}),this.init(o),this.$app=vc(_T(i,this.$props)),this.$app.mount(u),this.$=u.firstElementChild,s&&(this.$holder=this.$.querySelector(s)),re(o,"t")&&this.setText(o.t||""),o.a&&re(o.a,Na)&&hl(this.$,o.a[Na]),this.insert(a,n),Ef()}init(t){var{a:r,e:i,w:a}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(n=>{this.setAttr(n,r[n])})),re(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(n=>{this.addEvent(n,i[n])}),a&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t}addWxsEvent(t,r,i){this.$props[t]=Sd(this.$,r,i)}addEvent(t,r){this.$props[t]=xd(this.id,r,Po(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===Na)this.$&&hl(this.$,r);else if(t===Ru)this.$.__ownerId=r;else if(t===Lu)rr(()=>dd(this,r),fd);else if(t===Do){var i=dl(this.$||at(this.pid).$,r),a=this.$props.style;mt(i)&&mt(a)?Object.keys(i).forEach(n=>{a[n]=i[n]}):this.$props.style=i}else Rn(t)?this.$.style.setProperty(t,r):(r=dl(this.$||at(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r))}removeAttr(t){Rn(t)?this.$.style.removeProperty(t):this.$props[t]=null}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),Ah(this.id),this.removeUniChildren()}appendChild(t){return(this.$holder||this.$).appendChild(t)}insertBefore(t,r){return(this.$holder||this.$).insertBefore(t,r)}}class ua extends we{constructor(t,r,i,a,n,o,s){super(t,r,i,a,n,o,s)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return rr(this.getRebuildFn(),sl),super.setText(t)}appendChild(t){return rr(this.getRebuildFn(),sl),super.appendChild(t)}insertBefore(t,r){return rr(this.getRebuildFn(),sl),super.insertBefore(t,r)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function lE(e){for(;e&&e.pid>0;)if(e=at(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function Ol(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}var uE=["value","modelValue"];function xh(e){uE.forEach(t=>{if(re(e,t)){var r="onUpdate:"+t;re(e,r)||(e[r]=i=>e[t]=i)}})}class fE extends we{constructor(t,r,i,a){super(t,"uni-ad",sE,r,i,a)}}var GT="";class cE extends we{constructor(t,r,i,a){super(t,"uni-button",Ox,r,i,a)}}class oi extends ii{constructor(t,r,i,a){super(t,r,i);this.insert(i,a)}}class vE extends oi{constructor(t,r,i){super(t,"uni-camera",r,i)}}var JT="";class dE extends we{constructor(t,r,i,a){super(t,"uni-canvas",Nx,r,i,a,"uni-canvas > div")}}var QT="";class hE extends we{constructor(t,r,i,a){super(t,"uni-checkbox",Hx,r,i,a,".uni-checkbox-wrapper")}setText(t){Ol(this.$holder,"uni-checkbox-input",t)}}var e2="";class gE extends we{constructor(t,r,i,a){super(t,"uni-checkbox-group",Fx,r,i,a)}}var t2="",pE=0;function yh(e,t,r){var{position:i,hidden:a,onParentReady:n}=la(e),o,s;n(u=>{var l=ee(()=>{var c={};for(var h in i){var w=i[h],y=parseFloat(w),T=parseFloat(u[h]);if(h==="top"||h==="left")w=Math.max(y,T)+"px";else if(h==="width"||h==="height"){var E=h==="width"?"left":"top",O=parseFloat(u[E]),N=parseFloat(i[E]),R=Math.max(O-N,0),V=Math.max(N+y-(O+T),0);w=Math.max(y-R-V,0)+"px"}c[h]=w}return c}),f=["borderRadius","borderColor","borderWidth","backgroundColor"],v=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],m=[],d={start:"left",end:"right"};function _(c){var h=getComputedStyle(e.value);return f.concat(v,m).forEach(w=>{c[w]=h[w]}),c}var b=Ae(_({})),x=null;s=function(){x&&cancelAnimationFrame(x),x=requestAnimationFrame(()=>{x=null,_(b)})},window.addEventListener("updateview",s);function p(){var c={};for(var h in c){var w=c[h];(h==="top"||h==="left")&&(w=Math.min(parseFloat(w)-parseFloat(u[h]),0)+"px"),c[h]=w}return c}var g=ee(()=>{var c=p(),h=[{tag:"rect",position:c,rectStyles:{color:b.backgroundColor,radius:b.borderRadius,borderColor:b.borderColor,borderWidth:b.borderWidth}}];if("src"in r)r.src&&h.push({tag:"img",position:c,src:r.src});else{var w=parseFloat(b.lineHeight)-parseFloat(b.fontSize),y=parseFloat(c.width)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight);y=y<0?0:y;var T=parseFloat(c.height)-parseFloat(b.paddingTop)-w/2-parseFloat(b.paddingBottom);T=T<0?0:T,h.push({tag:"font",position:{top:"".concat(parseFloat(c.top)+parseFloat(b.paddingTop)+w/2,"px"),left:"".concat(parseFloat(c.left)+parseFloat(b.paddingLeft),"px"),width:"".concat(y,"px"),height:"".concat(T,"px")},textStyles:{align:d[b.textAlign]||b.textAlign,color:b.color,decoration:"none",lineSpacing:"".concat(w,"px"),margin:"0px",overflow:b.textOverflow,size:b.fontSize,verticalAlign:"top",weight:b.fontWeight,whiteSpace:b.whiteSpace},text:r.text})}return h});o=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(pE++),l.value,g.value),plus.webview.currentWebview().append(o),a.value&&o.hide(),o.addEventListener("click",()=>{t("click",{},{})}),H(()=>a.value,c=>{o[c?"hide":"show"]()}),H(()=>l.value,c=>{o.setStyle(c)},{deep:!0}),H(()=>g.value,()=>{o.reset(),o.draw(g.value)},{deep:!0})}),Ce(()=>{o&&o.close(),s&&window.removeEventListener("updateview",s)})}var mE="_doc/uniapp_temp/",_E={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function bE(e,t,r){var i=U(""),a;function n(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var s=e.src?vt(e.src):"";s.indexOf("http://")===0||s.indexOf("https://")===0?(a=plus.downloader.createDownload(s,{filename:mE+"/download/"},(u,l)=>{l===200?o(u.filename):r("error",{},{errMsg:"error"})}),a.start()):s&&o(s)}function o(s){t.src=s,plus.io.getImageInfo({src:s,success:u=>{var{width:l,height:f}=u;e.autoSize&&(i.value="width:".concat(l,"px;height:").concat(f,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:l,height:f})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&n(),H(()=>e.src,n),Ce(()=>{a&&a.abort()}),i}var Sh=ge({name:"CoverImage",props:_E,emits:["click","load","error"],setup(e,t){var{emit:r}=t,i=U(null),a=Pe(i,r),n=Ae({src:""}),o=bE(e,n,a);return yh(i,a,n),()=>I("uni-cover-image",{ref:i,style:o.value},[I("div",{class:"uni-cover-image"},null)],4)}});class wE extends we{constructor(t,r,i,a){super(t,"uni-cover-image",Sh,r,i,a)}}var r2="",xE=ge({name:"CoverView",emits:["click"],setup(e,t){var{emit:r}=t,i=U(null),a=U(null),n=Pe(i,r),o=Ae({text:""});return yh(i,n,o),aa(()=>{var s=a.value.childNodes[0];o.text=s&&s instanceof Text?s.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))}),()=>I("uni-cover-view",{ref:i},[I("div",{ref:a,class:"uni-cover-view"},null,512)],512)}});class yE extends ua{constructor(t,r,i,a){super(t,"uni-cover-view",xE,r,i,a,".uni-cover-view")}}var i2="";class SE extends we{constructor(t,r,i,a){super(t,"uni-editor",dy,r,i,a)}}var a2="";class EE extends we{constructor(t,r,i,a){super(t,"uni-form",xx,r,i,a,"span")}}class TE extends oi{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var n2="";class CE extends we{constructor(t,r,i,a){super(t,"uni-icon",my,r,i,a)}}var o2="";class OE extends we{constructor(t,r,i,a){super(t,"uni-image",wy,r,i,a)}}var s2="";class AE extends we{constructor(t,r,i,a){super(t,"uni-input",zy,r,i,a)}init(t){super.init(t),xh(this.$props)}}var l2="";class IE extends we{constructor(t,r,i,a){super(t,"uni-label",Ex,r,i,a)}}class kE extends oi{constructor(t,r,i){super(t,"uni-live-player",r,i)}}class ME extends oi{constructor(t,r,i){super(t,"uni-live-pusher",r,i)}}var u2="",RE=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function Al(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.substr(7,2);return{color:e.substr(0,7),opacity:t?Number("0x"+t)/255:1}}var LE={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},PE=ge({name:"Map",props:LE,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var{emit:r}=t,i=U(null),a=Pe(i,r),n=U(null),o=Cl(e,["id"]),{position:s,hidden:u,onParentReady:l}=la(n),f,{_addMarkers:v,_addMapLines:m,_addMapCircles:d,_setMap:_}=NE(e,a);l(()=>{f=ve(plus.maps.create(Xt()+"-map-"+(e.id||Date.now()),Object.assign({},o.value,s,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[]}),f.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(f),u.value&&f.hide(),f.onclick=x=>{a("click",{},x)},f.onstatuschanged=x=>{a("regionchange",{},{})},_(f),v(e.markers),m(e.polyline),d(e.circles),H(()=>o.value,x=>f&&f.setStyles(x),{deep:!0}),H(()=>s,x=>f&&f.setStyles(x),{deep:!0}),H(u,x=>{f&&f[x?"hide":"show"]()}),H(()=>e.scale,x=>{f&&f.setZoom(parseInt(String(x)))}),H([()=>e.latitude,()=>e.longitude],x=>{var[p,g]=x;f&&f.setStyles({center:new plus.maps.Point(Number(p),Number(g))})}),H(()=>e.markers,x=>{v(x,!0)},{deep:!0}),H(()=>e.polyline,x=>{m(x)},{deep:!0}),H(()=>e.circles,x=>{d(x)},{deep:!0})});var b=ee(()=>e.controls.map(x=>{var p={position:"absolute"};return["top","left","width","height"].forEach(g=>{x.position[g]&&(p[g]=x.position[g]+"px")}),{id:x.id,iconPath:vt(x.iconPath),position:p,clickable:x.clickable}}));return Ce(()=>{f&&(f.close(),_(null))}),()=>I("uni-map",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-map-container"},null,512),b.value.map((x,p)=>I(Sh,{key:p,src:x.iconPath,style:x.position,"auto-size":!0,onClick:()=>x.clickable&&a("controltap",{},{controlId:x.id})},null,8,["src","style","auto-size","onClick"])),I("div",{class:"uni-map-slot"},null)],8,["id"])}});function NE(e,t){var r;function i(d){var{longitude:_,latitude:b}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};!r||(r.setCenter(new plus.maps.Point(Number(_||e.longitude),Number(b||e.latitude))),d({errMsg:"moveToLocation:ok"}))}function a(d){!r||r.getCurrentCenter((_,b)=>{d({longitude:b.getLng(),latitude:b.getLat(),errMsg:"getCenterLocation:ok"})})}function n(d){if(!!r){var _=r.getBounds();d({southwest:_.getSouthWest(),northeast:_.getNorthEast(),errMsg:"getRegion:ok"})}}function o(d){!r||d({scale:r.getZoom(),errMsg:"getScale:ok"})}function s(d){if(!!r){var{id:_,latitude:b,longitude:x,iconPath:p,callout:g,label:c}=d;RE(x,b,h=>{var w,{latitude:y,longitude:T}=h.coord,E=new plus.maps.Marker(new plus.maps.Point(T,y));p&&E.setIcon(vt(p)),c&&c.content&&E.setLabel(c.content);var O=void 0;g&&g.content&&(O=new plus.maps.Bubble(g.content)),O&&E.setBubble(O),(_||_===0)&&(E.onclick=N=>{t("markertap",{},{markerId:_})},O&&(O.onclick=()=>{t("callouttap",{},{markerId:_})})),(w=r)===null||w===void 0||w.addOverlay(E),r.__markers__.push(E)})}}function u(){if(!!r){var d=r.__markers__;d.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__markers__=[]}}function l(d,_){_&&u(),d.forEach(b=>{s(b)})}function f(d){!r||(r.__lines__.length>0&&(r.__lines__.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__lines__=[]),d.forEach(_=>{var b,{color:x,width:p}=_,g=_.points.map(w=>new plus.maps.Point(w.longitude,w.latitude)),c=new plus.maps.Polyline(g);if(x){var h=Al(x);c.setStrokeColor(h.color),c.setStrokeOpacity(h.opacity)}p&&c.setLineWidth(p),(b=r)===null||b===void 0||b.addOverlay(c),r.__lines__.push(c)}))}function v(d){!r||(r.__circles__.length>0&&(r.__circles__.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__circles__=[]),d.forEach(_=>{var b,{latitude:x,longitude:p,color:g,fillColor:c,radius:h,strokeWidth:w}=_,y=new plus.maps.Circle(new plus.maps.Point(p,x),h);if(g){var T=Al(g);y.setStrokeColor(T.color),y.setStrokeOpacity(T.opacity)}if(c){var E=Al(c);y.setFillColor(E.color),y.setFillOpacity(E.opacity)}w&&y.setLineWidth(w),(b=r)===null||b===void 0||b.addOverlay(y),r.__circles__.push(y)}))}var m={moveToLocation:i,getCenterLocation:a,getRegion:n,getScale:o};return Yn((d,_,b)=>{m[d]&&m[d](b,_)},qn(),!0),{_addMarkers:l,_addMapLines:f,_addMapCircles:v,_setMap(d){r=d}}}class DE extends we{constructor(t,r,i,a){super(t,"uni-map",PE,r,i,a,".uni-map-slot")}}var f2="";class BE extends ua{constructor(t,r,i,a){super(t,"uni-movable-area",jy,r,i,a)}}var c2="";class $E extends we{constructor(t,r,i,a){super(t,"uni-movable-view",Xy,r,i,a)}}var v2="";class FE extends we{constructor(t,r,i,a){super(t,"uni-navigator",Qy,r,i,a,"uni-navigator")}}class zE extends oi{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class UE extends oi{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var si,Eh,li;function Th(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function Ch(){return si.webview.currentWebview().id}var Xn,Il,kl={};function Ml(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=kl[r];i&&i(t),t.keep||delete kl[r]}}function HE(e,t){Th()==="v8"?li?(Xn&&Xn.close(),Xn=new li(Ch()),Xn.onmessage=Ml):Il||(Il=Eh.requireModule("globalEvent"),Il.addEventListener("plusMessage",Ml)):window.__plusMessage=Ml,kl[e]=t}class WE{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(li){var a=new li(i);a.postMessage(r)}else si.webview.postMessageToUniNView&&si.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function VE(e){var{context:t={},url:r,data:i={},style:a={},onMessage:n,onClose:o}=e;si=t.plus||plus,Eh=t.weex||(typeof weex=="object"?weex:null),li=t.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var s={autoBackButton:!0,titleSize:"17px"},u="page".concat(Date.now());a=ve({},a),a.titleNView!==!1&&a.titleNView!=="none"&&(a.titleNView=ve(s,a.titleNView));var l={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"".concat(typeof process=="object"&&process.env&&{}.VUE_APP_TEMPLATE_PATH||"","/").concat(r,".js"),defaultFontSize:16,viewport:si.screen.resolutionWidth}};a=ve(l,a);var f=si.webview.create("",u,a,{extras:{from:Ch(),runtime:Th(),data:i,useGlobalEvent:!li}});return f.addEventListener("close",o),HE(u,v=>{typeof n=="function"&&n(v.data),v.keep||f.close("auto")}),f.show(a.animationType,a.animationDuration),new WE(f)}var Oe={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},ui={YEAR:"year",MONTH:"month",DAY:"day"};function Zn(e){return e>9?e:"0".concat(e)}function Kn(e,t){e=String(e||"");var r=new Date;if(t===Oe.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var a=e.split("-");a.length===3&&r.setFullYear(parseInt(a[0]),parseInt(String(parseFloat(a[1])-1)),parseInt(a[2]))}return r}function jE(e){if(e.mode===Oe.TIME)return"00:00";if(e.mode===Oe.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case ui.YEAR:return t;case ui.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function YE(e){if(e.mode===Oe.TIME)return"23:59";if(e.mode===Oe.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case ui.YEAR:return t;case ui.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var qE={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Oe.SELECTOR,validator(e){return Object.values(Oe).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:jE},end:{type:String,default:YE},disabled:{type:[Boolean,String],default:!1}},XE=ge({name:"Picker",props:qE,emits:["change","cancel","columnchange"],setup(e,t){var{emit:r}=t;T0();var{t:i,getLocale:a}=Ge(),n=U(null),o=Pe(n,r),s=U(null),u=U(null),l=()=>{var p=e.value;switch(e.mode){case Oe.MULTISELECTOR:{Array.isArray(p)||(p=[]),Array.isArray(s.value)||(s.value=[]);for(var g=s.value.length=Math.max(p.length,e.range.length),c=0;c<g;c++){var h=Number(p[c]),w=Number(s.value[c]),y=isNaN(h)?isNaN(w)?0:w:h;s.value.splice(c,1,y<0?0:y)}}break;case Oe.TIME:case Oe.DATE:s.value=String(p);break;default:{var T=Number(p);s.value=T<0?0:T;break}}},f=p=>{u.value&&u.value.sendMessage(p)},v=p=>{var g={event:"cancel"};u.value=VE({url:"__uniapppicker",data:p,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:c=>{var h=c.event;if(h==="created"){f(p);return}if(h==="columnchange"){delete c.event,o(h,{},c);return}g=c},onClose:()=>{u.value=null;var c=g.event;delete g.event,c&&o(c,{},g)}})},m=(p,g)=>{plus.nativeUI[e.mode===Oe.TIME?"pickTime":"pickDate"](c=>{var h=c.date;o("change",{},{value:e.mode===Oe.TIME?"".concat(Zn(h.getHours()),":").concat(Zn(h.getMinutes())):"".concat(h.getFullYear(),"-").concat(Zn(h.getMonth()+1),"-").concat(Zn(h.getDate()))})},()=>{o("cancel",{},{})},e.mode===Oe.TIME?{time:Kn(e.value,Oe.TIME),popover:g}:{date:Kn(e.value,Oe.DATE),minDate:Kn(e.start,Oe.DATE),maxDate:Kn(e.end,Oe.DATE),popover:g})},d=(p,g)=>{(p.mode===Oe.TIME||p.mode===Oe.DATE)&&!p.fields?m(p,g):(p.fields=Object.values(ui).includes(p.fields)?p.fields:ui.DAY,v(p))},_=p=>{if(!e.disabled){var g=p.currentTarget,c=g.getBoundingClientRect();d(Object.assign({},e,{value:s.value,locale:a(),messages:{done:i("uni.picker.done"),cancel:i("uni.picker.cancel")}}),{top:c.top+bh(),left:c.left,width:c.width,height:c.height})}},b=_e(At,!1),x={submit:()=>[e.name,s.value],reset:()=>{switch(e.mode){case Oe.SELECTOR:s.value=0;break;case Oe.MULTISELECTOR:Array.isArray(e.value)&&(s.value=e.value.map(p=>0));break;case Oe.DATE:case Oe.TIME:s.value="";break}}};return b&&(b.addField(x),Ce(()=>b.removeField(x))),Object.keys(e).forEach(p=>{p!=="name"&&H(()=>e[p],g=>{var c={};c[p]=g,f(c)},{deep:!0})}),H(()=>e.value,l,{deep:!0}),l(),()=>I("uni-picker",{ref:n,onClick:_},[I("slot",null,null)],8,["onClick"])}});class ZE extends we{constructor(t,r,i,a){super(t,"uni-picker",XE,r,i,a)}}var d2="";class KE extends ua{constructor(t,r,i,a){super(t,"uni-picker-view",rS,r,i,a,".uni-picker-view-wrapper")}}var h2="";class GE extends ua{constructor(t,r,i,a){super(t,"uni-picker-view-column",fS,r,i,a,".uni-picker-view-content")}}var g2="";class JE extends we{constructor(t,r,i,a){super(t,"uni-progress",vS,r,i,a)}}var p2="";class QE extends we{constructor(t,r,i,a){super(t,"uni-radio",_S,r,i,a,".uni-radio-wrapper")}setText(t){Ol(this.$holder,"uni-radio-input",t)}}var m2="";class eT extends we{constructor(t,r,i,a){super(t,"uni-radio-group",gS,r,i,a)}}var _2="";class tT extends we{constructor(t,r,i,a){super(t,"uni-rich-text",OS,r,i,a)}}var b2="";class rT extends we{constructor(t,r,i,a){super(t,"uni-scroll-view",IS,r,i,a,".uni-scroll-view-content")}setText(t){Ol(this.$holder,"uni-scroll-view-refresher",t)}}var w2="";class iT extends we{constructor(t,r,i,a){super(t,"uni-slider",LS,r,i,a)}}var x2="";class aT extends ua{constructor(t,r,i,a){super(t,"uni-swiper",zS,r,i,a,".uni-swiper-slide-frame")}}var y2="";class nT extends we{constructor(t,r,i,a){super(t,"uni-swiper-item",HS,r,i,a)}}var S2="";class oT extends we{constructor(t,r,i,a){super(t,"uni-switch",VS,r,i,a)}}var E2="";class sT extends we{constructor(t,r,i,a){super(t,"uni-textarea",KS,r,i,a)}init(t){super.init(t),xh(this.$props)}}var T2="",lT={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},Oh=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],uT=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],fT=ge({name:"Video",props:lT,emits:Oh,setup(e,t){var{emit:r}=t,i=U(null),a=Pe(i,r),n=U(null),o=Cl(e,["id"]),{position:s,hidden:u,onParentReady:l}=la(n),f;l(()=>{f=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(f),u.value&&f.hide(),Oh.forEach(m=>{f.addEventListener(m,d=>{a(m,{},d.detail)})}),H(()=>o.value,m=>f.setStyles(m),{deep:!0}),H(()=>s,m=>f.setStyles(m),{deep:!0}),H(()=>u.value,m=>{f[m?"hide":"show"](),m||f.setStyles(s)})});var v=qn();return Yn((m,d)=>{if(uT.includes(m)){var _;switch(m){case"seek":_=d.position;break;case"sendDanmu":_=d;break;case"playbackRate":_=d.rate;break;case"requestFullScreen":_=d.direction;break}f&&f[m](_)}},v,!0),Ce(()=>{f&&f.close()}),()=>I("uni-video",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-video-container"},null,512),I("div",{class:"uni-video-slot"},null)],8,["id"])}});class cT extends we{constructor(t,r,i,a){super(t,"uni-video",fT,r,i,a,".uni-video-slot")}}var C2="",vT={src:{type:String,default:""},updateTitle:{type:Boolean,default:!0},webviewStyles:{type:Object,default(){return{}}}},it,dT=e=>{var{htmlId:t,src:r,webviewStyles:i,props:a}=e,n=plus.webview.currentWebview(),o=ve(i,{"uni-app":"none",isUniH5:!0}),s=n.getTitleNView();if(s){var u=Ou+parseFloat(o.top||"0");plus.navigator.isImmersedStatusbar()&&(u+=_h()),o.top=String(u),o.bottom=o.bottom||"0"}it=plus.webview.create(r,t,o),s&&it.addEventListener("titleUpdate",function(){var l;if(!!a.updateTitle){var f=(l=it)===null||l===void 0?void 0:l.getTitle();n.setStyle({titleNView:{titleText:!f||f==="null"?" ":f}})}}),plus.webview.currentWebview().append(it)},hT=()=>{var e;plus.webview.currentWebview().remove(it),(e=it)===null||e===void 0||e.close("none"),it=null},gT=ge({name:"WebView",props:vT,setup(e){var t=Xt(),r=U(null),{hidden:i,onParentReady:a}=la(r),n=ee(()=>e.webviewStyles);return a(()=>{var o,s=U(yb+t);dT({htmlId:s.value,src:vt(e.src),webviewStyles:n.value,props:e}),UniViewJSBridge.publishHandler(wb,{},t),i.value&&((o=it)===null||o===void 0||o.hide())}),Ce(()=>{hT(),UniViewJSBridge.publishHandler(xb,{},t)}),H(()=>e.src,o=>{var s,u=vt(o)||"";if(!!u){if(/^(http|https):\/\//.test(u)&&e.webviewStyles.progress){var l;(l=it)===null||l===void 0||l.setStyle({progress:{color:e.webviewStyles.progress.color}})}(s=it)===null||s===void 0||s.loadURL(u)}}),H(n,o=>{var s;(s=it)===null||s===void 0||s.setStyle(o)}),H(i,o=>{it&&it[o?"hide":"show"]()}),()=>I("uni-web-view",{ref:r},null,512)}});class pT extends we{constructor(t,r,i,a){super(t,"uni-web-view",gT,r,i,a)}}var mT={"#text":tE,"#comment":hx,VIEW:nE,IMAGE:OE,TEXT:eE,NAVIGATOR:FE,FORM:EE,BUTTON:cE,INPUT:AE,LABEL:IE,RADIO:QE,CHECKBOX:hE,"CHECKBOX-GROUP":gE,AD:fE,CAMERA:vE,CANVAS:dE,"COVER-IMAGE":wE,"COVER-VIEW":yE,EDITOR:SE,"FUNCTIONAL-PAGE-NAVIGATOR":TE,ICON:CE,"RADIO-GROUP":eT,"LIVE-PLAYER":kE,"LIVE-PUSHER":ME,MAP:DE,"MOVABLE-AREA":BE,"MOVABLE-VIEW":$E,"OFFICIAL-ACCOUNT":zE,"OPEN-DATA":UE,PICKER:ZE,"PICKER-VIEW":KE,"PICKER-VIEW-COLUMN":GE,PROGRESS:JE,"RICH-TEXT":tT,"SCROLL-VIEW":rT,SLIDER:iT,SWIPER:aT,"SWIPER-ITEM":nT,SWITCH:oT,TEXTAREA:sT,VIDEO:cT,"WEB-VIEW":pT};function _T(e,t){return()=>y_(e,t)}var Gn=new Map;function at(e){return Gn.get(e)}function bT(e){return Gn.get(e)}function Ah(e){return Gn.delete(e)}function Ih(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},n;if(e===0)n=new ii(e,t,r,document.createElement(t));else{var o=mT[t];o?n=new o(e,r,i,a):n=new Ed(e,document.createElement(t),r,i,a)}return Gn.set(e,n),n}var Rl=[],kh=!1;function Mh(e){if(kh)return e();Rl.push(e)}function Ll(){kh=!0,Rl.forEach(e=>e()),Rl.length=0}function wT(){}function Rh(e){var{css:t,route:r,platform:i,pixelRatio:a,windowWidth:n,disableScroll:o,statusbarHeight:s,windowTop:u,windowBottom:l}=e;xT(r),yT(i,a,n),ST();var f=plus.webview.currentWebview().id;window.__id__=f,document.title="".concat(r,"[").concat(f,"]"),TT(s,u,l),o&&document.addEventListener("touchmove",cb),t?ET(r):Ll()}function xT(e){window.__PAGE_INFO__={route:e}}function yT(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function ST(){Ih(0,"div",-1,-1).$=document.getElementById("app")}function ET(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Ll,t.onerror=Ll,document.head.appendChild(t)}function TT(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};eb(i)}var Lh=!1;function CT(e){if(!Lh){Lh=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(Np,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(Dp)}};requestAnimationFrame(()=>document.addEventListener("scroll",vb(t)))}}function OT(e,t){var{scrollTop:r,selector:i,duration:a}=e;Fp(i||r||0,a),t()}function AT(e){var t=e[0];t[0]===Pu?IT(t):Mh(()=>kT(e))}function IT(e){return Rh(e[1])}function kT(e){var t=e[0],r=X1(t[0]===bb?t[1]:[]);e.forEach(i=>{switch(i[0]){case Pu:return Rh(i[1]);case qp:return wT();case Xp:return Ih(i[1],r(i[2]),i[3],i[4],Z1(r,i[5]));case Zp:return at(i[1]).remove();case Kp:return at(i[1]).setAttr(r(i[2]),r(i[3]));case Gp:return at(i[1]).removeAttr(r(i[2]));case Jp:return at(i[1]).addEvent(r(i[2]),i[3]);case t0:return at(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case Qp:return at(i[1]).removeEvent(r(i[2]));case e0:return at(i[1]).setText(r(i[2]));case r0:return CT(i[1])}}),Q1()}function MT(){var{subscribe:e}=UniViewJSBridge;e(Sc,AT),e(Sb,t=>Ge().setLocale(t)),e(Ec,RT)}function RT(){UniViewJSBridge.publishHandler("webviewReady")}function Ph(e){return window.__$__(e).$}function LT(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function Pl(e,t){var r={},{top:i}=Q_();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Ro(e)),t.rect||t.size){var a=e.getBoundingClientRect();t.rect&&(r.left=a.left,r.right=a.right,r.top=a.top-i,r.bottom=a.bottom-i),t.size&&(r.width=a.width,r.height=a.height)}if(Array.isArray(t.properties)&&t.properties.forEach(s=>{s=s.replace(/-([a-z])/g,function(u,l){return l.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var n=e.children[0].children[0];r.scrollLeft=n.scrollLeft,r.scrollTop=n.scrollTop,r.scrollHeight=n.scrollHeight,r.scrollWidth=n.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var o=getComputedStyle(e);t.computedStyle.forEach(s=>{r[s]=o[s]})}return t.context&&(r.contextInfo=JS(e)),r}function PT(e,t){return e?window.__$__(e).$:t.$el}function Nh(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var a=this.parentElement.querySelectorAll(i),n=a.length;--n>=0&&a.item(n)!==this;);return n>-1};return r.call(e,t)}function NT(e,t,r,i,a){var n=PT(t,e),o=n.parentElement;if(!o)return i?null:[];var{nodeType:s}=n,u=s===3||s===8;if(i){var l=u?o.querySelector(r):Nh(n,r)?n:n.querySelector(r);return l?Pl(l,a):null}else{var f=[],v=(u?o:n).querySelectorAll(r);return v&&v.length&&[].forEach.call(v,m=>{f.push(Pl(m,a))}),!u&&Nh(n,r)&&f.unshift(Pl(n,a)),f}}function DT(e,t,r){var i=[];t.forEach(a=>{var{component:n,selector:o,single:s,fields:u}=a;n===null?i.push(LT(u)):i.push(NT(e,n,o,s,u))}),r(i)}function BT(e,t){var{pageStyle:r,rootFontSize:i}=t;if(r){var a=document.querySelector("uni-page-body")||document.body;a.setAttribute("style",r)}i&&document.documentElement.style.fontSize!==i&&(document.documentElement.style.fontSize=i)}function $T(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=Ph(i);(o.__io||(o.__io={}))[r]=z1(o,a,n)}function FT(e,t){var{reqId:r,component:i}=e,a=Ph(i),n=a.__io&&a.__io[r];n&&(n.disconnect(),delete a.__io[r])}var Nl={},Dl={};function zT(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Dh(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Dh(i),": ").concat(e[i],")"));var a=t.join(" and ");return a}function Dh(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function UT(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=Nl[r]=window.matchMedia(zT(a)),s=Dl[r]=u=>n(u.matches);s(o),o.addListener(s)}function HT(e,t){var{reqId:r,component:i}=e,a=Dl[r],n=Nl[r];n&&(n.removeListener(a),delete Dl[r],delete Nl[r])}function WT(e,t){var{family:r,source:i,desc:a}=e;$p(r,i,a).then(()=>{t()}).catch(n=>{t(n.toString())})}var VT={$el:document.body};function jT(){var e=Xt();k0(e,t=>function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];Mh(()=>{t.apply(null,i)})}),bt(e,"requestComponentInfo",(t,r)=>{DT(VT,t.reqs,r)}),bt(e,"addIntersectionObserver",t=>{$T(ve({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),bt(e,"removeIntersectionObserver",t=>{FT(t)}),bt(e,"addMediaQueryObserver",t=>{UT(ve({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),bt(e,"removeMediaQueryObserver",t=>{HT(t)}),bt(e,B1,OT),bt(e,D1,WT),bt(e,N1,t=>{BT(null,t)})}window.uni=Y1,window.UniViewJSBridge=Tc,window.rpx2px=sd,window.__$__=at,window.__f__=Wp;function Bh(){F0(),jT(),MT(),q1(),Tc.publishHandler(Ec)}typeof plus!="undefined"?Bh():document.addEventListener("plusready",Bh)}); +`+e.stack):console.error(e)}var Ga=!1,rs=!1,Qe=[],Rt=0,Ci=[],Oi=null,Hr=0,Ai=[],jt=null,Wr=0,wf=Promise.resolve(),is=null,as=null;function Vr(e){var t=is||wf;return e?t.then(this?e.bind(this):e):t}function Sm(e){for(var t=Rt+1,r=Qe.length;t<r;){var i=t+r>>>1,a=Ii(Qe[i]);a<e?t=i+1:r=i}return t}function xf(e){(!Qe.length||!Qe.includes(e,Ga&&e.allowRecurse?Rt+1:Rt))&&e!==as&&(e.id==null?Qe.push(e):Qe.splice(Sm(e.id),0,e),yf())}function yf(){!Ga&&!rs&&(rs=!0,is=wf.then(Tf))}function Em(e){var t=Qe.indexOf(e);t>Rt&&Qe.splice(t,1)}function Sf(e,t,r,i){ne(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),yf()}function Tm(e){Sf(e,Oi,Ci,Hr)}function Cm(e){Sf(e,jt,Ai,Wr)}function ns(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Ci.length){for(as=t,Oi=[...new Set(Ci)],Ci.length=0,Hr=0;Hr<Oi.length;Hr++)Oi[Hr]();Oi=null,Hr=0,as=null,ns(e,t)}}function Ef(e){if(Ai.length){var t=[...new Set(Ai)];if(Ai.length=0,jt){jt.push(...t);return}for(jt=t,jt.sort((r,i)=>Ii(r)-Ii(i)),Wr=0;Wr<jt.length;Wr++)jt[Wr]();jt=null,Wr=0}}var Ii=e=>e.id==null?1/0:e.id;function Tf(e){rs=!1,Ga=!0,ns(e),Qe.sort((i,a)=>Ii(i)-Ii(a));var t=pt;try{for(Rt=0;Rt<Qe.length;Rt++){var r=Qe[Rt];r&&r.active!==!1&&Vt(r,null,14)}}finally{Rt=0,Qe.length=0,Ef(),Ga=!1,is=null,(Qe.length||Ci.length||Ai.length)&&Tf(e)}}function Om(e,t){for(var r=e.vnode.props||xe,i=arguments.length,a=new Array(i>2?i-2:0),n=2;n<i;n++)a[n-2]=arguments[n];var o=a,s=t.startsWith("update:"),u=s&&t.slice(7);if(u&&u in r){var l="".concat(u==="modelValue"?"model":u,"Modifiers"),{number:f,trim:v}=r[l]||xe;v?o=a.map(b=>b.trim()):f&&(o=a.map(Ip))}var m,d=r[m=Ao(t)]||r[m=Ao(zt(t))];!d&&s&&(d=r[m=Ao(Ke(t))]),d&&ft(d,e,6,o);var _=r[m+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[m])return;e.emitted[m]=!0,ft(_,e,6,o)}}function Cf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;var n=e.emits,o={},s=!1;if(!oe(e)){var u=l=>{var f=Cf(l,t,!0);f&&(s=!0,ve(o,f))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!n&&!s?(i.set(e,null),null):(ne(n)?n.forEach(l=>o[l]=null):ve(o,n),i.set(e,o),o)}function os(e,t){return!e||!Ia(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Ke(t))||re(e,t))}var ct=null,Of=null;function Ja(e){var t=ct;return ct=e,Of=e&&e.type.__scopeId||null,t}function Am(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct;if(!t||e._n)return e;var r=function(){r._d&&Gf(-1);var i=Ja(t),a=e(...arguments);return Ja(i),r._d&&Gf(1),a};return r._n=!0,r._c=!0,r._d=!0,r}function XT(){}function ss(e){var{type:t,vnode:r,proxy:i,withProxy:a,props:n,propsOptions:[o],slots:s,attrs:u,emit:l,render:f,renderCache:v,data:m,setupState:d,ctx:_,inheritAttrs:b}=e,x,p,g=Ja(e);try{if(r.shapeFlag&4){var c=a||i;x=xt(f.call(c,c,v,n,d,m,_)),p=u}else{var h=t;x=xt(h.length>1?h(n,{attrs:u,slots:s,emit:l}):h(n,null)),p=t.props?u:Im(u)}}catch(E){Ka(E,e,1),x=I(jr)}var w=x;if(p&&b!==!1){var y=Object.keys(p),{shapeFlag:T}=w;y.length&&T&(1|6)&&(o&&y.some(So)&&(p=km(p,o)),w=Ri(w,p))}return r.dirs&&(w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),x=w,Ja(g),x}var Im=e=>{var t;for(var r in e)(r==="class"||r==="style"||Ia(r))&&((t||(t={}))[r]=e[r]);return t},km=(e,t)=>{var r={};for(var i in e)(!So(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function Mm(e,t,r){var{props:i,children:a,component:n}=e,{props:o,children:s,patchFlag:u}=t,l=n.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return i?Af(i,o,l):!!o;if(u&8)for(var f=t.dynamicProps,v=0;v<f.length;v++){var m=f[v];if(o[m]!==i[m]&&!os(l,m))return!0}}else return(a||s)&&(!s||!s.$stable)?!0:i===o?!1:i?o?Af(i,o,l):!0:!!o;return!1}function Af(e,t,r){var i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(var a=0;a<i.length;a++){var n=i[a];if(t[n]!==e[n]&&!os(r,n))return!0}return!1}function Rm(e,t){for(var{vnode:r,parent:i}=e;i&&i.subTree===r;)(r=i.vnode).el=t,i=i.parent}var Lm=e=>e.__isSuspense;function Pm(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Cm(e)}function Fe(e,t){if(ze){var r=ze.provides,i=ze.parent&&ze.parent.provides;i===r&&(r=ze.provides=Object.create(i)),r[e]=t}}function _e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=ze||ct;if(i){var a=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&oe(t)?t.call(i.proxy):t}}function Nm(e,t){return ls(e,null,t)}var If={};function H(e,t,r){return ls(e,t,r)}function ls(e,t){var{immediate:r,deep:i,flush:a,onTrack:n,onTrigger:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,s=ze,u,l=!1,f=!1;if(Ve(e)?(u=()=>e.value,l=df(e)):Ur(e)?(u=()=>e,i=!0):ne(e)?(f=!0,l=e.some(Ur),u=()=>e.map(g=>{if(Ve(g))return g.value;if(Ur(g))return vr(g);if(oe(g))return Vt(g,s,2)})):oe(e)?t?u=()=>Vt(e,s,2):u=()=>{if(!(s&&s.isUnmounted))return m&&m(),ft(e,s,3,[d])}:u=pt,t&&i){var v=u;u=()=>vr(v())}var m,d=g=>{m=p.onStop=()=>{Vt(g,s,4)}};if(Li)return d=pt,t?r&&ft(t,s,3,[u(),f?[]:void 0,d]):u(),pt;var _=f?[]:If,b=()=>{if(!!p.active)if(t){var g=p.run();(i||l||(f?g.some((c,h)=>pi(c,_[h])):pi(g,_)))&&(m&&m(),ft(t,s,3,[g,_===If?void 0:_,d]),_=g)}else p.run()};b.allowRecurse=!!t;var x;a==="sync"?x=b:a==="post"?x=()=>qe(b,s&&s.suspense):x=()=>{!s||s.isMounted?Tm(b):b()};var p=new qo(u,x);return t?r?b():_=p.run():a==="post"?qe(p.run.bind(p),s&&s.suspense):p.run(),()=>{p.stop(),s&&s.scope&&Eo(s.scope.effects,p)}}function Dm(e,t,r){var i=this.proxy,a=ye(e)?e.includes(".")?kf(i,e):()=>i[e]:e.bind(i,i),n;oe(t)?n=t:(n=t.handler,r=t);var o=ze;Yr(this);var s=ls(a,n.bind(i),r);return o?Yr(o):pr(),s}function kf(e,t){var r=t.split(".");return()=>{for(var i=e,a=0;a<r.length&&i;a++)i=i[r[a]];return i}}function vr(e,t){if(!He(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ve(e))vr(e.value,t);else if(ne(e))for(var r=0;r<e.length;r++)vr(e[r],t);else if(Tp(e)||hi(e))e.forEach(a=>{vr(a,t)});else if(mt(e))for(var i in e)vr(e[i],t);return e}function Bm(e){return oe(e)?{setup:e,name:e.name}:e}var us=e=>!!e.type.__asyncLoader,Mf=e=>e.type.__isKeepAlive;function fs(e,t){Rf(e,"a",t)}function $m(e,t){Rf(e,"da",t)}function Rf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ze,i=e.__wdc||(e.__wdc=()=>{for(var n=r;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Qa(t,i,r),r)for(var a=r.parent;a&&a.parent;)Mf(a.parent.vnode)&&Fm(i,t,r,a),a=a.parent}function Fm(e,t,r,i){var a=Qa(t,e,i,!0);Yt(()=>{Eo(i[t],a)},r)}function Qa(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ze,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r){var a=r[e]||(r[e]=[]),n=t.__weh||(t.__weh=function(){if(!r.isUnmounted){zr(),Yr(r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var l=ft(t,r,e,s);return pr(),cr(),l}});return i?a.unshift(n):a.push(n),n}}var Lt=e=>function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ze;return(!Li||e==="sp")&&Qa(e,t,r)},Lf=Lt("bm"),Re=Lt("m"),zm=Lt("bu"),Um=Lt("u"),Ce=Lt("bum"),Yt=Lt("um"),Hm=Lt("sp"),Wm=Lt("rtg"),Vm=Lt("rtc");function jm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ze;Qa("ec",e,t)}var cs=!0;function Ym(e){var t=Df(e),r=e.proxy,i=e.ctx;cs=!1,t.beforeCreate&&Pf(t.beforeCreate,e,"bc");var{data:a,computed:n,methods:o,watch:s,provide:u,inject:l,created:f,beforeMount:v,mounted:m,beforeUpdate:d,updated:_,activated:b,deactivated:x,beforeDestroy:p,beforeUnmount:g,destroyed:c,unmounted:h,render:w,renderTracked:y,renderTriggered:T,errorCaptured:E,serverPrefetch:O,expose:N,inheritAttrs:R,components:V,directives:ue,filters:M}=t,B=null;if(l&&qm(l,i,B,e.appContext.config.unwrapInjectedRef),o)for(var Q in o){var te=o[Q];oe(te)&&(i[Q]=te.bind(r))}if(a&&function(){var ie=a.call(r,r);He(ie)&&(e.data=Ae(ie))}(),cs=!0,n){var W=function(ie){var le=n[ie],Ie=oe(le)?le.bind(r,r):oe(le.get)?le.get.bind(r,r):pt,ke=!oe(le)&&oe(le.set)?le.set.bind(r):pt,nt=bf({get:Ie,set:ke});Object.defineProperty(i,ie,{enumerable:!0,configurable:!0,get:()=>nt.value,set:nr=>nt.value=nr})};for(var G in n)W(G)}if(s)for(var ae in s)Nf(s[ae],i,r,ae);if(u){var Se=oe(u)?u.call(r):u;Reflect.ownKeys(Se).forEach(ie=>{Fe(ie,Se[ie])})}f&&Pf(f,e,"c");function se(ie,le){ne(le)?le.forEach(Ie=>ie(Ie.bind(r))):le&&ie(le.bind(r))}if(se(Lf,v),se(Re,m),se(zm,d),se(Um,_),se(fs,b),se($m,x),se(jm,E),se(Vm,y),se(Wm,T),se(Ce,g),se(Yt,h),se(Hm,O),ne(N))if(N.length){var K=e.exposed||(e.exposed={});N.forEach(ie=>{Object.defineProperty(K,ie,{get:()=>r[ie],set:le=>r[ie]=le})})}else e.exposed||(e.exposed={});w&&e.render===pt&&(e.render=w),R!=null&&(e.inheritAttrs=R),V&&(e.components=V),ue&&(e.directives=ue)}function qm(e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;ne(e)&&(e=vs(e));var i=function(n){var o=e[n],s=void 0;He(o)?"default"in o?s=_e(o.from||n,o.default,!0):s=_e(o.from||n):s=_e(o),Ve(s)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:u=>s.value=u}):t[n]=s};for(var a in e)i(a)}function Pf(e,t,r){ft(ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function Nf(e,t,r,i){var a=i.includes(".")?kf(r,i):()=>r[i];if(ye(e)){var n=t[e];oe(n)&&H(a,n)}else if(oe(e))H(a,e.bind(r));else if(He(e))if(ne(e))e.forEach(s=>Nf(s,t,r,i));else{var o=oe(e.handler)?e.handler.bind(r):t[e.handler];oe(o)&&H(a,o,e)}}function Df(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:n,config:{optionMergeStrategies:o}}=e.appContext,s=n.get(t),u;return s?u=s:!a.length&&!r&&!i?u=t:(u={},a.length&&a.forEach(l=>en(u,l,o,!0)),en(u,t,o)),n.set(t,u),u}function en(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,{mixins:a,extends:n}=t;n&&en(e,n,r,!0),a&&a.forEach(u=>en(e,u,r,!0));for(var o in t)if(!(i&&o==="expose")){var s=Xm[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Xm={data:Bf,props:dr,emits:dr,methods:dr,computed:dr,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:dr,directives:dr,watch:Km,provide:Bf,inject:Zm};function Bf(e,t){return t?e?function(){return ve(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function Zm(e,t){return dr(vs(e),vs(t))}function vs(e){if(ne(e)){for(var t={},r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function dr(e,t){return e?ve(ve(Object.create(null),e),t):t}function Km(e,t){if(!e)return t;if(!t)return e;var r=ve(Object.create(null),e);for(var i in t)r[i]=je(e[i],t[i]);return r}function Gm(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a={},n={};La(n,rn,1),e.propsDefaults=Object.create(null),$f(e,t,a,n);for(var o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=i?a:mm(a):e.type.props?e.props=a:e.props=n,e.attrs=n}function Jm(e,t,r,i){var{props:a,attrs:n,vnode:{patchFlag:o}}=e,s=me(a),[u]=e.propsOptions,l=!1;if((i||o>0)&&!(o&16)){if(o&8)for(var f=e.vnode.dynamicProps,v=0;v<f.length;v++){var m=f[v],d=t[m];if(u)if(re(n,m))d!==n[m]&&(n[m]=d,l=!0);else{var _=zt(m);a[_]=ds(u,s,_,d,e,!1)}else d!==n[m]&&(n[m]=d,l=!0)}}else{$f(e,t,a,n)&&(l=!0);var b;for(var x in s)(!t||!re(t,x)&&((b=Ke(x))===x||!re(t,b)))&&(u?r&&(r[x]!==void 0||r[b]!==void 0)&&(a[x]=ds(u,s,x,void 0,e,!0)):delete a[x]);if(n!==s)for(var p in n)(!t||!re(t,p))&&(delete n[p],l=!0)}l&&Mt(e,"set","$attrs")}function $f(e,t,r,i){var[a,n]=e.propsOptions,o=!1,s;if(t){for(var u in t)if(!ka(u)){var l=t[u],f=void 0;a&&re(a,f=zt(u))?!n||!n.includes(f)?r[f]=l:(s||(s={}))[f]=l:os(e.emitsOptions,u)||(!(u in i)||l!==i[u])&&(i[u]=l,o=!0)}}if(n)for(var v=me(r),m=s||xe,d=0;d<n.length;d++){var _=n[d];r[_]=ds(a,v,_,m[_],e,!re(m,_))}return o}function ds(e,t,r,i,a,n){var o=e[r];if(o!=null){var s=re(o,"default");if(s&&i===void 0){var u=o.default;if(o.type!==Function&&oe(u)){var{propsDefaults:l}=a;r in l?i=l[r]:(Yr(a),i=l[r]=u.call(null,t),pr())}else i=u}o[0]&&(n&&!s?i=!1:o[1]&&(i===""||i===Ke(r))&&(i=!0))}return i}function Ff(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.propsCache,a=i.get(e);if(a)return a;var n=e.props,o={},s=[],u=!1;if(!oe(e)){var l=c=>{u=!0;var[h,w]=Ff(c,t,!0);ve(o,h),w&&s.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!n&&!u)return i.set(e,di),di;if(ne(n))for(var f=0;f<n.length;f++){var v=zt(n[f]);zf(v)&&(o[v]=xe)}else if(n)for(var m in n){var d=zt(m);if(zf(d)){var _=n[m],b=o[d]=ne(_)||oe(_)?{type:_}:_;if(b){var x=Wf(Boolean,b.type),p=Wf(String,b.type);b[0]=x>-1,b[1]=p<0||x<p,(x>-1||re(b,"default"))&&s.push(d)}}}var g=[o,s];return i.set(e,g),g}function zf(e){return e[0]!=="$"}function Uf(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Hf(e,t){return Uf(e)===Uf(t)}function Wf(e,t){return ne(t)?t.findIndex(r=>Hf(r,e)):oe(t)&&Hf(t,e)?0:-1}var Vf=e=>e[0]==="_"||e==="$stable",hs=e=>ne(e)?e.map(xt):[xt(e)],Qm=(e,t,r)=>{var i=Am(function(){return hs(t(...arguments))},r);return i._c=!1,i},jf=(e,t,r)=>{var i=e._ctx;for(var a in e)if(!Vf(a)){var n=e[a];oe(n)?t[a]=Qm(a,n,i):n!=null&&function(){var o=hs(n);t[a]=()=>o}()}},Yf=(e,t)=>{var r=hs(t);e.slots.default=()=>r},e_=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=me(t),La(t,"_",r)):jf(t,e.slots={})}else e.slots={},t&&Yf(e,t);La(e.slots,rn,1)},t_=(e,t,r)=>{var{vnode:i,slots:a}=e,n=!0,o=xe;if(i.shapeFlag&32){var s=t._;s?r&&s===1?n=!1:(ve(a,t),!r&&s===1&&delete a._):(n=!t.$stable,jf(t,a)),o=t}else t&&(Yf(e,t),o={default:1});if(n)for(var u in a)!Vf(u)&&!(u in o)&&delete a[u]};function ki(e,t){var r=ct;if(r===null)return e;for(var i=r.proxy,a=e.dirs||(e.dirs=[]),n=0;n<t.length;n++){var[o,s,u,l=xe]=t[n];oe(o)&&(o={mounted:o,updated:o}),o.deep&&vr(s),a.push({dir:o,instance:i,value:s,oldValue:void 0,arg:u,modifiers:l})}return e}function hr(e,t,r,i){for(var a=e.dirs,n=t&&t.dirs,o=0;o<a.length;o++){var s=a[o];n&&(s.oldValue=n[o].value);var u=s.dir[i];u&&(zr(),ft(u,r,8,[e.el,s,e,t]),cr())}}function qf(){return{app:null,config:{isNativeTag:yp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var r_=0;function i_(e,t){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;a!=null&&!He(a)&&(a=null);var n=qf(),o=new Set,s=!1,u=n.app={_uid:r_++,_component:i,_props:a,_container:null,_context:n,_instance:null,version:S_,get config(){return n.config},set config(l){},use(l){for(var f=arguments.length,v=new Array(f>1?f-1:0),m=1;m<f;m++)v[m-1]=arguments[m];return o.has(l)||(l&&oe(l.install)?(o.add(l),l.install(u,...v)):oe(l)&&(o.add(l),l(u,...v))),u},mixin(l){return n.mixins.includes(l)||n.mixins.push(l),u},component(l,f){return f?(n.components[l]=f,u):n.components[l]},directive(l,f){return f?(n.directives[l]=f,u):n.directives[l]},mount(l,f,v){if(!s){var m=I(i,a);return m.appContext=n,f&&t?t(m,l):e(m,l,v),s=!0,u._container=l,l.__vue_app__=u,ws(m.component)||m.component.proxy}},unmount(){s&&(e(null,u._container),delete u._container.__vue_app__)},provide(l,f){return n.provides[l]=f,u}};return u}}function gs(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ne(e)){e.forEach((b,x)=>gs(b,t&&(ne(t)?t[x]:t),r,i,a));return}if(!(us(i)&&!a)){var n=i.shapeFlag&4?ws(i.component)||i.component.proxy:i.el,o=a?null:n,{i:s,r:u}=e,l=t&&t.r,f=s.refs===xe?s.refs={}:s.refs,v=s.setupState;if(l!=null&&l!==u&&(ye(l)?(f[l]=null,re(v,l)&&(v[l]=null)):Ve(l)&&(l.value=null)),oe(u))Vt(u,s,12,[o,f]);else{var m=ye(u),d=Ve(u);if(m||d){var _=()=>{if(e.f){var b=m?f[u]:u.value;a?ne(b)&&Eo(b,n):ne(b)?b.includes(n)||b.push(n):m?f[u]=[n]:(u.value=[n],e.k&&(f[e.k]=u.value))}else m?(f[u]=o,re(v,u)&&(v[u]=o)):Ve(u)&&(u.value=o,e.k&&(f[e.k]=o))};o?(_.id=-1,qe(_,r)):_()}}}}var qe=Pm;function a_(e){return n_(e)}function n_(e,t){var r=kp();r.__VUE__=!0;var{insert:i,remove:a,patchProp:n,createElement:o,createText:s,createComment:u,setText:l,setElementText:f,parentNode:v,nextSibling:m,setScopeId:d=pt,cloneNode:_,insertStaticContent:b}=e,x=function(S,C,k){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,j=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,$=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!!C.dynamicChildren;if(S!==C){S&&!Mi(S,C)&&(L=nt(S),K(S,P,F,!0),S=null),C.patchFlag===-2&&(z=!1,C.dynamicChildren=null);var{type:D,ref:J,shapeFlag:Z}=C;switch(D){case ps:p(S,C,k,L);break;case jr:g(S,C,k,L);break;case ms:S==null&&c(C,k,L,j);break;case wt:ue(S,C,k,L,P,F,j,$,z);break;default:Z&1?y(S,C,k,L,P,F,j,$,z):Z&6?M(S,C,k,L,P,F,j,$,z):(Z&64||Z&128)&&D.process(S,C,k,L,P,F,j,$,z,Ne)}J!=null&&P&&gs(J,S&&S.ref,F,C||S,!C)}},p=(S,C,k,L)=>{if(S==null)i(C.el=s(C.children),k,L);else{var P=C.el=S.el;C.children!==S.children&&l(P,C.children)}},g=(S,C,k,L)=>{S==null?i(C.el=u(C.children||""),k,L):C.el=S.el},c=(S,C,k,L)=>{[S.el,S.anchor]=b(S.children,C,k,L,S.el,S.anchor)},h=(S,C,k)=>{for(var{el:L,anchor:P}=S,F;L&&L!==P;)F=m(L),i(L,C,k),L=F;i(P,C,k)},w=S=>{for(var{el:C,anchor:k}=S,L;C&&C!==k;)L=m(C),a(C),C=L;a(k)},y=(S,C,k,L,P,F,j,$,z)=>{j=j||C.type==="svg",S==null?T(C,k,L,P,F,j,$,z):N(S,C,P,F,j,$,z)},T=(S,C,k,L,P,F,j,$)=>{var z,D,{type:J,props:Z,shapeFlag:X,transition:ce,patchFlag:Be,dirs:Te}=S;if(S.el&&_!==void 0&&Be===-1)z=S.el=_(S.el);else{if(z=S.el=o(S.type,F,Z&&Z.is,Z),X&8?f(z,S.children):X&16&&O(S.children,z,null,L,P,F&&J!=="foreignObject",j,$),Te&&hr(S,null,L,"created"),Z){for(var A in Z)A!=="value"&&!ka(A)&&n(z,A,null,Z[A],F,S.children,L,P,ke);"value"in Z&&n(z,"value",null,Z.value),(D=Z.onVnodeBeforeMount)&&yt(D,L,S)}E(z,S,S.scopeId,j,L)}Object.defineProperty(z,"__vueParentComponent",{value:L,enumerable:!1}),Te&&hr(S,null,L,"beforeMount");var Y=(!P||P&&!P.pendingBranch)&&ce&&!ce.persisted;Y&&ce.beforeEnter(z),i(z,C,k),((D=Z&&Z.onVnodeMounted)||Y||Te)&&qe(()=>{D&&yt(D,L,S),Y&&ce.enter(z),Te&&hr(S,null,L,"mounted")},P)},E=(S,C,k,L,P)=>{if(k&&d(S,k),L)for(var F=0;F<L.length;F++)d(S,L[F]);if(P){var j=P.subTree;if(C===j){var $=P.vnode;E(S,$,$.scopeId,$.slotScopeIds,P.parent)}}},O=function(S,C,k,L,P,F,j,$){for(var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,D=z;D<S.length;D++){var J=S[D]=$?qt(S[D]):xt(S[D]);x(null,J,C,k,L,P,F,j,$)}},N=(S,C,k,L,P,F,j)=>{var $=C.el=S.el,{patchFlag:z,dynamicChildren:D,dirs:J}=C;z|=S.patchFlag&16;var Z=S.props||xe,X=C.props||xe,ce;k&&gr(k,!1),(ce=X.onVnodeBeforeUpdate)&&yt(ce,k,C,S),J&&hr(C,S,k,"beforeUpdate"),k&&gr(k,!0);var Be=P&&C.type!=="foreignObject";if(D?R(S.dynamicChildren,D,$,k,L,Be,F):j||G(S,C,$,null,k,L,Be,F,!1),z>0){if(z&16)V($,C,Z,X,k,L,P);else if(z&2&&Z.class!==X.class&&n($,"class",null,X.class,P),z&4&&n($,"style",Z.style,X.style,P),z&8)for(var Te=C.dynamicProps,A=0;A<Te.length;A++){var Y=Te[A],q=Z[Y],he=X[Y];(he!==q||Y==="value")&&n($,Y,q,he,P,S.children,k,L,ke)}z&1&&S.children!==C.children&&f($,C.children)}else!j&&D==null&&V($,C,Z,X,k,L,P);((ce=X.onVnodeUpdated)||J)&&qe(()=>{ce&&yt(ce,k,C,S),J&&hr(C,S,k,"updated")},L)},R=(S,C,k,L,P,F,j)=>{for(var $=0;$<C.length;$++){var z=S[$],D=C[$],J=z.el&&(z.type===wt||!Mi(z,D)||z.shapeFlag&(6|64))?v(z.el):k;x(z,D,J,null,L,P,F,j,!0)}},V=(S,C,k,L,P,F,j)=>{if(k!==L){for(var $ in L)if(!ka($)){var z=L[$],D=k[$];z!==D&&$!=="value"&&n(S,$,D,z,j,C.children,P,F,ke)}if(k!==xe)for(var J in k)!ka(J)&&!(J in L)&&n(S,J,k[J],null,j,C.children,P,F,ke);"value"in L&&n(S,"value",k.value,L.value)}},ue=(S,C,k,L,P,F,j,$,z)=>{var D=C.el=S?S.el:s(""),J=C.anchor=S?S.anchor:s(""),{patchFlag:Z,dynamicChildren:X,slotScopeIds:ce}=C;ce&&($=$?$.concat(ce):ce),S==null?(i(D,k,L),i(J,k,L),O(C.children,k,J,P,F,j,$,z)):Z>0&&Z&64&&X&&S.dynamicChildren?(R(S.dynamicChildren,X,k,P,F,j,$),(C.key!=null||P&&C===P.subTree)&&Xf(S,C,!0)):G(S,C,k,J,P,F,j,$,z)},M=(S,C,k,L,P,F,j,$,z)=>{C.slotScopeIds=$,S==null?C.shapeFlag&512?P.ctx.activate(C,k,L,j,z):B(C,k,L,P,F,j,z):Q(S,C,z)},B=(S,C,k,L,P,F,j)=>{var $=S.component=p_(S,L,P);if(Mf(S)&&($.ctx.renderer=Ne),m_($),$.asyncDep){if(P&&P.registerDep($,te),!S.el){var z=$.subTree=I(jr);g(null,z,C,k)}return}te($,S,C,k,P,F,j)},Q=(S,C,k)=>{var L=C.component=S.component;if(Mm(S,C,k))if(L.asyncDep&&!L.asyncResolved){W(L,C,k);return}else L.next=C,Em(L.update),L.update();else C.component=S.component,C.el=S.el,L.vnode=C},te=(S,C,k,L,P,F,j)=>{var $=()=>{if(S.isMounted){var{next:fe,bu:$e,u:Ze,parent:De,vnode:gt}=S,or=fe,kt;gr(S,!1),fe?(fe.el=gt.el,W(S,fe,j)):fe=gt,$e&&Io($e),(kt=fe.props&&fe.props.onVnodeBeforeUpdate)&&yt(kt,De,fe,gt),gr(S,!0);var Lr=ss(S),$t=S.subTree;S.subTree=Lr,x($t,Lr,v($t.el),nt($t),S,P,F),fe.el=Lr.el,or===null&&Rm(S,Lr.el),Ze&&qe(Ze,P),(kt=fe.props&&fe.props.onVnodeUpdated)&&qe(()=>yt(kt,De,fe,gt),P)}else{var J,{el:Z,props:X}=C,{bm:ce,m:Be,parent:Te}=S,A=us(C);if(gr(S,!1),ce&&Io(ce),!A&&(J=X&&X.onVnodeBeforeMount)&&yt(J,Te,C),gr(S,!0),Z&&ca){var Y=()=>{S.subTree=ss(S),ca(Z,S.subTree,S,P,null)};A?C.type.__asyncLoader().then(()=>!S.isUnmounted&&Y()):Y()}else{var q=S.subTree=ss(S);x(null,q,k,L,S,P,F),C.el=q.el}if(Be&&qe(Be,P),!A&&(J=X&&X.onVnodeMounted)){var he=C;qe(()=>yt(J,Te,he),P)}C.shapeFlag&256&&S.a&&qe(S.a,P),S.isMounted=!0,C=k=L=null}},z=S.effect=new qo($,()=>xf(S.update),S.scope),D=S.update=z.run.bind(z);D.id=S.uid,gr(S,!0),D()},W=(S,C,k)=>{C.component=S;var L=S.vnode.props;S.vnode=C,S.next=null,Jm(S,C.props,L,k),t_(S,C.children,k),zr(),ns(void 0,S.update),cr()},G=function(S,C,k,L,P,F,j,$){var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,D=S&&S.children,J=S?S.shapeFlag:0,Z=C.children,{patchFlag:X,shapeFlag:ce}=C;if(X>0){if(X&128){Se(D,Z,k,L,P,F,j,$,z);return}else if(X&256){ae(D,Z,k,L,P,F,j,$,z);return}}ce&8?(J&16&&ke(D,P,F),Z!==D&&f(k,Z)):J&16?ce&16?Se(D,Z,k,L,P,F,j,$,z):ke(D,P,F,!0):(J&8&&f(k,""),ce&16&&O(Z,k,L,P,F,j,$,z))},ae=(S,C,k,L,P,F,j,$,z)=>{S=S||di,C=C||di;var D=S.length,J=C.length,Z=Math.min(D,J),X;for(X=0;X<Z;X++){var ce=C[X]=z?qt(C[X]):xt(C[X]);x(S[X],ce,k,null,P,F,j,$,z)}D>J?ke(S,P,F,!0,!1,Z):O(C,k,L,P,F,j,$,z,Z)},Se=(S,C,k,L,P,F,j,$,z)=>{for(var D=0,J=C.length,Z=S.length-1,X=J-1;D<=Z&&D<=X;){var ce=S[D],Be=C[D]=z?qt(C[D]):xt(C[D]);if(Mi(ce,Be))x(ce,Be,k,null,P,F,j,$,z);else break;D++}for(;D<=Z&&D<=X;){var Te=S[Z],A=C[X]=z?qt(C[X]):xt(C[X]);if(Mi(Te,A))x(Te,A,k,null,P,F,j,$,z);else break;Z--,X--}if(D>Z){if(D<=X)for(var Y=X+1,q=Y<J?C[Y].el:L;D<=X;)x(null,C[D]=z?qt(C[D]):xt(C[D]),k,q,P,F,j,$,z),D++}else if(D>X)for(;D<=Z;)K(S[D],P,F,!0),D++;else{var he=D,fe=D,$e=new Map;for(D=fe;D<=X;D++){var Ze=C[D]=z?qt(C[D]):xt(C[D]);Ze.key!=null&&$e.set(Ze.key,D)}var De,gt=0,or=X-fe+1,kt=!1,Lr=0,$t=new Array(or);for(D=0;D<or;D++)$t[D]=0;for(D=he;D<=Z;D++){var fi=S[D];if(gt>=or){K(fi,P,F,!0);continue}var Pr=void 0;if(fi.key!=null)Pr=$e.get(fi.key);else for(De=fe;De<=X;De++)if($t[De-fe]===0&&Mi(fi,C[De])){Pr=De;break}Pr===void 0?K(fi,P,F,!0):($t[Pr-fe]=D+1,Pr>=Lr?Lr=Pr:kt=!0,x(fi,C[Pr],k,null,P,F,j,$,z),gt++)}var $h=kt?o_($t):di;for(De=$h.length-1,D=or-1;D>=0;D--){var Bl=fe+D,Fh=C[Bl],zh=Bl+1<J?C[Bl+1].el:L;$t[D]===0?x(null,Fh,k,zh,P,F,j,$,z):kt&&(De<0||D!==$h[De]?se(Fh,k,zh,2):De--)}}},se=function(S,C,k,L){var P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,{el:F,type:j,transition:$,children:z,shapeFlag:D}=S;if(D&6){se(S.component.subTree,C,k,L);return}if(D&128){S.suspense.move(C,k,L);return}if(D&64){j.move(S,C,k,Ne);return}if(j===wt){i(F,C,k);for(var J=0;J<z.length;J++)se(z[J],C,k,L);i(S.anchor,C,k);return}if(j===ms){h(S,C,k);return}var Z=L!==2&&D&1&&$;if(Z)if(L===0)$.beforeEnter(F),i(F,C,k),qe(()=>$.enter(F),P);else{var{leave:X,delayLeave:ce,afterLeave:Be}=$,Te=()=>i(F,C,k),A=()=>{X(F,()=>{Te(),Be&&Be()})};ce?ce(F,Te,A):A()}else i(F,C,k)},K=function(S,C,k){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,{type:F,props:j,ref:$,children:z,dynamicChildren:D,shapeFlag:J,patchFlag:Z,dirs:X}=S;if($!=null&&gs($,null,k,S,!0),J&256){C.ctx.deactivate(S);return}var ce=J&1&&X,Be=!us(S),Te;if(Be&&(Te=j&&j.onVnodeBeforeUnmount)&&yt(Te,C,S),J&6)Ie(S.component,k,L);else{if(J&128){S.suspense.unmount(k,L);return}ce&&hr(S,null,C,"beforeUnmount"),J&64?S.type.remove(S,C,k,P,Ne,L):D&&(F!==wt||Z>0&&Z&64)?ke(D,C,k,!1,!0):(F===wt&&Z&(128|256)||!P&&J&16)&&ke(z,C,k),L&&ie(S)}(Be&&(Te=j&&j.onVnodeUnmounted)||ce)&&qe(()=>{Te&&yt(Te,C,S),ce&&hr(S,null,C,"unmounted")},k)},ie=S=>{var{type:C,el:k,anchor:L,transition:P}=S;if(C===wt){le(k,L);return}if(C===ms){w(S);return}var F=()=>{a(k),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(S.shapeFlag&1&&P&&!P.persisted){var{leave:j,delayLeave:$}=P,z=()=>j(k,F);$?$(S.el,F,z):z()}else F()},le=(S,C)=>{for(var k;S!==C;)k=m(S),a(S),S=k;a(C)},Ie=(S,C,k)=>{var{bum:L,scope:P,update:F,subTree:j,um:$}=S;L&&Io(L),P.stop(),F&&(F.active=!1,K(j,S,C,k)),$&&qe($,C),qe(()=>{S.isUnmounted=!0},C),C&&C.pendingBranch&&!C.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===C.pendingId&&(C.deps--,C.deps===0&&C.resolve())},ke=function(S,C,k){for(var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,j=F;j<S.length;j++)K(S[j],C,k,L,P)},nt=S=>S.shapeFlag&6?nt(S.component.subTree):S.shapeFlag&128?S.suspense.next():m(S.anchor||S.el),nr=(S,C,k)=>{if(S==null)C._vnode&&K(C._vnode,null,null,!0);else{var L=C.__vueParent;x(C._vnode||null,S,C,null,L,null,k)}C._vnode=S},Ne={p:x,um:K,m:se,r:ie,mt:B,mc:O,pc:G,pbc:R,n:nt,o:e},fa,ca;return t&&([fa,ca]=t(Ne)),{render:nr,hydrate:fa,createApp:i_(nr,fa)}}function gr(e,t){var{effect:r,update:i}=e;r.allowRecurse=i.allowRecurse=t}function Xf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=e.children,a=t.children;if(ne(i)&&ne(a))for(var n=0;n<i.length;n++){var o=i[n],s=a[n];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[n]=qt(a[n]),s.el=o.el),r||Xf(o,s))}}function o_(e){var t=e.slice(),r=[0],i,a,n,o,s,u=e.length;for(i=0;i<u;i++){var l=e[i];if(l!==0){if(a=r[r.length-1],e[a]<l){t[i]=a,r.push(i);continue}for(n=0,o=r.length-1;n<o;)s=n+o>>1,e[r[s]]<l?n=s+1:o=s;l<e[r[n]]&&(n>0&&(t[i]=r[n-1]),r[n]=i)}}for(n=r.length,o=r[n-1];n-- >0;)r[n]=o,o=t[o];return r}var s_=e=>e.__isTeleport,l_=Symbol(),wt=Symbol(void 0),ps=Symbol(void 0),jr=Symbol(void 0),ms=Symbol(void 0),Zf=null,Kf=1;function Gf(e){Kf+=e}function tn(e){return e?e.__v_isVNode===!0:!1}function Mi(e,t){return e.type===t.type&&e.key===t.key}var rn="__vInternal",Jf=e=>{var{key:t}=e;return t!=null?t:null},an=e=>{var{ref:t,ref_key:r,ref_for:i}=e;return t!=null?ye(t)||Ve(t)||oe(t)?{i:ct,r:t,k:r,f:!!i}:t:null};function u_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e===wt?0:1,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jf(t),ref:t&&an(t),scopeId:Of,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null};return s?(_s(u,r),n&128&&e.normalize(u)):r&&(u.shapeFlag|=ye(r)?8:16),Kf>0&&!o&&Zf&&(u.patchFlag>0||n&6)&&u.patchFlag!==32&&Zf.push(u),u}var I=f_;function f_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if((!e||e===l_)&&(e=jr),tn(e)){var o=Ri(e,t,!0);return r&&_s(o,r),o}if(x_(e)&&(e=e.__vccOpts),t){t=c_(t);var{class:s,style:u}=t;s&&!ye(s)&&(t.class=yo(s)),He(u)&&(hf(u)&&!ne(u)&&(u=ve({},u)),t.style=xo(u))}var l=ye(e)?1:Lm(e)?128:s_(e)?64:He(e)?4:oe(e)?2:0;return u_(e,t,r,i,a,l,n,!0)}function c_(e){return e?hf(e)||rn in e?ve({},e):e:null}function Ri(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{props:i,ref:a,patchFlag:n,children:o}=e,s=t?et(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Jf(s),ref:t&&t.ref?r&&a?ne(a)?a.concat(an(t)):[a,an(t)]:an(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==wt?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ri(e.ssContent),ssFallback:e.ssFallback&&Ri(e.ssFallback),el:e.el,anchor:e.anchor};return u}function v_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return I(ps,null,e,t)}function xt(e){return e==null||typeof e=="boolean"?I(jr):ne(e)?I(wt,null,e.slice()):typeof e=="object"?qt(e):I(ps,null,String(e))}function qt(e){return e.el===null||e.memo?e:Ri(e)}function _s(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(ne(t))r=16;else if(typeof t=="object")if(i&(1|64)){var a=t.default;a&&(a._c&&(a._d=!1),_s(e,a()),a._c&&(a._d=!0));return}else{r=32;var n=t._;!n&&!(rn in t)?t._ctx=ct:n===3&&ct&&(ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:ct},r=32):(t=String(t),i&64?(r=16,t=[v_(t)]):r=8);e.children=t,e.shapeFlag|=r}function et(){for(var e={},t=0;t<arguments.length;t++){var r=t<0||arguments.length<=t?void 0:arguments[t];for(var i in r)if(i==="class")e.class!==r.class&&(e.class=yo([e.class,r.class]));else if(i==="style")e.style=xo([e.style,r.style]);else if(Ia(i)){var a=e[i],n=r[i];a!==n&&!(ne(a)&&a.includes(n))&&(e[i]=a?[].concat(a,n):n)}else i!==""&&(e[i]=r[i])}return e}function yt(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ft(e,t,7,[r,i])}var bs=e=>e?Qf(e)?ws(e)||e.proxy:bs(e.parent):null,nn=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bs(e.parent),$root:e=>bs(e.root),$emit:e=>e.emit,$options:e=>Df(e),$forceUpdate:e=>()=>xf(e.update),$nextTick:e=>Vr.bind(e.proxy),$watch:e=>Dm.bind(e)}),d_={get(e,t){var{_:r}=e,{ctx:i,setupState:a,data:n,props:o,accessCache:s,type:u,appContext:l}=r,f;if(t[0]!=="$"){var v=s[t];if(v!==void 0)switch(v){case 1:return a[t];case 2:return n[t];case 4:return i[t];case 3:return o[t]}else{if(a!==xe&&re(a,t))return s[t]=1,a[t];if(n!==xe&&re(n,t))return s[t]=2,n[t];if((f=r.propsOptions[0])&&re(f,t))return s[t]=3,o[t];if(i!==xe&&re(i,t))return s[t]=4,i[t];cs&&(s[t]=0)}}var m=nn[t],d,_;if(m)return t==="$attrs"&&Je(r,"get",t),m(r);if((d=u.__cssModules)&&(d=d[t]))return d;if(i!==xe&&re(i,t))return s[t]=4,i[t];if(_=l.config.globalProperties,re(_,t))return _[t]},set(e,t,r){var{_:i}=e,{data:a,setupState:n,ctx:o}=i;if(n!==xe&&re(n,t))n[t]=r;else if(a!==xe&&re(a,t))a[t]=r;else if(re(i.props,t))return!1;return t[0]==="$"&&t.slice(1)in i?!1:(o[t]=r,!0)},has(e,t){var{_:{data:r,setupState:i,accessCache:a,ctx:n,appContext:o,propsOptions:s}}=e,u;return!!a[t]||r!==xe&&re(r,t)||i!==xe&&re(i,t)||(u=s[0])&&re(u,t)||re(n,t)||re(nn,t)||re(o.config.globalProperties,t)}},h_=qf(),g_=0;function p_(e,t,r){var i=e.type,a=(t?t.appContext:e.appContext)||h_,n={uid:g_++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new W0(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ff(i,a),emitsOptions:Cf(i,a),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:i.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return n.ctx={_:n},n.root=t?t.root:n,n.emit=Om.bind(null,n),e.ce&&e.ce(n),n}var ze=null,Pt=()=>ze||ct,Yr=e=>{ze=e,e.scope.on()},pr=()=>{ze&&ze.scope.off(),ze=null};function Qf(e){return e.vnode.shapeFlag&4}var Li=!1;function m_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Li=t;var{props:r,children:i}=e.vnode,a=Qf(e);Gm(e,r,a,t),e_(e,i);var n=a?__(e,t):void 0;return Li=!1,n}function __(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=Za(new Proxy(e.ctx,d_));var{setup:i}=r;if(i){var a=e.setupContext=i.length>1?w_(e):null;Yr(e),zr();var n=Vt(i,e,0,[e.props,a]);if(cr(),pr(),Tu(n)){if(n.then(pr,pr),t)return n.then(o=>{ec(e,o,t)}).catch(o=>{Ka(o,e,0)});e.asyncDep=n}else ec(e,n,t)}else rc(e,t)}function ec(e,t,r){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)&&(e.setupState=_f(t)),rc(e,r)}var tc;function rc(e,t,r){var i=e.type;if(!e.render){if(!t&&tc&&!i.render){var a=i.template;if(a){var{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:u}=i,l=ve(ve({isCustomElement:n,delimiters:s},o),u);i.render=tc(a,l)}}e.render=i.render||pt}Yr(e),zr(),Ym(e),cr(),pr()}function b_(e){return new Proxy(e.attrs,{get(t,r){return Je(e,"get","$attrs"),t[r]}})}function w_(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=b_(e))},slots:e.slots,emit:e.emit,expose:t}}function ws(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(_f(Za(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in nn)return nn[r](e)}}))}function x_(e){return oe(e)&&"__vccOpts"in e}var ee=(e,t)=>bf(e,t,Li);function y_(e,t,r){var i=arguments.length;return i===2?He(t)&&!ne(t)?tn(t)?I(e,null,[t]):I(e,t):I(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&tn(r)&&(r=[r]),I(e,t,r))}var S_="3.2.27",E_="http://www.w3.org/2000/svg",mr=typeof document!="undefined"?document:null,ic=mr&&mr.createElement("template"),T_={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var a=t?mr.createElementNS(E_,e):mr.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:e=>mr.createTextNode(e),createComment:e=>mr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i,a,n){var o=r?r.previousSibling:t.lastChild;if(a&&n)for(;t.insertBefore(a.cloneNode(!0),r),!(a===n||!(a=a.nextSibling)););else{ic.innerHTML=i?"<svg>".concat(e,"</svg>"):e;var s=ic.content;if(i){for(var u=s.firstChild;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function C_(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function O_(e,t,r){var i=e.style,a=ye(r);if(r&&!a){for(var n in r)xs(i,n,r[n]);if(t&&!ye(t))for(var o in t)r[o]==null&&xs(i,o,"")}else{var s=i.display;a?t!==r&&(i.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=s)}}var ac=/\s*!important$/;function xs(e,t,r){if(ne(r))r.forEach(a=>xs(e,t,a));else if(r=k_(r),t.startsWith("--"))e.setProperty(t,r);else{var i=A_(e,t);ac.test(r)?e.setProperty(Ke(i),r.replace(ac,""),"important"):e[i]=r}}var nc=["Webkit","Moz","ms"],ys={};function A_(e,t){var r=ys[t];if(r)return r;var i=zt(t);if(i!=="filter"&&i in e)return ys[t]=i;i=Ra(i);for(var a=0;a<nc.length;a++){var n=nc[a]+i;if(n in e)return ys[t]=n}return t}var I_=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,k_=e=>typeof rpx2px!="function"?e:ye(e)?e.replace(I_,(t,r)=>rpx2px(r)+"px"):e,oc="http://www.w3.org/1999/xlink";function M_(e,t,r,i,a){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(oc,t.slice(6,t.length)):e.setAttributeNS(oc,t,r);else{var n=mp(t);r==null||n&&!Su(r)?e.removeAttribute(t):e.setAttribute(t,n?"":r)}}function R_(e,t,r,i,a,n,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,a,n),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;var s=r==null?"":r;(e.value!==s||e.tagName==="OPTION")&&(e.value=s),r==null&&e.removeAttribute(t);return}if(r===""||r==null){var u=typeof e[t];if(u==="boolean"){e[t]=Su(r);return}else if(r==null&&u==="string"){e[t]="",e.removeAttribute(t);return}else if(u==="number"){try{e[t]=0}catch(l){}e.removeAttribute(t);return}}try{e[t]=r}catch(l){}}var on=Date.now,sc=!1;if(typeof window!="undefined"){on()>document.createEvent("Event").timeStamp&&(on=()=>performance.now());var lc=navigator.userAgent.match(/firefox\/(\d+)/i);sc=!!(lc&&Number(lc[1])<=53)}var Ss=0,L_=Promise.resolve(),P_=()=>{Ss=0},N_=()=>Ss||(L_.then(P_),Ss=on());function D_(e,t,r,i){e.addEventListener(t,r,i)}function B_(e,t,r,i){e.removeEventListener(t,r,i)}function $_(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=e._vei||(e._vei={}),o=n[t];if(i&&o)o.value=i;else{var[s,u]=F_(t);if(i){var l=n[t]=z_(i,a);D_(e,s,l,u)}else o&&(B_(e,s,o,u),n[t]=void 0)}}var uc=/(?:Once|Passive|Capture)$/;function F_(e){var t;if(uc.test(e)){t={};for(var r;r=e.match(uc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ke(e.slice(2)),t]}function z_(e,t){var r=i=>{var a=i.timeStamp||on();(sc||a>=r.attached-1)&&ft(U_(i,r.value),t,5,[i])};return r.value=e,r.attached=N_(),r}function U_(e,t){if(ne(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>a=>!a._stopped&&i(a))}else return t}var fc=/^on[a-z]/,H_=function(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,n=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0;t==="class"?C_(e,i,a):t==="style"?O_(e,r,i):Ia(t)?So(t)||$_(e,t,r,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):W_(e,t,i,a))?R_(e,t,i,n,o,s,u):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),M_(e,t,i,a))};function W_(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&fc.test(t)&&oe(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||fc.test(t)&&ye(r)?!1:t in e}var V_=["ctrl","shift","alt","meta"],j_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>V_.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},Es=(e,t)=>function(r){for(var i=0;i<t.length;i++){var a=j_[t[i]];if(a&&a(r,t))return}for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return e(r,...o)},Pi={beforeMount(e,t,r){var{value:i}=t,{transition:a}=r;e._vod=e.style.display==="none"?"":e.style.display,a&&i?a.beforeEnter(e):Ni(e,i)},mounted(e,t,r){var{value:i}=t,{transition:a}=r;a&&i&&a.enter(e)},updated(e,t,r){var{value:i,oldValue:a}=t,{transition:n}=r;!i!=!a&&(n?i?(n.beforeEnter(e),Ni(e,!0),n.enter(e)):n.leave(e,()=>{Ni(e,!1)}):Ni(e,i))},beforeUnmount(e,t){var{value:r}=t;Ni(e,r)}};function Ni(e,t){e.style.display=t?e._vod:"none"}var Y_=ve({patchProp:H_},T_),cc;function q_(){return cc||(cc=a_(Y_))}var vc=function(){var e=q_().createApp(...arguments),{mount:t}=e;return e.mount=r=>{var i=X_(r);if(!!i){var a=e._component;!oe(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";var n=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),n}},e};function X_(e){if(ye(e)){var t=document.querySelector(e);return t}return e}var dc=["top","left","right","bottom"],Ts,sn={},ot;function Cs(){return!("CSS"in window)||typeof CSS.supports!="function"?ot="":CSS.supports("top: env(safe-area-inset-top)")?ot="env":CSS.supports("top: constant(safe-area-inset-top)")?ot="constant":ot="",ot}function hc(){if(ot=typeof ot=="string"?ot:Cs(),!ot){dc.forEach(function(s){sn[s]=0});return}function e(s,u){var l=s.style;Object.keys(u).forEach(function(f){var v=u[f];l[f]=v})}var t=[];function r(s){s?t.push(s):t.forEach(function(u){u()})}var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,a)}catch(s){}function n(s,u){var l=document.createElement("div"),f=document.createElement("div"),v=document.createElement("div"),m=document.createElement("div"),d=100,_=1e4,b={position:"absolute",width:d+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:ot+"(safe-area-inset-"+u+")"};e(l,b),e(f,b),e(v,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(m,{transition:"0s",animation:"none",width:"250%",height:"250%"}),l.appendChild(v),f.appendChild(m),s.appendChild(l),s.appendChild(f),r(function(){l.scrollTop=f.scrollTop=_;var p=l.scrollTop,g=f.scrollTop;function c(){this.scrollTop!==(this===l?p:g)&&(l.scrollTop=f.scrollTop=_,p=l.scrollTop,g=f.scrollTop,Z_(u))}l.addEventListener("scroll",c,i),f.addEventListener("scroll",c,i)});var x=getComputedStyle(l);Object.defineProperty(sn,u,{configurable:!0,get:function(){return parseFloat(x.paddingBottom)}})}var o=document.createElement("div");e(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),dc.forEach(function(s){n(o,s)}),document.body.appendChild(o),r(),Ts=!0}function ln(e){return Ts||hc(),sn[e]}var un=[];function Z_(e){un.length||setTimeout(function(){var t={};un.forEach(function(r){t[r]=sn[r]}),un.length=0,fn.forEach(function(r){r(t)})},0),un.push(e)}var fn=[];function K_(e){!Cs()||(Ts||hc(),typeof e=="function"&&fn.push(e))}function G_(e){var t=fn.indexOf(e);t>=0&&fn.splice(t,1)}var J_={get support(){return(typeof ot=="string"?ot:Cs()).length!=0},get top(){return ln("top")},get left(){return ln("left")},get right(){return ln("right")},get bottom(){return ln("bottom")},onChange:K_,offChange:G_},cn=J_,gc=Es(()=>{},["prevent"]);function vn(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Os(){var e=document.documentElement.style,t=vn(e,"--window-top");return t?t+cn.top:0}function Q_(){var e=document.documentElement.style,t=Os(),r=vn(e,"--window-bottom"),i=vn(e,"--window-left"),a=vn(e,"--window-right");return{top:t,bottom:r?r+cn.bottom:0,left:i?i+cn.left:0,right:a?a+cn.right:0}}function eb(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function dn(e){return Symbol(e)}function pc(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function _r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t)return tb(e);if(typeof e=="string"){var r=parseInt(e)||0;return pc(e)?uni.upx2px(r):r}return e}function tb(e){return pc(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var rb="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",ib="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",ab="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",nb="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",ob="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",hn="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",sb="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",lb="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",ub="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function gn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#000",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:27;return I("svg",{width:r,height:r,viewBox:"0 0 32 32"},[I("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function pn(){return Xt()}function fb(){return window.__PAGE_INFO__}function Xt(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function cb(e){e.preventDefault()}var mc,_c=0;function vb(e){var{onPageScroll:t,onReachBottom:r,onReachBottomDistance:i}=e,a=!1,n=!1,o=!0,s=()=>{var{scrollHeight:l}=document.documentElement,f=window.innerHeight,v=window.scrollY,m=v>0&&l>f&&v+f+i>=l,d=Math.abs(l-_c)>i;return m&&(!n||d)?(_c=l,n=!0,!0):(!m&&n&&(n=!1),!1)},u=()=>{t&&t(window.pageYOffset);function l(){if(s())return r&&r(),o=!1,setTimeout(function(){o=!0},350),!0}r&&o&&(l()||(mc=setTimeout(l,300))),a=!1};return function(){clearTimeout(mc),a||requestAnimationFrame(u),a=!0}}function As(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return As(e,t.substr(2));for(var r=t.split("/"),i=r.length,a=0;a<i&&r[a]==="..";a++);r.splice(0,a),t=r.join("/");var n=e.length>0?e.split("/"):[];return n.splice(n.length-a-1,a+1),$o(n.concat(r).join("/"))}class db{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=bc(this.$el.querySelector(t));if(!!r)return Is(r)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),a=0;a<i.length;a++){var n=bc(i[a]);n&&r.push(Is(n))}return r}forceUpdate(t){t==="class"?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():t==="style"&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){var{__wxsAddClass:t}=this.$el;t.length&&(this.$el.className=t.join(" "))}updateWxsStyle(){var{__wxsStyle:t}=this.$el;t&&this.$el.setAttribute("style",xp(t))}setStyle(t){return!this.$el||!t?this:(typeof t=="string"&&(t=Eu(t)),mt(t)&&(this.$el.__wxsStyle=t,this.forceUpdate("style")),this)}addClass(t){if(!this.$el||!t)return this;var r=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return r.indexOf(t)===-1&&(r.push(t),this.forceUpdate("class")),this}removeClass(t){if(!this.$el||!t)return this;var{__wxsAddClass:r}=this.$el;if(r){var i=r.indexOf(t);i>-1&&r.splice(i,1)}var a=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return a.indexOf(t)===-1&&(a.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.$vm[t];oe(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(Bp,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,a)=>(i[a]=r[a],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Is(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new db(e)),e.$el.__wxsComponentDescriptor}function Di(e,t){return Is(e)}function bc(e){if(!!e)return qr(e)}function qr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:a,__wxsClassChanged:n}=e,o,s;a&&(e.__wxsStyleChanged=!1,t&&(s=()=>{Object.keys(t).forEach(u=>{e.style[u]=t[u]})})),n&&(e.__wxsClassChanged=!1,o=()=>{i&&i.forEach(u=>{e.classList.remove(u)}),r&&r.forEach(u=>{e.classList.add(u)})}),requestAnimationFrame(()=>{o&&o(),s&&s()})}})}var hb=e=>e.type==="click";function wc(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];if(i.tagName.indexOf("UNI-")!==0)return[e];var a=xc(e);if(hb(e))pb(a,e);else if(e instanceof TouchEvent){var n=Os();a.touches=yc(e.touches,n),a.changedTouches=yc(e.changedTouches,n)}return[a]}function gb(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function xc(e){var{type:t,timeStamp:r,target:i,currentTarget:a}=e,n={type:t,timeStamp:r,target:Lo(gb(i)),detail:{},currentTarget:Lo(a)};return e._stopped&&(n._stopped=!0),e.type.startsWith("touch")&&(n.touches=e.touches,n.changedTouches=e.changedTouches),n}function pb(e,t){var{x:r,y:i}=t,a=Os();e.detail={x:r,y:i-a},e.touches=e.changedTouches=[mb(t,a)]}function mb(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function yc(e,t){for(var r=[],i=0;i<e.length;i++){var{identifier:a,pageX:n,pageY:o,clientX:s,clientY:u,force:l}=e[i];r.push({identifier:a,pageX:n,pageY:o-t,clientX:s,clientY:u-t,force:l||0})}return r}var Sc="vdSync",_b="__uniapp__service",Ec="onWebviewReady",bb=0,wb="webviewInserted",xb="webviewRemoved",yb="webviewId",Sb="setLocale",Tc=ve(R0,{publishHandler:Eb});function Eb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Xt()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:r}},_b)}function Tb(e,t){var r=e[0];if(!(!t||!mt(t.formatArgs)&&mt(r)))for(var i=t.formatArgs,a=Object.keys(i),n=0;n<a.length;n++){var o=a[n],s=i[o];if(oe(s)){var u=s(e[0][o],r);if(ye(u))return u}else re(r,o)||(r[o]=s)}}function Cb(e,t,r,i){if(i&&i.beforeInvoke){var a=i.beforeInvoke(t);if(ye(a))return a}var n=Tb(t,i);if(n)return n}function Ob(e,t,r,i){return function(){for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];var s=Cb(e,n,r,i);if(s)throw new Error(s);return t.apply(null,n)}}function Ab(e,t,r,i){return Ob(e,t,void 0,i)}function Cc(){if(typeof __SYSTEM_INFO__!="undefined")return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize();return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}function vt(e){if(e.indexOf("//")===0)return"https:"+e;if(Mp.test(e)||Rp.test(e))return e;if(Ib(e))return"file://"+Oc(e);var t="file://"+Oc("_www");if(e.indexOf("/")===0)return e.startsWith("/storage/")||e.startsWith("/sdcard/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(e.indexOf("../")===0||e.indexOf("./")===0){if(typeof __id__=="string")return t+As($o(__id__),e);var r=fb();if(r)return t+As($o(r.route),e)}return e}var Oc=n0(e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Ib(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}var kb=0;function Mb(e,t,r){var i="".concat(Date.now()).concat(kb++),a=new plus.nativeObj.Bitmap("bitmap".concat(i));a.loadBase64Data(e,function(){var o=e.match(/data:image\/(\S+?);/)||[null,"png"],s;o[1]&&(s=o[1].replace("jpeg","jpg"));var u="".concat(t,"/").concat(i,".").concat(s);a.save(u,{overwrite:!0,quality:100,format:s},function(){n(),r(null,u)},function(l){n(),r(l)})},function(o){n(),r(o)});function n(){a.clear()}}var Nt={};(function(e){var t=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function r(n,o){return Object.prototype.hasOwnProperty.call(n,o)}e.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(!!s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var u in s)r(s,u)&&(n[u]=s[u])}}return n},e.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var i={arraySet:function(n,o,s,u,l){if(o.subarray&&n.subarray){n.set(o.subarray(s,s+u),l);return}for(var f=0;f<u;f++)n[l+f]=o[s+f]},flattenChunks:function(n){var o,s,u,l,f,v;for(u=0,o=0,s=n.length;o<s;o++)u+=n[o].length;for(v=new Uint8Array(u),l=0,o=0,s=n.length;o<s;o++)f=n[o],v.set(f,l),l+=f.length;return v}},a={arraySet:function(n,o,s,u,l){for(var f=0;f<u;f++)n[l+f]=o[s+f]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(Nt);var Bi={},St={},Xr={},Rb=Nt,Lb=4,Ac=0,Ic=1,Pb=2;function Zr(e){for(var t=e.length;--t>=0;)e[t]=0}var Nb=0,kc=1,Db=2,Bb=3,$b=258,ks=29,$i=256,Fi=$i+1+ks,Kr=30,Ms=19,Mc=2*Fi+1,br=15,Rs=16,Fb=7,Ls=256,Rc=16,Lc=17,Pc=18,Ps=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],mn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],zb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Nc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ub=512,Dt=new Array((Fi+2)*2);Zr(Dt);var zi=new Array(Kr*2);Zr(zi);var Ui=new Array(Ub);Zr(Ui);var Hi=new Array($b-Bb+1);Zr(Hi);var Ns=new Array(ks);Zr(Ns);var _n=new Array(Kr);Zr(_n);function Ds(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var Dc,Bc,$c;function Bs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Fc(e){return e<256?Ui[e]:Ui[256+(e>>>7)]}function Wi(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Xe(e,t,r){e.bi_valid>Rs-r?(e.bi_buf|=t<<e.bi_valid&65535,Wi(e,e.bi_buf),e.bi_buf=t>>Rs-e.bi_valid,e.bi_valid+=r-Rs):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Et(e,t,r){Xe(e,r[t*2],r[t*2+1])}function zc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Hb(e){e.bi_valid===16?(Wi(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function Wb(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,n=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,l,f,v,m,d,_,b=0;for(m=0;m<=br;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Mc;l++)f=e.heap[l],m=r[r[f*2+1]*2+1]+1,m>u&&(m=u,b++),r[f*2+1]=m,!(f>i)&&(e.bl_count[m]++,d=0,f>=s&&(d=o[f-s]),_=r[f*2],e.opt_len+=_*(m+d),n&&(e.static_len+=_*(a[f*2+1]+d)));if(b!==0){do{for(m=u-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[u]--,b-=2}while(b>0);for(m=u;m!==0;m--)for(f=e.bl_count[m];f!==0;)v=e.heap[--l],!(v>i)&&(r[v*2+1]!==m&&(e.opt_len+=(m-r[v*2+1])*r[v*2],r[v*2+1]=m),f--)}}function Uc(e,t,r){var i=new Array(br+1),a=0,n,o;for(n=1;n<=br;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=zc(i[s]++,s))}}function Vb(){var e,t,r,i,a,n=new Array(br+1);for(r=0,i=0;i<ks-1;i++)for(Ns[i]=r,e=0;e<1<<Ps[i];e++)Hi[r++]=i;for(Hi[r-1]=i,a=0,i=0;i<16;i++)for(_n[i]=a,e=0;e<1<<mn[i];e++)Ui[a++]=i;for(a>>=7;i<Kr;i++)for(_n[i]=a<<7,e=0;e<1<<mn[i]-7;e++)Ui[256+a++]=i;for(t=0;t<=br;t++)n[t]=0;for(e=0;e<=143;)Dt[e*2+1]=8,e++,n[8]++;for(;e<=255;)Dt[e*2+1]=9,e++,n[9]++;for(;e<=279;)Dt[e*2+1]=7,e++,n[7]++;for(;e<=287;)Dt[e*2+1]=8,e++,n[8]++;for(Uc(Dt,Fi+1,n),e=0;e<Kr;e++)zi[e*2+1]=5,zi[e*2]=zc(e,5);Dc=new Ds(Dt,Ps,$i+1,Fi,br),Bc=new Ds(zi,mn,0,Kr,br),$c=new Ds(new Array(0),zb,0,Ms,Fb)}function Hc(e){var t;for(t=0;t<Fi;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Kr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ms;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ls*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Wc(e){e.bi_valid>8?Wi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function jb(e,t,r,i){Wc(e),i&&(Wi(e,r),Wi(e,~r)),Rb.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function Vc(e,t,r,i){var a=t*2,n=r*2;return e[a]<e[n]||e[a]===e[n]&&i[t]<=i[r]}function $s(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&Vc(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Vc(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function jc(e,t,r){var i,a,n=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],a=e.pending_buf[e.l_buf+n],n++,i===0?Et(e,a,t):(o=Hi[a],Et(e,o+$i+1,t),s=Ps[o],s!==0&&(a-=Ns[o],Xe(e,a,s)),i--,o=Fc(i),Et(e,o,r),s=mn[o],s!==0&&(i-=_n[o],Xe(e,i,s)));while(n<e.last_lit);Et(e,Ls,t)}function Fs(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,n=t.stat_desc.elems,o,s,u=-1,l;for(e.heap_len=0,e.heap_max=Mc,o=0;o<n;o++)r[o*2]!==0?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=u<2?++u:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,a&&(e.static_len-=i[l*2+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)$s(e,r,o);l=n;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$s(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[l*2]=r[o*2]+r[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=l,e.heap[1]=l++,$s(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Wb(e,t),Uc(r,u,e.bl_count)}function Yc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)n=o,o=t[(i+1)*2+1],!(++s<u&&n===o)&&(s<l?e.bl_tree[n*2]+=s:n!==0?(n!==a&&e.bl_tree[n*2]++,e.bl_tree[Rc*2]++):s<=10?e.bl_tree[Lc*2]++:e.bl_tree[Pc*2]++,s=0,a=n,o===0?(u=138,l=3):n===o?(u=6,l=3):(u=7,l=4))}function qc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),i=0;i<=r;i++)if(n=o,o=t[(i+1)*2+1],!(++s<u&&n===o)){if(s<l)do Et(e,n,e.bl_tree);while(--s!=0);else n!==0?(n!==a&&(Et(e,n,e.bl_tree),s--),Et(e,Rc,e.bl_tree),Xe(e,s-3,2)):s<=10?(Et(e,Lc,e.bl_tree),Xe(e,s-3,3)):(Et(e,Pc,e.bl_tree),Xe(e,s-11,7));s=0,a=n,o===0?(u=138,l=3):n===o?(u=6,l=3):(u=7,l=4)}}function Yb(e){var t;for(Yc(e,e.dyn_ltree,e.l_desc.max_code),Yc(e,e.dyn_dtree,e.d_desc.max_code),Fs(e,e.bl_desc),t=Ms-1;t>=3&&e.bl_tree[Nc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function qb(e,t,r,i){var a;for(Xe(e,t-257,5),Xe(e,r-1,5),Xe(e,i-4,4),a=0;a<i;a++)Xe(e,e.bl_tree[Nc[a]*2+1],3);qc(e,e.dyn_ltree,t-1),qc(e,e.dyn_dtree,r-1)}function Xb(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Ac;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ic;for(r=32;r<$i;r++)if(e.dyn_ltree[r*2]!==0)return Ic;return Ac}var Xc=!1;function Zb(e){Xc||(Vb(),Xc=!0),e.l_desc=new Bs(e.dyn_ltree,Dc),e.d_desc=new Bs(e.dyn_dtree,Bc),e.bl_desc=new Bs(e.bl_tree,$c),e.bi_buf=0,e.bi_valid=0,Hc(e)}function Zc(e,t,r,i){Xe(e,(Nb<<1)+(i?1:0),3),jb(e,t,r,!0)}function Kb(e){Xe(e,kc<<1,3),Et(e,Ls,Dt),Hb(e)}function Gb(e,t,r,i){var a,n,o=0;e.level>0?(e.strm.data_type===Pb&&(e.strm.data_type=Xb(e)),Fs(e,e.l_desc),Fs(e,e.d_desc),o=Yb(e),a=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=a&&(a=n)):a=n=r+5,r+4<=a&&t!==-1?Zc(e,t,r,i):e.strategy===Lb||n===a?(Xe(e,(kc<<1)+(i?1:0),3),jc(e,Dt,zi)):(Xe(e,(Db<<1)+(i?1:0),3),qb(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),jc(e,e.dyn_ltree,e.dyn_dtree)),Hc(e),i&&Wc(e)}function Jb(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Hi[r]+$i+1)*2]++,e.dyn_dtree[Fc(t)*2]++),e.last_lit===e.lit_bufsize-1}Xr._tr_init=Zb,Xr._tr_stored_block=Zc,Xr._tr_flush_block=Gb,Xr._tr_tally=Jb,Xr._tr_align=Kb;function Qb(e,t,r,i){for(var a=e&65535|0,n=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do a=a+t[i++]|0,n=n+a|0;while(--o);a%=65521,n%=65521}return a|n<<16|0}var Kc=Qb;function ew(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var tw=ew();function rw(e,t,r,i){var a=tw,n=i+r;e^=-1;for(var o=i;o<n;o++)e=e>>>8^a[(e^t[o])&255];return e^-1}var Gc=rw,zs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ye=Nt,st=Xr,Jc=Kc,Zt=Gc,iw=zs,wr=0,aw=1,nw=3,Kt=4,Qc=5,Tt=0,ev=1,lt=-2,ow=-3,Us=-5,sw=-1,lw=1,bn=2,uw=3,fw=4,cw=0,vw=2,wn=8,dw=9,hw=15,gw=8,pw=29,mw=256,Hs=mw+1+pw,_w=30,bw=19,ww=2*Hs+1,xw=15,de=3,Gt=258,dt=Gt+de+1,yw=32,xn=42,Ws=69,yn=73,Sn=91,En=103,xr=113,Vi=666,Le=1,ji=2,yr=3,Gr=4,Sw=3;function Jt(e,t){return e.msg=iw[t],t}function tv(e){return(e<<1)-(e>4?9:0)}function Qt(e){for(var t=e.length;--t>=0;)e[t]=0}function er(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(Ye.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Ue(e,t){st._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,er(e.strm)}function pe(e,t){e.pending_buf[e.pending++]=t}function Yi(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Ew(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,Ye.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Jc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Zt(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function rv(e,t){var r=e.max_chain_length,i=e.strstart,a,n,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-dt?e.strstart-(e.w_size-dt):0,l=e.window,f=e.w_mask,v=e.prev,m=e.strstart+Gt,d=l[i+o-1],_=l[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(l[a+o]!==_||l[a+o-1]!==d||l[a]!==l[i]||l[++a]!==l[i+1])){i+=2,a++;do;while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<m);if(n=Gt-(m-i),i=m-Gt,n>o){if(e.match_start=t,o=n,n>=s)break;d=l[i+o-1],_=l[i+o]}}while((t=v[t&f])>u&&--r!=0);return o<=e.lookahead?o:e.lookahead}function Sr(e){var t=e.w_size,r,i,a,n,o;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-dt)){Ye.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);n+=t}if(e.strm.avail_in===0)break;if(i=Ew(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=i,e.lookahead+e.insert>=de)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+de-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<de)););}while(e.lookahead<dt&&e.strm.avail_in!==0)}function Tw(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Sr(e),e.lookahead===0&&t===wr)return Le;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Ue(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-dt&&(Ue(e,!1),e.strm.avail_out===0))return Le}return e.insert=0,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):(e.strstart>e.block_start&&(Ue(e,!1),e.strm.avail_out===0),Le)}function Vs(e,t){for(var r,i;;){if(e.lookahead<dt){if(Sr(e),e.lookahead<dt&&t===wr)return Le;if(e.lookahead===0)break}if(r=0,e.lookahead>=de&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-dt&&(e.match_length=rv(e,r)),e.match_length>=de)if(i=st._tr_tally(e,e.strstart-e.match_start,e.match_length-de),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=de){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!=0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=st._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ue(e,!1),e.strm.avail_out===0))return Le}return e.insert=e.strstart<de-1?e.strstart:de-1,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):e.last_lit&&(Ue(e,!1),e.strm.avail_out===0)?Le:ji}function Jr(e,t){for(var r,i,a;;){if(e.lookahead<dt){if(Sr(e),e.lookahead<dt&&t===wr)return Le;if(e.lookahead===0)break}if(r=0,e.lookahead>=de&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=de-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-dt&&(e.match_length=rv(e,r),e.match_length<=5&&(e.strategy===lw||e.match_length===de&&e.strstart-e.match_start>4096)&&(e.match_length=de-1)),e.prev_length>=de&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-de,i=st._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-de),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!=0);if(e.match_available=0,e.match_length=de-1,e.strstart++,i&&(Ue(e,!1),e.strm.avail_out===0))return Le}else if(e.match_available){if(i=st._tr_tally(e,0,e.window[e.strstart-1]),i&&Ue(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Le}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=st._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<de-1?e.strstart:de-1,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):e.last_lit&&(Ue(e,!1),e.strm.avail_out===0)?Le:ji}function Cw(e,t){for(var r,i,a,n,o=e.window;;){if(e.lookahead<=Gt){if(Sr(e),e.lookahead<=Gt&&t===wr)return Le;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=de&&e.strstart>0&&(a=e.strstart-1,i=o[a],i===o[++a]&&i===o[++a]&&i===o[++a])){n=e.strstart+Gt;do;while(i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&a<n);e.match_length=Gt-(n-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=de?(r=st._tr_tally(e,1,e.match_length-de),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=st._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ue(e,!1),e.strm.avail_out===0))return Le}return e.insert=0,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):e.last_lit&&(Ue(e,!1),e.strm.avail_out===0)?Le:ji}function Ow(e,t){for(var r;;){if(e.lookahead===0&&(Sr(e),e.lookahead===0)){if(t===wr)return Le;break}if(e.match_length=0,r=st._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ue(e,!1),e.strm.avail_out===0))return Le}return e.insert=0,t===Kt?(Ue(e,!0),e.strm.avail_out===0?yr:Gr):e.last_lit&&(Ue(e,!1),e.strm.avail_out===0)?Le:ji}function Ct(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var Qr;Qr=[new Ct(0,0,0,0,Tw),new Ct(4,4,8,4,Vs),new Ct(4,5,16,8,Vs),new Ct(4,6,32,32,Vs),new Ct(4,4,16,16,Jr),new Ct(8,16,32,32,Jr),new Ct(8,16,128,128,Jr),new Ct(8,32,128,256,Jr),new Ct(32,128,258,1024,Jr),new Ct(32,258,258,4096,Jr)];function Aw(e){e.window_size=2*e.w_size,Qt(e.head),e.max_lazy_match=Qr[e.level].max_lazy,e.good_match=Qr[e.level].good_length,e.nice_match=Qr[e.level].nice_length,e.max_chain_length=Qr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=de-1,e.match_available=0,e.ins_h=0}function Iw(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=wn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Ye.Buf16(ww*2),this.dyn_dtree=new Ye.Buf16((2*_w+1)*2),this.bl_tree=new Ye.Buf16((2*bw+1)*2),Qt(this.dyn_ltree),Qt(this.dyn_dtree),Qt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Ye.Buf16(xw+1),this.heap=new Ye.Buf16(2*Hs+1),Qt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Ye.Buf16(2*Hs+1),Qt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function iv(e){var t;return!e||!e.state?Jt(e,lt):(e.total_in=e.total_out=0,e.data_type=vw,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?xn:xr,e.adler=t.wrap===2?0:1,t.last_flush=wr,st._tr_init(t),Tt)}function av(e){var t=iv(e);return t===Tt&&Aw(e.state),t}function kw(e,t){return!e||!e.state||e.state.wrap!==2?lt:(e.state.gzhead=t,Tt)}function nv(e,t,r,i,a,n){if(!e)return lt;var o=1;if(t===sw&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),a<1||a>dw||r!==wn||i<8||i>15||t<0||t>9||n<0||n>fw)return Jt(e,lt);i===8&&(i=9);var s=new Iw;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+de-1)/de),s.window=new Ye.Buf8(s.w_size*2),s.head=new Ye.Buf16(s.hash_size),s.prev=new Ye.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Ye.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=(1+2)*s.lit_bufsize,s.level=t,s.strategy=n,s.method=r,av(e)}function Mw(e,t){return nv(e,t,wn,hw,gw,cw)}function Rw(e,t){var r,i,a,n;if(!e||!e.state||t>Qc||t<0)return e?Jt(e,lt):lt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Vi&&t!==Kt)return Jt(e,e.avail_out===0?Us:lt);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===xn)if(i.wrap===2)e.adler=0,pe(i,31),pe(i,139),pe(i,8),i.gzhead?(pe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),pe(i,i.gzhead.time&255),pe(i,i.gzhead.time>>8&255),pe(i,i.gzhead.time>>16&255),pe(i,i.gzhead.time>>24&255),pe(i,i.level===9?2:i.strategy>=bn||i.level<2?4:0),pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(pe(i,i.gzhead.extra.length&255),pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Zt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Ws):(pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,i.level===9?2:i.strategy>=bn||i.level<2?4:0),pe(i,Sw),i.status=xr);else{var o=wn+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=bn||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=yw),o+=31-o%31,i.status=xr,Yi(i,o),i.strstart!==0&&(Yi(i,e.adler>>>16),Yi(i,e.adler&65535)),e.adler=1}if(i.status===Ws)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),er(e),a=i.pending,i.pending===i.pending_buf_size));)pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=yn)}else i.status=yn;if(i.status===yn)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),er(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.name.length?n=i.gzhead.name.charCodeAt(i.gzindex++)&255:n=0,pe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.gzindex=0,i.status=Sn)}else i.status=Sn;if(i.status===Sn)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),er(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.comment.length?n=i.gzhead.comment.charCodeAt(i.gzindex++)&255:n=0,pe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Zt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.status=En)}else i.status=En;if(i.status===En&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&er(e),i.pending+2<=i.pending_buf_size&&(pe(i,e.adler&255),pe(i,e.adler>>8&255),e.adler=0,i.status=xr)):i.status=xr),i.pending!==0){if(er(e),e.avail_out===0)return i.last_flush=-1,Tt}else if(e.avail_in===0&&tv(t)<=tv(r)&&t!==Kt)return Jt(e,Us);if(i.status===Vi&&e.avail_in!==0)return Jt(e,Us);if(e.avail_in!==0||i.lookahead!==0||t!==wr&&i.status!==Vi){var u=i.strategy===bn?Ow(i,t):i.strategy===uw?Cw(i,t):Qr[i.level].func(i,t);if((u===yr||u===Gr)&&(i.status=Vi),u===Le||u===yr)return e.avail_out===0&&(i.last_flush=-1),Tt;if(u===ji&&(t===aw?st._tr_align(i):t!==Qc&&(st._tr_stored_block(i,0,0,!1),t===nw&&(Qt(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),er(e),e.avail_out===0))return i.last_flush=-1,Tt}return t!==Kt?Tt:i.wrap<=0?ev:(i.wrap===2?(pe(i,e.adler&255),pe(i,e.adler>>8&255),pe(i,e.adler>>16&255),pe(i,e.adler>>24&255),pe(i,e.total_in&255),pe(i,e.total_in>>8&255),pe(i,e.total_in>>16&255),pe(i,e.total_in>>24&255)):(Yi(i,e.adler>>>16),Yi(i,e.adler&65535)),er(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Tt:ev)}function Lw(e){var t;return!e||!e.state?lt:(t=e.state.status,t!==xn&&t!==Ws&&t!==yn&&t!==Sn&&t!==En&&t!==xr&&t!==Vi?Jt(e,lt):(e.state=null,t===xr?Jt(e,ow):Tt))}function Pw(e,t){var r=t.length,i,a,n,o,s,u,l,f;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==xn||i.lookahead))return lt;for(o===1&&(e.adler=Jc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(Qt(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new Ye.Buf8(i.w_size),Ye.arraySet(f,t,r-i.w_size,i.w_size,0),t=f,r=i.w_size),s=e.avail_in,u=e.next_in,l=e.input,e.avail_in=r,e.next_in=0,e.input=t,Sr(i);i.lookahead>=de;){a=i.strstart,n=i.lookahead-(de-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+de-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--n);i.strstart=a,i.lookahead=de-1,Sr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=de-1,i.match_available=0,e.next_in=u,e.input=l,e.avail_in=s,i.wrap=o,Tt}St.deflateInit=Mw,St.deflateInit2=nv,St.deflateReset=av,St.deflateResetKeep=iv,St.deflateSetHeader=kw,St.deflate=Rw,St.deflateEnd=Lw,St.deflateSetDictionary=Pw,St.deflateInfo="pako deflate (from Nodeca project)";var Er={},Tn=Nt,ov=!0,sv=!0;try{String.fromCharCode.apply(null,[0])}catch(e){ov=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){sv=!1}for(var qi=new Tn.Buf8(256),tr=0;tr<256;tr++)qi[tr]=tr>=252?6:tr>=248?5:tr>=240?4:tr>=224?3:tr>=192?2:1;qi[254]=qi[254]=1,Er.string2buf=function(e){var t,r,i,a,n,o=e.length,s=0;for(a=0;a<o;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<o&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Tn.Buf8(s),n=0,a=0;n<s;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<o&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[n++]=r:r<2048?(t[n++]=192|r>>>6,t[n++]=128|r&63):r<65536?(t[n++]=224|r>>>12,t[n++]=128|r>>>6&63,t[n++]=128|r&63):(t[n++]=240|r>>>18,t[n++]=128|r>>>12&63,t[n++]=128|r>>>6&63,t[n++]=128|r&63);return t};function lv(e,t){if(t<65534&&(e.subarray&&sv||!e.subarray&&ov))return String.fromCharCode.apply(null,Tn.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Er.buf2binstring=function(e){return lv(e,e.length)},Er.binstring2buf=function(e){for(var t=new Tn.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},Er.buf2string=function(e,t){var r,i,a,n,o=t||e.length,s=new Array(o*2);for(i=0,r=0;r<o;){if(a=e[r++],a<128){s[i++]=a;continue}if(n=qi[a],n>4){s[i++]=65533,r+=n-1;continue}for(a&=n===2?31:n===3?15:7;n>1&&r<o;)a=a<<6|e[r++]&63,n--;if(n>1){s[i++]=65533;continue}a<65536?s[i++]=a:(a-=65536,s[i++]=55296|a>>10&1023,s[i++]=56320|a&1023)}return lv(s,i)},Er.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)==128;)r--;return r<0||r===0?t:r+qi[e[r]]>t?r:t};function Nw(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var uv=Nw,Xi=St,Zi=Nt,js=Er,Ys=zs,Dw=uv,fv=Object.prototype.toString,Bw=0,qs=4,ei=0,cv=1,vv=2,$w=-1,Fw=0,zw=8;function Tr(e){if(!(this instanceof Tr))return new Tr(e);this.options=Zi.assign({level:$w,method:zw,chunkSize:16384,windowBits:15,memLevel:8,strategy:Fw,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Dw,this.strm.avail_out=0;var r=Xi.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ei)throw new Error(Ys[r]);if(t.header&&Xi.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=js.string2buf(t.dictionary):fv.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Xi.deflateSetDictionary(this.strm,i),r!==ei)throw new Error(Ys[r]);this._dict_set=!0}}Tr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,n;if(this.ended)return!1;n=t===~~t?t:t===!0?qs:Bw,typeof e=="string"?r.input=js.string2buf(e):fv.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Zi.Buf8(i),r.next_out=0,r.avail_out=i),a=Xi.deflate(r,n),a!==cv&&a!==ei)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(n===qs||n===vv))&&(this.options.to==="string"?this.onData(js.buf2binstring(Zi.shrinkBuf(r.output,r.next_out))):this.onData(Zi.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==cv);return n===qs?(a=Xi.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ei):(n===vv&&(this.onEnd(ei),r.avail_out=0),!0)},Tr.prototype.onData=function(e){this.chunks.push(e)},Tr.prototype.onEnd=function(e){e===ei&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Zi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xs(e,t){var r=new Tr(t);if(r.push(e,!0),r.err)throw r.msg||Ys[r.err];return r.result}function Uw(e,t){return t=t||{},t.raw=!0,Xs(e,t)}function Hw(e,t){return t=t||{},t.gzip=!0,Xs(e,t)}Bi.Deflate=Tr,Bi.deflate=Xs,Bi.deflateRaw=Uw,Bi.gzip=Hw;var Ki={},ht={},Cn=30,Ww=12,Vw=function(t,r){var i,a,n,o,s,u,l,f,v,m,d,_,b,x,p,g,c,h,w,y,T,E,O,N,R;i=t.state,a=t.next_in,N=t.input,n=a+(t.avail_in-5),o=t.next_out,R=t.output,s=o-(r-t.avail_out),u=o+(t.avail_out-257),l=i.dmax,f=i.wsize,v=i.whave,m=i.wnext,d=i.window,_=i.hold,b=i.bits,x=i.lencode,p=i.distcode,g=(1<<i.lenbits)-1,c=(1<<i.distbits)-1;e:do{b<15&&(_+=N[a++]<<b,b+=8,_+=N[a++]<<b,b+=8),h=x[_&g];t:for(;;){if(w=h>>>24,_>>>=w,b-=w,w=h>>>16&255,w===0)R[o++]=h&65535;else if(w&16){y=h&65535,w&=15,w&&(b<w&&(_+=N[a++]<<b,b+=8),y+=_&(1<<w)-1,_>>>=w,b-=w),b<15&&(_+=N[a++]<<b,b+=8,_+=N[a++]<<b,b+=8),h=p[_&c];r:for(;;){if(w=h>>>24,_>>>=w,b-=w,w=h>>>16&255,w&16){if(T=h&65535,w&=15,b<w&&(_+=N[a++]<<b,b+=8,b<w&&(_+=N[a++]<<b,b+=8)),T+=_&(1<<w)-1,T>l){t.msg="invalid distance too far back",i.mode=Cn;break e}if(_>>>=w,b-=w,w=o-s,T>w){if(w=T-w,w>v&&i.sane){t.msg="invalid distance too far back",i.mode=Cn;break e}if(E=0,O=d,m===0){if(E+=f-w,w<y){y-=w;do R[o++]=d[E++];while(--w);E=o-T,O=R}}else if(m<w){if(E+=f+m-w,w-=m,w<y){y-=w;do R[o++]=d[E++];while(--w);if(E=0,m<y){w=m,y-=w;do R[o++]=d[E++];while(--w);E=o-T,O=R}}}else if(E+=m-w,w<y){y-=w;do R[o++]=d[E++];while(--w);E=o-T,O=R}for(;y>2;)R[o++]=O[E++],R[o++]=O[E++],R[o++]=O[E++],y-=3;y&&(R[o++]=O[E++],y>1&&(R[o++]=O[E++]))}else{E=o-T;do R[o++]=R[E++],R[o++]=R[E++],R[o++]=R[E++],y-=3;while(y>2);y&&(R[o++]=R[E++],y>1&&(R[o++]=R[E++]))}}else if((w&64)==0){h=p[(h&65535)+(_&(1<<w)-1)];continue r}else{t.msg="invalid distance code",i.mode=Cn;break e}break}}else if((w&64)==0){h=x[(h&65535)+(_&(1<<w)-1)];continue t}else if(w&32){i.mode=Ww;break e}else{t.msg="invalid literal/length code",i.mode=Cn;break e}break}}while(a<n&&o<u);y=b>>3,a-=y,b-=y<<3,_&=(1<<b)-1,t.next_in=a,t.next_out=o,t.avail_in=a<n?5+(n-a):5-(a-n),t.avail_out=o<u?257+(u-o):257-(o-u),i.hold=_,i.bits=b},dv=Nt,ti=15,hv=852,gv=592,pv=0,Zs=1,mv=2,jw=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Yw=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],qw=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Xw=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Zw=function(t,r,i,a,n,o,s,u){var l=u.bits,f=0,v=0,m=0,d=0,_=0,b=0,x=0,p=0,g=0,c=0,h,w,y,T,E,O=null,N=0,R,V=new dv.Buf16(ti+1),ue=new dv.Buf16(ti+1),M=null,B=0,Q,te,W;for(f=0;f<=ti;f++)V[f]=0;for(v=0;v<a;v++)V[r[i+v]]++;for(_=l,d=ti;d>=1&&V[d]===0;d--);if(_>d&&(_=d),d===0)return n[o++]=1<<24|64<<16|0,n[o++]=1<<24|64<<16|0,u.bits=1,0;for(m=1;m<d&&V[m]===0;m++);for(_<m&&(_=m),p=1,f=1;f<=ti;f++)if(p<<=1,p-=V[f],p<0)return-1;if(p>0&&(t===pv||d!==1))return-1;for(ue[1]=0,f=1;f<ti;f++)ue[f+1]=ue[f]+V[f];for(v=0;v<a;v++)r[i+v]!==0&&(s[ue[r[i+v]]++]=v);if(t===pv?(O=M=s,R=19):t===Zs?(O=jw,N-=257,M=Yw,B-=257,R=256):(O=qw,M=Xw,R=-1),c=0,v=0,f=m,E=o,b=_,x=0,y=-1,g=1<<_,T=g-1,t===Zs&&g>hv||t===mv&&g>gv)return 1;for(;;){Q=f-x,s[v]<R?(te=0,W=s[v]):s[v]>R?(te=M[B+s[v]],W=O[N+s[v]]):(te=32+64,W=0),h=1<<f-x,w=1<<b,m=w;do w-=h,n[E+(c>>x)+w]=Q<<24|te<<16|W|0;while(w!==0);for(h=1<<f-1;c&h;)h>>=1;if(h!==0?(c&=h-1,c+=h):c=0,v++,--V[f]==0){if(f===d)break;f=r[i+s[v]]}if(f>_&&(c&T)!==y){for(x===0&&(x=_),E+=m,b=f-x,p=1<<b;b+x<d&&(p-=V[b+x],!(p<=0));)b++,p<<=1;if(g+=1<<b,t===Zs&&g>hv||t===mv&&g>gv)return 1;y=c&T,n[y]=_<<24|b<<16|E-o|0}}return c!==0&&(n[E+c]=f-x<<24|64<<16|0),u.bits=_,0},tt=Nt,Ks=Kc,Ot=Gc,Kw=Vw,Gi=Zw,Gw=0,_v=1,bv=2,wv=4,Jw=5,On=6,Cr=0,Qw=1,e1=2,ut=-2,xv=-3,yv=-4,t1=-5,Sv=8,Ev=1,Tv=2,Cv=3,Ov=4,Av=5,Iv=6,kv=7,Mv=8,Rv=9,Lv=10,An=11,Bt=12,Gs=13,Pv=14,Js=15,Nv=16,Dv=17,Bv=18,$v=19,In=20,kn=21,Fv=22,zv=23,Uv=24,Hv=25,Wv=26,Qs=27,Vv=28,jv=29,Ee=30,Yv=31,r1=32,i1=852,a1=592,n1=15,o1=n1;function qv(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function s1(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new tt.Buf16(320),this.work=new tt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Xv(e){var t;return!e||!e.state?ut:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Ev,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new tt.Buf32(i1),t.distcode=t.distdyn=new tt.Buf32(a1),t.sane=1,t.back=-1,Cr)}function Zv(e){var t;return!e||!e.state?ut:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Xv(e))}function Kv(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ut:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Zv(e))}function Gv(e,t){var r,i;return e?(i=new s1,e.state=i,i.window=null,r=Kv(e,t),r!==Cr&&(e.state=null),r):ut}function l1(e){return Gv(e,o1)}var Jv=!0,el,tl;function u1(e){if(Jv){var t;for(el=new tt.Buf32(512),tl=new tt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Gi(_v,e.lens,0,288,el,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Gi(bv,e.lens,0,32,tl,0,e.work,{bits:5}),Jv=!1}e.lencode=el,e.lenbits=9,e.distcode=tl,e.distbits=5}function Qv(e,t,r,i){var a,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new tt.Buf8(n.wsize)),i>=n.wsize?(tt.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a>i&&(a=i),tt.arraySet(n.window,t,r-i,a,n.wnext),i-=a,i?(tt.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=a))),0}function f1(e,t){var r,i,a,n,o,s,u,l,f,v,m,d,_,b,x=0,p,g,c,h,w,y,T,E,O=new tt.Buf8(4),N,R,V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ut;r=e.state,r.mode===Bt&&(r.mode=Gs),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,v=s,m=u,E=Cr;e:for(;;)switch(r.mode){case Ev:if(r.wrap===0){r.mode=Gs;break}for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.wrap&2&&l===35615){r.check=0,O[0]=l&255,O[1]=l>>>8&255,r.check=Ot(r.check,O,2,0),l=0,f=0,r.mode=Tv;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Ee;break}if((l&15)!==Sv){e.msg="unknown compression method",r.mode=Ee;break}if(l>>>=4,f-=4,T=(l&15)+8,r.wbits===0)r.wbits=T;else if(T>r.wbits){e.msg="invalid window size",r.mode=Ee;break}r.dmax=1<<T,e.adler=r.check=1,r.mode=l&512?Lv:Bt,l=0,f=0;break;case Tv:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.flags=l,(r.flags&255)!==Sv){e.msg="unknown compression method",r.mode=Ee;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Ee;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=Ot(r.check,O,2,0)),l=0,f=0,r.mode=Cv;case Cv:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.head&&(r.head.time=l),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,r.check=Ot(r.check,O,4,0)),l=0,f=0,r.mode=Ov;case Ov:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=Ot(r.check,O,2,0)),l=0,f=0,r.mode=Av;case Av:if(r.flags&1024){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=Ot(r.check,O,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=Iv;case Iv:if(r.flags&1024&&(d=r.length,d>s&&(d=s),d&&(r.head&&(T=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),tt.arraySet(r.head.extra,i,n,d,T)),r.flags&512&&(r.check=Ot(r.check,i,d,n)),s-=d,n+=d,r.length-=d),r.length))break e;r.length=0,r.mode=kv;case kv:if(r.flags&2048){if(s===0)break e;d=0;do T=i[n+d++],r.head&&T&&r.length<65536&&(r.head.name+=String.fromCharCode(T));while(T&&d<s);if(r.flags&512&&(r.check=Ot(r.check,i,d,n)),s-=d,n+=d,T)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Mv;case Mv:if(r.flags&4096){if(s===0)break e;d=0;do T=i[n+d++],r.head&&T&&r.length<65536&&(r.head.comment+=String.fromCharCode(T));while(T&&d<s);if(r.flags&512&&(r.check=Ot(r.check,i,d,n)),s-=d,n+=d,T)break e}else r.head&&(r.head.comment=null);r.mode=Rv;case Rv:if(r.flags&512){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Ee;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Bt;break;case Lv:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}e.adler=r.check=qv(l),l=0,f=0,r.mode=An;case An:if(r.havedict===0)return e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,e1;e.adler=r.check=1,r.mode=Bt;case Bt:if(t===Jw||t===On)break e;case Gs:if(r.last){l>>>=f&7,f-=f&7,r.mode=Qs;break}for(;f<3;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}switch(r.last=l&1,l>>>=1,f-=1,l&3){case 0:r.mode=Pv;break;case 1:if(u1(r),r.mode=In,t===On){l>>>=2,f-=2;break e}break;case 2:r.mode=Dv;break;case 3:e.msg="invalid block type",r.mode=Ee}l>>>=2,f-=2;break;case Pv:for(l>>>=f&7,f-=f&7;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if((l&65535)!=(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Ee;break}if(r.length=l&65535,l=0,f=0,r.mode=Js,t===On)break e;case Js:r.mode=Nv;case Nv:if(d=r.length,d){if(d>s&&(d=s),d>u&&(d=u),d===0)break e;tt.arraySet(a,i,n,d,o),s-=d,n+=d,u-=d,o+=d,r.length-=d;break}r.mode=Bt;break;case Dv:for(;f<14;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.nlen=(l&31)+257,l>>>=5,f-=5,r.ndist=(l&31)+1,l>>>=5,f-=5,r.ncode=(l&15)+4,l>>>=4,f-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Ee;break}r.have=0,r.mode=Bv;case Bv:for(;r.have<r.ncode;){for(;f<3;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.lens[V[r.have++]]=l&7,l>>>=3,f-=3}for(;r.have<19;)r.lens[V[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},E=Gi(Gw,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,E){e.msg="invalid code lengths set",r.mode=Ee;break}r.have=0,r.mode=$v;case $v:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[l&(1<<r.lenbits)-1],p=x>>>24,g=x>>>16&255,c=x&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(c<16)l>>>=p,f-=p,r.lens[r.have++]=c;else{if(c===16){for(R=p+2;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l>>>=p,f-=p,r.have===0){e.msg="invalid bit length repeat",r.mode=Ee;break}T=r.lens[r.have-1],d=3+(l&3),l>>>=2,f-=2}else if(c===17){for(R=p+3;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=p,f-=p,T=0,d=3+(l&7),l>>>=3,f-=3}else{for(R=p+7;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=p,f-=p,T=0,d=11+(l&127),l>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Ee;break}for(;d--;)r.lens[r.have++]=T}}if(r.mode===Ee)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Ee;break}if(r.lenbits=9,N={bits:r.lenbits},E=Gi(_v,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,E){e.msg="invalid literal/lengths set",r.mode=Ee;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},E=Gi(bv,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,E){e.msg="invalid distances set",r.mode=Ee;break}if(r.mode=In,t===On)break e;case In:r.mode=kn;case kn:if(s>=6&&u>=258){e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,Kw(e,m),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,r.mode===Bt&&(r.back=-1);break}for(r.back=0;x=r.lencode[l&(1<<r.lenbits)-1],p=x>>>24,g=x>>>16&255,c=x&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(g&&(g&240)==0){for(h=p,w=g,y=c;x=r.lencode[y+((l&(1<<h+w)-1)>>h)],p=x>>>24,g=x>>>16&255,c=x&65535,!(h+p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=h,f-=h,r.back+=h}if(l>>>=p,f-=p,r.back+=p,r.length=c,g===0){r.mode=Wv;break}if(g&32){r.back=-1,r.mode=Bt;break}if(g&64){e.msg="invalid literal/length code",r.mode=Ee;break}r.extra=g&15,r.mode=Fv;case Fv:if(r.extra){for(R=r.extra;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=zv;case zv:for(;x=r.distcode[l&(1<<r.distbits)-1],p=x>>>24,g=x>>>16&255,c=x&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if((g&240)==0){for(h=p,w=g,y=c;x=r.distcode[y+((l&(1<<h+w)-1)>>h)],p=x>>>24,g=x>>>16&255,c=x&65535,!(h+p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=h,f-=h,r.back+=h}if(l>>>=p,f-=p,r.back+=p,g&64){e.msg="invalid distance code",r.mode=Ee;break}r.offset=c,r.extra=g&15,r.mode=Uv;case Uv:if(r.extra){for(R=r.extra;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Ee;break}r.mode=Hv;case Hv:if(u===0)break e;if(d=m-u,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Ee;break}d>r.wnext?(d-=r.wnext,_=r.wsize-d):_=r.wnext-d,d>r.length&&(d=r.length),b=r.window}else b=a,_=o-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do a[o++]=b[_++];while(--d);r.length===0&&(r.mode=kn);break;case Wv:if(u===0)break e;a[o++]=r.length,u--,r.mode=kn;break;case Qs:if(r.wrap){for(;f<32;){if(s===0)break e;s--,l|=i[n++]<<f,f+=8}if(m-=u,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?Ot(r.check,a,m,o-m):Ks(r.check,a,m,o-m)),m=u,(r.flags?l:qv(l))!==r.check){e.msg="incorrect data check",r.mode=Ee;break}l=0,f=0}r.mode=Vv;case Vv:if(r.wrap&&r.flags){for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Ee;break}l=0,f=0}r.mode=jv;case jv:E=Qw;break e;case Ee:E=xv;break e;case Yv:return yv;case r1:default:return ut}return e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,(r.wsize||m!==e.avail_out&&r.mode<Ee&&(r.mode<Qs||t!==wv))&&Qv(e,e.output,e.next_out,m-e.avail_out),v-=e.avail_in,m-=e.avail_out,e.total_in+=v,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?Ot(r.check,a,m,e.next_out-m):Ks(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Bt?128:0)+(r.mode===In||r.mode===Js?256:0),(v===0&&m===0||t===wv)&&E===Cr&&(E=t1),E}function c1(e){if(!e||!e.state)return ut;var t=e.state;return t.window&&(t.window=null),e.state=null,Cr}function v1(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)==0)?ut:(r.head=t,t.done=!1,Cr)}function d1(e,t){var r=t.length,i,a,n;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==An)?ut:i.mode===An&&(a=1,a=Ks(a,t,r,0),a!==i.check)?xv:(n=Qv(e,t,r,r),n?(i.mode=Yv,yv):(i.havedict=1,Cr))}ht.inflateReset=Zv,ht.inflateReset2=Kv,ht.inflateResetKeep=Xv,ht.inflateInit=l1,ht.inflateInit2=Gv,ht.inflate=f1,ht.inflateEnd=c1,ht.inflateGetHeader=v1,ht.inflateSetDictionary=d1,ht.inflateInfo="pako inflate (from Nodeca project)";var ed={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function h1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var g1=h1,ri=ht,Ji=Nt,Mn=Er,Me=ed,rl=zs,p1=uv,m1=g1,td=Object.prototype.toString;function Or(e){if(!(this instanceof Or))return new Or(e);this.options=Ji.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p1,this.strm.avail_out=0;var r=ri.inflateInit2(this.strm,t.windowBits);if(r!==Me.Z_OK)throw new Error(rl[r]);if(this.header=new m1,ri.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Mn.string2buf(t.dictionary):td.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ri.inflateSetDictionary(this.strm,t.dictionary),r!==Me.Z_OK)))throw new Error(rl[r])}Or.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,n,o,s,u,l,f=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?Me.Z_FINISH:Me.Z_NO_FLUSH,typeof e=="string"?r.input=Mn.binstring2buf(e):td.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Ji.Buf8(i),r.next_out=0,r.avail_out=i),n=ri.inflate(r,Me.Z_NO_FLUSH),n===Me.Z_NEED_DICT&&a&&(n=ri.inflateSetDictionary(this.strm,a)),n===Me.Z_BUF_ERROR&&f===!0&&(n=Me.Z_OK,f=!1),n!==Me.Z_STREAM_END&&n!==Me.Z_OK)return this.onEnd(n),this.ended=!0,!1;r.next_out&&(r.avail_out===0||n===Me.Z_STREAM_END||r.avail_in===0&&(o===Me.Z_FINISH||o===Me.Z_SYNC_FLUSH))&&(this.options.to==="string"?(s=Mn.utf8border(r.output,r.next_out),u=r.next_out-s,l=Mn.buf2string(r.output,s),r.next_out=u,r.avail_out=i-u,u&&Ji.arraySet(r.output,r.output,s,u,0),this.onData(l)):this.onData(Ji.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(f=!0)}while((r.avail_in>0||r.avail_out===0)&&n!==Me.Z_STREAM_END);return n===Me.Z_STREAM_END&&(o=Me.Z_FINISH),o===Me.Z_FINISH?(n=ri.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Me.Z_OK):(o===Me.Z_SYNC_FLUSH&&(this.onEnd(Me.Z_OK),r.avail_out=0),!0)},Or.prototype.onData=function(e){this.chunks.push(e)},Or.prototype.onEnd=function(e){e===Me.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ji.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function il(e,t){var r=new Or(t);if(r.push(e,!0),r.err)throw r.msg||rl[r.err];return r.result}function _1(e,t){return t=t||{},t.raw=!0,il(e,t)}Ki.Inflate=Or,Ki.inflate=il,Ki.inflateRaw=_1,Ki.ungzip=il;var b1=Nt.assign,w1=Bi,x1=Ki,y1=ed,rd={};b1(rd,w1,x1,y1);var id=rd;function S1(e){return Promise.resolve(e)}var E1="upx2px",T1=1e-4,C1=750,ad=!1,al=0,nd=0;function O1(){var{platform:e,pixelRatio:t,windowWidth:r}=Cc();al=r,nd=t,ad=e==="ios"}function od(e,t){var r=Number(e);return isNaN(r)?t:r}var sd=Ab(E1,(e,t)=>{if(al===0&&O1(),e=Number(e),e===0)return 0;var r=t||al;{var i=__uniConfig.globalStyle||{},a=od(i.rpxCalcMaxDeviceWidth,960),n=od(i.rpxCalcBaseDeviceWidth,375);r=r<=a?r:n}var o=e/C1*r;return o<0&&(o=-o),o=Math.floor(o+T1),o===0&&(nd===1||!ad?o=1:o=.5),e<0?-o:o}),A1=[{name:"id",type:String,required:!0}];A1.concat({name:"componentInstance",type:Object});var ld={};ld.f={}.propertyIsEnumerable;var I1=ci,k1=ho,M1=_a,R1=ld.f,L1=function(e){return function(t){for(var r=M1(t),i=k1(r),a=i.length,n=0,o=[],s;a>n;)s=i[n++],(!I1||R1.call(r,s))&&o.push(e?[s,r[s]]:r[s]);return o}},ud=co,P1=L1(!1);ud(ud.S,"Object",{values:function(t){return P1(t)}});var N1="setPageMeta",D1="loadFontFace",B1="pageScrollTo",$1=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(c){try{return c.defaultView&&c.defaultView.frameElement||null}catch(h){return null}}var t=function(c){for(var h=c,w=e(h);w;)h=w.ownerDocument,w=e(h);return h}(window.document),r=[],i=null,a=null;function n(c){this.time=c.time,this.target=c.target,this.rootBounds=_(c.rootBounds),this.boundingClientRect=_(c.boundingClientRect),this.intersectionRect=_(c.intersectionRect||d()),this.isIntersecting=!!c.intersectionRect;var h=this.boundingClientRect,w=h.width*h.height,y=this.intersectionRect,T=y.width*y.height;w?this.intersectionRatio=Number((T/w).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(c,h){var w=h||{};if(typeof c!="function")throw new Error("callback must be a function");if(w.root&&w.root.nodeType!=1&&w.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=u(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=c,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(w.rootMargin),this.thresholds=this._initThresholds(w.threshold),this.root=w.root||null,this.rootMargin=this._rootMarginValues.map(function(y){return y.value+y.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return i||(i=function(c,h){!c||!h?a=d():a=b(c,h),r.forEach(function(w){w._checkForIntersections()})}),i},o._resetCrossOriginUpdater=function(){i=null,a=null},o.prototype.observe=function(c){var h=this._observationTargets.some(function(w){return w.element==c});if(!h){if(!(c&&c.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:c,entry:null}),this._monitorIntersections(c.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(c){this._observationTargets=this._observationTargets.filter(function(h){return h.element!=c}),this._unmonitorIntersections(c.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var c=this._queuedEntries.slice();return this._queuedEntries=[],c},o.prototype._initThresholds=function(c){var h=c||[0];return Array.isArray(h)||(h=[h]),h.sort().filter(function(w,y,T){if(typeof w!="number"||isNaN(w)||w<0||w>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return w!==T[y-1]})},o.prototype._parseRootMargin=function(c){var h=c||"0px",w=h.split(/\s+/).map(function(y){var T=/^(-?\d*\.?\d+)(px|%)$/.exec(y);if(!T)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(T[1]),unit:T[2]}});return w[1]=w[1]||w[0],w[2]=w[2]||w[0],w[3]=w[3]||w[1],w},o.prototype._monitorIntersections=function(c){var h=c.defaultView;if(!!h&&this._monitoringDocuments.indexOf(c)==-1){var w=this._checkForIntersections,y=null,T=null;this.POLL_INTERVAL?y=h.setInterval(w,this.POLL_INTERVAL):(l(h,"resize",w,!0),l(c,"scroll",w,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in h&&(T=new h.MutationObserver(w),T.observe(c,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(c),this._monitoringUnsubscribes.push(function(){var N=c.defaultView;N&&(y&&N.clearInterval(y),f(N,"resize",w,!0)),f(c,"scroll",w,!0),T&&T.disconnect()});var E=this.root&&(this.root.ownerDocument||this.root)||t;if(c!=E){var O=e(c);O&&this._monitorIntersections(O.ownerDocument)}}},o.prototype._unmonitorIntersections=function(c){var h=this._monitoringDocuments.indexOf(c);if(h!=-1){var w=this.root&&(this.root.ownerDocument||this.root)||t,y=this._observationTargets.some(function(O){var N=O.element.ownerDocument;if(N==c)return!0;for(;N&&N!=w;){var R=e(N);if(N=R&&R.ownerDocument,N==c)return!0}return!1});if(!y){var T=this._monitoringUnsubscribes[h];if(this._monitoringDocuments.splice(h,1),this._monitoringUnsubscribes.splice(h,1),T(),c!=w){var E=e(c);E&&this._unmonitorIntersections(E.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var c=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var h=0;h<c.length;h++)c[h]()},o.prototype._checkForIntersections=function(){if(!(!this.root&&i&&!a)){var c=this._rootIsInDom(),h=c?this._getRootRect():d();this._observationTargets.forEach(function(w){var y=w.element,T=m(y),E=this._rootContainsTarget(y),O=w.entry,N=c&&E&&this._computeTargetAndRootIntersection(y,T,h),R=null;this._rootContainsTarget(y)?(!i||this.root)&&(R=h):R=d();var V=w.entry=new n({time:s(),target:y,boundingClientRect:T,rootBounds:R,intersectionRect:N});O?c&&E?this._hasCrossedThreshold(O,V)&&this._queuedEntries.push(V):O&&O.isIntersecting&&this._queuedEntries.push(V):this._queuedEntries.push(V)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(c,h,w){if(window.getComputedStyle(c).display!="none"){for(var y=h,T=p(c),E=!1;!E&&T;){var O=null,N=T.nodeType==1?window.getComputedStyle(T):{};if(N.display=="none")return null;if(T==this.root||T.nodeType==9)if(E=!0,T==this.root||T==t)i&&!this.root?!a||a.width==0&&a.height==0?(T=null,O=null,y=null):O=a:O=w;else{var R=p(T),V=R&&m(R),ue=R&&this._computeTargetAndRootIntersection(R,V,w);V&&ue?(T=R,O=b(V,ue)):(T=null,y=null)}else{var M=T.ownerDocument;T!=M.body&&T!=M.documentElement&&N.overflow!="visible"&&(O=m(T))}if(O&&(y=v(O,y)),!y)break;T=T&&p(T)}return y}},o.prototype._getRootRect=function(){var c;if(this.root&&!g(this.root))c=m(this.root);else{var h=g(this.root)?this.root:t,w=h.documentElement,y=h.body;c={top:0,left:0,right:w.clientWidth||y.clientWidth,width:w.clientWidth||y.clientWidth,bottom:w.clientHeight||y.clientHeight,height:w.clientHeight||y.clientHeight}}return this._expandRectByRootMargin(c)},o.prototype._expandRectByRootMargin=function(c){var h=this._rootMarginValues.map(function(y,T){return y.unit=="px"?y.value:y.value*(T%2?c.width:c.height)/100}),w={top:c.top-h[0],right:c.right+h[1],bottom:c.bottom+h[2],left:c.left-h[3]};return w.width=w.right-w.left,w.height=w.bottom-w.top,w},o.prototype._hasCrossedThreshold=function(c,h){var w=c&&c.isIntersecting?c.intersectionRatio||0:-1,y=h.isIntersecting?h.intersectionRatio||0:-1;if(w!==y)for(var T=0;T<this.thresholds.length;T++){var E=this.thresholds[T];if(E==w||E==y||E<w!=E<y)return!0}},o.prototype._rootIsInDom=function(){return!this.root||x(t,this.root)},o.prototype._rootContainsTarget=function(c){var h=this.root&&(this.root.ownerDocument||this.root)||t;return x(h,c)&&(!this.root||h==c.ownerDocument)},o.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},o.prototype._unregisterInstance=function(){var c=r.indexOf(this);c!=-1&&r.splice(c,1)};function s(){return window.performance&&performance.now&&performance.now()}function u(c,h){var w=null;return function(){w||(w=setTimeout(function(){c(),w=null},h))}}function l(c,h,w,y){typeof c.addEventListener=="function"?c.addEventListener(h,w,y||!1):typeof c.attachEvent=="function"&&c.attachEvent("on"+h,w)}function f(c,h,w,y){typeof c.removeEventListener=="function"?c.removeEventListener(h,w,y||!1):typeof c.detatchEvent=="function"&&c.detatchEvent("on"+h,w)}function v(c,h){var w=Math.max(c.top,h.top),y=Math.min(c.bottom,h.bottom),T=Math.max(c.left,h.left),E=Math.min(c.right,h.right),O=E-T,N=y-w;return O>=0&&N>=0&&{top:w,bottom:y,left:T,right:E,width:O,height:N}||null}function m(c){var h;try{h=c.getBoundingClientRect()}catch(w){}return h?(h.width&&h.height||(h={top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.right-h.left,height:h.bottom-h.top}),h):d()}function d(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function _(c){return!c||"x"in c?c:{top:c.top,y:c.top,bottom:c.bottom,left:c.left,x:c.left,right:c.right,width:c.width,height:c.height}}function b(c,h){var w=h.top-c.top,y=h.left-c.left;return{top:w,left:y,height:h.height,width:h.width,bottom:w+h.height,right:y+h.width}}function x(c,h){for(var w=h;w;){if(w==c)return!0;w=p(w)}return!1}function p(c){var h=c.parentNode;return c.nodeType==9&&c!=t?e(c):(h&&h.assignedSlot&&(h=h.assignedSlot.parentNode),h&&h.nodeType==11&&h.host?h.host:h)}function g(c){return c&&c.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=n};function nl(e){var{bottom:t,height:r,left:i,right:a,top:n,width:o}=e||{};return{bottom:t,height:r,left:i,right:a,top:n,width:o}}function F1(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:a,width:n}}=e;return t!==0?t:a===r?n/i:a/r}function z1(e,t,r){$1();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,a=new IntersectionObserver(u=>{u.forEach(l=>{r({intersectionRatio:F1(l),intersectionRect:nl(l.intersectionRect),boundingClientRect:nl(l.boundingClientRect),relativeRect:nl(l.rootBounds),time:Date.now(),dataset:Ro(l.target),id:l.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){a.USE_MUTATION_OBSERVER=!0;for(var n=e.querySelectorAll(t.selector),o=0;o<n.length;o++)a.observe(n[o])}else{a.USE_MUTATION_OBSERVER=!1;var s=e.querySelector(t.selector);s?a.observe(s):console.warn("Node ".concat(t.selector," is not found. Intersection observer will not trigger."))}return a}function U1(e){UniViewJSBridge.invokeServiceMethod("navigateTo",e)}function H1(e){UniViewJSBridge.invokeServiceMethod("navigateBack",e)}function W1(e){UniViewJSBridge.invokeServiceMethod("reLaunch",e)}function V1(e){UniViewJSBridge.invokeServiceMethod("redirectTo",e)}function j1(e){UniViewJSBridge.invokeServiceMethod("switchTab",e)}var Y1=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",upx2px:sd,navigateTo:U1,navigateBack:H1,reLaunch:W1,redirectTo:V1,switchTab:j1});function q1(){if(String(navigator.vendor).indexOf("Apple")===0){var e=null,t;document.documentElement.addEventListener("click",r=>{var i=450,a=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=a&&Math.abs(r.pageY-e.pageY)<=a&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function X1(e){if(!e.length)return r=>r;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof r=="number")return e[r];var a={};return r.forEach(n=>{var[o,s]=n;i?a[t(o)]=t(s):a[t(o)]=s}),a};return t}function Z1(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=K1(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function K1(e,t){var r={};return e.forEach(i=>{var[a,[n,o]]=i;r[t(a)]=[t(n),o]}),r}function G1(e,t){return e.priority=t,e}var ol=new Set,J1=1,sl=2,fd=3,cd=4;function rr(e,t){ol.add(G1(e,t))}function Q1(){try{[...ol].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{ol.clear()}}function vd(e,t){var r=window["__"+Lp],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var ex=Au.length;function tx(e,t,r){var[i,a,n,o]=ul(t),s=ll(e,i);if(ne(r)||ne(o)){var[u,l]=n.split(".");return fl(s,a,u,l,r||o)}return ax(s,a,n)}function rx(e,t,r){var[i,a,n]=ul(t),[o,s]=n.split("."),u=ll(e,i);return fl(u,a,o,s,[ox(r,e),Di(qr(u))])}function ll(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function ul(e){return JSON.parse(e.substr(ex))}function ix(e,t,r,i){var[a,n,o]=ul(e),s=ll(t,a),[u,l]=o.split(".");return fl(s,n,u,l,[r,i,Di(qr(s)),Di(qr(t))])}function fl(e,t,r,i,a){var n=vd(t,e);if(!n)return console.error(Mo("wxs","module "+r+" not found"));var o=n[i];return oe(o)?o.apply(n,a):console.error(r+"."+i+" is not a function")}function ax(e,t,r){var i=vd(t,e);return i?Nu(i,r.substr(r.indexOf(".")+1)):console.error(Mo("wxs","module "+r+" not found"))}function nx(e,t,r){var i=r;return a=>{try{ix(t,e.$,a,i)}catch(n){console.error(n)}i=a}}function ox(e,t){var r=qr(t);return Object.defineProperty(e,"instance",{get(){return Di(r)}}),e}function dd(e,t){Object.keys(t).forEach(r=>{lx(e,t[r])})}function sx(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function lx(e,t){var r=ux(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=fx(i,r)}}function ux(e){var t=window["__"+Pp],r=t&&t[e];return r||console.error(Mo("renderjs",e+" not found"))}function fx(e,t){return t=t.default||t,t.render=()=>{},vc(t).mixin({mounted(){this.$ownerInstance=Di(qr(e))}}).mount(document.createElement("div"))}class ii{constructor(t,r,i,a){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=t,this.tag=r,this.pid=i,a&&(this.$=a),this.$wxsProps=new Map;var n=this.$parent=bT(i);n&&n.appendUniChild(this)}init(t){re(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t}insert(t,r){var i=this.$,a=at(t);r===-1?a.appendChild(i):a.insertBefore(i,at(r).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,Ah(this.id),sx(this),this.removeUniChildren()}appendChild(t){return this.$.appendChild(t)}insertBefore(t,r){return this.$.insertBefore(t,r)}appendUniChild(t){this.$children.push(t)}removeUniChild(t){var r=this.$children.indexOf(t);r>=0&&this.$children.splice(r,1)}removeUniParent(){var{$parent:t}=this;t&&(t.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach(t=>t.remove()),this.$children.length=0}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(Bo)===0){var i=r.replace(Bo,""),a=t[i],n=nx(this,t[r],a);rr(()=>n(a),cd),this.$wxsProps.set(r,n),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,a]=t[r];this.addWxsEvent(r,i,a)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.$hasWxsProps&&this.$wxsProps.get(Bo+t);if(a)return rr(()=>i?Vr(()=>a(r)):a(r),cd),!0}}function hd(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(a=>i.indexOf(a)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function gd(e,t){var r=e.style;if(ye(t))t===""?e.removeAttribute("style"):r.cssText=_r(t,!0);else for(var i in t)cl(r,i,t[i]);var{__wxsStyle:a}=e;if(a)for(var n in a)cl(r,n,a[n])}var pd=/\s*!important$/;function cl(e,t,r){if(ne(r))r.forEach(a=>cl(e,t,a));else if(r=_r(r,!0),t.startsWith("--"))e.setProperty(t,r);else{var i=cx(e,t);pd.test(r)?e.setProperty(Ke(i),r.replace(pd,""),"important"):e[i]=r}}var md=["Webkit"],vl={};function cx(e,t){var r=vl[t];if(r)return r;var i=zt(t);if(i!=="filter"&&i in e)return vl[t]=i;i=Ra(i);for(var a=0;a<md.length;a++){var n=md[a]+i;if(n in e)return vl[t]=n}return t}function _d(e,t){var r=e.__listeners[t];r&&e.removeEventListener(t,r)}function bd(e,t){if(e.__listeners[t])return!0}function wd(e,t,r){var[i,a]=Po(t);r===-1?_d(e,i):bd(e,i)||e.addEventListener(i,e.__listeners[i]=xd(e.__id,r,a),a)}function xd(e,t,r){var i=a=>{var[n]=wc(a);n.type=Vp(a.type,r),UniViewJSBridge.publishHandler(Sc,[[i0,e,n]])};return t?Es(i,yd(t)):i}function yd(e){var t=[];return e&No.prevent&&t.push("prevent"),e&No.self&&t.push("self"),e&No.stop&&t.push("stop"),t}function vx(e,t,r,i){var[a,n]=Po(t);i===-1?_d(e,a):bd(e,a)||e.addEventListener(a,e.__listeners[a]=Sd(e,r,i),n)}function Sd(e,t,r){var i=a=>{rx(e,t,wc(a)[0])};return r?Es(i,yd(r)):i}var dx=Iu.length;function dl(e,t){return ye(t)&&(t.indexOf(Iu)===0?t=JSON.parse(t.substr(dx)):t.indexOf(Au)===0&&(t=tx(e,t))),t}function Rn(e){return e.indexOf("--")===0}function hl(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Ed extends ii{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r.tagName,i,r);this.$props=Ae({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=o,this._update=this.update.bind(this),this.init(n),this.insert(i,a)}init(t){re(t,"a")&&this.setAttrs(t.a),re(t,"s")&&this.setAttr("style",t.s),re(t,"e")&&this.addEvents(t.e),re(t,"w")&&this.addWxsEvents(t.w),super.init(t),H(this.$props,()=>{rr(this._update,J1)},{flush:"sync"}),this.update(!0)}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){vx(this.$,t,r,i)}addEvent(t,r){wd(this.$,t,r)}removeEvent(t){wd(this.$,t,-1)}setAttr(t,r){t===Mu?hd(this.$,r):t===Do?gd(this.$,r):t===Na?hl(this.$,r):t===Ru?this.$.__ownerId=r:t===Lu?rr(()=>dd(this,r),fd):t===jp?this.$.innerHTML=r:t===Yp?this.setText(r):this.setAttribute(t,r)}removeAttr(t){t===Mu?hd(this.$,""):t===Do?gd(this.$,""):this.removeAttribute(t)}setAttribute(t,r){r=dl(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:Rn(t)?this.$.style.setProperty(t,r):this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:Rn(t)?this.$.style.removeProperty(t):this.$.removeAttribute(t)}update(){}}class hx extends ii{constructor(t,r,i){super(t,"#comment",r,document.createComment(""));this.insert(r,i)}}var ZT="";function Td(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function gx(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function px(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],a=["width","height","left","right","top","bottom"],n=e.animates,o=e.option,s=o.transition,u={},l=[];return n.forEach(f=>{var v=f.type,m=[...f.args];if(t.concat(r).includes(v))v.startsWith("rotate")||v.startsWith("skew")?m=m.map(_=>parseFloat(_)+"deg"):v.startsWith("translate")&&(m=m.map(Td)),r.indexOf(v)>=0&&(m.length=1),l.push("".concat(v,"(").concat(m.join(","),")"));else if(i.concat(a).includes(m[0])){v=m[0];var d=m[1];u[v]=a.includes(v)?Td(d):d}}),u.transform=u.webkitTransform=l.join(" "),u.transition=u.webkitTransition=Object.keys(u).map(f=>"".concat(gx(f)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")).join(","),u.transformOrigin=u.webkitTransformOrigin=o.transformOrigin,u}function Cd(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,a=t.actions.length;function n(){var o=i[r],s=o.option.transition,u=px(o);Object.keys(u).forEach(l=>{e.$el.style[l]=u[l]}),r+=1,r<a&&setTimeout(n,s.duration+s.delay)}setTimeout(()=>{n()},0)}var Ln={props:["animation"],watch:{animation:{deep:!0,handler(){Cd(this)}}},mounted(){Cd(this)}},ge=e=>{e.__reserved=!0;var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(Ln),mx(e)},mx=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Bm(e)),_x={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function gl(e){var t=U(!1),r=!1,i,a;function n(){requestAnimationFrame(()=>{clearTimeout(a),a=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function o(l){l._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||l.touches.length>1||(e.hoverStopPropagation&&(l._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||n()},parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&n()}function u(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:o,onTouchend:s,onTouchcancel:u}}}function ai(e,t){return ye(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Ar(e){return e.__wwe=!0,e}function Pe(e,t){return(r,i,a)=>{e.value&&t(r,wx(r,i,e.value,a||{}))}}function bx(e){return(t,r)=>{e(t,xc(r))}}function wx(e,t,r,i){var a=Lo(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:a,currentTarget:a,detail:i}}var At=dn("uf"),xx=ge({name:"Form",emits:["submit","reset"],setup(e,t){var{slots:r,emit:i}=t,a=U(null);return yx(Pe(a,i)),()=>I("uni-form",{ref:a},[I("span",null,[r.default&&r.default()])],512)}});function yx(e){var t=[];return Fe(At,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,a)=>{if(a.submit){var[n,o]=a.submit();n&&(i[n]=o)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var Qi=dn("ul"),Sx={for:{type:String,default:""}},Ex=ge({name:"Label",props:Sx,setup(e,t){var{slots:r}=t,i=pn(),a=Tx(),n=ee(()=>e.for||r.default&&r.default.length),o=Ar(s=>{var u=s.target,l=/^uni-(checkbox|radio|switch)-/.test(u.className);l||(l=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(u.tagName)),!l&&(e.for?UniViewJSBridge.emit("uni-label-click-"+i+"-"+e.for,s,!0):a.length&&a[0](s,!0))});return()=>I("uni-label",{class:{"uni-label-pointer":n},onClick:o},[r.default&&r.default()],10,["onClick"])}});function Tx(){var e=[];return Fe(Qi,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}function Pn(e,t){Od(e.id,t),H(()=>e.id,(r,i)=>{Ad(i,t,!0),Od(r,t,!0)}),Yt(()=>{Ad(e.id,t)})}function Od(e,t,r){var i=pn();r&&!e||!mt(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.on(a,t[a]):e&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}function Ad(e,t,r){var i=pn();r&&!e||!mt(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.off(a,t[a]):e&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}var Cx={id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},Ox=ge({name:"Button",props:Cx,setup(e,t){var{slots:r}=t,i=U(null);C0();var a=_e(At,!1),{hovering:n,binding:o}=gl(e),{t:s}=Ge(),u=Ar((f,v)=>{if(e.disabled)return f.stopImmediatePropagation();v&&i.value.click();var m=e.formType;if(m){if(!a)return;m==="submit"?a.submit(f):m==="reset"&&a.reset(f);return}e.openType==="feedback"&&Ax(s("uni.button.feedback.title"),s("uni.button.feedback.send"))}),l=_e(Qi,!1);return l&&(l.addHandler(u),Ce(()=>{l.removeHandler(u)})),Pn(e,{"label-click":u}),()=>{var f=e.hoverClass,v=ai(e,"disabled"),m=ai(e,"loading"),d=ai(e,"plain"),_=f&&f!=="none";return I("uni-button",et({ref:i,onClick:u,class:_&&n.value?f:""},_&&o,v,m,d),[r.default&&r.default()],16,["onClick"])}}});function Ax(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var Ir=ge({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:r}=t,i=U(null),a=kx(i),n=Ix(i,r,a);return Mx(i,e,n,a),()=>I("uni-resize-sensor",{ref:i,onAnimationstartOnce:n},[I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"]),I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Ix(e,t,r){var i=Ae({width:-1,height:-1});return H(()=>ve({},i),a=>t("resize",a)),()=>{var a=e.value;i.width=a.offsetWidth,i.height=a.offsetHeight,r()}}function kx(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function Mx(e,t,r,i){fs(i),Re(()=>{t.initial&&Vr(r);var a=e.value;a.offsetParent!==a.parentElement&&(a.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var be=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function Id(e){e.width=e.offsetWidth*be,e.height=e.offsetHeight*be,e.getContext("2d").__hidpi__=!0}var kd=!1;function Rx(){if(!kd){kd=!0;var e=function(i,a){for(var n in i)re(i,n)&&a(i[n],n)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(a,n,o,s,u,l,f,v,m,d){if(!this.__hidpi__)return i.apply(this,arguments);n*=be,o*=be,s*=be,u*=be,l*=be,f*=be,v=d?v*be:v,m=d?m*be:m,i.call(this,a,n,o,s,u,l,f,v,m)}}(r.drawImage),be!==1&&(e(t,function(i,a){r[a]=function(n){return function(){if(!this.__hidpi__)return n.apply(this,arguments);var o=Array.prototype.slice.call(arguments);if(i==="all")o=o.map(function(u){return u*be});else if(Array.isArray(i))for(var s=0;s<i.length;s++)o[i[s]]*=be;return n.apply(this,o)}}(r[a])}),r.stroke=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);this.lineWidth*=be,i.apply(this,arguments),this.lineWidth/=be}}(r.stroke),r.fillText=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);var a=Array.prototype.slice.call(arguments);a[1]*=be,a[2]*=be;var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(o,s,u){return s*be+u}),i.apply(this,a),this.font=n}}(r.fillText),r.strokeText=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);var a=Array.prototype.slice.call(arguments);a[1]*=be,a[2]*=be;var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(o,s,u){return s*be+u}),i.apply(this,a),this.font=n}}(r.strokeText),r.drawImage=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);this.scale(be,be),i.apply(this,arguments),this.scale(1/be,1/be)}}(r.drawImage))}}var Lx=Da(()=>Rx());function Md(e){return e&&vt(e)}function Nn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Rd(e,t){var r=e;return Array.from(t).map(i=>{var a=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-a.left,y:i.clientY-a.top}})}var ea;function Ld(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ea||(ea=document.createElement("canvas")),ea.width=e,ea.height=t,ea}var Px={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},Nx=ge({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:Px,computed:{id(){return this.canvasId}},setup(e,t){var{emit:r,slots:i}=t;Lx();var a=U(null),n=U(null),o=U(!1),s=bx(r),{$attrs:u,$excludeAttrs:l,$listeners:f}=Jd({excludeListeners:!0}),{_listeners:v}=Dx(e,f,s),{_handleSubscribe:m,_resize:d}=Bx(a,o);return Yn(m,qn(e.canvasId),!0),Re(()=>{d()}),()=>{var{canvasId:_,disableScroll:b}=e;return I("uni-canvas",et({"canvas-id":_,"disable-scroll":b},u.value,l.value,v.value),[I("canvas",{ref:a,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),I("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[i.default&&i.default()]),I(Ir,{ref:n,onResize:d},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function Dx(e,t,r){var i=ee(()=>{var a=["onTouchstart","onTouchmove","onTouchend"],n=t.value,o=ve({},(()=>{var s={};for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)){var l=n[u];s[u]=l}return s})());return a.forEach(s=>{var u=o[s],l=[];u&&l.push(Ar(f=>{r(s.replace("on","").toLocaleLowerCase(),ve({},(()=>{var v={};for(var m in f)v[m]=f[m];return v})(),{touches:Rd(f.currentTarget,f.touches),changedTouches:Rd(f.currentTarget,f.changedTouches)}))})),e.disableScroll&&s==="onTouchmove"&&l.push(gc),o[s]=l}),o});return{_listeners:i}}function Bx(e,t){var r=[],i={};function a(d){var _=e.value,b=!d||_.width!==Math.floor(d.width*be)||_.height!==Math.floor(d.height*be);if(!!b)if(_.width>0&&_.height>0){var x=_.getContext("2d"),p=x.getImageData(0,0,_.width,_.height);Id(_),x.putImageData(p,0,0)}else Id(_)}function n(d,_){var{actions:b,reserve:x}=d;if(!!b){if(t.value){r.push([b,x]);return}var p=e.value,g=p.getContext("2d");x||(g.fillStyle="#000000",g.strokeStyle="#000000",g.shadowColor="#000000",g.shadowBlur=0,g.shadowOffsetX=0,g.shadowOffsetY=0,g.setTransform(1,0,0,1,0,0),g.clearRect(0,0,p.width,p.height)),o(b);for(var c=function(y){var T=b[y],E=T.method,O=T.data,N=O[0];if(/^set/.test(E)&&E!=="setTransform"){var R=E[3].toLowerCase()+E.slice(4),V;if(R==="fillStyle"||R==="strokeStyle"){if(N==="normal")V=Nn(O[1]);else if(N==="linear"){var ue=g.createLinearGradient(...O[1]);O[2].forEach(function(K){var ie=K[0],le=Nn(K[1]);ue.addColorStop(ie,le)}),V=ue}else if(N==="radial"){var M=O[1],B=M[0],Q=M[1],te=M[2],W=g.createRadialGradient(B,Q,0,B,Q,te);O[2].forEach(function(K){var ie=K[0],le=Nn(K[1]);W.addColorStop(ie,le)}),V=W}else if(N==="pattern"){var G=s(O[1],b.slice(y+1),_,function(K){K&&(g[R]=g.createPattern(K,O[2]))});return G?"continue":"break"}g[R]=V}else if(R==="globalAlpha")g[R]=Number(N)/255;else if(R==="shadow"){var ae=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];O.forEach(function(K,ie){g[ae[ie]]=ae[ie]==="shadowColor"?Nn(K):K})}else if(R==="fontSize"){var Se=g.__font__||g.font;g.__font__=g.font=Se.replace(/\d+\.?\d*px/,N+"px")}else R==="lineDash"?(g.setLineDash(N),g.lineDashOffset=O[1]||0):R==="textBaseline"?(N==="normal"&&(O[0]="alphabetic"),g[R]=N):R==="font"?g.__font__=g.font=N:g[R]=N}else if(E==="fillPath"||E==="strokePath")E=E.replace(/Path/,""),g.beginPath(),O.forEach(function(K){g[K.method].apply(g,K.data)}),g[E]();else if(E==="fillText")g.fillText.apply(g,O);else if(E==="drawImage"){var se=function(){var K=[...O],ie=K[0],le=K.slice(1);if(i=i||{},s(ie,b.slice(y+1),_,function(Ie){Ie&&g.drawImage.apply(g,[Ie].concat([...le.slice(4,8)],[...le.slice(0,4)]))}))return"break"}();if(se==="break")return"break"}else E==="clip"?(O.forEach(function(K){g[K.method].apply(g,K.data)}),g.clip()):g[E].apply(g,O)},h=0;h<b.length;h++){var w=c(h);if(w==="break")break}t.value||_({errMsg:"drawCanvas:ok"})}}function o(d){d.forEach(function(_){var b=_.method,x=_.data,p="";b==="drawImage"?(p=x[0],p=Md(p),x[0]=p):b==="setFillStyle"&&x[0]==="pattern"&&(p=x[1],p=Md(p),x[1]=p),p&&!i[p]&&g();function g(){var c=i[p]=new Image;if(c.onload=function(){c.ready=!0},navigator.vendor==="Google Inc."){p.indexOf("file://")===0&&(c.crossOrigin="anonymous"),c.src=p;return}S1(p).then(h=>{c.src=h}).catch(()=>{c.src=p})}})}function s(d,_,b,x){var p=i[d];return p.ready?(x(p),!0):(r.unshift([_,!0]),t.value=!0,p.onload=function(){p.ready=!0,x(p),t.value=!1;var g=r.slice(0);r=[];for(var c=g.shift();c;)n({actions:c[0],reserve:c[1]},b),c=g.shift()},!1)}function u(d,_){var{x:b=0,y:x=0,width:p,height:g,destWidth:c,destHeight:h,hidpi:w=!0,dataType:y,quality:T=1,type:E="png"}=d,O=e.value,N,R=O.offsetWidth-b;p=p?Math.min(p,R):R;var V=O.offsetHeight-x;g=g?Math.min(g,V):V,w?(c=p,h=g):!c&&!h?(c=Math.round(p*be),h=Math.round(g*be)):c?h||(h=Math.round(g/p*c)):c=Math.round(p/g*h);var ue=Ld(c,h),M=ue.getContext("2d");(E==="jpeg"||E==="jpg")&&(E="jpeg",M.fillStyle="#fff",M.fillRect(0,0,c,h)),M.__hidpi__=!0,M.drawImageByCanvas(O,b,x,p,g,0,0,c,h,!1);var B;try{var Q;if(y==="base64")N=ue.toDataURL("image/".concat(E),T);else{var te=M.getImageData(0,0,c,h);N=id.deflateRaw(te.data,{to:"string"}),Q=!0}B={data:N,compressed:Q,width:c,height:h}}catch(W){B={errMsg:"canvasGetImageData:fail ".concat(W)}}if(ue.height=ue.width=0,M.__hidpi__=!1,_)_(B);else return B}function l(d,_){var{data:b,x,y:p,width:g,height:c,compressed:h}=d;try{h&&(b=id.inflateRaw(b)),c||(c=Math.round(b.length/4/g));var w=Ld(g,c),y=w.getContext("2d");y.putImageData(new ImageData(new Uint8ClampedArray(b),g,c),0,0),e.value.getContext("2d").drawImage(w,x,p,g,c),w.height=w.width=0}catch(T){_({errMsg:"canvasPutImageData:fail"});return}_({errMsg:"canvasPutImageData:ok"})}function f(d,_){var{x:b=0,y:x=0,width:p,height:g,destWidth:c,destHeight:h,fileType:w,quality:y,dirname:T}=d,E=u({x:b,y:x,width:p,height:g,destWidth:c,destHeight:h,hidpi:!1,dataType:"base64",type:w,quality:y});if(!E.data||!E.data.length){_({errMsg:E.errMsg.replace("canvasPutImageData","toTempFilePath")});return}Mb(E.data,T,(O,N)=>{var R="toTempFilePath:".concat(O?"fail":"ok");O&&(R+=" ".concat(O.message)),_({errMsg:R,tempFilePath:N})})}var v={actionsChanged:n,getImageData:u,putImageData:l,toTempFilePath:f};function m(d,_,b){var x=v[d];d.indexOf("_")!==0&&typeof x=="function"&&x(_,b)}return ve(v,{_resize:a,_handleSubscribe:m})}var Pd=dn("ucg"),$x={name:{type:String,default:""}},Fx=ge({name:"CheckboxGroup",props:$x,emits:["change"],setup(e,t){var{emit:r,slots:i}=t,a=U(null),n=Pe(a,r);return zx(e,n),()=>I("uni-checkbox-group",{ref:a},[i.default&&i.default()],512)}});function zx(e,t){var r=[],i=()=>r.reduce((n,o)=>(o.value.checkboxChecked&&n.push(o.value.value),n),new Array);Fe(Pd,{addField(n){r.push(n)},removeField(n){r.splice(r.indexOf(n),1)},checkboxChange(n){t("change",n,{value:i()})}});var a=_e(At,!1);return a&&a.addField({submit:()=>{var n=["",null];return e.name!==""&&(n[0]=e.name,n[1]=i()),n}}),i}var Ux={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},Hx=ge({name:"Checkbox",props:Ux,setup(e,t){var{slots:r}=t,i=U(e.checked),a=U(e.value);H([()=>e.checked,()=>e.value],l=>{var[f,v]=l;i.value=f,a.value=v});var n=()=>{i.value=!1},{uniCheckGroup:o,uniLabel:s}=Wx(i,a,n),u=l=>{e.disabled||(i.value=!i.value,o&&o.checkboxChange(l))};return s&&(s.addHandler(u),Ce(()=>{s.removeHandler(u)})),Pn(e,{"label-click":u}),()=>{var l=ai(e,"disabled");return I("uni-checkbox",et(l,{onClick:u}),[I("div",{class:"uni-checkbox-wrapper"},[I("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[i.value?gn(hn,e.color,22):""],2),r.default&&r.default()])],16,["onClick"])}}});function Wx(e,t,r){var i=ee(()=>({checkboxChecked:Boolean(e.value),value:t.value})),a={reset:r},n=_e(Pd,!1);n&&n.addField(i);var o=_e(At,!1);o&&o.addField(a);var s=_e(Qi,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s}}var Nd,ta,Dn,ir,Bn,pl;$r(()=>{ta=plus.os.name==="Android",Dn=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){ir=e.height,Bn&&Bn()},!1);function Dd(){}function ra(e,t,r){$r(()=>{var i="adjustResize",a="adjustPan",n="nothing",o=plus.webview.currentWebview(),s=pl||o.getStyle()||{},u={mode:r||s.softinputMode===i?i:e.adjustPosition?a:n,position:{top:0,height:0}};if(u.mode===a){var l=t.getBoundingClientRect();u.position.top=l.top,u.position.height=l.height+(Number(e.cursorSpacing)||0)}o.setSoftinputTemporary(u)})}function Vx(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}$r(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},a=i!=="none";a!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function jx(e){var t=e.softinputNavBar;t&&$r(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var Bd={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},$d=["keyboardheightchange"];function Fd(e,t,r){var i={};function a(n){var o,s=()=>{r("keyboardheightchange",{},{height:ir,duration:.25}),o&&ir===0&&ra(e,n),e.autoBlur&&o&&ir===0&&(ta||parseInt(Dn)>=13)&&document.activeElement.blur()};n.addEventListener("focus",()=>{o=!0,clearTimeout(Nd),document.addEventListener("click",Dd,!1),Bn=s,ir&&r("keyboardheightchange",{},{height:ir,duration:0}),Vx(e,i),ra(e,n)}),ta&&n.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&o&&ir===0&&ra(e,n)}),ta||(parseInt(Dn)<12&&n.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!o&&ra(e,n)}),parseFloat(Dn)>=14.6&&!pl&&$r(()=>{var l=plus.webview.currentWebview();pl=l.getStyle()||{}}));var u=()=>{document.removeEventListener("click",Dd,!1),Bn=null,ir&&r("keyboardheightchange",{},{height:0,duration:0}),jx(i),ta&&(Nd=setTimeout(()=>{ra(e,n,!0)},300)),String(navigator.vendor).indexOf("Apple")===0&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};n.addEventListener("blur",()=>{n.blur(),o=!1,u()})}H(()=>t.value,n=>a(n))}var zd=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Ud=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Yx=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,qx=ni("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Xx=ni("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Zx=ni("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Kx=ni("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Gx=ni("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Jx=ni("script,style");function Hd(e,t){var r,i,a,n=[],o=e;for(n.last=function(){return this[this.length-1]};e;){if(i=!0,!n.last()||!Jx[n.last()]){if(e.indexOf("<!--")==0?(r=e.indexOf("-->"),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("</")==0?(a=e.match(Ud),a&&(e=e.substring(a[0].length),a[0].replace(Ud,l),i=!1)):e.indexOf("<")==0&&(a=e.match(zd),a&&(e=e.substring(a[0].length),a[0].replace(zd,u),i=!1)),i){r=e.indexOf("<");var s=r<0?e:e.substring(0,r);e=r<0?"":e.substring(r),t.chars&&t.chars(s)}}else e=e.replace(new RegExp("([\\s\\S]*?)</"+n.last()+"[^>]*>"),function(f,v){return v=v.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(v),""}),l("",n.last());if(e==o)throw"Parse Error: "+e;o=e}l();function u(f,v,m,d){if(v=v.toLowerCase(),Xx[v])for(;n.last()&&Zx[n.last()];)l("",n.last());if(Kx[v]&&n.last()==v&&l("",v),d=qx[v]||!!d,d||n.push(v),t.start){var _=[];m.replace(Yx,function(b,x){var p=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:Gx[x]?x:"";_.push({name:x,value:p,escaped:p.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(v,_,d)}}function l(f,v){if(v)for(var m=n.length-1;m>=0&&n[m]!=v;m--);else var m=0;if(m>=0){for(var d=n.length-1;d>=m;d--)t.end&&t.end(n[d]);n.length=m}}}function ni(e){for(var t={},r=e.split(","),i=0;i<r.length;i++)t[r[i]]=!0;return t}var ml={};function Wd(e,t,r){var i=typeof e=="string"?window[e]:e;if(i){r();return}var a=ml[t];if(!a){a=ml[t]=[];var n=document.createElement("script");n.src=t,document.body.appendChild(n),n.onload=function(){a.forEach(o=>o()),delete ml[t]}}a.push(r)}function Qx(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function ey(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function ty(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},a=new r.Style("align","text-align",i);return{"formats/align":a}}function ry(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},a=new r.Style("direction","direction",i);return{"formats/direction":a}}function iy(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class a extends r{static create(o){var s=o==="ordered"?"OL":"UL",u=super.create(s);return(o==="checked"||o==="unchecked")&&u.setAttribute("data-checked",o==="checked"),u}static formats(o){if(o.tagName==="OL")return"ordered";if(o.tagName==="UL")return o.hasAttribute("data-checked")?o.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(o){super(o);var s=u=>{if(u.target.parentNode===o){var l=this.statics.formats(o),f=t.find(u.target);l==="checked"?f.format("list","unchecked"):l==="unchecked"&&f.format("list","checked")}};o.addEventListener("click",s)}format(o,s){this.children.length>0&&this.children.tail.format(o,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(o,s){if(o instanceof i)super.insertBefore(o,s);else{var u=s==null?this.length():s.offset(this),l=this.split(u);l.parent.insertBefore(o,l)}}optimize(o){super.optimize(o);var s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(o){if(o.statics.blotName!==this.statics.blotName){var s=t.create(this.statics.defaultChild);o.moveChildren(s),this.appendChild(s)}super.replace(o)}}return a.blotName="list",a.scope=t.Scope.BLOCK_BLOT,a.tagName=["OL","UL"],a.defaultChild="list-item",a.allowedChildren=[i],{"formats/list":a}}function ay(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function ny(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},a=["margin","marginTop","marginBottom","marginLeft","marginRight"],n=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],o={};return a.concat(n).forEach(s=>{o["formats/".concat(s)]=new r.Style(s,Ke(s),i)}),o}function oy(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},a=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],n={};return a.forEach(o=>{n["formats/".concat(o)]=new r.Style(o,Ke(o),i)}),n}function sy(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],a={};return i.forEach(n=>{var{name:o,scope:s}=n;a["formats/".concat(o)]=new r.Style(o,Ke(o),{scope:s})}),a}function ly(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=a=>a&&vt(a),t.formats=function(n){return r.reduce(function(o,s){return n.hasAttribute(s)&&(o[s]=n.getAttribute(s)),o},{})};var i=t.prototype.format;t.prototype.format=function(a,n){r.indexOf(a)>-1?n?this.domNode.setAttribute(a,n):this.domNode.removeAttribute(a):i.call(this,a,n)}}function uy(e){var t=e.import("formats/link");t.sanitize=r=>{var i=document.createElement("a");i.href=r;var a=i.href.slice(0,i.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(a)>-1?r:t.SANITIZED_URL}}function fy(e){var t={divider:Qx,ins:ey,align:ty,direction:ry,list:iy,background:ay,box:ny,font:oy,text:sy,image:ly,link:uy},r={};Object.values(t).forEach(i=>ve(r,i(e))),e.register(r,!0)}function cy(e,t,r){var i,a,n,o=!1;H(()=>e.readOnly,_=>{i&&(n.enable(!_),_||n.blur())}),H(()=>e.placeholder,_=>{i&&l(_)});function s(_){var b=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],x="",p;Hd(_,{start:function(c,h,w){if(!b.includes(c)){p=!w;return}p=!1;var y=h.map(E=>{var{name:O,value:N}=E;return"".concat(O,'="').concat(N,'"')}).join(" "),T="<".concat(c," ").concat(y," ").concat(w?"/":"",">");x+=T},end:function(c){p||(x+="</".concat(c,">"))},chars:function(c){p||(x+=c)}}),a=!0;var g=n.clipboard.convert(x);return a=!1,g}function u(){var _=n.root.innerHTML,b=n.getText(),x=n.getContents();return{html:_,text:b,delta:x}}function l(_){var b="data-placeholder",x=n.root;x.getAttribute(b)!==_&&x.setAttribute(b,_)}var f={};function v(_){var b=_?n.getFormat(_):{},x=Object.keys(b);(x.length!==Object.keys(f).length||x.find(p=>b[p]!==f[p]))&&(f=b,r("statuschange",{},b))}function m(_){var b=window.Quill;fy(b);var x={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};_.length&&(b.register("modules/ImageResize",window.ImageResize.default),x.modules={ImageResize:{modules:_}});var p=t.value;n=new b(p,x);var g=n.root,c=["focus","blur","input"];c.forEach(h=>{g.addEventListener(h,w=>{var y=u();if(h==="input"){if(Cc().platform==="ios"){var T=(y.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],E=T&&T.replace(/\s/g,"")?"":e.placeholder;l(E)}w.stopPropagation()}else r(h,w,y)})}),n.on("text-change",()=>{o||r("input",{},u())}),n.on("selection-change",v),n.on("scroll-optimize",()=>{var h=n.selection.getRange()[0];v(h)}),n.clipboard.addMatcher(Node.ELEMENT_NODE,(h,w)=>(a||w.ops&&(w.ops=w.ops.filter(y=>{var{insert:T}=y;return typeof T=="string"}).map(y=>{var{insert:T}=y;return{insert:T}})),w)),i=!0,r("ready",{},{})}Re(()=>{var _=[];e.showImgSize&&_.push("DisplaySize"),e.showImgToolbar&&_.push("Toolbar"),e.showImgResize&&_.push("Resize");var b="./__uniappquill.js";Wd(window.Quill,b,()=>{if(_.length){var x="./__uniappquillimageresize.js";Wd(window.ImageResize,x,()=>{m(_)})}else m(_)})});var d=qn();Yn((_,b,x)=>{var{options:p,callbackId:g}=b,c,h,w;if(i){var y=window.Quill;switch(_){case"format":{var{name:T="",value:E=!1}=p;h=n.getSelection(!0);var O=n.getFormat(h)[T]||!1;if(["bold","italic","underline","strike","ins"].includes(T))E=!O;else if(T==="direction"){E=E==="rtl"&&O?!1:E;var N=n.getFormat(h).align;E==="rtl"&&!N?n.format("align","right","user"):!E&&N==="right"&&n.format("align",!1,"user")}else if(T==="indent"){var R=n.getFormat(h).direction==="rtl";E=E==="+1",R&&(E=!E),E=E?"+1":"-1"}else T==="list"&&(E=E==="check"?"unchecked":E,O=O==="checked"?"unchecked":O),E=O&&O!==(E||!1)||!O&&E?E:!O;n.format(T,E,"user")}break;case"insertDivider":h=n.getSelection(!0),n.insertText(h.index,mi,"user"),n.insertEmbed(h.index+1,"divider",!0,"user"),n.setSelection(h.index+2,0,"silent");break;case"insertImage":{h=n.getSelection(!0);var{src:V="",alt:ue="",width:M="",height:B="",extClass:Q="",data:te={}}=p,W=vt(V);n.insertEmbed(h.index,"image",W,"user");var G=/^(file|blob):/.test(W)?W:!1;o=!0,n.formatText(h.index,1,"data-local",G),n.formatText(h.index,1,"alt",ue),n.formatText(h.index,1,"width",M),n.formatText(h.index,1,"height",B),n.formatText(h.index,1,"class",Q),o=!1,n.formatText(h.index,1,"data-custom",Object.keys(te).map(ie=>"".concat(ie,"=").concat(te[ie])).join("&")),n.setSelection(h.index+1,0,"silent")}break;case"insertText":{h=n.getSelection(!0);var{text:ae=""}=p;n.insertText(h.index,ae,"user"),n.setSelection(h.index+ae.length,0,"silent")}break;case"setContents":{var{delta:Se,html:se}=p;typeof Se=="object"?n.setContents(Se,"silent"):typeof se=="string"?n.setContents(s(se),"silent"):w="contents is missing"}break;case"getContents":c=u();break;case"clear":n.setText("");break;case"removeFormat":{h=n.getSelection(!0);var K=y.import("parchment");h.length?n.removeFormat(h.index,h.length,"user"):Object.keys(n.getFormat(h)).forEach(ie=>{K.query(ie,K.Scope.INLINE)&&n.format(ie,!1)})}break;case"undo":n.history.undo();break;case"redo":n.history.redo();break;case"blur":n.blur();break;case"getSelectionText":h=n.selection.savedRange,c={text:""},h&&h.length!==0&&(c.text=n.getText(h.index,h.length));break;case"scrollIntoView":n.scrollIntoView();break}v(h)}else w="not ready";g&&x({callbackId:g,data:ve({},c,{errMsg:"".concat(_,":").concat(w?"fail "+w:"ok")})})},d,!0)}var vy=ve({},Bd,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),dy=ge({name:"Editor",props:vy,emit:["ready","focus","blur","input","statuschange",...$d],setup(e,t){var{emit:r}=t,i=U(null),a=Pe(i,r);return cy(e,i,a),Fd(e,i,a),()=>I("uni-editor",{ref:i,id:e.id,class:"ql-container"},null,8,["id"])}}),Vd="#10aeff",hy="#f76260",jd="#b2b2b2",gy="#f43530",py={success:{d:sb,c:Pa},success_no_circle:{d:hn,c:Pa},info:{d:nb,c:Vd},warn:{d:ub,c:hy},waiting:{d:lb,c:Vd},cancel:{d:rb,c:gy},download:{d:ab,c:Pa},search:{d:ob,c:jd},clear:{d:ib,c:jd}},my=ge({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=ee(()=>py[e.type]);return()=>{var{value:r}=t;return I("uni-icon",null,[r&&r.d&&gn(r.d,e.color||r.c,_r(e.size))])}}}),_y={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},$n={widthFix:["offsetWidth","height"],heightFix:["offsetHeight","width"]},by={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},wy=ge({name:"Image",props:_y,setup(e,t){var{emit:r}=t,i=U(null),a=xy(i,e),n=Pe(i,r),{fixSize:o}=Ty(i,e,a);return yy(a,o,n),()=>{var{mode:s}=e,{imgSrc:u,modeStyle:l,src:f}=a,v;return v=u?I("img",{src:u,draggable:e.draggable},null,8,["src","draggable"]):I("img",null,null),I("uni-image",{ref:i},[I("div",{style:l},null,4),v,$n[s]?I(Ir,{onResize:o},null,8,["onResize"]):I("span",null,null)],512)}}});function xy(e,t){var r=U(""),i=ee(()=>{var n="auto",o="",s=by[t.mode];return s?(s[0]&&(o=s[0]),s[1]&&(n=s[1])):(o="0% 0%",n="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",";background-position:").concat(o,";background-size:").concat(n,";")}),a=Ae({rootEl:e,src:ee(()=>t.src?vt(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Re(()=>{var n=e.value,o=n.style;a.origWidth=Number(o.width)||0,a.origHeight=Number(o.height)||0}),a}function yy(e,t,r){var i,a=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";e.origWidth=s,e.origHeight=u,e.imgSrc=l},n=s=>{if(!s){o(),a();return}i=i||new Image,i.onload=u=>{var{width:l,height:f}=i;a(l,f,s),t(),o(),r("load",u,{width:l,height:f})},i.onerror=u=>{a(),o(),r("error",u,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},i.src=s},o=()=>{i&&(i.onload=null,i.onerror=null,i=null)};H(()=>e.src,s=>n(s)),Re(()=>n(e.src)),Ce(()=>o())}var Sy=navigator.vendor==="Google Inc.";function Ey(e){return Sy&&e>10&&(e=Math.round(e/2)*2),e}function Ty(e,t,r){var i=()=>{var{mode:n}=t,o=$n[n];if(!!o){var{origWidth:s,origHeight:u}=r,l=s&&u?s/u:0;if(!!l){var f=e.value,v=f[o[0]];v&&(f.style[o[1]]=Ey(v/l)+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},a=()=>{var{style:n}=e.value,{origStyle:{width:o,height:s}}=r;n.width=o,n.height=s};return H(()=>t.mode,(n,o)=>{$n[o]&&a(),$n[n]&&i()}),{fixSize:i,resetSize:a}}function Cy(e,t){var r=0,i,a,n=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var l=Date.now();if(clearTimeout(i),a=()=>{a=null,r=l,e.apply(this,s)},l-r<t){i=setTimeout(a,t-(l-r));return}a()};return n.cancel=function(){clearTimeout(i),a=null},n.flush=function(){clearTimeout(i),a&&a()},n}var Oy=_i(!0),Fn=[],_l=0,Yd,qd=e=>Fn.forEach(t=>t.userAction=e);function Ay(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{userAction:!1};if(!Yd){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach(r=>{document.addEventListener(r,function(){!_l&&qd(!0),_l++,setTimeout(()=>{!--_l&&qd(!1)},0)},Oy)}),Yd=!0}Fn.push(e)}function Iy(e){var t=Fn.indexOf(e);t>=0&&Fn.splice(t,1)}function ky(){var e=Ae({userAction:!1});return Re(()=>{Ay(e)}),Ce(()=>{Iy(e)}),{state:e}}function Xd(){var e=Ae({attrs:{}});return Re(()=>{for(var t=Pt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function My(e,t){var r=_e(At,!1);if(!!r){var i=Pt(),a={submit(){var n=i.proxy;return[n[e],typeof t=="string"?n[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(a),Ce(()=>{r.removeField(a)})}}function Ry(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var Ly=function(){bt(Xt(),"getSelectedTextRange",Ry)},Py=200,bl;function wl(e){return e===null?"":String(e)}var Zd=ve({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1}},Bd),Kd=["input","focus","blur","update:value","update:modelValue","update:focus",...$d];function Ny(e,t,r){var i=U(null),a=Pe(t,r),n=ee(()=>{var v=Number(e.selectionStart);return isNaN(v)?-1:v}),o=ee(()=>{var v=Number(e.selectionEnd);return isNaN(v)?-1:v}),s=ee(()=>{var v=Number(e.cursor);return isNaN(v)?-1:v}),u=ee(()=>{var v=Number(e.maxlength);return isNaN(v)?140:v}),l=wl(e.modelValue)||wl(e.value),f=Ae({value:l,valueOrigin:l,maxlength:u,focus:e.focus,composing:!1,selectionStart:n,selectionEnd:o,cursor:s});return H(()=>f.focus,v=>r("update:focus",v)),H(()=>f.maxlength,v=>f.value=f.value.slice(0,v)),{fieldRef:i,state:f,trigger:a}}function Dy(e,t,r,i){var a=s0(s=>{t.value=wl(s)},100);H(()=>e.modelValue,a),H(()=>e.value,a);var n=Cy((s,u)=>{a.cancel(),r("update:modelValue",u.value),r("update:value",u.value),i("input",s,u)},100),o=(s,u,l)=>{a.cancel(),n(s,u),l&&n.flush()};return Lf(()=>{a.cancel(),n.cancel()}),{trigger:i,triggerInput:o}}function By(e,t){var{state:r}=ky(),i=ee(()=>e.autoFocus||e.focus);function a(){if(!!i.value){var o=t.value;if(!o||!("plus"in window)){setTimeout(a,100);return}{var s=Py-(Date.now()-bl);if(s>0){setTimeout(a,s);return}o.focus(),r.userAction||plus.key.showSoftKeybord()}}}function n(){var o=t.value;o&&o.blur()}H(()=>e.focus,o=>{o?a():n()}),Re(()=>{bl=bl||Date.now(),i.value&&Vr(a)})}function $y(e,t,r,i,a){function n(){var l=e.value;l&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&l.type!=="number"&&(l.selectionStart=t.selectionStart,l.selectionEnd=t.selectionEnd)}function o(){var l=e.value;l&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&l.type!=="number"&&(l.selectionEnd=l.selectionStart=t.cursor)}function s(l){return l.type==="number"?null:l.selectionEnd}function u(){var l=e.value,f=function(d){t.focus=!0,r("focus",d,{value:t.value}),n(),o()},v=function(d,_){d.stopPropagation(),!(typeof a=="function"&&a(d,t)===!1)&&(t.value=l.value,t.composing||i(d,{value:l.value,cursor:s(l)},_))},m=function(d){t.composing&&(t.composing=!1,v(d,!0)),t.focus=!1,r("blur",d,{value:t.value,cursor:s(d.target)})};l.addEventListener("change",d=>d.stopPropagation()),l.addEventListener("focus",f),l.addEventListener("blur",m),l.addEventListener("input",v),l.addEventListener("compositionstart",d=>{d.stopPropagation(),t.composing=!0}),l.addEventListener("compositionend",d=>{d.stopPropagation(),t.composing&&(t.composing=!1,v(d))})}H([()=>t.selectionStart,()=>t.selectionEnd],n),H(()=>t.cursor,o),H(()=>e.value,u)}function Gd(e,t,r,i){Ly();var{fieldRef:a,state:n,trigger:o}=Ny(e,t,r),{triggerInput:s}=Dy(e,n,r,o);By(e,a),Fd(e,a,o);var{state:u}=Xd();My("name",n),$y(a,n,o,s,i);var l=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:a,state:n,scopedAttrsState:u,fixDisabledColor:l,trigger:o}}var Fy=ve({},Zd,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),zy=ge({name:"Input",props:Fy,emits:["confirm",...Kd],setup(e,t){var{emit:r}=t,i=["text","number","idcard","digit","password","tel"],a=["off","one-time-code"],n=ee(()=>{var g="";switch(e.type){case"text":e.confirmType==="search"&&(g="search");break;case"idcard":g="text";break;case"digit":g="number";break;default:g=~i.includes(e.type)?e.type:"text";break}return e.password?"password":g}),o=ee(()=>{var g=a.indexOf(e.textContentType),c=a.indexOf(Ke(e.textContentType)),h=g!==-1?g:c!==-1?c:0;return a[h]}),s=U(""),u,l=U(null),{fieldRef:f,state:v,scopedAttrsState:m,fixDisabledColor:d,trigger:_}=Gd(e,l,r,(g,c)=>{var h=g.target;if(n.value==="number"){if(u&&(h.removeEventListener("blur",u),u=null),h.validity&&!h.validity.valid)return!s.value&&g.data==="-"||s.value[0]==="-"&&g.inputType==="deleteContentBackward"?(s.value="-",c.value="",u=()=>{s.value=h.value=""},h.addEventListener("blur",u),!1):(s.value=c.value=h.value=s.value==="-"?"":s.value,!1);s.value=h.value;var w=c.maxlength;if(w>0&&h.value.length>w)return h.value=h.value.slice(0,w),c.value=h.value,!1}}),b=["number","digit"],x=ee(()=>b.includes(e.type)?"0.000000000000000001":"");function p(g){if(g.key==="Enter"){var c=g.target;g.stopPropagation(),_("confirm",g,{value:c.value}),!e.confirmHold&&c.blur()}}return()=>{var g=e.disabled&&d?I("input",{ref:f,value:v.value,tabindex:"-1",readonly:!!e.disabled,type:n.value,maxlength:v.maxlength,step:x.value,class:"uni-input-input",onFocus:c=>c.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):I("input",{ref:f,value:v.value,disabled:!!e.disabled,type:n.value,maxlength:v.maxlength,step:x.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:o.value,onKeyup:p},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return I("uni-input",{ref:l},[I("div",{class:"uni-input-wrapper"},[ki(I("div",et(m.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Pi,!(v.value.length||s.value==="-")]]),e.confirmType==="search"?I("form",{action:"",onSubmit:c=>c.preventDefault(),class:"uni-input-form"},[g],40,["onSubmit"]):g])],512)}}});function Uy(e){return Object.keys(e).map(t=>[t,e[t]])}var Hy=["class","style"],Wy=/^on[A-Z]+/,Jd=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=Pt(),a=ts({}),n=ts({}),o=ts({}),s=r.concat(Hy);return i.attrs=Ae(i.attrs),Nm(()=>{var u=Uy(i.attrs).reduce((l,f)=>{var[v,m]=f;return s.includes(v)?l.exclude[v]=m:Wy.test(v)?(t||(l.attrs[v]=m),l.listeners[v]=m):l.attrs[v]=m,l},{exclude:{},attrs:{},listeners:{}});a.value=u.attrs,n.value=u.listeners,o.value=u.exclude}),{$attrs:a,$listeners:n,$excludeAttrs:o}},zn,ia;function Un(){$r(()=>{zn||(zn=plus.webview.currentWebview()),ia||(ia=(zn.getStyle()||{}).pullToRefresh||{})})}function ar(e){var{disable:t}=e;ia&&ia.support&&zn.setPullToRefresh(Object.assign({},ia,{support:!t}))}function xl(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{tn(r)?r.type===wt?t.push(...xl(r.children)):t.push(r):Array.isArray(r)&&t.push(...xl(r))}),t}function aa(e){var t=Pt();t.rebuild=e}var Vy={scaleArea:{type:Boolean,default:!1}},jy=ge({inheritAttrs:!1,name:"MovableArea",props:Vy,setup(e,t){var{slots:r}=t,i=U(null),a=U(!1),{setContexts:n,events:o}=Yy(e,i),{$listeners:s,$attrs:u,$excludeAttrs:l}=Jd(),f=s.value,v=["onTouchstart","onTouchmove","onTouchend"];v.forEach(p=>{var g=f[p],c=o["_".concat(p)];f[p]=g?[].concat(g,c):c}),Re(()=>{o._resize(),Un(),a.value=!0});var m=[],d=[];function _(){for(var p=[],g=function(h){var w=m[h];w instanceof Element||(w=w.el);var y=d.find(T=>w===T.rootRef.value);y&&p.push(Za(y))},c=0;c<m.length;c++)g(c);n(p)}aa(()=>{m=i.value.children,_()});var b=p=>{d.push(p),_()},x=p=>{var g=d.indexOf(p);g>=0&&(d.splice(g,1),_())};return Fe("_isMounted",a),Fe("movableAreaRootRef",i),Fe("addMovableViewContext",b),Fe("removeMovableViewContext",x),()=>(r.default&&r.default(),I("uni-movable-area",et({ref:i},u.value,l.value,f),[I(Ir,{onReize:o._resize},null,8,["onReize"]),m],16))}});function Qd(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function Yy(e,t){var r=U(0),i=U(0),a=Ae({x:null,y:null}),n=U(null),o=null,s=[];function u(b){b&&b!==1&&(e.scaleArea?s.forEach(function(x){x._setScale(b)}):o&&o._setScale(b))}function l(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,p=t.value;function g(c){for(var h=0;h<x.length;h++){var w=x[h];if(c===w.rootRef.value)return w}return c===p||c===document.body||c===document?null:g(c.parentNode)}return g(b)}var f=Ar(b=>{ar({disable:!0});var x=b.touches;if(x&&x.length>1){var p={x:x[1].pageX-x[0].pageX,y:x[1].pageY-x[0].pageY};if(n.value=Qd(p),a.x=p.x,a.y=p.y,!e.scaleArea){var g=l(x[0].target),c=l(x[1].target);o=g&&g===c?g:null}}}),v=Ar(b=>{var x=b.touches;if(x&&x.length>1){b.preventDefault();var p={x:x[1].pageX-x[0].pageX,y:x[1].pageY-x[0].pageY};if(a.x!==null&&n.value&&n.value>0){var g=Qd(p)/n.value;u(g)}a.x=p.x,a.y=p.y}}),m=Ar(b=>{ar({disable:!1});var x=b.touches;x&&x.length||b.changedTouches&&(a.x=0,a.y=0,n.value=null,e.scaleArea?s.forEach(function(p){p._endScale()}):o&&o._endScale())});function d(){_(),s.forEach(function(b,x){b.setParent()})}function _(){var b=window.getComputedStyle(t.value),x=t.value.getBoundingClientRect();r.value=x.width-["Left","Right"].reduce(function(p,g){var c="border"+g+"Width",h="padding"+g;return p+parseFloat(b[c])+parseFloat(b[h])},0),i.value=x.height-["Top","Bottom"].reduce(function(p,g){var c="border"+g+"Width",h="padding"+g;return p+parseFloat(b[c])+parseFloat(b[h])},0)}return Fe("movableAreaWidth",r),Fe("movableAreaHeight",i),{setContexts(b){s=b},events:{_onTouchstart:f,_onTouchmove:v,_onTouchend:m,_resize:d}}}var na=function(e,t,r,i){e.addEventListener(t,a=>{typeof r=="function"&&r(a)===!1&&((typeof a.cancelable!="undefined"?a.cancelable:!0)&&a.preventDefault(),a.stopPropagation())},{passive:!1})},eh,th;function Hn(e,t,r){Ce(()=>{document.removeEventListener("mousemove",eh),document.removeEventListener("mouseup",th)});var i=0,a=0,n=0,o=0,s=function(d,_,b,x){if(t({target:d.target,currentTarget:d.currentTarget,preventDefault:d.preventDefault.bind(d),stopPropagation:d.stopPropagation.bind(d),touches:d.touches,changedTouches:d.changedTouches,detail:{state:_,x:b,y:x,dx:b-i,dy:x-a,ddx:b-n,ddy:x-o,timeStamp:d.timeStamp}})===!1)return!1},u=null,l,f;na(e,"touchstart",function(d){if(l=!0,d.touches.length===1&&!u)return u=d,i=n=d.touches[0].pageX,a=o=d.touches[0].pageY,s(d,"start",i,a)}),na(e,"mousedown",function(d){if(f=!0,!l&&!u)return u=d,i=n=d.pageX,a=o=d.pageY,s(d,"start",i,a)}),na(e,"touchmove",function(d){if(d.touches.length===1&&u){var _=s(d,"move",d.touches[0].pageX,d.touches[0].pageY);return n=d.touches[0].pageX,o=d.touches[0].pageY,_}});var v=eh=function(d){if(!l&&f&&u){var _=s(d,"move",d.pageX,d.pageY);return n=d.pageX,o=d.pageY,_}};document.addEventListener("mousemove",v),na(e,"touchend",function(d){if(d.touches.length===0&&u)return l=!1,u=null,s(d,"end",d.changedTouches[0].pageX,d.changedTouches[0].pageY)});var m=th=function(d){if(f=!1,!l&&u)return u=null,s(d,"end",d.pageX,d.pageY)};document.addEventListener("mouseup",m),na(e,"touchcancel",function(d){if(u){l=!1;var _=u;return u=null,s(d,r?"cancel":"end",_.touches[0].pageX,_.touches[0].pageY)}})}function Wn(e,t,r){return e>t-r&&e<t+r}function kr(e,t){return Wn(e,0,t)}function yl(){}yl.prototype.x=function(e){return Math.sqrt(e)};function It(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}It.prototype.setV=function(e,t){var r=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/r,this._y_a=-this._f*this._y_v/r,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=new Date().getTime()},It.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},It.prototype.s=function(e){e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&r<this._endPositionY||this._y_a<0&&r>this._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},It.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},It.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},It.prototype.dt=function(){return-this._x_v/this._x_a},It.prototype.done=function(){var e=Wn(this.s().x,this._endPositionX)||Wn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},It.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},It.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function rt(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}rt.prototype._solve=function(e,t){var r=this._c,i=this._m,a=this._k,n=r*r-4*i*a;if(n===0){var o=-r/(2*i),s=e,u=t/(o*e);return{x:function(p){return(s+u*p)*Math.pow(Math.E,o*p)},dx:function(p){var g=Math.pow(Math.E,o*p);return o*(s+u*p)*g+u*g}}}if(n>0){var l=(-r-Math.sqrt(n))/(2*i),f=(-r+Math.sqrt(n))/(2*i),v=(t-l*e)/(f-l),m=e-v;return{x:function(p){var g,c;return p===this._t&&(g=this._powER1T,c=this._powER2T),this._t=p,g||(g=this._powER1T=Math.pow(Math.E,l*p)),c||(c=this._powER2T=Math.pow(Math.E,f*p)),m*g+v*c},dx:function(p){var g,c;return p===this._t&&(g=this._powER1T,c=this._powER2T),this._t=p,g||(g=this._powER1T=Math.pow(Math.E,l*p)),c||(c=this._powER2T=Math.pow(Math.E,f*p)),m*l*g+v*f*c}}}var d=Math.sqrt(4*i*a-r*r)/(2*i),_=-r/2*i,b=e,x=(t-_*e)/d;return{x:function(p){return Math.pow(Math.E,_*p)*(b*Math.cos(d*p)+x*Math.sin(d*p))},dx:function(p){var g=Math.pow(Math.E,_*p),c=Math.cos(d*p),h=Math.sin(d*p);return g*(x*d*c-b*d*h)+_*g*(x*h+b*c)}}},rt.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},rt.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},rt.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!kr(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(kr(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),kr(t,.1)&&(t=0),kr(i,.1)&&(i=0),i+=this._endPosition),this._solution&&kr(i-e,.1)&&kr(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},rt.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},rt.prototype.done=function(e){return e||(e=new Date().getTime()),Wn(this.x(),this._endPosition,.1)&&kr(this.dx(),.1)},rt.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},rt.prototype.springConstant=function(){return this._k},rt.prototype.damping=function(){return this._c},rt.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function oa(e,t,r){this._springX=new rt(e,t,r),this._springY=new rt(e,t,r),this._springScale=new rt(e,t,r),this._startTime=0}oa.prototype.setEnd=function(e,t,r,i){var a=new Date().getTime();this._springX.setEnd(e,i,a),this._springY.setEnd(t,i,a),this._springScale.setEnd(r,i,a),this._startTime=a},oa.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},oa.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},oa.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var qy={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},Xy=ge({name:"MovableView",props:qy,emits:["change","scale"],setup(e,t){var{slots:r,emit:i}=t,a=U(null),n=Pe(a,i),{setParent:o}=Zy(e,n,a);return()=>I("uni-movable-view",{ref:a},[I(Ir,{onResize:o},null,8,["onResize"]),r.default&&r.default()],512)}}),Sl=!1;function rh(e){Sl||(Sl=!0,requestAnimationFrame(function(){e(),Sl=!1}))}function ih(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=ih(e.offsetParent,t):0}function ah(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=ah(e.offsetParent,t):0}function nh(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function oh(e,t,r){var i={id:0,cancelled:!1},a=function(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)};function n(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(n.bind(null,o,s,u,l))),f&&l&&l(s)}}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}function Vn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function Zy(e,t,r){var i=_e("movableAreaWidth",U(0)),a=_e("movableAreaHeight",U(0)),n=_e("_isMounted",U(!1)),o=_e("movableAreaRootRef"),s=_e("addMovableViewContext",()=>{}),u=_e("removeMovableViewContext",()=>{}),l=U(Vn(e.x)),f=U(Vn(e.y)),v=U(Number(e.scaleValue)||1),m=U(0),d=U(0),_=U(0),b=U(0),x=U(0),p=U(0),g=null,c=null,h={x:0,y:0},w={x:0,y:0},y=1,T=1,E=0,O=0,N=!1,R=!1,V,ue,M=null,B=null,Q=new yl,te=new yl,W={historyX:[0,0],historyY:[0,0],historyT:[0,0]},G=ee(()=>{var A=Number(e.damping);return isNaN(A)?20:A}),ae=ee(()=>{var A=Number(e.friction);return isNaN(A)||A<=0?2:A}),Se=ee(()=>{var A=Number(e.scaleMin);return isNaN(A)?.5:A}),se=ee(()=>{var A=Number(e.scaleMax);return isNaN(A)?10:A}),K=ee(()=>e.direction==="all"||e.direction==="horizontal"),ie=ee(()=>e.direction==="all"||e.direction==="vertical"),le=new oa(1,9*Math.pow(G.value,2)/40,G.value),Ie=new It(1,ae.value);H(()=>e.x,A=>{l.value=Vn(A)}),H(()=>e.y,A=>{f.value=Vn(A)}),H(l,A=>{nt(A)}),H(f,A=>{nr(A)}),H(()=>e.scaleValue,A=>{v.value=Number(A)||0}),H(v,A=>{fa(A)}),H(Se,()=>{Ne()}),H(se,()=>{Ne()});function ke(){c&&c.cancel(),g&&g.cancel()}function nt(A){if(K.value){if(A+w.x===E)return E;g&&g.cancel(),J(A+w.x,f.value+w.y,y)}return A}function nr(A){if(ie.value){if(A+w.y===O)return O;g&&g.cancel(),J(l.value+w.x,A+w.y,y)}return A}function Ne(){if(!e.scale)return!1;$(y,!0),z(y)}function fa(A){return e.scale?(A=D(A),$(A,!0),z(A),A):!1}function ca(){N||e.disabled||(ar({disable:!0}),ke(),W.historyX=[0,0],W.historyY=[0,0],W.historyT=[0,0],K.value&&(V=E),ie.value&&(ue=O),r.value.style.willChange="transform",M=null,B=null,R=!0)}function S(A){if(A.stopPropagation(),!N&&!e.disabled&&R){var Y=E,q=O;if(B===null&&(B=Math.abs(A.detail.dx/A.detail.dy)>1?"htouchmove":"vtouchmove"),K.value&&(Y=A.detail.dx+V,W.historyX.shift(),W.historyX.push(Y),!ie.value&&M===null&&(M=Math.abs(A.detail.dx/A.detail.dy)<1)),ie.value&&(q=A.detail.dy+ue,W.historyY.shift(),W.historyY.push(q),!K.value&&M===null&&(M=Math.abs(A.detail.dy/A.detail.dx)<1)),W.historyT.shift(),W.historyT.push(A.detail.timeStamp),!M){A.preventDefault();var he="touch";Y<_.value?e.outOfBounds?(he="touch-out-of-bounds",Y=_.value-Q.x(_.value-Y)):Y=_.value:Y>x.value&&(e.outOfBounds?(he="touch-out-of-bounds",Y=x.value+Q.x(Y-x.value)):Y=x.value),q<b.value?e.outOfBounds?(he="touch-out-of-bounds",q=b.value-te.x(b.value-q)):q=b.value:q>p.value&&(e.outOfBounds?(he="touch-out-of-bounds",q=p.value+te.x(q-p.value)):q=p.value),rh(function(){X(Y,q,y,he)})}}}function C(){if(!N&&!e.disabled&&R&&(ar({disable:!1}),r.value.style.willChange="auto",R=!1,!M&&!Z("out-of-bounds")&&e.inertia)){var A=1e3*(W.historyX[1]-W.historyX[0])/(W.historyT[1]-W.historyT[0]),Y=1e3*(W.historyY[1]-W.historyY[0])/(W.historyT[1]-W.historyT[0]);Ie.setV(A,Y),Ie.setS(E,O);var q=Ie.delta().x,he=Ie.delta().y,fe=q+E,$e=he+O;fe<_.value?(fe=_.value,$e=O+(_.value-E)*he/q):fe>x.value&&(fe=x.value,$e=O+(x.value-E)*he/q),$e<b.value?($e=b.value,fe=E+(b.value-O)*q/he):$e>p.value&&($e=p.value,fe=E+(p.value-O)*q/he),Ie.setEnd(fe,$e),c=oh(Ie,function(){var Ze=Ie.s(),De=Ze.x,gt=Ze.y;X(De,gt,y,"friction")},function(){c.cancel()})}!e.outOfBounds&&!e.inertia&&ke()}function k(A,Y){var q=!1;return A>x.value?(A=x.value,q=!0):A<_.value&&(A=_.value,q=!0),Y>p.value?(Y=p.value,q=!0):Y<b.value&&(Y=b.value,q=!0),{x:A,y:Y,outOfBounds:q}}function L(){h.x=ih(r.value,o.value),h.y=ah(r.value,o.value)}function P(A){A=A||y,A=D(A);var Y=r.value.getBoundingClientRect();d.value=Y.height/y,m.value=Y.width/y;var q=d.value*A,he=m.value*A;w.x=(he-m.value)/2,w.y=(q-d.value)/2}function F(){var A=0-h.x+w.x,Y=i.value-m.value-h.x-w.x;_.value=Math.min(A,Y),x.value=Math.max(A,Y);var q=0-h.y+w.y,he=a.value-d.value-h.y-w.y;b.value=Math.min(q,he),p.value=Math.max(q,he)}function j(){N=!0}function $(A,Y){if(e.scale){A=D(A),P(A),F();var q=k(E,O),he=q.x,fe=q.y;Y?J(he,fe,A,"",!0,!0):rh(function(){X(he,fe,A,"",!0,!0)})}}function z(A){T=A}function D(A){return A=Math.max(.5,Se.value,A),A=Math.min(10,se.value,A),A}function J(A,Y,q,he,fe,$e){ke(),K.value||(A=E),ie.value||(Y=O),e.scale||(q=y);var Ze=k(A,Y);if(A=Ze.x,Y=Ze.y,!e.animation){X(A,Y,q,he,fe,$e);return}le._springX._solution=null,le._springY._solution=null,le._springScale._solution=null,le._springX._endPosition=E,le._springY._endPosition=O,le._springScale._endPosition=y,le.setEnd(A,Y,q,1),g=oh(le,function(){var De=le.x(),gt=De.x,or=De.y,kt=De.scale;X(gt,or,kt,he,fe,$e)},function(){g.cancel()})}function Z(A){var Y=k(E,O),q=Y.x,he=Y.y,fe=Y.outOfBounds;return fe&&J(q,he,y,A),fe}function X(A,Y,q){var he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",fe=arguments.length>4?arguments[4]:void 0,$e=arguments.length>5?arguments[5]:void 0;A!==null&&A.toString()!=="NaN"&&typeof A=="number"||(A=E||0),Y!==null&&Y.toString()!=="NaN"&&typeof Y=="number"||(Y=O||0),A=Number(A.toFixed(1)),Y=Number(Y.toFixed(1)),q=Number(q.toFixed(1)),E===A&&O===Y||fe||t("change",{},{x:nh(A,w.x),y:nh(Y,w.y),source:he}),e.scale||(q=y),q=D(q),q=+q.toFixed(3),$e&&q!==y&&t("scale",{},{x:A,y:Y,scale:q});var Ze="translateX("+A+"px) translateY("+Y+"px) translateZ(0px) scale("+q+")";r.value.style.transform=Ze,r.value.style.webkitTransform=Ze,E=A,O=Y,y=q}function ce(){if(!!n.value){ke();var A=e.scale?v.value:1;L(),P(A),F(),E=l.value+w.x,O=f.value+w.y;var Y=k(E,O),q=Y.x,he=Y.y;X(q,he,A,"",!0),z(A)}}function Be(){N=!1,z(y)}function Te(A){A&&(A=T*A,j(),$(A))}return Re(()=>{Hn(r.value,Y=>{switch(Y.detail.state){case"start":ca();break;case"move":S(Y);break;case"end":C()}}),ce(),Ie.reconfigure(1,ae.value),le.reconfigure(1,9*Math.pow(G.value,2)/40,G.value),r.value.style.transformOrigin="center",Un();var A={rootRef:r,setParent:ce,_endScale:Be,_setScale:Te};s(A),Yt(()=>{u(A)})}),Yt(()=>{ke()}),{setParent:ce}}var Ky=["navigate","redirect","switchTab","reLaunch","navigateBack"],Gy={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~Ky.indexOf(e))}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1}};function Jy(e){return()=>{if(e.openType!=="navigateBack"&&!e.url){console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}switch(e.openType){case"navigate":uni.navigateTo({url:e.url});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta});break}}}var Qy=ge({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:Gy,setup(e,t){var{slots:r}=t,i=Pt(),a=i&&i.root.type.__scopeId||"",{hovering:n,binding:o}=gl(e),s=Jy(e);return()=>{var{hoverClass:u,url:l}=e,f=e.hoverClass&&e.hoverClass!=="none";return I("a",{class:"navigator-wrap",href:l,onClick:gc},[I("uni-navigator",et({class:f&&n.value?u:""},f&&o,i?i.attrs:{},{[a]:""},{onClick:s}),[r.default&&r.default()],16,["onClick"])],8,["href","onClick"])}}}),eS={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function tS(e){var t=Ae([...e.value]),r=Ae({value:t,height:34});return H(()=>e.value,(i,a)=>{(i===a||i.length!==a.length||i.findIndex((n,o)=>n!==a[o])>=0)&&(r.value.length=i.length,i.forEach((n,o)=>{n!==r.value[o]&&r.value.splice(o,1,n)}))}),r}var rS=ge({name:"PickerView",props:eS,emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:r,emit:i}=t,a=U(null),n=U(null),o=Pe(a,i),s=tS(e),u=U(null),l=()=>{var _=u.value;s.height=_.$el.offsetHeight},f=U([]),v=U([]);function m(_){var b=v.value;if(b instanceof HTMLCollection)return Array.prototype.indexOf.call(b,_.el);b=b.filter(p=>p.type!==jr);var x=b.indexOf(_);return x!==-1?x:f.value.indexOf(_)}var d=function(_){var b=ee({get(){var x=m(_.vnode);return s.value[x]||0},set(x){var p=m(_.vnode);if(!(p<0)){var g=s.value[p];if(g!==x){s.value[p]=x;var c=s.value.map(h=>h);i("update:value",c),o("change",{},{value:c})}}}});return b};return Fe("getPickerViewColumn",d),Fe("pickerViewProps",e),Fe("pickerViewState",s),aa(()=>{l(),v.value=n.value.children}),()=>{var _=r.default&&r.default();return I("uni-picker-view",{ref:a},[I(Ir,{ref:u,onResize:b=>{var{height:x}=b;return s.height=x}},null,8,["onResize"]),I("div",{ref:n,class:"uni-picker-view-wrapper"},[_],512)],512)}}});class sh{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function lh(e,t,r){return e>t-r&&e<t+r}function Mr(e,t){return lh(e,0,t)}class uh{constructor(t,r,i){this._m=t,this._k=r,this._c=i,this._solution=null,this._endPosition=0,this._startTime=0}_solve(t,r){var i=this._c,a=this._m,n=this._k,o=i*i-4*a*n;if(o===0){var s=-i/(2*a),u=t,l=r/(s*t);return{x:function(g){return(u+l*g)*Math.pow(Math.E,s*g)},dx:function(g){var c=Math.pow(Math.E,s*g);return s*(u+l*g)*c+l*c}}}if(o>0){var f=(-i-Math.sqrt(o))/(2*a),v=(-i+Math.sqrt(o))/(2*a),m=(r-f*t)/(v-f),d=t-m;return{x:function(g){var c,h;return g===this._t&&(c=this._powER1T,h=this._powER2T),this._t=g,c||(c=this._powER1T=Math.pow(Math.E,f*g)),h||(h=this._powER2T=Math.pow(Math.E,v*g)),d*c+m*h},dx:function(g){var c,h;return g===this._t&&(c=this._powER1T,h=this._powER2T),this._t=g,c||(c=this._powER1T=Math.pow(Math.E,f*g)),h||(h=this._powER2T=Math.pow(Math.E,v*g)),d*f*c+m*v*h}}}var _=Math.sqrt(4*a*n-i*i)/(2*a),b=-i/2*a,x=t,p=(r-b*t)/_;return{x:function(g){return Math.pow(Math.E,b*g)*(x*Math.cos(_*g)+p*Math.sin(_*g))},dx:function(g){var c=Math.pow(Math.E,b*g),h=Math.cos(_*g),w=Math.sin(_*g);return c*(p*_*h-x*_*w)+b*c*(p*w+x*h)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!Mr(r,.4)){r=r||0;var a=this._endPosition;this._solution&&(Mr(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),a=this._solution.x((i-this._startTime)/1e3),Mr(r,.4)&&(r=0),Mr(a,.4)&&(a=0),a+=this._endPosition),this._solution&&Mr(a-t,.4)&&Mr(r,.4)||(this._endPosition=t,this._solution=this._solve(a-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),lh(this.x(),this._endPosition,.4)&&Mr(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,a){i.reconfigure(1,a,i.damping())}function r(i,a){i.reconfigure(1,i.springConstant(),a)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class iS{constructor(t,r,i){this._extent=t,this._friction=r||new sh(.01),this._spring=i||new uh(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function aS(e,t,r){var i={id:0,cancelled:!1};function a(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(a.bind(null,o,s,u,l))),f&&l&&l(s)}}function n(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}class nS{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new iS(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)<this._itemSize&&Math.abs(i.y)<300||Math.abs(i.y)<150)){this.snap();return}if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(i.x)<300||Math.abs(i.x)<150)){this.snap();return}}this._enableX?this._scroll.set(this._position,i.x):this._enableY&&this._scroll.set(this._position,i.y);var a;if(this._enableSnap){var n=this._scroll._friction.x(100),o=n%this._itemSize;a=Math.abs(o)>this._itemSize/2?n-(this._itemSize-Math.abs(o)):n-o,a<=0&&a>=-this._extent&&this._scroll.setVelocityByEnd(a)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=aS(this._scroll,()=>{var s=Date.now(),u=(s-this._scroll._startTime)/1e3,l=this._scroll.x(u);this._position=l,this.updatePosition();var f=this._scroll.dx(u);this._shouldDispatchScrollEvent&&s-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/f),this._lastTime=s)},()=>{this._enableSnap&&(a<=0&&a>=-this._extent&&(this._position=a,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var a=0,n=this._position;this._enableX?(a=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(a=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-a?this._position=-a:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),n!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=a,this._scroll._extent=a}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function oS(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new nS(e,t);function a(u){var l=u,f=u;return l.detail.state==="move"||l.detail.state==="end"?{x:l.detail.dx,y:l.detail.dy}:{x:f.screenX-r.x,y:f.screenY-r.y}}function n(u){var l=u,f=u;l.detail.state==="start"?(r.trackingID="touch",r.x=l.detail.x,r.y=l.detail.y):(r.trackingID="mouse",r.x=f.screenX,r.y=f.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[l.detail.timeStamp||f.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),u.preventDefault()}function o(u){var l=u,f=u;if(r.trackingID!==-1){u.preventDefault();var v=a(u);if(v){for(r.maxDy=Math.max(r.maxDy,Math.abs(v.y)),r.maxDx=Math.max(r.maxDx,Math.abs(v.x)),r.historyX.push(v.x),r.historyY.push(v.y),r.historyTime.push(l.detail.timeStamp||f.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(v.x,v.y)}}}function s(u){if(r.trackingID!==-1){u.preventDefault();var l=a(u);if(l){var f=r.listener;r.trackingID=-1,r.listener=null;var v=r.historyTime.length,m={x:0,y:0};if(v>2)for(var d=r.historyTime.length-1,_=r.historyTime[d],b=r.historyX[d],x=r.historyY[d];d>0;){d--;var p=r.historyTime[d],g=_-p;if(g>30&&g<50){m.x=(b-r.historyX[d])/(g/1e3),m.y=(x-r.historyY[d])/(g/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],f&&f.onTouchEnd&&f.onTouchEnd(l.x,l.y,m)}}}return{scroller:i,handleTouchStart:n,handleTouchMove:o,handleTouchEnd:s}}var sS=0;function lS(e){var t="uni-picker-view-content-".concat(sS++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return H(()=>e.value,r),t}function uS(e){var t=20,r=0,i=0;e.addEventListener("touchstart",a=>{var n=a.changedTouches[0];r=n.clientX,i=n.clientY}),e.addEventListener("touchend",a=>{var n=a.changedTouches[0];if(Math.abs(n.clientX-r)<t&&Math.abs(n.clientY-i)<t){var o={bubbles:!0,cancelable:!0,target:a.target,currentTarget:a.currentTarget},s=new CustomEvent("click",o),u=["screenX","screenY","clientX","clientY","pageX","pageY"];u.forEach(l=>{s[l]=n[l]}),a.target.dispatchEvent(s)}})}var fS=ge({name:"PickerViewColumn",setup(e,t){var{slots:r,emit:i}=t,a=U(null),n=U(null),o=_e("getPickerViewColumn"),s=Pt(),u=o?o(s):U(0),l=_e("pickerViewProps"),f=_e("pickerViewState"),v=U(34),m=U(null),d=()=>{var O=m.value;v.value=O.$el.offsetHeight},_=ee(()=>(f.height-v.value)/2),{state:b}=Xd(),x=lS(v),p,g=Ae({current:u.value,length:0}),c;function h(){p&&!c&&(c=!0,Vr(()=>{c=!1;var O=Math.min(g.current,g.length-1);O=Math.max(O,0),p.update(O*v.value,void 0,v.value)}))}H(()=>u.value,O=>{O!==g.current&&(g.current=O,h())}),H(()=>g.current,O=>u.value=O),H([()=>v.value,()=>g.length,()=>f.height],h);var w=0;function y(O){var N=w+O.deltaY;if(Math.abs(N)>10){w=0;var R=Math.min(g.current+(N<0?-1:1),g.length-1);g.current=R=Math.max(R,0),p.scrollTo(R*v.value)}else w=N;O.preventDefault()}function T(O){var{clientY:N}=O,R=a.value;if(!p.isScrolling()){var V=R.getBoundingClientRect(),ue=N-V.top-f.height/2,M=v.value/2;if(!(Math.abs(ue)<=M)){var B=Math.ceil((Math.abs(ue)-M)/v.value),Q=ue<0?-B:B,te=Math.min(g.current+Q,g.length-1);g.current=te=Math.max(te,0),p.scrollTo(te*v.value)}}}var E=()=>{var O=a.value,N=n.value,{scroller:R,handleTouchStart:V,handleTouchMove:ue,handleTouchEnd:M}=oS(N,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:v.value,friction:new sh(1e-4),spring:new uh(2,90,20),onSnap:B=>{!isNaN(B)&&B!==g.current&&(g.current=B)}});p=R,Hn(O,B=>{switch(B.detail.state){case"start":V(B),ar({disable:!0});break;case"move":ue(B),B.stopPropagation();break;case"end":case"cancel":M(B),ar({disable:!1})}},!0),uS(O),Un(),h()};return aa(()=>{g.length=n.value.children.length,d(),E()}),()=>{var O=r.default&&r.default(),N="".concat(_.value,"px 0");return I("uni-picker-view-column",{ref:a},[I("div",{onWheel:y,onClick:T,class:"uni-picker-view-group"},[I("div",et(b.attrs,{class:["uni-picker-view-mask",l.maskClass],style:"background-size: 100% ".concat(_.value,"px;").concat(l.maskStyle)}),null,16),I("div",et(b.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[I(Ir,{ref:m,onResize:R=>{var{height:V}=R;return v.value=V}},null,8,["onResize"])],16),I("div",{ref:n,class:["uni-picker-view-content",x],style:{padding:N}},[O],6)],40,["onWheel","onClick"])],512)}}}),Rr={activeColor:Pa,backgroundColor:"#EBEBEB",activeMode:"backwards"},cS={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:Rr.activeColor},activeColor:{type:String,default:Rr.activeColor},backgroundColor:{type:String,default:Rr.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Rr.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}}},vS=ge({name:"Progress",props:cS,setup(e){var t=dS(e);return fh(t,e),H(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,fh(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:a,currentPercent:n}=t;return I("uni-progress",{class:"uni-progress"},[I("div",{style:i,class:"uni-progress-bar"},[I("div",{style:a,class:"uni-progress-inner-bar"},null,4)],4),r?I("p",{class:"uni-progress-info"},[n+"%"]):""])}}});function dS(e){var t=U(0),r=ee(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=ee(()=>{var o=e.color!==Rr.activeColor&&e.activeColor===Rr.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(o)}),a=ee(()=>{var o=parseFloat(e.percent);return o<0&&(o=0),o>100&&(o=100),o}),n=Ae({outerBarStyle:r,innerBarStyle:i,realPercent:a,currentPercent:t,strokeTimer:0,lastPercent:0});return n}function fh(e,t){t.active?(e.currentPercent=t.activeMode===Rr.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var ch=dn("ucg"),hS={name:{type:String,default:""}},gS=ge({name:"RadioGroup",props:hS,setup(e,t){var{emit:r,slots:i}=t,a=U(null),n=Pe(a,r);return pS(e,n),()=>I("uni-radio-group",{ref:a},[i.default&&i.default()],512)}});function pS(e,t){var r=[];Re(()=>{s(r.length-1)});var i=()=>{var u;return(u=r.find(l=>l.value.radioChecked))===null||u===void 0?void 0:u.value.value};Fe(ch,{addField(u){r.push(u)},removeField(u){r.splice(r.indexOf(u),1)},radioChange(u,l){var f=r.indexOf(l);s(f,!0),t("change",u,{value:i()})}});var a=_e(At,!1),n={submit:()=>{var u=["",null];return e.name!==""&&(u[0]=e.name,u[1]=i()),u}};a&&(a.addField(n),Ce(()=>{a.removeField(n)}));function o(u,l){u.value={radioChecked:l,value:u.value.value}}function s(u,l){r.forEach((f,v)=>{v!==u&&(l?o(r[v],!1):r.forEach((m,d)=>{v>=d||r[d].value.radioChecked&&o(r[v],!1)}))})}return r}var mS={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},_S=ge({name:"Radio",props:mS,setup(e,t){var{slots:r}=t,i=U(e.checked),a=U(e.value),n=ee(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));H([()=>e.checked,()=>e.value],v=>{var[m,d]=v;i.value=m,a.value=d});var o=()=>{i.value=!1},{uniCheckGroup:s,uniLabel:u,field:l}=bS(i,a,o),f=v=>{e.disabled||(i.value=!0,s&&s.radioChange(v,l))};return u&&(u.addHandler(f),Ce(()=>{u.removeHandler(f)})),Pn(e,{"label-click":f}),()=>{var v=ai(e,"disabled");return I("uni-radio",et(v,{onClick:f}),[I("div",{class:"uni-radio-wrapper"},[I("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:i.value?n.value:""},[i.value?gn(hn,"#fff",18):""],6),r.default&&r.default()])],16,["onClick"])}}});function bS(e,t,r){var i=ee({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:u=>{var{radioChecked:l}=u;e.value=l}}),a={reset:r},n=_e(ch,!1);n&&n.addField(i);var o=_e(At,!1);o&&o.addField(a);var s=_e(Qi,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s,field:i}}function wS(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function xS(e){return e.reduce(function(t,r){var i=r.value,a=r.name;return i.match(/ /)&&a!=="style"&&(i=i.split(" ")),t[a]?Array.isArray(t[a])?t[a].push(i):t[a]=[t[a],i]:t[a]=i,t},{})}function yS(e){e=wS(e);var t=[],r={node:"root",children:[]};return Hd(e,{start:function(i,a,n){var o={name:i};if(a.length!==0&&(o.attrs=xS(a)),n){var s=t[0]||r;s.children||(s.children=[]),s.children.push(o)}else t.unshift(o)},end:function(i){var a=t.shift();if(a.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},chars:function(i){var a={type:"text",text:i};if(t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},comment:function(i){var a={node:"comment",text:i},n=t[0];n.children||(n.children=[]),n.children.push(a)}}),r.children}var vh={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},El={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function SS(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(re(El,r)&&El[r])return El[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function ES(e,t,r){return e==="img"&&t==="src"?vt(r):r}function dh(e,t,r,i){return e.forEach(function(a){if(!!mt(a))if(!re(a,"type")||a.type==="node"){if(!(typeof a.name=="string"&&a.name))return;var n=a.name.toLowerCase();if(!re(vh,n))return;var o=document.createElement(n);if(!o)return;var s=a.attrs;if(mt(s)){var u=vh[n]||[];Object.keys(s).forEach(function(f){var v=s[f];switch(f){case"class":Array.isArray(v)&&(v=v.join(" "));case"style":o.setAttribute(f,v),r&&o.setAttribute(r,"");break;default:u.indexOf(f)!==-1&&o.setAttribute(f,ES(n,f,v))}})}TS(a,o,i);var l=a.children;Array.isArray(l)&&l.length&&dh(a.children,o,r,i),t.appendChild(o)}else a.type==="text"&&typeof a.text=="string"&&a.text!==""&&t.appendChild(document.createTextNode(SS(a.text)))}),t}function TS(e,t,r){["a","img"].includes(e.name)&&r&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",i=>{r(i,{node:e}),i.stopPropagation()},!0))}var CS={nodes:{type:[Array,String],default:function(){return[]}}},OS=ge({name:"RichText",compatConfig:{MODE:3},props:CS,emits:["click","touchstart","touchmove","touchcancel","touchend","longpress"],setup(e,t){var{emit:r,attrs:i}=t,a=Pt(),n=U(null),o=Pe(n,r),s=!!i.onItemclick;function u(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o("itemclick",f,v)}function l(f){typeof f=="string"&&(f=yS(f));var v=dh(f,document.createDocumentFragment(),(a&&a.root.type).__scopeId||"",s&&u);n.value.firstElementChild.innerHTML="",n.value.firstElementChild.appendChild(v)}return H(()=>e.nodes,f=>{l(f)}),Re(()=>{l(e.nodes)}),()=>I("uni-rich-text",{ref:n},[I("div",null,null)],512)}}),hh=_i(!0),AS={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},IS=ge({name:"ScrollView",compatConfig:{MODE:3},props:AS,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:r,slots:i}=t,a=U(null),n=U(null),o=U(null),s=U(null),u=U(null),l=Pe(a,r),{state:f,scrollTopNumber:v,scrollLeftNumber:m}=kS(e);MS(e,f,v,m,l,a,n,s,r);var d=ee(()=>{var _="";return e.scrollX?_+="overflow-x:auto;":_+="overflow-x:hidden;",e.scrollY?_+="overflow-y:auto;":_+="overflow-y:hidden;",_});return()=>{var{refresherEnabled:_,refresherBackground:b,refresherDefaultStyle:x}=e,{refresherHeight:p,refreshState:g,refreshRotate:c}=f;return I("uni-scroll-view",{ref:a},[I("div",{ref:o,class:"uni-scroll-view"},[I("div",{ref:n,style:d.value,class:"uni-scroll-view"},[I("div",{ref:s,class:"uni-scroll-view-content"},[_?I("div",{ref:u,style:{backgroundColor:b,height:p+"px"},class:"uni-scroll-view-refresher"},[x!=="none"?I("div",{class:"uni-scroll-view-refresh"},[I("div",{class:"uni-scroll-view-refresh-inner"},[g=="pulling"?I("svg",{key:"refresh__icon",style:{transform:"rotate("+c+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[I("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),I("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,g=="refreshing"?I("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[I("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,x=="none"?i.refresher&&i.refresher():null],4):null,i.default&&i.default()],512)],4)],512)],512)}}});function kS(e){var t=ee(()=>Number(e.scrollTop)||0),r=ee(()=>Number(e.scrollLeft)||0),i=Ae({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function MS(e,t,r,i,a,n,o,s,u){var l=!1,f=0,v=!1,m=()=>{},d=ee(()=>{var y=Number(e.upperThreshold);return isNaN(y)?50:y}),_=ee(()=>{var y=Number(e.lowerThreshold);return isNaN(y)?50:y});function b(y,T){var E=o.value,O=0,N="";if(y<0?y=0:T==="x"&&y>E.scrollWidth-E.offsetWidth?y=E.scrollWidth-E.offsetWidth:T==="y"&&y>E.scrollHeight-E.offsetHeight&&(y=E.scrollHeight-E.offsetHeight),T==="x"?O=E.scrollLeft-y:T==="y"&&(O=E.scrollTop-y),O!==0){var R=s.value;R.style.transition="transform .3s ease-out",R.style.webkitTransition="-webkit-transform .3s ease-out",T==="x"?N="translateX("+O+"px) translateZ(0)":T==="y"&&(N="translateY("+O+"px) translateZ(0)"),R.removeEventListener("transitionend",m),R.removeEventListener("webkitTransitionEnd",m),m=()=>h(y,T),R.addEventListener("transitionend",m),R.addEventListener("webkitTransitionEnd",m),T==="x"?E.style.overflowX="hidden":T==="y"&&(E.style.overflowY="hidden"),R.style.transform=N,R.style.webkitTransform=N}}function x(y){var T=y.target;a("scroll",y,{scrollLeft:T.scrollLeft,scrollTop:T.scrollTop,scrollHeight:T.scrollHeight,scrollWidth:T.scrollWidth,deltaX:t.lastScrollLeft-T.scrollLeft,deltaY:t.lastScrollTop-T.scrollTop}),e.scrollY&&(T.scrollTop<=d.value&&t.lastScrollTop-T.scrollTop>0&&y.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",y,{direction:"top"}),t.lastScrollToUpperTime=y.timeStamp),T.scrollTop+T.offsetHeight+_.value>=T.scrollHeight&&t.lastScrollTop-T.scrollTop<0&&y.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",y,{direction:"bottom"}),t.lastScrollToLowerTime=y.timeStamp)),e.scrollX&&(T.scrollLeft<=d.value&&t.lastScrollLeft-T.scrollLeft>0&&y.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",y,{direction:"left"}),t.lastScrollToUpperTime=y.timeStamp),T.scrollLeft+T.offsetWidth+_.value>=T.scrollWidth&&t.lastScrollLeft-T.scrollLeft<0&&y.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",y,{direction:"right"}),t.lastScrollToLowerTime=y.timeStamp)),t.lastScrollTop=T.scrollTop,t.lastScrollLeft=T.scrollLeft}function p(y){e.scrollY&&(e.scrollWithAnimation?b(y,"y"):o.value.scrollTop=y)}function g(y){e.scrollX&&(e.scrollWithAnimation?b(y,"x"):o.value.scrollLeft=y)}function c(y){if(y){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(y)){console.error("id error: scroll-into-view=".concat(y));return}var T=n.value.querySelector("#"+y);if(T){var E=o.value.getBoundingClientRect(),O=T.getBoundingClientRect();if(e.scrollX){var N=O.left-E.left,R=o.value.scrollLeft,V=R+N;e.scrollWithAnimation?b(V,"x"):o.value.scrollLeft=V}if(e.scrollY){var ue=O.top-E.top,M=o.value.scrollTop,B=M+ue;e.scrollWithAnimation?b(B,"y"):o.value.scrollTop=B}}}}function h(y,T){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var E=o.value;T==="x"?(E.style.overflowX=e.scrollX?"auto":"hidden",E.scrollLeft=y):T==="y"&&(E.style.overflowY=e.scrollY?"auto":"hidden",E.scrollTop=y),s.value.removeEventListener("transitionend",m),s.value.removeEventListener("webkitTransitionEnd",m)}function w(y){switch(y){case"refreshing":t.refresherHeight=e.refresherThreshold,l||(l=!0,a("refresherrefresh",{},{}),u("update:refresherTriggered",!0));break;case"restore":case"refresherabort":l=!1,t.refresherHeight=f=0,y==="restore"&&(v=!1,a("refresherrestore",{},{})),y==="refresherabort"&&v&&(v=!1,a("refresherabort",{},{}));break}t.refreshState=y}Re(()=>{Vr(()=>{p(r.value),g(i.value)}),c(e.scrollIntoView);var y=function(V){V.preventDefault(),V.stopPropagation(),x(V)},T={x:0,y:0},E=null,O=function(V){if(T!==null){var ue=V.touches[0].pageX,M=V.touches[0].pageY,B=o.value;if(Math.abs(ue-T.x)>Math.abs(M-T.y))if(e.scrollX){if(B.scrollLeft===0&&ue>T.x){E=!1;return}else if(B.scrollWidth===B.offsetWidth+B.scrollLeft&&ue<T.x){E=!1;return}E=!0}else E=!1;else if(e.scrollY)if(B.scrollTop===0&&M>T.y)E=!1,e.refresherEnabled&&V.cancelable!==!1&&V.preventDefault();else if(B.scrollHeight===B.offsetHeight+B.scrollTop&&M<T.y){E=!1;return}else E=!0;else E=!1;if(E&&V.stopPropagation(),B.scrollTop===0&&V.touches.length===1&&(t.refreshState="pulling"),e.refresherEnabled&&t.refreshState==="pulling"){var Q=M-T.y;f===0&&(f=M),l?(t.refresherHeight=Q+e.refresherThreshold,v=!1):(t.refresherHeight=M-f,t.refresherHeight>0&&(v=!0,a("refresherpulling",V,{deltaY:Q})));var te=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(te>1?1:te)*360}}},N=function(V){V.touches.length===1&&(ar({disable:!0}),T={x:V.touches[0].pageX,y:V.touches[0].pageY})},R=function(V){T=null,ar({disable:!1}),t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort")};o.value.addEventListener("touchstart",N,hh),o.value.addEventListener("touchmove",O,_i(!1)),o.value.addEventListener("scroll",y,_i(!1)),o.value.addEventListener("touchend",R,hh),Un(),Ce(()=>{o.value.removeEventListener("touchstart",N),o.value.removeEventListener("touchmove",O),o.value.removeEventListener("scroll",y),o.value.removeEventListener("touchend",R)})}),fs(()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)}),H(r,y=>{p(y)}),H(i,y=>{g(y)}),H(()=>e.scrollIntoView,y=>{c(y)}),H(()=>e.refresherTriggered,y=>{y===!0?w("refreshing"):y===!1&&w("restore")})}var RS={name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},LS=ge({name:"Slider",props:RS,emits:["changing","change"],setup(e,t){var{emit:r}=t,i=U(null),a=U(null),n=U(null),o=U(Number(e.value));H(()=>e.value,v=>{o.value=Number(v)});var s=Pe(i,r),u=PS(e,o),{_onClick:l,_onTrack:f}=NS(e,o,i,a,s);return Re(()=>{Hn(n.value,f)}),()=>{var{setBgColor:v,setBlockBg:m,setActiveColor:d,setBlockStyle:_}=u;return I("uni-slider",{ref:i,onClick:Ar(l)},[I("div",{class:"uni-slider-wrapper"},[I("div",{class:"uni-slider-tap-area"},[I("div",{style:v.value,class:"uni-slider-handle-wrapper"},[I("div",{ref:n,style:m.value,class:"uni-slider-handle"},null,4),I("div",{style:_.value,class:"uni-slider-thumb"},null,4),I("div",{style:d.value,class:"uni-slider-track"},null,4)],4)]),ki(I("span",{ref:a,class:"uni-slider-value"},[o.value],512),[[Pi,e.showValue]])]),I("slot",null,null)],8,["onClick"])}}});function PS(e,t){var r=()=>{var o=Number(e.max),s=Number(e.min);return 100*(t.value-s)/(o-s)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",a=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",n={setBgColor:ee(()=>({backgroundColor:i()})),setBlockBg:ee(()=>({left:r()})),setActiveColor:ee(()=>({backgroundColor:a(),width:r()})),setBlockStyle:ee(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return n}function NS(e,t,r,i,a){var n=v=>{e.disabled||(s(v),a("change",v,{value:t.value}))},o=v=>{var m=Number(e.max),d=Number(e.min),_=Number(e.step);return v<d?d:v>m?m:DS.mul.call(Math.round((v-d)/_),_)+d},s=v=>{var m=Number(e.max),d=Number(e.min),_=i.value,b=getComputedStyle(_,null).marginLeft,x=_.offsetWidth;x=x+parseInt(b);var p=r.value,g=p.offsetWidth-(e.showValue?x:0),c=p.getBoundingClientRect().left,h=(v.x-c)*(m-d)/g+d;t.value=o(h)},u=v=>{if(!e.disabled)return v.detail.state==="move"?(s({x:v.detail.x}),a("changing",v,{value:t.value}),!1):v.detail.state==="end"&&a("change",v,{value:t.value})},l=_e(At,!1);if(l){var f={reset:()=>t.value=Number(e.min),submit:()=>{var v=["",null];return e.name!==""&&(v[0]=e.name,v[1]=t.value),v}};l.addField(f),Ce(()=>{l.removeField(f)})}return{_onClick:n,_onTrack:u}}var DS={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch(a){}try{t+=i.split(".")[1].length}catch(a){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},BS={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function $S(e){var t=ee(()=>{var n=Number(e.interval);return isNaN(n)?5e3:n}),r=ee(()=>{var n=Number(e.duration);return isNaN(n)?500:n}),i=ee(()=>{var n=Math.round(e.displayMultipleItems);return isNaN(n)?1:n}),a=Ae({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return a}function FS(e,t,r,i,a,n){function o(){s&&(clearTimeout(s),s=null)}var s=null,u=!0,l=0,f=1,v=null,m=!1,d=0,_,b="",x,p=ee(()=>e.circular&&r.value.length>t.displayMultipleItems);function g(M){if(!u)for(var B=r.value,Q=B.length,te=M+t.displayMultipleItems,W=0;W<Q;W++){var G=B[W],ae=Math.floor(M/Q)*Q+W,Se=ae+Q,se=ae-Q,K=Math.max(M-(ae+1),ae-te,0),ie=Math.max(M-(Se+1),Se-te,0),le=Math.max(M-(se+1),se-te,0),Ie=Math.min(K,ie,le),ke=[ae,Se,se][[K,ie,le].indexOf(Ie)];G.updatePosition(ke,e.vertical)}}function c(M){Math.floor(2*l)===Math.floor(2*M)&&Math.ceil(2*l)===Math.ceil(2*M)||p.value&&g(M);var B=e.vertical?"0":100*-M*f+"%",Q=e.vertical?100*-M*f+"%":"0",te="translate("+B+", "+Q+") translateZ(0)",W=i.value;if(W&&(W.style.webkitTransform=te,W.style.transform=te),l=M,!_){if(M%1==0)return;_=M}M-=Math.floor(_);var G=r.value;M<=-(G.length-1)?M+=G.length:M>=G.length&&(M-=G.length),M=_%1>.5||_<0?M-1:M,n("transition",{},{dx:e.vertical?0:M*W.offsetWidth,dy:e.vertical?M*W.offsetHeight:0})}function h(){v&&(c(v.toPos),v=null)}function w(M){var B=r.value.length;if(!B)return-1;var Q=(Math.round(M)%B+B)%B;if(p.value){if(B<=t.displayMultipleItems)return 0}else if(Q>B-t.displayMultipleItems)return B-t.displayMultipleItems;return Q}function y(){v=null}function T(){if(!v){m=!1;return}var M=v,B=M.toPos,Q=M.acc,te=M.endTime,W=M.source,G=te-Date.now();if(G<=0){c(B),v=null,m=!1,_=null;var ae=r.value[t.current];if(ae){var Se=ae.getItemId();n("animationfinish",{},{current:t.current,currentItemId:Se,source:W})}return}var se=Q*G*G/2,K=B+se;c(K),x=requestAnimationFrame(T)}function E(M,B,Q){y();var te=t.duration,W=r.value.length,G=l;if(p.value)if(Q<0){for(;G<M;)G+=W;for(;G-W>M;)G-=W}else if(Q>0){for(;G>M;)G-=W;for(;G+W<M;)G+=W;G+W-M<M-G&&(G+=W)}else{for(;G+W<M;)G+=W;for(;G-W>M;)G-=W;G+W-M<M-G&&(G+=W)}v={toPos:M,acc:2*(G-M)/(te*te),endTime:Date.now()+te,source:B},m||(m=!0,x=requestAnimationFrame(T))}function O(){o();var M=r.value,B=function(){s=null,b="autoplay",p.value?t.current=w(t.current+1):t.current=t.current+t.displayMultipleItems<M.length?t.current+1:0,E(t.current,"autoplay",p.value?1:0),s=setTimeout(B,t.interval)};u||M.length<=t.displayMultipleItems||(s=setTimeout(B,t.interval))}function N(){o(),h();for(var M=r.value,B=0;B<M.length;B++)M[B].updatePosition(B,e.vertical);f=1;var Q=i.value;if(t.displayMultipleItems===1&&M.length){var te=M[0].getBoundingClientRect(),W=Q.getBoundingClientRect();f=te.width/W.width,f>0&&f<1||(f=1)}var G=l;l=-2;var ae=t.current;ae>=0?(u=!1,t.userTracking?(c(G+ae-d),d=ae):(c(ae),e.autoplay&&O())):(u=!0,c(-t.displayMultipleItems-1))}H([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var M=-1;if(e.currentItemId)for(var B=0,Q=r.value;B<Q.length;B++){var te=Q[B].getItemId();if(te===e.currentItemId){M=B;break}}M<0&&(M=Math.round(e.current)||0),M=M<0?0:M,t.current!==M&&(b="",t.current=M)}),H([()=>e.vertical,()=>p.value,()=>t.displayMultipleItems,()=>[...r.value]],N),H(()=>t.interval,()=>{s&&(o(),O())});function R(M,B){var Q=b;b="";var te=r.value;if(!Q){var W=te.length;E(M,"",p.value&&B+(W-M)%W>W/2?1:0)}var G=te[M];if(G){var ae=t.currentItemId=G.getItemId();n("change",{},{current:t.current,currentItemId:ae,source:Q})}}H(()=>t.current,(M,B)=>{R(M,B),a("update:current",M)}),H(()=>t.currentItemId,M=>{a("update:currentItemId",M)});function V(M){M?O():o()}H(()=>e.autoplay&&!t.userTracking,V),V(e.autoplay&&!t.userTracking),Re(()=>{var M=!1,B=0,Q=0;function te(){o(),d=l,B=0,Q=Date.now(),y()}function W(ae){var Se=Q;Q=Date.now();var se=r.value.length,K=se-t.displayMultipleItems;function ie(nt){return .5-.25/(nt+.5)}function le(nt,nr){var Ne=d+nt;B=.6*B+.4*nr,p.value||(Ne<0||Ne>K)&&(Ne<0?Ne=-ie(-Ne):Ne>K&&(Ne=K+ie(Ne-K)),B=0),c(Ne)}var Ie=Q-Se||1,ke=i.value;e.vertical?le(-ae.dy/ke.offsetHeight,-ae.ddy/Ie):le(-ae.dx/ke.offsetWidth,-ae.ddx/Ie)}function G(ae){t.userTracking=!1;var Se=B/Math.abs(B),se=0;!ae&&Math.abs(B)>.2&&(se=.5*Se);var K=w(l+se);ae?c(d):(b="touch",t.current=K,E(K,"touch",se!==0?se:K===0&&p.value&&l>=1?1:0))}Hn(i.value,ae=>{if(!e.disableTouch&&!u){if(ae.detail.state==="start")return t.userTracking=!0,M=!1,te();if(ae.detail.state==="end")return G(!1);if(ae.detail.state==="cancel")return G(!0);if(t.userTracking){if(!M){M=!0;var Se=Math.abs(ae.detail.dx),se=Math.abs(ae.detail.dy);if((Se>=se&&e.vertical||Se<=se&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&O();return}}return W(ae.detail),!1}}})}),Yt(()=>{o(),cancelAnimationFrame(x)});function ue(M){E(t.current=M,b="click",p.value?1:0)}return{onSwiperDotClick:ue}}var zS=ge({name:"Swiper",props:BS,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:r,emit:i}=t,a=U(null),n=Pe(a,i),o=U(null),s=U(null),u=$S(e),l=ee(()=>{var g={};return(e.nextMargin||e.previousMargin)&&(g=e.vertical?{left:0,right:0,top:_r(e.previousMargin,!0),bottom:_r(e.nextMargin,!0)}:{top:0,bottom:0,left:_r(e.previousMargin,!0),right:_r(e.nextMargin,!0)}),g}),f=ee(()=>{var g=Math.abs(100/u.displayMultipleItems)+"%";return{width:e.vertical?"100%":g,height:e.vertical?g:"100%"}}),v=[],m=[],d=U([]);function _(){for(var g=[],c=function(w){var y=v[w];y instanceof Element||(y=y.el);var T=m.find(E=>y===E.rootRef.value);T&&g.push(Za(T))},h=0;h<v.length;h++)c(h);d.value=g}aa(()=>{v=s.value.children,_()});var b=function(g){m.push(g),_()};Fe("addSwiperContext",b);var x=function(g){var c=m.indexOf(g);c>=0&&(m.splice(c,1),_())};Fe("removeSwiperContext",x);var{onSwiperDotClick:p}=FS(e,u,d,s,i,n);return()=>{var g=r.default&&r.default();return v=xl(g),I("uni-swiper",{ref:a},[I("div",{ref:o,class:"uni-swiper-wrapper"},[I("div",{class:"uni-swiper-slides",style:l.value},[I("div",{ref:s,class:"uni-swiper-slide-frame",style:f.value},[g],4)],4),e.indicatorDots&&I("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[d.value.map((c,h,w)=>I("div",{onClick:()=>p(h),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":h<u.current+u.displayMultipleItems&&h>=u.current||h<u.current+u.displayMultipleItems-w.length},style:{background:h===u.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2)],512)],512)}}}),US={itemId:{type:String,default:""}},HS=ge({name:"SwiperItem",props:US,setup(e,t){var{slots:r}=t,i=U(null),a={rootRef:i,getItemId(){return e.itemId},getBoundingClientRect(){var n=i.value;return n.getBoundingClientRect()},updatePosition(n,o){var s=o?"0":100*n+"%",u=o?100*n+"%":"0",l=i.value,f="translate(".concat(s,",").concat(u,") translateZ(0)");l&&(l.style.webkitTransform=f,l.style.transform=f)}};return Re(()=>{var n=_e("addSwiperContext");n&&n(a)}),Yt(()=>{var n=_e("removeSwiperContext");n&&n(a)}),()=>I("uni-swiper-item",{ref:i,style:{position:"absolute",width:"100%",height:"100%"}},[r.default&&r.default()],512)}}),WS={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},VS=ge({name:"Switch",props:WS,emits:["change"],setup(e,t){var{emit:r}=t,i=U(null),a=U(e.checked),n=jS(e,a),o=Pe(i,r);H(()=>e.checked,u=>{a.value=u});var s=u=>{e.disabled||(a.value=!a.value,o("change",u,{value:a.value}))};return n&&(n.addHandler(s),Ce(()=>{n.removeHandler(s)})),Pn(e,{"label-click":s}),()=>{var{color:u,type:l}=e,f=ai(e,"disabled");return I("uni-switch",et({ref:i},f,{onClick:s}),[I("div",{class:"uni-switch-wrapper"},[ki(I("div",{class:["uni-switch-input",[a.value?"uni-switch-input-checked":""]],style:{backgroundColor:a.value?u:"#DFDFDF",borderColor:a.value?u:"#DFDFDF"}},null,6),[[Pi,l==="switch"]]),ki(I("div",{class:"uni-checkbox-input"},[a.value?gn(hn,e.color,22):""],512),[[Pi,l==="checkbox"]])])],16,["onClick"])}}});function jS(e,t){var r=_e(At,!1),i=_e(Qi,!1),a={submit:()=>{var n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};return r&&(r.addField(a),Yt(()=>{r.removeField(a)})),i}var sa={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function YS(e,t){return e.replace(/\\n/g,mi).split(mi).map(r=>qS(r,t))}function qS(e,t){var{space:r,decode:i}=t;return!e||(r&&sa[r]&&(e=e.replace(/ /g,sa[r])),!i)?e:e.replace(/&nbsp;/g,sa.nbsp).replace(/&ensp;/g,sa.ensp).replace(/&emsp;/g,sa.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")}var XS=ve({},Zd,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}}),Tl=!1;function ZS(){var e="(prefers-color-scheme: dark)";Tl=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var KS=ge({name:"Textarea",props:XS,emit:["confirm","linechange",...Kd],setup(e,t){var{emit:r}=t,i=U(null),{fieldRef:a,state:n,scopedAttrsState:o,fixDisabledColor:s,trigger:u}=Gd(e,i,r),l=ee(()=>n.value.split(mi)),f=ee(()=>["done","go","next","search","send"].includes(e.confirmType)),v=U(0),m=U(null);H(()=>v.value,p=>{var g=i.value,c=m.value,h=parseFloat(getComputedStyle(g).lineHeight);isNaN(h)&&(h=c.offsetHeight);var w=Math.round(p/h);u("linechange",{},{height:p,heightRpx:750/window.innerWidth*p,lineCount:w}),e.autoHeight&&(g.style.height=p+"px")});function d(p){var{height:g}=p;v.value=g}function _(p){u("confirm",p,{value:n.value})}function b(p){p.key==="Enter"&&f.value&&p.preventDefault()}function x(p){if(p.key==="Enter"&&f.value){_(p);var g=p.target;!e.confirmHold&&g.blur()}}return ZS(),()=>{var p=e.disabled&&s?I("textarea",{ref:a,value:n.value,tabindex:"-1",readonly:!!e.disabled,maxlength:n.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tl},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:g=>g.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):I("textarea",{ref:a,value:n.value,disabled:!!e.disabled,maxlength:n.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tl},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:b,onKeyup:x},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return I("uni-textarea",{ref:i},[I("div",{class:"uni-textarea-wrapper"},[ki(I("div",et(o.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Pi,!n.value.length]]),I("div",{ref:m,class:"uni-textarea-line"},[" "],512),I("div",{class:"uni-textarea-compute"},[l.value.map(g=>I("div",null,[g.trim()?g:"."])),I(Ir,{initial:!0,onResize:d},null,8,["initial","onResize"])]),e.confirmType==="search"?I("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[p],40,["onSubmit"]):p])],512)}}});ve({},_x);function jn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function gh(e,t,r){!e||bt(r||Xt(),e,(i,a)=>{var{type:n,data:o}=i;t(n,o,a)})}function ph(e,t){!e||M0(t||Xt(),e)}function Yn(e,t,r,i){var a=Pt(),n=a.proxy;Re(()=>{gh(t||jn(n),e,i),(r||!t)&&H(()=>n.id,(o,s)=>{gh(jn(n,o),e,i),ph(s&&jn(n,s))})}),Ce(()=>{ph(t||jn(n),i)})}var GS=0;function qn(e){var t=pn(),r=Pt(),i=r.proxy,a=i.$options.name.toLowerCase(),n=e||i.id||"context".concat(GS++);return Re(()=>{var o=i.$el;o.__uniContextInfo={id:n,type:a,page:t}}),"".concat(a,".").concat(n)}function JS(e){return e.__uniContextInfo}class mh extends Ed{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...Ln.props,...o])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!!this.$animate){if(t)return this.call(Ln.mounted);this.$animate&&(this.$animate=!1,this.call(Ln.watch.animation.handler))}}}var QS=["space","decode"];class eE extends mh{constructor(t,r,i,a){super(t,document.createElement("uni-text"),r,i,a,QS);this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update()}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{$props:{space:r,decode:i}}=this;this.$.textContent=YS(this._text,{space:r,decode:i}).join(mi),super.update(t)}}class tE extends ii{constructor(t,r,i,a){super(t,"#text",r,document.createTextNode(""));this.init(a),this.insert(r,i)}}var KT="",rE=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class iE extends mh{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...rE,...o])}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new aE(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class aE{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class nE extends iE{constructor(t,r,i,a){super(t,document.createElement("uni-view"),r,i,a)}}function _h(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function bh(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?Ou+_h():0}var wh=Symbol("onDraw");function oE(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function Cl(e,t){return ee(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var a=e[i];a=i==="src"?vt(a):a,r[i.replace(/[A-Z]/g,n=>"-"+n.toLowerCase())]=a}}),r})}function la(e){var t=Ae({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=U(!1);function i(){var v=e.value,m=v.getBoundingClientRect(),d=["width","height"];r.value=m.width===0||m.height===0,r.value||(t.position=oE(v)?"absolute":"static",d.push("top","left")),d.forEach(_=>{var b=m[_];b=_==="top"?b+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:bh()):b,t[_]=b+"px"})}var a=null;function n(){a&&cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=null,i()})}window.addEventListener("updateview",n);var o=[],s=[];function u(v){s?s.push(v):v()}function l(v){var m=_e(wh),d=_=>{v(_),o.forEach(b=>b(t)),o=null};u(()=>{m?m(d):d({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var f=function(v){o?o.push(v):v(t)};return Fe(wh,f),Re(()=>{i(),s.forEach(v=>v()),s=null}),Ce(()=>{window.removeEventListener("updateview",n)}),{position:t,hidden:r,onParentReady:l}}var sE=ge({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var{emit:r}=t,i=U(null),a=U(null),n=Pe(i,r),o=Cl(e,["id"]),{position:s,onParentReady:u}=la(a),l;return u(()=>{l=plus.ad.createAdView(Object.assign({},o.value,s)),plus.webview.currentWebview().append(l),l.setDislikeListener(v=>{a.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),n("close",{},v)}),l.setRenderingListener(v=>{v.result===0?(a.value.style.height=v.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):n("error",{},{errCode:v.result})}),l.setAdClickedListener(()=>{n("adclicked",{},{})}),H(()=>s,v=>l.setStyle(v),{deep:!0}),H(()=>e.adpid,v=>{v&&f()}),H(()=>e.data,v=>{v&&l.renderingBind(v)});function f(){var v={adpid:e.adpid,width:s.width,count:e.dataCount};e.channel!==void 0&&(v.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",v,m=>{var{code:d,data:_,message:b}=m;d===0?l.renderingBind(_):n("error",{},{errMsg:b})})}e.adpid&&f()}),Ce(()=>{l&&l.close()}),()=>I("uni-ad",{ref:i},[I("div",{ref:a,class:"uni-ad-container"},null,512)],512)}});class we extends ii{constructor(t,r,i,a,n,o,s){super(t,r,a);var u=document.createElement("div");u.__vueParent=lE(this),this.$props=Ae({}),this.init(o),this.$app=vc(_T(i,this.$props)),this.$app.mount(u),this.$=u.firstElementChild,s&&(this.$holder=this.$.querySelector(s)),re(o,"t")&&this.setText(o.t||""),o.a&&re(o.a,Na)&&hl(this.$,o.a[Na]),this.insert(a,n),Ef()}init(t){var{a:r,e:i,w:a}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(n=>{this.setAttr(n,r[n])})),re(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(n=>{this.addEvent(n,i[n])}),a&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t}addWxsEvent(t,r,i){this.$props[t]=Sd(this.$,r,i)}addEvent(t,r){this.$props[t]=xd(this.id,r,Po(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===Na)this.$&&hl(this.$,r);else if(t===Ru)this.$.__ownerId=r;else if(t===Lu)rr(()=>dd(this,r),fd);else if(t===Do){var i=dl(this.$||at(this.pid).$,r),a=this.$props.style;mt(i)&&mt(a)?Object.keys(i).forEach(n=>{a[n]=i[n]}):this.$props.style=i}else Rn(t)?this.$.style.setProperty(t,r):(r=dl(this.$||at(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r))}removeAttr(t){Rn(t)?this.$.style.removeProperty(t):this.$props[t]=null}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),Ah(this.id),this.removeUniChildren()}appendChild(t){return(this.$holder||this.$).appendChild(t)}insertBefore(t,r){return(this.$holder||this.$).insertBefore(t,r)}}class ua extends we{constructor(t,r,i,a,n,o,s){super(t,r,i,a,n,o,s)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return rr(this.getRebuildFn(),sl),super.setText(t)}appendChild(t){return rr(this.getRebuildFn(),sl),super.appendChild(t)}insertBefore(t,r){return rr(this.getRebuildFn(),sl),super.insertBefore(t,r)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function lE(e){for(;e&&e.pid>0;)if(e=at(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function Ol(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}var uE=["value","modelValue"];function xh(e){uE.forEach(t=>{if(re(e,t)){var r="onUpdate:"+t;re(e,r)||(e[r]=i=>e[t]=i)}})}class fE extends we{constructor(t,r,i,a){super(t,"uni-ad",sE,r,i,a)}}var GT="";class cE extends we{constructor(t,r,i,a){super(t,"uni-button",Ox,r,i,a)}}class oi extends ii{constructor(t,r,i,a){super(t,r,i);this.insert(i,a)}}class vE extends oi{constructor(t,r,i){super(t,"uni-camera",r,i)}}var JT="";class dE extends we{constructor(t,r,i,a){super(t,"uni-canvas",Nx,r,i,a,"uni-canvas > div")}}var QT="";class hE extends we{constructor(t,r,i,a){super(t,"uni-checkbox",Hx,r,i,a,".uni-checkbox-wrapper")}setText(t){Ol(this.$holder,"uni-checkbox-input",t)}}var e2="";class gE extends we{constructor(t,r,i,a){super(t,"uni-checkbox-group",Fx,r,i,a)}}var t2="",pE=0;function yh(e,t,r){var{position:i,hidden:a,onParentReady:n}=la(e),o,s;n(u=>{var l=ee(()=>{var c={};for(var h in i){var w=i[h],y=parseFloat(w),T=parseFloat(u[h]);if(h==="top"||h==="left")w=Math.max(y,T)+"px";else if(h==="width"||h==="height"){var E=h==="width"?"left":"top",O=parseFloat(u[E]),N=parseFloat(i[E]),R=Math.max(O-N,0),V=Math.max(N+y-(O+T),0);w=Math.max(y-R-V,0)+"px"}c[h]=w}return c}),f=["borderRadius","borderColor","borderWidth","backgroundColor"],v=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],m=[],d={start:"left",end:"right"};function _(c){var h=getComputedStyle(e.value);return f.concat(v,m).forEach(w=>{c[w]=h[w]}),c}var b=Ae(_({})),x=null;s=function(){x&&cancelAnimationFrame(x),x=requestAnimationFrame(()=>{x=null,_(b)})},window.addEventListener("updateview",s);function p(){var c={};for(var h in c){var w=c[h];(h==="top"||h==="left")&&(w=Math.min(parseFloat(w)-parseFloat(u[h]),0)+"px"),c[h]=w}return c}var g=ee(()=>{var c=p(),h=[{tag:"rect",position:c,rectStyles:{color:b.backgroundColor,radius:b.borderRadius,borderColor:b.borderColor,borderWidth:b.borderWidth}}];if("src"in r)r.src&&h.push({tag:"img",position:c,src:r.src});else{var w=parseFloat(b.lineHeight)-parseFloat(b.fontSize),y=parseFloat(c.width)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight);y=y<0?0:y;var T=parseFloat(c.height)-parseFloat(b.paddingTop)-w/2-parseFloat(b.paddingBottom);T=T<0?0:T,h.push({tag:"font",position:{top:"".concat(parseFloat(c.top)+parseFloat(b.paddingTop)+w/2,"px"),left:"".concat(parseFloat(c.left)+parseFloat(b.paddingLeft),"px"),width:"".concat(y,"px"),height:"".concat(T,"px")},textStyles:{align:d[b.textAlign]||b.textAlign,color:b.color,decoration:"none",lineSpacing:"".concat(w,"px"),margin:"0px",overflow:b.textOverflow,size:b.fontSize,verticalAlign:"top",weight:b.fontWeight,whiteSpace:b.whiteSpace},text:r.text})}return h});o=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(pE++),l.value,g.value),plus.webview.currentWebview().append(o),a.value&&o.hide(),o.addEventListener("click",()=>{t("click",{},{})}),H(()=>a.value,c=>{o[c?"hide":"show"]()}),H(()=>l.value,c=>{o.setStyle(c)},{deep:!0}),H(()=>g.value,()=>{o.reset(),o.draw(g.value)},{deep:!0})}),Ce(()=>{o&&o.close(),s&&window.removeEventListener("updateview",s)})}var mE="_doc/uniapp_temp/",_E={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function bE(e,t,r){var i=U(""),a;function n(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var s=e.src?vt(e.src):"";s.indexOf("http://")===0||s.indexOf("https://")===0?(a=plus.downloader.createDownload(s,{filename:mE+"/download/"},(u,l)=>{l===200?o(u.filename):r("error",{},{errMsg:"error"})}),a.start()):s&&o(s)}function o(s){t.src=s,plus.io.getImageInfo({src:s,success:u=>{var{width:l,height:f}=u;e.autoSize&&(i.value="width:".concat(l,"px;height:").concat(f,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:l,height:f})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&n(),H(()=>e.src,n),Ce(()=>{a&&a.abort()}),i}var Sh=ge({name:"CoverImage",props:_E,emits:["click","load","error"],setup(e,t){var{emit:r}=t,i=U(null),a=Pe(i,r),n=Ae({src:""}),o=bE(e,n,a);return yh(i,a,n),()=>I("uni-cover-image",{ref:i,style:o.value},[I("div",{class:"uni-cover-image"},null)],4)}});class wE extends we{constructor(t,r,i,a){super(t,"uni-cover-image",Sh,r,i,a)}}var r2="",xE=ge({name:"CoverView",emits:["click"],setup(e,t){var{emit:r}=t,i=U(null),a=U(null),n=Pe(i,r),o=Ae({text:""});return yh(i,n,o),aa(()=>{var s=a.value.childNodes[0];o.text=s&&s instanceof Text?s.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))}),()=>I("uni-cover-view",{ref:i},[I("div",{ref:a,class:"uni-cover-view"},null,512)],512)}});class yE extends ua{constructor(t,r,i,a){super(t,"uni-cover-view",xE,r,i,a,".uni-cover-view")}}var i2="";class SE extends we{constructor(t,r,i,a){super(t,"uni-editor",dy,r,i,a)}}var a2="";class EE extends we{constructor(t,r,i,a){super(t,"uni-form",xx,r,i,a,"span")}}class TE extends oi{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var n2="";class CE extends we{constructor(t,r,i,a){super(t,"uni-icon",my,r,i,a)}}var o2="";class OE extends we{constructor(t,r,i,a){super(t,"uni-image",wy,r,i,a)}}var s2="";class AE extends we{constructor(t,r,i,a){super(t,"uni-input",zy,r,i,a)}init(t){super.init(t),xh(this.$props)}}var l2="";class IE extends we{constructor(t,r,i,a){super(t,"uni-label",Ex,r,i,a)}}class kE extends oi{constructor(t,r,i){super(t,"uni-live-player",r,i)}}class ME extends oi{constructor(t,r,i){super(t,"uni-live-pusher",r,i)}}var u2="",RE=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function Al(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.substr(7,2);return{color:e.substr(0,7),opacity:t?Number("0x"+t)/255:1}}var LE={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},PE=ge({name:"Map",props:LE,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var{emit:r}=t,i=U(null),a=Pe(i,r),n=U(null),o=Cl(e,["id"]),{position:s,hidden:u,onParentReady:l}=la(n),f,{_addMarkers:v,_addMapLines:m,_addMapCircles:d,_setMap:_}=NE(e,a);l(()=>{f=ve(plus.maps.create(Xt()+"-map-"+(e.id||Date.now()),Object.assign({},o.value,s,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[]}),f.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(f),u.value&&f.hide(),f.onclick=x=>{a("click",{},x)},f.onstatuschanged=x=>{a("regionchange",{},{})},_(f),v(e.markers),m(e.polyline),d(e.circles),H(()=>o.value,x=>f&&f.setStyles(x),{deep:!0}),H(()=>s,x=>f&&f.setStyles(x),{deep:!0}),H(u,x=>{f&&f[x?"hide":"show"]()}),H(()=>e.scale,x=>{f&&f.setZoom(parseInt(String(x)))}),H([()=>e.latitude,()=>e.longitude],x=>{var[p,g]=x;f&&f.setStyles({center:new plus.maps.Point(Number(p),Number(g))})}),H(()=>e.markers,x=>{v(x,!0)},{deep:!0}),H(()=>e.polyline,x=>{m(x)},{deep:!0}),H(()=>e.circles,x=>{d(x)},{deep:!0})});var b=ee(()=>e.controls.map(x=>{var p={position:"absolute"};return["top","left","width","height"].forEach(g=>{x.position[g]&&(p[g]=x.position[g]+"px")}),{id:x.id,iconPath:vt(x.iconPath),position:p,clickable:x.clickable}}));return Ce(()=>{f&&(f.close(),_(null))}),()=>I("uni-map",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-map-container"},null,512),b.value.map((x,p)=>I(Sh,{key:p,src:x.iconPath,style:x.position,"auto-size":!0,onClick:()=>x.clickable&&a("controltap",{},{controlId:x.id})},null,8,["src","style","auto-size","onClick"])),I("div",{class:"uni-map-slot"},null)],8,["id"])}});function NE(e,t){var r;function i(d){var{longitude:_,latitude:b}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};!r||(r.setCenter(new plus.maps.Point(Number(_||e.longitude),Number(b||e.latitude))),d({errMsg:"moveToLocation:ok"}))}function a(d){!r||r.getCurrentCenter((_,b)=>{d({longitude:b.getLng(),latitude:b.getLat(),errMsg:"getCenterLocation:ok"})})}function n(d){if(!!r){var _=r.getBounds();d({southwest:_.getSouthWest(),northeast:_.getNorthEast(),errMsg:"getRegion:ok"})}}function o(d){!r||d({scale:r.getZoom(),errMsg:"getScale:ok"})}function s(d){if(!!r){var{id:_,latitude:b,longitude:x,iconPath:p,callout:g,label:c}=d;RE(x,b,h=>{var w,{latitude:y,longitude:T}=h.coord,E=new plus.maps.Marker(new plus.maps.Point(T,y));p&&E.setIcon(vt(p)),c&&c.content&&E.setLabel(c.content);var O=void 0;g&&g.content&&(O=new plus.maps.Bubble(g.content)),O&&E.setBubble(O),(_||_===0)&&(E.onclick=N=>{t("markertap",{},{markerId:_})},O&&(O.onclick=()=>{t("callouttap",{},{markerId:_})})),(w=r)===null||w===void 0||w.addOverlay(E),r.__markers__.push(E)})}}function u(){if(!!r){var d=r.__markers__;d.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__markers__=[]}}function l(d,_){_&&u(),d.forEach(b=>{s(b)})}function f(d){!r||(r.__lines__.length>0&&(r.__lines__.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__lines__=[]),d.forEach(_=>{var b,{color:x,width:p}=_,g=_.points.map(w=>new plus.maps.Point(w.longitude,w.latitude)),c=new plus.maps.Polyline(g);if(x){var h=Al(x);c.setStrokeColor(h.color),c.setStrokeOpacity(h.opacity)}p&&c.setLineWidth(p),(b=r)===null||b===void 0||b.addOverlay(c),r.__lines__.push(c)}))}function v(d){!r||(r.__circles__.length>0&&(r.__circles__.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__circles__=[]),d.forEach(_=>{var b,{latitude:x,longitude:p,color:g,fillColor:c,radius:h,strokeWidth:w}=_,y=new plus.maps.Circle(new plus.maps.Point(p,x),h);if(g){var T=Al(g);y.setStrokeColor(T.color),y.setStrokeOpacity(T.opacity)}if(c){var E=Al(c);y.setFillColor(E.color),y.setFillOpacity(E.opacity)}w&&y.setLineWidth(w),(b=r)===null||b===void 0||b.addOverlay(y),r.__circles__.push(y)}))}var m={moveToLocation:i,getCenterLocation:a,getRegion:n,getScale:o};return Yn((d,_,b)=>{m[d]&&m[d](b,_)},qn(),!0),{_addMarkers:l,_addMapLines:f,_addMapCircles:v,_setMap(d){r=d}}}class DE extends we{constructor(t,r,i,a){super(t,"uni-map",PE,r,i,a,".uni-map-slot")}}var f2="";class BE extends ua{constructor(t,r,i,a){super(t,"uni-movable-area",jy,r,i,a)}}var c2="";class $E extends we{constructor(t,r,i,a){super(t,"uni-movable-view",Xy,r,i,a)}}var v2="";class FE extends we{constructor(t,r,i,a){super(t,"uni-navigator",Qy,r,i,a,"uni-navigator")}}class zE extends oi{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class UE extends oi{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var si,Eh,li;function Th(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function Ch(){return si.webview.currentWebview().id}var Xn,Il,kl={};function Ml(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=kl[r];i&&i(t),t.keep||delete kl[r]}}function HE(e,t){Th()==="v8"?li?(Xn&&Xn.close(),Xn=new li(Ch()),Xn.onmessage=Ml):Il||(Il=Eh.requireModule("globalEvent"),Il.addEventListener("plusMessage",Ml)):window.__plusMessage=Ml,kl[e]=t}class WE{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(li){var a=new li(i);a.postMessage(r)}else si.webview.postMessageToUniNView&&si.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function VE(e){var{context:t={},url:r,data:i={},style:a={},onMessage:n,onClose:o}=e;si=t.plus||plus,Eh=t.weex||(typeof weex=="object"?weex:null),li=t.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var s={autoBackButton:!0,titleSize:"17px"},u="page".concat(Date.now());a=ve({},a),a.titleNView!==!1&&a.titleNView!=="none"&&(a.titleNView=ve(s,a.titleNView));var l={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"".concat(typeof process=="object"&&process.env&&{}.VUE_APP_TEMPLATE_PATH||"","/").concat(r,".js"),defaultFontSize:16,viewport:si.screen.resolutionWidth}};a=ve(l,a);var f=si.webview.create("",u,a,{extras:{from:Ch(),runtime:Th(),data:i,useGlobalEvent:!li}});return f.addEventListener("close",o),HE(u,v=>{typeof n=="function"&&n(v.data),v.keep||f.close("auto")}),f.show(a.animationType,a.animationDuration),new WE(f)}var Oe={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},ui={YEAR:"year",MONTH:"month",DAY:"day"};function Zn(e){return e>9?e:"0".concat(e)}function Kn(e,t){e=String(e||"");var r=new Date;if(t===Oe.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var a=e.split("-");a.length===3&&r.setFullYear(parseInt(a[0]),parseInt(String(parseFloat(a[1])-1)),parseInt(a[2]))}return r}function jE(e){if(e.mode===Oe.TIME)return"00:00";if(e.mode===Oe.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case ui.YEAR:return t;case ui.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function YE(e){if(e.mode===Oe.TIME)return"23:59";if(e.mode===Oe.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case ui.YEAR:return t;case ui.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var qE={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Oe.SELECTOR,validator(e){return Object.values(Oe).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:jE},end:{type:String,default:YE},disabled:{type:[Boolean,String],default:!1}},XE=ge({name:"Picker",props:qE,emits:["change","cancel","columnchange"],setup(e,t){var{emit:r}=t;T0();var{t:i,getLocale:a}=Ge(),n=U(null),o=Pe(n,r),s=U(null),u=U(null),l=()=>{var p=e.value;switch(e.mode){case Oe.MULTISELECTOR:{Array.isArray(p)||(p=[]),Array.isArray(s.value)||(s.value=[]);for(var g=s.value.length=Math.max(p.length,e.range.length),c=0;c<g;c++){var h=Number(p[c]),w=Number(s.value[c]),y=isNaN(h)?isNaN(w)?0:w:h;s.value.splice(c,1,y<0?0:y)}}break;case Oe.TIME:case Oe.DATE:s.value=String(p);break;default:{var T=Number(p);s.value=T<0?0:T;break}}},f=p=>{u.value&&u.value.sendMessage(p)},v=p=>{var g={event:"cancel"};u.value=VE({url:"__uniapppicker",data:p,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:c=>{var h=c.event;if(h==="created"){f(p);return}if(h==="columnchange"){delete c.event,o(h,{},c);return}g=c},onClose:()=>{u.value=null;var c=g.event;delete g.event,c&&o(c,{},g)}})},m=(p,g)=>{plus.nativeUI[e.mode===Oe.TIME?"pickTime":"pickDate"](c=>{var h=c.date;o("change",{},{value:e.mode===Oe.TIME?"".concat(Zn(h.getHours()),":").concat(Zn(h.getMinutes())):"".concat(h.getFullYear(),"-").concat(Zn(h.getMonth()+1),"-").concat(Zn(h.getDate()))})},()=>{o("cancel",{},{})},e.mode===Oe.TIME?{time:Kn(e.value,Oe.TIME),popover:g}:{date:Kn(e.value,Oe.DATE),minDate:Kn(e.start,Oe.DATE),maxDate:Kn(e.end,Oe.DATE),popover:g})},d=(p,g)=>{(p.mode===Oe.TIME||p.mode===Oe.DATE)&&!p.fields?m(p,g):(p.fields=Object.values(ui).includes(p.fields)?p.fields:ui.DAY,v(p))},_=p=>{if(!e.disabled){var g=p.currentTarget,c=g.getBoundingClientRect();d(Object.assign({},e,{value:s.value,locale:a(),messages:{done:i("uni.picker.done"),cancel:i("uni.picker.cancel")}}),{top:c.top+bh(),left:c.left,width:c.width,height:c.height})}},b=_e(At,!1),x={submit:()=>[e.name,s.value],reset:()=>{switch(e.mode){case Oe.SELECTOR:s.value=0;break;case Oe.MULTISELECTOR:Array.isArray(e.value)&&(s.value=e.value.map(p=>0));break;case Oe.DATE:case Oe.TIME:s.value="";break}}};return b&&(b.addField(x),Ce(()=>b.removeField(x))),Object.keys(e).forEach(p=>{p!=="name"&&H(()=>e[p],g=>{var c={};c[p]=g,f(c)},{deep:!0})}),H(()=>e.value,l,{deep:!0}),l(),()=>I("uni-picker",{ref:n,onClick:_},[I("slot",null,null)],8,["onClick"])}});class ZE extends we{constructor(t,r,i,a){super(t,"uni-picker",XE,r,i,a)}}var d2="";class KE extends ua{constructor(t,r,i,a){super(t,"uni-picker-view",rS,r,i,a,".uni-picker-view-wrapper")}}var h2="";class GE extends ua{constructor(t,r,i,a){super(t,"uni-picker-view-column",fS,r,i,a,".uni-picker-view-content")}}var g2="";class JE extends we{constructor(t,r,i,a){super(t,"uni-progress",vS,r,i,a)}}var p2="";class QE extends we{constructor(t,r,i,a){super(t,"uni-radio",_S,r,i,a,".uni-radio-wrapper")}setText(t){Ol(this.$holder,"uni-radio-input",t)}}var m2="";class eT extends we{constructor(t,r,i,a){super(t,"uni-radio-group",gS,r,i,a)}}var _2="";class tT extends we{constructor(t,r,i,a){super(t,"uni-rich-text",OS,r,i,a)}}var b2="";class rT extends we{constructor(t,r,i,a){super(t,"uni-scroll-view",IS,r,i,a,".uni-scroll-view-content")}setText(t){Ol(this.$holder,"uni-scroll-view-refresher",t)}}var w2="";class iT extends we{constructor(t,r,i,a){super(t,"uni-slider",LS,r,i,a)}}var x2="";class aT extends ua{constructor(t,r,i,a){super(t,"uni-swiper",zS,r,i,a,".uni-swiper-slide-frame")}}var y2="";class nT extends we{constructor(t,r,i,a){super(t,"uni-swiper-item",HS,r,i,a)}}var S2="";class oT extends we{constructor(t,r,i,a){super(t,"uni-switch",VS,r,i,a)}}var E2="";class sT extends we{constructor(t,r,i,a){super(t,"uni-textarea",KS,r,i,a)}init(t){super.init(t),xh(this.$props)}}var T2="",lT={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},vslideGesture:{type:[Boolean,String],default:!1},vslideGestureInFullscreen:{type:[Boolean,String],default:!1},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},Oh=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],uT=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],fT=ge({name:"Video",props:lT,emits:Oh,setup(e,t){var{emit:r}=t,i=U(null),a=Pe(i,r),n=U(null),o=Cl(e,["id"]),{position:s,hidden:u,onParentReady:l}=la(n),f;l(()=>{f=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(f),u.value&&f.hide(),Oh.forEach(m=>{f.addEventListener(m,d=>{a(m,{},d.detail)})}),H(()=>o.value,m=>f.setStyles(m),{deep:!0}),H(()=>s,m=>f.setStyles(m),{deep:!0}),H(()=>u.value,m=>{f[m?"hide":"show"](),m||f.setStyles(s)})});var v=qn();return Yn((m,d)=>{if(uT.includes(m)){var _;switch(m){case"seek":_=d.position;break;case"sendDanmu":_=d;break;case"playbackRate":_=d.rate;break;case"requestFullScreen":_=d.direction;break}f&&f[m](_)}},v,!0),Ce(()=>{f&&f.close()}),()=>I("uni-video",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-video-container"},null,512),I("div",{class:"uni-video-slot"},null)],8,["id"])}});class cT extends we{constructor(t,r,i,a){super(t,"uni-video",fT,r,i,a,".uni-video-slot")}}var C2="",vT={src:{type:String,default:""},updateTitle:{type:Boolean,default:!0},webviewStyles:{type:Object,default(){return{}}}},it,dT=e=>{var{htmlId:t,src:r,webviewStyles:i,props:a}=e,n=plus.webview.currentWebview(),o=ve(i,{"uni-app":"none",isUniH5:!0}),s=n.getTitleNView();if(s){var u=Ou+parseFloat(o.top||"0");plus.navigator.isImmersedStatusbar()&&(u+=_h()),o.top=String(u),o.bottom=o.bottom||"0"}it=plus.webview.create(r,t,o),s&&it.addEventListener("titleUpdate",function(){var l;if(!!a.updateTitle){var f=(l=it)===null||l===void 0?void 0:l.getTitle();n.setStyle({titleNView:{titleText:!f||f==="null"?" ":f}})}}),plus.webview.currentWebview().append(it)},hT=()=>{var e;plus.webview.currentWebview().remove(it),(e=it)===null||e===void 0||e.close("none"),it=null},gT=ge({name:"WebView",props:vT,setup(e){var t=Xt(),r=U(null),{hidden:i,onParentReady:a}=la(r),n=ee(()=>e.webviewStyles);return a(()=>{var o,s=U(yb+t);dT({htmlId:s.value,src:vt(e.src),webviewStyles:n.value,props:e}),UniViewJSBridge.publishHandler(wb,{},t),i.value&&((o=it)===null||o===void 0||o.hide())}),Ce(()=>{hT(),UniViewJSBridge.publishHandler(xb,{},t)}),H(()=>e.src,o=>{var s,u=vt(o)||"";if(!!u){if(/^(http|https):\/\//.test(u)&&e.webviewStyles.progress){var l;(l=it)===null||l===void 0||l.setStyle({progress:{color:e.webviewStyles.progress.color}})}(s=it)===null||s===void 0||s.loadURL(u)}}),H(n,o=>{var s;(s=it)===null||s===void 0||s.setStyle(o)}),H(i,o=>{it&&it[o?"hide":"show"]()}),()=>I("uni-web-view",{ref:r},null,512)}});class pT extends we{constructor(t,r,i,a){super(t,"uni-web-view",gT,r,i,a)}}var mT={"#text":tE,"#comment":hx,VIEW:nE,IMAGE:OE,TEXT:eE,NAVIGATOR:FE,FORM:EE,BUTTON:cE,INPUT:AE,LABEL:IE,RADIO:QE,CHECKBOX:hE,"CHECKBOX-GROUP":gE,AD:fE,CAMERA:vE,CANVAS:dE,"COVER-IMAGE":wE,"COVER-VIEW":yE,EDITOR:SE,"FUNCTIONAL-PAGE-NAVIGATOR":TE,ICON:CE,"RADIO-GROUP":eT,"LIVE-PLAYER":kE,"LIVE-PUSHER":ME,MAP:DE,"MOVABLE-AREA":BE,"MOVABLE-VIEW":$E,"OFFICIAL-ACCOUNT":zE,"OPEN-DATA":UE,PICKER:ZE,"PICKER-VIEW":KE,"PICKER-VIEW-COLUMN":GE,PROGRESS:JE,"RICH-TEXT":tT,"SCROLL-VIEW":rT,SLIDER:iT,SWIPER:aT,"SWIPER-ITEM":nT,SWITCH:oT,TEXTAREA:sT,VIDEO:cT,"WEB-VIEW":pT};function _T(e,t){return()=>y_(e,t)}var Gn=new Map;function at(e){return Gn.get(e)}function bT(e){return Gn.get(e)}function Ah(e){return Gn.delete(e)}function Ih(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},n;if(e===0)n=new ii(e,t,r,document.createElement(t));else{var o=mT[t];o?n=new o(e,r,i,a):n=new Ed(e,document.createElement(t),r,i,a)}return Gn.set(e,n),n}var Rl=[],kh=!1;function Mh(e){if(kh)return e();Rl.push(e)}function Ll(){kh=!0,Rl.forEach(e=>e()),Rl.length=0}function wT(){}function Rh(e){var{css:t,route:r,platform:i,pixelRatio:a,windowWidth:n,disableScroll:o,statusbarHeight:s,windowTop:u,windowBottom:l}=e;xT(r),yT(i,a,n),ST();var f=plus.webview.currentWebview().id;window.__id__=f,document.title="".concat(r,"[").concat(f,"]"),TT(s,u,l),o&&document.addEventListener("touchmove",cb),t?ET(r):Ll()}function xT(e){window.__PAGE_INFO__={route:e}}function yT(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function ST(){Ih(0,"div",-1,-1).$=document.getElementById("app")}function ET(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Ll,t.onerror=Ll,document.head.appendChild(t)}function TT(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};eb(i)}var Lh=!1;function CT(e){if(!Lh){Lh=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(Np,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(Dp)}};requestAnimationFrame(()=>document.addEventListener("scroll",vb(t)))}}function OT(e,t){var{scrollTop:r,selector:i,duration:a}=e;Fp(i||r||0,a),t()}function AT(e){var t=e[0];t[0]===Pu?IT(t):Mh(()=>kT(e))}function IT(e){return Rh(e[1])}function kT(e){var t=e[0],r=X1(t[0]===bb?t[1]:[]);e.forEach(i=>{switch(i[0]){case Pu:return Rh(i[1]);case qp:return wT();case Xp:return Ih(i[1],r(i[2]),i[3],i[4],Z1(r,i[5]));case Zp:return at(i[1]).remove();case Kp:return at(i[1]).setAttr(r(i[2]),r(i[3]));case Gp:return at(i[1]).removeAttr(r(i[2]));case Jp:return at(i[1]).addEvent(r(i[2]),i[3]);case t0:return at(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case Qp:return at(i[1]).removeEvent(r(i[2]));case e0:return at(i[1]).setText(r(i[2]));case r0:return CT(i[1])}}),Q1()}function MT(){var{subscribe:e}=UniViewJSBridge;e(Sc,AT),e(Sb,t=>Ge().setLocale(t)),e(Ec,RT)}function RT(){UniViewJSBridge.publishHandler("webviewReady")}function Ph(e){return window.__$__(e).$}function LT(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function Pl(e,t){var r={},{top:i}=Q_();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Ro(e)),t.rect||t.size){var a=e.getBoundingClientRect();t.rect&&(r.left=a.left,r.right=a.right,r.top=a.top-i,r.bottom=a.bottom-i),t.size&&(r.width=a.width,r.height=a.height)}if(Array.isArray(t.properties)&&t.properties.forEach(s=>{s=s.replace(/-([a-z])/g,function(u,l){return l.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var n=e.children[0].children[0];r.scrollLeft=n.scrollLeft,r.scrollTop=n.scrollTop,r.scrollHeight=n.scrollHeight,r.scrollWidth=n.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var o=getComputedStyle(e);t.computedStyle.forEach(s=>{r[s]=o[s]})}return t.context&&(r.contextInfo=JS(e)),r}function PT(e,t){return e?window.__$__(e).$:t.$el}function Nh(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var a=this.parentElement.querySelectorAll(i),n=a.length;--n>=0&&a.item(n)!==this;);return n>-1};return r.call(e,t)}function NT(e,t,r,i,a){var n=PT(t,e),o=n.parentElement;if(!o)return i?null:[];var{nodeType:s}=n,u=s===3||s===8;if(i){var l=u?o.querySelector(r):Nh(n,r)?n:n.querySelector(r);return l?Pl(l,a):null}else{var f=[],v=(u?o:n).querySelectorAll(r);return v&&v.length&&[].forEach.call(v,m=>{f.push(Pl(m,a))}),!u&&Nh(n,r)&&f.unshift(Pl(n,a)),f}}function DT(e,t,r){var i=[];t.forEach(a=>{var{component:n,selector:o,single:s,fields:u}=a;n===null?i.push(LT(u)):i.push(NT(e,n,o,s,u))}),r(i)}function BT(e,t){var{pageStyle:r,rootFontSize:i}=t;if(r){var a=document.querySelector("uni-page-body")||document.body;a.setAttribute("style",r)}i&&document.documentElement.style.fontSize!==i&&(document.documentElement.style.fontSize=i)}function $T(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=Ph(i);(o.__io||(o.__io={}))[r]=z1(o,a,n)}function FT(e,t){var{reqId:r,component:i}=e,a=Ph(i),n=a.__io&&a.__io[r];n&&(n.disconnect(),delete a.__io[r])}var Nl={},Dl={};function zT(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Dh(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Dh(i),": ").concat(e[i],")"));var a=t.join(" and ");return a}function Dh(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function UT(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=Nl[r]=window.matchMedia(zT(a)),s=Dl[r]=u=>n(u.matches);s(o),o.addListener(s)}function HT(e,t){var{reqId:r,component:i}=e,a=Dl[r],n=Nl[r];n&&(n.removeListener(a),delete Dl[r],delete Nl[r])}function WT(e,t){var{family:r,source:i,desc:a}=e;$p(r,i,a).then(()=>{t()}).catch(n=>{t(n.toString())})}var VT={$el:document.body};function jT(){var e=Xt();k0(e,t=>function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];Mh(()=>{t.apply(null,i)})}),bt(e,"requestComponentInfo",(t,r)=>{DT(VT,t.reqs,r)}),bt(e,"addIntersectionObserver",t=>{$T(ve({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),bt(e,"removeIntersectionObserver",t=>{FT(t)}),bt(e,"addMediaQueryObserver",t=>{UT(ve({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),bt(e,"removeMediaQueryObserver",t=>{HT(t)}),bt(e,B1,OT),bt(e,D1,WT),bt(e,N1,t=>{BT(null,t)})}window.uni=Y1,window.UniViewJSBridge=Tc,window.rpx2px=sd,window.__$__=at,window.__f__=Wp;function Bh(){F0(),jT(),MT(),q1(),Tc.publishHandler(Ec)}typeof plus!="undefined"?Bh():document.addEventListener("plusready",Bh)});
307ecfb48d68a25f592d018c6bb8d8194e01a8bf
2022-06-09 09:29:52
zhenyuWang
fix: 修复vue3 pc端 createSelectorQuery 获取 top 错误问题
false
修复vue3 pc端 createSelectorQuery 获取 top 错误问题
fix
diff --git a/packages/uni-core/src/helpers/dom.ts b/packages/uni-core/src/helpers/dom.ts index 272e8ec57e0..c13495a3678 100644 --- a/packages/uni-core/src/helpers/dom.ts +++ b/packages/uni-core/src/helpers/dom.ts @@ -20,11 +20,13 @@ export function getWindowOffset() { const bottom = getWindowOffsetCssVar(style, '--window-bottom') const left = getWindowOffsetCssVar(style, '--window-left') const right = getWindowOffsetCssVar(style, '--window-right') + const topWindowHeight = getWindowOffsetCssVar(style, '--top-window-height') return { top, bottom: bottom ? bottom + safeAreaInsets.bottom : 0, left: left ? left + safeAreaInsets.left : 0, right: right ? right + safeAreaInsets.right : 0, + topWindowHeight: topWindowHeight || 0, } } diff --git a/packages/uni-h5/src/service/api/ui/requestComponentInfo.ts b/packages/uni-h5/src/service/api/ui/requestComponentInfo.ts index cd50359143a..14d2e3480a3 100644 --- a/packages/uni-h5/src/service/api/ui/requestComponentInfo.ts +++ b/packages/uni-h5/src/service/api/ui/requestComponentInfo.ts @@ -40,7 +40,7 @@ function getNodeInfo( fields: NodeField ): SelectorQueryNodeInfo { const info: SelectorQueryNodeInfo = {} - const { top } = getWindowOffset() + const { top, topWindowHeight } = getWindowOffset() if (fields.id) { info.id = el.id } @@ -52,8 +52,8 @@ function getNodeInfo( if (fields.rect) { info.left = rect.left info.right = rect.right - info.top = rect.top - top - info.bottom = rect.bottom - top + info.top = rect.top - top - topWindowHeight + info.bottom = rect.bottom - top - topWindowHeight } if (fields.size) { info.width = rect.width
4fdc90f99533b368a12b29feef53bd305a3d00f7
2022-10-20 12:49:51
fxy060608
release: v3.0.0-alpha-3060720221018003
false
v3.0.0-alpha-3060720221018003
release
diff --git a/package.json b/package.json index 356b00a1ce5..64ee909a0b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "workspaces": [ "packages/*" ], @@ -43,8 +43,8 @@ "@babel/core": "^7.17.10", "@babel/preset-env": "^7.16.11", "@dcloudio/types": "^3.0.16", - "@dcloudio/uni-api": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-app": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-api": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-app": "3.0.0-alpha-3060720221018003", "@jest/types": "^27.0.2", "@microsoft/api-extractor": "^7.30.0", "@rollup/plugin-alias": "^3.1.1", diff --git a/packages/size-check/package.json b/packages/size-check/package.json index ac997303a76..44b2d9b018d 100644 --- a/packages/size-check/package.json +++ b/packages/size-check/package.json @@ -1,17 +1,17 @@ { "private": true, "name": "@dcloudio/size-check", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "dependencies": { - "@dcloudio/uni-app": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-h5": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-app": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-h5": "3.0.0-alpha-3060720221018003", "vue": "^3.2.31", "vue-i18n": "9.1.9", "vuex": "^4.1.0" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-components": "3.0.0-alpha-3060720221018002", - "@dcloudio/vite-plugin-uni": "3.0.0-alpha-3060720221018002" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-components": "3.0.0-alpha-3060720221018003", + "@dcloudio/vite-plugin-uni": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/uni-api/package.json b/packages/uni-api/package.json index e7072f398e9..fd7c4f6fbfe 100644 --- a/packages/uni-api/package.json +++ b/packages/uni-api/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-api", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-api", "sideEffects": false, "repository": { @@ -17,6 +17,6 @@ "@vue/shared": "3.2.41" }, "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002" + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/uni-app-plus/package.json b/packages/uni-app-plus/package.json index ea00cbe77ab..0dd1a8c25ba 100644 --- a/packages/uni-app-plus/package.json +++ b/packages/uni-app-plus/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-app-plus", "files": [ "dist", @@ -28,11 +28,11 @@ "main": "dist/uni.compiler.js" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-components": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-h5": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-components": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-h5": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@types/pako": "1.0.2", "@vue/compiler-sfc": "3.2.41", "autoprefixer": "^10.4.12", @@ -41,7 +41,7 @@ "vue": "3.2.41" }, "dependencies": { - "@dcloudio/uni-app-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-app-vue": "3.0.0-alpha-3060720221018002" + "@dcloudio/uni-app-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-app-vue": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/uni-app-vite/package.json b/packages/uni-app-vite/package.json index 20d1dd5fabb..66c1a9ad1aa 100644 --- a/packages/uni-app-vite/package.json +++ b/packages/uni-app-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vite", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -20,11 +20,11 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-nvue-styler": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uts": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-nvue-styler": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uts": "3.0.0-alpha-3060720221018003", "@rollup/pluginutils": "^4.2.0", "@vitejs/plugin-vue": "^3.1.2", "@vue/compiler-dom": "3.2.41", diff --git a/packages/uni-app-vue/package.json b/packages/uni-app-vue/package.json index 1353d2a688e..29adb5990f3 100644 --- a/packages/uni-app-vue/package.json +++ b/packages/uni-app-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vue", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-app-vue", "main": "dist/service.runtime.esm.dev.js", "module": "dist/service.runtime.esm.dev.js", @@ -19,6 +19,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002" + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index 4944a978a3c..02dda05fb5d 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-app", "main": "./dist/uni-app.cjs.js", "module": "./dist/uni-app.es.js", @@ -24,12 +24,12 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-cloud": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-components": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-push": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-stat": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cloud": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-components": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-push": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-stat": "3.0.0-alpha-3060720221018003", "@vue/shared": "3.2.41" } } diff --git a/packages/uni-automator/package.json b/packages/uni-automator/package.json index 3347401ff59..005b0e5769c 100644 --- a/packages/uni-automator/package.json +++ b/packages/uni-automator/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-automator", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-automator", "main": "dist/index.js", "files": [ @@ -27,7 +27,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", "address": "^1.1.2", "cross-env": "^7.0.3", "debug": "^4.3.3", diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index b13d4a182dc..3debd8d5233 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-shared", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-cli-shared", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -25,8 +25,8 @@ "@babel/core": "^7.18.13", "@babel/parser": "^7.18.13", "@babel/types": "^7.17.0", - "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@intlify/core-base": "9.1.9", "@intlify/shared": "9.1.9", "@intlify/vue-devtools": "9.1.9", @@ -64,7 +64,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-uts-v1": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-uts-v1": "3.0.0-alpha-3060720221018003", "@types/babel__core": "^7.1.19", "@types/debug": "^4.1.7", "@types/estree": "^0.0.51", @@ -79,4 +79,4 @@ "postcss": "^8.4.16", "vue": "3.2.41" } -} \ No newline at end of file +} diff --git a/packages/uni-cloud/package.json b/packages/uni-cloud/package.json index 1e3b15e20eb..4a7e04d1191 100644 --- a/packages/uni-cloud/package.json +++ b/packages/uni-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cloud", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-cloud", "main": "dist/uni-cloud.cjs.js", "module": "dist/uni-cloud.es.js", @@ -20,9 +20,9 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/shared": "3.2.41", "fast-glob": "^3.2.11" } diff --git a/packages/uni-components/package.json b/packages/uni-components/package.json index 24bf0fa26f3..502fab653ad 100644 --- a/packages/uni-components/package.json +++ b/packages/uni-components/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-components", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-components", "main": "index.js", "files": [ @@ -18,7 +18,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@types/quill": "^1.3.7" } } diff --git a/packages/uni-core/package.json b/packages/uni-core/package.json index 7af4edbda13..380784381bc 100644 --- a/packages/uni-core/package.json +++ b/packages/uni-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-core", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-core", "sideEffects": false, "repository": { @@ -14,9 +14,9 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "safe-area-insets": "^1.4.1" } } diff --git a/packages/uni-h5-vite/package.json b/packages/uni-h5-vite/package.json index 82416275756..425b54c3d58 100644 --- a/packages/uni-h5-vite/package.json +++ b/packages/uni-h5-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vite", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-h5-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,8 +19,8 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@rollup/pluginutils": "^4.2.0", "@vue/compiler-dom": "3.2.41", "@vue/compiler-sfc": "3.2.41", diff --git a/packages/uni-h5-vue/package.json b/packages/uni-h5-vue/package.json index e023a3f42c4..6782fdb8c7a 100644 --- a/packages/uni-h5-vue/package.json +++ b/packages/uni-h5-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vue", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-h5-vue", "main": "dist/vue.runtime.cjs.js", "module": "dist/vue.runtime.esm.js", @@ -19,6 +19,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002" + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index 7214cb48c9c..05573da2eb9 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-h5", "main": "./dist/uni-h5.cjs.js", "module": "./dist/uni-h5.es.js", @@ -29,10 +29,10 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-h5-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-h5-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-h5-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-h5-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/server-renderer": "3.2.41", "@vue/shared": "3.2.41", "localstorage-polyfill": "^1.0.1", @@ -42,7 +42,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", "@types/estree": "^0.0.51", "@types/google.maps": "^3.45.6", "@amap/amap-jsapi-types": "^0.0.8", diff --git a/packages/uni-i18n/package.json b/packages/uni-i18n/package.json index e2a28511db1..001f1d108c2 100644 --- a/packages/uni-i18n/package.json +++ b/packages/uni-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-i18n", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-i18n", "main": "./dist/uni-i18n.cjs.js", "module": "./dist/uni-i18n.es.js", diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index 8c631336311..38d83ce1125 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app mp-alipay", "main": "dist/index.js", "files": [ @@ -26,10 +26,10 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/compiler-core": "3.2.41", "@vue/shared": "3.2.41" } diff --git a/packages/uni-mp-baidu/package.json b/packages/uni-mp-baidu/package.json index 6b463c0525b..d3b12f78a43 100644 --- a/packages/uni-mp-baidu/package.json +++ b/packages/uni-mp-baidu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-baidu", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app mp-baidu", "main": "dist/index.js", "files": [ @@ -26,12 +26,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/compiler-core": "3.2.41", "@vue/shared": "3.2.41" } diff --git a/packages/uni-mp-compiler/package.json b/packages/uni-mp-compiler/package.json index 2a828da2429..3846e22872b 100644 --- a/packages/uni-mp-compiler/package.json +++ b/packages/uni-mp-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-compiler", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-mp-compiler", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -22,8 +22,8 @@ "@babel/generator": "^7.18.13", "@babel/parser": "^7.18.13", "@babel/types": "^7.17.0", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/compiler-core": "3.2.41", "@vue/compiler-dom": "3.2.41", "@vue/shared": "3.2.41", diff --git a/packages/uni-mp-core/package.json b/packages/uni-mp-core/package.json index 48ee9a0ba72..c32201b22a6 100644 --- a/packages/uni-mp-core/package.json +++ b/packages/uni-mp-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-mp-core", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-mp-core", "sideEffects": false, "repository": { diff --git a/packages/uni-mp-kuaishou/package.json b/packages/uni-mp-kuaishou/package.json index 034632183d7..3af82390a21 100644 --- a/packages/uni-mp-kuaishou/package.json +++ b/packages/uni-mp-kuaishou/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-kuaishou", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app mp-kuaishou", "main": "dist/index.js", "files": [ @@ -26,12 +26,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/compiler-core": "3.2.41", "@vue/shared": "3.2.41" } diff --git a/packages/uni-mp-lark/package.json b/packages/uni-mp-lark/package.json index 3dd7edfce2d..7d272b8f927 100644 --- a/packages/uni-mp-lark/package.json +++ b/packages/uni-mp-lark/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-lark", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app mp-lark", "main": "dist/index.js", "files": [ @@ -26,12 +26,12 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/compiler-core": "3.2.41", "@vue/shared": "3.2.41" } diff --git a/packages/uni-mp-qq/package.json b/packages/uni-mp-qq/package.json index fc5818ee55c..9bf66e71ecb 100644 --- a/packages/uni-mp-qq/package.json +++ b/packages/uni-mp-qq/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-qq", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app mp-qq", "main": "dist/index.js", "files": [ @@ -26,15 +26,15 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3060720221018003", "@types/fs-extra": "^9.0.13", "@vue/compiler-core": "3.2.41" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/shared": "3.2.41", "fs-extra": "^10.0.0" } diff --git a/packages/uni-mp-toutiao/package.json b/packages/uni-mp-toutiao/package.json index 44a6631f666..9dc4a81cd53 100644 --- a/packages/uni-mp-toutiao/package.json +++ b/packages/uni-mp-toutiao/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-toutiao", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app mp-toutiao", "main": "dist/index.js", "files": [ @@ -26,11 +26,11 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/shared": "3.2.41", "@vue/compiler-core": "3.2.41" } diff --git a/packages/uni-mp-vite/package.json b/packages/uni-mp-vite/package.json index d20333da660..303abd96cf7 100644 --- a/packages/uni-mp-vite/package.json +++ b/packages/uni-mp-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vite", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-mp-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -17,11 +17,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/compiler-sfc": "3.2.41", "@vue/shared": "3.2.41", "debug": "^4.3.3", diff --git a/packages/uni-mp-vue/package.json b/packages/uni-mp-vue/package.json index 964b9c15761..b00e5b2b85c 100644 --- a/packages/uni-mp-vue/package.json +++ b/packages/uni-mp-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vue", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-mp-vue", "main": "dist/vue.runtime.esm.js", "module": "dist/vue.runtime.esm.js", @@ -19,10 +19,10 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/shared": "3.2.41" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002" + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index 082427ccf5f..62910b1d4e8 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app mp-weixin", "main": "dist/index.js", "files": [ @@ -29,10 +29,10 @@ "@vue/compiler-core": "3.2.41" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/shared": "3.2.41" } } diff --git a/packages/uni-nvue-styler/package.json b/packages/uni-nvue-styler/package.json index dd022148d65..4018744684b 100644 --- a/packages/uni-nvue-styler/package.json +++ b/packages/uni-nvue-styler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-nvue-styler", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-nvue-styler", "main": "./dist/uni-nvue-styler.cjs.js", "types": "./dist/uni-nvue-styler.d.ts", diff --git a/packages/uni-push/package.json b/packages/uni-push/package.json index ac0b3027b48..9689d37eed9 100644 --- a/packages/uni-push/package.json +++ b/packages/uni-push/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-push", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-push", "main": "lib/uni-push.js", "module": "lib/uni-push.js", @@ -20,6 +20,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002" + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/uni-quickapp-webview/package.json b/packages/uni-quickapp-webview/package.json index 3c7af141a3c..2f2014d9cd2 100644 --- a/packages/uni-quickapp-webview/package.json +++ b/packages/uni-quickapp-webview/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-quickapp-webview", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app quickapp-webview", "main": "dist/index.js", "files": [ @@ -29,10 +29,10 @@ "@vue/compiler-core": "3.2.41" }, "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vite": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@vue/shared": "3.2.41" } } diff --git a/packages/uni-shared/package.json b/packages/uni-shared/package.json index 5f30fc31185..76ec72af7a5 100644 --- a/packages/uni-shared/package.json +++ b/packages/uni-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-shared", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-shared", "main": "./dist/uni-shared.cjs.js", "module": "./dist/uni-shared.es.js", diff --git a/packages/uni-stacktracey/package.json b/packages/uni-stacktracey/package.json index 7dc85d7d4a2..f7fcbe0b34c 100644 --- a/packages/uni-stacktracey/package.json +++ b/packages/uni-stacktracey/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stacktracey", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-stacktracey", "main": "dist/uni-stacktracey.cjs.js", "module": "dist/uni-stacktracey.es.js", diff --git a/packages/uni-stat/package.json b/packages/uni-stat/package.json index 2cf7d39f09c..aa799c4f241 100644 --- a/packages/uni-stat/package.json +++ b/packages/uni-stat/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stat", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-stat", "main": "dist/uni-stat.es.js", "module": "dist/uni-stat.es.js", @@ -20,8 +20,8 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "debug": "^4.3.3" }, "devDependencies": { diff --git a/packages/uni-uts-v1/package.json b/packages/uni-uts-v1/package.json index ebe3e84a8b1..2b0e786e439 100644 --- a/packages/uni-uts-v1/package.json +++ b/packages/uni-uts-v1/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-uts-v1", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-uts-v1", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -17,7 +17,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uts": "3.0.0-alpha-3060720221018002", + "@dcloudio/uts": "3.0.0-alpha-3060720221018003", "@vue/shared": "3.2.41", "adm-zip": "^0.5.9", "execa": "^5.1.1", @@ -29,4 +29,4 @@ "@types/adm-zip": "^0.5.0", "@types/fs-extra": "^9.0.13" } -} \ No newline at end of file +} diff --git a/packages/uni-vue/package.json b/packages/uni-vue/package.json index 7010d5e752f..55a142c7db4 100644 --- a/packages/uni-vue/package.json +++ b/packages/uni-vue/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-vue", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "@dcloudio/uni-vue", "files": [ "dist" @@ -17,7 +17,7 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002" + "@dcloudio/uni-mp-vue": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/uts-darwin-arm64/package.json b/packages/uts-darwin-arm64/package.json index 31e657a6ea8..83c139b02e4 100644 --- a/packages/uts-darwin-arm64/package.json +++ b/packages/uts-darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-darwin-arm64", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "os": [ "darwin" ], diff --git a/packages/uts-darwin-x64/package.json b/packages/uts-darwin-x64/package.json index 8033b3ecb35..b79070467cd 100644 --- a/packages/uts-darwin-x64/package.json +++ b/packages/uts-darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-darwin-x64", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "os": [ "darwin" ], diff --git a/packages/uts-win32-ia32-msvc/package.json b/packages/uts-win32-ia32-msvc/package.json index 9c8389cefc9..a44e0e7ed5a 100644 --- a/packages/uts-win32-ia32-msvc/package.json +++ b/packages/uts-win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-win32-ia32-msvc", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "os": [ "win32" ], diff --git a/packages/uts-win32-x64-msvc/package.json b/packages/uts-win32-x64-msvc/package.json index 2e6f4b8bfa6..2d42c13c3c2 100644 --- a/packages/uts-win32-x64-msvc/package.json +++ b/packages/uts-win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts-win32-x64-msvc", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "os": [ "win32" ], diff --git a/packages/uts/package.json b/packages/uts/package.json index 120d50969e4..f403d4b17b6 100644 --- a/packages/uts/package.json +++ b/packages/uts/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uts", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uts", "bin": { "uts": "bin/uts.js" @@ -27,9 +27,9 @@ "@types/fs-extra": "^9.0.13" }, "optionalDependencies": { - "@dcloudio/uts-darwin-arm64": "3.0.0-alpha-3060720221018002", - "@dcloudio/uts-darwin-x64": "3.0.0-alpha-3060720221018002", - "@dcloudio/uts-win32-ia32-msvc": "3.0.0-alpha-3060720221018002", - "@dcloudio/uts-win32-x64-msvc": "3.0.0-alpha-3060720221018002" + "@dcloudio/uts-darwin-arm64": "3.0.0-alpha-3060720221018003", + "@dcloudio/uts-darwin-x64": "3.0.0-alpha-3060720221018003", + "@dcloudio/uts-win32-ia32-msvc": "3.0.0-alpha-3060720221018003", + "@dcloudio/uts-win32-x64-msvc": "3.0.0-alpha-3060720221018003" } } diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 42794397eb7..67be503bb63 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vite-plugin-uni", - "version": "3.0.0-alpha-3060720221018002", + "version": "3.0.0-alpha-3060720221018003", "description": "uni-app vite plugin", "bin": { "uni": "bin/uni.js" @@ -28,8 +28,8 @@ "@babel/core": "^7.18.13", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-transform-typescript": "^7.18.12", - "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018002", - "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018002", + "@dcloudio/uni-cli-shared": "3.0.0-alpha-3060720221018003", + "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003", "@rollup/pluginutils": "^4.2.0", "@vitejs/plugin-legacy": "^2.2.0", "@vitejs/plugin-vue": "^3.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c2010a08e1..612d4cf14dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,8 +7,8 @@ importers: '@babel/core': ^7.17.10 '@babel/preset-env': ^7.16.11 '@dcloudio/types': ^3.0.16 - '@dcloudio/uni-api': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-app': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-api': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-app': 3.0.0-alpha-3060720221018003 '@jest/types': ^27.0.2 '@microsoft/api-extractor': ^7.30.0 '@rollup/plugin-alias': ^3.1.1 @@ -137,11 +137,11 @@ importers: packages/size-check: specifiers: - '@dcloudio/uni-app': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-components': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-h5': 3.0.0-alpha-3060720221018002 - '@dcloudio/vite-plugin-uni': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-app': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-components': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-h5': 3.0.0-alpha-3060720221018003 + '@dcloudio/vite-plugin-uni': 3.0.0-alpha-3060720221018003 vue: ^3.2.31 vue-i18n: 9.1.9 vuex: ^4.1.0 @@ -158,7 +158,7 @@ importers: packages/uni-api: specifiers: - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/shared': 3.2.41 dependencies: '@vue/shared': 3.2.41 @@ -167,12 +167,12 @@ importers: packages/uni-app: specifiers: - '@dcloudio/uni-cloud': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-components': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-push': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-stat': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cloud': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-components': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-push': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-stat': 3.0.0-alpha-3060720221018003 '@vue/shared': 3.2.41 dependencies: '@dcloudio/uni-cloud': link:../uni-cloud @@ -185,13 +185,13 @@ importers: packages/uni-app-plus: specifiers: - '@dcloudio/uni-app-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-app-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-components': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-h5': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-app-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-app-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-components': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-h5': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@types/pako': 1.0.2 '@vue/compiler-sfc': 3.2.41 autoprefixer: ^10.4.12 @@ -216,11 +216,11 @@ importers: packages/uni-app-vite: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-nvue-styler': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uts': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-nvue-styler': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uts': 3.0.0-alpha-3060720221018003 '@rollup/pluginutils': ^4.2.0 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -261,13 +261,13 @@ importers: packages/uni-app-vue: specifiers: - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 devDependencies: '@dcloudio/uni-shared': link:../uni-shared packages/uni-automator: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 address: ^1.1.2 @@ -302,9 +302,9 @@ importers: '@babel/core': ^7.18.13 '@babel/parser': ^7.18.13 '@babel/types': ^7.17.0 - '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-uts-v1': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-uts-v1': 3.0.0-alpha-3060720221018003 '@intlify/core-base': 9.1.9 '@intlify/shared': 9.1.9 '@intlify/vue-devtools': 9.1.9 @@ -411,9 +411,9 @@ importers: packages/uni-cloud: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/shared': 3.2.41 fast-glob: ^3.2.11 dependencies: @@ -425,7 +425,7 @@ importers: packages/uni-components: specifiers: - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@types/quill': ^1.3.7 devDependencies: '@dcloudio/uni-shared': link:../uni-shared @@ -433,9 +433,9 @@ importers: packages/uni-core: specifiers: - '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 safe-area-insets: ^1.4.1 devDependencies: '@dcloudio/uni-i18n': link:../uni-i18n @@ -446,11 +446,11 @@ importers: packages/uni-h5: specifiers: '@amap/amap-jsapi-types': ^0.0.8 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-h5-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-h5-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-h5-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-h5-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@types/estree': ^0.0.51 '@types/google.maps': ^3.45.6 '@vue/server-renderer': 3.2.41 @@ -486,8 +486,8 @@ importers: packages/uni-h5-vite: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@rollup/pluginutils': ^4.2.0 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -529,7 +529,7 @@ importers: packages/uni-h5-vue: specifiers: - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 dependencies: '@dcloudio/uni-shared': link:../uni-shared @@ -538,10 +538,10 @@ importers: packages/uni-mp-alipay: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/compiler-core': 3.2.41 '@vue/shared': 3.2.41 dependencies: @@ -554,12 +554,12 @@ importers: packages/uni-mp-baidu: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/compiler-core': 3.2.41 '@vue/shared': 3.2.41 dependencies: @@ -577,8 +577,8 @@ importers: '@babel/generator': ^7.18.13 '@babel/parser': ^7.18.13 '@babel/types': ^7.17.0 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@types/babel__generator': ^7.6.4 '@vue/compiler-core': 3.2.41 '@vue/compiler-dom': 3.2.41 @@ -606,12 +606,12 @@ importers: packages/uni-mp-kuaishou: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/compiler-core': 3.2.41 '@vue/shared': 3.2.41 dependencies: @@ -626,12 +626,12 @@ importers: packages/uni-mp-lark: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-toutiao': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-toutiao': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/compiler-core': 3.2.41 '@vue/shared': 3.2.41 dependencies: @@ -646,11 +646,11 @@ importers: packages/uni-mp-qq: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-weixin': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@types/fs-extra': ^9.0.13 '@vue/compiler-core': 3.2.41 '@vue/shared': 3.2.41 @@ -669,11 +669,11 @@ importers: packages/uni-mp-toutiao: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/compiler-core': 3.2.41 '@vue/shared': 3.2.41 dependencies: @@ -687,11 +687,11 @@ importers: packages/uni-mp-vite: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-i18n': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-compiler': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@types/debug': ^4.1.7 '@vue/compiler-sfc': 3.2.41 '@vue/shared': 3.2.41 @@ -712,8 +712,8 @@ importers: packages/uni-mp-vue: specifiers: - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/shared': 3.2.41 dependencies: '@dcloudio/uni-shared': link:../uni-shared @@ -723,10 +723,10 @@ importers: packages/uni-mp-weixin: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/compiler-core': 3.2.41 '@vue/shared': 3.2.41 dependencies: @@ -750,16 +750,16 @@ importers: packages/uni-push: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared packages/uni-quickapp-webview: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vite': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@vue/compiler-core': 3.2.41 '@vue/shared': 3.2.41 dependencies: @@ -788,8 +788,8 @@ importers: packages/uni-stat: specifiers: - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@types/debug': ^4.1.7 debug: ^4.3.3 dependencies: @@ -801,7 +801,7 @@ importers: packages/uni-uts-v1: specifiers: - '@dcloudio/uts': 3.0.0-alpha-3060720221018002 + '@dcloudio/uts': 3.0.0-alpha-3060720221018003 '@types/adm-zip': ^0.5.0 '@types/fs-extra': ^9.0.13 '@vue/shared': 3.2.41 @@ -824,18 +824,18 @@ importers: packages/uni-vue: specifiers: - '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-mp-vue': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 devDependencies: '@dcloudio/uni-mp-vue': link:../uni-mp-vue '@dcloudio/uni-shared': link:../uni-shared packages/uts: specifiers: - '@dcloudio/uts-darwin-arm64': 3.0.0-alpha-3060720221018002 - '@dcloudio/uts-darwin-x64': 3.0.0-alpha-3060720221018002 - '@dcloudio/uts-win32-ia32-msvc': 3.0.0-alpha-3060720221018002 - '@dcloudio/uts-win32-x64-msvc': 3.0.0-alpha-3060720221018002 + '@dcloudio/uts-darwin-arm64': 3.0.0-alpha-3060720221018003 + '@dcloudio/uts-darwin-x64': 3.0.0-alpha-3060720221018003 + '@dcloudio/uts-win32-ia32-msvc': 3.0.0-alpha-3060720221018003 + '@dcloudio/uts-win32-x64-msvc': 3.0.0-alpha-3060720221018003 '@types/fs-extra': ^9.0.13 cac: 6.7.9 chokidar: ^3.5.3 @@ -873,8 +873,8 @@ importers: '@babel/core': ^7.18.13 '@babel/plugin-syntax-import-meta': ^7.10.4 '@babel/plugin-transform-typescript': ^7.18.12 - '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018002 - '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018002 + '@dcloudio/uni-cli-shared': 3.0.0-alpha-3060720221018003 + '@dcloudio/uni-shared': 3.0.0-alpha-3060720221018003 '@rollup/pluginutils': ^4.2.0 '@types/debug': ^4.1.7 '@types/estree': ^0.0.51 @@ -2126,13 +2126,6 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@colors/colors/1.5.0: - resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} - engines: {node: '>=0.1.90'} - requiresBuild: true - dev: true - optional: true - /@cypress/request/2.88.10: resolution: {integrity: sha512-Zp7F+R93N0yZyG34GutyTNr+okam7s/Fzc1+i3kcqOP8vk6OuajuE9qZJ6Rs+10/1JFtXFYMdyarnU1rZuJesg==} engines: {node: '>= 6'} @@ -2174,22 +2167,6 @@ packages: resolution: {integrity: sha512-qim+07c/PZQQorX+ABObIEyunYghnyONqoV1yqoup8eLI3GGGE8blFRnD1aM2d8JDZPrf32xOs0sDfgC0Ycx+g==} dev: true - /@esbuild/android-arm/0.15.10: - resolution: {integrity: sha512-FNONeQPy/ox+5NBkcSbYJxoXj9GWu8gVGJTVmUyoOCKQFDTrHVKgNSzChdNt0I8Aj/iKcsDf2r9BFwv+FSNUXg==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - requiresBuild: true - optional: true - - /@esbuild/linux-loong64/0.15.10: - resolution: {integrity: sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - optional: true - /@eslint/eslintrc/0.4.3: resolution: {integrity: sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==} engines: {node: ^10.12.0 || >=12.0.0} @@ -2401,7 +2378,7 @@ packages: collect-v8-coverage: 1.0.1 exit: 0.1.2 glob: 7.2.3 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 istanbul-lib-coverage: 3.2.0 istanbul-lib-instrument: 5.2.1 istanbul-lib-report: 3.0.0 @@ -2425,7 +2402,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: callsites: 3.1.0 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 source-map: 0.6.1 dev: true @@ -2444,7 +2421,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/test-result': 27.5.1 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jest-haste-map: 27.5.1 jest-runtime: 27.5.1 transitivePeerDependencies: @@ -2461,7 +2438,7 @@ packages: chalk: 4.1.2 convert-source-map: 1.8.0 fast-json-stable-stringify: 2.1.0 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jest-haste-map: 27.5.1 jest-regex-util: 27.5.1 jest-util: 27.5.1 @@ -2991,14 +2968,6 @@ packages: '@types/yargs-parser': 21.0.0 dev: true - /@types/yauzl/2.9.2: - resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==} - requiresBuild: true - dependencies: - '@types/node': 14.18.31 - dev: true - optional: true - /@typescript-eslint/parser/5.39.0_3rubbgt5ekhqrcgx4uwls3neim: resolution: {integrity: sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3527,7 +3496,7 @@ packages: babel-plugin-istanbul: 6.1.1 babel-preset-jest: 27.5.1_@[email protected] chalk: 4.1.2 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 slash: 3.0.0 transitivePeerDependencies: - supports-color @@ -3907,7 +3876,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /ci-info/1.6.0: resolution: {integrity: sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==} @@ -3946,7 +3915,7 @@ packages: dependencies: string-width: 4.2.3 optionalDependencies: - '@colors/colors': 1.5.0 + '@colors/colors': registry.npmjs.org/@colors/colors/1.5.0 dev: true /cli-truncate/2.1.0: @@ -4534,194 +4503,34 @@ packages: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} dev: false - /esbuild-android-64/0.15.10: - resolution: {integrity: sha512-UI7krF8OYO1N7JYTgLT9ML5j4+45ra3amLZKx7LO3lmLt1Ibn8t3aZbX5Pu4BjWiqDuJ3m/hsvhPhK/5Y/YpnA==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - optional: true - - /esbuild-android-arm64/0.15.10: - resolution: {integrity: sha512-EOt55D6xBk5O05AK8brXUbZmoFj4chM8u3riGflLa6ziEoVvNjRdD7Cnp82NHQGfSHgYR06XsPI8/sMuA/cUwg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - optional: true - - /esbuild-darwin-64/0.15.10: - resolution: {integrity: sha512-hbDJugTicqIm+WKZgp208d7FcXcaK8j2c0l+fqSJ3d2AzQAfjEYDRM3Z2oMeqSJ9uFxyj/muSACLdix7oTstRA==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-darwin-arm64/0.15.10: - resolution: {integrity: sha512-M1t5+Kj4IgSbYmunf2BB6EKLkWUq+XlqaFRiGOk8bmBapu9bCDrxjf4kUnWn59Dka3I27EiuHBKd1rSO4osLFQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-freebsd-64/0.15.10: - resolution: {integrity: sha512-KMBFMa7C8oc97nqDdoZwtDBX7gfpolkk6Bcmj6YFMrtCMVgoU/x2DI1p74DmYl7CSS6Ppa3xgemrLrr5IjIn0w==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-freebsd-arm64/0.15.10: - resolution: {integrity: sha512-m2KNbuCX13yQqLlbSojFMHpewbn8wW5uDS6DxRpmaZKzyq8Dbsku6hHvh2U+BcLwWY4mpgXzFUoENEf7IcioGg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-linux-32/0.15.10: - resolution: {integrity: sha512-guXrwSYFAvNkuQ39FNeV4sNkNms1bLlA5vF1H0cazZBOLdLFIny6BhT+TUbK/hdByMQhtWQ5jI9VAmPKbVPu1w==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-64/0.15.10: - resolution: {integrity: sha512-jd8XfaSJeucMpD63YNMO1JCrdJhckHWcMv6O233bL4l6ogQKQOxBYSRP/XLWP+6kVTu0obXovuckJDcA0DKtQA==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm/0.15.10: - resolution: {integrity: sha512-6N8vThLL/Lysy9y4Ex8XoLQAlbZKUyExCWyayGi2KgTBelKpPgj6RZnUaKri0dHNPGgReJriKVU6+KDGQwn10A==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm64/0.15.10: - resolution: {integrity: sha512-GByBi4fgkvZFTHFDYNftu1DQ1GzR23jws0oWyCfhnI7eMOe+wgwWrc78dbNk709Ivdr/evefm2PJiUBMiusS1A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-mips64le/0.15.10: - resolution: {integrity: sha512-BxP+LbaGVGIdQNJUNF7qpYjEGWb0YyHVSKqYKrn+pTwH/SiHUxFyJYSP3pqkku61olQiSBnSmWZ+YUpj78Tw7Q==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-ppc64le/0.15.10: - resolution: {integrity: sha512-LoSQCd6498PmninNgqd/BR7z3Bsk/mabImBWuQ4wQgmQEeanzWd5BQU2aNi9mBURCLgyheuZS6Xhrw5luw3OkQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-riscv64/0.15.10: - resolution: {integrity: sha512-Lrl9Cr2YROvPV4wmZ1/g48httE8z/5SCiXIyebiB5N8VT7pX3t6meI7TQVHw/wQpqP/AF4SksDuFImPTM7Z32Q==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-s390x/0.15.10: - resolution: {integrity: sha512-ReP+6q3eLVVP2lpRrvl5EodKX7EZ1bS1/z5j6hsluAlZP5aHhk6ghT6Cq3IANvvDdscMMCB4QEbI+AjtvoOFpA==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-netbsd-64/0.15.10: - resolution: {integrity: sha512-iGDYtJCMCqldMskQ4eIV+QSS/CuT7xyy9i2/FjpKvxAuCzrESZXiA1L64YNj6/afuzfBe9i8m/uDkFHy257hTw==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - optional: true - - /esbuild-openbsd-64/0.15.10: - resolution: {integrity: sha512-ftMMIwHWrnrYnvuJQRJs/Smlcb28F9ICGde/P3FUTCgDDM0N7WA0o9uOR38f5Xe2/OhNCgkjNeb7QeaE3cyWkQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - optional: true - - /esbuild-sunos-64/0.15.10: - resolution: {integrity: sha512-mf7hBL9Uo2gcy2r3rUFMjVpTaGpFJJE5QTDDqUFf1632FxteYANffDZmKbqX0PfeQ2XjUDE604IcE7OJeoHiyg==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - optional: true - - /esbuild-windows-32/0.15.10: - resolution: {integrity: sha512-ttFVo+Cg8b5+qHmZHbEc8Vl17kCleHhLzgT8X04y8zudEApo0PxPg9Mz8Z2cKH1bCYlve1XL8LkyXGFjtUYeGg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-64/0.15.10: - resolution: {integrity: sha512-2H0gdsyHi5x+8lbng3hLbxDWR7mKHWh5BXZGKVG830KUmXOOWFE2YKJ4tHRkejRduOGDrBvHBriYsGtmTv3ntA==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-arm64/0.15.10: - resolution: {integrity: sha512-S+th4F+F8VLsHLR0zrUcG+Et4hx0RKgK1eyHc08kztmLOES8BWwMiaGdoW9hiXuzznXQ0I/Fg904MNbr11Nktw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - optional: true - /esbuild/0.15.10: resolution: {integrity: sha512-N7wBhfJ/E5fzn/SpNgX+oW2RLRjwaL8Y0ezqNqhjD6w0H2p0rDuEz2FKZqpqLnO8DCaWumKe8dsC/ljvVSSxng==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.15.10 - '@esbuild/linux-loong64': 0.15.10 - esbuild-android-64: 0.15.10 - esbuild-android-arm64: 0.15.10 - esbuild-darwin-64: 0.15.10 - esbuild-darwin-arm64: 0.15.10 - esbuild-freebsd-64: 0.15.10 - esbuild-freebsd-arm64: 0.15.10 - esbuild-linux-32: 0.15.10 - esbuild-linux-64: 0.15.10 - esbuild-linux-arm: 0.15.10 - esbuild-linux-arm64: 0.15.10 - esbuild-linux-mips64le: 0.15.10 - esbuild-linux-ppc64le: 0.15.10 - esbuild-linux-riscv64: 0.15.10 - esbuild-linux-s390x: 0.15.10 - esbuild-netbsd-64: 0.15.10 - esbuild-openbsd-64: 0.15.10 - esbuild-sunos-64: 0.15.10 - esbuild-windows-32: 0.15.10 - esbuild-windows-64: 0.15.10 - esbuild-windows-arm64: 0.15.10 + '@esbuild/android-arm': registry.npmjs.org/@esbuild/android-arm/0.15.10 + '@esbuild/linux-loong64': registry.npmjs.org/@esbuild/linux-loong64/0.15.10 + esbuild-android-64: registry.npmjs.org/esbuild-android-64/0.15.10 + esbuild-android-arm64: registry.npmjs.org/esbuild-android-arm64/0.15.10 + esbuild-darwin-64: registry.npmjs.org/esbuild-darwin-64/0.15.10 + esbuild-darwin-arm64: registry.npmjs.org/esbuild-darwin-arm64/0.15.10 + esbuild-freebsd-64: registry.npmjs.org/esbuild-freebsd-64/0.15.10 + esbuild-freebsd-arm64: registry.npmjs.org/esbuild-freebsd-arm64/0.15.10 + esbuild-linux-32: registry.npmjs.org/esbuild-linux-32/0.15.10 + esbuild-linux-64: registry.npmjs.org/esbuild-linux-64/0.15.10 + esbuild-linux-arm: registry.npmjs.org/esbuild-linux-arm/0.15.10 + esbuild-linux-arm64: registry.npmjs.org/esbuild-linux-arm64/0.15.10 + esbuild-linux-mips64le: registry.npmjs.org/esbuild-linux-mips64le/0.15.10 + esbuild-linux-ppc64le: registry.npmjs.org/esbuild-linux-ppc64le/0.15.10 + esbuild-linux-riscv64: registry.npmjs.org/esbuild-linux-riscv64/0.15.10 + esbuild-linux-s390x: registry.npmjs.org/esbuild-linux-s390x/0.15.10 + esbuild-netbsd-64: registry.npmjs.org/esbuild-netbsd-64/0.15.10 + esbuild-openbsd-64: registry.npmjs.org/esbuild-openbsd-64/0.15.10 + esbuild-sunos-64: registry.npmjs.org/esbuild-sunos-64/0.15.10 + esbuild-windows-32: registry.npmjs.org/esbuild-windows-32/0.15.10 + esbuild-windows-64: registry.npmjs.org/esbuild-windows-64/0.15.10 + esbuild-windows-arm64: registry.npmjs.org/esbuild-windows-arm64/0.15.10 /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -4754,7 +4563,7 @@ packages: esutils: 2.0.3 optionator: 0.8.3 optionalDependencies: - source-map: 0.6.1 + source-map: registry.npmjs.org/source-map/0.6.1 dev: true /eslint-scope/5.1.1: @@ -5026,7 +4835,7 @@ packages: get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: - '@types/yauzl': 2.9.2 + '@types/yauzl': registry.npmjs.org/@types/yauzl/2.9.2 transitivePeerDependencies: - supports-color dev: true @@ -5189,7 +4998,7 @@ packages: resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} engines: {node: '>=6 <7 || >=8'} dependencies: - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jsonfile: 4.0.0 universalify: 0.1.2 dev: true @@ -5198,7 +5007,7 @@ packages: resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} engines: {node: '>=6 <7 || >=8'} dependencies: - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jsonfile: 4.0.0 universalify: 0.1.2 dev: true @@ -5208,7 +5017,7 @@ packages: engines: {node: '>=10'} dependencies: at-least-node: 1.0.0 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jsonfile: 6.1.0 universalify: 2.0.0 dev: true @@ -5217,13 +5026,6 @@ packages: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true - /fsevents/2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - optional: true - /function-bind/1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} @@ -5347,7 +5149,7 @@ packages: resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} /graceful-fs/4.2.9: - resolution: {integrity: sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz} + resolution: {integrity: sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==} dev: true /has-flag/3.0.0: @@ -5828,7 +5630,7 @@ packages: ci-info: 3.5.0 deepmerge: 4.2.2 glob: 7.2.3 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jest-circus: 27.5.1 jest-environment-jsdom: 27.5.1 jest-environment-node: 27.5.1 @@ -5923,7 +5725,7 @@ packages: '@types/node': 17.0.45 anymatch: 3.1.2 fb-watchman: 2.0.2 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jest-regex-util: 27.5.1 jest-serializer: 27.5.1 jest-util: 27.5.1 @@ -5931,7 +5733,7 @@ packages: micromatch: 4.0.5 walker: 1.0.8 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 dev: true /jest-jasmine2/27.5.1: @@ -5985,7 +5787,7 @@ packages: '@jest/types': 27.5.1 '@types/stack-utils': 2.0.1 chalk: 4.1.2 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 micromatch: 4.0.5 pretty-format: 27.5.1 slash: 3.0.0 @@ -6034,7 +5836,7 @@ packages: dependencies: '@jest/types': 27.5.1 chalk: 4.1.2 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jest-haste-map: 27.5.1 jest-pnp-resolver: [email protected] jest-util: 27.5.1 @@ -6056,7 +5858,7 @@ packages: '@types/node': 17.0.45 chalk: 4.1.2 emittery: 0.8.1 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jest-docblock: 27.5.1 jest-environment-jsdom: 27.5.1 jest-environment-node: 27.5.1 @@ -6092,7 +5894,7 @@ packages: collect-v8-coverage: 1.0.1 execa: 5.1.1 glob: 7.2.3 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jest-haste-map: 27.5.1 jest-message-util: 27.5.1 jest-mock: 27.5.1 @@ -6111,7 +5913,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@types/node': 17.0.45 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 dev: true /jest-snapshot/27.5.1: @@ -6130,7 +5932,7 @@ packages: babel-preset-current-node-syntax: 1.0.1_@[email protected] chalk: 4.1.2 expect: 27.5.1 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 jest-diff: 27.5.1 jest-get-type: 27.5.1 jest-haste-map: 27.5.1 @@ -6152,7 +5954,7 @@ packages: '@types/node': 17.0.45 chalk: 4.1.2 ci-info: 3.5.0 - graceful-fs: 4.2.9 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 picomatch: 2.3.1 dev: true @@ -6338,7 +6140,7 @@ packages: /jsonfile/4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} optionalDependencies: - graceful-fs: 4.2.10 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 dev: true /jsonfile/6.1.0: @@ -6346,7 +6148,7 @@ packages: dependencies: universalify: 2.0.0 optionalDependencies: - graceful-fs: 4.2.10 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.9 /jsprim/2.0.2: resolution: {integrity: sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==} @@ -7619,14 +7421,14 @@ packages: engines: {node: '>=10.0.0'} hasBin: true optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /rollup/2.79.1: resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} engines: {node: '>=10.0.0'} hasBin: true optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 dev: true /run-parallel/1.2.0: @@ -8356,7 +8158,7 @@ packages: resolve: 1.22.1 rollup: 2.78.1 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /vite/[email protected]: resolution: {integrity: sha512-m7jJe3nufUbuOfotkntGFupinL/fmuTNuQmiVE7cH2IZMuf4UbfbGYMUT3jVWgGYuRVLY9j8NnrRqgw5rr5QTg==} @@ -8383,7 +8185,7 @@ packages: rollup: 2.78.1 terser: 5.15.1 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /vlq/0.2.3: resolution: {integrity: sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==} @@ -8675,5 +8477,275 @@ packages: lodash.isequal: 4.5.0 validator: 13.7.0 optionalDependencies: - commander: 2.20.3 + commander: registry.npmjs.org/commander/2.20.3 dev: true + + registry.npmjs.org/@colors/colors/1.5.0: + resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz} + name: '@colors/colors' + version: 1.5.0 + engines: {node: '>=0.1.90'} + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/@esbuild/android-arm/0.15.10: + resolution: {integrity: sha512-FNONeQPy/ox+5NBkcSbYJxoXj9GWu8gVGJTVmUyoOCKQFDTrHVKgNSzChdNt0I8Aj/iKcsDf2r9BFwv+FSNUXg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.10.tgz} + name: '@esbuild/android-arm' + version: 0.15.10 + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + optional: true + + registry.npmjs.org/@esbuild/linux-loong64/0.15.10: + resolution: {integrity: sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.10.tgz} + name: '@esbuild/linux-loong64' + version: 0.15.10 + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/@types/yauzl/2.9.2: + resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.2.tgz} + name: '@types/yauzl' + version: 2.9.2 + requiresBuild: true + dependencies: + '@types/node': 14.18.31 + dev: true + optional: true + + registry.npmjs.org/commander/2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/commander/-/commander-2.20.3.tgz} + name: commander + version: 2.20.3 + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-android-64/0.15.10: + resolution: {integrity: sha512-UI7krF8OYO1N7JYTgLT9ML5j4+45ra3amLZKx7LO3lmLt1Ibn8t3aZbX5Pu4BjWiqDuJ3m/hsvhPhK/5Y/YpnA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.10.tgz} + name: esbuild-android-64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-android-arm64/0.15.10: + resolution: {integrity: sha512-EOt55D6xBk5O05AK8brXUbZmoFj4chM8u3riGflLa6ziEoVvNjRdD7Cnp82NHQGfSHgYR06XsPI8/sMuA/cUwg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.10.tgz} + name: esbuild-android-arm64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-darwin-64/0.15.10: + resolution: {integrity: sha512-hbDJugTicqIm+WKZgp208d7FcXcaK8j2c0l+fqSJ3d2AzQAfjEYDRM3Z2oMeqSJ9uFxyj/muSACLdix7oTstRA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.10.tgz} + name: esbuild-darwin-64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-darwin-arm64/0.15.10: + resolution: {integrity: sha512-M1t5+Kj4IgSbYmunf2BB6EKLkWUq+XlqaFRiGOk8bmBapu9bCDrxjf4kUnWn59Dka3I27EiuHBKd1rSO4osLFQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.10.tgz} + name: esbuild-darwin-arm64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-freebsd-64/0.15.10: + resolution: {integrity: sha512-KMBFMa7C8oc97nqDdoZwtDBX7gfpolkk6Bcmj6YFMrtCMVgoU/x2DI1p74DmYl7CSS6Ppa3xgemrLrr5IjIn0w==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.10.tgz} + name: esbuild-freebsd-64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-freebsd-arm64/0.15.10: + resolution: {integrity: sha512-m2KNbuCX13yQqLlbSojFMHpewbn8wW5uDS6DxRpmaZKzyq8Dbsku6hHvh2U+BcLwWY4mpgXzFUoENEf7IcioGg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.10.tgz} + name: esbuild-freebsd-arm64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-32/0.15.10: + resolution: {integrity: sha512-guXrwSYFAvNkuQ39FNeV4sNkNms1bLlA5vF1H0cazZBOLdLFIny6BhT+TUbK/hdByMQhtWQ5jI9VAmPKbVPu1w==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.10.tgz} + name: esbuild-linux-32 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-64/0.15.10: + resolution: {integrity: sha512-jd8XfaSJeucMpD63YNMO1JCrdJhckHWcMv6O233bL4l6ogQKQOxBYSRP/XLWP+6kVTu0obXovuckJDcA0DKtQA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.10.tgz} + name: esbuild-linux-64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-arm/0.15.10: + resolution: {integrity: sha512-6N8vThLL/Lysy9y4Ex8XoLQAlbZKUyExCWyayGi2KgTBelKpPgj6RZnUaKri0dHNPGgReJriKVU6+KDGQwn10A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.10.tgz} + name: esbuild-linux-arm + version: 0.15.10 + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-arm64/0.15.10: + resolution: {integrity: sha512-GByBi4fgkvZFTHFDYNftu1DQ1GzR23jws0oWyCfhnI7eMOe+wgwWrc78dbNk709Ivdr/evefm2PJiUBMiusS1A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.10.tgz} + name: esbuild-linux-arm64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-mips64le/0.15.10: + resolution: {integrity: sha512-BxP+LbaGVGIdQNJUNF7qpYjEGWb0YyHVSKqYKrn+pTwH/SiHUxFyJYSP3pqkku61olQiSBnSmWZ+YUpj78Tw7Q==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.10.tgz} + name: esbuild-linux-mips64le + version: 0.15.10 + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-ppc64le/0.15.10: + resolution: {integrity: sha512-LoSQCd6498PmninNgqd/BR7z3Bsk/mabImBWuQ4wQgmQEeanzWd5BQU2aNi9mBURCLgyheuZS6Xhrw5luw3OkQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.10.tgz} + name: esbuild-linux-ppc64le + version: 0.15.10 + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-riscv64/0.15.10: + resolution: {integrity: sha512-Lrl9Cr2YROvPV4wmZ1/g48httE8z/5SCiXIyebiB5N8VT7pX3t6meI7TQVHw/wQpqP/AF4SksDuFImPTM7Z32Q==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.10.tgz} + name: esbuild-linux-riscv64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-s390x/0.15.10: + resolution: {integrity: sha512-ReP+6q3eLVVP2lpRrvl5EodKX7EZ1bS1/z5j6hsluAlZP5aHhk6ghT6Cq3IANvvDdscMMCB4QEbI+AjtvoOFpA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.10.tgz} + name: esbuild-linux-s390x + version: 0.15.10 + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-netbsd-64/0.15.10: + resolution: {integrity: sha512-iGDYtJCMCqldMskQ4eIV+QSS/CuT7xyy9i2/FjpKvxAuCzrESZXiA1L64YNj6/afuzfBe9i8m/uDkFHy257hTw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.10.tgz} + name: esbuild-netbsd-64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-openbsd-64/0.15.10: + resolution: {integrity: sha512-ftMMIwHWrnrYnvuJQRJs/Smlcb28F9ICGde/P3FUTCgDDM0N7WA0o9uOR38f5Xe2/OhNCgkjNeb7QeaE3cyWkQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.10.tgz} + name: esbuild-openbsd-64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-sunos-64/0.15.10: + resolution: {integrity: sha512-mf7hBL9Uo2gcy2r3rUFMjVpTaGpFJJE5QTDDqUFf1632FxteYANffDZmKbqX0PfeQ2XjUDE604IcE7OJeoHiyg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.10.tgz} + name: esbuild-sunos-64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-32/0.15.10: + resolution: {integrity: sha512-ttFVo+Cg8b5+qHmZHbEc8Vl17kCleHhLzgT8X04y8zudEApo0PxPg9Mz8Z2cKH1bCYlve1XL8LkyXGFjtUYeGg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.10.tgz} + name: esbuild-windows-32 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-64/0.15.10: + resolution: {integrity: sha512-2H0gdsyHi5x+8lbng3hLbxDWR7mKHWh5BXZGKVG830KUmXOOWFE2YKJ4tHRkejRduOGDrBvHBriYsGtmTv3ntA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.10.tgz} + name: esbuild-windows-64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-arm64/0.15.10: + resolution: {integrity: sha512-S+th4F+F8VLsHLR0zrUcG+Et4hx0RKgK1eyHc08kztmLOES8BWwMiaGdoW9hiXuzznXQ0I/Fg904MNbr11Nktw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.10.tgz} + name: esbuild-windows-arm64 + version: 0.15.10 + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/fsevents/2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz} + name: fsevents + version: 2.3.2 + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/graceful-fs/4.2.9: + resolution: {integrity: sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz} + name: graceful-fs + version: 4.2.9 + + registry.npmjs.org/source-map/0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz} + name: source-map + version: 0.6.1 + engines: {node: '>=0.10.0'} + requiresBuild: true + dev: true + optional: true
b5c0617289aafb18a31fda0237686bbb1bbfe207
2022-10-11 10:57:16
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/uni-mp-toutiao/dist/uni.mp.esm.js b/packages/uni-mp-toutiao/dist/uni.mp.esm.js index b620da285fd..51ccda1a788 100644 --- a/packages/uni-mp-toutiao/dist/uni.mp.esm.js +++ b/packages/uni-mp-toutiao/dist/uni.mp.esm.js @@ -718,7 +718,7 @@ function initTriggerEvent(mpInstance) { function initMiniProgramHook(name, options, isComponent) { if (isComponent) { // fix by Lxh 字节自定义组件Component构造器文档上写有created,但是实测只触发了lifetimes上的created - options = options.lifetimes; + options = options.lifetimes || {}; } const oldHook = options[name]; if (!oldHook) { diff --git a/packages/uni-stacktracey/dist/uni-stacktracey.cjs.js b/packages/uni-stacktracey/dist/uni-stacktracey.cjs.js index bb2e7441e51..44231fccdd6 100644 --- a/packages/uni-stacktracey/dist/uni-stacktracey.cjs.js +++ b/packages/uni-stacktracey/dist/uni-stacktracey.cjs.js @@ -3662,7 +3662,7 @@ function generateCodeFrameSourceMapConsumer(consumer, m, options = {}) { return { type: m.type, file: options.sourceRoot - ? normalizePath(path__default["default"].relative(options.sourceRoot, res.source)) + ? normalizePath(path__default["default"].relative(options.sourceRoot, res.source.replace('\\\\?\\', ''))) : res.source, line: res.line, column: res.column, diff --git a/packages/uni-stacktracey/dist/uni-stacktracey.es.js b/packages/uni-stacktracey/dist/uni-stacktracey.es.js index 4a8d8ce7612..0b499118321 100644 --- a/packages/uni-stacktracey/dist/uni-stacktracey.es.js +++ b/packages/uni-stacktracey/dist/uni-stacktracey.es.js @@ -3645,7 +3645,7 @@ function generateCodeFrameSourceMapConsumer(consumer, m, options = {}) { return { type: m.type, file: options.sourceRoot - ? normalizePath(path.relative(options.sourceRoot, res.source)) + ? normalizePath(path.relative(options.sourceRoot, res.source.replace('\\\\?\\', ''))) : res.source, line: res.line, column: res.column, diff --git a/packages/uni-stacktracey/src/utils.ts b/packages/uni-stacktracey/src/utils.ts index 31913439d71..17f647881e8 100644 --- a/packages/uni-stacktracey/src/utils.ts +++ b/packages/uni-stacktracey/src/utils.ts @@ -101,7 +101,12 @@ export function generateCodeFrameSourceMapConsumer( return { type: m.type, file: options.sourceRoot - ? normalizePath(path.relative(options.sourceRoot, res.source)) + ? normalizePath( + path.relative( + options.sourceRoot, + res.source.replace('\\\\?\\', '') + ) + ) : res.source, line: res.line, column: res.column,
7ea00805371ffe69c3564f02059302767a6f28af
2023-02-06 13:43:33
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/playground/uts/uni_modules/test-uniplugin/utssdk/app-android/index.uts b/packages/playground/uts/uni_modules/test-uniplugin/utssdk/app-android/index.uts index 8e2ef1ca659..f24e99f7261 100644 --- a/packages/playground/uts/uni_modules/test-uniplugin/utssdk/app-android/index.uts +++ b/packages/playground/uts/uni_modules/test-uniplugin/utssdk/app-android/index.uts @@ -1,8 +1,8 @@ import Log from 'android.util.Log' import FrameLayout from 'android.widget.FrameLayout' import View from 'android.view.View' +import { login } from 'login' import { IUser } from './interface' -import { login } from './login' import logo from '../../static/logo.png' const test = arrayOf(1, 2, 3) @@ -52,7 +52,7 @@ export class User implements IUser { register(name: string, callback: () => void) { Log.info(logo as FrameLayout) } - test(view: View) { + test(view: View) { console.log(new TestClass()) } } @@ -63,6 +63,6 @@ export function register(name: string, callback: () => void) { } export function offMemoryWarning( callback: null | ((level: number) => void) = null ) { } -class TestClass{ +class TestClass { } \ No newline at end of file diff --git a/packages/playground/uts/unpackage/dist/dev/.sourcemap/app/uni_modules/test-uniplugin/utssdk/app-android/index.kt.map b/packages/playground/uts/unpackage/dist/dev/.sourcemap/app/uni_modules/test-uniplugin/utssdk/app-android/index.kt.map index db530e0abfe..77f4a9b7429 100644 --- a/packages/playground/uts/unpackage/dist/dev/.sourcemap/app/uni_modules/test-uniplugin/utssdk/app-android/index.kt.map +++ b/packages/playground/uts/unpackage/dist/dev/.sourcemap/app/uni_modules/test-uniplugin/utssdk/app-android/index.kt.map @@ -1 +1 @@ -{"version":3,"sources":["uni_modules/test-uniplugin/static/logo.png","uni_modules/test-uniplugin/utssdk/app-android/index.uts","uni_modules/test-uniplugin/utssdk/app-android/interface.uts","uni_modules/test-uniplugin/utssdk/app-android/utils.uts","uni_modules/test-uniplugin/utssdk/app-android/login.uts"],"sourcesContent":["import { UTSAndroid } from 'io.dcloud.uts'\nexport default UTSAndroid.getResourcePath('uni_modules/test-uniplugin/static/logo.png')\n ","import Log from 'android.util.Log'\nimport FrameLayout from 'android.widget.FrameLayout'\nimport View from 'android.view.View'\nimport { IUser } from './interface'\nimport { login } from './login'\nimport logo from '../../static/logo.png'\n\nconst test = arrayOf(1, 2, 3)\n\ntype GetBatteryInfoOptions = {\n success?: (res: UTSJSONObject) => void\n fail?: (res: UTSJSONObject) => void\n complete?: (res: UTSJSONObject) => void\n}\nexport class User implements IUser {\n async login(name: string, pwd: string) {\n setTimeout(() => {\n console.log('timeout')\n }, 1000)\n login(name, pwd)\n for (let i = 0; i < 10; i++) {\n console.log(i)\n }\n Log.info(logo)\n\n console.log('def android')\n\n\n\n\n\n\n\n\n console.log('ndef ios')\n\n\n console.log('def android || def ios')\n\n\n\n\n const a = -3\n console.log(~a)\n new XToast<XToast<unknown>>(getUniActivity())\n .setContentView(R.layout.toast_hint)\n .setDuration(1000)\n .setImageDrawable(android.R.id.icon, R.mipmap.ic_dialog_tip_finish)\n .setText(android.R.id.message, '点我消失')\n .show()\n }\n register(name: string, callback: () => void) {\n Log.info(logo as FrameLayout)\n }\n test(view: View) { \n console.log(new TestClass())\n }\n}\nfunction login(name: string, callback: () => void) { }\n\n@Suppress(\"DEPRECATION\")\nexport function register(name: string, callback: () => void) { }\nexport function offMemoryWarning(\n callback: null | ((level: number) => void) = null\n) { }\nclass TestClass{\n\n}\n","export interface IUser {\n register(name: string): void\n}\n","export function test(){\n console.log('test')\n}\n","import { test } from \"./utils.uts\"\nexport function login(name: string, pwd: string) {\n console.log('login')\n test()\n return { name, pwd }\n}\n"],"names":[],"mappings":";;;;;;AAAA;ACAA,OAAgB,gBAAkB,CAAA;AAClC,OAAwB,0BAA4B,CAAA;AACpD,OAAiB,iBAAmB,CAAA;UCFnB;QACf,SAAS,MAAM,MAAM,GAAG,IAAI;;ACDvB,IAAS,OAAM;IAClB,QAAQ,GAAG,CAAC;AAChB;ACDO,IAAS,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,iBAAE;IAC/C,QAAQ,GAAG,CAAC;IACZ;IACA,OAAO;QAAE,IAAA,OAAA;QAAM,IAAA,MAAA;KAAK;AACtB;cJJe,WAAW,eAAe,CAAC;ACM1C,IAAM,QAAO,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;AAEC,WAAxB;IACH,SAAA,SAAQ,oBAA8B;IACtC,SAAA,MAAK,oBAA8B;IACnC,SAAA,UAAS,oBAA8B;AACzC;AACO,WAAM,OAAgB;IAC3B,iBAAM,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,8CAAE;QACrC,WAAW,KAAM;YACf,QAAQ,GAAG,CAAC;QACd;UAAG,IAAI;QACP,MAAM,MAAM;YACZ;YAAK,IAAI,IAAI,CAAC;YAAd,MAAgB,IAAI,EAAE;gBACpB,QAAQ,GAAG,CAAC;gBADU;;QAExB;QACA,IAAI,IAAI;QAER,QAAQ,GAAG,CAAC;QASZ,QAAQ,GAAG,CAAC;QAGZ,QAAQ,GAAG,CAAC;QAMZ,QAAQ,GAAG,CAAC,CADF,EAAE,KACE;QACV,OAAO,OAAO,CAAO,GAAG,kBACzB,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,EAClC,WAAW,CAAC,IAAI,EAChB,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,oBAAoB,EACjE,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAC9B,IAAI;IACT;IACA,aAAA,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE;QAC3C,IAAI,IAAI,YAAS;IACnB;IACA,SAAA,KAAK,MAAM,IAAI,EAAE;QACf,QAAQ,GAAG,CAAC,AAAI;IAClB;AACF;AACA,UAAe,MAAM,MAAM,EAAE,gBAAgB,IAAI,EAAE,CAAE;AAErD,CAAC,SAAS;AAAc,IACR,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE,CAAE;AACxD,IAAS,iBACd,2BAA6C,IAAI,EACjD,CAAE;AACJ,WAAM;AAEN"} \ No newline at end of file +{"version":3,"sources":["uni_modules/test-uniplugin/static/logo.png","uni_modules/test-uniplugin/utssdk/app-android/index.uts","uni_modules/test-uniplugin/utssdk/app-android/interface.uts"],"sourcesContent":["import { UTSAndroid } from 'io.dcloud.uts'\nexport default UTSAndroid.getResourcePath('uni_modules/test-uniplugin/static/logo.png')\n ","import Log from 'android.util.Log'\nimport FrameLayout from 'android.widget.FrameLayout'\nimport View from 'android.view.View'\nimport { login } from 'login'\nimport { IUser } from './interface'\nimport logo from '../../static/logo.png'\n\nconst test = arrayOf(1, 2, 3)\n\ntype GetBatteryInfoOptions = {\n success?: (res: UTSJSONObject) => void\n fail?: (res: UTSJSONObject) => void\n complete?: (res: UTSJSONObject) => void\n}\nexport class User implements IUser {\n async login(name: string, pwd: string) {\n setTimeout(() => {\n console.log('timeout')\n }, 1000)\n login(name, pwd)\n for (let i = 0; i < 10; i++) {\n console.log(i)\n }\n Log.info(logo)\n\n console.log('def android')\n\n\n\n\n\n\n\n\n console.log('ndef ios')\n\n\n console.log('def android || def ios')\n\n\n\n\n const a = -3\n console.log(~a)\n new XToast<XToast<unknown>>(getUniActivity())\n .setContentView(R.layout.toast_hint)\n .setDuration(1000)\n .setImageDrawable(android.R.id.icon, R.mipmap.ic_dialog_tip_finish)\n .setText(android.R.id.message, '点我消失')\n .show()\n }\n register(name: string, callback: () => void) {\n Log.info(logo as FrameLayout)\n }\n test(view: View) {\n console.log(new TestClass())\n }\n}\nfunction login(name: string, callback: () => void) { }\n\n@Suppress(\"DEPRECATION\")\nexport function register(name: string, callback: () => void) { }\nexport function offMemoryWarning(\n callback: null | ((level: number) => void) = null\n) { }\nclass TestClass {\n\n}\n","export interface IUser {\n register(name: string): void\n}\n"],"names":[],"mappings":";;;;;;AAAA;ACAA,OAAgB,gBAAkB,CAAA;AAClC,OAAwB,0BAA4B,CAAA;AACpD,OAAiB,iBAAmB,CAAA;AACpC;UCHiB;QACf,SAAS,MAAM,MAAM,GAAG,IAAI;;cFAf,WAAW,eAAe,CAAC;ACM1C,IAAM,OAAO,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;AAEC,WAAxB;IACH,SAAA,SAAQ,oBAA8B;IACtC,SAAA,MAAK,oBAA8B;IACnC,SAAA,UAAS,oBAA8B;AACzC;AACO,WAAM,OAAgB;IAC3B,iBAAM,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,8CAAE;QACrC,WAAW,KAAM;YACf,QAAQ,GAAG,CAAC;QACd;UAAG,IAAI;QACP,MAAM,MAAM;YACZ;YAAK,IAAI,IAAI,CAAC;YAAd,MAAgB,IAAI,EAAE;gBACpB,QAAQ,GAAG,CAAC;gBADU;;QAExB;QACA,IAAI,IAAI;QAER,QAAQ,GAAG,CAAC;QASZ,QAAQ,GAAG,CAAC;QAGZ,QAAQ,GAAG,CAAC;QAMZ,QAAQ,GAAG,CAAC,CADF,EAAE,KACE;QACV,OAAO,OAAO,CAAO,GAAG,kBACzB,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,EAClC,WAAW,CAAC,IAAI,EAChB,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,oBAAoB,EACjE,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAC9B,IAAI;IACT;IACA,aAAA,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE;QAC3C,IAAI,IAAI,YAAS;IACnB;IACA,SAAA,KAAK,MAAM,IAAI,EAAE;QACf,QAAQ,GAAG,CAAC,AAAI;IAClB;AACF;AACA,IAAS,MAAM,MAAM,MAAM,EAAE,gBAAgB,IAAI,EAAE,CAAE;AAErD,CAAC,SAAS;AAAc,IACR,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE,CAAE;AACxD,IAAS,iBACd,2BAA6C,IAAI,EACjD,CAAE;AACJ,WAAM;AAEN"} \ No newline at end of file diff --git a/packages/playground/uts/unpackage/dist/dev/app-plus/uni_modules/test-uniplugin/utssdk/app-android/index.kt b/packages/playground/uts/unpackage/dist/dev/app-plus/uni_modules/test-uniplugin/utssdk/app-android/index.kt index c8ad1532da6..2cf903aa166 100644 --- a/packages/playground/uts/unpackage/dist/dev/app-plus/uni_modules/test-uniplugin/utssdk/app-android/index.kt +++ b/packages/playground/uts/unpackage/dist/dev/app-plus/uni_modules/test-uniplugin/utssdk/app-android/index.kt @@ -8,22 +8,12 @@ import io.dcloud.uts.UTSAndroid; import android.util.Log; import android.widget.FrameLayout; import android.view.View; +import login.login; interface IUser { fun register(name: String): Unit; } -fun test() { - console.log("test", " at uni_modules/test-uniplugin/utssdk/app-android/utils.uts:2"); -} -fun login(name: String, pwd: String): UTSJSONObject { - console.log("login", " at uni_modules/test-uniplugin/utssdk/app-android/login.uts:3"); - test(); - return object : UTSJSONObject() { - var name = name - var pwd = pwd - }; -} val default = UTSAndroid.getResourcePath("uni_modules/test-uniplugin/static/logo.png"); -val test1 = arrayOf(1, 2, 3); +val test = arrayOf(1, 2, 3); open class GetBatteryInfoOptions : UTSJSONObject() { open var success: UTSCallback? = null; open var fail: UTSCallback? = null; diff --git a/packages/uni-uts-v1/__tests__/sourceMap.spec.ts b/packages/uni-uts-v1/__tests__/sourceMap.spec.ts index fff77014e15..e1799d37f90 100644 --- a/packages/uni-uts-v1/__tests__/sourceMap.spec.ts +++ b/packages/uni-uts-v1/__tests__/sourceMap.spec.ts @@ -137,7 +137,7 @@ describe('uts:sourceMap', () => { outputDir, }) expect(res).toEqual({ - line: 18, + line: 15, column: 16, lastColumn: null, source: resolve( @@ -165,8 +165,8 @@ describe('uts:sourceMap', () => { column: 16, }) - expect(line).toBe(3) - expect(column).toBe(14) + expect(line).toBe(5) + expect(column).toBe(11) expect(source).toContain('login.uts') }) test('originalPositionFor ios', async () => { diff --git a/packages/uni-uts-v1/src/kotlin.ts b/packages/uni-uts-v1/src/kotlin.ts index 1e9638175e0..61914d9e4b8 100644 --- a/packages/uni-uts-v1/src/kotlin.ts +++ b/packages/uni-uts-v1/src/kotlin.ts @@ -313,6 +313,7 @@ export async function compile( root: inputDir, filename, pluginId, + paths: {}, } const isUTSFileExists = fs.existsSync(filename) if (componentsCode) { diff --git a/packages/uni-uts-v1/src/swift.ts b/packages/uni-uts-v1/src/swift.ts index 776125c78e0..7628db41bc0 100644 --- a/packages/uni-uts-v1/src/swift.ts +++ b/packages/uni-uts-v1/src/swift.ts @@ -169,6 +169,7 @@ export async function compile( root: inputDir, filename, pluginId, + paths: {}, } const isUTSFileExists = fs.existsSync(filename) if (componentsCode) { diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 3654af58729..0bb726ac0fa 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index 5a3cddd9742..9e7c3d773d7 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node index cf1a0bcb8ee..188aeed189f 100755 Binary files a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node and b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node differ diff --git a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node index 060a507deab..61a006c978f 100755 Binary files a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node and b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index 811cc9387ee..9b3a506bd9b 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 3d43ef9a94b..2dd45e381c2 100755 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ diff --git a/packages/uts/src/types.ts b/packages/uts/src/types.ts index 03a5bf94bca..459ee26bcbb 100644 --- a/packages/uts/src/types.ts +++ b/packages/uts/src/types.ts @@ -21,6 +21,7 @@ export type UtsInputOptions = UtsParseOptions & { filename: string fileContent?: string fileAppendContent?: string + paths: Record<string, string> } export type UtsOutputOptions = { diff --git a/scripts/test.js b/scripts/test.js index 85df5aaaffc..bfa1a4d52a3 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -28,6 +28,9 @@ async function testKotlin() { projectDir, 'uni_modules/test-uniplugin/utssdk/app-android/index.uts' ), + paths: { + 'login': './login' + } }, output: { outDir,
2b71a9621b8e309847692480af93e7847e9d6822
2021-04-26 10:52:19
fxy060608
feat: support UNI_INPUT_DIR
false
support UNI_INPUT_DIR
feat
diff --git a/package.json b/package.json index 39979ece4d9..0e707c0b6d0 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "size-limit": "^4.10.1", "ts-jest": "^26.4.4", "typescript": "~4.1.3", - "vite": "^2.2.1", + "vite": "^2.2.3", "vue": "3.0.11", "yorkie": "^2.0.0" } diff --git a/packages/shims-node.d.ts b/packages/shims-node.d.ts new file mode 100644 index 00000000000..e8734be66c5 --- /dev/null +++ b/packages/shims-node.d.ts @@ -0,0 +1,7 @@ +declare namespace NodeJS { + interface ProcessEnv { + UNI_PLATFORM: UniApp.PLATFORM + UNI_INPUT_DIR: string + UNI_OUTPUT_DIR: string + } +} diff --git a/packages/size-check/vite.config.ts b/packages/size-check/vite.config.ts index e343140553e..a008a6d6012 100644 --- a/packages/size-check/vite.config.ts +++ b/packages/size-check/vite.config.ts @@ -12,9 +12,9 @@ export default { entry: path.resolve(__dirname, 'src/main.ts'), formats: ['es'], }, - // minify: false, + minify: false, rollupOptions: { - // external: ['vue', '@vue/shared'], + external: ['vue', '@vue/shared'], // output: { // entryFileNames: `assets/[name].js`, // chunkFileNames: `assets/[name].js`, diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index f7986ccc919..bf3c04dce17 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -2,7 +2,7 @@ "name": "@dcloudio/uni-app", "version": "3.0.0", "description": "@dcloudio/uni-app", - "main": "dist/uni-app.cjs.js", + "main": "dist/uni-app.esm.js", "module": "dist/uni-app.esm.js", "types": "dist/uni-app.d.ts", "files": [ diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index 1da50c6c5f9..f327f3ec24a 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -24,6 +24,7 @@ "dependencies": { "debug": "^4.3.1", "jsonc-parser": "^3.0.0", + "slash": "^3.0.0", "xregexp": "3.1.0" }, "peerDependencies": { diff --git a/packages/uni-cli-shared/src/index.ts b/packages/uni-cli-shared/src/index.ts index d9df3cf6be3..b0a12c6826d 100644 --- a/packages/uni-cli-shared/src/index.ts +++ b/packages/uni-cli-shared/src/index.ts @@ -1,4 +1,5 @@ export * from './url' export * from './json' +export * from './utils' export * from './constants' export * from './preprocess/index' diff --git a/packages/uni-cli-shared/src/utils.ts b/packages/uni-cli-shared/src/utils.ts new file mode 100644 index 00000000000..9b480f0179e --- /dev/null +++ b/packages/uni-cli-shared/src/utils.ts @@ -0,0 +1,7 @@ +import os from 'os' +import path from 'path' +import slash from 'slash' +const isWindows = os.platform() === 'win32' +export function normalizePath(id: string): string { + return path.posix.normalize(isWindows ? slash(id) : id) +} diff --git a/packages/uni-h5/dist/uni-h5.esm.js b/packages/uni-h5/dist/uni-h5.esm.js index c49ac894122..2113be9956a 100644 --- a/packages/uni-h5/dist/uni-h5.esm.js +++ b/packages/uni-h5/dist/uni-h5.esm.js @@ -678,7 +678,7 @@ var safeAreaInsets = { onChange, offChange }; -var D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out = safeAreaInsets; +var out = safeAreaInsets; const onEventPrevent = /* @__PURE__ */ withModifiers(() => { }, ["prevent"]); const onEventStop = /* @__PURE__ */ withModifiers(() => { @@ -690,10 +690,10 @@ function getWindowOffset() { const left = parseInt(style2.getPropertyValue("--window-left")); const right = parseInt(style2.getPropertyValue("--window-right")); return { - top: top ? top + D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.top : 0, - bottom: bottom ? bottom + D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.bottom : 0, - left: left ? left + D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.left : 0, - right: right ? right + D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.right : 0 + top: top ? top + out.top : 0, + bottom: bottom ? bottom + out.bottom : 0, + left: left ? left + out.left : 0, + right: right ? right + out.right : 0 }; } const style = document.documentElement.style; @@ -1333,7 +1333,7 @@ function normalizePageMeta(pageMeta) { let offset = rpx2px(refreshOptions.offset); const {type} = navigationBar; if (type !== "transparent" && type !== "none") { - offset += NAVBAR_HEIGHT + D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.top; + offset += NAVBAR_HEIGHT + out.top; } refreshOptions.offset = offset; refreshOptions.height = rpx2px(refreshOptions.height); @@ -11465,7 +11465,7 @@ const getSystemInfoSync = defineSyncApi("getSystemInfoSync", () => { const windowWidth = getWindowWidth(screenWidth); let windowHeight = window.innerHeight; const language = navigator.language; - const statusBarHeight = D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.top; + const statusBarHeight = out.top; let osname; let osversion; let model; @@ -11578,12 +11578,12 @@ const getSystemInfoSync = defineSyncApi("getSystemInfoSync", () => { const system = `${osname} ${osversion}`; const platform = osname.toLocaleLowerCase(); const safeArea = { - left: D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.left, - right: windowWidth - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.right, - top: D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.top, - bottom: windowHeight - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.bottom, - width: windowWidth - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.left - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.right, - height: windowHeight - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.top - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.bottom + left: out.left, + right: windowWidth - out.right, + top: out.top, + bottom: windowHeight - out.bottom, + width: windowWidth - out.left - out.right, + height: windowHeight - out.top - out.bottom }; const {top: windowTop, bottom: windowBottom} = getWindowOffset(); windowHeight -= windowTop; @@ -11603,10 +11603,10 @@ const getSystemInfoSync = defineSyncApi("getSystemInfoSync", () => { model, safeArea, safeAreaInsets: { - top: D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.top, - right: D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.right, - bottom: D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.bottom, - left: D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.left + top: out.top, + right: out.right, + bottom: out.bottom, + left: out.left } }; }); @@ -13123,7 +13123,7 @@ const props = { type: Boolean } }; -const toastIconClassName = "uni-toast__icon"; +const ToastIconClassName = "uni-toast__icon"; var Toast = /* @__PURE__ */ defineComponent({ name: "Toast", props, @@ -13158,7 +13158,7 @@ var Toast = /* @__PURE__ */ defineComponent({ class: "uni-toast" }, [image2 ? createVNode("img", { src: image2, - class: toastIconClassName + class: ToastIconClassName }, null, 10, ["src"]) : Icon.value, createVNode("p", { class: "uni-toast__content" }, [title])])], 8, ["data-duration"]), [[vShow, visible.value]])] @@ -13168,9 +13168,9 @@ var Toast = /* @__PURE__ */ defineComponent({ }); function useToastIcon(props2) { const Icon = computed(() => props2.icon === "success" ? createVNode(createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 38), { - class: toastIconClassName + class: ToastIconClassName }) : props2.icon === "loading" ? createVNode("i", { - class: [toastIconClassName, "uni-loading"] + class: [ToastIconClassName, "uni-loading"] }, null, 2) : null); return { Icon diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 2db9abb5b5c..df412339ae7 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -37,7 +37,7 @@ "@dcloudio/uni-cli-shared": "^3.0.0", "@dcloudio/uni-shared": "^3.0.0", "@vue/shared": "^3.0.11", - "vite": "^2.2.1" + "vite": "^2.2.3" }, "devDependencies": { "@types/mime": "^2.0.3", diff --git a/packages/vite-plugin-uni/src/config/index.ts b/packages/vite-plugin-uni/src/config/index.ts index 8f0d7a0be0f..16ca8c6896b 100644 --- a/packages/vite-plugin-uni/src/config/index.ts +++ b/packages/vite-plugin-uni/src/config/index.ts @@ -1,38 +1,33 @@ -import fs from 'fs' import path from 'path' -import { parse } from 'jsonc-parser' +import { Plugin, UserConfig } from 'vite' -import { Plugin } from 'vite' +import { normalizePath } from '@dcloudio/uni-cli-shared' import { VitePluginUniResolvedOptions } from '..' import { createCss } from './css' import { createResolve } from './resolve' -import { createDefine } from './define' import { createServer } from './server' import { createBuild } from './build' import { createOptimizeDeps } from './optimizeDeps' +import { createDefine } from './define' import { FEATURE_DEFINES } from '../utils' -function resolveBase(inputDir: string) { - const manifest = parse( - fs.readFileSync(path.join(inputDir, 'manifest.json'), 'utf8') - ) - return (manifest.h5 && manifest.h5.router && manifest.h5.router.base) || '/' + +function normalizeRoot(config: UserConfig) { + return normalizePath(config.root ? path.resolve(config.root) : process.cwd()) +} + +function normalizeInputDir(config: UserConfig) { + return process.env.UNI_INPUT_DIR || path.resolve(normalizeRoot(config), 'src') } export function createConfig( options: VitePluginUniResolvedOptions ): Plugin['config'] { return (config, env) => { - const root = config.root || process.cwd() - const inputDir = process.env.UNI_INPUT_DIR || path.resolve(root, 'src') - const outputDir = process.env.UNI_OUTPUT_DIR || path.resolve(root, 'dist') - options.root = root - options.base = resolveBase(inputDir) - options.inputDir = inputDir - options.outputDir = outputDir options.command = env.command + options.platform = (process.env.UNI_PLATFORM as UniApp.PLATFORM) || 'h5' + options.inputDir = normalizeInputDir(config) const define = createDefine(options, env) return { - base: options.base, define, resolve: createResolve(options), optimizeDeps: createOptimizeDeps(options), diff --git a/packages/vite-plugin-uni/src/configResolved/env.ts b/packages/vite-plugin-uni/src/configResolved/env.ts new file mode 100644 index 00000000000..37e850fbbec --- /dev/null +++ b/packages/vite-plugin-uni/src/configResolved/env.ts @@ -0,0 +1,17 @@ +import path from 'path' +import { ResolvedConfig } from 'vite' + +export function initEnv(config: ResolvedConfig) { + if (!process.env.UNI_PLATFORM) { + process.env.UNI_PLATFORM = 'h5' + } + if (!process.env.UNI_CLI_CONTEXT) { + process.env.UNI_CLI_CONTEXT = process.cwd() + } + if (!process.env.UNI_INPUT_DIR) { + process.env.UNI_INPUT_DIR = path.resolve(config.root, 'src') + } + if (!process.env.UNI_OUTPUT_DIR) { + process.env.UNI_OUTPUT_DIR = path.resolve(config.root, config.build.outDir) + } +} diff --git a/packages/vite-plugin-uni/src/configResolved/index.ts b/packages/vite-plugin-uni/src/configResolved/index.ts index 36b24a37869..a2b0e551b3a 100644 --- a/packages/vite-plugin-uni/src/configResolved/index.ts +++ b/packages/vite-plugin-uni/src/configResolved/index.ts @@ -1,15 +1,15 @@ -import path from 'path' import { Plugin } from 'vite' import { VitePluginUniResolvedOptions } from '..' -import { resolvePlugins } from './plugins' + +import { initEnv } from './env' +import { initOptions } from './options' +import { initPlugins } from './plugins' export function createConfigResolved(options: VitePluginUniResolvedOptions) { return ((config) => { - options.root = config.root - options.inputDir = path.resolve(config.root, 'src') - options.assetsDir = config.build.assetsDir - - resolvePlugins(config, options) + initEnv(config) + initOptions(options, config) + initPlugins(config, options) }) as Plugin['configResolved'] } diff --git a/packages/vite-plugin-uni/src/configResolved/options.ts b/packages/vite-plugin-uni/src/configResolved/options.ts new file mode 100644 index 00000000000..4338ea77a16 --- /dev/null +++ b/packages/vite-plugin-uni/src/configResolved/options.ts @@ -0,0 +1,24 @@ +import fs from 'fs' +import path from 'path' +import { parse } from 'jsonc-parser' +import { VitePluginUniResolvedOptions } from '..' +import { ResolvedConfig } from 'vite' + +function resolveBase() { + const manifest = parse( + fs.readFileSync( + path.join(process.env.UNI_INPUT_DIR!, 'manifest.json'), + 'utf8' + ) + ) + return (manifest.h5 && manifest.h5.router && manifest.h5.router.base) || '/' +} + +export function initOptions( + options: VitePluginUniResolvedOptions, + config: ResolvedConfig +) { + options.base = resolveBase() + options.outputDir = process.env.UNI_OUTPUT_DIR + options.assetsDir = config.build.assetsDir +} diff --git a/packages/vite-plugin-uni/src/configResolved/plugins/index.ts b/packages/vite-plugin-uni/src/configResolved/plugins/index.ts index a6321a26cc2..0662f4a384f 100644 --- a/packages/vite-plugin-uni/src/configResolved/plugins/index.ts +++ b/packages/vite-plugin-uni/src/configResolved/plugins/index.ts @@ -82,7 +82,7 @@ const uniInjectPluginOptions: Partial<InjectOptions> = { }, } -export function resolvePlugins( +export function initPlugins( config: ResolvedConfig, options: VitePluginUniResolvedOptions ) { diff --git a/packages/vite-plugin-uni/src/configResolved/plugins/pagesJson.ts b/packages/vite-plugin-uni/src/configResolved/plugins/pagesJson.ts index 2ed6394731f..f2293d24e4e 100644 --- a/packages/vite-plugin-uni/src/configResolved/plugins/pagesJson.ts +++ b/packages/vite-plugin-uni/src/configResolved/plugins/pagesJson.ts @@ -69,7 +69,7 @@ function parsePagesJson( const cssCode = generateCssCode(config, options) return ` -import { extend } from '@vue/shared' +import { extend } from '@vue/shared/dist/shared.esm-bundler.js' import { ${ config.define!.__UNI_FEATURE_PAGES__ ? 'defineAsyncComponent, ' : '' }resolveComponent, createVNode, withCtx, openBlock, createBlock } from 'vue' diff --git a/packages/vite-plugin-uni/src/env.ts b/packages/vite-plugin-uni/src/env.ts deleted file mode 100644 index d0de7a7baba..00000000000 --- a/packages/vite-plugin-uni/src/env.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { VitePluginUniResolvedOptions } from '.' - -const defaultPlatform = 'h5' - -export function initEnv(_options: VitePluginUniResolvedOptions) { - process.env.UNI_PLATFORM = process.env.UNI_PLATFORM || defaultPlatform -} diff --git a/packages/vite-plugin-uni/src/index.ts b/packages/vite-plugin-uni/src/index.ts index 868f9b379b2..7ab45b097f3 100644 --- a/packages/vite-plugin-uni/src/index.ts +++ b/packages/vite-plugin-uni/src/index.ts @@ -1,6 +1,5 @@ import { Plugin, ResolvedConfig, ViteDevServer } from 'vite' -import { initEnv } from './env' import { createConfig } from './config' import { createResolveId } from './resolveId' import { createConfigResolved } from './configResolved' @@ -11,7 +10,6 @@ export interface VitePluginUniOptions { outputDir?: string } export interface VitePluginUniResolvedOptions extends VitePluginUniOptions { - root: string base: string command: ResolvedConfig['command'] platform: UniApp.PLATFORM @@ -28,7 +26,6 @@ export default function uniPlugin( ): Plugin { const options: VitePluginUniResolvedOptions = { ...rawOptions, - root: process.cwd(), base: '/', assetsDir: 'assets', inputDir: '', @@ -36,7 +33,6 @@ export default function uniPlugin( command: 'serve', platform: 'h5', } - initEnv(options) return { name: 'vite:uni', config: createConfig(options), diff --git a/packages/vite-plugin-uni/src/resolveId/index.ts b/packages/vite-plugin-uni/src/resolveId/index.ts index c2ca037cd1c..d4be5790662 100644 --- a/packages/vite-plugin-uni/src/resolveId/index.ts +++ b/packages/vite-plugin-uni/src/resolveId/index.ts @@ -10,6 +10,11 @@ export function createResolveId( _options: VitePluginUniResolvedOptions ): Plugin['resolveId'] { return function (id) { + if (id.startsWith('@dcloudio/') || id.startsWith('@vue/')) { + return require.resolve(id, { + paths: [process.env.UNI_CLI_CONTEXT!], + }) + } if (VUES.includes(id)) { debugResolve(id) return '@dcloudio/uni-h5-vue' diff --git a/packages/vite-plugin-uni/tsconfig.json b/packages/vite-plugin-uni/tsconfig.json index 3ff56f2d8d0..d59e92c29f1 100644 --- a/packages/vite-plugin-uni/tsconfig.json +++ b/packages/vite-plugin-uni/tsconfig.json @@ -5,6 +5,7 @@ }, "include": [ "src", + "../shims-node.d.ts", "../shims-uni-app.d.ts", "../../node_modules/postcss/lib/postcss.d.ts" ] diff --git a/yarn.lock b/yarn.lock index 162a88920d3..f54973bc6ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1002,9 +1002,9 @@ hash-sum "^2.0.0" "@vitejs/plugin-vue@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.2.1.tgz#6de49436fc346f829a56676066428e3f011522ac" - integrity sha512-TG+LbEUNwfFrx1VyN+iq+PsiGd9MT16hUdJY+BnMXj3MrLAF8m3VYUspTDM3aXoh48YDmAkMjG4gWFRg3lbG5A== + version "1.2.2" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.2.2.tgz#b0038fc11b9099f4cd01fcbf0ee419adda417b52" + integrity sha512-5BI2WFfs/Z0pAV4S/IQf1oH3bmFYlL5ATMBHgTt1Lf7hAnfpNd5oUAAs6hZPfk3QhvyUQgtk0rJBlabwNFcBJQ== "@vue/babel-helper-vue-transform-on@^1.0.2": version "1.0.2" @@ -1145,9 +1145,9 @@ acorn@^7.1.1, acorn@^7.4.0: integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== acorn@^8.1.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.1.1.tgz#fb0026885b9ac9f48bac1e185e4af472971149ff" - integrity sha512-xYiIVjNuqtKXMxlRMDc6mZUhXehod4a3gbZ1qRlM7icK4EbxUFNLhWoPblCvFtB2Y9CIqHP3CF/rdxLItaQv8g== + version "8.2.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.2.1.tgz#0d36af126fb6755095879c1dc6fd7edf7d60a5fb" + integrity sha512-z716cpm5TX4uzOzILx8PavOE6C6DKshHDw1aQN52M/yNSqE9s5O8SMfyhCCfCJ3HmTL0NkVOi+8a/55T7YB3bg== agent-base@6: version "6.0.2" @@ -2325,9 +2325,9 @@ eslint-visitor-keys@^2.0.0: integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== eslint@^7.17.0: - version "7.24.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.24.0.tgz#2e44fa62d93892bfdb100521f17345ba54b8513a" - integrity sha512-k9gaHeHiFmGCDQ2rEfvULlSLruz6tgfA8DEn+rY9/oYPFFTlz55mM/Q/Rij1b2Y42jwZiK3lXvNTw6w6TXzcKQ== + version "7.25.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.25.0.tgz#1309e4404d94e676e3e831b3a3ad2b050031eb67" + integrity sha512-TVpSovpvCNpLURIScDRB6g5CYu/ZFq9GfX2hLNIV4dSBKxIWojeDODvYl3t0k0VtMxYeR8OXPCFE5+oHMlGfhw== dependencies: "@babel/code-frame" "7.12.11" "@eslint/eslintrc" "^0.4.0" @@ -3184,9 +3184,9 @@ is-ci@^2.0.0: ci-info "^2.0.0" is-core-module@^2.1.0, is-core-module@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a" - integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ== + version "2.3.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.3.0.tgz#d341652e3408bca69c4671b79a0954a3d349f887" + integrity sha512-xSphU2KG9867tsYdLD4RWQ1VqdFl4HTO9Thf3I/3dLEfr0dbPTWKsuCKrgqMljg4nPE+Gq0VCnzT3gr0CyBmsw== dependencies: has "^1.0.3" @@ -4112,9 +4112,9 @@ lint-staged@^10.5.3: stringify-object "^3.3.0" listr2@^3.2.2: - version "3.7.1" - resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.7.1.tgz#ff0c410b10eb1c5c76735e4814128ec8f7d2b983" - integrity sha512-cNd368GTrk8351/ov/IV+BSwyf9sJRgI0UIvfORonCZA1u9UHAtAlqSEv9dgafoQIA1CgB3nu4No79pJtK2LHw== + version "3.8.0" + resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.8.0.tgz#40dcbcae83cca1005570ff0cc76cc35b51576d09" + integrity sha512-TWxRzND4v6UI+Fs3FrNohYcz48jyZUyzvSLgrGTe9TXKLf84T0EfjmP5e27p6e031q3VGl6vBbHdueGFUxgczQ== dependencies: chalk "^4.1.0" cli-truncate "^2.1.0" @@ -5802,9 +5802,9 @@ symbol-tree@^3.2.4: integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== table@^6.0.4: - version "6.3.4" - resolved "https://registry.yarnpkg.com/table/-/table-6.3.4.tgz#5d8a7fa1c887bd1ef08741751ec36246255a80b6" - integrity sha512-fhKcZ3+oAYG/ld3seJEZ9+fGSsy+yeoPzLQUrwbOzNYdhrU+6TzObhJ2Sp76ZfUGIrDTrxsXz5NSCZJIUOJb4Q== + version "6.5.1" + resolved "https://registry.yarnpkg.com/table/-/table-6.5.1.tgz#930885a7430f15f8766b35cd1e36de40793db523" + integrity sha512-xGDXWTBJxahkzPQCsn1S9ESHEenU7TbMD5Iv4FeopXv/XwJyWatFjfbor+6ipI10/MNPXBYUamYukOrbPZ9L/w== dependencies: ajv "^8.0.1" lodash.clonedeep "^4.5.0" @@ -5812,6 +5812,7 @@ table@^6.0.4: lodash.truncate "^4.4.2" slice-ansi "^4.0.0" string-width "^4.2.0" + strip-ansi "^6.0.0" tar-fs@^2.0.0: version "2.1.1" @@ -6163,10 +6164,10 @@ [email protected]: core-util-is "1.0.2" extsprintf "^1.2.0" -vite@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/vite/-/vite-2.2.1.tgz#90c481f69371f32867d86a6a623bb064b876ad3d" - integrity sha512-KIqK90EoJJpuqE86Y9DSkZjFNGgsyZX/4I1xENIitLRd3hgRtOlIGCJYrNnBD9/eqipz0OroAiIj9/R1JcOdFA== +vite@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/vite/-/vite-2.2.3.tgz#1acbdfa56ac00e00e7ccb6988f63f130c2f99dbb" + integrity sha512-PtjyBL4GtACM+uT5q5hi2+AlMBbb6YI2b2bam6QI8ZdZt4FezseF0yZHQx0G+b3po9jIJ/GS5N9gc5Yq9Rue7g== dependencies: esbuild "^0.9.3" postcss "^8.2.1"
06aa8088e7d8d9bb1e17ba554c46861321b40e12
2022-11-24 16:06:25
fxy060608
wip(uts): compiler
false
compiler
wip
diff --git a/packages/playground/uts/uni_modules/test-uniplugin/utssdk/app-android/index.uts b/packages/playground/uts/uni_modules/test-uniplugin/utssdk/app-android/index.uts index 40860499133..d9230519a45 100644 --- a/packages/playground/uts/uni_modules/test-uniplugin/utssdk/app-android/index.uts +++ b/packages/playground/uts/uni_modules/test-uniplugin/utssdk/app-android/index.uts @@ -54,6 +54,8 @@ export class User implements IUser { test(view: View) { } } function login(name: string, callback: () => void) { } + +@Suppress("DEPRECATION") export function register(name: string, callback: () => void) { } export function offMemoryWarning( callback: null | ((level: number) => void) = null diff --git a/packages/playground/uts/unpackage/dist/dev/.sourcemap/app/uni_modules/test-uniplugin/utssdk/app-android/index.kt.map b/packages/playground/uts/unpackage/dist/dev/.sourcemap/app/uni_modules/test-uniplugin/utssdk/app-android/index.kt.map index bff4d9bba7b..f27d5c6e3b9 100644 --- a/packages/playground/uts/unpackage/dist/dev/.sourcemap/app/uni_modules/test-uniplugin/utssdk/app-android/index.kt.map +++ b/packages/playground/uts/unpackage/dist/dev/.sourcemap/app/uni_modules/test-uniplugin/utssdk/app-android/index.kt.map @@ -1 +1 @@ -{"version":3,"sources":["uni_modules/test-uniplugin/static/logo.png","uni_modules/test-uniplugin/utssdk/app-android/index.uts","uni_modules/test-uniplugin/utssdk/app-android/interface.uts","uni_modules/test-uniplugin/utssdk/app-android/utils.uts","uni_modules/test-uniplugin/utssdk/app-android/login.uts"],"sourcesContent":["import { UTSAndroid } from 'io.dcloud.uts'\nexport default UTSAndroid.getResourcePath('uni_modules/test-uniplugin/static/logo.png')\n ","import Log from 'android.util.Log'\nimport FrameLayout from 'android.widget.FrameLayout'\nimport View from 'android.view.View'\nimport { IUser } from './interface.uts'\nimport { login } from './login.uts'\nimport logo from '../../static/logo.png'\n\nconst test = arrayOf(1, 2, 3)\n\ntype GetBatteryInfoOptions = {\n success?: (res: UTSJSONObject) => void\n fail?: (res: UTSJSONObject) => void\n complete?: (res: UTSJSONObject) => void\n}\nexport class User implements IUser {\n async login(name: string, pwd: string) {\n setTimeout(() => {\n console.log('timeout')\n }, 1000)\n login(name, pwd)\n for (let i = 0; i < 10; i++) {\n console.log(i)\n }\n Log.info(logo)\n\n console.log('def android')\n\n\n\n\n\n\n\n\n console.log('ndef ios')\n\n\n console.log('def android || def ios')\n\n\n\n\n\n new XToast<XToast<unknown>>(getUniActivity())\n .setContentView(R.layout.toast_hint)\n .setDuration(1000)\n .setImageDrawable(android.R.id.icon, R.mipmap.ic_dialog_tip_finish)\n .setText(android.R.id.message, '点我消失')\n .show()\n }\n register(name: string, callback: () => void) {\n Log.info(logo as FrameLayout)\n }\n test(view: View) { }\n}\nfunction login(name: string, callback: () => void) { }\nexport function register(name: string, callback: () => void) { }\nexport function offMemoryWarning(\n callback: null | ((level: number) => void) = null\n) { }\n","export interface IUser {\n register(name: string): void\n}\n","export function test(){\n console.log('test')\n}\n","import { test } from \"./utils.uts\"\nexport function login(name: string, pwd: string) {\n console.log('login')\n test()\n return { name, pwd }\n}\n"],"names":[],"mappings":";;;;;;AAAA;ACAA,OAAgB,gBAAkB,CAAA;AAClC,OAAwB,0BAA4B,CAAA;AACpD,OAAiB,iBAAmB,CAAA;UCFnB;QACf,SAAS,MAAM,MAAM,GAAG,IAAI;;ACDvB,IAAS,OAAM;IAClB,QAAQ,GAAG,CAAC;AAChB;ACDO,IAAS,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,iBAAE;IAC/C,QAAQ,GAAG,CAAC;IACZ;IACA,OAAO;QAAE,IAAA,OAAA;QAAM,IAAA,MAAA;KAAK;AACtB;cJJe,WAAW,eAAe,CAAC;ACM1C,IAAM,QAAO,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;AAEC,WAAxB;IACH,SAAA,SAAQ,oBAA8B;IACtC,SAAA,MAAK,oBAA8B;IACnC,SAAA,UAAS,oBAA8B;AACzC;AACO,WAAM,OAAgB;IAC3B,iBAAM,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,8CAAE;QACrC,WAAW,KAAM;YACf,QAAQ,GAAG,CAAC;QACd;UAAG,IAAI;QACP,MAAM,MAAM;YACZ;YAAK,IAAI,IAAI,CAAC;YAAd,MAAgB,IAAI,EAAE;gBACpB,QAAQ,GAAG,CAAC;gBADU;;QAExB;QACA,IAAI,IAAI;QAER,QAAQ,GAAG,CAAC;QASZ,QAAQ,GAAG,CAAC;QAGZ,QAAQ,GAAG,CAAC;QAMR,OAAO,OAAO,CAAO,GAAG,kBACzB,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,EAClC,WAAW,CAAC,IAAI,EAChB,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,oBAAoB,EACjE,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAC9B,IAAI;IACT;IACA,aAAA,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE;QAC3C,IAAI,IAAI,YAAS;IACnB;IACA,SAAA,KAAK,MAAM,IAAI,EAAE,CAAE;AACrB;AACA,UAAe,MAAM,MAAM,EAAE,gBAAgB,IAAI,EAAE,CAAE;AAC9C,IAAS,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE,CAAE;AACxD,IAAS,iBACd,2BAA6C,IAAI,EACjD,CAAE"} \ No newline at end of file +{"version":3,"sources":["uni_modules/test-uniplugin/static/logo.png","uni_modules/test-uniplugin/utssdk/app-android/index.uts","uni_modules/test-uniplugin/utssdk/app-android/interface.uts","uni_modules/test-uniplugin/utssdk/app-android/utils.uts","uni_modules/test-uniplugin/utssdk/app-android/login.uts"],"sourcesContent":["import { UTSAndroid } from 'io.dcloud.uts'\nexport default UTSAndroid.getResourcePath('uni_modules/test-uniplugin/static/logo.png')\n ","import Log from 'android.util.Log'\nimport FrameLayout from 'android.widget.FrameLayout'\nimport View from 'android.view.View'\nimport { IUser } from './interface.uts'\nimport { login } from './login.uts'\nimport logo from '../../static/logo.png'\n\nconst test = arrayOf(1, 2, 3)\n\ntype GetBatteryInfoOptions = {\n success?: (res: UTSJSONObject) => void\n fail?: (res: UTSJSONObject) => void\n complete?: (res: UTSJSONObject) => void\n}\nexport class User implements IUser {\n async login(name: string, pwd: string) {\n setTimeout(() => {\n console.log('timeout')\n }, 1000)\n login(name, pwd)\n for (let i = 0; i < 10; i++) {\n console.log(i)\n }\n Log.info(logo)\n\n console.log('def android')\n\n\n\n\n\n\n\n\n console.log('ndef ios')\n\n\n console.log('def android || def ios')\n\n\n\n\n\n new XToast<XToast<unknown>>(getUniActivity())\n .setContentView(R.layout.toast_hint)\n .setDuration(1000)\n .setImageDrawable(android.R.id.icon, R.mipmap.ic_dialog_tip_finish)\n .setText(android.R.id.message, '点我消失')\n .show()\n }\n register(name: string, callback: () => void) {\n Log.info(logo as FrameLayout)\n }\n test(view: View) { }\n}\nfunction login(name: string, callback: () => void) { }\n\n@Suppress(\"DEPRECATION\")\nexport function register(name: string, callback: () => void) { }\nexport function offMemoryWarning(\n callback: null | ((level: number) => void) = null\n) { }\n","export interface IUser {\n register(name: string): void\n}\n","export function test(){\n console.log('test')\n}\n","import { test } from \"./utils.uts\"\nexport function login(name: string, pwd: string) {\n console.log('login')\n test()\n return { name, pwd }\n}\n"],"names":[],"mappings":";;;;;;AAAA;ACAA,OAAgB,gBAAkB,CAAA;AAClC,OAAwB,0BAA4B,CAAA;AACpD,OAAiB,iBAAmB,CAAA;UCFnB;QACf,SAAS,MAAM,MAAM,GAAG,IAAI;;ACDvB,IAAS,OAAM;IAClB,QAAQ,GAAG,CAAC;AAChB;ACDO,IAAS,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,iBAAE;IAC/C,QAAQ,GAAG,CAAC;IACZ;IACA,OAAO;QAAE,IAAA,OAAA;QAAM,IAAA,MAAA;KAAK;AACtB;cJJe,WAAW,eAAe,CAAC;ACM1C,IAAM,QAAO,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;AAEC,WAAxB;IACH,SAAA,SAAQ,oBAA8B;IACtC,SAAA,MAAK,oBAA8B;IACnC,SAAA,UAAS,oBAA8B;AACzC;AACO,WAAM,OAAgB;IAC3B,iBAAM,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,8CAAE;QACrC,WAAW,KAAM;YACf,QAAQ,GAAG,CAAC;QACd;UAAG,IAAI;QACP,MAAM,MAAM;YACZ;YAAK,IAAI,IAAI,CAAC;YAAd,MAAgB,IAAI,EAAE;gBACpB,QAAQ,GAAG,CAAC;gBADU;;QAExB;QACA,IAAI,IAAI;QAER,QAAQ,GAAG,CAAC;QASZ,QAAQ,GAAG,CAAC;QAGZ,QAAQ,GAAG,CAAC;QAMR,OAAO,OAAO,CAAO,GAAG,kBACzB,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,EAClC,WAAW,CAAC,IAAI,EAChB,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,oBAAoB,EACjE,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAC9B,IAAI;IACT;IACA,aAAA,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE;QAC3C,IAAI,IAAI,YAAS;IACnB;IACA,SAAA,KAAK,MAAM,IAAI,EAAE,CAAE;AACrB;AACA,UAAe,MAAM,MAAM,EAAE,gBAAgB,IAAI,EAAE,CAAE;AAErD,CAAC,SAAS;AAAc,IACR,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE,CAAE;AACxD,IAAS,iBACd,2BAA6C,IAAI,EACjD,CAAE"} \ No newline at end of file diff --git a/packages/playground/uts/unpackage/dist/dev/app-plus/uni_modules/test-uniplugin/utssdk/app-android/index.kt b/packages/playground/uts/unpackage/dist/dev/app-plus/uni_modules/test-uniplugin/utssdk/app-android/index.kt index fa4fb055a24..8ac44df948b 100644 --- a/packages/playground/uts/unpackage/dist/dev/app-plus/uni_modules/test-uniplugin/utssdk/app-android/index.kt +++ b/packages/playground/uts/unpackage/dist/dev/app-plus/uni_modules/test-uniplugin/utssdk/app-android/index.kt @@ -55,5 +55,6 @@ open class User : IUser { open fun test(view: View) {} } fun login(name: String, callback: () -> Unit) {} +@Suppress("DEPRECATION") fun register(name: String, callback: UTSCallback) {} fun offMemoryWarning(callback: (UTSCallback)? = null) {} diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 6f0572b9043..fcbf62731d6 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index 4bbb91a8e7c..dfb8745ae66 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index 36271a4c0c7..d7c32fbaad2 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 8315e26714a..1f69505fb12 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
97144d70d50765c867a2685440526de770e08906
2022-04-15 09:02:47
fxy060608
build(deps): bump vite from 2.9.4 to 2.9.5
false
bump vite from 2.9.4 to 2.9.5
build
diff --git a/package.json b/package.json index 73cc0e6c998..0e7a48b6f70 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "semver": "^7.3.5", "ts-jest": "^27.0.3", "typescript": "4.6.3", - "vite": "^2.9.4", + "vite": "^2.9.5", "vue": "3.2.33", "vue-router": "^4.0.14", "yorkie": "^2.0.0" diff --git a/packages/playground/ssr/package.json b/packages/playground/ssr/package.json index 8dc4fcb1861..08ed77c5621 100644 --- a/packages/playground/ssr/package.json +++ b/packages/playground/ssr/package.json @@ -21,6 +21,6 @@ "compression": "^1.7.4", "cypress": "^7.3.0", "serve-static": "^1.14.1", - "vite": "^2.9.4" + "vite": "^2.9.5" } } diff --git a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts index 3e096aeb09f..e1fe0882a5b 100644 --- a/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts +++ b/packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts @@ -20,6 +20,7 @@ import { Plugin } from '../plugin' import { ResolvedConfig } from '../config' import { ResolveFn, ViteDevServer } from '../' import { fileToUrl, assetUrlRE, getAssetFilename } from './asset' +import MagicString from 'magic-string' import * as Postcss from 'postcss' import type Sass from 'sass' // We need to disable check of extraneous import which is buggy for stylus, @@ -288,6 +289,11 @@ export function cssPostPlugin( ) ) }) + // only external @imports and @charset should exist at this point + // hoist them to the top of the CSS chunk per spec (#1845 and #6333) + if (css.includes('@import') || css.includes('@charset')) { + css = await hoistAtRules(css) + } if (minify && config.build.minify) { css = await minifyCSS(css, config) } @@ -712,36 +718,54 @@ async function doUrlReplace( } export async function minifyCSS(css: string, config: ResolvedConfig) { - const { code, warnings } = await transform(css, { - loader: 'css', - minify: true, - target: config.build.cssTarget || undefined, - }) - if (warnings.length) { - const msgs = await formatMessages(warnings, { kind: 'warning' }) - config.logger.warn( - colors.yellow(`warnings when minifying css:\n${msgs.join('\n')}`) - ) + try { + const { code, warnings } = await transform(css, { + loader: 'css', + minify: true, + target: config.build.cssTarget || undefined, + }) + if (warnings.length) { + const msgs = await formatMessages(warnings, { kind: 'warning' }) + config.logger.warn( + colors.yellow(`warnings when minifying css:\n${msgs.join('\n')}`) + ) + } + return code + } catch (e: any) { + if (e.errors) { + const msgs = await formatMessages(e.errors, { kind: 'error' }) + e.frame = '\n' + msgs.join('\n') + e.loc = e.errors[0].location + } + throw e } - return code } -const AtImportHoistPlugin: Postcss.PluginCreator<any> = () => { - return { - postcssPlugin: 'vite-hoist-at-imports', - Once(root) { - const imports: Postcss.AtRule[] = [] - root.walkAtRules((rule) => { - if (rule.name === 'import') { - // record in reverse so that can simply prepend to preserve order - imports.unshift(rule) - } - }) - imports.forEach((i) => root.prepend(i)) - }, - } +export async function hoistAtRules(css: string) { + const s = new MagicString(css) + // #1845 + // CSS @import can only appear at top of the file. We need to hoist all @import + // to top when multiple files are concatenated. + // match until semicolon that's not in quotes + s.replace( + /@import\s*(?:url\([^\)]*\)|"[^"]*"|'[^']*'|[^;]*).*?;/gm, + (match) => { + s.appendLeft(0, match) + return '' + } + ) + // #6333 + // CSS @charset must be the top-first in the file, hoist the first to top + let foundCharset = false + s.replace(/@charset\s*(?:"[^"]*"|'[^']*'|[^;]*).*?;/gm, (match) => { + if (!foundCharset) { + s.prepend(match) + foundCharset = true + } + return '' + }) + return s.toString() } -AtImportHoistPlugin.postcss = true // Preprocessor support. This logic is largely replicated from @vue/compiler-sfc diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 3501069d9ac..ea00c731265 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -53,7 +53,7 @@ "chokidar": "^3.5.3" }, "peerDependencies": { - "vite": "^2.9.4" + "vite": "^2.9.5" }, "uni-app": { "compilerVersion": "3.4.5" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 872cd697b5d..1a890a6c2b2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,7 +47,7 @@ importers: semver: ^7.3.5 ts-jest: ^27.0.3 typescript: 4.6.3 - vite: ^2.9.4 + vite: ^2.9.5 vue: 3.2.33 vue-router: ^4.0.14 yorkie: ^2.0.0 @@ -67,7 +67,7 @@ importers: '@rollup/plugin-strip': [email protected] '@types/jest': 26.0.24 '@typescript-eslint/parser': [email protected][email protected] - '@vitejs/plugin-vue': [email protected][email protected] + '@vitejs/plugin-vue': [email protected][email protected] '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/reactivity': 3.2.33 '@vue/runtime-core': 3.2.33 @@ -95,7 +95,7 @@ importers: semver: 7.3.5 ts-jest: 27.1.0_2528360f5083edd4f29e3d452ccadc0f typescript: 4.6.3 - vite: 2.9.4 + vite: 2.9.5 vue: 3.2.33 vue-router: [email protected] yorkie: 2.0.0 @@ -109,7 +109,7 @@ importers: compression: ^1.7.4 cypress: ^7.3.0 serve-static: ^1.14.1 - vite: ^2.9.4 + vite: ^2.9.5 vue: 3.2.33 vue-router: ^4.0.14 vuex: ^4.0.2 @@ -125,7 +125,7 @@ importers: compression: 1.7.4 cypress: 7.7.0 serve-static: 1.14.1 - vite: 2.9.4 + vite: 2.9.5 packages/size-check: specifiers: @@ -221,7 +221,7 @@ importers: '@dcloudio/uni-nvue-styler': link:../uni-nvue-styler '@dcloudio/uni-shared': link:../uni-shared '@rollup/pluginutils': 4.2.0 - '@vitejs/plugin-vue': [email protected][email protected] + '@vitejs/plugin-vue': [email protected][email protected] '@vue/compiler-dom': 3.2.33 '@vue/compiler-sfc': 3.2.33 debug: 4.3.3 @@ -752,8 +752,8 @@ importers: '@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-shared': link:../uni-shared '@rollup/pluginutils': 4.2.0 - '@vitejs/plugin-legacy': [email protected] - '@vitejs/plugin-vue': [email protected][email protected] + '@vitejs/plugin-legacy': [email protected] + '@vitejs/plugin-vue': [email protected][email protected] '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/compiler-core': 3.2.33 '@vue/compiler-dom': 3.2.33 @@ -3191,7 +3191,7 @@ packages: eslint-visitor-keys: 3.1.0 dev: true - /@vitejs/plugin-legacy/[email protected]: + /@vitejs/plugin-legacy/[email protected]: resolution: {integrity: sha512-kmBWKq7EeNvzS4AqPBqUKdoWG/NYQXh7StUFMWR3D21aN5Mfmar7CTO2a7K+bBxJH/vAL9gnnueA0wb7cycCmQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -3202,7 +3202,7 @@ packages: magic-string: 0.26.1 regenerator-runtime: 0.13.9 systemjs: 6.12.1 - vite: 2.9.4 + vite: 2.9.5 dev: false /@vitejs/plugin-vue-jsx/1.3.10: @@ -3218,14 +3218,14 @@ packages: transitivePeerDependencies: - supports-color - /@vitejs/plugin-vue/[email protected][email protected]: + /@vitejs/plugin-vue/[email protected][email protected]: resolution: {integrity: sha512-YNzBt8+jt6bSwpt7LP890U1UcTOIZZxfpE5WOJ638PNxSEKOqAi0+FSKS0nVeukfdZ0Ai/H7AFd6k3hayfGZqQ==} engines: {node: '>=12.0.0'} peerDependencies: vite: ^2.5.10 vue: ^3.2.25 dependencies: - vite: 2.9.4 + vite: 2.9.5 vue: 3.2.33 /@vue/babel-helper-vue-transform-on/1.0.2: @@ -8680,8 +8680,8 @@ packages: extsprintf: 1.3.0 dev: true - /vite/2.9.4: - resolution: {integrity: sha512-7pO6ruZMsyTpaPB7kGtW+yj15Ze5g+E4w4Ramk1sAJLIuI4uPd5sauqubmZNpq0Yc1vLVxoXRf2Uj+qWxk5aXw==} + /vite/2.9.5: + resolution: {integrity: sha512-dvMN64X2YEQgSXF1lYabKXw3BbN6e+BL67+P3Vy4MacnY+UzT1AfkHiioFSi9+uiDUiaDy7Ax/LQqivk6orilg==} engines: {node: '>=12.2.0'} hasBin: true peerDependencies:
f2d9d02cd43d6c3b0bce93bd5350621c685c7148
2023-12-15 15:59:40
im-robot
chore: update uts compiler
false
update uts compiler
chore
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 1d2149b4bc4..099e6caec1e 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index 64ca381ef59..90a6c5b37d0 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node index c2cac2526a1..9532be8caa7 100755 Binary files a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node and b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node differ diff --git a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node index 83c0f77ec9f..988f6838bab 100755 Binary files a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node and b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index fb083987b01..e23dddf9678 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index d649b426719..2822c55933b 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
95ed33009e7c2c607aed11790487bc5446d8d88d
2021-08-13 14:40:54
fxy060608
chore(app): minify
false
minify
chore
diff --git a/packages/uni-app-plus/dist/style.css b/packages/uni-app-plus/dist/style.css index a3123670053..fa9f14fbd4e 100644 --- a/packages/uni-app-plus/dist/style.css +++ b/packages/uni-app-plus/dist/style.css @@ -1,1826 +1 @@ -* { - margin: 0; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - -webkit-tap-highlight-color: transparent; -} - -html, -body { - -webkit-user-select: none; - user-select: none; - width: 100%; -} - -html { - height: 100%; - height: 100vh; - width: 100%; - width: 100vw; -} - -body { - overflow-x: hidden; - background-color: white; -} - -input[type='search']::-webkit-search-cancel-button { - display: none; -} - -.uni-loading, -uni-button[loading]:before { - background: transparent - url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=') - no-repeat; -} - -.uni-loading { - width: 20px; - height: 20px; - display: inline-block; - vertical-align: middle; - animation: uni-loading 1s steps(12, end) infinite; - background-size: 100%; -} - -@keyframes uni-loading { - 0% { - transform: rotate3d(0, 0, 1, 0deg); - } - - 100% { - transform: rotate3d(0, 0, 1, 360deg); - } -} -[nvue] uni-view, -[nvue] uni-label, -[nvue] uni-swiper-item, -[nvue] uni-scroll-view { - display: flex; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} - -[nvue] uni-button { - margin: 0; -} - -[nvue-dir-row] uni-view, -[nvue-dir-row] uni-label, -[nvue-dir-row] uni-swiper-item { - flex-direction: row; -} - -[nvue-dir-column] uni-view, -[nvue-dir-column] uni-label, -[nvue-dir-column] uni-swiper-item { - flex-direction: column; -} - -[nvue-dir-row-reverse] uni-view, -[nvue-dir-row-reverse] uni-label, -[nvue-dir-row-reverse] uni-swiper-item { - flex-direction: row-reverse; -} - -[nvue-dir-column-reverse] uni-view, -[nvue-dir-column-reverse] uni-label, -[nvue-dir-column-reverse] uni-swiper-item { - flex-direction: column-reverse; -} - -[nvue] uni-view, -[nvue] uni-image, -[nvue] uni-input, -[nvue] uni-scroll-view, -[nvue] uni-swiper, -[nvue] uni-swiper-item, -[nvue] uni-text, -[nvue] uni-textarea, -[nvue] uni-video { - position: relative; - border: 0px solid #000000; - box-sizing: border-box; -} - -[nvue] uni-swiper-item { - position: absolute; -} -@keyframes once-show { - from { - top: 0; - } -} -uni-resize-sensor, -uni-resize-sensor > div { - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - overflow: hidden; -} -uni-resize-sensor { - display: block; - z-index: -1; - visibility: hidden; - animation: once-show 1ms; -} -uni-resize-sensor > div > div { - position: absolute; - left: 0; - top: 0; -} -uni-resize-sensor > div:first-child > div { - width: 100000px; - height: 100000px; -} -uni-resize-sensor > div:last-child > div { - width: 200%; - height: 200%; -} -uni-text[selectable] { - cursor: auto; - -webkit-user-select: text; - user-select: text; -} -uni-view { - display: block; -} -uni-view[hidden] { - display: none; -} -uni-button { - position: relative; - display: block; - margin-left: auto; - margin-right: auto; - padding-left: 14px; - padding-right: 14px; - box-sizing: border-box; - font-size: 18px; - text-align: center; - text-decoration: none; - line-height: 2.55555556; - border-radius: 5px; - -webkit-tap-highlight-color: transparent; - overflow: hidden; - color: #000000; - background-color: #f8f8f8; - cursor: pointer; -} - -uni-button[hidden] { - display: none !important; -} - -uni-button:after { - content: ' '; - width: 200%; - height: 200%; - position: absolute; - top: 0; - left: 0; - border: 1px solid rgba(0, 0, 0, 0.2); - transform: scale(0.5); - transform-origin: 0 0; - box-sizing: border-box; - border-radius: 10px; -} - -uni-button[native] { - padding-left: 0; - padding-right: 0; -} - -uni-button[native] .uni-button-cover-view-wrapper { - border: inherit; - border-color: inherit; - border-radius: inherit; - background-color: inherit; -} - -uni-button[native] .uni-button-cover-view-inner { - padding-left: 14px; - padding-right: 14px; -} - -uni-button uni-cover-view { - line-height: inherit; - white-space: inherit; -} - -uni-button[type='default'] { - color: #000000; - background-color: #f8f8f8; -} - -uni-button[type='primary'] { - color: #ffffff; - background-color: #007aff; -} - -uni-button[type='warn'] { - color: #ffffff; - background-color: #e64340; -} - -uni-button[disabled] { - color: rgba(255, 255, 255, 0.6); - cursor: not-allowed; -} - -uni-button[disabled][type='default'], -uni-button[disabled]:not([type]) { - color: rgba(0, 0, 0, 0.3); - background-color: #f7f7f7; -} - -uni-button[disabled][type='primary'] { - background-color: rgba(0, 122, 255, 0.6); -} - -uni-button[disabled][type='warn'] { - background-color: #ec8b89; -} - -uni-button[type='primary'][plain] { - color: #007aff; - border: 1px solid #007aff; - background-color: transparent; -} - -uni-button[type='primary'][plain][disabled] { - color: rgba(0, 0, 0, 0.2); - border-color: rgba(0, 0, 0, 0.2); -} - -uni-button[type='primary'][plain]:after { - border-width: 0; -} - -uni-button[type='default'][plain] { - color: #353535; - border: 1px solid #353535; - background-color: transparent; -} - -uni-button[type='default'][plain][disabled] { - color: rgba(0, 0, 0, 0.2); - border-color: rgba(0, 0, 0, 0.2); -} - -uni-button[type='default'][plain]:after { - border-width: 0; -} - -uni-button[plain] { - color: #353535; - border: 1px solid #353535; - background-color: transparent; -} - -uni-button[plain][disabled] { - color: rgba(0, 0, 0, 0.2); - border-color: rgba(0, 0, 0, 0.2); -} - -uni-button[plain]:after { - border-width: 0; -} - -uni-button[plain][native] .uni-button-cover-view-inner { - padding: 0; -} - -uni-button[type='warn'][plain] { - color: #e64340; - border: 1px solid #e64340; - background-color: transparent; -} - -uni-button[type='warn'][plain][disabled] { - color: rgba(0, 0, 0, 0.2); - border-color: rgba(0, 0, 0, 0.2); -} - -uni-button[type='warn'][plain]:after { - border-width: 0; -} - -uni-button[size='mini'] { - display: inline-block; - line-height: 2.3; - font-size: 13px; - padding: 0 1.34em; -} - -uni-button[size='mini'][native] { - padding: 0; -} - -uni-button[size='mini'][native] .uni-button-cover-view-inner { - padding: 0 1.34em; -} - -uni-button[loading]:not([disabled]) { - cursor: progress; -} - -uni-button[loading]:before { - content: ' '; - display: inline-block; - width: 18px; - height: 18px; - vertical-align: middle; - animation: uni-loading 1s steps(12, end) infinite; - background-size: 100%; -} - -uni-button[loading][type='primary'] { - color: rgba(255, 255, 255, 0.6); - background-color: #0062cc; -} - -uni-button[loading][type='primary'][plain] { - color: #007aff; - background-color: transparent; -} - -uni-button[loading][type='default'] { - color: rgba(0, 0, 0, 0.6); - background-color: #dedede; -} - -uni-button[loading][type='default'][plain] { - color: #353535; - background-color: transparent; -} - -uni-button[loading][type='warn'] { - color: rgba(255, 255, 255, 0.6); - background-color: #ce3c39; -} - -uni-button[loading][type='warn'][plain] { - color: #e64340; - background-color: transparent; -} - -uni-button[loading][native]:before { - content: none; -} - -.button-hover { - color: rgba(0, 0, 0, 0.6); - background-color: #dedede; -} - -.button-hover[plain] { - color: rgba(53, 53, 53, 0.6); - border-color: rgba(53, 53, 53, 0.6); - background-color: transparent; -} - -.button-hover[type='primary'] { - color: rgba(255, 255, 255, 0.6); - background-color: #0062cc; -} - -.button-hover[type='primary'][plain] { - color: rgba(26, 173, 25, 0.6); - border-color: rgba(26, 173, 25, 0.6); - background-color: transparent; -} - -.button-hover[type='default'] { - color: rgba(0, 0, 0, 0.6); - background-color: #dedede; -} - -.button-hover[type='default'][plain] { - color: rgba(53, 53, 53, 0.6); - border-color: rgba(53, 53, 53, 0.6); - background-color: transparent; -} - -.button-hover[type='warn'] { - color: rgba(255, 255, 255, 0.6); - background-color: #ce3c39; -} - -.button-hover[type='warn'][plain] { - color: rgba(230, 67, 64, 0.6); - border-color: rgba(230, 67, 64, 0.6); - background-color: transparent; -} -uni-canvas { - width: 300px; - height: 150px; - display: block; - position: relative; -} - -uni-canvas > .uni-canvas-canvas { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -uni-checkbox { - -webkit-tap-highlight-color: transparent; - display: inline-block; - cursor: pointer; -} - -uni-checkbox[hidden] { - display: none; -} - -uni-checkbox[disabled] { - cursor: not-allowed; -} - -.uni-checkbox-wrapper { - display: inline-flex; - align-items: center; - vertical-align: middle; -} - -.uni-checkbox-input { - margin-right: 5px; - -webkit-appearance: none; - appearance: none; - outline: 0; - border: 1px solid #d1d1d1; - background-color: #ffffff; - border-radius: 3px; - width: 22px; - height: 22px; - position: relative; -} - -.uni-checkbox-input svg { - color: #007aff; - font-size: 22px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -48%) scale(0.73); -} - -uni-checkbox:not([disabled]) .uni-checkbox-input:hover { - border-color: #007aff; -} - -.uni-checkbox-input.uni-checkbox-input-disabled { - background-color: #e1e1e1; -} - -.uni-checkbox-input.uni-checkbox-input-disabled:before { - color: #adadad; -} - -uni-checkbox-group { - display: block; -} -uni-checkbox-group { - display: block; -} - -uni-checkbox-group[hidden] { - display: none; -} -uni-cover-image { - display: block; - line-height: 1.2; - overflow: hidden; - height: 100%; - width: 100%; - pointer-events: auto; -} - -uni-cover-image[hidden] { - display: none; -} - -uni-cover-image .uni-cover-image { - width: 100%; - height: 100%; -} -uni-cover-view { - display: block; - line-height: 1.2; - overflow: hidden; - white-space: nowrap; - pointer-events: auto; -} - -uni-cover-view[hidden] { - display: none; -} - -uni-cover-view .uni-cover-view { - width: 100%; - height: 100%; -} -.ql-container { - display: block; - position: relative; - box-sizing: border-box; - -webkit-user-select: text; - user-select: text; - outline: none; - overflow: hidden; - width: 100%; - height: 200px; - min-height: 200px; -} -.ql-container[hidden] { - display: none; -} -.ql-container .ql-editor { - position: relative; - font-size: inherit; - line-height: inherit; - font-family: inherit; - min-height: inherit; - width: 100%; - height: 100%; - padding: 0; - overflow-x: hidden; - overflow-y: auto; - -webkit-tap-highlight-color: transparent; - -webkit-touch-callout: none; - -webkit-overflow-scrolling: touch; -} -.ql-container .ql-editor::-webkit-scrollbar { - width: 0 !important; -} -.ql-container .ql-editor.scroll-disabled { - overflow: hidden; -} -.ql-container .ql-image-overlay { - display: flex; - position: absolute; - box-sizing: border-box; - border: 1px dashed #ccc; - justify-content: center; - align-items: center; - -webkit-user-select: none; - user-select: none; -} -.ql-container .ql-image-overlay .ql-image-size { - position: absolute; - padding: 4px 8px; - text-align: center; - background-color: #fff; - color: #888; - border: 1px solid #ccc; - box-sizing: border-box; - opacity: 0.8; - right: 4px; - top: 4px; - font-size: 12px; - display: inline-block; - width: auto; -} -.ql-container .ql-image-overlay .ql-image-toolbar { - position: relative; - text-align: center; - box-sizing: border-box; - background: #000; - border-radius: 5px; - color: #fff; - font-size: 0; - min-height: 24px; - z-index: 100; -} -.ql-container .ql-image-overlay .ql-image-toolbar span { - display: inline-block; - cursor: pointer; - padding: 5px; - font-size: 12px; - border-right: 1px solid #fff; -} -.ql-container .ql-image-overlay .ql-image-toolbar span:last-child { - border-right: 0; -} -.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up { - padding: 0; - position: absolute; - top: -12px; - left: 50%; - transform: translatex(-50%); - width: 0; - height: 0; - border-width: 6px; - border-style: solid; - border-color: transparent transparent black transparent; -} -.ql-container .ql-image-overlay .ql-image-handle { - position: absolute; - height: 12px; - width: 12px; - border-radius: 50%; - border: 1px solid #ccc; - box-sizing: border-box; - background: #fff; -} -.ql-container img { - display: inline-block; - max-width: 100%; -} -.ql-clipboard p { - margin: 0; - padding: 0; -} -.ql-editor { - box-sizing: border-box; - height: 100%; - outline: none; - overflow-y: auto; - tab-size: 4; - -moz-tab-size: 4; - text-align: left; - white-space: pre-wrap; - word-wrap: break-word; -} -.ql-editor > * { - cursor: text; -} -.ql-editor p, -.ql-editor ol, -.ql-editor ul, -.ql-editor pre, -.ql-editor blockquote, -.ql-editor h1, -.ql-editor h2, -.ql-editor h3, -.ql-editor h4, -.ql-editor h5, -.ql-editor h6 { - margin: 0; - padding: 0; - counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol > li, -.ql-editor ul > li { - list-style-type: none; -} -.ql-editor ul > li::before { - content: '\2022'; -} -.ql-editor ul[data-checked=true], -.ql-editor ul[data-checked=false] { - pointer-events: none; -} -.ql-editor ul[data-checked=true] > li *, -.ql-editor ul[data-checked=false] > li * { - pointer-events: all; -} -.ql-editor ul[data-checked=true] > li::before, -.ql-editor ul[data-checked=false] > li::before { - color: #777; - cursor: pointer; - pointer-events: all; -} -.ql-editor ul[data-checked=true] > li::before { - content: '\2611'; -} -.ql-editor ul[data-checked=false] > li::before { - content: '\2610'; -} -.ql-editor li::before { - display: inline-block; - white-space: nowrap; - width: 2em; -} -.ql-editor ol li { - counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; - counter-increment: list-0; -} -.ql-editor ol li:before { - content: counter(list-0, decimal) '. '; -} -.ql-editor ol li.ql-indent-1 { - counter-increment: list-1; -} -.ql-editor ol li.ql-indent-1:before { - content: counter(list-1, lower-alpha) '. '; -} -.ql-editor ol li.ql-indent-1 { - counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-2 { - counter-increment: list-2; -} -.ql-editor ol li.ql-indent-2:before { - content: counter(list-2, lower-roman) '. '; -} -.ql-editor ol li.ql-indent-2 { - counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-3 { - counter-increment: list-3; -} -.ql-editor ol li.ql-indent-3:before { - content: counter(list-3, decimal) '. '; -} -.ql-editor ol li.ql-indent-3 { - counter-reset: list-4 list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-4 { - counter-increment: list-4; -} -.ql-editor ol li.ql-indent-4:before { - content: counter(list-4, lower-alpha) '. '; -} -.ql-editor ol li.ql-indent-4 { - counter-reset: list-5 list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-5 { - counter-increment: list-5; -} -.ql-editor ol li.ql-indent-5:before { - content: counter(list-5, lower-roman) '. '; -} -.ql-editor ol li.ql-indent-5 { - counter-reset: list-6 list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-6 { - counter-increment: list-6; -} -.ql-editor ol li.ql-indent-6:before { - content: counter(list-6, decimal) '. '; -} -.ql-editor ol li.ql-indent-6 { - counter-reset: list-7 list-8 list-9; -} -.ql-editor ol li.ql-indent-7 { - counter-increment: list-7; -} -.ql-editor ol li.ql-indent-7:before { - content: counter(list-7, lower-alpha) '. '; -} -.ql-editor ol li.ql-indent-7 { - counter-reset: list-8 list-9; -} -.ql-editor ol li.ql-indent-8 { - counter-increment: list-8; -} -.ql-editor ol li.ql-indent-8:before { - content: counter(list-8, lower-roman) '. '; -} -.ql-editor ol li.ql-indent-8 { - counter-reset: list-9; -} -.ql-editor ol li.ql-indent-9 { - counter-increment: list-9; -} -.ql-editor ol li.ql-indent-9:before { - content: counter(list-9, decimal) '. '; -} -.ql-editor .ql-indent-1:not(.ql-direction-rtl) { - padding-left: 2em; -} -.ql-editor li.ql-indent-1:not(.ql-direction-rtl) { - padding-left: 2em; -} -.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right { - padding-right: 2em; -} -.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right { - padding-right: 2em; -} -.ql-editor .ql-indent-2:not(.ql-direction-rtl) { - padding-left: 4em; -} -.ql-editor li.ql-indent-2:not(.ql-direction-rtl) { - padding-left: 4em; -} -.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right { - padding-right: 4em; -} -.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right { - padding-right: 4em; -} -.ql-editor .ql-indent-3:not(.ql-direction-rtl) { - padding-left: 6em; -} -.ql-editor li.ql-indent-3:not(.ql-direction-rtl) { - padding-left: 6em; -} -.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right { - padding-right: 6em; -} -.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right { - padding-right: 6em; -} -.ql-editor .ql-indent-4:not(.ql-direction-rtl) { - padding-left: 8em; -} -.ql-editor li.ql-indent-4:not(.ql-direction-rtl) { - padding-left: 8em; -} -.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right { - padding-right: 8em; -} -.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right { - padding-right: 8em; -} -.ql-editor .ql-indent-5:not(.ql-direction-rtl) { - padding-left: 10em; -} -.ql-editor li.ql-indent-5:not(.ql-direction-rtl) { - padding-left: 10em; -} -.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right { - padding-right: 10em; -} -.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right { - padding-right: 10em; -} -.ql-editor .ql-indent-6:not(.ql-direction-rtl) { - padding-left: 12em; -} -.ql-editor li.ql-indent-6:not(.ql-direction-rtl) { - padding-left: 12em; -} -.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right { - padding-right: 12em; -} -.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right { - padding-right: 12em; -} -.ql-editor .ql-indent-7:not(.ql-direction-rtl) { - padding-left: 14em; -} -.ql-editor li.ql-indent-7:not(.ql-direction-rtl) { - padding-left: 14em; -} -.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right { - padding-right: 14em; -} -.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right { - padding-right: 14em; -} -.ql-editor .ql-indent-8:not(.ql-direction-rtl) { - padding-left: 16em; -} -.ql-editor li.ql-indent-8:not(.ql-direction-rtl) { - padding-left: 16em; -} -.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right { - padding-right: 16em; -} -.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right { - padding-right: 16em; -} -.ql-editor .ql-indent-9:not(.ql-direction-rtl) { - padding-left: 18em; -} -.ql-editor li.ql-indent-9:not(.ql-direction-rtl) { - padding-left: 18em; -} -.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right { - padding-right: 18em; -} -.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right { - padding-right: 18em; -} -.ql-editor .ql-direction-rtl { - direction: rtl; - text-align: inherit; -} -.ql-editor .ql-align-center { - text-align: center; -} -.ql-editor .ql-align-justify { - text-align: justify; -} -.ql-editor .ql-align-right { - text-align: right; -} -.ql-editor.ql-blank::before { - color: rgba(0, 0, 0, 0.6); - content: attr(data-placeholder); - font-style: italic; - pointer-events: none; - position: absolute; -} -.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before { - pointer-events: none; -} -.ql-clipboard { - left: -100000px; - height: 1px; - overflow-y: hidden; - position: absolute; - top: 50%; -} -uni-icon { - display: inline-block; - font-size: 0; - box-sizing: border-box; -} - -uni-icon[hidden] { - display: none; -} -uni-image { - width: 320px; - height: 240px; - display: inline-block; - overflow: hidden; - position: relative; -} - -uni-image[hidden] { - display: none; -} - -uni-image > div { - width: 100%; - height: 100%; -} - -uni-image > img { - -webkit-touch-callout: none; - -webkit-user-select: none; - user-select: none; - display: block; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 0; -} - -uni-image > .uni-image-will-change { - will-change: transform; -} -uni-input { - display: block; - font-size: 16px; - line-height: 1.4em; - height: 1.4em; - min-height: 1.4em; - overflow: hidden; -} - -uni-input[hidden] { - display: none; -} - -.uni-input-wrapper, -.uni-input-placeholder, -.uni-input-form, -.uni-input-input { - outline: none; - border: none; - padding: 0; - margin: 0; - text-decoration: inherit; -} - -.uni-input-wrapper, -.uni-input-form { - display: flex; - position: relative; - width: 100%; - height: 100%; - flex-direction: column; - justify-content: center; -} - -.uni-input-placeholder, -.uni-input-input { - width: 100%; -} - -.uni-input-placeholder { - position: absolute; - top: auto !important; - left: 0; - color: gray; - overflow: hidden; - text-overflow: clip; - white-space: pre; - word-break: keep-all; - pointer-events: none; - line-height: inherit; -} - -.uni-input-input { - position: relative; - display: block; - height: 100%; - background: none; - color: inherit; - opacity: 1; - font: inherit; - line-height: inherit; - letter-spacing: inherit; - text-align: inherit; - text-indent: inherit; - text-transform: inherit; - text-shadow: inherit; -} - -.uni-input-input[type='search']::-webkit-search-cancel-button { - display: none; -} - -.uni-input-input::-webkit-outer-spin-button, -.uni-input-input::-webkit-inner-spin-button { - -webkit-appearance: none; - appearance: none; - margin: 0; -} - -.uni-input-input[type='number'] { - -moz-appearance: textfield; -} - -.uni-input-input:disabled { - /* 用于重置iOS14以下禁用状态文字颜色 */ - -webkit-text-fill-color: currentcolor; -} -.uni-label-pointer { - cursor: pointer; -} -uni-map { - width: 300px; - height: 225px; - display: inline-block; - line-height: 0; - overflow: hidden; - position: relative; -} - -uni-map[hidden] { - display: none; -} - -.uni-map-container { - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - overflow: hidden; - background-color: black; -} - -.uni-map-slot { - position: absolute; - top: 0; - width: 100%; - height: 100%; - overflow: hidden; - pointer-events: none; -}uni-movable-area { - display: block; - position: relative; - width: 10px; - height: 10px; -} - -uni-movable-area[hidden] { - display: none; -} -uni-movable-view { - display: inline-block; - width: 10px; - height: 10px; - top: 0px; - left: 0px; - position: absolute; - cursor: grab; -} - -uni-movable-view[hidden] { - display: none; -} -uni-navigator { - height: auto; - width: auto; - display: block; - cursor: pointer; -} - -uni-navigator[hidden] { - display: none; -} - -.navigator-hover { - background-color: rgba(0, 0, 0, 0.1); - opacity: 0.7; -} -uni-picker-view { - display: block; -} - -.uni-picker-view-wrapper { - display: flex; - position: relative; - overflow: hidden; - height: 100%; -} - -uni-picker-view[hidden] { - display: none; -} -uni-picker-view-column { - flex: 1; - position: relative; - height: 100%; - overflow: hidden; -} - -uni-picker-view-column[hidden] { - display: none; -} - -.uni-picker-view-group { - height: 100%; - overflow: hidden; -} - -.uni-picker-view-mask { - transform: translateZ(0); -} - -.uni-picker-view-indicator, -.uni-picker-view-mask { - position: absolute; - left: 0; - width: 100%; - z-index: 3; - pointer-events: none; -} - -.uni-picker-view-mask { - top: 0; - height: 100%; - margin: 0 auto; - background: linear-gradient( - 180deg, - hsla(0, 0%, 100%, 0.95), - hsla(0, 0%, 100%, 0.6) - ), - linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6)); - background-position: top, bottom; - background-size: 100% 102px; - background-repeat: no-repeat; -} - -.uni-picker-view-indicator { - height: 34px; - /* top: 102px; */ - top: 50%; - transform: translateY(-50%); -} - -.uni-picker-view-content { - position: absolute; - top: 0; - left: 0; - width: 100%; - will-change: transform; - padding: 102px 0; - cursor: pointer; -} - -.uni-picker-view-content > * { - height: 34px; - overflow: hidden; -} - -.uni-picker-view-indicator:after, -.uni-picker-view-indicator:before { - content: ' '; - position: absolute; - left: 0; - right: 0; - height: 1px; - color: #e5e5e5; -} - -.uni-picker-view-indicator:before { - top: 0; - border-top: 1px solid #e5e5e5; - transform-origin: 0 0; - transform: scaleY(0.5); -} - -.uni-picker-view-indicator:after { - bottom: 0; - border-bottom: 1px solid #e5e5e5; - transform-origin: 0 100%; - transform: scaleY(0.5); -} - -.uni-picker-view-indicator:after, -.uni-picker-view-indicator:before { - content: ' '; - position: absolute; - left: 0; - right: 0; - height: 1px; - color: #e5e5e5; -} -uni-progress { - display: flex; - align-items: center; -} - -uni-progress[hidden] { - display: none; -} - -.uni-progress-bar { - flex: 1; -} - -.uni-progress-inner-bar { - width: 0; - height: 100%; -} - -.uni-progress-info { - margin-top: 0; - margin-bottom: 0; - min-width: 2em; - margin-left: 15px; - font-size: 16px; -} -uni-radio { - -webkit-tap-highlight-color: transparent; - display: inline-block; - cursor: pointer; -} - -uni-radio[hidden] { - display: none; -} - -uni-radio[disabled] { - cursor: not-allowed; -} - -.uni-radio-wrapper { - display: inline-flex; - align-items: center; - vertical-align: middle; -} - -.uni-radio-input { - -webkit-appearance: none; - appearance: none; - margin-right: 5px; - outline: 0; - border: 1px solid #d1d1d1; - background-color: #ffffff; - border-radius: 50%; - width: 22px; - height: 22px; - position: relative; -} - -uni-radio:not([disabled]) .uni-radio-input:hover { - border-color: #007aff; -} - -.uni-radio-input svg { - color: #ffffff; - font-size: 18px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -48%) scale(0.73); -} - -.uni-radio-input.uni-radio-input-disabled { - background-color: #e1e1e1; - border-color: #d1d1d1; -} - -.uni-radio-input.uni-radio-input-disabled:before { - color: #adadad; -} -uni-radio-group { - display: block; -} -uni-radio-group[hidden] { - display: none; -} -uni-scroll-view { - display: block; - width: 100%; -} - -uni-scroll-view[hidden] { - display: none; -} - -.uni-scroll-view { - position: relative; - -webkit-overflow-scrolling: touch; - width: 100%; - /* display: flex; 时在安卓下会导致scrollWidth和offsetWidth一样 */ - height: 100%; - max-height: inherit; -} - -.uni-scroll-view-content { - width: 100%; - height: 100%; -} - -.uni-scroll-view-refresher { - position: relative; - overflow: hidden; -} - -.uni-scroll-view-refresh { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; -} - -.uni-scroll-view-refresh-inner { - display: flex; - align-items: center; - justify-content: center; - line-height: 0; - width: 40px; - height: 40px; - border-radius: 50%; - background-color: #fff; - box-shadow: 0 1px 6px rgba(0, 0, 0, 0.117647), - 0 1px 4px rgba(0, 0, 0, 0.117647); -} - -.uni-scroll-view-refresh__spinner { - transform-origin: center center; - animation: uni-scroll-view-refresh-rotate 2s linear infinite; -} - -.uni-scroll-view-refresh__spinner > circle { - stroke: currentColor; - stroke-linecap: round; - animation: uni-scroll-view-refresh-dash 2s linear infinite; -} - -@keyframes uni-scroll-view-refresh-rotate { - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -} - -@keyframes uni-scroll-view-refresh-dash { - 0% { - stroke-dasharray: 1, 200; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 89, 200; - stroke-dashoffset: -35px; - } - - 100% { - stroke-dasharray: 89, 200; - stroke-dashoffset: -124px; - } -} -uni-slider { - margin: 10px 18px; - padding: 0; - display: block; -} - -uni-slider[hidden] { - display: none; -} - -uni-slider .uni-slider-wrapper { - display: flex; - align-items: center; - min-height: 16px; -} - -uni-slider .uni-slider-tap-area { - flex: 1; - padding: 8px 0; -} - -uni-slider .uni-slider-handle-wrapper { - position: relative; - height: 2px; - border-radius: 5px; - background-color: #e9e9e9; - cursor: pointer; - transition: background-color 0.3s ease; - -webkit-tap-highlight-color: transparent; -} - -uni-slider .uni-slider-track { - height: 100%; - border-radius: 6px; - background-color: #007aff; - transition: background-color 0.3s ease; -} - -uni-slider .uni-slider-handle, -uni-slider .uni-slider-thumb { - position: absolute; - left: 50%; - top: 50%; - cursor: pointer; - border-radius: 50%; - transition: border-color 0.3s ease; -} - -uni-slider .uni-slider-handle { - width: 28px; - height: 28px; - margin-top: -14px; - margin-left: -14px; - background-color: transparent; - z-index: 3; - cursor: grab; -} - -uni-slider .uni-slider-thumb { - z-index: 2; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); -} - -uni-slider .uni-slider-step { - position: absolute; - width: 100%; - height: 2px; - background: transparent; - z-index: 1; -} - -uni-slider .uni-slider-value { - width: 3ch; - color: #888; - font-size: 14px; - margin-left: 1em; -} - -uni-slider .uni-slider-disabled .uni-slider-track { - background-color: #ccc; -} - -uni-slider .uni-slider-disabled .uni-slider-thumb { - background-color: #fff; - border-color: #ccc; -} -uni-swiper { - display: block; - height: 150px; -} - -uni-swiper[hidden] { - display: none; -} - -.uni-swiper-wrapper { - overflow: hidden; - position: relative; - width: 100%; - height: 100%; - transform: translateZ(0); -} - -.uni-swiper-slides { - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; -} - -.uni-swiper-slide-frame { - position: absolute; - left: 0; - top: 0; - width: 100%; - height: 100%; - will-change: transform; -} - -.uni-swiper-dots { - position: absolute; - font-size: 0; -} - -.uni-swiper-dots-horizontal { - left: 50%; - bottom: 10px; - text-align: center; - white-space: nowrap; - transform: translate(-50%, 0); -} - -.uni-swiper-dots-horizontal .uni-swiper-dot { - margin-right: 8px; -} - -.uni-swiper-dots-horizontal .uni-swiper-dot:last-child { - margin-right: 0; -} - -.uni-swiper-dots-vertical { - right: 10px; - top: 50%; - text-align: right; - transform: translate(0, -50%); -} - -.uni-swiper-dots-vertical .uni-swiper-dot { - display: block; - margin-bottom: 9px; -} - -.uni-swiper-dots-vertical .uni-swiper-dot:last-child { - margin-bottom: 0; -} - -.uni-swiper-dot { - display: inline-block; - width: 8px; - height: 8px; - cursor: pointer; - transition-property: background-color; - transition-timing-function: ease; - background: rgba(0, 0, 0, 0.3); - border-radius: 50%; -} - -.uni-swiper-dot-active { - background-color: #000000; -} -uni-swiper-item { - display: block; - overflow: hidden; - will-change: transform; - position: absolute; - width: 100%; - height: 100%; - cursor: grab; -} - -uni-swiper-item[hidden] { - display: none; -} -uni-switch { - -webkit-tap-highlight-color: transparent; - display: inline-block; - cursor: pointer; -} - -uni-switch[hidden] { - display: none; -} - -uni-switch[disabled] { - cursor: not-allowed; -} - -.uni-switch-wrapper { - display: inline-flex; - align-items: center; - vertical-align: middle; -} - -.uni-switch-input { - -webkit-appearance: none; - appearance: none; - position: relative; - width: 52px; - height: 32px; - margin-right: 5px; - border: 1px solid #dfdfdf; - outline: 0; - border-radius: 16px; - box-sizing: border-box; - background-color: #dfdfdf; - transition: background-color 0.1s, border 0.1s; -} - -uni-switch[disabled] .uni-switch-input { - opacity: 0.7; -} - -.uni-switch-input:before { - content: ' '; - position: absolute; - top: 0; - left: 0; - width: 50px; - height: 30px; - border-radius: 15px; - background-color: #fdfdfd; - transition: transform 0.3s; -} - -.uni-switch-input:after { - content: ' '; - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - border-radius: 15px; - background-color: #ffffff; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); - transition: transform 0.3s; -} - -.uni-switch-input.uni-switch-input-checked { - border-color: #007aff; - background-color: #007aff; -} - -.uni-switch-input.uni-switch-input-checked:before { - transform: scale(0); -} - -.uni-switch-input.uni-switch-input-checked:after { - transform: translateX(20px); -} - -uni-switch .uni-checkbox-input { - margin-right: 5px; - -webkit-appearance: none; - appearance: none; - outline: 0; - border: 1px solid #d1d1d1; - background-color: #ffffff; - border-radius: 3px; - width: 22px; - height: 22px; - position: relative; - color: #007aff; -} - -uni-switch:not([disabled]) .uni-checkbox-input:hover { - border-color: #007aff; -} - -uni-switch .uni-checkbox-input svg { - color: inherit; - font-size: 22px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -48%) scale(0.73); -} - -.uni-checkbox-input.uni-checkbox-input-disabled { - background-color: #e1e1e1; -} - -.uni-checkbox-input.uni-checkbox-input-disabled:before { - color: #adadad; -} -uni-textarea { - width: 300px; - height: 150px; - display: block; - position: relative; - font-size: 16px; - line-height: normal; - white-space: pre-wrap; - word-break: break-all; - box-sizing: content-box !important; -} -uni-textarea[hidden] { - display: none; -} -.uni-textarea-wrapper, -.uni-textarea-placeholder, -.uni-textarea-line, -.uni-textarea-compute, -.uni-textarea-textarea { - outline: none; - border: none; - padding: 0; - margin: 0; - text-decoration: inherit; -} -.uni-textarea-wrapper { - display: block; - position: relative; - width: 100%; - height: 100%; - min-height: inherit; -} -.uni-textarea-placeholder, -.uni-textarea-line, -.uni-textarea-compute, -.uni-textarea-textarea { - position: absolute; - width: 100%; - height: 100%; - left: 0; - top: 0; - white-space: inherit; - word-break: inherit; -} -.uni-textarea-placeholder { - color: grey; - overflow: hidden; -} -.uni-textarea-line, -.uni-textarea-compute { - visibility: hidden; - height: auto; -} -.uni-textarea-line { - width: 1em; -} -.uni-textarea-textarea { - resize: none; - background: none; - color: inherit; - opacity: 1; - font: inherit; - line-height: inherit; - letter-spacing: inherit; - text-align: inherit; - text-indent: inherit; - text-transform: inherit; - text-shadow: inherit; -} -/* 用于解决 iOS textarea 内部默认边距 */ -.uni-textarea-textarea-fix-margin { - width: auto; - right: 0; - margin: 0 -3px; -} -.uni-textarea-textarea:disabled { - /* 用于重置iOS14以下禁用状态文字颜色 */ - -webkit-text-fill-color: currentcolor; -} -uni-video { - width: 300px; - height: 225px; - display: inline-block; - line-height: 0; - overflow: hidden; - position: relative; -} - -uni-video[hidden] { - display: none; -} - -.uni-video-container { - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - overflow: hidden; - background-color: black; -} - -.uni-video-slot { - position: absolute; - top: 0; - width: 100%; - height: 100%; - overflow: hidden; - pointer-events: none; -} -uni-web-view { - display: inline-block; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; -} +*{margin:0;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transparent}body,html{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=') no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0deg)}100%{transform:rotate3d(0,0,1,360deg)}}[nvue] uni-label,[nvue] uni-scroll-view,[nvue] uni-swiper-item,[nvue] uni-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item,[nvue-dir-row] uni-view{flex-direction:row}[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item,[nvue-dir-column] uni-view{flex-direction:column}[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item,[nvue-dir-row-reverse] uni-view{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item,[nvue-dir-column-reverse] uni-view{flex-direction:column-reverse}[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video,[nvue] uni-view{position:relative;border:0 solid #000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{from{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:' ';width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled]:not([type]),uni-button[disabled][type=default]{color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:' ';display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(26,173,25,.6);border-color:rgba(26,173,25,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}uni-checkbox-group{display:block}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:0;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translatex(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent #000 transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:0;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li::before{content:'\2022'}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li::before,.ql-editor ul[data-checked=true]>li::before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li::before{content:'\2611'}.ql-editor ul[data-checked=false]>li::before{content:'\2610'}.ql-editor li::before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) '. '}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) '. '}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) '. '}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) '. '}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) '. '}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) '. '}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) '. '}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) '. '}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) '. '}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank::before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li::before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-form,.uni-input-input,.uni-input-placeholder,.uni-input-wrapper{outline:0;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-form,.uni-input-wrapper{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-input,.uni-input-placeholder{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:0 0;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button{display:none}.uni-input-input::-webkit-inner-spin-button,.uni-input-input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0;left:0;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:' ';position:absolute;left:0;right:0;height:1px;color:#e5e5e5}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:' ';position:absolute;left:0;right:0;height:1px;color:#e5e5e5}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled:before{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.117647),0 1px 4px rgba(0,0,0,.117647)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:0 0;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%,0)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translate(0,-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-input:before{content:' ';position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:' ';position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translateX(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{color:inherit;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all;box-sizing:content-box!important}uni-textarea[hidden]{display:none}.uni-textarea-compute,.uni-textarea-line,.uni-textarea-placeholder,.uni-textarea-textarea,.uni-textarea-wrapper{outline:0;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-compute,.uni-textarea-line,.uni-textarea-placeholder,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:grey;overflow:hidden}.uni-textarea-compute,.uni-textarea-line{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:0 0;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} \ No newline at end of file diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index cd58be1ee52..17f07e9c1c7 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -1,18717 +1 @@ -(function(factory) { - typeof define === "function" && define.amd ? define(factory) : factory(); -})(function() { - "use strict"; - var base = "* {\n margin: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-tap-highlight-color: transparent;\n}\n\nhtml,\nbody {\n -webkit-user-select: none;\n user-select: none;\n width: 100%;\n}\n\nhtml {\n height: 100%;\n height: 100vh;\n width: 100%;\n width: 100vw;\n}\n\nbody {\n overflow-x: hidden;\n background-color: white;\n}\n\ninput[type='search']::-webkit-search-cancel-button {\n display: none;\n}\n\n.uni-loading,\nuni-button[loading]:before {\n background: transparent\n url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=')\n no-repeat;\n}\n\n.uni-loading {\n width: 20px;\n height: 20px;\n display: inline-block;\n vertical-align: middle;\n animation: uni-loading 1s steps(12, end) infinite;\n background-size: 100%;\n}\n\n@keyframes uni-loading {\n 0% {\n transform: rotate3d(0, 0, 1, 0deg);\n }\n\n 100% {\n transform: rotate3d(0, 0, 1, 360deg);\n }\n}\n"; - var nvue = "[nvue] uni-view,\n[nvue] uni-label,\n[nvue] uni-swiper-item,\n[nvue] uni-scroll-view {\n display: flex;\n flex-shrink: 0;\n flex-grow: 0;\n flex-basis: auto;\n align-items: stretch;\n align-content: flex-start;\n}\n\n[nvue] uni-button {\n margin: 0;\n}\n\n[nvue-dir-row] uni-view,\n[nvue-dir-row] uni-label,\n[nvue-dir-row] uni-swiper-item {\n flex-direction: row;\n}\n\n[nvue-dir-column] uni-view,\n[nvue-dir-column] uni-label,\n[nvue-dir-column] uni-swiper-item {\n flex-direction: column;\n}\n\n[nvue-dir-row-reverse] uni-view,\n[nvue-dir-row-reverse] uni-label,\n[nvue-dir-row-reverse] uni-swiper-item {\n flex-direction: row-reverse;\n}\n\n[nvue-dir-column-reverse] uni-view,\n[nvue-dir-column-reverse] uni-label,\n[nvue-dir-column-reverse] uni-swiper-item {\n flex-direction: column-reverse;\n}\n\n[nvue] uni-view,\n[nvue] uni-image,\n[nvue] uni-input,\n[nvue] uni-scroll-view,\n[nvue] uni-swiper,\n[nvue] uni-swiper-item,\n[nvue] uni-text,\n[nvue] uni-textarea,\n[nvue] uni-video {\n position: relative;\n border: 0px solid #000000;\n box-sizing: border-box;\n}\n\n[nvue] uni-swiper-item {\n position: absolute;\n}\n"; - var resizeSensor = "@keyframes once-show {\n from {\n top: 0;\n }\n}\nuni-resize-sensor,\nuni-resize-sensor > div {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n}\nuni-resize-sensor {\n display: block;\n z-index: -1;\n visibility: hidden;\n animation: once-show 1ms;\n}\nuni-resize-sensor > div > div {\n position: absolute;\n left: 0;\n top: 0;\n}\nuni-resize-sensor > div:first-child > div {\n width: 100000px;\n height: 100000px;\n}\nuni-resize-sensor > div:last-child > div {\n width: 200%;\n height: 200%;\n}\n"; - var _wks = { exports: {} }; - var _shared = { exports: {} }; - var _core = { exports: {} }; - var core$2 = _core.exports = { - version: "2.6.12" - }; - if (typeof __e == "number") - __e = core$2; - var _global = { exports: {} }; - var window$5 = _global.exports = typeof window$5 != "undefined" && window$5.Math == Math ? window$5 : typeof self != "undefined" && self.Math == Math ? self : Function("return this")(); - if (typeof __g == "number") - __g = window$5; - var core$1 = _core.exports; - var window$4 = _global.exports; - var SHARED = "__core-js_shared__"; - var store$1 = window$4[SHARED] || (window$4[SHARED] = {}); - (_shared.exports = function(key2, value) { - return store$1[key2] || (store$1[key2] = value !== void 0 ? value : {}); - })("versions", []).push({ - version: core$1.version, - mode: "window", - copyright: "\xA9 2020 Denis Pushkarev (zloirock.ru)" - }); - var id$1 = 0; - var px = Math.random(); - var _uid = function(key2) { - return "Symbol(".concat(key2 === void 0 ? "" : key2, ")_", (++id$1 + px).toString(36)); - }; - var store = _shared.exports("wks"); - var uid$4 = _uid; - var Symbol$1 = _global.exports.Symbol; - var USE_SYMBOL = typeof Symbol$1 == "function"; - var $exports = _wks.exports = function(name) { - return store[name] || (store[name] = USE_SYMBOL && Symbol$1[name] || (USE_SYMBOL ? Symbol$1 : uid$4)("Symbol." + name)); - }; - $exports.store = store; - var _objectDp = {}; - var _isObject = function(it) { - return typeof it === "object" ? it !== null : typeof it === "function"; - }; - var isObject$4 = _isObject; - var _anObject = function(it) { - if (!isObject$4(it)) - throw TypeError(it + " is not an object!"); - return it; - }; - var _fails = function(exec) { - try { - return !!exec(); - } catch (e2) { - return true; - } - }; - var _descriptors = !_fails(function() { - return Object.defineProperty({}, "a", { - get: function() { - return 7; - } - }).a != 7; - }); - var isObject$3 = _isObject; - var document$2 = _global.exports.document; - var is = isObject$3(document$2) && isObject$3(document$2.createElement); - var _domCreate = function(it) { - return is ? document$2.createElement(it) : {}; - }; - var _ie8DomDefine = !_descriptors && !_fails(function() { - return Object.defineProperty(_domCreate("div"), "a", { - get: function() { - return 7; - } - }).a != 7; - }); - var isObject$2 = _isObject; - var _toPrimitive = function(it, S) { - if (!isObject$2(it)) - return it; - var fn, val; - if (S && typeof (fn = it.toString) == "function" && !isObject$2(val = fn.call(it))) - return val; - if (typeof (fn = it.valueOf) == "function" && !isObject$2(val = fn.call(it))) - return val; - if (!S && typeof (fn = it.toString) == "function" && !isObject$2(val = fn.call(it))) - return val; - throw TypeError("Can't convert object to primitive value"); - }; - var anObject$2 = _anObject; - var IE8_DOM_DEFINE = _ie8DomDefine; - var toPrimitive = _toPrimitive; - var dP$2 = Object.defineProperty; - _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject$2(O); - P = toPrimitive(P, true); - anObject$2(Attributes); - if (IE8_DOM_DEFINE) - try { - return dP$2(O, P, Attributes); - } catch (e2) { - } - if ("get" in Attributes || "set" in Attributes) - throw TypeError("Accessors not supported!"); - if ("value" in Attributes) - O[P] = Attributes.value; - return O; - }; - var _propertyDesc = function(bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value - }; - }; - var dP$1 = _objectDp; - var createDesc = _propertyDesc; - var _hide = _descriptors ? function(object, key2, value) { - return dP$1.f(object, key2, createDesc(1, value)); - } : function(object, key2, value) { - object[key2] = value; - return object; - }; - var UNSCOPABLES = _wks.exports("unscopables"); - var ArrayProto = Array.prototype; - if (ArrayProto[UNSCOPABLES] == void 0) - _hide(ArrayProto, UNSCOPABLES, {}); - var _addToUnscopables = function(key2) { - ArrayProto[UNSCOPABLES][key2] = true; - }; - var _iterStep = function(done, value) { - return { - value, - done: !!done - }; - }; - var _iterators = {}; - var toString = {}.toString; - var _cof = function(it) { - return toString.call(it).slice(8, -1); - }; - var cof = _cof; - var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) { - return cof(it) == "String" ? it.split("") : Object(it); - }; - var _defined = function(it) { - if (it == void 0) - throw TypeError("Can't call method on " + it); - return it; - }; - var IObject = _iobject; - var defined$1 = _defined; - var _toIobject = function(it) { - return IObject(defined$1(it)); - }; - var _redefine = { exports: {} }; - var hasOwnProperty$2 = {}.hasOwnProperty; - var _has = function(it, key2) { - return hasOwnProperty$2.call(it, key2); - }; - var _functionToString = _shared.exports("native-function-to-string", Function.toString); - var window$3 = _global.exports; - var hide$3 = _hide; - var has$5 = _has; - var SRC = _uid("src"); - var $toString = _functionToString; - var TO_STRING = "toString"; - var TPL = ("" + $toString).split(TO_STRING); - _core.exports.inspectSource = function(it) { - return $toString.call(it); - }; - (_redefine.exports = function(O, key2, val, safe) { - var isFunction2 = typeof val == "function"; - if (isFunction2) - has$5(val, "name") || hide$3(val, "name", key2); - if (O[key2] === val) - return; - if (isFunction2) - has$5(val, SRC) || hide$3(val, SRC, O[key2] ? "" + O[key2] : TPL.join(String(key2))); - if (O === window$3) { - O[key2] = val; - } else if (!safe) { - delete O[key2]; - hide$3(O, key2, val); - } else if (O[key2]) { - O[key2] = val; - } else { - hide$3(O, key2, val); - } - })(Function.prototype, TO_STRING, function toString2() { - return typeof this == "function" && this[SRC] || $toString.call(this); - }); - var _aFunction = function(it) { - if (typeof it != "function") - throw TypeError(it + " is not a function!"); - return it; - }; - var aFunction$1 = _aFunction; - var _ctx = function(fn, that, length) { - aFunction$1(fn); - if (that === void 0) - return fn; - switch (length) { - case 1: - return function(a2) { - return fn.call(that, a2); - }; - case 2: - return function(a2, b) { - return fn.call(that, a2, b); - }; - case 3: - return function(a2, b, c) { - return fn.call(that, a2, b, c); - }; - } - return function() { - return fn.apply(that, arguments); - }; - }; - var window$2 = _global.exports; - var core = _core.exports; - var hide$2 = _hide; - var redefine$2 = _redefine.exports; - var ctx = _ctx; - var PROTOTYPE$1 = "prototype"; - var $export$3 = function(type, name, source) { - var IS_FORCED = type & $export$3.F; - var IS_GLOBAL = type & $export$3.G; - var IS_STATIC = type & $export$3.S; - var IS_PROTO = type & $export$3.P; - var IS_BIND = type & $export$3.B; - var target = IS_GLOBAL ? window$2 : IS_STATIC ? window$2[name] || (window$2[name] = {}) : (window$2[name] || {})[PROTOTYPE$1]; - var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); - var expProto = exports[PROTOTYPE$1] || (exports[PROTOTYPE$1] = {}); - var key2, own, out2, exp; - if (IS_GLOBAL) - source = name; - for (key2 in source) { - own = !IS_FORCED && target && target[key2] !== void 0; - out2 = (own ? target : source)[key2]; - exp = IS_BIND && own ? ctx(out2, window$2) : IS_PROTO && typeof out2 == "function" ? ctx(Function.call, out2) : out2; - if (target) - redefine$2(target, key2, out2, type & $export$3.U); - if (exports[key2] != out2) - hide$2(exports, key2, exp); - if (IS_PROTO && expProto[key2] != out2) - expProto[key2] = out2; - } - }; - window$2.core = core; - $export$3.F = 1; - $export$3.G = 2; - $export$3.S = 4; - $export$3.P = 8; - $export$3.B = 16; - $export$3.W = 32; - $export$3.U = 64; - $export$3.R = 128; - var _export = $export$3; - var ceil = Math.ceil; - var floor = Math.floor; - var _toInteger = function(it) { - return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); - }; - var toInteger$1 = _toInteger; - var min$1 = Math.min; - var _toLength = function(it) { - return it > 0 ? min$1(toInteger$1(it), 9007199254740991) : 0; - }; - var toInteger = _toInteger; - var max = Math.max; - var min = Math.min; - var _toAbsoluteIndex = function(index2, length) { - index2 = toInteger(index2); - return index2 < 0 ? max(index2 + length, 0) : min(index2, length); - }; - var toIObject$3 = _toIobject; - var toLength = _toLength; - var toAbsoluteIndex = _toAbsoluteIndex; - var _arrayIncludes = function(IS_INCLUDES) { - return function($this, el, fromIndex) { - var O = toIObject$3($this); - var length = toLength(O.length); - var index2 = toAbsoluteIndex(fromIndex, length); - var value; - if (IS_INCLUDES && el != el) - while (length > index2) { - value = O[index2++]; - if (value != value) - return true; - } - else - for (; length > index2; index2++) { - if (IS_INCLUDES || index2 in O) { - if (O[index2] === el) - return IS_INCLUDES || index2 || 0; - } - } - return !IS_INCLUDES && -1; - }; - }; - var shared = _shared.exports("keys"); - var uid$3 = _uid; - var _sharedKey = function(key2) { - return shared[key2] || (shared[key2] = uid$3(key2)); - }; - var has$4 = _has; - var toIObject$2 = _toIobject; - var arrayIndexOf = _arrayIncludes(false); - var IE_PROTO$2 = _sharedKey("IE_PROTO"); - var _objectKeysInternal = function(object, names) { - var O = toIObject$2(object); - var i2 = 0; - var result = []; - var key2; - for (key2 in O) { - if (key2 != IE_PROTO$2) - has$4(O, key2) && result.push(key2); - } - while (names.length > i2) { - if (has$4(O, key2 = names[i2++])) { - ~arrayIndexOf(result, key2) || result.push(key2); - } - } - return result; - }; - var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","); - var $keys = _objectKeysInternal; - var enumBugKeys$1 = _enumBugKeys; - var _objectKeys = Object.keys || function keys(O) { - return $keys(O, enumBugKeys$1); - }; - var dP = _objectDp; - var anObject$1 = _anObject; - var getKeys$2 = _objectKeys; - var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) { - anObject$1(O); - var keys = getKeys$2(Properties); - var length = keys.length; - var i2 = 0; - var P; - while (length > i2) { - dP.f(O, P = keys[i2++], Properties[P]); - } - return O; - }; - var document$1 = _global.exports.document; - var _html = document$1 && document$1.documentElement; - var anObject = _anObject; - var dPs = _objectDps; - var enumBugKeys = _enumBugKeys; - var IE_PROTO$1 = _sharedKey("IE_PROTO"); - var Empty = function() { - }; - var PROTOTYPE = "prototype"; - var createDict = function() { - var iframe = _domCreate("iframe"); - var i2 = enumBugKeys.length; - var lt = "<"; - var gt = ">"; - var iframeDocument; - iframe.style.display = "none"; - _html.appendChild(iframe); - iframe.src = "javascript:"; - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt); - iframeDocument.close(); - createDict = iframeDocument.F; - while (i2--) { - delete createDict[PROTOTYPE][enumBugKeys[i2]]; - } - return createDict(); - }; - var _objectCreate = Object.create || function create2(O, Properties) { - var result; - if (O !== null) { - Empty[PROTOTYPE] = anObject(O); - result = new Empty(); - Empty[PROTOTYPE] = null; - result[IE_PROTO$1] = O; - } else - result = createDict(); - return Properties === void 0 ? result : dPs(result, Properties); - }; - var def$1 = _objectDp.f; - var has$3 = _has; - var TAG = _wks.exports("toStringTag"); - var _setToStringTag = function(it, tag, stat) { - if (it && !has$3(it = stat ? it : it.prototype, TAG)) - def$1(it, TAG, { - configurable: true, - value: tag - }); - }; - var create = _objectCreate; - var descriptor = _propertyDesc; - var setToStringTag$1 = _setToStringTag; - var IteratorPrototype = {}; - _hide(IteratorPrototype, _wks.exports("iterator"), function() { - return this; - }); - var _iterCreate = function(Constructor, NAME2, next) { - Constructor.prototype = create(IteratorPrototype, { - next: descriptor(1, next) - }); - setToStringTag$1(Constructor, NAME2 + " Iterator"); - }; - var defined = _defined; - var _toObject = function(it) { - return Object(defined(it)); - }; - var has$2 = _has; - var toObject$1 = _toObject; - var IE_PROTO = _sharedKey("IE_PROTO"); - var ObjectProto = Object.prototype; - var _objectGpo = Object.getPrototypeOf || function(O) { - O = toObject$1(O); - if (has$2(O, IE_PROTO)) - return O[IE_PROTO]; - if (typeof O.constructor == "function" && O instanceof O.constructor) { - return O.constructor.prototype; - } - return O instanceof Object ? ObjectProto : null; - }; - var $export$2 = _export; - var redefine$1 = _redefine.exports; - var hide$1 = _hide; - var Iterators$2 = _iterators; - var $iterCreate = _iterCreate; - var setToStringTag = _setToStringTag; - var getPrototypeOf = _objectGpo; - var ITERATOR$1 = _wks.exports("iterator"); - var BUGGY = !([].keys && "next" in [].keys()); - var FF_ITERATOR = "@@iterator"; - var KEYS = "keys"; - var VALUES$1 = "values"; - var returnThis = function() { - return this; - }; - var _iterDefine = function(Base, NAME2, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME2, next); - var getMethod = function(kind) { - if (!BUGGY && kind in proto2) - return proto2[kind]; - switch (kind) { - case KEYS: - return function keys() { - return new Constructor(this, kind); - }; - case VALUES$1: - return function values() { - return new Constructor(this, kind); - }; - } - return function entries2() { - return new Constructor(this, kind); - }; - }; - var TAG2 = NAME2 + " Iterator"; - var DEF_VALUES = DEFAULT == VALUES$1; - var VALUES_BUG = false; - var proto2 = Base.prototype; - var $native = proto2[ITERATOR$1] || proto2[FF_ITERATOR] || DEFAULT && proto2[DEFAULT]; - var $default = $native || getMethod(DEFAULT); - var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod("entries") : void 0; - var $anyNative = NAME2 == "Array" ? proto2.entries || $native : $native; - var methods2, key2, IteratorPrototype2; - if ($anyNative) { - IteratorPrototype2 = getPrototypeOf($anyNative.call(new Base())); - if (IteratorPrototype2 !== Object.prototype && IteratorPrototype2.next) { - setToStringTag(IteratorPrototype2, TAG2, true); - if (typeof IteratorPrototype2[ITERATOR$1] != "function") - hide$1(IteratorPrototype2, ITERATOR$1, returnThis); - } - } - if (DEF_VALUES && $native && $native.name !== VALUES$1) { - VALUES_BUG = true; - $default = function values() { - return $native.call(this); - }; - } - if (BUGGY || VALUES_BUG || !proto2[ITERATOR$1]) { - hide$1(proto2, ITERATOR$1, $default); - } - Iterators$2[NAME2] = $default; - Iterators$2[TAG2] = returnThis; - if (DEFAULT) { - methods2 = { - values: DEF_VALUES ? $default : getMethod(VALUES$1), - keys: IS_SET ? $default : getMethod(KEYS), - entries: $entries - }; - if (FORCED) - for (key2 in methods2) { - if (!(key2 in proto2)) - redefine$1(proto2, key2, methods2[key2]); - } - else - $export$2($export$2.P + $export$2.F * (BUGGY || VALUES_BUG), NAME2, methods2); - } - return methods2; - }; - var addToUnscopables = _addToUnscopables; - var step = _iterStep; - var Iterators$1 = _iterators; - var toIObject$1 = _toIobject; - var es6_array_iterator = _iterDefine(Array, "Array", function(iterated, kind) { - this._t = toIObject$1(iterated); - this._i = 0; - this._k = kind; - }, function() { - var O = this._t; - var kind = this._k; - var index2 = this._i++; - if (!O || index2 >= O.length) { - this._t = void 0; - return step(1); - } - if (kind == "keys") - return step(0, index2); - if (kind == "values") - return step(0, O[index2]); - return step(0, [index2, O[index2]]); - }, "values"); - Iterators$1.Arguments = Iterators$1.Array; - addToUnscopables("keys"); - addToUnscopables("values"); - addToUnscopables("entries"); - var $iterators = es6_array_iterator; - var getKeys$1 = _objectKeys; - var redefine = _redefine.exports; - var window$1 = _global.exports; - var hide = _hide; - var Iterators = _iterators; - var wks = _wks.exports; - var ITERATOR = wks("iterator"); - var TO_STRING_TAG = wks("toStringTag"); - var ArrayValues = Iterators.Array; - var DOMIterables = { - CSSRuleList: true, - CSSStyleDeclaration: false, - CSSValueList: false, - ClientRectList: false, - DOMRectList: false, - DOMStringList: false, - DOMTokenList: true, - DataTransferItemList: false, - FileList: false, - HTMLAllCollection: false, - HTMLCollection: false, - HTMLFormElement: false, - HTMLSelectElement: false, - MediaList: true, - MimeTypeArray: false, - NamedNodeMap: false, - NodeList: true, - PaintRequestList: false, - Plugin: false, - PluginArray: false, - SVGLengthList: false, - SVGNumberList: false, - SVGPathSegList: false, - SVGPointList: false, - SVGStringList: false, - SVGTransformList: false, - SourceBufferList: false, - StyleSheetList: true, - TextTrackCueList: false, - TextTrackList: false, - TouchList: false - }; - for (var collections = getKeys$1(DOMIterables), i = 0; i < collections.length; i++) { - var NAME = collections[i]; - var explicit = DOMIterables[NAME]; - var Collection = window$1[NAME]; - var proto = Collection && Collection.prototype; - var key; - if (proto) { - if (!proto[ITERATOR]) - hide(proto, ITERATOR, ArrayValues); - if (!proto[TO_STRING_TAG]) - hide(proto, TO_STRING_TAG, NAME); - Iterators[NAME] = ArrayValues; - if (explicit) - for (key in $iterators) { - if (!proto[key]) - redefine(proto, key, $iterators[key], true); - } - } - } - function makeMap$1(str, expectsLowerCase) { - var map2 = Object.create(null); - var list2 = str.split(","); - for (var i2 = 0; i2 < list2.length; i2++) { - map2[list2[i2]] = true; - } - return expectsLowerCase ? (val) => !!map2[val.toLowerCase()] : (val) => !!map2[val]; - } - var GLOBALS_WHITE_LISTED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"; - var isGloballyWhitelisted = /* @__PURE__ */ makeMap$1(GLOBALS_WHITE_LISTED); - var specialBooleanAttrs = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"; - var isSpecialBooleanAttr = /* @__PURE__ */ makeMap$1(specialBooleanAttrs); - var isNoUnitNumericStyleProp = /* @__PURE__ */ makeMap$1("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"); - function normalizeStyle(value) { - if (isArray(value)) { - var res = {}; - for (var i2 = 0; i2 < value.length; i2++) { - var item = value[i2]; - var normalized = normalizeStyle(isString(item) ? parseStringStyle(item) : item); - if (normalized) { - for (var key2 in normalized) { - res[key2] = normalized[key2]; - } - } - } - return res; - } else if (isObject$1(value)) { - return value; - } - } - var listDelimiterRE = /;(?![^(]*\))/g; - var propertyDelimiterRE = /:(.+)/; - function parseStringStyle(cssText) { - var ret = {}; - cssText.split(listDelimiterRE).forEach((item) => { - if (item) { - var tmp = item.split(propertyDelimiterRE); - tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); - } - }); - return ret; - } - function stringifyStyle(styles) { - var ret = ""; - if (!styles) { - return ret; - } - for (var key2 in styles) { - var value = styles[key2]; - var normalizedKey = key2.startsWith("--") ? key2 : hyphenate(key2); - if (isString(value) || typeof value === "number" && isNoUnitNumericStyleProp(normalizedKey)) { - ret += "".concat(normalizedKey, ":").concat(value, ";"); - } - } - return ret; - } - function normalizeClass(value) { - var res = ""; - if (isString(value)) { - res = value; - } else if (isArray(value)) { - for (var i2 = 0; i2 < value.length; i2++) { - var normalized = normalizeClass(value[i2]); - if (normalized) { - res += normalized + " "; - } - } - } else if (isObject$1(value)) { - for (var name in value) { - if (value[name]) { - res += name + " "; - } - } - } - return res.trim(); - } - var EMPTY_OBJ = {}; - var EMPTY_ARR = []; - var NOOP = () => { - }; - var NO = () => false; - var onRE = /^on[^a-z]/; - var isOn = (key2) => onRE.test(key2); - var isModelListener = (key2) => key2.startsWith("onUpdate:"); - var extend = Object.assign; - var remove = (arr, el) => { - var i2 = arr.indexOf(el); - if (i2 > -1) { - arr.splice(i2, 1); - } - }; - var hasOwnProperty$1 = Object.prototype.hasOwnProperty; - var hasOwn$1 = (val, key2) => hasOwnProperty$1.call(val, key2); - var isArray = Array.isArray; - var isMap = (val) => toTypeString(val) === "[object Map]"; - var isSet = (val) => toTypeString(val) === "[object Set]"; - var isFunction = (val) => typeof val === "function"; - var isString = (val) => typeof val === "string"; - var isSymbol = (val) => typeof val === "symbol"; - var isObject$1 = (val) => val !== null && typeof val === "object"; - var isPromise = (val) => { - return isObject$1(val) && isFunction(val.then) && isFunction(val.catch); - }; - var objectToString = Object.prototype.toString; - var toTypeString = (value) => objectToString.call(value); - var toRawType = (value) => { - return toTypeString(value).slice(8, -1); - }; - var isPlainObject = (val) => toTypeString(val) === "[object Object]"; - var isIntegerKey = (key2) => isString(key2) && key2 !== "NaN" && key2[0] !== "-" && "" + parseInt(key2, 10) === key2; - var isReservedProp = /* @__PURE__ */ makeMap$1(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"); - var cacheStringFunction$1 = (fn) => { - var cache2 = Object.create(null); - return (str) => { - var hit = cache2[str]; - return hit || (cache2[str] = fn(str)); - }; - }; - var camelizeRE = /-(\w)/g; - var camelize = cacheStringFunction$1((str) => { - return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : ""); - }); - var hyphenateRE = /\B([A-Z])/g; - var hyphenate = cacheStringFunction$1((str) => str.replace(hyphenateRE, "-$1").toLowerCase()); - var capitalize = cacheStringFunction$1((str) => str.charAt(0).toUpperCase() + str.slice(1)); - var toHandlerKey = cacheStringFunction$1((str) => str ? "on".concat(capitalize(str)) : ""); - var hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue); - var invokeArrayFns = (fns, arg) => { - for (var i2 = 0; i2 < fns.length; i2++) { - fns[i2](arg); - } - }; - var def = (obj, key2, value) => { - Object.defineProperty(obj, key2, { - configurable: true, - enumerable: false, - value - }); - }; - var toNumber = (val) => { - var n = parseFloat(val); - return isNaN(n) ? val : n; - }; - var lastLogTime = 0; - function formatLog(module, ...args) { - var now = Date.now(); - var diff = lastLogTime ? now - lastLogTime : 0; - lastLogTime = now; - return "[".concat(now, "][").concat(diff, "ms][").concat(module, "]\uFF1A").concat(args.map((arg) => JSON.stringify(arg)).join(" ")); - } - function getCustomDataset(el) { - return extend({}, el.dataset, el.__uniDataset); - } - function passive(passive2) { - return { - passive: passive2 - }; - } - function normalizeTarget(el) { - var { - id: id2, - offsetTop, - offsetLeft - } = el; - return { - id: id2, - dataset: getCustomDataset(el), - offsetTop, - offsetLeft - }; - } - function addFont(family, source, desc) { - var fonts = document.fonts; - if (fonts) { - var fontFace = new FontFace(family, source, desc); - return fontFace.load().then(() => { - fonts.add(fontFace); - }); - } - return new Promise((resolve) => { - var style = document.createElement("style"); - var values = []; - if (desc) { - var { - style: _style, - weight, - stretch, - unicodeRange, - variant, - featureSettings - } = desc; - _style && values.push("font-style:".concat(_style)); - weight && values.push("font-weight:".concat(weight)); - stretch && values.push("font-stretch:".concat(stretch)); - unicodeRange && values.push("unicode-range:".concat(unicodeRange)); - variant && values.push("font-variant:".concat(variant)); - featureSettings && values.push("font-feature-settings:".concat(featureSettings)); - } - style.innerText = '@font-face{font-family:"'.concat(family, '";src:').concat(source, ";").concat(values.join(";"), "}"); - document.head.appendChild(style); - resolve(); - }); - } - function scrollTo(scrollTop, duration) { - if (isString(scrollTop)) { - var el = document.querySelector(scrollTop); - if (el) { - scrollTop = el.getBoundingClientRect().top + window.pageYOffset; - } - } - if (scrollTop < 0) { - scrollTop = 0; - } - var documentElement = document.documentElement; - var { - clientHeight, - scrollHeight - } = documentElement; - scrollTop = Math.min(scrollTop, scrollHeight - clientHeight); - if (duration === 0) { - documentElement.scrollTop = document.body.scrollTop = scrollTop; - return; - } - if (window.scrollY === scrollTop) { - return; - } - var scrollTo2 = (duration2) => { - if (duration2 <= 0) { - window.scrollTo(0, scrollTop); - return; - } - var distaince = scrollTop - window.scrollY; - requestAnimationFrame(function() { - window.scrollTo(0, window.scrollY + distaince / duration2 * 10); - scrollTo2(duration2 - 10); - }); - }; - scrollTo2(duration); - } - function plusReady(callback) { - if (typeof callback !== "function") { - return; - } - if (window.plus) { - return callback(); - } - document.addEventListener("plusready", callback); - } - function normalizeEventType(type, options) { - if (options) { - if (options.capture) { - type += "Capture"; - } - if (options.once) { - type += "Once"; - } - if (options.passive) { - type += "Passive"; - } - } - return "on".concat(capitalize(camelize(type))); - } - var optionsModifierRE$1 = /(?:Once|Passive|Capture)$/; - function parseEventName(name) { - var options; - if (optionsModifierRE$1.test(name)) { - options = {}; - var m; - while (m = name.match(optionsModifierRE$1)) { - name = name.slice(0, name.length - m[0].length); - options[m[0].toLowerCase()] = true; - } - } - return [hyphenate(name.slice(2)), options]; - } - var EventModifierFlags = { - stop: 1, - prevent: 1 << 1, - self: 1 << 2 - }; - var ATTR_CLASS = "class"; - var ATTR_STYLE = "style"; - var ATTR_INNER_HTML = "innerHTML"; - var ATTR_TEXT_CONTENT = "textContent"; - var ATTR_V_SHOW = ".vShow"; - var ATTR_V_OWNER_ID = ".vOwnerId"; - var ATTR_V_RENDERJS = ".vRenderjs"; - var ATTR_CHANGE_PREFIX = "change:"; - var ACTION_TYPE_PAGE_CREATE = 1; - var ACTION_TYPE_PAGE_CREATED = 2; - var ACTION_TYPE_CREATE = 3; - var ACTION_TYPE_REMOVE = 5; - var ACTION_TYPE_SET_ATTRIBUTE = 6; - var ACTION_TYPE_REMOVE_ATTRIBUTE = 7; - var ACTION_TYPE_ADD_EVENT = 8; - var ACTION_TYPE_REMOVE_EVENT = 9; - var ACTION_TYPE_SET_TEXT = 10; - var ACTION_TYPE_ADD_WXS_EVENT = 12; - var ACTION_TYPE_PAGE_SCROLL = 15; - var ACTION_TYPE_EVENT = 20; - function cache(fn) { - var cache2 = Object.create(null); - return (str) => { - var hit = cache2[str]; - return hit || (cache2[str] = fn(str)); - }; - } - function cacheStringFunction(fn) { - return cache(fn); - } - function once(fn, ctx2 = null) { - var res; - return (...args) => { - if (fn) { - res = fn.apply(ctx2, args); - fn = null; - } - return res; - }; - } - function getValueByDataPath(obj, path) { - var parts = path.split("."); - var key2 = parts[0]; - if (!obj) { - obj = {}; - } - if (parts.length === 1) { - return obj[key2]; - } - return getValueByDataPath(obj[key2], parts.slice(1).join(".")); - } - function debounce(fn, delay) { - var timeout; - var newFn = function() { - clearTimeout(timeout); - var timerFn = () => fn.apply(this, arguments); - timeout = setTimeout(timerFn, delay); - }; - newFn.cancel = function() { - clearTimeout(timeout); - }; - return newFn; - } - var NAVBAR_HEIGHT = 44; - var PRIMARY_COLOR = "#007aff"; - var SCHEME_RE = /^([a-z-]+:)?\/\//i; - var DATA_RE = /^data:.*,.*/; - var WXS_PROTOCOL = "wxs://"; - var JSON_PROTOCOL = "json://"; - var WXS_MODULES = "wxsModules"; - var RENDERJS_MODULES = "renderjsModules"; - var ON_PAGE_SCROLL = "onPageScroll"; - var ON_REACH_BOTTOM = "onReachBottom"; - var ON_WXS_INVOKE_CALL_METHOD = "onWxsInvokeCallMethod"; - var isObject = (val) => val !== null && typeof val === "object"; - class BaseFormatter { - constructor() { - this._caches = Object.create(null); - } - interpolate(message, values) { - if (!values) { - return [message]; - } - var tokens = this._caches[message]; - if (!tokens) { - tokens = parse(message); - this._caches[message] = tokens; - } - return compile(tokens, values); - } - } - var RE_TOKEN_LIST_VALUE = /^(?:\d)+/; - var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/; - function parse(format) { - var tokens = []; - var position = 0; - var text2 = ""; - while (position < format.length) { - var char = format[position++]; - if (char === "{") { - if (text2) { - tokens.push({ - type: "text", - value: text2 - }); - } - text2 = ""; - var sub = ""; - char = format[position++]; - while (char !== void 0 && char !== "}") { - sub += char; - char = format[position++]; - } - var isClosed = char === "}"; - var type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown"; - tokens.push({ - value: sub, - type - }); - } else if (char === "%") { - if (format[position] !== "{") { - text2 += char; - } - } else { - text2 += char; - } - } - text2 && tokens.push({ - type: "text", - value: text2 - }); - return tokens; - } - function compile(tokens, values) { - var compiled = []; - var index2 = 0; - var mode2 = Array.isArray(values) ? "list" : isObject(values) ? "named" : "unknown"; - if (mode2 === "unknown") { - return compiled; - } - while (index2 < tokens.length) { - var token = tokens[index2]; - switch (token.type) { - case "text": - compiled.push(token.value); - break; - case "list": - compiled.push(values[parseInt(token.value, 10)]); - break; - case "named": - if (mode2 === "named") { - compiled.push(values[token.value]); - } - break; - } - index2++; - } - return compiled; - } - var LOCALE_ZH_HANS = "zh-Hans"; - var LOCALE_ZH_HANT = "zh-Hant"; - var LOCALE_EN = "en"; - var LOCALE_FR = "fr"; - var LOCALE_ES = "es"; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var hasOwn = (val, key2) => hasOwnProperty.call(val, key2); - var defaultFormatter = new BaseFormatter(); - function include(str, parts) { - return !!parts.find((part) => str.indexOf(part) !== -1); - } - function startsWith(str, parts) { - return parts.find((part) => str.indexOf(part) === 0); - } - function normalizeLocale(locale, messages) { - if (!locale) { - return; - } - locale = locale.trim().replace(/_/g, "-"); - if (messages[locale]) { - return locale; - } - locale = locale.toLowerCase(); - if (locale.indexOf("zh") === 0) { - if (locale.indexOf("-hans") !== -1) { - return LOCALE_ZH_HANS; - } - if (locale.indexOf("-hant") !== -1) { - return LOCALE_ZH_HANT; - } - if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) { - return LOCALE_ZH_HANT; - } - return LOCALE_ZH_HANS; - } - var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]); - if (lang) { - return lang; - } - } - class I18n { - constructor({ - locale, - fallbackLocale, - messages, - watcher, - formater - }) { - this.locale = LOCALE_EN; - this.fallbackLocale = LOCALE_EN; - this.message = {}; - this.messages = {}; - this.watchers = []; - if (fallbackLocale) { - this.fallbackLocale = fallbackLocale; - } - this.formater = formater || defaultFormatter; - this.messages = messages || {}; - this.setLocale(locale); - if (watcher) { - this.watchLocale(watcher); - } - } - setLocale(locale) { - var oldLocale = this.locale; - this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale; - if (!this.messages[this.locale]) { - this.messages[this.locale] = {}; - } - this.message = this.messages[this.locale]; - this.watchers.forEach((watcher) => { - watcher(this.locale, oldLocale); - }); - } - getLocale() { - return this.locale; - } - watchLocale(fn) { - var index2 = this.watchers.push(fn) - 1; - return () => { - this.watchers.splice(index2, 1); - }; - } - add(locale, message) { - if (this.messages[locale]) { - Object.assign(this.messages[locale], message); - } else { - this.messages[locale] = message; - } - } - t(key2, locale, values) { - var message = this.message; - if (typeof locale === "string") { - locale = normalizeLocale(locale, this.messages); - locale && (message = this.messages[locale]); - } else { - values = locale; - } - if (!hasOwn(message, key2)) { - console.warn("Cannot translate the value of keypath ".concat(key2, ". Use the value of keypath as default.")); - return key2; - } - return this.formater.interpolate(message[key2], values).join(""); - } - } - function initLocaleWatcher(appVm, i18n2) { - appVm.$i18n && appVm.$i18n.vm.$watch("locale", (newLocale) => { - i18n2.setLocale(newLocale); - }, { - immediate: true - }); - } - function initVueI18n(locale = LOCALE_EN, messages = {}, fallbackLocale = LOCALE_EN) { - if (typeof locale !== "string") { - [locale, messages] = [messages, locale]; - } - if (typeof locale !== "string") { - locale = fallbackLocale; - } - var i18n2 = new I18n({ - locale: locale || fallbackLocale, - fallbackLocale, - messages - }); - var t2 = (key2, values) => { - if (typeof getApp !== "function") { - t2 = function(key3, values2) { - return i18n2.t(key3, values2); - }; - } else { - var appVm = getApp().$vm; - if (!appVm.$t || !appVm.$i18n) { - t2 = function(key3, values2) { - return i18n2.t(key3, values2); - }; - } else { - initLocaleWatcher(appVm, i18n2); - t2 = function(key3, values2) { - var $i18n = appVm.$i18n; - var silentTranslationWarn = $i18n.silentTranslationWarn; - $i18n.silentTranslationWarn = true; - var msg = appVm.$t(key3, values2); - $i18n.silentTranslationWarn = silentTranslationWarn; - if (msg !== key3) { - return msg; - } - return i18n2.t(key3, $i18n.locale, values2); - }; - } - } - return t2(key2, values); - }; - return { - i18n: i18n2, - t(key2, values) { - return t2(key2, values); - }, - add(locale2, message) { - return i18n2.add(locale2, message); - }, - getLocale() { - return i18n2.getLocale(); - }, - setLocale(newLocale) { - return i18n2.setLocale(newLocale); - } - }; - } - var i18n; - function useI18n() { - if (!i18n) { - var language; - { - language = plus.os.language; - } - i18n = initVueI18n(language); - } - return i18n; - } - function normalizeMessages(namespace, messages) { - return Object.keys(messages).reduce((res, name) => { - res[namespace + name] = messages[name]; - return res; - }, {}); - } - var initI18nPickerMsgsOnce = /* @__PURE__ */ once(() => { - var name = "uni.picker."; - { - useI18n().add(LOCALE_EN, normalizeMessages(name, { - done: "Done", - cancel: "Cancel" - })); - } - { - useI18n().add(LOCALE_ES, normalizeMessages(name, { - done: "OK", - cancel: "Cancelar" - })); - } - { - useI18n().add(LOCALE_FR, normalizeMessages(name, { - done: "OK", - cancel: "Annuler" - })); - } - { - useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, { - done: "\u5B8C\u6210", - cancel: "\u53D6\u6D88" - })); - } - { - useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, { - done: "\u5B8C\u6210", - cancel: "\u53D6\u6D88" - })); - } - }); - var initI18nButtonMsgsOnce = /* @__PURE__ */ once(() => { - var name = "uni.button."; - { - useI18n().add(LOCALE_EN, normalizeMessages(name, { - "feedback.title": "feedback", - "feedback.send": "send" - })); - } - { - useI18n().add(LOCALE_ES, normalizeMessages(name, { - "feedback.title": "realimentaci\xF3n", - "feedback.send": "enviar" - })); - } - { - useI18n().add(LOCALE_FR, normalizeMessages(name, { - "feedback.title": "retour d'information", - "feedback.send": "envoyer" - })); - } - { - useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, { - "feedback.title": "\u95EE\u9898\u53CD\u9988", - "feedback.send": "\u53D1\u9001" - })); - } - { - useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, { - "feedback.title": "\u554F\u984C\u53CD\u994B", - "feedback.send": "\u767C\u9001" - })); - } - }); - var E = function() { - }; - E.prototype = { - on: function(name, callback, ctx2) { - var e2 = this.e || (this.e = {}); - (e2[name] || (e2[name] = [])).push({ - fn: callback, - ctx: ctx2 - }); - return this; - }, - once: function(name, callback, ctx2) { - var self2 = this; - function listener() { - self2.off(name, listener); - callback.apply(ctx2, arguments); - } - listener._ = callback; - return this.on(name, listener, ctx2); - }, - emit: function(name) { - var data = [].slice.call(arguments, 1); - var evtArr = ((this.e || (this.e = {}))[name] || []).slice(); - var i2 = 0; - var len = evtArr.length; - for (i2; i2 < len; i2++) { - evtArr[i2].fn.apply(evtArr[i2].ctx, data); - } - return this; - }, - off: function(name, callback) { - var e2 = this.e || (this.e = {}); - var evts = e2[name]; - var liveEvents = []; - if (evts && callback) { - for (var i2 = 0, len = evts.length; i2 < len; i2++) { - if (evts[i2].fn !== callback && evts[i2].fn._ !== callback) - liveEvents.push(evts[i2]); - } - } - liveEvents.length ? e2[name] = liveEvents : delete e2[name]; - return this; - } - }; - function initBridge(subscribeNamespace) { - var emitter = new E(); - return { - on(event, callback) { - return emitter.on(event, callback); - }, - once(event, callback) { - return emitter.once(event, callback); - }, - off(event, callback) { - return emitter.off(event, callback); - }, - emit(event, ...args) { - return emitter.emit(event, ...args); - }, - subscribe(event, callback, once2 = false) { - emitter[once2 ? "once" : "on"]("".concat(subscribeNamespace, ".").concat(event), callback); - }, - unsubscribe(event, callback) { - emitter.off("".concat(subscribeNamespace, ".").concat(event), callback); - }, - subscribeHandler(event, args, pageId) { - emitter.emit("".concat(subscribeNamespace, ".").concat(event), args, pageId); - } - }; - } - var INVOKE_VIEW_API = "invokeViewApi"; - var INVOKE_SERVICE_API = "invokeServiceApi"; - var invokeServiceMethodId = 1; - var invokeServiceMethod = (name, args, callback) => { - var { - subscribe, - publishHandler: publishHandler2 - } = UniViewJSBridge; - var id2 = callback ? invokeServiceMethodId++ : 0; - callback && subscribe(INVOKE_SERVICE_API + "." + id2, callback, true); - publishHandler2(INVOKE_SERVICE_API, { - id: id2, - name, - args - }); - }; - var viewMethods = Object.create(null); - function normalizeViewMethodName(pageId, name) { - return pageId + "." + name; - } - function subscribeViewMethod(pageId, wrapper2) { - UniViewJSBridge.subscribe(normalizeViewMethodName(pageId, INVOKE_VIEW_API), wrapper2 ? wrapper2(onInvokeViewMethod) : onInvokeViewMethod); - } - function registerViewMethod(pageId, name, fn) { - name = normalizeViewMethodName(pageId, name); - if (!viewMethods[name]) { - viewMethods[name] = fn; - } - } - function unregisterViewMethod(pageId, name) { - name = normalizeViewMethodName(pageId, name); - delete viewMethods[name]; - } - function onInvokeViewMethod({ - id: id2, - name, - args - }, pageId) { - name = normalizeViewMethodName(pageId, name); - var publish = (res) => { - id2 && UniViewJSBridge.publishHandler(INVOKE_VIEW_API + "." + id2, res); - }; - var handler = viewMethods[name]; - if (handler) { - handler(args, publish); - } else { - publish({}); - } - } - var ViewJSBridge = /* @__PURE__ */ extend(initBridge("service"), { - invokeServiceMethod - }); - var LONGPRESS_TIMEOUT = 350; - var LONGPRESS_THRESHOLD = 10; - var passiveOptions$2 = passive(true); - var longPressTimer; - function clearLongPressTimer() { - if (longPressTimer) { - clearTimeout(longPressTimer); - longPressTimer = null; - } - } - var startPageX = 0; - var startPageY = 0; - function touchstart(evt) { - clearLongPressTimer(); - if (evt.touches.length !== 1) { - return; - } - var { - pageX, - pageY - } = evt.touches[0]; - startPageX = pageX; - startPageY = pageY; - longPressTimer = setTimeout(function() { - var customEvent = new CustomEvent("longpress", { - bubbles: true, - cancelable: true, - target: evt.target, - currentTarget: evt.currentTarget - }); - customEvent.touches = evt.touches; - customEvent.changedTouches = evt.changedTouches; - evt.target.dispatchEvent(customEvent); - }, LONGPRESS_TIMEOUT); - } - function touchmove(evt) { - if (!longPressTimer) { - return; - } - if (evt.touches.length !== 1) { - return clearLongPressTimer(); - } - var { - pageX, - pageY - } = evt.touches[0]; - if (Math.abs(pageX - startPageX) > LONGPRESS_THRESHOLD || Math.abs(pageY - startPageY) > LONGPRESS_THRESHOLD) { - return clearLongPressTimer(); - } - } - function initLongPress() { - window.addEventListener("touchstart", touchstart, passiveOptions$2); - window.addEventListener("touchmove", touchmove, passiveOptions$2); - window.addEventListener("touchend", clearLongPressTimer, passiveOptions$2); - window.addEventListener("touchcancel", clearLongPressTimer, passiveOptions$2); - } - function checkValue$1(value, defaultValue) { - var newValue = Number(value); - return isNaN(newValue) ? defaultValue : newValue; - } - function getWindowWidth() { - var screenFix = /^Apple/.test(navigator.vendor) && typeof window.orientation === "number"; - var landscape = screenFix && Math.abs(window.orientation) === 90; - var screenWidth = screenFix ? Math[landscape ? "max" : "min"](screen.width, screen.height) : screen.width; - var windowWidth = Math.min(window.innerWidth, document.documentElement.clientWidth, screenWidth) || screenWidth; - return windowWidth; - } - function useRem() { - function updateRem() { - var config = __uniConfig.globalStyle || {}; - var maxWidth = checkValue$1(config.rpxCalcMaxDeviceWidth, 960); - var baseWidth = checkValue$1(config.rpxCalcBaseDeviceWidth, 375); - var width = getWindowWidth(); - width = width <= maxWidth ? width : baseWidth; - document.documentElement.style.fontSize = width / 23.4375 + "px"; - } - updateRem(); - document.addEventListener("DOMContentLoaded", updateRem); - window.addEventListener("load", updateRem); - window.addEventListener("resize", updateRem); - } - function initView() { - useRem(); - { - initLongPress(); - } - } - var fails$1 = _fails; - var _strictMethod = function(method, arg) { - return !!method && fails$1(function() { - arg ? method.call(null, function() { - }, 1) : method.call(null); - }); - }; - var $export$1 = _export; - var aFunction = _aFunction; - var toObject = _toObject; - var fails = _fails; - var $sort = [].sort; - var test = [1, 2, 3]; - $export$1($export$1.P + $export$1.F * (fails(function() { - test.sort(void 0); - }) || !fails(function() { - test.sort(null); - }) || !_strictMethod($sort)), "Array", { - sort: function sort(comparefn) { - return comparefn === void 0 ? $sort.call(toObject(this)) : $sort.call(toObject(this), aFunction(comparefn)); - } - }); - var targetMap = new WeakMap(); - var effectStack = []; - var activeEffect; - var ITERATE_KEY = Symbol(""); - var MAP_KEY_ITERATE_KEY = Symbol(""); - function isEffect(fn) { - return fn && fn._isEffect === true; - } - function effect(fn, options = EMPTY_OBJ) { - if (isEffect(fn)) { - fn = fn.raw; - } - var effect2 = createReactiveEffect(fn, options); - if (!options.lazy) { - effect2(); - } - return effect2; - } - function stop(effect2) { - if (effect2.active) { - cleanup(effect2); - if (effect2.options.onStop) { - effect2.options.onStop(); - } - effect2.active = false; - } - } - var uid = 0; - function createReactiveEffect(fn, options) { - var effect2 = function reactiveEffect() { - if (!effect2.active) { - return fn(); - } - if (!effectStack.includes(effect2)) { - cleanup(effect2); - try { - enableTracking(); - effectStack.push(effect2); - activeEffect = effect2; - return fn(); - } finally { - effectStack.pop(); - resetTracking(); - activeEffect = effectStack[effectStack.length - 1]; - } - } - }; - effect2.id = uid++; - effect2.allowRecurse = !!options.allowRecurse; - effect2._isEffect = true; - effect2.active = true; - effect2.raw = fn; - effect2.deps = []; - effect2.options = options; - return effect2; - } - function cleanup(effect2) { - var { - deps - } = effect2; - if (deps.length) { - for (var i2 = 0; i2 < deps.length; i2++) { - deps[i2].delete(effect2); - } - deps.length = 0; - } - } - var shouldTrack = true; - var trackStack = []; - function pauseTracking() { - trackStack.push(shouldTrack); - shouldTrack = false; - } - function enableTracking() { - trackStack.push(shouldTrack); - shouldTrack = true; - } - function resetTracking() { - var last = trackStack.pop(); - shouldTrack = last === void 0 ? true : last; - } - function track(target, type, key2) { - if (!shouldTrack || activeEffect === void 0) { - return; - } - var depsMap = targetMap.get(target); - if (!depsMap) { - targetMap.set(target, depsMap = new Map()); - } - var dep = depsMap.get(key2); - if (!dep) { - depsMap.set(key2, dep = new Set()); - } - if (!dep.has(activeEffect)) { - dep.add(activeEffect); - activeEffect.deps.push(dep); - } - } - function trigger(target, type, key2, newValue, oldValue, oldTarget) { - var depsMap = targetMap.get(target); - if (!depsMap) { - return; - } - var effects = new Set(); - var add2 = (effectsToAdd) => { - if (effectsToAdd) { - effectsToAdd.forEach((effect2) => { - if (effect2 !== activeEffect || effect2.allowRecurse) { - effects.add(effect2); - } - }); - } - }; - if (type === "clear") { - depsMap.forEach(add2); - } else if (key2 === "length" && isArray(target)) { - depsMap.forEach((dep, key3) => { - if (key3 === "length" || key3 >= newValue) { - add2(dep); - } - }); - } else { - if (key2 !== void 0) { - add2(depsMap.get(key2)); - } - switch (type) { - case "add": - if (!isArray(target)) { - add2(depsMap.get(ITERATE_KEY)); - if (isMap(target)) { - add2(depsMap.get(MAP_KEY_ITERATE_KEY)); - } - } else if (isIntegerKey(key2)) { - add2(depsMap.get("length")); - } - break; - case "delete": - if (!isArray(target)) { - add2(depsMap.get(ITERATE_KEY)); - if (isMap(target)) { - add2(depsMap.get(MAP_KEY_ITERATE_KEY)); - } - } - break; - case "set": - if (isMap(target)) { - add2(depsMap.get(ITERATE_KEY)); - } - break; - } - } - var run = (effect2) => { - if (effect2.options.scheduler) { - effect2.options.scheduler(effect2); - } else { - effect2(); - } - }; - effects.forEach(run); - } - var isNonTrackableKeys = /* @__PURE__ */ makeMap$1("__proto__,__v_isRef,__isVue"); - var builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map((key2) => Symbol[key2]).filter(isSymbol)); - var get = /* @__PURE__ */ createGetter(); - var shallowGet = /* @__PURE__ */ createGetter(false, true); - var readonlyGet = /* @__PURE__ */ createGetter(true); - var arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations(); - function createArrayInstrumentations() { - var instrumentations = {}; - ["includes", "indexOf", "lastIndexOf"].forEach((key2) => { - var method = Array.prototype[key2]; - instrumentations[key2] = function(...args) { - var arr = toRaw(this); - for (var i2 = 0, l = this.length; i2 < l; i2++) { - track(arr, "get", i2 + ""); - } - var res = method.apply(arr, args); - if (res === -1 || res === false) { - return method.apply(arr, args.map(toRaw)); - } else { - return res; - } - }; - }); - ["push", "pop", "shift", "unshift", "splice"].forEach((key2) => { - var method = Array.prototype[key2]; - instrumentations[key2] = function(...args) { - pauseTracking(); - var res = method.apply(this, args); - resetTracking(); - return res; - }; - }); - return instrumentations; - } - function createGetter(isReadonly2 = false, shallow = false) { - return function get2(target, key2, receiver) { - if (key2 === "__v_isReactive") { - return !isReadonly2; - } else if (key2 === "__v_isReadonly") { - return isReadonly2; - } else if (key2 === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) { - return target; - } - var targetIsArray = isArray(target); - if (!isReadonly2 && targetIsArray && hasOwn$1(arrayInstrumentations, key2)) { - return Reflect.get(arrayInstrumentations, key2, receiver); - } - var res = Reflect.get(target, key2, receiver); - if (isSymbol(key2) ? builtInSymbols.has(key2) : isNonTrackableKeys(key2)) { - return res; - } - if (!isReadonly2) { - track(target, "get", key2); - } - if (shallow) { - return res; - } - if (isRef(res)) { - var shouldUnwrap = !targetIsArray || !isIntegerKey(key2); - return shouldUnwrap ? res.value : res; - } - if (isObject$1(res)) { - return isReadonly2 ? readonly(res) : reactive(res); - } - return res; - }; - } - var set = /* @__PURE__ */ createSetter(); - var shallowSet = /* @__PURE__ */ createSetter(true); - function createSetter(shallow = false) { - return function set2(target, key2, value, receiver) { - var oldValue = target[key2]; - if (!shallow) { - value = toRaw(value); - oldValue = toRaw(oldValue); - if (!isArray(target) && isRef(oldValue) && !isRef(value)) { - oldValue.value = value; - return true; - } - } - var hadKey = isArray(target) && isIntegerKey(key2) ? Number(key2) < target.length : hasOwn$1(target, key2); - var result = Reflect.set(target, key2, value, receiver); - if (target === toRaw(receiver)) { - if (!hadKey) { - trigger(target, "add", key2, value); - } else if (hasChanged(value, oldValue)) { - trigger(target, "set", key2, value); - } - } - return result; - }; - } - function deleteProperty(target, key2) { - var hadKey = hasOwn$1(target, key2); - target[key2]; - var result = Reflect.deleteProperty(target, key2); - if (result && hadKey) { - trigger(target, "delete", key2, void 0); - } - return result; - } - function has(target, key2) { - var result = Reflect.has(target, key2); - if (!isSymbol(key2) || !builtInSymbols.has(key2)) { - track(target, "has", key2); - } - return result; - } - function ownKeys(target) { - track(target, "iterate", isArray(target) ? "length" : ITERATE_KEY); - return Reflect.ownKeys(target); - } - var mutableHandlers = { - get, - set, - deleteProperty, - has, - ownKeys - }; - var readonlyHandlers = { - get: readonlyGet, - set(target, key2) { - return true; - }, - deleteProperty(target, key2) { - return true; - } - }; - var shallowReactiveHandlers = /* @__PURE__ */ extend({}, mutableHandlers, { - get: shallowGet, - set: shallowSet - }); - var toReactive = (value) => isObject$1(value) ? reactive(value) : value; - var toReadonly = (value) => isObject$1(value) ? readonly(value) : value; - var toShallow = (value) => value; - var getProto = (v2) => Reflect.getPrototypeOf(v2); - function get$1(target, key2, isReadonly2 = false, isShallow = false) { - target = target["__v_raw"]; - var rawTarget = toRaw(target); - var rawKey = toRaw(key2); - if (key2 !== rawKey) { - !isReadonly2 && track(rawTarget, "get", key2); - } - !isReadonly2 && track(rawTarget, "get", rawKey); - var { - has: has2 - } = getProto(rawTarget); - var wrap = isShallow ? toShallow : isReadonly2 ? toReadonly : toReactive; - if (has2.call(rawTarget, key2)) { - return wrap(target.get(key2)); - } else if (has2.call(rawTarget, rawKey)) { - return wrap(target.get(rawKey)); - } else if (target !== rawTarget) { - target.get(key2); - } - } - function has$1(key2, isReadonly2 = false) { - var target = this["__v_raw"]; - var rawTarget = toRaw(target); - var rawKey = toRaw(key2); - if (key2 !== rawKey) { - !isReadonly2 && track(rawTarget, "has", key2); - } - !isReadonly2 && track(rawTarget, "has", rawKey); - return key2 === rawKey ? target.has(key2) : target.has(key2) || target.has(rawKey); - } - function size(target, isReadonly2 = false) { - target = target["__v_raw"]; - !isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY); - return Reflect.get(target, "size", target); - } - function add(value) { - value = toRaw(value); - var target = toRaw(this); - var proto2 = getProto(target); - var hadKey = proto2.has.call(target, value); - if (!hadKey) { - target.add(value); - trigger(target, "add", value, value); - } - return this; - } - function set$1(key2, value) { - value = toRaw(value); - var target = toRaw(this); - var { - has: has2, - get: get2 - } = getProto(target); - var hadKey = has2.call(target, key2); - if (!hadKey) { - key2 = toRaw(key2); - hadKey = has2.call(target, key2); - } - var oldValue = get2.call(target, key2); - target.set(key2, value); - if (!hadKey) { - trigger(target, "add", key2, value); - } else if (hasChanged(value, oldValue)) { - trigger(target, "set", key2, value); - } - return this; - } - function deleteEntry(key2) { - var target = toRaw(this); - var { - has: has2, - get: get2 - } = getProto(target); - var hadKey = has2.call(target, key2); - if (!hadKey) { - key2 = toRaw(key2); - hadKey = has2.call(target, key2); - } - get2 ? get2.call(target, key2) : void 0; - var result = target.delete(key2); - if (hadKey) { - trigger(target, "delete", key2, void 0); - } - return result; - } - function clear() { - var target = toRaw(this); - var hadItems = target.size !== 0; - var result = target.clear(); - if (hadItems) { - trigger(target, "clear", void 0, void 0); - } - return result; - } - function createForEach(isReadonly2, isShallow) { - return function forEach(callback, thisArg) { - var observed = this; - var target = observed["__v_raw"]; - var rawTarget = toRaw(target); - var wrap = isShallow ? toShallow : isReadonly2 ? toReadonly : toReactive; - !isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY); - return target.forEach((value, key2) => { - return callback.call(thisArg, wrap(value), wrap(key2), observed); - }); - }; - } - function createIterableMethod(method, isReadonly2, isShallow) { - return function(...args) { - var target = this["__v_raw"]; - var rawTarget = toRaw(target); - var targetIsMap = isMap(rawTarget); - var isPair = method === "entries" || method === Symbol.iterator && targetIsMap; - var isKeyOnly = method === "keys" && targetIsMap; - var innerIterator = target[method](...args); - var wrap = isShallow ? toShallow : isReadonly2 ? toReadonly : toReactive; - !isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY); - return { - next() { - var { - value, - done - } = innerIterator.next(); - return done ? { - value, - done - } : { - value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), - done - }; - }, - [Symbol.iterator]() { - return this; - } - }; - }; - } - function createReadonlyMethod(type) { - return function(...args) { - return type === "delete" ? false : this; - }; - } - function createInstrumentations() { - var mutableInstrumentations2 = { - get(key2) { - return get$1(this, key2); - }, - get size() { - return size(this); - }, - has: has$1, - add, - set: set$1, - delete: deleteEntry, - clear, - forEach: createForEach(false, false) - }; - var shallowInstrumentations2 = { - get(key2) { - return get$1(this, key2, false, true); - }, - get size() { - return size(this); - }, - has: has$1, - add, - set: set$1, - delete: deleteEntry, - clear, - forEach: createForEach(false, true) - }; - var readonlyInstrumentations2 = { - get(key2) { - return get$1(this, key2, true); - }, - get size() { - return size(this, true); - }, - has(key2) { - return has$1.call(this, key2, true); - }, - add: createReadonlyMethod("add"), - set: createReadonlyMethod("set"), - delete: createReadonlyMethod("delete"), - clear: createReadonlyMethod("clear"), - forEach: createForEach(true, false) - }; - var shallowReadonlyInstrumentations2 = { - get(key2) { - return get$1(this, key2, true, true); - }, - get size() { - return size(this, true); - }, - has(key2) { - return has$1.call(this, key2, true); - }, - add: createReadonlyMethod("add"), - set: createReadonlyMethod("set"), - delete: createReadonlyMethod("delete"), - clear: createReadonlyMethod("clear"), - forEach: createForEach(true, true) - }; - var iteratorMethods = ["keys", "values", "entries", Symbol.iterator]; - iteratorMethods.forEach((method) => { - mutableInstrumentations2[method] = createIterableMethod(method, false, false); - readonlyInstrumentations2[method] = createIterableMethod(method, true, false); - shallowInstrumentations2[method] = createIterableMethod(method, false, true); - shallowReadonlyInstrumentations2[method] = createIterableMethod(method, true, true); - }); - return [mutableInstrumentations2, readonlyInstrumentations2, shallowInstrumentations2, shallowReadonlyInstrumentations2]; - } - var [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations(); - function createInstrumentationGetter(isReadonly2, shallow) { - var instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations; - return (target, key2, receiver) => { - if (key2 === "__v_isReactive") { - return !isReadonly2; - } else if (key2 === "__v_isReadonly") { - return isReadonly2; - } else if (key2 === "__v_raw") { - return target; - } - return Reflect.get(hasOwn$1(instrumentations, key2) && key2 in target ? instrumentations : target, key2, receiver); - }; - } - var mutableCollectionHandlers = { - get: /* @__PURE__ */ createInstrumentationGetter(false, false) - }; - var shallowCollectionHandlers = { - get: /* @__PURE__ */ createInstrumentationGetter(false, true) - }; - var readonlyCollectionHandlers = { - get: /* @__PURE__ */ createInstrumentationGetter(true, false) - }; - var reactiveMap = new WeakMap(); - var shallowReactiveMap = new WeakMap(); - var readonlyMap = new WeakMap(); - var shallowReadonlyMap = new WeakMap(); - function targetTypeMap(rawType) { - switch (rawType) { - case "Object": - case "Array": - return 1; - case "Map": - case "Set": - case "WeakMap": - case "WeakSet": - return 2; - default: - return 0; - } - } - function getTargetType(value) { - return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value)); - } - function reactive(target) { - if (target && target["__v_isReadonly"]) { - return target; - } - return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap); - } - function shallowReactive(target) { - return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap); - } - function readonly(target) { - return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap); - } - function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { - if (!isObject$1(target)) { - return target; - } - if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) { - return target; - } - var existingProxy = proxyMap.get(target); - if (existingProxy) { - return existingProxy; - } - var targetType = getTargetType(target); - if (targetType === 0) { - return target; - } - var proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers); - proxyMap.set(target, proxy); - return proxy; - } - function isReactive(value) { - if (isReadonly(value)) { - return isReactive(value["__v_raw"]); - } - return !!(value && value["__v_isReactive"]); - } - function isReadonly(value) { - return !!(value && value["__v_isReadonly"]); - } - function isProxy(value) { - return isReactive(value) || isReadonly(value); - } - function toRaw(observed) { - return observed && toRaw(observed["__v_raw"]) || observed; - } - function markRaw(value) { - def(value, "__v_skip", true); - return value; - } - var convert = (val) => isObject$1(val) ? reactive(val) : val; - function isRef(r) { - return Boolean(r && r.__v_isRef === true); - } - function ref(value) { - return createRef(value); - } - function shallowRef(value) { - return createRef(value, true); - } - class RefImpl { - constructor(_rawValue, _shallow) { - this._rawValue = _rawValue; - this._shallow = _shallow; - this.__v_isRef = true; - this._value = _shallow ? _rawValue : convert(_rawValue); - } - get value() { - track(toRaw(this), "get", "value"); - return this._value; - } - set value(newVal) { - if (hasChanged(toRaw(newVal), this._rawValue)) { - this._rawValue = newVal; - this._value = this._shallow ? newVal : convert(newVal); - trigger(toRaw(this), "set", "value", newVal); - } - } - } - function createRef(rawValue, shallow = false) { - if (isRef(rawValue)) { - return rawValue; - } - return new RefImpl(rawValue, shallow); - } - function unref(ref2) { - return isRef(ref2) ? ref2.value : ref2; - } - var shallowUnwrapHandlers = { - get: (target, key2, receiver) => unref(Reflect.get(target, key2, receiver)), - set: (target, key2, value, receiver) => { - var oldValue = target[key2]; - if (isRef(oldValue) && !isRef(value)) { - oldValue.value = value; - return true; - } else { - return Reflect.set(target, key2, value, receiver); - } - } - }; - function proxyRefs(objectWithRefs) { - return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); - } - class ComputedRefImpl { - constructor(getter, _setter, isReadonly2) { - this._setter = _setter; - this._dirty = true; - this.__v_isRef = true; - this.effect = effect(getter, { - lazy: true, - scheduler: () => { - if (!this._dirty) { - this._dirty = true; - trigger(toRaw(this), "set", "value"); - } - } - }); - this["__v_isReadonly"] = isReadonly2; - } - get value() { - var self2 = toRaw(this); - if (self2._dirty) { - self2._value = this.effect(); - self2._dirty = false; - } - track(self2, "get", "value"); - return self2._value; - } - set value(newValue) { - this._setter(newValue); - } - } - function computed(getterOrOptions) { - var getter; - var setter; - if (isFunction(getterOrOptions)) { - getter = getterOrOptions; - setter = NOOP; - } else { - getter = getterOrOptions.get; - setter = getterOrOptions.set; - } - return new ComputedRefImpl(getter, setter, isFunction(getterOrOptions) || !getterOrOptions.set); - } - var stack = []; - function warn(msg, ...args) { - pauseTracking(); - var instance = stack.length ? stack[stack.length - 1].component : null; - var appWarnHandler = instance && instance.appContext.config.warnHandler; - var trace = getComponentTrace(); - if (appWarnHandler) { - callWithErrorHandling(appWarnHandler, instance, 11, [msg + args.join(""), instance && instance.proxy, trace.map(({ - vnode - }) => "at <".concat(formatComponentName(instance, vnode.type), ">")).join("\n"), trace]); - } else { - var warnArgs = ["[Vue warn]: ".concat(msg), ...args]; - if (trace.length && true) { - warnArgs.push("\n", ...formatTrace(trace)); - } - console.warn(...warnArgs); - } - resetTracking(); - } - function getComponentTrace() { - var currentVNode = stack[stack.length - 1]; - if (!currentVNode) { - return []; - } - var normalizedStack = []; - while (currentVNode) { - var last = normalizedStack[0]; - if (last && last.vnode === currentVNode) { - last.recurseCount++; - } else { - normalizedStack.push({ - vnode: currentVNode, - recurseCount: 0 - }); - } - var parentInstance = currentVNode.component && currentVNode.component.parent; - currentVNode = parentInstance && parentInstance.vnode; - } - return normalizedStack; - } - function formatTrace(trace) { - var logs = []; - trace.forEach((entry, i2) => { - logs.push(...i2 === 0 ? [] : ["\n"], ...formatTraceEntry(entry)); - }); - return logs; - } - function formatTraceEntry({ - vnode, - recurseCount - }) { - var postfix = recurseCount > 0 ? "... (".concat(recurseCount, " recursive calls)") : ""; - var isRoot = vnode.component ? vnode.component.parent == null : false; - var open = " at <".concat(formatComponentName(vnode.component, vnode.type, isRoot)); - var close = ">" + postfix; - return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close]; - } - function formatProps(props2) { - var res = []; - var keys = Object.keys(props2); - keys.slice(0, 3).forEach((key2) => { - res.push(...formatProp(key2, props2[key2])); - }); - if (keys.length > 3) { - res.push(" ..."); - } - return res; - } - function formatProp(key2, value, raw) { - if (isString(value)) { - value = JSON.stringify(value); - return raw ? value : ["".concat(key2, "=").concat(value)]; - } else if (typeof value === "number" || typeof value === "boolean" || value == null) { - return raw ? value : ["".concat(key2, "=").concat(value)]; - } else if (isRef(value)) { - value = formatProp(key2, toRaw(value.value), true); - return raw ? value : ["".concat(key2, "=Ref<"), value, ">"]; - } else if (isFunction(value)) { - return ["".concat(key2, "=fn").concat(value.name ? "<".concat(value.name, ">") : "")]; - } else { - value = toRaw(value); - return raw ? value : ["".concat(key2, "="), value]; - } - } - function callWithErrorHandling(fn, instance, type, args) { - var res; - try { - res = args ? fn(...args) : fn(); - } catch (err) { - handleError(err, instance, type); - } - return res; - } - function callWithAsyncErrorHandling(fn, instance, type, args) { - if (isFunction(fn)) { - var res = callWithErrorHandling(fn, instance, type, args); - if (res && isPromise(res)) { - res.catch((err) => { - handleError(err, instance, type); - }); - } - return res; - } - var values = []; - for (var i2 = 0; i2 < fn.length; i2++) { - values.push(callWithAsyncErrorHandling(fn[i2], instance, type, args)); - } - return values; - } - function handleError(err, instance, type, throwInDev = true) { - var contextVNode = instance ? instance.vnode : null; - if (instance) { - var cur = instance.parent; - var exposedInstance = instance.proxy; - var errorInfo = type; - while (cur) { - var errorCapturedHooks = cur.ec; - if (errorCapturedHooks) { - for (var i2 = 0; i2 < errorCapturedHooks.length; i2++) { - if (errorCapturedHooks[i2](err, exposedInstance, errorInfo) === false) { - return; - } - } - } - cur = cur.parent; - } - var appErrorHandler = instance.appContext.config.errorHandler; - if (appErrorHandler) { - callWithErrorHandling(appErrorHandler, null, 10, [err, exposedInstance, errorInfo]); - return; - } - } - logError(err, type, contextVNode, throwInDev); - } - function logError(err, type, contextVNode, throwInDev = true) { - { - if (err instanceof Error) { - console.error(err.message + "\n" + err.stack); - } else { - console.error(err); - } - } - } - var isFlushing = false; - var isFlushPending = false; - var queue = []; - var flushIndex = 0; - var pendingPreFlushCbs = []; - var activePreFlushCbs = null; - var preFlushIndex = 0; - var pendingPostFlushCbs = []; - var activePostFlushCbs = null; - var postFlushIndex = 0; - var resolvedPromise = Promise.resolve(); - var currentFlushPromise = null; - var currentPreFlushParentJob = null; - var RECURSION_LIMIT = 100; - function nextTick(fn) { - var p2 = currentFlushPromise || resolvedPromise; - return fn ? p2.then(this ? fn.bind(this) : fn) : p2; - } - function findInsertionIndex(job) { - var start = flushIndex + 1; - var end = queue.length; - var jobId = getId(job); - while (start < end) { - var middle = start + end >>> 1; - var middleJobId = getId(queue[middle]); - middleJobId < jobId ? start = middle + 1 : end = middle; - } - return start; - } - function queueJob(job) { - if ((!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && job !== currentPreFlushParentJob) { - var pos = findInsertionIndex(job); - if (pos > -1) { - queue.splice(pos, 0, job); - } else { - queue.push(job); - } - queueFlush(); - } - } - function queueFlush() { - if (!isFlushing && !isFlushPending) { - isFlushPending = true; - currentFlushPromise = resolvedPromise.then(flushJobs); - } - } - function invalidateJob(job) { - var i2 = queue.indexOf(job); - if (i2 > flushIndex) { - queue.splice(i2, 1); - } - } - function queueCb(cb, activeQueue, pendingQueue, index2) { - if (!isArray(cb)) { - if (!activeQueue || !activeQueue.includes(cb, cb.allowRecurse ? index2 + 1 : index2)) { - pendingQueue.push(cb); - } - } else { - pendingQueue.push(...cb); - } - queueFlush(); - } - function queuePreFlushCb(cb) { - queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex); - } - function queuePostFlushCb(cb) { - queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex); - } - function flushPreFlushCbs(seen, parentJob = null) { - if (pendingPreFlushCbs.length) { - currentPreFlushParentJob = parentJob; - activePreFlushCbs = [...new Set(pendingPreFlushCbs)]; - pendingPreFlushCbs.length = 0; - for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) { - activePreFlushCbs[preFlushIndex](); - } - activePreFlushCbs = null; - preFlushIndex = 0; - currentPreFlushParentJob = null; - flushPreFlushCbs(seen, parentJob); - } - } - function flushPostFlushCbs(seen) { - if (pendingPostFlushCbs.length) { - var deduped = [...new Set(pendingPostFlushCbs)]; - pendingPostFlushCbs.length = 0; - if (activePostFlushCbs) { - activePostFlushCbs.push(...deduped); - return; - } - activePostFlushCbs = deduped; - activePostFlushCbs.sort((a2, b) => getId(a2) - getId(b)); - for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { - activePostFlushCbs[postFlushIndex](); - } - activePostFlushCbs = null; - postFlushIndex = 0; - } - } - var getId = (job) => job.id == null ? Infinity : job.id; - function flushJobs(seen) { - isFlushPending = false; - isFlushing = true; - flushPreFlushCbs(seen); - queue.sort((a2, b) => getId(a2) - getId(b)); - try { - for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { - var job = queue[flushIndex]; - if (job && job.active !== false) { - if (false) - ; - callWithErrorHandling(job, null, 14); - } - } - } finally { - flushIndex = 0; - queue.length = 0; - flushPostFlushCbs(); - isFlushing = false; - currentFlushPromise = null; - if (queue.length || pendingPreFlushCbs.length || pendingPostFlushCbs.length) { - flushJobs(seen); - } - } - } - function checkRecursiveUpdates(seen, fn) { - if (!seen.has(fn)) { - seen.set(fn, 1); - } else { - var count = seen.get(fn); - if (count > RECURSION_LIMIT) { - var instance = fn.ownerInstance; - var componentName = instance && getComponentName(instance.type); - warn("Maximum recursive updates exceeded".concat(componentName ? " in component <".concat(componentName, ">") : "", ". ") + "This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function."); - return true; - } else { - seen.set(fn, count + 1); - } - } - } - var globalCompatConfig = { - MODE: 2 - }; - function getCompatConfigForKey(key2, instance) { - var instanceConfig = instance && instance.type.compatConfig; - if (instanceConfig && key2 in instanceConfig) { - return instanceConfig[key2]; - } - return globalCompatConfig[key2]; - } - function isCompatEnabled(key2, instance, enableForBuiltIn = false) { - if (!enableForBuiltIn && instance && instance.type.__isBuiltIn) { - return false; - } - var rawMode = getCompatConfigForKey("MODE", instance) || 2; - var val = getCompatConfigForKey(key2, instance); - var mode2 = isFunction(rawMode) ? rawMode(instance && instance.type) : rawMode; - if (mode2 === 2) { - return val !== false; - } else { - return val === true || val === "suppress-warning"; - } - } - function emit$2(instance, event, ...rawArgs) { - var props2 = instance.vnode.props || EMPTY_OBJ; - var args = rawArgs; - var isModelListener2 = event.startsWith("update:"); - var modelArg = isModelListener2 && event.slice(7); - if (modelArg && modelArg in props2) { - var modifiersKey = "".concat(modelArg === "modelValue" ? "model" : modelArg, "Modifiers"); - var { - number, - trim - } = props2[modifiersKey] || EMPTY_OBJ; - if (trim) { - args = rawArgs.map((a2) => a2.trim()); - } else if (number) { - args = rawArgs.map(toNumber); - } - } - var handlerName; - var handler = props2[handlerName = toHandlerKey(event)] || props2[handlerName = toHandlerKey(camelize(event))]; - if (!handler && isModelListener2) { - handler = props2[handlerName = toHandlerKey(hyphenate(event))]; - } - if (handler) { - callWithAsyncErrorHandling(handler, instance, 6, args); - } - var onceHandler = props2[handlerName + "Once"]; - if (onceHandler) { - if (!instance.emitted) { - instance.emitted = {}; - } else if (instance.emitted[handlerName]) { - return; - } - instance.emitted[handlerName] = true; - callWithAsyncErrorHandling(onceHandler, instance, 6, args); - } - } - function normalizeEmitsOptions(comp, appContext, asMixin = false) { - var cache2 = appContext.emitsCache; - var cached = cache2.get(comp); - if (cached !== void 0) { - return cached; - } - var raw = comp.emits; - var normalized = {}; - var hasExtends = false; - if (!isFunction(comp)) { - var extendEmits = (raw2) => { - var normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); - if (normalizedFromExtend) { - hasExtends = true; - extend(normalized, normalizedFromExtend); - } - }; - if (!asMixin && appContext.mixins.length) { - appContext.mixins.forEach(extendEmits); - } - if (comp.extends) { - extendEmits(comp.extends); - } - if (comp.mixins) { - comp.mixins.forEach(extendEmits); - } - } - if (!raw && !hasExtends) { - cache2.set(comp, null); - return null; - } - if (isArray(raw)) { - raw.forEach((key2) => normalized[key2] = null); - } else { - extend(normalized, raw); - } - cache2.set(comp, normalized); - return normalized; - } - function isEmitListener(options, key2) { - if (!options || !isOn(key2)) { - return false; - } - key2 = key2.slice(2).replace(/Once$/, ""); - return hasOwn$1(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn$1(options, hyphenate(key2)) || hasOwn$1(options, key2); - } - var currentRenderingInstance = null; - var currentScopeId = null; - function setCurrentRenderingInstance(instance) { - var prev = currentRenderingInstance; - currentRenderingInstance = instance; - currentScopeId = instance && instance.type.__scopeId || null; - return prev; - } - function withCtx(fn, ctx2 = currentRenderingInstance, isNonScopedSlot) { - if (!ctx2) - return fn; - if (fn._n) { - return fn; - } - var renderFnWithContext = (...args) => { - if (renderFnWithContext._d) { - setBlockTracking(-1); - } - var prevInstance = setCurrentRenderingInstance(ctx2); - var res = fn(...args); - setCurrentRenderingInstance(prevInstance); - if (renderFnWithContext._d) { - setBlockTracking(1); - } - return res; - }; - renderFnWithContext._n = true; - renderFnWithContext._c = true; - renderFnWithContext._d = true; - return renderFnWithContext; - } - var accessedAttrs = false; - function markAttrsAccessed() { - accessedAttrs = true; - } - function renderComponentRoot(instance) { - var { - type: Component, - vnode, - proxy, - withProxy, - props: props2, - propsOptions: [propsOptions], - slots, - attrs: attrs2, - emit: emit2, - render, - renderCache, - data, - setupState, - ctx: ctx2, - inheritAttrs - } = instance; - var result; - var prev = setCurrentRenderingInstance(instance); - try { - var fallthroughAttrs; - if (vnode.shapeFlag & 4) { - var proxyToUse = withProxy || proxy; - result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props2, setupState, data, ctx2)); - fallthroughAttrs = attrs2; - } else { - var _render = Component; - if (false) - ; - result = normalizeVNode(_render.length > 1 ? _render(props2, false ? { - get attrs() { - markAttrsAccessed(); - return attrs2; - }, - slots, - emit: emit2 - } : { - attrs: attrs2, - slots, - emit: emit2 - }) : _render(props2, null)); - fallthroughAttrs = Component.props ? attrs2 : getFunctionalFallthrough(attrs2); - } - var root = result; - var setRoot = void 0; - if (false) - ; - if (fallthroughAttrs && inheritAttrs !== false) { - var keys = Object.keys(fallthroughAttrs); - var { - shapeFlag - } = root; - if (keys.length) { - if (shapeFlag & 1 || shapeFlag & 6) { - if (propsOptions && keys.some(isModelListener)) { - fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions); - } - root = cloneVNode(root, fallthroughAttrs); - } else { - var allAttrs, eventAttrs, extraAttrs, i2, l, key2; - if (false) - ; - } - } - } - if (false) - ; - if (vnode.dirs) { - if (false) - ; - root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; - } - if (vnode.transition) { - if (false) - ; - root.transition = vnode.transition; - } - if (false) - ; - else { - result = root; - } - } catch (err) { - handleError(err, instance, 1); - result = createVNode(Comment$1); - } - setCurrentRenderingInstance(prev); - return result; - } - var getChildRoot = (vnode) => { - var rawChildren = vnode.children; - var dynamicChildren = vnode.dynamicChildren; - var childRoot = filterSingleRoot(rawChildren); - if (!childRoot) { - return [vnode, void 0]; - } - var index2 = rawChildren.indexOf(childRoot); - var dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1; - var setRoot = (updatedRoot) => { - rawChildren[index2] = updatedRoot; - if (dynamicChildren) { - if (dynamicIndex > -1) { - dynamicChildren[dynamicIndex] = updatedRoot; - } else if (updatedRoot.patchFlag > 0) { - vnode.dynamicChildren = [...dynamicChildren, updatedRoot]; - } - } - }; - return [normalizeVNode(childRoot), setRoot]; - }; - function filterSingleRoot(children) { - var singleRoot; - for (var i2 = 0; i2 < children.length; i2++) { - var child = children[i2]; - if (isVNode(child)) { - if (child.type !== Comment$1 || child.children === "v-if") { - if (singleRoot) { - return; - } else { - singleRoot = child; - } - } - } else { - return; - } - } - return singleRoot; - } - var getFunctionalFallthrough = (attrs2) => { - var res; - for (var key2 in attrs2) { - if (key2 === "class" || key2 === "style" || isOn(key2)) { - (res || (res = {}))[key2] = attrs2[key2]; - } - } - return res; - }; - var filterModelListeners = (attrs2, props2) => { - var res = {}; - for (var key2 in attrs2) { - if (!isModelListener(key2) || !(key2.slice(9) in props2)) { - res[key2] = attrs2[key2]; - } - } - return res; - }; - var isElementRoot = (vnode) => { - return vnode.shapeFlag & 6 || vnode.shapeFlag & 1 || vnode.type === Comment$1; - }; - function shouldUpdateComponent(prevVNode, nextVNode, optimized) { - var { - props: prevProps, - children: prevChildren, - component - } = prevVNode; - var { - props: nextProps, - children: nextChildren, - patchFlag - } = nextVNode; - var emits2 = component.emitsOptions; - if (nextVNode.dirs || nextVNode.transition) { - return true; - } - if (optimized && patchFlag >= 0) { - if (patchFlag & 1024) { - return true; - } - if (patchFlag & 16) { - if (!prevProps) { - return !!nextProps; - } - return hasPropsChanged(prevProps, nextProps, emits2); - } else if (patchFlag & 8) { - var dynamicProps = nextVNode.dynamicProps; - for (var i2 = 0; i2 < dynamicProps.length; i2++) { - var key2 = dynamicProps[i2]; - if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits2, key2)) { - return true; - } - } - } - } else { - if (prevChildren || nextChildren) { - if (!nextChildren || !nextChildren.$stable) { - return true; - } - } - if (prevProps === nextProps) { - return false; - } - if (!prevProps) { - return !!nextProps; - } - if (!nextProps) { - return true; - } - return hasPropsChanged(prevProps, nextProps, emits2); - } - return false; - } - function hasPropsChanged(prevProps, nextProps, emitsOptions) { - var nextKeys = Object.keys(nextProps); - if (nextKeys.length !== Object.keys(prevProps).length) { - return true; - } - for (var i2 = 0; i2 < nextKeys.length; i2++) { - var key2 = nextKeys[i2]; - if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) { - return true; - } - } - return false; - } - function updateHOCHostEl({ - vnode, - parent - }, el) { - while (parent && parent.subTree === vnode) { - (vnode = parent.vnode).el = el; - parent = parent.parent; - } - } - var isSuspense = (type) => type.__isSuspense; - function queueEffectWithSuspense(fn, suspense) { - if (suspense && suspense.pendingBranch) { - if (isArray(fn)) { - suspense.effects.push(...fn); - } else { - suspense.effects.push(fn); - } - } else { - queuePostFlushCb(fn); - } - } - function provide(key2, value) { - if (!currentInstance) - ; - else { - var provides = currentInstance.provides; - var parentProvides = currentInstance.parent && currentInstance.parent.provides; - if (parentProvides === provides) { - provides = currentInstance.provides = Object.create(parentProvides); - } - provides[key2] = value; - } - } - function inject(key2, defaultValue, treatDefaultAsFactory = false) { - var instance = currentInstance || currentRenderingInstance; - if (instance) { - var provides = instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides; - if (provides && key2 in provides) { - return provides[key2]; - } else if (arguments.length > 1) { - return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance.proxy) : defaultValue; - } else - ; - } - } - function watchEffect(effect2, options) { - return doWatch(effect2, null, options); - } - var INITIAL_WATCHER_VALUE = {}; - function watch(source, cb, options) { - return doWatch(source, cb, options); - } - function doWatch(source, cb, { - immediate, - deep, - flush, - onTrack, - onTrigger - } = EMPTY_OBJ, instance = currentInstance) { - var getter; - var forceTrigger = false; - var isMultiSource = false; - if (isRef(source)) { - getter = () => source.value; - forceTrigger = !!source._shallow; - } else if (isReactive(source)) { - getter = () => source; - deep = true; - } else if (isArray(source)) { - isMultiSource = true; - forceTrigger = source.some(isReactive); - getter = () => source.map((s) => { - if (isRef(s)) { - return s.value; - } else if (isReactive(s)) { - return traverse(s); - } else if (isFunction(s)) { - return callWithErrorHandling(s, instance, 2); - } else - ; - }); - } else if (isFunction(source)) { - if (cb) { - getter = () => callWithErrorHandling(source, instance, 2); - } else { - getter = () => { - if (instance && instance.isUnmounted) { - return; - } - if (cleanup2) { - cleanup2(); - } - return callWithAsyncErrorHandling(source, instance, 3, [onInvalidate]); - }; - } - } else { - getter = NOOP; - } - if (cb && deep) { - var baseGetter = getter; - getter = () => traverse(baseGetter()); - } - var cleanup2; - var onInvalidate = (fn) => { - cleanup2 = runner.options.onStop = () => { - callWithErrorHandling(fn, instance, 4); - }; - }; - var oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE; - var job = () => { - if (!runner.active) { - return; - } - if (cb) { - var newValue = runner(); - if (deep || forceTrigger || (isMultiSource ? newValue.some((v2, i2) => hasChanged(v2, oldValue[i2])) : hasChanged(newValue, oldValue)) || false) { - if (cleanup2) { - cleanup2(); - } - callWithAsyncErrorHandling(cb, instance, 3, [ - newValue, - oldValue === INITIAL_WATCHER_VALUE ? void 0 : oldValue, - onInvalidate - ]); - oldValue = newValue; - } - } else { - runner(); - } - }; - job.allowRecurse = !!cb; - var scheduler; - if (flush === "sync") { - scheduler = job; - } else if (flush === "post") { - scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); - } else { - scheduler = () => { - if (!instance || instance.isMounted) { - queuePreFlushCb(job); - } else { - job(); - } - }; - } - var runner = effect(getter, { - lazy: true, - onTrack, - onTrigger, - scheduler - }); - recordInstanceBoundEffect(runner, instance); - if (cb) { - if (immediate) { - job(); - } else { - oldValue = runner(); - } - } else if (flush === "post") { - queuePostRenderEffect(runner, instance && instance.suspense); - } else { - runner(); - } - return () => { - stop(runner); - if (instance) { - remove(instance.effects, runner); - } - }; - } - function instanceWatch(source, value, options) { - var publicThis = this.proxy; - var getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); - var cb; - if (isFunction(value)) { - cb = value; - } else { - cb = value.handler; - options = value; - } - return doWatch(getter, cb.bind(publicThis), options, this); - } - function createPathGetter(ctx2, path) { - var segments = path.split("."); - return () => { - var cur = ctx2; - for (var i2 = 0; i2 < segments.length && cur; i2++) { - cur = cur[segments[i2]]; - } - return cur; - }; - } - function traverse(value, seen = new Set()) { - if (!isObject$1(value) || seen.has(value) || value["__v_skip"]) { - return value; - } - seen.add(value); - if (isRef(value)) { - traverse(value.value, seen); - } else if (isArray(value)) { - for (var i2 = 0; i2 < value.length; i2++) { - traverse(value[i2], seen); - } - } else if (isSet(value) || isMap(value)) { - value.forEach((v2) => { - traverse(v2, seen); - }); - } else if (isPlainObject(value)) { - for (var key2 in value) { - traverse(value[key2], seen); - } - } - return value; - } - function defineComponent(options) { - return isFunction(options) ? { - setup: options, - name: options.name - } : options; - } - var isAsyncWrapper = (i2) => !!i2.type.__asyncLoader; - var isKeepAlive = (vnode) => vnode.type.__isKeepAlive; - function onActivated(hook, target) { - registerKeepAliveHook(hook, "a", target); - } - function onDeactivated(hook, target) { - registerKeepAliveHook(hook, "da", target); - } - function registerKeepAliveHook(hook, type, target = currentInstance) { - var wrappedHook = hook.__wdc || (hook.__wdc = () => { - var current2 = target; - while (current2) { - if (current2.isDeactivated) { - return; - } - current2 = current2.parent; - } - hook(); - }); - injectHook(type, wrappedHook, target); - if (target) { - var current = target.parent; - while (current && current.parent) { - if (isKeepAlive(current.parent.vnode)) { - injectToKeepAliveRoot(wrappedHook, type, target, current); - } - current = current.parent; - } - } - } - function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { - var injected = injectHook(type, hook, keepAliveRoot, true); - onUnmounted(() => { - remove(keepAliveRoot[type], injected); - }, target); - } - function injectHook(type, hook, target = currentInstance, prepend = false) { - if (target) { - var hooks = target[type] || (target[type] = []); - var wrappedHook = hook.__weh || (hook.__weh = (...args) => { - if (target.isUnmounted) { - return; - } - pauseTracking(); - setCurrentInstance(target); - var res = callWithAsyncErrorHandling(hook, target, type, args); - setCurrentInstance(null); - resetTracking(); - return res; - }); - if (prepend) { - hooks.unshift(wrappedHook); - } else { - hooks.push(wrappedHook); - } - return wrappedHook; - } - } - var createHook = (lifecycle) => (hook, target = currentInstance) => (!isInSSRComponentSetup || lifecycle === "sp") && injectHook(lifecycle, hook, target); - var onBeforeMount = createHook("bm"); - var onMounted = createHook("m"); - var onBeforeUpdate = createHook("bu"); - var onUpdated = createHook("u"); - var onBeforeUnmount = createHook("bum"); - var onUnmounted = createHook("um"); - var onServerPrefetch = createHook("sp"); - var onRenderTriggered = createHook("rtg"); - var onRenderTracked = createHook("rtc"); - function onErrorCaptured(hook, target = currentInstance) { - injectHook("ec", hook, target); - } - var shouldCacheAccess = true; - function applyOptions(instance) { - var options = resolveMergedOptions(instance); - var publicThis = instance.proxy; - var ctx2 = instance.ctx; - shouldCacheAccess = false; - if (options.beforeCreate) { - callHook(options.beforeCreate, instance, "bc"); - } - var { - data: dataOptions, - computed: computedOptions, - methods: methods2, - watch: watchOptions, - provide: provideOptions, - inject: injectOptions, - created, - beforeMount, - mounted, - beforeUpdate, - updated, - activated, - deactivated, - beforeDestroy, - beforeUnmount, - destroyed, - unmounted, - render, - renderTracked, - renderTriggered, - errorCaptured, - serverPrefetch, - expose, - inheritAttrs, - components, - directives, - filters - } = options; - var checkDuplicateProperties = null; - if (injectOptions) { - resolveInjections(injectOptions, ctx2, checkDuplicateProperties); - } - if (methods2) { - for (var _key2 in methods2) { - var methodHandler = methods2[_key2]; - if (isFunction(methodHandler)) { - { - ctx2[_key2] = methodHandler.bind(publicThis); - } - } - } - } - if (dataOptions) { - (function() { - var data = dataOptions.call(publicThis, publicThis); - if (!isObject$1(data)) - ; - else { - instance.data = reactive(data); - } - })(); - } - shouldCacheAccess = true; - if (computedOptions) { - var _loop2 = function(_key42) { - var opt = computedOptions[_key42]; - var get2 = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP; - var set2 = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : NOOP; - var c = computed$1({ - get: get2, - set: set2 - }); - Object.defineProperty(ctx2, _key42, { - enumerable: true, - configurable: true, - get: () => c.value, - set: (v2) => c.value = v2 - }); - }; - for (var _key4 in computedOptions) { - _loop2(_key4); - } - } - if (watchOptions) { - for (var _key5 in watchOptions) { - createWatcher(watchOptions[_key5], ctx2, publicThis, _key5); - } - } - if (provideOptions) { - var provides = isFunction(provideOptions) ? provideOptions.call(publicThis) : provideOptions; - Reflect.ownKeys(provides).forEach((key2) => { - provide(key2, provides[key2]); - }); - } - if (created) { - callHook(created, instance, "c"); - } - function registerLifecycleHook(register2, hook) { - if (isArray(hook)) { - hook.forEach((_hook) => register2(_hook.bind(publicThis))); - } else if (hook) { - register2(hook.bind(publicThis)); - } - } - registerLifecycleHook(onBeforeMount, beforeMount); - registerLifecycleHook(onMounted, mounted); - registerLifecycleHook(onBeforeUpdate, beforeUpdate); - registerLifecycleHook(onUpdated, updated); - registerLifecycleHook(onActivated, activated); - registerLifecycleHook(onDeactivated, deactivated); - registerLifecycleHook(onErrorCaptured, errorCaptured); - registerLifecycleHook(onRenderTracked, renderTracked); - registerLifecycleHook(onRenderTriggered, renderTriggered); - registerLifecycleHook(onBeforeUnmount, beforeUnmount); - registerLifecycleHook(onUnmounted, unmounted); - registerLifecycleHook(onServerPrefetch, serverPrefetch); - if (isArray(expose)) { - if (expose.length) { - var exposed = instance.exposed || (instance.exposed = {}); - expose.forEach((key2) => { - Object.defineProperty(exposed, key2, { - get: () => publicThis[key2], - set: (val) => publicThis[key2] = val - }); - }); - } else if (!instance.exposed) { - instance.exposed = {}; - } - } - if (render && instance.render === NOOP) { - instance.render = render; - } - if (inheritAttrs != null) { - instance.inheritAttrs = inheritAttrs; - } - if (components) - instance.components = components; - if (directives) - instance.directives = directives; - } - function resolveInjections(injectOptions, ctx2, checkDuplicateProperties = NOOP) { - if (isArray(injectOptions)) { - injectOptions = normalizeInject(injectOptions); - } - for (var key2 in injectOptions) { - var opt = injectOptions[key2]; - if (isObject$1(opt)) { - if ("default" in opt) { - ctx2[key2] = inject(opt.from || key2, opt.default, true); - } else { - ctx2[key2] = inject(opt.from || key2); - } - } else { - ctx2[key2] = inject(opt); - } - } - } - function callHook(hook, instance, type) { - callWithAsyncErrorHandling(isArray(hook) ? hook.map((h2) => h2.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type); - } - function createWatcher(raw, ctx2, publicThis, key2) { - var getter = key2.includes(".") ? createPathGetter(publicThis, key2) : () => publicThis[key2]; - if (isString(raw)) { - var handler = ctx2[raw]; - if (isFunction(handler)) { - watch(getter, handler); - } - } else if (isFunction(raw)) { - watch(getter, raw.bind(publicThis)); - } else if (isObject$1(raw)) { - if (isArray(raw)) { - raw.forEach((r) => createWatcher(r, ctx2, publicThis, key2)); - } else { - var _handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx2[raw.handler]; - if (isFunction(_handler)) { - watch(getter, _handler, raw); - } - } - } else - ; - } - function resolveMergedOptions(instance) { - var base2 = instance.type; - var { - mixins, - extends: extendsOptions - } = base2; - var { - mixins: globalMixins, - optionsCache: cache2, - config: { - optionMergeStrategies - } - } = instance.appContext; - var cached = cache2.get(base2); - var resolved; - if (cached) { - resolved = cached; - } else if (!globalMixins.length && !mixins && !extendsOptions) { - { - resolved = base2; - } - } else { - resolved = {}; - if (globalMixins.length) { - globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true)); - } - mergeOptions(resolved, base2, optionMergeStrategies); - } - cache2.set(base2, resolved); - return resolved; - } - function mergeOptions(to, from, strats, asMixin = false) { - var { - mixins, - extends: extendsOptions - } = from; - if (extendsOptions) { - mergeOptions(to, extendsOptions, strats, true); - } - if (mixins) { - mixins.forEach((m) => mergeOptions(to, m, strats, true)); - } - for (var key2 in from) { - if (asMixin && key2 === "expose") - ; - else { - var strat = internalOptionMergeStrats[key2] || strats && strats[key2]; - to[key2] = strat ? strat(to[key2], from[key2]) : from[key2]; - } - } - return to; - } - var internalOptionMergeStrats = { - data: mergeDataFn, - props: mergeObjectOptions, - emits: mergeObjectOptions, - methods: mergeObjectOptions, - computed: mergeObjectOptions, - beforeCreate: mergeAsArray, - created: mergeAsArray, - beforeMount: mergeAsArray, - mounted: mergeAsArray, - beforeUpdate: mergeAsArray, - updated: mergeAsArray, - beforeDestroy: mergeAsArray, - destroyed: mergeAsArray, - activated: mergeAsArray, - deactivated: mergeAsArray, - errorCaptured: mergeAsArray, - serverPrefetch: mergeAsArray, - components: mergeObjectOptions, - directives: mergeObjectOptions, - watch: mergeWatchOptions, - provide: mergeDataFn, - inject: mergeInject - }; - function mergeDataFn(to, from) { - if (!from) { - return to; - } - if (!to) { - return from; - } - return function mergedDataFn() { - return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from); - }; - } - function mergeInject(to, from) { - return mergeObjectOptions(normalizeInject(to), normalizeInject(from)); - } - function normalizeInject(raw) { - if (isArray(raw)) { - var res = {}; - for (var i2 = 0; i2 < raw.length; i2++) { - res[raw[i2]] = raw[i2]; - } - return res; - } - return raw; - } - function mergeAsArray(to, from) { - return to ? [...new Set([].concat(to, from))] : from; - } - function mergeObjectOptions(to, from) { - return to ? extend(extend(Object.create(null), to), from) : from; - } - function mergeWatchOptions(to, from) { - if (!to) - return from; - if (!from) - return to; - var merged = extend(Object.create(null), to); - for (var key2 in from) { - merged[key2] = mergeAsArray(to[key2], from[key2]); - } - return merged; - } - function initProps(instance, rawProps, isStateful, isSSR = false) { - var props2 = {}; - var attrs2 = {}; - def(attrs2, InternalObjectKey, 1); - instance.propsDefaults = Object.create(null); - setFullProps(instance, rawProps, props2, attrs2); - for (var key2 in instance.propsOptions[0]) { - if (!(key2 in props2)) { - props2[key2] = void 0; - } - } - if (isStateful) { - instance.props = isSSR ? props2 : shallowReactive(props2); - } else { - if (!instance.type.props) { - instance.props = attrs2; - } else { - instance.props = props2; - } - } - instance.attrs = attrs2; - } - function updateProps(instance, rawProps, rawPrevProps, optimized) { - var { - props: props2, - attrs: attrs2, - vnode: { - patchFlag - } - } = instance; - var rawCurrentProps = toRaw(props2); - var [options] = instance.propsOptions; - var hasAttrsChanged = false; - if ((optimized || patchFlag > 0) && !(patchFlag & 16)) { - if (patchFlag & 8) { - var propsToUpdate = instance.vnode.dynamicProps; - for (var i2 = 0; i2 < propsToUpdate.length; i2++) { - var key2 = propsToUpdate[i2]; - var value = rawProps[key2]; - if (options) { - if (hasOwn$1(attrs2, key2)) { - if (value !== attrs2[key2]) { - attrs2[key2] = value; - hasAttrsChanged = true; - } - } else { - var camelizedKey = camelize(key2); - props2[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false); - } - } else { - if (value !== attrs2[key2]) { - attrs2[key2] = value; - hasAttrsChanged = true; - } - } - } - } - } else { - if (setFullProps(instance, rawProps, props2, attrs2)) { - hasAttrsChanged = true; - } - var kebabKey; - for (var _key6 in rawCurrentProps) { - if (!rawProps || !hasOwn$1(rawProps, _key6) && ((kebabKey = hyphenate(_key6)) === _key6 || !hasOwn$1(rawProps, kebabKey))) { - if (options) { - if (rawPrevProps && (rawPrevProps[_key6] !== void 0 || rawPrevProps[kebabKey] !== void 0)) { - props2[_key6] = resolvePropValue(options, rawCurrentProps, _key6, void 0, instance, true); - } - } else { - delete props2[_key6]; - } - } - } - if (attrs2 !== rawCurrentProps) { - for (var _key7 in attrs2) { - if (!rawProps || !hasOwn$1(rawProps, _key7)) { - delete attrs2[_key7]; - hasAttrsChanged = true; - } - } - } - } - if (hasAttrsChanged) { - trigger(instance, "set", "$attrs"); - } - } - function setFullProps(instance, rawProps, props2, attrs2) { - var [options, needCastKeys] = instance.propsOptions; - var hasAttrsChanged = false; - var rawCastValues; - if (rawProps) { - for (var key2 in rawProps) { - if (isReservedProp(key2)) { - continue; - } - var value = rawProps[key2]; - var camelKey = void 0; - if (options && hasOwn$1(options, camelKey = camelize(key2))) { - if (!needCastKeys || !needCastKeys.includes(camelKey)) { - props2[camelKey] = value; - } else { - (rawCastValues || (rawCastValues = {}))[camelKey] = value; - } - } else if (!isEmitListener(instance.emitsOptions, key2)) { - if (value !== attrs2[key2]) { - attrs2[key2] = value; - hasAttrsChanged = true; - } - } - } - } - if (needCastKeys) { - var rawCurrentProps = toRaw(props2); - var castValues = rawCastValues || EMPTY_OBJ; - for (var i2 = 0; i2 < needCastKeys.length; i2++) { - var _key8 = needCastKeys[i2]; - props2[_key8] = resolvePropValue(options, rawCurrentProps, _key8, castValues[_key8], instance, !hasOwn$1(castValues, _key8)); - } - } - return hasAttrsChanged; - } - function resolvePropValue(options, props2, key2, value, instance, isAbsent) { - var opt = options[key2]; - if (opt != null) { - var hasDefault = hasOwn$1(opt, "default"); - if (hasDefault && value === void 0) { - var defaultValue = opt.default; - if (opt.type !== Function && isFunction(defaultValue)) { - var { - propsDefaults - } = instance; - if (key2 in propsDefaults) { - value = propsDefaults[key2]; - } else { - setCurrentInstance(instance); - value = propsDefaults[key2] = defaultValue.call(null, props2); - setCurrentInstance(null); - } - } else { - value = defaultValue; - } - } - if (opt[0]) { - if (isAbsent && !hasDefault) { - value = false; - } else if (opt[1] && (value === "" || value === hyphenate(key2))) { - value = true; - } - } - } - return value; - } - function normalizePropsOptions(comp, appContext, asMixin = false) { - var cache2 = appContext.propsCache; - var cached = cache2.get(comp); - if (cached) { - return cached; - } - var raw = comp.props; - var normalized = {}; - var needCastKeys = []; - var hasExtends = false; - if (!isFunction(comp)) { - var extendProps = (raw2) => { - hasExtends = true; - var [props2, keys] = normalizePropsOptions(raw2, appContext, true); - extend(normalized, props2); - if (keys) - needCastKeys.push(...keys); - }; - if (!asMixin && appContext.mixins.length) { - appContext.mixins.forEach(extendProps); - } - if (comp.extends) { - extendProps(comp.extends); - } - if (comp.mixins) { - comp.mixins.forEach(extendProps); - } - } - if (!raw && !hasExtends) { - cache2.set(comp, EMPTY_ARR); - return EMPTY_ARR; - } - if (isArray(raw)) { - for (var i2 = 0; i2 < raw.length; i2++) { - var normalizedKey = camelize(raw[i2]); - if (validatePropName(normalizedKey)) { - normalized[normalizedKey] = EMPTY_OBJ; - } - } - } else if (raw) { - for (var key2 in raw) { - var _normalizedKey = camelize(key2); - if (validatePropName(_normalizedKey)) { - var opt = raw[key2]; - var prop = normalized[_normalizedKey] = isArray(opt) || isFunction(opt) ? { - type: opt - } : opt; - if (prop) { - var booleanIndex = getTypeIndex(Boolean, prop.type); - var stringIndex = getTypeIndex(String, prop.type); - prop[0] = booleanIndex > -1; - prop[1] = stringIndex < 0 || booleanIndex < stringIndex; - if (booleanIndex > -1 || hasOwn$1(prop, "default")) { - needCastKeys.push(_normalizedKey); - } - } - } - } - } - var res = [normalized, needCastKeys]; - cache2.set(comp, res); - return res; - } - function validatePropName(key2) { - if (key2[0] !== "$") { - return true; - } - return false; - } - function getType$1(ctor) { - var match = ctor && ctor.toString().match(/^\s*function (\w+)/); - return match ? match[1] : ""; - } - function isSameType(a2, b) { - return getType$1(a2) === getType$1(b); - } - function getTypeIndex(type, expectedTypes) { - if (isArray(expectedTypes)) { - return expectedTypes.findIndex((t2) => isSameType(t2, type)); - } else if (isFunction(expectedTypes)) { - return isSameType(expectedTypes, type) ? 0 : -1; - } - return -1; - } - var isInternalKey = (key2) => key2[0] === "_" || key2 === "$stable"; - var normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)]; - var normalizeSlot = (key2, rawSlot, ctx2) => { - var normalized = withCtx((props2) => { - return normalizeSlotValue(rawSlot(props2)); - }, ctx2); - normalized._c = false; - return normalized; - }; - var normalizeObjectSlots = (rawSlots, slots, instance) => { - var ctx2 = rawSlots._ctx; - for (var key2 in rawSlots) { - if (isInternalKey(key2)) - continue; - var value = rawSlots[key2]; - if (isFunction(value)) { - slots[key2] = normalizeSlot(key2, value, ctx2); - } else if (value != null) { - (function() { - var normalized = normalizeSlotValue(value); - slots[key2] = () => normalized; - })(); - } - } - }; - var normalizeVNodeSlots = (instance, children) => { - var normalized = normalizeSlotValue(children); - instance.slots.default = () => normalized; - }; - var initSlots = (instance, children) => { - if (instance.vnode.shapeFlag & 32) { - var type = children._; - if (type) { - instance.slots = toRaw(children); - def(children, "_", type); - } else { - normalizeObjectSlots(children, instance.slots = {}); - } - } else { - instance.slots = {}; - if (children) { - normalizeVNodeSlots(instance, children); - } - } - def(instance.slots, InternalObjectKey, 1); - }; - var updateSlots = (instance, children, optimized) => { - var { - vnode, - slots - } = instance; - var needDeletionCheck = true; - var deletionComparisonTarget = EMPTY_OBJ; - if (vnode.shapeFlag & 32) { - var type = children._; - if (type) { - if (optimized && type === 1) { - needDeletionCheck = false; - } else { - extend(slots, children); - if (!optimized && type === 1) { - delete slots._; - } - } - } else { - needDeletionCheck = !children.$stable; - normalizeObjectSlots(children, slots); - } - deletionComparisonTarget = children; - } else if (children) { - normalizeVNodeSlots(instance, children); - deletionComparisonTarget = { - default: 1 - }; - } - if (needDeletionCheck) { - for (var key2 in slots) { - if (!isInternalKey(key2) && !(key2 in deletionComparisonTarget)) { - delete slots[key2]; - } - } - } - }; - function withDirectives(vnode, directives) { - var internalInstance = currentRenderingInstance; - if (internalInstance === null) { - return vnode; - } - var instance = internalInstance.proxy; - var bindings = vnode.dirs || (vnode.dirs = []); - for (var i2 = 0; i2 < directives.length; i2++) { - var [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i2]; - if (isFunction(dir)) { - dir = { - mounted: dir, - updated: dir - }; - } - bindings.push({ - dir, - instance, - value, - oldValue: void 0, - arg, - modifiers - }); - } - return vnode; - } - function invokeDirectiveHook(vnode, prevVNode, instance, name) { - var bindings = vnode.dirs; - var oldBindings = prevVNode && prevVNode.dirs; - for (var i2 = 0; i2 < bindings.length; i2++) { - var binding = bindings[i2]; - if (oldBindings) { - binding.oldValue = oldBindings[i2].value; - } - var hook = binding.dir[name]; - if (hook) { - pauseTracking(); - callWithAsyncErrorHandling(hook, instance, 8, [vnode.el, binding, vnode, prevVNode]); - resetTracking(); - } - } - } - function createAppContext() { - return { - app: null, - config: { - isNativeTag: NO, - performance: false, - globalProperties: {}, - optionMergeStrategies: {}, - errorHandler: void 0, - warnHandler: void 0, - compilerOptions: {} - }, - mixins: [], - components: {}, - directives: {}, - provides: Object.create(null), - optionsCache: new WeakMap(), - propsCache: new WeakMap(), - emitsCache: new WeakMap() - }; - } - var uid$1 = 0; - function createAppAPI(render, hydrate) { - return function createApp2(rootComponent, rootProps = null) { - if (rootProps != null && !isObject$1(rootProps)) { - rootProps = null; - } - var context = createAppContext(); - var installedPlugins = new Set(); - var isMounted = false; - var app = context.app = { - _uid: uid$1++, - _component: rootComponent, - _props: rootProps, - _container: null, - _context: context, - _instance: null, - version, - get config() { - return context.config; - }, - set config(v2) { - }, - use(plugin, ...options) { - if (installedPlugins.has(plugin)) - ; - else if (plugin && isFunction(plugin.install)) { - installedPlugins.add(plugin); - plugin.install(app, ...options); - } else if (isFunction(plugin)) { - installedPlugins.add(plugin); - plugin(app, ...options); - } else - ; - return app; - }, - mixin(mixin) { - { - if (!context.mixins.includes(mixin)) { - context.mixins.push(mixin); - } - } - return app; - }, - component(name, component) { - if (!component) { - return context.components[name]; - } - context.components[name] = component; - return app; - }, - directive(name, directive) { - if (!directive) { - return context.directives[name]; - } - context.directives[name] = directive; - return app; - }, - mount(rootContainer, isHydrate, isSVG) { - if (!isMounted) { - var vnode = createVNode(rootComponent, rootProps); - vnode.appContext = context; - if (isHydrate && hydrate) { - hydrate(vnode, rootContainer); - } else { - render(vnode, rootContainer, isSVG); - } - isMounted = true; - app._container = rootContainer; - rootContainer.__vue_app__ = app; - return vnode.component.proxy; - } - }, - unmount() { - if (isMounted) { - render(null, app._container); - delete app._container.__vue_app__; - } - }, - provide(key2, value) { - context.provides[key2] = value; - return app; - } - }; - return app; - }; - } - var prodEffectOptions = { - scheduler: queueJob, - allowRecurse: true - }; - var queuePostRenderEffect = queueEffectWithSuspense; - var setRef = (rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) => { - if (isArray(rawRef)) { - rawRef.forEach((r, i2) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i2] : oldRawRef), parentSuspense, vnode, isUnmount)); - return; - } - if (isAsyncWrapper(vnode) && !isUnmount) { - return; - } - var refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; - var value = isUnmount ? null : refValue; - var { - i: owner, - r: ref2 - } = rawRef; - var oldRef = oldRawRef && oldRawRef.r; - var refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; - var setupState = owner.setupState; - if (oldRef != null && oldRef !== ref2) { - if (isString(oldRef)) { - refs[oldRef] = null; - if (hasOwn$1(setupState, oldRef)) { - setupState[oldRef] = null; - } - } else if (isRef(oldRef)) { - oldRef.value = null; - } - } - if (isString(ref2)) { - var doSet = () => { - { - refs[ref2] = value; - } - if (hasOwn$1(setupState, ref2)) { - setupState[ref2] = value; - } - }; - if (value) { - doSet.id = -1; - queuePostRenderEffect(doSet, parentSuspense); - } else { - doSet(); - } - } else if (isRef(ref2)) { - var _doSet = () => { - ref2.value = value; - }; - if (value) { - _doSet.id = -1; - queuePostRenderEffect(_doSet, parentSuspense); - } else { - _doSet(); - } - } else if (isFunction(ref2)) { - callWithErrorHandling(ref2, owner, 12, [value, refs]); - } else - ; - }; - function createRenderer(options) { - return baseCreateRenderer(options); - } - function baseCreateRenderer(options, createHydrationFns) { - var { - insert: hostInsert, - remove: hostRemove, - patchProp: hostPatchProp, - forcePatchProp: hostForcePatchProp, - createElement: hostCreateElement, - createText: hostCreateText, - createComment: hostCreateComment, - setText: hostSetText, - setElementText: hostSetElementText, - parentNode: hostParentNode, - nextSibling: hostNextSibling, - setScopeId: hostSetScopeId = NOOP, - cloneNode: hostCloneNode, - insertStaticContent: hostInsertStaticContent - } = options; - var patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = false) => { - if (n1 && !isSameVNodeType(n1, n2)) { - anchor = getNextHostNode(n1); - unmount(n1, parentComponent, parentSuspense, true); - n1 = null; - } - if (n2.patchFlag === -2) { - optimized = false; - n2.dynamicChildren = null; - } - var { - type, - ref: ref2, - shapeFlag - } = n2; - switch (type) { - case Text$1: - processText(n1, n2, container, anchor); - break; - case Comment$1: - processCommentNode(n1, n2, container, anchor); - break; - case Static: - if (n1 == null) { - mountStaticNode(n2, container, anchor, isSVG); - } - break; - case Fragment: - processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - break; - default: - if (shapeFlag & 1) { - processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else if (shapeFlag & 6) { - processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else if (shapeFlag & 64) { - type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); - } else if (shapeFlag & 128) { - type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); - } else - ; - } - if (ref2 != null && parentComponent) { - setRef(ref2, n1 && n1.ref, parentSuspense, n2 || n1, !n2); - } - }; - var processText = (n1, n2, container, anchor) => { - if (n1 == null) { - hostInsert(n2.el = hostCreateText(n2.children), container, anchor); - } else { - var el = n2.el = n1.el; - if (n2.children !== n1.children) { - hostSetText(el, n2.children); - } - } - }; - var processCommentNode = (n1, n2, container, anchor) => { - if (n1 == null) { - hostInsert(n2.el = hostCreateComment(n2.children || ""), container, anchor); - } else { - n2.el = n1.el; - } - }; - var mountStaticNode = (n2, container, anchor, isSVG) => { - var nodes = hostInsertStaticContent(n2.children, container, anchor, isSVG, n2.staticCache); - if (!n2.el) { - n2.staticCache = nodes; - } - n2.el = nodes[0]; - n2.anchor = nodes[nodes.length - 1]; - }; - var moveStaticNode = ({ - el, - anchor - }, container, nextSibling) => { - var next; - while (el && el !== anchor) { - next = hostNextSibling(el); - hostInsert(el, container, nextSibling); - el = next; - } - hostInsert(anchor, container, nextSibling); - }; - var removeStaticNode = ({ - el, - anchor - }) => { - var next; - while (el && el !== anchor) { - next = hostNextSibling(el); - hostRemove(el); - el = next; - } - hostRemove(anchor); - }; - var processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - isSVG = isSVG || n2.type === "svg"; - if (n1 == null) { - mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - }; - var mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - var el; - var vnodeHook; - var { - type, - props: props2, - shapeFlag, - transition, - patchFlag, - dirs - } = vnode; - if (vnode.el && hostCloneNode !== void 0 && patchFlag === -1) { - el = vnode.el = hostCloneNode(vnode.el); - } else { - el = vnode.el = hostCreateElement(vnode.type, isSVG, props2 && props2.is, props2); - if (shapeFlag & 8) { - hostSetElementText(el, vnode.children); - } else if (shapeFlag & 16) { - mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== "foreignObject", slotScopeIds, optimized || !!vnode.dynamicChildren); - } - if (dirs) { - invokeDirectiveHook(vnode, null, parentComponent, "created"); - } - if (props2) { - for (var key2 in props2) { - if (!isReservedProp(key2)) { - hostPatchProp(el, key2, null, props2[key2], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); - } - } - if (vnodeHook = props2.onVnodeBeforeMount) { - invokeVNodeHook(vnodeHook, parentComponent, vnode); - } - } - setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); - } - Object.defineProperty(el, "__vueParentComponent", { - value: parentComponent, - enumerable: false - }); - if (dirs) { - invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); - } - var needCallTransitionHooks = (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted; - if (needCallTransitionHooks) { - transition.beforeEnter(el); - } - hostInsert(el, container, anchor); - if ((vnodeHook = props2 && props2.onVnodeMounted) || needCallTransitionHooks || dirs) { - queuePostRenderEffect(() => { - vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); - needCallTransitionHooks && transition.enter(el); - dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); - }, parentSuspense); - } - }; - var setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => { - if (scopeId) { - hostSetScopeId(el, scopeId); - } - if (slotScopeIds) { - for (var i2 = 0; i2 < slotScopeIds.length; i2++) { - hostSetScopeId(el, slotScopeIds[i2]); - } - } - if (parentComponent) { - var subTree = parentComponent.subTree; - if (vnode === subTree) { - var parentVNode = parentComponent.vnode; - setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent); - } - } - }; - var mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => { - for (var i2 = start; i2 < children.length; i2++) { - var child = children[i2] = optimized ? cloneIfMounted(children[i2]) : normalizeVNode(children[i2]); - patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - }; - var patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - var el = n2.el = n1.el; - var { - patchFlag, - dynamicChildren, - dirs - } = n2; - patchFlag |= n1.patchFlag & 16; - var oldProps = n1.props || EMPTY_OBJ; - var newProps = n2.props || EMPTY_OBJ; - var vnodeHook; - if (vnodeHook = newProps.onVnodeBeforeUpdate) { - invokeVNodeHook(vnodeHook, parentComponent, n2, n1); - } - if (dirs) { - invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate"); - } - if (patchFlag > 0) { - if (patchFlag & 16) { - patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); - } else { - if (patchFlag & 2) { - if (oldProps.class !== newProps.class) { - hostPatchProp(el, "class", null, newProps.class, isSVG); - } - } - if (patchFlag & 4) { - hostPatchProp(el, "style", oldProps.style, newProps.style, isSVG); - } - if (patchFlag & 8) { - var propsToUpdate = n2.dynamicProps; - for (var i2 = 0; i2 < propsToUpdate.length; i2++) { - var key2 = propsToUpdate[i2]; - var prev = oldProps[key2]; - var next = newProps[key2]; - if (next !== prev || hostForcePatchProp && hostForcePatchProp(el, key2)) { - hostPatchProp(el, key2, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren); - } - } - } - } - if (patchFlag & 1) { - if (n1.children !== n2.children) { - hostSetElementText(el, n2.children); - } - } - } else if (!optimized && dynamicChildren == null) { - patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); - } - var areChildrenSVG = isSVG && n2.type !== "foreignObject"; - if (dynamicChildren) { - patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds); - } else if (!optimized) { - patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false); - } - if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { - queuePostRenderEffect(() => { - vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); - dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated"); - }, parentSuspense); - } - }; - var patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => { - for (var i2 = 0; i2 < newChildren.length; i2++) { - var oldVNode = oldChildren[i2]; - var newVNode = newChildren[i2]; - var container = oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & 6 || oldVNode.shapeFlag & 64) ? hostParentNode(oldVNode.el) : fallbackContainer; - patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true); - } - }; - var patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => { - if (oldProps !== newProps) { - for (var key2 in newProps) { - if (isReservedProp(key2)) - continue; - var next = newProps[key2]; - var prev = oldProps[key2]; - if (next !== prev || hostForcePatchProp && hostForcePatchProp(el, key2)) { - hostPatchProp(el, key2, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); - } - } - if (oldProps !== EMPTY_OBJ) { - for (var _key9 in oldProps) { - if (!isReservedProp(_key9) && !(_key9 in newProps)) { - hostPatchProp(el, _key9, oldProps[_key9], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); - } - } - } - } - }; - var processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - var fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(""); - var fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(""); - var { - patchFlag, - dynamicChildren, - slotScopeIds: fragmentSlotScopeIds - } = n2; - if (dynamicChildren) { - optimized = true; - } - if (fragmentSlotScopeIds) { - slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; - } - if (n1 == null) { - hostInsert(fragmentStartAnchor, container, anchor); - hostInsert(fragmentEndAnchor, container, anchor); - mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && n1.dynamicChildren) { - patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds); - if (n2.key != null || parentComponent && n2 === parentComponent.subTree) { - traverseStaticChildren(n1, n2, true); - } - } else { - patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - } - }; - var processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - n2.slotScopeIds = slotScopeIds; - if (n1 == null) { - if (n2.shapeFlag & 512) { - parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized); - } else { - mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized); - } - } else { - updateComponent(n1, n2, optimized); - } - }; - var mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => { - var instance = initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense); - if (isKeepAlive(initialVNode)) { - instance.ctx.renderer = internals; - } - { - setupComponent(instance); - } - if (instance.asyncDep) { - parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect); - if (!initialVNode.el) { - var placeholder = instance.subTree = createVNode(Comment$1); - processCommentNode(null, placeholder, container, anchor); - } - return; - } - setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized); - }; - var updateComponent = (n1, n2, optimized) => { - var instance = n2.component = n1.component; - if (shouldUpdateComponent(n1, n2, optimized)) { - if (instance.asyncDep && !instance.asyncResolved) { - updateComponentPreRender(instance, n2, optimized); - return; - } else { - instance.next = n2; - invalidateJob(instance.update); - instance.update(); - } - } else { - n2.component = n1.component; - n2.el = n1.el; - instance.vnode = n2; - } - }; - var setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => { - instance.update = effect(function componentEffect() { - if (!instance.isMounted) { - var vnodeHook; - var { - el, - props: props2 - } = initialVNode; - var { - bm, - m, - parent - } = instance; - if (bm) { - invokeArrayFns(bm); - } - if (vnodeHook = props2 && props2.onVnodeBeforeMount) { - invokeVNodeHook(vnodeHook, parent, initialVNode); - } - if (el && hydrateNode) { - var hydrateSubTree = () => { - instance.subTree = renderComponentRoot(instance); - hydrateNode(el, instance.subTree, instance, parentSuspense, null); - }; - if (isAsyncWrapper(initialVNode)) { - initialVNode.type.__asyncLoader().then(() => !instance.isUnmounted && hydrateSubTree()); - } else { - hydrateSubTree(); - } - } else { - var subTree = instance.subTree = renderComponentRoot(instance); - patch(null, subTree, container, anchor, instance, parentSuspense, isSVG); - initialVNode.el = subTree.el; - } - if (m) { - queuePostRenderEffect(m, parentSuspense); - } - if (vnodeHook = props2 && props2.onVnodeMounted) { - var scopedInitialVNode = initialVNode; - queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense); - } - if (initialVNode.shapeFlag & 256) { - instance.a && queuePostRenderEffect(instance.a, parentSuspense); - } - instance.isMounted = true; - initialVNode = container = anchor = null; - } else { - var { - next, - bu, - u, - parent: _parent, - vnode - } = instance; - var originNext = next; - var _vnodeHook; - if (next) { - next.el = vnode.el; - updateComponentPreRender(instance, next, optimized); - } else { - next = vnode; - } - if (bu) { - invokeArrayFns(bu); - } - if (_vnodeHook = next.props && next.props.onVnodeBeforeUpdate) { - invokeVNodeHook(_vnodeHook, _parent, next, vnode); - } - var nextTree = renderComponentRoot(instance); - var prevTree = instance.subTree; - instance.subTree = nextTree; - patch(prevTree, nextTree, hostParentNode(prevTree.el), getNextHostNode(prevTree), instance, parentSuspense, isSVG); - next.el = nextTree.el; - if (originNext === null) { - updateHOCHostEl(instance, nextTree.el); - } - if (u) { - queuePostRenderEffect(u, parentSuspense); - } - if (_vnodeHook = next.props && next.props.onVnodeUpdated) { - queuePostRenderEffect(() => invokeVNodeHook(_vnodeHook, _parent, next, vnode), parentSuspense); - } - } - }, prodEffectOptions); - }; - var updateComponentPreRender = (instance, nextVNode, optimized) => { - nextVNode.component = instance; - var prevProps = instance.vnode.props; - instance.vnode = nextVNode; - instance.next = null; - updateProps(instance, nextVNode.props, prevProps, optimized); - updateSlots(instance, nextVNode.children, optimized); - pauseTracking(); - flushPreFlushCbs(void 0, instance.update); - resetTracking(); - }; - var patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => { - var c1 = n1 && n1.children; - var prevShapeFlag = n1 ? n1.shapeFlag : 0; - var c2 = n2.children; - var { - patchFlag, - shapeFlag - } = n2; - if (patchFlag > 0) { - if (patchFlag & 128) { - patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - return; - } else if (patchFlag & 256) { - patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - return; - } - } - if (shapeFlag & 8) { - if (prevShapeFlag & 16) { - unmountChildren(c1, parentComponent, parentSuspense); - } - if (c2 !== c1) { - hostSetElementText(container, c2); - } - } else { - if (prevShapeFlag & 16) { - if (shapeFlag & 16) { - patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - unmountChildren(c1, parentComponent, parentSuspense, true); - } - } else { - if (prevShapeFlag & 8) { - hostSetElementText(container, ""); - } - if (shapeFlag & 16) { - mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - } - } - }; - var patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - c1 = c1 || EMPTY_ARR; - c2 = c2 || EMPTY_ARR; - var oldLength = c1.length; - var newLength = c2.length; - var commonLength = Math.min(oldLength, newLength); - var i2; - for (i2 = 0; i2 < commonLength; i2++) { - var nextChild = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]); - patch(c1[i2], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } - if (oldLength > newLength) { - unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength); - } else { - mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength); - } - }; - var patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { - var i2 = 0; - var l2 = c2.length; - var e1 = c1.length - 1; - var e2 = l2 - 1; - while (i2 <= e1 && i2 <= e2) { - var n1 = c1[i2]; - var n2 = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]); - if (isSameVNodeType(n1, n2)) { - patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - break; - } - i2++; - } - while (i2 <= e1 && i2 <= e2) { - var _n = c1[e1]; - var _n2 = c2[e2] = optimized ? cloneIfMounted(c2[e2]) : normalizeVNode(c2[e2]); - if (isSameVNodeType(_n, _n2)) { - patch(_n, _n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else { - break; - } - e1--; - e2--; - } - if (i2 > e1) { - if (i2 <= e2) { - var nextPos = e2 + 1; - var anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor; - while (i2 <= e2) { - patch(null, c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - i2++; - } - } - } else if (i2 > e2) { - while (i2 <= e1) { - unmount(c1[i2], parentComponent, parentSuspense, true); - i2++; - } - } else { - var s1 = i2; - var s2 = i2; - var keyToNewIndexMap = new Map(); - for (i2 = s2; i2 <= e2; i2++) { - var nextChild = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]); - if (nextChild.key != null) { - keyToNewIndexMap.set(nextChild.key, i2); - } - } - var j; - var patched = 0; - var toBePatched = e2 - s2 + 1; - var moved = false; - var maxNewIndexSoFar = 0; - var newIndexToOldIndexMap = new Array(toBePatched); - for (i2 = 0; i2 < toBePatched; i2++) { - newIndexToOldIndexMap[i2] = 0; - } - for (i2 = s1; i2 <= e1; i2++) { - var prevChild = c1[i2]; - if (patched >= toBePatched) { - unmount(prevChild, parentComponent, parentSuspense, true); - continue; - } - var newIndex = void 0; - if (prevChild.key != null) { - newIndex = keyToNewIndexMap.get(prevChild.key); - } else { - for (j = s2; j <= e2; j++) { - if (newIndexToOldIndexMap[j - s2] === 0 && isSameVNodeType(prevChild, c2[j])) { - newIndex = j; - break; - } - } - } - if (newIndex === void 0) { - unmount(prevChild, parentComponent, parentSuspense, true); - } else { - newIndexToOldIndexMap[newIndex - s2] = i2 + 1; - if (newIndex >= maxNewIndexSoFar) { - maxNewIndexSoFar = newIndex; - } else { - moved = true; - } - patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - patched++; - } - } - var increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR; - j = increasingNewIndexSequence.length - 1; - for (i2 = toBePatched - 1; i2 >= 0; i2--) { - var nextIndex = s2 + i2; - var _nextChild = c2[nextIndex]; - var _anchor2 = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor; - if (newIndexToOldIndexMap[i2] === 0) { - patch(null, _nextChild, container, _anchor2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else if (moved) { - if (j < 0 || i2 !== increasingNewIndexSequence[j]) { - move(_nextChild, container, _anchor2, 2); - } else { - j--; - } - } - } - } - }; - var move = (vnode, container, anchor, moveType, parentSuspense = null) => { - var { - el, - type, - transition, - children, - shapeFlag - } = vnode; - if (shapeFlag & 6) { - move(vnode.component.subTree, container, anchor, moveType); - return; - } - if (shapeFlag & 128) { - vnode.suspense.move(container, anchor, moveType); - return; - } - if (shapeFlag & 64) { - type.move(vnode, container, anchor, internals); - return; - } - if (type === Fragment) { - hostInsert(el, container, anchor); - for (var i2 = 0; i2 < children.length; i2++) { - move(children[i2], container, anchor, moveType); - } - hostInsert(vnode.anchor, container, anchor); - return; - } - if (type === Static) { - moveStaticNode(vnode, container, anchor); - return; - } - var needTransition = moveType !== 2 && shapeFlag & 1 && transition; - if (needTransition) { - if (moveType === 0) { - transition.beforeEnter(el); - hostInsert(el, container, anchor); - queuePostRenderEffect(() => transition.enter(el), parentSuspense); - } else { - var { - leave, - delayLeave, - afterLeave - } = transition; - var _remove = () => hostInsert(el, container, anchor); - var performLeave = () => { - leave(el, () => { - _remove(); - afterLeave && afterLeave(); - }); - }; - if (delayLeave) { - delayLeave(el, _remove, performLeave); - } else { - performLeave(); - } - } - } else { - hostInsert(el, container, anchor); - } - }; - var unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => { - var { - type, - props: props2, - ref: ref2, - children, - dynamicChildren, - shapeFlag, - patchFlag, - dirs - } = vnode; - if (ref2 != null) { - setRef(ref2, null, parentSuspense, vnode, true); - } - if (shapeFlag & 256) { - parentComponent.ctx.deactivate(vnode); - return; - } - var shouldInvokeDirs = shapeFlag & 1 && dirs; - var vnodeHook; - if (vnodeHook = props2 && props2.onVnodeBeforeUnmount) { - invokeVNodeHook(vnodeHook, parentComponent, vnode); - } - if (shapeFlag & 6) { - unmountComponent(vnode.component, parentSuspense, doRemove); - } else { - if (shapeFlag & 128) { - vnode.suspense.unmount(parentSuspense, doRemove); - return; - } - if (shouldInvokeDirs) { - invokeDirectiveHook(vnode, null, parentComponent, "beforeUnmount"); - } - if (shapeFlag & 64) { - vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove); - } else if (dynamicChildren && (type !== Fragment || patchFlag > 0 && patchFlag & 64)) { - unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true); - } else if (type === Fragment && (patchFlag & 128 || patchFlag & 256) || !optimized && shapeFlag & 16) { - unmountChildren(children, parentComponent, parentSuspense); - } - if (doRemove) { - remove2(vnode); - } - } - if ((vnodeHook = props2 && props2.onVnodeUnmounted) || shouldInvokeDirs) { - queuePostRenderEffect(() => { - vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); - shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted"); - }, parentSuspense); - } - }; - var remove2 = (vnode) => { - var { - type, - el, - anchor, - transition - } = vnode; - if (type === Fragment) { - removeFragment(el, anchor); - return; - } - if (type === Static) { - removeStaticNode(vnode); - return; - } - var performRemove = () => { - hostRemove(el); - if (transition && !transition.persisted && transition.afterLeave) { - transition.afterLeave(); - } - }; - if (vnode.shapeFlag & 1 && transition && !transition.persisted) { - var { - leave, - delayLeave - } = transition; - var performLeave = () => leave(el, performRemove); - if (delayLeave) { - delayLeave(vnode.el, performRemove, performLeave); - } else { - performLeave(); - } - } else { - performRemove(); - } - }; - var removeFragment = (cur, end) => { - var next; - while (cur !== end) { - next = hostNextSibling(cur); - hostRemove(cur); - cur = next; - } - hostRemove(end); - }; - var unmountComponent = (instance, parentSuspense, doRemove) => { - var { - bum, - effects, - update, - subTree, - um - } = instance; - if (bum) { - invokeArrayFns(bum); - } - if (effects) { - for (var i2 = 0; i2 < effects.length; i2++) { - stop(effects[i2]); - } - } - if (update) { - stop(update); - unmount(subTree, instance, parentSuspense, doRemove); - } - if (um) { - queuePostRenderEffect(um, parentSuspense); - } - queuePostRenderEffect(() => { - instance.isUnmounted = true; - }, parentSuspense); - if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) { - parentSuspense.deps--; - if (parentSuspense.deps === 0) { - parentSuspense.resolve(); - } - } - }; - var unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => { - for (var i2 = start; i2 < children.length; i2++) { - unmount(children[i2], parentComponent, parentSuspense, doRemove, optimized); - } - }; - var getNextHostNode = (vnode) => { - if (vnode.shapeFlag & 6) { - return getNextHostNode(vnode.component.subTree); - } - if (vnode.shapeFlag & 128) { - return vnode.suspense.next(); - } - return hostNextSibling(vnode.anchor || vnode.el); - }; - var render = (vnode, container, isSVG) => { - if (vnode == null) { - if (container._vnode) { - unmount(container._vnode, null, null, true); - } - } else { - var _p = container.__vueParent; - patch(container._vnode || null, vnode, container, null, _p, null, isSVG); - } - container._vnode = vnode; - }; - var internals = { - p: patch, - um: unmount, - m: move, - r: remove2, - mt: mountComponent, - mc: mountChildren, - pc: patchChildren, - pbc: patchBlockChildren, - n: getNextHostNode, - o: options - }; - var hydrate; - var hydrateNode; - if (createHydrationFns) { - [hydrate, hydrateNode] = createHydrationFns(internals); - } - return { - render, - hydrate, - createApp: createAppAPI(render, hydrate) - }; - } - function invokeVNodeHook(hook, instance, vnode, prevVNode = null) { - callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]); - } - function traverseStaticChildren(n1, n2, shallow = false) { - var ch1 = n1.children; - var ch2 = n2.children; - if (isArray(ch1) && isArray(ch2)) { - for (var i2 = 0; i2 < ch1.length; i2++) { - var c1 = ch1[i2]; - var c2 = ch2[i2]; - if (c2.shapeFlag & 1 && !c2.dynamicChildren) { - if (c2.patchFlag <= 0 || c2.patchFlag === 32) { - c2 = ch2[i2] = cloneIfMounted(ch2[i2]); - c2.el = c1.el; - } - if (!shallow) - traverseStaticChildren(c1, c2); - } - } - } - } - function getSequence(arr) { - var p2 = arr.slice(); - var result = [0]; - var i2, j, u, v2, c; - var len = arr.length; - for (i2 = 0; i2 < len; i2++) { - var arrI = arr[i2]; - if (arrI !== 0) { - j = result[result.length - 1]; - if (arr[j] < arrI) { - p2[i2] = j; - result.push(i2); - continue; - } - u = 0; - v2 = result.length - 1; - while (u < v2) { - c = (u + v2) / 2 | 0; - if (arr[result[c]] < arrI) { - u = c + 1; - } else { - v2 = c; - } - } - if (arrI < arr[result[u]]) { - if (u > 0) { - p2[i2] = result[u - 1]; - } - result[u] = i2; - } - } - } - u = result.length; - v2 = result[u - 1]; - while (u-- > 0) { - result[u] = v2; - v2 = p2[v2]; - } - return result; - } - var isTeleport = (type) => type.__isTeleport; - var NULL_DYNAMIC_COMPONENT = Symbol(); - var Fragment = Symbol(void 0); - var Text$1 = Symbol(void 0); - var Comment$1 = Symbol(void 0); - var Static = Symbol(void 0); - var currentBlock = null; - var isBlockTreeEnabled = 1; - function setBlockTracking(value) { - isBlockTreeEnabled += value; - } - function isVNode(value) { - return value ? value.__v_isVNode === true : false; - } - function isSameVNodeType(n1, n2) { - return n1.type === n2.type && n1.key === n2.key; - } - var InternalObjectKey = "__vInternal"; - var normalizeKey = ({ - key: key2 - }) => key2 != null ? key2 : null; - var normalizeRef = ({ - ref: ref2 - }) => { - return ref2 != null ? isString(ref2) || isRef(ref2) || isFunction(ref2) ? { - i: currentRenderingInstance, - r: ref2 - } : ref2 : null; - }; - var createVNode = _createVNode; - function _createVNode(type, props2 = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { - if (!type || type === NULL_DYNAMIC_COMPONENT) { - type = Comment$1; - } - if (isVNode(type)) { - var cloned = cloneVNode(type, props2, true); - if (children) { - normalizeChildren(cloned, children); - } - return cloned; - } - if (isClassComponent(type)) { - type = type.__vccOpts; - } - if (props2) { - if (isProxy(props2) || InternalObjectKey in props2) { - props2 = extend({}, props2); - } - var { - class: klass, - style - } = props2; - if (klass && !isString(klass)) { - props2.class = normalizeClass(klass); - } - if (isObject$1(style)) { - if (isProxy(style) && !isArray(style)) { - style = extend({}, style); - } - props2.style = normalizeStyle(style); - } - } - var shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject$1(type) ? 4 : isFunction(type) ? 2 : 0; - var vnode = { - __v_isVNode: true, - __v_skip: true, - type, - props: props2, - key: props2 && normalizeKey(props2), - ref: props2 && normalizeRef(props2), - scopeId: currentScopeId, - slotScopeIds: null, - children: null, - component: null, - suspense: null, - ssContent: null, - ssFallback: null, - dirs: null, - transition: null, - el: null, - anchor: null, - target: null, - targetAnchor: null, - shapeFlag, - patchFlag, - dynamicProps, - dynamicChildren: null, - appContext: null - }; - normalizeChildren(vnode, children); - if (shapeFlag & 128) { - type.normalize(vnode); - } - if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock && (patchFlag > 0 || shapeFlag & 6) && patchFlag !== 32) { - currentBlock.push(vnode); - } - return vnode; - } - function cloneVNode(vnode, extraProps, mergeRef = false) { - var { - props: props2, - ref: ref2, - patchFlag, - children - } = vnode; - var mergedProps = extraProps ? mergeProps(props2 || {}, extraProps) : props2; - var cloned = { - __v_isVNode: true, - __v_skip: true, - type: vnode.type, - props: mergedProps, - key: mergedProps && normalizeKey(mergedProps), - ref: extraProps && extraProps.ref ? mergeRef && ref2 ? isArray(ref2) ? ref2.concat(normalizeRef(extraProps)) : [ref2, normalizeRef(extraProps)] : normalizeRef(extraProps) : ref2, - scopeId: vnode.scopeId, - slotScopeIds: vnode.slotScopeIds, - children, - target: vnode.target, - targetAnchor: vnode.targetAnchor, - staticCount: vnode.staticCount, - staticCache: vnode.staticCache, - shapeFlag: vnode.shapeFlag, - patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16 : patchFlag | 16 : patchFlag, - dynamicProps: vnode.dynamicProps, - dynamicChildren: vnode.dynamicChildren, - appContext: vnode.appContext, - dirs: vnode.dirs, - transition: vnode.transition, - component: vnode.component, - suspense: vnode.suspense, - ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), - ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), - el: vnode.el, - anchor: vnode.anchor - }; - return cloned; - } - function createTextVNode(text2 = " ", flag = 0) { - return createVNode(Text$1, null, text2, flag); - } - function normalizeVNode(child) { - if (child == null || typeof child === "boolean") { - return createVNode(Comment$1); - } else if (isArray(child)) { - return createVNode(Fragment, null, child.slice()); - } else if (typeof child === "object") { - return cloneIfMounted(child); - } else { - return createVNode(Text$1, null, String(child)); - } - } - function cloneIfMounted(child) { - return child.el === null ? child : cloneVNode(child); - } - function normalizeChildren(vnode, children) { - var type = 0; - var { - shapeFlag - } = vnode; - if (children == null) { - children = null; - } else if (isArray(children)) { - type = 16; - } else if (typeof children === "object") { - if (shapeFlag & 1 || shapeFlag & 64) { - var slot = children.default; - if (slot) { - slot._c && (slot._d = false); - normalizeChildren(vnode, slot()); - slot._c && (slot._d = true); - } - return; - } else { - type = 32; - var slotFlag = children._; - if (!slotFlag && !(InternalObjectKey in children)) { - children._ctx = currentRenderingInstance; - } else if (slotFlag === 3 && currentRenderingInstance) { - if (currentRenderingInstance.slots._ === 1) { - children._ = 1; - } else { - children._ = 2; - vnode.patchFlag |= 1024; - } - } - } - } else if (isFunction(children)) { - children = { - default: children, - _ctx: currentRenderingInstance - }; - type = 32; - } else { - children = String(children); - if (shapeFlag & 64) { - type = 16; - children = [createTextVNode(children)]; - } else { - type = 8; - } - } - vnode.children = children; - vnode.shapeFlag |= type; - } - function mergeProps(...args) { - var ret = extend({}, args[0]); - for (var i2 = 1; i2 < args.length; i2++) { - var toMerge = args[i2]; - for (var key2 in toMerge) { - if (key2 === "class") { - if (ret.class !== toMerge.class) { - ret.class = normalizeClass([ret.class, toMerge.class]); - } - } else if (key2 === "style") { - ret.style = normalizeStyle([ret.style, toMerge.style]); - } else if (isOn(key2)) { - var existing = ret[key2]; - var incoming = toMerge[key2]; - if (existing !== incoming) { - ret[key2] = existing ? [].concat(existing, incoming) : incoming; - } - } else if (key2 !== "") { - ret[key2] = toMerge[key2]; - } - } - } - return ret; - } - var getPublicInstance = (i2) => { - if (!i2) - return null; - if (isStatefulComponent(i2)) - return getExposeProxy(i2) || i2.proxy; - return getPublicInstance(i2.parent); - }; - var publicPropertiesMap = extend(Object.create(null), { - $: (i2) => i2, - $el: (i2) => i2.vnode.el, - $data: (i2) => i2.data, - $props: (i2) => i2.props, - $attrs: (i2) => i2.attrs, - $slots: (i2) => i2.slots, - $refs: (i2) => i2.refs, - $parent: (i2) => getPublicInstance(i2.parent), - $root: (i2) => getPublicInstance(i2.root), - $emit: (i2) => i2.emit, - $options: (i2) => resolveMergedOptions(i2), - $forceUpdate: (i2) => () => queueJob(i2.update), - $nextTick: (i2) => nextTick.bind(i2.proxy), - $watch: (i2) => instanceWatch.bind(i2) - }); - var PublicInstanceProxyHandlers = { - get({ - _: instance - }, key2) { - var { - ctx: ctx2, - setupState, - data, - props: props2, - accessCache, - type, - appContext - } = instance; - var normalizedProps; - if (key2[0] !== "$") { - var n = accessCache[key2]; - if (n !== void 0) { - switch (n) { - case 0: - return setupState[key2]; - case 1: - return data[key2]; - case 3: - return ctx2[key2]; - case 2: - return props2[key2]; - } - } else if (setupState !== EMPTY_OBJ && hasOwn$1(setupState, key2)) { - accessCache[key2] = 0; - return setupState[key2]; - } else if (data !== EMPTY_OBJ && hasOwn$1(data, key2)) { - accessCache[key2] = 1; - return data[key2]; - } else if ((normalizedProps = instance.propsOptions[0]) && hasOwn$1(normalizedProps, key2)) { - accessCache[key2] = 2; - return props2[key2]; - } else if (ctx2 !== EMPTY_OBJ && hasOwn$1(ctx2, key2)) { - accessCache[key2] = 3; - return ctx2[key2]; - } else if (shouldCacheAccess) { - accessCache[key2] = 4; - } - } - var publicGetter = publicPropertiesMap[key2]; - var cssModule, globalProperties; - if (publicGetter) { - if (key2 === "$attrs") { - track(instance, "get", key2); - } - return publicGetter(instance); - } else if ((cssModule = type.__cssModules) && (cssModule = cssModule[key2])) { - return cssModule; - } else if (ctx2 !== EMPTY_OBJ && hasOwn$1(ctx2, key2)) { - accessCache[key2] = 3; - return ctx2[key2]; - } else if (globalProperties = appContext.config.globalProperties, hasOwn$1(globalProperties, key2)) { - { - return globalProperties[key2]; - } - } else - ; - }, - set({ - _: instance - }, key2, value) { - var { - data, - setupState, - ctx: ctx2 - } = instance; - if (setupState !== EMPTY_OBJ && hasOwn$1(setupState, key2)) { - setupState[key2] = value; - } else if (data !== EMPTY_OBJ && hasOwn$1(data, key2)) { - data[key2] = value; - } else if (hasOwn$1(instance.props, key2)) { - return false; - } - if (key2[0] === "$" && key2.slice(1) in instance) { - return false; - } else { - { - ctx2[key2] = value; - } - } - return true; - }, - has({ - _: { - data, - setupState, - accessCache, - ctx: ctx2, - appContext, - propsOptions - } - }, key2) { - var normalizedProps; - return accessCache[key2] !== void 0 || data !== EMPTY_OBJ && hasOwn$1(data, key2) || setupState !== EMPTY_OBJ && hasOwn$1(setupState, key2) || (normalizedProps = propsOptions[0]) && hasOwn$1(normalizedProps, key2) || hasOwn$1(ctx2, key2) || hasOwn$1(publicPropertiesMap, key2) || hasOwn$1(appContext.config.globalProperties, key2); - } - }; - var RuntimeCompiledPublicInstanceProxyHandlers = extend({}, PublicInstanceProxyHandlers, { - get(target, key2) { - if (key2 === Symbol.unscopables) { - return; - } - return PublicInstanceProxyHandlers.get(target, key2, target); - }, - has(_, key2) { - var has2 = key2[0] !== "_" && !isGloballyWhitelisted(key2); - return has2; - } - }); - var emptyAppContext = createAppContext(); - var uid$2 = 0; - function createComponentInstance(vnode, parent, suspense) { - var type = vnode.type; - var appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext; - var instance = { - uid: uid$2++, - vnode, - type, - parent, - appContext, - root: null, - next: null, - subTree: null, - update: null, - render: null, - proxy: null, - exposed: null, - exposeProxy: null, - withProxy: null, - effects: null, - provides: parent ? parent.provides : Object.create(appContext.provides), - accessCache: null, - renderCache: [], - components: null, - directives: null, - propsOptions: normalizePropsOptions(type, appContext), - emitsOptions: normalizeEmitsOptions(type, appContext), - emit: null, - emitted: null, - propsDefaults: EMPTY_OBJ, - inheritAttrs: type.inheritAttrs, - ctx: EMPTY_OBJ, - data: EMPTY_OBJ, - props: EMPTY_OBJ, - attrs: EMPTY_OBJ, - slots: EMPTY_OBJ, - refs: EMPTY_OBJ, - setupState: EMPTY_OBJ, - setupContext: null, - suspense, - suspenseId: suspense ? suspense.pendingId : 0, - asyncDep: null, - asyncResolved: false, - isMounted: false, - isUnmounted: false, - isDeactivated: false, - bc: null, - c: null, - bm: null, - m: null, - bu: null, - u: null, - um: null, - bum: null, - da: null, - a: null, - rtg: null, - rtc: null, - ec: null, - sp: null - }; - { - instance.ctx = { - _: instance - }; - } - instance.root = parent ? parent.root : instance; - instance.emit = emit$2.bind(null, instance); - return instance; - } - var currentInstance = null; - var getCurrentInstance = () => currentInstance || currentRenderingInstance; - var setCurrentInstance = (instance) => { - currentInstance = instance; - }; - function isStatefulComponent(instance) { - return instance.vnode.shapeFlag & 4; - } - var isInSSRComponentSetup = false; - function setupComponent(instance, isSSR = false) { - isInSSRComponentSetup = isSSR; - var { - props: props2, - children - } = instance.vnode; - var isStateful = isStatefulComponent(instance); - initProps(instance, props2, isStateful, isSSR); - initSlots(instance, children); - var setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0; - isInSSRComponentSetup = false; - return setupResult; - } - function setupStatefulComponent(instance, isSSR) { - var Component = instance.type; - instance.accessCache = Object.create(null); - instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers)); - var { - setup - } = Component; - if (setup) { - var setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null; - currentInstance = instance; - pauseTracking(); - var setupResult = callWithErrorHandling(setup, instance, 0, [instance.props, setupContext]); - resetTracking(); - currentInstance = null; - if (isPromise(setupResult)) { - var unsetInstance = () => { - currentInstance = null; - }; - setupResult.then(unsetInstance, unsetInstance); - if (isSSR) { - return setupResult.then((resolvedResult) => { - handleSetupResult(instance, resolvedResult); - }).catch((e2) => { - handleError(e2, instance, 0); - }); - } else { - instance.asyncDep = setupResult; - } - } else { - handleSetupResult(instance, setupResult); - } - } else { - finishComponentSetup(instance); - } - } - function handleSetupResult(instance, setupResult, isSSR) { - if (isFunction(setupResult)) { - { - instance.render = setupResult; - } - } else if (isObject$1(setupResult)) { - instance.setupState = proxyRefs(setupResult); - } else - ; - finishComponentSetup(instance); - } - function finishComponentSetup(instance, isSSR, skipOptions) { - var Component = instance.type; - if (!instance.render) { - instance.render = Component.render || NOOP; - if (instance.render._rc) { - instance.withProxy = new Proxy(instance.ctx, RuntimeCompiledPublicInstanceProxyHandlers); - } - } - { - currentInstance = instance; - pauseTracking(); - applyOptions(instance); - resetTracking(); - currentInstance = null; - } - } - function createSetupContext(instance) { - var expose = (exposed) => { - instance.exposed = exposed || {}; - }; - { - return { - attrs: instance.attrs, - slots: instance.slots, - emit: instance.emit, - expose - }; - } - } - function getExposeProxy(instance) { - if (instance.exposed) { - return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), { - get(target, key2) { - if (key2 in target) { - return target[key2]; - } else if (key2 in publicPropertiesMap) { - return publicPropertiesMap[key2](instance); - } - } - })); - } - } - function recordInstanceBoundEffect(effect2, instance = currentInstance) { - if (instance) { - (instance.effects || (instance.effects = [])).push(effect2); - } - } - var classifyRE = /(?:^|[-_])(\w)/g; - var classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, ""); - function getComponentName(Component) { - return isFunction(Component) ? Component.displayName || Component.name : Component.name; - } - function formatComponentName(instance, Component, isRoot = false) { - var name = getComponentName(Component); - if (!name && Component.__file) { - var match = Component.__file.match(/([^/\\]+)\.\w+$/); - if (match) { - name = match[1]; - } - } - if (!name && instance && instance.parent) { - var inferFromRegistry = (registry) => { - for (var key2 in registry) { - if (registry[key2] === Component) { - return key2; - } - } - }; - name = inferFromRegistry(instance.components || instance.parent.type.components) || inferFromRegistry(instance.appContext.components); - } - return name ? classify(name) : isRoot ? "App" : "Anonymous"; - } - function isClassComponent(value) { - return isFunction(value) && "__vccOpts" in value; - } - function computed$1(getterOrOptions) { - var c = computed(getterOrOptions); - recordInstanceBoundEffect(c.effect); - return c; - } - function h(type, propsOrChildren, children) { - var l = arguments.length; - if (l === 2) { - if (isObject$1(propsOrChildren) && !isArray(propsOrChildren)) { - if (isVNode(propsOrChildren)) { - return createVNode(type, null, [propsOrChildren]); - } - return createVNode(type, propsOrChildren); - } else { - return createVNode(type, null, propsOrChildren); - } - } else { - if (l > 3) { - children = Array.prototype.slice.call(arguments, 2); - } else if (l === 3 && isVNode(children)) { - children = [children]; - } - return createVNode(type, propsOrChildren, children); - } - } - var version = "3.1.4"; - var svgNS = "http://www.w3.org/2000/svg"; - var doc = typeof document !== "undefined" ? document : null; - var nodeOps = { - insert: (child, parent, anchor) => { - parent.insertBefore(child, anchor || null); - }, - remove: (child) => { - var parent = child.parentNode; - if (parent) { - parent.removeChild(child); - } - }, - createElement: (tag, isSVG, is2, props2) => { - var el = isSVG ? doc.createElementNS(svgNS, tag) : doc.createElement(tag, is2 ? { - is: is2 - } : void 0); - if (tag === "select" && props2 && props2.multiple != null) { - el.setAttribute("multiple", props2.multiple); - } - return el; - }, - createText: (text2) => doc.createTextNode(text2), - createComment: (text2) => doc.createComment(text2), - setText: (node, text2) => { - node.nodeValue = text2; - }, - setElementText: (el, text2) => { - el.textContent = text2; - }, - parentNode: (node) => node.parentNode, - nextSibling: (node) => node.nextSibling, - querySelector: (selector) => doc.querySelector(selector), - setScopeId(el, id2) { - el.setAttribute(id2, ""); - }, - cloneNode(el) { - var cloned = el.cloneNode(true); - if ("_value" in el) { - cloned._value = el._value; - } - return cloned; - }, - insertStaticContent(content, parent, anchor, isSVG, cached) { - if (cached) { - var _first; - var _last; - var i2 = 0; - var l = cached.length; - for (; i2 < l; i2++) { - var node = cached[i2].cloneNode(true); - if (i2 === 0) - _first = node; - if (i2 === l - 1) - _last = node; - parent.insertBefore(node, anchor); - } - return [_first, _last]; - } - var before = anchor ? anchor.previousSibling : parent.lastChild; - if (anchor) { - var insertionPoint; - var usingTempInsertionPoint = false; - if (anchor instanceof Element) { - insertionPoint = anchor; - } else { - usingTempInsertionPoint = true; - insertionPoint = isSVG ? doc.createElementNS(svgNS, "g") : doc.createElement("div"); - parent.insertBefore(insertionPoint, anchor); - } - insertionPoint.insertAdjacentHTML("beforebegin", content); - if (usingTempInsertionPoint) { - parent.removeChild(insertionPoint); - } - } else { - parent.insertAdjacentHTML("beforeend", content); - } - var first = before ? before.nextSibling : parent.firstChild; - var last = anchor ? anchor.previousSibling : parent.lastChild; - var ret = []; - while (first) { - ret.push(first); - if (first === last) - break; - first = first.nextSibling; - } - return ret; - } - }; - function patchClass$1(el, value, isSVG) { - if (value == null) { - value = ""; - } - if (isSVG) { - el.setAttribute("class", value); - } else { - var transitionClasses = el._vtc; - if (transitionClasses) { - value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" "); - } - el.className = value; - } - } - function patchStyle$1(el, prev, next) { - var style = el.style; - if (!next) { - el.removeAttribute("style"); - } else if (isString(next)) { - if (prev !== next) { - var current = style.display; - style.cssText = normalizeRpx(next); - if ("_vod" in el) { - style.display = current; - } - } - } else { - for (var key2 in next) { - setStyle$1(style, key2, next[key2]); - } - if (prev && !isString(prev)) { - for (var _key10 in prev) { - if (next[_key10] == null) { - setStyle$1(style, _key10, ""); - } - } - } - } - } - var importantRE$1 = /\s*!important$/; - function setStyle$1(style, name, val) { - if (isArray(val)) { - val.forEach((v2) => setStyle$1(style, name, v2)); - } else { - val = normalizeRpx(val); - if (name.startsWith("--")) { - style.setProperty(name, val); - } else { - var prefixed = autoPrefix$1(style, name); - if (importantRE$1.test(val)) { - style.setProperty(hyphenate(prefixed), val.replace(importantRE$1, ""), "important"); - } else { - style[prefixed] = val; - } - } - } - } - var prefixes$1 = ["Webkit", "Moz", "ms"]; - var prefixCache$1 = {}; - function autoPrefix$1(style, rawName) { - var cached = prefixCache$1[rawName]; - if (cached) { - return cached; - } - var name = camelize(rawName); - if (name !== "filter" && name in style) { - return prefixCache$1[rawName] = name; - } - name = capitalize(name); - for (var i2 = 0; i2 < prefixes$1.length; i2++) { - var prefixed = prefixes$1[i2] + name; - if (prefixed in style) { - return prefixCache$1[rawName] = prefixed; - } - } - return rawName; - } - var rpxRE = /\b([+-]?\d+(\.\d+)?)[r|u]px\b/g; - var normalizeRpx = (val) => { - if (typeof rpx2px !== "function") { - return val; - } - if (isString(val)) { - return val.replace(rpxRE, (a2, b) => { - return rpx2px(b) + "px"; - }); - } - return val; - }; - var xlinkNS = "http://www.w3.org/1999/xlink"; - function patchAttr(el, key2, value, isSVG, instance) { - if (isSVG && key2.startsWith("xlink:")) { - if (value == null) { - el.removeAttributeNS(xlinkNS, key2.slice(6, key2.length)); - } else { - el.setAttributeNS(xlinkNS, key2, value); - } - } else { - var _isBoolean = isSpecialBooleanAttr(key2); - if (value == null || _isBoolean && value === false) { - el.removeAttribute(key2); - } else { - el.setAttribute(key2, _isBoolean ? "" : value); - } - } - } - function patchDOMProp(el, key2, value, prevChildren, parentComponent, parentSuspense, unmountChildren) { - if (key2 === "innerHTML" || key2 === "textContent") { - if (prevChildren) { - unmountChildren(prevChildren, parentComponent, parentSuspense); - } - el[key2] = value == null ? "" : value; - return; - } - if (key2 === "value" && el.tagName !== "PROGRESS") { - el._value = value; - var newValue = value == null ? "" : value; - if (el.value !== newValue) { - el.value = newValue; - } - if (value == null) { - el.removeAttribute(key2); - } - return; - } - if (value === "" || value == null) { - var type = typeof el[key2]; - if (value === "" && type === "boolean") { - el[key2] = true; - return; - } else if (value == null && type === "string") { - el[key2] = ""; - el.removeAttribute(key2); - return; - } else if (type === "number") { - el[key2] = 0; - el.removeAttribute(key2); - return; - } - } - try { - el[key2] = value; - } catch (e2) { - } - } - var _getNow = Date.now; - var skipTimestampCheck = false; - if (typeof window !== "undefined") { - if (_getNow() > document.createEvent("Event").timeStamp) { - _getNow = () => performance.now(); - } - var ffMatch = navigator.userAgent.match(/firefox\/(\d+)/i); - skipTimestampCheck = !!(ffMatch && Number(ffMatch[1]) <= 53); - } - var cachedNow = 0; - var p$1 = Promise.resolve(); - var reset = () => { - cachedNow = 0; - }; - var getNow = () => cachedNow || (p$1.then(reset), cachedNow = _getNow()); - function addEventListener$1(el, event, handler, options) { - el.addEventListener(event, handler, options); - } - function removeEventListener$1(el, event, handler, options) { - el.removeEventListener(event, handler, options); - } - function patchEvent$1(el, rawName, prevValue, nextValue, instance = null) { - var invokers = el._vei || (el._vei = {}); - var existingInvoker = invokers[rawName]; - if (nextValue && existingInvoker) { - existingInvoker.value = nextValue; - } else { - var [name, options] = parseName(rawName); - if (nextValue) { - var invoker = invokers[rawName] = createInvoker$1(nextValue, instance); - addEventListener$1(el, name, invoker, options); - } else if (existingInvoker) { - removeEventListener$1(el, name, existingInvoker, options); - invokers[rawName] = void 0; - } - } - } - var optionsModifierRE = /(?:Once|Passive|Capture)$/; - function parseName(name) { - var options; - if (optionsModifierRE.test(name)) { - options = {}; - var m; - while (m = name.match(optionsModifierRE)) { - name = name.slice(0, name.length - m[0].length); - options[m[0].toLowerCase()] = true; - } - } - return [hyphenate(name.slice(2)), options]; - } - function createInvoker$1(initialValue, instance) { - var invoker = (e2) => { - var timeStamp = e2.timeStamp || _getNow(); - if (skipTimestampCheck || timeStamp >= invoker.attached - 1) { - callWithAsyncErrorHandling(patchStopImmediatePropagation(e2, invoker.value), instance, 5, [e2]); - } - }; - invoker.value = initialValue; - invoker.attached = getNow(); - return invoker; - } - function patchStopImmediatePropagation(e2, value) { - if (isArray(value)) { - var originalStop = e2.stopImmediatePropagation; - e2.stopImmediatePropagation = () => { - originalStop.call(e2); - e2._stopped = true; - }; - return value.map((fn) => (e3) => !e3._stopped && fn(e3)); - } else { - return value; - } - } - var nativeOnRE = /^on[a-z]/; - var forcePatchProp = (_, key2) => key2 === "value"; - var patchProp = (el, key2, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => { - switch (key2) { - case "class": - patchClass$1(el, nextValue, isSVG); - break; - case "style": - patchStyle$1(el, prevValue, nextValue); - break; - default: - if (isOn(key2)) { - if (!isModelListener(key2)) { - patchEvent$1(el, key2, prevValue, nextValue, parentComponent); - } - } else if (shouldSetAsProp(el, key2, nextValue, isSVG)) { - patchDOMProp(el, key2, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren); - } else { - if (key2 === "true-value") { - el._trueValue = nextValue; - } else if (key2 === "false-value") { - el._falseValue = nextValue; - } - patchAttr(el, key2, nextValue, isSVG); - } - break; - } - }; - function shouldSetAsProp(el, key2, value, isSVG) { - if (isSVG) { - if (key2 === "innerHTML") { - return true; - } - if (key2 in el && nativeOnRE.test(key2) && isFunction(value)) { - return true; - } - return false; - } - if (key2 === "spellcheck" || key2 === "draggable") { - return false; - } - if (key2 === "form") { - return false; - } - if (key2 === "list" && el.tagName === "INPUT") { - return false; - } - if (key2 === "type" && el.tagName === "TEXTAREA") { - return false; - } - if (nativeOnRE.test(key2) && isString(value)) { - return false; - } - return key2 in el; - } - var systemModifiers = ["ctrl", "shift", "alt", "meta"]; - var modifierGuards = { - stop: (e2) => e2.stopPropagation(), - prevent: (e2) => e2.preventDefault(), - self: (e2) => e2.target !== e2.currentTarget, - ctrl: (e2) => !e2.ctrlKey, - shift: (e2) => !e2.shiftKey, - alt: (e2) => !e2.altKey, - meta: (e2) => !e2.metaKey, - left: (e2) => "button" in e2 && e2.button !== 0, - middle: (e2) => "button" in e2 && e2.button !== 1, - right: (e2) => "button" in e2 && e2.button !== 2, - exact: (e2, modifiers) => systemModifiers.some((m) => e2["".concat(m, "Key")] && !modifiers.includes(m)) - }; - var withModifiers = (fn, modifiers) => { - return (event, ...args) => { - for (var i2 = 0; i2 < modifiers.length; i2++) { - var guard = modifierGuards[modifiers[i2]]; - if (guard && guard(event, modifiers)) - return; - } - return fn(event, ...args); - }; - }; - var vShow = { - beforeMount(el, { - value - }, { - transition - }) { - el._vod = el.style.display === "none" ? "" : el.style.display; - if (transition && value) { - transition.beforeEnter(el); - } else { - setDisplay(el, value); - } - }, - mounted(el, { - value - }, { - transition - }) { - if (transition && value) { - transition.enter(el); - } - }, - updated(el, { - value, - oldValue - }, { - transition - }) { - if (!value === !oldValue) - return; - if (transition) { - if (value) { - transition.beforeEnter(el); - setDisplay(el, true); - transition.enter(el); - } else { - transition.leave(el, () => { - setDisplay(el, false); - }); - } - } else { - setDisplay(el, value); - } - }, - beforeUnmount(el, { - value - }) { - setDisplay(el, value); - } - }; - function setDisplay(el, value) { - el.style.display = value ? el._vod : "none"; - } - var rendererOptions = extend({ - patchProp, - forcePatchProp - }, nodeOps); - var renderer; - function ensureRenderer() { - return renderer || (renderer = createRenderer(rendererOptions)); - } - var createApp = (...args) => { - var app = ensureRenderer().createApp(...args); - var { - mount - } = app; - app.mount = (containerOrSelector) => { - var container = normalizeContainer(containerOrSelector); - if (!container) - return; - var component = app._component; - if (!isFunction(component) && !component.render && !component.template) { - component.template = container.innerHTML; - } - container.innerHTML = ""; - var proxy = mount(container, false, container instanceof SVGElement); - if (container instanceof Element) { - container.removeAttribute("v-cloak"); - container.setAttribute("data-v-app", ""); - } - return proxy; - }; - return app; - }; - function normalizeContainer(container) { - if (isString(container)) { - var res = document.querySelector(container); - return res; - } - return container; - } - var attrs = ["top", "left", "right", "bottom"]; - var inited$1; - var elementComputedStyle = {}; - var support; - function getSupport() { - if (!("CSS" in window) || typeof CSS.supports != "function") { - support = ""; - } else if (CSS.supports("top: env(safe-area-inset-top)")) { - support = "env"; - } else if (CSS.supports("top: constant(safe-area-inset-top)")) { - support = "constant"; - } else { - support = ""; - } - return support; - } - function init() { - support = typeof support === "string" ? support : getSupport(); - if (!support) { - attrs.forEach(function(attr2) { - elementComputedStyle[attr2] = 0; - }); - return; - } - function setStyle2(el, style) { - var elStyle = el.style; - Object.keys(style).forEach(function(key2) { - var val = style[key2]; - elStyle[key2] = val; - }); - } - var cbs = []; - function parentReady(callback) { - if (callback) { - cbs.push(callback); - } else { - cbs.forEach(function(cb) { - cb(); - }); - } - } - var passiveEvents = false; - try { - var opts = Object.defineProperty({}, "passive", { - get: function() { - passiveEvents = { - passive: true - }; - } - }); - window.addEventListener("test", null, opts); - } catch (e2) { - } - function addChild(parent, attr2) { - var a1 = document.createElement("div"); - var a2 = document.createElement("div"); - var a1Children = document.createElement("div"); - var a2Children = document.createElement("div"); - var W = 100; - var MAX = 1e4; - var aStyle = { - position: "absolute", - width: W + "px", - height: "200px", - boxSizing: "border-box", - overflow: "hidden", - paddingBottom: support + "(safe-area-inset-" + attr2 + ")" - }; - setStyle2(a1, aStyle); - setStyle2(a2, aStyle); - setStyle2(a1Children, { - transition: "0s", - animation: "none", - width: "400px", - height: "400px" - }); - setStyle2(a2Children, { - transition: "0s", - animation: "none", - width: "250%", - height: "250%" - }); - a1.appendChild(a1Children); - a2.appendChild(a2Children); - parent.appendChild(a1); - parent.appendChild(a2); - parentReady(function() { - a1.scrollTop = a2.scrollTop = MAX; - var a1LastScrollTop = a1.scrollTop; - var a2LastScrollTop = a2.scrollTop; - function onScroll() { - if (this.scrollTop === (this === a1 ? a1LastScrollTop : a2LastScrollTop)) { - return; - } - a1.scrollTop = a2.scrollTop = MAX; - a1LastScrollTop = a1.scrollTop; - a2LastScrollTop = a2.scrollTop; - attrChange(attr2); - } - a1.addEventListener("scroll", onScroll, passiveEvents); - a2.addEventListener("scroll", onScroll, passiveEvents); - }); - var computedStyle = getComputedStyle(a1); - Object.defineProperty(elementComputedStyle, attr2, { - configurable: true, - get: function() { - return parseFloat(computedStyle.paddingBottom); - } - }); - } - var parentDiv = document.createElement("div"); - setStyle2(parentDiv, { - position: "absolute", - left: "0", - top: "0", - width: "0", - height: "0", - zIndex: "-1", - overflow: "hidden", - visibility: "hidden" - }); - attrs.forEach(function(key2) { - addChild(parentDiv, key2); - }); - document.body.appendChild(parentDiv); - parentReady(); - inited$1 = true; - } - function getAttr(attr2) { - if (!inited$1) { - init(); - } - return elementComputedStyle[attr2]; - } - var changeAttrs = []; - function attrChange(attr2) { - if (!changeAttrs.length) { - setTimeout(function() { - var style = {}; - changeAttrs.forEach(function(attr3) { - style[attr3] = elementComputedStyle[attr3]; - }); - changeAttrs.length = 0; - callbacks$1.forEach(function(callback) { - callback(style); - }); - }, 0); - } - changeAttrs.push(attr2); - } - var callbacks$1 = []; - function onChange(callback) { - if (!getSupport()) { - return; - } - if (!inited$1) { - init(); - } - if (typeof callback === "function") { - callbacks$1.push(callback); - } - } - function offChange(callback) { - var index2 = callbacks$1.indexOf(callback); - if (index2 >= 0) { - callbacks$1.splice(index2, 1); - } - } - var safeAreaInsets = { - get support() { - return (typeof support === "string" ? support : getSupport()).length != 0; - }, - get top() { - return getAttr("top"); - }, - get left() { - return getAttr("left"); - }, - get right() { - return getAttr("right"); - }, - get bottom() { - return getAttr("bottom"); - }, - onChange, - offChange - }; - var out = safeAreaInsets; - var onEventPrevent = /* @__PURE__ */ withModifiers(() => { - }, ["prevent"]); - function getWindowTop() { - var style = document.documentElement.style; - var top = parseInt(style.getPropertyValue("--window-top")); - return top ? top + out.top : 0; - } - function getWindowOffset() { - var style = document.documentElement.style; - var top = getWindowTop(); - var bottom = parseInt(style.getPropertyValue("--window-bottom")); - var left = parseInt(style.getPropertyValue("--window-left")); - var right = parseInt(style.getPropertyValue("--window-right")); - return { - top, - bottom: bottom ? bottom + out.bottom : 0, - left: left ? left + out.left : 0, - right: right ? right + out.right : 0 - }; - } - function updateCssVar(cssVars) { - var style = document.documentElement.style; - Object.keys(cssVars).forEach((name) => { - style.setProperty(name, cssVars[name]); - }); - } - function PolySymbol(name) { - return Symbol("[uni-app]: " + name); - } - function hasRpx(str) { - str = str + ""; - return str.indexOf("rpx") !== -1 || str.indexOf("upx") !== -1; - } - function rpx2px$1(str, replace = false) { - if (replace) { - return rpx2pxWithReplace(str); - } - if (typeof str === "string") { - var res = parseInt(str) || 0; - if (hasRpx(str)) { - return uni.upx2px(res); - } - return res; - } - return str; - } - function rpx2pxWithReplace(str) { - if (!hasRpx(str)) { - return str; - } - return str.replace(/(\d+(\.\d+)?)[ru]px/g, (_a, b) => { - return uni.upx2px(parseFloat(b)) + "px"; - }); - } - var ICON_PATH_CANCEL = "M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z"; - var ICON_PATH_CLEAR = "M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z"; - var ICON_PATH_DOWNLOAD = "M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z"; - var ICON_PATH_INFO = "M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z"; - var ICON_PATH_SEARCH = "M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z"; - var ICON_PATH_SUCCESS_NO_CIRCLE = "M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z"; - var ICON_PATH_SUCCESS = "M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z"; - var ICON_PATH_WAITING = "M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z"; - var ICON_PATH_WARN = "M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z"; - function createSvgIconVNode(path, color = "#000", size2 = 27) { - return createVNode("svg", { - width: size2, - height: size2, - viewBox: "0 0 32 32" - }, [createVNode("path", { - d: path, - fill: color - }, null, 8, ["d", "fill"])], 8, ["width", "height"]); - } - function useCurrentPageId() { - { - return getCurrentPageId(); - } - } - function getCurrentPage() { - { - return window.__PAGE_INFO__; - } - } - function getCurrentPageId() { - { - if (!window.__id__) { - window.__id__ = plus.webview.currentWebview().id; - } - return parseInt(window.__id__); - } - } - function disableScrollListener(evt) { - evt.preventDefault(); - } - var testReachBottomTimer; - var lastScrollHeight = 0; - function createScrollListener({ - onPageScroll, - onReachBottom, - onReachBottomDistance - }) { - var ticking = false; - var hasReachBottom = false; - var reachBottomLocking = true; - var isReachBottom = () => { - var { - scrollHeight - } = document.documentElement; - var windowHeight = window.innerHeight; - var scrollY = window.scrollY; - var isBottom = scrollY > 0 && scrollHeight > windowHeight && scrollY + windowHeight + onReachBottomDistance >= scrollHeight; - var heightChanged = Math.abs(scrollHeight - lastScrollHeight) > onReachBottomDistance; - if (isBottom && (!hasReachBottom || heightChanged)) { - lastScrollHeight = scrollHeight; - hasReachBottom = true; - return true; - } - if (!isBottom && hasReachBottom) { - hasReachBottom = false; - } - return false; - }; - var trigger2 = () => { - onPageScroll && onPageScroll(window.pageYOffset); - function testReachBottom() { - if (isReachBottom()) { - onReachBottom && onReachBottom(); - reachBottomLocking = false; - setTimeout(function() { - reachBottomLocking = true; - }, 350); - return true; - } - } - if (onReachBottom && reachBottomLocking) { - if (testReachBottom()) - ; - else { - testReachBottomTimer = setTimeout(testReachBottom, 300); - } - } - ticking = false; - }; - return function onScroll() { - clearTimeout(testReachBottomTimer); - if (!ticking) { - requestAnimationFrame(trigger2); - } - ticking = true; - }; - } - function getRealRoute(fromRoute, toRoute) { - if (toRoute.indexOf("/") === 0) { - return toRoute; - } - if (toRoute.indexOf("./") === 0) { - return getRealRoute(fromRoute, toRoute.substr(2)); - } - var toRouteArray = toRoute.split("/"); - var toRouteLength = toRouteArray.length; - var i2 = 0; - for (; i2 < toRouteLength && toRouteArray[i2] === ".."; i2++) { - } - toRouteArray.splice(0, i2); - toRoute = toRouteArray.join("/"); - var fromRouteArray = fromRoute.length > 0 ? fromRoute.split("/") : []; - fromRouteArray.splice(fromRouteArray.length - i2 - 1, i2 + 1); - return "/" + fromRouteArray.concat(toRouteArray).join("/"); - } - class ComponentDescriptor { - constructor(vm) { - this.$bindClass = false; - this.$bindStyle = false; - this.$vm = vm; - { - this.$el = vm.$el; - } - if (this.$el.getAttribute) { - this.$bindClass = !!this.$el.getAttribute("class"); - this.$bindStyle = !!this.$el.getAttribute("style"); - } - } - selectComponent(selector) { - if (!this.$el || !selector) { - return; - } - var el = this.$el.querySelector(selector); - return el && el.__vueParentComponent && createComponentDescriptor(el.__vueParentComponent.proxy, false); - } - selectAllComponents(selector) { - if (!this.$el || !selector) { - return []; - } - var descriptors = []; - var els = this.$el.querySelectorAll(selector); - for (var i2 = 0; i2 < els.length; i2++) { - var el = els[i2]; - el.__vueParentComponent && descriptors.push(createComponentDescriptor(el.__vueParentComponent.proxy, false)); - } - return descriptors; - } - forceUpdate(type) { - if (type === "class") { - if (this.$bindClass) { - this.$el.__wxsClassChanged = true; - this.$vm.$forceUpdate(); - } else { - this.updateWxsClass(); - } - } else if (type === "style") { - if (this.$bindStyle) { - this.$el.__wxsStyleChanged = true; - this.$vm.$forceUpdate(); - } else { - this.updateWxsStyle(); - } - } - } - updateWxsClass() { - var { - __wxsAddClass - } = this.$el; - if (__wxsAddClass.length) { - this.$el.className = __wxsAddClass.join(" "); - } - } - updateWxsStyle() { - var { - __wxsStyle - } = this.$el; - if (__wxsStyle) { - this.$el.setAttribute("style", stringifyStyle(__wxsStyle)); - } - } - setStyle(style) { - if (!this.$el || !style) { - return this; - } - if (typeof style === "string") { - style = parseStringStyle(style); - } - if (isPlainObject(style)) { - this.$el.__wxsStyle = style; - this.forceUpdate("style"); - } - return this; - } - addClass(clazz) { - if (!this.$el || !clazz) { - return this; - } - var __wxsAddClass = this.$el.__wxsAddClass || (this.$el.__wxsAddClass = []); - if (__wxsAddClass.indexOf(clazz) === -1) { - __wxsAddClass.push(clazz); - this.forceUpdate("class"); - } - return this; - } - removeClass(clazz) { - if (!this.$el || !clazz) { - return this; - } - var { - __wxsAddClass - } = this.$el; - if (__wxsAddClass) { - var index2 = __wxsAddClass.indexOf(clazz); - if (index2 > -1) { - __wxsAddClass.splice(index2, 1); - } - } - var __wxsRemoveClass = this.$el.__wxsRemoveClass || (this.$el.__wxsRemoveClass = []); - if (__wxsRemoveClass.indexOf(clazz) === -1) { - __wxsRemoveClass.push(clazz); - this.forceUpdate("class"); - } - return this; - } - hasClass(cls) { - return this.$el && this.$el.classList.contains(cls); - } - getDataset() { - return this.$el && this.$el.dataset; - } - callMethod(funcName, args = {}) { - var func = this.$vm[funcName]; - if (isFunction(func)) { - func(JSON.parse(JSON.stringify(args))); - } else if (this.$vm.ownerId) { - UniViewJSBridge.publishHandler(ON_WXS_INVOKE_CALL_METHOD, { - nodeId: this.$el.__id, - ownerId: this.$vm.ownerId, - method: funcName, - args - }); - } - } - requestAnimationFrame(callback) { - return window.requestAnimationFrame(callback); - } - getState() { - return this.$el && (this.$el.__wxsState || (this.$el.__wxsState = {})); - } - triggerEvent(eventName, detail = {}) { - return this.$vm.$emit(eventName, detail), this; - } - getComputedStyle(names) { - if (this.$el) { - var styles = window.getComputedStyle(this.$el); - if (names && names.length) { - return names.reduce((res, n) => { - res[n] = styles[n]; - return res; - }, {}); - } - return styles; - } - return {}; - } - setTimeout(handler, timeout) { - return window.setTimeout(handler, timeout); - } - clearTimeout(handle) { - return window.clearTimeout(handle); - } - getBoundingClientRect() { - return this.$el.getBoundingClientRect(); - } - } - function createComponentDescriptor(vm, isOwnerInstance = true) { - if (vm && vm.$el) { - if (!vm.$el.__wxsComponentDescriptor) { - vm.$el.__wxsComponentDescriptor = new ComponentDescriptor(vm); - } - return vm.$el.__wxsComponentDescriptor; - } - } - function getComponentDescriptor(instance, isOwnerInstance) { - return createComponentDescriptor(instance, isOwnerInstance); - } - var isClickEvent = (val) => val.type === "click"; - function $nne(evt, eventValue, instance) { - var { - currentTarget - } = evt; - if (!(evt instanceof Event) || !(currentTarget instanceof HTMLElement)) { - return [evt]; - } - if (currentTarget.tagName.indexOf("UNI-") !== 0) { - return [evt]; - } - var res = createNativeEvent(evt); - if (isClickEvent(evt)) { - normalizeClickEvent(res, evt); - } else if (evt instanceof TouchEvent) { - var top = getWindowTop(); - res.touches = normalizeTouchEvent(evt.touches, top); - res.changedTouches = normalizeTouchEvent(evt.changedTouches, top); - } - return [res]; - } - function findUniTarget(target) { - while (target && target.tagName.indexOf("UNI-") !== 0) { - target = target.parentElement; - } - return target; - } - function createNativeEvent(evt) { - var { - type, - timeStamp, - target, - currentTarget - } = evt; - var event = { - type, - timeStamp, - target: normalizeTarget(findUniTarget(target)), - detail: {}, - currentTarget: normalizeTarget(currentTarget) - }; - if (evt._stopped) { - event._stopped = true; - } - if (evt.type.startsWith("touch")) { - event.touches = evt.touches; - event.changedTouches = evt.changedTouches; - } - return event; - } - function normalizeClickEvent(evt, mouseEvt) { - var { - x, - y - } = mouseEvt; - var top = getWindowTop(); - evt.detail = { - x, - y: y - top - }; - evt.touches = evt.changedTouches = [createTouchEvent(mouseEvt)]; - } - function createTouchEvent(evt) { - return { - force: 1, - identifier: 0, - clientX: evt.clientX, - clientY: evt.clientY, - pageX: evt.pageX, - pageY: evt.pageY - }; - } - function normalizeTouchEvent(touches, top) { - var res = []; - for (var i2 = 0; i2 < touches.length; i2++) { - var { - identifier, - pageX, - pageY, - clientX, - clientY, - force - } = touches[i2]; - res.push({ - identifier, - pageX, - pageY: pageY - top, - clientX, - clientY: clientY - top, - force: force || 0 - }); - } - return res; - } - var VD_SYNC = "vdSync"; - var APP_SERVICE_ID = "__uniapp__service"; - var ON_WEBVIEW_READY = "onWebviewReady"; - var ACTION_TYPE_DICT = 0; - var WEBVIEW_INSERTED = "webviewInserted"; - var WEBVIEW_REMOVED = "webviewRemoved"; - var WEBVIEW_ID_PREFIX = "webviewId"; - var UniViewJSBridge$1 = /* @__PURE__ */ extend(ViewJSBridge, { - publishHandler - }); - function publishHandler(event, args = {}) { - var pageId = getCurrentPageId() + ""; - { - console.log("[".concat(Date.now(), "][View]: ") + pageId + " " + event + " " + JSON.stringify(args)); - } - plus.webview.postMessageToUniNView({ - type: "subscribeHandler", - args: { - type: event, - data: args, - pageId - } - }, APP_SERVICE_ID); - } - function validateProtocolFail(name, msg) { - console.warn("".concat(name, ": ").concat(msg)); - } - function validateProtocol(name, data, protocol, onFail) { - if (!onFail) { - onFail = validateProtocolFail; - } - for (var key2 in protocol) { - var errMsg = validateProp(key2, data[key2], protocol[key2], !hasOwn$1(data, key2)); - if (isString(errMsg)) { - onFail(name, errMsg); - } - } - } - function validateProtocols(name, args, protocol, onFail) { - if (!protocol) { - return; - } - if (!isArray(protocol)) { - return validateProtocol(name, args[0] || Object.create(null), protocol, onFail); - } - var len = protocol.length; - var argsLen = args.length; - for (var i2 = 0; i2 < len; i2++) { - var opts = protocol[i2]; - var data = Object.create(null); - if (argsLen > i2) { - data[opts.name] = args[i2]; - } - validateProtocol(name, data, { - [opts.name]: opts - }, onFail); - } - } - function validateProp(name, value, prop, isAbsent) { - if (!isPlainObject(prop)) { - prop = { - type: prop - }; - } - var { - type, - required, - validator - } = prop; - if (required && isAbsent) { - return 'Missing required args: "' + name + '"'; - } - if (value == null && !required) { - return; - } - if (type != null) { - var isValid = false; - var types = isArray(type) ? type : [type]; - var expectedTypes = []; - for (var i2 = 0; i2 < types.length && !isValid; i2++) { - var { - valid, - expectedType - } = assertType(value, types[i2]); - expectedTypes.push(expectedType || ""); - isValid = valid; - } - if (!isValid) { - return getInvalidTypeMessage(name, value, expectedTypes); - } - } - if (validator) { - return validator(value); - } - } - var isSimpleType = /* @__PURE__ */ makeMap$1("String,Number,Boolean,Function,Symbol"); - function assertType(value, type) { - var valid; - var expectedType = getType(type); - if (isSimpleType(expectedType)) { - var t2 = typeof value; - valid = t2 === expectedType.toLowerCase(); - if (!valid && t2 === "object") { - valid = value instanceof type; - } - } else if (expectedType === "Object") { - valid = isObject$1(value); - } else if (expectedType === "Array") { - valid = isArray(value); - } else { - { - valid = value instanceof type || toRawType(value) === getType(type); - } - } - return { - valid, - expectedType - }; - } - function getInvalidTypeMessage(name, value, expectedTypes) { - var message = 'Invalid args: type check failed for args "'.concat(name, '". Expected ').concat(expectedTypes.map(capitalize).join(", ")); - var expectedType = expectedTypes[0]; - var receivedType = toRawType(value); - var expectedValue = styleValue(value, expectedType); - var receivedValue = styleValue(value, receivedType); - if (expectedTypes.length === 1 && isExplicable(expectedType) && !isBoolean(expectedType, receivedType)) { - message += " with value ".concat(expectedValue); - } - message += ", got ".concat(receivedType, " "); - if (isExplicable(receivedType)) { - message += "with value ".concat(receivedValue, "."); - } - return message; - } - function getType(ctor) { - var match = ctor && ctor.toString().match(/^\s*function (\w+)/); - return match ? match[1] : ""; - } - function styleValue(value, type) { - if (type === "String") { - return '"'.concat(value, '"'); - } else if (type === "Number") { - return "".concat(Number(value)); - } else { - return "".concat(value); - } - } - function isExplicable(type) { - var explicitTypes = ["string", "number", "boolean"]; - return explicitTypes.some((elem) => type.toLowerCase() === elem); - } - function isBoolean(...args) { - return args.some((elem) => elem.toLowerCase() === "boolean"); - } - function formatApiArgs(args, options) { - var params = args[0]; - if (!options || !isPlainObject(options.formatArgs) && isPlainObject(params)) { - return; - } - var formatArgs = options.formatArgs; - var keys = Object.keys(formatArgs); - for (var i2 = 0; i2 < keys.length; i2++) { - var name = keys[i2]; - var formatterOrDefaultValue = formatArgs[name]; - if (isFunction(formatterOrDefaultValue)) { - var errMsg = formatterOrDefaultValue(args[0][name], params); - if (isString(errMsg)) { - return errMsg; - } - } else { - if (!hasOwn$1(params, name)) { - params[name] = formatterOrDefaultValue; - } - } - } - } - function beforeInvokeApi(name, args, protocol, options) { - { - validateProtocols(name, args, protocol); - } - if (options && options.beforeInvoke) { - var errMsg2 = options.beforeInvoke(args); - if (isString(errMsg2)) { - return errMsg2; - } - } - var errMsg = formatApiArgs(args, options); - if (errMsg) { - return errMsg; - } - } - function wrapperSyncApi(name, fn, protocol, options) { - return (...args) => { - var errMsg = beforeInvokeApi(name, args, protocol, options); - if (errMsg) { - throw new Error(errMsg); - } - return fn.apply(null, args); - }; - } - function defineSyncApi(name, fn, protocol, options) { - return wrapperSyncApi(name, fn, protocol, options); - } - function getBaseSystemInfo() { - if (typeof __SYSTEM_INFO__ !== "undefined") { - return window.__SYSTEM_INFO__; - } - var { - resolutionWidth - } = plus.screen.getCurrentSize(); - return { - platform: (plus.os.name || "").toLowerCase(), - pixelRatio: plus.screen.scale, - windowWidth: Math.round(resolutionWidth) - }; - } - function getRealPath(filepath) { - if (filepath.indexOf("//") === 0) { - return "https:" + filepath; - } - if (SCHEME_RE.test(filepath) || DATA_RE.test(filepath)) { - return filepath; - } - if (isSystemURL(filepath)) { - return "file://" + normalizeLocalPath(filepath); - } - var wwwPath = "file://" + normalizeLocalPath("_www"); - if (filepath.indexOf("/") === 0) { - if (filepath.startsWith("/storage/") || filepath.includes("/Containers/Data/Application/")) { - return "file://" + filepath; - } - return wwwPath + filepath; - } - if (filepath.indexOf("../") === 0 || filepath.indexOf("./") === 0) { - if (typeof __id__ === "string") { - return wwwPath + getRealRoute("/" + __id__, filepath); - } else { - var page = getCurrentPage(); - if (page) { - return wwwPath + getRealRoute("/" + page.route, filepath); - } - } - } - return filepath; - } - var normalizeLocalPath = cacheStringFunction((filepath) => { - return plus.io.convertLocalFileSystemURL(filepath).replace(/^\/?apps\//, "/android_asset/apps/").replace(/\/$/, ""); - }); - function isSystemURL(filepath) { - if (filepath.indexOf("_www") === 0 || filepath.indexOf("_doc") === 0 || filepath.indexOf("_documents") === 0 || filepath.indexOf("_downloads") === 0) { - return true; - } - return false; - } - function saveImage(base64, dirname, callback) { - } - function getSameOriginUrl(url) { - return Promise.resolve(url); - } - var API_UPX2PX = "upx2px"; - var Upx2pxProtocol = [{ - name: "upx", - type: [Number, String], - required: true - }]; - var EPS = 1e-4; - var BASE_DEVICE_WIDTH = 750; - var isIOS = false; - var deviceWidth = 0; - var deviceDPR = 0; - function checkDeviceWidth() { - var { - platform, - pixelRatio: pixelRatio2, - windowWidth - } = getBaseSystemInfo(); - deviceWidth = windowWidth; - deviceDPR = pixelRatio2; - isIOS = platform === "ios"; - } - function checkValue(value, defaultValue) { - var newValue = Number(value); - return isNaN(newValue) ? defaultValue : newValue; - } - var upx2px = /* @__PURE__ */ defineSyncApi(API_UPX2PX, (number, newDeviceWidth) => { - if (deviceWidth === 0) { - checkDeviceWidth(); - } - number = Number(number); - if (number === 0) { - return 0; - } - var width = newDeviceWidth || deviceWidth; - { - var config = __uniConfig.globalStyle || {}; - var maxWidth = checkValue(config.rpxCalcMaxDeviceWidth, 960); - var baseWidth = checkValue(config.rpxCalcBaseDeviceWidth, 375); - width = width <= maxWidth ? width : baseWidth; - } - var result = number / BASE_DEVICE_WIDTH * width; - if (result < 0) { - result = -result; - } - result = Math.floor(result + EPS); - if (result === 0) { - if (deviceDPR === 1 || !isIOS) { - result = 1; - } else { - result = 0.5; - } - } - return number < 0 ? -result : result; - }, Upx2pxProtocol); - var _objectPie = {}; - _objectPie.f = {}.propertyIsEnumerable; - var DESCRIPTORS = _descriptors; - var getKeys = _objectKeys; - var toIObject = _toIobject; - var isEnum = _objectPie.f; - var _objectToArray = function(isEntries) { - return function(it) { - var O = toIObject(it); - var keys = getKeys(O); - var length = keys.length; - var i2 = 0; - var result = []; - var key2; - while (length > i2) { - key2 = keys[i2++]; - if (!DESCRIPTORS || isEnum.call(O, key2)) { - result.push(isEntries ? [key2, O[key2]] : O[key2]); - } - } - return result; - }; - }; - var $export = _export; - var $values = _objectToArray(false); - $export($export.S, "Object", { - values: function values(it) { - return $values(it); - } - }); - var API_LOAD_FONT_FACE = "loadFontFace"; - var API_PAGE_SCROLL_TO = "pageScrollTo"; - var initIntersectionObserverPolyfill = function() { - if (typeof window !== "object") { - return; - } - if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) { - if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) { - Object.defineProperty(window.IntersectionObserverEntry.prototype, "isIntersecting", { - get: function() { - return this.intersectionRatio > 0; - } - }); - } - return; - } - function getFrameElement(doc2) { - try { - return doc2.defaultView && doc2.defaultView.frameElement || null; - } catch (e2) { - return null; - } - } - var document2 = function(startDoc) { - var doc2 = startDoc; - var frame = getFrameElement(doc2); - while (frame) { - doc2 = frame.ownerDocument; - frame = getFrameElement(doc2); - } - return doc2; - }(window.document); - var registry = []; - var crossOriginUpdater = null; - var crossOriginRect = null; - function IntersectionObserverEntry(entry) { - this.time = entry.time; - this.target = entry.target; - this.rootBounds = ensureDOMRect(entry.rootBounds); - this.boundingClientRect = ensureDOMRect(entry.boundingClientRect); - this.intersectionRect = ensureDOMRect(entry.intersectionRect || getEmptyRect()); - this.isIntersecting = !!entry.intersectionRect; - var targetRect = this.boundingClientRect; - var targetArea = targetRect.width * targetRect.height; - var intersectionRect = this.intersectionRect; - var intersectionArea = intersectionRect.width * intersectionRect.height; - if (targetArea) { - this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4)); - } else { - this.intersectionRatio = this.isIntersecting ? 1 : 0; - } - } - function IntersectionObserver2(callback, opt_options) { - var options = opt_options || {}; - if (typeof callback != "function") { - throw new Error("callback must be a function"); - } - if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) { - throw new Error("root must be a Document or Element"); - } - this._checkForIntersections = throttle2(this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT); - this._callback = callback; - this._observationTargets = []; - this._queuedEntries = []; - this._rootMarginValues = this._parseRootMargin(options.rootMargin); - this.thresholds = this._initThresholds(options.threshold); - this.root = options.root || null; - this.rootMargin = this._rootMarginValues.map(function(margin) { - return margin.value + margin.unit; - }).join(" "); - this._monitoringDocuments = []; - this._monitoringUnsubscribes = []; - } - IntersectionObserver2.prototype.THROTTLE_TIMEOUT = 100; - IntersectionObserver2.prototype.POLL_INTERVAL = null; - IntersectionObserver2.prototype.USE_MUTATION_OBSERVER = true; - IntersectionObserver2._setupCrossOriginUpdater = function() { - if (!crossOriginUpdater) { - crossOriginUpdater = function(boundingClientRect, intersectionRect) { - if (!boundingClientRect || !intersectionRect) { - crossOriginRect = getEmptyRect(); - } else { - crossOriginRect = convertFromParentRect(boundingClientRect, intersectionRect); - } - registry.forEach(function(observer) { - observer._checkForIntersections(); - }); - }; - } - return crossOriginUpdater; - }; - IntersectionObserver2._resetCrossOriginUpdater = function() { - crossOriginUpdater = null; - crossOriginRect = null; - }; - IntersectionObserver2.prototype.observe = function(target) { - var isTargetAlreadyObserved = this._observationTargets.some(function(item) { - return item.element == target; - }); - if (isTargetAlreadyObserved) { - return; - } - if (!(target && target.nodeType == 1)) { - throw new Error("target must be an Element"); - } - this._registerInstance(); - this._observationTargets.push({ - element: target, - entry: null - }); - this._monitorIntersections(target.ownerDocument); - this._checkForIntersections(); - }; - IntersectionObserver2.prototype.unobserve = function(target) { - this._observationTargets = this._observationTargets.filter(function(item) { - return item.element != target; - }); - this._unmonitorIntersections(target.ownerDocument); - if (this._observationTargets.length == 0) { - this._unregisterInstance(); - } - }; - IntersectionObserver2.prototype.disconnect = function() { - this._observationTargets = []; - this._unmonitorAllIntersections(); - this._unregisterInstance(); - }; - IntersectionObserver2.prototype.takeRecords = function() { - var records = this._queuedEntries.slice(); - this._queuedEntries = []; - return records; - }; - IntersectionObserver2.prototype._initThresholds = function(opt_threshold) { - var threshold = opt_threshold || [0]; - if (!Array.isArray(threshold)) - threshold = [threshold]; - return threshold.sort().filter(function(t2, i2, a2) { - if (typeof t2 != "number" || isNaN(t2) || t2 < 0 || t2 > 1) { - throw new Error("threshold must be a number between 0 and 1 inclusively"); - } - return t2 !== a2[i2 - 1]; - }); - }; - IntersectionObserver2.prototype._parseRootMargin = function(opt_rootMargin) { - var marginString = opt_rootMargin || "0px"; - var margins = marginString.split(/\s+/).map(function(margin) { - var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin); - if (!parts) { - throw new Error("rootMargin must be specified in pixels or percent"); - } - return { - value: parseFloat(parts[1]), - unit: parts[2] - }; - }); - margins[1] = margins[1] || margins[0]; - margins[2] = margins[2] || margins[0]; - margins[3] = margins[3] || margins[1]; - return margins; - }; - IntersectionObserver2.prototype._monitorIntersections = function(doc2) { - var win = doc2.defaultView; - if (!win) { - return; - } - if (this._monitoringDocuments.indexOf(doc2) != -1) { - return; - } - var callback = this._checkForIntersections; - var monitoringInterval = null; - var domObserver = null; - if (this.POLL_INTERVAL) { - monitoringInterval = win.setInterval(callback, this.POLL_INTERVAL); - } else { - addEvent(win, "resize", callback, true); - addEvent(doc2, "scroll", callback, true); - if (this.USE_MUTATION_OBSERVER && "MutationObserver" in win) { - domObserver = new win.MutationObserver(callback); - domObserver.observe(doc2, { - attributes: true, - childList: true, - characterData: true, - subtree: true - }); - } - } - this._monitoringDocuments.push(doc2); - this._monitoringUnsubscribes.push(function() { - var win2 = doc2.defaultView; - if (win2) { - if (monitoringInterval) { - win2.clearInterval(monitoringInterval); - } - removeEvent(win2, "resize", callback, true); - } - removeEvent(doc2, "scroll", callback, true); - if (domObserver) { - domObserver.disconnect(); - } - }); - var rootDoc = this.root && (this.root.ownerDocument || this.root) || document2; - if (doc2 != rootDoc) { - var frame = getFrameElement(doc2); - if (frame) { - this._monitorIntersections(frame.ownerDocument); - } - } - }; - IntersectionObserver2.prototype._unmonitorIntersections = function(doc2) { - var index2 = this._monitoringDocuments.indexOf(doc2); - if (index2 == -1) { - return; - } - var rootDoc = this.root && (this.root.ownerDocument || this.root) || document2; - var hasDependentTargets = this._observationTargets.some(function(item) { - var itemDoc = item.element.ownerDocument; - if (itemDoc == doc2) { - return true; - } - while (itemDoc && itemDoc != rootDoc) { - var frame2 = getFrameElement(itemDoc); - itemDoc = frame2 && frame2.ownerDocument; - if (itemDoc == doc2) { - return true; - } - } - return false; - }); - if (hasDependentTargets) { - return; - } - var unsubscribe = this._monitoringUnsubscribes[index2]; - this._monitoringDocuments.splice(index2, 1); - this._monitoringUnsubscribes.splice(index2, 1); - unsubscribe(); - if (doc2 != rootDoc) { - var frame = getFrameElement(doc2); - if (frame) { - this._unmonitorIntersections(frame.ownerDocument); - } - } - }; - IntersectionObserver2.prototype._unmonitorAllIntersections = function() { - var unsubscribes = this._monitoringUnsubscribes.slice(0); - this._monitoringDocuments.length = 0; - this._monitoringUnsubscribes.length = 0; - for (var i2 = 0; i2 < unsubscribes.length; i2++) { - unsubscribes[i2](); - } - }; - IntersectionObserver2.prototype._checkForIntersections = function() { - if (!this.root && crossOriginUpdater && !crossOriginRect) { - return; - } - var rootIsInDom = this._rootIsInDom(); - var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect(); - this._observationTargets.forEach(function(item) { - var target = item.element; - var targetRect = getBoundingClientRect(target); - var rootContainsTarget = this._rootContainsTarget(target); - var oldEntry = item.entry; - var intersectionRect = rootIsInDom && rootContainsTarget && this._computeTargetAndRootIntersection(target, targetRect, rootRect); - var rootBounds = null; - if (!this._rootContainsTarget(target)) { - rootBounds = getEmptyRect(); - } else if (!crossOriginUpdater || this.root) { - rootBounds = rootRect; - } - var newEntry = item.entry = new IntersectionObserverEntry({ - time: now(), - target, - boundingClientRect: targetRect, - rootBounds, - intersectionRect - }); - if (!oldEntry) { - this._queuedEntries.push(newEntry); - } else if (rootIsInDom && rootContainsTarget) { - if (this._hasCrossedThreshold(oldEntry, newEntry)) { - this._queuedEntries.push(newEntry); - } - } else { - if (oldEntry && oldEntry.isIntersecting) { - this._queuedEntries.push(newEntry); - } - } - }, this); - if (this._queuedEntries.length) { - this._callback(this.takeRecords(), this); - } - }; - IntersectionObserver2.prototype._computeTargetAndRootIntersection = function(target, targetRect, rootRect) { - if (window.getComputedStyle(target).display == "none") - return; - var intersectionRect = targetRect; - var parent = getParentNode(target); - var atRoot = false; - while (!atRoot && parent) { - var parentRect = null; - var parentComputedStyle = parent.nodeType == 1 ? window.getComputedStyle(parent) : {}; - if (parentComputedStyle.display == "none") - return null; - if (parent == this.root || parent.nodeType == 9) { - atRoot = true; - if (parent == this.root || parent == document2) { - if (crossOriginUpdater && !this.root) { - if (!crossOriginRect || crossOriginRect.width == 0 && crossOriginRect.height == 0) { - parent = null; - parentRect = null; - intersectionRect = null; - } else { - parentRect = crossOriginRect; - } - } else { - parentRect = rootRect; - } - } else { - var frame = getParentNode(parent); - var frameRect = frame && getBoundingClientRect(frame); - var frameIntersect = frame && this._computeTargetAndRootIntersection(frame, frameRect, rootRect); - if (frameRect && frameIntersect) { - parent = frame; - parentRect = convertFromParentRect(frameRect, frameIntersect); - } else { - parent = null; - intersectionRect = null; - } - } - } else { - var doc2 = parent.ownerDocument; - if (parent != doc2.body && parent != doc2.documentElement && parentComputedStyle.overflow != "visible") { - parentRect = getBoundingClientRect(parent); - } - } - if (parentRect) { - intersectionRect = computeRectIntersection(parentRect, intersectionRect); - } - if (!intersectionRect) - break; - parent = parent && getParentNode(parent); - } - return intersectionRect; - }; - IntersectionObserver2.prototype._getRootRect = function() { - var rootRect; - if (this.root && !isDoc(this.root)) { - rootRect = getBoundingClientRect(this.root); - } else { - var doc2 = isDoc(this.root) ? this.root : document2; - var html = doc2.documentElement; - var body = doc2.body; - rootRect = { - top: 0, - left: 0, - right: html.clientWidth || body.clientWidth, - width: html.clientWidth || body.clientWidth, - bottom: html.clientHeight || body.clientHeight, - height: html.clientHeight || body.clientHeight - }; - } - return this._expandRectByRootMargin(rootRect); - }; - IntersectionObserver2.prototype._expandRectByRootMargin = function(rect) { - var margins = this._rootMarginValues.map(function(margin, i2) { - return margin.unit == "px" ? margin.value : margin.value * (i2 % 2 ? rect.width : rect.height) / 100; - }); - var newRect = { - top: rect.top - margins[0], - right: rect.right + margins[1], - bottom: rect.bottom + margins[2], - left: rect.left - margins[3] - }; - newRect.width = newRect.right - newRect.left; - newRect.height = newRect.bottom - newRect.top; - return newRect; - }; - IntersectionObserver2.prototype._hasCrossedThreshold = function(oldEntry, newEntry) { - var oldRatio = oldEntry && oldEntry.isIntersecting ? oldEntry.intersectionRatio || 0 : -1; - var newRatio = newEntry.isIntersecting ? newEntry.intersectionRatio || 0 : -1; - if (oldRatio === newRatio) - return; - for (var i2 = 0; i2 < this.thresholds.length; i2++) { - var threshold = this.thresholds[i2]; - if (threshold == oldRatio || threshold == newRatio || threshold < oldRatio !== threshold < newRatio) { - return true; - } - } - }; - IntersectionObserver2.prototype._rootIsInDom = function() { - return !this.root || containsDeep(document2, this.root); - }; - IntersectionObserver2.prototype._rootContainsTarget = function(target) { - var rootDoc = this.root && (this.root.ownerDocument || this.root) || document2; - return containsDeep(rootDoc, target) && (!this.root || rootDoc == target.ownerDocument); - }; - IntersectionObserver2.prototype._registerInstance = function() { - if (registry.indexOf(this) < 0) { - registry.push(this); - } - }; - IntersectionObserver2.prototype._unregisterInstance = function() { - var index2 = registry.indexOf(this); - if (index2 != -1) - registry.splice(index2, 1); - }; - function now() { - return window.performance && performance.now && performance.now(); - } - function throttle2(fn, timeout) { - var timer = null; - return function() { - if (!timer) { - timer = setTimeout(function() { - fn(); - timer = null; - }, timeout); - } - }; - } - function addEvent(node, event, fn, opt_useCapture) { - if (typeof node.addEventListener == "function") { - node.addEventListener(event, fn, opt_useCapture || false); - } else if (typeof node.attachEvent == "function") { - node.attachEvent("on" + event, fn); - } - } - function removeEvent(node, event, fn, opt_useCapture) { - if (typeof node.removeEventListener == "function") { - node.removeEventListener(event, fn, opt_useCapture || false); - } else if (typeof node.detatchEvent == "function") { - node.detatchEvent("on" + event, fn); - } - } - function computeRectIntersection(rect1, rect2) { - var top = Math.max(rect1.top, rect2.top); - var bottom = Math.min(rect1.bottom, rect2.bottom); - var left = Math.max(rect1.left, rect2.left); - var right = Math.min(rect1.right, rect2.right); - var width = right - left; - var height = bottom - top; - return width >= 0 && height >= 0 && { - top, - bottom, - left, - right, - width, - height - } || null; - } - function getBoundingClientRect(el) { - var rect; - try { - rect = el.getBoundingClientRect(); - } catch (err) { - } - if (!rect) - return getEmptyRect(); - if (!(rect.width && rect.height)) { - rect = { - top: rect.top, - right: rect.right, - bottom: rect.bottom, - left: rect.left, - width: rect.right - rect.left, - height: rect.bottom - rect.top - }; - } - return rect; - } - function getEmptyRect() { - return { - top: 0, - bottom: 0, - left: 0, - right: 0, - width: 0, - height: 0 - }; - } - function ensureDOMRect(rect) { - if (!rect || "x" in rect) { - return rect; - } - return { - top: rect.top, - y: rect.top, - bottom: rect.bottom, - left: rect.left, - x: rect.left, - right: rect.right, - width: rect.width, - height: rect.height - }; - } - function convertFromParentRect(parentBoundingRect, parentIntersectionRect) { - var top = parentIntersectionRect.top - parentBoundingRect.top; - var left = parentIntersectionRect.left - parentBoundingRect.left; - return { - top, - left, - height: parentIntersectionRect.height, - width: parentIntersectionRect.width, - bottom: top + parentIntersectionRect.height, - right: left + parentIntersectionRect.width - }; - } - function containsDeep(parent, child) { - var node = child; - while (node) { - if (node == parent) - return true; - node = getParentNode(node); - } - return false; - } - function getParentNode(node) { - var parent = node.parentNode; - if (node.nodeType == 9 && node != document2) { - return getFrameElement(node); - } - if (parent && parent.assignedSlot) { - parent = parent.assignedSlot.parentNode; - } - if (parent && parent.nodeType == 11 && parent.host) { - return parent.host; - } - return parent; - } - function isDoc(node) { - return node && node.nodeType === 9; - } - window.IntersectionObserver = IntersectionObserver2; - window.IntersectionObserverEntry = IntersectionObserverEntry; - }; - function normalizeRect(rect) { - var { - bottom, - height, - left, - right, - top, - width - } = rect || {}; - return { - bottom, - height, - left, - right, - top, - width - }; - } - function rectifyIntersectionRatio(entrie) { - var { - intersectionRatio, - boundingClientRect: { - height: overAllHeight, - width: overAllWidth - }, - intersectionRect: { - height: intersectionHeight, - width: intersectionWidth - } - } = entrie; - if (intersectionRatio !== 0) - return intersectionRatio; - return intersectionHeight === overAllHeight ? intersectionWidth / overAllWidth : intersectionHeight / overAllHeight; - } - function requestComponentObserver($el, options, callback) { - initIntersectionObserverPolyfill(); - var root = options.relativeToSelector ? $el.querySelector(options.relativeToSelector) : null; - var intersectionObserver = new IntersectionObserver((entries2) => { - entries2.forEach((entrie) => { - callback({ - intersectionRatio: rectifyIntersectionRatio(entrie), - intersectionRect: normalizeRect(entrie.intersectionRect), - boundingClientRect: normalizeRect(entrie.boundingClientRect), - relativeRect: normalizeRect(entrie.rootBounds), - time: Date.now(), - dataset: getCustomDataset(entrie.target), - id: entrie.target.id - }); - }); - }, { - root, - rootMargin: options.rootMargin, - threshold: options.thresholds - }); - if (options.observeAll) { - intersectionObserver.USE_MUTATION_OBSERVER = true; - var nodeList = $el.querySelectorAll(options.selector); - for (var i2 = 0; i2 < nodeList.length; i2++) { - intersectionObserver.observe(nodeList[i2]); - } - } else { - intersectionObserver.USE_MUTATION_OBSERVER = false; - var el = $el.querySelector(options.selector); - if (!el) { - console.warn("Node ".concat(options.selector, " is not found. Intersection observer will not trigger.")); - } else { - intersectionObserver.observe(el); - } - } - return intersectionObserver; - } - function navigateTo(args) { - UniViewJSBridge.invokeServiceMethod("navigateTo", args); - } - function navigateBack(args) { - UniViewJSBridge.invokeServiceMethod("navigateBack", args); - } - function reLaunch(args) { - UniViewJSBridge.invokeServiceMethod("reLaunch", args); - } - function redirectTo(args) { - UniViewJSBridge.invokeServiceMethod("redirectTo", args); - } - function switchTab(args) { - UniViewJSBridge.invokeServiceMethod("switchTab", args); - } - var uni$1 = /* @__PURE__ */ Object.freeze({ - __proto__: null, - [Symbol.toStringTag]: "Module", - upx2px, - navigateTo, - navigateBack, - reLaunch, - redirectTo, - switchTab - }); - function preventDoubleTap() { - if (String(navigator.vendor).indexOf("Apple") === 0) { - var firstEvent = null; - var timeout; - document.documentElement.addEventListener("click", (event) => { - var TIME_MAX = 450; - var PAGE_MAX = 44; - clearTimeout(timeout); - if (firstEvent && Math.abs(event.pageX - firstEvent.pageX) <= PAGE_MAX && Math.abs(event.pageY - firstEvent.pageY) <= PAGE_MAX && event.timeStamp - firstEvent.timeStamp <= TIME_MAX) { - event.preventDefault(); - } - firstEvent = event; - timeout = setTimeout(() => { - firstEvent = null; - }, TIME_MAX); - }); - } - } - function createGetDict(dict) { - if (!dict.length) { - return (v2) => v2; - } - var getDict = (value, includeValue = true) => { - if (typeof value === "number") { - return dict[value]; - } - var res = {}; - value.forEach(([n, v2]) => { - if (includeValue) { - res[getDict(n)] = getDict(v2); - } else { - res[getDict(n)] = v2; - } - }); - return res; - }; - return getDict; - } - function decodeNodeJson(getDict, nodeJson) { - if (!nodeJson) { - return; - } - if (nodeJson.a) { - nodeJson.a = getDict(nodeJson.a); - } - if (nodeJson.e) { - nodeJson.e = getDict(nodeJson.e, false); - } - if (nodeJson.w) { - nodeJson.w = getWxsEventDict(nodeJson.w, getDict); - } - if (nodeJson.s) { - nodeJson.s = getDict(nodeJson.s); - } - if (nodeJson.t) { - nodeJson.t = getDict(nodeJson.t); - } - return nodeJson; - } - function getWxsEventDict(w, getDict) { - var res = {}; - w.forEach(([name, [wxsEvent, flag]]) => { - res[getDict(name)] = [getDict(wxsEvent), flag]; - }); - return res; - } - function createActionJob(fn, priority) { - return fn.priority = priority, fn; - } - var postActionJobs = new Set(); - var JOB_PRIORITY_UPDATE = 1; - var JOB_PRIORITY_REBUILD = 2; - var JOB_PRIORITY_RENDERJS = 3; - var JOB_PRIORITY_WXS_PROPS = 4; - function queuePostActionJob(job, priority) { - postActionJobs.add(createActionJob(job, priority)); - } - function flushPostActionJobs() { - { - console.log(formatLog("flushPostActionJobs", postActionJobs.size)); - } - try { - ; - [...postActionJobs].sort((a2, b) => a2.priority - b.priority).forEach((fn) => fn()); - } finally { - postActionJobs.clear(); - } - } - function getViewModule(moduleId, ownerEl) { - var __wxsModules = window["__" + WXS_MODULES]; - var module = __wxsModules && __wxsModules[moduleId]; - if (module) { - return module; - } - if (ownerEl && ownerEl.__renderjsInstances) { - return ownerEl.__renderjsInstances[moduleId]; - } - } - var WXS_PROTOCOL_LEN = WXS_PROTOCOL.length; - function invokeWxs(el, wxsStr, invokerArgs) { - var [ownerId, moduleId, invoker, args] = parseWxs(wxsStr); - var ownerEl = resolveOwnerEl(el, ownerId); - if (isArray(invokerArgs) || isArray(args)) { - var [moduleName, mehtodName] = invoker.split("."); - return invokeWxsMethod(ownerEl, moduleId, moduleName, mehtodName, invokerArgs || args); - } - return getWxsProp(ownerEl, moduleId, invoker); - } - function invokeWxsEvent(el, wxsStr, event) { - var [ownerId, moduleId, invoker] = parseWxs(wxsStr); - var [moduleName, mehtodName] = invoker.split("."); - var ownerEl = resolveOwnerEl(el, ownerId); - return invokeWxsMethod(ownerEl, moduleId, moduleName, mehtodName, [wrapperWxsEvent(event, el), getComponentDescriptor(createComponentDescriptorVm(ownerEl), false)]); - } - function resolveOwnerEl(el, ownerId) { - if (el.__ownerId === ownerId) { - return el; - } - var parentElement = el.parentElement; - while (parentElement) { - if (parentElement.__ownerId === ownerId) { - return parentElement; - } - parentElement = parentElement.parentElement; - } - return el; - } - function parseWxs(wxsStr) { - return JSON.parse(wxsStr.substr(WXS_PROTOCOL_LEN)); - } - function invokeWxsProps(wxsStr, el, newValue, oldValue) { - var [ownerId, moduleId, invoker] = parseWxs(wxsStr); - var ownerEl = resolveOwnerEl(el, ownerId); - var [moduleName, mehtodName] = invoker.split("."); - return invokeWxsMethod(ownerEl, moduleId, moduleName, mehtodName, [newValue, oldValue, getComponentDescriptor(createComponentDescriptorVm(ownerEl), false), getComponentDescriptor(createComponentDescriptorVm(el), false)]); - } - function invokeWxsMethod(ownerEl, moduleId, moduleName, methodName, args) { - var module = getViewModule(moduleId, ownerEl); - if (!module) { - return console.error(formatLog("wxs", "module " + moduleName + " not found")); - } - var method = module[methodName]; - if (!isFunction(method)) { - return console.error(moduleName + "." + methodName + " is not a function"); - } - return method.apply(module, args); - } - function getWxsProp(ownerEl, moduleId, dataPath) { - var module = getViewModule(moduleId, ownerEl); - if (!module) { - return console.error(formatLog("wxs", "module " + dataPath + " not found")); - } - return getValueByDataPath(module, dataPath.substr(dataPath.indexOf(".") + 1)); - } - function createWxsPropsInvoker(node, wxsInvoker, value) { - var oldValue = value; - return (newValue) => { - try { - invokeWxsProps(wxsInvoker, node.$, newValue, oldValue); - } catch (e2) { - console.error(e2); - } - oldValue = newValue; - }; - } - function wrapperWxsEvent(event, el) { - var vm = createComponentDescriptorVm(el); - Object.defineProperty(event, "instance", { - get() { - return getComponentDescriptor(vm, false); - } - }); - return event; - } - function createComponentDescriptorVm(el) { - return el.__wxsVm || (el.__wxsVm = { - ownerId: el.__ownerId, - $el: el, - $emit() { - }, - $forceUpdate() { - var { - __wxsStyle, - __wxsAddClass, - __wxsRemoveClass, - __wxsStyleChanged, - __wxsClassChanged - } = el; - var updateClass; - var updateStyle; - if (__wxsStyleChanged) { - el.__wxsStyleChanged = false; - __wxsStyle && (updateStyle = () => { - Object.keys(__wxsStyle).forEach((n) => { - el.style[n] = __wxsStyle[n]; - }); - }); - } - if (__wxsClassChanged) { - el.__wxsClassChanged = false; - updateClass = () => { - __wxsRemoveClass && __wxsRemoveClass.forEach((clazz) => { - el.classList.remove(clazz); - }); - __wxsAddClass && __wxsAddClass.forEach((clazz) => { - el.classList.add(clazz); - }); - }; - } - requestAnimationFrame(() => { - updateClass && updateClass(); - updateStyle && updateStyle(); - }); - } - }); - } - function initRenderjs(node, moduleIds) { - Object.keys(moduleIds).forEach((name) => { - initRenderjsModule(node, moduleIds[name]); - }); - } - function destroyRenderjs(node) { - var { - __renderjsInstances - } = node.$; - if (!__renderjsInstances) { - return; - } - Object.keys(__renderjsInstances).forEach((id2) => { - __renderjsInstances[id2].$.appContext.app.unmount(); - }); - } - function initRenderjsModule(node, moduleId) { - var options = getRenderjsModule(moduleId); - if (!options) { - return; - } - var el = node.$; - (el.__renderjsInstances || (el.__renderjsInstances = {}))[moduleId] = createRenderjsInstance(options); - } - function getRenderjsModule(moduleId) { - var __renderjsModules = window["__" + RENDERJS_MODULES]; - var module = __renderjsModules && __renderjsModules[moduleId]; - if (!module) { - return console.error(formatLog("renderjs", moduleId + " not found")); - } - return module; - } - function createRenderjsInstance(options) { - options = options.default || options; - options.render = () => { - }; - return createApp(options).mount(document.createElement("div")); - } - class UniNode { - constructor(id2, tag, parentNodeId, element) { - this.isMounted = false; - this.isUnmounted = false; - this.$hasWxsProps = false; - this.id = id2; - this.tag = tag; - this.pid = parentNodeId; - if (element) { - this.$ = element; - } - this.$wxsProps = new Map(); - } - init(nodeJson) { - if (hasOwn$1(nodeJson, "t")) { - this.$.textContent = nodeJson.t; - } - } - setText(text2) { - this.$.textContent = text2; - } - insert(parentNodeId, refNodeId) { - var node = this.$; - var parentNode = $(parentNodeId); - if (refNodeId === -1) { - parentNode.appendChild(node); - } else { - parentNode.insertBefore(node, $(refNodeId).$); - } - this.isMounted = true; - } - remove() { - var { - $: $2 - } = this; - $2.parentNode.removeChild($2); - this.isUnmounted = true; - removeElement(this.id); - destroyRenderjs(this); - } - appendChild(node) { - return this.$.appendChild(node); - } - insertBefore(newChild, refChild) { - return this.$.insertBefore(newChild, refChild); - } - setWxsProps(attrs2) { - Object.keys(attrs2).forEach((name) => { - if (name.indexOf(ATTR_CHANGE_PREFIX) === 0) { - var propName = name.replace(ATTR_CHANGE_PREFIX, ""); - var value = attrs2[propName]; - var invoker = createWxsPropsInvoker(this, attrs2[name], value); - queuePostActionJob(() => invoker(value), JOB_PRIORITY_WXS_PROPS); - this.$wxsProps.set(name, invoker); - delete attrs2[name]; - delete attrs2[propName]; - this.$hasWxsProps = true; - } - }); - } - addWxsEvents(events) { - Object.keys(events).forEach((name) => { - var [wxsEvent, flag] = events[name]; - this.addWxsEvent(name, wxsEvent, flag); - }); - } - addWxsEvent(name, wxsEvent, flag) { - } - wxsPropsInvoke(name, value, isNextTick = false) { - var wxsPropsInvoker = this.$hasWxsProps && this.$wxsProps.get(ATTR_CHANGE_PREFIX + name); - if (wxsPropsInvoker) { - return queuePostActionJob(() => isNextTick ? nextTick(() => wxsPropsInvoker(value)) : wxsPropsInvoker(value), JOB_PRIORITY_WXS_PROPS), true; - } - } - } - function patchClass(el, clazz) { - var { - __wxsAddClass, - __wxsRemoveClass - } = el; - if (__wxsRemoveClass && __wxsRemoveClass.length) { - clazz = clazz.split(/\s+/).filter((v2) => __wxsRemoveClass.indexOf(v2) === -1).join(" "); - __wxsRemoveClass.length = 0; - } - if (__wxsAddClass && __wxsAddClass.length) { - clazz = clazz + " " + __wxsAddClass.join(" "); - } - el.className = clazz; - } - function patchStyle(el, value) { - var style = el.style; - if (isString(value)) { - if (value === "") { - el.removeAttribute("style"); - } else { - style.cssText = rpx2px$1(value, true); - } - } else { - for (var key2 in value) { - setStyle(style, key2, value[key2]); - } - } - var { - __wxsStyle - } = el; - if (__wxsStyle) { - for (var _key in __wxsStyle) { - setStyle(style, _key, __wxsStyle[_key]); - } - } - } - var importantRE = /\s*!important$/; - function setStyle(style, name, val) { - if (isArray(val)) { - val.forEach((v2) => setStyle(style, name, v2)); - } else { - val = rpx2px$1(val, true); - if (name.startsWith("--")) { - style.setProperty(name, val); - } else { - var prefixed = autoPrefix(style, name); - if (importantRE.test(val)) { - style.setProperty(hyphenate(prefixed), val.replace(importantRE, ""), "important"); - } else { - style[prefixed] = val; - } - } - } - } - var prefixes = ["Webkit"]; - var prefixCache = {}; - function autoPrefix(style, rawName) { - var cached = prefixCache[rawName]; - if (cached) { - return cached; - } - var name = camelize(rawName); - if (name !== "filter" && name in style) { - return prefixCache[rawName] = name; - } - name = capitalize(name); - for (var i2 = 0; i2 < prefixes.length; i2++) { - var prefixed = prefixes[i2] + name; - if (prefixed in style) { - return prefixCache[rawName] = prefixed; - } - } - return rawName; - } - function removeEventListener(el, type) { - var listener = el.__listeners[type]; - if (listener) { - el.removeEventListener(type, listener); - } else { - console.error(formatLog("tag", el.tagName, el.__id, "event[" + type + "] not found")); - } - } - function isEventListenerExists(el, type) { - if (el.__listeners[type]) { - { - console.error(formatLog("tag", el.tagName, el.__id, "event[" + type + "] already registered")); - } - return true; - } - } - function patchEvent(el, name, flag) { - var [type, options] = parseEventName(name); - if (flag === -1) { - removeEventListener(el, type); - } else { - if (!isEventListenerExists(el, type)) { - el.addEventListener(type, el.__listeners[type] = createInvoker(el.__id, flag, options), options); - } - } - } - function createInvoker(id2, flag, options) { - var invoker = (evt) => { - var [event] = $nne(evt); - event.type = normalizeEventType(evt.type, options); - UniViewJSBridge.publishHandler(VD_SYNC, [[ACTION_TYPE_EVENT, id2, event]]); - }; - if (!flag) { - return invoker; - } - return withModifiers(invoker, resolveModifier(flag)); - } - function resolveModifier(flag) { - var modifiers = []; - if (flag & EventModifierFlags.prevent) { - modifiers.push("prevent"); - } - if (flag & EventModifierFlags.self) { - modifiers.push("self"); - } - if (flag & EventModifierFlags.stop) { - modifiers.push("stop"); - } - return modifiers; - } - function patchWxsEvent(el, name, wxsEvent, flag) { - var [type, options] = parseEventName(name); - if (flag === -1) { - removeEventListener(el, type); - } else { - if (!isEventListenerExists(el, type)) { - el.addEventListener(type, el.__listeners[type] = createWxsEventInvoker(el, wxsEvent, flag), options); - } - } - } - function createWxsEventInvoker(el, wxsEvent, flag) { - var invoker = (evt) => { - invokeWxsEvent(el, wxsEvent, $nne(evt)[0]); - }; - if (!flag) { - return invoker; - } - return withModifiers(invoker, resolveModifier(flag)); - } - var JSON_PROTOCOL_LEN = JSON_PROTOCOL.length; - function decodeAttr(el, value) { - if (!isString(value)) { - return value; - } - if (value.indexOf(JSON_PROTOCOL) === 0) { - value = JSON.parse(value.substr(JSON_PROTOCOL_LEN)); - } else if (value.indexOf(WXS_PROTOCOL) === 0) { - value = invokeWxs(el, value); - } - return value; - } - function patchVShow(el, value) { - el._vod = el.style.display === "none" ? "" : el.style.display; - el.style.display = value ? el._vod : "none"; - } - class UniElement extends UniNode { - constructor(id2, element, parentNodeId, refNodeId, nodeJson, propNames = []) { - super(id2, element.tagName, parentNodeId, element); - this.$props = reactive({}); - this.$.__id = id2; - this.$.__listeners = Object.create(null); - this.$propNames = propNames; - this._update = this.update.bind(this); - this.init(nodeJson); - this.insert(parentNodeId, refNodeId); - } - init(nodeJson) { - if (hasOwn$1(nodeJson, "a")) { - this.setAttrs(nodeJson.a); - } - if (hasOwn$1(nodeJson, "s")) { - this.setAttr("style", nodeJson.s); - } - if (hasOwn$1(nodeJson, "e")) { - this.addEvents(nodeJson.e); - } - if (hasOwn$1(nodeJson, "w")) { - this.addWxsEvents(nodeJson.w); - } - super.init(nodeJson); - watch(this.$props, () => { - queuePostActionJob(this._update, JOB_PRIORITY_UPDATE); - }, { - flush: "sync" - }); - this.update(true); - } - setAttrs(attrs2) { - this.setWxsProps(attrs2); - Object.keys(attrs2).forEach((name) => { - this.setAttr(name, attrs2[name]); - }); - } - addEvents(events) { - Object.keys(events).forEach((name) => { - this.addEvent(name, events[name]); - }); - } - addWxsEvent(name, wxsEvent, flag) { - patchWxsEvent(this.$, name, wxsEvent, flag); - } - addEvent(name, value) { - patchEvent(this.$, name, value); - } - removeEvent(name) { - patchEvent(this.$, name, -1); - } - setAttr(name, value) { - if (name === ATTR_CLASS) { - patchClass(this.$, value); - } else if (name === ATTR_STYLE) { - patchStyle(this.$, value); - } else if (name === ATTR_V_SHOW) { - patchVShow(this.$, value); - } else if (name === ATTR_V_OWNER_ID) { - this.$.__ownerId = value; - } else if (name === ATTR_V_RENDERJS) { - queuePostActionJob(() => initRenderjs(this, value), JOB_PRIORITY_RENDERJS); - } else if (name === ATTR_INNER_HTML) { - this.$.innerHTML = value; - } else if (name === ATTR_TEXT_CONTENT) { - this.setText(value); - } else { - this.setAttribute(name, value); - } - } - removeAttr(name) { - if (name === ATTR_CLASS) { - patchClass(this.$, ""); - } else if (name === ATTR_STYLE) { - patchStyle(this.$, ""); - } else { - this.removeAttribute(name); - } - } - setAttribute(name, value) { - value = decodeAttr(this.$, value); - if (this.$propNames.indexOf(name) !== -1) { - this.$props[name] = value; - } else { - if (!this.wxsPropsInvoke(name, value)) { - this.$.setAttribute(name, value); - } - } - } - removeAttribute(name) { - if (this.$propNames.indexOf(name) !== -1) { - delete this.$props[name]; - } else { - this.$.removeAttribute(name); - } - } - update(isMounted = false) { - } - } - class UniComment extends UniNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "#comment", parentNodeId, document.createComment("")); - this.insert(parentNodeId, refNodeId); - } - } - var text$1 = "uni-text[selectable] {\n cursor: auto;\n -webkit-user-select: text;\n user-select: text;\n}\n"; - function converPx(value) { - if (/^-?\d+[ur]px$/i.test(value)) { - return value.replace(/(^-?\d+)[ur]px$/i, (text2, num) => { - return "".concat(uni.upx2px(parseFloat(num)), "px"); - }); - } else if (/^-?[\d\.]+$/.test(value)) { - return "".concat(value, "px"); - } - return value || ""; - } - function converType(type) { - return type.replace(/[A-Z]/g, (text2) => { - return "-".concat(text2.toLowerCase()); - }).replace("webkit", "-webkit"); - } - function getStyle(action) { - var animateTypes1 = ["matrix", "matrix3d", "scale", "scale3d", "rotate3d", "skew", "translate", "translate3d"]; - var animateTypes2 = ["scaleX", "scaleY", "scaleZ", "rotate", "rotateX", "rotateY", "rotateZ", "skewX", "skewY", "translateX", "translateY", "translateZ"]; - var animateTypes3 = ["opacity", "background-color"]; - var animateTypes4 = ["width", "height", "left", "right", "top", "bottom"]; - var animates = action.animates; - var option = action.option; - var transition = option.transition; - var style = {}; - var transform = []; - animates.forEach((animate) => { - var type = animate.type; - var args = [...animate.args]; - if (animateTypes1.concat(animateTypes2).includes(type)) { - if (type.startsWith("rotate") || type.startsWith("skew")) { - args = args.map((value2) => parseFloat(value2) + "deg"); - } else if (type.startsWith("translate")) { - args = args.map(converPx); - } - if (animateTypes2.indexOf(type) >= 0) { - args.length = 1; - } - transform.push("".concat(type, "(").concat(args.join(","), ")")); - } else if (animateTypes3.concat(animateTypes4).includes(args[0])) { - type = args[0]; - var value = args[1]; - style[type] = animateTypes4.includes(type) ? converPx(value) : value; - } - }); - style.transform = style.webkitTransform = transform.join(" "); - style.transition = style.webkitTransition = Object.keys(style).map((type) => "".concat(converType(type), " ").concat(transition.duration, "ms ").concat(transition.timingFunction, " ").concat(transition.delay, "ms")).join(","); - style.transformOrigin = style.webkitTransformOrigin = option.transformOrigin; - return style; - } - function startAnimation(context) { - var animation2 = context.animation; - if (!animation2 || !animation2.actions || !animation2.actions.length) { - return; - } - var index2 = 0; - var actions = animation2.actions; - var length = animation2.actions.length; - function animate() { - var action = actions[index2]; - var transition = action.option.transition; - var style = getStyle(action); - Object.keys(style).forEach((key2) => { - context.$el.style[key2] = style[key2]; - }); - index2 += 1; - if (index2 < length) { - setTimeout(animate, transition.duration + transition.delay); - } - } - setTimeout(() => { - animate(); - }, 0); - } - var animation = { - props: ["animation"], - watch: { - animation: { - deep: true, - handler() { - startAnimation(this); - } - } - }, - mounted() { - startAnimation(this); - } - }; - var defineBuiltInComponent = (options) => { - var { - props: props2, - mixins - } = options; - if (!props2 || !props2.animation) { - (mixins || (options.mixins = [])).push(animation); - } - return defineSystemComponent(options); - }; - var defineSystemComponent = (options) => { - options.compatConfig = { - MODE: 3 - }; - return defineComponent(options); - }; - var hoverProps = { - hoverClass: { - type: String, - default: "none" - }, - hoverStopPropagation: { - type: Boolean, - default: false - }, - hoverStartTime: { - type: [Number, String], - default: 50 - }, - hoverStayTime: { - type: [Number, String], - default: 400 - } - }; - function useHover(props2) { - var hovering = ref(false); - var hoverTouch = false; - var hoverStartTimer; - var hoverStayTimer; - function hoverReset() { - requestAnimationFrame(() => { - clearTimeout(hoverStayTimer); - hoverStayTimer = setTimeout(() => { - hovering.value = false; - }, parseInt(props2.hoverStayTime)); - }); - } - function onTouchstartPassive(evt) { - if (evt._hoverPropagationStopped) { - return; - } - if (!props2.hoverClass || props2.hoverClass === "none" || props2.disabled) { - return; - } - if (evt.touches.length > 1) { - return; - } - if (props2.hoverStopPropagation) { - evt._hoverPropagationStopped = true; - } - hoverTouch = true; - hoverStartTimer = setTimeout(() => { - hovering.value = true; - if (!hoverTouch) { - hoverReset(); - } - }, parseInt(props2.hoverStartTime)); - } - function onTouchend() { - hoverTouch = false; - if (hovering.value) { - hoverReset(); - } - } - function onTouchcancel() { - hoverTouch = false; - hovering.value = false; - clearTimeout(hoverStartTimer); - } - return { - hovering, - binding: { - onTouchstartPassive, - onTouchend, - onTouchcancel - } - }; - } - function useBooleanAttr(props2, keys) { - if (isString(keys)) { - keys = [keys]; - } - return keys.reduce((res, key2) => { - if (props2[key2]) { - res[key2] = true; - } - return res; - }, Object.create(null)); - } - function withWebEvent(fn) { - return fn.__wwe = true, fn; - } - function useCustomEvent(ref2, emit2) { - return (name, evt, detail) => { - if (ref2.value) { - emit2(name, normalizeCustomEvent(name, evt, ref2.value, detail || {})); - } - }; - } - function useNativeEvent(emit2) { - return (name, evt) => { - emit2(name, createNativeEvent(evt)); - }; - } - function normalizeCustomEvent(name, domEvt, el, detail) { - var target = normalizeTarget(el); - return { - type: detail.type || name, - timeStamp: domEvt.timeStamp || 0, - target, - currentTarget: target, - detail - }; - } - var uniFormKey = PolySymbol("uniForm"); - var Form = /* @__PURE__ */ defineBuiltInComponent({ - name: "Form", - emits: ["submit", "reset"], - setup(_props, { - slots, - emit: emit2 - }) { - var rootRef = ref(null); - provideForm(useCustomEvent(rootRef, emit2)); - return () => createVNode("uni-form", { - "ref": rootRef - }, { - default: () => [createVNode("span", null, [slots.default && slots.default()])] - }, 512); - } - }); - function provideForm(trigger2) { - var fields2 = []; - provide(uniFormKey, { - addField(field) { - fields2.push(field); - }, - removeField(field) { - fields2.splice(fields2.indexOf(field), 1); - }, - submit(evt) { - trigger2("submit", evt, { - value: fields2.reduce((res, field) => { - if (field.submit) { - var [name, value] = field.submit(); - name && (res[name] = value); - } - return res; - }, Object.create(null)) - }); - }, - reset(evt) { - fields2.forEach((field) => field.reset && field.reset()); - trigger2("reset", evt); - } - }); - return fields2; - } - var uniLabelKey = PolySymbol("uniLabel"); - var props$r = { - for: { - type: String, - default: "" - } - }; - var Label = /* @__PURE__ */ defineBuiltInComponent({ - name: "Label", - props: props$r, - setup(props2, { - slots - }) { - var pageId = useCurrentPageId(); - var handlers = useProvideLabel(); - var pointer = computed$1(() => props2.for || slots.default && slots.default.length); - var _onClick = withWebEvent(($event) => { - var EventTarget = $event.target; - var stopPropagation = /^uni-(checkbox|radio|switch)-/.test(EventTarget.className); - if (!stopPropagation) { - stopPropagation = /^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(EventTarget.tagName); - } - if (stopPropagation) { - return; - } - if (props2.for) { - UniViewJSBridge.emit("uni-label-click-" + pageId + "-" + props2.for, $event, true); - } else { - handlers.length && handlers[0]($event, true); - } - }); - return () => createVNode("uni-label", { - "class": { - "uni-label-pointer": pointer - }, - "onClick": _onClick - }, { - default: () => [slots.default && slots.default()] - }, 8, ["class", "onClick"]); - } - }); - function useProvideLabel() { - var handlers = []; - provide(uniLabelKey, { - addHandler(handler) { - handlers.push(handler); - }, - removeHandler(handler) { - handlers.splice(handlers.indexOf(handler), 1); - } - }); - return handlers; - } - function useListeners$1(props2, listeners) { - _addListeners(props2.id, listeners); - watch(() => props2.id, (newId, oldId) => { - _removeListeners(oldId, listeners, true); - _addListeners(newId, listeners, true); - }); - onUnmounted(() => { - _removeListeners(props2.id, listeners); - }); - } - function _addListeners(id2, listeners, watch2) { - var pageId = useCurrentPageId(); - if (watch2 && !id2) { - return; - } - if (!isPlainObject(listeners)) { - return; - } - Object.keys(listeners).forEach((name) => { - if (watch2) { - if (name.indexOf("@") !== 0 && name.indexOf("uni-") !== 0) { - UniViewJSBridge.on("uni-".concat(name, "-").concat(pageId, "-").concat(id2), listeners[name]); - } - } else { - if (name.indexOf("uni-") === 0) { - UniViewJSBridge.on(name, listeners[name]); - } else if (id2) { - UniViewJSBridge.on("uni-".concat(name, "-").concat(pageId, "-").concat(id2), listeners[name]); - } - } - }); - } - function _removeListeners(id2, listeners, watch2) { - var pageId = useCurrentPageId(); - if (watch2 && !id2) { - return; - } - if (!isPlainObject(listeners)) { - return; - } - Object.keys(listeners).forEach((name) => { - if (watch2) { - if (name.indexOf("@") !== 0 && name.indexOf("uni-") !== 0) { - UniViewJSBridge.off("uni-".concat(name, "-").concat(pageId, "-").concat(id2), listeners[name]); - } - } else { - if (name.indexOf("uni-") === 0) { - UniViewJSBridge.off(name, listeners[name]); - } else if (id2) { - UniViewJSBridge.off("uni-".concat(name, "-").concat(pageId, "-").concat(id2), listeners[name]); - } - } - }); - } - var Button = /* @__PURE__ */ defineBuiltInComponent({ - name: "Button", - props: { - id: { - type: String, - default: "" - }, - hoverClass: { - type: String, - default: "button-hover" - }, - hoverStartTime: { - type: [Number, String], - default: 20 - }, - hoverStayTime: { - type: [Number, String], - default: 70 - }, - hoverStopPropagation: { - type: Boolean, - default: false - }, - disabled: { - type: [Boolean, String], - default: false - }, - formType: { - type: String, - default: "" - }, - openType: { - type: String, - default: "" - }, - loading: { - type: [Boolean, String], - default: false - } - }, - setup(props2, { - slots - }) { - var rootRef = ref(null); - { - initI18nButtonMsgsOnce(); - } - var uniForm = inject(uniFormKey, false); - var { - hovering, - binding - } = useHover(props2); - var { - t: t2 - } = useI18n(); - var onClick = withWebEvent((e2, isLabelClick) => { - if (props2.disabled) { - return e2.stopImmediatePropagation(); - } - if (isLabelClick) { - rootRef.value.click(); - } - var formType = props2.formType; - if (formType) { - if (!uniForm) { - return; - } - if (formType === "submit") { - uniForm.submit(e2); - } else if (formType === "reset") { - uniForm.reset(e2); - } - return; - } - if (props2.openType === "feedback") { - openFeedback(t2("uni.button.feedback.title"), t2("uni.button.feedback.send")); - } - }); - var uniLabel = inject(uniLabelKey, false); - if (uniLabel) { - uniLabel.addHandler(onClick); - onBeforeUnmount(() => { - uniLabel.removeHandler(onClick); - }); - } - useListeners$1(props2, { - "label-click": onClick - }); - return () => { - var hoverClass = props2.hoverClass; - var booleanAttrs = useBooleanAttr(props2, "disabled"); - var loadingAttrs = useBooleanAttr(props2, "loading"); - var hasHoverClass = hoverClass && hoverClass !== "none"; - return createVNode("uni-button", mergeProps({ - "ref": rootRef, - "onClick": onClick, - "class": hasHoverClass && hovering.value ? hoverClass : "" - }, hasHoverClass && binding, booleanAttrs, loadingAttrs), { - default: () => [slots.default && slots.default()] - }, 16, ["onClick", "class"]); - }; - } - }); - function openFeedback(titleText, sendText) { - var feedback = plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html", "feedback", { - titleNView: { - titleText, - autoBackButton: true, - backgroundColor: "#F7F7F7", - titleColor: "#007aff", - buttons: [{ - text: sendText, - color: "#007aff", - fontSize: "16px", - fontWeight: "bold", - onclick: function() { - feedback.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")'); - } - }] - } - }); - feedback.show("slide-in-right"); - } - var ResizeSensor = /* @__PURE__ */ defineBuiltInComponent({ - name: "ResizeSensor", - props: { - initial: { - type: Boolean, - default: false - } - }, - emits: ["resize"], - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var reset2 = useResizeSensorReset(rootRef); - var update = useResizeSensorUpdate(rootRef, emit2, reset2); - useResizeSensorLifecycle(rootRef, props2, update, reset2); - return () => createVNode("uni-resize-sensor", { - "ref": rootRef, - "onAnimationstartOnce": update - }, { - default: () => [createVNode("div", { - "onScroll": update - }, [createVNode("div", null, null)], 40, ["onScroll"]), createVNode("div", { - "onScroll": update - }, [createVNode("div", null, null)], 40, ["onScroll"])], - _: 1 - }, 8, ["onAnimationstartOnce"]); - } - }); - function useResizeSensorUpdate(rootRef, emit2, reset2) { - var size2 = reactive({ - width: -1, - height: -1 - }); - watch(() => extend({}, size2), (value) => emit2("resize", value)); - return () => { - var rootEl = rootRef.value; - size2.width = rootEl.offsetWidth; - size2.height = rootEl.offsetHeight; - reset2(); - }; - } - function useResizeSensorReset(rootRef) { - return () => { - var { - firstElementChild, - lastElementChild - } = rootRef.value; - firstElementChild.scrollLeft = 1e5; - firstElementChild.scrollTop = 1e5; - lastElementChild.scrollLeft = 1e5; - lastElementChild.scrollTop = 1e5; - }; - } - function useResizeSensorLifecycle(rootRef, props2, update, reset2) { - onActivated(reset2); - onMounted(() => { - if (props2.initial) { - nextTick(update); - } - var rootEl = rootRef.value; - if (rootEl.offsetParent !== rootEl.parentElement) { - rootEl.parentElement.style.position = "relative"; - } - if (!("AnimationEvent" in window)) { - reset2(); - } - }); - } - var pixelRatio = /* @__PURE__ */ function() { - var canvas2 = document.createElement("canvas"); - canvas2.height = canvas2.width = 0; - var context = canvas2.getContext("2d"); - var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1; - return (window.devicePixelRatio || 1) / backingStore; - }(); - function wrapper(canvas2) { - canvas2.width = canvas2.offsetWidth * pixelRatio; - canvas2.height = canvas2.offsetHeight * pixelRatio; - canvas2.getContext("2d").__hidpi__ = true; - } - var isHidpi = false; - function initHidpi() { - if (isHidpi) { - return; - } - isHidpi = true; - var forEach = function(obj, func) { - for (var key2 in obj) { - if (hasOwn$1(obj, key2)) { - func(obj[key2], key2); - } - } - }; - var ratioArgs = { - fillRect: "all", - clearRect: "all", - strokeRect: "all", - moveTo: "all", - lineTo: "all", - arc: [0, 1, 2], - arcTo: "all", - bezierCurveTo: "all", - isPointinPath: "all", - isPointinStroke: "all", - quadraticCurveTo: "all", - rect: "all", - translate: "all", - createRadialGradient: "all", - createLinearGradient: "all", - setTransform: [4, 5] - }; - var proto2 = CanvasRenderingContext2D.prototype; - proto2.drawImageByCanvas = function(_super) { - return function(canvas2, srcx, srcy, srcw, srch, desx, desy, desw, desh, isScale) { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - srcx *= pixelRatio; - srcy *= pixelRatio; - srcw *= pixelRatio; - srch *= pixelRatio; - desx *= pixelRatio; - desy *= pixelRatio; - desw = isScale ? desw * pixelRatio : desw; - desh = isScale ? desh * pixelRatio : desh; - _super.call(this, canvas2, srcx, srcy, srcw, srch, desx, desy, desw, desh); - }; - }(proto2.drawImage); - if (pixelRatio !== 1) { - forEach(ratioArgs, function(value, key2) { - proto2[key2] = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - var args = Array.prototype.slice.call(arguments); - if (value === "all") { - args = args.map(function(a2) { - return a2 * pixelRatio; - }); - } else if (Array.isArray(value)) { - for (var i2 = 0; i2 < value.length; i2++) { - args[value[i2]] *= pixelRatio; - } - } - return _super.apply(this, args); - }; - }(proto2[key2]); - }); - proto2.stroke = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - this.lineWidth *= pixelRatio; - _super.apply(this, arguments); - this.lineWidth /= pixelRatio; - }; - }(proto2.stroke); - proto2.fillText = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - var args = Array.prototype.slice.call(arguments); - args[1] *= pixelRatio; - args[2] *= pixelRatio; - var font2 = this.font; - this.font = font2.replace(/(\d+\.?\d*)(px|em|rem|pt)/g, function(w, m, u) { - return m * pixelRatio + u; - }); - _super.apply(this, args); - this.font = font2; - }; - }(proto2.fillText); - proto2.strokeText = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - var args = Array.prototype.slice.call(arguments); - args[1] *= pixelRatio; - args[2] *= pixelRatio; - var font2 = this.font; - this.font = font2.replace(/(\d+\.?\d*)(px|em|rem|pt)/g, function(w, m, u) { - return m * pixelRatio + u; - }); - _super.apply(this, args); - this.font = font2; - }; - }(proto2.strokeText); - proto2.drawImage = function(_super) { - return function() { - if (!this.__hidpi__) { - return _super.apply(this, arguments); - } - this.scale(pixelRatio, pixelRatio); - _super.apply(this, arguments); - this.scale(1 / pixelRatio, 1 / pixelRatio); - }; - }(proto2.drawImage); - } - } - var initHidpiOnce = /* @__PURE__ */ once(() => { - return initHidpi(); - }); - function $getRealPath(src) { - return src ? getRealPath(src) : src; - } - function resolveColor(color) { - color = color.slice(0); - color[3] = color[3] / 255; - return "rgba(" + color.join(",") + ")"; - } - function processTouches(target, touches) { - var eventTarget = target; - return Array.from(touches).map((touch) => { - var boundingClientRect = eventTarget.getBoundingClientRect(); - return { - identifier: touch.identifier, - x: touch.clientX - boundingClientRect.left, - y: touch.clientY - boundingClientRect.top - }; - }); - } - var tempCanvas; - function getTempCanvas(width = 0, height = 0) { - if (!tempCanvas) { - tempCanvas = document.createElement("canvas"); - } - tempCanvas.width = width; - tempCanvas.height = height; - return tempCanvas; - } - var props$q = { - canvasId: { - type: String, - default: "" - }, - disableScroll: { - type: [Boolean, String], - default: false - } - }; - var Canvas = /* @__PURE__ */ defineBuiltInComponent({ - inheritAttrs: false, - name: "Canvas", - compatConfig: { - MODE: 3 - }, - props: props$q, - computed: { - id() { - return this.canvasId; - } - }, - setup(props2, { - emit: emit2, - slots - }) { - initHidpiOnce(); - var canvas2 = ref(null); - var sensor = ref(null); - var actionsWaiting = ref(false); - var trigger2 = useNativeEvent(emit2); - var { - $attrs, - $excludeAttrs, - $listeners - } = useAttrs({ - excludeListeners: true - }); - var { - _listeners - } = useListeners(props2, $listeners, trigger2); - var { - _handleSubscribe, - _resize - } = useMethods(canvas2, actionsWaiting); - useSubscribe(_handleSubscribe, useContextInfo(props2.canvasId), true); - onMounted(() => { - _resize(); - }); - return () => { - var { - canvasId, - disableScroll - } = props2; - return createVNode("uni-canvas", mergeProps({ - "canvas-id": canvasId, - "disable-scroll": disableScroll - }, $attrs.value, $excludeAttrs.value, _listeners.value), { - default: () => [createVNode("canvas", { - "ref": canvas2, - "class": "uni-canvas-canvas", - "width": "300", - "height": "150" - }, null, 512), createVNode("div", { - "style": "position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;" - }, [slots.default && slots.default()]), createVNode(ResizeSensor, { - "ref": sensor, - "onResize": _resize - }, null, 8, ["onResize"])], - _: 1 - }, 16, ["canvas-id", "disable-scroll"]); - }; - } - }); - function useListeners(props2, Listeners, trigger2) { - var _listeners = computed$1(() => { - var events = ["onTouchstart", "onTouchmove", "onTouchend"]; - var _$listeners = Listeners.value; - var $listeners = extend({}, (() => { - var obj = {}; - for (var key2 in _$listeners) { - if (Object.prototype.hasOwnProperty.call(_$listeners, key2)) { - var event = _$listeners[key2]; - obj[key2] = event; - } - } - return obj; - })()); - events.forEach((event) => { - var existing = $listeners[event]; - var eventHandler = []; - if (existing) { - eventHandler.push(withWebEvent(($event) => { - trigger2(event.replace("on", "").toLocaleLowerCase(), extend({}, (() => { - var obj = {}; - for (var key2 in $event) { - obj[key2] = $event[key2]; - } - return obj; - })(), { - touches: processTouches($event.currentTarget, $event.touches), - changedTouches: processTouches($event.currentTarget, $event.changedTouches) - })); - })); - } - if (props2.disableScroll && event === "onTouchmove") { - eventHandler.push(onEventPrevent); - } - $listeners[event] = eventHandler; - }); - return $listeners; - }); - return { - _listeners - }; - } - function useMethods(canvasRef, actionsWaiting) { - var _actionsDefer = []; - var _images = {}; - function _resize() { - var canvas2 = canvasRef.value; - if (canvas2.width > 0 && canvas2.height > 0) { - var context = canvas2.getContext("2d"); - var imageData = context.getImageData(0, 0, canvas2.width, canvas2.height); - wrapper(canvas2); - context.putImageData(imageData, 0, 0); - } else { - wrapper(canvas2); - } - } - function actionsChanged({ - actions, - reserve - }, resolve) { - if (!actions) { - return; - } - if (actionsWaiting.value) { - _actionsDefer.push([actions, reserve]); - return; - } - var canvas2 = canvasRef.value; - var c2d = canvas2.getContext("2d"); - if (!reserve) { - c2d.fillStyle = "#000000"; - c2d.strokeStyle = "#000000"; - c2d.shadowColor = "#000000"; - c2d.shadowBlur = 0; - c2d.shadowOffsetX = 0; - c2d.shadowOffsetY = 0; - c2d.setTransform(1, 0, 0, 1, 0, 0); - c2d.clearRect(0, 0, canvas2.width, canvas2.height); - } - preloadImage(actions); - var _loop = function(index3) { - var action = actions[index3]; - var method = action.method; - var data = action.data; - if (/^set/.test(method) && method !== "setTransform") { - var method1 = method[3].toLowerCase() + method.slice(4); - var color; - if (method1 === "fillStyle" || method1 === "strokeStyle") { - if (data[0] === "normal") { - color = resolveColor(data[1]); - } else if (data[0] === "linear") { - var LinearGradient = c2d.createLinearGradient(...data[1]); - data[2].forEach(function(data2) { - var offset = data2[0]; - var color2 = resolveColor(data2[1]); - LinearGradient.addColorStop(offset, color2); - }); - color = LinearGradient; - } else if (data[0] === "radial") { - var x = data[1][0]; - var y = data[1][1]; - var r = data[1][2]; - var _LinearGradient = c2d.createRadialGradient(x, y, 0, x, y, r); - data[2].forEach(function(data2) { - var offset = data2[0]; - var color2 = resolveColor(data2[1]); - _LinearGradient.addColorStop(offset, color2); - }); - color = _LinearGradient; - } else if (data[0] === "pattern") { - var loaded = checkImageLoaded(data[1], actions.slice(index3 + 1), resolve, function(image2) { - if (image2) { - c2d[method1] = c2d.createPattern(image2, data[2]); - } - }); - if (!loaded) { - return "break"; - } - return "continue"; - } - c2d[method1] = color; - } else if (method1 === "globalAlpha") { - c2d[method1] = Number(data[0]) / 255; - } else if (method1 === "shadow") { - _ = ["shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor"]; - data.forEach(function(color_, method_) { - c2d[_[method_]] = _[method_] === "shadowColor" ? resolveColor(color_) : color_; - }); - } else if (method1 === "fontSize") { - var font2 = c2d.__font__ || c2d.font; - c2d.__font__ = c2d.font = font2.replace(/\d+\.?\d*px/, data[0] + "px"); - } else if (method1 === "lineDash") { - c2d.setLineDash(data[0]); - c2d.lineDashOffset = data[1] || 0; - } else if (method1 === "textBaseline") { - if (data[0] === "normal") { - data[0] = "alphabetic"; - } - c2d[method1] = data[0]; - } else if (method1 === "font") { - c2d.__font__ = c2d.font = data[0]; - } else { - c2d[method1] = data[0]; - } - } else if (method === "fillPath" || method === "strokePath") { - method = method.replace(/Path/, ""); - c2d.beginPath(); - data.forEach(function(data_) { - c2d[data_.method].apply(c2d, data_.data); - }); - c2d[method](); - } else if (method === "fillText") { - c2d.fillText.apply(c2d, data); - } else if (method === "drawImage") { - A = function() { - var dataArray = [...data]; - var url = dataArray[0]; - var otherData = dataArray.slice(1); - _images = _images || {}; - if (checkImageLoaded(url, actions.slice(index3 + 1), resolve, function(image2) { - if (image2) { - c2d.drawImage.apply(c2d, [image2].concat([...otherData.slice(4, 8)], [...otherData.slice(0, 4)])); - } - })) - return "break"; - }(); - if (A === "break") { - return "break"; - } - } else { - if (method === "clip") { - data.forEach(function(data_) { - c2d[data_.method].apply(c2d, data_.data); - }); - c2d.clip(); - } else { - c2d[method].apply(c2d, data); - } - } - }; - for (var index2 = 0; index2 < actions.length; index2++) { - var _; - var A; - var _ret = _loop(index2); - if (_ret === "break") - break; - if (_ret === "continue") - continue; - } - if (!actionsWaiting.value) { - resolve({ - errMsg: "drawCanvas:ok" - }); - } - } - function preloadImage(actions) { - actions.forEach(function(action) { - var method = action.method; - var data = action.data; - var src = ""; - if (method === "drawImage") { - src = data[0]; - src = $getRealPath(src); - data[0] = src; - } else if (method === "setFillStyle" && data[0] === "pattern") { - src = data[1]; - src = $getRealPath(src); - data[1] = src; - } - if (src && !_images[src]) { - loadImage(); - } - function loadImage() { - var image2 = _images[src] = new Image(); - image2.onload = function() { - image2.ready = true; - }; - if (navigator.vendor === "Google Inc.") { - if (src.indexOf("file://") === 0) { - image2.crossOrigin = "anonymous"; - } - image2.src = src; - return; - } - getSameOriginUrl(src).then((src2) => { - image2.src = src2; - }).catch(() => { - image2.src = src; - }); - } - }); - } - function checkImageLoaded(src, actions, resolve, fn) { - var image2 = _images[src]; - if (image2.ready) { - fn(image2); - return true; - } else { - _actionsDefer.unshift([actions, true]); - actionsWaiting.value = true; - image2.onload = function() { - image2.ready = true; - fn(image2); - actionsWaiting.value = false; - var actions2 = _actionsDefer.slice(0); - _actionsDefer = []; - for (var action = actions2.shift(); action; ) { - actionsChanged({ - actions: action[0], - reserve: action[1] - }, resolve); - action = actions2.shift(); - } - }; - return false; - } - } - function getImageData({ - x = 0, - y = 0, - width, - height, - destWidth, - destHeight, - hidpi = true, - dataType, - quality = 1, - type = "png" - }, resolve) { - var canvas2 = canvasRef.value; - var data; - var maxWidth = canvas2.offsetWidth - x; - width = width ? Math.min(width, maxWidth) : maxWidth; - var maxHeight = canvas2.offsetHeight - y; - height = height ? Math.min(height, maxHeight) : maxHeight; - if (!hidpi) { - if (!destWidth && !destHeight) { - destWidth = Math.round(width * pixelRatio); - destHeight = Math.round(height * pixelRatio); - } else if (!destWidth) { - destWidth = Math.round(width / height * destHeight); - } else if (!destHeight) { - destHeight = Math.round(height / width * destWidth); - } - } else { - destWidth = width; - destHeight = height; - } - var newCanvas = getTempCanvas(destWidth, destHeight); - var context = newCanvas.getContext("2d"); - if (type === "jpeg" || type === "jpg") { - type = "jpeg"; - context.fillStyle = "#fff"; - context.fillRect(0, 0, destWidth, destHeight); - } - context.__hidpi__ = true; - context.drawImageByCanvas(canvas2, x, y, width, height, 0, 0, destWidth, destHeight, false); - var result; - try { - var compressed; - if (dataType === "base64") { - data = newCanvas.toDataURL("image/".concat(type), quality); - } else { - var imgData = context.getImageData(0, 0, destWidth, destHeight); - if (true) { - var pako = require("pako"); - data = pako.deflateRaw(imgData.data, { - to: "string" - }); - compressed = true; - } - } - result = { - data, - compressed, - width: destWidth, - height: destHeight - }; - } catch (error) { - result = { - errMsg: "canvasGetImageData:fail ".concat(error) - }; - } - newCanvas.height = newCanvas.width = 0; - context.__hidpi__ = false; - if (!resolve) { - return result; - } else { - resolve(result); - } - } - function putImageData({ - data, - x, - y, - width, - height, - compressed - }, resolve) { - try { - if (!height) { - height = Math.round(data.length / 4 / width); - } - var canvas2 = getTempCanvas(width, height); - var context = canvas2.getContext("2d"); - if (compressed) { - var pako = require("pako"); - data = pako.inflateRaw(data); - } - context.putImageData(new ImageData(new Uint8ClampedArray(data), width, height), 0, 0); - canvasRef.value.getContext("2d").drawImage(canvas2, x, y, width, height); - canvas2.height = canvas2.width = 0; - } catch (error) { - resolve({ - errMsg: "canvasPutImageData:fail" - }); - return; - } - resolve({ - errMsg: "canvasPutImageData:ok" - }); - } - function toTempFilePath({ - x = 0, - y = 0, - width, - height, - destWidth, - destHeight, - fileType, - quality, - dirname - }, resolve) { - var res = getImageData({ - x, - y, - width, - height, - destWidth, - destHeight, - hidpi: false, - dataType: "base64", - type: fileType, - quality - }); - if (!res.data || !res.data.length) { - resolve({ - errMsg: res.errMsg.replace("canvasPutImageData", "toTempFilePath") - }); - return; - } - saveImage(res.data); - } - var methods2 = { - actionsChanged, - getImageData, - putImageData, - toTempFilePath - }; - function _handleSubscribe(type, data, resolve) { - var method = methods2[type]; - if (type.indexOf("_") !== 0 && typeof method === "function") { - method(data, resolve); - } - } - return extend(methods2, { - _resize, - _handleSubscribe - }); - } - var uniCheckGroupKey = PolySymbol("uniCheckGroup"); - var props$p = { - name: { - type: String, - default: "" - } - }; - var CheckboxGroup = /* @__PURE__ */ defineBuiltInComponent({ - name: "CheckboxGroup", - props: props$p, - emits: ["change"], - setup(props2, { - emit: emit2, - slots - }) { - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - useProvideCheckGroup(props2, trigger2); - return () => { - return createVNode("uni-checkbox-group", { - "ref": rootRef - }, { - default: () => [slots.default && slots.default()] - }, 512); - }; - } - }); - function useProvideCheckGroup(props2, trigger2) { - var fields2 = []; - var getFieldsValue = () => fields2.reduce((res, field) => { - if (field.value.checkboxChecked) { - res.push(field.value.value); - } - return res; - }, new Array()); - provide(uniCheckGroupKey, { - addField(field) { - fields2.push(field); - }, - removeField(field) { - fields2.splice(fields2.indexOf(field), 1); - }, - checkboxChange($event) { - trigger2("change", $event, { - value: getFieldsValue() - }); - } - }); - var uniForm = inject(uniFormKey, false); - if (uniForm) { - uniForm.addField({ - submit: () => { - var data = ["", null]; - if (props2.name !== "") { - data[0] = props2.name; - data[1] = getFieldsValue(); - } - return data; - } - }); - } - return getFieldsValue; - } - var props$o = { - checked: { - type: [Boolean, String], - default: false - }, - id: { - type: String, - default: "" - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: "#007aff" - }, - value: { - type: String, - default: "" - } - }; - var Checkbox = /* @__PURE__ */ defineBuiltInComponent({ - name: "Checkbox", - props: props$o, - setup(props2, { - slots - }) { - var checkboxChecked = ref(props2.checked); - var checkboxValue = ref(props2.value); - watch([() => props2.checked, () => props2.value], ([newChecked, newModelValue]) => { - checkboxChecked.value = newChecked; - checkboxValue.value = newModelValue; - }); - var reset2 = () => { - checkboxChecked.value = false; - }; - var { - uniCheckGroup, - uniLabel - } = useCheckboxInject(checkboxChecked, checkboxValue, reset2); - var _onClick = ($event) => { - if (props2.disabled) { - return; - } - checkboxChecked.value = !checkboxChecked.value; - uniCheckGroup && uniCheckGroup.checkboxChange($event); - }; - if (!!uniLabel) { - uniLabel.addHandler(_onClick); - onBeforeUnmount(() => { - uniLabel.removeHandler(_onClick); - }); - } - useListeners$1(props2, { - "label-click": _onClick - }); - return () => { - var { - booleanAttrs - } = useBooleanAttr(props2, "disabled"); - return createVNode("uni-checkbox", mergeProps(booleanAttrs, { - "onClick": _onClick - }), { - default: () => [createVNode("div", { - "class": "uni-checkbox-wrapper" - }, [createVNode("div", { - "class": ["uni-checkbox-input", { - "uni-checkbox-input-disabled": props2.disabled - }] - }, [checkboxChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 2), slots.default && slots.default()])] - }, 16, ["onClick"]); - }; - } - }); - function useCheckboxInject(checkboxChecked, checkboxValue, reset2) { - var field = computed$1(() => ({ - checkboxChecked: Boolean(checkboxChecked.value), - value: checkboxValue.value - })); - var formField = { - reset: reset2 - }; - var uniCheckGroup = inject(uniCheckGroupKey, false); - if (!!uniCheckGroup) { - uniCheckGroup.addField(field); - } - var uniForm = inject(uniFormKey, false); - if (!!uniForm) { - uniForm.addField(formField); - } - var uniLabel = inject(uniLabelKey, false); - onBeforeUnmount(() => { - uniCheckGroup && uniCheckGroup.removeField(field); - uniForm && uniForm.removeField(formField); - }); - return { - uniCheckGroup, - uniForm, - uniLabel - }; - } - var resetTimer; - var isAndroid; - var osVersion; - var keyboardHeight; - var keyboardChangeCallback; - var webviewStyle; - { - plusReady(() => { - isAndroid = plus.os.name === "Android"; - osVersion = plus.os.version || ""; - }); - document.addEventListener("keyboardchange", function(event) { - keyboardHeight = event.height; - keyboardChangeCallback && keyboardChangeCallback(); - }, false); - } - function iosHideKeyboard() { - } - function setSoftinputTemporary(props2, el, reset2) { - plusReady(() => { - var MODE_ADJUSTRESIZE = "adjustResize"; - var MODE_ADJUSTPAN = "adjustPan"; - var MODE_NOTHING = "nothing"; - var currentWebview = plus.webview.currentWebview(); - var style = webviewStyle || currentWebview.getStyle() || {}; - var options = { - mode: reset2 || style.softinputMode === MODE_ADJUSTRESIZE ? MODE_ADJUSTRESIZE : props2.adjustPosition ? MODE_ADJUSTPAN : MODE_NOTHING, - position: { - top: 0, - height: 0 - } - }; - if (options.mode === MODE_ADJUSTPAN) { - var rect = el.getBoundingClientRect(); - options.position.top = rect.top; - options.position.height = rect.height + (Number(props2.cursorSpacing) || 0); - } - currentWebview.setSoftinputTemporary(options); - }); - } - function setSoftinputNavBar(props2, state) { - if (props2.showConfirmBar === "auto") { - delete state.softinputNavBar; - return; - } - plusReady(() => { - var currentWebview = plus.webview.currentWebview(); - var { - softinputNavBar - } = currentWebview.getStyle() || {}; - var showConfirmBar = softinputNavBar !== "none"; - if (showConfirmBar !== props2.showConfirmBar) { - state.softinputNavBar = softinputNavBar || "auto"; - currentWebview.setStyle({ - softinputNavBar: props2.showConfirmBar ? "auto" : "none" - }); - } else { - delete state.softinputNavBar; - } - }); - } - function resetSoftinputNavBar(state) { - var softinputNavBar = state.softinputNavBar; - if (softinputNavBar) { - plusReady(() => { - var currentWebview = plus.webview.currentWebview(); - currentWebview.setStyle({ - softinputNavBar - }); - }); - } - } - var props$n = { - cursorSpacing: { - type: [Number, String], - default: 0 - }, - showConfirmBar: { - type: [Boolean, String], - default: "auto" - }, - adjustPosition: { - type: [Boolean, String], - default: true - }, - autoBlur: { - type: [Boolean, String], - default: false - } - }; - var emit$1 = ["keyboardheightchange"]; - function useKeyboard(props2, elRef, trigger2) { - var state = {}; - function initKeyboard(el) { - var focus; - var keyboardChange = () => { - trigger2("keyboardheightchange", {}, { - height: keyboardHeight, - duration: 0.25 - }); - if (focus && keyboardHeight === 0) { - setSoftinputTemporary(props2, el); - } - if (props2.autoBlur && focus && keyboardHeight === 0 && (isAndroid || parseInt(osVersion) >= 13)) { - document.activeElement.blur(); - } - }; - el.addEventListener("focus", () => { - focus = true; - clearTimeout(resetTimer); - document.addEventListener("click", iosHideKeyboard, false); - { - keyboardChangeCallback = keyboardChange; - if (keyboardHeight) { - trigger2("keyboardheightchange", {}, { - height: keyboardHeight, - duration: 0 - }); - } - setSoftinputNavBar(props2, state); - setSoftinputTemporary(props2, el); - } - }); - { - if (isAndroid) { - el.addEventListener("click", () => { - if (!props2.disabled && !props2.readOnly && focus && keyboardHeight === 0) { - setSoftinputTemporary(props2, el); - } - }); - } - if (!isAndroid) { - if (parseInt(osVersion) < 12) { - el.addEventListener("touchstart", () => { - if (!props2.disabled && !props2.readOnly && !focus) { - setSoftinputTemporary(props2, el); - } - }); - } - if (parseFloat(osVersion) >= 14.6 && !webviewStyle) { - plusReady(() => { - var currentWebview = plus.webview.currentWebview(); - webviewStyle = currentWebview.getStyle() || {}; - }); - } - } - } - var onKeyboardHide = () => { - document.removeEventListener("click", iosHideKeyboard, false); - { - keyboardChangeCallback = null; - if (keyboardHeight) { - trigger2("keyboardheightchange", {}, { - height: 0, - duration: 0 - }); - } - resetSoftinputNavBar(state); - if (isAndroid) { - resetTimer = setTimeout(() => { - setSoftinputTemporary(props2, el, true); - }, 300); - } - } - if (String(navigator.vendor).indexOf("Apple") === 0) { - document.documentElement.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop); - } - }; - el.addEventListener("blur", () => { - el.blur(); - focus = false; - onKeyboardHide(); - }); - } - watch(() => elRef.value, (el) => initKeyboard(el)); - } - var startTag = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/; - var endTag = /^<\/([-A-Za-z0-9_]+)[^>]*>/; - var attr = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g; - var empty = /* @__PURE__ */ makeMap("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"); - var block = /* @__PURE__ */ makeMap("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"); - var inline = /* @__PURE__ */ makeMap("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"); - var closeSelf = /* @__PURE__ */ makeMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"); - var fillAttrs = /* @__PURE__ */ makeMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"); - var special = /* @__PURE__ */ makeMap("script,style"); - function HTMLParser(html, handler) { - var index2; - var chars; - var match; - var stack2 = []; - var last = html; - stack2.last = function() { - return this[this.length - 1]; - }; - while (html) { - chars = true; - if (!stack2.last() || !special[stack2.last()]) { - if (html.indexOf("<!--") == 0) { - index2 = html.indexOf("-->"); - if (index2 >= 0) { - if (handler.comment) { - handler.comment(html.substring(4, index2)); - } - html = html.substring(index2 + 3); - chars = false; - } - } else if (html.indexOf("</") == 0) { - match = html.match(endTag); - if (match) { - html = html.substring(match[0].length); - match[0].replace(endTag, parseEndTag); - chars = false; - } - } else if (html.indexOf("<") == 0) { - match = html.match(startTag); - if (match) { - html = html.substring(match[0].length); - match[0].replace(startTag, parseStartTag); - chars = false; - } - } - if (chars) { - index2 = html.indexOf("<"); - var text2 = index2 < 0 ? html : html.substring(0, index2); - html = index2 < 0 ? "" : html.substring(index2); - if (handler.chars) { - handler.chars(text2); - } - } - } else { - html = html.replace(new RegExp("([\\s\\S]*?)</" + stack2.last() + "[^>]*>"), function(all, text3) { - text3 = text3.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g, "$1$2"); - if (handler.chars) { - handler.chars(text3); - } - return ""; - }); - parseEndTag("", stack2.last()); - } - if (html == last) { - throw "Parse Error: " + html; - } - last = html; - } - parseEndTag(); - function parseStartTag(tag, tagName, rest, unary) { - tagName = tagName.toLowerCase(); - if (block[tagName]) { - while (stack2.last() && inline[stack2.last()]) { - parseEndTag("", stack2.last()); - } - } - if (closeSelf[tagName] && stack2.last() == tagName) { - parseEndTag("", tagName); - } - unary = empty[tagName] || !!unary; - if (!unary) { - stack2.push(tagName); - } - if (handler.start) { - var attrs2 = []; - rest.replace(attr, function(match2, name) { - var value = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : fillAttrs[name] ? name : ""; - attrs2.push({ - name, - value, - escaped: value.replace(/(^|[^\\])"/g, '$1\\"') - }); - }); - if (handler.start) { - handler.start(tagName, attrs2, unary); - } - } - } - function parseEndTag(tag, tagName) { - if (!tagName) { - var pos = 0; - } else { - for (var pos = stack2.length - 1; pos >= 0; pos--) { - if (stack2[pos] == tagName) { - break; - } - } - } - if (pos >= 0) { - for (var i2 = stack2.length - 1; i2 >= pos; i2--) { - if (handler.end) { - handler.end(stack2[i2]); - } - } - stack2.length = pos; - } - } - } - function makeMap(str) { - var obj = {}; - var items = str.split(","); - for (var i2 = 0; i2 < items.length; i2++) { - obj[items[i2]] = true; - } - return obj; - } - var scripts = {}; - function loadScript(globalName, src, callback) { - var globalObject = typeof globalName === "string" ? window[globalName] : globalName; - if (globalObject) { - callback(); - return; - } - var callbacks2 = scripts[src]; - if (!callbacks2) { - callbacks2 = scripts[src] = []; - var script = document.createElement("script"); - script.src = src; - document.body.appendChild(script); - script.onload = function() { - callbacks2.forEach((callback2) => callback2()); - delete scripts[src]; - }; - } - callbacks2.push(callback); - } - function divider(Quill) { - var BlockEmbed = Quill.import("blots/block/embed"); - class Divider extends BlockEmbed { - } - Divider.blotName = "divider"; - Divider.tagName = "HR"; - return { - "formats/divider": Divider - }; - } - function ins(Quill) { - var Inline = Quill.import("blots/inline"); - class Ins extends Inline { - } - Ins.blotName = "ins"; - Ins.tagName = "INS"; - return { - "formats/ins": Ins - }; - } - function align(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var config = { - scope: Scope.BLOCK, - whitelist: ["left", "right", "center", "justify"] - }; - var AlignStyle = new Attributor.Style("align", "text-align", config); - return { - "formats/align": AlignStyle - }; - } - function direction(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var config = { - scope: Scope.BLOCK, - whitelist: ["rtl"] - }; - var DirectionStyle = new Attributor.Style("direction", "direction", config); - return { - "formats/direction": DirectionStyle - }; - } - function list(Quill) { - var Parchment = Quill.import("parchment"); - var Container = Quill.import("blots/container"); - var ListItem = Quill.import("formats/list/item"); - class List extends Container { - static create(value) { - var tagName = value === "ordered" ? "OL" : "UL"; - var node = super.create(tagName); - if (value === "checked" || value === "unchecked") { - node.setAttribute("data-checked", value === "checked"); - } - return node; - } - static formats(domNode) { - if (domNode.tagName === "OL") - return "ordered"; - if (domNode.tagName === "UL") { - if (domNode.hasAttribute("data-checked")) { - return domNode.getAttribute("data-checked") === "true" ? "checked" : "unchecked"; - } else { - return "bullet"; - } - } - return void 0; - } - constructor(domNode) { - super(domNode); - var listEventHandler = (e2) => { - if (e2.target.parentNode !== domNode) - return; - var format = this.statics.formats(domNode); - var blot = Parchment.find(e2.target); - if (format === "checked") { - blot.format("list", "unchecked"); - } else if (format === "unchecked") { - blot.format("list", "checked"); - } - }; - domNode.addEventListener("click", listEventHandler); - } - format(name, value) { - if (this.children.length > 0) { - this.children.tail.format(name, value); - } - } - formats() { - return { - [this.statics.blotName]: this.statics.formats(this.domNode) - }; - } - insertBefore(blot, ref2) { - if (blot instanceof ListItem) { - super.insertBefore(blot, ref2); - } else { - var index2 = ref2 == null ? this.length() : ref2.offset(this); - var after = this.split(index2); - after.parent.insertBefore(blot, after); - } - } - optimize(context) { - super.optimize(context); - var next = this.next; - if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && next.domNode.tagName === this.domNode.tagName && next.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked")) { - next.moveChildren(this); - next.remove(); - } - } - replace(target) { - if (target.statics.blotName !== this.statics.blotName) { - var item = Parchment.create(this.statics.defaultChild); - target.moveChildren(item); - this.appendChild(item); - } - super.replace(target); - } - } - List.blotName = "list"; - List.scope = Parchment.Scope.BLOCK_BLOT; - List.tagName = ["OL", "UL"]; - List.defaultChild = "list-item"; - List.allowedChildren = [ListItem]; - return { - "formats/list": List - }; - } - function background(Quill) { - var { - Scope - } = Quill.import("parchment"); - var BackgroundStyle = Quill.import("formats/background"); - var BackgroundColorStyle = new BackgroundStyle.constructor("backgroundColor", "background-color", { - scope: Scope.INLINE - }); - return { - "formats/backgroundColor": BackgroundColorStyle - }; - } - function box(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var config = { - scope: Scope.BLOCK - }; - var margin = ["margin", "marginTop", "marginBottom", "marginLeft", "marginRight"]; - var padding = ["padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"]; - var result = {}; - margin.concat(padding).forEach((name) => { - result["formats/".concat(name)] = new Attributor.Style(name, hyphenate(name), config); - }); - return result; - } - function font(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var config = { - scope: Scope.INLINE - }; - var font2 = ["font", "fontSize", "fontStyle", "fontVariant", "fontWeight", "fontFamily"]; - var result = {}; - font2.forEach((name) => { - result["formats/".concat(name)] = new Attributor.Style(name, hyphenate(name), config); - }); - return result; - } - function text(Quill) { - var { - Scope, - Attributor - } = Quill.import("parchment"); - var text2 = [{ - name: "lineHeight", - scope: Scope.BLOCK - }, { - name: "letterSpacing", - scope: Scope.INLINE - }, { - name: "textDecoration", - scope: Scope.INLINE - }, { - name: "textIndent", - scope: Scope.BLOCK - }]; - var result = {}; - text2.forEach(({ - name, - scope - }) => { - result["formats/".concat(name)] = new Attributor.Style(name, hyphenate(name), { - scope - }); - }); - return result; - } - function image$1(Quill) { - var Image2 = Quill.import("formats/image"); - var ATTRIBUTES = ["alt", "height", "width", "data-custom", "class", "data-local"]; - Image2.sanitize = (url) => url; - Image2.formats = function formats(domNode) { - return ATTRIBUTES.reduce(function(formats2, attribute) { - if (domNode.hasAttribute(attribute)) { - formats2[attribute] = domNode.getAttribute(attribute); - } - return formats2; - }, {}); - }; - var format = Image2.prototype.format; - Image2.prototype.format = function(name, value) { - if (ATTRIBUTES.indexOf(name) > -1) { - if (value) { - this.domNode.setAttribute(name, value); - } else { - this.domNode.removeAttribute(name); - } - } else { - format.call(this, name, value); - } - }; - } - function register(Quill) { - var formats = { - divider, - ins, - align, - direction, - list, - background, - box, - font, - text, - image: image$1 - }; - var options = {}; - Object.values(formats).forEach((value) => extend(options, value(Quill))); - Quill.register(options, true); - } - function useQuill(props2, rootRef, trigger2) { - var quillReady; - var skipMatcher; - var quill; - var textChanging = false; - watch(() => props2.readOnly, (value) => { - if (quillReady) { - quill.enable(!value); - if (!value) { - quill.blur(); - } - } - }); - watch(() => props2.placeholder, (value) => { - if (quillReady) { - quill.root.setAttribute("data-placeholder", value); - } - }); - function html2delta(html) { - var tags = ["span", "strong", "b", "ins", "em", "i", "u", "a", "del", "s", "sub", "sup", "img", "div", "p", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ol", "ul", "li", "br"]; - var content = ""; - var disable; - HTMLParser(html, { - start: function(tag, attrs2, unary) { - if (!tags.includes(tag)) { - disable = !unary; - return; - } - disable = false; - var arrts = attrs2.map(({ - name, - value - }) => "".concat(name, '="').concat(value, '"')).join(" "); - var start = "<".concat(tag, " ").concat(arrts, " ").concat(unary ? "/" : "", ">"); - content += start; - }, - end: function(tag) { - if (!disable) { - content += "</".concat(tag, ">"); - } - }, - chars: function(text2) { - if (!disable) { - content += text2; - } - } - }); - skipMatcher = true; - var delta = quill.clipboard.convert(content); - skipMatcher = false; - return delta; - } - function getContents() { - var html = quill.root.innerHTML; - var text2 = quill.getText(); - var delta = quill.getContents(); - return { - html, - text: text2, - delta - }; - } - var oldStatus = {}; - function updateStatus(range) { - var status = range ? quill.getFormat(range) : {}; - var keys = Object.keys(status); - if (keys.length !== Object.keys(oldStatus).length || keys.find((key2) => status[key2] !== oldStatus[key2])) { - oldStatus = status; - trigger2("statuschange", {}, status); - } - } - function initQuill(imageResizeModules) { - var Quill = window.Quill; - register(Quill); - var options = { - toolbar: false, - readOnly: props2.readOnly, - placeholder: props2.placeholder - }; - if (imageResizeModules.length) { - Quill.register("modules/ImageResize", window.ImageResize.default); - options.modules = { - ImageResize: { - modules: imageResizeModules - } - }; - } - var rootEl = rootRef.value; - quill = new Quill(rootEl, options); - var $el = quill.root; - var events = ["focus", "blur", "input"]; - events.forEach((name) => { - $el.addEventListener(name, ($event) => { - if (name === "input") { - $event.stopPropagation(); - } else { - trigger2(name, $event, getContents()); - } - }); - }); - quill.on("text-change", () => { - if (!textChanging) { - trigger2("input", {}, getContents()); - } - }); - quill.on("selection-change", updateStatus); - quill.on("scroll-optimize", () => { - var range = quill.selection.getRange()[0]; - updateStatus(range); - }); - quill.clipboard.addMatcher(Node.ELEMENT_NODE, (node, delta) => { - if (skipMatcher) { - return delta; - } - if (delta.ops) { - delta.ops = delta.ops.filter(({ - insert - }) => typeof insert === "string").map(({ - insert - }) => ({ - insert - })); - } - return delta; - }); - quillReady = true; - trigger2("ready", {}, {}); - } - onMounted(() => { - var imageResizeModules = []; - if (props2.showImgSize) { - imageResizeModules.push("DisplaySize"); - } - if (props2.showImgToolbar) { - imageResizeModules.push("Toolbar"); - } - if (props2.showImgResize) { - imageResizeModules.push("Resize"); - } - var quillSrc = "./__uniappquill.js"; - loadScript(window.Quill, quillSrc, () => { - if (imageResizeModules.length) { - var imageResizeSrc = "./__uniappquillimageresize.js"; - loadScript(window.ImageResize, imageResizeSrc, () => { - initQuill(imageResizeModules); - }); - } else { - initQuill(imageResizeModules); - } - }); - }); - var id2 = useContextInfo(); - useSubscribe((type, data, resolve) => { - var { - options, - callbackId - } = data; - var res; - var range; - var errMsg; - if (quillReady) { - var Quill = window.Quill; - switch (type) { - case "format": - { - var { - name = "", - value = false - } = options; - range = quill.getSelection(true); - var format = quill.getFormat(range)[name] || false; - if (["bold", "italic", "underline", "strike", "ins"].includes(name)) { - value = !format; - } else if (name === "direction") { - value = value === "rtl" && format ? false : value; - var align2 = quill.getFormat(range).align; - if (value === "rtl" && !align2) { - quill.format("align", "right", "user"); - } else if (!value && align2 === "right") { - quill.format("align", false, "user"); - } - } else if (name === "indent") { - var rtl = quill.getFormat(range).direction === "rtl"; - value = value === "+1"; - if (rtl) { - value = !value; - } - value = value ? "+1" : "-1"; - } else { - if (name === "list") { - value = value === "check" ? "unchecked" : value; - format = format === "checked" ? "unchecked" : format; - } - value = format && format !== (value || false) || !format && value ? value : !format; - } - quill.format(name, value, "user"); - } - break; - case "insertDivider": - range = quill.getSelection(true); - quill.insertText(range.index, "\n", "user"); - quill.insertEmbed(range.index + 1, "divider", true, "user"); - quill.setSelection(range.index + 2, 0, "silent"); - break; - case "insertImage": - { - range = quill.getSelection(true); - var { - src = "", - alt = "", - width = "", - height = "", - extClass = "", - data: data2 = {} - } = options; - var path = getRealPath(src); - quill.insertEmbed(range.index, "image", path, "user"); - var local = /^(file|blob):/.test(path) ? path : false; - textChanging = true; - quill.formatText(range.index, 1, "data-local", local); - quill.formatText(range.index, 1, "alt", alt); - quill.formatText(range.index, 1, "width", width); - quill.formatText(range.index, 1, "height", height); - quill.formatText(range.index, 1, "class", extClass); - textChanging = false; - quill.formatText(range.index, 1, "data-custom", Object.keys(data2).map((key2) => "".concat(key2, "=").concat(data2[key2])).join("&")); - quill.setSelection(range.index + 1, 0, "silent"); - } - break; - case "insertText": - { - range = quill.getSelection(true); - var { - text: text2 = "" - } = options; - quill.insertText(range.index, text2, "user"); - quill.setSelection(range.index + text2.length, 0, "silent"); - } - break; - case "setContents": - { - var { - delta, - html - } = options; - if (typeof delta === "object") { - quill.setContents(delta, "silent"); - } else if (typeof html === "string") { - quill.setContents(html2delta(html), "silent"); - } else { - errMsg = "contents is missing"; - } - } - break; - case "getContents": - res = getContents(); - break; - case "clear": - quill.setText(""); - break; - case "removeFormat": - { - range = quill.getSelection(true); - var parchment = Quill.import("parchment"); - if (range.length) { - quill.removeFormat(range.index, range.length, "user"); - } else { - Object.keys(quill.getFormat(range)).forEach((key2) => { - if (parchment.query(key2, parchment.Scope.INLINE)) { - quill.format(key2, false); - } - }); - } - } - break; - case "undo": - quill.history.undo(); - break; - case "redo": - quill.history.redo(); - break; - case "blur": - quill.blur(); - break; - case "getSelectionText": - range = quill.selection.savedRange; - res = { - text: "" - }; - if (range && range.length !== 0) { - res.text = quill.getText(range.index, range.length); - } - break; - case "scrollIntoView": - quill.scrollIntoView(); - break; - } - updateStatus(range); - } else { - errMsg = "not ready"; - } - if (callbackId) { - resolve({ - callbackId, - data: extend({}, res, { - errMsg: "".concat(type, ":").concat(errMsg ? "fail " + errMsg : "ok") - }) - }); - } - }, id2, true); - } - var props$m = /* @__PURE__ */ extend({}, props$n, { - id: { - type: String, - default: "" - }, - readOnly: { - type: [Boolean, String], - default: false - }, - placeholder: { - type: String, - default: "" - }, - showImgSize: { - type: [Boolean, String], - default: false - }, - showImgToolbar: { - type: [Boolean, String], - default: false - }, - showImgResize: { - type: [Boolean, String], - default: false - } - }); - var Editor = /* @__PURE__ */ defineBuiltInComponent({ - name: "Editor", - props: props$m, - emit: ["ready", "focus", "blur", "input", "statuschange", ...emit$1], - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - useQuill(props2, rootRef, trigger2); - useKeyboard(props2, rootRef, trigger2); - return () => { - return createVNode("uni-editor", { - "ref": rootRef, - "id": props2.id, - "class": "ql-container" - }, null, 8, ["id"]); - }; - } - }); - var INFO_COLOR = "#10aeff"; - var WARN_COLOR = "#f76260"; - var GREY_COLOR = "#b2b2b2"; - var CANCEL_COLOR = "#f43530"; - var ICONS = { - success: { - d: ICON_PATH_SUCCESS, - c: PRIMARY_COLOR - }, - success_no_circle: { - d: ICON_PATH_SUCCESS_NO_CIRCLE, - c: PRIMARY_COLOR - }, - info: { - d: ICON_PATH_INFO, - c: INFO_COLOR - }, - warn: { - d: ICON_PATH_WARN, - c: WARN_COLOR - }, - waiting: { - d: ICON_PATH_WAITING, - c: INFO_COLOR - }, - cancel: { - d: ICON_PATH_CANCEL, - c: CANCEL_COLOR - }, - download: { - d: ICON_PATH_DOWNLOAD, - c: PRIMARY_COLOR - }, - search: { - d: ICON_PATH_SEARCH, - c: GREY_COLOR - }, - clear: { - d: ICON_PATH_CLEAR, - c: GREY_COLOR - } - }; - var Icon = /* @__PURE__ */ defineBuiltInComponent({ - name: "Icon", - props: { - type: { - type: String, - required: true, - default: "" - }, - size: { - type: [String, Number], - default: 23 - }, - color: { - type: String, - default: "" - } - }, - setup(props2) { - var path = computed$1(() => ICONS[props2.type]); - return () => { - var { - value - } = path; - return createVNode("uni-icon", null, { - default: () => [value && value.d && createSvgIconVNode(value.d, props2.color || value.c, rpx2px$1(props2.size))] - }); - }; - } - }); - var props$l = { - src: { - type: String, - default: "" - }, - mode: { - type: String, - default: "scaleToFill" - }, - lazyLoad: { - type: [Boolean, String], - default: false - }, - draggable: { - type: Boolean, - default: true - } - }; - var FIX_MODES = { - widthFix: ["offsetWidth", "height"], - heightFix: ["offsetHeight", "width"] - }; - var IMAGE_MODES = { - aspectFit: ["center center", "contain"], - aspectFill: ["center center", "cover"], - widthFix: [, "100% 100%"], - heightFix: [, "100% 100%"], - top: ["center top"], - bottom: ["center bottom"], - center: ["center center"], - left: ["left center"], - right: ["right center"], - "top left": ["left top"], - "top right": ["right top"], - "bottom left": ["left bottom"], - "bottom right": ["right bottom"] - }; - var Image$1 = /* @__PURE__ */ defineBuiltInComponent({ - name: "Image", - props: props$l, - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var state = useImageState(rootRef, props2); - var trigger2 = useCustomEvent(rootRef, emit2); - var { - fixSize - } = useImageSize(rootRef, props2, state); - useImageLoader(state, { - trigger: trigger2, - fixSize - }); - return () => { - var { - mode: mode2 - } = props2; - var { - imgSrc, - modeStyle - } = state; - return createVNode("uni-image", { - "ref": rootRef - }, { - default: () => [createVNode("div", { - "style": modeStyle - }, null, 4), imgSrc ? createVNode("img", { - "src": imgSrc, - "draggable": props2.draggable - }, null, 8, ["src", "draggable"]) : createVNode("img", null, null), FIX_MODES[mode2] ? createVNode(ResizeSensor, { - "onResize": fixSize - }, null, 8, ["onResize"]) : createVNode("span", null, null)], - _: 1 - }, 512); - }; - } - }); - function useImageState(rootRef, props2) { - var imgSrc = ref(""); - var modeStyleRef = computed$1(() => { - var size2 = "auto"; - var position = ""; - var opts = IMAGE_MODES[props2.mode]; - if (!opts) { - position = "0% 0%"; - size2 = "100% 100%"; - } else { - opts[0] && (position = opts[0]); - opts[1] && (size2 = opts[1]); - } - var srcVal = imgSrc.value; - return "background-image:".concat(srcVal ? 'url("' + srcVal + '")' : "none", ";background-position:").concat(position, ";background-size:").concat(size2, ";background-repeat:no-repeat;"); - }); - var state = reactive({ - rootEl: rootRef, - src: computed$1(() => props2.src ? getRealPath(props2.src) : ""), - origWidth: 0, - origHeight: 0, - origStyle: { - width: "", - height: "" - }, - modeStyle: modeStyleRef, - imgSrc - }); - onMounted(() => { - var rootEl = rootRef.value; - var style = rootEl.style; - state.origWidth = Number(style.width) || 0; - state.origHeight = Number(style.height) || 0; - }); - return state; - } - function useImageLoader(state, { - trigger: trigger2, - fixSize - }) { - var img; - var setState = (width = 0, height = 0, imgSrc = "") => { - state.origWidth = width; - state.origHeight = height; - state.imgSrc = imgSrc; - }; - var loadImage = (src) => { - if (!src) { - resetImage(); - setState(); - return; - } - if (!img) { - img = new Image(); - } - img.onload = (evt) => { - var { - width, - height - } = img; - setState(width, height, src); - fixSize(); - resetImage(); - trigger2("load", evt, { - width, - height - }); - }; - img.onerror = (evt) => { - setState(); - resetImage(); - trigger2("error", evt, { - errMsg: "GET ".concat(state.src, " 404 (Not Found)") - }); - }; - img.src = src; - }; - var resetImage = () => { - if (img) { - img.onload = null; - img.onerror = null; - img = null; - } - }; - watch(() => state.src, (value) => loadImage(value)); - onMounted(() => loadImage(state.src)); - onBeforeUnmount(() => resetImage()); - } - var isChrome = navigator.vendor === "Google Inc."; - function fixNumber(num) { - if (isChrome && num > 10) { - num = Math.round(num / 2) * 2; - } - return num; - } - function useImageSize(rootRef, props2, state) { - var fixSize = () => { - var { - mode: mode2 - } = props2; - var names = FIX_MODES[mode2]; - if (!names) { - return; - } - var { - origWidth, - origHeight - } = state; - var ratio = origWidth && origHeight ? origWidth / origHeight : 0; - if (!ratio) { - return; - } - var rootEl = rootRef.value; - var value = rootEl[names[0]]; - if (value) { - rootEl.style[names[1]] = fixNumber(value / ratio) + "px"; - } - { - window.dispatchEvent(new CustomEvent("updateview")); - } - }; - var resetSize = () => { - var { - style - } = rootRef.value; - var { - origStyle: { - width, - height - } - } = state; - style.width = width; - style.height = height; - }; - watch(() => props2.mode, (value, oldValue) => { - if (FIX_MODES[oldValue]) { - resetSize(); - } - if (FIX_MODES[value]) { - fixSize(); - } - }); - return { - fixSize, - resetSize - }; - } - function throttle(fn, wait) { - var last = 0; - var timeout; - var waitCallback; - var newFn = function(...arg) { - var now = Date.now(); - clearTimeout(timeout); - waitCallback = () => { - waitCallback = null; - last = now; - fn.apply(this, arg); - }; - if (now - last < wait) { - timeout = setTimeout(waitCallback, wait - (now - last)); - return; - } - waitCallback(); - }; - newFn.cancel = function() { - clearTimeout(timeout); - waitCallback = null; - }; - newFn.flush = function() { - clearTimeout(timeout); - waitCallback && waitCallback(); - }; - return newFn; - } - var passiveOptions$1 = passive(true); - var states = []; - var userInteract = 0; - var inited; - function addInteractListener(vm) { - if (!inited) { - var eventNames = ["touchstart", "touchmove", "touchend", "mousedown", "mouseup"]; - eventNames.forEach((eventName) => { - document.addEventListener(eventName, function() { - states.forEach((vm2) => { - vm2.userAction = true; - userInteract++; - setTimeout(() => { - userInteract--; - if (!userInteract) { - vm2.userAction = false; - } - }, 0); - }); - }, passiveOptions$1); - }); - inited = true; - } - states.push(vm); - } - function removeInteractListener(vm) { - var index2 = states.indexOf(vm); - if (index2 >= 0) { - states.splice(index2, 1); - } - } - function useUserAction() { - var state = reactive({ - userAction: false - }); - onMounted(() => { - addInteractListener(state); - }); - onBeforeUnmount(() => { - removeInteractListener(state); - }); - return { - state - }; - } - function useScopedAttrs() { - var state = reactive({ - attrs: {} - }); - onMounted(() => { - var instance = getCurrentInstance(); - while (instance) { - var scopeId = instance.type.__scopeId; - if (scopeId) { - state.attrs[scopeId] = ""; - } - instance = instance.proxy && instance.proxy.$mpType === "page" ? null : instance.parent; - } - }); - return { - state - }; - } - function useFormField(nameKey, value) { - var uniForm = inject(uniFormKey, false); - if (!uniForm) { - return; - } - var instance = getCurrentInstance(); - var ctx2 = { - submit() { - var proxy = instance.proxy; - return [proxy[nameKey], typeof value === "string" ? proxy[value] : value.value]; - }, - reset() { - if (typeof value === "string") { - instance.proxy[value] = ""; - } else { - value.value = ""; - } - } - }; - uniForm.addField(ctx2); - onBeforeUnmount(() => { - uniForm.removeField(ctx2); - }); - } - function getSelectedTextRange(_, resolve) { - var activeElement = document.activeElement; - if (!activeElement) { - return resolve({}); - } - var data = {}; - if (["input", "textarea"].includes(activeElement.tagName.toLowerCase())) { - data.start = activeElement.selectionStart; - data.end = activeElement.selectionEnd; - } - resolve(data); - } - var UniViewJSBridgeSubscribe = function() { - registerViewMethod(getCurrentPageId(), "getSelectedTextRange", getSelectedTextRange); - }; - var FOCUS_DELAY = 200; - var startTime; - function getValueString(value) { - return value === null ? "" : String(value); - } - var props$k = /* @__PURE__ */ extend({}, { - name: { - type: String, - default: "" - }, - modelValue: { - type: [String, Number], - default: "" - }, - value: { - type: [String, Number], - default: "" - }, - disabled: { - type: [Boolean, String], - default: false - }, - autoFocus: { - type: [Boolean, String], - default: false - }, - focus: { - type: [Boolean, String], - default: false - }, - cursor: { - type: [Number, String], - default: -1 - }, - selectionStart: { - type: [Number, String], - default: -1 - }, - selectionEnd: { - type: [Number, String], - default: -1 - }, - type: { - type: String, - default: "text" - }, - password: { - type: [Boolean, String], - default: false - }, - placeholder: { - type: String, - default: "" - }, - placeholderStyle: { - type: String, - default: "" - }, - placeholderClass: { - type: String, - default: "" - }, - maxlength: { - type: [Number, String], - default: 140 - }, - confirmType: { - type: String, - default: "done" - } - }, props$n); - var emit = ["input", "focus", "blur", "update:value", "update:modelValue", "update:focus", ...emit$1]; - function useBase(props2, rootRef, emit2) { - var fieldRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var selectionStart = computed$1(() => { - var selectionStart2 = Number(props2.selectionStart); - return isNaN(selectionStart2) ? -1 : selectionStart2; - }); - var selectionEnd = computed$1(() => { - var selectionEnd2 = Number(props2.selectionEnd); - return isNaN(selectionEnd2) ? -1 : selectionEnd2; - }); - var cursor = computed$1(() => { - var cursor2 = Number(props2.cursor); - return isNaN(cursor2) ? -1 : cursor2; - }); - var maxlength = computed$1(() => { - var maxlength2 = Number(props2.maxlength); - return isNaN(maxlength2) ? 140 : maxlength2; - }); - var value = getValueString(props2.modelValue) || getValueString(props2.value); - var state = reactive({ - value, - valueOrigin: value, - maxlength, - focus: props2.focus, - composing: false, - selectionStart, - selectionEnd, - cursor - }); - watch(() => state.focus, (val) => emit2("update:focus", val)); - watch(() => state.maxlength, (val) => state.value = state.value.slice(0, val)); - return { - fieldRef, - state, - trigger: trigger2 - }; - } - function useValueSync(props2, state, emit2, trigger2) { - var valueChangeFn = debounce((val) => { - state.value = getValueString(val); - }, 100); - watch(() => props2.modelValue, valueChangeFn); - watch(() => props2.value, valueChangeFn); - var triggerInputFn = throttle((event, detail) => { - valueChangeFn.cancel(); - emit2("update:modelValue", detail.value); - emit2("update:value", detail.value); - trigger2("input", event, detail); - }, 100); - var triggerInput = (event, detail, force) => { - valueChangeFn.cancel(); - triggerInputFn(event, detail); - if (force) { - triggerInputFn.flush(); - } - }; - onBeforeMount(() => { - valueChangeFn.cancel(); - triggerInputFn.cancel(); - }); - return { - trigger: trigger2, - triggerInput - }; - } - function useAutoFocus(props2, fieldRef) { - var { - state: userActionState - } = useUserAction(); - var needFocus = computed$1(() => props2.autoFocus || props2.focus); - function focus() { - if (!needFocus.value) { - return; - } - var field = fieldRef.value; - if (!field || !("plus" in window)) { - setTimeout(focus, 100); - return; - } - { - var timeout = FOCUS_DELAY - (Date.now() - startTime); - if (timeout > 0) { - setTimeout(focus, timeout); - return; - } - field.focus(); - if (!userActionState.userAction) { - plus.key.showSoftKeybord(); - } - } - } - function blur() { - var field = fieldRef.value; - if (field) { - field.blur(); - } - } - watch(() => props2.focus, (value) => { - if (value) { - focus(); - } else { - blur(); - } - }); - onMounted(() => { - startTime = startTime || Date.now(); - if (needFocus.value) { - nextTick(focus); - } - }); - } - function useEvent(fieldRef, state, trigger2, triggerInput, beforeInput) { - function checkSelection() { - var field = fieldRef.value; - if (field && state.focus && state.selectionStart > -1 && state.selectionEnd > -1) { - field.selectionStart = state.selectionStart; - field.selectionEnd = state.selectionEnd; - } - } - function checkCursor() { - var field = fieldRef.value; - if (field && state.focus && state.selectionStart < 0 && state.selectionEnd < 0 && state.cursor > -1) { - field.selectionEnd = field.selectionStart = state.cursor; - } - } - function initField() { - var field = fieldRef.value; - var onFocus = function(event) { - state.focus = true; - trigger2("focus", event, { - value: state.value - }); - checkSelection(); - checkCursor(); - }; - var onInput = function(event, force) { - event.stopPropagation(); - if (typeof beforeInput === "function" && beforeInput(event, state) === false) { - return; - } - state.value = field.value; - if (!state.composing) { - triggerInput(event, { - value: field.value, - cursor: field.selectionEnd - }, force); - } - }; - var onBlur = function(event) { - if (state.composing) { - state.composing = false; - onInput(event, true); - } - state.focus = false; - trigger2("blur", event, { - value: state.value, - cursor: event.target.selectionEnd - }); - }; - field.addEventListener("change", (event) => event.stopPropagation()); - field.addEventListener("focus", onFocus); - field.addEventListener("blur", onBlur); - field.addEventListener("input", onInput); - field.addEventListener("compositionstart", (event) => { - event.stopPropagation(); - state.composing = true; - }); - field.addEventListener("compositionend", (event) => { - event.stopPropagation(); - if (state.composing) { - state.composing = false; - onInput(event); - } - }); - } - watch([() => state.selectionStart, () => state.selectionEnd], checkSelection); - watch(() => state.cursor, checkCursor); - watch(() => fieldRef.value, initField); - } - function useField(props2, rootRef, emit2, beforeInput) { - UniViewJSBridgeSubscribe(); - var { - fieldRef, - state, - trigger: trigger2 - } = useBase(props2, rootRef, emit2); - var { - triggerInput - } = useValueSync(props2, state, emit2, trigger2); - useAutoFocus(props2, fieldRef); - useKeyboard(props2, fieldRef, trigger2); - var { - state: scopedAttrsState - } = useScopedAttrs(); - useFormField("name", state); - useEvent(fieldRef, state, trigger2, triggerInput, beforeInput); - var fixDisabledColor = String(navigator.vendor).indexOf("Apple") === 0 && CSS.supports("image-orientation:from-image"); - return { - fieldRef, - state, - scopedAttrsState, - fixDisabledColor, - trigger: trigger2 - }; - } - var props$j = /* @__PURE__ */ extend({}, props$k, { - placeholderClass: { - type: String, - default: "input-placeholder" - }, - textContentType: { - type: String, - default: "" - } - }); - var Input = /* @__PURE__ */ defineBuiltInComponent({ - name: "Input", - props: props$j, - emits: ["confirm", ...emit], - setup(props2, { - emit: emit2 - }) { - var INPUT_TYPES = ["text", "number", "idcard", "digit", "password", "tel"]; - var AUTOCOMPLETES = ["off", "one-time-code"]; - var type = computed$1(() => { - var type2 = ""; - switch (props2.type) { - case "text": - if (props2.confirmType === "search") { - type2 = "search"; - } - break; - case "idcard": - type2 = "text"; - break; - case "digit": - type2 = "number"; - break; - default: - type2 = ~INPUT_TYPES.includes(props2.type) ? props2.type : "text"; - break; - } - return props2.password ? "password" : type2; - }); - var autocomplete = computed$1(() => { - var camelizeIndex = AUTOCOMPLETES.indexOf(props2.textContentType); - var kebabCaseIndex = AUTOCOMPLETES.indexOf(hyphenate(props2.textContentType)); - var index2 = camelizeIndex !== -1 ? camelizeIndex : kebabCaseIndex !== -1 ? kebabCaseIndex : 0; - return AUTOCOMPLETES[index2]; - }); - var cache2 = ref(""); - var resetCache; - var rootRef = ref(null); - var { - fieldRef, - state, - scopedAttrsState, - fixDisabledColor, - trigger: trigger2 - } = useField(props2, rootRef, emit2, (event, state2) => { - var input2 = event.target; - if (type.value === "number") { - if (resetCache) { - input2.removeEventListener("blur", resetCache); - resetCache = null; - } - if (input2.validity && !input2.validity.valid) { - if (!cache2.value && event.data === "-" || cache2.value[0] === "-" && event.inputType === "deleteContentBackward") { - cache2.value = "-"; - state2.value = ""; - resetCache = () => { - cache2.value = input2.value = ""; - }; - input2.addEventListener("blur", resetCache); - return false; - } - cache2.value = state2.value = input2.value = cache2.value === "-" ? "" : cache2.value; - return false; - } else { - cache2.value = input2.value; - } - var maxlength = state2.maxlength; - if (maxlength > 0 && input2.value.length > maxlength) { - input2.value = input2.value.slice(0, maxlength); - state2.value = input2.value; - return false; - } - } - }); - var NUMBER_TYPES = ["number", "digit"]; - var step2 = computed$1(() => NUMBER_TYPES.includes(props2.type) ? "0.000000000000000001" : ""); - function onKeyUpEnter(event) { - if (event.key !== "Enter") { - return; - } - event.stopPropagation(); - trigger2("confirm", event, { - value: event.target.value - }); - } - return () => { - var inputNode = props2.disabled && fixDisabledColor ? createVNode("input", { - "ref": fieldRef, - "value": state.value, - "tabindex": "-1", - "readonly": !!props2.disabled, - "type": type.value, - "maxlength": state.maxlength, - "step": step2.value, - "class": "uni-input-input", - "onFocus": (event) => event.target.blur() - }, null, 40, ["value", "readonly", "type", "maxlength", "step", "onFocus"]) : createVNode("input", { - "ref": fieldRef, - "value": state.value, - "disabled": !!props2.disabled, - "type": type.value, - "maxlength": state.maxlength, - "step": step2.value, - "enterkeyhint": props2.confirmType, - "pattern": props2.type === "number" ? "[0-9]*" : void 0, - "class": "uni-input-input", - "autocomplete": autocomplete.value, - "onKeyup": onKeyUpEnter - }, null, 40, ["value", "disabled", "type", "maxlength", "step", "enterkeyhint", "pattern", "autocomplete", "onKeyup"]); - return createVNode("uni-input", { - "ref": rootRef - }, { - default: () => [createVNode("div", { - "class": "uni-input-wrapper" - }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { - "style": props2.placeholderStyle, - "class": ["uni-input-placeholder", props2.placeholderClass] - }), [props2.placeholder], 16), [[vShow, !(state.value.length || cache2.value === "-")]]), props2.confirmType === "search" ? createVNode("form", { - "action": "", - "onSubmit": (event) => event.preventDefault(), - "class": "uni-input-form" - }, [inputNode], 40, ["onSubmit"]) : inputNode])] - }, 512); - }; - } - }); - function entries(obj) { - return Object.keys(obj).map((key2) => [key2, obj[key2]]); - } - var DEFAULT_EXCLUDE_KEYS = ["class", "style"]; - var LISTENER_PREFIX = /^on[A-Z]+/; - var useAttrs = (params = {}) => { - var { - excludeListeners = false, - excludeKeys = [] - } = params; - var instance = getCurrentInstance(); - var attrs2 = shallowRef({}); - var listeners = shallowRef({}); - var excludeAttrs = shallowRef({}); - var allExcludeKeys = excludeKeys.concat(DEFAULT_EXCLUDE_KEYS); - instance.attrs = reactive(instance.attrs); - watchEffect(() => { - var res = entries(instance.attrs).reduce((acc, [key2, val]) => { - if (allExcludeKeys.includes(key2)) { - acc.exclude[key2] = val; - } else if (LISTENER_PREFIX.test(key2)) { - if (!excludeListeners) { - acc.attrs[key2] = val; - } - acc.listeners[key2] = val; - } else { - acc.attrs[key2] = val; - } - return acc; - }, { - exclude: {}, - attrs: {}, - listeners: {} - }); - attrs2.value = res.attrs; - listeners.value = res.listeners; - excludeAttrs.value = res.exclude; - }); - return { - $attrs: attrs2, - $listeners: listeners, - $excludeAttrs: excludeAttrs - }; - }; - var webview$2; - var pullToRefreshStyle; - function initScrollBounce() { - { - plusReady(() => { - if (!webview$2) { - webview$2 = plus.webview.currentWebview(); - } - if (!pullToRefreshStyle) { - pullToRefreshStyle = (webview$2.getStyle() || {}).pullToRefresh || {}; - } - }); - } - } - function disableScrollBounce({ - disable - }) { - { - if (pullToRefreshStyle && pullToRefreshStyle.support) { - webview$2.setPullToRefresh(Object.assign({}, pullToRefreshStyle, { - support: !disable - })); - } - } - } - function flatVNode(nodes) { - var array = []; - if (Array.isArray(nodes)) { - nodes.forEach((vnode) => { - if (isVNode(vnode)) { - if (vnode.type === Fragment) { - array.push(...flatVNode(vnode.children)); - } else { - array.push(vnode); - } - } else if (Array.isArray(vnode)) { - array.push(...flatVNode(vnode)); - } - }); - } - return array; - } - function useRebuild(callback) { - var instance = getCurrentInstance(); - instance.rebuild = callback; - } - var props$i = { - scaleArea: { - type: Boolean, - default: false - } - }; - var MovableArea = /* @__PURE__ */ defineBuiltInComponent({ - inheritAttrs: false, - name: "MovableArea", - props: props$i, - setup(props2, { - slots - }) { - var rootRef = ref(null); - var _isMounted = ref(false); - var { - setContexts, - events: movableAreaEvents - } = useMovableAreaState(props2, rootRef); - var { - $listeners, - $attrs, - $excludeAttrs - } = useAttrs(); - var _listeners = $listeners.value; - var events = ["onTouchstart", "onTouchmove", "onTouchend"]; - events.forEach((event) => { - var existing = _listeners[event]; - var ours = movableAreaEvents["_".concat(event)]; - _listeners[event] = existing ? [].concat(existing, ours) : ours; - }); - onMounted(() => { - movableAreaEvents._resize(); - initScrollBounce(); - _isMounted.value = true; - }); - var movableViewItems = []; - var originMovableViewContexts = []; - function updateMovableViewContexts() { - var contexts = []; - var _loop = function(index3) { - var movableViewItem = movableViewItems[index3]; - if (!(movableViewItem instanceof Element)) { - movableViewItem = movableViewItem.el; - } - var movableViewContext = originMovableViewContexts.find((context) => movableViewItem === context.rootRef.value); - if (movableViewContext) { - contexts.push(markRaw(movableViewContext)); - } - }; - for (var index2 = 0; index2 < movableViewItems.length; index2++) { - _loop(index2); - } - setContexts(contexts); - } - { - useRebuild(() => { - movableViewItems = rootRef.value.children; - updateMovableViewContexts(); - }); - } - var addMovableViewContext = (movableViewContext) => { - originMovableViewContexts.push(movableViewContext); - updateMovableViewContexts(); - }; - var removeMovableViewContext = (movableViewContext) => { - var index2 = originMovableViewContexts.indexOf(movableViewContext); - if (index2 >= 0) { - originMovableViewContexts.splice(index2, 1); - updateMovableViewContexts(); - } - }; - provide("_isMounted", _isMounted); - provide("movableAreaRootRef", rootRef); - provide("addMovableViewContext", addMovableViewContext); - provide("removeMovableViewContext", removeMovableViewContext); - return () => { - slots.default && slots.default(); - return createVNode("uni-movable-area", mergeProps({ - "ref": rootRef - }, $attrs.value, $excludeAttrs.value, _listeners), { - default: () => [createVNode(ResizeSensor, { - "onReize": movableAreaEvents._resize - }, null, 8, ["onReize"]), movableViewItems], - _: 2 - }, 16); - }; - } - }); - function calc(e2) { - return Math.sqrt(e2.x * e2.x + e2.y * e2.y); - } - function useMovableAreaState(props2, rootRef) { - var width = ref(0); - var height = ref(0); - var gapV = reactive({ - x: null, - y: null - }); - var pinchStartLen = ref(null); - var _scaleMovableView = null; - var movableViewContexts = []; - function _updateScale(e2) { - if (e2 && e2 !== 1) { - if (props2.scaleArea) { - movableViewContexts.forEach(function(item) { - item._setScale(e2); - }); - } else { - if (_scaleMovableView) { - _scaleMovableView._setScale(e2); - } - } - } - } - function _find(target, items = movableViewContexts) { - var root = rootRef.value; - function get2(node) { - for (var i2 = 0; i2 < items.length; i2++) { - var item = items[i2]; - if (node === item.rootRef.value) { - return item; - } - } - if (node === root || node === document.body || node === document) { - return null; - } - return get2(node.parentNode); - } - return get2(target); - } - var _onTouchstart = withWebEvent((t2) => { - disableScrollBounce({ - disable: true - }); - var i2 = t2.touches; - if (i2) { - if (i2.length > 1) { - var r = { - x: i2[1].pageX - i2[0].pageX, - y: i2[1].pageY - i2[0].pageY - }; - pinchStartLen.value = calc(r); - gapV.x = r.x; - gapV.y = r.y; - if (!props2.scaleArea) { - var touch0 = _find(i2[0].target); - var touch1 = _find(i2[1].target); - _scaleMovableView = touch0 && touch0 === touch1 ? touch0 : null; - } - } - } - }); - var _onTouchmove = withWebEvent((t2) => { - var n = t2.touches; - if (n) { - if (n.length > 1) { - t2.preventDefault(); - var i2 = { - x: n[1].pageX - n[0].pageX, - y: n[1].pageY - n[0].pageY - }; - if (gapV.x !== null && pinchStartLen.value && pinchStartLen.value > 0) { - var r = calc(i2) / pinchStartLen.value; - _updateScale(r); - } - gapV.x = i2.x; - gapV.y = i2.y; - } - } - }); - var _onTouchend = withWebEvent((e2) => { - disableScrollBounce({ - disable: false - }); - var t2 = e2.touches; - if (!(t2 && t2.length)) { - if (e2.changedTouches) { - gapV.x = 0; - gapV.y = 0; - pinchStartLen.value = null; - if (props2.scaleArea) { - movableViewContexts.forEach(function(item) { - item._endScale(); - }); - } else { - if (_scaleMovableView) { - _scaleMovableView._endScale(); - } - } - } - } - }); - function _resize() { - _getWH(); - movableViewContexts.forEach(function(item, index2) { - item.setParent(); - }); - } - function _getWH() { - var style = window.getComputedStyle(rootRef.value); - var rect = rootRef.value.getBoundingClientRect(); - width.value = rect.width - ["Left", "Right"].reduce(function(all, item) { - var LEFT = "border" + item + "Width"; - var RIGHT = "padding" + item; - return all + parseFloat(style[LEFT]) + parseFloat(style[RIGHT]); - }, 0); - height.value = rect.height - ["Top", "Bottom"].reduce(function(all, item) { - var TOP = "border" + item + "Width"; - var BOTTOM = "padding" + item; - return all + parseFloat(style[TOP]) + parseFloat(style[BOTTOM]); - }, 0); - } - provide("movableAreaWidth", width); - provide("movableAreaHeight", height); - return { - setContexts(contexts) { - movableViewContexts = contexts; - }, - events: { - _onTouchstart, - _onTouchmove, - _onTouchend, - _resize - } - }; - } - var addListenerToElement = function(element, type, callback, capture) { - element.addEventListener(type, ($event) => { - if (typeof callback === "function") { - if (callback($event) === false) { - if (typeof $event.cancelable !== "undefined" ? $event.cancelable : true) { - $event.preventDefault(); - } - $event.stopPropagation(); - } - } - }, { - passive: false - }); - }; - var __mouseMoveEventListener; - var __mouseUpEventListener; - function useTouchtrack(element, method, useCancel) { - onBeforeUnmount(() => { - document.removeEventListener("mousemove", __mouseMoveEventListener); - document.removeEventListener("mouseup", __mouseUpEventListener); - }); - var x0 = 0; - var y0 = 0; - var x1 = 0; - var y1 = 0; - var fn = function($event, state, x, y) { - if (method({ - target: $event.target, - currentTarget: $event.currentTarget, - preventDefault: $event.preventDefault.bind($event), - stopPropagation: $event.stopPropagation.bind($event), - touches: $event.touches, - changedTouches: $event.changedTouches, - detail: { - state, - x, - y, - dx: x - x0, - dy: y - y0, - ddx: x - x1, - ddy: y - y1, - timeStamp: $event.timeStamp - } - }) === false) { - return false; - } - }; - var $eventOld = null; - var hasTouchStart; - var hasMouseDown; - addListenerToElement(element, "touchstart", function($event) { - hasTouchStart = true; - if ($event.touches.length === 1 && !$eventOld) { - $eventOld = $event; - x0 = x1 = $event.touches[0].pageX; - y0 = y1 = $event.touches[0].pageY; - return fn($event, "start", x0, y0); - } - }); - addListenerToElement(element, "mousedown", function($event) { - hasMouseDown = true; - if (!hasTouchStart && !$eventOld) { - $eventOld = $event; - x0 = x1 = $event.pageX; - y0 = y1 = $event.pageY; - return fn($event, "start", x0, y0); - } - }); - addListenerToElement(element, "touchmove", function($event) { - if ($event.touches.length === 1 && $eventOld) { - var res = fn($event, "move", $event.touches[0].pageX, $event.touches[0].pageY); - x1 = $event.touches[0].pageX; - y1 = $event.touches[0].pageY; - return res; - } - }); - var mouseMoveEventListener = __mouseMoveEventListener = function($event) { - if (!hasTouchStart && hasMouseDown && $eventOld) { - var res = fn($event, "move", $event.pageX, $event.pageY); - x1 = $event.pageX; - y1 = $event.pageY; - return res; - } - }; - document.addEventListener("mousemove", mouseMoveEventListener); - addListenerToElement(element, "touchend", function($event) { - if ($event.touches.length === 0 && $eventOld) { - hasTouchStart = false; - $eventOld = null; - return fn($event, "end", $event.changedTouches[0].pageX, $event.changedTouches[0].pageY); - } - }); - var mouseUpEventListener = __mouseUpEventListener = function($event) { - hasMouseDown = false; - if (!hasTouchStart && $eventOld) { - $eventOld = null; - return fn($event, "end", $event.pageX, $event.pageY); - } - }; - document.addEventListener("mouseup", mouseUpEventListener); - addListenerToElement(element, "touchcancel", function($event) { - if ($eventOld) { - hasTouchStart = false; - var $eventTemp = $eventOld; - $eventOld = null; - return fn($event, useCancel ? "cancel" : "end", $eventTemp.touches[0].pageX, $eventTemp.touches[0].pageY); - } - }); - } - function e(e2, t2, n) { - return e2 > t2 - n && e2 < t2 + n; - } - function t(t2, n) { - return e(t2, 0, n); - } - function Decline() { - } - Decline.prototype.x = function(e2) { - return Math.sqrt(e2); - }; - function Friction$1(e2, t2) { - this._m = e2; - this._f = 1e3 * t2; - this._startTime = 0; - this._v = 0; - } - Friction$1.prototype.setV = function(x, y) { - var n = Math.pow(Math.pow(x, 2) + Math.pow(y, 2), 0.5); - this._x_v = x; - this._y_v = y; - this._x_a = -this._f * this._x_v / n; - this._y_a = -this._f * this._y_v / n; - this._t = Math.abs(x / this._x_a) || Math.abs(y / this._y_a); - this._lastDt = null; - this._startTime = new Date().getTime(); - }; - Friction$1.prototype.setS = function(x, y) { - this._x_s = x; - this._y_s = y; - }; - Friction$1.prototype.s = function(t2) { - if (t2 === void 0) { - t2 = (new Date().getTime() - this._startTime) / 1e3; - } - if (t2 > this._t) { - t2 = this._t; - this._lastDt = t2; - } - var x = this._x_v * t2 + 0.5 * this._x_a * Math.pow(t2, 2) + this._x_s; - var y = this._y_v * t2 + 0.5 * this._y_a * Math.pow(t2, 2) + this._y_s; - if (this._x_a > 0 && x < this._endPositionX || this._x_a < 0 && x > this._endPositionX) { - x = this._endPositionX; - } - if (this._y_a > 0 && y < this._endPositionY || this._y_a < 0 && y > this._endPositionY) { - y = this._endPositionY; - } - return { - x, - y - }; - }; - Friction$1.prototype.ds = function(t2) { - if (t2 === void 0) { - t2 = (new Date().getTime() - this._startTime) / 1e3; - } - if (t2 > this._t) { - t2 = this._t; - } - return { - dx: this._x_v + this._x_a * t2, - dy: this._y_v + this._y_a * t2 - }; - }; - Friction$1.prototype.delta = function() { - return { - x: -1.5 * Math.pow(this._x_v, 2) / this._x_a || 0, - y: -1.5 * Math.pow(this._y_v, 2) / this._y_a || 0 - }; - }; - Friction$1.prototype.dt = function() { - return -this._x_v / this._x_a; - }; - Friction$1.prototype.done = function() { - var t2 = e(this.s().x, this._endPositionX) || e(this.s().y, this._endPositionY) || this._lastDt === this._t; - this._lastDt = null; - return t2; - }; - Friction$1.prototype.setEnd = function(x, y) { - this._endPositionX = x; - this._endPositionY = y; - }; - Friction$1.prototype.reconfigure = function(m, f2) { - this._m = m; - this._f = 1e3 * f2; - }; - function Spring$1(m, k, c) { - this._m = m; - this._k = k; - this._c = c; - this._solution = null; - this._endPosition = 0; - this._startTime = 0; - } - Spring$1.prototype._solve = function(e2, t2) { - var n = this._c; - var i2 = this._m; - var r = this._k; - var o2 = n * n - 4 * i2 * r; - if (o2 === 0) { - var a2 = -n / (2 * i2); - var s = e2; - var l = t2 / (a2 * e2); - return { - x: function(e3) { - return (s + l * e3) * Math.pow(Math.E, a2 * e3); - }, - dx: function(e3) { - var t3 = Math.pow(Math.E, a2 * e3); - return a2 * (s + l * e3) * t3 + l * t3; - } - }; - } - if (o2 > 0) { - var c = (-n - Math.sqrt(o2)) / (2 * i2); - var u = (-n + Math.sqrt(o2)) / (2 * i2); - var d = (t2 - c * e2) / (u - c); - var h2 = e2 - d; - return { - x: function(e3) { - var t3; - var n2; - if (e3 === this._t) { - t3 = this._powER1T; - n2 = this._powER2T; - } - this._t = e3; - if (!t3) { - t3 = this._powER1T = Math.pow(Math.E, c * e3); - } - if (!n2) { - n2 = this._powER2T = Math.pow(Math.E, u * e3); - } - return h2 * t3 + d * n2; - }, - dx: function(e3) { - var t3; - var n2; - if (e3 === this._t) { - t3 = this._powER1T; - n2 = this._powER2T; - } - this._t = e3; - if (!t3) { - t3 = this._powER1T = Math.pow(Math.E, c * e3); - } - if (!n2) { - n2 = this._powER2T = Math.pow(Math.E, u * e3); - } - return h2 * c * t3 + d * u * n2; - } - }; - } - var p2 = Math.sqrt(4 * i2 * r - n * n) / (2 * i2); - var f2 = -n / 2 * i2; - var v2 = e2; - var g2 = (t2 - f2 * e2) / p2; - return { - x: function(e3) { - return Math.pow(Math.E, f2 * e3) * (v2 * Math.cos(p2 * e3) + g2 * Math.sin(p2 * e3)); - }, - dx: function(e3) { - var t3 = Math.pow(Math.E, f2 * e3); - var n2 = Math.cos(p2 * e3); - var i3 = Math.sin(p2 * e3); - return t3 * (g2 * p2 * n2 - v2 * p2 * i3) + f2 * t3 * (g2 * i3 + v2 * n2); - } - }; - }; - Spring$1.prototype.x = function(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - return this._solution ? this._endPosition + this._solution.x(e2) : 0; - }; - Spring$1.prototype.dx = function(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - return this._solution ? this._solution.dx(e2) : 0; - }; - Spring$1.prototype.setEnd = function(e2, n, i2) { - if (!i2) { - i2 = new Date().getTime(); - } - if (e2 !== this._endPosition || !t(n, 0.1)) { - n = n || 0; - var r = this._endPosition; - if (this._solution) { - if (t(n, 0.1)) { - n = this._solution.dx((i2 - this._startTime) / 1e3); - } - r = this._solution.x((i2 - this._startTime) / 1e3); - if (t(n, 0.1)) { - n = 0; - } - if (t(r, 0.1)) { - r = 0; - } - r += this._endPosition; - } - if (!(this._solution && t(r - e2, 0.1) && t(n, 0.1))) { - this._endPosition = e2; - this._solution = this._solve(r - this._endPosition, n); - this._startTime = i2; - } - } - }; - Spring$1.prototype.snap = function(e2) { - this._startTime = new Date().getTime(); - this._endPosition = e2; - this._solution = { - x: function() { - return 0; - }, - dx: function() { - return 0; - } - }; - }; - Spring$1.prototype.done = function(n) { - if (!n) { - n = new Date().getTime(); - } - return e(this.x(), this._endPosition, 0.1) && t(this.dx(), 0.1); - }; - Spring$1.prototype.reconfigure = function(m, t2, c) { - this._m = m; - this._k = t2; - this._c = c; - if (!this.done()) { - this._solution = this._solve(this.x() - this._endPosition, this.dx()); - this._startTime = new Date().getTime(); - } - }; - Spring$1.prototype.springConstant = function() { - return this._k; - }; - Spring$1.prototype.damping = function() { - return this._c; - }; - Spring$1.prototype.configuration = function() { - function e2(e3, t3) { - e3.reconfigure(1, t3, e3.damping()); - } - function t2(e3, t3) { - e3.reconfigure(1, e3.springConstant(), t3); - } - return [{ - label: "Spring Constant", - read: this.springConstant.bind(this), - write: e2.bind(this, this), - min: 100, - max: 1e3 - }, { - label: "Damping", - read: this.damping.bind(this), - write: t2.bind(this, this), - min: 1, - max: 500 - }]; - }; - function STD(e2, t2, n) { - this._springX = new Spring$1(e2, t2, n); - this._springY = new Spring$1(e2, t2, n); - this._springScale = new Spring$1(e2, t2, n); - this._startTime = 0; - } - STD.prototype.setEnd = function(e2, t2, n, i2) { - var r = new Date().getTime(); - this._springX.setEnd(e2, i2, r); - this._springY.setEnd(t2, i2, r); - this._springScale.setEnd(n, i2, r); - this._startTime = r; - }; - STD.prototype.x = function() { - var e2 = (new Date().getTime() - this._startTime) / 1e3; - return { - x: this._springX.x(e2), - y: this._springY.x(e2), - scale: this._springScale.x(e2) - }; - }; - STD.prototype.done = function() { - var e2 = new Date().getTime(); - return this._springX.done(e2) && this._springY.done(e2) && this._springScale.done(e2); - }; - STD.prototype.reconfigure = function(e2, t2, n) { - this._springX.reconfigure(e2, t2, n); - this._springY.reconfigure(e2, t2, n); - this._springScale.reconfigure(e2, t2, n); - }; - var props$h = { - direction: { - type: String, - default: "none" - }, - inertia: { - type: [Boolean, String], - default: false - }, - outOfBounds: { - type: [Boolean, String], - default: false - }, - x: { - type: [Number, String], - default: 0 - }, - y: { - type: [Number, String], - default: 0 - }, - damping: { - type: [Number, String], - default: 20 - }, - friction: { - type: [Number, String], - default: 2 - }, - disabled: { - type: [Boolean, String], - default: false - }, - scale: { - type: [Boolean, String], - default: false - }, - scaleMin: { - type: [Number, String], - default: 0.5 - }, - scaleMax: { - type: [Number, String], - default: 10 - }, - scaleValue: { - type: [Number, String], - default: 1 - }, - animation: { - type: [Boolean, String], - default: true - } - }; - var MovableView = /* @__PURE__ */ defineBuiltInComponent({ - name: "MovableView", - props: props$h, - emits: ["change", "scale"], - setup(props2, { - slots, - emit: emit2 - }) { - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var { - setParent - } = useMovableViewState(props2, trigger2, rootRef); - return () => { - return createVNode("uni-movable-view", { - "ref": rootRef - }, { - default: () => [createVNode(ResizeSensor, { - "onResize": setParent - }, null, 8, ["onResize"]), slots.default && slots.default()], - _: 1 - }, 512); - }; - } - }); - var requesting = false; - function _requestAnimationFrame(e2) { - if (!requesting) { - requesting = true; - requestAnimationFrame(function() { - e2(); - requesting = false; - }); - } - } - function p(t2, n) { - if (t2 === n) { - return 0; - } - var i2 = t2.offsetLeft; - return t2.offsetParent ? i2 += p(t2.offsetParent, n) : 0; - } - function f(t2, n) { - if (t2 === n) { - return 0; - } - var i2 = t2.offsetTop; - return t2.offsetParent ? i2 += f(t2.offsetParent, n) : 0; - } - function v(a2, b) { - return +((1e3 * a2 - 1e3 * b) / 1e3).toFixed(1); - } - function g(friction, execute, endCallback) { - var record = { - id: 0, - cancelled: false - }; - var cancel = function(record2) { - if (record2 && record2.id) { - cancelAnimationFrame(record2.id); - } - if (record2) { - record2.cancelled = true; - } - }; - function fn(record2, friction2, execute2, endCallback2) { - if (!record2 || !record2.cancelled) { - execute2(friction2); - var isDone = friction2.done(); - if (!isDone) { - if (!record2.cancelled) { - record2.id = requestAnimationFrame(fn.bind(null, record2, friction2, execute2, endCallback2)); - } - } - if (isDone && endCallback2) { - endCallback2(friction2); - } - } - } - fn(record, friction, execute, endCallback); - return { - cancel: cancel.bind(null, record), - model: friction - }; - } - function _getPx(val) { - if (/\d+[ur]px$/i.test(val)) { - return uni.upx2px(parseFloat(val)); - } - return Number(val) || 0; - } - function useMovableViewState(props2, trigger2, rootRef) { - var movableAreaWidth = inject("movableAreaWidth", ref(0)); - var movableAreaHeight = inject("movableAreaHeight", ref(0)); - var _isMounted = inject("_isMounted", ref(false)); - var movableAreaRootRef = inject("movableAreaRootRef"); - var addMovableViewContext = inject("addMovableViewContext", () => { - }); - var removeMovableViewContext = inject("removeMovableViewContext", () => { - }); - var xSync = ref(_getPx(props2.x)); - var ySync = ref(_getPx(props2.y)); - var scaleValueSync = ref(Number(props2.scaleValue) || 1); - var width = ref(0); - var height = ref(0); - var minX = ref(0); - var minY = ref(0); - var maxX = ref(0); - var maxY = ref(0); - var _SFA = null; - var _FA = null; - var _offset = { - x: 0, - y: 0 - }; - var _scaleOffset = { - x: 0, - y: 0 - }; - var _scale = 1; - var _oldScale = 1; - var _translateX = 0; - var _translateY = 0; - var _isScaling = false; - var _isTouching = false; - var __baseX; - var __baseY; - var _checkCanMove = null; - var _firstMoveDirection = null; - var _declineX = new Decline(); - var _declineY = new Decline(); - var __touchInfo = { - historyX: [0, 0], - historyY: [0, 0], - historyT: [0, 0] - }; - var dampingNumber = computed$1(() => { - var val = Number(props2.damping); - return isNaN(val) ? 20 : val; - }); - var frictionNumber = computed$1(() => { - var val = Number(props2.friction); - return isNaN(val) || val <= 0 ? 2 : val; - }); - var scaleMinNumber = computed$1(() => { - var val = Number(props2.scaleMin); - return isNaN(val) ? 0.5 : val; - }); - var scaleMaxNumber = computed$1(() => { - var val = Number(props2.scaleMax); - return isNaN(val) ? 10 : val; - }); - var xMove = computed$1(() => props2.direction === "all" || props2.direction === "horizontal"); - var yMove = computed$1(() => props2.direction === "all" || props2.direction === "vertical"); - var _STD = new STD(1, 9 * Math.pow(dampingNumber.value, 2) / 40, dampingNumber.value); - var _friction = new Friction$1(1, frictionNumber.value); - watch(() => props2.x, (val) => { - xSync.value = _getPx(val); - }); - watch(() => props2.y, (val) => { - ySync.value = _getPx(val); - }); - watch(xSync, (val) => { - _setX(val); - }); - watch(ySync, (val) => { - _setY(val); - }); - watch(() => props2.scaleValue, (val) => { - scaleValueSync.value = Number(val) || 0; - }); - watch(scaleValueSync, (val) => { - _setScaleValue(val); - }); - watch(scaleMinNumber, () => { - _setScaleMinOrMax(); - }); - watch(scaleMaxNumber, () => { - _setScaleMinOrMax(); - }); - function FAandSFACancel() { - if (_FA) { - _FA.cancel(); - } - if (_SFA) { - _SFA.cancel(); - } - } - function _setX(val) { - if (xMove.value) { - if (val + _scaleOffset.x === _translateX) { - return _translateX; - } else { - if (_SFA) { - _SFA.cancel(); - } - _animationTo(val + _scaleOffset.x, ySync.value + _scaleOffset.y, _scale); - } - } - return val; - } - function _setY(val) { - if (yMove.value) { - if (val + _scaleOffset.y === _translateY) { - return _translateY; - } else { - if (_SFA) { - _SFA.cancel(); - } - _animationTo(xSync.value + _scaleOffset.x, val + _scaleOffset.y, _scale); - } - } - return val; - } - function _setScaleMinOrMax() { - if (!props2.scale) { - return false; - } - _updateScale(_scale, true); - _updateOldScale(_scale); - } - function _setScaleValue(scale) { - if (!props2.scale) { - return false; - } - scale = _adjustScale(scale); - _updateScale(scale, true); - _updateOldScale(scale); - return scale; - } - function __handleTouchStart() { - if (!_isScaling) { - if (!props2.disabled) { - disableScrollBounce({ - disable: true - }); - FAandSFACancel(); - __touchInfo.historyX = [0, 0]; - __touchInfo.historyY = [0, 0]; - __touchInfo.historyT = [0, 0]; - if (xMove.value) { - __baseX = _translateX; - } - if (yMove.value) { - __baseY = _translateY; - } - rootRef.value.style.willChange = "transform"; - _checkCanMove = null; - _firstMoveDirection = null; - _isTouching = true; - } - } - } - function __handleTouchMove(event) { - if (!_isScaling && !props2.disabled && _isTouching) { - var x = _translateX; - var y = _translateY; - if (_firstMoveDirection === null) { - _firstMoveDirection = Math.abs(event.detail.dx / event.detail.dy) > 1 ? "htouchmove" : "vtouchmove"; - } - if (xMove.value) { - x = event.detail.dx + __baseX; - __touchInfo.historyX.shift(); - __touchInfo.historyX.push(x); - if (!yMove.value && _checkCanMove === null) { - _checkCanMove = Math.abs(event.detail.dx / event.detail.dy) < 1; - } - } - if (yMove.value) { - y = event.detail.dy + __baseY; - __touchInfo.historyY.shift(); - __touchInfo.historyY.push(y); - if (!xMove.value && _checkCanMove === null) { - _checkCanMove = Math.abs(event.detail.dy / event.detail.dx) < 1; - } - } - __touchInfo.historyT.shift(); - __touchInfo.historyT.push(event.detail.timeStamp); - if (!_checkCanMove) { - event.preventDefault(); - var source = "touch"; - if (x < minX.value) { - if (props2.outOfBounds) { - source = "touch-out-of-bounds"; - x = minX.value - _declineX.x(minX.value - x); - } else { - x = minX.value; - } - } else if (x > maxX.value) { - if (props2.outOfBounds) { - source = "touch-out-of-bounds"; - x = maxX.value + _declineX.x(x - maxX.value); - } else { - x = maxX.value; - } - } - if (y < minY.value) { - if (props2.outOfBounds) { - source = "touch-out-of-bounds"; - y = minY.value - _declineY.x(minY.value - y); - } else { - y = minY.value; - } - } else { - if (y > maxY.value) { - if (props2.outOfBounds) { - source = "touch-out-of-bounds"; - y = maxY.value + _declineY.x(y - maxY.value); - } else { - y = maxY.value; - } - } - } - _requestAnimationFrame(function() { - _setTransform(x, y, _scale, source); - }); - } - } - } - function __handleTouchEnd() { - if (!_isScaling && !props2.disabled && _isTouching) { - disableScrollBounce({ - disable: false - }); - rootRef.value.style.willChange = "auto"; - _isTouching = false; - if (!_checkCanMove && !_revise("out-of-bounds") && props2.inertia) { - var xv = 1e3 * (__touchInfo.historyX[1] - __touchInfo.historyX[0]) / (__touchInfo.historyT[1] - __touchInfo.historyT[0]); - var yv = 1e3 * (__touchInfo.historyY[1] - __touchInfo.historyY[0]) / (__touchInfo.historyT[1] - __touchInfo.historyT[0]); - _friction.setV(xv, yv); - _friction.setS(_translateX, _translateY); - var x0 = _friction.delta().x; - var y0 = _friction.delta().y; - var x = x0 + _translateX; - var y = y0 + _translateY; - if (x < minX.value) { - x = minX.value; - y = _translateY + (minX.value - _translateX) * y0 / x0; - } else { - if (x > maxX.value) { - x = maxX.value; - y = _translateY + (maxX.value - _translateX) * y0 / x0; - } - } - if (y < minY.value) { - y = minY.value; - x = _translateX + (minY.value - _translateY) * x0 / y0; - } else { - if (y > maxY.value) { - y = maxY.value; - x = _translateX + (maxY.value - _translateY) * x0 / y0; - } - } - _friction.setEnd(x, y); - _FA = g(_friction, function() { - var t2 = _friction.s(); - var x2 = t2.x; - var y2 = t2.y; - _setTransform(x2, y2, _scale, "friction"); - }, function() { - _FA.cancel(); - }); - } - } - if (!props2.outOfBounds && !props2.inertia) { - FAandSFACancel(); - } - } - function _getLimitXY(x, y) { - var outOfBounds = false; - if (x > maxX.value) { - x = maxX.value; - outOfBounds = true; - } else { - if (x < minX.value) { - x = minX.value; - outOfBounds = true; - } - } - if (y > maxY.value) { - y = maxY.value; - outOfBounds = true; - } else { - if (y < minY.value) { - y = minY.value; - outOfBounds = true; - } - } - return { - x, - y, - outOfBounds - }; - } - function _updateOffset() { - _offset.x = p(rootRef.value, movableAreaRootRef.value); - _offset.y = f(rootRef.value, movableAreaRootRef.value); - } - function _updateWH(scale) { - scale = scale || _scale; - scale = _adjustScale(scale); - var rect = rootRef.value.getBoundingClientRect(); - height.value = rect.height / _scale; - width.value = rect.width / _scale; - var _height = height.value * scale; - var _width = width.value * scale; - _scaleOffset.x = (_width - width.value) / 2; - _scaleOffset.y = (_height - height.value) / 2; - } - function _updateBoundary() { - var x = 0 - _offset.x + _scaleOffset.x; - var _width = movableAreaWidth.value - width.value - _offset.x - _scaleOffset.x; - minX.value = Math.min(x, _width); - maxX.value = Math.max(x, _width); - var y = 0 - _offset.y + _scaleOffset.y; - var _height = movableAreaHeight.value - height.value - _offset.y - _scaleOffset.y; - minY.value = Math.min(y, _height); - maxY.value = Math.max(y, _height); - } - function _beginScale() { - _isScaling = true; - } - function _updateScale(scale, animat) { - if (props2.scale) { - scale = _adjustScale(scale); - _updateWH(scale); - _updateBoundary(); - var limitXY = _getLimitXY(_translateX, _translateY); - var x = limitXY.x; - var y = limitXY.y; - if (animat) { - _animationTo(x, y, scale, "", true, true); - } else { - _requestAnimationFrame(function() { - _setTransform(x, y, scale, "", true, true); - }); - } - } - } - function _updateOldScale(scale) { - _oldScale = scale; - } - function _adjustScale(scale) { - scale = Math.max(0.5, scaleMinNumber.value, scale); - scale = Math.min(10, scaleMaxNumber.value, scale); - return scale; - } - function _animationTo(x, y, scale, source, r, o2) { - FAandSFACancel(); - if (!xMove.value) { - x = _translateX; - } - if (!yMove.value) { - y = _translateY; - } - if (!props2.scale) { - scale = _scale; - } - var limitXY = _getLimitXY(x, y); - x = limitXY.x; - y = limitXY.y; - if (!props2.animation) { - _setTransform(x, y, scale, source, r, o2); - return; - } - _STD._springX._solution = null; - _STD._springY._solution = null; - _STD._springScale._solution = null; - _STD._springX._endPosition = _translateX; - _STD._springY._endPosition = _translateY; - _STD._springScale._endPosition = _scale; - _STD.setEnd(x, y, scale, 1); - _SFA = g(_STD, function() { - var data = _STD.x(); - var x2 = data.x; - var y2 = data.y; - var scale2 = data.scale; - _setTransform(x2, y2, scale2, source, r, o2); - }, function() { - _SFA.cancel(); - }); - } - function _revise(source) { - var limitXY = _getLimitXY(_translateX, _translateY); - var x = limitXY.x; - var y = limitXY.y; - var outOfBounds = limitXY.outOfBounds; - if (outOfBounds) { - _animationTo(x, y, _scale, source); - } - return outOfBounds; - } - function _setTransform(x, y, scale, source = "", r, o2) { - if (!(x !== null && x.toString() !== "NaN" && typeof x === "number")) { - x = _translateX || 0; - } - if (!(y !== null && y.toString() !== "NaN" && typeof y === "number")) { - y = _translateY || 0; - } - x = Number(x.toFixed(1)); - y = Number(y.toFixed(1)); - scale = Number(scale.toFixed(1)); - if (!(_translateX === x && _translateY === y)) { - if (!r) { - trigger2("change", {}, { - x: v(x, _scaleOffset.x), - y: v(y, _scaleOffset.y), - source - }); - } - } - if (!props2.scale) { - scale = _scale; - } - scale = _adjustScale(scale); - scale = +scale.toFixed(3); - if (o2 && scale !== _scale) { - trigger2("scale", {}, { - x, - y, - scale - }); - } - var transform = "translateX(" + x + "px) translateY(" + y + "px) translateZ(0px) scale(" + scale + ")"; - rootRef.value.style.transform = transform; - rootRef.value.style.webkitTransform = transform; - _translateX = x; - _translateY = y; - _scale = scale; - } - function setParent() { - if (!_isMounted.value) { - return; - } - FAandSFACancel(); - var scale = props2.scale ? scaleValueSync.value : 1; - _updateOffset(); - _updateWH(scale); - _updateBoundary(); - _translateX = xSync.value + _scaleOffset.x; - _translateY = ySync.value + _scaleOffset.y; - var limitXY = _getLimitXY(_translateX, _translateY); - var x = limitXY.x; - var y = limitXY.y; - _setTransform(x, y, scale, "", true); - _updateOldScale(scale); - } - function _endScale() { - _isScaling = false; - _updateOldScale(_scale); - } - function _setScale(scale) { - if (scale) { - scale = _oldScale * scale; - _beginScale(); - _updateScale(scale); - } - } - onMounted(() => { - useTouchtrack(rootRef.value, (event) => { - switch (event.detail.state) { - case "start": - __handleTouchStart(); - break; - case "move": - __handleTouchMove(event); - break; - case "end": - __handleTouchEnd(); - } - }); - setParent(); - _friction.reconfigure(1, frictionNumber.value); - _STD.reconfigure(1, 9 * Math.pow(dampingNumber.value, 2) / 40, dampingNumber.value); - rootRef.value.style.transformOrigin = "center"; - initScrollBounce(); - var context = { - rootRef, - setParent, - _endScale, - _setScale - }; - addMovableViewContext(context); - onUnmounted(() => { - removeMovableViewContext(context); - }); - }); - onUnmounted(() => { - FAandSFACancel(); - }); - return { - setParent - }; - } - var OPEN_TYPES = ["navigate", "redirect", "switchTab", "reLaunch", "navigateBack"]; - var props$g = { - hoverClass: { - type: String, - default: "navigator-hover" - }, - url: { - type: String, - default: "" - }, - openType: { - type: String, - default: "navigate", - validator(value) { - return Boolean(~OPEN_TYPES.indexOf(value)); - } - }, - delta: { - type: Number, - default: 1 - }, - hoverStartTime: { - type: [Number, String], - default: 50 - }, - hoverStayTime: { - type: [Number, String], - default: 600 - }, - exists: { - type: String, - default: "" - }, - hoverStopPropagation: { - type: Boolean, - default: false - } - }; - var Navigator = /* @__PURE__ */ defineBuiltInComponent({ - name: "Navigator", - compatConfig: { - MODE: 3 - }, - props: props$g, - setup(props2, { - slots - }) { - var { - hovering, - binding - } = useHover(props2); - function onClick($event) { - if (props2.openType !== "navigateBack" && !props2.url) { - console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab"); - return; - } - switch (props2.openType) { - case "navigate": - uni.navigateTo({ - url: props2.url - }); - break; - case "redirect": - uni.redirectTo({ - url: props2.url, - exists: props2.exists - }); - break; - case "switchTab": - uni.switchTab({ - url: props2.url - }); - break; - case "reLaunch": - uni.reLaunch({ - url: props2.url - }); - break; - case "navigateBack": - uni.navigateBack({ - delta: props2.delta - }); - break; - } - } - return () => { - var { - hoverClass - } = props2; - var hasHoverClass = props2.hoverClass && props2.hoverClass !== "none"; - return createVNode("uni-navigator", mergeProps({ - "class": hasHoverClass && hovering.value ? hoverClass : "" - }, hasHoverClass && binding, { - "onClick": onClick - }), { - default: () => [slots.default && slots.default()] - }, 16, ["class", "onClick"]); - }; - } - }); - var props$f = { - value: { - type: Array, - default() { - return []; - }, - validator: function(val) { - return Array.isArray(val) && val.filter((val2) => typeof val2 === "number").length === val.length; - } - }, - indicatorStyle: { - type: String, - default: "" - }, - indicatorClass: { - type: String, - default: "" - }, - maskStyle: { - type: String, - default: "" - }, - maskClass: { - type: String, - default: "" - } - }; - function useState$1(props2) { - var value = reactive([...props2.value]); - var state = reactive({ - value, - height: 34 - }); - watch(() => props2.value, (val, oldVal) => { - if (val === oldVal || val.length !== oldVal.length || val.findIndex((item, index2) => item !== oldVal[index2]) >= 0) { - state.value.length = val.length; - val.forEach((val2, index2) => { - if (val2 !== state.value[index2]) { - state.value.splice(index2, 1, val2); - } - }); - } - }); - return state; - } - var PickerView = /* @__PURE__ */ defineBuiltInComponent({ - name: "PickerView", - props: props$f, - emits: ["change", "pickstart", "pickend", "update:value"], - setup(props2, { - slots, - emit: emit2 - }) { - var rootRef = ref(null); - var wrapperRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var state = useState$1(props2); - var resizeSensorRef = ref(null); - var onMountedCallback = () => { - var resizeSensor2 = resizeSensorRef.value; - state.height = resizeSensor2.$el.offsetHeight; - }; - var columnsRef = ref([]); - function getItemIndex(vnode) { - var columnVNodes = columnsRef.value; - if (columnVNodes instanceof HTMLCollection) { - return Array.prototype.indexOf.call(columnVNodes, vnode.el); - } - return columnVNodes.indexOf(vnode); - } - var getPickerViewColumn = function(columnInstance) { - var ref2 = computed$1({ - get() { - var index2 = getItemIndex(columnInstance.vnode); - return state.value[index2] || 0; - }, - set(current) { - var index2 = getItemIndex(columnInstance.vnode); - if (index2 < 0) { - return; - } - var oldCurrent = state.value[index2]; - if (oldCurrent !== current) { - state.value.splice(index2, 1, current); - var value = state.value.map((val) => val); - emit2("update:value", value); - trigger2("change", {}, { - value - }); - } - } - }); - return ref2; - }; - provide("getPickerViewColumn", getPickerViewColumn); - provide("pickerViewProps", props2); - provide("pickerViewState", state); - { - useRebuild(() => { - onMountedCallback(); - columnsRef.value = wrapperRef.value.children; - }); - } - return () => { - var defaultSlots = slots.default && slots.default(); - return createVNode("uni-picker-view", { - "ref": rootRef - }, { - default: () => [createVNode(ResizeSensor, { - "ref": resizeSensorRef, - "onResize": ({ - height - }) => state.height = height - }, null, 8, ["onResize"]), createVNode("div", { - "ref": wrapperRef, - "class": "uni-picker-view-wrapper" - }, [defaultSlots], 512)], - _: 2 - }, 512); - }; - } - }); - class Friction { - constructor(drag) { - this._drag = drag; - this._dragLog = Math.log(drag); - this._x = 0; - this._v = 0; - this._startTime = 0; - } - set(x, v2) { - this._x = x; - this._v = v2; - this._startTime = new Date().getTime(); - } - setVelocityByEnd(e2) { - this._v = (e2 - this._x) * this._dragLog / (Math.pow(this._drag, 100) - 1); - } - x(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - var t2 = e2 === this._dt && this._powDragDt ? this._powDragDt : this._powDragDt = Math.pow(this._drag, e2); - this._dt = e2; - return this._x + this._v * t2 / this._dragLog - this._v / this._dragLog; - } - dx(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - var t2 = e2 === this._dt && this._powDragDt ? this._powDragDt : this._powDragDt = Math.pow(this._drag, e2); - this._dt = e2; - return this._v * t2; - } - done() { - return Math.abs(this.dx()) < 3; - } - reconfigure(e2) { - var t2 = this.x(); - var n = this.dx(); - this._drag = e2; - this._dragLog = Math.log(e2); - this.set(t2, n); - } - configuration() { - var e2 = this; - return [{ - label: "Friction", - read: function() { - return e2._drag; - }, - write: function(t2) { - e2.reconfigure(t2); - }, - min: 1e-3, - max: 0.1, - step: 1e-3 - }]; - } - } - function o(e2, t2, n) { - return e2 > t2 - n && e2 < t2 + n; - } - function a(e2, t2) { - return o(e2, 0, t2); - } - class Spring { - constructor(m, k, c) { - this._m = m; - this._k = k; - this._c = c; - this._solution = null; - this._endPosition = 0; - this._startTime = 0; - } - _solve(e2, t2) { - var n = this._c; - var i2 = this._m; - var r = this._k; - var o2 = n * n - 4 * i2 * r; - if (o2 === 0) { - var a3 = -n / (2 * i2); - var s2 = e2; - var l2 = t2 / (a3 * e2); - return { - x: function(e22) { - return (s2 + l2 * e22) * Math.pow(Math.E, a3 * e22); - }, - dx: function(e22) { - var t22 = Math.pow(Math.E, a3 * e22); - return a3 * (s2 + l2 * e22) * t22 + l2 * t22; - } - }; - } - if (o2 > 0) { - var c = (-n - Math.sqrt(o2)) / (2 * i2); - var u = (-n + Math.sqrt(o2)) / (2 * i2); - var _l = (t2 - c * e2) / (u - c); - var _s = e2 - _l; - return { - x: function(e22) { - var t22; - var n2; - if (e22 === this._t) { - t22 = this._powER1T; - n2 = this._powER2T; - } - this._t = e22; - if (!t22) { - t22 = this._powER1T = Math.pow(Math.E, c * e22); - } - if (!n2) { - n2 = this._powER2T = Math.pow(Math.E, u * e22); - } - return _s * t22 + _l * n2; - }, - dx: function(e22) { - var t22; - var n2; - if (e22 === this._t) { - t22 = this._powER1T; - n2 = this._powER2T; - } - this._t = e22; - if (!t22) { - t22 = this._powER1T = Math.pow(Math.E, c * e22); - } - if (!n2) { - n2 = this._powER2T = Math.pow(Math.E, u * e22); - } - return _s * c * t22 + _l * u * n2; - } - }; - } - var d = Math.sqrt(4 * i2 * r - n * n) / (2 * i2); - var a2 = -n / 2 * i2; - var s = e2; - var l = (t2 - a2 * e2) / d; - return { - x: function(e22) { - return Math.pow(Math.E, a2 * e22) * (s * Math.cos(d * e22) + l * Math.sin(d * e22)); - }, - dx: function(e22) { - var t22 = Math.pow(Math.E, a2 * e22); - var n2 = Math.cos(d * e22); - var i22 = Math.sin(d * e22); - return t22 * (l * d * n2 - s * d * i22) + a2 * t22 * (l * i22 + s * n2); - } - }; - } - x(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - return this._solution ? this._endPosition + this._solution.x(e2) : 0; - } - dx(e2) { - if (e2 === void 0) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - return this._solution ? this._solution.dx(e2) : 0; - } - setEnd(e2, t2, n) { - if (!n) { - n = new Date().getTime(); - } - if (e2 !== this._endPosition || !a(t2, 0.4)) { - t2 = t2 || 0; - var i2 = this._endPosition; - if (this._solution) { - if (a(t2, 0.4)) { - t2 = this._solution.dx((n - this._startTime) / 1e3); - } - i2 = this._solution.x((n - this._startTime) / 1e3); - if (a(t2, 0.4)) { - t2 = 0; - } - if (a(i2, 0.4)) { - i2 = 0; - } - i2 += this._endPosition; - } - if (!(this._solution && a(i2 - e2, 0.4) && a(t2, 0.4))) { - this._endPosition = e2; - this._solution = this._solve(i2 - this._endPosition, t2); - this._startTime = n; - } - } - } - snap(e2) { - this._startTime = new Date().getTime(); - this._endPosition = e2; - this._solution = { - x: function() { - return 0; - }, - dx: function() { - return 0; - } - }; - } - done(e2) { - if (!e2) { - e2 = new Date().getTime(); - } - return o(this.x(), this._endPosition, 0.4) && a(this.dx(), 0.4); - } - reconfigure(e2, t2, n) { - this._m = e2; - this._k = t2; - this._c = n; - if (!this.done()) { - this._solution = this._solve(this.x() - this._endPosition, this.dx()); - this._startTime = new Date().getTime(); - } - } - springConstant() { - return this._k; - } - damping() { - return this._c; - } - configuration() { - function e2(e22, t22) { - e22.reconfigure(1, t22, e22.damping()); - } - function t2(e22, t22) { - e22.reconfigure(1, e22.springConstant(), t22); - } - return [{ - label: "Spring Constant", - read: this.springConstant.bind(this), - write: e2.bind(this, this), - min: 100, - max: 1e3 - }, { - label: "Damping", - read: this.damping.bind(this), - write: t2.bind(this, this), - min: 1, - max: 500 - }]; - } - } - class Scroll { - constructor(extent, friction, spring) { - this._extent = extent; - this._friction = friction || new Friction(0.01); - this._spring = spring || new Spring(1, 90, 20); - this._startTime = 0; - this._springing = false; - this._springOffset = 0; - } - snap(e2, t2) { - this._springOffset = 0; - this._springing = true; - this._spring.snap(e2); - this._spring.setEnd(t2); - } - set(e2, t2) { - this._friction.set(e2, t2); - if (e2 > 0 && t2 >= 0) { - this._springOffset = 0; - this._springing = true; - this._spring.snap(e2); - this._spring.setEnd(0); - } else { - if (e2 < -this._extent && t2 <= 0) { - this._springOffset = 0; - this._springing = true; - this._spring.snap(e2); - this._spring.setEnd(-this._extent); - } else { - this._springing = false; - } - } - this._startTime = new Date().getTime(); - } - x(e2) { - if (!this._startTime) { - return 0; - } - if (!e2) { - e2 = (new Date().getTime() - this._startTime) / 1e3; - } - if (this._springing) { - return this._spring.x() + this._springOffset; - } - var t2 = this._friction.x(e2); - var n = this.dx(e2); - if (t2 > 0 && n >= 0 || t2 < -this._extent && n <= 0) { - this._springing = true; - this._spring.setEnd(0, n); - if (t2 < -this._extent) { - this._springOffset = -this._extent; - } else { - this._springOffset = 0; - } - t2 = this._spring.x() + this._springOffset; - } - return t2; - } - dx(e2) { - var t2; - if (this._lastTime === e2) { - t2 = this._lastDx; - } else { - t2 = this._springing ? this._spring.dx(e2) : this._friction.dx(e2); - } - this._lastTime = e2; - this._lastDx = t2; - return t2; - } - done() { - return this._springing ? this._spring.done() : this._friction.done(); - } - setVelocityByEnd(e2) { - this._friction.setVelocityByEnd(e2); - } - configuration() { - var e2 = this._friction.configuration(); - e2.push.apply(e2, this._spring.configuration()); - return e2; - } - } - function createAnimation(scroll, onScroll, onEnd) { - var state = { - id: 0, - cancelled: false - }; - function startAnimation2(state2, scroll2, onScroll2, onEnd2) { - if (!state2 || !state2.cancelled) { - onScroll2(scroll2); - var isDone = scroll2.done(); - if (!isDone) { - if (!state2.cancelled) { - state2.id = requestAnimationFrame(startAnimation2.bind(null, state2, scroll2, onScroll2, onEnd2)); - } - } - if (isDone && onEnd2) { - onEnd2(scroll2); - } - } - } - function cancel(state2) { - if (state2 && state2.id) { - cancelAnimationFrame(state2.id); - } - if (state2) { - state2.cancelled = true; - } - } - startAnimation2(state, scroll, onScroll, onEnd); - return { - cancel: cancel.bind(null, state), - model: scroll - }; - } - class Scroller { - constructor(element, options) { - options = options || {}; - this._element = element; - this._options = options; - this._enableSnap = options.enableSnap || false; - this._itemSize = options.itemSize || 0; - this._enableX = options.enableX || false; - this._enableY = options.enableY || false; - this._shouldDispatchScrollEvent = !!options.onScroll; - if (this._enableX) { - this._extent = (options.scrollWidth || this._element.offsetWidth) - this._element.parentElement.offsetWidth; - this._scrollWidth = options.scrollWidth; - } else { - this._extent = (options.scrollHeight || this._element.offsetHeight) - this._element.parentElement.offsetHeight; - this._scrollHeight = options.scrollHeight; - } - this._position = 0; - this._scroll = new Scroll(this._extent, options.friction, options.spring); - this._onTransitionEnd = this.onTransitionEnd.bind(this); - this.updatePosition(); - } - onTouchStart() { - this._startPosition = this._position; - this._lastChangePos = this._startPosition; - if (this._startPosition > 0) { - this._startPosition /= 0.5; - } else { - if (this._startPosition < -this._extent) { - this._startPosition = (this._startPosition + this._extent) / 0.5 - this._extent; - } - } - if (this._animation) { - this._animation.cancel(); - this._scrolling = false; - } - this.updatePosition(); - } - onTouchMove(x, y) { - var startPosition = this._startPosition; - if (this._enableX) { - startPosition += x; - } else if (this._enableY) { - startPosition += y; - } - if (startPosition > 0) { - startPosition *= 0.5; - } else if (startPosition < -this._extent) { - startPosition = 0.5 * (startPosition + this._extent) - this._extent; - } - this._position = startPosition; - this.updatePosition(); - this.dispatchScroll(); - } - onTouchEnd(x, y, o2) { - if (this._enableSnap && this._position > -this._extent && this._position < 0) { - if (this._enableY && (Math.abs(y) < this._itemSize && Math.abs(o2.y) < 300 || Math.abs(o2.y) < 150)) { - this.snap(); - return; - } - if (this._enableX && (Math.abs(x) < this._itemSize && Math.abs(o2.x) < 300 || Math.abs(o2.x) < 150)) { - this.snap(); - return; - } - } - if (this._enableX) { - this._scroll.set(this._position, o2.x); - } else if (this._enableY) { - this._scroll.set(this._position, o2.y); - } - var c; - if (this._enableSnap) { - var s = this._scroll._friction.x(100); - var l = s % this._itemSize; - c = Math.abs(l) > this._itemSize / 2 ? s - (this._itemSize - Math.abs(l)) : s - l; - if (c <= 0 && c >= -this._extent) { - this._scroll.setVelocityByEnd(c); - } - } - this._lastTime = Date.now(); - this._lastDelay = 0; - this._scrolling = true; - this._lastChangePos = this._position; - this._lastIdx = Math.floor(Math.abs(this._position / this._itemSize)); - this._animation = createAnimation(this._scroll, () => { - var e2 = Date.now(); - var i2 = (e2 - this._scroll._startTime) / 1e3; - var r = this._scroll.x(i2); - this._position = r; - this.updatePosition(); - var o22 = this._scroll.dx(i2); - if (this._shouldDispatchScrollEvent && e2 - this._lastTime > this._lastDelay) { - this.dispatchScroll(); - this._lastDelay = Math.abs(2e3 / o22); - this._lastTime = e2; - } - }, () => { - if (this._enableSnap) { - if (c <= 0 && c >= -this._extent) { - this._position = c; - this.updatePosition(); - } - if (typeof this._options.onSnap === "function") { - this._options.onSnap(Math.floor(Math.abs(this._position) / this._itemSize)); - } - } - if (this._shouldDispatchScrollEvent) { - this.dispatchScroll(); - } - this._scrolling = false; - }); - } - onTransitionEnd() { - this._element.style.webkitTransition = ""; - this._element.style.transition = ""; - this._element.removeEventListener("transitionend", this._onTransitionEnd); - if (this._snapping) { - this._snapping = false; - } - this.dispatchScroll(); - } - snap() { - var itemSize = this._itemSize; - var position = this._position % itemSize; - var i2 = Math.abs(position) > this._itemSize / 2 ? this._position - (itemSize - Math.abs(position)) : this._position - position; - if (this._position !== i2) { - this._snapping = true; - this.scrollTo(-i2); - if (typeof this._options.onSnap === "function") { - this._options.onSnap(Math.floor(Math.abs(this._position) / this._itemSize)); - } - } - } - scrollTo(position, time) { - if (this._animation) { - this._animation.cancel(); - this._scrolling = false; - } - if (typeof position === "number") { - this._position = -position; - } - if (this._position < -this._extent) { - this._position = -this._extent; - } else { - if (this._position > 0) { - this._position = 0; - } - } - var transition = "transform " + (time || 0.2) + "s ease-out"; - this._element.style.webkitTransition = "-webkit-" + transition; - this._element.style.transition = transition; - this.updatePosition(); - this._element.addEventListener("transitionend", this._onTransitionEnd); - } - dispatchScroll() { - if (typeof this._options.onScroll === "function" && Math.round(Number(this._lastPos)) !== Math.round(this._position)) { - this._lastPos = this._position; - var event = { - target: { - scrollLeft: this._enableX ? -this._position : 0, - scrollTop: this._enableY ? -this._position : 0, - scrollHeight: this._scrollHeight || this._element.offsetHeight, - scrollWidth: this._scrollWidth || this._element.offsetWidth, - offsetHeight: this._element.parentElement.offsetHeight, - offsetWidth: this._element.parentElement.offsetWidth - } - }; - this._options.onScroll(event); - } - } - update(height, scrollHeight, itemSize) { - var extent = 0; - var position = this._position; - if (this._enableX) { - extent = this._element.childNodes.length ? (scrollHeight || this._element.offsetWidth) - this._element.parentElement.offsetWidth : 0; - this._scrollWidth = scrollHeight; - } else { - extent = this._element.childNodes.length ? (scrollHeight || this._element.offsetHeight) - this._element.parentElement.offsetHeight : 0; - this._scrollHeight = scrollHeight; - } - if (typeof height === "number") { - this._position = -height; - } - if (this._position < -extent) { - this._position = -extent; - } else { - if (this._position > 0) { - this._position = 0; - } - } - this._itemSize = itemSize || this._itemSize; - this.updatePosition(); - if (position !== this._position) { - this.dispatchScroll(); - if (typeof this._options.onSnap === "function") { - this._options.onSnap(Math.floor(Math.abs(this._position) / this._itemSize)); - } - } - this._extent = extent; - this._scroll._extent = extent; - } - updatePosition() { - var transform = ""; - if (this._enableX) { - transform = "translateX(" + this._position + "px) translateZ(0)"; - } else { - if (this._enableY) { - transform = "translateY(" + this._position + "px) translateZ(0)"; - } - } - this._element.style.webkitTransform = transform; - this._element.style.transform = transform; - } - isScrolling() { - return this._scrolling || this._snapping; - } - } - function useScroller(element, options) { - var touchInfo = { - trackingID: -1, - maxDy: 0, - maxDx: 0 - }; - var scroller = new Scroller(element, options); - function findDelta(event) { - var touchtrackEvent = event; - var mouseEvent = event; - return touchtrackEvent.detail.state === "move" || touchtrackEvent.detail.state === "end" ? { - x: touchtrackEvent.detail.dx, - y: touchtrackEvent.detail.dy - } : { - x: mouseEvent.screenX - touchInfo.x, - y: mouseEvent.screenY - touchInfo.y - }; - } - function handleTouchStart(event) { - var touchtrackEvent = event; - var mouseEvent = event; - if (touchtrackEvent.detail.state === "start") { - touchInfo.trackingID = "touch"; - touchInfo.x = touchtrackEvent.detail.x; - touchInfo.y = touchtrackEvent.detail.y; - } else { - touchInfo.trackingID = "mouse"; - touchInfo.x = mouseEvent.screenX; - touchInfo.y = mouseEvent.screenY; - } - touchInfo.maxDx = 0; - touchInfo.maxDy = 0; - touchInfo.historyX = [0]; - touchInfo.historyY = [0]; - touchInfo.historyTime = [touchtrackEvent.detail.timeStamp || mouseEvent.timeStamp]; - touchInfo.listener = scroller; - if (scroller.onTouchStart) { - scroller.onTouchStart(); - } - event.preventDefault(); - } - function handleTouchMove(event) { - var touchtrackEvent = event; - var mouseEvent = event; - if (touchInfo.trackingID !== -1) { - event.preventDefault(); - var delta = findDelta(event); - if (delta) { - for (touchInfo.maxDy = Math.max(touchInfo.maxDy, Math.abs(delta.y)), touchInfo.maxDx = Math.max(touchInfo.maxDx, Math.abs(delta.x)), touchInfo.historyX.push(delta.x), touchInfo.historyY.push(delta.y), touchInfo.historyTime.push(touchtrackEvent.detail.timeStamp || mouseEvent.timeStamp); touchInfo.historyTime.length > 10; ) { - touchInfo.historyTime.shift(); - touchInfo.historyX.shift(); - touchInfo.historyY.shift(); - } - if (touchInfo.listener && touchInfo.listener.onTouchMove) { - touchInfo.listener.onTouchMove(delta.x, delta.y); - } - } - } - } - function handleTouchEnd(event) { - if (touchInfo.trackingID !== -1) { - event.preventDefault(); - var delta = findDelta(event); - if (delta) { - var listener = touchInfo.listener; - touchInfo.trackingID = -1; - touchInfo.listener = null; - var length = touchInfo.historyTime.length; - var o2 = { - x: 0, - y: 0 - }; - if (length > 2) { - for (var i2 = touchInfo.historyTime.length - 1, time1 = touchInfo.historyTime[i2], x = touchInfo.historyX[i2], y = touchInfo.historyY[i2]; i2 > 0; ) { - i2--; - var time0 = touchInfo.historyTime[i2]; - var time = time1 - time0; - if (time > 30 && time < 50) { - o2.x = (x - touchInfo.historyX[i2]) / (time / 1e3); - o2.y = (y - touchInfo.historyY[i2]) / (time / 1e3); - break; - } - } - } - touchInfo.historyTime = []; - touchInfo.historyX = []; - touchInfo.historyY = []; - if (listener && listener.onTouchEnd) { - listener.onTouchEnd(delta.x, delta.y, o2); - } - } - } - } - return { - scroller, - handleTouchStart, - handleTouchMove, - handleTouchEnd - }; - } - var scopedIndex = 0; - function useScopedClass(indicatorHeightRef) { - var className = "uni-picker-view-content-".concat(scopedIndex++); - function updateStyle() { - var style = document.createElement("style"); - style.innerText = ".uni-picker-view-content.".concat(className, ">*{height: ").concat(indicatorHeightRef.value, "px;overflow: hidden;}"); - document.head.appendChild(style); - } - watch(() => indicatorHeightRef.value, updateStyle); - return className; - } - function useCustomClick(dom) { - var MAX_MOVE = 20; - var x = 0; - var y = 0; - dom.addEventListener("touchstart", (event) => { - var info = event.changedTouches[0]; - x = info.clientX; - y = info.clientY; - }); - dom.addEventListener("touchend", (event) => { - var info = event.changedTouches[0]; - if (Math.abs(info.clientX - x) < MAX_MOVE && Math.abs(info.clientY - y) < MAX_MOVE) { - var options = { - bubbles: true, - cancelable: true, - target: event.target, - currentTarget: event.currentTarget - }; - var customClick = new CustomEvent("click", options); - var props2 = ["screenX", "screenY", "clientX", "clientY", "pageX", "pageY"]; - props2.forEach((key2) => { - customClick[key2] = info[key2]; - }); - event.target.dispatchEvent(customClick); - } - }); - } - var PickerViewColumn = /* @__PURE__ */ defineBuiltInComponent({ - name: "PickerViewColumn", - setup(props2, { - slots, - emit: emit2 - }) { - var rootRef = ref(null); - var contentRef = ref(null); - var getPickerViewColumn = inject("getPickerViewColumn"); - var instance = getCurrentInstance(); - var currentRef = getPickerViewColumn ? getPickerViewColumn(instance) : ref(0); - var pickerViewProps = inject("pickerViewProps"); - var pickerViewState = inject("pickerViewState"); - var indicatorHeight = ref(34); - var resizeSensorRef = ref(null); - var initIndicatorHeight = () => { - var resizeSensor2 = resizeSensorRef.value; - indicatorHeight.value = resizeSensor2.$el.offsetHeight; - }; - var maskSize = computed$1(() => (pickerViewState.height - indicatorHeight.value) / 2); - var { - state: scopedAttrsState - } = useScopedAttrs(); - var className = useScopedClass(indicatorHeight); - var scroller; - var state = reactive({ - current: currentRef.value, - length: 0 - }); - var updatesScrollerRequest; - function updatesScroller() { - if (scroller && !updatesScrollerRequest) { - updatesScrollerRequest = true; - nextTick(() => { - updatesScrollerRequest = false; - var current = Math.min(state.current, state.length - 1); - current = Math.max(current, 0); - scroller.update(current * indicatorHeight.value, void 0, indicatorHeight.value); - }); - } - } - watch(() => currentRef.value, (current) => { - if (current !== state.current) { - state.current = current; - updatesScroller(); - } - }); - watch(() => state.current, (current) => currentRef.value = current); - watch([() => indicatorHeight.value, () => state.length, () => pickerViewState.height], updatesScroller); - var oldDeltaY = 0; - function handleWheel(event) { - var deltaY = oldDeltaY + event.deltaY; - if (Math.abs(deltaY) > 10) { - oldDeltaY = 0; - var current = Math.min(state.current + (deltaY < 0 ? -1 : 1), state.length - 1); - state.current = current = Math.max(current, 0); - scroller.scrollTo(current * indicatorHeight.value); - } else { - oldDeltaY = deltaY; - } - event.preventDefault(); - } - function handleTap({ - clientY - }) { - var el = rootRef.value; - if (!scroller.isScrolling()) { - var rect = el.getBoundingClientRect(); - var r = clientY - rect.top - pickerViewState.height / 2; - var o2 = indicatorHeight.value / 2; - if (!(Math.abs(r) <= o2)) { - var a2 = Math.ceil((Math.abs(r) - o2) / indicatorHeight.value); - var s = r < 0 ? -a2 : a2; - var current = Math.min(state.current + s, state.length - 1); - state.current = current = Math.max(current, 0); - scroller.scrollTo(current * indicatorHeight.value); - } - } - } - var initScroller = () => { - var el = rootRef.value; - var content = contentRef.value; - var { - scroller: scrollerOrigin, - handleTouchStart, - handleTouchMove, - handleTouchEnd - } = useScroller(content, { - enableY: true, - enableX: false, - enableSnap: true, - itemSize: indicatorHeight.value, - friction: new Friction(1e-4), - spring: new Spring(2, 90, 20), - onSnap: (index2) => { - if (!isNaN(index2) && index2 !== state.current) { - state.current = index2; - } - } - }); - scroller = scrollerOrigin; - useTouchtrack(el, (e2) => { - switch (e2.detail.state) { - case "start": - handleTouchStart(e2); - disableScrollBounce({ - disable: true - }); - break; - case "move": - handleTouchMove(e2); - break; - case "end": - case "cancel": - handleTouchEnd(e2); - disableScrollBounce({ - disable: false - }); - } - }, true); - useCustomClick(el); - initScrollBounce(); - updatesScroller(); - }; - { - useRebuild(() => { - state.length = contentRef.value.children.length; - initIndicatorHeight(); - initScroller(); - }); - } - return () => { - var defaultSlots = slots.default && slots.default(); - var padding = "".concat(maskSize.value, "px 0"); - return createVNode("uni-picker-view-column", { - "ref": rootRef - }, { - default: () => [createVNode("div", { - "onWheel": handleWheel, - "onClick": handleTap, - "class": "uni-picker-view-group" - }, [createVNode("div", mergeProps(scopedAttrsState.attrs, { - "class": ["uni-picker-view-mask", pickerViewProps.maskClass], - "style": "background-size: 100% ".concat(maskSize.value, "px;").concat(pickerViewProps.maskStyle) - }), null, 16), createVNode("div", mergeProps(scopedAttrsState.attrs, { - "class": ["uni-picker-view-indicator", pickerViewProps.indicatorClass], - "style": pickerViewProps.indicatorStyle - }), [createVNode(ResizeSensor, { - "ref": resizeSensorRef, - "onResize": ({ - height - }) => indicatorHeight.value = height - }, null, 8, ["onResize"])], 16), createVNode("div", { - "ref": contentRef, - "class": ["uni-picker-view-content", className], - "style": { - padding - } - }, [defaultSlots], 6)], 40, ["onWheel", "onClick"])] - }, 512); - }; - } - }); - var VALUES = { - activeColor: PRIMARY_COLOR, - backgroundColor: "#EBEBEB", - activeMode: "backwards" - }; - var props$e = { - percent: { - type: [Number, String], - default: 0, - validator(value) { - return !isNaN(parseFloat(value)); - } - }, - showInfo: { - type: [Boolean, String], - default: false - }, - strokeWidth: { - type: [Number, String], - default: 6, - validator(value) { - return !isNaN(parseFloat(value)); - } - }, - color: { - type: String, - default: VALUES.activeColor - }, - activeColor: { - type: String, - default: VALUES.activeColor - }, - backgroundColor: { - type: String, - default: VALUES.backgroundColor - }, - active: { - type: [Boolean, String], - default: false - }, - activeMode: { - type: String, - default: VALUES.activeMode - }, - duration: { - type: [Number, String], - default: 30, - validator(value) { - return !isNaN(parseFloat(value)); - } - } - }; - var Progress = /* @__PURE__ */ defineBuiltInComponent({ - name: "Progress", - props: props$e, - setup(props2) { - var state = useProgressState(props2); - _activeAnimation(state, props2); - watch(() => state.realPercent, (newValue, oldValue) => { - state.strokeTimer && clearInterval(state.strokeTimer); - state.lastPercent = oldValue || 0; - _activeAnimation(state, props2); - }); - return () => { - var { - showInfo - } = props2; - var { - outerBarStyle, - innerBarStyle, - currentPercent - } = state; - return createVNode("uni-progress", { - "class": "uni-progress" - }, { - default: () => [createVNode("div", { - "style": outerBarStyle, - "class": "uni-progress-bar" - }, [createVNode("div", { - "style": innerBarStyle, - "class": "uni-progress-inner-bar" - }, null, 4)], 4), showInfo ? createVNode("p", { - "class": "uni-progress-info" - }, [currentPercent + "%"]) : ""], - _: 1 - }); - }; - } - }); - function useProgressState(props2) { - var currentPercent = ref(0); - var outerBarStyle = computed$1(() => "background-color: ".concat(props2.backgroundColor, "; height: ").concat(props2.strokeWidth, "px;")); - var innerBarStyle = computed$1(() => { - var backgroundColor = props2.color !== VALUES.activeColor && props2.activeColor === VALUES.activeColor ? props2.color : props2.activeColor; - return "width: ".concat(currentPercent.value, "%;background-color: ").concat(backgroundColor); - }); - var realPercent = computed$1(() => { - var realValue = parseFloat(props2.percent); - realValue < 0 && (realValue = 0); - realValue > 100 && (realValue = 100); - return realValue; - }); - var state = reactive({ - outerBarStyle, - innerBarStyle, - realPercent, - currentPercent, - strokeTimer: 0, - lastPercent: 0 - }); - return state; - } - function _activeAnimation(state, props2) { - if (props2.active) { - state.currentPercent = props2.activeMode === VALUES.activeMode ? 0 : state.lastPercent; - state.strokeTimer = setInterval(() => { - if (state.currentPercent + 1 > state.realPercent) { - state.currentPercent = state.realPercent; - state.strokeTimer && clearInterval(state.strokeTimer); - } else { - state.currentPercent += 1; - } - }, parseFloat(props2.duration)); - } else { - state.currentPercent = state.realPercent; - } - } - var uniRadioGroupKey = PolySymbol("uniCheckGroup"); - var props$d = { - name: { - type: String, - default: "" - } - }; - var RadioGroup = /* @__PURE__ */ defineBuiltInComponent({ - name: "RadioGroup", - props: props$d, - setup(props2, { - emit: emit2, - slots - }) { - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - useProvideRadioGroup(props2, trigger2); - return () => { - return createVNode("uni-radio-group", { - "ref": rootRef - }, { - default: () => [slots.default && slots.default()] - }, 512); - }; - } - }); - function useProvideRadioGroup(props2, trigger2) { - var fields2 = []; - onMounted(() => { - _resetRadioGroupValue(fields2.length - 1); - }); - var getFieldsValue = () => { - var _fields$find; - return (_fields$find = fields2.find((field) => field.value.radioChecked)) === null || _fields$find === void 0 ? void 0 : _fields$find.value.value; - }; - provide(uniRadioGroupKey, { - addField(field) { - fields2.push(field); - }, - removeField(field) { - fields2.splice(fields2.indexOf(field), 1); - }, - radioChange($event, field) { - var index2 = fields2.indexOf(field); - _resetRadioGroupValue(index2, true); - trigger2("change", $event, { - value: getFieldsValue() - }); - } - }); - var uniForm = inject(uniFormKey, false); - var formField = { - submit: () => { - var data = ["", null]; - if (props2.name !== "") { - data[0] = props2.name; - data[1] = getFieldsValue(); - } - return data; - } - }; - if (uniForm) { - uniForm.addField(formField); - onBeforeUnmount(() => { - uniForm.removeField(formField); - }); - } - function setFieldChecked(field, radioChecked) { - field.value = { - radioChecked, - value: field.value.value - }; - } - function _resetRadioGroupValue(key2, change) { - fields2.forEach((value, index2) => { - if (index2 === key2) { - return; - } - if (change) { - setFieldChecked(fields2[index2], false); - } else { - fields2.forEach((v2, i2) => { - if (index2 >= i2) { - return; - } - if (fields2[i2].value.radioChecked) { - setFieldChecked(fields2[index2], false); - } - }); - } - }); - } - return fields2; - } - var props$c = { - checked: { - type: [Boolean, String], - default: false - }, - id: { - type: String, - default: "" - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: "#007aff" - }, - value: { - type: String, - default: "" - } - }; - var Radio = /* @__PURE__ */ defineBuiltInComponent({ - name: "Radio", - props: props$c, - setup(props2, { - slots - }) { - var radioChecked = ref(props2.checked); - var radioValue = ref(props2.value); - var checkedStyle = computed$1(() => "background-color: ".concat(props2.color, ";border-color: ").concat(props2.color, ";")); - watch([() => props2.checked, () => props2.value], ([newChecked, newModelValue]) => { - radioChecked.value = newChecked; - radioValue.value = newModelValue; - }); - var reset2 = () => { - radioChecked.value = false; - }; - var { - uniCheckGroup, - uniLabel, - field - } = useRadioInject(radioChecked, radioValue, reset2); - var _onClick = ($event) => { - if (props2.disabled) { - return; - } - radioChecked.value = true; - uniCheckGroup && uniCheckGroup.radioChange($event, field); - }; - if (!!uniLabel) { - uniLabel.addHandler(_onClick); - onBeforeUnmount(() => { - uniLabel.removeHandler(_onClick); - }); - } - useListeners$1(props2, { - "label-click": _onClick - }); - return () => { - var { - booleanAttrs - } = useBooleanAttr(props2, "disabled"); - return createVNode("uni-radio", mergeProps(booleanAttrs, { - "onClick": _onClick - }), { - default: () => [createVNode("div", { - "class": "uni-radio-wrapper" - }, [createVNode("div", { - "class": ["uni-radio-input", { - "uni-radio-input-disabled": props2.disabled - }], - "style": radioChecked.value ? checkedStyle.value : "" - }, [radioChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 18) : ""], 6), slots.default && slots.default()])] - }, 16, ["onClick"]); - }; - } - }); - function useRadioInject(radioChecked, radioValue, reset2) { - var field = computed$1({ - get: () => ({ - radioChecked: Boolean(radioChecked.value), - value: radioValue.value - }), - set: ({ - radioChecked: checked - }) => { - radioChecked.value = checked; - } - }); - var formField = { - reset: reset2 - }; - var uniCheckGroup = inject(uniRadioGroupKey, false); - if (!!uniCheckGroup) { - uniCheckGroup.addField(field); - } - var uniForm = inject(uniFormKey, false); - if (!!uniForm) { - uniForm.addField(formField); - } - var uniLabel = inject(uniLabelKey, false); - onBeforeUnmount(() => { - uniCheckGroup && uniCheckGroup.removeField(field); - uniForm && uniForm.removeField(formField); - }); - return { - uniCheckGroup, - uniForm, - uniLabel, - field - }; - } - function removeDOCTYPE(html) { - return html.replace(/<\?xml.*\?>\n/, "").replace(/<!doctype.*>\n/, "").replace(/<!DOCTYPE.*>\n/, ""); - } - function parseAttrs(attrs2) { - return attrs2.reduce(function(pre, attr2) { - var value = attr2.value; - var name = attr2.name; - if (value.match(/ /) && name !== "style") { - value = value.split(" "); - } - if (pre[name]) { - if (Array.isArray(pre[name])) { - pre[name].push(value); - } else { - pre[name] = [pre[name], value]; - } - } else { - pre[name] = value; - } - return pre; - }, {}); - } - function parseHtml(html) { - html = removeDOCTYPE(html); - var stacks = []; - var results = { - node: "root", - children: [] - }; - HTMLParser(html, { - start: function(tag, attrs2, unary) { - var node = { - name: tag - }; - if (attrs2.length !== 0) { - node.attrs = parseAttrs(attrs2); - } - if (unary) { - var parent = stacks[0] || results; - if (!parent.children) { - parent.children = []; - } - parent.children.push(node); - } else { - stacks.unshift(node); - } - }, - end: function(tag) { - var node = stacks.shift(); - if (node.name !== tag) - console.error("invalid state: mismatch end tag"); - if (stacks.length === 0) { - results.children.push(node); - } else { - var parent = stacks[0]; - if (!parent.children) { - parent.children = []; - } - parent.children.push(node); - } - }, - chars: function(text2) { - var node = { - type: "text", - text: text2 - }; - if (stacks.length === 0) { - results.children.push(node); - } else { - var parent = stacks[0]; - if (!parent.children) { - parent.children = []; - } - parent.children.push(node); - } - }, - comment: function(text2) { - var node = { - node: "comment", - text: text2 - }; - var parent = stacks[0]; - if (!parent.children) { - parent.children = []; - } - parent.children.push(node); - } - }); - return results.children; - } - var TAGS = { - a: "", - abbr: "", - b: "", - blockquote: "", - br: "", - code: "", - col: ["span", "width"], - colgroup: ["span", "width"], - dd: "", - del: "", - div: "", - dl: "", - dt: "", - em: "", - fieldset: "", - h1: "", - h2: "", - h3: "", - h4: "", - h5: "", - h6: "", - hr: "", - i: "", - img: ["alt", "src", "height", "width"], - ins: "", - label: "", - legend: "", - li: "", - ol: ["start", "type"], - p: "", - q: "", - span: "", - strong: "", - sub: "", - sup: "", - table: ["width"], - tbody: "", - td: ["colspan", "rowspan", "height", "width"], - tfoot: "", - th: ["colspan", "rowspan", "height", "width"], - thead: "", - tr: "", - ul: "" - }; - var CHARS = { - amp: "&", - gt: ">", - lt: "<", - nbsp: " ", - quot: '"', - apos: "'" - }; - function decodeEntities(htmlString) { - return htmlString.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi, function(match, stage) { - if (hasOwn$1(CHARS, stage) && CHARS[stage]) { - return CHARS[stage]; - } - if (/^#[0-9]{1,4}$/.test(stage)) { - return String.fromCharCode(stage.slice(1)); - } - if (/^#x[0-9a-f]{1,4}$/i.test(stage)) { - return String.fromCharCode("0" + stage.slice(1)); - } - var wrap = document.createElement("div"); - wrap.innerHTML = match; - return wrap.innerText || wrap.textContent; - }); - } - function parseNodes(nodes, parentNode) { - nodes.forEach(function(node) { - if (!isPlainObject(node)) { - return; - } - if (!hasOwn$1(node, "type") || node.type === "node") { - if (!(typeof node.name === "string" && node.name)) { - return; - } - var tagName = node.name.toLowerCase(); - if (!hasOwn$1(TAGS, tagName)) { - return; - } - var elem = document.createElement(tagName); - if (!elem) { - return; - } - var attrs2 = node.attrs; - if (isPlainObject(attrs2)) { - var tagAttrs = TAGS[tagName] || []; - Object.keys(attrs2).forEach(function(name) { - var value = attrs2[name]; - switch (name) { - case "class": - Array.isArray(value) && (value = value.join(" ")); - case "style": - elem.setAttribute(name, value); - break; - default: - if (tagAttrs.indexOf(name) !== -1) { - elem.setAttribute(name, value); - } - } - }); - } - var children = node.children; - if (Array.isArray(children) && children.length) { - parseNodes(node.children, elem); - } - parentNode.appendChild(elem); - } else { - if (node.type === "text" && typeof node.text === "string" && node.text !== "") { - parentNode.appendChild(document.createTextNode(decodeEntities(node.text))); - } - } - }); - return parentNode; - } - var props$b = { - nodes: { - type: [Array, String], - default: function() { - return []; - } - } - }; - var RichText = /* @__PURE__ */ defineBuiltInComponent({ - name: "RichText", - compatConfig: { - MODE: 3 - }, - props: props$b, - setup(props2) { - var rootRef = ref(null); - function _renderNodes(nodes) { - if (typeof nodes === "string") { - nodes = parseHtml(nodes); - } - var nodeList = parseNodes(nodes, document.createDocumentFragment()); - rootRef.value.firstElementChild.innerHTML = ""; - rootRef.value.firstElementChild.appendChild(nodeList); - } - watch(() => props2.nodes, (value) => { - _renderNodes(value); - }); - onMounted(() => { - _renderNodes(props2.nodes); - }); - return () => { - return createVNode("uni-rich-text", { - "ref": rootRef - }, { - default: () => [createVNode("div", null, null)] - }, 512); - }; - } - }); - var passiveOptions = passive(true); - var props$a = { - scrollX: { - type: [Boolean, String], - default: false - }, - scrollY: { - type: [Boolean, String], - default: false - }, - upperThreshold: { - type: [Number, String], - default: 50 - }, - lowerThreshold: { - type: [Number, String], - default: 50 - }, - scrollTop: { - type: [Number, String], - default: 0 - }, - scrollLeft: { - type: [Number, String], - default: 0 - }, - scrollIntoView: { - type: String, - default: "" - }, - scrollWithAnimation: { - type: [Boolean, String], - default: false - }, - enableBackToTop: { - type: [Boolean, String], - default: false - }, - refresherEnabled: { - type: [Boolean, String], - default: false - }, - refresherThreshold: { - type: Number, - default: 45 - }, - refresherDefaultStyle: { - type: String, - default: "back" - }, - refresherBackground: { - type: String, - default: "#fff" - }, - refresherTriggered: { - type: [Boolean, String], - default: false - } - }; - var ScrollView = /* @__PURE__ */ defineBuiltInComponent({ - name: "ScrollView", - compatConfig: { - MODE: 3 - }, - props: props$a, - emits: ["scroll", "scrolltoupper", "scrolltolower", "refresherrefresh", "refresherrestore", "refresherpulling", "refresherabort", "update:refresherTriggered"], - setup(props2, { - emit: emit2, - slots - }) { - var rootRef = ref(null); - var main = ref(null); - var wrap = ref(null); - var content = ref(null); - var refresherinner = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var { - state, - scrollTopNumber, - scrollLeftNumber - } = useScrollViewState(props2); - useScrollViewLoader(props2, state, scrollTopNumber, scrollLeftNumber, trigger2, rootRef, main, content, emit2); - var mainStyle = computed$1(() => { - var style = ""; - props2.scrollX ? style += "overflow-x:auto;" : style += "overflow-x:hidden;"; - props2.scrollY ? style += "overflow-y:auto;" : style += "overflow-y:hidden;"; - return style; - }); - return () => { - var { - refresherEnabled, - refresherBackground, - refresherDefaultStyle - } = props2; - var { - refresherHeight, - refreshState, - refreshRotate - } = state; - return createVNode("uni-scroll-view", { - "ref": rootRef - }, { - default: () => [createVNode("div", { - "ref": wrap, - "class": "uni-scroll-view" - }, [createVNode("div", { - "ref": main, - "style": mainStyle.value, - "class": "uni-scroll-view" - }, [createVNode("div", { - "ref": content, - "class": "uni-scroll-view-content" - }, [refresherEnabled ? createVNode("div", { - "ref": refresherinner, - "style": { - backgroundColor: refresherBackground, - height: refresherHeight + "px" - }, - "class": "uni-scroll-view-refresher" - }, [refresherDefaultStyle !== "none" ? createVNode("div", { - "class": "uni-scroll-view-refresh" - }, [createVNode("div", { - "class": "uni-scroll-view-refresh-inner" - }, [refreshState == "pulling" ? createVNode("svg", { - "key": "refresh__icon", - "style": { - transform: "rotate(" + refreshRotate + "deg)" - }, - "fill": "#2BD009", - "class": "uni-scroll-view-refresh__icon", - "width": "24", - "height": "24", - "viewBox": "0 0 24 24" - }, [createVNode("path", { - "d": "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" - }, null), createVNode("path", { - "d": "M0 0h24v24H0z", - "fill": "none" - }, null)], 4) : null, refreshState == "refreshing" ? createVNode("svg", { - "key": "refresh__spinner", - "class": "uni-scroll-view-refresh__spinner", - "width": "24", - "height": "24", - "viewBox": "25 25 50 50" - }, [createVNode("circle", { - "cx": "50", - "cy": "50", - "r": "20", - "fill": "none", - "style": "color: #2bd009", - "stroke-width": "3" - }, null)]) : null])]) : null, refresherDefaultStyle == "none" ? slots.refresher && slots.refresher() : null], 4) : null, slots.default && slots.default()], 512)], 4)], 512)] - }, 512); - }; - } - }); - function useScrollViewState(props2) { - var scrollTopNumber = computed$1(() => { - return Number(props2.scrollTop) || 0; - }); - var scrollLeftNumber = computed$1(() => { - return Number(props2.scrollLeft) || 0; - }); - var state = reactive({ - lastScrollTop: scrollTopNumber.value, - lastScrollLeft: scrollLeftNumber.value, - lastScrollToUpperTime: 0, - lastScrollToLowerTime: 0, - refresherHeight: 0, - refreshRotate: 0, - refreshState: "" - }); - return { - state, - scrollTopNumber, - scrollLeftNumber - }; - } - function useScrollViewLoader(props2, state, scrollTopNumber, scrollLeftNumber, trigger2, rootRef, main, content, emit2) { - var _lastScrollTime = 0; - var beforeRefreshing = false; - var toUpperNumber = 0; - var triggerAbort = false; - var __transitionEnd = () => { - }; - var upperThresholdNumber = computed$1(() => { - var val = Number(props2.upperThreshold); - return isNaN(val) ? 50 : val; - }); - var lowerThresholdNumber = computed$1(() => { - var val = Number(props2.lowerThreshold); - return isNaN(val) ? 50 : val; - }); - function scrollTo2(scrollToValue, direction2) { - var container = main.value; - var transformValue = 0; - var transform = ""; - scrollToValue < 0 ? scrollToValue = 0 : direction2 === "x" && scrollToValue > container.scrollWidth - container.offsetWidth ? scrollToValue = container.scrollWidth - container.offsetWidth : direction2 === "y" && scrollToValue > container.scrollHeight - container.offsetHeight && (scrollToValue = container.scrollHeight - container.offsetHeight); - direction2 === "x" ? transformValue = container.scrollLeft - scrollToValue : direction2 === "y" && (transformValue = container.scrollTop - scrollToValue); - if (transformValue === 0) - return; - var _content = content.value; - _content.style.transition = "transform .3s ease-out"; - _content.style.webkitTransition = "-webkit-transform .3s ease-out"; - if (direction2 === "x") { - transform = "translateX(" + transformValue + "px) translateZ(0)"; - } else { - direction2 === "y" && (transform = "translateY(" + transformValue + "px) translateZ(0)"); - } - _content.removeEventListener("transitionend", __transitionEnd); - _content.removeEventListener("webkitTransitionEnd", __transitionEnd); - __transitionEnd = () => _transitionEnd(scrollToValue, direction2); - _content.addEventListener("transitionend", __transitionEnd); - _content.addEventListener("webkitTransitionEnd", __transitionEnd); - if (direction2 === "x") { - container.style.overflowX = "hidden"; - } else if (direction2 === "y") { - container.style.overflowY = "hidden"; - } - _content.style.transform = transform; - _content.style.webkitTransform = transform; - } - function _handleScroll($event) { - if ($event.timeStamp - _lastScrollTime > 20) { - _lastScrollTime = $event.timeStamp; - var target = $event.target; - trigger2("scroll", $event, { - scrollLeft: target.scrollLeft, - scrollTop: target.scrollTop, - scrollHeight: target.scrollHeight, - scrollWidth: target.scrollWidth, - deltaX: state.lastScrollLeft - target.scrollLeft, - deltaY: state.lastScrollTop - target.scrollTop - }); - if (props2.scrollY) { - if (target.scrollTop <= upperThresholdNumber.value && state.lastScrollTop - target.scrollTop > 0 && $event.timeStamp - state.lastScrollToUpperTime > 200) { - trigger2("scrolltoupper", $event, { - direction: "top" - }); - state.lastScrollToUpperTime = $event.timeStamp; - } - if (target.scrollTop + target.offsetHeight + lowerThresholdNumber.value >= target.scrollHeight && state.lastScrollTop - target.scrollTop < 0 && $event.timeStamp - state.lastScrollToLowerTime > 200) { - trigger2("scrolltolower", $event, { - direction: "bottom" - }); - state.lastScrollToLowerTime = $event.timeStamp; - } - } - if (props2.scrollX) { - if (target.scrollLeft <= upperThresholdNumber.value && state.lastScrollLeft - target.scrollLeft > 0 && $event.timeStamp - state.lastScrollToUpperTime > 200) { - trigger2("scrolltoupper", $event, { - direction: "left" - }); - state.lastScrollToUpperTime = $event.timeStamp; - } - if (target.scrollLeft + target.offsetWidth + lowerThresholdNumber.value >= target.scrollWidth && state.lastScrollLeft - target.scrollLeft < 0 && $event.timeStamp - state.lastScrollToLowerTime > 200) { - trigger2("scrolltolower", $event, { - direction: "right" - }); - state.lastScrollToLowerTime = $event.timeStamp; - } - } - state.lastScrollTop = target.scrollTop; - state.lastScrollLeft = target.scrollLeft; - } - } - function _scrollTopChanged(val) { - if (props2.scrollY) { - { - if (props2.scrollWithAnimation) { - scrollTo2(val, "y"); - } else { - main.value.scrollTop = val; - } - } - } - } - function _scrollLeftChanged(val) { - if (props2.scrollX) { - { - if (props2.scrollWithAnimation) { - scrollTo2(val, "x"); - } else { - main.value.scrollLeft = val; - } - } - } - } - function _scrollIntoViewChanged(val) { - if (val) { - if (!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(val)) { - console.error("id error: scroll-into-view=".concat(val)); - return; - } - var element = rootRef.value.querySelector("#" + val); - if (element) { - var mainRect = main.value.getBoundingClientRect(); - var elRect = element.getBoundingClientRect(); - if (props2.scrollX) { - var left = elRect.left - mainRect.left; - var scrollLeft = main.value.scrollLeft; - var x = scrollLeft + left; - if (props2.scrollWithAnimation) { - scrollTo2(x, "x"); - } else { - main.value.scrollLeft = x; - } - } - if (props2.scrollY) { - var top = elRect.top - mainRect.top; - var scrollTop = main.value.scrollTop; - var y = scrollTop + top; - if (props2.scrollWithAnimation) { - scrollTo2(y, "y"); - } else { - main.value.scrollTop = y; - } - } - } - } - } - function _transitionEnd(val, direction2) { - content.value.style.transition = ""; - content.value.style.webkitTransition = ""; - content.value.style.transform = ""; - content.value.style.webkitTransform = ""; - var _main = main.value; - if (direction2 === "x") { - _main.style.overflowX = props2.scrollX ? "auto" : "hidden"; - _main.scrollLeft = val; - } else if (direction2 === "y") { - _main.style.overflowY = props2.scrollY ? "auto" : "hidden"; - _main.scrollTop = val; - } - content.value.removeEventListener("transitionend", __transitionEnd); - content.value.removeEventListener("webkitTransitionEnd", __transitionEnd); - } - function _setRefreshState(_state) { - switch (_state) { - case "refreshing": - state.refresherHeight = props2.refresherThreshold; - if (!beforeRefreshing) { - beforeRefreshing = true; - trigger2("refresherrefresh", {}, {}); - emit2("update:refresherTriggered", true); - } - break; - case "restore": - case "refresherabort": - beforeRefreshing = false; - state.refresherHeight = toUpperNumber = 0; - if (_state === "restore") { - triggerAbort = false; - trigger2("refresherrestore", {}, {}); - } - if (_state === "refresherabort" && triggerAbort) { - triggerAbort = false; - trigger2("refresherabort", {}, {}); - } - break; - } - state.refreshState = _state; - } - onMounted(() => { - _scrollTopChanged(scrollTopNumber.value); - _scrollLeftChanged(scrollLeftNumber.value); - _scrollIntoViewChanged(props2.scrollIntoView); - var __handleScroll = function(event) { - event.stopPropagation(); - _handleScroll(event); - }; - var touchStart = { - x: 0, - y: 0 - }; - var needStop = null; - var __handleTouchMove = function(event) { - var x = event.touches[0].pageX; - var y = event.touches[0].pageY; - var _main = main.value; - if (Math.abs(x - touchStart.x) > Math.abs(y - touchStart.y)) { - if (props2.scrollX) { - if (_main.scrollLeft === 0 && x > touchStart.x) { - needStop = false; - return; - } else if (_main.scrollWidth === _main.offsetWidth + _main.scrollLeft && x < touchStart.x) { - needStop = false; - return; - } - needStop = true; - } else { - needStop = false; - } - } else { - if (props2.scrollY) { - if (_main.scrollTop === 0 && y > touchStart.y) { - needStop = false; - if (props2.refresherEnabled && event.cancelable !== false) - event.preventDefault(); - } else if (_main.scrollHeight === _main.offsetHeight + _main.scrollTop && y < touchStart.y) { - needStop = false; - return; - } else { - needStop = true; - } - } else { - needStop = false; - } - } - if (needStop) { - event.stopPropagation(); - } - if (_main.scrollTop === 0 && event.touches.length === 1) { - state.refreshState = "pulling"; - } - if (props2.refresherEnabled && state.refreshState === "pulling") { - var dy = y - touchStart.y; - if (toUpperNumber === 0) { - toUpperNumber = y; - } - if (!beforeRefreshing) { - state.refresherHeight = y - toUpperNumber; - if (state.refresherHeight > 0) { - triggerAbort = true; - trigger2("refresherpulling", event, { - deltaY: dy - }); - } - } else { - state.refresherHeight = dy + props2.refresherThreshold; - triggerAbort = false; - } - var route = state.refresherHeight / props2.refresherThreshold; - state.refreshRotate = (route > 1 ? 1 : route) * 360; - } - }; - var __handleTouchStart = function(event) { - if (event.touches.length === 1) { - disableScrollBounce({ - disable: true - }); - touchStart = { - x: event.touches[0].pageX, - y: event.touches[0].pageY - }; - } - }; - var __handleTouchEnd = function(event) { - touchStart = { - x: 0, - y: 0 - }; - disableScrollBounce({ - disable: false - }); - if (state.refresherHeight >= props2.refresherThreshold) { - _setRefreshState("refreshing"); - } else { - _setRefreshState("refresherabort"); - } - }; - main.value.addEventListener("touchstart", __handleTouchStart, passiveOptions); - main.value.addEventListener("touchmove", __handleTouchMove); - main.value.addEventListener("scroll", __handleScroll, passiveOptions); - main.value.addEventListener("touchend", __handleTouchEnd, passiveOptions); - initScrollBounce(); - onBeforeUnmount(() => { - main.value.removeEventListener("touchstart", __handleTouchStart); - main.value.removeEventListener("touchmove", __handleTouchMove); - main.value.removeEventListener("scroll", __handleScroll); - main.value.removeEventListener("touchend", __handleTouchEnd); - }); - }); - onActivated(() => { - props2.scrollY && (main.value.scrollTop = state.lastScrollTop); - props2.scrollX && (main.value.scrollLeft = state.lastScrollLeft); - }); - watch(scrollTopNumber, (val) => { - _scrollTopChanged(val); - }); - watch(scrollLeftNumber, (val) => { - _scrollLeftChanged(val); - }); - watch(() => props2.scrollIntoView, (val) => { - _scrollIntoViewChanged(val); - }); - watch(() => props2.refresherTriggered, (val) => { - if (val === true) { - _setRefreshState("refreshing"); - } else if (val === false) { - _setRefreshState("restore"); - } - }); - } - var props$9 = { - name: { - type: String, - default: "" - }, - min: { - type: [Number, String], - default: 0 - }, - max: { - type: [Number, String], - default: 100 - }, - value: { - type: [Number, String], - default: 0 - }, - step: { - type: [Number, String], - default: 1 - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: "#e9e9e9" - }, - backgroundColor: { - type: String, - default: "#e9e9e9" - }, - activeColor: { - type: String, - default: "#007aff" - }, - selectedColor: { - type: String, - default: "#007aff" - }, - blockColor: { - type: String, - default: "#ffffff" - }, - blockSize: { - type: [Number, String], - default: 28 - }, - showValue: { - type: [Boolean, String], - default: false - } - }; - var Slider = /* @__PURE__ */ defineBuiltInComponent({ - name: "Slider", - props: props$9, - emits: ["changing", "change"], - setup(props2, { - emit: emit2 - }) { - var sliderRef = ref(null); - var sliderValueRef = ref(null); - var sliderHandleRef = ref(null); - var sliderValue = ref(Number(props2.value)); - watch(() => props2.value, (val) => { - sliderValue.value = Number(val); - }); - var trigger2 = useCustomEvent(sliderRef, emit2); - var state = useSliderState(props2, sliderValue); - var { - _onClick, - _onTrack - } = useSliderLoader(props2, sliderValue, sliderRef, sliderValueRef, trigger2); - onMounted(() => { - useTouchtrack(sliderHandleRef.value, _onTrack); - }); - return () => { - var { - setBgColor, - setBlockBg, - setActiveColor, - setBlockStyle - } = state; - return createVNode("uni-slider", { - "ref": sliderRef, - "onClick": withWebEvent(_onClick) - }, { - default: () => [createVNode("div", { - "class": "uni-slider-wrapper" - }, [createVNode("div", { - "class": "uni-slider-tap-area" - }, [createVNode("div", { - "style": setBgColor.value, - "class": "uni-slider-handle-wrapper" - }, [createVNode("div", { - "ref": sliderHandleRef, - "style": setBlockBg.value, - "class": "uni-slider-handle" - }, null, 4), createVNode("div", { - "style": setBlockStyle.value, - "class": "uni-slider-thumb" - }, null, 4), createVNode("div", { - "style": setActiveColor.value, - "class": "uni-slider-track" - }, null, 4)], 4)]), withDirectives(createVNode("span", { - "ref": sliderValueRef, - "class": "uni-slider-value" - }, [sliderValue.value], 512), [[vShow, props2.showValue]])]), createVNode("slot", null, null)], - _: 1 - }, 8, ["onClick"]); - }; - } - }); - function useSliderState(props2, sliderValue) { - var _getValueWidth = () => { - var max2 = Number(props2.max); - var min2 = Number(props2.min); - return 100 * (sliderValue.value - min2) / (max2 - min2) + "%"; - }; - var _getBgColor = () => { - return props2.backgroundColor !== "#e9e9e9" ? props2.backgroundColor : props2.color !== "#007aff" ? props2.color : "#007aff"; - }; - var _getActiveColor = () => { - return props2.activeColor !== "#007aff" ? props2.activeColor : props2.selectedColor !== "#e9e9e9" ? props2.selectedColor : "#e9e9e9"; - }; - var state = { - setBgColor: computed$1(() => ({ - backgroundColor: _getBgColor() - })), - setBlockBg: computed$1(() => ({ - left: _getValueWidth() - })), - setActiveColor: computed$1(() => ({ - backgroundColor: _getActiveColor(), - width: _getValueWidth() - })), - setBlockStyle: computed$1(() => ({ - width: props2.blockSize + "px", - height: props2.blockSize + "px", - marginLeft: -props2.blockSize / 2 + "px", - marginTop: -props2.blockSize / 2 + "px", - left: _getValueWidth(), - backgroundColor: props2.blockColor - })) - }; - return state; - } - function useSliderLoader(props2, sliderValue, sliderRef, sliderValueRef, trigger2) { - var _onClick = ($event) => { - if (props2.disabled) { - return; - } - _onUserChangedValue($event); - trigger2("change", $event, { - value: sliderValue.value - }); - }; - var _filterValue = (e2) => { - var max2 = Number(props2.max); - var min2 = Number(props2.min); - var step2 = Number(props2.step); - return e2 < min2 ? min2 : e2 > max2 ? max2 : computeController.mul.call(Math.round((e2 - min2) / step2), step2) + min2; - }; - var _onUserChangedValue = (e2) => { - var max2 = Number(props2.max); - var min2 = Number(props2.min); - var sliderRightBox = sliderValueRef.value; - var sliderRightBoxLeft = getComputedStyle(sliderRightBox, null).marginLeft; - var sliderRightBoxWidth = sliderRightBox.offsetWidth; - sliderRightBoxWidth = sliderRightBoxWidth + parseInt(sliderRightBoxLeft); - var slider2 = sliderRef.value; - var offsetWidth = slider2.offsetWidth - (props2.showValue ? sliderRightBoxWidth : 0); - var boxLeft = slider2.getBoundingClientRect().left; - var value = (e2.x - boxLeft) * (max2 - min2) / offsetWidth + min2; - sliderValue.value = _filterValue(value); - }; - var _onTrack = (e2) => { - if (!props2.disabled) { - return e2.detail.state === "move" ? (_onUserChangedValue({ - x: e2.detail.x - }), trigger2("changing", e2, { - value: sliderValue.value - }), false) : e2.detail.state === "end" && trigger2("change", e2, { - value: sliderValue.value - }); - } - }; - var uniForm = inject(uniFormKey, false); - if (!!uniForm) { - var field = { - reset: () => sliderValue.value = Number(props2.min), - submit: () => { - var data = ["", null]; - if (props2.name !== "") { - data[0] = props2.name; - data[1] = sliderValue.value; - } - return data; - } - }; - uniForm.addField(field); - onBeforeUnmount(() => { - uniForm.removeField(field); - }); - } - return { - _onClick, - _onTrack - }; - } - var computeController = { - mul: function(arg) { - var m = 0; - var s1 = this.toString(); - var s2 = arg.toString(); - try { - m += s1.split(".")[1].length; - } catch (e2) { - } - try { - m += s2.split(".")[1].length; - } catch (e2) { - } - return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m); - } - }; - var props$8 = { - indicatorDots: { - type: [Boolean, String], - default: false - }, - vertical: { - type: [Boolean, String], - default: false - }, - autoplay: { - type: [Boolean, String], - default: false - }, - circular: { - type: [Boolean, String], - default: false - }, - interval: { - type: [Number, String], - default: 5e3 - }, - duration: { - type: [Number, String], - default: 500 - }, - current: { - type: [Number, String], - default: 0 - }, - indicatorColor: { - type: String, - default: "" - }, - indicatorActiveColor: { - type: String, - default: "" - }, - previousMargin: { - type: String, - default: "" - }, - nextMargin: { - type: String, - default: "" - }, - currentItemId: { - type: String, - default: "" - }, - skipHiddenItemLayout: { - type: [Boolean, String], - default: false - }, - displayMultipleItems: { - type: [Number, String], - default: 1 - }, - disableTouch: { - type: [Boolean, String], - default: false - } - }; - function useState(props2) { - var interval = computed$1(() => { - var interval2 = Number(props2.interval); - return isNaN(interval2) ? 5e3 : interval2; - }); - var duration = computed$1(() => { - var duration2 = Number(props2.duration); - return isNaN(duration2) ? 500 : duration2; - }); - var displayMultipleItems = computed$1(() => { - var displayMultipleItems2 = Math.round(props2.displayMultipleItems); - return isNaN(displayMultipleItems2) ? 1 : displayMultipleItems2; - }); - var state = reactive({ - interval, - duration, - displayMultipleItems, - current: Math.round(props2.current) || 0, - currentItemId: props2.currentItemId, - userTracking: false - }); - return state; - } - function useLayout(props2, state, swiperContexts, slideFrameRef, emit2, trigger2) { - function cancelSchedule() { - if (timer) { - clearTimeout(timer); - timer = null; - } - } - var timer = null; - var invalid = true; - var viewportPosition = 0; - var viewportMoveRatio = 1; - var animating = null; - var requestedAnimation = false; - var contentTrackViewport = 0; - var transitionStart; - var currentChangeSource = ""; - var animationFrame; - var circularEnabled = computed$1(() => props2.circular && swiperContexts.value.length > state.displayMultipleItems); - function checkCircularLayout(index2) { - if (!invalid) { - for (var items = swiperContexts.value, n = items.length, i2 = index2 + state.displayMultipleItems, r = 0; r < n; r++) { - var item = items[r]; - var s = Math.floor(index2 / n) * n + r; - var l = s + n; - var c = s - n; - var u = Math.max(index2 - (s + 1), s - i2, 0); - var d = Math.max(index2 - (l + 1), l - i2, 0); - var h2 = Math.max(index2 - (c + 1), c - i2, 0); - var p2 = Math.min(u, d, h2); - var position = [s, l, c][[u, d, h2].indexOf(p2)]; - item.updatePosition(position, props2.vertical); - } - } - } - function updateViewport(index2) { - if (!(Math.floor(2 * viewportPosition) === Math.floor(2 * index2) && Math.ceil(2 * viewportPosition) === Math.ceil(2 * index2))) { - if (circularEnabled.value) { - checkCircularLayout(index2); - } - } - var x = props2.vertical ? "0" : 100 * -index2 * viewportMoveRatio + "%"; - var y = props2.vertical ? 100 * -index2 * viewportMoveRatio + "%" : "0"; - var transform = "translate(" + x + ", " + y + ") translateZ(0)"; - var slideFrame = slideFrameRef.value; - if (slideFrame) { - slideFrame.style.webkitTransform = transform; - slideFrame.style.transform = transform; - } - viewportPosition = index2; - if (!transitionStart) { - if (index2 % 1 === 0) { - return; - } - transitionStart = index2; - } - index2 -= Math.floor(transitionStart); - var items = swiperContexts.value; - if (index2 <= -(items.length - 1)) { - index2 += items.length; - } else if (index2 >= items.length) { - index2 -= items.length; - } - index2 = transitionStart % 1 > 0.5 || transitionStart < 0 ? index2 - 1 : index2; - trigger2("transition", {}, { - dx: props2.vertical ? 0 : index2 * slideFrame.offsetWidth, - dy: props2.vertical ? index2 * slideFrame.offsetHeight : 0 - }); - } - function endViewportAnimation() { - if (animating) { - updateViewport(animating.toPos); - animating = null; - } - } - function normalizeCurrentValue(current) { - var length = swiperContexts.value.length; - if (!length) { - return -1; - } - var index2 = (Math.round(current) % length + length) % length; - if (circularEnabled.value) { - if (length <= state.displayMultipleItems) { - return 0; - } - } else if (index2 > length - state.displayMultipleItems) { - return length - state.displayMultipleItems; - } - return index2; - } - function cancelViewportAnimation() { - animating = null; - } - function animateFrameFuncProto() { - if (!animating) { - requestedAnimation = false; - return; - } - var _animating = animating; - var toPos = _animating.toPos; - var acc = _animating.acc; - var endTime = _animating.endTime; - var source = _animating.source; - var time = endTime - Date.now(); - if (time <= 0) { - updateViewport(toPos); - animating = null; - requestedAnimation = false; - transitionStart = null; - var item = swiperContexts.value[state.current]; - if (item) { - var currentItemId = item.getItemId(); - trigger2("animationfinish", {}, { - current: state.current, - currentItemId, - source - }); - } - return; - } - var s = acc * time * time / 2; - var l = toPos + s; - updateViewport(l); - animationFrame = requestAnimationFrame(animateFrameFuncProto); - } - function animateViewport(current, source, n) { - cancelViewportAnimation(); - var duration = state.duration; - var length = swiperContexts.value.length; - var position = viewportPosition; - if (circularEnabled.value) { - if (n < 0) { - for (; position < current; ) { - position += length; - } - for (; position - length > current; ) { - position -= length; - } - } else if (n > 0) { - for (; position > current; ) { - position -= length; - } - for (; position + length < current; ) { - position += length; - } - } else { - for (; position + length < current; ) { - position += length; - } - for (; position - length > current; ) { - position -= length; - } - if (position + length - current < current - position) { - position += length; - } - } - } - animating = { - toPos: current, - acc: 2 * (position - current) / (duration * duration), - endTime: Date.now() + duration, - source - }; - if (!requestedAnimation) { - requestedAnimation = true; - animationFrame = requestAnimationFrame(animateFrameFuncProto); - } - } - function scheduleAutoplay() { - cancelSchedule(); - var items = swiperContexts.value; - var callback = function() { - timer = null; - currentChangeSource = "autoplay"; - if (circularEnabled.value) { - state.current = normalizeCurrentValue(state.current + 1); - } else { - state.current = state.current + state.displayMultipleItems < items.length ? state.current + 1 : 0; - } - animateViewport(state.current, "autoplay", circularEnabled.value ? 1 : 0); - timer = setTimeout(callback, state.interval); - }; - if (!(invalid || items.length <= state.displayMultipleItems)) { - timer = setTimeout(callback, state.interval); - } - } - function resetLayout() { - cancelSchedule(); - endViewportAnimation(); - var items = swiperContexts.value; - for (var i2 = 0; i2 < items.length; i2++) { - items[i2].updatePosition(i2, props2.vertical); - } - viewportMoveRatio = 1; - var slideFrameEl = slideFrameRef.value; - if (state.displayMultipleItems === 1 && items.length) { - var itemRect = items[0].getBoundingClientRect(); - var slideFrameRect = slideFrameEl.getBoundingClientRect(); - viewportMoveRatio = itemRect.width / slideFrameRect.width; - if (!(viewportMoveRatio > 0 && viewportMoveRatio < 1)) { - viewportMoveRatio = 1; - } - } - var position = viewportPosition; - viewportPosition = -2; - var current = state.current; - if (current >= 0) { - invalid = false; - if (state.userTracking) { - updateViewport(position + current - contentTrackViewport); - contentTrackViewport = current; - } else { - updateViewport(current); - if (props2.autoplay) { - scheduleAutoplay(); - } - } - } else { - invalid = true; - updateViewport(-state.displayMultipleItems - 1); - } - } - watch([() => props2.current, () => props2.currentItemId, () => [...swiperContexts.value]], () => { - var current = -1; - if (props2.currentItemId) { - for (var i2 = 0, items = swiperContexts.value; i2 < items.length; i2++) { - var itemId = items[i2].getItemId(); - if (itemId === props2.currentItemId) { - current = i2; - break; - } - } - } - if (current < 0) { - current = Math.round(props2.current) || 0; - } - current = current < 0 ? 0 : current; - if (state.current !== current) { - currentChangeSource = ""; - state.current = current; - } - }); - watch([() => props2.vertical, () => circularEnabled.value, () => state.displayMultipleItems, () => [...swiperContexts.value]], resetLayout); - watch(() => state.interval, () => { - if (timer) { - cancelSchedule(); - scheduleAutoplay(); - } - }); - function currentChanged(current, history) { - var source = currentChangeSource; - currentChangeSource = ""; - var items = swiperContexts.value; - if (!source) { - var length = items.length; - animateViewport(current, "", circularEnabled.value && history + (length - current) % length > length / 2 ? 1 : 0); - } - var item = items[current]; - if (item) { - var currentItemId = state.currentItemId = item.getItemId(); - trigger2("change", {}, { - current: state.current, - currentItemId, - source - }); - } - } - watch(() => state.current, (val, oldVal) => { - currentChanged(val, oldVal); - emit2("update:current", val); - }); - watch(() => state.currentItemId, (val) => { - emit2("update:currentItemId", val); - }); - function inintAutoplay(enable) { - if (enable) { - scheduleAutoplay(); - } else { - cancelSchedule(); - } - } - watch(() => props2.autoplay && !state.userTracking, inintAutoplay); - inintAutoplay(props2.autoplay && !state.userTracking); - onMounted(() => { - var userDirectionChecked = false; - var contentTrackSpeed = 0; - var contentTrackT = 0; - function handleTrackStart() { - cancelSchedule(); - contentTrackViewport = viewportPosition; - contentTrackSpeed = 0; - contentTrackT = Date.now(); - cancelViewportAnimation(); - } - function handleTrackMove(data) { - var oldContentTrackT = contentTrackT; - contentTrackT = Date.now(); - var length = swiperContexts.value.length; - var other = length - state.displayMultipleItems; - function calc2(val) { - return 0.5 - 0.25 / (val + 0.5); - } - function move(oldVal, newVal) { - var val = contentTrackViewport + oldVal; - contentTrackSpeed = 0.6 * contentTrackSpeed + 0.4 * newVal; - if (!circularEnabled.value) { - if (val < 0 || val > other) { - if (val < 0) { - val = -calc2(-val); - } else { - if (val > other) { - val = other + calc2(val - other); - } - } - contentTrackSpeed = 0; - } - } - updateViewport(val); - } - var time = contentTrackT - oldContentTrackT || 1; - var slideFrameEl = slideFrameRef.value; - if (props2.vertical) { - move(-data.dy / slideFrameEl.offsetHeight, -data.ddy / time); - } else { - move(-data.dx / slideFrameEl.offsetWidth, -data.ddx / time); - } - } - function handleTrackEnd(isCancel) { - state.userTracking = false; - var t2 = contentTrackSpeed / Math.abs(contentTrackSpeed); - var n = 0; - if (!isCancel && Math.abs(contentTrackSpeed) > 0.2) { - n = 0.5 * t2; - } - var current = normalizeCurrentValue(viewportPosition + n); - if (isCancel) { - updateViewport(contentTrackViewport); - } else { - currentChangeSource = "touch"; - state.current = current; - animateViewport(current, "touch", n !== 0 ? n : current === 0 && circularEnabled.value && viewportPosition >= 1 ? 1 : 0); - } - } - useTouchtrack(slideFrameRef.value, (event) => { - if (props2.disableTouch) { - return; - } - if (!invalid) { - if (event.detail.state === "start") { - state.userTracking = true; - userDirectionChecked = false; - return handleTrackStart(); - } - if (event.detail.state === "end") { - return handleTrackEnd(false); - } - if (event.detail.state === "cancel") { - return handleTrackEnd(true); - } - if (state.userTracking) { - if (!userDirectionChecked) { - userDirectionChecked = true; - var t2 = Math.abs(event.detail.dx); - var n = Math.abs(event.detail.dy); - if (t2 >= n && props2.vertical) { - state.userTracking = false; - } else { - if (t2 <= n && !props2.vertical) { - state.userTracking = false; - } - } - if (!state.userTracking) { - if (props2.autoplay) { - scheduleAutoplay(); - } - return; - } - } - handleTrackMove(event.detail); - return false; - } - } - }); - }); - onUnmounted(() => { - cancelSchedule(); - cancelAnimationFrame(animationFrame); - }); - function onSwiperDotClick(index2) { - animateViewport(state.current = index2, currentChangeSource = "click", circularEnabled.value ? 1 : 0); - } - return { - onSwiperDotClick - }; - } - var Swiper = /* @__PURE__ */ defineBuiltInComponent({ - name: "Swiper", - props: props$8, - emits: ["change", "transition", "animationfinish", "update:current", "update:currentItemId"], - setup(props2, { - slots, - emit: emit2 - }) { - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var slidesWrapperRef = ref(null); - var slideFrameRef = ref(null); - var state = useState(props2); - var slidesStyle = computed$1(() => { - var style = {}; - if (props2.nextMargin || props2.previousMargin) { - style = props2.vertical ? { - left: 0, - right: 0, - top: rpx2px$1(props2.previousMargin, true), - bottom: rpx2px$1(props2.nextMargin, true) - } : { - top: 0, - bottom: 0, - left: rpx2px$1(props2.previousMargin, true), - right: rpx2px$1(props2.nextMargin, true) - }; - } - return style; - }); - var slideFrameStyle = computed$1(() => { - var value = Math.abs(100 / state.displayMultipleItems) + "%"; - return { - width: props2.vertical ? "100%" : value, - height: !props2.vertical ? "100%" : value - }; - }); - var swiperItems = []; - var originSwiperContexts = []; - var swiperContexts = ref([]); - function updateSwiperContexts() { - var contexts = []; - var _loop = function(index3) { - var swiperItem2 = swiperItems[index3]; - if (!(swiperItem2 instanceof Element)) { - swiperItem2 = swiperItem2.el; - } - var swiperContext = originSwiperContexts.find((context) => swiperItem2 === context.rootRef.value); - if (swiperContext) { - contexts.push(markRaw(swiperContext)); - } - }; - for (var index2 = 0; index2 < swiperItems.length; index2++) { - _loop(index2); - } - swiperContexts.value = contexts; - } - { - useRebuild(() => { - swiperItems = slideFrameRef.value.children; - updateSwiperContexts(); - }); - } - var addSwiperContext = function(swiperContext) { - originSwiperContexts.push(swiperContext); - updateSwiperContexts(); - }; - provide("addSwiperContext", addSwiperContext); - var removeSwiperContext = function(swiperContext) { - var index2 = originSwiperContexts.indexOf(swiperContext); - if (index2 >= 0) { - originSwiperContexts.splice(index2, 1); - updateSwiperContexts(); - } - }; - provide("removeSwiperContext", removeSwiperContext); - var { - onSwiperDotClick - } = useLayout(props2, state, swiperContexts, slideFrameRef, emit2, trigger2); - return () => { - var defaultSlots = slots.default && slots.default(); - swiperItems = flatVNode(defaultSlots); - return createVNode("uni-swiper", { - "ref": rootRef - }, { - default: () => [createVNode("div", { - "ref": slidesWrapperRef, - "class": "uni-swiper-wrapper" - }, [createVNode("div", { - "class": "uni-swiper-slides", - "style": slidesStyle.value - }, [createVNode("div", { - "ref": slideFrameRef, - "class": "uni-swiper-slide-frame", - "style": slideFrameStyle.value - }, [defaultSlots], 4)], 4), props2.indicatorDots && createVNode("div", { - "class": ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] - }, [swiperContexts.value.map((_, index2, array) => createVNode("div", { - "onClick": () => onSwiperDotClick(index2), - "class": { - "uni-swiper-dot": true, - "uni-swiper-dot-active": index2 < state.current + state.displayMultipleItems && index2 >= state.current || index2 < state.current + state.displayMultipleItems - array.length - }, - "style": { - background: index2 === state.current ? props2.indicatorActiveColor : props2.indicatorColor - } - }, null, 14, ["onClick"]))], 2)], 512)] - }, 512); - }; - } - }); - var props$7 = { - itemId: { - type: String, - default: "" - } - }; - var SwiperItem = /* @__PURE__ */ defineBuiltInComponent({ - name: "SwiperItem", - props: props$7, - setup(props2, { - slots - }) { - var rootRef = ref(null); - var context = { - rootRef, - getItemId() { - return props2.itemId; - }, - getBoundingClientRect() { - var el = rootRef.value; - return el.getBoundingClientRect(); - }, - updatePosition(position, vertical) { - var x = vertical ? "0" : 100 * position + "%"; - var y = vertical ? 100 * position + "%" : "0"; - var rootEl = rootRef.value; - var value = "translate(".concat(x, ",").concat(y, ") translateZ(0)"); - if (rootEl) { - rootEl.style.webkitTransform = value; - rootEl.style.transform = value; - } - } - }; - onMounted(() => { - var addSwiperContext = inject("addSwiperContext"); - if (addSwiperContext) { - addSwiperContext(context); - } - }); - onUnmounted(() => { - var removeSwiperContext = inject("removeSwiperContext"); - if (removeSwiperContext) { - removeSwiperContext(context); - } - }); - return () => { - return createVNode("uni-swiper-item", { - "ref": rootRef, - "style": { - position: "absolute", - width: "100%", - height: "100%" - } - }, { - default: () => [slots.default && slots.default()] - }, 512); - }; - } - }); - var props$6 = { - name: { - type: String, - default: "" - }, - checked: { - type: [Boolean, String], - default: false - }, - type: { - type: String, - default: "switch" - }, - id: { - type: String, - default: "" - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: "#007aff" - } - }; - var Switch = /* @__PURE__ */ defineBuiltInComponent({ - name: "Switch", - props: props$6, - emits: ["change"], - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var switchChecked = ref(props2.checked); - var uniLabel = useSwitchInject(props2, switchChecked); - var trigger2 = useCustomEvent(rootRef, emit2); - watch(() => props2.checked, (val) => { - switchChecked.value = val; - }); - var _onClick = ($event) => { - if (props2.disabled) { - return; - } - switchChecked.value = !switchChecked.value; - trigger2("change", $event, { - value: switchChecked.value - }); - }; - if (!!uniLabel) { - uniLabel.addHandler(_onClick); - onBeforeUnmount(() => { - uniLabel.removeHandler(_onClick); - }); - } - useListeners$1(props2, { - "label-click": _onClick - }); - return () => { - var { - color, - type - } = props2; - var { - booleanAttrs - } = useBooleanAttr(props2, "disabled"); - return createVNode("uni-switch", mergeProps({ - "ref": rootRef - }, booleanAttrs, { - "onClick": _onClick - }), { - default: () => [createVNode("div", { - "class": "uni-switch-wrapper" - }, [withDirectives(createVNode("div", { - "class": ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], - "style": { - backgroundColor: switchChecked.value ? color : "#DFDFDF", - borderColor: switchChecked.value ? color : "#DFDFDF" - } - }, null, 6), [[vShow, type === "switch"]]), withDirectives(createVNode("div", { - "class": "uni-checkbox-input" - }, [switchChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 512), [[vShow, type === "checkbox"]])])] - }, 16, ["onClick"]); - }; - } - }); - function useSwitchInject(props2, switchChecked) { - var uniForm = inject(uniFormKey, false); - var uniLabel = inject(uniLabelKey, false); - var formField = { - submit: () => { - var data = ["", null]; - if (props2.name) { - data[0] = props2.name; - data[1] = switchChecked.value; - } - return data; - }, - reset: () => { - switchChecked.value = false; - } - }; - if (!!uniForm) { - uniForm.addField(formField); - onUnmounted(() => { - uniForm.removeField(formField); - }); - } - return uniLabel; - } - var SPACE_UNICODE = { - ensp: "\u2002", - emsp: "\u2003", - nbsp: "\xA0" - }; - function parseText(text2, options) { - return text2.replace(/\\n/g, "\n").split("\n").map((text22) => { - return normalizeText(text22, options); - }); - } - function normalizeText(text2, { - space, - decode - }) { - if (!text2) { - return text2; - } - if (space && SPACE_UNICODE[space]) { - text2 = text2.replace(/ /g, SPACE_UNICODE[space]); - } - if (!decode) { - return text2; - } - return text2.replace(/&nbsp;/g, SPACE_UNICODE.nbsp).replace(/&ensp;/g, SPACE_UNICODE.ensp).replace(/&emsp;/g, SPACE_UNICODE.emsp).replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/&apos;/g, "'"); - } - var props$5 = /* @__PURE__ */ extend({}, props$k, { - placeholderClass: { - type: String, - default: "input-placeholder" - }, - autoHeight: { - type: [Boolean, String], - default: false - }, - confirmType: { - type: String, - default: "" - } - }); - var fixMargin = false; - function setFixMargin() { - var DARK_TEST_STRING = "(prefers-color-scheme: dark)"; - fixMargin = String(navigator.platform).indexOf("iP") === 0 && String(navigator.vendor).indexOf("Apple") === 0 && window.matchMedia(DARK_TEST_STRING).media !== DARK_TEST_STRING; - } - var Textarea = /* @__PURE__ */ defineBuiltInComponent({ - name: "Textarea", - props: props$5, - emit: ["confirm", "linechange", ...emit], - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var { - fieldRef, - state, - scopedAttrsState, - fixDisabledColor, - trigger: trigger2 - } = useField(props2, rootRef, emit2); - var valueCompute = computed$1(() => state.value.split("\n")); - var isDone = computed$1(() => ["done", "go", "next", "search", "send"].includes(props2.confirmType)); - var heightRef = ref(0); - var lineRef = ref(null); - watch(() => heightRef.value, (height) => { - var el = rootRef.value; - var lineEl = lineRef.value; - var lineHeight = parseFloat(getComputedStyle(el).lineHeight); - if (isNaN(lineHeight)) { - lineHeight = lineEl.offsetHeight; - } - var lineCount = Math.round(height / lineHeight); - trigger2("linechange", {}, { - height, - heightRpx: 750 / window.innerWidth * height, - lineCount - }); - if (props2.autoHeight) { - el.style.height = height + "px"; - } - }); - function onResize({ - height - }) { - heightRef.value = height; - } - function confirm(event) { - trigger2("confirm", event, { - value: state.value - }); - } - function onKeyDownEnter(event) { - if (event.key !== "Enter") { - return; - } - if (isDone.value) { - event.preventDefault(); - } - } - function onKeyUpEnter(event) { - if (event.key !== "Enter") { - return; - } - if (isDone.value) { - confirm(event); - var textarea2 = event.target; - textarea2.blur(); - } - } - { - setFixMargin(); - } - return () => { - var textareaNode = props2.disabled && fixDisabledColor ? createVNode("textarea", { - "ref": fieldRef, - "value": state.value, - "tabindex": "-1", - "readonly": !!props2.disabled, - "maxlength": state.maxlength, - "class": { - "uni-textarea-textarea": true, - "uni-textarea-textarea-fix-margin": fixMargin - }, - "style": { - overflowY: props2.autoHeight ? "hidden" : "auto" - }, - "onFocus": (event) => event.target.blur() - }, null, 46, ["value", "readonly", "maxlength", "onFocus"]) : createVNode("textarea", { - "ref": fieldRef, - "value": state.value, - "disabled": !!props2.disabled, - "maxlength": state.maxlength, - "enterkeyhint": props2.confirmType, - "class": { - "uni-textarea-textarea": true, - "uni-textarea-textarea-fix-margin": fixMargin - }, - "style": { - overflowY: props2.autoHeight ? "hidden" : "auto" - }, - "onKeydown": onKeyDownEnter, - "onKeyup": onKeyUpEnter - }, null, 46, ["value", "disabled", "maxlength", "enterkeyhint", "onKeydown", "onKeyup"]); - return createVNode("uni-textarea", { - "ref": rootRef - }, { - default: () => [createVNode("div", { - "class": "uni-textarea-wrapper" - }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { - "style": props2.placeholderStyle, - "class": ["uni-textarea-placeholder", props2.placeholderClass] - }), [props2.placeholder], 16), [[vShow, !state.value.length]]), createVNode("div", { - "ref": lineRef, - "class": "uni-textarea-line" - }, [" "], 512), createVNode("div", { - "class": "uni-textarea-compute" - }, [valueCompute.value.map((item) => createVNode("div", null, [item.trim() ? item : "."])), createVNode(ResizeSensor, { - "initial": true, - "onResize": onResize - }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? createVNode("form", { - "action": "", - "onSubmit": () => false, - "class": "uni-input-form" - }, [textareaNode], 40, ["onSubmit"]) : textareaNode])] - }, 512); - }; - } - }); - /* @__PURE__ */ defineBuiltInComponent({ - name: "View", - props: extend({}, hoverProps), - setup(props2, { - slots - }) { - var { - hovering, - binding - } = useHover(props2); - return () => { - var hoverClass = props2.hoverClass; - if (hoverClass && hoverClass !== "none") { - return createVNode("uni-view", mergeProps({ - "class": hovering.value ? hoverClass : "" - }, binding), { - default: () => [slots.default && slots.default()] - }, 16, ["class"]); - } - return createVNode("uni-view", null, { - default: () => [slots.default && slots.default()] - }); - }; - } - }); - function normalizeEvent(vm, id2) { - if (!id2) { - id2 = vm.id; - } - if (!id2) { - return; - } - return vm.$options.name.toLowerCase() + "." + id2; - } - function addSubscribe(name, callback, pageId) { - if (!name) { - return; - } - registerViewMethod(pageId || getCurrentPageId(), name, ({ - type, - data - }, resolve) => { - callback(type, data, resolve); - }); - } - function removeSubscribe(name) { - if (!name) { - return; - } - unregisterViewMethod(getCurrentPageId(), name); - } - function useSubscribe(callback, name, multiple, pageId) { - var instance = getCurrentInstance(); - var vm = instance.proxy; - onMounted(() => { - addSubscribe(name || normalizeEvent(vm), callback, pageId); - if (multiple || !name) { - watch(() => vm.id, (value, oldValue) => { - addSubscribe(normalizeEvent(vm, value), callback, pageId); - removeSubscribe(oldValue && normalizeEvent(vm, oldValue)); - }); - } - }); - onBeforeUnmount(() => { - removeSubscribe(name || normalizeEvent(vm)); - }); - } - var index = 0; - function useContextInfo(_id) { - var page = useCurrentPageId(); - var instance = getCurrentInstance(); - var vm = instance.proxy; - var type = vm.$options.name.toLowerCase(); - var id2 = _id || vm.id || "context".concat(index++); - onMounted(() => { - var el = vm.$el; - el.__uniContextInfo = { - id: id2, - type, - page - }; - }); - return "".concat(type, ".").concat(id2); - } - function getContextInfo(el) { - return el.__uniContextInfo; - } - class UniAnimationElement extends UniElement { - constructor(id2, element, parentNodeId, refNodeId, nodeJson, propNames = []) { - super(id2, element, parentNodeId, refNodeId, nodeJson, [...animation.props, ...propNames]); - } - call(fn) { - var context = { - animation: this.$props.animation, - $el: this.$ - }; - fn.call(context); - } - setAttribute(name, value) { - if (name === "animation") { - this.$animate = true; - } - return super.setAttribute(name, value); - } - update(isMounted = false) { - if (!this.$animate) { - return; - } - if (isMounted) { - return this.call(animation.mounted); - } - if (this.$animate) { - this.$animate = false; - this.call(animation.watch.animation.handler); - } - } - } - var PROP_NAMES_HOVER$1 = ["space", "decode"]; - class UniTextElement extends UniAnimationElement { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, document.createElement("uni-text"), parentNodeId, refNodeId, nodeJson, PROP_NAMES_HOVER$1); - this._text = ""; - } - init(nodeJson) { - this._text = nodeJson.t || ""; - super.init(nodeJson); - } - setText(text2) { - this._text = text2; - this.update(); - } - update(isMounted = false) { - var { - $props: { - space, - decode - } - } = this; - this.$.innerHTML = parseText(this._text, { - space, - decode - }).join("<br>"); - super.update(isMounted); - } - } - class UniTextNode extends UniNode { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "#text", parentNodeId, document.createTextNode("")); - this.init(nodeJson); - this.insert(parentNodeId, refNodeId); - } - } - var view = "uni-view {\n display: block;\n}\nuni-view[hidden] {\n display: none;\n}\n"; - var PROP_NAMES_HOVER = ["hover-class", "hover-stop-propagation", "hover-start-time", "hover-stay-time"]; - class UniHoverElement extends UniAnimationElement { - constructor(id2, element, parentNodeId, refNodeId, nodeJson, propNames = []) { - super(id2, element, parentNodeId, refNodeId, nodeJson, [...PROP_NAMES_HOVER, ...propNames]); - } - update(isMounted = false) { - var hoverClass = this.$props["hover-class"]; - if (hoverClass && hoverClass !== "none") { - if (!this._hover) { - this._hover = new Hover(this.$, this.$props); - } - this._hover.addEvent(); - } else { - if (this._hover) { - this._hover.removeEvent(); - } - } - super.update(isMounted); - } - } - class Hover { - constructor($2, props2) { - this._listening = false; - this._hovering = false; - this._hoverTouch = false; - this.$ = $2; - this.props = props2; - this.__hoverTouchStart = this._hoverTouchStart.bind(this); - this.__hoverTouchEnd = this._hoverTouchEnd.bind(this); - this.__hoverTouchCancel = this._hoverTouchCancel.bind(this); - } - get hovering() { - return this._hovering; - } - set hovering(hovering) { - this._hovering = hovering; - var hoverClass = this.props["hover-class"]; - if (hovering) { - this.$.classList.add(hoverClass); - } else { - this.$.classList.remove(hoverClass); - } - } - addEvent() { - if (this._listening) { - return; - } - { - console.log(formatLog(this.$.tagName, "Hover", "addEventListener", this.props["hover-class"])); - } - this._listening = true; - this.$.addEventListener("touchstart", this.__hoverTouchStart); - this.$.addEventListener("touchend", this.__hoverTouchEnd); - this.$.addEventListener("touchcancel", this.__hoverTouchCancel); - } - removeEvent() { - if (!this._listening) { - return; - } - { - console.log(formatLog(this.$.tagName, "Hover", "removeEventListener")); - } - this._listening = false; - this.$.removeEventListener("touchstart", this.__hoverTouchStart); - this.$.removeEventListener("touchend", this.__hoverTouchEnd); - this.$.removeEventListener("touchcancel", this.__hoverTouchCancel); - } - _hoverTouchStart(evt) { - if (evt._hoverPropagationStopped) { - return; - } - var hoverClass = this.props["hover-class"]; - if (!hoverClass || hoverClass === "none" || this.$.disabled) { - return; - } - if (evt.touches.length > 1) { - return; - } - if (this.props["hover-stop-propagation"]) { - evt._hoverPropagationStopped = true; - } - this._hoverTouch = true; - this._hoverStartTimer = setTimeout(() => { - this.hovering = true; - if (!this._hoverTouch) { - this._hoverReset(); - } - }, this.props["hover-start-time"]); - } - _hoverTouchEnd() { - this._hoverTouch = false; - if (this.hovering) { - this._hoverReset(); - } - } - _hoverReset() { - requestAnimationFrame(() => { - clearTimeout(this._hoverStayTimer); - this._hoverStayTimer = setTimeout(() => { - this.hovering = false; - }, this.props["hover-stay-time"]); - }); - } - _hoverTouchCancel() { - this._hoverTouch = false; - this.hovering = false; - clearTimeout(this._hoverStartTimer); - } - } - class UniViewElement extends UniHoverElement { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, document.createElement("uni-view"), parentNodeId, refNodeId, nodeJson); - } - } - function getStatusbarHeight() { - return plus.navigator.isImmersedStatusbar() ? Math.round(plus.os.name === "iOS" ? plus.navigator.getSafeAreaInsets().top : plus.navigator.getStatusbarHeight()) : 0; - } - function getNavigationBarHeight() { - var webview2 = plus.webview.currentWebview(); - var style = webview2.getStyle(); - var titleNView = style && style.titleNView; - if (titleNView && titleNView.type === "default") { - return NAVBAR_HEIGHT + getStatusbarHeight(); - } - return 0; - } - var onDrawKey = Symbol("onDraw"); - function getFixed($el) { - var fixed; - while ($el) { - var style = getComputedStyle($el); - var transform = style.transform || style.webkitTransform; - fixed = transform && transform !== "none" ? false : fixed; - fixed = style.position === "fixed" ? true : fixed; - $el = $el.parentElement; - } - return fixed; - } - function useNativeAttrs(props2, ignore) { - return computed$1(() => { - var object = {}; - Object.keys(props2).forEach((key2) => { - if (ignore && ignore.includes(key2)) { - return; - } - var val = props2[key2]; - val = key2 === "src" ? getRealPath(val) : val; - object[key2.replace(/[A-Z]/g, (str) => "-" + str.toLowerCase())] = val; - }); - return object; - }); - } - function useNative(rootRef) { - var position = reactive({ - top: "0px", - left: "0px", - width: "0px", - height: "0px", - position: "static" - }); - var hidden = ref(false); - function updatePosition() { - var el = rootRef.value; - var rect = el.getBoundingClientRect(); - var keys = ["width", "height"]; - hidden.value = rect.width === 0 || rect.height === 0; - if (!hidden.value) { - position.position = getFixed(el) ? "absolute" : "static"; - keys.push("top", "left"); - } - keys.forEach((key2) => { - var val = rect[key2]; - val = key2 === "top" ? val + (position.position === "static" ? document.documentElement.scrollTop || document.body.scrollTop || 0 : getNavigationBarHeight()) : val; - position[key2] = val + "px"; - }); - } - var request = null; - function requestPositionUpdate() { - if (request) { - cancelAnimationFrame(request); - } - request = requestAnimationFrame(() => { - request = null; - updatePosition(); - }); - } - window.addEventListener("updateview", requestPositionUpdate); - var onDrawCallbacks = []; - var onSelfReadyCallbacks = []; - function onSelfReady(callback) { - if (onSelfReadyCallbacks) { - onSelfReadyCallbacks.push(callback); - } else { - callback(); - } - } - function onParentReady(callback) { - var onDraw2 = inject(onDrawKey); - var newCallback = (parentPosition) => { - callback(parentPosition); - onDrawCallbacks.forEach((callback2) => callback2(position)); - onDrawCallbacks = null; - }; - onSelfReady(() => { - if (onDraw2) { - onDraw2(newCallback); - } else { - newCallback({ - top: "0px", - left: "0px", - width: Number.MAX_SAFE_INTEGER + "px", - height: Number.MAX_SAFE_INTEGER + "px", - position: "static" - }); - } - }); - } - var onDraw = function(callback) { - if (onDrawCallbacks) { - onDrawCallbacks.push(callback); - } else { - callback(position); - } - }; - provide(onDrawKey, onDraw); - onMounted(() => { - updatePosition(); - onSelfReadyCallbacks.forEach((callback) => callback()); - onSelfReadyCallbacks = null; - }); - return { - position, - hidden, - onParentReady - }; - } - var Ad = /* @__PURE__ */ defineBuiltInComponent({ - name: "Ad", - props: { - adpid: { - type: [Number, String], - default: "" - }, - data: { - type: Object, - default: null - }, - dataCount: { - type: Number, - default: 5 - }, - channel: { - type: String, - default: "" - } - }, - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var containerRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var attrs2 = useNativeAttrs(props2, ["id"]); - var { - position, - onParentReady - } = useNative(containerRef); - var adView; - onParentReady(() => { - adView = plus.ad.createAdView(Object.assign({}, attrs2.value, position)); - plus.webview.currentWebview().append(adView); - adView.setDislikeListener((data) => { - containerRef.value.style.height = "0"; - window.dispatchEvent(new CustomEvent("updateview")); - trigger2("close", {}, data); - }); - adView.setRenderingListener((data) => { - if (data.result === 0) { - containerRef.value.style.height = data.height + "px"; - window.dispatchEvent(new CustomEvent("updateview")); - } else { - trigger2("error", {}, { - errCode: data.result - }); - } - }); - adView.setAdClickedListener(() => { - trigger2("adclicked", {}, {}); - }); - watch(() => position, (position2) => adView.setStyle(position2), { - deep: true - }); - watch(() => props2.adpid, (val) => { - if (val) { - loadData(); - } - }); - watch(() => props2.data, (val) => { - if (val) { - adView.renderingBind(val); - } - }); - function loadData() { - var args = { - adpid: props2.adpid, - width: position.width, - count: props2.dataCount - }; - if (props2.channel !== void 0) { - args.ext = { - channel: props2.channel - }; - } - UniViewJSBridge.invokeServiceMethod("getAdData", args, ({ - code, - data, - message - }) => { - if (code === 0) { - adView.renderingBind(data); - } else { - trigger2("error", {}, { - errMsg: message - }); - } - }); - } - if (props2.adpid) { - loadData(); - } - }); - onBeforeUnmount(() => { - if (adView) { - adView.close(); - } - }); - return () => { - return createVNode("uni-ad", { - "ref": rootRef - }, { - default: () => [createVNode("div", { - "ref": containerRef, - "class": "uni-ad-container" - }, null, 512)] - }, 512); - }; - } - }); - class UniComponent extends UniNode { - constructor(id2, tag, component, parentNodeId, refNodeId, nodeJson, selector) { - super(id2, tag, parentNodeId); - var container = document.createElement("div"); - container.__vueParent = getVueParent(this); - this.$props = reactive({}); - this.init(nodeJson); - this.$app = createApp(createWrapper(component, this.$props)); - this.$app.mount(container); - this.$ = container.firstElementChild; - if (selector) { - this.$holder = this.$.querySelector(selector); - { - if (!this.$holder) { - console.error(formatLog(tag, "holder", selector, this.$)); - } - } - } - if (hasOwn$1(nodeJson, "t")) { - this.setText(nodeJson.t || ""); - } - if (nodeJson.a && hasOwn$1(nodeJson.a, ATTR_V_SHOW)) { - patchVShow(this.$, nodeJson.a[ATTR_V_SHOW]); - } - this.insert(parentNodeId, refNodeId); - flushPostFlushCbs(); - } - init(nodeJson) { - var { - a: a2, - e: e2, - w - } = nodeJson; - if (a2) { - this.setWxsProps(a2); - Object.keys(a2).forEach((n) => { - this.setAttr(n, a2[n]); - }); - } - if (hasOwn$1(nodeJson, "s")) { - this.setAttr("style", nodeJson.s); - } - if (e2) { - Object.keys(e2).forEach((n) => { - this.addEvent(n, e2[n]); - }); - } - if (w) { - this.addWxsEvents(nodeJson.w); - } - } - setText(text2) { - (this.$holder || this.$).textContent = text2; - } - addWxsEvent(name, wxsEvent, flag) { - this.$props[name] = createWxsEventInvoker(this.$, wxsEvent, flag); - } - addEvent(name, value) { - this.$props[name] = createInvoker(this.id, value, parseEventName(name)[1]); - } - removeEvent(name) { - this.$props[name] = null; - } - setAttr(name, value) { - if (name === ATTR_V_SHOW) { - if (this.$) { - patchVShow(this.$, value); - } - } else if (name === ATTR_V_OWNER_ID) { - this.$.__ownerId = value; - } else if (name === ATTR_V_RENDERJS) { - queuePostActionJob(() => initRenderjs(this, value), JOB_PRIORITY_RENDERJS); - } else if (name === ATTR_STYLE) { - var newStyle = decodeAttr(this.$ || $(this.pid).$, value); - var oldStyle = this.$props.style; - if (isPlainObject(newStyle) && isPlainObject(oldStyle)) { - Object.keys(newStyle).forEach((n) => { - oldStyle[n] = newStyle[n]; - }); - } else { - this.$props.style = newStyle; - } - } else { - value = decodeAttr(this.$ || $(this.pid).$, value); - if (!this.wxsPropsInvoke(name, value, true)) { - this.$props[name] = value; - } - } - } - removeAttr(name) { - this.$props[name] = null; - } - remove() { - this.isUnmounted = true; - this.$app.unmount(); - removeElement(this.id); - } - appendChild(node) { - return (this.$holder || this.$).appendChild(node); - } - insertBefore(newChild, refChild) { - return (this.$holder || this.$).insertBefore(newChild, refChild); - } - } - class UniContainerComponent extends UniComponent { - constructor(id2, tag, component, parentNodeId, refNodeId, nodeJson, selector) { - super(id2, tag, component, parentNodeId, refNodeId, nodeJson, selector); - } - getRebuildFn() { - if (!this._rebuild) { - this._rebuild = this.rebuild.bind(this); - } - return this._rebuild; - } - setText(text2) { - queuePostActionJob(this.getRebuildFn(), JOB_PRIORITY_REBUILD); - return super.setText(text2); - } - appendChild(node) { - queuePostActionJob(this.getRebuildFn(), JOB_PRIORITY_REBUILD); - return super.appendChild(node); - } - insertBefore(newChild, refChild) { - queuePostActionJob(this.getRebuildFn(), JOB_PRIORITY_REBUILD); - return super.insertBefore(newChild, refChild); - } - rebuild() { - { - console.log(formatLog("rebuild", this.id, this.tag)); - } - var vm = this.$.__vueParentComponent; - if (vm.rebuild) { - vm.rebuild(); - } - } - } - function getVueParent(node) { - while (node && node.pid > 0) { - node = $(node.pid); - if (node) { - var { - __vueParentComponent - } = node.$; - if (__vueParentComponent) { - return __vueParentComponent; - } - } - } - return null; - } - function setHolderText(holder, clazz, text2) { - holder.childNodes.forEach((childNode) => { - if (childNode instanceof Element) { - if (childNode.className.indexOf(clazz) === -1) { - holder.removeChild(childNode); - } - } else { - holder.removeChild(childNode); - } - }); - holder.appendChild(document.createTextNode(text2)); - } - class UniAd extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-ad", Ad, parentNodeId, refNodeId, nodeJson); - } - } - var button = "uni-button {\n position: relative;\n display: block;\n margin-left: auto;\n margin-right: auto;\n padding-left: 14px;\n padding-right: 14px;\n box-sizing: border-box;\n font-size: 18px;\n text-align: center;\n text-decoration: none;\n line-height: 2.55555556;\n border-radius: 5px;\n -webkit-tap-highlight-color: transparent;\n overflow: hidden;\n color: #000000;\n background-color: #f8f8f8;\n cursor: pointer;\n}\n\nuni-button[hidden] {\n display: none !important;\n}\n\nuni-button:after {\n content: ' ';\n width: 200%;\n height: 200%;\n position: absolute;\n top: 0;\n left: 0;\n border: 1px solid rgba(0, 0, 0, 0.2);\n transform: scale(0.5);\n transform-origin: 0 0;\n box-sizing: border-box;\n border-radius: 10px;\n}\n\nuni-button[native] {\n padding-left: 0;\n padding-right: 0;\n}\n\nuni-button[native] .uni-button-cover-view-wrapper {\n border: inherit;\n border-color: inherit;\n border-radius: inherit;\n background-color: inherit;\n}\n\nuni-button[native] .uni-button-cover-view-inner {\n padding-left: 14px;\n padding-right: 14px;\n}\n\nuni-button uni-cover-view {\n line-height: inherit;\n white-space: inherit;\n}\n\nuni-button[type='default'] {\n color: #000000;\n background-color: #f8f8f8;\n}\n\nuni-button[type='primary'] {\n color: #ffffff;\n background-color: #007aff;\n}\n\nuni-button[type='warn'] {\n color: #ffffff;\n background-color: #e64340;\n}\n\nuni-button[disabled] {\n color: rgba(255, 255, 255, 0.6);\n cursor: not-allowed;\n}\n\nuni-button[disabled][type='default'],\nuni-button[disabled]:not([type]) {\n color: rgba(0, 0, 0, 0.3);\n background-color: #f7f7f7;\n}\n\nuni-button[disabled][type='primary'] {\n background-color: rgba(0, 122, 255, 0.6);\n}\n\nuni-button[disabled][type='warn'] {\n background-color: #ec8b89;\n}\n\nuni-button[type='primary'][plain] {\n color: #007aff;\n border: 1px solid #007aff;\n background-color: transparent;\n}\n\nuni-button[type='primary'][plain][disabled] {\n color: rgba(0, 0, 0, 0.2);\n border-color: rgba(0, 0, 0, 0.2);\n}\n\nuni-button[type='primary'][plain]:after {\n border-width: 0;\n}\n\nuni-button[type='default'][plain] {\n color: #353535;\n border: 1px solid #353535;\n background-color: transparent;\n}\n\nuni-button[type='default'][plain][disabled] {\n color: rgba(0, 0, 0, 0.2);\n border-color: rgba(0, 0, 0, 0.2);\n}\n\nuni-button[type='default'][plain]:after {\n border-width: 0;\n}\n\nuni-button[plain] {\n color: #353535;\n border: 1px solid #353535;\n background-color: transparent;\n}\n\nuni-button[plain][disabled] {\n color: rgba(0, 0, 0, 0.2);\n border-color: rgba(0, 0, 0, 0.2);\n}\n\nuni-button[plain]:after {\n border-width: 0;\n}\n\nuni-button[plain][native] .uni-button-cover-view-inner {\n padding: 0;\n}\n\nuni-button[type='warn'][plain] {\n color: #e64340;\n border: 1px solid #e64340;\n background-color: transparent;\n}\n\nuni-button[type='warn'][plain][disabled] {\n color: rgba(0, 0, 0, 0.2);\n border-color: rgba(0, 0, 0, 0.2);\n}\n\nuni-button[type='warn'][plain]:after {\n border-width: 0;\n}\n\nuni-button[size='mini'] {\n display: inline-block;\n line-height: 2.3;\n font-size: 13px;\n padding: 0 1.34em;\n}\n\nuni-button[size='mini'][native] {\n padding: 0;\n}\n\nuni-button[size='mini'][native] .uni-button-cover-view-inner {\n padding: 0 1.34em;\n}\n\nuni-button[loading]:not([disabled]) {\n cursor: progress;\n}\n\nuni-button[loading]:before {\n content: ' ';\n display: inline-block;\n width: 18px;\n height: 18px;\n vertical-align: middle;\n animation: uni-loading 1s steps(12, end) infinite;\n background-size: 100%;\n}\n\nuni-button[loading][type='primary'] {\n color: rgba(255, 255, 255, 0.6);\n background-color: #0062cc;\n}\n\nuni-button[loading][type='primary'][plain] {\n color: #007aff;\n background-color: transparent;\n}\n\nuni-button[loading][type='default'] {\n color: rgba(0, 0, 0, 0.6);\n background-color: #dedede;\n}\n\nuni-button[loading][type='default'][plain] {\n color: #353535;\n background-color: transparent;\n}\n\nuni-button[loading][type='warn'] {\n color: rgba(255, 255, 255, 0.6);\n background-color: #ce3c39;\n}\n\nuni-button[loading][type='warn'][plain] {\n color: #e64340;\n background-color: transparent;\n}\n\nuni-button[loading][native]:before {\n content: none;\n}\n\n.button-hover {\n color: rgba(0, 0, 0, 0.6);\n background-color: #dedede;\n}\n\n.button-hover[plain] {\n color: rgba(53, 53, 53, 0.6);\n border-color: rgba(53, 53, 53, 0.6);\n background-color: transparent;\n}\n\n.button-hover[type='primary'] {\n color: rgba(255, 255, 255, 0.6);\n background-color: #0062cc;\n}\n\n.button-hover[type='primary'][plain] {\n color: rgba(26, 173, 25, 0.6);\n border-color: rgba(26, 173, 25, 0.6);\n background-color: transparent;\n}\n\n.button-hover[type='default'] {\n color: rgba(0, 0, 0, 0.6);\n background-color: #dedede;\n}\n\n.button-hover[type='default'][plain] {\n color: rgba(53, 53, 53, 0.6);\n border-color: rgba(53, 53, 53, 0.6);\n background-color: transparent;\n}\n\n.button-hover[type='warn'] {\n color: rgba(255, 255, 255, 0.6);\n background-color: #ce3c39;\n}\n\n.button-hover[type='warn'][plain] {\n color: rgba(230, 67, 64, 0.6);\n border-color: rgba(230, 67, 64, 0.6);\n background-color: transparent;\n}\n"; - class UniButton extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-button", Button, parentNodeId, refNodeId, nodeJson); - } - } - class UniTodoNode extends UniNode { - constructor(id2, tag, parentNodeId, refNodeId) { - super(id2, tag, parentNodeId); - this.insert(parentNodeId, refNodeId); - } - } - class UniCamera extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-camera", parentNodeId, refNodeId); - } - } - var canvas = "uni-canvas {\n width: 300px;\n height: 150px;\n display: block;\n position: relative;\n}\n\nuni-canvas > .uni-canvas-canvas {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n"; - class UniCanvas extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-canvas", Canvas, parentNodeId, refNodeId, nodeJson, "uni-canvas > div"); - } - } - var checkbox = "uni-checkbox {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n cursor: pointer;\n}\n\nuni-checkbox[hidden] {\n display: none;\n}\n\nuni-checkbox[disabled] {\n cursor: not-allowed;\n}\n\n.uni-checkbox-wrapper {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n}\n\n.uni-checkbox-input {\n margin-right: 5px;\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n border: 1px solid #d1d1d1;\n background-color: #ffffff;\n border-radius: 3px;\n width: 22px;\n height: 22px;\n position: relative;\n}\n\n.uni-checkbox-input svg {\n color: #007aff;\n font-size: 22px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n}\n\nuni-checkbox:not([disabled]) .uni-checkbox-input:hover {\n border-color: #007aff;\n}\n\n.uni-checkbox-input.uni-checkbox-input-disabled {\n background-color: #e1e1e1;\n}\n\n.uni-checkbox-input.uni-checkbox-input-disabled:before {\n color: #adadad;\n}\n\nuni-checkbox-group {\n display: block;\n}\n"; - class UniCheckbox extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-checkbox", Checkbox, parentNodeId, refNodeId, nodeJson, ".uni-checkbox-wrapper"); - } - setText(text2) { - setHolderText(this.$holder, "uni-checkbox-input", text2); - } - } - var checkboxGroup = "uni-checkbox-group {\n display: block;\n}\n\nuni-checkbox-group[hidden] {\n display: none;\n}\n"; - class UniCheckboxGroup extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-checkbox-group", CheckboxGroup, parentNodeId, refNodeId, nodeJson); - } - } - var coverImage = "uni-cover-image {\n display: block;\n line-height: 1.2;\n overflow: hidden;\n height: 100%;\n width: 100%;\n pointer-events: auto;\n}\n\nuni-cover-image[hidden] {\n display: none;\n}\n\nuni-cover-image .uni-cover-image {\n width: 100%;\n height: 100%;\n}\n"; - var id = 0; - function useCover(rootRef, trigger2, content) { - var { - position, - hidden, - onParentReady - } = useNative(rootRef); - var cover; - onParentReady((parentPosition) => { - var viewPosition = computed$1(() => { - var object = {}; - for (var key2 in position) { - var val = position[key2]; - var valNumber = parseFloat(val); - var parentValNumber = parseFloat(parentPosition[key2]); - if (key2 === "top" || key2 === "left") { - val = Math.max(valNumber, parentValNumber) + "px"; - } else if (key2 === "width" || key2 === "height") { - var base2 = key2 === "width" ? "left" : "top"; - var parentStart = parseFloat(parentPosition[base2]); - var viewStart = parseFloat(position[base2]); - var diff1 = Math.max(parentStart - viewStart, 0); - var diff2 = Math.max(viewStart + valNumber - (parentStart + parentValNumber), 0); - val = Math.max(valNumber - diff1 - diff2, 0) + "px"; - } - object[key2] = val; - } - return object; - }); - var baseStyle = ["borderRadius", "borderColor", "borderWidth", "backgroundColor"]; - var textStyle = ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "color", "textAlign", "lineHeight", "fontSize", "fontWeight", "textOverflow", "whiteSpace"]; - var imageStyle = []; - var textAlign = { - start: "left", - end: "right" - }; - function updateStyle(style2) { - var computedStyle = getComputedStyle(rootRef.value); - baseStyle.concat(textStyle, imageStyle).forEach((key2) => { - style2[key2] = computedStyle[key2]; - }); - return style2; - } - var style = reactive(updateStyle({})); - var request = null; - function requestStyleUpdate() { - if (request) { - cancelAnimationFrame(request); - } - request = requestAnimationFrame(() => { - request = null; - updateStyle(style); - }); - } - window.addEventListener("updateview", requestStyleUpdate); - function getTagPosition() { - var position2 = {}; - for (var key2 in position2) { - var val = position2[key2]; - if (key2 === "top" || key2 === "left") { - val = Math.min(parseFloat(val) - parseFloat(parentPosition[key2]), 0) + "px"; - } - position2[key2] = val; - } - return position2; - } - var tags = computed$1(() => { - var position2 = getTagPosition(); - var tags2 = [{ - tag: "rect", - position: position2, - rectStyles: { - color: style.backgroundColor, - radius: style.borderRadius, - borderColor: style.borderColor, - borderWidth: style.borderWidth - } - }]; - if ("src" in content) { - if (content.src) { - tags2.push({ - tag: "img", - position: position2, - src: content.src - }); - } - } else { - var lineSpacing = parseFloat(style.lineHeight) - parseFloat(style.fontSize); - var width = parseFloat(position2.width) - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight); - width = width < 0 ? 0 : width; - var height = parseFloat(position2.height) - parseFloat(style.paddingTop) - lineSpacing / 2 - parseFloat(style.paddingBottom); - height = height < 0 ? 0 : height; - tags2.push({ - tag: "font", - position: { - top: "".concat(parseFloat(position2.top) + parseFloat(style.paddingTop) + lineSpacing / 2, "px"), - left: "".concat(parseFloat(position2.left) + parseFloat(style.paddingLeft), "px"), - width: "".concat(width, "px"), - height: "".concat(height, "px") - }, - textStyles: { - align: textAlign[style.textAlign] || style.textAlign, - color: style.color, - decoration: "none", - lineSpacing: "".concat(lineSpacing, "px"), - margin: "0px", - overflow: style.textOverflow, - size: style.fontSize, - verticalAlign: "top", - weight: style.fontWeight, - whiteSpace: style.whiteSpace - }, - text: content.text - }); - } - return tags2; - }); - cover = new plus.nativeObj.View("cover-".concat(Date.now(), "-").concat(id++), viewPosition.value, tags.value); - { - console.log(formatLog("Cover", cover.id, viewPosition.value, tags.value)); - } - plus.webview.currentWebview().append(cover); - if (hidden.value) { - cover.hide(); - } - cover.addEventListener("click", () => { - trigger2("click", {}, {}); - }); - watch(() => hidden.value, (val) => { - cover[val ? "hide" : "show"](); - }); - watch(() => viewPosition.value, (val) => { - cover.setStyle(val); - }, { - deep: true - }); - watch(() => tags.value, () => { - cover.reset(); - cover.draw(tags.value); - }, { - deep: true - }); - }); - onBeforeUnmount(() => { - if (cover) { - cover.close(); - } - }); - } - var TEMP_PATH = "_doc/uniapp_temp/"; - var props$4 = { - src: { - type: String, - default: "" - }, - autoSize: { - type: [Boolean, String], - default: false - } - }; - function useImageLoad(props2, content, trigger2) { - var style = ref(""); - var downloaTask; - function loadImage() { - content.src = ""; - style.value = props2.autoSize ? "width:0;height:0;" : ""; - var realPath = props2.src ? getRealPath(props2.src) : ""; - if (realPath.indexOf("http://") === 0 || realPath.indexOf("https://") === 0) { - downloaTask = plus.downloader.createDownload(realPath, { - filename: TEMP_PATH + "/download/" - }, (task, status) => { - if (status === 200) { - getImageInfo(task.filename); - } else { - trigger2("error", {}, { - errMsg: "error" - }); - } - }); - downloaTask.start(); - } else if (realPath) { - getImageInfo(realPath); - } - } - function getImageInfo(src) { - content.src = src; - plus.io.getImageInfo({ - src, - success: ({ - width, - height - }) => { - if (props2.autoSize) { - style.value = "width:".concat(width, "px;height:").concat(height, "px;"); - window.dispatchEvent(new CustomEvent("updateview")); - } - trigger2("load", {}, { - width, - height - }); - }, - fail: () => { - trigger2("error", {}, { - errMsg: "error" - }); - } - }); - } - if (props2.src) { - loadImage(); - } - watch(() => props2.src, loadImage); - onBeforeUnmount(() => { - if (downloaTask) { - downloaTask.abort(); - } - }); - return style; - } - var CoverImage = /* @__PURE__ */ defineBuiltInComponent({ - name: "CoverImage", - props: props$4, - emits: ["click", "load", "error"], - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var content = reactive({ - src: "" - }); - var style = useImageLoad(props2, content, trigger2); - useCover(rootRef, trigger2, content); - return () => { - return createVNode("uni-cover-image", { - "ref": rootRef, - "style": style.value - }, { - default: () => [createVNode("div", { - "class": "uni-cover-image" - }, null)] - }, 8, ["style"]); - }; - } - }); - class UniCoverImage extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-cover-image", CoverImage, parentNodeId, refNodeId, nodeJson); - } - } - var coverView = "uni-cover-view {\n display: block;\n line-height: 1.2;\n overflow: hidden;\n white-space: nowrap;\n pointer-events: auto;\n}\n\nuni-cover-view[hidden] {\n display: none;\n}\n\nuni-cover-view .uni-cover-view {\n width: 100%;\n height: 100%;\n}\n"; - var CoverView = /* @__PURE__ */ defineBuiltInComponent({ - name: "CoverView", - emits: ["click"], - setup(_, { - emit: emit2 - }) { - var rootRef = ref(null); - var textRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var content = reactive({ - text: "" - }); - useCover(rootRef, trigger2, content); - useRebuild(() => { - var node = textRef.value.childNodes[0]; - content.text = node && node instanceof Text ? node.textContent : ""; - }); - return () => { - return createVNode("uni-cover-view", { - "ref": rootRef - }, { - default: () => [createVNode("div", { - "ref": textRef, - "class": "uni-cover-view" - }, null, 512)] - }, 512); - }; - } - }); - class UniCoverView extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-cover-view", CoverView, parentNodeId, refNodeId, nodeJson, ".uni-cover-view"); - } - } - var editor = ".ql-container {\n display: block;\n position: relative;\n box-sizing: border-box;\n -webkit-user-select: text;\n user-select: text;\n outline: none;\n overflow: hidden;\n width: 100%;\n height: 200px;\n min-height: 200px;\n}\n.ql-container[hidden] {\n display: none;\n}\n.ql-container .ql-editor {\n position: relative;\n font-size: inherit;\n line-height: inherit;\n font-family: inherit;\n min-height: inherit;\n width: 100%;\n height: 100%;\n padding: 0;\n overflow-x: hidden;\n overflow-y: auto;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n -webkit-overflow-scrolling: touch;\n}\n.ql-container .ql-editor::-webkit-scrollbar {\n width: 0 !important;\n}\n.ql-container .ql-editor.scroll-disabled {\n overflow: hidden;\n}\n.ql-container .ql-image-overlay {\n display: flex;\n position: absolute;\n box-sizing: border-box;\n border: 1px dashed #ccc;\n justify-content: center;\n align-items: center;\n -webkit-user-select: none;\n user-select: none;\n}\n.ql-container .ql-image-overlay .ql-image-size {\n position: absolute;\n padding: 4px 8px;\n text-align: center;\n background-color: #fff;\n color: #888;\n border: 1px solid #ccc;\n box-sizing: border-box;\n opacity: 0.8;\n right: 4px;\n top: 4px;\n font-size: 12px;\n display: inline-block;\n width: auto;\n}\n.ql-container .ql-image-overlay .ql-image-toolbar {\n position: relative;\n text-align: center;\n box-sizing: border-box;\n background: #000;\n border-radius: 5px;\n color: #fff;\n font-size: 0;\n min-height: 24px;\n z-index: 100;\n}\n.ql-container .ql-image-overlay .ql-image-toolbar span {\n display: inline-block;\n cursor: pointer;\n padding: 5px;\n font-size: 12px;\n border-right: 1px solid #fff;\n}\n.ql-container .ql-image-overlay .ql-image-toolbar span:last-child {\n border-right: 0;\n}\n.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up {\n padding: 0;\n position: absolute;\n top: -12px;\n left: 50%;\n transform: translatex(-50%);\n width: 0;\n height: 0;\n border-width: 6px;\n border-style: solid;\n border-color: transparent transparent black transparent;\n}\n.ql-container .ql-image-overlay .ql-image-handle {\n position: absolute;\n height: 12px;\n width: 12px;\n border-radius: 50%;\n border: 1px solid #ccc;\n box-sizing: border-box;\n background: #fff;\n}\n.ql-container img {\n display: inline-block;\n max-width: 100%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n box-sizing: border-box;\n height: 100%;\n outline: none;\n overflow-y: auto;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 2em;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 2em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 2em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 2em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 2em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 4em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 4em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 4em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 4em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 8em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 8em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 8em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 8em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 10em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 10em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 10em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 10em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 14em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 14em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 14em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 14em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 16em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 16em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 16em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 16em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0, 0, 0, 0.6);\n content: attr(data-placeholder);\n font-style: italic;\n pointer-events: none;\n position: absolute;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n"; - class UniEditor extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-editor", Editor, parentNodeId, refNodeId, nodeJson); - } - } - var form = ""; - class UniForm extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-form", Form, parentNodeId, refNodeId, nodeJson, "span"); - } - } - class UniFunctionalPageNavigator extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-functional-page-navigator", parentNodeId, refNodeId); - } - } - var icon = "uni-icon {\n display: inline-block;\n font-size: 0;\n box-sizing: border-box;\n}\n\nuni-icon[hidden] {\n display: none;\n}\n"; - class UniIcon extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-icon", Icon, parentNodeId, refNodeId, nodeJson); - } - } - var image = "uni-image {\n width: 320px;\n height: 240px;\n display: inline-block;\n overflow: hidden;\n position: relative;\n}\n\nuni-image[hidden] {\n display: none;\n}\n\nuni-image > div {\n width: 100%;\n height: 100%;\n}\n\nuni-image > img {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n}\n\nuni-image > .uni-image-will-change {\n will-change: transform;\n}\n"; - class UniImage extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-image", Image$1, parentNodeId, refNodeId, nodeJson); - } - } - var input = "uni-input {\n display: block;\n font-size: 16px;\n line-height: 1.4em;\n height: 1.4em;\n min-height: 1.4em;\n overflow: hidden;\n}\n\nuni-input[hidden] {\n display: none;\n}\n\n.uni-input-wrapper,\n.uni-input-placeholder,\n.uni-input-form,\n.uni-input-input {\n outline: none;\n border: none;\n padding: 0;\n margin: 0;\n text-decoration: inherit;\n}\n\n.uni-input-wrapper,\n.uni-input-form {\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n flex-direction: column;\n justify-content: center;\n}\n\n.uni-input-placeholder,\n.uni-input-input {\n width: 100%;\n}\n\n.uni-input-placeholder {\n position: absolute;\n top: auto !important;\n left: 0;\n color: gray;\n overflow: hidden;\n text-overflow: clip;\n white-space: pre;\n word-break: keep-all;\n pointer-events: none;\n line-height: inherit;\n}\n\n.uni-input-input {\n position: relative;\n display: block;\n height: 100%;\n background: none;\n color: inherit;\n opacity: 1;\n font: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n text-align: inherit;\n text-indent: inherit;\n text-transform: inherit;\n text-shadow: inherit;\n}\n\n.uni-input-input[type='search']::-webkit-search-cancel-button {\n display: none;\n}\n\n.uni-input-input::-webkit-outer-spin-button,\n.uni-input-input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n appearance: none;\n margin: 0;\n}\n\n.uni-input-input[type='number'] {\n -moz-appearance: textfield;\n}\n\n.uni-input-input:disabled {\n /* \u7528\u4E8E\u91CD\u7F6EiOS14\u4EE5\u4E0B\u7981\u7528\u72B6\u6001\u6587\u5B57\u989C\u8272 */\n -webkit-text-fill-color: currentcolor;\n}\n"; - class UniInput extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-input", Input, parentNodeId, refNodeId, nodeJson); - } - } - var label = ".uni-label-pointer {\n cursor: pointer;\n}\n"; - class UniLabel extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-label", Label, parentNodeId, refNodeId, nodeJson); - } - } - class UniLivePlayer extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-live-player", parentNodeId, refNodeId); - } - } - class UniLivePusher extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-live-pusher", parentNodeId, refNodeId); - } - } - var map = "uni-map {\n width: 300px;\n height: 225px;\n display: inline-block;\n line-height: 0;\n overflow: hidden;\n position: relative;\n}\n\nuni-map[hidden] {\n display: none;\n}\n\n.uni-map-container {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n overflow: hidden;\n background-color: black;\n}\n\n.uni-map-slot {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n pointer-events: none;\n}"; - var convertCoordinates = (lng, lat, callback) => { - callback({ - coord: { - latitude: lat, - longitude: lng - } - }); - }; - function parseHex(color) { - if (color.indexOf("#") !== 0) { - return { - color, - opacity: 1 - }; - } - var opacity = color.substr(7, 2); - return { - color: color.substr(0, 7), - opacity: opacity ? Number("0x" + opacity) / 255 : 1 - }; - } - var props$3 = { - id: { - type: String, - default: "" - }, - latitude: { - type: [Number, String], - default: "" - }, - longitude: { - type: [Number, String], - default: "" - }, - scale: { - type: [String, Number], - default: 16 - }, - markers: { - type: Array, - default() { - return []; - } - }, - polyline: { - type: Array, - default() { - return []; - } - }, - circles: { - type: Array, - default() { - return []; - } - }, - controls: { - type: Array, - default() { - return []; - } - } - }; - var Map$1 = /* @__PURE__ */ defineBuiltInComponent({ - name: "Map", - props: props$3, - emits: ["click", "regionchange", "controltap", "markertap", "callouttap"], - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var containerRef = ref(null); - var attrs2 = useNativeAttrs(props2, ["id"]); - var { - position, - hidden, - onParentReady - } = useNative(containerRef); - var map2; - var { - _addMarkers, - _addMapLines, - _addMapCircles, - _setMap - } = useMapMethods(props2, trigger2); - onParentReady(() => { - map2 = extend(plus.maps.create(getCurrentPageId() + "-map-" + (props2.id || Date.now()), Object.assign({}, attrs2.value, position, (() => { - if (props2.latitude && props2.longitude) { - return { - center: new plus.maps.Point(Number(props2.longitude), Number(props2.latitude)) - }; - } - })())), { - __markers__: [], - __lines__: [], - __circles__: [] - }); - map2.setZoom(parseInt(String(props2.scale))); - plus.webview.currentWebview().append(map2); - if (hidden.value) { - map2.hide(); - } - map2.onclick = (e2) => { - trigger2("click", {}, e2); - }; - map2.onstatuschanged = (e2) => { - trigger2("regionchange", {}, {}); - }; - _setMap(map2); - _addMarkers(props2.markers); - _addMapLines(props2.polyline); - _addMapCircles(props2.circles); - watch(() => attrs2.value, (attrs3) => map2 && map2.setStyles(attrs3), { - deep: true - }); - watch(() => position, (position2) => map2 && map2.setStyles(position2), { - deep: true - }); - watch(hidden, (val) => { - map2 && map2[val ? "hide" : "show"](); - }); - watch(() => props2.scale, (val) => { - map2 && map2.setZoom(parseInt(String(val))); - }); - watch([() => props2.latitude, () => props2.longitude], ([latitude, longitude]) => { - map2 && map2.setStyles({ - center: new plus.maps.Point(Number(latitude), Number(longitude)) - }); - }); - watch(() => props2.markers, (val) => { - _addMarkers(val, true); - }, { - deep: true - }); - watch(() => props2.polyline, (val) => { - _addMapLines(val); - }, { - deep: true - }); - watch(() => props2.circles, (val) => { - _addMapCircles(val); - }, { - deep: true - }); - }); - var mapControls = computed$1(() => props2.controls.map((control) => { - var position2 = { - position: "absolute" - }; - ["top", "left", "width", "height"].forEach((key2) => { - if (control.position[key2]) { - position2[key2] = control.position[key2] + "px"; - } - }); - return { - id: control.id, - iconPath: getRealPath(control.iconPath), - position: position2, - clickable: control.clickable - }; - })); - onBeforeUnmount(() => { - if (map2) { - map2.close(); - _setMap(null); - } - }); - return () => { - return createVNode("uni-map", { - "ref": rootRef, - "id": props2.id - }, { - default: () => [createVNode("div", { - "ref": containerRef, - "class": "uni-map-container" - }, null, 512), mapControls.value.map((control, index2) => createVNode(CoverImage, { - "key": index2, - "src": control.iconPath, - "style": control.position, - "auto-size": true, - "onClick": () => control.clickable && trigger2("controltap", {}, { - controlId: control.id - }) - }, null, 8, ["src", "style", "auto-size", "onClick"])), createVNode("div", { - "class": "uni-map-slot" - }, null)], - _: 1 - }, 8, ["id"]); - }; - } - }); - function useMapMethods(props2, trigger2) { - var map2; - function moveToLocation(resolve, { - longitude, - latitude - } = {}) { - if (!map2) - return; - map2.setCenter(new plus.maps.Point(Number(longitude || props2.longitude), Number(latitude || props2.latitude))); - resolve({ - errMsg: "moveToLocation:ok" - }); - } - function getCenterLocation(resolve) { - if (!map2) - return; - map2.getCurrentCenter((state, point) => { - resolve({ - longitude: point.getLng(), - latitude: point.getLat(), - errMsg: "getCenterLocation:ok" - }); - }); - } - function getRegion(resolve) { - if (!map2) - return; - var rect = map2.getBounds(); - resolve({ - southwest: rect.getSouthWest(), - northeast: rect.getNorthEast(), - errMsg: "getRegion:ok" - }); - } - function getScale(resolve) { - if (!map2) - return; - resolve({ - scale: map2.getZoom(), - errMsg: "getScale:ok" - }); - } - function _addMarker(marker) { - if (!map2) - return; - var { - id: id2, - latitude, - longitude, - iconPath, - callout, - label: label2 - } = marker; - convertCoordinates(longitude, latitude, (res) => { - var _map2; - var { - latitude: latitude2, - longitude: longitude2 - } = res.coord; - var nativeMarker = new plus.maps.Marker(new plus.maps.Point(longitude2, latitude2)); - if (iconPath) { - nativeMarker.setIcon(getRealPath(iconPath)); - } - if (label2 && label2.content) { - nativeMarker.setLabel(label2.content); - } - var nativeBubble = void 0; - if (callout && callout.content) { - nativeBubble = new plus.maps.Bubble(callout.content); - } - if (nativeBubble) { - nativeMarker.setBubble(nativeBubble); - } - if (id2 || id2 === 0) { - nativeMarker.onclick = (e2) => { - trigger2("markertap", {}, { - markerId: id2 - }); - }; - if (nativeBubble) { - nativeBubble.onclick = () => { - trigger2("callouttap", {}, { - markerId: id2 - }); - }; - } - } - (_map2 = map2) === null || _map2 === void 0 ? void 0 : _map2.addOverlay(nativeMarker); - map2.__markers__.push(nativeMarker); - }); - } - function _clearMarkers() { - if (!map2) - return; - var markers = map2.__markers__; - markers.forEach((marker) => { - var _map3; - (_map3 = map2) === null || _map3 === void 0 ? void 0 : _map3.removeOverlay(marker); - }); - map2.__markers__ = []; - } - function _addMarkers(markers, clear2) { - if (clear2) { - _clearMarkers(); - } - markers.forEach((marker) => { - _addMarker(marker); - }); - } - function _addMapLines(lines) { - if (!map2) - return; - if (map2.__lines__.length > 0) { - map2.__lines__.forEach((circle) => { - var _map4; - (_map4 = map2) === null || _map4 === void 0 ? void 0 : _map4.removeOverlay(circle); - }); - map2.__lines__ = []; - } - lines.forEach((line) => { - var _map5; - var { - color, - width - } = line; - var points = line.points.map((point) => new plus.maps.Point(point.longitude, point.latitude)); - var polyline = new plus.maps.Polyline(points); - if (color) { - var strokeStyle = parseHex(color); - polyline.setStrokeColor(strokeStyle.color); - polyline.setStrokeOpacity(strokeStyle.opacity); - } - if (width) { - polyline.setLineWidth(width); - } - (_map5 = map2) === null || _map5 === void 0 ? void 0 : _map5.addOverlay(polyline); - map2.__lines__.push(polyline); - }); - } - function _addMapCircles(circles) { - if (!map2) - return; - if (map2.__circles__.length > 0) { - map2.__circles__.forEach((circle) => { - var _map6; - (_map6 = map2) === null || _map6 === void 0 ? void 0 : _map6.removeOverlay(circle); - }); - map2.__circles__ = []; - } - circles.forEach((circle) => { - var _map7; - var { - latitude, - longitude, - color, - fillColor, - radius, - strokeWidth - } = circle; - var nativeCircle = new plus.maps.Circle(new plus.maps.Point(longitude, latitude), radius); - if (color) { - var strokeStyle = parseHex(color); - nativeCircle.setStrokeColor(strokeStyle.color); - nativeCircle.setStrokeOpacity(strokeStyle.opacity); - } - if (fillColor) { - var fillStyle = parseHex(fillColor); - nativeCircle.setFillColor(fillStyle.color); - nativeCircle.setFillOpacity(fillStyle.opacity); - } - if (strokeWidth) { - nativeCircle.setLineWidth(strokeWidth); - } - (_map7 = map2) === null || _map7 === void 0 ? void 0 : _map7.addOverlay(nativeCircle); - map2.__circles__.push(nativeCircle); - }); - } - var methods2 = { - moveToLocation, - getCenterLocation, - getRegion, - getScale - }; - useSubscribe((type, data, resolve) => { - methods2[type] && methods2[type](resolve, data); - }, useContextInfo(), true); - return { - _addMarkers, - _addMapLines, - _addMapCircles, - _setMap(_map) { - map2 = _map; - } - }; - } - class UniMap extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-map", Map$1, parentNodeId, refNodeId, nodeJson, ".uni-map-slot"); - } - } - var movableArea = "uni-movable-area {\n display: block;\n position: relative;\n width: 10px;\n height: 10px;\n}\n\nuni-movable-area[hidden] {\n display: none;\n}\n"; - class UniMovableArea extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-movable-area", MovableArea, parentNodeId, refNodeId, nodeJson); - } - } - var movableView = "uni-movable-view {\n display: inline-block;\n width: 10px;\n height: 10px;\n top: 0px;\n left: 0px;\n position: absolute;\n cursor: grab;\n}\n\nuni-movable-view[hidden] {\n display: none;\n}\n"; - class UniMovableView extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-movable-view", MovableView, parentNodeId, refNodeId, nodeJson); - } - } - var navigator$1 = "uni-navigator {\n height: auto;\n width: auto;\n display: block;\n cursor: pointer;\n}\n\nuni-navigator[hidden] {\n display: none;\n}\n\n.navigator-hover {\n background-color: rgba(0, 0, 0, 0.1);\n opacity: 0.7;\n}\n"; - class UniNavigator extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-navigator", Navigator, parentNodeId, refNodeId, nodeJson); - } - } - class UniOfficialAccount extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-official-account", parentNodeId, refNodeId); - } - } - class UniOpenData extends UniTodoNode { - constructor(id2, parentNodeId, refNodeId) { - super(id2, "uni-open-data", parentNodeId, refNodeId); - } - } - var plus_; - var weex_; - var BroadcastChannel_; - function getRuntime() { - return typeof window === "object" && typeof navigator === "object" && typeof document === "object" ? "webview" : "v8"; - } - function getPageId() { - return plus_.webview.currentWebview().id; - } - var channel; - var globalEvent; - var callbacks = {}; - function onPlusMessage(res) { - var message = res.data && res.data.__message; - if (!message || !message.__page) { - return; - } - var pageId = message.__page; - var callback = callbacks[pageId]; - callback && callback(message); - if (!message.keep) { - delete callbacks[pageId]; - } - } - function addEventListener(pageId, callback) { - if (getRuntime() === "v8") { - if (BroadcastChannel_) { - channel && channel.close(); - channel = new BroadcastChannel_(getPageId()); - channel.onmessage = onPlusMessage; - } else if (!globalEvent) { - globalEvent = weex_.requireModule("globalEvent"); - globalEvent.addEventListener("plusMessage", onPlusMessage); - } - } else { - window.__plusMessage = onPlusMessage; - } - callbacks[pageId] = callback; - } - class Page { - constructor(webview2) { - this.webview = webview2; - } - sendMessage(data) { - var message = JSON.parse(JSON.stringify({ - __message: { - data - } - })); - var id2 = this.webview.id; - if (BroadcastChannel_) { - var channel2 = new BroadcastChannel_(id2); - channel2.postMessage(message); - } else { - plus_.webview.postMessageToUniNView && plus_.webview.postMessageToUniNView(message, id2); - } - } - close() { - this.webview.close(); - } - } - function showPage({ - context = {}, - url, - data = {}, - style = {}, - onMessage, - onClose - }) { - plus_ = context.plus || plus; - weex_ = context.weex || (typeof weex === "object" ? weex : null); - BroadcastChannel_ = context.BroadcastChannel || (typeof BroadcastChannel === "object" ? BroadcastChannel : null); - var titleNView = { - autoBackButton: true, - titleSize: "17px" - }; - var pageId = "page".concat(Date.now()); - style = extend({}, style); - if (style.titleNView !== false && style.titleNView !== "none") { - style.titleNView = extend(titleNView, style.titleNView); - } - var defaultStyle = { - top: 0, - bottom: 0, - usingComponents: {}, - popGesture: "close", - scrollIndicator: "none", - animationType: "pop-in", - animationDuration: 200, - uniNView: { - path: "".concat(typeof process === "object" && process.env && {}.VUE_APP_TEMPLATE_PATH || "", "/").concat(url, ".js"), - defaultFontSize: plus_.screen.resolutionWidth / 20, - viewport: plus_.screen.resolutionWidth - } - }; - style = extend(defaultStyle, style); - var page = plus_.webview.create("", pageId, style, { - extras: { - from: getPageId(), - runtime: getRuntime(), - data, - useGlobalEvent: !BroadcastChannel_ - } - }); - page.addEventListener("close", onClose); - addEventListener(pageId, (message) => { - if (typeof onMessage === "function") { - onMessage(message.data); - } - if (!message.keep) { - page.close("auto"); - } - }); - page.show(style.animationType, style.animationDuration); - return new Page(page); - } - var mode = { - SELECTOR: "selector", - MULTISELECTOR: "multiSelector", - TIME: "time", - DATE: "date" - }; - var fields = { - YEAR: "year", - MONTH: "month", - DAY: "day" - }; - function padLeft(num) { - return num > 9 ? num : "0".concat(num); - } - function getDate(str, _mode) { - str = String(str || ""); - var date = new Date(); - if (_mode === mode.TIME) { - var strs = str.split(":"); - if (strs.length === 2) { - date.setHours(parseInt(strs[0]), parseInt(strs[1])); - } - } else { - var _strs = str.split("-"); - if (_strs.length === 3) { - date.setFullYear(parseInt(_strs[0]), parseInt(String(parseFloat(_strs[1]) - 1)), parseInt(_strs[2])); - } - } - return date; - } - function getDefaultStartValue(props2) { - if (props2.mode === mode.TIME) { - return "00:00"; - } - if (props2.mode === mode.DATE) { - var year = new Date().getFullYear() - 100; - switch (props2.fields) { - case fields.YEAR: - return year; - case fields.MONTH: - return year + "-01"; - default: - return year + "-01-01"; - } - } - return ""; - } - function getDefaultEndValue(props2) { - if (props2.mode === mode.TIME) { - return "23:59"; - } - if (props2.mode === mode.DATE) { - var year = new Date().getFullYear() + 100; - switch (props2.fields) { - case fields.YEAR: - return year; - case fields.MONTH: - return year + "-12"; - default: - return year + "-12-31"; - } - } - return ""; - } - var props$2 = { - name: { - type: String, - default: "" - }, - range: { - type: Array, - default() { - return []; - } - }, - rangeKey: { - type: String, - default: "" - }, - value: { - type: [Number, String, Array], - default: 0 - }, - mode: { - type: String, - default: mode.SELECTOR, - validator(val) { - return Object.values(mode).indexOf(val) >= 0; - } - }, - fields: { - type: String, - default: "" - }, - start: { - type: String, - default: getDefaultStartValue - }, - end: { - type: String, - default: getDefaultEndValue - }, - disabled: { - type: [Boolean, String], - default: false - } - }; - var Picker = /* @__PURE__ */ defineBuiltInComponent({ - name: "Picker", - props: props$2, - emits: ["change", "cancel", "columnchange"], - setup(props2, { - emit: emit2 - }) { - initI18nPickerMsgsOnce(); - var { - t: t2, - getLocale - } = useI18n(); - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var valueSync = ref(null); - var page = ref(null); - var _setValueSync = () => { - var val = props2.value; - switch (props2.mode) { - case mode.MULTISELECTOR: - { - if (!Array.isArray(val)) { - val = []; - } - if (!Array.isArray(valueSync.value)) { - valueSync.value = []; - } - var length = valueSync.value.length = Math.max(val.length, props2.range.length); - for (var index2 = 0; index2 < length; index2++) { - var val0 = Number(val[index2]); - var val1 = Number(valueSync.value[index2]); - var val2 = isNaN(val0) ? isNaN(val1) ? 0 : val1 : val0; - valueSync.value.splice(index2, 1, val2 < 0 ? 0 : val2); - } - } - break; - case mode.TIME: - case mode.DATE: - valueSync.value = String(val); - break; - default: { - var _valueSync = Number(val); - valueSync.value = _valueSync < 0 ? 0 : _valueSync; - break; - } - } - }; - var _updatePicker = (data) => { - page.value && page.value.sendMessage(data); - }; - var _showWeexPicker = (data) => { - var res = { - event: "cancel" - }; - page.value = showPage({ - url: "__uniapppicker", - data, - style: { - titleNView: false, - animationType: "none", - animationDuration: 0, - background: "rgba(0,0,0,0)", - popGesture: "none" - }, - onMessage: (message) => { - var event = message.event; - if (event === "created") { - _updatePicker(data); - return; - } - if (event === "columnchange") { - delete message.event; - trigger2(event, {}, message); - return; - } - res = message; - }, - onClose: () => { - page.value = null; - var event = res.event; - delete res.event; - event && trigger2(event, {}, res); - } - }); - }; - var _showNativePicker = (data, popover) => { - plus.nativeUI[props2.mode === mode.TIME ? "pickTime" : "pickDate"]((res) => { - var date = res.date; - trigger2("change", {}, { - value: props2.mode === mode.TIME ? "".concat(padLeft(date.getHours()), ":").concat(padLeft(date.getMinutes())) : "".concat(date.getFullYear(), "-").concat(padLeft(date.getMonth() + 1), "-").concat(padLeft(date.getDate())) - }); - }, () => { - trigger2("cancel", {}, {}); - }, props2.mode === mode.TIME ? { - time: getDate(props2.value, mode.TIME), - popover - } : { - date: getDate(props2.value, mode.DATE), - minDate: getDate(props2.start, mode.DATE), - maxDate: getDate(props2.end, mode.DATE), - popover - }); - }; - var _showPicker = (data, popover) => { - if ((data.mode === mode.TIME || data.mode === mode.DATE) && !data.fields) { - _showNativePicker(data, popover); - } else { - data.fields = Object.values(fields).includes(data.fields) ? data.fields : fields.DAY; - _showWeexPicker(data); - } - }; - var _show = (event) => { - if (props2.disabled) { - return; - } - var eventTarget = event.currentTarget; - var rect = eventTarget.getBoundingClientRect(); - _showPicker(Object.assign({}, props2, { - value: valueSync.value, - locale: getLocale(), - messages: { - done: t2("uni.picker.done"), - cancel: t2("uni.picker.cancel") - } - }), { - top: rect.top + getNavigationBarHeight(), - left: rect.left, - width: rect.width, - height: rect.height - }); - }; - var uniForm = inject(uniFormKey, false); - var formField = { - submit: () => [props2.name, valueSync.value], - reset: () => { - switch (props2.mode) { - case mode.SELECTOR: - valueSync.value = 0; - break; - case mode.MULTISELECTOR: - Array.isArray(props2.value) && (valueSync.value = props2.value.map((val) => 0)); - break; - case mode.DATE: - case mode.TIME: - valueSync.value = ""; - break; - } - } - }; - if (uniForm) { - uniForm.addField(formField); - onBeforeUnmount(() => uniForm.removeField(formField)); - } - Object.keys(props2).forEach((key2) => { - if (key2 !== "name") { - watch(() => props2[key2], (val) => { - var data = {}; - data[key2] = val; - _updatePicker(data); - }, { - deep: true - }); - } - }); - watch(() => props2.value, _setValueSync, { - deep: true - }); - _setValueSync(); - return () => createVNode("uni-picker", { - "ref": rootRef, - "onClick": _show - }, { - default: () => [createVNode("slot", null, null)] - }, 8, ["onClick"]); - } - }); - class UniPicker extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-picker", Picker, parentNodeId, refNodeId, nodeJson); - } - } - var pickerView = "uni-picker-view {\n display: block;\n}\n\n.uni-picker-view-wrapper {\n display: flex;\n position: relative;\n overflow: hidden;\n height: 100%;\n}\n\nuni-picker-view[hidden] {\n display: none;\n}\n"; - class UniPickerView extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-picker-view", PickerView, parentNodeId, refNodeId, nodeJson, ".uni-picker-view-wrapper"); - } - } - var pickerViewColumn = "uni-picker-view-column {\n flex: 1;\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n\nuni-picker-view-column[hidden] {\n display: none;\n}\n\n.uni-picker-view-group {\n height: 100%;\n overflow: hidden;\n}\n\n.uni-picker-view-mask {\n transform: translateZ(0);\n}\n\n.uni-picker-view-indicator,\n.uni-picker-view-mask {\n position: absolute;\n left: 0;\n width: 100%;\n z-index: 3;\n pointer-events: none;\n}\n\n.uni-picker-view-mask {\n top: 0;\n height: 100%;\n margin: 0 auto;\n background: linear-gradient(\n 180deg,\n hsla(0, 0%, 100%, 0.95),\n hsla(0, 0%, 100%, 0.6)\n ),\n linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6));\n background-position: top, bottom;\n background-size: 100% 102px;\n background-repeat: no-repeat;\n}\n\n.uni-picker-view-indicator {\n height: 34px;\n /* top: 102px; */\n top: 50%;\n transform: translateY(-50%);\n}\n\n.uni-picker-view-content {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n will-change: transform;\n padding: 102px 0;\n cursor: pointer;\n}\n\n.uni-picker-view-content > * {\n height: 34px;\n overflow: hidden;\n}\n\n.uni-picker-view-indicator:after,\n.uni-picker-view-indicator:before {\n content: ' ';\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n color: #e5e5e5;\n}\n\n.uni-picker-view-indicator:before {\n top: 0;\n border-top: 1px solid #e5e5e5;\n transform-origin: 0 0;\n transform: scaleY(0.5);\n}\n\n.uni-picker-view-indicator:after {\n bottom: 0;\n border-bottom: 1px solid #e5e5e5;\n transform-origin: 0 100%;\n transform: scaleY(0.5);\n}\n\n.uni-picker-view-indicator:after,\n.uni-picker-view-indicator:before {\n content: ' ';\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n color: #e5e5e5;\n}\n"; - class UniPickerViewColumn extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-picker-view-column", PickerViewColumn, parentNodeId, refNodeId, nodeJson, ".uni-picker-view-content"); - } - } - var progress = "uni-progress {\n display: flex;\n align-items: center;\n}\n\nuni-progress[hidden] {\n display: none;\n}\n\n.uni-progress-bar {\n flex: 1;\n}\n\n.uni-progress-inner-bar {\n width: 0;\n height: 100%;\n}\n\n.uni-progress-info {\n margin-top: 0;\n margin-bottom: 0;\n min-width: 2em;\n margin-left: 15px;\n font-size: 16px;\n}\n"; - class UniProgress extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-progress", Progress, parentNodeId, refNodeId, nodeJson); - } - } - var radio = "uni-radio {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n cursor: pointer;\n}\n\nuni-radio[hidden] {\n display: none;\n}\n\nuni-radio[disabled] {\n cursor: not-allowed;\n}\n\n.uni-radio-wrapper {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n}\n\n.uni-radio-input {\n -webkit-appearance: none;\n appearance: none;\n margin-right: 5px;\n outline: 0;\n border: 1px solid #d1d1d1;\n background-color: #ffffff;\n border-radius: 50%;\n width: 22px;\n height: 22px;\n position: relative;\n}\n\nuni-radio:not([disabled]) .uni-radio-input:hover {\n border-color: #007aff;\n}\n\n.uni-radio-input svg {\n color: #ffffff;\n font-size: 18px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n}\n\n.uni-radio-input.uni-radio-input-disabled {\n background-color: #e1e1e1;\n border-color: #d1d1d1;\n}\n\n.uni-radio-input.uni-radio-input-disabled:before {\n color: #adadad;\n}\n"; - class UniRadio extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-radio", Radio, parentNodeId, refNodeId, nodeJson, ".uni-radio-wrapper"); - } - setText(text2) { - setHolderText(this.$holder, "uni-radio-input", text2); - } - } - var radioGroup = "uni-radio-group {\n display: block;\n}\nuni-radio-group[hidden] {\n display: none;\n}\n"; - class UniRadioGroup extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-radio-group", RadioGroup, parentNodeId, refNodeId, nodeJson); - } - } - var richText = ""; - class UniRichText extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-rich-text", RichText, parentNodeId, refNodeId, nodeJson); - } - } - var scrollView = "uni-scroll-view {\n display: block;\n width: 100%;\n}\n\nuni-scroll-view[hidden] {\n display: none;\n}\n\n.uni-scroll-view {\n position: relative;\n -webkit-overflow-scrolling: touch;\n width: 100%;\n /* display: flex; \u65F6\u5728\u5B89\u5353\u4E0B\u4F1A\u5BFC\u81F4scrollWidth\u548CoffsetWidth\u4E00\u6837 */\n height: 100%;\n max-height: inherit;\n}\n\n.uni-scroll-view-content {\n width: 100%;\n height: 100%;\n}\n\n.uni-scroll-view-refresher {\n position: relative;\n overflow: hidden;\n}\n\n.uni-scroll-view-refresh {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n\n.uni-scroll-view-refresh-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background-color: #fff;\n box-shadow: 0 1px 6px rgba(0, 0, 0, 0.117647),\n 0 1px 4px rgba(0, 0, 0, 0.117647);\n}\n\n.uni-scroll-view-refresh__spinner {\n transform-origin: center center;\n animation: uni-scroll-view-refresh-rotate 2s linear infinite;\n}\n\n.uni-scroll-view-refresh__spinner > circle {\n stroke: currentColor;\n stroke-linecap: round;\n animation: uni-scroll-view-refresh-dash 2s linear infinite;\n}\n\n@keyframes uni-scroll-view-refresh-rotate {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@keyframes uni-scroll-view-refresh-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n}\n"; - class UniScrollView extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-scroll-view", ScrollView, parentNodeId, refNodeId, nodeJson, ".uni-scroll-view-content"); - } - setText(text2) { - setHolderText(this.$holder, "uni-scroll-view-refresher", text2); - } - } - var slider = "uni-slider {\n margin: 10px 18px;\n padding: 0;\n display: block;\n}\n\nuni-slider[hidden] {\n display: none;\n}\n\nuni-slider .uni-slider-wrapper {\n display: flex;\n align-items: center;\n min-height: 16px;\n}\n\nuni-slider .uni-slider-tap-area {\n flex: 1;\n padding: 8px 0;\n}\n\nuni-slider .uni-slider-handle-wrapper {\n position: relative;\n height: 2px;\n border-radius: 5px;\n background-color: #e9e9e9;\n cursor: pointer;\n transition: background-color 0.3s ease;\n -webkit-tap-highlight-color: transparent;\n}\n\nuni-slider .uni-slider-track {\n height: 100%;\n border-radius: 6px;\n background-color: #007aff;\n transition: background-color 0.3s ease;\n}\n\nuni-slider .uni-slider-handle,\nuni-slider .uni-slider-thumb {\n position: absolute;\n left: 50%;\n top: 50%;\n cursor: pointer;\n border-radius: 50%;\n transition: border-color 0.3s ease;\n}\n\nuni-slider .uni-slider-handle {\n width: 28px;\n height: 28px;\n margin-top: -14px;\n margin-left: -14px;\n background-color: transparent;\n z-index: 3;\n cursor: grab;\n}\n\nuni-slider .uni-slider-thumb {\n z-index: 2;\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);\n}\n\nuni-slider .uni-slider-step {\n position: absolute;\n width: 100%;\n height: 2px;\n background: transparent;\n z-index: 1;\n}\n\nuni-slider .uni-slider-value {\n width: 3ch;\n color: #888;\n font-size: 14px;\n margin-left: 1em;\n}\n\nuni-slider .uni-slider-disabled .uni-slider-track {\n background-color: #ccc;\n}\n\nuni-slider .uni-slider-disabled .uni-slider-thumb {\n background-color: #fff;\n border-color: #ccc;\n}\n"; - class UniSlider extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-slider", Slider, parentNodeId, refNodeId, nodeJson); - } - } - var swiper = "uni-swiper {\n display: block;\n height: 150px;\n}\n\nuni-swiper[hidden] {\n display: none;\n}\n\n.uni-swiper-wrapper {\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 100%;\n transform: translateZ(0);\n}\n\n.uni-swiper-slides {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n}\n\n.uni-swiper-slide-frame {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n will-change: transform;\n}\n\n.uni-swiper-dots {\n position: absolute;\n font-size: 0;\n}\n\n.uni-swiper-dots-horizontal {\n left: 50%;\n bottom: 10px;\n text-align: center;\n white-space: nowrap;\n transform: translate(-50%, 0);\n}\n\n.uni-swiper-dots-horizontal .uni-swiper-dot {\n margin-right: 8px;\n}\n\n.uni-swiper-dots-horizontal .uni-swiper-dot:last-child {\n margin-right: 0;\n}\n\n.uni-swiper-dots-vertical {\n right: 10px;\n top: 50%;\n text-align: right;\n transform: translate(0, -50%);\n}\n\n.uni-swiper-dots-vertical .uni-swiper-dot {\n display: block;\n margin-bottom: 9px;\n}\n\n.uni-swiper-dots-vertical .uni-swiper-dot:last-child {\n margin-bottom: 0;\n}\n\n.uni-swiper-dot {\n display: inline-block;\n width: 8px;\n height: 8px;\n cursor: pointer;\n transition-property: background-color;\n transition-timing-function: ease;\n background: rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n}\n\n.uni-swiper-dot-active {\n background-color: #000000;\n}\n"; - class UniSwiper extends UniContainerComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-swiper", Swiper, parentNodeId, refNodeId, nodeJson, ".uni-swiper-slide-frame"); - } - } - var swiperItem = "uni-swiper-item {\n display: block;\n overflow: hidden;\n will-change: transform;\n position: absolute;\n width: 100%;\n height: 100%;\n cursor: grab;\n}\n\nuni-swiper-item[hidden] {\n display: none;\n}\n"; - class UniSwiperItem extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-swiper-item", SwiperItem, parentNodeId, refNodeId, nodeJson); - } - } - var _switch = "uni-switch {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n cursor: pointer;\n}\n\nuni-switch[hidden] {\n display: none;\n}\n\nuni-switch[disabled] {\n cursor: not-allowed;\n}\n\n.uni-switch-wrapper {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n}\n\n.uni-switch-input {\n -webkit-appearance: none;\n appearance: none;\n position: relative;\n width: 52px;\n height: 32px;\n margin-right: 5px;\n border: 1px solid #dfdfdf;\n outline: 0;\n border-radius: 16px;\n box-sizing: border-box;\n background-color: #dfdfdf;\n transition: background-color 0.1s, border 0.1s;\n}\n\nuni-switch[disabled] .uni-switch-input {\n opacity: 0.7;\n}\n\n.uni-switch-input:before {\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 50px;\n height: 30px;\n border-radius: 15px;\n background-color: #fdfdfd;\n transition: transform 0.3s;\n}\n\n.uni-switch-input:after {\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 30px;\n height: 30px;\n border-radius: 15px;\n background-color: #ffffff;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n transition: transform 0.3s;\n}\n\n.uni-switch-input.uni-switch-input-checked {\n border-color: #007aff;\n background-color: #007aff;\n}\n\n.uni-switch-input.uni-switch-input-checked:before {\n transform: scale(0);\n}\n\n.uni-switch-input.uni-switch-input-checked:after {\n transform: translateX(20px);\n}\n\nuni-switch .uni-checkbox-input {\n margin-right: 5px;\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n border: 1px solid #d1d1d1;\n background-color: #ffffff;\n border-radius: 3px;\n width: 22px;\n height: 22px;\n position: relative;\n color: #007aff;\n}\n\nuni-switch:not([disabled]) .uni-checkbox-input:hover {\n border-color: #007aff;\n}\n\nuni-switch .uni-checkbox-input svg {\n color: inherit;\n font-size: 22px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n}\n\n.uni-checkbox-input.uni-checkbox-input-disabled {\n background-color: #e1e1e1;\n}\n\n.uni-checkbox-input.uni-checkbox-input-disabled:before {\n color: #adadad;\n}\n"; - class UniSwitch extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-switch", Switch, parentNodeId, refNodeId, nodeJson); - } - } - var textarea = "uni-textarea {\n width: 300px;\n height: 150px;\n display: block;\n position: relative;\n font-size: 16px;\n line-height: normal;\n white-space: pre-wrap;\n word-break: break-all;\n box-sizing: content-box !important;\n}\nuni-textarea[hidden] {\n display: none;\n}\n.uni-textarea-wrapper,\n.uni-textarea-placeholder,\n.uni-textarea-line,\n.uni-textarea-compute,\n.uni-textarea-textarea {\n outline: none;\n border: none;\n padding: 0;\n margin: 0;\n text-decoration: inherit;\n}\n.uni-textarea-wrapper {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: inherit;\n}\n.uni-textarea-placeholder,\n.uni-textarea-line,\n.uni-textarea-compute,\n.uni-textarea-textarea {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n white-space: inherit;\n word-break: inherit;\n}\n.uni-textarea-placeholder {\n color: grey;\n overflow: hidden;\n}\n.uni-textarea-line,\n.uni-textarea-compute {\n visibility: hidden;\n height: auto;\n}\n.uni-textarea-line {\n width: 1em;\n}\n.uni-textarea-textarea {\n resize: none;\n background: none;\n color: inherit;\n opacity: 1;\n font: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n text-align: inherit;\n text-indent: inherit;\n text-transform: inherit;\n text-shadow: inherit;\n}\n/* \u7528\u4E8E\u89E3\u51B3 iOS textarea \u5185\u90E8\u9ED8\u8BA4\u8FB9\u8DDD */\n.uni-textarea-textarea-fix-margin {\n width: auto;\n right: 0;\n margin: 0 -3px;\n}\n.uni-textarea-textarea:disabled {\n /* \u7528\u4E8E\u91CD\u7F6EiOS14\u4EE5\u4E0B\u7981\u7528\u72B6\u6001\u6587\u5B57\u989C\u8272 */\n -webkit-text-fill-color: currentcolor;\n}\n"; - class UniTextarea extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-textarea", Textarea, parentNodeId, refNodeId, nodeJson); - } - } - var video = "uni-video {\n width: 300px;\n height: 225px;\n display: inline-block;\n line-height: 0;\n overflow: hidden;\n position: relative;\n}\n\nuni-video[hidden] {\n display: none;\n}\n\n.uni-video-container {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n overflow: hidden;\n background-color: black;\n}\n\n.uni-video-slot {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n pointer-events: none;\n}\n"; - var props$1 = { - id: { - type: String, - default: "" - }, - src: { - type: String, - default: "" - }, - duration: { - type: [Number, String], - default: "" - }, - controls: { - type: [Boolean, String], - default: true - }, - danmuList: { - type: Array, - default() { - return []; - } - }, - danmuBtn: { - type: [Boolean, String], - default: false - }, - enableDanmu: { - type: [Boolean, String], - default: false - }, - autoplay: { - type: [Boolean, String], - default: false - }, - loop: { - type: [Boolean, String], - default: false - }, - muted: { - type: [Boolean, String], - default: false - }, - objectFit: { - type: String, - default: "contain" - }, - poster: { - type: String, - default: "" - }, - direction: { - type: [String, Number], - default: "" - }, - showProgress: { - type: Boolean, - default: true - }, - initialTime: { - type: [String, Number], - default: 0 - }, - showFullscreenBtn: { - type: [Boolean, String], - default: true - }, - pageGesture: { - type: [Boolean, String], - default: false - }, - enableProgressGesture: { - type: [Boolean, String], - default: true - }, - showPlayBtn: { - type: [Boolean, String], - default: true - }, - enablePlayGesture: { - type: [Boolean, String], - default: true - }, - showCenterPlayBtn: { - type: [Boolean, String], - default: true - }, - showLoading: { - type: [Boolean, String], - default: true - }, - codec: { - type: String, - default: "hardware" - }, - httpCache: { - type: [Boolean, String], - default: false - }, - playStrategy: { - type: [Number, String], - default: 0 - }, - header: { - type: Object, - default() { - return {}; - } - }, - advanced: { - type: Array, - default() { - return []; - } - } - }; - var emits = ["play", "pause", "ended", "timeupdate", "fullscreenchange", "fullscreenclick", "waiting", "error"]; - var methods = ["play", "pause", "stop", "seek", "sendDanmu", "playbackRate", "requestFullScreen", "exitFullScreen"]; - var Video = /* @__PURE__ */ defineBuiltInComponent({ - name: "Video", - props: props$1, - emits, - setup(props2, { - emit: emit2 - }) { - var rootRef = ref(null); - var trigger2 = useCustomEvent(rootRef, emit2); - var containerRef = ref(null); - var attrs2 = useNativeAttrs(props2, ["id"]); - var { - position, - hidden, - onParentReady - } = useNative(containerRef); - var video2; - onParentReady(() => { - video2 = plus.video.createVideoPlayer("video" + Date.now(), Object.assign({}, attrs2.value, position)); - plus.webview.currentWebview().append(video2); - if (hidden.value) { - video2.hide(); - } - emits.forEach((key2) => { - video2.addEventListener(key2, (event) => { - trigger2(key2, {}, event.detail); - }); - }); - watch(() => attrs2.value, (attrs3) => video2.setStyles(attrs3), { - deep: true - }); - watch(() => position, (position2) => video2.setStyles(position2), { - deep: true - }); - watch(() => hidden.value, (val) => { - video2[val ? "hide" : "show"](); - if (!val) { - video2.setStyles(position); - } - }); - }); - var id2 = useContextInfo(); - useSubscribe((type, data) => { - if (methods.includes(type)) { - var options; - switch (type) { - case "seek": - options = data.position; - break; - case "sendDanmu": - options = data; - break; - case "playbackRate": - options = data.rate; - break; - } - if (video2) { - video2[type](options); - } - } - }, id2, true); - onBeforeUnmount(() => { - if (video2) { - video2.close(); - } - }); - return () => { - return createVNode("uni-video", { - "ref": rootRef, - "id": props2.id - }, { - default: () => [createVNode("div", { - "ref": containerRef, - "class": "uni-video-container" - }, null, 512), createVNode("div", { - "class": "uni-video-slot" - }, null)], - _: 1 - }, 8, ["id"]); - }; - } - }); - class UniVideo extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-video", Video, parentNodeId, refNodeId, nodeJson, ".uni-video-slot"); - } - } - var webview$1 = "uni-web-view {\n display: inline-block;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n}\n"; - var props = { - src: { - type: String, - default: "" - }, - webviewStyles: { - type: Object, - default() { - return {}; - } - } - }; - var webview; - var insertHTMLWebView = ({ - htmlId, - src, - webviewStyles - }) => { - var parentWebview = plus.webview.currentWebview(); - var styles = extend(webviewStyles, { - "uni-app": "none", - isUniH5: true - }); - var parentTitleNView = parentWebview.getTitleNView(); - if (parentTitleNView) { - var defaultTop = NAVBAR_HEIGHT + parseFloat(styles.top || "0"); - if (plus.navigator.isImmersedStatusbar()) { - defaultTop += getStatusbarHeight(); - } - styles.top = String(defaultTop); - styles.bottom = styles.bottom || "0"; - } - webview = plus.webview.create(src, htmlId, styles); - if (parentTitleNView) { - webview.addEventListener("titleUpdate", function() { - var _webview; - var title = (_webview = webview) === null || _webview === void 0 ? void 0 : _webview.getTitle(); - parentWebview.setStyle({ - titleNView: { - titleText: !title || title === "null" ? " " : title - } - }); - }); - } - plus.webview.currentWebview().append(webview); - }; - var removeHTMLWebView = () => { - var _webview2; - plus.webview.currentWebview().remove(webview); - (_webview2 = webview) === null || _webview2 === void 0 ? void 0 : _webview2.close("none"); - webview = null; - }; - var WebView = /* @__PURE__ */ defineBuiltInComponent({ - name: "WebView", - props, - setup(props2) { - var pageId = getCurrentPageId(); - var containerRef = ref(null); - var { - hidden, - onParentReady - } = useNative(containerRef); - var webviewStyles = computed$1(() => props2.webviewStyles); - onParentReady(() => { - var _webview3; - var htmlId = ref(WEBVIEW_ID_PREFIX + pageId); - insertHTMLWebView({ - htmlId: htmlId.value, - src: getRealPath(props2.src), - webviewStyles: webviewStyles.value - }); - UniViewJSBridge.publishHandler(WEBVIEW_INSERTED, {}, pageId); - if (hidden.value) - (_webview3 = webview) === null || _webview3 === void 0 ? void 0 : _webview3.hide(); - }); - onBeforeUnmount(() => { - removeHTMLWebView(); - UniViewJSBridge.publishHandler(WEBVIEW_REMOVED, {}, pageId); - }); - watch(() => props2.src, (val) => { - var _webview5; - var realPath = getRealPath(val) || ""; - if (!realPath) { - return; - } - if (/^(http|https):\/\//.test(realPath) && props2.webviewStyles.progress) { - var _webview4; - (_webview4 = webview) === null || _webview4 === void 0 ? void 0 : _webview4.setStyle({ - progress: { - color: props2.webviewStyles.progress.color - } - }); - } - (_webview5 = webview) === null || _webview5 === void 0 ? void 0 : _webview5.loadURL(realPath); - }); - watch(webviewStyles, (webviewStyles2) => { - var _webview6; - (_webview6 = webview) === null || _webview6 === void 0 ? void 0 : _webview6.setStyle(webviewStyles2); - }); - watch(hidden, (val) => { - webview && webview[val ? "hide" : "show"](); - }); - return () => createVNode("uni-web-view", { - "ref": containerRef - }, null, 512); - } - }); - class UniWebView extends UniComponent { - constructor(id2, parentNodeId, refNodeId, nodeJson) { - super(id2, "uni-web-view", WebView, parentNodeId, refNodeId, nodeJson); - } - } - var BuiltInComponents = { - "#text": UniTextNode, - "#comment": UniComment, - VIEW: UniViewElement, - IMAGE: UniImage, - TEXT: UniTextElement, - NAVIGATOR: UniNavigator, - FORM: UniForm, - BUTTON: UniButton, - INPUT: UniInput, - LABEL: UniLabel, - RADIO: UniRadio, - CHECKBOX: UniCheckbox, - "CHECKBOX-GROUP": UniCheckboxGroup, - AD: UniAd, - CAMERA: UniCamera, - CANVAS: UniCanvas, - "COVER-IMAGE": UniCoverImage, - "COVER-VIEW": UniCoverView, - EDITOR: UniEditor, - "FUNCTIONAL-PAGE-NAVIGATOR": UniFunctionalPageNavigator, - ICON: UniIcon, - "RADIO-GROUP": UniRadioGroup, - "LIVE-PLAYER": UniLivePlayer, - "LIVE-PUSHER": UniLivePusher, - MAP: UniMap, - "MOVABLE-AREA": UniMovableArea, - "MOVABLE-VIEW": UniMovableView, - "OFFICIAL-ACCOUNT": UniOfficialAccount, - "OPEN-DATA": UniOpenData, - PICKER: UniPicker, - "PICKER-VIEW": UniPickerView, - "PICKER-VIEW-COLUMN": UniPickerViewColumn, - PROGRESS: UniProgress, - "RICH-TEXT": UniRichText, - "SCROLL-VIEW": UniScrollView, - SLIDER: UniSlider, - SWIPER: UniSwiper, - "SWIPER-ITEM": UniSwiperItem, - SWITCH: UniSwitch, - TEXTAREA: UniTextarea, - VIDEO: UniVideo, - "WEB-VIEW": UniWebView - }; - function createWrapper(component, props2) { - return () => h(component, props2); - } - var elements = new Map(); - function $(id2) { - return elements.get(id2); - } - function removeElement(id2) { - { - console.log(formatLog("Remove", id2, elements.size - 1)); - } - return elements.delete(id2); - } - function createElement(id2, tag, parentNodeId, refNodeId, nodeJson = {}) { - var element; - if (id2 === 0) { - element = new UniNode(id2, tag, parentNodeId, document.createElement(tag)); - } else { - var Component = BuiltInComponents[tag]; - if (Component) { - element = new Component(id2, parentNodeId, refNodeId, nodeJson); - } else { - element = new UniElement(id2, document.createElement(tag), parentNodeId, refNodeId, nodeJson); - } - } - elements.set(id2, element); - return element; - } - var pageReadyCallbacks = []; - var isPageReady = false; - function onPageReady(callback) { - if (isPageReady) { - return callback(); - } - pageReadyCallbacks.push(callback); - } - function setPageReady() { - { - console.log(formatLog("setPageReady", pageReadyCallbacks.length)); - } - isPageReady = true; - pageReadyCallbacks.forEach((fn) => fn()); - pageReadyCallbacks.length = 0; - } - function onPageCreated() { - } - function onPageCreate({ - css, - route, - platform, - pixelRatio: pixelRatio2, - windowWidth, - disableScroll, - statusbarHeight, - windowTop, - windowBottom - }) { - initPageInfo(route); - initSystemInfo(platform, pixelRatio2, windowWidth); - initPageElement(); - var pageId = plus.webview.currentWebview().id; - window.__id__ = pageId; - document.title = "".concat(route, "[").concat(pageId, "]"); - initCssVar(statusbarHeight, windowTop, windowBottom); - if (disableScroll) { - document.addEventListener("touchmove", disableScrollListener); - } - if (css) { - initPageCss(route); - } else { - setPageReady(); - } - } - function initPageInfo(route) { - window.__PAGE_INFO__ = { - route - }; - } - function initSystemInfo(platform, pixelRatio2, windowWidth) { - window.__SYSTEM_INFO__ = { - platform, - pixelRatio: pixelRatio2, - windowWidth - }; - } - function initPageElement() { - createElement(0, "div", -1, -1).$ = document.getElementById("app"); - } - function initPageCss(route) { - { - console.log(formatLog("initPageCss", route + ".css")); - } - var element = document.createElement("link"); - element.type = "text/css"; - element.rel = "stylesheet"; - element.href = route + ".css"; - element.onload = setPageReady; - element.onerror = setPageReady; - document.head.appendChild(element); - } - function initCssVar(statusbarHeight, windowTop, windowBottom) { - var cssVars = { - "--window-left": "0px", - "--window-right": "0px", - "--window-top": windowTop + "px", - "--window-bottom": windowBottom + "px", - "--status-bar-height": statusbarHeight + "px" - }; - { - console.log(formatLog("initCssVar", cssVars)); - } - updateCssVar(cssVars); - } - var isPageScrollInited = false; - function initPageScroll(onReachBottomDistance) { - if (isPageScrollInited) { - return; - } - isPageScrollInited = true; - var opts = { - onReachBottomDistance, - onPageScroll(scrollTop) { - UniViewJSBridge.publishHandler(ON_PAGE_SCROLL, { - scrollTop - }); - }, - onReachBottom() { - UniViewJSBridge.publishHandler(ON_REACH_BOTTOM); - } - }; - requestAnimationFrame(() => document.addEventListener("scroll", createScrollListener(opts))); - } - function pageScrollTo({ - scrollTop, - selector, - duration - }, publish) { - scrollTo(selector || scrollTop || 0, duration); - publish(); - } - function onVdSync(actions) { - { - console.log(formatLog("onVdSync", actions)); - } - var firstAction = actions[0]; - if (firstAction[0] === ACTION_TYPE_PAGE_CREATE) { - onPageCreateSync(firstAction); - } else { - onPageReady(() => onPageUpdateSync(actions)); - } - } - function onPageCreateSync(action) { - return onPageCreate(action[1]); - } - function onPageUpdateSync(actions) { - var dictAction = actions[0]; - var getDict = createGetDict(dictAction[0] === ACTION_TYPE_DICT ? dictAction[1] : []); - actions.forEach((action) => { - switch (action[0]) { - case ACTION_TYPE_PAGE_CREATE: - return onPageCreate(action[1]); - case ACTION_TYPE_PAGE_CREATED: - return onPageCreated(); - case ACTION_TYPE_CREATE: - return createElement(action[1], getDict(action[2]), action[3], action[4], decodeNodeJson(getDict, action[5])); - case ACTION_TYPE_REMOVE: - return $(action[1]).remove(); - case ACTION_TYPE_SET_ATTRIBUTE: - return $(action[1]).setAttr(getDict(action[2]), getDict(action[3])); - case ACTION_TYPE_REMOVE_ATTRIBUTE: - return $(action[1]).removeAttr(getDict(action[2])); - case ACTION_TYPE_ADD_EVENT: - return $(action[1]).addEvent(getDict(action[2]), action[3]); - case ACTION_TYPE_ADD_WXS_EVENT: - return $(action[1]).addWxsEvent(getDict(action[2]), getDict(action[3]), action[4]); - case ACTION_TYPE_REMOVE_EVENT: - return $(action[1]).removeEvent(getDict(action[2])); - case ACTION_TYPE_SET_TEXT: - return $(action[1]).setText(getDict(action[2])); - case ACTION_TYPE_PAGE_SCROLL: - return initPageScroll(action[1]); - } - }); - flushPostActionJobs(); - } - function initSubscribeHandlers() { - var { - subscribe - } = UniViewJSBridge; - subscribe(VD_SYNC, onVdSync); - } - function findElem(vm) { - { - return window.__$__(vm).$; - } - } - function getRootInfo(fields2) { - var info = {}; - if (fields2.id) { - info.id = ""; - } - if (fields2.dataset) { - info.dataset = {}; - } - if (fields2.rect) { - info.left = 0; - info.right = 0; - info.top = 0; - info.bottom = 0; - } - if (fields2.size) { - info.width = document.documentElement.clientWidth; - info.height = document.documentElement.clientHeight; - } - if (fields2.scrollOffset) { - var documentElement = document.documentElement; - var body = document.body; - info.scrollLeft = documentElement.scrollLeft || body.scrollLeft || 0; - info.scrollTop = documentElement.scrollTop || body.scrollTop || 0; - info.scrollHeight = documentElement.scrollHeight || body.scrollHeight || 0; - info.scrollWidth = documentElement.scrollWidth || body.scrollWidth || 0; - } - return info; - } - function getNodeInfo(el, fields2) { - var info = {}; - var { - top - } = getWindowOffset(); - if (fields2.id) { - info.id = el.id; - } - if (fields2.dataset) { - info.dataset = getCustomDataset(el); - } - if (fields2.rect || fields2.size) { - var rect = el.getBoundingClientRect(); - if (fields2.rect) { - info.left = rect.left; - info.right = rect.right; - info.top = rect.top - top; - info.bottom = rect.bottom - top; - } - if (fields2.size) { - info.width = rect.width; - info.height = rect.height; - } - } - if (Array.isArray(fields2.properties)) { - fields2.properties.forEach((prop) => { - prop = prop.replace(/-([a-z])/g, function(e2, t2) { - return t2.toUpperCase(); - }); - }); - } - if (fields2.scrollOffset) { - if (el.tagName === "UNI-SCROLL-VIEW") { - var scroll = el.children[0].children[0]; - info.scrollLeft = scroll.scrollLeft; - info.scrollTop = scroll.scrollTop; - info.scrollHeight = scroll.scrollHeight; - info.scrollWidth = scroll.scrollWidth; - } else { - info.scrollLeft = 0; - info.scrollTop = 0; - info.scrollHeight = 0; - info.scrollWidth = 0; - } - } - if (Array.isArray(fields2.computedStyle)) { - var sytle = getComputedStyle(el); - fields2.computedStyle.forEach((name) => { - info[name] = sytle[name]; - }); - } - if (fields2.context) { - info.contextInfo = getContextInfo(el); - } - return info; - } - function findElm(component, pageVm2) { - if (!component) { - return pageVm2.$el; - } - { - return window.__$__(component).$; - } - } - function matches(element, selectors) { - var matches2 = element.matches || element.matchesSelector || element.mozMatchesSelector || element.msMatchesSelector || element.oMatchesSelector || element.webkitMatchesSelector || function(selectors2) { - var matches3 = this.parentElement.querySelectorAll(selectors2); - var i2 = matches3.length; - while (--i2 >= 0 && matches3.item(i2) !== this) { - } - return i2 > -1; - }; - return matches2.call(element, selectors); - } - function getNodesInfo(pageVm2, component, selector, single, fields2) { - var selfElement = findElm(component, pageVm2); - var parentElement = selfElement.parentElement; - if (!parentElement) { - return single ? null : []; - } - var { - nodeType - } = selfElement; - var maybeFragment = nodeType === 3 || nodeType === 8; - if (single) { - var node = maybeFragment ? parentElement.querySelector(selector) : matches(selfElement, selector) ? selfElement : selfElement.querySelector(selector); - if (node) { - return getNodeInfo(node, fields2); - } - return null; - } else { - var infos = []; - var nodeList = (maybeFragment ? parentElement : selfElement).querySelectorAll(selector); - if (nodeList && nodeList.length) { - [].forEach.call(nodeList, (node2) => { - infos.push(getNodeInfo(node2, fields2)); - }); - } - if (!maybeFragment && matches(selfElement, selector)) { - infos.unshift(getNodeInfo(selfElement, fields2)); - } - return infos; - } - } - function requestComponentInfo(page, reqs, callback) { - var result = []; - reqs.forEach(({ - component, - selector, - single, - fields: fields2 - }) => { - if (component === null) { - result.push(getRootInfo(fields2)); - } else { - result.push(getNodesInfo(page, component, selector, single, fields2)); - } - }); - callback(result); - } - function addIntersectionObserver({ - reqId, - component, - options, - callback - }, _pageId) { - var $el = findElem(component); - ($el.__io || ($el.__io = {}))[reqId] = requestComponentObserver($el, options, callback); - } - function removeIntersectionObserver({ - reqId, - component - }, _pageId) { - var $el = findElem(component); - var intersectionObserver = $el.__io && $el.__io[reqId]; - if (intersectionObserver) { - intersectionObserver.disconnect(); - delete $el.__io[reqId]; - } - } - function loadFontFace({ - family, - source, - desc - }, publish) { - addFont(family, source, desc).then(() => { - publish(); - }).catch((err) => { - publish(err.toString()); - }); - } - var pageVm = { - $el: document.body - }; - function initViewMethods() { - var pageId = getCurrentPageId(); - subscribeViewMethod(pageId, (fn) => { - return (...args) => { - onPageReady(() => { - fn.apply(null, args); - }); - }; - }); - registerViewMethod(pageId, "requestComponentInfo", (args, publish) => { - requestComponentInfo(pageVm, args.reqs, publish); - }); - registerViewMethod(pageId, "addIntersectionObserver", (args) => { - addIntersectionObserver(extend({}, args, { - callback(res) { - UniViewJSBridge.publishHandler(args.eventName, res); - } - })); - }); - registerViewMethod(pageId, "removeIntersectionObserver", (args) => { - removeIntersectionObserver(args); - }); - registerViewMethod(pageId, API_PAGE_SCROLL_TO, pageScrollTo); - registerViewMethod(pageId, API_LOAD_FONT_FACE, loadFontFace); - } - window.uni = uni$1; - window.UniViewJSBridge = UniViewJSBridge$1; - window.rpx2px = upx2px; - window.__$__ = $; - function onWebviewReady() { - initView(); - initViewMethods(); - initSubscribeHandlers(); - preventDoubleTap(); - UniViewJSBridge$1.publishHandler(ON_WEBVIEW_READY); - } - if (typeof plus !== "undefined") { - onWebviewReady(); - } else { - document.addEventListener("plusready", onWebviewReady); - } -}); +!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e={exports:{}},t={exports:{}},n={exports:{}},r=n.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r);var i={exports:{}},a=i.exports=void 0!==a&&a.Math==Math?a:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a);var o=n.exports,s=i.exports,l="__core-js_shared__",u=s[l]||(s[l]={});(t.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:"window",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var c=0,d=Math.random(),h=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++c+d).toString(36))},p=t.exports("wks"),f=h,v=i.exports.Symbol,g="function"==typeof v;(e.exports=function(e){return p[e]||(p[e]=g&&v[e]||(g?v:f)("Symbol."+e))}).store=p;var m={},y=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_=y,b=function(e){if(!_(e))throw TypeError(e+" is not an object!");return e},w=function(e){try{return!!e()}catch(t){return!0}},x=!w((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),S=y,T=i.exports.document,E=S(T)&&S(T.createElement),k=function(e){return E?T.createElement(e):{}},C=!x&&!w((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),M=y,O=b,I=C,N=function(e,t){if(!M(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!M(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!M(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!M(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},L=Object.defineProperty;m.f=x?Object.defineProperty:function(e,t,n){if(O(e),t=N(t,!0),O(n),I)try{return L(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},P=m,R=A,B=x?function(e,t,n){return P.f(e,t,R(1,n))}:function(e,t,n){return e[t]=n,e},D=e.exports("unscopables"),$=Array.prototype;null==$[D]&&B($,D,{});var F={},W={}.toString,j=function(e){return W.call(e).slice(8,-1)},V=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},z=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==j(e)?e.split(""):Object(e)},H=V,q=function(e){return z(H(e))},U={exports:{}},Y={}.hasOwnProperty,X=function(e,t){return Y.call(e,t)},G=t.exports("native-function-to-string",Function.toString),J=i.exports,K=B,Z=X,Q=h("src"),ee=G,te="toString",ne=(""+ee).split(te);n.exports.inspectSource=function(e){return ee.call(e)},(U.exports=function(e,t,n,r){var i="function"==typeof n;i&&(Z(n,"name")||K(n,"name",t)),e[t]!==n&&(i&&(Z(n,Q)||K(n,Q,e[t]?""+e[t]:ne.join(String(t)))),e===J?e[t]=n:r?e[t]?e[t]=n:K(e,t,n):(delete e[t],K(e,t,n)))})(Function.prototype,te,(function(){return"function"==typeof this&&this[Q]||ee.call(this)}));var re=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},ie=re,ae=i.exports,oe=n.exports,se=B,le=U.exports,ue=function(e,t,n){if(ie(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},ce=function(e,t,n){var r,i,a,o,s=e&ce.F,l=e&ce.G,u=e&ce.S,c=e&ce.P,d=e&ce.B,h=l?ae:u?ae[t]||(ae[t]={}):(ae[t]||{}).prototype,p=l?oe:oe[t]||(oe[t]={}),f=p.prototype||(p.prototype={});for(r in l&&(n=t),n)a=((i=!s&&h&&void 0!==h[r])?h:n)[r],o=d&&i?ue(a,ae):c&&"function"==typeof a?ue(Function.call,a):a,h&&le(h,r,a,e&ce.U),p[r]!=a&&se(p,r,o),c&&f[r]!=a&&(f[r]=a)};ae.core=oe,ce.F=1,ce.G=2,ce.S=4,ce.P=8,ce.B=16,ce.W=32,ce.U=64,ce.R=128;var de,he=ce,pe=Math.ceil,fe=Math.floor,ve=function(e){return isNaN(e=+e)?0:(e>0?fe:pe)(e)},ge=ve,me=Math.min,ye=ve,_e=Math.max,be=Math.min,we=q,xe=function(e){return e>0?me(ge(e),9007199254740991):0},Se=function(e,t){return(e=ye(e))<0?_e(e+t,0):be(e,t)},Te=t.exports("keys"),Ee=h,ke=function(e){return Te[e]||(Te[e]=Ee(e))},Ce=X,Me=q,Oe=(de=!1,function(e,t,n){var r,i=we(e),a=xe(i.length),o=Se(n,a);if(de&&t!=t){for(;a>o;)if((r=i[o++])!=r)return!0}else for(;a>o;o++)if((de||o in i)&&i[o]===t)return de||o||0;return!de&&-1}),Ie=ke("IE_PROTO"),Ne="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Le=function(e,t){var n,r=Me(e),i=0,a=[];for(n in r)n!=Ie&&Ce(r,n)&&a.push(n);for(;t.length>i;)Ce(r,n=t[i++])&&(~Oe(a,n)||a.push(n));return a},Ae=Ne,Pe=Object.keys||function(e){return Le(e,Ae)},Re=m,Be=b,De=Pe,$e=x?Object.defineProperties:function(e,t){Be(e);for(var n,r=De(t),i=r.length,a=0;i>a;)Re.f(e,n=r[a++],t[n]);return e},Fe=i.exports.document,We=Fe&&Fe.documentElement,je=b,Ve=$e,ze=Ne,He=ke("IE_PROTO"),qe=function(){},Ue=function(){var e,t=k("iframe"),n=ze.length;for(t.style.display="none",We.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),Ue=e.F;n--;)delete Ue.prototype[ze[n]];return Ue()},Ye=Object.create||function(e,t){var n;return null!==e?(qe.prototype=je(e),n=new qe,qe.prototype=null,n[He]=e):n=Ue(),void 0===t?n:Ve(n,t)},Xe=m.f,Ge=X,Je=e.exports("toStringTag"),Ke=function(e,t,n){e&&!Ge(e=n?e:e.prototype,Je)&&Xe(e,Je,{configurable:!0,value:t})},Ze=Ye,Qe=A,et=Ke,tt={};B(tt,e.exports("iterator"),(function(){return this}));var nt=V,rt=function(e){return Object(nt(e))},it=X,at=rt,ot=ke("IE_PROTO"),st=Object.prototype,lt=Object.getPrototypeOf||function(e){return e=at(e),it(e,ot)?e[ot]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?st:null},ut=he,ct=U.exports,dt=B,ht=F,pt=function(e,t,n){e.prototype=Ze(tt,{next:Qe(1,n)}),et(e,t+" Iterator")},ft=Ke,vt=lt,gt=e.exports("iterator"),mt=!([].keys&&"next"in[].keys()),yt="keys",_t="values",bt=function(){return this},wt=function(e){$[D][e]=!0},xt=function(e,t){return{value:t,done:!!e}},St=F,Tt=q,Et=function(e,t,n,r,i,a,o){pt(n,t,r);var s,l,u,c=function(e){if(!mt&&e in f)return f[e];switch(e){case yt:case _t:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",h=i==_t,p=!1,f=e.prototype,v=f[gt]||f["@@iterator"]||i&&f[i],g=v||c(i),m=i?h?c("entries"):g:void 0,y="Array"==t&&f.entries||v;if(y&&(u=vt(y.call(new e)))!==Object.prototype&&u.next&&(ft(u,d,!0),"function"!=typeof u[gt]&&dt(u,gt,bt)),h&&v&&v.name!==_t&&(p=!0,g=function(){return v.call(this)}),(mt||p||!f[gt])&&dt(f,gt,g),ht[t]=g,ht[d]=bt,i)if(s={values:h?g:c(_t),keys:a?g:c(yt),entries:m},o)for(l in s)l in f||ct(f,l,s[l]);else ut(ut.P+ut.F*(mt||p),t,s);return s}(Array,"Array",(function(e,t){this._t=Tt(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,xt(1)):xt(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values");St.Arguments=St.Array,wt("keys"),wt("values"),wt("entries");for(var kt=Et,Ct=Pe,Mt=U.exports,Ot=i.exports,It=B,Nt=F,Lt=e.exports,At=Lt("iterator"),Pt=Lt("toStringTag"),Rt=Nt.Array,Bt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Dt=Ct(Bt),$t=0;$t<Dt.length;$t++){var Ft,Wt=Dt[$t],jt=Bt[Wt],Vt=Ot[Wt],zt=Vt&&Vt.prototype;if(zt&&(zt[At]||It(zt,At,Rt),zt[Pt]||It(zt,Pt,Wt),Nt[Wt]=Rt,jt))for(Ft in kt)zt[Ft]||Mt(zt,Ft,kt[Ft],!0)}function Ht(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}var qt=Ht("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),Ut=Ht("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"),Yt=Ht("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function Xt(e){if(dn(e)){for(var t={},n=0;n<e.length;n++){var r=e[n],i=Xt(fn(r)?Kt(r):r);if(i)for(var a in i)t[a]=i[a]}return t}if(gn(e))return e}var Gt=/;(?![^(]*\))/g,Jt=/:(.+)/;function Kt(e){var t={};return e.split(Gt).forEach((e=>{if(e){var n=e.split(Jt);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Zt(e){var t="";if(fn(e))t=e;else if(dn(e))for(var n=0;n<e.length;n++){var r=Zt(e[n]);r&&(t+=r+" ")}else if(gn(e))for(var i in e)e[i]&&(t+=i+" ");return t.trim()}var Qt={},en=[],tn=()=>{},nn=()=>!1,rn=/^on[^a-z]/,an=e=>rn.test(e),on=e=>e.startsWith("onUpdate:"),sn=Object.assign,ln=(e,t)=>{var n=e.indexOf(t);n>-1&&e.splice(n,1)},un=Object.prototype.hasOwnProperty,cn=(e,t)=>un.call(e,t),dn=Array.isArray,hn=e=>"[object Map]"===_n(e),pn=e=>"function"==typeof e,fn=e=>"string"==typeof e,vn=e=>"symbol"==typeof e,gn=e=>null!==e&&"object"==typeof e,mn=e=>gn(e)&&pn(e.then)&&pn(e.catch),yn=Object.prototype.toString,_n=e=>yn.call(e),bn=e=>"[object Object]"===_n(e),wn=e=>fn(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,xn=Ht(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sn=e=>{var t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tn=/-(\w)/g,En=Sn((e=>e.replace(Tn,((e,t)=>t?t.toUpperCase():"")))),kn=/\B([A-Z])/g,Cn=Sn((e=>e.replace(kn,"-$1").toLowerCase())),Mn=Sn((e=>e.charAt(0).toUpperCase()+e.slice(1))),On=Sn((e=>e?"on".concat(Mn(e)):"")),In=(e,t)=>e!==t&&(e==e||t==t),Nn=(e,t)=>{for(var n=0;n<e.length;n++)e[n](t)},Ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},An=e=>{var t=parseFloat(e);return isNaN(t)?e:t},Pn=0;function Rn(e,...t){var n=Date.now(),r=Pn?n-Pn:0;return Pn=n,"[".concat(n,"][").concat(r,"ms][").concat(e,"]:").concat(t.map((e=>JSON.stringify(e))).join(" "))}function Bn(e){return sn({},e.dataset,e.__uniDataset)}function Dn(e){return{passive:e}}function $n(e){var{id:t,offsetTop:n,offsetLeft:r}=e;return{id:t,dataset:Bn(e),offsetTop:n,offsetLeft:r}}function Fn(e){if("function"==typeof e)return window.plus?e():void document.addEventListener("plusready",e)}var Wn=/(?:Once|Passive|Capture)$/;function jn(e){var t,n;if(Wn.test(e))for(t={};n=e.match(Wn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0;return[Cn(e.slice(2)),t]}var Vn=1,zn=2,Hn=4,qn="class",Un="style",Yn=".vShow",Xn=".vOwnerId",Gn=".vRenderjs",Jn="change:";function Kn(e,t=null){var n;return(...r)=>(e&&(n=e.apply(t,r),e=null),n)}function Zn(e,t){var n=t.split("."),r=n[0];return e||(e={}),1===n.length?e[r]:Zn(e[r],n.slice(1).join("."))}var Qn="#007aff",er=/^([a-z-]+:)?\/\//i,tr=/^data:.*,.*/,nr="wxs://",rr="json://";var ir=/^(?:\d)+/,ar=/^(?:\w)+/;var or,sr="zh-Hans",lr="zh-Hant",ur="en",cr="fr",dr="es",hr=Object.prototype.hasOwnProperty,pr=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,r="";for(;n<e.length;){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r}),r="";var a="";for(i=e[n++];void 0!==i&&"}"!==i;)a+=i,i=e[n++];var o="}"===i,s=ir.test(a)?"list":o&&ar.test(a)?"named":"unknown";t.push({value:a,type:s})}else"%"===i?"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,i=Array.isArray(t)?"list":(a=t,null!==a&&"object"==typeof a?"named":"unknown");var a;if("unknown"===i)return n;for(;r<e.length;){var o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(t[o.value])}r++}return n}(n,t)}};function fr(e,t){if(e){if(t[e=e.trim().replace(/_/g,"-")])return e;if(0===(e=e.toLowerCase()).indexOf("zh"))return-1!==e.indexOf("-hans")?sr:-1!==e.indexOf("-hant")?lr:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?lr:sr);var n,r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,[ur,cr,dr]);return r||void 0}}class vr{constructor({locale:e,fallbackLocale:t,messages:n,watcher:r,formater:i}){this.locale=ur,this.fallbackLocale=ur,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||pr,this.messages=n||{},this.setLocale(e),r&&this.watchLocale(r)}setLocale(e){var t=this.locale;this.locale=fr(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){var t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t){this.messages[e]?Object.assign(this.messages[e],t):this.messages[e]=t}t(e,t,n){var r=this.message;return"string"==typeof t?(t=fr(t,this.messages))&&(r=this.messages[t]):n=t,((e,t)=>hr.call(e,t))(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}function gr(){var e;or||(e=plus.os.language,or=function(e="en",t={},n="en"){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e=n);var r=new vr({locale:e||n,fallbackLocale:n,messages:t}),i=(e,t)=>{if("function"!=typeof getApp)i=function(e,t){return r.t(e,t)};else{var n=getApp().$vm;n.$t&&n.$i18n?(function(e,t){e.$i18n&&e.$i18n.vm.$watch("locale",(e=>{t.setLocale(e)}),{immediate:!0})}(n,r),i=function(e,t){var i=n.$i18n,a=i.silentTranslationWarn;i.silentTranslationWarn=!0;var o=n.$t(e,t);return i.silentTranslationWarn=a,o!==e?o:r.t(e,i.locale,t)}):i=function(e,t){return r.t(e,t)}}return i(e,t)};return{i18n:r,t:(e,t)=>i(e,t),add:(e,t)=>r.add(e,t),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}(e));return or}function mr(e,t){return Object.keys(t).reduce(((n,r)=>(n[e+r]=t[r],n)),{})}var yr=Kn((()=>{var e="uni.picker.";gr().add(ur,mr(e,{done:"Done",cancel:"Cancel"})),gr().add(dr,mr(e,{done:"OK",cancel:"Cancelar"})),gr().add(cr,mr(e,{done:"OK",cancel:"Annuler"})),gr().add(sr,mr(e,{done:"完成",cancel:"取消"})),gr().add(lr,mr(e,{done:"完成",cancel:"取消"}))})),_r=Kn((()=>{var e="uni.button.";gr().add(ur,mr(e,{"feedback.title":"feedback","feedback.send":"send"})),gr().add(dr,mr(e,{"feedback.title":"realimentación","feedback.send":"enviar"})),gr().add(cr,mr(e,{"feedback.title":"retour d'information","feedback.send":"envoyer"})),gr().add(sr,mr(e,{"feedback.title":"问题反馈","feedback.send":"发送"})),gr().add(lr,mr(e,{"feedback.title":"問題反饋","feedback.send":"發送"}))})),br=function(){};br.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}};var wr="invokeViewApi",xr="invokeServiceApi",Sr=1,Tr=Object.create(null);function Er(e,t){return e+"."+t}function kr(e,t,n){t=Er(e,t),Tr[t]||(Tr[t]=n)}function Cr({id:e,name:t,args:n},r){t=Er(r,t);var i=t=>{e&&UniViewJSBridge.publishHandler("invokeViewApi."+e,t)},a=Tr[t];a?a(n,i):i({})}var Mr,Or,Ir,Nr=sn((Mr="service",Or=new br,{on:(e,t)=>Or.on(e,t),once:(e,t)=>Or.once(e,t),off:(e,t)=>Or.off(e,t),emit:(e,...t)=>Or.emit(e,...t),subscribe(e,t,n=!1){Or[n?"once":"on"]("".concat(Mr,".").concat(e),t)},unsubscribe(e,t){Or.off("".concat(Mr,".").concat(e),t)},subscribeHandler(e,t,n){Or.emit("".concat(Mr,".").concat(e),t,n)}}),{invokeServiceMethod:(e,t,n)=>{var{subscribe:r,publishHandler:i}=UniViewJSBridge,a=n?Sr++:0;n&&r("invokeServiceApi."+a,n,!0),i(xr,{id:a,name:e,args:t})}}),Lr=Dn(!0);function Ar(){Ir&&(clearTimeout(Ir),Ir=null)}var Pr=0,Rr=0;function Br(e){if(Ar(),1===e.touches.length){var{pageX:t,pageY:n}=e.touches[0];Pr=t,Rr=n,Ir=setTimeout((function(){var t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}}function Dr(e){if(Ir){if(1!==e.touches.length)return Ar();var{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Pr)>10||Math.abs(n-Rr)>10?Ar():void 0}}function $r(e,t){var n=Number(e);return isNaN(n)?t:n}function Fr(){function e(){var e,t,n,r=__uniConfig.globalStyle||{},i=$r(r.rpxCalcMaxDeviceWidth,960),a=$r(r.rpxCalcBaseDeviceWidth,375),o=(e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation),n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n);o=o<=i?o:a,document.documentElement.style.fontSize=o/23.4375+"px"}e(),document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e),window.addEventListener("resize",e)}function Wr(){Fr(),window.addEventListener("touchstart",Br,Lr),window.addEventListener("touchmove",Dr,Lr),window.addEventListener("touchend",Ar,Lr),window.addEventListener("touchcancel",Ar,Lr)}var jr,Vr,zr=w,Hr=he,qr=re,Ur=rt,Yr=w,Xr=[].sort,Gr=[1,2,3];Hr(Hr.P+Hr.F*(Yr((function(){Gr.sort(void 0)}))||!Yr((function(){Gr.sort(null)}))||!((jr=Xr)&&zr((function(){Vr?jr.call(null,(function(){}),1):jr.call(null)})))),"Array",{sort:function(e){return void 0===e?Xr.call(Ur(this)):Xr.call(Ur(this),qr(e))}});var Jr,Kr=new WeakMap,Zr=[],Qr=Symbol(""),ei=Symbol("");function ti(e,t=Qt){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);var n=function(e,t){var n=function(){if(!n.active)return e();if(!Zr.includes(n)){ii(n);try{return oi.push(ai),ai=!0,Zr.push(n),Jr=n,e()}finally{Zr.pop(),li(),Jr=Zr[Zr.length-1]}}};return n.id=ri++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function ni(e){e.active&&(ii(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var ri=0;function ii(e){var{deps:t}=e;if(t.length){for(var n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var ai=!0,oi=[];function si(){oi.push(ai),ai=!1}function li(){var e=oi.pop();ai=void 0===e||e}function ui(e,t,n){if(ai&&void 0!==Jr){var r=Kr.get(e);r||Kr.set(e,r=new Map);var i=r.get(n);i||r.set(n,i=new Set),i.has(Jr)||(i.add(Jr),Jr.deps.push(i))}}function ci(e,t,n,r,i,a){var o=Kr.get(e);if(o){var s=new Set,l=e=>{e&&e.forEach((e=>{(e!==Jr||e.allowRecurse)&&s.add(e)}))};if("clear"===t)o.forEach(l);else if("length"===n&&dn(e))o.forEach(((e,t)=>{("length"===t||t>=r)&&l(e)}));else switch(void 0!==n&&l(o.get(n)),t){case"add":dn(e)?wn(n)&&l(o.get("length")):(l(o.get(Qr)),hn(e)&&l(o.get(ei)));break;case"delete":dn(e)||(l(o.get(Qr)),hn(e)&&l(o.get(ei)));break;case"set":hn(e)&&l(o.get(Qr))}s.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}}var di=Ht("__proto__,__v_isRef,__isVue"),hi=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(vn)),pi=yi(),fi=yi(!1,!0),vi=yi(!0),gi=mi();function mi(){var e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{var n=Array.prototype[t];e[t]=function(...e){for(var t=ra(this),r=0,i=this.length;r<i;r++)ui(t,0,r+"");var a=n.apply(t,e);return-1===a||!1===a?n.apply(t,e.map(ra)):a}})),["push","pop","shift","unshift","splice"].forEach((t=>{var n=Array.prototype[t];e[t]=function(...e){si();var t=n.apply(this,e);return li(),t}})),e}function yi(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?Gi:Xi:t?Yi:Ui).get(n))return n;var a=dn(n);if(!e&&a&&cn(gi,r))return Reflect.get(gi,r,i);var o=Reflect.get(n,r,i);return(vn(r)?hi.has(r):di(r))?o:(e||ui(n,0,r),t?o:oa(o)?!a||!wn(r)?o.value:o:gn(o)?e?Zi(o):Ki(o):o)}}function _i(e=!1){return function(t,n,r,i){var a=t[n];if(!e&&(r=ra(r),a=ra(a),!dn(t)&&oa(a)&&!oa(r)))return a.value=r,!0;var o=dn(t)&&wn(n)?Number(n)<t.length:cn(t,n),s=Reflect.set(t,n,r,i);return t===ra(i)&&(o?In(r,a)&&ci(t,"set",n,r):ci(t,"add",n,r)),s}}var bi={get:pi,set:_i(),deleteProperty:function(e,t){var n=cn(e,t);e[t];var r=Reflect.deleteProperty(e,t);return r&&n&&ci(e,"delete",t,void 0),r},has:function(e,t){var n=Reflect.has(e,t);return vn(t)&&hi.has(t)||ui(e,0,t),n},ownKeys:function(e){return ui(e,0,dn(e)?"length":Qr),Reflect.ownKeys(e)}},wi={get:vi,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},xi=sn({},bi,{get:fi,set:_i(!0)}),Si=e=>gn(e)?Ki(e):e,Ti=e=>gn(e)?Zi(e):e,Ei=e=>e,ki=e=>Reflect.getPrototypeOf(e);function Ci(e,t,n=!1,r=!1){var i=ra(e=e.__v_raw),a=ra(t);t!==a&&!n&&ui(i,0,t),!n&&ui(i,0,a);var{has:o}=ki(i),s=r?Ei:n?Ti:Si;return o.call(i,t)?s(e.get(t)):o.call(i,a)?s(e.get(a)):void(e!==i&&e.get(t))}function Mi(e,t=!1){var n=this.__v_raw,r=ra(n),i=ra(e);return e!==i&&!t&&ui(r,0,e),!t&&ui(r,0,i),e===i?n.has(e):n.has(e)||n.has(i)}function Oi(e,t=!1){return e=e.__v_raw,!t&&ui(ra(e),0,Qr),Reflect.get(e,"size",e)}function Ii(e){e=ra(e);var t=ra(this);return ki(t).has.call(t,e)||(t.add(e),ci(t,"add",e,e)),this}function Ni(e,t){t=ra(t);var n=ra(this),{has:r,get:i}=ki(n),a=r.call(n,e);a||(e=ra(e),a=r.call(n,e));var o=i.call(n,e);return n.set(e,t),a?In(t,o)&&ci(n,"set",e,t):ci(n,"add",e,t),this}function Li(e){var t=ra(this),{has:n,get:r}=ki(t),i=n.call(t,e);i||(e=ra(e),i=n.call(t,e)),r&&r.call(t,e);var a=t.delete(e);return i&&ci(t,"delete",e,void 0),a}function Ai(){var e=ra(this),t=0!==e.size,n=e.clear();return t&&ci(e,"clear",void 0,void 0),n}function Pi(e,t){return function(n,r){var i=this,a=i.__v_raw,o=ra(a),s=t?Ei:e?Ti:Si;return!e&&ui(o,0,Qr),a.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Ri(e,t,n){return function(...r){var i=this.__v_raw,a=ra(i),o=hn(a),s="entries"===e||e===Symbol.iterator&&o,l="keys"===e&&o,u=i[e](...r),c=n?Ei:t?Ti:Si;return!t&&ui(a,0,l?ei:Qr),{next(){var{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function Bi(e){return function(...t){return"delete"!==e&&this}}function Di(){var e={get(e){return Ci(this,e)},get size(){return Oi(this)},has:Mi,add:Ii,set:Ni,delete:Li,clear:Ai,forEach:Pi(!1,!1)},t={get(e){return Ci(this,e,!1,!0)},get size(){return Oi(this)},has:Mi,add:Ii,set:Ni,delete:Li,clear:Ai,forEach:Pi(!1,!0)},n={get(e){return Ci(this,e,!0)},get size(){return Oi(this,!0)},has(e){return Mi.call(this,e,!0)},add:Bi("add"),set:Bi("set"),delete:Bi("delete"),clear:Bi("clear"),forEach:Pi(!0,!1)},r={get(e){return Ci(this,e,!0,!0)},get size(){return Oi(this,!0)},has(e){return Mi.call(this,e,!0)},add:Bi("add"),set:Bi("set"),delete:Bi("delete"),clear:Bi("clear"),forEach:Pi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Ri(i,!1,!1),n[i]=Ri(i,!0,!1),t[i]=Ri(i,!1,!0),r[i]=Ri(i,!0,!0)})),[e,n,t,r]}var[$i,Fi,Wi,ji]=Di();function Vi(e,t){var n=t?e?ji:Wi:e?Fi:$i;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(cn(n,r)&&r in t?n:t,r,i)}var zi={get:Vi(!1,!1)},Hi={get:Vi(!1,!0)},qi={get:Vi(!0,!1)},Ui=new WeakMap,Yi=new WeakMap,Xi=new WeakMap,Gi=new WeakMap;function Ji(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>_n(e).slice(8,-1))(e))}function Ki(e){return e&&e.__v_isReadonly?e:Qi(e,!1,bi,zi,Ui)}function Zi(e){return Qi(e,!0,wi,qi,Xi)}function Qi(e,t,n,r,i){if(!gn(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;var a=i.get(e);if(a)return a;var o=Ji(e);if(0===o)return e;var s=new Proxy(e,2===o?r:n);return i.set(e,s),s}function ea(e){return ta(e)?ea(e.__v_raw):!(!e||!e.__v_isReactive)}function ta(e){return!(!e||!e.__v_isReadonly)}function na(e){return ea(e)||ta(e)}function ra(e){return e&&ra(e.__v_raw)||e}function ia(e){return Ln(e,"__v_skip",!0),e}var aa=e=>gn(e)?Ki(e):e;function oa(e){return Boolean(e&&!0===e.__v_isRef)}function sa(e){return ca(e)}function la(e){return ca(e,!0)}class ua{constructor(e,t){this._rawValue=e,this._shallow=t,this.__v_isRef=!0,this._value=t?e:aa(e)}get value(){return ui(ra(this),0,"value"),this._value}set value(e){In(ra(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:aa(e),ci(ra(this),"set","value",e))}}function ca(e,t=!1){return oa(e)?e:new ua(e,t)}var da={get:(e,t,n)=>{return oa(r=Reflect.get(e,t,n))?r.value:r;var r},set:(e,t,n,r)=>{var i=e[t];return oa(i)&&!oa(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ha(e){return ea(e)?e:new Proxy(e,da)}class pa{constructor(e,t,n){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=ti(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,ci(ra(this),"set","value"))}}),this.__v_isReadonly=n}get value(){var e=ra(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),ui(e,0,"value"),e._value}set value(e){this._setter(e)}}function fa(e,t,n,r){var i;try{i=r?e(...r):e()}catch(a){ga(a,t,n)}return i}function va(e,t,n,r){if(pn(e)){var i=fa(e,t,n,r);return i&&mn(i)&&i.catch((e=>{ga(e,t,n)})),i}for(var a=[],o=0;o<e.length;o++)a.push(va(e[o],t,n,r));return a}function ga(e,t,n,r=!0){t&&t.vnode;if(t){for(var i=t.parent,a=t.proxy,o=n;i;){var s=i.ec;if(s)for(var l=0;l<s.length;l++)if(!1===s[l](e,a,o))return;i=i.parent}var u=t.appContext.config.errorHandler;if(u)return void fa(u,null,10,[e,a,o])}!function(e,t,n,r=!0){e instanceof Error?console.error(e.message+"\n"+e.stack):console.error(e)}(e,0,0,r)}var ma=!1,ya=!1,_a=[],ba=0,wa=[],xa=null,Sa=0,Ta=[],Ea=null,ka=0,Ca=Promise.resolve(),Ma=null,Oa=null;function Ia(e){var t=Ma||Ca;return e?t.then(this?e.bind(this):e):t}function Na(e){if(!(_a.length&&_a.includes(e,ma&&e.allowRecurse?ba+1:ba)||e===Oa)){var t=function(e){for(var t=ba+1,n=_a.length,r=Ba(e);t<n;){var i=t+n>>>1;Ba(_a[i])<r?t=i+1:n=i}return t}(e);t>-1?_a.splice(t,0,e):_a.push(e),La()}}function La(){ma||ya||(ya=!0,Ma=Ca.then(Da))}function Aa(e,t,n,r){dn(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),La()}function Pa(e,t=null){if(wa.length){for(Oa=t,xa=[...new Set(wa)],wa.length=0,Sa=0;Sa<xa.length;Sa++)xa[Sa]();xa=null,Sa=0,Oa=null,Pa(e,t)}}function Ra(e){if(Ta.length){var t=[...new Set(Ta)];if(Ta.length=0,Ea)return void Ea.push(...t);for((Ea=t).sort(((e,t)=>Ba(e)-Ba(t))),ka=0;ka<Ea.length;ka++)Ea[ka]();Ea=null,ka=0}}var Ba=e=>null==e.id?1/0:e.id;function Da(e){ya=!1,ma=!0,Pa(e),_a.sort(((e,t)=>Ba(e)-Ba(t)));try{for(ba=0;ba<_a.length;ba++){var t=_a[ba];t&&!1!==t.active&&fa(t,null,14)}}finally{ba=0,_a.length=0,Ra(),ma=!1,Ma=null,(_a.length||wa.length||Ta.length)&&Da(e)}}function $a(e,t,...n){var r,i=e.vnode.props||Qt,a=n,o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in i){var l="".concat("modelValue"===s?"model":s,"Modifiers"),{number:u,trim:c}=i[l]||Qt;c?a=n.map((e=>e.trim())):u&&(a=n.map(An))}var d=i[r=On(t)]||i[r=On(En(t))];!d&&o&&(d=i[r=On(Cn(t))]),d&&va(d,e,6,a);var h=i[r+"Once"];if(h){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,va(h,e,6,a)}}function Fa(e,t,n=!1){var r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;var a=e.emits,o={},s=!1;if(!pn(e)){var l=e=>{var n=Fa(e,t,!0);n&&(s=!0,sn(o,n))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return a||s?(dn(a)?a.forEach((e=>o[e]=null)):sn(o,a),r.set(e,o),o):(r.set(e,null),null)}function Wa(e,t){return!(!e||!an(t))&&(t=t.slice(2).replace(/Once$/,""),cn(e,t[0].toLowerCase()+t.slice(1))||cn(e,Cn(t))||cn(e,t))}var ja=null,Va=null;function za(e){var t=ja;return ja=e,Va=e&&e.type.__scopeId||null,t}function Ha(e){var t,{type:n,vnode:r,proxy:i,withProxy:a,props:o,propsOptions:[s],slots:l,attrs:u,emit:c,render:d,renderCache:h,data:p,setupState:f,ctx:v,inheritAttrs:g}=e,m=za(e);try{var y;if(4&r.shapeFlag){var _=a||i;t=gs(d.call(_,_,h,o,f,p,v)),y=u}else{var b=n;0,t=gs(b.length>1?b(o,{attrs:u,slots:l,emit:c}):b(o,null)),y=n.props?u:qa(u)}var w=t;if(y&&!1!==g){var x=Object.keys(y),{shapeFlag:S}=w;if(x.length)if(1&S||6&S)s&&x.some(on)&&(y=Ua(y,s)),w=fs(w,y);else 0}0,r.dirs&&(w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),t=w}catch(T){ga(T,e,1),t=ps(as)}return za(m),t}var qa=e=>{var t;for(var n in e)("class"===n||"style"===n||an(n))&&((t||(t={}))[n]=e[n]);return t},Ua=(e,t)=>{var n={};for(var r in e)on(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Ya(e,t,n){var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(var i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]&&!Wa(n,a))return!0}return!1}function Xa(e,t){if(ks){var n=ks.provides,r=ks.parent&&ks.parent.provides;r===n&&(n=ks.provides=Object.create(r)),n[e]=t}else;}function Ga(e,t,n=!1){var r=ks||ja;if(r){var i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&pn(t)?t.call(r.proxy):t}}var Ja={};function Ka(e,t,n){return Za(e,t,n)}function Za(e,t,{immediate:n,deep:r,flush:i,onTrack:a,onTrigger:o}=Qt,s=ks){var l,u,c=!1,d=!1;if(oa(e)?(l=()=>e.value,c=!!e._shallow):ea(e)?(l=()=>e,r=!0):dn(e)?(d=!0,c=e.some(ea),l=()=>e.map((e=>oa(e)?e.value:ea(e)?to(e):pn(e)?fa(e,s,2):void 0))):l=pn(e)?t?()=>fa(e,s,2):()=>{if(!s||!s.isUnmounted)return u&&u(),va(e,s,3,[p])}:tn,t&&r){var h=l;l=()=>to(h())}var p=e=>{u=g.options.onStop=()=>{fa(e,s,4)}},f=d?[]:Ja,v=()=>{if(g.active)if(t){var e=g();(r||c||(d?e.some(((e,t)=>In(e,f[t]))):In(e,f)))&&(u&&u(),va(t,s,3,[e,f===Ja?void 0:f,p]),f=e)}else g()};v.allowRecurse=!!t;var g=ti(l,{lazy:!0,onTrack:a,onTrigger:o,scheduler:"sync"===i?v:"post"===i?()=>Ko(v,s&&s.suspense):()=>{!s||s.isMounted?function(e){Aa(e,xa,wa,Sa)}(v):v()}});return Ps(g,s),t?n?v():f=g():"post"===i?Ko(g,s&&s.suspense):g(),()=>{ni(g),s&&ln(s.effects,g)}}function Qa(e,t,n){var r,i=this.proxy,a=fn(e)?e.includes(".")?eo(i,e):()=>i[e]:e.bind(i,i);return pn(t)?r=t:(r=t.handler,n=t),Za(a,r.bind(i),n,this)}function eo(e,t){var n=t.split(".");return()=>{for(var t=e,r=0;r<n.length&&t;r++)t=t[n[r]];return t}}function to(e,t=new Set){if(!gn(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),oa(e))to(e.value,t);else if(dn(e))for(var n=0;n<e.length;n++)to(e[n],t);else if("[object Set]"===_n(e)||hn(e))e.forEach((e=>{to(e,t)}));else if(bn(e))for(var r in e)to(e[r],t);return e}var no=e=>!!e.type.__asyncLoader,ro=e=>e.type.__isKeepAlive;function io(e,t){oo(e,"a",t)}function ao(e,t){oo(e,"da",t)}function oo(e,t,n=ks){var r=e.__wdc||(e.__wdc=()=>{for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}e()});if(lo(t,r,n),n)for(var i=n.parent;i&&i.parent;)ro(i.parent.vnode)&&so(r,t,n,i),i=i.parent}function so(e,t,n,r){var i=lo(t,e,r,!0);go((()=>{ln(r[t],i)}),n)}function lo(e,t,n=ks,r=!1){if(n){var i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{if(!n.isUnmounted){si(),Ms(n);var i=va(t,n,e,r);return Ms(null),li(),i}});return r?i.unshift(a):i.push(a),a}}var uo=e=>(t,n=ks)=>(!Is||"sp"===e)&&lo(e,t,n),co=uo("bm"),ho=uo("m"),po=uo("bu"),fo=uo("u"),vo=uo("bum"),go=uo("um"),mo=uo("sp"),yo=uo("rtg"),_o=uo("rtc");function bo(e,t=ks){lo("ec",e,t)}var wo=!0;function xo(e){var t=Eo(e),n=e.proxy,r=e.ctx;wo=!1,t.beforeCreate&&So(t.beforeCreate,e,"bc");var i,{data:a,computed:o,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:h,mounted:p,beforeUpdate:f,updated:v,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:_,destroyed:b,unmounted:w,render:x,renderTracked:S,renderTriggered:T,errorCaptured:E,serverPrefetch:k,expose:C,inheritAttrs:M,components:O,directives:I,filters:N}=t;if(c&&function(e,t,n=tn){dn(e)&&(e=Oo(e));for(var r in e){var i=e[r];gn(i)?t[r]="default"in i?Ga(i.from||r,i.default,!0):Ga(i.from||r):t[r]=Ga(i)}}(c,r,null),s)for(var L in s){var A=s[L];pn(A)&&(r[L]=A.bind(n))}if(a&&(i=a.call(n,n),gn(i)&&(e.data=Ki(i))),wo=!0,o){var P=function(e){var t=o[e],i=Rs({get:pn(t)?t.bind(n,n):pn(t.get)?t.get.bind(n,n):tn,set:!pn(t)&&pn(t.set)?t.set.bind(n):tn});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})};for(var R in o)P(R)}if(l)for(var B in l)To(l[B],r,n,B);if(u){var D=pn(u)?u.call(n):u;Reflect.ownKeys(D).forEach((e=>{Xa(e,D[e])}))}function $(e,t){dn(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&So(d,e,"c"),$(co,h),$(ho,p),$(po,f),$(fo,v),$(io,g),$(ao,m),$(bo,E),$(_o,S),$(yo,T),$(vo,_),$(go,w),$(mo,k),dn(C))if(C.length){var F=e.exposed||(e.exposed={});C.forEach((e=>{Object.defineProperty(F,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===tn&&(e.render=x),null!=M&&(e.inheritAttrs=M),O&&(e.components=O),I&&(e.directives=I)}function So(e,t,n){va(dn(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function To(e,t,n,r){var i=r.includes(".")?eo(n,r):()=>n[r];if(fn(e)){var a=t[e];pn(a)&&Ka(i,a)}else if(pn(e))Ka(i,e.bind(n));else if(gn(e))if(dn(e))e.forEach((e=>To(e,t,n,r)));else{var o=pn(e.handler)?e.handler.bind(n):t[e.handler];pn(o)&&Ka(i,o,e)}}function Eo(e){var t,n=e.type,{mixins:r,extends:i}=n,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(n);return l?t=l:a.length||r||i?(t={},a.length&&a.forEach((e=>ko(t,e,s,!0))),ko(t,n,s)):t=n,o.set(n,t),t}function ko(e,t,n,r=!1){var{mixins:i,extends:a}=t;for(var o in a&&ko(e,a,n,!0),i&&i.forEach((t=>ko(e,t,n,!0))),t)if(r&&"expose"===o);else{var s=Co[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Co={data:Mo,props:No,emits:No,methods:No,computed:No,beforeCreate:Io,created:Io,beforeMount:Io,mounted:Io,beforeUpdate:Io,updated:Io,beforeDestroy:Io,destroyed:Io,activated:Io,deactivated:Io,errorCaptured:Io,serverPrefetch:Io,components:No,directives:No,watch:function(e,t){if(!e)return t;if(!t)return e;var n=sn(Object.create(null),e);for(var r in t)n[r]=Io(e[r],t[r]);return n},provide:Mo,inject:function(e,t){return No(Oo(e),Oo(t))}};function Mo(e,t){return t?e?function(){return sn(pn(e)?e.call(this,this):e,pn(t)?t.call(this,this):t)}:t:e}function Oo(e){if(dn(e)){for(var t={},n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Io(e,t){return e?[...new Set([].concat(e,t))]:t}function No(e,t){return e?sn(sn(Object.create(null),e),t):t}function Lo(e,t,n,r=!1){var i={},a={};for(var o in Ln(a,cs,1),e.propsDefaults=Object.create(null),Ao(e,t,i,a),e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:Qi(i,!1,xi,Hi,Yi):e.type.props?e.props=i:e.props=a,e.attrs=a}function Ao(e,t,n,r){var i,[a,o]=e.propsOptions,s=!1;if(t)for(var l in t)if(!xn(l)){var u=t[l],c=void 0;a&&cn(a,c=En(l))?o&&o.includes(c)?(i||(i={}))[c]=u:n[c]=u:Wa(e.emitsOptions,l)||u!==r[l]&&(r[l]=u,s=!0)}if(o)for(var d=ra(n),h=i||Qt,p=0;p<o.length;p++){var f=o[p];n[f]=Po(a,d,f,h[f],e,!cn(h,f))}return s}function Po(e,t,n,r,i,a){var o=e[n];if(null!=o){var s=cn(o,"default");if(s&&void 0===r){var l=o.default;if(o.type!==Function&&pn(l)){var{propsDefaults:u}=i;n in u?r=u[n]:(Ms(i),r=u[n]=l.call(null,t),Ms(null))}else r=l}o[0]&&(a&&!s?r=!1:!o[1]||""!==r&&r!==Cn(n)||(r=!0))}return r}function Ro(e,t,n=!1){var r=t.propsCache,i=r.get(e);if(i)return i;var a=e.props,o={},s=[],l=!1;if(!pn(e)){var u=e=>{l=!0;var[n,r]=Ro(e,t,!0);sn(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return r.set(e,en),en;if(dn(a))for(var c=0;c<a.length;c++){var d=En(a[c]);Bo(d)&&(o[d]=Qt)}else if(a)for(var h in a){var p=En(h);if(Bo(p)){var f=a[h],v=o[p]=dn(f)||pn(f)?{type:f}:f;if(v){var g=Fo(Boolean,v.type),m=Fo(String,v.type);v[0]=g>-1,v[1]=m<0||g<m,(g>-1||cn(v,"default"))&&s.push(p)}}}var y=[o,s];return r.set(e,y),y}function Bo(e){return"$"!==e[0]}function Do(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function $o(e,t){return Do(e)===Do(t)}function Fo(e,t){return dn(t)?t.findIndex((t=>$o(t,e))):pn(t)&&$o(t,e)?0:-1}var Wo=e=>"_"===e[0]||"$stable"===e,jo=e=>dn(e)?e.map(gs):[gs(e)],Vo=(e,t,n)=>{var r=function(e,t=ja,n){if(!t)return e;if(e._n)return e;var r=(...n)=>{r._d&&ss(-1);var i=za(t),a=e(...n);return za(i),r._d&&ss(1),a};return r._n=!0,r._c=!0,r._d=!0,r}((e=>jo(t(e))),n);return r._c=!1,r},zo=(e,t,n)=>{var r=e._ctx;for(var i in e)if(!Wo(i)){var a=e[i];pn(a)?t[i]=Vo(0,a,r):null!=a&&function(){var e=jo(a);t[i]=()=>e}()}},Ho=(e,t)=>{var n=jo(t);e.slots.default=()=>n};function qo(e,t){if(null===ja)return e;for(var n=ja.proxy,r=e.dirs||(e.dirs=[]),i=0;i<t.length;i++){var[a,o,s,l=Qt]=t[i];pn(a)&&(a={mounted:a,updated:a}),r.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:l})}return e}function Uo(e,t,n,r){for(var i=e.dirs,a=t&&t.dirs,o=0;o<i.length;o++){var s=i[o];a&&(s.oldValue=a[o].value);var l=s.dir[r];l&&(si(),va(l,n,8,[e.el,s,e,t]),li())}}function Yo(){return{app:null,config:{isNativeTag:nn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Xo=0;function Go(e,t){return function(n,r=null){null==r||gn(r)||(r=null);var i=Yo(),a=new Set,o=!1,s=i.app={_uid:Xo++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Bs,get config(){return i.config},set config(e){},use:(e,...t)=>(a.has(e)||(e&&pn(e.install)?(a.add(e),e.install(s,...t)):pn(e)&&(a.add(e),e(s,...t))),s),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),s),component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(a,l,u){if(!o){var c=ps(n,r);return c.appContext=i,l&&t?t(c,a):e(c,a,u),o=!0,s._container=a,a.__vue_app__=s,c.component.proxy}},unmount(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}var Jo={scheduler:Na,allowRecurse:!0},Ko=function(e,t){t&&t.pendingBranch?dn(e)?t.effects.push(...e):t.effects.push(e):Aa(e,Ea,Ta,ka)},Zo=(e,t,n,r,i=!1)=>{if(dn(e))e.forEach(((e,a)=>Zo(e,t&&(dn(t)?t[a]:t),n,r,i)));else if(!no(r)||i){var a=4&r.shapeFlag?As(r.component)||r.component.proxy:r.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Qt?s.refs={}:s.refs,d=s.setupState;if(null!=u&&u!==l&&(fn(u)?(c[u]=null,cn(d,u)&&(d[u]=null)):oa(u)&&(u.value=null)),fn(l)){var h=()=>{c[l]=o,cn(d,l)&&(d[l]=o)};o?(h.id=-1,Ko(h,n)):h()}else if(oa(l)){var p=()=>{l.value=o};o?(p.id=-1,Ko(p,n)):p()}else pn(l)&&fa(l,s,12,[o,c])}};function Qo(e){return function(e,t){var n,r,{insert:i,remove:a,patchProp:o,forcePatchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:f,setScopeId:v=tn,cloneNode:g,insertStaticContent:m}=e,y=(e,t,n,r=null,i=null,a=null,o=!1,s=null,l=!1)=>{e&&!us(e,t)&&(r=U(e),j(e,i,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);var{type:u,ref:c,shapeFlag:d}=t;switch(u){case is:_(e,t,n,r);break;case as:b(e,t,n,r);break;case os:null==e&&w(t,n,r,o);break;case rs:N(e,t,n,r,i,a,o,s,l);break;default:1&d?T(e,t,n,r,i,a,o,s,l):6&d?L(e,t,n,r,i,a,o,s,l):(64&d||128&d)&&u.process(e,t,n,r,i,a,o,s,l,X)}null!=c&&i&&Zo(c,e&&e.ref,a,t||e,!t)},_=(e,t,n,r)=>{if(null==e)i(t.el=u(t.children),n,r);else{var a=t.el=e.el;t.children!==e.children&&d(a,t.children)}},b=(e,t,n,r)=>{null==e?i(t.el=c(t.children||""),n,r):t.el=e.el},w=(e,t,n,r)=>{var i=m(e.children,t,n,r,e.staticCache);e.el||(e.staticCache=i),e.el=i[0],e.anchor=i[i.length-1]},x=({el:e,anchor:t},n,r)=>{for(var a;e&&e!==t;)a=f(e),i(e,n,r),e=a;i(t,n,r)},S=({el:e,anchor:t})=>{for(var n;e&&e!==t;)n=f(e),a(e),e=n;a(t)},T=(e,t,n,r,i,a,o,s,l)=>{o=o||"svg"===t.type,null==e?E(t,n,r,i,a,o,s,l):M(e,t,i,a,o,s,l)},E=(e,t,n,r,a,s,u,c)=>{var d,p,{type:f,props:v,shapeFlag:m,transition:y,patchFlag:_,dirs:b}=e;if(e.el&&void 0!==g&&-1===_)d=e.el=g(e.el);else{if(d=e.el=l(e.type,s,v&&v.is,v),8&m?h(d,e.children):16&m&&C(e.children,d,null,r,a,s&&"foreignObject"!==f,u,c||!!e.dynamicChildren),b&&Uo(e,null,r,"created"),v){for(var w in v)xn(w)||o(d,w,null,v[w],s,e.children,r,a,q);(p=v.onVnodeBeforeMount)&&es(p,r,e)}k(d,e,e.scopeId,u,r)}Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1}),b&&Uo(e,null,r,"beforeMount");var x=(!a||a&&!a.pendingBranch)&&y&&!y.persisted;x&&y.beforeEnter(d),i(d,t,n),((p=v&&v.onVnodeMounted)||x||b)&&Ko((()=>{p&&es(p,r,e),x&&y.enter(d),b&&Uo(e,null,r,"mounted")}),a)},k=(e,t,n,r,i)=>{if(n&&v(e,n),r)for(var a=0;a<r.length;a++)v(e,r[a]);if(i&&t===i.subTree){var o=i.vnode;k(e,o,o.scopeId,o.slotScopeIds,i.parent)}},C=(e,t,n,r,i,a,o,s,l=0)=>{for(var u=l;u<e.length;u++){var c=e[u]=s?ms(e[u]):gs(e[u]);y(null,c,t,n,r,i,a,o,s)}},M=(e,t,n,r,i,a,l)=>{var u=t.el=e.el,{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;var f,v=e.props||Qt,g=t.props||Qt;if((f=g.onVnodeBeforeUpdate)&&es(f,n,t,e),p&&Uo(t,e,n,"beforeUpdate"),c>0){if(16&c)I(u,t,v,g,n,r,i);else if(2&c&&v.class!==g.class&&o(u,"class",null,g.class,i),4&c&&o(u,"style",v.style,g.style,i),8&c)for(var m=t.dynamicProps,y=0;y<m.length;y++){var _=m[y],b=v[_],w=g[_];(w!==b||s&&s(u,_))&&o(u,_,b,w,i,e.children,n,r,q)}1&c&&e.children!==t.children&&h(u,t.children)}else l||null!=d||I(u,t,v,g,n,r,i);var x=i&&"foreignObject"!==t.type;d?O(e.dynamicChildren,d,u,n,r,x,a):l||D(e,t,u,null,n,r,x,a,!1),((f=g.onVnodeUpdated)||p)&&Ko((()=>{f&&es(f,n,t,e),p&&Uo(t,e,n,"updated")}),r)},O=(e,t,n,r,i,a,o)=>{for(var s=0;s<t.length;s++){var l=e[s],u=t[s],c=l.el&&(l.type===rs||!us(l,u)||6&l.shapeFlag||64&l.shapeFlag)?p(l.el):n;y(l,u,c,null,r,i,a,o,!0)}},I=(e,t,n,r,i,a,l)=>{if(n!==r){for(var u in r)if(!xn(u)){var c=r[u],d=n[u];(c!==d||s&&s(e,u))&&o(e,u,d,c,l,t.children,i,a,q)}if(n!==Qt)for(var h in n)xn(h)||h in r||o(e,h,n[h],null,l,t.children,i,a,q)}},N=(e,t,n,r,a,o,s,l,c)=>{var d=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u(""),{patchFlag:p,dynamicChildren:f,slotScopeIds:v}=t;f&&(c=!0),v&&(l=l?l.concat(v):v),null==e?(i(d,n,r),i(h,n,r),C(t.children,n,h,a,o,s,l,c)):p>0&&64&p&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,n,a,o,s,l),(null!=t.key||a&&t===a.subTree)&&ts(e,t,!0)):D(e,t,n,h,a,o,s,l,c)},L=(e,t,n,r,i,a,o,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,o,l):A(t,n,r,i,a,o,l):P(e,t,l)},A=(e,t,n,r,i,a,o)=>{var s=e.component=function(e,t,n){var r=e.type,i=(t?t.appContext:e.appContext)||Ts,a={uid:Es++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ro(r,i),emitsOptions:Fa(r,i),emit:null,emitted:null,propsDefaults:Qt,inheritAttrs:r.inheritAttrs,ctx:Qt,data:Qt,props:Qt,attrs:Qt,slots:Qt,refs:Qt,setupState:Qt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=$a.bind(null,a),a}(e,r,i);if(ro(e)&&(s.ctx.renderer=X),function(e,t=!1){Is=t;var{props:n,children:r}=e.vnode,i=Os(e);Lo(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){var n=t._;n?(e.slots=ra(t),Ln(t,"_",n)):zo(t,e.slots={})}else e.slots={},t&&Ho(e,t);Ln(e.slots,cs,1)})(e,r);var a=i?function(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=ia(new Proxy(e.ctx,xs));var{setup:r}=n;if(r){var i=e.setupContext=r.length>1?function(e){var t=t=>{e.exposed=t||{}};return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:t}}(e):null;ks=e,si();var a=fa(r,e,0,[e.props,i]);if(li(),ks=null,mn(a)){var o=()=>{ks=null};if(a.then(o,o),t)return a.then((t=>{Ns(e,t)})).catch((t=>{ga(t,e,0)}));e.asyncDep=a}else Ns(e,a)}else Ls(e)}(e,t):void 0;Is=!1}(s),s.asyncDep){if(i&&i.registerDep(s,R),!e.el){var l=s.subTree=ps(as);b(null,l,t,n)}}else R(s,e,t,n,i,a,o)},P=(e,t,n)=>{var r,i,a=t.component=e.component;if(function(e,t,n){var{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==o&&(r?!o||Ya(r,o,u):!!o);if(1024&l)return!0;if(16&l)return r?Ya(r,o,u):!!o;if(8&l)for(var c=t.dynamicProps,d=0;d<c.length;d++){var h=c[d];if(o[h]!==r[h]&&!Wa(u,h))return!0}return!1}(e,t,n)){if(a.asyncDep&&!a.asyncResolved)return void B(a,t,n);a.next=t,r=a.update,(i=_a.indexOf(r))>ba&&_a.splice(i,1),a.update()}else t.component=e.component,t.el=e.el,a.vnode=t},R=(e,t,n,i,a,o,s)=>{e.update=ti((function(){if(e.isMounted){var l,{next:u,bu:c,u:d,parent:h,vnode:f}=e,v=u;u?(u.el=f.el,B(e,u,s)):u=f,c&&Nn(c),(l=u.props&&u.props.onVnodeBeforeUpdate)&&es(l,h,u,f);var g=Ha(e),m=e.subTree;e.subTree=g,y(m,g,p(m.el),U(m),e,a,o),u.el=g.el,null===v&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,g.el),d&&Ko(d,a),(l=u.props&&u.props.onVnodeUpdated)&&Ko((()=>es(l,h,u,f)),a)}else{var _,{el:b,props:w}=t,{bm:x,m:S,parent:T}=e;if(x&&Nn(x),(_=w&&w.onVnodeBeforeMount)&&es(_,T,t),b&&r){var E=()=>{e.subTree=Ha(e),r(b,e.subTree,e,a,null)};no(t)?t.type.__asyncLoader().then((()=>!e.isUnmounted&&E())):E()}else{var k=e.subTree=Ha(e);y(null,k,n,i,e,a,o),t.el=k.el}if(S&&Ko(S,a),_=w&&w.onVnodeMounted){var C=t;Ko((()=>es(_,T,C)),a)}256&t.shapeFlag&&e.a&&Ko(e.a,a),e.isMounted=!0,t=n=i=null}}),Jo)},B=(e,t,n)=>{t.component=e;var r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){var{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=ra(i),[l]=e.propsOptions,u=!1;if(!(r||o>0)||16&o){var c;for(var d in Ao(e,t,i,a)&&(u=!0),s)t&&(cn(t,d)||(c=Cn(d))!==d&&cn(t,c))||(l?!n||void 0===n[d]&&void 0===n[c]||(i[d]=Po(l,s,d,void 0,e,!0)):delete i[d]);if(a!==s)for(var h in a)t&&cn(t,h)||(delete a[h],u=!0)}else if(8&o)for(var p=e.vnode.dynamicProps,f=0;f<p.length;f++){var v=p[f],g=t[v];if(l)if(cn(a,v))g!==a[v]&&(a[v]=g,u=!0);else{var m=En(v);i[m]=Po(l,s,m,g,e,!1)}else g!==a[v]&&(a[v]=g,u=!0)}u&&ci(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{var{vnode:r,slots:i}=e,a=!0,o=Qt;if(32&r.shapeFlag){var s=t._;s?n&&1===s?a=!1:(sn(i,t),n||1!==s||delete i._):(a=!t.$stable,zo(t,i)),o=t}else t&&(Ho(e,t),o={default:1});if(a)for(var l in i)Wo(l)||l in o||delete i[l]})(e,t.children,n),si(),Pa(void 0,e.update),li()},D=(e,t,n,r,i,a,o,s,l=!1)=>{var u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void F(u,d,n,r,i,a,o,s,l);if(256&p)return void $(u,d,n,r,i,a,o,s,l)}8&f?(16&c&&q(u,i,a),d!==u&&h(n,d)):16&c?16&f?F(u,d,n,r,i,a,o,s,l):q(u,i,a,!0):(8&c&&h(n,""),16&f&&C(d,n,r,i,a,o,s,l))},$=(e,t,n,r,i,a,o,s,l)=>{t=t||en;var u,c=(e=e||en).length,d=t.length,h=Math.min(c,d);for(u=0;u<h;u++){var p=t[u]=l?ms(t[u]):gs(t[u]);y(e[u],p,n,null,i,a,o,s,l)}c>d?q(e,i,a,!0,!1,h):C(t,n,r,i,a,o,s,l,h)},F=(e,t,n,r,i,a,o,s,l)=>{for(var u=0,c=t.length,d=e.length-1,h=c-1;u<=d&&u<=h;){var p=e[u],f=t[u]=l?ms(t[u]):gs(t[u]);if(!us(p,f))break;y(p,f,n,null,i,a,o,s,l),u++}for(;u<=d&&u<=h;){var v=e[d],g=t[h]=l?ms(t[h]):gs(t[h]);if(!us(v,g))break;y(v,g,n,null,i,a,o,s,l),d--,h--}if(u>d){if(u<=h)for(var m=h+1,_=m<c?t[m].el:r;u<=h;)y(null,t[u]=l?ms(t[u]):gs(t[u]),n,_,i,a,o,s,l),u++}else if(u>h)for(;u<=d;)j(e[u],i,a,!0),u++;else{var b,w=u,x=u,S=new Map;for(u=x;u<=h;u++){var T=t[u]=l?ms(t[u]):gs(t[u]);null!=T.key&&S.set(T.key,u)}var E=0,k=h-x+1,C=!1,M=0,O=new Array(k);for(u=0;u<k;u++)O[u]=0;for(u=w;u<=d;u++){var I=e[u];if(E>=k)j(I,i,a,!0);else{var N=void 0;if(null!=I.key)N=S.get(I.key);else for(b=x;b<=h;b++)if(0===O[b-x]&&us(I,t[b])){N=b;break}void 0===N?j(I,i,a,!0):(O[N-x]=u+1,N>=M?M=N:C=!0,y(I,t[N],n,null,i,a,o,s,l),E++)}}var L=C?function(e){var t,n,r,i,a,o=e.slice(),s=[0],l=e.length;for(t=0;t<l;t++){var u=e[t];if(0!==u){if(e[n=s[s.length-1]]<u){o[t]=n,s.push(t);continue}for(r=0,i=s.length-1;r<i;)e[s[a=(r+i)/2|0]]<u?r=a+1:i=a;u<e[s[r]]&&(r>0&&(o[t]=s[r-1]),s[r]=t)}}r=s.length,i=s[r-1];for(;r-- >0;)s[r]=i,i=o[i];return s}(O):en;for(b=L.length-1,u=k-1;u>=0;u--){var A=x+u,P=t[A],R=A+1<c?t[A+1].el:r;0===O[u]?y(null,P,n,R,i,a,o,s,l):C&&(b<0||u!==L[b]?W(P,n,R,2):b--)}}},W=(e,t,n,r,a=null)=>{var{el:o,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)W(e.component.subTree,t,n,r);else if(128&c)e.suspense.move(t,n,r);else if(64&c)s.move(e,t,n,X);else if(s!==rs){if(s!==os)if(2!==r&&1&c&&l)if(0===r)l.beforeEnter(o),i(o,t,n),Ko((()=>l.enter(o)),a);else{var{leave:d,delayLeave:h,afterLeave:p}=l,f=()=>i(o,t,n),v=()=>{d(o,(()=>{f(),p&&p()}))};h?h(o,f,v):v()}else i(o,t,n);else x(e,t,n)}else{i(o,t,n);for(var g=0;g<u.length;g++)W(u[g],t,n,r);i(e.anchor,t,n)}},j=(e,t,n,r=!1,i=!1)=>{var{type:a,props:o,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:h}=e;if(null!=s&&Zo(s,null,n,e,!0),256&c)t.ctx.deactivate(e);else{var p,f=1&c&&h;if((p=o&&o.onVnodeBeforeUnmount)&&es(p,t,e),6&c)H(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);f&&Uo(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,i,X,r):u&&(a!==rs||d>0&&64&d)?q(u,t,n,!1,!0):(a===rs&&(128&d||256&d)||!i&&16&c)&&q(l,t,n),r&&V(e)}((p=o&&o.onVnodeUnmounted)||f)&&Ko((()=>{p&&es(p,t,e),f&&Uo(e,null,t,"unmounted")}),n)}},V=e=>{var{type:t,el:n,anchor:r,transition:i}=e;if(t!==rs)if(t!==os){var o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var{leave:s,delayLeave:l}=i,u=()=>s(n,o);l?l(e.el,o,u):u()}else o()}else S(e);else z(n,r)},z=(e,t)=>{for(var n;e!==t;)n=f(e),a(e),e=n;a(t)},H=(e,t,n)=>{var{bum:r,effects:i,update:a,subTree:o,um:s}=e;if(r&&Nn(r),i)for(var l=0;l<i.length;l++)ni(i[l]);a&&(ni(a),j(o,e,t,n)),s&&Ko(s,t),Ko((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},q=(e,t,n,r=!1,i=!1,a=0)=>{for(var o=a;o<e.length;o++)j(e[o],t,n,r,i)},U=e=>6&e.shapeFlag?U(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),Y=(e,t,n)=>{if(null==e)t._vnode&&j(t._vnode,null,null,!0);else{var r=t.__vueParent;y(t._vnode||null,e,t,null,r,null,n)}t._vnode=e},X={p:y,um:j,m:W,r:V,mt:A,mc:C,pc:D,pbc:O,n:U,o:e};t&&([n,r]=t(X));return{render:Y,hydrate:n,createApp:Go(Y,n)}}(e)}function es(e,t,n,r=null){va(e,t,7,[n,r])}function ts(e,t,n=!1){var r=e.children,i=t.children;if(dn(r)&&dn(i))for(var a=0;a<r.length;a++){var o=r[a],s=i[a];1&s.shapeFlag&&!s.dynamicChildren&&((s.patchFlag<=0||32===s.patchFlag)&&((s=i[a]=ms(i[a])).el=o.el),n||ts(o,s))}}var ns=Symbol(),rs=Symbol(void 0),is=Symbol(void 0),as=Symbol(void 0),os=Symbol(void 0);function ss(e){e}function ls(e){return!!e&&!0===e.__v_isVNode}function us(e,t){return e.type===t.type&&e.key===t.key}var cs="__vInternal",ds=({key:e})=>null!=e?e:null,hs=({ref:e})=>null!=e?fn(e)||oa(e)||pn(e)?{i:ja,r:e}:e:null,ps=function(e,t=null,n=null,r=0,i=null,a=!1){e&&e!==ns||(e=as);if(ls(e)){var o=fs(e,t,!0);return n&&ys(o,n),o}s=e,pn(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){(na(t)||cs in t)&&(t=sn({},t));var{class:l,style:u}=t;l&&!fn(l)&&(t.class=Zt(l)),gn(u)&&(na(u)&&!dn(u)&&(u=sn({},u)),t.style=Xt(u))}var c=fn(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:gn(e)?4:pn(e)?2:0,d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ds(t),ref:t&&hs(t),scopeId:Va,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,shapeFlag:c,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};ys(d,n),128&c&&e.normalize(d);0;return d};function fs(e,t,n=!1){var{props:r,ref:i,patchFlag:a,children:o}=e,s=t?_s(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&ds(s),ref:t&&t.ref?n&&i?dn(i)?i.concat(hs(t)):[i,hs(t)]:hs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,staticCache:e.staticCache,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rs?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fs(e.ssContent),ssFallback:e.ssFallback&&fs(e.ssFallback),el:e.el,anchor:e.anchor}}function vs(e=" ",t=0){return ps(is,null,e,t)}function gs(e){return null==e||"boolean"==typeof e?ps(as):dn(e)?ps(rs,null,e.slice()):"object"==typeof e?ms(e):ps(is,null,String(e))}function ms(e){return null===e.el?e:fs(e)}function ys(e,t){var n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(dn(t))n=16;else if("object"==typeof t){if(1&r||64&r){var i=t.default;return void(i&&(i._c&&(i._d=!1),ys(e,i()),i._c&&(i._d=!0)))}n=32;var a=t._;a||cs in t?3===a&&ja&&(1===ja.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=ja}else pn(t)?(t={default:t,_ctx:ja},n=32):(t=String(t),64&r?(n=16,t=[vs(t)]):n=8);e.children=t,e.shapeFlag|=n}function _s(...e){for(var t=sn({},e[0]),n=1;n<e.length;n++){var r=e[n];for(var i in r)if("class"===i)t.class!==r.class&&(t.class=Zt([t.class,r.class]));else if("style"===i)t.style=Xt([t.style,r.style]);else if(an(i)){var a=t[i],o=r[i];a!==o&&(t[i]=a?[].concat(a,o):o)}else""!==i&&(t[i]=r[i])}return t}var bs=e=>e?Os(e)?As(e)||e.proxy:bs(e.parent):null,ws=sn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bs(e.parent),$root:e=>bs(e.root),$emit:e=>e.emit,$options:e=>Eo(e),$forceUpdate:e=>()=>Na(e.update),$nextTick:e=>Ia.bind(e.proxy),$watch:e=>Qa.bind(e)}),xs={get({_:e},t){var n,{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:l,appContext:u}=e;if("$"!==t[0]){var c=s[t];if(void 0!==c)switch(c){case 0:return i[t];case 1:return a[t];case 3:return r[t];case 2:return o[t]}else{if(i!==Qt&&cn(i,t))return s[t]=0,i[t];if(a!==Qt&&cn(a,t))return s[t]=1,a[t];if((n=e.propsOptions[0])&&cn(n,t))return s[t]=2,o[t];if(r!==Qt&&cn(r,t))return s[t]=3,r[t];wo&&(s[t]=4)}}var d,h,p=ws[t];return p?("$attrs"===t&&ui(e,0,t),p(e)):(d=l.__cssModules)&&(d=d[t])?d:r!==Qt&&cn(r,t)?(s[t]=3,r[t]):(h=u.config.globalProperties,cn(h,t)?h[t]:void 0)},set({_:e},t,n){var{data:r,setupState:i,ctx:a}=e;if(i!==Qt&&cn(i,t))i[t]=n;else if(r!==Qt&&cn(r,t))r[t]=n;else if(cn(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},o){var s;return void 0!==n[o]||e!==Qt&&cn(e,o)||t!==Qt&&cn(t,o)||(s=a[0])&&cn(s,o)||cn(r,o)||cn(ws,o)||cn(i.config.globalProperties,o)}},Ss=sn({},xs,{get(e,t){if(t!==Symbol.unscopables)return xs.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!qt(t)}),Ts=Yo(),Es=0;var ks=null,Cs=()=>ks||ja,Ms=e=>{ks=e};function Os(e){return 4&e.vnode.shapeFlag}var Is=!1;function Ns(e,t,n){pn(t)?e.render=t:gn(t)&&(e.setupState=ha(t)),Ls(e)}function Ls(e,t,n){var r=e.type;e.render||(e.render=r.render||tn,e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ss))),ks=e,si(),xo(e),li(),ks=null}function As(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ha(ia(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ws?ws[n](e):void 0}))}function Ps(e,t=ks){t&&(t.effects||(t.effects=[])).push(e)}function Rs(e){var t=function(e){var t,n;return pn(e)?(t=e,n=tn):(t=e.get,n=e.set),new pa(t,n,pn(e)||!e.set)}(e);return Ps(t.effect),t}var Bs="3.1.4",Ds="http://www.w3.org/2000/svg",$s="undefined"!=typeof document?document:null,Fs={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{var i=t?$s.createElementNS(Ds,e):$s.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>$s.createTextNode(e),createComment:e=>$s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$s.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,i){if(i){for(var a,o,s=0,l=i.length;s<l;s++){var u=i[s].cloneNode(!0);0===s&&(a=u),s===l-1&&(o=u),t.insertBefore(u,n)}return[a,o]}var c=n?n.previousSibling:t.lastChild;if(n){var d,h=!1;n instanceof Element?d=n:(h=!0,d=r?$s.createElementNS(Ds,"g"):$s.createElement("div"),t.insertBefore(d,n)),d.insertAdjacentHTML("beforebegin",e),h&&t.removeChild(d)}else t.insertAdjacentHTML("beforeend",e);for(var p=c?c.nextSibling:t.firstChild,f=n?n.previousSibling:t.lastChild,v=[];p&&(v.push(p),p!==f);)p=p.nextSibling;return v}};var Ws=/\s*!important$/;function js(e,t,n){if(dn(n))n.forEach((n=>js(e,t,n)));else if(n=qs(n),t.startsWith("--"))e.setProperty(t,n);else{var r=function(e,t){var n=zs[t];if(n)return n;var r=En(t);if("filter"!==r&&r in e)return zs[t]=r;r=Mn(r);for(var i=0;i<Vs.length;i++){var a=Vs[i]+r;if(a in e)return zs[t]=a}return t}(e,t);Ws.test(n)?e.setProperty(Cn(r),n.replace(Ws,""),"important"):e[r]=n}}var Vs=["Webkit","Moz","ms"],zs={};var Hs=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,qs=e=>"function"!=typeof rpx2px?e:fn(e)?e.replace(Hs,((e,t)=>rpx2px(t)+"px")):e,Us="http://www.w3.org/1999/xlink";var Ys=Date.now,Xs=!1;if("undefined"!=typeof window){Ys()>document.createEvent("Event").timeStamp&&(Ys=()=>performance.now());var Gs=navigator.userAgent.match(/firefox\/(\d+)/i);Xs=!!(Gs&&Number(Gs[1])<=53)}var Js=0,Ks=Promise.resolve(),Zs=()=>{Js=0};function Qs(e,t,n,r,i=null){var a=e._vei||(e._vei={}),o=a[t];if(r&&o)o.value=r;else{var[s,l]=function(e){var t;if(el.test(e)){var n;for(t={};n=e.match(el);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Cn(e.slice(2)),t]}(t);if(r)!function(e,t,n,r){e.addEventListener(t,n,r)}(e,s,a[t]=function(e,t){var n=e=>{var r=e.timeStamp||Ys();(Xs||r>=n.attached-1)&&va(function(e,t){if(dn(t)){var n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Js||(Ks.then(Zs),Js=Ys()))(),n}(r,i),l);else o&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,s,o,l),a[t]=void 0)}}var el=/(?:Once|Passive|Capture)$/;var tl=/^on[a-z]/;var nl=["ctrl","shift","alt","meta"],rl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>nl.some((n=>e["".concat(n,"Key")]&&!t.includes(n)))},il=(e,t)=>(n,...r)=>{for(var i=0;i<t.length;i++){var a=rl[t[i]];if(a&&a(n,t))return}return e(n,...r)},al={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ol(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ol(e,!0),r.enter(e)):r.leave(e,(()=>{ol(e,!1)})):ol(e,t))},beforeUnmount(e,{value:t}){ol(e,t)}};function ol(e,t){e.style.display=t?e._vod:"none"}var sl,ll=sn({patchProp:(e,t,n,r,i=!1,a,o,s,l)=>{switch(t){case"class":!function(e,t,n){if(null==t&&(t=""),n)e.setAttribute("class",t);else{var r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),e.className=t}}(e,r,i);break;case"style":!function(e,t,n){var r=e.style;if(n)if(fn(n)){if(t!==n){var i=r.display;r.cssText=qs(n),"_vod"in e&&(r.display=i)}}else{for(var a in n)js(r,a,n[a]);if(t&&!fn(t))for(var o in t)null==n[o]&&js(r,o,"")}else e.removeAttribute("style")}(e,n,r);break;default:an(t)?on(t)||Qs(e,t,0,r,o):function(e,t,n,r){if(r)return"innerHTML"===t||!!(t in e&&tl.test(t)&&pn(n));if("spellcheck"===t||"draggable"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(tl.test(t)&&fn(n))return!1;return t in e}(e,t,r,i)?function(e,t,n,r,i,a,o){if("innerHTML"===t||"textContent"===t)return r&&o(r,i,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;var s=null==n?"":n;return e.value!==s&&(e.value=s),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){var l=typeof e[t];if(""===n&&"boolean"===l)return void(e[t]=!0);if(null==n&&"string"===l)return e[t]="",void e.removeAttribute(t);if("number"===l)return e[t]=0,void e.removeAttribute(t)}try{e[t]=n}catch(u){}}(e,t,r,a,o,s,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Us,t.slice(6,t.length)):e.setAttributeNS(Us,t,n);else{var a=Ut(t);null==n||a&&!1===n?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}(e,t,r,i))}},forcePatchProp:(e,t)=>"value"===t},Fs);var ul=(...e)=>{var t=(sl||(sl=Qo(ll))).createApp(...e),{mount:n}=t;return t.mount=e=>{var r=function(e){if(fn(e)){return document.querySelector(e)}return e}(e);if(r){var i=t._component;pn(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";var a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a}},t};var cl,dl,hl=["top","left","right","bottom"],pl={};function fl(){return dl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function vl(){if(dl="string"==typeof dl?dl:fl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var r=document.createElement("div");i(r,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),hl.forEach((function(e){o(r,e)})),document.body.appendChild(r),a(),cl=!0}else hl.forEach((function(e){pl[e]=0}));function i(e,t){var n=e.style;Object.keys(t).forEach((function(e){var r=t[e];n[e]=r}))}function a(t){t?e.push(t):e.forEach((function(e){e()}))}function o(e,n){var r=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),u={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:dl+"(safe-area-inset-"+n+")"};i(r,u),i(o,u),i(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),r.appendChild(s),o.appendChild(l),e.appendChild(r),e.appendChild(o),a((function(){r.scrollTop=o.scrollTop=1e4;var e=r.scrollTop,i=o.scrollTop;function a(){this.scrollTop!==(this===r?e:i)&&(r.scrollTop=o.scrollTop=1e4,e=r.scrollTop,i=o.scrollTop,function(e){ml.length||setTimeout((function(){var e={};ml.forEach((function(t){e[t]=pl[t]})),ml.length=0,yl.forEach((function(t){t(e)}))}),0);ml.push(e)}(n))}r.addEventListener("scroll",a,t),o.addEventListener("scroll",a,t)}));var c=getComputedStyle(r);Object.defineProperty(pl,n,{configurable:!0,get:function(){return parseFloat(c.paddingBottom)}})}}function gl(e){return cl||vl(),pl[e]}var ml=[];var yl=[];var _l={get support(){return 0!=("string"==typeof dl?dl:fl()).length},get top(){return gl("top")},get left(){return gl("left")},get right(){return gl("right")},get bottom(){return gl("bottom")},onChange:function(e){fl()&&(cl||vl(),"function"==typeof e&&yl.push(e))},offChange:function(e){var t=yl.indexOf(e);t>=0&&yl.splice(t,1)}},bl=il((()=>{}),["prevent"]);function wl(){var e=document.documentElement.style,t=parseInt(e.getPropertyValue("--window-top"));return t?t+_l.top:0}function xl(e){return Symbol(e)}function Sl(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Tl(e,t=!1){if(t)return function(e){if(!Sl(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>uni.upx2px(parseFloat(t))+"px"))}(e);if("string"==typeof e){var n=parseInt(e)||0;return Sl(e)?uni.upx2px(n):n}return e}var El,kl="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z";function Cl(e,t="#000",n=27){return ps("svg",{width:n,height:n,viewBox:"0 0 32 32"},[ps("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Ml(){return Ol()}function Ol(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function Il(e){e.preventDefault()}var Nl=0;function Ll({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){var r=!1,i=!1,a=!0,o=()=>{function o(){if((()=>{var{scrollHeight:e}=document.documentElement,t=window.innerHeight,r=window.scrollY,a=r>0&&e>t&&r+t+n>=e,o=Math.abs(e-Nl)>n;return!a||i&&!o?(!a&&i&&(i=!1),!1):(Nl=e,i=!0,!0)})())return t&&t(),a=!1,setTimeout((function(){a=!0}),350),!0}e&&e(window.pageYOffset),t&&a&&(o()||(El=setTimeout(o,300))),r=!1};return function(){clearTimeout(El),r||requestAnimationFrame(o),r=!0}}function Al(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Al(e,t.substr(2));for(var n=t.split("/"),r=n.length,i=0;i<r&&".."===n[i];i++);n.splice(0,i),t=n.join("/");var a=e.length>0?e.split("/"):[];return a.splice(a.length-i-1,i+1),"/"+a.concat(n).join("/")}class Pl{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=e.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(this.$el&&e){var t=this.$el.querySelector(e);return t&&t.__vueParentComponent&&Rl(t.__vueParentComponent.proxy,!1)}}selectAllComponents(e){if(!this.$el||!e)return[];for(var t=[],n=this.$el.querySelectorAll(e),r=0;r<n.length;r++){var i=n[r];i.__vueParentComponent&&t.push(Rl(i.__vueParentComponent.proxy,!1))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){var{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){var{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",function(e){var t="";if(!e)return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:Cn(n);(fn(r)||"number"==typeof r&&Yt(i))&&(t+="".concat(i,":").concat(r,";"))}return t}(e))}setStyle(e){return this.$el&&e?("string"==typeof e&&(e=Kt(e)),bn(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;var t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;var{__wxsAddClass:t}=this.$el;if(t){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var r=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===r.indexOf(e)&&(r.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){var n=this.$vm[e];pn(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&UniViewJSBridge.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){var t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Rl(e,t=!0){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Pl(e)),e.$el.__wxsComponentDescriptor}function Bl(e,t){return Rl(e,t)}function Dl(e,t,n){var{currentTarget:r}=e;if(!(e instanceof Event&&r instanceof HTMLElement))return[e];if(0!==r.tagName.indexOf("UNI-"))return[e];var i=Fl(e);if("click"===e.type)!function(e,t){var{x:n,y:r}=t,i=wl();e.detail={x:n,y:r-i},e.touches=e.changedTouches=[Wl(t)]}(i,e);else if(e instanceof TouchEvent){var a=wl();i.touches=jl(e.touches,a),i.changedTouches=jl(e.changedTouches,a)}return[i]}function $l(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function Fl(e){var{type:t,timeStamp:n,target:r,currentTarget:i}=e,a={type:t,timeStamp:n,target:$n($l(r)),detail:{},currentTarget:$n(i)};return e._stopped&&(a._stopped=!0),e.type.startsWith("touch")&&(a.touches=e.touches,a.changedTouches=e.changedTouches),a}function Wl(e){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}function jl(e,t){for(var n=[],r=0;r<e.length;r++){var{identifier:i,pageX:a,pageY:o,clientX:s,clientY:l,force:u}=e[r];n.push({identifier:i,pageX:a,pageY:o-t,clientX:s,clientY:l-t,force:u||0})}return n}var Vl="vdSync",zl=sn(Nr,{publishHandler:function(e,t={}){var n=Ol()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:n}},"__uniapp__service")}});function Hl(e,t,n,r){if(r&&r.beforeInvoke){var i=r.beforeInvoke(t);if(fn(i))return i}var a=function(e,t){var n=e[0];if(t&&(bn(t.formatArgs)||!bn(n)))for(var r=t.formatArgs,i=Object.keys(r),a=0;a<i.length;a++){var o=i[a],s=r[o];if(pn(s)){var l=s(e[0][o],n);if(fn(l))return l}else cn(n,o)||(n[o]=s)}}(t,r);if(a)return a}function ql(e,t,n,r){return function(e,t,n,r){return(...e)=>{var n=Hl(0,e,0,r);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,r)}function Ul(e){if(0===e.indexOf("//"))return"https:"+e;if(er.test(e)||tr.test(e))return e;if(function(e){if(0===e.indexOf("_www")||0===e.indexOf("_doc")||0===e.indexOf("_documents")||0===e.indexOf("_downloads"))return!0;return!1}(e))return"file://"+Yl(e);var t="file://"+Yl("_www");if(0===e.indexOf("/"))return e.startsWith("/storage/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(0===e.indexOf("../")||0===e.indexOf("./")){if("string"==typeof __id__)return t+Al("/"+__id__,e);var n=window.__PAGE_INFO__;if(n)return t+Al("/"+n.route,e)}return e}var Yl=function(e){var t=Object.create(null);return n=>t[n]||(t[n]=e(n))}((e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,"")));var Xl=!1,Gl=0,Jl=0;function Kl(){var{platform:e,pixelRatio:t,windowWidth:n}=function(){if("undefined"!=typeof __SYSTEM_INFO__)return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize();return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}();Gl=n,Jl=t,Xl="ios"===e}function Zl(e,t){var n=Number(e);return isNaN(n)?t:n}var Ql=ql(0,((e,t)=>{if(0===Gl&&Kl(),0===(e=Number(e)))return 0;var n=t||Gl,r=__uniConfig.globalStyle||{},i=Zl(r.rpxCalcMaxDeviceWidth,960),a=Zl(r.rpxCalcBaseDeviceWidth,375),o=e/750*(n=n<=i?n:a);return o<0&&(o=-o),0===(o=Math.floor(o+1e-4))&&(o=1!==Jl&&Xl?.5:1),e<0?-o:o})),eu={};eu.f={}.propertyIsEnumerable;var tu,nu=x,ru=Pe,iu=q,au=eu.f,ou=(tu=!1,function(e){for(var t,n=iu(e),r=ru(n),i=r.length,a=0,o=[];i>a;)t=r[a++],nu&&!au.call(n,t)||o.push(tu?[t,n[t]]:n[t]);return o});he(he.S,"Object",{values:function(e){return ou(e)}});var su=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},o._resetCrossOriginUpdater=function(){n=null,r=null},o.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,o=null;this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(o=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),l(e,"resize",r,!0)),l(t,"scroll",r,!0),o&&o.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var c=i(t);c&&this._monitorIntersections(c.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=i(n);if((n=a&&a.ownerDocument)==t)return!0}return!1}))){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var o=i(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},o.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,o=u(i),s=this._rootContainsTarget(i),l=r.entry,c=e&&s&&this._computeTargetAndRootIntersection(i,o,t),d=null;this._rootContainsTarget(i)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=r.entry=new a({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:o,rootBounds:d,intersectionRect:c});l?e&&s?this._hasCrossedThreshold(l,h)&&this._queuedEntries.push(h):l&&l.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(t,i,a){if("none"!=window.getComputedStyle(t).display){for(var o,s,l,c,h,f,v,g,m=i,y=p(t),_=!1;!_&&y;){var b=null,w=1==y.nodeType?window.getComputedStyle(y):{};if("none"==w.display)return null;if(y==this.root||9==y.nodeType)if(_=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,b=null,m=null):b=r:b=a;else{var x=p(y),S=x&&u(x),T=x&&this._computeTargetAndRootIntersection(x,S,a);S&&T?(y=x,b=d(S,T)):(y=null,m=null)}else{var E=y.ownerDocument;y!=E.body&&y!=E.documentElement&&"visible"!=w.overflow&&(b=u(y))}if(b&&(o=b,s=m,l=void 0,c=void 0,h=void 0,f=void 0,v=void 0,g=void 0,l=Math.max(o.top,s.top),c=Math.min(o.bottom,s.bottom),h=Math.max(o.left,s.left),f=Math.min(o.right,s.right),g=c-l,m=(v=f-h)>=0&&g>=0&&{top:l,bottom:c,left:h,right:f,width:v,height:g}||null),!m)break;y=y&&p(y)}return m}},o.prototype._getRootRect=function(){var t;if(this.root&&!f(this.root))t=u(this.root);else{var n=f(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var a=this.thresholds[i];if(a==n||a==r||a<n!=a<r)return!0}},o.prototype._rootIsInDom=function(){return!this.root||h(e,this.root)},o.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return h(n,t)&&(!this.root||n==t.ownerDocument)},o.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},o.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=o,window.IntersectionObserverEntry=a}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=c(e.rootBounds),this.boundingClientRect=c(e.boundingClientRect),this.intersectionRect=c(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function o(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function u(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function h(e,t){for(var n=t;n;){if(n==e)return!0;n=p(n)}return!1}function p(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function f(e){return e&&9===e.nodeType}};function lu(e){var{bottom:t,height:n,left:r,right:i,top:a,width:o}=e||{};return{bottom:t,height:n,left:r,right:i,top:a,width:o}}function uu(e){var{intersectionRatio:t,boundingClientRect:{height:n,width:r},intersectionRect:{height:i,width:a}}=e;return 0!==t?t:i===n?a/r:i/n}var cu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",upx2px:Ql,navigateTo:function(e){UniViewJSBridge.invokeServiceMethod("navigateTo",e)},navigateBack:function(e){UniViewJSBridge.invokeServiceMethod("navigateBack",e)},reLaunch:function(e){UniViewJSBridge.invokeServiceMethod("reLaunch",e)},redirectTo:function(e){UniViewJSBridge.invokeServiceMethod("redirectTo",e)},switchTab:function(e){UniViewJSBridge.invokeServiceMethod("switchTab",e)}});var du=new Set;function hu(e,t){du.add(function(e,t){return e.priority=t,e}(e,t))}function pu(e,t){var n=window.__wxsModules,r=n&&n[e];return r||(t&&t.__renderjsInstances?t.__renderjsInstances[e]:void 0)}var fu=nr.length;function vu(e,t,n){var[r,i,a,o]=mu(t),s=gu(e,r);if(dn(n)||dn(o)){var[l,u]=a.split(".");return yu(s,i,l,u,n||o)}return function(e,t,n){var r=pu(t,e);if(!r)return console.error(Rn("wxs","module "+n+" not found"));return Zn(r,n.substr(n.indexOf(".")+1))}(s,i,a)}function gu(e,t){if(e.__ownerId===t)return e;for(var n=e.parentElement;n;){if(n.__ownerId===t)return n;n=n.parentElement}return e}function mu(e){return JSON.parse(e.substr(fu))}function yu(e,t,n,r,i){var a=pu(t,e);if(!a)return console.error(Rn("wxs","module "+n+" not found"));var o=a[r];return pn(o)?o.apply(a,i):console.error(n+"."+r+" is not a function")}function _u(e,t,n){var r=n;return n=>{try{!function(e,t,n,r){var[i,a,o]=mu(e),s=gu(t,i),[l,u]=o.split(".");yu(s,a,l,u,[n,r,Bl(wu(s),!1),Bl(wu(t),!1)])}(t,e.$,n,r)}catch(i){console.error(i)}r=n}}function bu(e,t){var n=wu(t);return Object.defineProperty(e,"instance",{get:()=>Bl(n,!1)}),e}function wu(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var t,n,{__wxsStyle:r,__wxsAddClass:i,__wxsRemoveClass:a,__wxsStyleChanged:o,__wxsClassChanged:s}=e;o&&(e.__wxsStyleChanged=!1,r&&(n=()=>{Object.keys(r).forEach((t=>{e.style[t]=r[t]}))})),s&&(e.__wxsClassChanged=!1,t=()=>{a&&a.forEach((t=>{e.classList.remove(t)})),i&&i.forEach((t=>{e.classList.add(t)}))}),requestAnimationFrame((()=>{t&&t(),n&&n()}))}})}function xu(e,t){Object.keys(t).forEach((n=>{!function(e,t){var n=function(e){var t=window.__renderjsModules,n=t&&t[e];if(!n)return console.error(Rn("renderjs",e+" not found"));return n}(t);if(!n)return;var r=e.$;(r.__renderjsInstances||(r.__renderjsInstances={}))[t]=function(e){return(e=e.default||e).render=()=>{},ul(e).mount(document.createElement("div"))}(n)}(e,t[n])}))}class Su{constructor(e,t,n,r){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.id=e,this.tag=t,this.pid=n,r&&(this.$=r),this.$wxsProps=new Map}init(e){cn(e,"t")&&(this.$.textContent=e.t)}setText(e){this.$.textContent=e}insert(e,t){var n=this.$,r=Lp(e);-1===t?r.appendChild(n):r.insertBefore(n,Lp(t).$),this.isMounted=!0}remove(){var{$:e}=this;e.parentNode.removeChild(e),this.isUnmounted=!0,Ap(this.id),function(e){var{__renderjsInstances:t}=e.$;t&&Object.keys(t).forEach((e=>{t[e].$.appContext.app.unmount()}))}(this)}appendChild(e){return this.$.appendChild(e)}insertBefore(e,t){return this.$.insertBefore(e,t)}setWxsProps(e){Object.keys(e).forEach((t=>{if(0===t.indexOf(Jn)){var n=t.replace(Jn,""),r=e[n],i=_u(this,e[t],r);hu((()=>i(r)),4),this.$wxsProps.set(t,i),delete e[t],delete e[n],this.$hasWxsProps=!0}}))}addWxsEvents(e){Object.keys(e).forEach((t=>{var[n,r]=e[t];this.addWxsEvent(t,n,r)}))}addWxsEvent(e,t,n){}wxsPropsInvoke(e,t,n=!1){var r=this.$hasWxsProps&&this.$wxsProps.get(Jn+e);if(r)return hu((()=>n?Ia((()=>r(t))):r(t)),4),!0}}function Tu(e,t){var{__wxsAddClass:n,__wxsRemoveClass:r}=e;r&&r.length&&(t=t.split(/\s+/).filter((e=>-1===r.indexOf(e))).join(" "),r.length=0),n&&n.length&&(t=t+" "+n.join(" ")),e.className=t}function Eu(e,t){var n=e.style;if(fn(t))""===t?e.removeAttribute("style"):n.cssText=Tl(t,!0);else for(var r in t)Cu(n,r,t[r]);var{__wxsStyle:i}=e;if(i)for(var a in i)Cu(n,a,i[a])}var ku=/\s*!important$/;function Cu(e,t,n){if(dn(n))n.forEach((n=>Cu(e,t,n)));else if(n=Tl(n,!0),t.startsWith("--"))e.setProperty(t,n);else{var r=function(e,t){var n=Ou[t];if(n)return n;var r=En(t);if("filter"!==r&&r in e)return Ou[t]=r;r=Mn(r);for(var i=0;i<Mu.length;i++){var a=Mu[i]+r;if(a in e)return Ou[t]=a}return t}(e,t);ku.test(n)?e.setProperty(Cn(r),n.replace(ku,""),"important"):e[r]=n}}var Mu=["Webkit"],Ou={};function Iu(e,t){var n=e.__listeners[t];n&&e.removeEventListener(t,n)}function Nu(e,t){if(e.__listeners[t])return!0}function Lu(e,t,n){var[r,i]=jn(t);-1===n?Iu(e,r):Nu(e,r)||e.addEventListener(r,e.__listeners[r]=Au(e.__id,n,i),i)}function Au(e,t,n){var r=t=>{var[r]=Dl(t);r.type=function(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(Mn(En(e)))}(t.type,n),UniViewJSBridge.publishHandler(Vl,[[20,e,r]])};return t?il(r,Pu(t)):r}function Pu(e){var t=[];return e&zn&&t.push("prevent"),e&Hn&&t.push("self"),e&Vn&&t.push("stop"),t}function Ru(e,t,n){var r=n=>{!function(e,t,n){var[r,i,a]=mu(t),[o,s]=a.split("."),l=gu(e,r);yu(l,i,o,s,[bu(n,e),Bl(wu(l),!1)])}(e,t,Dl(n)[0])};return n?il(r,Pu(n)):r}var Bu=rr.length;function Du(e,t){return fn(t)?(0===t.indexOf(rr)?t=JSON.parse(t.substr(Bu)):0===t.indexOf(nr)&&(t=vu(e,t)),t):t}function $u(e,t){e._vod="none"===e.style.display?"":e.style.display,e.style.display=t?e._vod:"none"}class Fu extends Su{constructor(e,t,n,r,i,a=[]){super(e,t.tagName,n,t),this.$props=Ki({}),this.$.__id=e,this.$.__listeners=Object.create(null),this.$propNames=a,this._update=this.update.bind(this),this.init(i),this.insert(n,r)}init(e){cn(e,"a")&&this.setAttrs(e.a),cn(e,"s")&&this.setAttr("style",e.s),cn(e,"e")&&this.addEvents(e.e),cn(e,"w")&&this.addWxsEvents(e.w),super.init(e),Ka(this.$props,(()=>{hu(this._update,1)}),{flush:"sync"}),this.update(!0)}setAttrs(e){this.setWxsProps(e),Object.keys(e).forEach((t=>{this.setAttr(t,e[t])}))}addEvents(e){Object.keys(e).forEach((t=>{this.addEvent(t,e[t])}))}addWxsEvent(e,t,n){!function(e,t,n,r){var[i,a]=jn(t);-1===r?Iu(e,i):Nu(e,i)||e.addEventListener(i,e.__listeners[i]=Ru(e,n,r),a)}(this.$,e,t,n)}addEvent(e,t){Lu(this.$,e,t)}removeEvent(e){Lu(this.$,e,-1)}setAttr(e,t){e===qn?Tu(this.$,t):e===Un?Eu(this.$,t):e===Yn?$u(this.$,t):e===Xn?this.$.__ownerId=t:e===Gn?hu((()=>xu(this,t)),3):"innerHTML"===e?this.$.innerHTML=t:"textContent"===e?this.setText(t):this.setAttribute(e,t)}removeAttr(e){e===qn?Tu(this.$,""):e===Un?Eu(this.$,""):this.removeAttribute(e)}setAttribute(e,t){t=Du(this.$,t),-1!==this.$propNames.indexOf(e)?this.$props[e]=t:this.wxsPropsInvoke(e,t)||this.$.setAttribute(e,t)}removeAttribute(e){-1!==this.$propNames.indexOf(e)?delete this.$props[e]:this.$.removeAttribute(e)}update(e=!1){}}function Wu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>"".concat(uni.upx2px(parseFloat(t)),"px"))):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function ju(e){var t=e.animation;if(t&&t.actions&&t.actions.length){var n=0,r=t.actions,i=t.actions.length;setTimeout((()=>{a()}),0)}function a(){var t=r[n],o=t.option.transition,s=function(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],r=["opacity","background-color"],i=["width","height","left","right","top","bottom"],a=e.animates,o=e.option,s=o.transition,l={},u=[];return a.forEach((e=>{var a=e.type,o=[...e.args];if(t.concat(n).includes(a))a.startsWith("rotate")||a.startsWith("skew")?o=o.map((e=>parseFloat(e)+"deg")):a.startsWith("translate")&&(o=o.map(Wu)),n.indexOf(a)>=0&&(o.length=1),u.push("".concat(a,"(").concat(o.join(","),")"));else if(r.concat(i).includes(o[0])){a=o[0];var s=o[1];l[a]=i.includes(a)?Wu(s):s}})),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>"".concat(function(e){return e.replace(/[A-Z]/g,(e=>"-".concat(e.toLowerCase()))).replace("webkit","-webkit")}(e)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms"))).join(","),l.transformOrigin=l.webkitTransformOrigin=o.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),(n+=1)<i&&setTimeout(a,o.duration+o.delay)}}var Vu={props:["animation"],watch:{animation:{deep:!0,handler(){ju(this)}}},mounted(){ju(this)}},zu=e=>{var{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Vu),Hu(e)},Hu=e=>(e.compatConfig={MODE:3},function(e){return pn(e)?{setup:e,name:e.name}:e}(e)),qu={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Uu(e){var t,n,r=sa(!1),i=!1;function a(){requestAnimationFrame((()=>{clearTimeout(n),n=setTimeout((()=>{r.value=!1}),parseInt(e.hoverStayTime))}))}return{hovering:r,binding:{onTouchstartPassive:function(n){n._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(n.touches.length>1||(e.hoverStopPropagation&&(n._hoverPropagationStopped=!0),i=!0,t=setTimeout((()=>{r.value=!0,i||a()}),parseInt(e.hoverStartTime))))},onTouchend:function(){i=!1,r.value&&a()},onTouchcancel:function(){i=!1,r.value=!1,clearTimeout(t)}}}}function Yu(e,t){return fn(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}function Xu(e){return e.__wwe=!0,e}function Gu(e,t){return(n,r,i)=>{e.value&&t(n,function(e,t,n,r){var i=$n(n);return{type:r.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:r}}(n,r,e.value,i||{}))}}var Ju=xl("uf"),Ku=zu({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){var r,i,a=sa(null);return r=Gu(a,n),i=[],Xa(Ju,{addField(e){i.push(e)},removeField(e){i.splice(i.indexOf(e),1)},submit(e){r("submit",e,{value:i.reduce(((e,t)=>{if(t.submit){var[n,r]=t.submit();n&&(e[n]=r)}return e}),Object.create(null))})},reset(e){i.forEach((e=>e.reset&&e.reset())),r("reset",e)}}),()=>ps("uni-form",{ref:a},{default:()=>[ps("span",null,[t.default&&t.default()])]},512)}});var Zu=xl("ul"),Qu=zu({name:"Label",props:{for:{type:String,default:""}},setup(e,{slots:t}){var n=Ml(),r=function(){var e=[];return Xa(Zu,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),i=Rs((()=>e.for||t.default&&t.default.length)),a=Xu((t=>{var i=t.target,a=/^uni-(checkbox|radio|switch)-/.test(i.className);a||(a=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(i.tagName)),a||(e.for?UniViewJSBridge.emit("uni-label-click-"+n+"-"+e.for,t,!0):r.length&&r[0](t,!0))}));return()=>ps("uni-label",{class:{"uni-label-pointer":i},onClick:a},{default:()=>[t.default&&t.default()]},8,["class","onClick"])}});function ec(e,t){tc(e.id,t),Ka((()=>e.id),((e,n)=>{nc(n,t,!0),tc(e,t,!0)})),go((()=>{nc(e.id,t)}))}function tc(e,t,n){var r=Ml();n&&!e||bn(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge.on("uni-".concat(i,"-").concat(r,"-").concat(e),t[i]):0===i.indexOf("uni-")?UniViewJSBridge.on(i,t[i]):e&&UniViewJSBridge.on("uni-".concat(i,"-").concat(r,"-").concat(e),t[i])}))}function nc(e,t,n){var r=Ml();n&&!e||bn(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge.off("uni-".concat(i,"-").concat(r,"-").concat(e),t[i]):0===i.indexOf("uni-")?UniViewJSBridge.off(i,t[i]):e&&UniViewJSBridge.off("uni-".concat(i,"-").concat(r,"-").concat(e),t[i])}))}var rc=zu({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){var n=sa(null);_r();var r=Ga(Ju,!1),{hovering:i,binding:a}=Uu(e),{t:o}=gr(),s=Xu(((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();var a=e.formType;if(a){if(!r)return;"submit"===a?r.submit(t):"reset"===a&&r.reset(t)}else{var s,l,u;"feedback"===e.openType&&(s=o("uni.button.feedback.title"),l=o("uni.button.feedback.send"),(u=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:s,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:l,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){u.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}})).show("slide-in-right"))}})),l=Ga(Zu,!1);return l&&(l.addHandler(s),vo((()=>{l.removeHandler(s)}))),ec(e,{"label-click":s}),()=>{var r=e.hoverClass,o=Yu(e,"disabled"),l=Yu(e,"loading"),u=r&&"none"!==r;return ps("uni-button",_s({ref:n,onClick:s,class:u&&i.value?r:""},u&&a,o,l),{default:()=>[t.default&&t.default()]},16,["onClick","class"])}}});var ic=zu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){var n=sa(null),r=function(e){return()=>{var{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){var r=Ki({width:-1,height:-1});return Ka((()=>sn({},r)),(e=>t("resize",e))),()=>{var t=e.value;r.width=t.offsetWidth,r.height=t.offsetHeight,n()}}(n,t,r);return function(e,t,n,r){io(r),ho((()=>{t.initial&&Ia(n);var i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||r()}))}(n,e,i,r),()=>ps("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},{default:()=>[ps("div",{onScroll:i},[ps("div",null,null)],40,["onScroll"]),ps("div",{onScroll:i},[ps("div",null,null)],40,["onScroll"])],_:1},8,["onAnimationstartOnce"])}});var ac=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function oc(e){e.width=e.offsetWidth*ac,e.height=e.offsetHeight*ac,e.getContext("2d").__hidpi__=!0}var sc=!1;var lc,uc=Kn((()=>function(){if(!sc){sc=!0;var e,t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=(e=t.drawImage,function(t,n,r,i,a,o,s,l,u,c){if(!this.__hidpi__)return e.apply(this,arguments);n*=ac,r*=ac,i*=ac,a*=ac,o*=ac,s*=ac,l=c?l*ac:l,u=c?u*ac:u,e.call(this,t,n,r,i,a,o,s,l,u)}),1!==ac&&(function(e,t){for(var n in e)cn(e,n)&&t(e[n],n)}({fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*ac}));else if(Array.isArray(e))for(var r=0;r<e.length;r++)n[e[r]]*=ac;return t.apply(this,n)}}(t[n])})),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=ac,e.apply(this,arguments),this.lineWidth/=ac}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=ac,t[2]*=ac;var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*ac+n})),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=ac,t[2]*=ac;var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*ac+n})),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(ac,ac),e.apply(this,arguments),this.scale(1/ac,1/ac)}}(t.drawImage))}}()));function cc(e){return e?Ul(e):e}function dc(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function hc(e,t){var n=e;return Array.from(t).map((e=>{var t=n.getBoundingClientRect();return{identifier:e.identifier,x:e.clientX-t.left,y:e.clientY-t.top}}))}function pc(e=0,t=0){return lc||(lc=document.createElement("canvas")),lc.width=e,lc.height=t,lc}var fc=zu({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){uc();var r=sa(null),i=sa(null),a=sa(!1),o=function(e){return(t,n)=>{e(t,Fl(n))}}(t),{$attrs:s,$excludeAttrs:l,$listeners:u}=Md({excludeListeners:!0}),{_listeners:c}=function(e,t,n){return{_listeners:Rs((()=>{var r=["onTouchstart","onTouchmove","onTouchend"],i=t.value,a=sn({},(()=>{var e={};for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var n=i[t];e[t]=n}return e})());return r.forEach((t=>{var r=[];a[t]&&r.push(Xu((e=>{n(t.replace("on","").toLocaleLowerCase(),sn({},(()=>{var t={};for(var n in e)t[n]=e[n];return t})(),{touches:hc(e.currentTarget,e.touches),changedTouches:hc(e.currentTarget,e.changedTouches)}))}))),e.disableScroll&&"onTouchmove"===t&&r.push(bl),a[t]=r})),a}))}}(e,u,o),{_handleSubscribe:d,_resize:h}=function(e,t){var n=[],r={};function i(){var t=e.value;if(t.width>0&&t.height>0){var n=t.getContext("2d"),r=n.getImageData(0,0,t.width,t.height);oc(t),n.putImageData(r,0,0)}else oc(t)}function a({actions:i,reserve:a},l){if(i)if(t.value)n.push([i,a]);else{var u=e.value,c=u.getContext("2d");a||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,u.width,u.height)),o(i);for(var d=function(e){var t=i[e],n=t.method,a=t.data;if(/^set/.test(n)&&"setTransform"!==n){var o,u=n[3].toLowerCase()+n.slice(4);if("fillStyle"===u||"strokeStyle"===u){if("normal"===a[0])o=dc(a[1]);else if("linear"===a[0]){var d=c.createLinearGradient(...a[1]);a[2].forEach((function(e){var t=e[0],n=dc(e[1]);d.addColorStop(t,n)})),o=d}else if("radial"===a[0]){var h=a[1][0],f=a[1][1],v=a[1][2],g=c.createRadialGradient(h,f,0,h,f,v);a[2].forEach((function(e){var t=e[0],n=dc(e[1]);g.addColorStop(t,n)})),o=g}else if("pattern"===a[0]){return s(a[1],i.slice(e+1),l,(function(e){e&&(c[u]=c.createPattern(e,a[2]))}))?"continue":"break"}c[u]=o}else if("globalAlpha"===u)c[u]=Number(a[0])/255;else if("shadow"===u)p=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"],a.forEach((function(e,t){c[p[t]]="shadowColor"===p[t]?dc(e):e}));else if("fontSize"===u){var m=c.__font__||c.font;c.__font__=c.font=m.replace(/\d+\.?\d*px/,a[0]+"px")}else"lineDash"===u?(c.setLineDash(a[0]),c.lineDashOffset=a[1]||0):"textBaseline"===u?("normal"===a[0]&&(a[0]="alphabetic"),c[u]=a[0]):"font"===u?c.__font__=c.font=a[0]:c[u]=a[0]}else if("fillPath"===n||"strokePath"===n)n=n.replace(/Path/,""),c.beginPath(),a.forEach((function(e){c[e.method].apply(c,e.data)})),c[n]();else if("fillText"===n)c.fillText.apply(c,a);else if("drawImage"===n){if("break"===function(){var t=[...a],n=t[0],o=t.slice(1);if(r=r||{},s(n,i.slice(e+1),l,(function(e){e&&c.drawImage.apply(c,[e].concat([...o.slice(4,8)],[...o.slice(0,4)]))})))return"break"}())return"break"}else"clip"===n?(a.forEach((function(e){c[e.method].apply(c,e.data)})),c.clip()):c[n].apply(c,a)},h=0;h<i.length;h++){var p,f=d(h);if("break"===f)break}t.value||l({errMsg:"drawCanvas:ok"})}}function o(e){e.forEach((function(e){var t=e.method,n=e.data,i="";function a(){var e,t=r[i]=new Image;if(t.onload=function(){t.ready=!0},"Google Inc."===navigator.vendor)return 0===i.indexOf("file://")&&(t.crossOrigin="anonymous"),void(t.src=i);(e=i,Promise.resolve(e)).then((e=>{t.src=e})).catch((()=>{t.src=i}))}"drawImage"===t?(i=cc(i=n[0]),n[0]=i):"setFillStyle"===t&&"pattern"===n[0]&&(i=cc(i=n[1]),n[1]=i),i&&!r[i]&&a()}))}function s(e,i,o,s){var l=r[e];return l.ready?(s(l),!0):(n.unshift([i,!0]),t.value=!0,l.onload=function(){l.ready=!0,s(l),t.value=!1;var e=n.slice(0);n=[];for(var r=e.shift();r;)a({actions:r[0],reserve:r[1]},o),r=e.shift()},!1)}function l({x:t=0,y:n=0,width:r,height:i,destWidth:a,destHeight:o,hidpi:s=!0,dataType:l,quality:u=1,type:c="png"},d){var h,p=e.value,f=p.offsetWidth-t;r=r?Math.min(r,f):f;var v=p.offsetHeight-n;i=i?Math.min(i,v):v,s?(a=r,o=i):a||o?a?o||(o=Math.round(i/r*a)):a=Math.round(r/i*o):(a=Math.round(r*ac),o=Math.round(i*ac));var g,m=pc(a,o),y=m.getContext("2d");"jpeg"!==c&&"jpg"!==c||(c="jpeg",y.fillStyle="#fff",y.fillRect(0,0,a,o)),y.__hidpi__=!0,y.drawImageByCanvas(p,t,n,r,i,0,0,a,o,!1);try{var _;if("base64"===l)h=m.toDataURL("image/".concat(c),u);else{var b=y.getImageData(0,0,a,o);h=require("pako").deflateRaw(b.data,{to:"string"}),_=!0}g={data:h,compressed:_,width:a,height:o}}catch(w){g={errMsg:"canvasGetImageData:fail ".concat(w)}}if(m.height=m.width=0,y.__hidpi__=!1,!d)return g;d(g)}function u({data:t,x:n,y:r,width:i,height:a,compressed:o},s){try{a||(a=Math.round(t.length/4/i));var l=pc(i,a),u=l.getContext("2d");if(o)t=require("pako").inflateRaw(t);u.putImageData(new ImageData(new Uint8ClampedArray(t),i,a),0,0),e.value.getContext("2d").drawImage(l,n,r,i,a),l.height=l.width=0}catch(c){return void s({errMsg:"canvasPutImageData:fail"})}s({errMsg:"canvasPutImageData:ok"})}function c({x:e=0,y:t=0,width:n,height:r,destWidth:i,destHeight:a,fileType:o,quality:s,dirname:u},c){var d=l({x:e,y:t,width:n,height:r,destWidth:i,destHeight:a,hidpi:!1,dataType:"base64",type:o,quality:s});d.data&&d.data.length?d.data:c({errMsg:d.errMsg.replace("canvasPutImageData","toTempFilePath")})}var d={actionsChanged:a,getImageData:l,putImageData:u,toTempFilePath:c};function h(e,t,n){var r=d[e];0!==e.indexOf("_")&&"function"==typeof r&&r(t,n)}return sn(d,{_resize:i,_handleSubscribe:h})}(r,a);return $h(d,Wh(e.canvasId),!0),ho((()=>{h()})),()=>{var{canvasId:t,disableScroll:a}=e;return ps("uni-canvas",_s({"canvas-id":t,"disable-scroll":a},s.value,l.value,c.value),{default:()=>[ps("canvas",{ref:r,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),ps("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),ps(ic,{ref:i,onResize:h},null,8,["onResize"])],_:1},16,["canvas-id","disable-scroll"])}}});var vc=xl("ucg"),gc=zu({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){var r=sa(null);return function(e,t){var n=[],r=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);Xa(vc,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:r()})}});var i=Ga(Ju,!1);i&&i.addField({submit:()=>{var t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=r()),t}})}(e,Gu(r,t)),()=>ps("uni-checkbox-group",{ref:r},{default:()=>[n.default&&n.default()]},512)}});var mc,yc,_c,bc,wc,xc,Sc=zu({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,{slots:t}){var n=sa(e.checked),r=sa(e.value);Ka([()=>e.checked,()=>e.value],(([e,t])=>{n.value=e,r.value=t}));var{uniCheckGroup:i,uniLabel:a}=function(e,t,n){var r=Rs((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),i={reset:n},a=Ga(vc,!1);a&&a.addField(r);var o=Ga(Ju,!1);o&&o.addField(i);var s=Ga(Zu,!1);return vo((()=>{a&&a.removeField(r),o&&o.removeField(i)})),{uniCheckGroup:a,uniForm:o,uniLabel:s}}(n,r,(()=>{n.value=!1})),o=t=>{e.disabled||(n.value=!n.value,i&&i.checkboxChange(t))};return a&&(a.addHandler(o),vo((()=>{a.removeHandler(o)}))),ec(e,{"label-click":o}),()=>{var{booleanAttrs:r}=Yu(e,"disabled");return ps("uni-checkbox",_s(r,{onClick:o}),{default:()=>[ps("div",{class:"uni-checkbox-wrapper"},[ps("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[n.value?Cl(kl,e.color,22):""],2),t.default&&t.default()])]},16,["onClick"])}}});function Tc(){}function Ec(e,t,n){Fn((()=>{var r="adjustResize",i="adjustPan",a=plus.webview.currentWebview(),o=xc||a.getStyle()||{},s={mode:n||o.softinputMode===r?r:e.adjustPosition?i:"nothing",position:{top:0,height:0}};if(s.mode===i){var l=t.getBoundingClientRect();s.position.top=l.top,s.position.height=l.height+(Number(e.cursorSpacing)||0)}a.setSoftinputTemporary(s)}))}Fn((()=>{yc="Android"===plus.os.name,_c=plus.os.version||""})),document.addEventListener("keyboardchange",(function(e){bc=e.height,wc&&wc()}),!1);var kc={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},Cc=["keyboardheightchange"];function Mc(e,t,n){var r={};function i(t){var i,a=()=>{n("keyboardheightchange",{},{height:bc,duration:.25}),i&&0===bc&&Ec(e,t),e.autoBlur&&i&&0===bc&&(yc||parseInt(_c)>=13)&&document.activeElement.blur()};t.addEventListener("focus",(()=>{i=!0,clearTimeout(mc),document.addEventListener("click",Tc,!1),wc=a,bc&&n("keyboardheightchange",{},{height:bc,duration:0}),function(e,t){"auto"!==e.showConfirmBar?Fn((()=>{var n=plus.webview.currentWebview(),{softinputNavBar:r}=n.getStyle()||{};"none"!==r!==e.showConfirmBar?(t.softinputNavBar=r||"auto",n.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})):delete t.softinputNavBar}(e,r),Ec(e,t)})),yc&&t.addEventListener("click",(()=>{e.disabled||e.readOnly||!i||0!==bc||Ec(e,t)})),yc||(parseInt(_c)<12&&t.addEventListener("touchstart",(()=>{e.disabled||e.readOnly||i||Ec(e,t)})),parseFloat(_c)>=14.6&&!xc&&Fn((()=>{var e=plus.webview.currentWebview();xc=e.getStyle()||{}})));var o=()=>{document.removeEventListener("click",Tc,!1),wc=null,bc&&n("keyboardheightchange",{},{height:0,duration:0}),function(e){var t=e.softinputNavBar;t&&Fn((()=>{plus.webview.currentWebview().setStyle({softinputNavBar:t})}))}(r),yc&&(mc=setTimeout((()=>{Ec(e,t,!0)}),300)),0===String(navigator.vendor).indexOf("Apple")&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};t.addEventListener("blur",(()=>{t.blur(),i=!1,o()}))}Ka((()=>t.value),(e=>i(e)))}var Oc=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Ic=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Nc=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Lc=Fc("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Ac=Fc("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Pc=Fc("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Rc=Fc("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Bc=Fc("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Dc=Fc("script,style");function $c(e,t){var n,r,i,a=[],o=e;for(a.last=function(){return this[this.length-1]};e;){if(r=!0,a.last()&&Dc[a.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+a.last()+"[^>]*>"),(function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""})),u("",a.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),r=!1):0==e.indexOf("</")?(i=e.match(Ic))&&(e=e.substring(i[0].length),i[0].replace(Ic,u),r=!1):0==e.indexOf("<")&&(i=e.match(Oc))&&(e=e.substring(i[0].length),i[0].replace(Oc,l),r=!1),r){var s=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}if(e==o)throw"Parse Error: "+e;o=e}function l(e,n,r,i){if(n=n.toLowerCase(),Ac[n])for(;a.last()&&Pc[a.last()];)u("",a.last());if(Rc[n]&&a.last()==n&&u("",n),(i=Lc[n]||!!i)||a.push(n),t.start){var o=[];r.replace(Nc,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:Bc[t]?t:"";o.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,o,i)}}function u(e,n){if(n)for(r=a.length-1;r>=0&&a[r]!=n;r--);else var r=0;if(r>=0){for(var i=a.length-1;i>=r;i--)t.end&&t.end(a[i]);a.length=r}}u()}function Fc(e){for(var t={},n=e.split(","),r=0;r<n.length;r++)t[n[r]]=!0;return t}var Wc={};function jc(e,t,n){if("string"==typeof e?window[e]:e)n();else{var r=Wc[t];if(!r){r=Wc[t]=[];var i=document.createElement("script");i.src=t,document.body.appendChild(i),i.onload=function(){r.forEach((e=>e())),delete Wc[t]}}r.push(n)}}function Vc(e){var t=e.import("blots/block/embed");class n extends t{}return n.blotName="divider",n.tagName="HR",{"formats/divider":n}}function zc(e){var t=e.import("blots/inline");class n extends t{}return n.blotName="ins",n.tagName="INS",{"formats/ins":n}}function Hc(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK,whitelist:["left","right","center","justify"]};return{"formats/align":new n.Style("align","text-align",r)}}function qc(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK,whitelist:["rtl"]};return{"formats/direction":new n.Style("direction","direction",r)}}function Uc(e){var t=e.import("parchment"),n=e.import("blots/container"),r=e.import("formats/list/item");class i extends n{static create(e){var t="ordered"===e?"OL":"UL",n=super.create(t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}static formats(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}constructor(e){super(e);e.addEventListener("click",(n=>{if(n.target.parentNode===e){var r=this.statics.formats(e),i=t.find(n.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}}))}format(e,t){this.children.length>0&&this.children.tail.format(e,t)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(e,t){if(e instanceof r)super.insertBefore(e,t);else{var n=null==t?this.length():t.offset(this),i=this.split(n);i.parent.insertBefore(e,i)}}optimize(e){super.optimize(e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}replace(e){if(e.statics.blotName!==this.statics.blotName){var n=t.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}super.replace(e)}}return i.blotName="list",i.scope=t.Scope.BLOCK_BLOT,i.tagName=["OL","UL"],i.defaultChild="list-item",i.allowedChildren=[r],{"formats/list":i}}function Yc(e){var{Scope:t}=e.import("parchment");return{"formats/backgroundColor":new(e.import("formats/background").constructor)("backgroundColor","background-color",{scope:t.INLINE})}}function Xc(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK},i={};return["margin","marginTop","marginBottom","marginLeft","marginRight"].concat(["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"]).forEach((e=>{i["formats/".concat(e)]=new n.Style(e,Cn(e),r)})),i}function Gc(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.INLINE},i={};return["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"].forEach((e=>{i["formats/".concat(e)]=new n.Style(e,Cn(e),r)})),i}function Jc(e){var{Scope:t,Attributor:n}=e.import("parchment"),r=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],i={};return r.forEach((({name:e,scope:t})=>{i["formats/".concat(e)]=new n.Style(e,Cn(e),{scope:t})})),i}function Kc(e){var t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=e=>e,t.formats=function(e){return n.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})};var r=t.prototype.format;t.prototype.format=function(e,t){n.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):r.call(this,e,t)}}function Zc(e,t,n){var r,i,a,o=!1;function s(){return{html:a.root.innerHTML,text:a.getText(),delta:a.getContents()}}Ka((()=>e.readOnly),(e=>{r&&(a.enable(!e),e||a.blur())})),Ka((()=>e.placeholder),(e=>{r&&a.root.setAttribute("data-placeholder",e)}));var l={};function u(e){var t=e?a.getFormat(e):{},r=Object.keys(t);(r.length!==Object.keys(l).length||r.find((e=>t[e]!==l[e])))&&(l=t,n("statuschange",{},t))}function c(l){var c=window.Quill;!function(e){var t={divider:Vc,ins:zc,align:Hc,direction:qc,list:Uc,background:Yc,box:Xc,font:Gc,text:Jc,image:Kc},n={};Object.values(t).forEach((t=>sn(n,t(e)))),e.register(n,!0)}(c);var d={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};l.length&&(c.register("modules/ImageResize",window.ImageResize.default),d.modules={ImageResize:{modules:l}});var h=t.value,p=(a=new c(h,d)).root;["focus","blur","input"].forEach((e=>{p.addEventListener(e,(t=>{"input"===e?t.stopPropagation():n(e,t,s())}))})),a.on("text-change",(()=>{o||n("input",{},s())})),a.on("selection-change",u),a.on("scroll-optimize",(()=>{u(a.selection.getRange()[0])})),a.clipboard.addMatcher(Node.ELEMENT_NODE,((e,t)=>(i||t.ops&&(t.ops=t.ops.filter((({insert:e})=>"string"==typeof e)).map((({insert:e})=>({insert:e})))),t))),r=!0,n("ready",{},{})}ho((()=>{var t=[];e.showImgSize&&t.push("DisplaySize"),e.showImgToolbar&&t.push("Toolbar"),e.showImgResize&&t.push("Resize");jc(window.Quill,"./__uniappquill.js",(()=>{if(t.length){jc(window.ImageResize,"./__uniappquillimageresize.js",(()=>{c(t)}))}else c(t)}))})),$h(((e,t,n)=>{var l,c,d,{options:h,callbackId:p}=t;if(r){var f=window.Quill;switch(e){case"format":var{name:v="",value:g=!1}=h;c=a.getSelection(!0);var m=a.getFormat(c)[v]||!1;if(["bold","italic","underline","strike","ins"].includes(v))g=!m;else if("direction"===v){g=("rtl"!==g||!m)&&g;var y=a.getFormat(c).align;"rtl"!==g||y?g||"right"!==y||a.format("align",!1,"user"):a.format("align","right","user")}else if("indent"===v){g="+1"===g,"rtl"===a.getFormat(c).direction&&(g=!g),g=g?"+1":"-1"}else"list"===v&&(g="check"===g?"unchecked":g,m="checked"===m?"unchecked":m),g=m&&m!==(g||!1)||!m&&g?g:!m;a.format(v,g,"user");break;case"insertDivider":c=a.getSelection(!0),a.insertText(c.index,"\n","user"),a.insertEmbed(c.index+1,"divider",!0,"user"),a.setSelection(c.index+2,0,"silent");break;case"insertImage":c=a.getSelection(!0);var{src:_="",alt:b="",width:w="",height:x="",extClass:S="",data:T={}}=h,E=Ul(_);a.insertEmbed(c.index,"image",E,"user");var k=!!/^(file|blob):/.test(E)&&E;o=!0,a.formatText(c.index,1,"data-local",k),a.formatText(c.index,1,"alt",b),a.formatText(c.index,1,"width",w),a.formatText(c.index,1,"height",x),a.formatText(c.index,1,"class",S),o=!1,a.formatText(c.index,1,"data-custom",Object.keys(T).map((e=>"".concat(e,"=").concat(T[e]))).join("&")),a.setSelection(c.index+1,0,"silent");break;case"insertText":c=a.getSelection(!0);var{text:C=""}=h;a.insertText(c.index,C,"user"),a.setSelection(c.index+C.length,0,"silent");break;case"setContents":var{delta:M,html:O}=h;"object"==typeof M?a.setContents(M,"silent"):"string"==typeof O?a.setContents(function(e){var t,n=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],r="";$c(e,{start:function(e,i,a){if(n.includes(e)){t=!1;var o=i.map((({name:e,value:t})=>"".concat(e,'="').concat(t,'"'))).join(" "),s="<".concat(e," ").concat(o," ").concat(a?"/":"",">");r+=s}else t=!a},end:function(e){t||(r+="</".concat(e,">"))},chars:function(e){t||(r+=e)}}),i=!0;var o=a.clipboard.convert(r);return i=!1,o}(O),"silent"):d="contents is missing";break;case"getContents":l=s();break;case"clear":a.setText("");break;case"removeFormat":c=a.getSelection(!0);var I=f.import("parchment");c.length?a.removeFormat(c.index,c.length,"user"):Object.keys(a.getFormat(c)).forEach((e=>{I.query(e,I.Scope.INLINE)&&a.format(e,!1)}));break;case"undo":a.history.undo();break;case"redo":a.history.redo();break;case"blur":a.blur();break;case"getSelectionText":l={text:""},(c=a.selection.savedRange)&&0!==c.length&&(l.text=a.getText(c.index,c.length));break;case"scrollIntoView":a.scrollIntoView()}u(c)}else d="not ready";p&&n({callbackId:p,data:sn({},l,{errMsg:"".concat(e,":").concat(d?"fail "+d:"ok")})})}),Wh(),!0)}var Qc=zu({name:"Editor",props:sn({},kc,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),emit:["ready","focus","blur","input","statuschange",...Cc],setup(e,{emit:t}){var n=sa(null),r=Gu(n,t);return Zc(e,n,r),Mc(e,n,r),()=>ps("uni-editor",{ref:n,id:e.id,class:"ql-container"},null,8,["id"])}}),ed="#10aeff",td="#b2b2b2",nd={success:{d:"M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",c:Qn},success_no_circle:{d:kl,c:Qn},info:{d:"M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",c:ed},warn:{d:"M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",c:"#f76260"},waiting:{d:"M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",c:ed},cancel:{d:"M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",c:"#f43530"},download:{d:"M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",c:Qn},search:{d:"M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",c:td},clear:{d:"M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",c:td}},rd=zu({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=Rs((()=>nd[e.type]));return()=>{var{value:n}=t;return ps("uni-icon",null,{default:()=>[n&&n.d&&Cl(n.d,e.color||n.c,Tl(e.size))]})}}}),id={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!0}},ad={widthFix:["offsetWidth","height"],heightFix:["offsetHeight","width"]},od={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},sd=zu({name:"Image",props:id,setup(e,{emit:t}){var n=sa(null),r=function(e,t){var n=sa(""),r=Rs((()=>{var e="auto",r="",i=od[t.mode];i?(i[0]&&(r=i[0]),i[1]&&(e=i[1])):(r="0% 0%",e="100% 100%");var a=n.value;return"background-image:".concat(a?'url("'+a+'")':"none",";background-position:").concat(r,";background-size:").concat(e,";background-repeat:no-repeat;")})),i=Ki({rootEl:e,src:Rs((()=>t.src?Ul(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:r,imgSrc:n});return ho((()=>{var t=e.value.style;i.origWidth=Number(t.width)||0,i.origHeight=Number(t.height)||0})),i}(n,e),i=Gu(n,t),{fixSize:a}=function(e,t,n){var r=()=>{var{mode:r}=t,i=ad[r];if(i){var{origWidth:a,origHeight:o}=n,s=a&&o?a/o:0;if(s){var l=e.value,u=l[i[0]];u&&(l.style[i[1]]=function(e){ld&&e>10&&(e=2*Math.round(e/2));return e}(u/s)+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},i=()=>{var{style:t}=e.value,{origStyle:{width:r,height:i}}=n;t.width=r,t.height=i};return Ka((()=>t.mode),((e,t)=>{ad[t]&&i(),ad[e]&&r()})),{fixSize:r,resetSize:i}}(n,e,r);return function(e,{trigger:t,fixSize:n}){var r,i=(t=0,n=0,r="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=r},a=a=>{if(!a)return o(),void i();r||(r=new Image),r.onload=e=>{var{width:s,height:l}=r;i(s,l,a),n(),o(),t("load",e,{width:s,height:l})},r.onerror=n=>{i(),o(),t("error",n,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},r.src=a},o=()=>{r&&(r.onload=null,r.onerror=null,r=null)};Ka((()=>e.src),(e=>a(e))),ho((()=>a(e.src))),vo((()=>o()))}(r,{trigger:i,fixSize:a}),()=>{var{mode:t}=e,{imgSrc:i,modeStyle:o}=r;return ps("uni-image",{ref:n},{default:()=>[ps("div",{style:o},null,4),i?ps("img",{src:i,draggable:e.draggable},null,8,["src","draggable"]):ps("img",null,null),ad[t]?ps(ic,{onResize:a},null,8,["onResize"]):ps("span",null,null)],_:1},512)}}});var ld="Google Inc."===navigator.vendor;var ud,cd=Dn(!0),dd=[],hd=0;function pd(){var e=Ki({userAction:!1});return ho((()=>{!function(e){ud||(["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){dd.forEach((e=>{e.userAction=!0,hd++,setTimeout((()=>{--hd||(e.userAction=!1)}),0)}))}),cd)})),ud=!0);dd.push(e)}(e)})),vo((()=>{var t,n;t=e,(n=dd.indexOf(t))>=0&&dd.splice(n,1)})),{state:e}}function fd(){var e=Ki({attrs:{}});return ho((()=>{for(var t=Cs();t;){var n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function vd(e,t){var n=document.activeElement;if(!n)return t({});var r={};["input","textarea"].includes(n.tagName.toLowerCase())&&(r.start=n.selectionStart,r.end=n.selectionEnd),t(r)}var gd;function md(e){return null===e?"":String(e)}var yd=sn({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"}},kc),_d=["input","focus","blur","update:value","update:modelValue","update:focus",...Cc];function bd(e,t,n,r){var i=function(e,t){var n,r=function(){clearTimeout(n),n=setTimeout((()=>e.apply(this,arguments)),t)};return r.cancel=function(){clearTimeout(n)},r}((e=>{t.value=md(e)}),100);Ka((()=>e.modelValue),i),Ka((()=>e.value),i);var a=function(e,t){var n,r,i=0,a=function(...a){var o=Date.now();clearTimeout(n),r=()=>{r=null,i=o,e.apply(this,a)},o-i<t?n=setTimeout(r,t-(o-i)):r()};return a.cancel=function(){clearTimeout(n),r=null},a.flush=function(){clearTimeout(n),r&&r()},a}(((e,t)=>{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),r("input",e,t)}),100);return co((()=>{i.cancel(),a.cancel()})),{trigger:r,triggerInput:(e,t,n)=>{i.cancel(),a(e,t),n&&a.flush()}}}function wd(e,t){var{state:n}=pd(),r=Rs((()=>e.autoFocus||e.focus));function i(){if(r.value){var e=t.value;if(e&&"plus"in window){var a=200-(Date.now()-gd);a>0?setTimeout(i,a):(e.focus(),n.userAction||plus.key.showSoftKeybord())}else setTimeout(i,100)}}Ka((()=>e.focus),(e=>{var n;e?i():(n=t.value)&&n.blur()})),ho((()=>{gd=gd||Date.now(),r.value&&Ia(i)}))}function xd(e,t,n,r){kr(Ol(),"getSelectedTextRange",vd);var{fieldRef:i,state:a,trigger:o}=function(e,t,n){var r=sa(null),i=Gu(t,n),a=Rs((()=>{var t=Number(e.selectionStart);return isNaN(t)?-1:t})),o=Rs((()=>{var t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=Rs((()=>{var t=Number(e.cursor);return isNaN(t)?-1:t})),l=Rs((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),u=md(e.modelValue)||md(e.value),c=Ki({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:a,selectionEnd:o,cursor:s});return Ka((()=>c.focus),(e=>n("update:focus",e))),Ka((()=>c.maxlength),(e=>c.value=c.value.slice(0,e))),{fieldRef:r,state:c,trigger:i}}(e,t,n),{triggerInput:s}=bd(e,a,n,o);wd(e,i),Mc(e,i,o);var{state:l}=fd();return function(e,t){var n=Ga(Ju,!1);if(n){var r=Cs(),i={submit(){var n=r.proxy;return[n[e],"string"==typeof t?n[t]:t.value]},reset(){"string"==typeof t?r.proxy[t]="":t.value=""}};n.addField(i),vo((()=>{n.removeField(i)}))}}("name",a),function(e,t,n,r,i){function a(){var n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function o(){var n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&(n.selectionEnd=n.selectionStart=t.cursor)}Ka([()=>t.selectionStart,()=>t.selectionEnd],a),Ka((()=>t.cursor),o),Ka((()=>e.value),(function(){var s=e.value,l=function(e,n){e.stopPropagation(),"function"==typeof i&&!1===i(e,t)||(t.value=s.value,t.composing||r(e,{value:s.value,cursor:s.selectionEnd},n))};s.addEventListener("change",(e=>e.stopPropagation())),s.addEventListener("focus",(function(e){t.focus=!0,n("focus",e,{value:t.value}),a(),o()})),s.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,l(e,!0)),t.focus=!1,n("blur",e,{value:t.value,cursor:e.target.selectionEnd})})),s.addEventListener("input",l),s.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0})),s.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,l(e))}))}))}(i,a,o,s,r),{fieldRef:i,state:a,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:o}}var Sd=zu({name:"Input",props:sn({},yd,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",..._d],setup(e,{emit:t}){var n,r=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],a=Rs((()=>{var t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~r.includes(e.type)?e.type:"text"}return e.password?"password":t})),o=Rs((()=>{var t=i.indexOf(e.textContentType),n=i.indexOf(Cn(e.textContentType));return i[-1!==t?t:-1!==n?n:0]})),s=sa(""),l=sa(null),{fieldRef:u,state:c,scopedAttrsState:d,fixDisabledColor:h,trigger:p}=xd(e,l,t,((e,t)=>{var r=e.target;if("number"===a.value){if(n&&(r.removeEventListener("blur",n),n=null),r.validity&&!r.validity.valid)return!s.value&&"-"===e.data||"-"===s.value[0]&&"deleteContentBackward"===e.inputType?(s.value="-",t.value="",n=()=>{s.value=r.value=""},r.addEventListener("blur",n),!1):(s.value=t.value=r.value="-"===s.value?"":s.value,!1);s.value=r.value;var i=t.maxlength;if(i>0&&r.value.length>i)return r.value=r.value.slice(0,i),t.value=r.value,!1}})),f=["number","digit"],v=Rs((()=>f.includes(e.type)?"0.000000000000000001":""));function g(e){"Enter"===e.key&&(e.stopPropagation(),p("confirm",e,{value:e.target.value}))}return()=>{var t=e.disabled&&h?ps("input",{ref:u,value:c.value,tabindex:"-1",readonly:!!e.disabled,type:a.value,maxlength:c.maxlength,step:v.value,class:"uni-input-input",onFocus:e=>e.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):ps("input",{ref:u,value:c.value,disabled:!!e.disabled,type:a.value,maxlength:c.maxlength,step:v.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",autocomplete:o.value,onKeyup:g},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return ps("uni-input",{ref:l},{default:()=>[ps("div",{class:"uni-input-wrapper"},[qo(ps("div",_s(d.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[al,!(c.value.length||"-"===s.value)]]),"search"===e.confirmType?ps("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])]},512)}}});var Td,Ed,kd=["class","style"],Cd=/^on[A-Z]+/,Md=(e={})=>{var t,{excludeListeners:n=!1,excludeKeys:r=[]}=e,i=Cs(),a=la({}),o=la({}),s=la({}),l=r.concat(kd);return i.attrs=Ki(i.attrs),Za((()=>{var e,t=(e=i.attrs,Object.keys(e).map((t=>[t,e[t]]))).reduce(((e,[t,r])=>(l.includes(t)?e.exclude[t]=r:Cd.test(t)?(n||(e.attrs[t]=r),e.listeners[t]=r):e.attrs[t]=r,e)),{exclude:{},attrs:{},listeners:{}});a.value=t.attrs,o.value=t.listeners,s.value=t.exclude}),null,t),{$attrs:a,$listeners:o,$excludeAttrs:s}};function Od(){Fn((()=>{Td||(Td=plus.webview.currentWebview()),Ed||(Ed=(Td.getStyle()||{}).pullToRefresh||{})}))}function Id({disable:e}){Ed&&Ed.support&&Td.setPullToRefresh(Object.assign({},Ed,{support:!e}))}function Nd(e){var t=[];return Array.isArray(e)&&e.forEach((e=>{ls(e)?e.type===rs?t.push(...Nd(e.children)):t.push(e):Array.isArray(e)&&t.push(...Nd(e))})),t}function Ld(e){Cs().rebuild=e}var Ad=zu({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){var n=sa(null),r=sa(!1),{setContexts:i,events:a}=function(e,t){var n=sa(0),r=sa(0),i=Ki({x:null,y:null}),a=sa(null),o=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach((function(e){e._setScale(t)})):o&&o._setScale(t))}function u(e,n=s){var r=t.value;function i(e){for(var t=0;t<n.length;t++){var a=n[t];if(e===a.rootRef.value)return a}return e===r||e===document.body||e===document?null:i(e.parentNode)}return i(e)}var c=Xu((t=>{Id({disable:!0});var n=t.touches;if(n&&n.length>1){var r={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(a.value=Pd(r),i.x=r.x,i.y=r.y,!e.scaleArea){var s=u(n[0].target),l=u(n[1].target);o=s&&s===l?s:null}}})),d=Xu((e=>{var t=e.touches;if(t&&t.length>1){e.preventDefault();var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&a.value&&a.value>0)l(Pd(n)/a.value);i.x=n.x,i.y=n.y}})),h=Xu((t=>{Id({disable:!1});var n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,a.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):o&&o._endScale())}));function p(){f(),s.forEach((function(e,t){e.setParent()}))}function f(){var e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce((function(t,n){var r="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[r])}),0),r.value=i.height-["Top","Bottom"].reduce((function(t,n){var r="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[r])}),0)}return Xa("movableAreaWidth",n),Xa("movableAreaHeight",r),{setContexts(e){s=e},events:{_onTouchstart:c,_onTouchmove:d,_onTouchend:h,_resize:p}}}(e,n),{$listeners:o,$attrs:s,$excludeAttrs:l}=Md(),u=o.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{var t=u[e],n=a["_".concat(e)];u[e]=t?[].concat(t,n):n})),ho((()=>{a._resize(),Od(),r.value=!0}));var c=[],d=[];function h(){for(var e=[],t=function(t){var n=c[t];n instanceof Element||(n=n.el);var r=d.find((e=>n===e.rootRef.value));r&&e.push(ia(r))},n=0;n<c.length;n++)t(n);i(e)}Ld((()=>{c=n.value.children,h()}));return Xa("_isMounted",r),Xa("movableAreaRootRef",n),Xa("addMovableViewContext",(e=>{d.push(e),h()})),Xa("removeMovableViewContext",(e=>{var t=d.indexOf(e);t>=0&&(d.splice(t,1),h())})),()=>(t.default&&t.default(),ps("uni-movable-area",_s({ref:n},s.value,l.value,u),{default:()=>[ps(ic,{onReize:a._resize},null,8,["onReize"]),c],_:2},16))}});function Pd(e){return Math.sqrt(e.x*e.x+e.y*e.y)}var Rd,Bd,Dd=function(e,t,n,r){e.addEventListener(t,(e=>{"function"==typeof n&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};function $d(e,t,n){vo((()=>{document.removeEventListener("mousemove",Rd),document.removeEventListener("mouseup",Bd)}));var r,i,a=0,o=0,s=0,l=0,u=function(e,n,r,i){if(!1===t({target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:r,y:i,dx:r-a,dy:i-o,ddx:r-s,ddy:i-l,timeStamp:e.timeStamp}}))return!1},c=null;Dd(e,"touchstart",(function(e){if(r=!0,1===e.touches.length&&!c)return c=e,a=s=e.touches[0].pageX,o=l=e.touches[0].pageY,u(e,"start",a,o)})),Dd(e,"mousedown",(function(e){if(i=!0,!r&&!c)return c=e,a=s=e.pageX,o=l=e.pageY,u(e,"start",a,o)})),Dd(e,"touchmove",(function(e){if(1===e.touches.length&&c){var t=u(e,"move",e.touches[0].pageX,e.touches[0].pageY);return s=e.touches[0].pageX,l=e.touches[0].pageY,t}}));var d=Rd=function(e){if(!r&&i&&c){var t=u(e,"move",e.pageX,e.pageY);return s=e.pageX,l=e.pageY,t}};document.addEventListener("mousemove",d),Dd(e,"touchend",(function(e){if(0===e.touches.length&&c)return r=!1,c=null,u(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));var h=Bd=function(e){if(i=!1,!r&&c)return c=null,u(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Dd(e,"touchcancel",(function(e){if(c){r=!1;var t=c;return c=null,u(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Fd(e,t,n){return e>t-n&&e<t+n}function Wd(e,t){return Fd(e,0,t)}function jd(){}function Vd(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function zd(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function Hd(e,t,n){this._springX=new zd(e,t,n),this._springY=new zd(e,t,n),this._springScale=new zd(e,t,n),this._startTime=0}jd.prototype.x=function(e){return Math.sqrt(e)},Vd.prototype.setV=function(e,t){var n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Vd.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Vd.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Vd.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Vd.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Vd.prototype.dt=function(){return-this._x_v/this._x_a},Vd.prototype.done=function(){var e=Fd(this.s().x,this._endPositionX)||Fd(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Vd.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Vd.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},zd.prototype._solve=function(e,t){var n=this._c,r=this._m,i=this._k,a=n*n-4*r*i;if(0===a){var o=-n/(2*r),s=e,l=t/(o*e);return{x:function(e){return(s+l*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+l*e)*t+l*t}}}if(a>0){var u=(-n-Math.sqrt(a))/(2*r),c=(-n+Math.sqrt(a))/(2*r),d=(t-u*e)/(c-u),h=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*u*t+d*c*n}}}var p=Math.sqrt(4*r*i-n*n)/(2*r),f=-n/2*r,v=e,g=(t-f*e)/p;return{x:function(e){return Math.pow(Math.E,f*e)*(v*Math.cos(p*e)+g*Math.sin(p*e))},dx:function(e){var t=Math.pow(Math.E,f*e),n=Math.cos(p*e),r=Math.sin(p*e);return t*(g*p*n-v*p*r)+f*t*(g*r+v*n)}}},zd.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},zd.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},zd.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Wd(t,.1)){t=t||0;var r=this._endPosition;this._solution&&(Wd(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),Wd(t,.1)&&(t=0),Wd(r,.1)&&(r=0),r+=this._endPosition),this._solution&&Wd(r-e,.1)&&Wd(t,.1)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}},zd.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},zd.prototype.done=function(e){return e||(e=(new Date).getTime()),Fd(this.x(),this._endPosition,.1)&&Wd(this.dx(),.1)},zd.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},zd.prototype.springConstant=function(){return this._k},zd.prototype.damping=function(){return this._c},zd.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Hd.prototype.setEnd=function(e,t,n,r){var i=(new Date).getTime();this._springX.setEnd(e,r,i),this._springY.setEnd(t,r,i),this._springScale.setEnd(n,r,i),this._startTime=i},Hd.prototype.x=function(){var e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Hd.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Hd.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};var qd=zu({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){var r=sa(null),i=Gu(r,n),{setParent:a}=function(e,t,n){var r,i,a=Ga("movableAreaWidth",sa(0)),o=Ga("movableAreaHeight",sa(0)),s=Ga("_isMounted",sa(!1)),l=Ga("movableAreaRootRef"),u=Ga("addMovableViewContext",(()=>{})),c=Ga("removeMovableViewContext",(()=>{})),d=sa(Zd(e.x)),h=sa(Zd(e.y)),p=sa(Number(e.scaleValue)||1),f=sa(0),v=sa(0),g=sa(0),m=sa(0),y=sa(0),_=sa(0),b=null,w=null,x={x:0,y:0},S={x:0,y:0},T=1,E=1,k=0,C=0,M=!1,O=!1,I=null,N=null,L=new jd,A=new jd,P={historyX:[0,0],historyY:[0,0],historyT:[0,0]},R=Rs((()=>{var t=Number(e.damping);return isNaN(t)?20:t})),B=Rs((()=>{var t=Number(e.friction);return isNaN(t)||t<=0?2:t})),D=Rs((()=>{var t=Number(e.scaleMin);return isNaN(t)?.5:t})),$=Rs((()=>{var t=Number(e.scaleMax);return isNaN(t)?10:t})),F=Rs((()=>"all"===e.direction||"horizontal"===e.direction)),W=Rs((()=>"all"===e.direction||"vertical"===e.direction)),j=new Hd(1,9*Math.pow(R.value,2)/40,R.value),V=new Vd(1,B.value);function z(){w&&w.cancel(),b&&b.cancel()}function H(e){if(F.value){if(e+S.x===k)return k;b&&b.cancel(),ae(e+S.x,h.value+S.y,T)}return e}function q(e){if(W.value){if(e+S.y===C)return C;b&&b.cancel(),ae(d.value+S.x,e+S.y,T)}return e}function U(){if(!e.scale)return!1;ne(T,!0),re(T)}function Y(t){return!!e.scale&&(ne(t=ie(t),!0),re(t),t)}function X(){M||e.disabled||(Id({disable:!0}),z(),P.historyX=[0,0],P.historyY=[0,0],P.historyT=[0,0],F.value&&(r=k),W.value&&(i=C),n.value.style.willChange="transform",I=null,N=null,O=!0)}function G(t){if(!M&&!e.disabled&&O){var n=k,a=C;if(null===N&&(N=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),F.value&&(n=t.detail.dx+r,P.historyX.shift(),P.historyX.push(n),W.value||null!==I||(I=Math.abs(t.detail.dx/t.detail.dy)<1)),W.value&&(a=t.detail.dy+i,P.historyY.shift(),P.historyY.push(a),F.value||null!==I||(I=Math.abs(t.detail.dy/t.detail.dx)<1)),P.historyT.shift(),P.historyT.push(t.detail.timeStamp),!I){t.preventDefault();var o="touch";n<g.value?e.outOfBounds?(o="touch-out-of-bounds",n=g.value-L.x(g.value-n)):n=g.value:n>y.value&&(e.outOfBounds?(o="touch-out-of-bounds",n=y.value+L.x(n-y.value)):n=y.value),a<m.value?e.outOfBounds?(o="touch-out-of-bounds",a=m.value-A.x(m.value-a)):a=m.value:a>_.value&&(e.outOfBounds?(o="touch-out-of-bounds",a=_.value+A.x(a-_.value)):a=_.value),Yd((function(){se(n,a,T,o)}))}}}function J(){if(!M&&!e.disabled&&O&&(Id({disable:!1}),n.value.style.willChange="auto",O=!1,!I&&!oe("out-of-bounds")&&e.inertia)){var t=1e3*(P.historyX[1]-P.historyX[0])/(P.historyT[1]-P.historyT[0]),r=1e3*(P.historyY[1]-P.historyY[0])/(P.historyT[1]-P.historyT[0]);V.setV(t,r),V.setS(k,C);var i=V.delta().x,a=V.delta().y,o=i+k,s=a+C;o<g.value?(o=g.value,s=C+(g.value-k)*a/i):o>y.value&&(o=y.value,s=C+(y.value-k)*a/i),s<m.value?(s=m.value,o=k+(m.value-C)*i/a):s>_.value&&(s=_.value,o=k+(_.value-C)*i/a),V.setEnd(o,s),w=Kd(V,(function(){var e=V.s();se(e.x,e.y,T,"friction")}),(function(){w.cancel()}))}e.outOfBounds||e.inertia||z()}function K(e,t){var n=!1;return e>y.value?(e=y.value,n=!0):e<g.value&&(e=g.value,n=!0),t>_.value?(t=_.value,n=!0):t<m.value&&(t=m.value,n=!0),{x:e,y:t,outOfBounds:n}}function Z(){x.x=Xd(n.value,l.value),x.y=Gd(n.value,l.value)}function Q(e){e=ie(e=e||T);var t=n.value.getBoundingClientRect();v.value=t.height/T,f.value=t.width/T;var r=v.value*e,i=f.value*e;S.x=(i-f.value)/2,S.y=(r-v.value)/2}function ee(){var e=0-x.x+S.x,t=a.value-f.value-x.x-S.x;g.value=Math.min(e,t),y.value=Math.max(e,t);var n=0-x.y+S.y,r=o.value-v.value-x.y-S.y;m.value=Math.min(n,r),_.value=Math.max(n,r)}function te(){M=!0}function ne(t,n){if(e.scale){Q(t=ie(t)),ee();var r=K(k,C),i=r.x,a=r.y;n?ae(i,a,t,"",!0,!0):Yd((function(){se(i,a,t,"",!0,!0)}))}}function re(e){E=e}function ie(e){return e=Math.max(.5,D.value,e),e=Math.min(10,$.value,e)}function ae(t,n,r,i,a,o){z(),F.value||(t=k),W.value||(n=C),e.scale||(r=T);var s=K(t,n);t=s.x,n=s.y,e.animation?(j._springX._solution=null,j._springY._solution=null,j._springScale._solution=null,j._springX._endPosition=k,j._springY._endPosition=C,j._springScale._endPosition=T,j.setEnd(t,n,r,1),b=Kd(j,(function(){var e=j.x();se(e.x,e.y,e.scale,i,a,o)}),(function(){b.cancel()}))):se(t,n,r,i,a,o)}function oe(e){var t=K(k,C),n=t.x,r=t.y,i=t.outOfBounds;return i&&ae(n,r,T,e),i}function se(r,i,a,o="",s,l){null!==r&&"NaN"!==r.toString()&&"number"==typeof r||(r=k||0),null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=C||0),r=Number(r.toFixed(1)),i=Number(i.toFixed(1)),a=Number(a.toFixed(1)),k===r&&C===i||s||t("change",{},{x:Jd(r,S.x),y:Jd(i,S.y),source:o}),e.scale||(a=T),a=+(a=ie(a)).toFixed(3),l&&a!==T&&t("scale",{},{x:r,y:i,scale:a});var u="translateX("+r+"px) translateY("+i+"px) translateZ(0px) scale("+a+")";n.value.style.transform=u,n.value.style.webkitTransform=u,k=r,C=i,T=a}function le(){if(s.value){z();var t=e.scale?p.value:1;Z(),Q(t),ee(),k=d.value+S.x,C=h.value+S.y;var n=K(k,C);se(n.x,n.y,t,"",!0),re(t)}}function ue(){M=!1,re(T)}function ce(e){e&&(e*=E,te(),ne(e))}return Ka((()=>e.x),(e=>{d.value=Zd(e)})),Ka((()=>e.y),(e=>{h.value=Zd(e)})),Ka(d,(e=>{H(e)})),Ka(h,(e=>{q(e)})),Ka((()=>e.scaleValue),(e=>{p.value=Number(e)||0})),Ka(p,(e=>{Y(e)})),Ka(D,(()=>{U()})),Ka($,(()=>{U()})),ho((()=>{$d(n.value,(e=>{switch(e.detail.state){case"start":X();break;case"move":G(e);break;case"end":J()}})),le(),V.reconfigure(1,B.value),j.reconfigure(1,9*Math.pow(R.value,2)/40,R.value),n.value.style.transformOrigin="center",Od();var e={rootRef:n,setParent:le,_endScale:ue,_setScale:ce};u(e),go((()=>{c(e)}))})),go((()=>{z()})),{setParent:le}}(e,i,r);return()=>ps("uni-movable-view",{ref:r},{default:()=>[ps(ic,{onResize:a},null,8,["onResize"]),t.default&&t.default()],_:1},512)}}),Ud=!1;function Yd(e){Ud||(Ud=!0,requestAnimationFrame((function(){e(),Ud=!1})))}function Xd(e,t){if(e===t)return 0;var n=e.offsetLeft;return e.offsetParent?n+=Xd(e.offsetParent,t):0}function Gd(e,t){if(e===t)return 0;var n=e.offsetTop;return e.offsetParent?n+=Gd(e.offsetParent,t):0}function Jd(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function Kd(e,t,n){var r={id:0,cancelled:!1};return function e(t,n,r,i){if(!t||!t.cancelled){r(n);var a=n.done();a||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),a&&i&&i(n)}}(r,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,r),model:e}}function Zd(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}var Qd=["navigate","redirect","switchTab","reLaunch","navigateBack"],eh=zu({name:"Navigator",compatConfig:{MODE:3},props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~Qd.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1}},setup(e,{slots:t}){var{hovering:n,binding:r}=Uu(e);function i(t){if("navigateBack"===e.openType||e.url)switch(e.openType){case"navigate":uni.navigateTo({url:e.url});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta})}else console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}return()=>{var{hoverClass:a}=e,o=e.hoverClass&&"none"!==e.hoverClass;return ps("uni-navigator",_s({class:o&&n.value?a:""},o&&r,{onClick:i}),{default:()=>[t.default&&t.default()]},16,["class","onClick"])}}});var th=zu({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return Array.isArray(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){var r=sa(null),i=sa(null),a=Gu(r,n),o=function(e){var t=Ki([...e.value]),n=Ki({value:t,height:34});return Ka((()=>e.value),((e,t)=>{(e===t||e.length!==t.length||e.findIndex(((e,n)=>e!==t[n]))>=0)&&(n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)})))})),n}(e),s=sa(null),l=sa([]);function u(e){var t=l.value;return t instanceof HTMLCollection?Array.prototype.indexOf.call(t,e.el):t.indexOf(e)}return Xa("getPickerViewColumn",(function(e){return Rs({get(){var t=u(e.vnode);return o.value[t]||0},set(t){var r=u(e.vnode);if(!(r<0)&&o.value[r]!==t){o.value.splice(r,1,t);var i=o.value.map((e=>e));n("update:value",i),a("change",{},{value:i})}}})})),Xa("pickerViewProps",e),Xa("pickerViewState",o),Ld((()=>{var e;e=s.value,o.height=e.$el.offsetHeight,l.value=i.value.children})),()=>{var e=t.default&&t.default();return ps("uni-picker-view",{ref:r},{default:()=>[ps(ic,{ref:s,onResize:({height:e})=>o.height=e},null,8,["onResize"]),ps("div",{ref:i,class:"uni-picker-view-wrapper"},[e],512)],_:2},512)}}});class nh{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);var t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);var t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){var e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function rh(e,t,n){return e>t-n&&e<t+n}function ih(e,t){return rh(e,0,t)}class ah{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){var n=this._c,r=this._m,i=this._k,a=n*n-4*r*i;if(0===a){var o=-n/(2*r),s=e,l=t/(o*e);return{x:function(e){return(s+l*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+l*e)*t+l*t}}}if(a>0){var u=(-n-Math.sqrt(a))/(2*r),c=(-n+Math.sqrt(a))/(2*r),d=(t-u*e)/(c-u),h=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),h*u*t+d*c*n}}}var p=Math.sqrt(4*r*i-n*n)/(2*r),f=-n/2*r,v=e,g=(t-f*e)/p;return{x:function(e){return Math.pow(Math.E,f*e)*(v*Math.cos(p*e)+g*Math.sin(p*e))},dx:function(e){var t=Math.pow(Math.E,f*e),n=Math.cos(p*e),r=Math.sin(p*e);return t*(g*p*n-v*p*r)+f*t*(g*r+v*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!ih(t,.4)){t=t||0;var r=this._endPosition;this._solution&&(ih(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),ih(t,.4)&&(t=0),ih(r,.4)&&(r=0),r+=this._endPosition),this._solution&&ih(r-e,.4)&&ih(t,.4)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),rh(this.x(),this._endPosition,.4)&&ih(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class oh{constructor(e,t,n){this._extent=e,this._friction=t||new nh(.01),this._spring=n||new ah(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){var t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class sh{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new oh(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){var n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}var r,i,a;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var o=this._scroll._friction.x(100),s=o%this._itemSize;(r=Math.abs(s)>this._itemSize/2?o-(this._itemSize-Math.abs(s)):o-s)<=0&&r>=-this._extent&&this._scroll.setVelocityByEnd(r)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=(i=this._scroll,function e(t,n,r,i){if(!t||!t.cancelled){r(n);var a=n.done();a||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),a&&i&&i(n)}}(a={id:0,cancelled:!1},i,(()=>{var e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();var r=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/r),this._lastTime=e)}),(()=>{this._enableSnap&&(r<=0&&r>=-this._extent&&(this._position=r,this.updatePosition()),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,a),model:i})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if("function"==typeof this._options.onScroll&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){var r=0,i=this._position;this._enableX?(r=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(r=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-r?this._position=-r:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=r,this._scroll._extent=r}updatePosition(){var e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}var lh=0;var uh=zu({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){var r,i,a=sa(null),o=sa(null),s=Ga("getPickerViewColumn"),l=Cs(),u=s?s(l):sa(0),c=Ga("pickerViewProps"),d=Ga("pickerViewState"),h=sa(34),p=sa(null),f=Rs((()=>(d.height-h.value)/2)),{state:v}=fd(),g=function(e){var t="uni-picker-view-content-".concat(lh++);return Ka((()=>e.value),(function(){var n=document.createElement("style");n.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(n)})),t}(h),m=Ki({current:u.value,length:0});function y(){r&&!i&&(i=!0,Ia((()=>{i=!1;var e=Math.min(m.current,m.length-1);e=Math.max(e,0),r.update(e*h.value,void 0,h.value)})))}Ka((()=>u.value),(e=>{e!==m.current&&(m.current=e,y())})),Ka((()=>m.current),(e=>u.value=e)),Ka([()=>h.value,()=>m.length,()=>d.height],y);var _=0;function b(e){var t=_+e.deltaY;if(Math.abs(t)>10){_=0;var n=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=n=Math.max(n,0),r.scrollTo(n*h.value)}else _=t;e.preventDefault()}function w({clientY:e}){var t=a.value;if(!r.isScrolling()){var n=e-t.getBoundingClientRect().top-d.height/2,i=h.value/2;if(!(Math.abs(n)<=i)){var o=Math.ceil((Math.abs(n)-i)/h.value),s=n<0?-o:o,l=Math.min(m.current+s,m.length-1);m.current=l=Math.max(l,0),r.scrollTo(l*h.value)}}}var x=()=>{var e,t,n,i=a.value,s=o.value,{scroller:l,handleTouchStart:u,handleTouchMove:c,handleTouchEnd:d}=function(e,t){var n={trackingID:-1,maxDy:0,maxDx:0},r=new sh(e,t);function i(e){var t=e,r=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:r.screenX-n.x,y:r.screenY-n.y}}return{scroller:r,handleTouchStart:function(e){var t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=r,r.onTouchStart&&r.onTouchStart(),e.preventDefault()},handleTouchMove:function(e){var t=e,r=e;if(-1!==n.trackingID){e.preventDefault();var a=i(e);if(a){for(n.maxDy=Math.max(n.maxDy,Math.abs(a.y)),n.maxDx=Math.max(n.maxDx,Math.abs(a.x)),n.historyX.push(a.x),n.historyY.push(a.y),n.historyTime.push(t.detail.timeStamp||r.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(a.x,a.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();var t=i(e);if(t){var r=n.listener;n.trackingID=-1,n.listener=null;var a={x:0,y:0};if(n.historyTime.length>2)for(var o=n.historyTime.length-1,s=n.historyTime[o],l=n.historyX[o],u=n.historyY[o];o>0;){o--;var c=s-n.historyTime[o];if(c>30&&c<50){a.x=(l-n.historyX[o])/(c/1e3),a.y=(u-n.historyY[o])/(c/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],r&&r.onTouchEnd&&r.onTouchEnd(t.x,t.y,a)}}}}}(s,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:h.value,friction:new nh(1e-4),spring:new ah(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});r=l,$d(i,(e=>{switch(e.detail.state){case"start":u(e),Id({disable:!0});break;case"move":c(e);break;case"end":case"cancel":d(e),Id({disable:!1})}}),!0),t=0,n=0,(e=i).addEventListener("touchstart",(e=>{var r=e.changedTouches[0];t=r.clientX,n=r.clientY})),e.addEventListener("touchend",(e=>{var r=e.changedTouches[0];if(Math.abs(r.clientX-t)<20&&Math.abs(r.clientY-n)<20){var i={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},a=new CustomEvent("click",i);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{a[e]=r[e]})),e.target.dispatchEvent(a)}})),Od(),y()};return Ld((()=>{var e;m.length=o.value.children.length,e=p.value,h.value=e.$el.offsetHeight,x()})),()=>{var e=t.default&&t.default(),n="".concat(f.value,"px 0");return ps("uni-picker-view-column",{ref:a},{default:()=>[ps("div",{onWheel:b,onClick:w,class:"uni-picker-view-group"},[ps("div",_s(v.attrs,{class:["uni-picker-view-mask",c.maskClass],style:"background-size: 100% ".concat(f.value,"px;").concat(c.maskStyle)}),null,16),ps("div",_s(v.attrs,{class:["uni-picker-view-indicator",c.indicatorClass],style:c.indicatorStyle}),[ps(ic,{ref:p,onResize:({height:e})=>h.value=e},null,8,["onResize"])],16),ps("div",{ref:o,class:["uni-picker-view-content",g],style:{padding:n}},[e],6)],40,["onWheel","onClick"])]},512)}}}),ch=Qn,dh="backwards",hh=zu({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:ch},activeColor:{type:String,default:ch},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:dh},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))}},setup(e){var t=function(e){var t=sa(0),n=Rs((()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;"))),r=Rs((()=>{var n=e.color!==ch&&e.activeColor===ch?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(n)})),i=Rs((()=>{var t=parseFloat(e.percent);return t<0&&(t=0),t>100&&(t=100),t}));return Ki({outerBarStyle:n,innerBarStyle:r,realPercent:i,currentPercent:t,strokeTimer:0,lastPercent:0})}(e);return ph(t,e),Ka((()=>t.realPercent),((n,r)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=r||0,ph(t,e)})),()=>{var{showInfo:n}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:a}=t;return ps("uni-progress",{class:"uni-progress"},{default:()=>[ps("div",{style:r,class:"uni-progress-bar"},[ps("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),n?ps("p",{class:"uni-progress-info"},[a+"%"]):""],_:1})}}});function ph(e,t){t.active?(e.currentPercent=t.activeMode===dh?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}var fh=xl("ucg"),vh=zu({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){var r=sa(null);return function(e,t){var n=[];ho((()=>{s(n.length-1)}));var r=()=>{var e;return null===(e=n.find((e=>e.value.radioChecked)))||void 0===e?void 0:e.value.value};Xa(fh,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,i){s(n.indexOf(i),!0),t("change",e,{value:r()})}});var i=Ga(Ju,!1),a={submit:()=>{var t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=r()),t}};i&&(i.addField(a),vo((()=>{i.removeField(a)})));function o(e,t){e.value={radioChecked:t,value:e.value.value}}function s(e,t){n.forEach(((r,i)=>{i!==e&&(t?o(n[i],!1):n.forEach(((e,t)=>{i>=t||n[t].value.radioChecked&&o(n[i],!1)})))}))}}(e,Gu(r,t)),()=>ps("uni-radio-group",{ref:r},{default:()=>[n.default&&n.default()]},512)}});var gh=zu({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,{slots:t}){var n=sa(e.checked),r=sa(e.value),i=Rs((()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";")));Ka([()=>e.checked,()=>e.value],(([e,t])=>{n.value=e,r.value=t}));var{uniCheckGroup:a,uniLabel:o,field:s}=function(e,t,n){var r=Rs({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),i={reset:n},a=Ga(fh,!1);a&&a.addField(r);var o=Ga(Ju,!1);o&&o.addField(i);var s=Ga(Zu,!1);return vo((()=>{a&&a.removeField(r),o&&o.removeField(i)})),{uniCheckGroup:a,uniForm:o,uniLabel:s,field:r}}(n,r,(()=>{n.value=!1})),l=t=>{e.disabled||(n.value=!0,a&&a.radioChange(t,s))};return o&&(o.addHandler(l),vo((()=>{o.removeHandler(l)}))),ec(e,{"label-click":l}),()=>{var{booleanAttrs:r}=Yu(e,"disabled");return ps("uni-radio",_s(r,{onClick:l}),{default:()=>[ps("div",{class:"uni-radio-wrapper"},[ps("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:n.value?i.value:""},[n.value?Cl(kl,"#fff",18):""],6),t.default&&t.default()])]},16,["onClick"])}}});function mh(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(e);var t=[],n={node:"root",children:[]};return $c(e,{start:function(e,r,i){var a={name:e};if(0!==r.length&&(a.attrs=function(e){return e.reduce((function(e,t){var n=t.value,r=t.name;return n.match(/ /)&&"style"!==r&&(n=n.split(" ")),e[r]?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n,e}),{})}(r)),i){var o=t[0]||n;o.children||(o.children=[]),o.children.push(a)}else t.unshift(a)},end:function(e){var r=t.shift();if(r.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(r);else{var i=t[0];i.children||(i.children=[]),i.children.push(r)}},chars:function(e){var r={type:"text",text:e};if(0===t.length)n.children.push(r);else{var i=t[0];i.children||(i.children=[]),i.children.push(r)}},comment:function(e){var n={node:"comment",text:e},r=t[0];r.children||(r.children=[]),r.children.push(n)}}),n.children}var yh={a:"",abbr:"",b:"",blockquote:"",br:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",ol:["start","type"],p:"",q:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","rowspan","height","width"],tfoot:"",th:["colspan","rowspan","height","width"],thead:"",tr:"",ul:""},_h={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function bh(e,t){return e.forEach((function(e){if(bn(e))if(cn(e,"type")&&"node"!==e.type)"text"===e.type&&"string"==typeof e.text&&""!==e.text&&t.appendChild(document.createTextNode(e.text.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){if(cn(_h,t)&&_h[t])return _h[t];if(/^#[0-9]{1,4}$/.test(t))return String.fromCharCode(t.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(t))return String.fromCharCode("0"+t.slice(1));var n=document.createElement("div");return n.innerHTML=e,n.innerText||n.textContent}))));else{if("string"!=typeof e.name||!e.name)return;var n=e.name.toLowerCase();if(!cn(yh,n))return;var r=document.createElement(n);if(!r)return;var i=e.attrs;if(bn(i)){var a=yh[n]||[];Object.keys(i).forEach((function(e){var t=i[e];switch(e){case"class":Array.isArray(t)&&(t=t.join(" "));case"style":r.setAttribute(e,t);break;default:-1!==a.indexOf(e)&&r.setAttribute(e,t)}}))}var o=e.children;Array.isArray(o)&&o.length&&bh(e.children,r),t.appendChild(r)}})),t}var wh=zu({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},setup(e){var t=sa(null);function n(e){"string"==typeof e&&(e=mh(e));var n=bh(e,document.createDocumentFragment());t.value.firstElementChild.innerHTML="",t.value.firstElementChild.appendChild(n)}return Ka((()=>e.nodes),(e=>{n(e)})),ho((()=>{n(e.nodes)})),()=>ps("uni-rich-text",{ref:t},{default:()=>[ps("div",null,null)]},512)}}),xh=Dn(!0),Sh=zu({name:"ScrollView",compatConfig:{MODE:3},props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n}){var r=sa(null),i=sa(null),a=sa(null),o=sa(null),s=sa(null),l=Gu(r,t),{state:u,scrollTopNumber:c,scrollLeftNumber:d}=function(e){var t=Rs((()=>Number(e.scrollTop)||0)),n=Rs((()=>Number(e.scrollLeft)||0));return{state:Ki({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e);!function(e,t,n,r,i,a,o,s,l){var u=0,c=!1,d=0,h=!1,p=()=>{},f=Rs((()=>{var t=Number(e.upperThreshold);return isNaN(t)?50:t})),v=Rs((()=>{var t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function g(e,t){var n=o.value,r=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?r=n.scrollLeft-e:"y"===t&&(r=n.scrollTop-e),0!==r){var a=s.value;a.style.transition="transform .3s ease-out",a.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+r+"px) translateZ(0)":"y"===t&&(i="translateY("+r+"px) translateZ(0)"),a.removeEventListener("transitionend",p),a.removeEventListener("webkitTransitionEnd",p),p=()=>w(e,t),a.addEventListener("transitionend",p),a.addEventListener("webkitTransitionEnd",p),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),a.style.transform=i,a.style.webkitTransform=i}}function m(n){if(n.timeStamp-u>20){u=n.timeStamp;var r=n.target;i("scroll",n,{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,scrollWidth:r.scrollWidth,deltaX:t.lastScrollLeft-r.scrollLeft,deltaY:t.lastScrollTop-r.scrollTop}),e.scrollY&&(r.scrollTop<=f.value&&t.lastScrollTop-r.scrollTop>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",n,{direction:"top"}),t.lastScrollToUpperTime=n.timeStamp),r.scrollTop+r.offsetHeight+v.value>=r.scrollHeight&&t.lastScrollTop-r.scrollTop<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",n,{direction:"bottom"}),t.lastScrollToLowerTime=n.timeStamp)),e.scrollX&&(r.scrollLeft<=f.value&&t.lastScrollLeft-r.scrollLeft>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",n,{direction:"left"}),t.lastScrollToUpperTime=n.timeStamp),r.scrollLeft+r.offsetWidth+v.value>=r.scrollWidth&&t.lastScrollLeft-r.scrollLeft<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",n,{direction:"right"}),t.lastScrollToLowerTime=n.timeStamp)),t.lastScrollTop=r.scrollTop,t.lastScrollLeft=r.scrollLeft}}function y(t){e.scrollY&&(e.scrollWithAnimation?g(t,"y"):o.value.scrollTop=t)}function _(t){e.scrollX&&(e.scrollWithAnimation?g(t,"x"):o.value.scrollLeft=t)}function b(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error("id error: scroll-into-view=".concat(t));var n=a.value.querySelector("#"+t);if(n){var r=o.value.getBoundingClientRect(),i=n.getBoundingClientRect();if(e.scrollX){var s=i.left-r.left,l=o.value.scrollLeft+s;e.scrollWithAnimation?g(l,"x"):o.value.scrollLeft=l}if(e.scrollY){var u=i.top-r.top,c=o.value.scrollTop+u;e.scrollWithAnimation?g(c,"y"):o.value.scrollTop=c}}}}function w(t,n){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var r=o.value;"x"===n?(r.style.overflowX=e.scrollX?"auto":"hidden",r.scrollLeft=t):"y"===n&&(r.style.overflowY=e.scrollY?"auto":"hidden",r.scrollTop=t),s.value.removeEventListener("transitionend",p),s.value.removeEventListener("webkitTransitionEnd",p)}function x(n){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=d=0,"restore"===n&&(h=!1,i("refresherrestore",{},{})),"refresherabort"===n&&h&&(h=!1,i("refresherabort",{},{}))}t.refreshState=n}ho((()=>{y(n.value),_(r.value),b(e.scrollIntoView);var a=function(e){e.stopPropagation(),m(e)},s={x:0,y:0},l=null,u=function(n){var r=n.touches[0].pageX,a=n.touches[0].pageY,u=o.value;if(Math.abs(r-s.x)>Math.abs(a-s.y))if(e.scrollX){if(0===u.scrollLeft&&r>s.x)return void(l=!1);if(u.scrollWidth===u.offsetWidth+u.scrollLeft&&r<s.x)return void(l=!1);l=!0}else l=!1;else if(e.scrollY)if(0===u.scrollTop&&a>s.y)l=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(u.scrollHeight===u.offsetHeight+u.scrollTop&&a<s.y)return void(l=!1);l=!0}else l=!1;if(l&&n.stopPropagation(),0===u.scrollTop&&1===n.touches.length&&(t.refreshState="pulling"),e.refresherEnabled&&"pulling"===t.refreshState){var p=a-s.y;0===d&&(d=a),c?(t.refresherHeight=p+e.refresherThreshold,h=!1):(t.refresherHeight=a-d,t.refresherHeight>0&&(h=!0,i("refresherpulling",n,{deltaY:p})));var f=t.refresherHeight/e.refresherThreshold;t.refreshRotate=360*(f>1?1:f)}},p=function(e){1===e.touches.length&&(Id({disable:!0}),s={x:e.touches[0].pageX,y:e.touches[0].pageY})},f=function(n){s={x:0,y:0},Id({disable:!1}),t.refresherHeight>=e.refresherThreshold?x("refreshing"):x("refresherabort")};o.value.addEventListener("touchstart",p,xh),o.value.addEventListener("touchmove",u),o.value.addEventListener("scroll",a,xh),o.value.addEventListener("touchend",f,xh),Od(),vo((()=>{o.value.removeEventListener("touchstart",p),o.value.removeEventListener("touchmove",u),o.value.removeEventListener("scroll",a),o.value.removeEventListener("touchend",f)}))})),io((()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)})),Ka(n,(e=>{y(e)})),Ka(r,(e=>{_(e)})),Ka((()=>e.scrollIntoView),(e=>{b(e)})),Ka((()=>e.refresherTriggered),(e=>{!0===e?x("refreshing"):!1===e&&x("restore")}))}(e,u,c,d,l,r,i,o,t);var h=Rs((()=>{var t="";return e.scrollX?t+="overflow-x:auto;":t+="overflow-x:hidden;",e.scrollY?t+="overflow-y:auto;":t+="overflow-y:hidden;",t}));return()=>{var{refresherEnabled:t,refresherBackground:l,refresherDefaultStyle:c}=e,{refresherHeight:d,refreshState:p,refreshRotate:f}=u;return ps("uni-scroll-view",{ref:r},{default:()=>[ps("div",{ref:a,class:"uni-scroll-view"},[ps("div",{ref:i,style:h.value,class:"uni-scroll-view"},[ps("div",{ref:o,class:"uni-scroll-view-content"},[t?ps("div",{ref:s,style:{backgroundColor:l,height:d+"px"},class:"uni-scroll-view-refresher"},["none"!==c?ps("div",{class:"uni-scroll-view-refresh"},[ps("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==p?ps("svg",{key:"refresh__icon",style:{transform:"rotate("+f+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[ps("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),ps("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==p?ps("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[ps("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"==c?n.refresher&&n.refresher():null],4):null,n.default&&n.default()],512)],4)],512)]},512)}}});var Th=zu({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){var n=sa(null),r=sa(null),i=sa(null),a=sa(Number(e.value));Ka((()=>e.value),(e=>{a.value=Number(e)}));var o=Gu(n,t),s=function(e,t){var n=()=>{var n=Number(e.max),r=Number(e.min);return 100*(t.value-r)/(n-r)+"%"},r=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",i=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9";return{setBgColor:Rs((()=>({backgroundColor:r()}))),setBlockBg:Rs((()=>({left:n()}))),setActiveColor:Rs((()=>({backgroundColor:i(),width:n()}))),setBlockStyle:Rs((()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor})))}}(e,a),{_onClick:l,_onTrack:u}=function(e,t,n,r,i){var a=n=>{e.disabled||(s(n),i("change",n,{value:t.value}))},o=t=>{var n=Number(e.max),r=Number(e.min),i=Number(e.step);return t<r?r:t>n?n:Eh.mul.call(Math.round((t-r)/i),i)+r},s=i=>{var a=Number(e.max),s=Number(e.min),l=r.value,u=getComputedStyle(l,null).marginLeft,c=l.offsetWidth;c+=parseInt(u);var d=n.value,h=d.offsetWidth-(e.showValue?c:0),p=d.getBoundingClientRect().left,f=(i.x-p)*(a-s)/h+s;t.value=o(f)},l=n=>{if(!e.disabled)return"move"===n.detail.state?(s({x:n.detail.x}),i("changing",n,{value:t.value}),!1):"end"===n.detail.state&&i("change",n,{value:t.value})},u=Ga(Ju,!1);if(u){var c={reset:()=>t.value=Number(e.min),submit:()=>{var n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};u.addField(c),vo((()=>{u.removeField(c)}))}return{_onClick:a,_onTrack:l}}(e,a,n,r,o);return ho((()=>{$d(i.value,u)})),()=>{var{setBgColor:t,setBlockBg:o,setActiveColor:u,setBlockStyle:c}=s;return ps("uni-slider",{ref:n,onClick:Xu(l)},{default:()=>[ps("div",{class:"uni-slider-wrapper"},[ps("div",{class:"uni-slider-tap-area"},[ps("div",{style:t.value,class:"uni-slider-handle-wrapper"},[ps("div",{ref:i,style:o.value,class:"uni-slider-handle"},null,4),ps("div",{style:c.value,class:"uni-slider-thumb"},null,4),ps("div",{style:u.value,class:"uni-slider-track"},null,4)],4)]),qo(ps("span",{ref:r,class:"uni-slider-value"},[a.value],512),[[al,e.showValue]])]),ps("slot",null,null)],_:1},8,["onClick"])}}});var Eh={mul:function(e){var t=0,n=this.toString(),r=e.toString();try{t+=n.split(".")[1].length}catch(i){}try{t+=r.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,t)}};function kh(e,t,n,r,i,a){function o(){u&&(clearTimeout(u),u=null)}var s,l,u=null,c=!0,d=0,h=1,p=null,f=!1,v=0,g="",m=Rs((()=>e.circular&&n.value.length>t.displayMultipleItems));function y(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||m.value&&function(r){if(!c)for(var i=n.value,a=i.length,o=r+t.displayMultipleItems,s=0;s<a;s++){var l=i[s],u=Math.floor(r/a)*a+s,d=u+a,h=u-a,p=Math.max(r-(u+1),u-o,0),f=Math.max(r-(d+1),d-o,0),v=Math.max(r-(h+1),h-o,0),g=Math.min(p,f,v),m=[u,d,h][[p,f,v].indexOf(g)];l.updatePosition(m,e.vertical)}}(i);var o="translate("+(e.vertical?"0":100*-i*h+"%")+", "+(e.vertical?100*-i*h+"%":"0")+") translateZ(0)",l=r.value;if(l&&(l.style.webkitTransform=o,l.style.transform=o),d=i,!s){if(i%1==0)return;s=i}i-=Math.floor(s);var u=n.value;i<=-(u.length-1)?i+=u.length:i>=u.length&&(i-=u.length),i=s%1>.5||s<0?i-1:i,a("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function _(e){var r=n.value.length;if(!r)return-1;var i=(Math.round(e)%r+r)%r;if(m.value){if(r<=t.displayMultipleItems)return 0}else if(i>r-t.displayMultipleItems)return r-t.displayMultipleItems;return i}function b(){p=null}function w(){if(p){var e=p,r=e.toPos,i=e.acc,o=e.endTime,u=e.source,c=o-Date.now();if(c<=0){y(r),p=null,f=!1,s=null;var d=n.value[t.current];if(d){var h=d.getItemId();a("animationfinish",{},{current:t.current,currentItemId:h,source:u})}}else{y(r+i*c*c/2),l=requestAnimationFrame(w)}}else f=!1}function x(e,r,i){b();var a=t.duration,o=n.value.length,s=d;if(m.value)if(i<0){for(;s<e;)s+=o;for(;s-o>e;)s-=o}else if(i>0){for(;s>e;)s-=o;for(;s+o<e;)s+=o}else{for(;s+o<e;)s+=o;for(;s-o>e;)s-=o;s+o-e<e-s&&(s+=o)}p={toPos:e,acc:2*(s-e)/(a*a),endTime:Date.now()+a,source:r},f||(f=!0,l=requestAnimationFrame(w))}function S(){o();var e=n.value,r=function(){u=null,g="autoplay",m.value?t.current=_(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,x(t.current,"autoplay",m.value?1:0),u=setTimeout(r,t.interval)};c||e.length<=t.displayMultipleItems||(u=setTimeout(r,t.interval))}function T(e){e?S():o()}return Ka([()=>e.current,()=>e.currentItemId,()=>[...n.value]],(()=>{var r=-1;if(e.currentItemId)for(var i=0,a=n.value;i<a.length;i++){if(a[i].getItemId()===e.currentItemId){r=i;break}}r<0&&(r=Math.round(e.current)||0),r=r<0?0:r,t.current!==r&&(g="",t.current=r)})),Ka([()=>e.vertical,()=>m.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){o(),p&&(y(p.toPos),p=null);for(var i=n.value,a=0;a<i.length;a++)i[a].updatePosition(a,e.vertical);h=1;var s=r.value;if(1===t.displayMultipleItems&&i.length){var l=i[0].getBoundingClientRect(),u=s.getBoundingClientRect();(h=l.width/u.width)>0&&h<1||(h=1)}var f=d;d=-2;var g=t.current;g>=0?(c=!1,t.userTracking?(y(f+g-v),v=g):(y(g),e.autoplay&&S())):(c=!0,y(-t.displayMultipleItems-1))})),Ka((()=>t.interval),(()=>{u&&(o(),S())})),Ka((()=>t.current),((e,r)=>{!function(e,r){var i=g;g="";var o=n.value;if(!i){var s=o.length;x(e,"",m.value&&r+(s-e)%s>s/2?1:0)}var l=o[e];if(l){var u=t.currentItemId=l.getItemId();a("change",{},{current:t.current,currentItemId:u,source:i})}}(e,r),i("update:current",e)})),Ka((()=>t.currentItemId),(e=>{i("update:currentItemId",e)})),Ka((()=>e.autoplay&&!t.userTracking),T),T(e.autoplay&&!t.userTracking),ho((()=>{var i=!1,a=0,s=0;function l(e){t.userTracking=!1;var n=a/Math.abs(a),r=0;!e&&Math.abs(a)>.2&&(r=.5*n);var i=_(d+r);e?y(v):(g="touch",t.current=i,x(i,"touch",0!==r?r:0===i&&m.value&&d>=1?1:0))}$d(r.value,(u=>{if(!e.disableTouch&&!c){if("start"===u.detail.state)return t.userTracking=!0,i=!1,o(),v=d,a=0,s=Date.now(),void b();if("end"===u.detail.state)return l(!1);if("cancel"===u.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;var h=Math.abs(u.detail.dx),p=Math.abs(u.detail.dy);if((h>=p&&e.vertical||h<=p&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&S())}return function(i){var o=s;s=Date.now();var l=n.value.length-t.displayMultipleItems;function u(e){return.5-.25/(e+.5)}function c(e,t){var n=v+e;a=.6*a+.4*t,m.value||(n<0||n>l)&&(n<0?n=-u(-n):n>l&&(n=l+u(n-l)),a=0),y(n)}var d=s-o||1,h=r.value;e.vertical?c(-i.dy/h.offsetHeight,-i.ddy/d):c(-i.dx/h.offsetWidth,-i.ddx/d)}(u.detail),!1}}}))})),go((()=>{o(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){x(t.current=e,g="click",m.value?1:0)}}}var Ch=zu({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){var r=sa(null),i=Gu(r,n),a=sa(null),o=sa(null),s=function(e){return Ki({interval:Rs((()=>{var t=Number(e.interval);return isNaN(t)?5e3:t})),duration:Rs((()=>{var t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:Rs((()=>{var t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=Rs((()=>{var t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:Tl(e.previousMargin,!0),bottom:Tl(e.nextMargin,!0)}:{top:0,bottom:0,left:Tl(e.previousMargin,!0),right:Tl(e.nextMargin,!0)}),t})),u=Rs((()=>{var t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}})),c=[],d=[],h=sa([]);function p(){for(var e=[],t=function(t){var n=c[t];n instanceof Element||(n=n.el);var r=d.find((e=>n===e.rootRef.value));r&&e.push(ia(r))},n=0;n<c.length;n++)t(n);h.value=e}Ld((()=>{c=o.value.children,p()}));Xa("addSwiperContext",(function(e){d.push(e),p()}));Xa("removeSwiperContext",(function(e){var t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));var{onSwiperDotClick:f}=kh(e,s,h,o,n,i);return()=>{var n=t.default&&t.default();return c=Nd(n),ps("uni-swiper",{ref:r},{default:()=>[ps("div",{ref:a,class:"uni-swiper-wrapper"},[ps("div",{class:"uni-swiper-slides",style:l.value},[ps("div",{ref:o,class:"uni-swiper-slide-frame",style:u.value},[n],4)],4),e.indicatorDots&&ps("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map(((t,n,r)=>ps("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<s.current+s.displayMultipleItems&&n>=s.current||n<s.current+s.displayMultipleItems-r.length},style:{background:n===s.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"])))],2)],512)]},512)}}}),Mh=zu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){var n=sa(null),r={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){var r=t?"0":100*e+"%",i=t?100*e+"%":"0",a=n.value,o="translate(".concat(r,",").concat(i,") translateZ(0)");a&&(a.style.webkitTransform=o,a.style.transform=o)}};return ho((()=>{var e=Ga("addSwiperContext");e&&e(r)})),go((()=>{var e=Ga("removeSwiperContext");e&&e(r)})),()=>ps("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},{default:()=>[t.default&&t.default()]},512)}}),Oh=zu({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},emits:["change"],setup(e,{emit:t}){var n=sa(null),r=sa(e.checked),i=function(e,t){var n=Ga(Ju,!1),r=Ga(Zu,!1),i={submit:()=>{var n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(i),go((()=>{n.removeField(i)})));return r}(e,r),a=Gu(n,t);Ka((()=>e.checked),(e=>{r.value=e}));var o=t=>{e.disabled||(r.value=!r.value,a("change",t,{value:r.value}))};return i&&(i.addHandler(o),vo((()=>{i.removeHandler(o)}))),ec(e,{"label-click":o}),()=>{var{color:t,type:i}=e,{booleanAttrs:a}=Yu(e,"disabled");return ps("uni-switch",_s({ref:n},a,{onClick:o}),{default:()=>[ps("div",{class:"uni-switch-wrapper"},[qo(ps("div",{class:["uni-switch-input",[r.value?"uni-switch-input-checked":""]],style:{backgroundColor:r.value?t:"#DFDFDF",borderColor:r.value?t:"#DFDFDF"}},null,6),[[al,"switch"===i]]),qo(ps("div",{class:"uni-checkbox-input"},[r.value?Cl(kl,e.color,22):""],512),[[al,"checkbox"===i]])])]},16,["onClick"])}}});var Ih={ensp:" ",emsp:" ",nbsp:" "};function Nh(e,t){return e.replace(/\\n/g,"\n").split("\n").map((e=>function(e,{space:t,decode:n}){if(!e)return e;t&&Ih[t]&&(e=e.replace(/ /g,Ih[t]));if(!n)return e;return e.replace(/&nbsp;/g,Ih.nbsp).replace(/&ensp;/g,Ih.ensp).replace(/&emsp;/g,Ih.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")}(e,t)))}var Lh=sn({},yd,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}}),Ah=!1;var Ph=zu({name:"Textarea",props:Lh,emit:["confirm","linechange",..._d],setup(e,{emit:t}){var n,r=sa(null),{fieldRef:i,state:a,scopedAttrsState:o,fixDisabledColor:s,trigger:l}=xd(e,r,t),u=Rs((()=>a.value.split("\n"))),c=Rs((()=>["done","go","next","search","send"].includes(e.confirmType))),d=sa(0),h=sa(null);function p({height:e}){d.value=e}function f(e){"Enter"===e.key&&c.value&&e.preventDefault()}function v(e){"Enter"===e.key&&(c.value&&(!function(e){l("confirm",e,{value:a.value})}(e),e.target.blur()))}return Ka((()=>d.value),(t=>{var n=r.value,i=h.value,a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=i.offsetHeight);var o=Math.round(t/a);l("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:o}),e.autoHeight&&(n.style.height=t+"px")})),n="(prefers-color-scheme: dark)",Ah=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(n).media!==n,()=>{var t=e.disabled&&s?ps("textarea",{ref:i,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Ah},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):ps("textarea",{ref:i,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Ah},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:f,onKeyup:v},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return ps("uni-textarea",{ref:r},{default:()=>[ps("div",{class:"uni-textarea-wrapper"},[qo(ps("div",_s(o.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[al,!a.value.length]]),ps("div",{ref:h,class:"uni-textarea-line"},[" "],512),ps("div",{class:"uni-textarea-compute"},[u.value.map((e=>ps("div",null,[e.trim()?e:"."]))),ps(ic,{initial:!0,onResize:p},null,8,["initial","onResize"])]),"search"===e.confirmType?ps("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t])]},512)}}});function Rh(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Bh(e,t,n){e&&kr(n||Ol(),e,(({type:e,data:n},r)=>{t(e,n,r)}))}function Dh(e){e&&function(e,t){t=Er(e,t),delete Tr[t]}(Ol(),e)}function $h(e,t,n,r){var i=Cs().proxy;ho((()=>{Bh(t||Rh(i),e,r),!n&&t||Ka((()=>i.id),((t,n)=>{Bh(Rh(i,t),e,r),Dh(n&&Rh(i,n))}))})),vo((()=>{Dh(t||Rh(i))}))}sn({},qu);var Fh=0;function Wh(e){var t=Ml(),n=Cs().proxy,r=n.$options.name.toLowerCase(),i=e||n.id||"context".concat(Fh++);return ho((()=>{n.$el.__uniContextInfo={id:i,type:r,page:t}})),"".concat(r,".").concat(i)}class jh extends Fu{constructor(e,t,n,r,i,a=[]){super(e,t,n,r,i,[...Vu.props,...a])}call(e){var t={animation:this.$props.animation,$el:this.$};e.call(t)}setAttribute(e,t){return"animation"===e&&(this.$animate=!0),super.setAttribute(e,t)}update(e=!1){if(this.$animate)return e?this.call(Vu.mounted):void(this.$animate&&(this.$animate=!1,this.call(Vu.watch.animation.handler)))}}var Vh=["space","decode"];var zh=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class Hh extends jh{constructor(e,t,n,r,i,a=[]){super(e,t,n,r,i,[...zh,...a])}update(e=!1){var t=this.$props["hover-class"];t&&"none"!==t?(this._hover||(this._hover=new qh(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(e)}}class qh{constructor(e,t){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=e,this.props=t,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(e){this._hovering=e;var t=this.props["hover-class"];e?this.$.classList.add(t):this.$.classList.remove(t)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){this._listening&&(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(e){if(!e._hoverPropagationStopped){var t=this.props["hover-class"];t&&"none"!==t&&!this.$.disabled&&(e.touches.length>1||(this.props["hover-stop-propagation"]&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()}),this.props["hover-start-time"])))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame((()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout((()=>{this.hovering=!1}),this.props["hover-stay-time"])}))}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}function Uh(){return plus.navigator.isImmersedStatusbar()?Math.round("iOS"===plus.os.name?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function Yh(){var e=plus.webview.currentWebview().getStyle(),t=e&&e.titleNView;return t&&"default"===t.type?44+Uh():0}var Xh=Symbol("onDraw");function Gh(e,t){return Rs((()=>{var n={};return Object.keys(e).forEach((r=>{if(!t||!t.includes(r)){var i=e[r];i="src"===r?Ul(i):i,n[r.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))]=i}})),n}))}function Jh(e){var t=Ki({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),n=sa(!1);function r(){var r=e.value,i=r.getBoundingClientRect(),a=["width","height"];n.value=0===i.width||0===i.height,n.value||(t.position=function(e){for(var t;e;){var n=getComputedStyle(e),r=n.transform||n.webkitTransform;t=(!r||"none"===r)&&t,t="fixed"===n.position||t,e=e.parentElement}return t}(r)?"absolute":"static",a.push("top","left")),a.forEach((e=>{var n=i[e];n="top"===e?n+("static"===t.position?document.documentElement.scrollTop||document.body.scrollTop||0:Yh()):n,t[e]=n+"px"}))}var i=null;window.addEventListener("updateview",(function(){i&&cancelAnimationFrame(i),i=requestAnimationFrame((()=>{i=null,r()}))}));var a=[],o=[];return Xa(Xh,(function(e){a?a.push(e):e(t)})),ho((()=>{r(),o.forEach((e=>e())),o=null})),{position:t,hidden:n,onParentReady:function(e){var n=Ga(Xh),r=n=>{e(n),a.forEach((e=>e(t))),a=null};!function(e){o?o.push(e):e()}((()=>{n?n(r):r({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})}))}}}var Kh=zu({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,{emit:t}){var n,r=sa(null),i=sa(null),a=Gu(r,t),o=Gh(e,["id"]),{position:s,onParentReady:l}=Jh(i);return l((()=>{function t(){var t={adpid:e.adpid,width:s.width,count:e.dataCount};void 0!==e.channel&&(t.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",t,(({code:e,data:t,message:r})=>{0===e?n.renderingBind(t):a("error",{},{errMsg:r})}))}n=plus.ad.createAdView(Object.assign({},o.value,s)),plus.webview.currentWebview().append(n),n.setDislikeListener((e=>{i.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),a("close",{},e)})),n.setRenderingListener((e=>{0===e.result?(i.value.style.height=e.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):a("error",{},{errCode:e.result})})),n.setAdClickedListener((()=>{a("adclicked",{},{})})),Ka((()=>s),(e=>n.setStyle(e)),{deep:!0}),Ka((()=>e.adpid),(e=>{e&&t()})),Ka((()=>e.data),(e=>{e&&n.renderingBind(e)})),e.adpid&&t()})),vo((()=>{n&&n.close()})),()=>ps("uni-ad",{ref:r},{default:()=>[ps("div",{ref:i,class:"uni-ad-container"},null,512)]},512)}});class Zh extends Su{constructor(e,t,n,r,i,a,o){super(e,t,r);var s=document.createElement("div");s.__vueParent=function(e){for(;e&&e.pid>0;)if(e=Lp(e.pid)){var{__vueParentComponent:t}=e.$;if(t)return t}return null}(this),this.$props=Ki({}),this.init(a),this.$app=ul(function(e,t){return()=>function(e,t,n){var r=arguments.length;return 2===r?gn(t)&&!dn(t)?ls(t)?ps(e,null,[t]):ps(e,t):ps(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&ls(n)&&(n=[n]),ps(e,t,n))}(e,t)}(n,this.$props)),this.$app.mount(s),this.$=s.firstElementChild,o&&(this.$holder=this.$.querySelector(o)),cn(a,"t")&&this.setText(a.t||""),a.a&&cn(a.a,Yn)&&$u(this.$,a.a[".vShow"]),this.insert(r,i),Ra()}init(e){var{a:t,e:n,w:r}=e;t&&(this.setWxsProps(t),Object.keys(t).forEach((e=>{this.setAttr(e,t[e])}))),cn(e,"s")&&this.setAttr("style",e.s),n&&Object.keys(n).forEach((e=>{this.addEvent(e,n[e])})),r&&this.addWxsEvents(e.w)}setText(e){(this.$holder||this.$).textContent=e}addWxsEvent(e,t,n){this.$props[e]=Ru(this.$,t,n)}addEvent(e,t){this.$props[e]=Au(this.id,t,jn(e)[1])}removeEvent(e){this.$props[e]=null}setAttr(e,t){if(e===Yn)this.$&&$u(this.$,t);else if(e===Xn)this.$.__ownerId=t;else if(e===Gn)hu((()=>xu(this,t)),3);else if(e===Un){var n=Du(this.$||Lp(this.pid).$,t),r=this.$props.style;bn(n)&&bn(r)?Object.keys(n).forEach((e=>{r[e]=n[e]})):this.$props.style=n}else t=Du(this.$||Lp(this.pid).$,t),this.wxsPropsInvoke(e,t,!0)||(this.$props[e]=t)}removeAttr(e){this.$props[e]=null}remove(){this.isUnmounted=!0,this.$app.unmount(),Ap(this.id)}appendChild(e){return(this.$holder||this.$).appendChild(e)}insertBefore(e,t){return(this.$holder||this.$).insertBefore(e,t)}}class Qh extends Zh{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,a,o)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(e){return hu(this.getRebuildFn(),2),super.setText(e)}appendChild(e){return hu(this.getRebuildFn(),2),super.appendChild(e)}insertBefore(e,t){return hu(this.getRebuildFn(),2),super.insertBefore(e,t)}rebuild(){var e=this.$.__vueParentComponent;e.rebuild&&e.rebuild()}}function ep(e,t,n){e.childNodes.forEach((n=>{n instanceof Element?-1===n.className.indexOf(t)&&e.removeChild(n):e.removeChild(n)})),e.appendChild(document.createTextNode(n))}class tp extends Su{constructor(e,t,n,r){super(e,t,n),this.insert(n,r)}}var np=0;function rp(e,t,n){var r,{position:i,hidden:a,onParentReady:o}=Jh(e);o((o=>{var s=Rs((()=>{var e={};for(var t in i){var n=i[t],r=parseFloat(n),a=parseFloat(o[t]);if("top"===t||"left"===t)n=Math.max(r,a)+"px";else if("width"===t||"height"===t){var s="width"===t?"left":"top",l=parseFloat(o[s]),u=parseFloat(i[s]),c=Math.max(l-u,0),d=Math.max(u+r-(l+a),0);n=Math.max(r-c-d,0)+"px"}e[t]=n}return e})),l=["borderRadius","borderColor","borderWidth","backgroundColor"],u=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],c=[],d={start:"left",end:"right"};function h(t){var n=getComputedStyle(e.value);return l.concat(u,c).forEach((e=>{t[e]=n[e]})),t}var p=Ki(h({})),f=null;window.addEventListener("updateview",(function(){f&&cancelAnimationFrame(f),f=requestAnimationFrame((()=>{f=null,h(p)}))}));var v=Rs((()=>{var e=function(){var e={};for(var t in e){var n=e[t];"top"!==t&&"left"!==t||(n=Math.min(parseFloat(n)-parseFloat(o[t]),0)+"px"),e[t]=n}return e}(),t=[{tag:"rect",position:e,rectStyles:{color:p.backgroundColor,radius:p.borderRadius,borderColor:p.borderColor,borderWidth:p.borderWidth}}];if("src"in n)n.src&&t.push({tag:"img",position:e,src:n.src});else{var r=parseFloat(p.lineHeight)-parseFloat(p.fontSize),i=parseFloat(e.width)-parseFloat(p.paddingLeft)-parseFloat(p.paddingRight);i=i<0?0:i;var a=parseFloat(e.height)-parseFloat(p.paddingTop)-r/2-parseFloat(p.paddingBottom);a=a<0?0:a,t.push({tag:"font",position:{top:"".concat(parseFloat(e.top)+parseFloat(p.paddingTop)+r/2,"px"),left:"".concat(parseFloat(e.left)+parseFloat(p.paddingLeft),"px"),width:"".concat(i,"px"),height:"".concat(a,"px")},textStyles:{align:d[p.textAlign]||p.textAlign,color:p.color,decoration:"none",lineSpacing:"".concat(r,"px"),margin:"0px",overflow:p.textOverflow,size:p.fontSize,verticalAlign:"top",weight:p.fontWeight,whiteSpace:p.whiteSpace},text:n.text})}return t}));r=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(np++),s.value,v.value),plus.webview.currentWebview().append(r),a.value&&r.hide(),r.addEventListener("click",(()=>{t("click",{},{})})),Ka((()=>a.value),(e=>{r[e?"hide":"show"]()})),Ka((()=>s.value),(e=>{r.setStyle(e)}),{deep:!0}),Ka((()=>v.value),(()=>{r.reset(),r.draw(v.value)}),{deep:!0})})),vo((()=>{r&&r.close()}))}var ip=zu({name:"CoverImage",props:{src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}},emits:["click","load","error"],setup(e,{emit:t}){var n=sa(null),r=Gu(n,t),i=Ki({src:""}),a=function(e,t,n){var r,i=sa("");function a(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var a=e.src?Ul(e.src):"";0===a.indexOf("http://")||0===a.indexOf("https://")?(r=plus.downloader.createDownload(a,{filename:"_doc/uniapp_temp//download/"},((e,t)=>{200===t?o(e.filename):n("error",{},{errMsg:"error"})}))).start():a&&o(a)}function o(r){t.src=r,plus.io.getImageInfo({src:r,success:({width:t,height:r})=>{e.autoSize&&(i.value="width:".concat(t,"px;height:").concat(r,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),n("load",{},{width:t,height:r})},fail:()=>{n("error",{},{errMsg:"error"})}})}return e.src&&a(),Ka((()=>e.src),a),vo((()=>{r&&r.abort()})),i}(e,i,r);return rp(n,r,i),()=>ps("uni-cover-image",{ref:n,style:a.value},{default:()=>[ps("div",{class:"uni-cover-image"},null)]},8,["style"])}});var ap=zu({name:"CoverView",emits:["click"],setup(e,{emit:t}){var n=sa(null),r=sa(null),i=Gu(n,t),a=Ki({text:""});return rp(n,i,a),Ld((()=>{var e=r.value.childNodes[0];a.text=e&&e instanceof Text?e.textContent:""})),()=>ps("uni-cover-view",{ref:n},{default:()=>[ps("div",{ref:r,class:"uni-cover-view"},null,512)]},512)}});function op(e){if(0!==e.indexOf("#"))return{color:e,opacity:1};var t=e.substr(7,2);return{color:e.substr(0,7),opacity:t?Number("0x"+t)/255:1}}var sp=zu({name:"Map",props:{id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]}},emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,{emit:t}){var n,r=sa(null),i=Gu(r,t),a=sa(null),o=Gh(e,["id"]),{position:s,hidden:l,onParentReady:u}=Jh(a),{_addMarkers:c,_addMapLines:d,_addMapCircles:h,_setMap:p}=function(e,t){var n;function r(t,{longitude:r,latitude:i}={}){n&&(n.setCenter(new plus.maps.Point(Number(r||e.longitude),Number(i||e.latitude))),t({errMsg:"moveToLocation:ok"}))}function i(e){n&&n.getCurrentCenter(((t,n)=>{e({longitude:n.getLng(),latitude:n.getLat(),errMsg:"getCenterLocation:ok"})}))}function a(e){if(n){var t=n.getBounds();e({southwest:t.getSouthWest(),northeast:t.getNorthEast(),errMsg:"getRegion:ok"})}}function o(e){n&&e({scale:n.getZoom(),errMsg:"getScale:ok"})}function s(e){if(n){var{id:r,latitude:i,longitude:a,iconPath:o,callout:s,label:l}=e;(e=>{var i,{latitude:a,longitude:u}=e.coord,c=new plus.maps.Marker(new plus.maps.Point(u,a));o&&c.setIcon(Ul(o)),l&&l.content&&c.setLabel(l.content);var d=void 0;s&&s.content&&(d=new plus.maps.Bubble(s.content)),d&&c.setBubble(d),(r||0===r)&&(c.onclick=e=>{t("markertap",{},{markerId:r})},d&&(d.onclick=()=>{t("callouttap",{},{markerId:r})})),null===(i=n)||void 0===i||i.addOverlay(c),n.__markers__.push(c)})({coord:{latitude:i,longitude:a}})}}function l(){n&&(n.__markers__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__markers__=[])}function u(e,t){t&&l(),e.forEach((e=>{s(e)}))}function c(e){n&&(n.__lines__.length>0&&(n.__lines__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__lines__=[]),e.forEach((e=>{var t,{color:r,width:i}=e,a=e.points.map((e=>new plus.maps.Point(e.longitude,e.latitude))),o=new plus.maps.Polyline(a);if(r){var s=op(r);o.setStrokeColor(s.color),o.setStrokeOpacity(s.opacity)}i&&o.setLineWidth(i),null===(t=n)||void 0===t||t.addOverlay(o),n.__lines__.push(o)})))}function d(e){n&&(n.__circles__.length>0&&(n.__circles__.forEach((e=>{var t;null===(t=n)||void 0===t||t.removeOverlay(e)})),n.__circles__=[]),e.forEach((e=>{var t,{latitude:r,longitude:i,color:a,fillColor:o,radius:s,strokeWidth:l}=e,u=new plus.maps.Circle(new plus.maps.Point(i,r),s);if(a){var c=op(a);u.setStrokeColor(c.color),u.setStrokeOpacity(c.opacity)}if(o){var d=op(o);u.setFillColor(d.color),u.setFillOpacity(d.opacity)}l&&u.setLineWidth(l),null===(t=n)||void 0===t||t.addOverlay(u),n.__circles__.push(u)})))}var h={moveToLocation:r,getCenterLocation:i,getRegion:a,getScale:o};return $h(((e,t,n)=>{h[e]&&h[e](n,t)}),Wh(),!0),{_addMarkers:u,_addMapLines:c,_addMapCircles:d,_setMap(e){n=e}}}(e,i);u((()=>{(n=sn(plus.maps.create(Ol()+"-map-"+(e.id||Date.now()),Object.assign({},o.value,s,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[]})).setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(n),l.value&&n.hide(),n.onclick=e=>{i("click",{},e)},n.onstatuschanged=e=>{i("regionchange",{},{})},p(n),c(e.markers),d(e.polyline),h(e.circles),Ka((()=>o.value),(e=>n&&n.setStyles(e)),{deep:!0}),Ka((()=>s),(e=>n&&n.setStyles(e)),{deep:!0}),Ka(l,(e=>{n&&n[e?"hide":"show"]()})),Ka((()=>e.scale),(e=>{n&&n.setZoom(parseInt(String(e)))})),Ka([()=>e.latitude,()=>e.longitude],(([e,t])=>{n&&n.setStyles({center:new plus.maps.Point(Number(e),Number(t))})})),Ka((()=>e.markers),(e=>{c(e,!0)}),{deep:!0}),Ka((()=>e.polyline),(e=>{d(e)}),{deep:!0}),Ka((()=>e.circles),(e=>{h(e)}),{deep:!0})}));var f=Rs((()=>e.controls.map((e=>{var t={position:"absolute"};return["top","left","width","height"].forEach((n=>{e.position[n]&&(t[n]=e.position[n]+"px")})),{id:e.id,iconPath:Ul(e.iconPath),position:t,clickable:e.clickable}}))));return vo((()=>{n&&(n.close(),p(null))})),()=>ps("uni-map",{ref:r,id:e.id},{default:()=>[ps("div",{ref:a,class:"uni-map-container"},null,512),f.value.map(((e,t)=>ps(ip,{key:t,src:e.iconPath,style:e.position,"auto-size":!0,onClick:()=>e.clickable&&i("controltap",{},{controlId:e.id})},null,8,["src","style","auto-size","onClick"]))),ps("div",{class:"uni-map-slot"},null)],_:1},8,["id"])}});var lp,up,cp,dp,hp;function pp(){return"object"==typeof window&&"object"==typeof navigator&&"object"==typeof document?"webview":"v8"}function fp(){return lp.webview.currentWebview().id}var vp={};function gp(e){var t=e.data&&e.data.__message;if(t&&t.__page){var n=t.__page,r=vp[n];r&&r(t),t.keep||delete vp[n]}}class mp{constructor(e){this.webview=e}sendMessage(e){var t=JSON.parse(JSON.stringify({__message:{data:e}})),n=this.webview.id;cp?new cp(n).postMessage(t):lp.webview.postMessageToUniNView&&lp.webview.postMessageToUniNView(t,n)}close(){this.webview.close()}}function yp({context:e={},url:t,data:n={},style:r={},onMessage:i,onClose:a}){lp=e.plus||plus,up=e.weex||("object"==typeof weex?weex:null),cp=e.BroadcastChannel||("object"==typeof BroadcastChannel?BroadcastChannel:null);var o="page".concat(Date.now());!1!==(r=sn({},r)).titleNView&&"none"!==r.titleNView&&(r.titleNView=sn({autoBackButton:!0,titleSize:"17px"},r.titleNView));var s={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"".concat("object"==typeof process&&process.env&&{}.VUE_APP_TEMPLATE_PATH||"","/").concat(t,".js"),defaultFontSize:lp.screen.resolutionWidth/20,viewport:lp.screen.resolutionWidth}};r=sn(s,r);var l=lp.webview.create("",o,r,{extras:{from:fp(),runtime:pp(),data:n,useGlobalEvent:!cp}});return l.addEventListener("close",a),function(e,t){"v8"===pp()?cp?(dp&&dp.close(),(dp=new cp(fp())).onmessage=gp):hp||(hp=up.requireModule("globalEvent")).addEventListener("plusMessage",gp):window.__plusMessage=gp,vp[e]=t}(o,(e=>{"function"==typeof i&&i(e.data),e.keep||l.close("auto")})),l.show(r.animationType,r.animationDuration),new mp(l)}var _p={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},bp={YEAR:"year",MONTH:"month",DAY:"day"};function wp(e){return e>9?e:"0".concat(e)}function xp(e,t){e=String(e||"");var n=new Date;if(t===_p.TIME){var r=e.split(":");2===r.length&&n.setHours(parseInt(r[0]),parseInt(r[1]))}else{var i=e.split("-");3===i.length&&n.setFullYear(parseInt(i[0]),parseInt(String(parseFloat(i[1])-1)),parseInt(i[2]))}return n}var Sp=zu({name:"Picker",props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:_p.SELECTOR,validator:e=>Object.values(_p).indexOf(e)>=0},fields:{type:String,default:""},start:{type:String,default:function(e){if(e.mode===_p.TIME)return"00:00";if(e.mode===_p.DATE){var t=(new Date).getFullYear()-100;switch(e.fields){case bp.YEAR:return t;case bp.MONTH:return t+"-01";default:return t+"-01-01"}}return""}},end:{type:String,default:function(e){if(e.mode===_p.TIME)return"23:59";if(e.mode===_p.DATE){var t=(new Date).getFullYear()+100;switch(e.fields){case bp.YEAR:return t;case bp.MONTH:return t+"-12";default:return t+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1}},emits:["change","cancel","columnchange"],setup(e,{emit:t}){yr();var{t:n,getLocale:r}=gr(),i=sa(null),a=Gu(i,t),o=sa(null),s=sa(null),l=()=>{var t=e.value;switch(e.mode){case _p.MULTISELECTOR:Array.isArray(t)||(t=[]),Array.isArray(o.value)||(o.value=[]);for(var n=o.value.length=Math.max(t.length,e.range.length),r=0;r<n;r++){var i=Number(t[r]),a=Number(o.value[r]),s=isNaN(i)?isNaN(a)?0:a:i;o.value.splice(r,1,s<0?0:s)}break;case _p.TIME:case _p.DATE:o.value=String(t);break;default:var l=Number(t);o.value=l<0?0:l}},u=e=>{s.value&&s.value.sendMessage(e)},c=(t,n)=>{t.mode!==_p.TIME&&t.mode!==_p.DATE||t.fields?(t.fields=Object.values(bp).includes(t.fields)?t.fields:bp.DAY,(e=>{var t={event:"cancel"};s.value=yp({url:"__uniapppicker",data:e,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:n=>{var r=n.event;if("created"!==r)return"columnchange"===r?(delete n.event,void a(r,{},n)):void(t=n);u(e)},onClose:()=>{s.value=null;var e=t.event;delete t.event,e&&a(e,{},t)}})})(t)):((t,n)=>{plus.nativeUI[e.mode===_p.TIME?"pickTime":"pickDate"]((t=>{var n=t.date;a("change",{},{value:e.mode===_p.TIME?"".concat(wp(n.getHours()),":").concat(wp(n.getMinutes())):"".concat(n.getFullYear(),"-").concat(wp(n.getMonth()+1),"-").concat(wp(n.getDate()))})}),(()=>{a("cancel",{},{})}),e.mode===_p.TIME?{time:xp(e.value,_p.TIME),popover:n}:{date:xp(e.value,_p.DATE),minDate:xp(e.start,_p.DATE),maxDate:xp(e.end,_p.DATE),popover:n})})(0,n)},d=t=>{if(!e.disabled){var i=t.currentTarget.getBoundingClientRect();c(Object.assign({},e,{value:o.value,locale:r(),messages:{done:n("uni.picker.done"),cancel:n("uni.picker.cancel")}}),{top:i.top+Yh(),left:i.left,width:i.width,height:i.height})}},h=Ga(Ju,!1),p={submit:()=>[e.name,o.value],reset:()=>{switch(e.mode){case _p.SELECTOR:o.value=0;break;case _p.MULTISELECTOR:Array.isArray(e.value)&&(o.value=e.value.map((e=>0)));break;case _p.DATE:case _p.TIME:o.value=""}}};return h&&(h.addField(p),vo((()=>h.removeField(p)))),Object.keys(e).forEach((t=>{"name"!==t&&Ka((()=>e[t]),(e=>{var n={};n[t]=e,u(n)}),{deep:!0})})),Ka((()=>e.value),l,{deep:!0}),l(),()=>ps("uni-picker",{ref:i,onClick:d},{default:()=>[ps("slot",null,null)]},8,["onClick"])}});var Tp={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default:()=>({})},advanced:{type:Array,default:()=>[]}},Ep=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],kp=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],Cp=zu({name:"Video",props:Tp,emits:Ep,setup(e,{emit:t}){var n,r=sa(null),i=Gu(r,t),a=sa(null),o=Gh(e,["id"]),{position:s,hidden:l,onParentReady:u}=Jh(a);return u((()=>{n=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(n),l.value&&n.hide(),Ep.forEach((e=>{n.addEventListener(e,(t=>{i(e,{},t.detail)}))})),Ka((()=>o.value),(e=>n.setStyles(e)),{deep:!0}),Ka((()=>s),(e=>n.setStyles(e)),{deep:!0}),Ka((()=>l.value),(e=>{n[e?"hide":"show"](),e||n.setStyles(s)}))})),$h(((e,t)=>{if(kp.includes(e)){var r;switch(e){case"seek":r=t.position;break;case"sendDanmu":r=t;break;case"playbackRate":r=t.rate}n&&n[e](r)}}),Wh(),!0),vo((()=>{n&&n.close()})),()=>ps("uni-video",{ref:r,id:e.id},{default:()=>[ps("div",{ref:a,class:"uni-video-container"},null,512),ps("div",{class:"uni-video-slot"},null)],_:1},8,["id"])}});var Mp,Op=zu({name:"WebView",props:{src:{type:String,default:""},webviewStyles:{type:Object,default:()=>({})}},setup(e){var t=Ol(),n=sa(null),{hidden:r,onParentReady:i}=Jh(n),a=Rs((()=>e.webviewStyles));return i((()=>{var n;(({htmlId:e,src:t,webviewStyles:n})=>{var r=plus.webview.currentWebview(),i=sn(n,{"uni-app":"none",isUniH5:!0}),a=r.getTitleNView();if(a){var o=44+parseFloat(i.top||"0");plus.navigator.isImmersedStatusbar()&&(o+=Uh()),i.top=String(o),i.bottom=i.bottom||"0"}Mp=plus.webview.create(t,e,i),a&&Mp.addEventListener("titleUpdate",(function(){var e,t=null===(e=Mp)||void 0===e?void 0:e.getTitle();r.setStyle({titleNView:{titleText:t&&"null"!==t?t:" "}})})),plus.webview.currentWebview().append(Mp)})({htmlId:sa("webviewId"+t).value,src:Ul(e.src),webviewStyles:a.value}),UniViewJSBridge.publishHandler("webviewInserted",{},t),r.value&&(null===(n=Mp)||void 0===n||n.hide())})),vo((()=>{var e;plus.webview.currentWebview().remove(Mp),null===(e=Mp)||void 0===e||e.close("none"),Mp=null,UniViewJSBridge.publishHandler("webviewRemoved",{},t)})),Ka((()=>e.src),(t=>{var n,r=Ul(t)||"";if(r){var i;if(/^(http|https):\/\//.test(r)&&e.webviewStyles.progress)null===(i=Mp)||void 0===i||i.setStyle({progress:{color:e.webviewStyles.progress.color}});null===(n=Mp)||void 0===n||n.loadURL(r)}})),Ka(a,(e=>{var t;null===(t=Mp)||void 0===t||t.setStyle(e)})),Ka(r,(e=>{Mp&&Mp[e?"hide":"show"]()})),()=>ps("uni-web-view",{ref:n},null,512)}});var Ip={"#text":class extends Su{constructor(e,t,n,r){super(e,"#text",t,document.createTextNode("")),this.init(r),this.insert(t,n)}},"#comment":class extends Su{constructor(e,t,n){super(e,"#comment",t,document.createComment("")),this.insert(t,n)}},VIEW:class extends Hh{constructor(e,t,n,r){super(e,document.createElement("uni-view"),t,n,r)}},IMAGE:class extends Zh{constructor(e,t,n,r){super(e,"uni-image",sd,t,n,r)}},TEXT:class extends jh{constructor(e,t,n,r){super(e,document.createElement("uni-text"),t,n,r,Vh),this._text=""}init(e){this._text=e.t||"",super.init(e)}setText(e){this._text=e,this.update()}update(e=!1){var{$props:{space:t,decode:n}}=this;this.$.innerHTML=Nh(this._text,{space:t,decode:n}).join("<br>"),super.update(e)}},NAVIGATOR:class extends Zh{constructor(e,t,n,r){super(e,"uni-navigator",eh,t,n,r)}},FORM:class extends Zh{constructor(e,t,n,r){super(e,"uni-form",Ku,t,n,r,"span")}},BUTTON:class extends Zh{constructor(e,t,n,r){super(e,"uni-button",rc,t,n,r)}},INPUT:class extends Zh{constructor(e,t,n,r){super(e,"uni-input",Sd,t,n,r)}},LABEL:class extends Zh{constructor(e,t,n,r){super(e,"uni-label",Qu,t,n,r)}},RADIO:class extends Zh{constructor(e,t,n,r){super(e,"uni-radio",gh,t,n,r,".uni-radio-wrapper")}setText(e){ep(this.$holder,"uni-radio-input",e)}},CHECKBOX:class extends Zh{constructor(e,t,n,r){super(e,"uni-checkbox",Sc,t,n,r,".uni-checkbox-wrapper")}setText(e){ep(this.$holder,"uni-checkbox-input",e)}},"CHECKBOX-GROUP":class extends Zh{constructor(e,t,n,r){super(e,"uni-checkbox-group",gc,t,n,r)}},AD:class extends Zh{constructor(e,t,n,r){super(e,"uni-ad",Kh,t,n,r)}},CAMERA:class extends tp{constructor(e,t,n){super(e,"uni-camera",t,n)}},CANVAS:class extends Zh{constructor(e,t,n,r){super(e,"uni-canvas",fc,t,n,r,"uni-canvas > div")}},"COVER-IMAGE":class extends Zh{constructor(e,t,n,r){super(e,"uni-cover-image",ip,t,n,r)}},"COVER-VIEW":class extends Qh{constructor(e,t,n,r){super(e,"uni-cover-view",ap,t,n,r,".uni-cover-view")}},EDITOR:class extends Zh{constructor(e,t,n,r){super(e,"uni-editor",Qc,t,n,r)}},"FUNCTIONAL-PAGE-NAVIGATOR":class extends tp{constructor(e,t,n){super(e,"uni-functional-page-navigator",t,n)}},ICON:class extends Zh{constructor(e,t,n,r){super(e,"uni-icon",rd,t,n,r)}},"RADIO-GROUP":class extends Zh{constructor(e,t,n,r){super(e,"uni-radio-group",vh,t,n,r)}},"LIVE-PLAYER":class extends tp{constructor(e,t,n){super(e,"uni-live-player",t,n)}},"LIVE-PUSHER":class extends tp{constructor(e,t,n){super(e,"uni-live-pusher",t,n)}},MAP:class extends Zh{constructor(e,t,n,r){super(e,"uni-map",sp,t,n,r,".uni-map-slot")}},"MOVABLE-AREA":class extends Qh{constructor(e,t,n,r){super(e,"uni-movable-area",Ad,t,n,r)}},"MOVABLE-VIEW":class extends Zh{constructor(e,t,n,r){super(e,"uni-movable-view",qd,t,n,r)}},"OFFICIAL-ACCOUNT":class extends tp{constructor(e,t,n){super(e,"uni-official-account",t,n)}},"OPEN-DATA":class extends tp{constructor(e,t,n){super(e,"uni-open-data",t,n)}},PICKER:class extends Zh{constructor(e,t,n,r){super(e,"uni-picker",Sp,t,n,r)}},"PICKER-VIEW":class extends Qh{constructor(e,t,n,r){super(e,"uni-picker-view",th,t,n,r,".uni-picker-view-wrapper")}},"PICKER-VIEW-COLUMN":class extends Qh{constructor(e,t,n,r){super(e,"uni-picker-view-column",uh,t,n,r,".uni-picker-view-content")}},PROGRESS:class extends Zh{constructor(e,t,n,r){super(e,"uni-progress",hh,t,n,r)}},"RICH-TEXT":class extends Zh{constructor(e,t,n,r){super(e,"uni-rich-text",wh,t,n,r)}},"SCROLL-VIEW":class extends Zh{constructor(e,t,n,r){super(e,"uni-scroll-view",Sh,t,n,r,".uni-scroll-view-content")}setText(e){ep(this.$holder,"uni-scroll-view-refresher",e)}},SLIDER:class extends Zh{constructor(e,t,n,r){super(e,"uni-slider",Th,t,n,r)}},SWIPER:class extends Qh{constructor(e,t,n,r){super(e,"uni-swiper",Ch,t,n,r,".uni-swiper-slide-frame")}},"SWIPER-ITEM":class extends Zh{constructor(e,t,n,r){super(e,"uni-swiper-item",Mh,t,n,r)}},SWITCH:class extends Zh{constructor(e,t,n,r){super(e,"uni-switch",Oh,t,n,r)}},TEXTAREA:class extends Zh{constructor(e,t,n,r){super(e,"uni-textarea",Ph,t,n,r)}},VIDEO:class extends Zh{constructor(e,t,n,r){super(e,"uni-video",Cp,t,n,r,".uni-video-slot")}},"WEB-VIEW":class extends Zh{constructor(e,t,n,r){super(e,"uni-web-view",Op,t,n,r)}}};var Np=new Map;function Lp(e){return Np.get(e)}function Ap(e){return Np.delete(e)}function Pp(e,t,n,r,i={}){var a;if(0===e)a=new Su(e,t,n,document.createElement(t));else{var o=Ip[t];a=o?new o(e,n,r,i):new Fu(e,document.createElement(t),n,r,i)}return Np.set(e,a),a}var Rp=[],Bp=!1;function Dp(e){if(Bp)return e();Rp.push(e)}function $p(){Bp=!0,Rp.forEach((e=>e())),Rp.length=0}function Fp({css:e,route:t,platform:n,pixelRatio:r,windowWidth:i,disableScroll:a,statusbarHeight:o,windowTop:s,windowBottom:l}){!function(e){window.__PAGE_INFO__={route:e}}(t),function(e,t,n){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:n}}(n,r,i),Pp(0,"div",-1,-1).$=document.getElementById("app");var u=plus.webview.currentWebview().id;window.__id__=u,document.title="".concat(t,"[").concat(u,"]"),function(e,t,n){!function(e){var t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}({"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":n+"px","--status-bar-height":e+"px"})}(o,s,l),a&&document.addEventListener("touchmove",Il),e?function(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=$p,t.onerror=$p,document.head.appendChild(t)}(t):$p()}var Wp=!1;function jp({scrollTop:e,selector:t,duration:n},r){!function(e,t){if(fn(e)){var n=document.querySelector(e);n&&(e=n.getBoundingClientRect().top+window.pageYOffset)}e<0&&(e=0);var r=document.documentElement,{clientHeight:i,scrollHeight:a}=r;if(e=Math.min(e,a-i),0!==t){if(window.scrollY!==e){var o=t=>{if(t<=0)window.scrollTo(0,e);else{var n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),o(t-10)}))}};o(t)}}else r.scrollTop=document.body.scrollTop=e}(t||e||0,n),r()}function Vp(e){var t=e[0];1===t[0]?Fp(t[1]):Dp((()=>function(e){var t=e[0],n=function(e){if(!e.length)return e=>e;var t=(n,r=!0)=>{if("number"==typeof n)return e[n];var i={};return n.forEach((([e,n])=>{i[t(e)]=r?t(n):n})),i};return t}(0===t[0]?t[1]:[]);e.forEach((e=>{switch(e[0]){case 1:return Fp(e[1]);case 2:return;case 3:return Pp(e[1],n(e[2]),e[3],e[4],function(e,t){if(t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=function(e,t){var n={};return e.forEach((([e,[r,i]])=>{n[t(e)]=[t(r),i]})),n}(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}(n,e[5]));case 5:return Lp(e[1]).remove();case 6:return Lp(e[1]).setAttr(n(e[2]),n(e[3]));case 7:return Lp(e[1]).removeAttr(n(e[2]));case 8:return Lp(e[1]).addEvent(n(e[2]),e[3]);case 12:return Lp(e[1]).addWxsEvent(n(e[2]),n(e[3]),e[4]);case 9:return Lp(e[1]).removeEvent(n(e[2]));case 10:return Lp(e[1]).setText(n(e[2]));case 15:return function(e){if(!Wp){Wp=!0;var t={onReachBottomDistance:e,onPageScroll(e){UniViewJSBridge.publishHandler("onPageScroll",{scrollTop:e})},onReachBottom(){UniViewJSBridge.publishHandler("onReachBottom")}};requestAnimationFrame((()=>document.addEventListener("scroll",Ll(t))))}}(e[1])}})),function(){try{[...du].sort(((e,t)=>e.priority-t.priority)).forEach((e=>e()))}finally{du.clear()}}()}(e)))}function zp(e){return window.__$__(e).$}function Hp(e,t){var n={},{top:r}=function(){var e=document.documentElement.style,t=wl(),n=parseInt(e.getPropertyValue("--window-bottom")),r=parseInt(e.getPropertyValue("--window-left")),i=parseInt(e.getPropertyValue("--window-right"));return{top:t,bottom:n?n+_l.bottom:0,left:r?r+_l.left:0,right:i?i+_l.right:0}}();if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=Bn(e)),t.rect||t.size){var i=e.getBoundingClientRect();t.rect&&(n.left=i.left,n.right=i.right,n.top=i.top-r,n.bottom=i.bottom-r),t.size&&(n.width=i.width,n.height=i.height)}if(Array.isArray(t.properties)&&t.properties.forEach((e=>{e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){var a=e.children[0].children[0];n.scrollLeft=a.scrollLeft,n.scrollTop=a.scrollTop,n.scrollHeight=a.scrollHeight,n.scrollWidth=a.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(Array.isArray(t.computedStyle)){var o=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=o[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function qp(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=this.parentElement.querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}function Up(e,t,n,r,i){var a=function(e,t){return e?window.__$__(e).$:t.$el}(t,e),o=a.parentElement;if(!o)return r?null:[];var{nodeType:s}=a,l=3===s||8===s;if(r){var u=l?o.querySelector(n):qp(a,n)?a:a.querySelector(n);return u?Hp(u,i):null}var c=[],d=(l?o:a).querySelectorAll(n);return d&&d.length&&[].forEach.call(d,(e=>{c.push(Hp(e,i))})),!l&&qp(a,n)&&c.unshift(Hp(a,i)),c}function Yp(e,t,n){var r=[];t.forEach((({component:t,selector:n,single:i,fields:a})=>{null===t?r.push(function(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var n=document.documentElement,r=document.body;t.scrollLeft=n.scrollLeft||r.scrollLeft||0,t.scrollTop=n.scrollTop||r.scrollTop||0,t.scrollHeight=n.scrollHeight||r.scrollHeight||0,t.scrollWidth=n.scrollWidth||r.scrollWidth||0}return t}(a)):r.push(Up(e,t,n,i,a))})),n(r)}function Xp({reqId:e,component:t,options:n,callback:r},i){var a=zp(t);(a.__io||(a.__io={}))[e]=function(e,t,n){su();var r=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver((e=>{e.forEach((e=>{n({intersectionRatio:uu(e),intersectionRect:lu(e.intersectionRect),boundingClientRect:lu(e.boundingClientRect),relativeRect:lu(e.rootBounds),time:Date.now(),dataset:Bn(e.target),id:e.target.id})}))}),{root:r,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;for(var a=e.querySelectorAll(t.selector),o=0;o<a.length;o++)i.observe(a[o])}else{i.USE_MUTATION_OBSERVER=!1;var s=e.querySelector(t.selector);s?i.observe(s):console.warn("Node ".concat(t.selector," is not found. Intersection observer will not trigger."))}return i}(a,n,r)}function Gp({family:e,source:t,desc:n},r){(function(e,t,n){var r=document.fonts;if(r){var i=new FontFace(e,t,n);return i.load().then((()=>{r.add(i)}))}return new Promise((r=>{var i=document.createElement("style"),a=[];if(n){var{style:o,weight:s,stretch:l,unicodeRange:u,variant:c,featureSettings:d}=n;o&&a.push("font-style:".concat(o)),s&&a.push("font-weight:".concat(s)),l&&a.push("font-stretch:".concat(l)),u&&a.push("unicode-range:".concat(u)),c&&a.push("font-variant:".concat(c)),d&&a.push("font-feature-settings:".concat(d))}i.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(a.join(";"),"}"),document.head.appendChild(i),r()}))})(e,t,n).then((()=>{r()})).catch((e=>{r(e.toString())}))}var Jp={$el:document.body};function Kp(){var e=Ol();!function(e,t){UniViewJSBridge.subscribe(Er(e,wr),t?t(Cr):Cr)}(e,(e=>(...t)=>{Dp((()=>{e.apply(null,t)}))})),kr(e,"requestComponentInfo",((e,t)=>{Yp(Jp,e.reqs,t)})),kr(e,"addIntersectionObserver",(e=>{Xp(sn({},e,{callback(t){UniViewJSBridge.publishHandler(e.eventName,t)}}))})),kr(e,"removeIntersectionObserver",(e=>{!function({reqId:e,component:t},n){var r=zp(t),i=r.__io&&r.__io[e];i&&(i.disconnect(),delete r.__io[e])}(e)})),kr(e,"pageScrollTo",jp),kr(e,"loadFontFace",Gp)}function Zp(){Wr(),Kp(),function(){var{subscribe:e}=UniViewJSBridge;e(Vl,Vp)}(),function(){if(0===String(navigator.vendor).indexOf("Apple")){var e,t=null;document.documentElement.addEventListener("click",(n=>{clearTimeout(e),t&&Math.abs(n.pageX-t.pageX)<=44&&Math.abs(n.pageY-t.pageY)<=44&&n.timeStamp-t.timeStamp<=450&&n.preventDefault(),t=n,e=setTimeout((()=>{t=null}),450)}))}}(),zl.publishHandler("onWebviewReady")}window.uni=cu,window.UniViewJSBridge=zl,window.rpx2px=Ql,window.__$__=Lp,"undefined"!=typeof plus?Zp():document.addEventListener("plusready",Zp)})); diff --git a/packages/uni-app-plus/vite.config.ts b/packages/uni-app-plus/vite.config.ts index 09c5045266c..582eb680cb4 100644 --- a/packages/uni-app-plus/vite.config.ts +++ b/packages/uni-app-plus/vite.config.ts @@ -55,7 +55,7 @@ export default defineConfig({ root: __dirname, define: { global: 'window', - __DEV__: true, + __DEV__: false, __TEST__: false, __PLATFORM__: JSON.stringify('app'), __NODE_JS__: false, @@ -119,7 +119,7 @@ export default defineConfig({ vueJsx({ optimize: true, isCustomElement }), ], build: { - minify: false, + minify: true, lib: { name: 'uni-app-view', fileName: 'uni-app-view', diff --git a/packages/uni-app-vite/src/index.ts b/packages/uni-app-vite/src/index.ts index e5065bb35b5..865456ff045 100644 --- a/packages/uni-app-vite/src/index.ts +++ b/packages/uni-app-vite/src/index.ts @@ -10,7 +10,7 @@ import { uniTemplatePlugin } from './plugins/template' import { uniMainJsPlugin } from './plugins/mainJs' import { uniManifestJsonPlugin } from './plugins/manifestJson' import { uniPagesJsonPlugin } from './plugins/pagesJson' -import { uniResolveIdPlugin } from './plugins/resolveId' +// import { uniResolveIdPlugin } from './plugins/resolveId' import { uniRenderjsPlugin } from './plugins/renderjs' function initUniCssScopedPluginOptions() { @@ -29,7 +29,7 @@ function initUniCssScopedPluginOptions() { } const plugins = [ - uniResolveIdPlugin(), + // uniResolveIdPlugin(), uniMainJsPlugin(), uniManifestJsonPlugin(), uniPagesJsonPlugin(), diff --git a/packages/uni-app-vite/src/plugin/index.ts b/packages/uni-app-vite/src/plugin/index.ts index 940ab195489..acb0a76f135 100644 --- a/packages/uni-app-vite/src/plugin/index.ts +++ b/packages/uni-app-vite/src/plugin/index.ts @@ -20,9 +20,9 @@ export const UniAppPlugin: UniVitePlugin = { } }, configResolved, - resolveId(id) { - if (id === 'vue') { - return resolveBuiltIn('@dcloudio/uni-app-vue') - } - }, + // resolveId(id) { + // if (id === 'vue') { + // return resolveBuiltIn('@dcloudio/uni-app-vue') + // } + // }, } diff --git a/packages/uni-app-vue/build.json b/packages/uni-app-vue/build.json index 1dcb126dd4d..fa9e8f8ef54 100644 --- a/packages/uni-app-vue/build.json +++ b/packages/uni-app-vue/build.json @@ -1,7 +1,7 @@ [ { "input": { - "src/service/index.ts": ["dist/service.runtime.esm.js"] + "src/service/index.ts": ["dist/service.runtime.esm.dev.js"] }, "output": { "banner": "export default function vueFactory (exports) {\n", @@ -9,7 +9,24 @@ }, "replacements": { "__VUE_OPTIONS_API__": "true", - "__VUE_PROD_DEVTOOLS__": "false" + "__VUE_PROD_DEVTOOLS__": "false", + "process.env.NODE_ENV": "\"development\"" + }, + "external": false, + "babel": true + }, + { + "input": { + "src/service/index.ts": ["dist/service.runtime.esm.prod.js"] + }, + "output": { + "banner": "export default function vueFactory (exports) {\n", + "footer": "}" + }, + "replacements": { + "__VUE_OPTIONS_API__": "true", + "__VUE_PROD_DEVTOOLS__": "false", + "process.env.NODE_ENV": "\"production\"" }, "external": false, "babel": true diff --git a/packages/uni-app-vue/dist/service.runtime.esm.js b/packages/uni-app-vue/dist/service.runtime.esm.dev.js similarity index 94% rename from packages/uni-app-vue/dist/service.runtime.esm.js rename to packages/uni-app-vue/dist/service.runtime.esm.dev.js index 32df3f25c30..3c45be4b740 100644 --- a/packages/uni-app-vue/dist/service.runtime.esm.js +++ b/packages/uni-app-vue/dist/service.runtime.esm.dev.js @@ -6,8 +6,8 @@ export default function vueFactory(exports) { * \/\*#\_\_PURE\_\_\*\/ * So that rollup can tree-shake them if necessary. */ - process.env.NODE_ENV !== 'production' ? Object.freeze({}) : {}; - process.env.NODE_ENV !== 'production' ? Object.freeze([]) : []; + Object.freeze({}); + Object.freeze([]); var extend$1 = Object.assign; var cacheStringFunction$1 = fn => { @@ -150,10 +150,9 @@ export default function vueFactory(exports) { var listeners = this.listeners[evt.type]; if (!listeners) { - if (process.env.NODE_ENV !== 'production') { + { console.error(formatLog('dispatchEvent', this.nodeId), evt.type, 'not found'); } - return false; } // 格式化事件类型 @@ -561,7 +560,7 @@ export default function vueFactory(exports) { class UniCommentNode extends UniNode { constructor(text, container) { super(NODE_TYPE_COMMENT, '#comment', container); - this._text = process.env.NODE_ENV !== 'production' ? text : ''; + this._text = text; } toJSON(opts = {}) { @@ -747,8 +746,8 @@ export default function vueFactory(exports) { return val; }; - var EMPTY_OBJ = process.env.NODE_ENV !== 'production' ? Object.freeze({}) : {}; - var EMPTY_ARR = process.env.NODE_ENV !== 'production' ? Object.freeze([]) : []; + var EMPTY_OBJ = Object.freeze({}); + var EMPTY_ARR = Object.freeze([]); var NOOP = () => {}; /** @@ -875,8 +874,8 @@ export default function vueFactory(exports) { var targetMap = new WeakMap(); var effectStack = []; var activeEffect; - var ITERATE_KEY = Symbol(process.env.NODE_ENV !== 'production' ? 'iterate' : ''); - var MAP_KEY_ITERATE_KEY = Symbol(process.env.NODE_ENV !== 'production' ? 'Map key iterate' : ''); + var ITERATE_KEY = Symbol('iterate'); + var MAP_KEY_ITERATE_KEY = Symbol('Map key iterate'); function isEffect(fn) { return fn && fn._isEffect === true; @@ -995,7 +994,7 @@ export default function vueFactory(exports) { dep.add(activeEffect); activeEffect.deps.push(dep); - if (process.env.NODE_ENV !== 'production' && activeEffect.options.onTrack) { + if (activeEffect.options.onTrack) { activeEffect.options.onTrack({ effect: activeEffect, target, @@ -1087,7 +1086,7 @@ export default function vueFactory(exports) { } var run = effect => { - if (process.env.NODE_ENV !== 'production' && effect.options.onTrigger) { + if (effect.options.onTrigger) { effect.options.onTrigger({ effect, target, @@ -1290,18 +1289,16 @@ export default function vueFactory(exports) { get: readonlyGet, set(target, key) { - if (process.env.NODE_ENV !== 'production') { + { console.warn("Set operation on key \"".concat(String(key), "\" failed: target is readonly."), target); } - return true; }, deleteProperty(target, key) { - if (process.env.NODE_ENV !== 'production') { + { console.warn("Delete operation on key \"".concat(String(key), "\" failed: target is readonly."), target); } - return true; } @@ -1416,7 +1413,7 @@ export default function vueFactory(exports) { if (!hadKey) { key = toRaw(key); hadKey = has.call(target, key); - } else if (process.env.NODE_ENV !== 'production') { + } else { checkIdentityKeys(target, has, key); } @@ -1447,7 +1444,7 @@ export default function vueFactory(exports) { if (!hadKey) { key = toRaw(key); hadKey = has.call(target, key); - } else if (process.env.NODE_ENV !== 'production') { + } else { checkIdentityKeys(target, has, key); } @@ -1467,7 +1464,7 @@ export default function vueFactory(exports) { function clear() { var target = toRaw(this); var hadItems = target.size !== 0; - var oldTarget = process.env.NODE_ENV !== 'production' ? isMap(target) ? new Map(target) : new Set(target) : undefined; // forward the operation before queueing reactions + var oldTarget = isMap(target) ? new Map(target) : new Set(target); // forward the operation before queueing reactions var result = target.clear(); @@ -1543,11 +1540,10 @@ export default function vueFactory(exports) { function createReadonlyMethod(type) { return function (...args) { - if (process.env.NODE_ENV !== 'production') { + { var key = args[0] ? "on key \"".concat(args[0], "\" ") : ""; console.warn("".concat(capitalize(type), " operation ").concat(key, "failed: target is readonly."), toRaw(this)); } - return type === "delete" /* DELETE */ ? false : this; @@ -1775,10 +1771,9 @@ export default function vueFactory(exports) { function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) { if (!isObject(target)) { - if (process.env.NODE_ENV !== 'production') { + { console.warn("value cannot be made reactive: ".concat(String(target))); } - return target; } // target is already a Proxy, return it. // exception: calling readonly() on a reactive object @@ -1902,7 +1897,7 @@ export default function vueFactory(exports) { function triggerRef(ref) { trigger(toRaw(ref), "set" /* SET */ - , 'value', process.env.NODE_ENV !== 'production' ? ref.value : void 0); + , 'value', ref.value); } function unref(ref) { @@ -1957,7 +1952,7 @@ export default function vueFactory(exports) { } function toRefs(object) { - if (process.env.NODE_ENV !== 'production' && !isProxy(object)) { + if (!isProxy(object)) { console.warn("toRefs() expects a reactive object but received a plain one."); } @@ -2039,9 +2034,10 @@ export default function vueFactory(exports) { if (isFunction(getterOrOptions)) { getter = getterOrOptions; - setter = process.env.NODE_ENV !== 'production' ? () => { + + setter = () => { console.warn('Write operation failed: computed value is readonly'); - } : NOOP; + }; } else { getter = getterOrOptions.get; setter = getterOrOptions.set; @@ -2308,7 +2304,7 @@ export default function vueFactory(exports) { var exposedInstance = instance.proxy; // in production the hook receives only the error code - var errorInfo = process.env.NODE_ENV !== 'production' ? ErrorTypeStrings[type] : type; + var errorInfo = ErrorTypeStrings[type]; while (cur) { var errorCapturedHooks = cur.ec; @@ -2339,7 +2335,7 @@ export default function vueFactory(exports) { } function logError(err, type, contextVNode, throwInDev = true) { - if (process.env.NODE_ENV !== 'production') { + { var info = ErrorTypeStrings[type]; if (contextVNode) { @@ -2359,9 +2355,6 @@ export default function vueFactory(exports) { } else { console.error(err); } - } else { - // recover in prod to reduce the impact on end-user - console.error(err); } } @@ -2475,13 +2468,12 @@ export default function vueFactory(exports) { currentPreFlushParentJob = parentJob; activePreFlushCbs = [...new Set(pendingPreFlushCbs)]; pendingPreFlushCbs.length = 0; - - if (process.env.NODE_ENV !== 'production') { + { seen = seen || new Map(); } for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) { - if (process.env.NODE_ENV !== 'production' && checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) { + if (checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) { continue; } @@ -2507,15 +2499,13 @@ export default function vueFactory(exports) { } activePostFlushCbs = deduped; - - if (process.env.NODE_ENV !== 'production') { + { seen = seen || new Map(); } - activePostFlushCbs.sort((a, b) => getId(a) - getId(b)); for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { - if (process.env.NODE_ENV !== 'production' && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) { + if (checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) { continue; } @@ -2532,11 +2522,9 @@ export default function vueFactory(exports) { function flushJobs(seen) { isFlushPending = false; isFlushing = true; - - if (process.env.NODE_ENV !== 'production') { + { seen = seen || new Map(); } - flushPreFlushCbs(seen); // Sort queue before flush. // This ensures that: // 1. Components are updated from parent to child. (because parent is always @@ -2552,7 +2540,7 @@ export default function vueFactory(exports) { var job = queue[flushIndex]; if (job && job.active !== false) { - if (process.env.NODE_ENV !== 'production' && checkRecursiveUpdates(seen, job)) { + if ("development" !== 'production' && checkRecursiveUpdates(seen, job)) { continue; } @@ -2601,7 +2589,7 @@ export default function vueFactory(exports) { // Note: for a component to be eligible for HMR it also needs the __hmrId option // to be set so that its instances can be registered / removed. - if (process.env.NODE_ENV !== 'production') { + { var globalObject = typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {}; globalObject.__VUE_HMR_RUNTIME__ = { createRecord: tryWrap(createRecord), @@ -2609,7 +2597,6 @@ export default function vueFactory(exports) { reload: tryWrap(reload) }; } - var map = new Map(); function registerHMR(instance) { @@ -2820,8 +2807,7 @@ export default function vueFactory(exports) { function emit(instance, event, ...rawArgs) { var props = instance.vnode.props || EMPTY_OBJ; - - if (process.env.NODE_ENV !== 'production') { + { var { emitsOptions, propsOptions: [propsOptions] @@ -2845,7 +2831,6 @@ export default function vueFactory(exports) { } } } - var args = rawArgs; var isModelListener = event.startsWith('update:'); // for v-model update:xxx events, apply modifiers on args @@ -2865,18 +2850,16 @@ export default function vueFactory(exports) { } } - if (process.env.NODE_ENV !== 'production' || false) { + { devtoolsComponentEmit(instance, event, args); } - - if (process.env.NODE_ENV !== 'production') { + { var lowerCaseEvent = event.toLowerCase(); if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) { warn("Event \"".concat(lowerCaseEvent, "\" is emitted in component ") + "".concat(formatComponentName(instance, instance.type), " but the handler is registered for \"").concat(event, "\". ") + "Note that HTML attributes are case-insensitive and you cannot use " + "v-on to listen to camelCase events when using in-DOM templates. " + "You should probably use \"".concat(hyphenate(event), "\" instead of \"").concat(event, "\".")); } } - var handlerName; var handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249) props[handlerName = toHandlerKey(camelize(event))]; // for v-model update:xxx events, also trigger kebab-case equivalent @@ -3053,10 +3036,9 @@ export default function vueFactory(exports) { setBlockTracking(1); } - if (process.env.NODE_ENV !== 'production' || false) { + { devtoolsComponentUpdated(ctx); } - return res; }; // mark normalized to avoid duplicated wrapping @@ -3103,8 +3085,7 @@ export default function vueFactory(exports) { } = instance; var result; var prev = setCurrentRenderingInstance(instance); - - if (process.env.NODE_ENV !== 'production') { + { accessedAttrs = false; } @@ -3123,11 +3104,11 @@ export default function vueFactory(exports) { // functional var _render = Component; // in dev, mark attrs accessed if optional props (attrs === props) - if (process.env.NODE_ENV !== 'production' && attrs === props) { + if ("development" !== 'production' && attrs === props) { markAttrsAccessed(); } - result = normalizeVNode(_render.length > 1 ? _render(props, process.env.NODE_ENV !== 'production' ? { + result = normalizeVNode(_render.length > 1 ? _render(props, "development" !== 'production' ? { get attrs() { markAttrsAccessed(); return attrs; @@ -3151,7 +3132,7 @@ export default function vueFactory(exports) { var root = result; var setRoot = undefined; - if (process.env.NODE_ENV !== 'production' && result.patchFlag > 0 && result.patchFlag & 2048 + if ("development" !== 'production' && result.patchFlag > 0 && result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */ ) { ; @@ -3179,7 +3160,7 @@ export default function vueFactory(exports) { } root = cloneVNode(root, fallthroughAttrs); - } else if (process.env.NODE_ENV !== 'production' && !accessedAttrs && root.type !== Comment$1) { + } else if ("development" !== 'production' && !accessedAttrs && root.type !== Comment$1) { var allAttrs = Object.keys(attrs); var eventAttrs = []; var extraAttrs = []; @@ -3221,7 +3202,7 @@ export default function vueFactory(exports) { )) ; // inherit directives if (vnode.dirs) { - if (process.env.NODE_ENV !== 'production' && !isElementRoot(root)) { + if ("development" !== 'production' && !isElementRoot(root)) { warn("Runtime directive used on component with non-element root node. " + "The directives will not function as intended."); } @@ -3230,14 +3211,14 @@ export default function vueFactory(exports) { if (vnode.transition) { - if (process.env.NODE_ENV !== 'production' && !isElementRoot(root)) { + if ("development" !== 'production' && !isElementRoot(root)) { warn("Component inside <Transition> renders non-element root node " + "that cannot be animated."); } root.transition = vnode.transition; } - if (process.env.NODE_ENV !== 'production' && setRoot) { + if ("development" !== 'production' && setRoot) { setRoot(root); } else { result = root; @@ -3360,7 +3341,7 @@ export default function vueFactory(exports) { // caused the child component's slots content to have changed, we need to // force the child to update as well. - if (process.env.NODE_ENV !== 'production' && (prevChildren || nextChildren) && isHmrUpdating) { + if ((prevChildren || nextChildren) && isHmrUpdating) { return true; } // force child update for runtime directive or transition on component vnode. @@ -3642,7 +3623,7 @@ export default function vueFactory(exports) { function createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) { /* istanbul ignore if */ - if (process.env.NODE_ENV !== 'production' && !false && !hasWarned) { + if (!hasWarned) { hasWarned = true; // @ts-ignore `console.info` cannot be null error console[console.info ? 'info' : 'log']("<Suspense> is an experimental feature and its API will likely change."); @@ -3678,7 +3659,7 @@ export default function vueFactory(exports) { effects: [], resolve(resume = false) { - if (process.env.NODE_ENV !== 'production') { + { if (!resume && !suspense.pendingBranch) { throw new Error("suspense.resolve() is called without a pending branch."); } @@ -3687,7 +3668,6 @@ export default function vueFactory(exports) { throw new Error("suspense.resolve() is called on an already unmounted suspense boundary."); } } - var { vnode, activeBranch, @@ -3840,11 +3820,9 @@ export default function vueFactory(exports) { var { vnode } = instance; - - if (process.env.NODE_ENV !== 'production') { + { pushWarningContext(vnode); } - handleSetupResult(instance, asyncSetupResult, false); if (hydratedEl) { @@ -3866,12 +3844,10 @@ export default function vueFactory(exports) { } updateHOCHostEl(instance, vnode.el); - - if (process.env.NODE_ENV !== 'production') { + { popWarningContext(); } // only decrease deps count if suspense is not already resolved - if (isInPendingSuspense && --suspense.deps === 0) { suspense.resolve(); } @@ -3953,7 +3929,7 @@ export default function vueFactory(exports) { if (isArray(s)) { var singleChild = filterSingleRoot(s); - if (process.env.NODE_ENV !== 'production' && !singleChild) { + if (!singleChild) { warn("<Suspense> slots expect a single root node."); } @@ -3998,7 +3974,7 @@ export default function vueFactory(exports) { function provide(key, value) { if (!currentInstance) { - if (process.env.NODE_ENV !== 'production') { + { warn("provide() can only be used inside setup()."); } } else { @@ -4035,10 +4011,10 @@ export default function vueFactory(exports) { return provides[key]; } else if (arguments.length > 1) { return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance.proxy) : defaultValue; - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("injection \"".concat(String(key), "\" not found.")); } - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("inject() can only be used inside setup() or functional components."); } } // Simple effect. @@ -4052,7 +4028,7 @@ export default function vueFactory(exports) { var INITIAL_WATCHER_VALUE = {}; // implementation function watch(source, cb, options) { - if (process.env.NODE_ENV !== 'production' && !isFunction(cb)) { + if (!isFunction(cb)) { warn("`watch(fn, options?)` signature has been moved to a separate API. " + "Use `watchEffect(fn, options?)` instead. `watch` now only " + "supports `watch(source, cb, options?) signature."); } @@ -4066,7 +4042,7 @@ export default function vueFactory(exports) { onTrack, onTrigger } = EMPTY_OBJ, instance = currentInstance) { - if (process.env.NODE_ENV !== 'production' && !cb) { + if (!cb) { if (immediate !== undefined) { warn("watch() \"immediate\" option is only respected when using the " + "watch(source, callback, options?) signature."); } @@ -4106,7 +4082,7 @@ export default function vueFactory(exports) { /* WATCH_GETTER */ ); } else { - process.env.NODE_ENV !== 'production' && warnInvalidSource(s); + warnInvalidSource(s); } }); } else if (isFunction(source)) { @@ -4133,7 +4109,7 @@ export default function vueFactory(exports) { } } else { getter = NOOP; - process.env.NODE_ENV !== 'production' && warnInvalidSource(source); + warnInvalidSource(source); } if (cb && deep) { @@ -4343,7 +4319,7 @@ export default function vueFactory(exports) { } // warn multiple elements - if (process.env.NODE_ENV !== 'production' && children.length > 1) { + if (children.length > 1) { warn('<transition> can only be used on a single element or component. Use ' + '<transition-group> for lists.'); } // there's no need to track reactivity for these props so use the raw // props for a bit better perf @@ -4354,7 +4330,7 @@ export default function vueFactory(exports) { mode } = rawProps; // check mode - if (process.env.NODE_ENV !== 'production' && mode && !['in-out', 'out-in', 'default'].includes(mode)) { + if (mode && !['in-out', 'out-in', 'default'].includes(mode)) { warn("invalid <transition> mode: ".concat(mode)); } // at this point children has a guaranteed length of 1. @@ -4731,7 +4707,7 @@ export default function vueFactory(exports) { return pendingRequest; } - if (process.env.NODE_ENV !== 'production' && !comp) { + if (!comp) { warn("Async component loader resolved to undefined. " + "If you are using retry(), make sure to return its return value."); } // interop module default @@ -4740,7 +4716,7 @@ export default function vueFactory(exports) { comp = comp.default; } - if (process.env.NODE_ENV !== 'production' && comp && !isObject(comp) && !isFunction(comp)) { + if (comp && !isObject(comp) && !isFunction(comp)) { throw new Error("Invalid async component load result: ".concat(comp)); } @@ -4879,11 +4855,9 @@ export default function vueFactory(exports) { var cache = new Map(); var keys = new Set(); var current = null; - - if (process.env.NODE_ENV !== 'production' || false) { + { instance.__v_cache = cache; } - var parentSuspense = instance.suspense; var { renderer: { @@ -4917,8 +4891,7 @@ export default function vueFactory(exports) { invokeVNodeHook(vnodeHook, instance.parent, vnode); } }, parentSuspense); - - if (process.env.NODE_ENV !== 'production' || false) { + { // Update components tree devtoolsComponentAdded(instance); } @@ -4942,8 +4915,7 @@ export default function vueFactory(exports) { instance.isDeactivated = true; }, parentSuspense); - - if (process.env.NODE_ENV !== 'production' || false) { + { // Update components tree devtoolsComponentAdded(instance); } @@ -5033,10 +5005,9 @@ export default function vueFactory(exports) { var rawVNode = children[0]; if (children.length > 1) { - if (process.env.NODE_ENV !== 'production') { + { warn("KeepAlive should contain exactly one component child."); } - current = null; return children; } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4 @@ -5270,7 +5241,7 @@ export default function vueFactory(exports) { } return wrappedHook; - } else if (process.env.NODE_ENV !== 'production') { + } else { var apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, '')); warn("".concat(apiName, " is called when there is no active component instance to be ") + "associated with. " + "Lifecycle injection APIs can only be used during execution of setup()." + (" If you are using async setup(), make sure to register lifecycle " + "hooks before the first await statement.")); } @@ -5375,9 +5346,8 @@ export default function vueFactory(exports) { directives, filters } = options; - var checkDuplicateProperties = process.env.NODE_ENV !== 'production' ? createDuplicateChecker() : null; - - if (process.env.NODE_ENV !== 'production') { + var checkDuplicateProperties = createDuplicateChecker(); + { var [propsOptions] = instance.propsOptions; if (propsOptions) { @@ -5395,7 +5365,6 @@ export default function vueFactory(exports) { // - computed // - watch (deferred since it relies on `this` access) - if (injectOptions) { resolveInjections(injectOptions, ctx, checkDuplicateProperties); } @@ -5407,23 +5376,20 @@ export default function vueFactory(exports) { if (isFunction(methodHandler)) { // In dev mode, we use the `createRenderContext` function to define methods to the proxy target, // and those are read-only but reconfigurable, so it needs to be redefined here - if (process.env.NODE_ENV !== 'production') { + { Object.defineProperty(ctx, _key2, { value: methodHandler.bind(publicThis), configurable: true, enumerable: true, writable: true }); - } else { - ctx[_key2] = methodHandler.bind(publicThis); } - - if (process.env.NODE_ENV !== 'production') { + { checkDuplicateProperties("Methods" /* METHODS */ , _key2); } - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("Method \"".concat(_key2, "\" has type \"").concat(typeof methodHandler, "\" in the component definition. ") + "Did you reference the function correctly?"); } } @@ -5431,22 +5397,21 @@ export default function vueFactory(exports) { if (dataOptions) { (function () { - if (process.env.NODE_ENV !== 'production' && !isFunction(dataOptions)) { + if (!isFunction(dataOptions)) { warn("The data option must be a function. " + "Plain object usage is no longer supported."); } var data = dataOptions.call(publicThis, publicThis); - if (process.env.NODE_ENV !== 'production' && isPromise(data)) { + if (isPromise(data)) { warn("data() returned a Promise - note data() cannot be async; If you " + "intend to perform data fetching before component renders, use " + "async setup() + <Suspense>."); } if (!isObject(data)) { - process.env.NODE_ENV !== 'production' && warn("data() should return an object."); + warn("data() should return an object."); } else { instance.data = reactive(data); - - if (process.env.NODE_ENV !== 'production') { + { var _loop = function (_key3) { checkDuplicateProperties("Data" /* DATA */ @@ -5478,13 +5443,13 @@ export default function vueFactory(exports) { var opt = computedOptions[_key4]; var get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP; - if (process.env.NODE_ENV !== 'production' && get === NOOP) { + if (get === NOOP) { warn("Computed property \"".concat(_key4, "\" has no getter.")); } - var set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : process.env.NODE_ENV !== 'production' ? () => { + var set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : () => { warn("Write operation failed: computed property \"".concat(_key4, "\" is readonly.")); - } : NOOP; + }; var c = computed$1({ get, set @@ -5495,8 +5460,7 @@ export default function vueFactory(exports) { get: () => c.value, set: v => c.value = v }); - - if (process.env.NODE_ENV !== 'production') { + { checkDuplicateProperties("Computed" /* COMPUTED */ , _key4); @@ -5603,7 +5567,7 @@ export default function vueFactory(exports) { ctx[key] = inject(opt); } - if (process.env.NODE_ENV !== 'production') { + { checkDuplicateProperties("Inject" /* INJECT */ , key); @@ -5623,7 +5587,7 @@ export default function vueFactory(exports) { if (isFunction(handler)) { watch(getter, handler); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("Invalid watch handler specified by key \"".concat(raw, "\""), handler); } } else if (isFunction(raw)) { @@ -5636,11 +5600,11 @@ export default function vueFactory(exports) { if (isFunction(_handler)) { watch(getter, _handler, raw); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("Invalid watch handler specified by key \"".concat(raw.handler, "\""), _handler); } } - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("Invalid watch option: \"".concat(key, "\""), raw); } } @@ -5703,7 +5667,7 @@ export default function vueFactory(exports) { for (var key in from) { if (asMixin && key === 'expose') { - process.env.NODE_ENV !== 'production' && warn("\"expose\" option is ignored when declared in mixins or extends. " + "It should only be declared in the base component itself."); + warn("\"expose\" option is ignored when declared in mixins or extends. " + "It should only be declared in the base component itself."); } else { var strat = internalOptionMergeStrats[key] || strats && strats[key]; to[key] = strat ? strat(to[key], from[key]) : from[key]; @@ -5810,7 +5774,7 @@ export default function vueFactory(exports) { } // validation - if (process.env.NODE_ENV !== 'production') { + { validateProps(rawProps || {}, props, instance); } @@ -5845,7 +5809,7 @@ export default function vueFactory(exports) { if ( // always force full diff in dev // - #1942 if hmr is enabled with sfc component // - vite#872 non-sfc component used by sfc component - !(process.env.NODE_ENV !== 'production' && (instance.type.__hmrId || instance.parent && instance.parent.type.__hmrId)) && (optimized || patchFlag > 0) && !(patchFlag & 16 + !(instance.type.__hmrId || instance.parent && instance.parent.type.__hmrId) && (optimized || patchFlag > 0) && !(patchFlag & 16 /* FULL_PROPS */ )) { if (patchFlag & 8 @@ -5926,7 +5890,7 @@ export default function vueFactory(exports) { , '$attrs'); } - if (process.env.NODE_ENV !== 'production') { + { validateProps(rawProps || {}, props, instance); } } @@ -6061,7 +6025,7 @@ export default function vueFactory(exports) { if (isArray(raw)) { for (var i = 0; i < raw.length; i++) { - if (process.env.NODE_ENV !== 'production' && !isString(raw[i])) { + if (!isString(raw[i])) { warn("props must be strings when using array syntax.", raw[i]); } @@ -6072,7 +6036,7 @@ export default function vueFactory(exports) { } } } else if (raw) { - if (process.env.NODE_ENV !== 'production' && !isObject(raw)) { + if (!isObject(raw)) { warn("invalid props options", raw); } @@ -6111,7 +6075,7 @@ export default function vueFactory(exports) { function validatePropName(key) { if (key[0] !== '$') { return true; - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("Invalid prop name: \"".concat(key, "\" is a reserved property.")); } @@ -6293,7 +6257,7 @@ export default function vueFactory(exports) { var normalizeSlot = (key, rawSlot, ctx) => { var normalized = withCtx(props => { - if (process.env.NODE_ENV !== 'production' && currentInstance) { + if (currentInstance) { warn("Slot \"".concat(key, "\" invoked outside of the render function: ") + "this will not track dependencies used in the slot. " + "Invoke the slot function inside the render function instead."); } @@ -6314,10 +6278,9 @@ export default function vueFactory(exports) { slots[key] = normalizeSlot(key, value, ctx); } else if (value != null) { (function () { - if (process.env.NODE_ENV !== 'production' && !false) { + { warn("Non-function value encountered for slot \"".concat(key, "\". ") + "Prefer function slots for better performance."); } - var normalized = normalizeSlotValue(value); slots[key] = () => normalized; @@ -6327,7 +6290,7 @@ export default function vueFactory(exports) { }; var normalizeVNodeSlots = (instance, children) => { - if (process.env.NODE_ENV !== 'production' && !isKeepAlive(instance.vnode) && !false) { + if (!isKeepAlive(instance.vnode) && !false) { warn("Non-function value encountered for default slot. " + "Prefer function slots for better performance."); } @@ -6377,7 +6340,7 @@ export default function vueFactory(exports) { if (type) { // compiled slots. - if (process.env.NODE_ENV !== 'production' && isHmrUpdating) { + if (isHmrUpdating) { // Parent was HMR updated so slot content may have changed. // force update slots and mark instance for hmr as well extend(slots, children); @@ -6454,7 +6417,7 @@ export default function vueFactory(exports) { var internalInstance = currentRenderingInstance; if (internalInstance === null) { - process.env.NODE_ENV !== 'production' && warn("withDirectives can only be used inside render functions."); + warn("withDirectives can only be used inside render functions."); return vnode; } @@ -6536,7 +6499,7 @@ export default function vueFactory(exports) { function createAppAPI(render, hydrate) { return function createApp(rootComponent, rootProps = null) { if (rootProps != null && !isObject(rootProps)) { - process.env.NODE_ENV !== 'production' && warn("root props passed to app.mount() must be an object."); + warn("root props passed to app.mount() must be an object."); rootProps = null; } @@ -6557,21 +6520,21 @@ export default function vueFactory(exports) { }, set config(v) { - if (process.env.NODE_ENV !== 'production') { + { warn("app.config cannot be replaced. Modify individual options instead."); } }, use(plugin, ...options) { if (installedPlugins.has(plugin)) { - process.env.NODE_ENV !== 'production' && warn("Plugin has already been applied to target app."); + warn("Plugin has already been applied to target app."); } else if (plugin && isFunction(plugin.install)) { installedPlugins.add(plugin); plugin.install(app, ...options); } else if (isFunction(plugin)) { installedPlugins.add(plugin); plugin(app, ...options); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("A plugin must either be a function or an object with an \"install\" " + "function."); } @@ -6582,7 +6545,7 @@ export default function vueFactory(exports) { { if (!context.mixins.includes(mixin)) { context.mixins.push(mixin); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn('Mixin has already been applied to target app' + (mixin.name ? ": ".concat(mixin.name) : '')); } } @@ -6590,7 +6553,7 @@ export default function vueFactory(exports) { }, component(name, component) { - if (process.env.NODE_ENV !== 'production') { + { validateComponentName(name, context.config); } @@ -6598,7 +6561,7 @@ export default function vueFactory(exports) { return context.components[name]; } - if (process.env.NODE_ENV !== 'production' && context.components[name]) { + if (context.components[name]) { warn("Component \"".concat(name, "\" has already been registered in target app.")); } @@ -6607,7 +6570,7 @@ export default function vueFactory(exports) { }, directive(name, directive) { - if (process.env.NODE_ENV !== 'production') { + { validateDirectiveName(name); } @@ -6615,7 +6578,7 @@ export default function vueFactory(exports) { return context.directives[name]; } - if (process.env.NODE_ENV !== 'production' && context.directives[name]) { + if (context.directives[name]) { warn("Directive \"".concat(name, "\" has already been registered in target app.")); } @@ -6630,7 +6593,7 @@ export default function vueFactory(exports) { vnode.appContext = context; // HMR root reload - if (process.env.NODE_ENV !== 'production') { + { context.reload = () => { render(cloneVNode(vnode), rootContainer, isSVG); }; @@ -6645,14 +6608,12 @@ export default function vueFactory(exports) { isMounted = true; app._container = rootContainer; rootContainer.__vue_app__ = app; - - if (process.env.NODE_ENV !== 'production' || false) { + { app._instance = vnode.component; devtoolsInitApp(app, version); } - return vnode.component.proxy; - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("App has already been mounted.\n" + "If you want to remount the same app, move your app creation logic " + "into a factory function and create fresh app instances for each " + "mount - e.g. `const createMyApp = () => createApp(App)`"); } }, @@ -6660,20 +6621,18 @@ export default function vueFactory(exports) { unmount() { if (isMounted) { render(null, app._container); - - if (process.env.NODE_ENV !== 'production' || false) { + { app._instance = null; devtoolsUnmountApp(app); } - delete app._container.__vue_app__; - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("Cannot unmount an app that is not mounted."); } }, provide(key, value) { - if (process.env.NODE_ENV !== 'production' && key in context.provides) { + if (key in context.provides) { warn("App already provides property with key \"".concat(String(key), "\". ") + "It will be overwritten with the new value."); } // TypeScript doesn't allow symbols as index type // https://github.com/Microsoft/TypeScript/issues/24587 @@ -6717,7 +6676,7 @@ export default function vueFactory(exports) { var hydrate = (vnode, container) => { if (!container.hasChildNodes()) { - process.env.NODE_ENV !== 'production' && warn("Attempting to hydrate existing markup but container is empty. " + "Performing full mount instead."); + warn("Attempting to hydrate existing markup but container is empty. " + "Performing full mount instead."); patch(null, vnode, container); flushPostFlushCbs(); return; @@ -6756,7 +6715,7 @@ export default function vueFactory(exports) { } else { if (node.data !== vnode.children) { hasMismatch = true; - process.env.NODE_ENV !== 'production' && warn("Hydration text mismatch:" + "\n- Client: ".concat(JSON.stringify(node.data)) + "\n- Server: ".concat(JSON.stringify(vnode.children))); + warn("Hydration text mismatch:" + "\n- Client: ".concat(JSON.stringify(node.data)) + "\n- Server: ".concat(JSON.stringify(vnode.children))); node.data = vnode.children; } @@ -6867,7 +6826,7 @@ export default function vueFactory(exports) { /* SUSPENSE */ ) { nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn('Invalid HostVNode type:', type, "(".concat(typeof type, ")")); } @@ -6948,7 +6907,7 @@ export default function vueFactory(exports) { while (next) { hasMismatch = true; - if (process.env.NODE_ENV !== 'production' && !_hasWarned) { + if (!_hasWarned) { warn("Hydration children mismatch in <".concat(vnode.type, ">: ") + "server rendered element contains more child nodes than client vdom."); _hasWarned = true; } // The SSRed DOM contains more nodes than it should. Remove them. @@ -6963,7 +6922,7 @@ export default function vueFactory(exports) { ) { if (el.textContent !== vnode.children) { hasMismatch = true; - process.env.NODE_ENV !== 'production' && warn("Hydration text content mismatch in <".concat(vnode.type, ">:\n") + "- Client: ".concat(el.textContent, "\n") + "- Server: ".concat(vnode.children)); + warn("Hydration text content mismatch in <".concat(vnode.type, ">:\n") + "- Client: ".concat(el.textContent, "\n") + "- Server: ".concat(vnode.children)); el.textContent = vnode.children; } } @@ -6988,7 +6947,7 @@ export default function vueFactory(exports) { } else { hasMismatch = true; - if (process.env.NODE_ENV !== 'production' && !hasWarned) { + if (!hasWarned) { warn("Hydration children mismatch in <".concat(container.tagName.toLowerCase(), ">: ") + "server rendered element contains fewer child nodes than client vdom."); hasWarned = true; } // the SSRed DOM didn't contain enough nodes. Mount the missing ones. @@ -7028,7 +6987,7 @@ export default function vueFactory(exports) { var handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => { hasMismatch = true; - process.env.NODE_ENV !== 'production' && warn("Hydration node mismatch:\n- Client vnode:", vnode.type, "\n- Server rendered DOM:", node, node.nodeType === 3 + warn("Hydration node mismatch:\n- Client vnode:", vnode.type, "\n- Server rendered DOM:", node, node.nodeType === 3 /* TEXT */ ? "(text)" : isComment(node) && node.data === '[' ? "(start of fragment)" : ""); vnode.el = null; @@ -7088,7 +7047,7 @@ export default function vueFactory(exports) { perf.mark("vue-".concat(type, "-").concat(instance.uid)); } - if (process.env.NODE_ENV !== 'production' || false) { + { devtoolsPerfStart(instance, type, supported ? perf.now() : Date.now()); } } @@ -7103,7 +7062,7 @@ export default function vueFactory(exports) { perf.clearMarks(endTag); } - if (process.env.NODE_ENV !== 'production' || false) { + { devtoolsPerfEnd(instance, type, supported ? perf.now() : Date.now()); } } @@ -7126,28 +7085,6 @@ export default function vueFactory(exports) { return supported; } - /** - * This is only called in esm-bundler builds. - * It is called when a renderer is created, in `baseCreateRenderer` so that - * importing runtime-core is side-effects free. - * - * istanbul-ignore-next - */ - - - function initFeatureFlags() { - var needWarn = false; - - if (process.env.NODE_ENV !== 'production' && needWarn) { - console.warn("You are running the esm-bundler build of Vue. It is recommended to " + "configure your bundler to explicitly replace feature flag globals " + "with boolean literals to get proper tree-shaking in the final bundle. " + "See http://link.vuejs.org/feature-flags for more details."); - } - } - - var prodEffectOptions = { - scheduler: queueJob, - // #1801, #2043 component render effects should allow recursive updates - allowRecurse: true - }; function createDevEffectOptions(instance) { return { @@ -7181,7 +7118,7 @@ export default function vueFactory(exports) { r: ref } = rawRef; - if (process.env.NODE_ENV !== 'production' && !owner) { + if (!owner) { warn("Missing ref owner context. ref cannot be used on hoisted vnodes. " + "A vnode with ref must be created inside the render function."); return; } @@ -7237,7 +7174,7 @@ export default function vueFactory(exports) { callWithErrorHandling(ref, owner, 12 /* FUNCTION_REF */ , [value, refs]); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn('Invalid template ref type:', value, "(".concat(typeof value, ")")); } }; @@ -7271,17 +7208,11 @@ export default function vueFactory(exports) { function baseCreateRenderer(options, createHydrationFns) { - // compile-time feature flags check { - initFeatureFlags(); - } - - if (process.env.NODE_ENV !== 'production' || false) { var target = getGlobalThis(); target.__VUE__ = true; setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__); } - var { insert: hostInsert, remove: hostRemove, @@ -7333,7 +7264,7 @@ export default function vueFactory(exports) { case Static: if (n1 == null) { mountStaticNode(n2, container, anchor, isSVG); - } else if (process.env.NODE_ENV !== 'production') { + } else { patchStaticNode(n1, n2, container, isSVG); } @@ -7360,7 +7291,7 @@ export default function vueFactory(exports) { /* SUSPENSE */ ) { type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn('Invalid VNode type:', type, "(".concat(typeof type, ")")); } @@ -7479,16 +7410,7 @@ export default function vueFactory(exports) { patchFlag, dirs } = vnode; - - if (!(process.env.NODE_ENV !== 'production') && vnode.el && hostCloneNode !== undefined && patchFlag === -1 - /* HOISTED */ - ) { - // If a vnode has non-null el, it means it's being reused. - // Only static vnodes can be reused, so its mounted DOM nodes should be - // exactly the same, and we can simply do a clone here. - // only do this in production since cloned trees cannot be HMR updated. - el = vnode.el = hostCloneNode(vnode.el); - } else { + { el = vnode.el = hostCreateElement( // fixed by xxxxxx vnode.type, container); // mount children first, since some props may rely on child content // being already rendered, e.g. `<select value>` @@ -7523,8 +7445,7 @@ export default function vueFactory(exports) { setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); } - - if (process.env.NODE_ENV !== 'production' || false) { + { Object.defineProperty(el, '__vnode', { value: vnode, enumerable: false @@ -7572,7 +7493,7 @@ export default function vueFactory(exports) { if (parentComponent) { var subTree = parentComponent.subTree; - if (process.env.NODE_ENV !== 'production' && subTree.patchFlag > 0 && subTree.patchFlag & 2048 + if (subTree.patchFlag > 0 && subTree.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */ ) { subTree = filterSingleRoot(subTree.children) || subTree; @@ -7616,7 +7537,7 @@ export default function vueFactory(exports) { invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate'); } - if (process.env.NODE_ENV !== 'production' && isHmrUpdating) { + if (isHmrUpdating) { // HMR updated, force full diff patchFlag = 0; optimized = false; @@ -7695,7 +7616,7 @@ export default function vueFactory(exports) { if (dynamicChildren) { patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds); - if (process.env.NODE_ENV !== 'production' && parentComponent && parentComponent.type.__hmrId) { + if (parentComponent && parentComponent.type.__hmrId) { traverseStaticChildren(n1, n2); } } else if (!optimized) { @@ -7776,7 +7697,7 @@ export default function vueFactory(exports) { slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; } - if (process.env.NODE_ENV !== 'production' && isHmrUpdating) { + if (isHmrUpdating) { // HMR updated, force full diff patchFlag = 0; optimized = false; @@ -7800,7 +7721,7 @@ export default function vueFactory(exports) { // patch children order, but it may contain dynamicChildren. patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds); - if (process.env.NODE_ENV !== 'production' && parentComponent && parentComponent.type.__hmrId) { + if (parentComponent && parentComponent.type.__hmrId) { traverseStaticChildren(n1, n2); } else if ( // #2080 if the stable fragment has a key, it's a <template v-for> that may // get moved around. Make sure all root level vnodes inherit el. @@ -7840,29 +7761,26 @@ export default function vueFactory(exports) { var mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => { var instance = initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense); - if (process.env.NODE_ENV !== 'production' && instance.type.__hmrId) { + if (instance.type.__hmrId) { registerHMR(instance); } - if (process.env.NODE_ENV !== 'production') { + { pushWarningContext(initialVNode); startMeasure(instance, "mount"); } // inject renderer internals for keepAlive - if (isKeepAlive(initialVNode)) { instance.ctx.renderer = internals; } // resolve props and slots for setup context { - if (process.env.NODE_ENV !== 'production') { + { startMeasure(instance, "init"); } - setupComponent(instance); - - if (process.env.NODE_ENV !== 'production') { + { endMeasure(instance, "init"); } } // setup() is async. This component relies on async logic to be resolved @@ -7894,7 +7812,7 @@ export default function vueFactory(exports) { } } - if (process.env.NODE_ENV !== 'production') { + { popWarningContext(); endMeasure(instance, "mount"); } @@ -7907,16 +7825,13 @@ export default function vueFactory(exports) { if (instance.asyncDep && !instance.asyncResolved) { // async & still pending - just update props and slots // since the component's reactive effect for render isn't set-up yet - if (process.env.NODE_ENV !== 'production') { + { pushWarningContext(n2); } - updateComponentPreRender(instance, n2, optimized); - - if (process.env.NODE_ENV !== 'production') { + { popWarningContext(); } - return; } else { // normal update @@ -7962,23 +7877,18 @@ export default function vueFactory(exports) { if (el && hydrateNode) { // vnode has adopted host node - perform hydration instead of mount. var hydrateSubTree = () => { - if (process.env.NODE_ENV !== 'production') { + { startMeasure(instance, "render"); } - instance.subTree = renderComponentRoot(instance); - - if (process.env.NODE_ENV !== 'production') { + { endMeasure(instance, "render"); } - - if (process.env.NODE_ENV !== 'production') { + { startMeasure(instance, "hydrate"); } - hydrateNode(el, instance.subTree, instance, parentSuspense, null); - - if (process.env.NODE_ENV !== 'production') { + { endMeasure(instance, "hydrate"); } }; @@ -7993,26 +7903,20 @@ export default function vueFactory(exports) { hydrateSubTree(); } } else { - if (process.env.NODE_ENV !== 'production') { + { startMeasure(instance, "render"); } - var subTree = instance.subTree = renderComponentRoot(instance); - - if (process.env.NODE_ENV !== 'production') { + { endMeasure(instance, "render"); } - - if (process.env.NODE_ENV !== 'production') { + { startMeasure(instance, "patch"); } - patch(null, subTree, container, anchor, instance, parentSuspense, isSVG); - - if (process.env.NODE_ENV !== 'production') { + { endMeasure(instance, "patch"); } - initialVNode.el = subTree.el; } // mounted hook @@ -8037,12 +7941,10 @@ export default function vueFactory(exports) { } instance.isMounted = true; - - if (process.env.NODE_ENV !== 'production' || false) { + { devtoolsComponentAdded(instance); } // #2458: deference mount-only object parameters to prevent memleaks - initialVNode = container = anchor = null; } else { // updateComponent @@ -8059,7 +7961,7 @@ export default function vueFactory(exports) { var _vnodeHook; - if (process.env.NODE_ENV !== 'production') { + { pushWarningContext(next || instance.vnode); } @@ -8081,31 +7983,24 @@ export default function vueFactory(exports) { } // render - if (process.env.NODE_ENV !== 'production') { + { startMeasure(instance, "render"); } - var nextTree = renderComponentRoot(instance); - - if (process.env.NODE_ENV !== 'production') { + { endMeasure(instance, "render"); } - var prevTree = instance.subTree; instance.subTree = nextTree; - - if (process.env.NODE_ENV !== 'production') { + { startMeasure(instance, "patch"); } - patch(prevTree, nextTree, // parent may have changed if it's in a teleport hostParentNode(prevTree.el), // anchor may have changed if it's in a fragment getNextHostNode(prevTree), instance, parentSuspense, isSVG); - - if (process.env.NODE_ENV !== 'production') { + { endMeasure(instance, "patch"); } - next.el = nextTree.el; if (originNext === null) { @@ -8125,17 +8020,15 @@ export default function vueFactory(exports) { queuePostRenderEffect(() => invokeVNodeHook(_vnodeHook, _parent, next, vnode), parentSuspense); } - if (process.env.NODE_ENV !== 'production' || false) { + { devtoolsComponentUpdated(instance); } - - if (process.env.NODE_ENV !== 'production') { + { popWarningContext(); } } - }, process.env.NODE_ENV !== 'production' ? createDevEffectOptions(instance) : prodEffectOptions); - - if (process.env.NODE_ENV !== 'production') { + }, createDevEffectOptions(instance)); + { // @ts-ignore instance.update.ownerInstance = instance; } @@ -8337,7 +8230,7 @@ export default function vueFactory(exports) { var nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); if (nextChild.key != null) { - if (process.env.NODE_ENV !== 'production' && keyToNewIndexMap.has(nextChild.key)) { + if (keyToNewIndexMap.has(nextChild.key)) { warn("Duplicate keys found during update:", JSON.stringify(nextChild.key), "Make sure keys are unique."); } @@ -8662,7 +8555,7 @@ export default function vueFactory(exports) { }; var unmountComponent = (instance, parentSuspense, doRemove) => { - if (process.env.NODE_ENV !== 'production' && instance.type.__hmrId) { + if (instance.type.__hmrId) { unregisterHMR(instance); } @@ -8710,7 +8603,7 @@ export default function vueFactory(exports) { } } - if (process.env.NODE_ENV !== 'production' || false) { + { devtoolsComponentRemoved(instance); } }; @@ -8820,7 +8713,7 @@ export default function vueFactory(exports) { // would have received .el during block patch) - if (process.env.NODE_ENV !== 'production' && c2.type === Comment$1 && !c2.el) { + if (c2.type === Comment$1 && !c2.el) { c2.el = c1.el; } } @@ -8891,19 +8784,19 @@ export default function vueFactory(exports) { if (isString(targetSelector)) { if (!select) { - process.env.NODE_ENV !== 'production' && warn("Current renderer does not support string target for Teleports. " + "(missing querySelector renderer option)"); + warn("Current renderer does not support string target for Teleports. " + "(missing querySelector renderer option)"); return null; } else { var target = select(targetSelector); if (!target) { - process.env.NODE_ENV !== 'production' && warn("Failed to locate Teleport target with selector \"".concat(targetSelector, "\". ") + "Note the target element must exist before the component is mounted - " + "i.e. the target cannot be rendered by the component itself, and " + "ideally should be outside of the entire Vue component tree."); + warn("Failed to locate Teleport target with selector \"".concat(targetSelector, "\". ") + "Note the target element must exist before the component is mounted - " + "i.e. the target cannot be rendered by the component itself, and " + "ideally should be outside of the entire Vue component tree."); } return target; } } else { - if (process.env.NODE_ENV !== 'production' && !targetSelector && !isTeleportDisabled(props)) { + if (!targetSelector && !isTeleportDisabled(props)) { warn("Invalid Teleport target: ".concat(targetSelector)); } @@ -8934,18 +8827,18 @@ export default function vueFactory(exports) { } = n2; // #3302 // HMR updated, force full diff - if (process.env.NODE_ENV !== 'production' && isHmrUpdating) { + if (isHmrUpdating) { optimized = false; dynamicChildren = null; } if (n1 == null) { // insert anchors in the main view - var placeholder = n2.el = process.env.NODE_ENV !== 'production' ? createComment('teleport start', container) // fixed by xxxxxx - : createText('', container); // fixed by xxxxxx + var placeholder = n2.el = createComment('teleport start', container) // fixed by xxxxxx + ; // fixed by xxxxxx - var mainAnchor = n2.anchor = process.env.NODE_ENV !== 'production' ? createComment('teleport end', container) // fixed by xxxxxx - : createText('', container); // fixed by xxxxxx + var mainAnchor = n2.anchor = createComment('teleport end', container) // fixed by xxxxxx + ; // fixed by xxxxxx insert(placeholder, container, anchor); insert(mainAnchor, container, anchor); @@ -8956,7 +8849,7 @@ export default function vueFactory(exports) { insert(targetAnchor, target); // #2652 we could be teleporting from a non-SVG tree into an SVG tree isSVG = isSVG || isTargetSVG(target); - } else if (process.env.NODE_ENV !== 'production' && !disabled) { + } else if (!disabled) { warn('Invalid Teleport target on mount:', target, "(".concat(typeof target, ")")); } @@ -9018,7 +8911,7 @@ export default function vueFactory(exports) { moveTeleport(n2, nextTarget, null, internals, 0 /* TARGET_CHANGE */ ); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn('Invalid Teleport target on update:', _target, "(".concat(typeof _target, ")")); } } else if (wasDisabled) { @@ -9213,12 +9106,12 @@ export default function vueFactory(exports) { return Component; } - if (process.env.NODE_ENV !== 'production' && warnMissing && !res) { + if (warnMissing && !res) { warn("Failed to resolve ".concat(type.slice(0, -1), ": ").concat(name)); } return res; - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("resolve".concat(capitalize(type.slice(0, -1)), " ") + "can only be used in render() or setup()."); } } @@ -9227,10 +9120,10 @@ export default function vueFactory(exports) { return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]); } - var Fragment = Symbol(process.env.NODE_ENV !== 'production' ? 'Fragment' : undefined); - var Text = Symbol(process.env.NODE_ENV !== 'production' ? 'Text' : undefined); - var Comment$1 = Symbol(process.env.NODE_ENV !== 'production' ? 'Comment' : undefined); - var Static = Symbol(process.env.NODE_ENV !== 'production' ? 'Static' : undefined); // Since v-if and v-for are the two possible ways node structure can dynamically + var Fragment = Symbol('Fragment'); + var Text = Symbol('Text'); + var Comment$1 = Symbol('Comment'); + var Static = Symbol('Static'); // Since v-if and v-for are the two possible ways node structure can dynamically // change, once we consider v-if branches and each v-for fragment a block, we // can divide a template into nested blocks, and within each block the node // structure would be stable. This allows us to skip most children diffing @@ -9320,7 +9213,7 @@ export default function vueFactory(exports) { } function isSameVNodeType(n1, n2) { - if (process.env.NODE_ENV !== 'production' && n2.shapeFlag & 6 + if (n2.shapeFlag & 6 /* COMPONENT */ && hmrDirtyComponents.has(n2.type)) { // HMR only: if the component has been hot-updated, force a reload. @@ -9361,11 +9254,11 @@ export default function vueFactory(exports) { } : ref : null; }; - var createVNode = process.env.NODE_ENV !== 'production' ? createVNodeWithArgsTransform : _createVNode; + var createVNode = createVNodeWithArgsTransform; function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { if (!type || type === NULL_DYNAMIC_COMPONENT) { - if (process.env.NODE_ENV !== 'production' && !type) { + if (!type) { warn("Invalid vnode type when creating vnode: ".concat(type, ".")); } @@ -9432,7 +9325,7 @@ export default function vueFactory(exports) { /* FUNCTIONAL_COMPONENT */ : 0; - if (process.env.NODE_ENV !== 'production' && shapeFlag & 4 + if (shapeFlag & 4 /* STATEFUL_COMPONENT */ && isProxy(type)) { type = toRaw(type); @@ -9466,7 +9359,7 @@ export default function vueFactory(exports) { appContext: null }; // validate key - if (process.env.NODE_ENV !== 'production' && vnode.key !== vnode.key) { + if (vnode.key !== vnode.key) { warn("VNode created with invalid key (NaN). VNode type:", vnode.type); } @@ -9515,7 +9408,7 @@ export default function vueFactory(exports) { mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps) : ref, scopeId: vnode.scopeId, slotScopeIds: vnode.slotScopeIds, - children: process.env.NODE_ENV !== 'production' && patchFlag === -1 + children: patchFlag === -1 /* HOISTED */ && isArray(children) ? children.map(deepCloneVNode) : children, target: vnode.target, @@ -9750,7 +9643,7 @@ export default function vueFactory(exports) { ret[i] = renderItem(source[i], i); } } else if (typeof source === 'number') { - if (process.env.NODE_ENV !== 'production' && !Number.isInteger(source)) { + if (!Number.isInteger(source)) { warn("The v-for range expect an integer value but got ".concat(source, ".")); return []; } @@ -9811,7 +9704,7 @@ export default function vueFactory(exports) { fallback, noSlotted) { var slot = slots[name]; - if (process.env.NODE_ENV !== 'production' && slot && slot.length > 1) { + if (slot && slot.length > 1) { warn("SSR-optimized slot function detected in a non-SSR-optimized render " + "function. You need to mark this component with $dynamic-slots in the " + "parent template."); slot = () => []; @@ -9865,7 +9758,7 @@ export default function vueFactory(exports) { function toHandlers(obj) { var ret = {}; - if (process.env.NODE_ENV !== 'production' && !isObject(obj)) { + if (!isObject(obj)) { warn("v-on with no argument expects an object value."); return ret; } @@ -9893,10 +9786,10 @@ export default function vueFactory(exports) { $: i => i, $el: i => i.vnode.el, $data: i => i.data, - $props: i => process.env.NODE_ENV !== 'production' ? shallowReadonly(i.props) : i.props, - $attrs: i => process.env.NODE_ENV !== 'production' ? shallowReadonly(i.attrs) : i.attrs, - $slots: i => process.env.NODE_ENV !== 'production' ? shallowReadonly(i.slots) : i.slots, - $refs: i => process.env.NODE_ENV !== 'production' ? shallowReadonly(i.refs) : i.refs, + $props: i => shallowReadonly(i.props), + $attrs: i => shallowReadonly(i.attrs), + $slots: i => shallowReadonly(i.slots), + $refs: i => shallowReadonly(i.refs), $parent: i => getPublicInstance(i.parent), $root: i => getPublicInstance(i.root), $emit: i => i.emit, @@ -9919,7 +9812,7 @@ export default function vueFactory(exports) { appContext } = instance; // for internal formatters to know that this is a Vue instance - if (process.env.NODE_ENV !== 'production' && key === '__isVue') { + if (key === '__isVue') { return true; } // prioritize <script setup> bindings during dev. // this allows even properties that start with _ or $ to be used - so that @@ -9927,7 +9820,7 @@ export default function vueFactory(exports) { // indeed has access to all declared variables. - if (process.env.NODE_ENV !== 'production' && setupState !== EMPTY_OBJ && setupState.__isScriptSetup && hasOwn(setupState, key)) { + if (setupState !== EMPTY_OBJ && setupState.__isScriptSetup && hasOwn(setupState, key)) { return setupState[key]; } // data / props / ctx // This getter gets called for every property access on the render context @@ -10002,7 +9895,7 @@ export default function vueFactory(exports) { track(instance, "get" /* GET */ , key); - process.env.NODE_ENV !== 'production' && markAttrsAccessed(); + markAttrsAccessed(); } return publicGetter(instance); @@ -10019,7 +9912,7 @@ export default function vueFactory(exports) { { return globalProperties[key]; } - } else if (process.env.NODE_ENV !== 'production' && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading + } else if (currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading // to infinite warning loop key.indexOf('__v') !== 0)) { if (data !== EMPTY_OBJ && (key[0] === '$' || key[0] === '_') && hasOwn(data, key)) { @@ -10044,15 +9937,15 @@ export default function vueFactory(exports) { } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { data[key] = value; } else if (hasOwn(instance.props, key)) { - process.env.NODE_ENV !== 'production' && warn("Attempting to mutate prop \"".concat(key, "\". Props are readonly."), instance); + warn("Attempting to mutate prop \"".concat(key, "\". Props are readonly."), instance); return false; } if (key[0] === '$' && key.slice(1) in instance) { - process.env.NODE_ENV !== 'production' && warn("Attempting to mutate public property \"".concat(key, "\". ") + "Properties starting with $ are reserved and readonly.", instance); + warn("Attempting to mutate public property \"".concat(key, "\". ") + "Properties starting with $ are reserved and readonly.", instance); return false; } else { - if (process.env.NODE_ENV !== 'production' && key in instance.appContext.config.globalProperties) { + if (key in instance.appContext.config.globalProperties) { Object.defineProperty(ctx, key, { enumerable: true, configurable: true, @@ -10081,14 +9974,12 @@ export default function vueFactory(exports) { } }; - - if (process.env.NODE_ENV !== 'production' && !false) { + { PublicInstanceProxyHandlers.ownKeys = target => { warn("Avoid app logic that relies on enumerating keys on a component instance. " + "The keys will be empty in production mode to avoid performance overhead."); return Reflect.ownKeys(target); }; } - var RuntimeCompiledPublicInstanceProxyHandlers = extend({}, PublicInstanceProxyHandlers, { get(target, key) { // fast path for unscopables when using `with` block @@ -10102,7 +9993,7 @@ export default function vueFactory(exports) { has(_, key) { var has = key[0] !== '_' && !isGloballyWhitelisted(key); - if (process.env.NODE_ENV !== 'production' && !has && PublicInstanceProxyHandlers.has(_, key)) { + if (!has && PublicInstanceProxyHandlers.has(_, key)) { warn("Property ".concat(JSON.stringify(key), " should not start with _ which is a reserved prefix for Vue internals.")); } @@ -10248,15 +10139,9 @@ export default function vueFactory(exports) { ec: null, sp: null }; - - if (process.env.NODE_ENV !== 'production') { + { instance.ctx = createRenderContext(instance); - } else { - instance.ctx = { - _: instance - }; } - instance.root = parent ? parent.root : instance; instance.emit = emit.bind(null, instance); return instance; @@ -10304,8 +10189,7 @@ export default function vueFactory(exports) { function setupStatefulComponent(instance, isSSR) { var Component = instance.type; - - if (process.env.NODE_ENV !== 'production') { + { if (Component.name) { validateComponentName(Component.name, instance.appContext.config); } @@ -10331,17 +10215,14 @@ export default function vueFactory(exports) { } } // 0. create render proxy property access cache - instance.accessCache = Object.create(null); // 1. create public instance / render proxy // also mark it raw so it's never observed instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers)); - - if (process.env.NODE_ENV !== 'production') { + { exposePropsOnRenderContext(instance); } // 2. call setup() - var { setup } = Component; @@ -10352,7 +10233,7 @@ export default function vueFactory(exports) { pauseTracking(); var setupResult = callWithErrorHandling(setup, instance, 0 /* SETUP_FUNCTION */ - , [process.env.NODE_ENV !== 'production' ? shallowReadonly(instance.props) : instance.props, setupContext]); + , [shallowReadonly(instance.props), setupContext]); resetTracking(); currentInstance = null; @@ -10392,22 +10273,20 @@ export default function vueFactory(exports) { instance.render = setupResult; } } else if (isObject(setupResult)) { - if (process.env.NODE_ENV !== 'production' && isVNode(setupResult)) { + if (isVNode(setupResult)) { warn("setup() should not return VNodes directly - " + "return a render function instead."); } // setup returned bindings. // assuming a render function compiled from template is present. - if (process.env.NODE_ENV !== 'production' || false) { + { instance.devtoolsRawSetupState = setupResult; } - instance.setupState = proxyRefs(setupResult); - - if (process.env.NODE_ENV !== 'production') { + { exposeSetupStateOnRenderContext(instance); } - } else if (process.env.NODE_ENV !== 'production' && setupResult !== undefined) { + } else if (setupResult !== undefined) { warn("setup() should return an object. Received: ".concat(setupResult === null ? 'null' : typeof setupResult)); } @@ -10436,10 +10315,9 @@ export default function vueFactory(exports) { var template = Component.template; if (template) { - if (process.env.NODE_ENV !== 'production') { + { startMeasure(instance, "compile"); } - var { isCustomElement, compilerOptions @@ -10453,8 +10331,7 @@ export default function vueFactory(exports) { delimiters }, compilerOptions), componentCompilerOptions); Component.render = compile(template, finalCompilerOptions); - - if (process.env.NODE_ENV !== 'production') { + { endMeasure(instance, "compile"); } } @@ -10479,7 +10356,7 @@ export default function vueFactory(exports) { } // warn missing template/render // the runtime compilation of template in SSR is done by server-render - if (process.env.NODE_ENV !== 'production' && !Component.render && instance.render === NOOP && !isSSR) { + if (!Component.render && instance.render === NOOP && !isSSR) { /* istanbul ignore if */ if (!compile && Component.template) { warn("Component provided template option but " + "runtime compilation is not supported in this build of Vue." + " Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\"." @@ -10508,14 +10385,14 @@ export default function vueFactory(exports) { function createSetupContext(instance) { var expose = exposed => { - if (process.env.NODE_ENV !== 'production' && instance.exposed) { + if (instance.exposed) { warn("expose() should be called only once per setup()."); } instance.exposed = exposed || {}; }; - if (process.env.NODE_ENV !== 'production') { + { var attrs; // We use getters in dev in case libs like test-utils overwrite instance // properties (overwrites should not be done in prod) @@ -10534,13 +10411,6 @@ export default function vueFactory(exports) { expose }); - } else { - return { - attrs: instance.attrs, - slots: instance.slots, - emit: instance.emit, - expose - }; } } @@ -10619,19 +10489,17 @@ export default function vueFactory(exports) { function defineProps() { - if (process.env.NODE_ENV !== 'production') { + { warnRuntimeUsage("defineProps"); } - return null; } // implementation function defineEmits() { - if (process.env.NODE_ENV !== 'production') { + { warnRuntimeUsage("defineEmits"); } - return null; } /** @@ -10654,7 +10522,7 @@ export default function vueFactory(exports) { */ function defineExpose(exposed) { - if (process.env.NODE_ENV !== 'production') { + { warnRuntimeUsage("defineExpose"); } } @@ -10679,10 +10547,9 @@ export default function vueFactory(exports) { function withDefaults(props, defaults) { - if (process.env.NODE_ENV !== 'production') { + { warnRuntimeUsage("withDefaults"); } - return null; } /** @@ -10691,10 +10558,9 @@ export default function vueFactory(exports) { function useContext() { - if (process.env.NODE_ENV !== 'production') { + { warn("`useContext()` has been deprecated and will be removed in the " + "next minor release. Use `useSlots()` and `useAttrs()` instead."); } - return getContext(); } @@ -10709,7 +10575,7 @@ export default function vueFactory(exports) { function getContext() { var i = getCurrentInstance(); - if (process.env.NODE_ENV !== 'production' && !i) { + if (!i) { warn("useContext() called without active instance."); } @@ -10733,7 +10599,7 @@ export default function vueFactory(exports) { props[key] = { default: defaults[key] }; - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("props default key \"".concat(key, "\" has no corresponding declaration.")); } } @@ -10750,7 +10616,7 @@ export default function vueFactory(exports) { var ctx = getCurrentInstance(); setCurrentInstance(null); // unset after storing instance - if (process.env.NODE_ENV !== 'production' && !ctx) { + if (!ctx) { warn("withAsyncContext() called when there is no active context instance."); } @@ -10791,7 +10657,7 @@ export default function vueFactory(exports) { } } - var ssrContextKey = Symbol(process.env.NODE_ENV !== 'production' ? "ssrContext" : ""); + var ssrContextKey = Symbol("ssrContext"); var useSSRContext = () => { { @@ -10807,7 +10673,7 @@ export default function vueFactory(exports) { function initCustomFormatter() { /* eslint-disable no-restricted-globals */ - if (!(process.env.NODE_ENV !== 'production') || typeof window === 'undefined') { + if (typeof window === 'undefined') { return; } @@ -11316,21 +11182,21 @@ export default function vueFactory(exports) { var instance = getCurrentInstance(); if (!instance) { - process.env.NODE_ENV !== 'production' && warn("useCssModule must be called inside setup()"); + warn("useCssModule must be called inside setup()"); return EMPTY_OBJ; } var modules = instance.type.__cssModules; if (!modules) { - process.env.NODE_ENV !== 'production' && warn("Current instance does not have CSS modules injected."); + warn("Current instance does not have CSS modules injected."); return EMPTY_OBJ; } var mod = modules[name]; if (!mod) { - process.env.NODE_ENV !== 'production' && warn("Current instance does not have CSS module named \"".concat(name, "\".")); + warn("Current instance does not have CSS module named \"".concat(name, "\".")); return EMPTY_OBJ; } @@ -11348,7 +11214,7 @@ export default function vueFactory(exports) { /* istanbul ignore next */ if (!instance) { - process.env.NODE_ENV !== 'production' && warn("useCssVars is called without current active component instance."); + warn("useCssVars is called without current active component instance."); return; } @@ -11578,7 +11444,7 @@ export default function vueFactory(exports) { function NumberOf(val) { var res = toNumber(val); - if (process.env.NODE_ENV !== 'production') validateDuration(res); + validateDuration(res); return res; } @@ -11795,7 +11661,7 @@ export default function vueFactory(exports) { if (child.key != null) { setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance)); - } else if (process.env.NODE_ENV !== 'production') { + } else { warn("<TransitionGroup> children must be keyed."); } } @@ -12025,11 +11891,9 @@ export default function vueFactory(exports) { var createApp = (...args) => { var app = ensureRenderer().createApp(...args); - - if (process.env.NODE_ENV !== 'production') { + { injectNativeTagCheck(app); } - var { mount } = app; diff --git a/packages/uni-app-vue/dist/service.runtime.esm.prod.js b/packages/uni-app-vue/dist/service.runtime.esm.prod.js new file mode 100644 index 00000000000..094775741b6 --- /dev/null +++ b/packages/uni-app-vue/dist/service.runtime.esm.prod.js @@ -0,0 +1,10373 @@ +export default function vueFactory(exports) { + /** + * Make a map and return a function for checking if a key + * is in that map. + * IMPORTANT: all calls of this function must be prefixed with + * \/\*#\_\_PURE\_\_\*\/ + * So that rollup can tree-shake them if necessary. + */ + var extend$1 = Object.assign; + + var cacheStringFunction$1 = fn => { + var cache = Object.create(null); + return str => { + var hit = cache[str]; + return hit || (cache[str] = fn(str)); + }; + }; + + var camelizeRE$1 = /-(\w)/g; + /** + * @private + */ + + var camelize$1 = cacheStringFunction$1(str => { + return str.replace(camelizeRE$1, (_, c) => c ? c.toUpperCase() : ''); + }); + var hyphenateRE$1 = /\B([A-Z])/g; + /** + * @private + */ + + var hyphenate$1 = cacheStringFunction$1(str => str.replace(hyphenateRE$1, '-$1').toLowerCase()); + /** + * @private + */ + + var capitalize$1 = cacheStringFunction$1(str => str.charAt(0).toUpperCase() + str.slice(1)); + + function isElement(el) { + // Element + return el.nodeType === 1; + } + + function resolveOwnerEl(instance) { + var { + vnode + } = instance; + + if (isElement(vnode.el)) { + return vnode.el; + } + + var { + subTree + } = instance; // ShapeFlags.ARRAY_CHILDREN = 1<<4 + + if (subTree.shapeFlag & 16) { + var elemVNode = subTree.children.find(vnode => isElement(vnode.el)); + + if (elemVNode) { + return elemVNode.el; + } + } + + return vnode.el; + } + + class DOMException extends Error { + constructor(message) { + super(message); + this.name = 'DOMException'; + } + + } + + function normalizeEventType(type, options) { + if (options) { + if (options.capture) { + type += 'Capture'; + } + + if (options.once) { + type += 'Once'; + } + + if (options.passive) { + type += 'Passive'; + } + } + + return "on".concat(capitalize$1(camelize$1(type))); + } + + class UniEvent { + constructor(type, opts) { + this.defaultPrevented = false; + this.timeStamp = Date.now(); + this._stop = false; + this._end = false; + this.type = type; + this.bubbles = !!opts.bubbles; + this.cancelable = !!opts.cancelable; + } + + preventDefault() { + this.defaultPrevented = true; + } + + stopImmediatePropagation() { + this._end = this._stop = true; + } + + stopPropagation() { + this._stop = true; + } + + } + + function createUniEvent(evt) { + if (evt instanceof UniEvent) { + return evt; + } + + var [type] = parseEventName(evt.type); + var uniEvent = new UniEvent(type, { + bubbles: false, + cancelable: false + }); + extend$1(uniEvent, evt); + return uniEvent; + } + + class UniEventTarget { + constructor() { + this.listeners = Object.create(null); + } + + dispatchEvent(evt) { + var listeners = this.listeners[evt.type]; + + if (!listeners) { + return false; + } // 格式化事件类型 + + + var event = createUniEvent(evt); + var len = listeners.length; + + for (var i = 0; i < len; i++) { + listeners[i].call(this, event); + + if (event._end) { + break; + } + } + + return event.cancelable && event.defaultPrevented; + } + + addEventListener(type, listener, options) { + type = normalizeEventType(type, options); + (this.listeners[type] || (this.listeners[type] = [])).push(listener); + } + + removeEventListener(type, callback, options) { + type = normalizeEventType(type, options); + var listeners = this.listeners[type]; + + if (!listeners) { + return; + } + + var index = listeners.indexOf(callback); + + if (index > -1) { + listeners.splice(index, 1); + } + } + + } + + var optionsModifierRE$1 = /(?:Once|Passive|Capture)$/; + + function parseEventName(name) { + var options; + + if (optionsModifierRE$1.test(name)) { + options = {}; + var m; + + while (m = name.match(optionsModifierRE$1)) { + name = name.slice(0, name.length - m[0].length); + options[m[0].toLowerCase()] = true; + } + } + + return [hyphenate$1(name.slice(2)), options]; + } + + var EventModifierFlags = { + stop: 1, + prevent: 1 << 1, + self: 1 << 2 + }; + + function encodeModifier(modifiers) { + var flag = 0; + + if (modifiers.includes('stop')) { + flag |= EventModifierFlags.stop; + } + + if (modifiers.includes('prevent')) { + flag |= EventModifierFlags.prevent; + } + + if (modifiers.includes('self')) { + flag |= EventModifierFlags.self; + } + + return flag; + } + + var NODE_TYPE_ELEMENT = 1; + var NODE_TYPE_TEXT = 3; + var NODE_TYPE_COMMENT = 8; + + function sibling(node, type) { + var { + parentNode + } = node; + + if (!parentNode) { + return null; + } + + var { + childNodes + } = parentNode; + return childNodes[childNodes.indexOf(node) + (type === 'n' ? 1 : -1)] || null; + } + + function removeNode(node) { + var { + parentNode + } = node; + + if (parentNode) { + parentNode.removeChild(node); + } + } + + function checkNodeId(node) { + if (!node.nodeId && node.pageNode) { + node.nodeId = node.pageNode.genId(); + } + } // 为优化性能,各平台不使用proxy来实现node的操作拦截,而是直接通过pageNode定制 + + + class UniNode extends UniEventTarget { + constructor(nodeType, nodeName, container) { + super(); + this.pageNode = null; + this.parentNode = null; + this._text = null; + + if (container) { + var { + pageNode + } = container; + + if (pageNode) { + this.pageNode = pageNode; + this.nodeId = pageNode.genId(); + !pageNode.isUnmounted && pageNode.onCreate(this, nodeName); + } + } + + this.nodeType = nodeType; + this.nodeName = nodeName; + this.childNodes = []; + } + + get firstChild() { + return this.childNodes[0] || null; + } + + get lastChild() { + var { + childNodes + } = this; + var length = childNodes.length; + return length ? childNodes[length - 1] : null; + } + + get nextSibling() { + return sibling(this, 'n'); + } + + get nodeValue() { + return null; + } + + set nodeValue(_val) {} + + get textContent() { + return this._text || ''; + } + + set textContent(text) { + this._text = text; + + if (this.pageNode && !this.pageNode.isUnmounted) { + this.pageNode.onTextContent(this, text); + } + } + + get parentElement() { + var { + parentNode + } = this; + + if (parentNode && parentNode.nodeType === NODE_TYPE_ELEMENT) { + return parentNode; + } + + return null; + } + + get previousSibling() { + return sibling(this, 'p'); + } + + appendChild(newChild) { + return this.insertBefore(newChild, null); + } + + cloneNode(deep) { + var cloned = extend$1(Object.create(Object.getPrototypeOf(this)), this); + var { + attributes + } = cloned; + + if (attributes) { + cloned.attributes = extend$1({}, attributes); + } + + if (deep) { + cloned.childNodes = cloned.childNodes.map(childNode => childNode.cloneNode(true)); + } + + return cloned; + } + + insertBefore(newChild, refChild) { + removeNode(newChild); + newChild.pageNode = this.pageNode; + newChild.parentNode = this; + checkNodeId(newChild); + var { + childNodes + } = this; + + if (refChild) { + var index = childNodes.indexOf(refChild); + + if (index === -1) { + throw new DOMException("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node."); + } + + childNodes.splice(index, 0, newChild); + } else { + childNodes.push(newChild); + } + + return this.pageNode && !this.pageNode.isUnmounted ? this.pageNode.onInsertBefore(this, newChild, refChild) : newChild; + } + + removeChild(oldChild) { + var { + childNodes + } = this; + var index = childNodes.indexOf(oldChild); + + if (index === -1) { + throw new DOMException("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node."); + } + + oldChild.parentNode = null; + childNodes.splice(index, 1); + return this.pageNode && !this.pageNode.isUnmounted ? this.pageNode.onRemoveChild(oldChild) : oldChild; + } + + } + + var ATTR_CLASS = 'class'; + var ATTR_STYLE = 'style'; + var ATTR_V_OWNER_ID = '.vOwnerId'; + var ATTR_V_RENDERJS = '.vRenderjs'; + + class UniBaseNode extends UniNode { + constructor(nodeType, nodeName, container) { + super(nodeType, nodeName, container); + this.attributes = Object.create(null); + this.style = null; + this.vShow = null; + this._html = null; + } + + get className() { + return this.attributes[ATTR_CLASS] || ''; + } + + set className(val) { + this.setAttribute(ATTR_CLASS, val); + } + + get innerHTML() { + return ''; + } + + set innerHTML(html) { + this._html = html; + } + + addEventListener(type, listener, options) { + super.addEventListener(type, listener, options); + + if (this.pageNode && !this.pageNode.isUnmounted) { + if (listener.wxsEvent) { + this.pageNode.onAddWxsEvent(this, normalizeEventType(type, options), listener.wxsEvent, encodeModifier(listener.modifiers || [])); + } else { + this.pageNode.onAddEvent(this, normalizeEventType(type, options), encodeModifier(listener.modifiers || [])); + } + } + } + + removeEventListener(type, callback, options) { + super.removeEventListener(type, callback, options); + + if (this.pageNode && !this.pageNode.isUnmounted) { + this.pageNode.onRemoveEvent(this, normalizeEventType(type, options)); + } + } + + getAttribute(qualifiedName) { + if (qualifiedName === ATTR_STYLE) { + return this.style; + } + + return this.attributes[qualifiedName]; + } + + removeAttribute(qualifiedName) { + if (qualifiedName == ATTR_STYLE) { + this.style = null; + } else { + delete this.attributes[qualifiedName]; + } + + if (this.pageNode && !this.pageNode.isUnmounted) { + this.pageNode.onRemoveAttribute(this, qualifiedName); + } + } + + setAttribute(qualifiedName, value) { + if (qualifiedName === ATTR_STYLE) { + this.style = value; + } else { + this.attributes[qualifiedName] = value; + } + + if (this.pageNode && !this.pageNode.isUnmounted) { + this.pageNode.onSetAttribute(this, qualifiedName, value); + } + } + + toJSON({ + attr, + normalize + } = {}) { + var { + attributes, + style, + listeners, + _text + } = this; + var res = {}; + + if (Object.keys(attributes).length) { + res.a = normalize ? normalize(attributes) : attributes; + } + + var events = Object.keys(listeners); + + if (events.length) { + var w = undefined; + var e = {}; + events.forEach(name => { + var handlers = listeners[name]; + + if (handlers.length) { + // 可能存在多个 handler 且不同 modifiers 吗? + var { + wxsEvent, + modifiers + } = handlers[0]; + var modifier = encodeModifier(modifiers || []); + + if (!wxsEvent) { + e[name] = modifier; + } else { + if (!w) { + w = {}; + } + + w[name] = [normalize ? normalize(wxsEvent) : wxsEvent, modifier]; + } + } + }); + res.e = normalize ? normalize(e, false) : e; + + if (w) { + res.w = normalize ? normalize(w, false) : w; + } + } + + if (style !== null) { + res.s = normalize ? normalize(style) : style; + } + + if (!attr) { + res.i = this.nodeId; + res.n = this.nodeName; + } + + if (_text !== null) { + res.t = normalize ? normalize(_text) : _text; + } + + return res; + } + + } + + class UniCommentNode extends UniNode { + constructor(text, container) { + super(NODE_TYPE_COMMENT, '#comment', container); + this._text = ''; + } + + toJSON(opts = {}) { + // 暂时不传递 text 到 view 层,没啥意义,节省点数据量 + return opts.attr ? {} : { + i: this.nodeId + }; // return opts.attr + // ? { t: this._text as string } + // : { + // i: this.nodeId!, + // t: this._text as string, + // } + } + + } + + class UniElement extends UniBaseNode { + constructor(nodeName, container) { + super(NODE_TYPE_ELEMENT, nodeName.toUpperCase(), container); + this.tagName = this.nodeName; + } + + } + + class UniInputElement extends UniElement { + get value() { + return this.getAttribute('value'); + } + + set value(val) { + this.setAttribute('value', val); + } + + } + + class UniTextAreaElement extends UniInputElement {} + + class UniTextNode extends UniBaseNode { + constructor(text, container) { + super(NODE_TYPE_TEXT, '#text', container); + this._text = text; + } + + get nodeValue() { + return this._text || ''; + } + + set nodeValue(text) { + this._text = text; + + if (this.pageNode && !this.pageNode.isUnmounted) { + this.pageNode.onNodeValue(this, text); + } + } + + } + + var JSON_PROTOCOL = 'json://'; + var ON_BACK_PRESS = 'onBackPress'; + var ON_PAGE_SCROLL = 'onPageScroll'; + var ON_TAB_ITEM_TAP = 'onTabItemTap'; + var ON_REACH_BOTTOM = 'onReachBottom'; + var ON_PULL_DOWN_REFRESH = 'onPullDownRefresh'; + var PAGE_HOOKS = [ON_BACK_PRESS, ON_PAGE_SCROLL, ON_TAB_ITEM_TAP, ON_REACH_BOTTOM, ON_PULL_DOWN_REFRESH]; + + function isRootHook(name) { + return PAGE_HOOKS.indexOf(name) > -1; + } + /** + * Make a map and return a function for checking if a key + * is in that map. + * IMPORTANT: all calls of this function must be prefixed with + * \/\*#\_\_PURE\_\_\*\/ + * So that rollup can tree-shake them if necessary. + */ + + + function makeMap(str, expectsLowerCase) { + var map = Object.create(null); + var list = str.split(','); + + for (var i = 0; i < list.length; i++) { + map[list[i]] = true; + } + + return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val]; + } + + var GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' + 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' + 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt'; + var isGloballyWhitelisted = /*#__PURE__*/makeMap(GLOBALS_WHITE_LISTED); + + function normalizeStyle(value) { + if (isArray(value)) { + var res = {}; + + for (var i = 0; i < value.length; i++) { + var item = value[i]; + var normalized = normalizeStyle(isString(item) ? parseStringStyle(item) : item); + + if (normalized) { + for (var key in normalized) { + res[key] = normalized[key]; + } + } + } + + return res; + } else if (isObject(value)) { + return value; + } + } + + var listDelimiterRE = /;(?![^(]*\))/g; + var propertyDelimiterRE = /:(.+)/; + + function parseStringStyle(cssText) { + var ret = {}; + cssText.split(listDelimiterRE).forEach(item => { + if (item) { + var tmp = item.split(propertyDelimiterRE); + tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); + } + }); + return ret; + } + + function normalizeClass(value) { + var res = ''; + + if (isString(value)) { + res = value; + } else if (isArray(value)) { + for (var i = 0; i < value.length; i++) { + var normalized = normalizeClass(value[i]); + + if (normalized) { + res += normalized + ' '; + } + } + } else if (isObject(value)) { + for (var name in value) { + if (value[name]) { + res += name + ' '; + } + } + } + + return res.trim(); + } + /** + * For converting {{ interpolation }} values to displayed strings. + * @private + */ + + + var toDisplayString = val => { + return val == null ? '' : isObject(val) ? JSON.stringify(val, replacer, 2) : String(val); + }; + + var replacer = (_key, val) => { + if (isMap(val)) { + return { + ["Map(".concat(val.size, ")")]: [...val.entries()].reduce((entries, [key, val]) => { + entries["".concat(key, " =>")] = val; + return entries; + }, {}) + }; + } else if (isSet(val)) { + return { + ["Set(".concat(val.size, ")")]: [...val.values()] + }; + } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) { + return String(val); + } + + return val; + }; + + var EMPTY_OBJ = {}; + var EMPTY_ARR = []; + + var NOOP = () => {}; + /** + * Always return false. + */ + + + var NO = () => false; + + var onRE = /^on[^a-z]/; + + var isOn = key => onRE.test(key); + + var isModelListener = key => key.startsWith('onUpdate:'); + + var extend = Object.assign; + + var remove = (arr, el) => { + var i = arr.indexOf(el); + + if (i > -1) { + arr.splice(i, 1); + } + }; + + var hasOwnProperty = Object.prototype.hasOwnProperty; + + var hasOwn = (val, key) => hasOwnProperty.call(val, key); + + var isArray = Array.isArray; + + var isMap = val => toTypeString(val) === '[object Map]'; + + var isSet = val => toTypeString(val) === '[object Set]'; + + var isFunction = val => typeof val === 'function'; + + var isString = val => typeof val === 'string'; + + var isSymbol = val => typeof val === 'symbol'; + + var isObject = val => val !== null && typeof val === 'object'; + + var isPromise = val => { + return isObject(val) && isFunction(val.then) && isFunction(val.catch); + }; + + var objectToString = Object.prototype.toString; + + var toTypeString = value => objectToString.call(value); + + var toRawType = value => { + // extract "RawType" from strings like "[object RawType]" + return toTypeString(value).slice(8, -1); + }; + + var isPlainObject = val => toTypeString(val) === '[object Object]'; + + var isIntegerKey = key => isString(key) && key !== 'NaN' && key[0] !== '-' && '' + parseInt(key, 10) === key; + + var isReservedProp = /*#__PURE__*/makeMap( // the leading comma is intentional so empty string "" is also included + ',key,ref,' + 'onVnodeBeforeMount,onVnodeMounted,' + 'onVnodeBeforeUpdate,onVnodeUpdated,' + 'onVnodeBeforeUnmount,onVnodeUnmounted'); + + var cacheStringFunction = fn => { + var cache = Object.create(null); + return str => { + var hit = cache[str]; + return hit || (cache[str] = fn(str)); + }; + }; + + var camelizeRE = /-(\w)/g; + /** + * @private + */ + + var camelize = cacheStringFunction(str => { + return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : ''); + }); + var hyphenateRE = /\B([A-Z])/g; + /** + * @private + */ + + var hyphenate = cacheStringFunction(str => str.replace(hyphenateRE, '-$1').toLowerCase()); + /** + * @private + */ + + var capitalize = cacheStringFunction(str => str.charAt(0).toUpperCase() + str.slice(1)); + /** + * @private + */ + + var toHandlerKey = cacheStringFunction(str => str ? "on".concat(capitalize(str)) : ""); // compare whether a value has changed, accounting for NaN. + + var hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue); + + var invokeArrayFns = (fns, arg) => { + for (var i = 0; i < fns.length; i++) { + fns[i](arg); + } + }; + + var def = (obj, key, value) => { + Object.defineProperty(obj, key, { + configurable: true, + enumerable: false, + value + }); + }; + + var toNumber = val => { + var n = parseFloat(val); + return isNaN(n) ? val : n; + }; + + var targetMap = new WeakMap(); + var effectStack = []; + var activeEffect; + var ITERATE_KEY = Symbol(''); + var MAP_KEY_ITERATE_KEY = Symbol(''); + + function isEffect(fn) { + return fn && fn._isEffect === true; + } + + function effect(fn, options = EMPTY_OBJ) { + if (isEffect(fn)) { + fn = fn.raw; + } + + var effect = createReactiveEffect(fn, options); + + if (!options.lazy) { + effect(); + } + + return effect; + } + + function stop(effect) { + if (effect.active) { + cleanup(effect); + + if (effect.options.onStop) { + effect.options.onStop(); + } + + effect.active = false; + } + } + + var uid = 0; + + function createReactiveEffect(fn, options) { + var effect = function reactiveEffect() { + if (!effect.active) { + return fn(); + } + + if (!effectStack.includes(effect)) { + cleanup(effect); + + try { + enableTracking(); + effectStack.push(effect); + activeEffect = effect; + return fn(); + } finally { + effectStack.pop(); + resetTracking(); + activeEffect = effectStack[effectStack.length - 1]; + } + } + }; + + effect.id = uid++; + effect.allowRecurse = !!options.allowRecurse; + effect._isEffect = true; + effect.active = true; + effect.raw = fn; + effect.deps = []; + effect.options = options; + return effect; + } + + function cleanup(effect) { + var { + deps + } = effect; + + if (deps.length) { + for (var i = 0; i < deps.length; i++) { + deps[i].delete(effect); + } + + deps.length = 0; + } + } + + var shouldTrack = true; + var trackStack = []; + + function pauseTracking() { + trackStack.push(shouldTrack); + shouldTrack = false; + } + + function enableTracking() { + trackStack.push(shouldTrack); + shouldTrack = true; + } + + function resetTracking() { + var last = trackStack.pop(); + shouldTrack = last === undefined ? true : last; + } + + function track(target, type, key) { + if (!shouldTrack || activeEffect === undefined) { + return; + } + + var depsMap = targetMap.get(target); + + if (!depsMap) { + targetMap.set(target, depsMap = new Map()); + } + + var dep = depsMap.get(key); + + if (!dep) { + depsMap.set(key, dep = new Set()); + } + + if (!dep.has(activeEffect)) { + dep.add(activeEffect); + activeEffect.deps.push(dep); + } + } + + function trigger(target, type, key, newValue, oldValue, oldTarget) { + var depsMap = targetMap.get(target); + + if (!depsMap) { + // never been tracked + return; + } + + var effects = new Set(); + + var add = effectsToAdd => { + if (effectsToAdd) { + effectsToAdd.forEach(effect => { + if (effect !== activeEffect || effect.allowRecurse) { + effects.add(effect); + } + }); + } + }; + + if (type === "clear" + /* CLEAR */ + ) { + // collection being cleared + // trigger all effects for target + depsMap.forEach(add); + } else if (key === 'length' && isArray(target)) { + depsMap.forEach((dep, key) => { + if (key === 'length' || key >= newValue) { + add(dep); + } + }); + } else { + // schedule runs for SET | ADD | DELETE + if (key !== void 0) { + add(depsMap.get(key)); + } // also run for iteration key on ADD | DELETE | Map.SET + + + switch (type) { + case "add" + /* ADD */ + : + if (!isArray(target)) { + add(depsMap.get(ITERATE_KEY)); + + if (isMap(target)) { + add(depsMap.get(MAP_KEY_ITERATE_KEY)); + } + } else if (isIntegerKey(key)) { + // new index added to array -> length changes + add(depsMap.get('length')); + } + + break; + + case "delete" + /* DELETE */ + : + if (!isArray(target)) { + add(depsMap.get(ITERATE_KEY)); + + if (isMap(target)) { + add(depsMap.get(MAP_KEY_ITERATE_KEY)); + } + } + + break; + + case "set" + /* SET */ + : + if (isMap(target)) { + add(depsMap.get(ITERATE_KEY)); + } + + break; + } + } + + var run = effect => { + if (effect.options.scheduler) { + effect.options.scheduler(effect); + } else { + effect(); + } + }; + + effects.forEach(run); + } + + var isNonTrackableKeys = /*#__PURE__*/makeMap("__proto__,__v_isRef,__isVue"); + var builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map(key => Symbol[key]).filter(isSymbol)); + var get = /*#__PURE__*/createGetter(); + var shallowGet = /*#__PURE__*/createGetter(false, true); + var readonlyGet = /*#__PURE__*/createGetter(true); + var shallowReadonlyGet = /*#__PURE__*/createGetter(true, true); + var arrayInstrumentations = /*#__PURE__*/createArrayInstrumentations(); + + function createArrayInstrumentations() { + var instrumentations = {}; + ['includes', 'indexOf', 'lastIndexOf'].forEach(key => { + var method = Array.prototype[key]; + + instrumentations[key] = function (...args) { + var arr = toRaw(this); + + for (var i = 0, l = this.length; i < l; i++) { + track(arr, "get" + /* GET */ + , i + ''); + } // we run the method using the original args first (which may be reactive) + + + var res = method.apply(arr, args); + + if (res === -1 || res === false) { + // if that didn't work, run it again using raw values. + return method.apply(arr, args.map(toRaw)); + } else { + return res; + } + }; + }); + ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => { + var method = Array.prototype[key]; + + instrumentations[key] = function (...args) { + pauseTracking(); + var res = method.apply(this, args); + resetTracking(); + return res; + }; + }); + return instrumentations; + } + + function createGetter(isReadonly = false, shallow = false) { + return function get(target, key, receiver) { + if (key === "__v_isReactive" + /* IS_REACTIVE */ + ) { + return !isReadonly; + } else if (key === "__v_isReadonly" + /* IS_READONLY */ + ) { + return isReadonly; + } else if (key === "__v_raw" + /* RAW */ + && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) { + return target; + } + + var targetIsArray = isArray(target); + + if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) { + return Reflect.get(arrayInstrumentations, key, receiver); + } + + var res = Reflect.get(target, key, receiver); + + if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) { + return res; + } + + if (!isReadonly) { + track(target, "get" + /* GET */ + , key); + } + + if (shallow) { + return res; + } + + if (isRef(res)) { + // ref unwrapping - does not apply for Array + integer key. + var shouldUnwrap = !targetIsArray || !isIntegerKey(key); + return shouldUnwrap ? res.value : res; + } + + if (isObject(res)) { + // Convert returned value into a proxy as well. we do the isObject check + // here to avoid invalid value warning. Also need to lazy access readonly + // and reactive here to avoid circular dependency. + return isReadonly ? readonly(res) : reactive(res); + } + + return res; + }; + } + + var set = /*#__PURE__*/createSetter(); + var shallowSet = /*#__PURE__*/createSetter(true); + + function createSetter(shallow = false) { + return function set(target, key, value, receiver) { + var oldValue = target[key]; + + if (!shallow) { + value = toRaw(value); + oldValue = toRaw(oldValue); + + if (!isArray(target) && isRef(oldValue) && !isRef(value)) { + oldValue.value = value; + return true; + } + } + + var hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key); + var result = Reflect.set(target, key, value, receiver); // don't trigger if target is something up in the prototype chain of original + + if (target === toRaw(receiver)) { + if (!hadKey) { + trigger(target, "add" + /* ADD */ + , key, value); + } else if (hasChanged(value, oldValue)) { + trigger(target, "set" + /* SET */ + , key, value); + } + } + + return result; + }; + } + + function deleteProperty(target, key) { + var hadKey = hasOwn(target, key); + target[key]; + var result = Reflect.deleteProperty(target, key); + + if (result && hadKey) { + trigger(target, "delete" + /* DELETE */ + , key, undefined); + } + + return result; + } + + function has(target, key) { + var result = Reflect.has(target, key); + + if (!isSymbol(key) || !builtInSymbols.has(key)) { + track(target, "has" + /* HAS */ + , key); + } + + return result; + } + + function ownKeys(target) { + track(target, "iterate" + /* ITERATE */ + , isArray(target) ? 'length' : ITERATE_KEY); + return Reflect.ownKeys(target); + } + + var mutableHandlers = { + get, + set, + deleteProperty, + has, + ownKeys + }; + var readonlyHandlers = { + get: readonlyGet, + + set(target, key) { + return true; + }, + + deleteProperty(target, key) { + return true; + } + + }; + var shallowReactiveHandlers = /*#__PURE__*/extend({}, mutableHandlers, { + get: shallowGet, + set: shallowSet + }); // Props handlers are special in the sense that it should not unwrap top-level + // refs (in order to allow refs to be explicitly passed down), but should + // retain the reactivity of the normal readonly object. + + var shallowReadonlyHandlers = /*#__PURE__*/extend({}, readonlyHandlers, { + get: shallowReadonlyGet + }); + + var toReactive = value => isObject(value) ? reactive(value) : value; + + var toReadonly = value => isObject(value) ? readonly(value) : value; + + var toShallow = value => value; + + var getProto = v => Reflect.getPrototypeOf(v); + + function get$1(target, key, isReadonly = false, isShallow = false) { + // #1772: readonly(reactive(Map)) should return readonly + reactive version + // of the value + target = target["__v_raw" + /* RAW */ + ]; + var rawTarget = toRaw(target); + var rawKey = toRaw(key); + + if (key !== rawKey) { + !isReadonly && track(rawTarget, "get" + /* GET */ + , key); + } + + !isReadonly && track(rawTarget, "get" + /* GET */ + , rawKey); + var { + has + } = getProto(rawTarget); + var wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; + + if (has.call(rawTarget, key)) { + return wrap(target.get(key)); + } else if (has.call(rawTarget, rawKey)) { + return wrap(target.get(rawKey)); + } else if (target !== rawTarget) { + // #3602 readonly(reactive(Map)) + // ensure that the nested reactive `Map` can do tracking for itself + target.get(key); + } + } + + function has$1(key, isReadonly = false) { + var target = this["__v_raw" + /* RAW */ + ]; + var rawTarget = toRaw(target); + var rawKey = toRaw(key); + + if (key !== rawKey) { + !isReadonly && track(rawTarget, "has" + /* HAS */ + , key); + } + + !isReadonly && track(rawTarget, "has" + /* HAS */ + , rawKey); + return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey); + } + + function size(target, isReadonly = false) { + target = target["__v_raw" + /* RAW */ + ]; + !isReadonly && track(toRaw(target), "iterate" + /* ITERATE */ + , ITERATE_KEY); + return Reflect.get(target, 'size', target); + } + + function add(value) { + value = toRaw(value); + var target = toRaw(this); + var proto = getProto(target); + var hadKey = proto.has.call(target, value); + + if (!hadKey) { + target.add(value); + trigger(target, "add" + /* ADD */ + , value, value); + } + + return this; + } + + function set$1(key, value) { + value = toRaw(value); + var target = toRaw(this); + var { + has, + get + } = getProto(target); + var hadKey = has.call(target, key); + + if (!hadKey) { + key = toRaw(key); + hadKey = has.call(target, key); + } + + var oldValue = get.call(target, key); + target.set(key, value); + + if (!hadKey) { + trigger(target, "add" + /* ADD */ + , key, value); + } else if (hasChanged(value, oldValue)) { + trigger(target, "set" + /* SET */ + , key, value); + } + + return this; + } + + function deleteEntry(key) { + var target = toRaw(this); + var { + has, + get + } = getProto(target); + var hadKey = has.call(target, key); + + if (!hadKey) { + key = toRaw(key); + hadKey = has.call(target, key); + } + + get ? get.call(target, key) : undefined; // forward the operation before queueing reactions + + var result = target.delete(key); + + if (hadKey) { + trigger(target, "delete" + /* DELETE */ + , key, undefined); + } + + return result; + } + + function clear() { + var target = toRaw(this); + var hadItems = target.size !== 0; // forward the operation before queueing reactions + + var result = target.clear(); + + if (hadItems) { + trigger(target, "clear" + /* CLEAR */ + , undefined, undefined); + } + + return result; + } + + function createForEach(isReadonly, isShallow) { + return function forEach(callback, thisArg) { + var observed = this; + var target = observed["__v_raw" + /* RAW */ + ]; + var rawTarget = toRaw(target); + var wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; + !isReadonly && track(rawTarget, "iterate" + /* ITERATE */ + , ITERATE_KEY); + return target.forEach((value, key) => { + // important: make sure the callback is + // 1. invoked with the reactive map as `this` and 3rd arg + // 2. the value received should be a corresponding reactive/readonly. + return callback.call(thisArg, wrap(value), wrap(key), observed); + }); + }; + } + + function createIterableMethod(method, isReadonly, isShallow) { + return function (...args) { + var target = this["__v_raw" + /* RAW */ + ]; + var rawTarget = toRaw(target); + var targetIsMap = isMap(rawTarget); + var isPair = method === 'entries' || method === Symbol.iterator && targetIsMap; + var isKeyOnly = method === 'keys' && targetIsMap; + var innerIterator = target[method](...args); + var wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; + !isReadonly && track(rawTarget, "iterate" + /* ITERATE */ + , isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY); // return a wrapped iterator which returns observed versions of the + // values emitted from the real iterator + + return { + // iterator protocol + next() { + var { + value, + done + } = innerIterator.next(); + return done ? { + value, + done + } : { + value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), + done + }; + }, + + // iterable protocol + [Symbol.iterator]() { + return this; + } + + }; + }; + } + + function createReadonlyMethod(type) { + return function (...args) { + return type === "delete" + /* DELETE */ + ? false : this; + }; + } + + function createInstrumentations() { + var mutableInstrumentations = { + get(key) { + return get$1(this, key); + }, + + get size() { + return size(this); + }, + + has: has$1, + add, + set: set$1, + delete: deleteEntry, + clear, + forEach: createForEach(false, false) + }; + var shallowInstrumentations = { + get(key) { + return get$1(this, key, false, true); + }, + + get size() { + return size(this); + }, + + has: has$1, + add, + set: set$1, + delete: deleteEntry, + clear, + forEach: createForEach(false, true) + }; + var readonlyInstrumentations = { + get(key) { + return get$1(this, key, true); + }, + + get size() { + return size(this, true); + }, + + has(key) { + return has$1.call(this, key, true); + }, + + add: createReadonlyMethod("add" + /* ADD */ + ), + set: createReadonlyMethod("set" + /* SET */ + ), + delete: createReadonlyMethod("delete" + /* DELETE */ + ), + clear: createReadonlyMethod("clear" + /* CLEAR */ + ), + forEach: createForEach(true, false) + }; + var shallowReadonlyInstrumentations = { + get(key) { + return get$1(this, key, true, true); + }, + + get size() { + return size(this, true); + }, + + has(key) { + return has$1.call(this, key, true); + }, + + add: createReadonlyMethod("add" + /* ADD */ + ), + set: createReadonlyMethod("set" + /* SET */ + ), + delete: createReadonlyMethod("delete" + /* DELETE */ + ), + clear: createReadonlyMethod("clear" + /* CLEAR */ + ), + forEach: createForEach(true, true) + }; + var iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator]; + iteratorMethods.forEach(method => { + mutableInstrumentations[method] = createIterableMethod(method, false, false); + readonlyInstrumentations[method] = createIterableMethod(method, true, false); + shallowInstrumentations[method] = createIterableMethod(method, false, true); + shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true); + }); + return [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations]; + } + + var [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/createInstrumentations(); + + function createInstrumentationGetter(isReadonly, shallow) { + var instrumentations = shallow ? isReadonly ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly ? readonlyInstrumentations : mutableInstrumentations; + return (target, key, receiver) => { + if (key === "__v_isReactive" + /* IS_REACTIVE */ + ) { + return !isReadonly; + } else if (key === "__v_isReadonly" + /* IS_READONLY */ + ) { + return isReadonly; + } else if (key === "__v_raw" + /* RAW */ + ) { + return target; + } + + return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver); + }; + } + + var mutableCollectionHandlers = { + get: /*#__PURE__*/createInstrumentationGetter(false, false) + }; + var shallowCollectionHandlers = { + get: /*#__PURE__*/createInstrumentationGetter(false, true) + }; + var readonlyCollectionHandlers = { + get: /*#__PURE__*/createInstrumentationGetter(true, false) + }; + var shallowReadonlyCollectionHandlers = { + get: /*#__PURE__*/createInstrumentationGetter(true, true) + }; + var reactiveMap = new WeakMap(); + var shallowReactiveMap = new WeakMap(); + var readonlyMap = new WeakMap(); + var shallowReadonlyMap = new WeakMap(); + + function targetTypeMap(rawType) { + switch (rawType) { + case 'Object': + case 'Array': + return 1 + /* COMMON */ + ; + + case 'Map': + case 'Set': + case 'WeakMap': + case 'WeakSet': + return 2 + /* COLLECTION */ + ; + + default: + return 0 + /* INVALID */ + ; + } + } + + function getTargetType(value) { + return value["__v_skip" + /* SKIP */ + ] || !Object.isExtensible(value) ? 0 + /* INVALID */ + : targetTypeMap(toRawType(value)); + } + + function reactive(target) { + // if trying to observe a readonly proxy, return the readonly version. + if (target && target["__v_isReadonly" + /* IS_READONLY */ + ]) { + return target; + } + + return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap); + } + /** + * Return a shallowly-reactive copy of the original object, where only the root + * level properties are reactive. It also does not auto-unwrap refs (even at the + * root level). + */ + + + function shallowReactive(target) { + return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap); + } + /** + * Creates a readonly copy of the original object. Note the returned copy is not + * made reactive, but `readonly` can be called on an already reactive object. + */ + + + function readonly(target) { + return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap); + } + /** + * Returns a reactive-copy of the original object, where only the root level + * properties are readonly, and does NOT unwrap refs nor recursively convert + * returned properties. + * This is used for creating the props proxy object for stateful components. + */ + + + function shallowReadonly(target) { + return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap); + } + + function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) { + if (!isObject(target)) { + return target; + } // target is already a Proxy, return it. + // exception: calling readonly() on a reactive object + + + if (target["__v_raw" + /* RAW */ + ] && !(isReadonly && target["__v_isReactive" + /* IS_REACTIVE */ + ])) { + return target; + } // target already has corresponding Proxy + + + var existingProxy = proxyMap.get(target); + + if (existingProxy) { + return existingProxy; + } // only a whitelist of value types can be observed. + + + var targetType = getTargetType(target); + + if (targetType === 0 + /* INVALID */ + ) { + return target; + } + + var proxy = new Proxy(target, targetType === 2 + /* COLLECTION */ + ? collectionHandlers : baseHandlers); + proxyMap.set(target, proxy); + return proxy; + } + + function isReactive(value) { + if (isReadonly(value)) { + return isReactive(value["__v_raw" + /* RAW */ + ]); + } + + return !!(value && value["__v_isReactive" + /* IS_REACTIVE */ + ]); + } + + function isReadonly(value) { + return !!(value && value["__v_isReadonly" + /* IS_READONLY */ + ]); + } + + function isProxy(value) { + return isReactive(value) || isReadonly(value); + } + + function toRaw(observed) { + return observed && toRaw(observed["__v_raw" + /* RAW */ + ]) || observed; + } + + function markRaw(value) { + def(value, "__v_skip" + /* SKIP */ + , true); + return value; + } + + var convert = val => isObject(val) ? reactive(val) : val; + + function isRef(r) { + return Boolean(r && r.__v_isRef === true); + } + + function ref(value) { + return createRef(value); + } + + function shallowRef(value) { + return createRef(value, true); + } + + class RefImpl { + constructor(_rawValue, _shallow) { + this._rawValue = _rawValue; + this._shallow = _shallow; + this.__v_isRef = true; + this._value = _shallow ? _rawValue : convert(_rawValue); + } + + get value() { + track(toRaw(this), "get" + /* GET */ + , 'value'); + return this._value; + } + + set value(newVal) { + if (hasChanged(toRaw(newVal), this._rawValue)) { + this._rawValue = newVal; + this._value = this._shallow ? newVal : convert(newVal); + trigger(toRaw(this), "set" + /* SET */ + , 'value', newVal); + } + } + + } + + function createRef(rawValue, shallow = false) { + if (isRef(rawValue)) { + return rawValue; + } + + return new RefImpl(rawValue, shallow); + } + + function triggerRef(ref) { + trigger(toRaw(ref), "set" + /* SET */ + , 'value', void 0); + } + + function unref(ref) { + return isRef(ref) ? ref.value : ref; + } + + var shallowUnwrapHandlers = { + get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)), + set: (target, key, value, receiver) => { + var oldValue = target[key]; + + if (isRef(oldValue) && !isRef(value)) { + oldValue.value = value; + return true; + } else { + return Reflect.set(target, key, value, receiver); + } + } + }; + + function proxyRefs(objectWithRefs) { + return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); + } + + class CustomRefImpl { + constructor(factory) { + this.__v_isRef = true; + var { + get, + set + } = factory(() => track(this, "get" + /* GET */ + , 'value'), () => trigger(this, "set" + /* SET */ + , 'value')); + this._get = get; + this._set = set; + } + + get value() { + return this._get(); + } + + set value(newVal) { + this._set(newVal); + } + + } + + function customRef(factory) { + return new CustomRefImpl(factory); + } + + function toRefs(object) { + var ret = isArray(object) ? new Array(object.length) : {}; + + for (var key in object) { + ret[key] = toRef(object, key); + } + + return ret; + } + + class ObjectRefImpl { + constructor(_object, _key) { + this._object = _object; + this._key = _key; + this.__v_isRef = true; + } + + get value() { + return this._object[this._key]; + } + + set value(newVal) { + this._object[this._key] = newVal; + } + + } + + function toRef(object, key) { + return isRef(object[key]) ? object[key] : new ObjectRefImpl(object, key); + } + + class ComputedRefImpl { + constructor(getter, _setter, isReadonly) { + this._setter = _setter; + this._dirty = true; + this.__v_isRef = true; + this.effect = effect(getter, { + lazy: true, + scheduler: () => { + if (!this._dirty) { + this._dirty = true; + trigger(toRaw(this), "set" + /* SET */ + , 'value'); + } + } + }); + this["__v_isReadonly" + /* IS_READONLY */ + ] = isReadonly; + } + + get value() { + // the computed ref may get wrapped by other proxies e.g. readonly() #3376 + var self = toRaw(this); + + if (self._dirty) { + self._value = this.effect(); + self._dirty = false; + } + + track(self, "get" + /* GET */ + , 'value'); + return self._value; + } + + set value(newValue) { + this._setter(newValue); + } + + } + + function computed(getterOrOptions) { + var getter; + var setter; + + if (isFunction(getterOrOptions)) { + getter = getterOrOptions; + setter = NOOP; + } else { + getter = getterOrOptions.get; + setter = getterOrOptions.set; + } + + return new ComputedRefImpl(getter, setter, isFunction(getterOrOptions) || !getterOrOptions.set); + } + + var stack = []; + + function warn(msg, ...args) { + // avoid props formatting or warn handler tracking deps that might be mutated + // during patch, leading to infinite recursion. + pauseTracking(); + var instance = stack.length ? stack[stack.length - 1].component : null; + var appWarnHandler = instance && instance.appContext.config.warnHandler; + var trace = getComponentTrace(); + + if (appWarnHandler) { + callWithErrorHandling(appWarnHandler, instance, 11 + /* APP_WARN_HANDLER */ + , [msg + args.join(''), instance && instance.proxy, trace.map(({ + vnode + }) => "at <".concat(formatComponentName(instance, vnode.type), ">")).join('\n'), trace]); + } else { + var warnArgs = ["[Vue warn]: ".concat(msg), ...args]; + /* istanbul ignore if */ + + if (trace.length && // avoid spamming console during tests + !false) { + warnArgs.push("\n", ...formatTrace(trace)); + } + + console.warn(...warnArgs); + } + + resetTracking(); + } + + function getComponentTrace() { + var currentVNode = stack[stack.length - 1]; + + if (!currentVNode) { + return []; + } // we can't just use the stack because it will be incomplete during updates + // that did not start from the root. Re-construct the parent chain using + // instance parent pointers. + + + var normalizedStack = []; + + while (currentVNode) { + var last = normalizedStack[0]; + + if (last && last.vnode === currentVNode) { + last.recurseCount++; + } else { + normalizedStack.push({ + vnode: currentVNode, + recurseCount: 0 + }); + } + + var parentInstance = currentVNode.component && currentVNode.component.parent; + currentVNode = parentInstance && parentInstance.vnode; + } + + return normalizedStack; + } + /* istanbul ignore next */ + + + function formatTrace(trace) { + var logs = []; + trace.forEach((entry, i) => { + logs.push(...(i === 0 ? [] : ["\n"]), ...formatTraceEntry(entry)); + }); + return logs; + } + + function formatTraceEntry({ + vnode, + recurseCount + }) { + var postfix = recurseCount > 0 ? "... (".concat(recurseCount, " recursive calls)") : ""; + var isRoot = vnode.component ? vnode.component.parent == null : false; + var open = " at <".concat(formatComponentName(vnode.component, vnode.type, isRoot)); + var close = ">" + postfix; + return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close]; + } + /* istanbul ignore next */ + + + function formatProps(props) { + var res = []; + var keys = Object.keys(props); + keys.slice(0, 3).forEach(key => { + res.push(...formatProp(key, props[key])); + }); + + if (keys.length > 3) { + res.push(" ..."); + } + + return res; + } + /* istanbul ignore next */ + + + function formatProp(key, value, raw) { + if (isString(value)) { + value = JSON.stringify(value); + return raw ? value : ["".concat(key, "=").concat(value)]; + } else if (typeof value === 'number' || typeof value === 'boolean' || value == null) { + return raw ? value : ["".concat(key, "=").concat(value)]; + } else if (isRef(value)) { + value = formatProp(key, toRaw(value.value), true); + return raw ? value : ["".concat(key, "=Ref<"), value, ">"]; + } else if (isFunction(value)) { + return ["".concat(key, "=fn").concat(value.name ? "<".concat(value.name, ">") : "")]; + } else { + value = toRaw(value); + return raw ? value : ["".concat(key, "="), value]; + } + } + + function callWithErrorHandling(fn, instance, type, args) { + var res; + + try { + res = args ? fn(...args) : fn(); + } catch (err) { + handleError(err, instance, type); + } + + return res; + } + + function callWithAsyncErrorHandling(fn, instance, type, args) { + if (isFunction(fn)) { + var res = callWithErrorHandling(fn, instance, type, args); + + if (res && isPromise(res)) { + res.catch(err => { + handleError(err, instance, type); + }); + } + + return res; + } + + var values = []; + + for (var i = 0; i < fn.length; i++) { + values.push(callWithAsyncErrorHandling(fn[i], instance, type, args)); + } + + return values; + } + + function handleError(err, instance, type, throwInDev = true) { + var contextVNode = instance ? instance.vnode : null; + + if (instance) { + var cur = instance.parent; // the exposed instance is the render proxy to keep it consistent with 2.x + + var exposedInstance = instance.proxy; // in production the hook receives only the error code + + var errorInfo = type; + + while (cur) { + var errorCapturedHooks = cur.ec; + + if (errorCapturedHooks) { + for (var i = 0; i < errorCapturedHooks.length; i++) { + if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) { + return; + } + } + } + + cur = cur.parent; + } // app-level handling + + + var appErrorHandler = instance.appContext.config.errorHandler; + + if (appErrorHandler) { + callWithErrorHandling(appErrorHandler, null, 10 + /* APP_ERROR_HANDLER */ + , [err, exposedInstance, errorInfo]); + return; + } + } + + logError(err, type, contextVNode, throwInDev); + } + + function logError(err, type, contextVNode, throwInDev = true) { + { + // recover in prod to reduce the impact on end-user + console.error(err); + } + } + + var isFlushing = false; + var isFlushPending = false; + var queue = []; + var flushIndex = 0; + var pendingPreFlushCbs = []; + var activePreFlushCbs = null; + var preFlushIndex = 0; + var pendingPostFlushCbs = []; + var activePostFlushCbs = null; + var postFlushIndex = 0; // fixed by xxxxxx iOS + + var iOSPromise = { + then(callback) { + setTimeout(() => callback(), 0); + } + + }; + var isIOS = exports.platform === 'iOS'; + var resolvedPromise = isIOS ? iOSPromise : Promise.resolve(); + var currentFlushPromise = null; + var currentPreFlushParentJob = null; + var RECURSION_LIMIT = 100; + + function nextTick(fn) { + var p = currentFlushPromise || resolvedPromise; + return fn ? p.then(this ? fn.bind(this) : fn) : p; + } // #2768 + // Use binary-search to find a suitable position in the queue, + // so that the queue maintains the increasing order of job's id, + // which can prevent the job from being skipped and also can avoid repeated patching. + + + function findInsertionIndex(job) { + // the start index should be `flushIndex + 1` + var start = flushIndex + 1; + var end = queue.length; + var jobId = getId(job); + + while (start < end) { + var middle = start + end >>> 1; + var middleJobId = getId(queue[middle]); + middleJobId < jobId ? start = middle + 1 : end = middle; + } + + return start; + } + + function queueJob(job) { + // the dedupe search uses the startIndex argument of Array.includes() + // by default the search index includes the current job that is being run + // so it cannot recursively trigger itself again. + // if the job is a watch() callback, the search will start with a +1 index to + // allow it recursively trigger itself - it is the user's responsibility to + // ensure it doesn't end up in an infinite loop. + if ((!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && job !== currentPreFlushParentJob) { + var pos = findInsertionIndex(job); + + if (pos > -1) { + queue.splice(pos, 0, job); + } else { + queue.push(job); + } + + queueFlush(); + } + } + + function queueFlush() { + if (!isFlushing && !isFlushPending) { + isFlushPending = true; + currentFlushPromise = resolvedPromise.then(flushJobs); + } + } + + function invalidateJob(job) { + var i = queue.indexOf(job); + + if (i > flushIndex) { + queue.splice(i, 1); + } + } + + function queueCb(cb, activeQueue, pendingQueue, index) { + if (!isArray(cb)) { + if (!activeQueue || !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) { + pendingQueue.push(cb); + } + } else { + // if cb is an array, it is a component lifecycle hook which can only be + // triggered by a job, which is already deduped in the main queue, so + // we can skip duplicate check here to improve perf + pendingQueue.push(...cb); + } + + queueFlush(); + } + + function queuePreFlushCb(cb) { + queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex); + } + + function queuePostFlushCb(cb) { + queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex); + } + + function flushPreFlushCbs(seen, parentJob = null) { + if (pendingPreFlushCbs.length) { + currentPreFlushParentJob = parentJob; + activePreFlushCbs = [...new Set(pendingPreFlushCbs)]; + pendingPreFlushCbs.length = 0; + + for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) { + activePreFlushCbs[preFlushIndex](); + } + + activePreFlushCbs = null; + preFlushIndex = 0; + currentPreFlushParentJob = null; // recursively flush until it drains + + flushPreFlushCbs(seen, parentJob); + } + } + + function flushPostFlushCbs(seen) { + if (pendingPostFlushCbs.length) { + var deduped = [...new Set(pendingPostFlushCbs)]; + pendingPostFlushCbs.length = 0; // #1947 already has active queue, nested flushPostFlushCbs call + + if (activePostFlushCbs) { + activePostFlushCbs.push(...deduped); + return; + } + + activePostFlushCbs = deduped; + activePostFlushCbs.sort((a, b) => getId(a) - getId(b)); + + for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { + activePostFlushCbs[postFlushIndex](); + } + + activePostFlushCbs = null; + postFlushIndex = 0; + } + } + + var getId = job => job.id == null ? Infinity : job.id; + + function flushJobs(seen) { + isFlushPending = false; + isFlushing = true; + flushPreFlushCbs(seen); // Sort queue before flush. + // This ensures that: + // 1. Components are updated from parent to child. (because parent is always + // created before the child so its render effect will have smaller + // priority number) + // 2. If a component is unmounted during a parent component's update, + // its update can be skipped. + + queue.sort((a, b) => getId(a) - getId(b)); + + try { + for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { + var job = queue[flushIndex]; + + if (job && job.active !== false) { + if ("production" !== 'production' && checkRecursiveUpdates(seen, job)) ; + callWithErrorHandling(job, null, 14 + /* SCHEDULER */ + ); + } + } + } finally { + flushIndex = 0; + queue.length = 0; + flushPostFlushCbs(); + isFlushing = false; + currentFlushPromise = null; // some postFlushCb queued jobs! + // keep flushing until it drains. + + if (queue.length || pendingPreFlushCbs.length || pendingPostFlushCbs.length) { + flushJobs(seen); + } + } + } + + function checkRecursiveUpdates(seen, fn) { + if (!seen.has(fn)) { + seen.set(fn, 1); + } else { + var count = seen.get(fn); + + if (count > RECURSION_LIMIT) { + var instance = fn.ownerInstance; + var componentName = instance && getComponentName(instance.type); + warn("Maximum recursive updates exceeded".concat(componentName ? " in component <".concat(componentName, ">") : "", ". ") + "This means you have a reactive effect that is mutating its own " + "dependencies and thus recursively triggering itself. Possible sources " + "include component template, render function, updated hook or " + "watcher source function."); + return true; + } else { + seen.set(fn, count + 1); + } + } + } + + var devtools; + + function setDevtoolsHook(hook) { + devtools = hook; + } + + var globalCompatConfig = { + MODE: 2 + }; + + function getCompatConfigForKey(key, instance) { + var instanceConfig = instance && instance.type.compatConfig; + + if (instanceConfig && key in instanceConfig) { + return instanceConfig[key]; + } + + return globalCompatConfig[key]; + } + + function isCompatEnabled(key, instance, enableForBuiltIn = false) { + // skip compat for built-in components + if (!enableForBuiltIn && instance && instance.type.__isBuiltIn) { + return false; + } + + var rawMode = getCompatConfigForKey('MODE', instance) || 2; + var val = getCompatConfigForKey(key, instance); + var mode = isFunction(rawMode) ? rawMode(instance && instance.type) : rawMode; + + if (mode === 2) { + return val !== false; + } else { + return val === true || val === 'suppress-warning'; + } + } + + function emit(instance, event, ...rawArgs) { + var props = instance.vnode.props || EMPTY_OBJ; + var args = rawArgs; + var isModelListener = event.startsWith('update:'); // for v-model update:xxx events, apply modifiers on args + + var modelArg = isModelListener && event.slice(7); + + if (modelArg && modelArg in props) { + var modifiersKey = "".concat(modelArg === 'modelValue' ? 'model' : modelArg, "Modifiers"); + var { + number, + trim + } = props[modifiersKey] || EMPTY_OBJ; + + if (trim) { + args = rawArgs.map(a => a.trim()); + } else if (number) { + args = rawArgs.map(toNumber); + } + } + + var handlerName; + var handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249) + props[handlerName = toHandlerKey(camelize(event))]; // for v-model update:xxx events, also trigger kebab-case equivalent + // for props passed via kebab-case + + if (!handler && isModelListener) { + handler = props[handlerName = toHandlerKey(hyphenate(event))]; + } + + if (handler) { + callWithAsyncErrorHandling(handler, instance, 6 + /* COMPONENT_EVENT_HANDLER */ + , args); + } + + var onceHandler = props[handlerName + "Once"]; + + if (onceHandler) { + if (!instance.emitted) { + instance.emitted = {}; + } else if (instance.emitted[handlerName]) { + return; + } + + instance.emitted[handlerName] = true; + callWithAsyncErrorHandling(onceHandler, instance, 6 + /* COMPONENT_EVENT_HANDLER */ + , args); + } + } + + function normalizeEmitsOptions(comp, appContext, asMixin = false) { + var cache = appContext.emitsCache; + var cached = cache.get(comp); + + if (cached !== undefined) { + return cached; + } + + var raw = comp.emits; + var normalized = {}; // apply mixin/extends props + + var hasExtends = false; + + if (!isFunction(comp)) { + var extendEmits = raw => { + var normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true); + + if (normalizedFromExtend) { + hasExtends = true; + extend(normalized, normalizedFromExtend); + } + }; + + if (!asMixin && appContext.mixins.length) { + appContext.mixins.forEach(extendEmits); + } + + if (comp.extends) { + extendEmits(comp.extends); + } + + if (comp.mixins) { + comp.mixins.forEach(extendEmits); + } + } + + if (!raw && !hasExtends) { + cache.set(comp, null); + return null; + } + + if (isArray(raw)) { + raw.forEach(key => normalized[key] = null); + } else { + extend(normalized, raw); + } + + cache.set(comp, normalized); + return normalized; + } // Check if an incoming prop key is a declared emit event listener. + // e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are + // both considered matched listeners. + + + function isEmitListener(options, key) { + if (!options || !isOn(key)) { + return false; + } + + key = key.slice(2).replace(/Once$/, ''); + return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key); + } + /** + * mark the current rendering instance for asset resolution (e.g. + * resolveComponent, resolveDirective) during render + */ + + + var currentRenderingInstance = null; + var currentScopeId = null; + /** + * Note: rendering calls maybe nested. The function returns the parent rendering + * instance if present, which should be restored after the render is done: + * + * ```js + * const prev = setCurrentRenderingInstance(i) + * // ...render + * setCurrentRenderingInstance(prev) + * ``` + */ + + function setCurrentRenderingInstance(instance) { + var prev = currentRenderingInstance; + currentRenderingInstance = instance; + currentScopeId = instance && instance.type.__scopeId || null; + return prev; + } + /** + * Set scope id when creating hoisted vnodes. + * @private compiler helper + */ + + + function pushScopeId(id) { + currentScopeId = id; + } + /** + * Technically we no longer need this after 3.0.8 but we need to keep the same + * API for backwards compat w/ code generated by compilers. + * @private + */ + + + function popScopeId() { + currentScopeId = null; + } + /** + * Only for backwards compat + * @private + */ + + + var withScopeId = _id => withCtx; + /** + * Wrap a slot function to memoize current rendering instance + * @private compiler helper + */ + + + function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only + ) { + if (!ctx) return fn; // already normalized + + if (fn._n) { + return fn; + } + + var renderFnWithContext = (...args) => { + // If a user calls a compiled slot inside a template expression (#1745), it + // can mess up block tracking, so by default we disable block tracking and + // force bail out when invoking a compiled slot (indicated by the ._d flag). + // This isn't necessary if rendering a compiled `<slot>`, so we flip the + // ._d flag off when invoking the wrapped fn inside `renderSlot`. + if (renderFnWithContext._d) { + setBlockTracking(-1); + } + + var prevInstance = setCurrentRenderingInstance(ctx); + var res = fn(...args); + setCurrentRenderingInstance(prevInstance); + + if (renderFnWithContext._d) { + setBlockTracking(1); + } + + return res; + }; // mark normalized to avoid duplicated wrapping + + + renderFnWithContext._n = true; // mark this as compiled by default + // this is used in vnode.ts -> normalizeChildren() to set the slot + // rendering flag. + + renderFnWithContext._c = true; // disable block tracking by default + + renderFnWithContext._d = true; + return renderFnWithContext; + } + /** + * dev only flag to track whether $attrs was used during render. + * If $attrs was used during render then the warning for failed attrs + * fallthrough can be suppressed. + */ + + + var accessedAttrs = false; + + function markAttrsAccessed() { + accessedAttrs = true; + } + + function renderComponentRoot(instance) { + var { + type: Component, + vnode, + proxy, + withProxy, + props, + propsOptions: [propsOptions], + slots, + attrs, + emit, + render, + renderCache, + data, + setupState, + ctx, + inheritAttrs + } = instance; + var result; + var prev = setCurrentRenderingInstance(instance); + + try { + var fallthroughAttrs; + + if (vnode.shapeFlag & 4 + /* STATEFUL_COMPONENT */ + ) { + // withProxy is a proxy with a different `has` trap only for + // runtime-compiled render functions using `with` block. + var proxyToUse = withProxy || proxy; + result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx)); + fallthroughAttrs = attrs; + } else { + // functional + var _render = Component; // in dev, mark attrs accessed if optional props (attrs === props) + + if ("production" !== 'production' && attrs === props) ; + result = normalizeVNode(_render.length > 1 ? _render(props, "production" !== 'production' ? { + get attrs() { + markAttrsAccessed(); + return attrs; + }, + + slots, + emit + } : { + attrs, + slots, + emit + }) : _render(props, null + /* we know it doesn't need it */ + )); + fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs); + } // attr merging + // in dev mode, comments are preserved, and it's possible for a template + // to have comments along side the root element which makes it a fragment + + + var root = result; + var setRoot = undefined; + if ("production" !== 'production' && result.patchFlag > 0 && result.patchFlag & 2048 + /* DEV_ROOT_FRAGMENT */ + ) ; + + if (fallthroughAttrs && inheritAttrs !== false) { + var keys = Object.keys(fallthroughAttrs); + var { + shapeFlag + } = root; + + if (keys.length) { + if (shapeFlag & 1 + /* ELEMENT */ + || shapeFlag & 6 + /* COMPONENT */ + ) { + if (propsOptions && keys.some(isModelListener)) { + // If a v-model listener (onUpdate:xxx) has a corresponding declared + // prop, it indicates this component expects to handle v-model and + // it should not fallthrough. + // related: #1543, #1643, #1989 + fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions); + } + + root = cloneVNode(root, fallthroughAttrs); + } else if ("production" !== 'production' && !accessedAttrs && root.type !== Comment$1) ; + } + } + + if (false && isCompatEnabled("INSTANCE_ATTRS_CLASS_STYLE" + /* INSTANCE_ATTRS_CLASS_STYLE */ + , instance) && vnode.shapeFlag & 4 + /* STATEFUL_COMPONENT */ + && (root.shapeFlag & 1 + /* ELEMENT */ + || root.shapeFlag & 6 + /* COMPONENT */ + )) ; // inherit directives + + if (vnode.dirs) { + if ("production" !== 'production' && !isElementRoot(root)) ; + root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; + } // inherit transition data + + + if (vnode.transition) { + if ("production" !== 'production' && !isElementRoot(root)) ; + root.transition = vnode.transition; + } + + if ("production" !== 'production' && setRoot) ;else { + result = root; + } + } catch (err) { + blockStack.length = 0; + handleError(err, instance, 1 + /* RENDER_FUNCTION */ + ); + result = createVNode(Comment$1); + } + + setCurrentRenderingInstance(prev); + return result; + } + /** + * dev only + * In dev mode, template root level comments are rendered, which turns the + * template into a fragment root, but we need to locate the single element + * root for attrs and scope id processing. + */ + + + var getChildRoot = vnode => { + var rawChildren = vnode.children; + var dynamicChildren = vnode.dynamicChildren; + var childRoot = filterSingleRoot(rawChildren); + + if (!childRoot) { + return [vnode, undefined]; + } + + var index = rawChildren.indexOf(childRoot); + var dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1; + + var setRoot = updatedRoot => { + rawChildren[index] = updatedRoot; + + if (dynamicChildren) { + if (dynamicIndex > -1) { + dynamicChildren[dynamicIndex] = updatedRoot; + } else if (updatedRoot.patchFlag > 0) { + vnode.dynamicChildren = [...dynamicChildren, updatedRoot]; + } + } + }; + + return [normalizeVNode(childRoot), setRoot]; + }; + + function filterSingleRoot(children) { + var singleRoot; + + for (var i = 0; i < children.length; i++) { + var child = children[i]; + + if (isVNode(child)) { + // ignore user comment + if (child.type !== Comment$1 || child.children === 'v-if') { + if (singleRoot) { + // has more than 1 non-comment child, return now + return; + } else { + singleRoot = child; + } + } + } else { + return; + } + } + + return singleRoot; + } + + var getFunctionalFallthrough = attrs => { + var res; + + for (var key in attrs) { + if (key === 'class' || key === 'style' || isOn(key)) { + (res || (res = {}))[key] = attrs[key]; + } + } + + return res; + }; + + var filterModelListeners = (attrs, props) => { + var res = {}; + + for (var key in attrs) { + if (!isModelListener(key) || !(key.slice(9) in props)) { + res[key] = attrs[key]; + } + } + + return res; + }; + + var isElementRoot = vnode => { + return vnode.shapeFlag & 6 + /* COMPONENT */ + || vnode.shapeFlag & 1 + /* ELEMENT */ + || vnode.type === Comment$1 // potential v-if branch switch + ; + }; + + function shouldUpdateComponent(prevVNode, nextVNode, optimized) { + var { + props: prevProps, + children: prevChildren, + component + } = prevVNode; + var { + props: nextProps, + children: nextChildren, + patchFlag + } = nextVNode; + var emits = component.emitsOptions; // force child update for runtime directive or transition on component vnode. + + if (nextVNode.dirs || nextVNode.transition) { + return true; + } + + if (optimized && patchFlag >= 0) { + if (patchFlag & 1024 + /* DYNAMIC_SLOTS */ + ) { + // slot content that references values that might have changed, + // e.g. in a v-for + return true; + } + + if (patchFlag & 16 + /* FULL_PROPS */ + ) { + if (!prevProps) { + return !!nextProps; + } // presence of this flag indicates props are always non-null + + + return hasPropsChanged(prevProps, nextProps, emits); + } else if (patchFlag & 8 + /* PROPS */ + ) { + var dynamicProps = nextVNode.dynamicProps; + + for (var i = 0; i < dynamicProps.length; i++) { + var key = dynamicProps[i]; + + if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { + return true; + } + } + } + } else { + // this path is only taken by manually written render functions + // so presence of any children leads to a forced update + if (prevChildren || nextChildren) { + if (!nextChildren || !nextChildren.$stable) { + return true; + } + } + + if (prevProps === nextProps) { + return false; + } + + if (!prevProps) { + return !!nextProps; + } + + if (!nextProps) { + return true; + } + + return hasPropsChanged(prevProps, nextProps, emits); + } + + return false; + } + + function hasPropsChanged(prevProps, nextProps, emitsOptions) { + var nextKeys = Object.keys(nextProps); + + if (nextKeys.length !== Object.keys(prevProps).length) { + return true; + } + + for (var i = 0; i < nextKeys.length; i++) { + var key = nextKeys[i]; + + if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) { + return true; + } + } + + return false; + } + + function updateHOCHostEl({ + vnode, + parent + }, el // HostNode + ) { + while (parent && parent.subTree === vnode) { + (vnode = parent.vnode).el = el; + parent = parent.parent; + } + } + + var isSuspense = type => type.__isSuspense; // Suspense exposes a component-like API, and is treated like a component + // in the compiler, but internally it's a special built-in type that hooks + // directly into the renderer. + + + var SuspenseImpl = { + name: 'Suspense', + // In order to make Suspense tree-shakable, we need to avoid importing it + // directly in the renderer. The renderer checks for the __isSuspense flag + // on a vnode's type and calls the `process` method, passing in renderer + // internals. + __isSuspense: true, + + process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, // platform-specific impl passed from renderer + rendererInternals) { + if (n1 == null) { + mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals); + } else { + patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals); + } + }, + + hydrate: hydrateSuspense, + create: createSuspenseBoundary, + normalize: normalizeSuspenseChildren + }; // Force-casted public typing for h and TSX props inference + + var Suspense = SuspenseImpl; + + function triggerEvent(vnode, name) { + var eventListener = vnode.props && vnode.props[name]; + + if (isFunction(eventListener)) { + eventListener(); + } + } + + function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) { + var { + p: patch, + o: { + createElement + } + } = rendererInternals; + var hiddenContainer = createElement('div', container); // fixed by xxxxxx + + var suspense = vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals); // start mounting the content subtree in an off-dom container + + patch(null, suspense.pendingBranch = vnode.ssContent, hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds); // now check if we have encountered any async deps + + if (suspense.deps > 0) { + // has async + // invoke @fallback event + triggerEvent(vnode, 'onPending'); + triggerEvent(vnode, 'onFallback'); // mount the fallback tree + + patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context + isSVG, slotScopeIds); + setActiveBranch(suspense, vnode.ssFallback); + } else { + // Suspense has no async deps. Just resolve. + suspense.resolve(); + } + } + + function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { + p: patch, + um: unmount, + o: { + createElement + } + }) { + var suspense = n2.suspense = n1.suspense; + suspense.vnode = n2; + n2.el = n1.el; + var newBranch = n2.ssContent; + var newFallback = n2.ssFallback; + var { + activeBranch, + pendingBranch, + isInFallback, + isHydrating + } = suspense; + + if (pendingBranch) { + suspense.pendingBranch = newBranch; + + if (isSameVNodeType(newBranch, pendingBranch)) { + // same root type but content may have changed. + patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized); + + if (suspense.deps <= 0) { + suspense.resolve(); + } else if (isInFallback) { + patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context + isSVG, slotScopeIds, optimized); + setActiveBranch(suspense, newFallback); + } + } else { + // toggled before pending tree is resolved + suspense.pendingId++; + + if (isHydrating) { + // if toggled before hydration is finished, the current DOM tree is + // no longer valid. set it as the active branch so it will be unmounted + // when resolved + suspense.isHydrating = false; + suspense.activeBranch = pendingBranch; + } else { + unmount(pendingBranch, parentComponent, suspense); + } // increment pending ID. this is used to invalidate async callbacks + // reset suspense state + + + suspense.deps = 0; // discard effects from pending branch + + suspense.effects.length = 0; // discard previous container + + suspense.hiddenContainer = createElement('div', container); // fixed by xxxxxx + + if (isInFallback) { + // already in fallback state + patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized); + + if (suspense.deps <= 0) { + suspense.resolve(); + } else { + patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context + isSVG, slotScopeIds, optimized); + setActiveBranch(suspense, newFallback); + } + } else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { + // toggled "back" to current active branch + patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized); // force resolve + + suspense.resolve(true); + } else { + // switched to a 3rd branch + patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized); + + if (suspense.deps <= 0) { + suspense.resolve(); + } + } + } + } else { + if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { + // root did not change, just normal patch + patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized); + setActiveBranch(suspense, newBranch); + } else { + // root node toggled + // invoke @pending event + triggerEvent(n2, 'onPending'); // mount pending branch in off-dom container + + suspense.pendingBranch = newBranch; + suspense.pendingId++; + patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized); + + if (suspense.deps <= 0) { + // incoming branch has no async deps, resolve now. + suspense.resolve(); + } else { + var { + timeout, + pendingId + } = suspense; + + if (timeout > 0) { + setTimeout(() => { + if (suspense.pendingId === pendingId) { + suspense.fallback(newFallback); + } + }, timeout); + } else if (timeout === 0) { + suspense.fallback(newFallback); + } + } + } + } + } + + function createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) { + var { + p: patch, + m: move, + um: unmount, + n: next, + o: { + parentNode, + remove + } + } = rendererInternals; + var timeout = toNumber(vnode.props && vnode.props.timeout); + var suspense = { + vnode, + parent, + parentComponent, + isSVG, + container, + hiddenContainer, + anchor, + deps: 0, + pendingId: 0, + timeout: typeof timeout === 'number' ? timeout : -1, + activeBranch: null, + pendingBranch: null, + isInFallback: true, + isHydrating, + isUnmounted: false, + effects: [], + + resolve(resume = false) { + var { + vnode, + activeBranch, + pendingBranch, + pendingId, + effects, + parentComponent, + container + } = suspense; + + if (suspense.isHydrating) { + suspense.isHydrating = false; + } else if (!resume) { + var delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === 'out-in'; + + if (delayEnter) { + activeBranch.transition.afterLeave = () => { + if (pendingId === suspense.pendingId) { + move(pendingBranch, container, _anchor, 0 + /* ENTER */ + ); + } + }; + } // this is initial anchor on mount + + + var { + anchor: _anchor + } = suspense; // unmount current active tree + + if (activeBranch) { + // if the fallback tree was mounted, it may have been moved + // as part of a parent suspense. get the latest anchor for insertion + _anchor = next(activeBranch); + unmount(activeBranch, parentComponent, suspense, true); + } + + if (!delayEnter) { + // move content from off-dom container to actual container + move(pendingBranch, container, _anchor, 0 + /* ENTER */ + ); + } + } + + setActiveBranch(suspense, pendingBranch); + suspense.pendingBranch = null; + suspense.isInFallback = false; // flush buffered effects + // check if there is a pending parent suspense + + var parent = suspense.parent; + var hasUnresolvedAncestor = false; + + while (parent) { + if (parent.pendingBranch) { + // found a pending parent suspense, merge buffered post jobs + // into that parent + parent.effects.push(...effects); + hasUnresolvedAncestor = true; + break; + } + + parent = parent.parent; + } // no pending parent suspense, flush all jobs + + + if (!hasUnresolvedAncestor) { + queuePostFlushCb(effects); + } + + suspense.effects = []; // invoke @resolve event + + triggerEvent(vnode, 'onResolve'); + }, + + fallback(fallbackVNode) { + if (!suspense.pendingBranch) { + return; + } + + var { + vnode, + activeBranch, + parentComponent, + container, + isSVG + } = suspense; // invoke @fallback event + + triggerEvent(vnode, 'onFallback'); + var anchor = next(activeBranch); + + var mountFallback = () => { + if (!suspense.isInFallback) { + return; + } // mount the fallback tree + + + patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context + isSVG, slotScopeIds, optimized); + setActiveBranch(suspense, fallbackVNode); + }; + + var delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in'; + + if (delayEnter) { + activeBranch.transition.afterLeave = mountFallback; + } + + suspense.isInFallback = true; // unmount current active branch + + unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now + true // shouldRemove + ); + + if (!delayEnter) { + mountFallback(); + } + }, + + move(container, anchor, type) { + suspense.activeBranch && move(suspense.activeBranch, container, anchor, type); + suspense.container = container; + }, + + next() { + return suspense.activeBranch && next(suspense.activeBranch); + }, + + registerDep(instance, setupRenderEffect) { + var isInPendingSuspense = !!suspense.pendingBranch; + + if (isInPendingSuspense) { + suspense.deps++; + } + + var hydratedEl = instance.vnode.el; + instance.asyncDep.catch(err => { + handleError(err, instance, 0 + /* SETUP_FUNCTION */ + ); + }).then(asyncSetupResult => { + // retry when the setup() promise resolves. + // component may have been unmounted before resolve. + if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) { + return; + } // retry from this component + + + instance.asyncResolved = true; + var { + vnode + } = instance; + handleSetupResult(instance, asyncSetupResult); + + if (hydratedEl) { + // vnode may have been replaced if an update happened before the + // async dep is resolved. + vnode.el = hydratedEl; + } + + var placeholder = !hydratedEl && instance.subTree.el; + setupRenderEffect(instance, vnode, // component may have been moved before resolve. + // if this is not a hydration, instance.subTree will be the comment + // placeholder. + parentNode(hydratedEl || instance.subTree.el), // anchor will not be used if this is hydration, so only need to + // consider the comment placeholder case. + hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized); + + if (placeholder) { + remove(placeholder); + } + + updateHOCHostEl(instance, vnode.el); // only decrease deps count if suspense is not already resolved + + if (isInPendingSuspense && --suspense.deps === 0) { + suspense.resolve(); + } + }); + }, + + unmount(parentSuspense, doRemove) { + suspense.isUnmounted = true; + + if (suspense.activeBranch) { + unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove); + } + + if (suspense.pendingBranch) { + unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove); + } + } + + }; + return suspense; + } + + function hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) { + /* eslint-disable no-restricted-globals */ + var suspense = vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true + /* hydrating */ + ); // there are two possible scenarios for server-rendered suspense: + // - success: ssr content should be fully resolved + // - failure: ssr content should be the fallback branch. + // however, on the client we don't really know if it has failed or not + // attempt to hydrate the DOM assuming it has succeeded, but we still + // need to construct a suspense boundary first + + var result = hydrateNode(node, suspense.pendingBranch = vnode.ssContent, parentComponent, suspense, slotScopeIds, optimized); + + if (suspense.deps === 0) { + suspense.resolve(); + } + + return result; + /* eslint-enable no-restricted-globals */ + } + + function normalizeSuspenseChildren(vnode) { + var { + shapeFlag, + children + } = vnode; + var isSlotChildren = shapeFlag & 32 + /* SLOTS_CHILDREN */ + ; + vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children); + vnode.ssFallback = isSlotChildren ? normalizeSuspenseSlot(children.fallback) : createVNode(Comment); + } + + function normalizeSuspenseSlot(s) { + var block; + + if (isFunction(s)) { + var isCompiledSlot = s._c; + + if (isCompiledSlot) { + // disableTracking: false + // allow block tracking for compiled slots + // (see ./componentRenderContext.ts) + s._d = false; + openBlock(); + } + + s = s(); + + if (isCompiledSlot) { + s._d = true; + block = currentBlock; + closeBlock(); + } + } + + if (isArray(s)) { + var singleChild = filterSingleRoot(s); + s = singleChild; + } + + s = normalizeVNode(s); + + if (block) { + s.dynamicChildren = block.filter(c => c !== s); + } + + return s; + } + + function queueEffectWithSuspense(fn, suspense) { + if (suspense && suspense.pendingBranch) { + if (isArray(fn)) { + suspense.effects.push(...fn); + } else { + suspense.effects.push(fn); + } + } else { + queuePostFlushCb(fn); + } + } + + function setActiveBranch(suspense, branch) { + suspense.activeBranch = branch; + var { + vnode, + parentComponent + } = suspense; + var el = vnode.el = branch.el; // in case suspense is the root node of a component, + // recursively update the HOC el + + if (parentComponent && parentComponent.subTree === vnode) { + parentComponent.vnode.el = el; + updateHOCHostEl(parentComponent, el); + } + } + + function provide(key, value) { + if (!currentInstance) ;else { + var provides = currentInstance.provides; // by default an instance inherits its parent's provides object + // but when it needs to provide values of its own, it creates its + // own provides object using parent provides object as prototype. + // this way in `inject` we can simply look up injections from direct + // parent and let the prototype chain do the work. + + var parentProvides = currentInstance.parent && currentInstance.parent.provides; + + if (parentProvides === provides) { + provides = currentInstance.provides = Object.create(parentProvides); + } // TS doesn't allow symbol as index type + + + provides[key] = value; + } + } + + function inject(key, defaultValue, treatDefaultAsFactory = false) { + // fallback to `currentRenderingInstance` so that this can be called in + // a functional component + var instance = currentInstance || currentRenderingInstance; + + if (instance) { + // #2400 + // to support `app.use` plugins, + // fallback to appContext's `provides` if the intance is at root + var provides = instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides; + + if (provides && key in provides) { + // TS doesn't allow symbol as index type + return provides[key]; + } else if (arguments.length > 1) { + return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance.proxy) : defaultValue; + } else ; + } + } // Simple effect. + + + function watchEffect(effect, options) { + return doWatch(effect, null, options); + } // initial value for watchers to trigger on undefined initial values + + + var INITIAL_WATCHER_VALUE = {}; // implementation + + function watch(source, cb, options) { + return doWatch(source, cb, options); + } + + function doWatch(source, cb, { + immediate, + deep, + flush, + onTrack, + onTrigger + } = EMPTY_OBJ, instance = currentInstance) { + var getter; + var forceTrigger = false; + var isMultiSource = false; + + if (isRef(source)) { + getter = () => source.value; + + forceTrigger = !!source._shallow; + } else if (isReactive(source)) { + getter = () => source; + + deep = true; + } else if (isArray(source)) { + isMultiSource = true; + forceTrigger = source.some(isReactive); + + getter = () => source.map(s => { + if (isRef(s)) { + return s.value; + } else if (isReactive(s)) { + return traverse(s); + } else if (isFunction(s)) { + return callWithErrorHandling(s, instance, 2 + /* WATCH_GETTER */ + ); + } else ; + }); + } else if (isFunction(source)) { + if (cb) { + // getter with cb + getter = () => callWithErrorHandling(source, instance, 2 + /* WATCH_GETTER */ + ); + } else { + // no cb -> simple effect + getter = () => { + if (instance && instance.isUnmounted) { + return; + } + + if (cleanup) { + cleanup(); + } + + return callWithAsyncErrorHandling(source, instance, 3 + /* WATCH_CALLBACK */ + , [onInvalidate]); + }; + } + } else { + getter = NOOP; + } + + if (cb && deep) { + var baseGetter = getter; + + getter = () => traverse(baseGetter()); + } + + var cleanup; + + var onInvalidate = fn => { + cleanup = runner.options.onStop = () => { + callWithErrorHandling(fn, instance, 4 + /* WATCH_CLEANUP */ + ); + }; + }; + + var oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE; + + var job = () => { + if (!runner.active) { + return; + } + + if (cb) { + // watch(source, cb) + var newValue = runner(); + + if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) { + // cleanup before running cb again + if (cleanup) { + cleanup(); + } + + callWithAsyncErrorHandling(cb, instance, 3 + /* WATCH_CALLBACK */ + , [newValue, // pass undefined as the old value when it's changed for the first time + oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, onInvalidate]); + oldValue = newValue; + } + } else { + // watchEffect + runner(); + } + }; // important: mark the job as a watcher callback so that scheduler knows + // it is allowed to self-trigger (#1727) + + + job.allowRecurse = !!cb; + var scheduler; + + if (flush === 'sync') { + scheduler = job; // the scheduler function gets called directly + } else if (flush === 'post') { + scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); + } else { + // default: 'pre' + scheduler = () => { + if (!instance || instance.isMounted) { + queuePreFlushCb(job); + } else { + // with 'pre' option, the first call must happen before + // the component is mounted so it is called synchronously. + job(); + } + }; + } + + var runner = effect(getter, { + lazy: true, + onTrack, + onTrigger, + scheduler + }); + recordInstanceBoundEffect(runner, instance); // initial run + + if (cb) { + if (immediate) { + job(); + } else { + oldValue = runner(); + } + } else if (flush === 'post') { + queuePostRenderEffect(runner, instance && instance.suspense); + } else { + runner(); + } + + return () => { + stop(runner); + + if (instance) { + remove(instance.effects, runner); + } + }; + } // this.$watch + + + function instanceWatch(source, value, options) { + var publicThis = this.proxy; + var getter = isString(source) ? source.includes('.') ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); + var cb; + + if (isFunction(value)) { + cb = value; + } else { + cb = value.handler; + options = value; + } + + return doWatch(getter, cb.bind(publicThis), options, this); + } + + function createPathGetter(ctx, path) { + var segments = path.split('.'); + return () => { + var cur = ctx; + + for (var i = 0; i < segments.length && cur; i++) { + cur = cur[segments[i]]; + } + + return cur; + }; + } + + function traverse(value, seen = new Set()) { + if (!isObject(value) || seen.has(value) || value["__v_skip" + /* SKIP */ + ]) { + return value; + } + + seen.add(value); + + if (isRef(value)) { + traverse(value.value, seen); + } else if (isArray(value)) { + for (var i = 0; i < value.length; i++) { + traverse(value[i], seen); + } + } else if (isSet(value) || isMap(value)) { + value.forEach(v => { + traverse(v, seen); + }); + } else if (isPlainObject(value)) { + for (var key in value) { + traverse(value[key], seen); + } + } + + return value; + } + + function useTransitionState() { + var state = { + isMounted: false, + isLeaving: false, + isUnmounting: false, + leavingVNodes: new Map() + }; + onMounted(() => { + state.isMounted = true; + }); + onBeforeUnmount(() => { + state.isUnmounting = true; + }); + return state; + } + + var TransitionHookValidator = [Function, Array]; + var BaseTransitionImpl = { + name: "BaseTransition", + props: { + mode: String, + appear: Boolean, + persisted: Boolean, + // enter + onBeforeEnter: TransitionHookValidator, + onEnter: TransitionHookValidator, + onAfterEnter: TransitionHookValidator, + onEnterCancelled: TransitionHookValidator, + // leave + onBeforeLeave: TransitionHookValidator, + onLeave: TransitionHookValidator, + onAfterLeave: TransitionHookValidator, + onLeaveCancelled: TransitionHookValidator, + // appear + onBeforeAppear: TransitionHookValidator, + onAppear: TransitionHookValidator, + onAfterAppear: TransitionHookValidator, + onAppearCancelled: TransitionHookValidator + }, + + setup(props, { + slots + }) { + var instance = getCurrentInstance(); + var state = useTransitionState(); + var prevTransitionKey; + return () => { + var children = slots.default && getTransitionRawChildren(slots.default(), true); + + if (!children || !children.length) { + return; + } // there's no need to track reactivity for these props so use the raw + // props for a bit better perf + + + var rawProps = toRaw(props); + var { + mode + } = rawProps; // at this point children has a guaranteed length of 1. + + var child = children[0]; + + if (state.isLeaving) { + return emptyPlaceholder(child); + } // in the case of <transition><keep-alive/></transition>, we need to + // compare the type of the kept-alive children. + + + var innerChild = getKeepAliveChild(child); + + if (!innerChild) { + return emptyPlaceholder(child); + } + + var enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance); + setTransitionHooks(innerChild, enterHooks); + var oldChild = instance.subTree; + var oldInnerChild = oldChild && getKeepAliveChild(oldChild); + var transitionKeyChanged = false; + var { + getTransitionKey + } = innerChild.type; + + if (getTransitionKey) { + var key = getTransitionKey(); + + if (prevTransitionKey === undefined) { + prevTransitionKey = key; + } else if (key !== prevTransitionKey) { + prevTransitionKey = key; + transitionKeyChanged = true; + } + } // handle mode + + + if (oldInnerChild && oldInnerChild.type !== Comment$1 && (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) { + var leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance); // update old tree's hooks in case of dynamic transition + + setTransitionHooks(oldInnerChild, leavingHooks); // switching between different views + + if (mode === 'out-in') { + state.isLeaving = true; // return placeholder node and queue update when leave finishes + + leavingHooks.afterLeave = () => { + state.isLeaving = false; + instance.update(); + }; + + return emptyPlaceholder(child); + } else if (mode === 'in-out' && innerChild.type !== Comment$1) { + leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => { + var leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild); + leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild; // early removal callback + + el._leaveCb = () => { + earlyRemove(); + el._leaveCb = undefined; + delete enterHooks.delayedLeave; + }; + + enterHooks.delayedLeave = delayedLeave; + }; + } + } + + return child; + }; + } + + }; // export the public type for h/tsx inference + // also to avoid inline import() in generated d.ts files + + var BaseTransition = BaseTransitionImpl; + + function getLeavingNodesForType(state, vnode) { + var { + leavingVNodes + } = state; + var leavingVNodesCache = leavingVNodes.get(vnode.type); + + if (!leavingVNodesCache) { + leavingVNodesCache = Object.create(null); + leavingVNodes.set(vnode.type, leavingVNodesCache); + } + + return leavingVNodesCache; + } // The transition hooks are attached to the vnode as vnode.transition + // and will be called at appropriate timing in the renderer. + + + function resolveTransitionHooks(vnode, props, state, instance) { + var { + appear, + mode, + persisted = false, + onBeforeEnter, + onEnter, + onAfterEnter, + onEnterCancelled, + onBeforeLeave, + onLeave, + onAfterLeave, + onLeaveCancelled, + onBeforeAppear, + onAppear, + onAfterAppear, + onAppearCancelled + } = props; + var key = String(vnode.key); + var leavingVNodesCache = getLeavingNodesForType(state, vnode); + + var callHook = (hook, args) => { + hook && callWithAsyncErrorHandling(hook, instance, 9 + /* TRANSITION_HOOK */ + , args); + }; + + var hooks = { + mode, + persisted, + + beforeEnter(el) { + var hook = onBeforeEnter; + + if (!state.isMounted) { + if (appear) { + hook = onBeforeAppear || onBeforeEnter; + } else { + return; + } + } // for same element (v-show) + + + if (el._leaveCb) { + el._leaveCb(true + /* cancelled */ + ); + } // for toggled element with same key (v-if) + + + var leavingVNode = leavingVNodesCache[key]; + + if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el._leaveCb) { + // force early removal (not cancelled) + leavingVNode.el._leaveCb(); + } + + callHook(hook, [el]); + }, + + enter(el) { + var hook = onEnter; + var afterHook = onAfterEnter; + var cancelHook = onEnterCancelled; + + if (!state.isMounted) { + if (appear) { + hook = onAppear || onEnter; + afterHook = onAfterAppear || onAfterEnter; + cancelHook = onAppearCancelled || onEnterCancelled; + } else { + return; + } + } + + var called = false; + + var done = el._enterCb = cancelled => { + if (called) return; + called = true; + + if (cancelled) { + callHook(cancelHook, [el]); + } else { + callHook(afterHook, [el]); + } + + if (hooks.delayedLeave) { + hooks.delayedLeave(); + } + + el._enterCb = undefined; + }; + + if (hook) { + hook(el, done); + + if (hook.length <= 1) { + done(); + } + } else { + done(); + } + }, + + leave(el, remove) { + var key = String(vnode.key); + + if (el._enterCb) { + el._enterCb(true + /* cancelled */ + ); + } + + if (state.isUnmounting) { + return remove(); + } + + callHook(onBeforeLeave, [el]); + var called = false; + + var done = el._leaveCb = cancelled => { + if (called) return; + called = true; + remove(); + + if (cancelled) { + callHook(onLeaveCancelled, [el]); + } else { + callHook(onAfterLeave, [el]); + } + + el._leaveCb = undefined; + + if (leavingVNodesCache[key] === vnode) { + delete leavingVNodesCache[key]; + } + }; + + leavingVNodesCache[key] = vnode; + + if (onLeave) { + onLeave(el, done); + + if (onLeave.length <= 1) { + done(); + } + } else { + done(); + } + }, + + clone(vnode) { + return resolveTransitionHooks(vnode, props, state, instance); + } + + }; + return hooks; + } // the placeholder really only handles one special case: KeepAlive + // in the case of a KeepAlive in a leave phase we need to return a KeepAlive + // placeholder with empty content to avoid the KeepAlive instance from being + // unmounted. + + + function emptyPlaceholder(vnode) { + if (isKeepAlive(vnode)) { + vnode = cloneVNode(vnode); + vnode.children = null; + return vnode; + } + } + + function getKeepAliveChild(vnode) { + return isKeepAlive(vnode) ? vnode.children ? vnode.children[0] : undefined : vnode; + } + + function setTransitionHooks(vnode, hooks) { + if (vnode.shapeFlag & 6 + /* COMPONENT */ + && vnode.component) { + setTransitionHooks(vnode.component.subTree, hooks); + } else if (vnode.shapeFlag & 128 + /* SUSPENSE */ + ) { + vnode.ssContent.transition = hooks.clone(vnode.ssContent); + vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); + } else { + vnode.transition = hooks; + } + } + + function getTransitionRawChildren(children, keepComment = false) { + var ret = []; + var keyedFragmentCount = 0; + + for (var i = 0; i < children.length; i++) { + var child = children[i]; // handle fragment children case, e.g. v-for + + if (child.type === Fragment) { + if (child.patchFlag & 128 + /* KEYED_FRAGMENT */ + ) keyedFragmentCount++; + ret = ret.concat(getTransitionRawChildren(child.children, keepComment)); + } // comment placeholders should be skipped, e.g. v-if + else if (keepComment || child.type !== Comment$1) { + ret.push(child); + } + } // #1126 if a transition children list contains multiple sub fragments, these + // fragments will be merged into a flat children array. Since each v-for + // fragment may contain different static bindings inside, we need to de-op + // these children to force full diffs to ensure correct behavior. + + + if (keyedFragmentCount > 1) { + for (var _i = 0; _i < ret.length; _i++) { + ret[_i].patchFlag = -2 + /* BAIL */ + ; + } + } + + return ret; + } // implementation, close to no-op + + + function defineComponent(options) { + return isFunction(options) ? { + setup: options, + name: options.name + } : options; + } + + var isAsyncWrapper = i => !!i.type.__asyncLoader; + + function defineAsyncComponent(source) { + if (isFunction(source)) { + source = { + loader: source + }; + } + + var { + loader, + loadingComponent, + errorComponent, + delay = 200, + timeout, + // undefined = never times out + suspensible = true, + onError: userOnError + } = source; + var pendingRequest = null; + var resolvedComp; + var retries = 0; + + var retry = () => { + retries++; + pendingRequest = null; + return load(); + }; + + var load = () => { + var thisRequest; + return pendingRequest || (thisRequest = pendingRequest = loader().catch(err => { + err = err instanceof Error ? err : new Error(String(err)); + + if (userOnError) { + return new Promise((resolve, reject) => { + var userRetry = () => resolve(retry()); + + var userFail = () => reject(err); + + userOnError(err, userRetry, userFail, retries + 1); + }); + } else { + throw err; + } + }).then(comp => { + if (thisRequest !== pendingRequest && pendingRequest) { + return pendingRequest; + } // interop module default + + + if (comp && (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) { + comp = comp.default; + } + + resolvedComp = comp; + return comp; + })); + }; + + return defineComponent({ + name: 'AsyncComponentWrapper', + __asyncLoader: load, + + get __asyncResolved() { + return resolvedComp; + }, + + setup() { + var instance = currentInstance; // already resolved + + if (resolvedComp) { + return () => createInnerComp(resolvedComp, instance); + } + + var onError = err => { + pendingRequest = null; + handleError(err, instance, 13 + /* ASYNC_COMPONENT_LOADER */ + , !errorComponent + /* do not throw in dev if user provided error component */ + ); + }; // suspense-controlled or SSR. + + + if (suspensible && instance.suspense || false) { + return load().then(comp => { + return () => createInnerComp(comp, instance); + }).catch(err => { + onError(err); + return () => errorComponent ? createVNode(errorComponent, { + error: err + }) : null; + }); + } + + var loaded = ref(false); + var error = ref(); + var delayed = ref(!!delay); + + if (delay) { + setTimeout(() => { + delayed.value = false; + }, delay); + } + + if (timeout != null) { + setTimeout(() => { + if (!loaded.value && !error.value) { + var err = new Error("Async component timed out after ".concat(timeout, "ms.")); + onError(err); + error.value = err; + } + }, timeout); + } + + load().then(() => { + loaded.value = true; + + if (instance.parent && isKeepAlive(instance.parent.vnode)) { + // parent is keep-alive, force update so the loaded component's + // name is taken into account + queueJob(instance.parent.update); + } + }).catch(err => { + onError(err); + error.value = err; + }); + return () => { + if (loaded.value && resolvedComp) { + return createInnerComp(resolvedComp, instance); + } else if (error.value && errorComponent) { + return createVNode(errorComponent, { + error: error.value + }); + } else if (loadingComponent && !delayed.value) { + return createVNode(loadingComponent); + } + }; + } + + }); + } + + function createInnerComp(comp, { + vnode: { + ref, + props, + children + } + }) { + var vnode = createVNode(comp, props, children); // ensure inner component inherits the async wrapper's ref owner + + vnode.ref = ref; + return vnode; + } + + var isKeepAlive = vnode => vnode.type.__isKeepAlive; + + var KeepAliveImpl = { + name: "KeepAlive", + // Marker for special handling inside the renderer. We are not using a === + // check directly on KeepAlive in the renderer, because importing it directly + // would prevent it from being tree-shaken. + __isKeepAlive: true, + props: { + include: [String, RegExp, Array], + exclude: [String, RegExp, Array], + max: [String, Number] + }, + + setup(props, { + slots + }) { + var instance = getCurrentInstance(); // KeepAlive communicates with the instantiated renderer via the + // ctx where the renderer passes in its internals, + // and the KeepAlive instance exposes activate/deactivate implementations. + // The whole point of this is to avoid importing KeepAlive directly in the + // renderer to facilitate tree-shaking. + + var sharedContext = instance.ctx; // if the internal renderer is not registered, it indicates that this is server-side rendering, + // for KeepAlive, we just need to render its children + + if (!sharedContext.renderer) { + return slots.default; + } + + var cache = new Map(); + var keys = new Set(); + var current = null; + var parentSuspense = instance.suspense; + var { + renderer: { + p: patch, + m: move, + um: _unmount, + o: { + createElement + } + } + } = sharedContext; + var storageContainer = createElement('div', null); // fixed by xxxxx + + sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => { + var instance = vnode.component; + move(vnode, container, anchor, 0 + /* ENTER */ + , parentSuspense); // in case props have changed + + patch(instance.vnode, vnode, container, anchor, instance, parentSuspense, isSVG, vnode.slotScopeIds, optimized); + queuePostRenderEffect(() => { + instance.isDeactivated = false; + + if (instance.a) { + invokeArrayFns(instance.a); + } + + var vnodeHook = vnode.props && vnode.props.onVnodeMounted; + + if (vnodeHook) { + invokeVNodeHook(vnodeHook, instance.parent, vnode); + } + }, parentSuspense); + }; + + sharedContext.deactivate = vnode => { + var instance = vnode.component; + move(vnode, storageContainer, null, 1 + /* LEAVE */ + , parentSuspense); + queuePostRenderEffect(() => { + if (instance.da) { + invokeArrayFns(instance.da); + } + + var vnodeHook = vnode.props && vnode.props.onVnodeUnmounted; + + if (vnodeHook) { + invokeVNodeHook(vnodeHook, instance.parent, vnode); + } + + instance.isDeactivated = true; + }, parentSuspense); + }; + + function unmount(vnode) { + // reset the shapeFlag so it can be properly unmounted + resetShapeFlag(vnode); + + _unmount(vnode, instance, parentSuspense); + } + + function pruneCache(filter) { + cache.forEach((vnode, key) => { + var name = getComponentName(vnode.type); + + if (name && (!filter || !filter(name))) { + pruneCacheEntry(key); + } + }); + } + + function pruneCacheEntry(key) { + var cached = cache.get(key); + + if (!current || cached.type !== current.type) { + unmount(cached); + } else if (current) { + // current active instance should no longer be kept-alive. + // we can't unmount it now but it might be later, so reset its flag now. + resetShapeFlag(current); + } + + cache.delete(key); + keys.delete(key); + } // prune cache on include/exclude prop change + + + watch(() => [props.include, props.exclude], ([include, exclude]) => { + include && pruneCache(name => matches(include, name)); + exclude && pruneCache(name => !matches(exclude, name)); + }, // prune post-render after `current` has been updated + { + flush: 'post', + deep: true + }); // cache sub tree after render + + var pendingCacheKey = null; + + var cacheSubtree = () => { + // fix #1621, the pendingCacheKey could be 0 + if (pendingCacheKey != null) { + cache.set(pendingCacheKey, getInnerChild(instance.subTree)); + } + }; + + onMounted(cacheSubtree); + onUpdated(cacheSubtree); + onBeforeUnmount(() => { + cache.forEach(cached => { + var { + subTree, + suspense + } = instance; + var vnode = getInnerChild(subTree); + + if (cached.type === vnode.type) { + // current instance will be unmounted as part of keep-alive's unmount + resetShapeFlag(vnode); // but invoke its deactivated hook here + + var da = vnode.component.da; + da && queuePostRenderEffect(da, suspense); + return; + } + + unmount(cached); + }); + }); + return () => { + pendingCacheKey = null; + + if (!slots.default) { + return null; + } + + var children = slots.default(); + var rawVNode = children[0]; + + if (children.length > 1) { + current = null; + return children; + } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4 + /* STATEFUL_COMPONENT */ + ) && !(rawVNode.shapeFlag & 128 + /* SUSPENSE */ + )) { + current = null; + return rawVNode; + } + + var vnode = getInnerChild(rawVNode); + var comp = vnode.type; // for async components, name check should be based in its loaded + // inner component if available + + var name = getComponentName(isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp); + var { + include, + exclude, + max + } = props; + + if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) { + current = vnode; + return rawVNode; + } + + var key = vnode.key == null ? comp : vnode.key; + var cachedVNode = cache.get(key); // clone vnode if it's reused because we are going to mutate it + + if (vnode.el) { + vnode = cloneVNode(vnode); + + if (rawVNode.shapeFlag & 128 + /* SUSPENSE */ + ) { + rawVNode.ssContent = vnode; + } + } // #1513 it's possible for the returned vnode to be cloned due to attr + // fallthrough or scopeId, so the vnode here may not be the final vnode + // that is mounted. Instead of caching it directly, we store the pending + // key and cache `instance.subTree` (the normalized vnode) in + // beforeMount/beforeUpdate hooks. + + + pendingCacheKey = key; + + if (cachedVNode) { + // copy over mounted state + vnode.el = cachedVNode.el; + vnode.component = cachedVNode.component; + + if (vnode.transition) { + // recursively update transition hooks on subTree + setTransitionHooks(vnode, vnode.transition); + } // avoid vnode being mounted as fresh + + + vnode.shapeFlag |= 512 + /* COMPONENT_KEPT_ALIVE */ + ; // make this key the freshest + + keys.delete(key); + keys.add(key); + } else { + keys.add(key); // prune oldest entry + + if (max && keys.size > parseInt(max, 10)) { + pruneCacheEntry(keys.values().next().value); + } + } // avoid vnode being unmounted + + + vnode.shapeFlag |= 256 + /* COMPONENT_SHOULD_KEEP_ALIVE */ + ; + current = vnode; + return rawVNode; + }; + } + + }; // export the public type for h/tsx inference + // also to avoid inline import() in generated d.ts files + + var KeepAlive = KeepAliveImpl; + + function matches(pattern, name) { + if (isArray(pattern)) { + return pattern.some(p => matches(p, name)); + } else if (isString(pattern)) { + return pattern.split(',').indexOf(name) > -1; + } else if (pattern.test) { + return pattern.test(name); + } + /* istanbul ignore next */ + + + return false; + } + + function onActivated(hook, target) { + registerKeepAliveHook(hook, "a" + /* ACTIVATED */ + , target); + } + + function onDeactivated(hook, target) { + registerKeepAliveHook(hook, "da" + /* DEACTIVATED */ + , target); + } + + function registerKeepAliveHook(hook, type, target = currentInstance) { + // cache the deactivate branch check wrapper for injected hooks so the same + // hook can be properly deduped by the scheduler. "__wdc" stands for "with + // deactivation check". + var wrappedHook = hook.__wdc || (hook.__wdc = () => { + // only fire the hook if the target instance is NOT in a deactivated branch. + var current = target; + + while (current) { + if (current.isDeactivated) { + return; + } + + current = current.parent; + } + + hook(); + }); + + injectHook(type, wrappedHook, target); // In addition to registering it on the target instance, we walk up the parent + // chain and register it on all ancestor instances that are keep-alive roots. + // This avoids the need to walk the entire component tree when invoking these + // hooks, and more importantly, avoids the need to track child components in + // arrays. + + if (target) { + var current = target.parent; + + while (current && current.parent) { + if (isKeepAlive(current.parent.vnode)) { + injectToKeepAliveRoot(wrappedHook, type, target, current); + } + + current = current.parent; + } + } + } + + function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { + // injectHook wraps the original for error handling, so make sure to remove + // the wrapped version. + var injected = injectHook(type, hook, keepAliveRoot, true + /* prepend */ + ); + onUnmounted(() => { + remove(keepAliveRoot[type], injected); + }, target); + } + + function resetShapeFlag(vnode) { + var shapeFlag = vnode.shapeFlag; + + if (shapeFlag & 256 + /* COMPONENT_SHOULD_KEEP_ALIVE */ + ) { + shapeFlag -= 256 + /* COMPONENT_SHOULD_KEEP_ALIVE */ + ; + } + + if (shapeFlag & 512 + /* COMPONENT_KEPT_ALIVE */ + ) { + shapeFlag -= 512 + /* COMPONENT_KEPT_ALIVE */ + ; + } + + vnode.shapeFlag = shapeFlag; + } + + function getInnerChild(vnode) { + return vnode.shapeFlag & 128 + /* SUSPENSE */ + ? vnode.ssContent : vnode; + } + + function injectHook(type, hook, target = currentInstance, prepend = false) { + if (target) { + // fixed by xxxxxx + if (isRootHook(type)) { + target = target.root; + } + + var { + __page_container__ + } = target.root.vnode; // 仅限 App 端 + + if (__page_container__) { + __page_container__.onInjectHook(type); + } + + var hooks = target[type] || (target[type] = []); // cache the error handling wrapper for injected hooks so the same hook + // can be properly deduped by the scheduler. "__weh" stands for "with error + // handling". + + var wrappedHook = hook.__weh || (hook.__weh = (...args) => { + if (target.isUnmounted) { + return; + } // disable tracking inside all lifecycle hooks + // since they can potentially be called inside effects. + + + pauseTracking(); // Set currentInstance during hook invocation. + // This assumes the hook does not synchronously trigger other hooks, which + // can only be false when the user does something really funky. + + setCurrentInstance(target); + var res = callWithAsyncErrorHandling(hook, target, type, args); + setCurrentInstance(null); + resetTracking(); + return res; + }); + + if (prepend) { + hooks.unshift(wrappedHook); + } else { + hooks.push(wrappedHook); + } + + return wrappedHook; + } + } + + var createHook = lifecycle => (hook, target = currentInstance) => // post-create lifecycle registrations are noops during SSR (except for serverPrefetch) + (!isInSSRComponentSetup || lifecycle === "sp" + /* SERVER_PREFETCH */ + ) && injectHook(lifecycle, hook, target); + + var onBeforeMount = createHook("bm" + /* BEFORE_MOUNT */ + ); + var onMounted = createHook("m" + /* MOUNTED */ + ); + var onBeforeUpdate = createHook("bu" + /* BEFORE_UPDATE */ + ); + var onUpdated = createHook("u" + /* UPDATED */ + ); + var onBeforeUnmount = createHook("bum" + /* BEFORE_UNMOUNT */ + ); + var onUnmounted = createHook("um" + /* UNMOUNTED */ + ); + var onServerPrefetch = createHook("sp" + /* SERVER_PREFETCH */ + ); + var onRenderTriggered = createHook("rtg" + /* RENDER_TRIGGERED */ + ); + var onRenderTracked = createHook("rtc" + /* RENDER_TRACKED */ + ); + + function onErrorCaptured(hook, target = currentInstance) { + injectHook("ec" + /* ERROR_CAPTURED */ + , hook, target); + } + + var shouldCacheAccess = true; + + function applyOptions(instance) { + var options = resolveMergedOptions(instance); + var publicThis = instance.proxy; + var ctx = instance.ctx; // do not cache property access on public proxy during state initialization + + shouldCacheAccess = false; // call beforeCreate first before accessing other options since + // the hook may mutate resolved options (#2791) + + if (options.beforeCreate) { + callHook(options.beforeCreate, instance, "bc" + /* BEFORE_CREATE */ + ); + } + + var { + // state + data: dataOptions, + computed: computedOptions, + methods, + watch: watchOptions, + provide: provideOptions, + inject: injectOptions, + // lifecycle + created, + beforeMount, + mounted, + beforeUpdate, + updated, + activated, + deactivated, + beforeDestroy, + beforeUnmount, + destroyed, + unmounted, + render, + renderTracked, + renderTriggered, + errorCaptured, + serverPrefetch, + // public API + expose, + inheritAttrs, + // assets + components, + directives, + filters + } = options; + var checkDuplicateProperties = null; // options initialization order (to be consistent with Vue 2): + // - props (already done outside of this function) + // - inject + // - methods + // - data (deferred since it relies on `this` access) + // - computed + // - watch (deferred since it relies on `this` access) + + if (injectOptions) { + resolveInjections(injectOptions, ctx, checkDuplicateProperties); + } + + if (methods) { + for (var key in methods) { + var methodHandler = methods[key]; + + if (isFunction(methodHandler)) { + // In dev mode, we use the `createRenderContext` function to define methods to the proxy target, + // and those are read-only but reconfigurable, so it needs to be redefined here + { + ctx[key] = methodHandler.bind(publicThis); + } + } + } + } + + if (dataOptions) { + var data = dataOptions.call(publicThis, publicThis); + if (!isObject(data)) ;else { + instance.data = reactive(data); + } + } // state initialization complete at this point - start caching access + + + shouldCacheAccess = true; + + if (computedOptions) { + var _loop = function (_key2) { + var opt = computedOptions[_key2]; + var get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP; + var set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : NOOP; + var c = computed$1({ + get, + set + }); + Object.defineProperty(ctx, _key2, { + enumerable: true, + configurable: true, + get: () => c.value, + set: v => c.value = v + }); + }; + + for (var _key2 in computedOptions) { + _loop(_key2); + } + } + + if (watchOptions) { + for (var _key3 in watchOptions) { + createWatcher(watchOptions[_key3], ctx, publicThis, _key3); + } + } + + if (provideOptions) { + var provides = isFunction(provideOptions) ? provideOptions.call(publicThis) : provideOptions; + Reflect.ownKeys(provides).forEach(key => { + provide(key, provides[key]); + }); + } + + if (created) { + callHook(created, instance, "c" + /* CREATED */ + ); + } + + function registerLifecycleHook(register, hook) { + if (isArray(hook)) { + hook.forEach(_hook => register(_hook.bind(publicThis))); + } else if (hook) { + register(hook.bind(publicThis)); + } + } + + registerLifecycleHook(onBeforeMount, beforeMount); + registerLifecycleHook(onMounted, mounted); + registerLifecycleHook(onBeforeUpdate, beforeUpdate); + registerLifecycleHook(onUpdated, updated); + registerLifecycleHook(onActivated, activated); + registerLifecycleHook(onDeactivated, deactivated); + registerLifecycleHook(onErrorCaptured, errorCaptured); + registerLifecycleHook(onRenderTracked, renderTracked); + registerLifecycleHook(onRenderTriggered, renderTriggered); + registerLifecycleHook(onBeforeUnmount, beforeUnmount); + registerLifecycleHook(onUnmounted, unmounted); + registerLifecycleHook(onServerPrefetch, serverPrefetch); + + if (isArray(expose)) { + if (expose.length) { + var exposed = instance.exposed || (instance.exposed = {}); + expose.forEach(key => { + Object.defineProperty(exposed, key, { + get: () => publicThis[key], + set: val => publicThis[key] = val + }); + }); + } else if (!instance.exposed) { + instance.exposed = {}; + } + } // options that are handled when creating the instance but also need to be + // applied from mixins + + + if (render && instance.render === NOOP) { + instance.render = render; + } + + if (inheritAttrs != null) { + instance.inheritAttrs = inheritAttrs; + } // asset options. + + + if (components) instance.components = components; + if (directives) instance.directives = directives; // fixed by xxxxxx + + var customApplyOptions = instance.appContext.config.globalProperties.$applyOptions; + + if (customApplyOptions) { + customApplyOptions(options, instance, publicThis); + } + } + + function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP) { + if (isArray(injectOptions)) { + injectOptions = normalizeInject(injectOptions); + } + + for (var key in injectOptions) { + var opt = injectOptions[key]; + + if (isObject(opt)) { + if ('default' in opt) { + ctx[key] = inject(opt.from || key, opt.default, true + /* treat default function as factory */ + ); + } else { + ctx[key] = inject(opt.from || key); + } + } else { + ctx[key] = inject(opt); + } + } + } + + function callHook(hook, instance, type) { + callWithAsyncErrorHandling(isArray(hook) ? hook.map(h => h.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type); + } + + function createWatcher(raw, ctx, publicThis, key) { + var getter = key.includes('.') ? createPathGetter(publicThis, key) : () => publicThis[key]; + + if (isString(raw)) { + var handler = ctx[raw]; + + if (isFunction(handler)) { + watch(getter, handler); + } + } else if (isFunction(raw)) { + watch(getter, raw.bind(publicThis)); + } else if (isObject(raw)) { + if (isArray(raw)) { + raw.forEach(r => createWatcher(r, ctx, publicThis, key)); + } else { + var _handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler]; + + if (isFunction(_handler)) { + watch(getter, _handler, raw); + } + } + } else ; + } + /** + * Resolve merged options and cache it on the component. + * This is done only once per-component since the merging does not involve + * instances. + */ + + + function resolveMergedOptions(instance) { + var base = instance.type; + var { + mixins, + extends: extendsOptions + } = base; + var { + mixins: globalMixins, + optionsCache: cache, + config: { + optionMergeStrategies + } + } = instance.appContext; + var cached = cache.get(base); + var resolved; + + if (cached) { + resolved = cached; + } else if (!globalMixins.length && !mixins && !extendsOptions) { + { + resolved = base; + } + } else { + resolved = {}; + + if (globalMixins.length) { + globalMixins.forEach(m => mergeOptions(resolved, m, optionMergeStrategies, true)); + } + + mergeOptions(resolved, base, optionMergeStrategies); + } + + cache.set(base, resolved); + return resolved; + } + + function mergeOptions(to, from, strats, asMixin = false) { + var { + mixins, + extends: extendsOptions + } = from; + + if (extendsOptions) { + mergeOptions(to, extendsOptions, strats, true); + } + + if (mixins) { + mixins.forEach(m => mergeOptions(to, m, strats, true)); + } + + for (var key in from) { + if (asMixin && key === 'expose') ;else { + var strat = internalOptionMergeStrats[key] || strats && strats[key]; + to[key] = strat ? strat(to[key], from[key]) : from[key]; + } + } + + return to; + } + + var internalOptionMergeStrats = { + data: mergeDataFn, + props: mergeObjectOptions, + emits: mergeObjectOptions, + // objects + methods: mergeObjectOptions, + computed: mergeObjectOptions, + // lifecycle + beforeCreate: mergeAsArray, + created: mergeAsArray, + beforeMount: mergeAsArray, + mounted: mergeAsArray, + beforeUpdate: mergeAsArray, + updated: mergeAsArray, + beforeDestroy: mergeAsArray, + destroyed: mergeAsArray, + activated: mergeAsArray, + deactivated: mergeAsArray, + errorCaptured: mergeAsArray, + serverPrefetch: mergeAsArray, + // assets + components: mergeObjectOptions, + directives: mergeObjectOptions, + // watch + watch: mergeWatchOptions, + // provide / inject + provide: mergeDataFn, + inject: mergeInject + }; + + function mergeDataFn(to, from) { + if (!from) { + return to; + } + + if (!to) { + return from; + } + + return function mergedDataFn() { + return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from); + }; + } + + function mergeInject(to, from) { + return mergeObjectOptions(normalizeInject(to), normalizeInject(from)); + } + + function normalizeInject(raw) { + if (isArray(raw)) { + var res = {}; + + for (var i = 0; i < raw.length; i++) { + res[raw[i]] = raw[i]; + } + + return res; + } + + return raw; + } + + function mergeAsArray(to, from) { + return to ? [...new Set([].concat(to, from))] : from; + } + + function mergeObjectOptions(to, from) { + return to ? extend(extend(Object.create(null), to), from) : from; + } + + function mergeWatchOptions(to, from) { + if (!to) return from; + if (!from) return to; + var merged = extend(Object.create(null), to); + + for (var key in from) { + merged[key] = mergeAsArray(to[key], from[key]); + } + + return merged; + } + + function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison + isSSR = false) { + var props = {}; + var attrs = {}; + def(attrs, InternalObjectKey, 1); + instance.propsDefaults = Object.create(null); + setFullProps(instance, rawProps, props, attrs); // ensure all declared prop keys are present + + for (var key in instance.propsOptions[0]) { + if (!(key in props)) { + props[key] = undefined; + } + } + + if (isStateful) { + // stateful + instance.props = isSSR ? props : shallowReactive(props); + } else { + if (!instance.type.props) { + // functional w/ optional props, props === attrs + instance.props = attrs; + } else { + // functional w/ declared props + instance.props = props; + } + } + + instance.attrs = attrs; + } + + function updateProps(instance, rawProps, rawPrevProps, optimized) { + var { + props, + attrs, + vnode: { + patchFlag + } + } = instance; + var rawCurrentProps = toRaw(props); + var [options] = instance.propsOptions; + var hasAttrsChanged = false; + + if ( // always force full diff in dev + // - #1942 if hmr is enabled with sfc component + // - vite#872 non-sfc component used by sfc component + (optimized || patchFlag > 0) && !(patchFlag & 16 + /* FULL_PROPS */ + )) { + if (patchFlag & 8 + /* PROPS */ + ) { + // Compiler-generated props & no keys change, just set the updated + // the props. + var propsToUpdate = instance.vnode.dynamicProps; + + for (var i = 0; i < propsToUpdate.length; i++) { + var key = propsToUpdate[i]; // PROPS flag guarantees rawProps to be non-null + + var value = rawProps[key]; + + if (options) { + // attr / props separation was done on init and will be consistent + // in this code path, so just check if attrs have it. + if (hasOwn(attrs, key)) { + if (value !== attrs[key]) { + attrs[key] = value; + hasAttrsChanged = true; + } + } else { + var camelizedKey = camelize(key); + props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false + /* isAbsent */ + ); + } + } else { + if (value !== attrs[key]) { + attrs[key] = value; + hasAttrsChanged = true; + } + } + } + } + } else { + // full props update. + if (setFullProps(instance, rawProps, props, attrs)) { + hasAttrsChanged = true; + } // in case of dynamic props, check if we need to delete keys from + // the props object + + + var kebabKey; + + for (var _key4 in rawCurrentProps) { + if (!rawProps || !hasOwn(rawProps, _key4) && ((kebabKey = hyphenate(_key4)) === _key4 || !hasOwn(rawProps, kebabKey))) { + if (options) { + if (rawPrevProps && (rawPrevProps[_key4] !== undefined || // for kebab-case + rawPrevProps[kebabKey] !== undefined)) { + props[_key4] = resolvePropValue(options, rawCurrentProps, _key4, undefined, instance, true + /* isAbsent */ + ); + } + } else { + delete props[_key4]; + } + } + } // in the case of functional component w/o props declaration, props and + // attrs point to the same object so it should already have been updated. + + + if (attrs !== rawCurrentProps) { + for (var _key5 in attrs) { + if (!rawProps || !hasOwn(rawProps, _key5)) { + delete attrs[_key5]; + hasAttrsChanged = true; + } + } + } + } // trigger updates for $attrs in case it's used in component slots + + + if (hasAttrsChanged) { + trigger(instance, "set" + /* SET */ + , '$attrs'); + } + } + + function setFullProps(instance, rawProps, props, attrs) { + var [options, needCastKeys] = instance.propsOptions; + var hasAttrsChanged = false; + var rawCastValues; + + if (rawProps) { + for (var key in rawProps) { + // key, ref are reserved and never passed down + if (isReservedProp(key)) { + continue; + } + + var value = rawProps[key]; // prop option names are camelized during normalization, so to support + // kebab -> camel conversion here we need to camelize the key. + + var camelKey = void 0; + + if (options && hasOwn(options, camelKey = camelize(key))) { + if (!needCastKeys || !needCastKeys.includes(camelKey)) { + props[camelKey] = value; + } else { + (rawCastValues || (rawCastValues = {}))[camelKey] = value; + } + } else if (!isEmitListener(instance.emitsOptions, key)) { + if (value !== attrs[key]) { + attrs[key] = value; + hasAttrsChanged = true; + } + } + } + } + + if (needCastKeys) { + var rawCurrentProps = toRaw(props); + var castValues = rawCastValues || EMPTY_OBJ; + + for (var i = 0; i < needCastKeys.length; i++) { + var _key6 = needCastKeys[i]; + props[_key6] = resolvePropValue(options, rawCurrentProps, _key6, castValues[_key6], instance, !hasOwn(castValues, _key6)); + } + } + + return hasAttrsChanged; + } + + function resolvePropValue(options, props, key, value, instance, isAbsent) { + var opt = options[key]; + + if (opt != null) { + var hasDefault = hasOwn(opt, 'default'); // default values + + if (hasDefault && value === undefined) { + var defaultValue = opt.default; + + if (opt.type !== Function && isFunction(defaultValue)) { + var { + propsDefaults + } = instance; + + if (key in propsDefaults) { + value = propsDefaults[key]; + } else { + setCurrentInstance(instance); + value = propsDefaults[key] = defaultValue.call(null, props); + setCurrentInstance(null); + } + } else { + value = defaultValue; + } + } // boolean casting + + + if (opt[0 + /* shouldCast */ + ]) { + if (isAbsent && !hasDefault) { + value = false; + } else if (opt[1 + /* shouldCastTrue */ + ] && (value === '' || value === hyphenate(key))) { + value = true; + } + } + } + + return value; + } + + function normalizePropsOptions(comp, appContext, asMixin = false) { + var cache = appContext.propsCache; + var cached = cache.get(comp); + + if (cached) { + return cached; + } + + var raw = comp.props; + var normalized = {}; + var needCastKeys = []; // apply mixin/extends props + + var hasExtends = false; + + if (!isFunction(comp)) { + var extendProps = raw => { + hasExtends = true; + var [props, keys] = normalizePropsOptions(raw, appContext, true); + extend(normalized, props); + if (keys) needCastKeys.push(...keys); + }; + + if (!asMixin && appContext.mixins.length) { + appContext.mixins.forEach(extendProps); + } + + if (comp.extends) { + extendProps(comp.extends); + } + + if (comp.mixins) { + comp.mixins.forEach(extendProps); + } + } + + if (!raw && !hasExtends) { + cache.set(comp, EMPTY_ARR); + return EMPTY_ARR; + } + + if (isArray(raw)) { + for (var i = 0; i < raw.length; i++) { + var normalizedKey = camelize(raw[i]); + + if (validatePropName(normalizedKey)) { + normalized[normalizedKey] = EMPTY_OBJ; + } + } + } else if (raw) { + for (var key in raw) { + var _normalizedKey = camelize(key); + + if (validatePropName(_normalizedKey)) { + var opt = raw[key]; + var prop = normalized[_normalizedKey] = isArray(opt) || isFunction(opt) ? { + type: opt + } : opt; + + if (prop) { + var booleanIndex = getTypeIndex(Boolean, prop.type); + var stringIndex = getTypeIndex(String, prop.type); + prop[0 + /* shouldCast */ + ] = booleanIndex > -1; + prop[1 + /* shouldCastTrue */ + ] = stringIndex < 0 || booleanIndex < stringIndex; // if the prop needs boolean casting or default value + + if (booleanIndex > -1 || hasOwn(prop, 'default')) { + needCastKeys.push(_normalizedKey); + } + } + } + } + } + + var res = [normalized, needCastKeys]; + cache.set(comp, res); + return res; + } + + function validatePropName(key) { + if (key[0] !== '$') { + return true; + } + + return false; + } // use function string name to check type constructors + // so that it works across vms / iframes. + + + function getType(ctor) { + var match = ctor && ctor.toString().match(/^\s*function (\w+)/); + return match ? match[1] : ''; + } + + function isSameType(a, b) { + return getType(a) === getType(b); + } + + function getTypeIndex(type, expectedTypes) { + if (isArray(expectedTypes)) { + return expectedTypes.findIndex(t => isSameType(t, type)); + } else if (isFunction(expectedTypes)) { + return isSameType(expectedTypes, type) ? 0 : -1; + } + + return -1; + } + + var isInternalKey = key => key[0] === '_' || key === '$stable'; + + var normalizeSlotValue = value => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)]; + + var normalizeSlot = (key, rawSlot, ctx) => { + var normalized = withCtx(props => { + return normalizeSlotValue(rawSlot(props)); + }, ctx); + normalized._c = false; + return normalized; + }; + + var normalizeObjectSlots = (rawSlots, slots, instance) => { + var ctx = rawSlots._ctx; + + for (var key in rawSlots) { + if (isInternalKey(key)) continue; + var value = rawSlots[key]; + + if (isFunction(value)) { + slots[key] = normalizeSlot(key, value, ctx); + } else if (value != null) { + (function () { + var normalized = normalizeSlotValue(value); + + slots[key] = () => normalized; + })(); + } + } + }; + + var normalizeVNodeSlots = (instance, children) => { + var normalized = normalizeSlotValue(children); + + instance.slots.default = () => normalized; + }; + + var initSlots = (instance, children) => { + if (instance.vnode.shapeFlag & 32 + /* SLOTS_CHILDREN */ + ) { + var type = children._; + + if (type) { + // users can get the shallow readonly version of the slots object through `this.$slots`, + // we should avoid the proxy object polluting the slots of the internal instance + instance.slots = toRaw(children); // make compiler marker non-enumerable + + def(children, '_', type); + } else { + normalizeObjectSlots(children, instance.slots = {}); + } + } else { + instance.slots = {}; + + if (children) { + normalizeVNodeSlots(instance, children); + } + } + + def(instance.slots, InternalObjectKey, 1); + }; + + var updateSlots = (instance, children, optimized) => { + var { + vnode, + slots + } = instance; + var needDeletionCheck = true; + var deletionComparisonTarget = EMPTY_OBJ; + + if (vnode.shapeFlag & 32 + /* SLOTS_CHILDREN */ + ) { + var type = children._; + + if (type) { + // compiled slots. + if (optimized && type === 1 + /* STABLE */ + ) { + // compiled AND stable. + // no need to update, and skip stale slots removal. + needDeletionCheck = false; + } else { + // compiled but dynamic (v-if/v-for on slots) - update slots, but skip + // normalization. + extend(slots, children); // #2893 + // when rendering the optimized slots by manually written render function, + // we need to delete the `slots._` flag if necessary to make subsequent updates reliable, + // i.e. let the `renderSlot` create the bailed Fragment + + if (!optimized && type === 1 + /* STABLE */ + ) { + delete slots._; + } + } + } else { + needDeletionCheck = !children.$stable; + normalizeObjectSlots(children, slots); + } + + deletionComparisonTarget = children; + } else if (children) { + // non slot object children (direct value) passed to a component + normalizeVNodeSlots(instance, children); + deletionComparisonTarget = { + default: 1 + }; + } // delete stale slots + + + if (needDeletionCheck) { + for (var key in slots) { + if (!isInternalKey(key) && !(key in deletionComparisonTarget)) { + delete slots[key]; + } + } + } + }; + /** + * Adds directives to a VNode. + */ + + + function withDirectives(vnode, directives) { + var internalInstance = currentRenderingInstance; + + if (internalInstance === null) { + return vnode; + } + + var instance = internalInstance.proxy; + var bindings = vnode.dirs || (vnode.dirs = []); + + for (var i = 0; i < directives.length; i++) { + var [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i]; + + if (isFunction(dir)) { + dir = { + mounted: dir, + updated: dir + }; + } + + bindings.push({ + dir, + instance, + value, + oldValue: void 0, + arg, + modifiers + }); + } + + return vnode; + } + + function invokeDirectiveHook(vnode, prevVNode, instance, name) { + var bindings = vnode.dirs; + var oldBindings = prevVNode && prevVNode.dirs; + + for (var i = 0; i < bindings.length; i++) { + var binding = bindings[i]; + + if (oldBindings) { + binding.oldValue = oldBindings[i].value; + } + + var hook = binding.dir[name]; + + if (hook) { + // disable tracking inside all lifecycle hooks + // since they can potentially be called inside effects. + pauseTracking(); + callWithAsyncErrorHandling(hook, instance, 8 + /* DIRECTIVE_HOOK */ + , [vnode.el, binding, vnode, prevVNode]); + resetTracking(); + } + } + } + + function createAppContext() { + return { + app: null, + config: { + isNativeTag: NO, + performance: false, + globalProperties: {}, + optionMergeStrategies: {}, + errorHandler: undefined, + warnHandler: undefined, + compilerOptions: {} + }, + mixins: [], + components: {}, + directives: {}, + provides: Object.create(null), + optionsCache: new WeakMap(), + propsCache: new WeakMap(), + emitsCache: new WeakMap() + }; + } + + var uid$1 = 0; + + function createAppAPI(render, hydrate) { + return function createApp(rootComponent, rootProps = null) { + if (rootProps != null && !isObject(rootProps)) { + rootProps = null; + } + + var context = createAppContext(); + var installedPlugins = new Set(); + var isMounted = false; + var app = context.app = { + _uid: uid$1++, + _component: rootComponent, + _props: rootProps, + _container: null, + _context: context, + _instance: null, + version, + + get config() { + return context.config; + }, + + set config(v) {}, + + use(plugin, ...options) { + if (installedPlugins.has(plugin)) ;else if (plugin && isFunction(plugin.install)) { + installedPlugins.add(plugin); + plugin.install(app, ...options); + } else if (isFunction(plugin)) { + installedPlugins.add(plugin); + plugin(app, ...options); + } else ; + return app; + }, + + mixin(mixin) { + { + if (!context.mixins.includes(mixin)) { + context.mixins.push(mixin); + } + } + return app; + }, + + component(name, component) { + if (!component) { + return context.components[name]; + } + + context.components[name] = component; + return app; + }, + + directive(name, directive) { + if (!directive) { + return context.directives[name]; + } + + context.directives[name] = directive; + return app; + }, + + mount(rootContainer, isHydrate, isSVG) { + if (!isMounted) { + var vnode = createVNode(rootComponent, rootProps); // store app context on the root VNode. + // this will be set on the root instance on initial mount. + + vnode.appContext = context; + + if (isHydrate && hydrate) { + hydrate(vnode, rootContainer); + } else { + render(vnode, rootContainer, isSVG); + } + + isMounted = true; + app._container = rootContainer; + rootContainer.__vue_app__ = app; + return vnode.component.proxy; + } + }, + + unmount() { + if (isMounted) { + render(null, app._container); + delete app._container.__vue_app__; + } + }, + + provide(key, value) { + // TypeScript doesn't allow symbols as index type + // https://github.com/Microsoft/TypeScript/issues/24587 + context.provides[key] = value; + return app; + } + + }; + return app; + }; + } + + var hasMismatch = false; + + var isSVGContainer = container => /svg/.test(container.namespaceURI) && container.tagName !== 'foreignObject'; + + var isComment = node => node.nodeType === 8 + /* COMMENT */ + ; // Note: hydration is DOM-specific + // But we have to place it in core due to tight coupling with core - splitting + // it out creates a ton of unnecessary complexity. + // Hydration also depends on some renderer internal logic which needs to be + // passed in via arguments. + + + function createHydrationFunctions(rendererInternals) { + var { + mt: mountComponent, + p: patch, + o: { + patchProp, + nextSibling, + parentNode, + remove, + insert, + createComment + } + } = rendererInternals; + + var hydrate = (vnode, container) => { + if (!container.hasChildNodes()) { + patch(null, vnode, container); + flushPostFlushCbs(); + return; + } + + hasMismatch = false; + hydrateNode(container.firstChild, vnode, null, null, null); + flushPostFlushCbs(); + + if (hasMismatch && !false) { + // this error should show up in production + console.error("Hydration completed but contains mismatches."); + } + }; + + var hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => { + var isFragmentStart = isComment(node) && node.data === '['; + + var onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart); + + var { + type, + ref, + shapeFlag + } = vnode; + var domType = node.nodeType; + vnode.el = node; + var nextNode = null; + + switch (type) { + case Text: + if (domType !== 3 + /* TEXT */ + ) { + nextNode = onMismatch(); + } else { + if (node.data !== vnode.children) { + hasMismatch = true; + node.data = vnode.children; + } + + nextNode = nextSibling(node); + } + + break; + + case Comment$1: + if (domType !== 8 + /* COMMENT */ + || isFragmentStart) { + nextNode = onMismatch(); + } else { + nextNode = nextSibling(node); + } + + break; + + case Static: + if (domType !== 1 + /* ELEMENT */ + ) { + nextNode = onMismatch(); + } else { + // determine anchor, adopt content + nextNode = node; // if the static vnode has its content stripped during build, + // adopt it from the server-rendered HTML. + + var needToAdoptContent = !vnode.children.length; + + for (var i = 0; i < vnode.staticCount; i++) { + if (needToAdoptContent) vnode.children += nextNode.outerHTML; + + if (i === vnode.staticCount - 1) { + vnode.anchor = nextNode; + } + + nextNode = nextSibling(nextNode); + } + + return nextNode; + } + + break; + + case Fragment: + if (!isFragmentStart) { + nextNode = onMismatch(); + } else { + nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized); + } + + break; + + default: + if (shapeFlag & 1 + /* ELEMENT */ + ) { + if (domType !== 1 + /* ELEMENT */ + || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) { + nextNode = onMismatch(); + } else { + nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized); + } + } else if (shapeFlag & 6 + /* COMPONENT */ + ) { + // when setting up the render effect, if the initial vnode already + // has .el set, the component will perform hydration instead of mount + // on its sub-tree. + vnode.slotScopeIds = slotScopeIds; + var container = parentNode(node); + mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized); // component may be async, so in the case of fragments we cannot rely + // on component's rendered output to determine the end of the fragment + // instead, we do a lookahead to find the end anchor node. + + nextNode = isFragmentStart ? locateClosingAsyncAnchor(node) : nextSibling(node); // #3787 + // if component is async, it may get moved / unmounted before its + // inner component is loaded, so we need to give it a placeholder + // vnode that matches its adopted DOM. + + if (isAsyncWrapper(vnode)) { + var subTree; + + if (isFragmentStart) { + subTree = createVNode(Fragment); + subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild; + } else { + subTree = node.nodeType === 3 ? createTextVNode('') : createVNode('div'); + } + + subTree.el = node; + vnode.component.subTree = subTree; + } + } else if (shapeFlag & 64 + /* TELEPORT */ + ) { + if (domType !== 8 + /* COMMENT */ + ) { + nextNode = onMismatch(); + } else { + nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren); + } + } else if (shapeFlag & 128 + /* SUSPENSE */ + ) { + nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode); + } else ; + + } + + if (ref != null) { + setRef(ref, null, parentSuspense, vnode); + } + + return nextNode; + }; + + var hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { + optimized = optimized || !!vnode.dynamicChildren; + var { + type, + props, + patchFlag, + shapeFlag, + dirs + } = vnode; // #4006 for form elements with non-string v-model value bindings + // e.g. <option :value="obj">, <input type="checkbox" :true-value="1"> + + var forcePatchValue = type === 'input' && dirs || type === 'option'; // skip props & children if this is hoisted static nodes + + if (forcePatchValue || patchFlag !== -1 + /* HOISTED */ + ) { + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, 'created'); + } // props + + + if (props) { + if (forcePatchValue || !optimized || patchFlag & 16 + /* FULL_PROPS */ + || patchFlag & 32 + /* HYDRATE_EVENTS */ + ) { + for (var key in props) { + if (forcePatchValue && key.endsWith('value') || isOn(key) && !isReservedProp(key)) { + patchProp(el, key, null, props[key]); + } + } + } else if (props.onClick) { + // Fast path for click listeners (which is most often) to avoid + // iterating through props. + patchProp(el, 'onClick', null, props.onClick); + } + } // vnode / directive hooks + + + var vnodeHooks; + + if (vnodeHooks = props && props.onVnodeBeforeMount) { + invokeVNodeHook(vnodeHooks, parentComponent, vnode); + } + + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount'); + } + + if ((vnodeHooks = props && props.onVnodeMounted) || dirs) { + queueEffectWithSuspense(() => { + vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode); + dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted'); + }, parentSuspense); + } // children + + + if (shapeFlag & 16 + /* ARRAY_CHILDREN */ + && // skip if element has innerHTML / textContent + !(props && (props.innerHTML || props.textContent))) { + var next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized); + + while (next) { + hasMismatch = true; // The SSRed DOM contains more nodes than it should. Remove them. + + var cur = next; + next = next.nextSibling; + remove(cur); + } + } else if (shapeFlag & 8 + /* TEXT_CHILDREN */ + ) { + if (el.textContent !== vnode.children) { + hasMismatch = true; + el.textContent = vnode.children; + } + } + } + + return el.nextSibling; + }; + + var hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => { + optimized = optimized || !!parentVNode.dynamicChildren; + var children = parentVNode.children; + var l = children.length; + + for (var i = 0; i < l; i++) { + var vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]); + + if (node) { + node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized); + } else if (vnode.type === Text && !vnode.children) { + continue; + } else { + hasMismatch = true; // the SSRed DOM didn't contain enough nodes. Mount the missing ones. + + patch(null, vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds); + } + } + + return node; + }; + + var hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { + var { + slotScopeIds: fragmentSlotScopeIds + } = vnode; + + if (fragmentSlotScopeIds) { + slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; + } + + var container = parentNode(node); + var next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized); + + if (next && isComment(next) && next.data === ']') { + return nextSibling(vnode.anchor = next); + } else { + // fragment didn't hydrate successfully, since we didn't get a end anchor + // back. This should have led to node/children mismatch warnings. + hasMismatch = true; // since the anchor is missing, we need to create one and insert it + + insert(vnode.anchor = createComment("]", container), container, next); // fixed by xxxxxx + + return next; + } + }; + + var handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => { + hasMismatch = true; + vnode.el = null; + + if (isFragment) { + // remove excessive fragment nodes + var end = locateClosingAsyncAnchor(node); + + while (true) { + var _next = nextSibling(node); + + if (_next && _next !== end) { + remove(_next); + } else { + break; + } + } + } + + var next = nextSibling(node); + var container = parentNode(node); + remove(node); + patch(null, vnode, container, next, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds); + return next; + }; + + var locateClosingAsyncAnchor = node => { + var match = 0; + + while (node) { + node = nextSibling(node); + + if (node && isComment(node)) { + if (node.data === '[') match++; + + if (node.data === ']') { + if (match === 0) { + return nextSibling(node); + } else { + match--; + } + } + } + } + + return node; + }; + + return [hydrate, hydrateNode]; + } + + var prodEffectOptions = { + scheduler: queueJob, + // #1801, #2043 component render effects should allow recursive updates + allowRecurse: true + }; + var queuePostRenderEffect = queueEffectWithSuspense; + + var setRef = (rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) => { + if (isArray(rawRef)) { + rawRef.forEach((r, i) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount)); + return; + } + + if (isAsyncWrapper(vnode) && !isUnmount) { + // when mounting async components, nothing needs to be done, + // because the template ref is forwarded to inner component + return; + } + + var refValue = vnode.shapeFlag & 4 + /* STATEFUL_COMPONENT */ + ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; + var value = isUnmount ? null : refValue; + var { + i: owner, + r: ref + } = rawRef; + var oldRef = oldRawRef && oldRawRef.r; + var refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; + var setupState = owner.setupState; // dynamic ref changed. unset old ref + + if (oldRef != null && oldRef !== ref) { + if (isString(oldRef)) { + refs[oldRef] = null; + + if (hasOwn(setupState, oldRef)) { + setupState[oldRef] = null; + } + } else if (isRef(oldRef)) { + oldRef.value = null; + } + } + + if (isString(ref)) { + var doSet = () => { + { + refs[ref] = value; + } + + if (hasOwn(setupState, ref)) { + setupState[ref] = value; + } + }; // #1789: for non-null values, set them after render + // null values means this is unmount and it should not overwrite another + // ref with the same key + + + if (value) { + doSet.id = -1; + queuePostRenderEffect(doSet, parentSuspense); + } else { + doSet(); + } + } else if (isRef(ref)) { + var _doSet = () => { + ref.value = value; + }; + + if (value) { + _doSet.id = -1; + queuePostRenderEffect(_doSet, parentSuspense); + } else { + _doSet(); + } + } else if (isFunction(ref)) { + callWithErrorHandling(ref, owner, 12 + /* FUNCTION_REF */ + , [value, refs]); + } else ; + }; + /** + * The createRenderer function accepts two generic arguments: + * HostNode and HostElement, corresponding to Node and Element types in the + * host environment. For example, for runtime-dom, HostNode would be the DOM + * `Node` interface and HostElement would be the DOM `Element` interface. + * + * Custom renderers can pass in the platform specific types like this: + * + * ``` js + * const { render, createApp } = createRenderer<Node, Element>({ + * patchProp, + * ...nodeOps + * }) + * ``` + */ + + + function createRenderer(options) { + return baseCreateRenderer(options); + } // Separate API for creating hydration-enabled renderer. + // Hydration logic is only used when calling this function, making it + // tree-shakable. + + + function createHydrationRenderer(options) { + return baseCreateRenderer(options, createHydrationFunctions); + } // implementation + + + function baseCreateRenderer(options, createHydrationFns) { + var { + insert: hostInsert, + remove: hostRemove, + patchProp: hostPatchProp, + forcePatchProp: hostForcePatchProp, + createElement: hostCreateElement, + createText: hostCreateText, + createComment: hostCreateComment, + setText: hostSetText, + setElementText: hostSetElementText, + parentNode: hostParentNode, + nextSibling: hostNextSibling, + setScopeId: hostSetScopeId = NOOP, + cloneNode: hostCloneNode, + insertStaticContent: hostInsertStaticContent + } = options; // Note: functions inside this closure should use `const xxx = () => {}` + // style in order to prevent being inlined by minifiers. + + var patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = false) => { + // patching & not same type, unmount old tree + if (n1 && !isSameVNodeType(n1, n2)) { + anchor = getNextHostNode(n1); + unmount(n1, parentComponent, parentSuspense, true); + n1 = null; + } + + if (n2.patchFlag === -2 + /* BAIL */ + ) { + optimized = false; + n2.dynamicChildren = null; + } + + var { + type, + ref, + shapeFlag + } = n2; + + switch (type) { + case Text: + processText(n1, n2, container, anchor); + break; + + case Comment$1: + processCommentNode(n1, n2, container, anchor); + break; + + case Static: + if (n1 == null) { + mountStaticNode(n2, container, anchor, isSVG); + } + + break; + + case Fragment: + processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + break; + + default: + if (shapeFlag & 1 + /* ELEMENT */ + ) { + processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else if (shapeFlag & 6 + /* COMPONENT */ + ) { + processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else if (shapeFlag & 64 + /* TELEPORT */ + ) { + type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); + } else if (shapeFlag & 128 + /* SUSPENSE */ + ) { + type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); + } else ; + + } // set ref + + + if (ref != null && parentComponent) { + setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2); + } + }; + + var processText = (n1, n2, container, anchor) => { + if (n1 == null) { + hostInsert(n2.el = hostCreateText(n2.children, container), // fixed by xxxxxx + container, anchor); + } else { + var el = n2.el = n1.el; + + if (n2.children !== n1.children) { + hostSetText(el, n2.children); + } + } + }; + + var processCommentNode = (n1, n2, container, anchor) => { + if (n1 == null) { + hostInsert(n2.el = hostCreateComment(n2.children || '', container), // fixed by xxxxxx + container, anchor); + } else { + // there's no support for dynamic comments + n2.el = n1.el; + } + }; + + var mountStaticNode = (n2, container, anchor, isSVG) => { + // static nodes are only present when used with compiler-dom/runtime-dom + // which guarantees presence of hostInsertStaticContent. + var nodes = hostInsertStaticContent(n2.children, container, anchor, isSVG, // pass cached nodes if the static node is being mounted multiple times + // so that runtime-dom can simply cloneNode() instead of inserting new + // HTML + n2.staticCache); // first mount - this is the orignal hoisted vnode. cache nodes. + + if (!n2.el) { + n2.staticCache = nodes; + } + + n2.el = nodes[0]; + n2.anchor = nodes[nodes.length - 1]; + }; + + var moveStaticNode = ({ + el, + anchor + }, container, nextSibling) => { + var next; + + while (el && el !== anchor) { + next = hostNextSibling(el); + hostInsert(el, container, nextSibling); + el = next; + } + + hostInsert(anchor, container, nextSibling); + }; + + var removeStaticNode = ({ + el, + anchor + }) => { + var next; + + while (el && el !== anchor) { + next = hostNextSibling(el); + hostRemove(el); + el = next; + } + + hostRemove(anchor); + }; + + var processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { + isSVG = isSVG || n2.type === 'svg'; + + if (n1 == null) { + mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else { + patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } + }; + + var mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { + var el; + var vnodeHook; + var { + type, + props, + shapeFlag, + transition, + patchFlag, + dirs + } = vnode; + + if (vnode.el && hostCloneNode !== undefined && patchFlag === -1 + /* HOISTED */ + ) { + // If a vnode has non-null el, it means it's being reused. + // Only static vnodes can be reused, so its mounted DOM nodes should be + // exactly the same, and we can simply do a clone here. + // only do this in production since cloned trees cannot be HMR updated. + el = vnode.el = hostCloneNode(vnode.el); + } else { + el = vnode.el = hostCreateElement( // fixed by xxxxxx + vnode.type, container); // mount children first, since some props may rely on child content + // being already rendered, e.g. `<select value>` + + if (shapeFlag & 8 + /* TEXT_CHILDREN */ + ) { + hostSetElementText(el, vnode.children); + } else if (shapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== 'foreignObject', slotScopeIds, optimized || !!vnode.dynamicChildren); + } + + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, 'created'); + } // props + + + if (props) { + for (var key in props) { + if (!isReservedProp(key)) { + hostPatchProp(el, key, null, props[key], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); + } + } + + if (vnodeHook = props.onVnodeBeforeMount) { + invokeVNodeHook(vnodeHook, parentComponent, vnode); + } + } // scopeId + + + setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); + } + + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount'); + } // #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved + // #1689 For inside suspense + suspense resolved case, just call it + + + var needCallTransitionHooks = (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted; + + if (needCallTransitionHooks) { + transition.beforeEnter(el); + } + + hostInsert(el, container, anchor); + + if ((vnodeHook = props && props.onVnodeMounted) || needCallTransitionHooks || dirs) { + queuePostRenderEffect(() => { + vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); + needCallTransitionHooks && transition.enter(el); + dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted'); + }, parentSuspense); + } + }; + + var setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => { + if (scopeId) { + hostSetScopeId(el, scopeId); + } + + if (slotScopeIds) { + for (var i = 0; i < slotScopeIds.length; i++) { + hostSetScopeId(el, slotScopeIds[i]); + } + } + + if (parentComponent) { + var subTree = parentComponent.subTree; + + if (vnode === subTree) { + var parentVNode = parentComponent.vnode; + setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent); + } + } + }; + + var mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => { + for (var i = start; i < children.length; i++) { + var child = children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]); + patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } + }; + + var patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { + var el = n2.el = n1.el; + var { + patchFlag, + dynamicChildren, + dirs + } = n2; // #1426 take the old vnode's patch flag into account since user may clone a + // compiler-generated vnode, which de-opts to FULL_PROPS + + patchFlag |= n1.patchFlag & 16 + /* FULL_PROPS */ + ; + var oldProps = n1.props || EMPTY_OBJ; + var newProps = n2.props || EMPTY_OBJ; + var vnodeHook; + + if (vnodeHook = newProps.onVnodeBeforeUpdate) { + invokeVNodeHook(vnodeHook, parentComponent, n2, n1); + } + + if (dirs) { + invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate'); + } + + if (patchFlag > 0) { + // the presence of a patchFlag means this element's render code was + // generated by the compiler and can take the fast path. + // in this path old node and new node are guaranteed to have the same shape + // (i.e. at the exact same position in the source template) + if (patchFlag & 16 + /* FULL_PROPS */ + ) { + // element props contain dynamic keys, full diff needed + patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); + } else { + // class + // this flag is matched when the element has dynamic class bindings. + if (patchFlag & 2 + /* CLASS */ + ) { + if (oldProps.class !== newProps.class) { + hostPatchProp(el, 'class', null, newProps.class, isSVG); + } + } // style + // this flag is matched when the element has dynamic style bindings + + + if (patchFlag & 4 + /* STYLE */ + ) { + hostPatchProp(el, 'style', oldProps.style, newProps.style, isSVG); + } // props + // This flag is matched when the element has dynamic prop/attr bindings + // other than class and style. The keys of dynamic prop/attrs are saved for + // faster iteration. + // Note dynamic keys like :[foo]="bar" will cause this optimization to + // bail out and go through a full diff because we need to unset the old key + + + if (patchFlag & 8 + /* PROPS */ + ) { + // if the flag is present then dynamicProps must be non-null + var propsToUpdate = n2.dynamicProps; + + for (var i = 0; i < propsToUpdate.length; i++) { + var key = propsToUpdate[i]; + var prev = oldProps[key]; + var next = newProps[key]; + + if (next !== prev || hostForcePatchProp && hostForcePatchProp(el, key)) { + hostPatchProp(el, key, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren); + } + } + } + } // text + // This flag is matched when the element has only dynamic text children. + + + if (patchFlag & 1 + /* TEXT */ + ) { + if (n1.children !== n2.children) { + hostSetElementText(el, n2.children); + } + } + } else if (!optimized && dynamicChildren == null) { + // unoptimized, full diff + patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); + } + + var areChildrenSVG = isSVG && n2.type !== 'foreignObject'; + + if (dynamicChildren) { + patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds); + } else if (!optimized) { + // full diff + patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false); + } + + if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { + queuePostRenderEffect(() => { + vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); + dirs && invokeDirectiveHook(n2, n1, parentComponent, 'updated'); + }, parentSuspense); + } + }; // The fast path for blocks. + + + var patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => { + for (var i = 0; i < newChildren.length; i++) { + var oldVNode = oldChildren[i]; + var newVNode = newChildren[i]; // Determine the container (parent element) for the patch. + + var container = // oldVNode may be an errored async setup() component inside Suspense + // which will not have a mounted element + oldVNode.el && (oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement + // which also requires the correct parent container + !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything. + oldVNode.shapeFlag & 6 + /* COMPONENT */ + || oldVNode.shapeFlag & 64 + /* TELEPORT */ + ) ? hostParentNode(oldVNode.el) : // In other cases, the parent container is not actually used so we + // just pass the block element here to avoid a DOM parentNode call. + fallbackContainer; + patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true); + } + }; + + var patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => { + if (oldProps !== newProps) { + for (var key in newProps) { + // empty string is not valid prop + if (isReservedProp(key)) continue; + var next = newProps[key]; + var prev = oldProps[key]; + + if (next !== prev || hostForcePatchProp && hostForcePatchProp(el, key)) { + hostPatchProp(el, key, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); + } + } + + if (oldProps !== EMPTY_OBJ) { + for (var _key7 in oldProps) { + if (!isReservedProp(_key7) && !(_key7 in newProps)) { + hostPatchProp(el, _key7, oldProps[_key7], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); + } + } + } + } + }; + + var processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { + var fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText('', container); // fixed by xxxxxx + + var fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText('', container); // fixed by xxxxxx + + var { + patchFlag, + dynamicChildren, + slotScopeIds: fragmentSlotScopeIds + } = n2; + + if (dynamicChildren) { + optimized = true; + } // check if this is a slot fragment with :slotted scope ids + + + if (fragmentSlotScopeIds) { + slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; + } + + if (n1 == null) { + hostInsert(fragmentStartAnchor, container, anchor); + hostInsert(fragmentEndAnchor, container, anchor); // a fragment can only have array children + // since they are either generated by the compiler, or implicitly created + // from arrays. + + mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else { + if (patchFlag > 0 && patchFlag & 64 + /* STABLE_FRAGMENT */ + && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result + // of renderSlot() with no valid children + n1.dynamicChildren) { + // a stable fragment (template root or <template v-for>) doesn't need to + // patch children order, but it may contain dynamicChildren. + patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds); + + if ( // #2080 if the stable fragment has a key, it's a <template v-for> that may + // get moved around. Make sure all root level vnodes inherit el. + // #2134 or if it's a component root, it may also get moved around + // as the component is being moved. + n2.key != null || parentComponent && n2 === parentComponent.subTree) { + traverseStaticChildren(n1, n2, true + /* shallow */ + ); + } + } else { + // keyed / unkeyed, or manual fragments. + // for keyed & unkeyed, since they are compiler generated from v-for, + // each child is guaranteed to be a block so the fragment will never + // have dynamicChildren. + patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } + } + }; + + var processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { + n2.slotScopeIds = slotScopeIds; + + if (n1 == null) { + if (n2.shapeFlag & 512 + /* COMPONENT_KEPT_ALIVE */ + ) { + parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized); + } else { + mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized); + } + } else { + updateComponent(n1, n2, optimized); + } + }; + + var mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => { + var instance = initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense); // inject renderer internals for keepAlive + + if (isKeepAlive(initialVNode)) { + instance.ctx.renderer = internals; + } // resolve props and slots for setup context + + + { + setupComponent(instance); + } // setup() is async. This component relies on async logic to be resolved + // before proceeding + + if (instance.asyncDep) { + parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect); // Give it a placeholder if this is not hydration + // TODO handle self-defined fallback + + if (!initialVNode.el) { + var placeholder = instance.subTree = createVNode(Comment$1); + processCommentNode(null, placeholder, container, anchor); + } + + return; + } + + setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized); // fixed by xxxxxx 对根节点设置ownerid + + if (instance.$wxsModules) { + var el = resolveOwnerEl(instance); + + if (el) { + el.setAttribute(ATTR_V_OWNER_ID, instance.uid); + var { + $renderjsModules + } = instance.type; + $renderjsModules && el.setAttribute(ATTR_V_RENDERJS, $renderjsModules); + } + } + }; + + var updateComponent = (n1, n2, optimized) => { + var instance = n2.component = n1.component; + + if (shouldUpdateComponent(n1, n2, optimized)) { + if (instance.asyncDep && !instance.asyncResolved) { + updateComponentPreRender(instance, n2, optimized); + return; + } else { + // normal update + instance.next = n2; // in case the child component is also queued, remove it to avoid + // double updating the same child component in the same flush. + + invalidateJob(instance.update); // instance.update is the reactive effect runner. + + instance.update(); + } + } else { + // no update needed. just copy over properties + n2.component = n1.component; + n2.el = n1.el; + instance.vnode = n2; + } + }; + + var setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => { + // create reactive effect for rendering + instance.update = effect(function componentEffect() { + if (!instance.isMounted) { + var vnodeHook; + var { + el, + props + } = initialVNode; + var { + bm, + m, + parent + } = instance; // beforeMount hook + + if (bm) { + invokeArrayFns(bm); + } // onVnodeBeforeMount + + + if (vnodeHook = props && props.onVnodeBeforeMount) { + invokeVNodeHook(vnodeHook, parent, initialVNode); + } + + if (el && hydrateNode) { + // vnode has adopted host node - perform hydration instead of mount. + var hydrateSubTree = () => { + instance.subTree = renderComponentRoot(instance); + hydrateNode(el, instance.subTree, instance, parentSuspense, null); + }; + + if (isAsyncWrapper(initialVNode)) { + initialVNode.type.__asyncLoader().then( // note: we are moving the render call into an async callback, + // which means it won't track dependencies - but it's ok because + // a server-rendered async wrapper is already in resolved state + // and it will never need to change. + () => !instance.isUnmounted && hydrateSubTree()); + } else { + hydrateSubTree(); + } + } else { + var subTree = instance.subTree = renderComponentRoot(instance); + patch(null, subTree, container, anchor, instance, parentSuspense, isSVG); + initialVNode.el = subTree.el; + } // mounted hook + + + if (m) { + queuePostRenderEffect(m, parentSuspense); + } // onVnodeMounted + + + if (vnodeHook = props && props.onVnodeMounted) { + var scopedInitialVNode = initialVNode; + queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense); + } // activated hook for keep-alive roots. + // #1742 activated hook must be accessed after first render + // since the hook may be injected by a child keep-alive + + + if (initialVNode.shapeFlag & 256 + /* COMPONENT_SHOULD_KEEP_ALIVE */ + ) { + instance.a && queuePostRenderEffect(instance.a, parentSuspense); + } + + instance.isMounted = true; // #2458: deference mount-only object parameters to prevent memleaks + + initialVNode = container = anchor = null; + } else { + // updateComponent + // This is triggered by mutation of component's own state (next: null) + // OR parent calling processComponent (next: VNode) + var { + next, + bu, + u, + parent: _parent, + vnode + } = instance; + var originNext = next; + + var _vnodeHook; + + if (next) { + next.el = vnode.el; + updateComponentPreRender(instance, next, optimized); + } else { + next = vnode; + } // beforeUpdate hook + + + if (bu) { + invokeArrayFns(bu); + } // onVnodeBeforeUpdate + + + if (_vnodeHook = next.props && next.props.onVnodeBeforeUpdate) { + invokeVNodeHook(_vnodeHook, _parent, next, vnode); + } + + var nextTree = renderComponentRoot(instance); + var prevTree = instance.subTree; + instance.subTree = nextTree; + patch(prevTree, nextTree, // parent may have changed if it's in a teleport + hostParentNode(prevTree.el), // anchor may have changed if it's in a fragment + getNextHostNode(prevTree), instance, parentSuspense, isSVG); + next.el = nextTree.el; + + if (originNext === null) { + // self-triggered update. In case of HOC, update parent component + // vnode el. HOC is indicated by parent instance's subTree pointing + // to child component's vnode + updateHOCHostEl(instance, nextTree.el); + } // updated hook + + + if (u) { + queuePostRenderEffect(u, parentSuspense); + } // onVnodeUpdated + + + if (_vnodeHook = next.props && next.props.onVnodeUpdated) { + queuePostRenderEffect(() => invokeVNodeHook(_vnodeHook, _parent, next, vnode), parentSuspense); + } + } + }, prodEffectOptions); + }; + + var updateComponentPreRender = (instance, nextVNode, optimized) => { + nextVNode.component = instance; + var prevProps = instance.vnode.props; + instance.vnode = nextVNode; + instance.next = null; + updateProps(instance, nextVNode.props, prevProps, optimized); + updateSlots(instance, nextVNode.children, optimized); + pauseTracking(); // props update may have triggered pre-flush watchers. + // flush them before the render update. + + flushPreFlushCbs(undefined, instance.update); + resetTracking(); + }; + + var patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => { + var c1 = n1 && n1.children; + var prevShapeFlag = n1 ? n1.shapeFlag : 0; + var c2 = n2.children; + var { + patchFlag, + shapeFlag + } = n2; // fast path + + if (patchFlag > 0) { + if (patchFlag & 128 + /* KEYED_FRAGMENT */ + ) { + // this could be either fully-keyed or mixed (some keyed some not) + // presence of patchFlag means children are guaranteed to be arrays + patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + return; + } else if (patchFlag & 256 + /* UNKEYED_FRAGMENT */ + ) { + // unkeyed + patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + return; + } + } // children has 3 possibilities: text, array or no children. + + + if (shapeFlag & 8 + /* TEXT_CHILDREN */ + ) { + // text children fast path + if (prevShapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + unmountChildren(c1, parentComponent, parentSuspense); + } + + if (c2 !== c1) { + hostSetElementText(container, c2); + } + } else { + if (prevShapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + // prev children was array + if (shapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + // two arrays, cannot assume anything, do full diff + patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else { + // no new children, just unmount old + unmountChildren(c1, parentComponent, parentSuspense, true); + } + } else { + // prev children was text OR null + // new children is array OR null + if (prevShapeFlag & 8 + /* TEXT_CHILDREN */ + ) { + hostSetElementText(container, ''); + } // mount new if array + + + if (shapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } + } + } + }; + + var patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { + c1 = c1 || EMPTY_ARR; + c2 = c2 || EMPTY_ARR; + var oldLength = c1.length; + var newLength = c2.length; + var commonLength = Math.min(oldLength, newLength); + var i; + + for (i = 0; i < commonLength; i++) { + var nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); + patch(c1[i], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } + + if (oldLength > newLength) { + // remove old + unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength); + } else { + // mount new + mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength); + } + }; // can be all-keyed or mixed + + + var patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { + var i = 0; + var l2 = c2.length; + var e1 = c1.length - 1; // prev ending index + + var e2 = l2 - 1; // next ending index + // 1. sync from start + // (a b) c + // (a b) d e + + while (i <= e1 && i <= e2) { + var n1 = c1[i]; + var n2 = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); + + if (isSameVNodeType(n1, n2)) { + patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else { + break; + } + + i++; + } // 2. sync from end + // a (b c) + // d e (b c) + + + while (i <= e1 && i <= e2) { + var _n = c1[e1]; + + var _n2 = c2[e2] = optimized ? cloneIfMounted(c2[e2]) : normalizeVNode(c2[e2]); + + if (isSameVNodeType(_n, _n2)) { + patch(_n, _n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else { + break; + } + + e1--; + e2--; + } // 3. common sequence + mount + // (a b) + // (a b) c + // i = 2, e1 = 1, e2 = 2 + // (a b) + // c (a b) + // i = 0, e1 = -1, e2 = 0 + + + if (i > e1) { + if (i <= e2) { + var nextPos = e2 + 1; + var anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor; + + while (i <= e2) { + patch(null, c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + i++; + } + } + } // 4. common sequence + unmount + // (a b) c + // (a b) + // i = 2, e1 = 2, e2 = 1 + // a (b c) + // (b c) + // i = 0, e1 = 0, e2 = -1 + else if (i > e2) { + while (i <= e1) { + unmount(c1[i], parentComponent, parentSuspense, true); + i++; + } + } // 5. unknown sequence + // [i ... e1 + 1]: a b [c d e] f g + // [i ... e2 + 1]: a b [e d c h] f g + // i = 2, e1 = 4, e2 = 5 + else { + var s1 = i; // prev starting index + + var s2 = i; // next starting index + // 5.1 build key:index map for newChildren + + var keyToNewIndexMap = new Map(); + + for (i = s2; i <= e2; i++) { + var nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]); + + if (nextChild.key != null) { + keyToNewIndexMap.set(nextChild.key, i); + } + } // 5.2 loop through old children left to be patched and try to patch + // matching nodes & remove nodes that are no longer present + + + var j; + var patched = 0; + var toBePatched = e2 - s2 + 1; + var moved = false; // used to track whether any node has moved + + var maxNewIndexSoFar = 0; // works as Map<newIndex, oldIndex> + // Note that oldIndex is offset by +1 + // and oldIndex = 0 is a special value indicating the new node has + // no corresponding old node. + // used for determining longest stable subsequence + + var newIndexToOldIndexMap = new Array(toBePatched); + + for (i = 0; i < toBePatched; i++) { + newIndexToOldIndexMap[i] = 0; + } + + for (i = s1; i <= e1; i++) { + var prevChild = c1[i]; + + if (patched >= toBePatched) { + // all new children have been patched so this can only be a removal + unmount(prevChild, parentComponent, parentSuspense, true); + continue; + } + + var newIndex = void 0; + + if (prevChild.key != null) { + newIndex = keyToNewIndexMap.get(prevChild.key); + } else { + // key-less node, try to locate a key-less node of the same type + for (j = s2; j <= e2; j++) { + if (newIndexToOldIndexMap[j - s2] === 0 && isSameVNodeType(prevChild, c2[j])) { + newIndex = j; + break; + } + } + } + + if (newIndex === undefined) { + unmount(prevChild, parentComponent, parentSuspense, true); + } else { + newIndexToOldIndexMap[newIndex - s2] = i + 1; + + if (newIndex >= maxNewIndexSoFar) { + maxNewIndexSoFar = newIndex; + } else { + moved = true; + } + + patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + patched++; + } + } // 5.3 move and mount + // generate longest stable subsequence only when nodes have moved + + + var increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR; + j = increasingNewIndexSequence.length - 1; // looping backwards so that we can use last patched node as anchor + + for (i = toBePatched - 1; i >= 0; i--) { + var nextIndex = s2 + i; + var _nextChild = c2[nextIndex]; + + var _anchor2 = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor; + + if (newIndexToOldIndexMap[i] === 0) { + // mount new + patch(null, _nextChild, container, _anchor2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else if (moved) { + // move if: + // There is no stable subsequence (e.g. a reverse) + // OR current node is not among the stable sequence + if (j < 0 || i !== increasingNewIndexSequence[j]) { + move(_nextChild, container, _anchor2, 2 + /* REORDER */ + ); + } else { + j--; + } + } + } + } + }; + + var move = (vnode, container, anchor, moveType, parentSuspense = null) => { + var { + el, + type, + transition, + children, + shapeFlag + } = vnode; + + if (shapeFlag & 6 + /* COMPONENT */ + ) { + move(vnode.component.subTree, container, anchor, moveType); + return; + } + + if (shapeFlag & 128 + /* SUSPENSE */ + ) { + vnode.suspense.move(container, anchor, moveType); + return; + } + + if (shapeFlag & 64 + /* TELEPORT */ + ) { + type.move(vnode, container, anchor, internals); + return; + } + + if (type === Fragment) { + hostInsert(el, container, anchor); + + for (var i = 0; i < children.length; i++) { + move(children[i], container, anchor, moveType); + } + + hostInsert(vnode.anchor, container, anchor); + return; + } + + if (type === Static) { + moveStaticNode(vnode, container, anchor); + return; + } // single nodes + + + var needTransition = moveType !== 2 + /* REORDER */ + && shapeFlag & 1 + /* ELEMENT */ + && transition; + + if (needTransition) { + if (moveType === 0 + /* ENTER */ + ) { + transition.beforeEnter(el); + hostInsert(el, container, anchor); + queuePostRenderEffect(() => transition.enter(el), parentSuspense); + } else { + var { + leave, + delayLeave, + afterLeave + } = transition; + + var _remove = () => hostInsert(el, container, anchor); + + var performLeave = () => { + leave(el, () => { + _remove(); + + afterLeave && afterLeave(); + }); + }; + + if (delayLeave) { + delayLeave(el, _remove, performLeave); + } else { + performLeave(); + } + } + } else { + hostInsert(el, container, anchor); + } + }; + + var unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => { + var { + type, + props, + ref, + children, + dynamicChildren, + shapeFlag, + patchFlag, + dirs + } = vnode; // unset ref + + if (ref != null) { + setRef(ref, null, parentSuspense, vnode, true); + } + + if (shapeFlag & 256 + /* COMPONENT_SHOULD_KEEP_ALIVE */ + ) { + parentComponent.ctx.deactivate(vnode); + return; + } + + var shouldInvokeDirs = shapeFlag & 1 + /* ELEMENT */ + && dirs; + var vnodeHook; + + if (vnodeHook = props && props.onVnodeBeforeUnmount) { + invokeVNodeHook(vnodeHook, parentComponent, vnode); + } + + if (shapeFlag & 6 + /* COMPONENT */ + ) { + unmountComponent(vnode.component, parentSuspense, doRemove); + } else { + if (shapeFlag & 128 + /* SUSPENSE */ + ) { + vnode.suspense.unmount(parentSuspense, doRemove); + return; + } + + if (shouldInvokeDirs) { + invokeDirectiveHook(vnode, null, parentComponent, 'beforeUnmount'); + } + + if (shapeFlag & 64 + /* TELEPORT */ + ) { + vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove); + } else if (dynamicChildren && (type !== Fragment || patchFlag > 0 && patchFlag & 64 + /* STABLE_FRAGMENT */ + )) { + // fast path for block nodes: only need to unmount dynamic children. + unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true); + } else if (type === Fragment && (patchFlag & 128 + /* KEYED_FRAGMENT */ + || patchFlag & 256 + /* UNKEYED_FRAGMENT */ + ) || !optimized && shapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + unmountChildren(children, parentComponent, parentSuspense); + } + + if (doRemove) { + remove(vnode); + } + } + + if ((vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs) { + queuePostRenderEffect(() => { + vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); + shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, 'unmounted'); + }, parentSuspense); + } + }; + + var remove = vnode => { + var { + type, + el, + anchor, + transition + } = vnode; + + if (type === Fragment) { + removeFragment(el, anchor); + return; + } + + if (type === Static) { + removeStaticNode(vnode); + return; + } + + var performRemove = () => { + hostRemove(el); + + if (transition && !transition.persisted && transition.afterLeave) { + transition.afterLeave(); + } + }; + + if (vnode.shapeFlag & 1 + /* ELEMENT */ + && transition && !transition.persisted) { + var { + leave, + delayLeave + } = transition; + + var performLeave = () => leave(el, performRemove); + + if (delayLeave) { + delayLeave(vnode.el, performRemove, performLeave); + } else { + performLeave(); + } + } else { + performRemove(); + } + }; + + var removeFragment = (cur, end) => { + // For fragments, directly remove all contained DOM nodes. + // (fragment child nodes cannot have transition) + var next; + + while (cur !== end) { + next = hostNextSibling(cur); + hostRemove(cur); + cur = next; + } + + hostRemove(end); + }; + + var unmountComponent = (instance, parentSuspense, doRemove) => { + var { + bum, + effects, + update, + subTree, + um + } = instance; // beforeUnmount hook + + if (bum) { + invokeArrayFns(bum); + } + + if (effects) { + for (var i = 0; i < effects.length; i++) { + stop(effects[i]); + } + } // update may be null if a component is unmounted before its async + // setup has resolved. + + + if (update) { + stop(update); + unmount(subTree, instance, parentSuspense, doRemove); + } // unmounted hook + + + if (um) { + queuePostRenderEffect(um, parentSuspense); + } + + queuePostRenderEffect(() => { + instance.isUnmounted = true; + }, parentSuspense); // A component with async dep inside a pending suspense is unmounted before + // its async dep resolves. This should remove the dep from the suspense, and + // cause the suspense to resolve immediately if that was the last dep. + + if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) { + parentSuspense.deps--; + + if (parentSuspense.deps === 0) { + parentSuspense.resolve(); + } + } + }; + + var unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => { + for (var i = start; i < children.length; i++) { + unmount(children[i], parentComponent, parentSuspense, doRemove, optimized); + } + }; + + var getNextHostNode = vnode => { + if (vnode.shapeFlag & 6 + /* COMPONENT */ + ) { + return getNextHostNode(vnode.component.subTree); + } + + if (vnode.shapeFlag & 128 + /* SUSPENSE */ + ) { + return vnode.suspense.next(); + } + + return hostNextSibling(vnode.anchor || vnode.el); + }; + + var render = (vnode, container, isSVG) => { + if (vnode == null) { + if (container._vnode) { + unmount(container._vnode, null, null, true); + } + } else { + patch(container._vnode || null, vnode, container, null, null, null, isSVG); + } + + flushPostFlushCbs(); + container._vnode = vnode; + }; + + var internals = { + p: patch, + um: unmount, + m: move, + r: remove, + mt: mountComponent, + mc: mountChildren, + pc: patchChildren, + pbc: patchBlockChildren, + n: getNextHostNode, + o: options + }; + var hydrate; + var hydrateNode; + + if (createHydrationFns) { + [hydrate, hydrateNode] = createHydrationFns(internals); + } + + return { + render, + hydrate, + createApp: createAppAPI(render, hydrate) + }; + } + + function invokeVNodeHook(hook, instance, vnode, prevVNode = null) { + callWithAsyncErrorHandling(hook, instance, 7 + /* VNODE_HOOK */ + , [vnode, prevVNode]); + } + /** + * #1156 + * When a component is HMR-enabled, we need to make sure that all static nodes + * inside a block also inherit the DOM element from the previous tree so that + * HMR updates (which are full updates) can retrieve the element for patching. + * + * #2080 + * Inside keyed `template` fragment static children, if a fragment is moved, + * the children will always moved so that need inherit el form previous nodes + * to ensure correct moved position. + */ + + + function traverseStaticChildren(n1, n2, shallow = false) { + var ch1 = n1.children; + var ch2 = n2.children; + + if (isArray(ch1) && isArray(ch2)) { + for (var i = 0; i < ch1.length; i++) { + // this is only called in the optimized path so array children are + // guaranteed to be vnodes + var c1 = ch1[i]; + var c2 = ch2[i]; + + if (c2.shapeFlag & 1 + /* ELEMENT */ + && !c2.dynamicChildren) { + if (c2.patchFlag <= 0 || c2.patchFlag === 32 + /* HYDRATE_EVENTS */ + ) { + c2 = ch2[i] = cloneIfMounted(ch2[i]); + c2.el = c1.el; + } + + if (!shallow) traverseStaticChildren(c1, c2); + } + } + } + } // https://en.wikipedia.org/wiki/Longest_increasing_subsequence + + + function getSequence(arr) { + var p = arr.slice(); + var result = [0]; + var i, j, u, v, c; + var len = arr.length; + + for (i = 0; i < len; i++) { + var arrI = arr[i]; + + if (arrI !== 0) { + j = result[result.length - 1]; + + if (arr[j] < arrI) { + p[i] = j; + result.push(i); + continue; + } + + u = 0; + v = result.length - 1; + + while (u < v) { + c = (u + v) / 2 | 0; + + if (arr[result[c]] < arrI) { + u = c + 1; + } else { + v = c; + } + } + + if (arrI < arr[result[u]]) { + if (u > 0) { + p[i] = result[u - 1]; + } + + result[u] = i; + } + } + } + + u = result.length; + v = result[u - 1]; + + while (u-- > 0) { + result[u] = v; + v = p[v]; + } + + return result; + } + + var isTeleport = type => type.__isTeleport; + + var isTeleportDisabled = props => props && (props.disabled || props.disabled === ''); + + var isTargetSVG = target => typeof SVGElement !== 'undefined' && target instanceof SVGElement; + + var resolveTarget = (props, select) => { + var targetSelector = props && props.to; + + if (isString(targetSelector)) { + if (!select) { + return null; + } else { + var target = select(targetSelector); + return target; + } + } else { + return targetSelector; + } + }; + + var TeleportImpl = { + __isTeleport: true, + + process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals) { + var { + mc: mountChildren, + pc: patchChildren, + pbc: patchBlockChildren, + o: { + insert, + querySelector, + createText, + createComment + } + } = internals; + var disabled = isTeleportDisabled(n2.props); + var { + shapeFlag, + children, + dynamicChildren + } = n2; + + if (n1 == null) { + // insert anchors in the main view + var placeholder = n2.el = createText('', container); // fixed by xxxxxx + + var mainAnchor = n2.anchor = createText('', container); // fixed by xxxxxx + + insert(placeholder, container, anchor); + insert(mainAnchor, container, anchor); + var target = n2.target = resolveTarget(n2.props, querySelector); + var targetAnchor = n2.targetAnchor = createText('', container); // fixed by xxxxxx + + if (target) { + insert(targetAnchor, target); // #2652 we could be teleporting from a non-SVG tree into an SVG tree + + isSVG = isSVG || isTargetSVG(target); + } + + var mount = (container, anchor) => { + // Teleport *always* has Array children. This is enforced in both the + // compiler and vnode children normalization. + if (shapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + mountChildren(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } + }; + + if (disabled) { + mount(container, mainAnchor); + } else if (target) { + mount(target, targetAnchor); + } + } else { + // update content + n2.el = n1.el; + + var _mainAnchor = n2.anchor = n1.anchor; + + var _target = n2.target = n1.target; + + var _targetAnchor = n2.targetAnchor = n1.targetAnchor; + + var wasDisabled = isTeleportDisabled(n1.props); + var currentContainer = wasDisabled ? container : _target; + var currentAnchor = wasDisabled ? _mainAnchor : _targetAnchor; + isSVG = isSVG || isTargetSVG(_target); + + if (dynamicChildren) { + // fast path when the teleport happens to be a block root + patchBlockChildren(n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, isSVG, slotScopeIds); // even in block tree mode we need to make sure all root-level nodes + // in the teleport inherit previous DOM references so that they can + // be moved in future patches. + + traverseStaticChildren(n1, n2, true); + } else if (!optimized) { + patchChildren(n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, false); + } + + if (disabled) { + if (!wasDisabled) { + // enabled -> disabled + // move into main container + moveTeleport(n2, container, _mainAnchor, internals, 1 + /* TOGGLE */ + ); + } + } else { + // target changed + if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) { + var nextTarget = n2.target = resolveTarget(n2.props, querySelector); + + if (nextTarget) { + moveTeleport(n2, nextTarget, null, internals, 0 + /* TARGET_CHANGE */ + ); + } + } else if (wasDisabled) { + // disabled -> enabled + // move into teleport target + moveTeleport(n2, _target, _targetAnchor, internals, 1 + /* TOGGLE */ + ); + } + } + } + }, + + remove(vnode, parentComponent, parentSuspense, optimized, { + um: unmount, + o: { + remove: hostRemove + } + }, doRemove) { + var { + shapeFlag, + children, + anchor, + targetAnchor, + target, + props + } = vnode; + + if (target) { + hostRemove(targetAnchor); + } // an unmounted teleport should always remove its children if not disabled + + + if (doRemove || !isTeleportDisabled(props)) { + hostRemove(anchor); + + if (shapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + for (var i = 0; i < children.length; i++) { + var child = children[i]; + unmount(child, parentComponent, parentSuspense, true, !!child.dynamicChildren); + } + } + } + }, + + move: moveTeleport, + hydrate: hydrateTeleport + }; + + function moveTeleport(vnode, container, parentAnchor, { + o: { + insert + }, + m: move + }, moveType = 2 + /* REORDER */ + ) { + // move target anchor if this is a target change. + if (moveType === 0 + /* TARGET_CHANGE */ + ) { + insert(vnode.targetAnchor, container, parentAnchor); + } + + var { + el, + anchor, + shapeFlag, + children, + props + } = vnode; + var isReorder = moveType === 2 + /* REORDER */ + ; // move main view anchor if this is a re-order. + + if (isReorder) { + insert(el, container, parentAnchor); + } // if this is a re-order and teleport is enabled (content is in target) + // do not move children. So the opposite is: only move children if this + // is not a reorder, or the teleport is disabled + + + if (!isReorder || isTeleportDisabled(props)) { + // Teleport has either Array children or no children. + if (shapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + for (var i = 0; i < children.length; i++) { + move(children[i], container, parentAnchor, 2 + /* REORDER */ + ); + } + } + } // move main view anchor if this is a re-order. + + + if (isReorder) { + insert(anchor, container, parentAnchor); + } + } + + function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { + o: { + nextSibling, + parentNode, + querySelector + } + }, hydrateChildren) { + var target = vnode.target = resolveTarget(vnode.props, querySelector); + + if (target) { + // if multiple teleports rendered to the same target element, we need to + // pick up from where the last teleport finished instead of the first node + var targetNode = target._lpa || target.firstChild; + + if (vnode.shapeFlag & 16 + /* ARRAY_CHILDREN */ + ) { + if (isTeleportDisabled(vnode.props)) { + vnode.anchor = hydrateChildren(nextSibling(node), vnode, parentNode(node), parentComponent, parentSuspense, slotScopeIds, optimized); + vnode.targetAnchor = targetNode; + } else { + vnode.anchor = nextSibling(node); + vnode.targetAnchor = hydrateChildren(targetNode, vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized); + } + + target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor); + } + } + + return vnode.anchor && nextSibling(vnode.anchor); + } // Force-casted public typing for h and TSX props inference + + + var Teleport = TeleportImpl; + var COMPONENTS = 'components'; + var DIRECTIVES = 'directives'; + /** + * @private + */ + + function resolveComponent(name, maybeSelfReference) { + return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; + } + + var NULL_DYNAMIC_COMPONENT = Symbol(); + /** + * @private + */ + + function resolveDynamicComponent(component) { + if (isString(component)) { + return resolveAsset(COMPONENTS, component, false) || component; + } else { + // invalid types will fallthrough to createVNode and raise warning + return component || NULL_DYNAMIC_COMPONENT; + } + } + /** + * @private + */ + + + function resolveDirective(name) { + return resolveAsset(DIRECTIVES, name); + } // implementation + + + function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { + var instance = currentRenderingInstance || currentInstance; + + if (instance) { + var Component = instance.type; // explicit self name has highest priority + + if (type === COMPONENTS) { + var selfName = getComponentName(Component); + + if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) { + return Component; + } + } + + var res = // local registration + // check instance[type] first which is resolved for options API + resolve(instance[type] || Component[type], name) || // window registration + resolve(instance.appContext[type], name); + + if (!res && maybeSelfReference) { + // fallback to implicit self-reference + return Component; + } + + return res; + } + } + + function resolve(registry, name) { + return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]); + } + + var Fragment = Symbol(undefined); + var Text = Symbol(undefined); + var Comment$1 = Symbol(undefined); + var Static = Symbol(undefined); // Since v-if and v-for are the two possible ways node structure can dynamically + // change, once we consider v-if branches and each v-for fragment a block, we + // can divide a template into nested blocks, and within each block the node + // structure would be stable. This allows us to skip most children diffing + // and only worry about the dynamic nodes (indicated by patch flags). + + var blockStack = []; + var currentBlock = null; + /** + * Open a block. + * This must be called before `createBlock`. It cannot be part of `createBlock` + * because the children of the block are evaluated before `createBlock` itself + * is called. The generated code typically looks like this: + * + * ```js + * function render() { + * return (openBlock(),createBlock('div', null, [...])) + * } + * ``` + * disableTracking is true when creating a v-for fragment block, since a v-for + * fragment always diffs its children. + * + * @private + */ + + function openBlock(disableTracking = false) { + blockStack.push(currentBlock = disableTracking ? null : []); + } + + function closeBlock() { + blockStack.pop(); + currentBlock = blockStack[blockStack.length - 1] || null; + } // Whether we should be tracking dynamic child nodes inside a block. + // Only tracks when this value is > 0 + // We are not using a simple boolean because this value may need to be + // incremented/decremented by nested usage of v-once (see below) + + + var isBlockTreeEnabled = 1; + /** + * Block tracking sometimes needs to be disabled, for example during the + * creation of a tree that needs to be cached by v-once. The compiler generates + * code like this: + * + * ``` js + * _cache[1] || ( + * setBlockTracking(-1), + * _cache[1] = createVNode(...), + * setBlockTracking(1), + * _cache[1] + * ) + * ``` + * + * @private + */ + + function setBlockTracking(value) { + isBlockTreeEnabled += value; + } + /** + * Create a block root vnode. Takes the same exact arguments as `createVNode`. + * A block root keeps track of dynamic nodes within the block in the + * `dynamicChildren` array. + * + * @private + */ + + + function createBlock(type, props, children, patchFlag, dynamicProps) { + var vnode = createVNode(type, props, children, patchFlag, dynamicProps, true + /* isBlock: prevent a block from tracking itself */ + ); // save current block children on the block vnode + + vnode.dynamicChildren = isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null; // close block + + closeBlock(); // a block is always going to be patched, so track it as a child of its + // parent block + + if (isBlockTreeEnabled > 0 && currentBlock) { + currentBlock.push(vnode); + } + + return vnode; + } + + function isVNode(value) { + return value ? value.__v_isVNode === true : false; + } + + function isSameVNodeType(n1, n2) { + return n1.type === n2.type && n1.key === n2.key; + } + /** + * Internal API for registering an arguments transform for createVNode + * used for creating stubs in the test-utils + * It is *internal* but needs to be exposed for test-utils to pick up proper + * typings + */ + + + function transformVNodeArgs(transformer) {} + + var InternalObjectKey = "__vInternal"; + + var normalizeKey = ({ + key + }) => key != null ? key : null; + + var normalizeRef = ({ + ref + }) => { + return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? { + i: currentRenderingInstance, + r: ref + } : ref : null; + }; + + var createVNode = _createVNode; + + function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { + if (!type || type === NULL_DYNAMIC_COMPONENT) { + type = Comment$1; + } + + if (isVNode(type)) { + // createVNode receiving an existing vnode. This happens in cases like + // <component :is="vnode"/> + // #2078 make sure to merge refs during the clone instead of overwriting it + var cloned = cloneVNode(type, props, true + /* mergeRef: true */ + ); + + if (children) { + normalizeChildren(cloned, children); + } + + return cloned; + } // class component normalization. + + + if (isClassComponent(type)) { + type = type.__vccOpts; + } // class & style normalization. + + + if (props) { + // for reactive or proxy objects, we need to clone it to enable mutation. + if (isProxy(props) || InternalObjectKey in props) { + props = extend({}, props); + } + + var { + class: klass, + style + } = props; + + if (klass && !isString(klass)) { + props.class = normalizeClass(klass); + } + + if (isObject(style)) { + // reactive state objects need to be cloned since they are likely to be + // mutated + if (isProxy(style) && !isArray(style)) { + style = extend({}, style); + } + + props.style = normalizeStyle(style); + } + } // encode the vnode type information into a bitmap + + + var shapeFlag = isString(type) ? 1 + /* ELEMENT */ + : isSuspense(type) ? 128 + /* SUSPENSE */ + : isTeleport(type) ? 64 + /* TELEPORT */ + : isObject(type) ? 4 + /* STATEFUL_COMPONENT */ + : isFunction(type) ? 2 + /* FUNCTIONAL_COMPONENT */ + : 0; + var vnode = { + __v_isVNode: true, + __v_skip: true, + type, + props, + key: props && normalizeKey(props), + ref: props && normalizeRef(props), + scopeId: currentScopeId, + slotScopeIds: null, + children: null, + component: null, + suspense: null, + ssContent: null, + ssFallback: null, + dirs: null, + transition: null, + el: null, + anchor: null, + target: null, + targetAnchor: null, + shapeFlag, + patchFlag, + dynamicProps, + dynamicChildren: null, + appContext: null + }; + normalizeChildren(vnode, children); // normalize suspense children + + if (shapeFlag & 128 + /* SUSPENSE */ + ) { + type.normalize(vnode); + } + + if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself + !isBlockNode && // has current parent block + currentBlock && (patchFlag > 0 || shapeFlag & 6 + /* COMPONENT */ + ) && // the EVENTS flag is only for hydration and if it is the only flag, the + // vnode should not be considered dynamic due to handler caching. + patchFlag !== 32 + /* HYDRATE_EVENTS */ + ) { + currentBlock.push(vnode); + } + + return vnode; + } + + function cloneVNode(vnode, extraProps, mergeRef = false) { + // This is intentionally NOT using spread or extend to avoid the runtime + // key enumeration cost. + var { + props, + ref, + patchFlag, + children + } = vnode; + var mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props; + var cloned = { + __v_isVNode: true, + __v_skip: true, + type: vnode.type, + props: mergedProps, + key: mergedProps && normalizeKey(mergedProps), + ref: extraProps && extraProps.ref ? // #2078 in the case of <component :is="vnode" ref="extra"/> + // if the vnode itself already has a ref, cloneVNode will need to merge + // the refs so the single vnode can be set on multiple refs + mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps) : ref, + scopeId: vnode.scopeId, + slotScopeIds: vnode.slotScopeIds, + children: children, + target: vnode.target, + targetAnchor: vnode.targetAnchor, + staticCount: vnode.staticCount, + staticCache: vnode.staticCache, + shapeFlag: vnode.shapeFlag, + // if the vnode is cloned with extra props, we can no longer assume its + // existing patch flag to be reliable and need to add the FULL_PROPS flag. + // note: perserve flag for fragments since they use the flag for children + // fast paths only. + patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 // hoisted node + ? 16 + /* FULL_PROPS */ + : patchFlag | 16 + /* FULL_PROPS */ + : patchFlag, + dynamicProps: vnode.dynamicProps, + dynamicChildren: vnode.dynamicChildren, + appContext: vnode.appContext, + dirs: vnode.dirs, + transition: vnode.transition, + // These should technically only be non-null on mounted VNodes. However, + // they *should* be copied for kept-alive vnodes. So we just always copy + // them since them being non-null during a mount doesn't affect the logic as + // they will simply be overwritten. + component: vnode.component, + suspense: vnode.suspense, + ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), + ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), + el: vnode.el, + anchor: vnode.anchor + }; + return cloned; + } + /** + * @private + */ + + + function createTextVNode(text = ' ', flag = 0) { + return createVNode(Text, null, text, flag); + } + /** + * @private + */ + + + function createStaticVNode(content, numberOfNodes) { + // A static vnode can contain multiple stringified elements, and the number + // of elements is necessary for hydration. + var vnode = createVNode(Static, null, content); + vnode.staticCount = numberOfNodes; + return vnode; + } + /** + * @private + */ + + + function createCommentVNode(text = '', // when used as the v-else branch, the comment node must be created as a + // block to ensure correct updates. + asBlock = false) { + return asBlock ? (openBlock(), createBlock(Comment$1, null, text)) : createVNode(Comment$1, null, text); + } + + function normalizeVNode(child) { + if (child == null || typeof child === 'boolean') { + // empty placeholder + return createVNode(Comment$1); + } else if (isArray(child)) { + // fragment + return createVNode(Fragment, null, // #3666, avoid reference pollution when reusing vnode + child.slice()); + } else if (typeof child === 'object') { + // already vnode, this should be the most common since compiled templates + // always produce all-vnode children arrays + return cloneIfMounted(child); + } else { + // strings and numbers + return createVNode(Text, null, String(child)); + } + } // optimized normalization for template-compiled render fns + + + function cloneIfMounted(child) { + return child.el === null ? child : cloneVNode(child); + } + + function normalizeChildren(vnode, children) { + var type = 0; + var { + shapeFlag + } = vnode; + + if (children == null) { + children = null; + } else if (isArray(children)) { + type = 16 + /* ARRAY_CHILDREN */ + ; + } else if (typeof children === 'object') { + if (shapeFlag & 1 + /* ELEMENT */ + || shapeFlag & 64 + /* TELEPORT */ + ) { + // Normalize slot to plain children for plain element and Teleport + var slot = children.default; + + if (slot) { + // _c marker is added by withCtx() indicating this is a compiled slot + slot._c && (slot._d = false); + normalizeChildren(vnode, slot()); + slot._c && (slot._d = true); + } + + return; + } else { + type = 32 + /* SLOTS_CHILDREN */ + ; + var slotFlag = children._; + + if (!slotFlag && !(InternalObjectKey in children)) { + children._ctx = currentRenderingInstance; + } else if (slotFlag === 3 + /* FORWARDED */ + && currentRenderingInstance) { + // a child component receives forwarded slots from the parent. + // its slot type is determined by its parent's slot type. + if (currentRenderingInstance.slots._ === 1 + /* STABLE */ + ) { + children._ = 1 + /* STABLE */ + ; + } else { + children._ = 2 + /* DYNAMIC */ + ; + vnode.patchFlag |= 1024 + /* DYNAMIC_SLOTS */ + ; + } + } + } + } else if (isFunction(children)) { + children = { + default: children, + _ctx: currentRenderingInstance + }; + type = 32 + /* SLOTS_CHILDREN */ + ; + } else { + children = String(children); // force teleport children to array so it can be moved around + + if (shapeFlag & 64 + /* TELEPORT */ + ) { + type = 16 + /* ARRAY_CHILDREN */ + ; + children = [createTextVNode(children)]; + } else { + type = 8 + /* TEXT_CHILDREN */ + ; + } + } + + vnode.children = children; + vnode.shapeFlag |= type; + } + + function mergeProps(...args) { + var ret = extend({}, args[0]); + + for (var i = 1; i < args.length; i++) { + var toMerge = args[i]; + + for (var key in toMerge) { + if (key === 'class') { + if (ret.class !== toMerge.class) { + ret.class = normalizeClass([ret.class, toMerge.class]); + } + } else if (key === 'style') { + ret.style = normalizeStyle([ret.style, toMerge.style]); + } else if (isOn(key)) { + var existing = ret[key]; + var incoming = toMerge[key]; + + if (existing !== incoming) { + ret[key] = existing ? [].concat(existing, incoming) : incoming; + } + } else if (key !== '') { + ret[key] = toMerge[key]; + } + } + } + + return ret; + } + /** + * Actual implementation + */ + + + function renderList(source, renderItem) { + var ret; + + if (isArray(source) || isString(source)) { + ret = new Array(source.length); + + for (var i = 0, l = source.length; i < l; i++) { + ret[i] = renderItem(source[i], i); + } + } else if (typeof source === 'number') { + ret = new Array(source); + + for (var _i2 = 0; _i2 < source; _i2++) { + ret[_i2] = renderItem(_i2 + 1, _i2); + } + } else if (isObject(source)) { + if (source[Symbol.iterator]) { + ret = Array.from(source, renderItem); + } else { + var keys = Object.keys(source); + ret = new Array(keys.length); + + for (var _i3 = 0, _l = keys.length; _i3 < _l; _i3++) { + var key = keys[_i3]; + ret[_i3] = renderItem(source[key], key, _i3); + } + } + } else { + ret = []; + } + + return ret; + } + /** + * Compiler runtime helper for creating dynamic slots object + * @private + */ + + + function createSlots(slots, dynamicSlots) { + for (var i = 0; i < dynamicSlots.length; i++) { + var slot = dynamicSlots[i]; // array of dynamic slot generated by <template v-for="..." #[...]> + + if (isArray(slot)) { + for (var j = 0; j < slot.length; j++) { + slots[slot[j].name] = slot[j].fn; + } + } else if (slot) { + // conditional single slot generated by <template v-if="..." #foo> + slots[slot.name] = slot.fn; + } + } + + return slots; + } + /** + * Compiler runtime helper for rendering `<slot/>` + * @private + */ + + + function renderSlot(slots, name, props = {}, // this is not a user-facing function, so the fallback is always generated by + // the compiler and guaranteed to be a function returning an array + fallback, noSlotted) { + var slot = slots[name]; // a compiled slot disables block tracking by default to avoid manual + // invocation interfering with template-based block tracking, but in + // `renderSlot` we can be sure that it's template-based so we can force + // enable it. + + if (slot && slot._c) { + slot._d = false; + } + + openBlock(); + var validSlotContent = slot && ensureValidVNode(slot(props)); + var rendered = createBlock(Fragment, { + key: props.key || "_".concat(name) + }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 + /* STABLE */ + ? 64 + /* STABLE_FRAGMENT */ + : -2 + /* BAIL */ + ); + + if (!noSlotted && rendered.scopeId) { + rendered.slotScopeIds = [rendered.scopeId + '-s']; + } + + if (slot && slot._c) { + slot._d = true; + } + + return rendered; + } + + function ensureValidVNode(vnodes) { + return vnodes.some(child => { + if (!isVNode(child)) return true; + if (child.type === Comment$1) return false; + if (child.type === Fragment && !ensureValidVNode(child.children)) return false; + return true; + }) ? vnodes : null; + } + /** + * For prefixing keys in v-on="obj" with "on" + * @private + */ + + + function toHandlers(obj) { + var ret = {}; + + for (var key in obj) { + ret[toHandlerKey(key)] = obj[key]; + } + + return ret; + } + /** + * #2437 In Vue 3, functional components do not have a public instance proxy but + * they exist in the internal parent chain. For code that relies on traversing + * public $parent chains, skip functional ones and go to the parent instead. + */ + + + var getPublicInstance = i => { + if (!i) return null; + if (isStatefulComponent(i)) return getExposeProxy(i) || i.proxy; + return getPublicInstance(i.parent); + }; + + var publicPropertiesMap = extend(Object.create(null), { + $: i => i, + $el: i => i.vnode.el, + $data: i => i.data, + $props: i => i.props, + $attrs: i => i.attrs, + $slots: i => i.slots, + $refs: i => i.refs, + $parent: i => getPublicInstance(i.parent), + $root: i => getPublicInstance(i.root), + $emit: i => i.emit, + $options: i => resolveMergedOptions(i), + $forceUpdate: i => () => queueJob(i.update), + $nextTick: i => nextTick.bind(i.proxy), + $watch: i => instanceWatch.bind(i) + }); + var PublicInstanceProxyHandlers = { + get({ + _: instance + }, key) { + var { + ctx, + setupState, + data, + props, + accessCache, + type, + appContext + } = instance; // data / props / ctx + // This getter gets called for every property access on the render context + // during render and is a major hotspot. The most expensive part of this + // is the multiple hasOwn() calls. It's much faster to do a simple property + // access on a plain object, so we use an accessCache object (with null + // prototype) to memoize what access type a key corresponds to. + + var normalizedProps; + + if (key[0] !== '$') { + var n = accessCache[key]; + + if (n !== undefined) { + switch (n) { + case 0 + /* SETUP */ + : + return setupState[key]; + + case 1 + /* DATA */ + : + return data[key]; + + case 3 + /* CONTEXT */ + : + return ctx[key]; + + case 2 + /* PROPS */ + : + return props[key]; + // default: just fallthrough + } + } else if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) { + accessCache[key] = 0 + /* SETUP */ + ; + return setupState[key]; + } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { + accessCache[key] = 1 + /* DATA */ + ; + return data[key]; + } else if ( // only cache other properties when instance has declared (thus stable) + // props + (normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key)) { + accessCache[key] = 2 + /* PROPS */ + ; + return props[key]; + } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { + accessCache[key] = 3 + /* CONTEXT */ + ; + return ctx[key]; + } else if (shouldCacheAccess) { + accessCache[key] = 4 + /* OTHER */ + ; + } + } + + var publicGetter = publicPropertiesMap[key]; + var cssModule, globalProperties; // public $xxx properties + + if (publicGetter) { + if (key === '$attrs') { + track(instance, "get" + /* GET */ + , key); + } + + return publicGetter(instance); + } else if ( // css module (injected by vue-loader) + (cssModule = type.__cssModules) && (cssModule = cssModule[key])) { + return cssModule; + } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { + // user may set custom properties to `this` that start with `$` + accessCache[key] = 3 + /* CONTEXT */ + ; + return ctx[key]; + } else if (globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)) { + { + return globalProperties[key]; + } + } else ; + }, + + set({ + _: instance + }, key, value) { + var { + data, + setupState, + ctx + } = instance; + + if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) { + setupState[key] = value; + } else if (data !== EMPTY_OBJ && hasOwn(data, key)) { + data[key] = value; + } else if (hasOwn(instance.props, key)) { + return false; + } + + if (key[0] === '$' && key.slice(1) in instance) { + return false; + } else { + { + ctx[key] = value; + } + } + + return true; + }, + + has({ + _: { + data, + setupState, + accessCache, + ctx, + appContext, + propsOptions + } + }, key) { + var normalizedProps; + return accessCache[key] !== undefined || data !== EMPTY_OBJ && hasOwn(data, key) || setupState !== EMPTY_OBJ && hasOwn(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key); + } + + }; + var RuntimeCompiledPublicInstanceProxyHandlers = extend({}, PublicInstanceProxyHandlers, { + get(target, key) { + // fast path for unscopables when using `with` block + if (key === Symbol.unscopables) { + return; + } + + return PublicInstanceProxyHandlers.get(target, key, target); + }, + + has(_, key) { + var has = key[0] !== '_' && !isGloballyWhitelisted(key); + return has; + } + + }); + var emptyAppContext = createAppContext(); + var uid$2 = 0; + + function createComponentInstance(vnode, parent, suspense) { + var type = vnode.type; // inherit parent app context - or - if root, adopt from root vnode + + var appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext; + var instance = { + uid: uid$2++, + vnode, + type, + parent, + appContext, + root: null, + next: null, + subTree: null, + update: null, + render: null, + proxy: null, + exposed: null, + exposeProxy: null, + withProxy: null, + effects: null, + provides: parent ? parent.provides : Object.create(appContext.provides), + accessCache: null, + renderCache: [], + // local resovled assets + components: null, + directives: null, + // resolved props and emits options + propsOptions: normalizePropsOptions(type, appContext), + emitsOptions: normalizeEmitsOptions(type, appContext), + // emit + emit: null, + emitted: null, + // props default value + propsDefaults: EMPTY_OBJ, + // inheritAttrs + inheritAttrs: type.inheritAttrs, + // state + ctx: EMPTY_OBJ, + data: EMPTY_OBJ, + props: EMPTY_OBJ, + attrs: EMPTY_OBJ, + slots: EMPTY_OBJ, + refs: EMPTY_OBJ, + setupState: EMPTY_OBJ, + setupContext: null, + // suspense related + suspense, + suspenseId: suspense ? suspense.pendingId : 0, + asyncDep: null, + asyncResolved: false, + // lifecycle hooks + // not using enums here because it results in computed properties + isMounted: false, + isUnmounted: false, + isDeactivated: false, + bc: null, + c: null, + bm: null, + m: null, + bu: null, + u: null, + um: null, + bum: null, + da: null, + a: null, + rtg: null, + rtc: null, + ec: null, + sp: null + }; + { + instance.ctx = { + _: instance + }; + } + instance.root = parent ? parent.root : instance; + instance.emit = emit.bind(null, instance); + return instance; + } + + var currentInstance = null; + + var getCurrentInstance = () => currentInstance || currentRenderingInstance; + + var setCurrentInstance = instance => { + currentInstance = instance; + }; + + function isStatefulComponent(instance) { + return instance.vnode.shapeFlag & 4 + /* STATEFUL_COMPONENT */ + ; + } + + var isInSSRComponentSetup = false; + + function setupComponent(instance, isSSR = false) { + isInSSRComponentSetup = isSSR; + var { + props, + children + } = instance.vnode; + var isStateful = isStatefulComponent(instance); + initProps(instance, props, isStateful, isSSR); + initSlots(instance, children); + var setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : undefined; + isInSSRComponentSetup = false; + return setupResult; + } + + function setupStatefulComponent(instance, isSSR) { + var Component = instance.type; // 0. create render proxy property access cache + + instance.accessCache = Object.create(null); // 1. create public instance / render proxy + // also mark it raw so it's never observed + + instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers)); // 2. call setup() + + var { + setup + } = Component; + + if (setup) { + var setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null; + currentInstance = instance; + pauseTracking(); + var setupResult = callWithErrorHandling(setup, instance, 0 + /* SETUP_FUNCTION */ + , [instance.props, setupContext]); + resetTracking(); + currentInstance = null; + + if (isPromise(setupResult)) { + var unsetInstance = () => { + currentInstance = null; + }; + + setupResult.then(unsetInstance, unsetInstance); + + if (isSSR) { + // return the promise so server-renderer can wait on it + return setupResult.then(resolvedResult => { + handleSetupResult(instance, resolvedResult); + }).catch(e => { + handleError(e, instance, 0 + /* SETUP_FUNCTION */ + ); + }); + } else { + // async setup returned Promise. + // bail here and wait for re-entry. + instance.asyncDep = setupResult; + } + } else { + handleSetupResult(instance, setupResult); + } + } else { + finishComponentSetup(instance); + } + } + + function handleSetupResult(instance, setupResult, isSSR) { + if (isFunction(setupResult)) { + // setup returned an inline render function + { + instance.render = setupResult; + } + } else if (isObject(setupResult)) { + instance.setupState = proxyRefs(setupResult); + } else ; + + finishComponentSetup(instance); + } + + var compile; // dev only + + var isRuntimeOnly = () => !compile; + /** + * For runtime-dom to register the compiler. + * Note the exported method uses any to avoid d.ts relying on the compiler types. + */ + + + function registerRuntimeCompiler(_compile) { + compile = _compile; + } + + function finishComponentSetup(instance, isSSR, skipOptions) { + var Component = instance.type; // template / render function normalization + + if (!instance.render) { + // could be set from setup() + if (compile && !Component.render) { + var template = Component.template; + + if (template) { + var { + isCustomElement, + compilerOptions + } = instance.appContext.config; + var { + delimiters, + compilerOptions: componentCompilerOptions + } = Component; + var finalCompilerOptions = extend(extend({ + isCustomElement, + delimiters + }, compilerOptions), componentCompilerOptions); + Component.render = compile(template, finalCompilerOptions); + } + } + + instance.render = Component.render || NOOP; // for runtime-compiled render functions using `with` blocks, the render + // proxy used needs a different `has` handler which is more performant and + // also only allows a whitelist of globals to fallthrough. + + if (instance.render._rc) { + instance.withProxy = new Proxy(instance.ctx, RuntimeCompiledPublicInstanceProxyHandlers); + } + } // support for 2.x options + + + { + currentInstance = instance; + pauseTracking(); + applyOptions(instance); + resetTracking(); + currentInstance = null; + } + } + + function createSetupContext(instance) { + var expose = exposed => { + instance.exposed = exposed || {}; + }; + + { + return { + attrs: instance.attrs, + slots: instance.slots, + emit: instance.emit, + expose + }; + } + } + + function getExposeProxy(instance) { + if (instance.exposed) { + return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), { + get(target, key) { + if (key in target) { + return target[key]; + } else if (key in publicPropertiesMap) { + return publicPropertiesMap[key](instance); + } + } + + })); + } + } // record effects created during a component's setup() so that they can be + // stopped when the component unmounts + + + function recordInstanceBoundEffect(effect, instance = currentInstance) { + if (instance) { + (instance.effects || (instance.effects = [])).push(effect); + } + } + + var classifyRE = /(?:^|[-_])(\w)/g; + + var classify = str => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, ''); + + function getComponentName(Component) { + return isFunction(Component) ? Component.displayName || Component.name : Component.name; + } + /* istanbul ignore next */ + + + function formatComponentName(instance, Component, isRoot = false) { + var name = getComponentName(Component); + + if (!name && Component.__file) { + var match = Component.__file.match(/([^/\\]+)\.\w+$/); + + if (match) { + name = match[1]; + } + } + + if (!name && instance && instance.parent) { + // try to infer the name based on reverse resolution + var inferFromRegistry = registry => { + for (var key in registry) { + if (registry[key] === Component) { + return key; + } + } + }; + + name = inferFromRegistry(instance.components || instance.parent.type.components) || inferFromRegistry(instance.appContext.components); + } + + return name ? classify(name) : isRoot ? "App" : "Anonymous"; + } + + function isClassComponent(value) { + return isFunction(value) && '__vccOpts' in value; + } + + function computed$1(getterOrOptions) { + var c = computed(getterOrOptions); + recordInstanceBoundEffect(c.effect); + return c; + } // implementation + + + function defineProps() { + return null; + } // implementation + + + function defineEmits() { + return null; + } + /** + * @deprecated use `defineEmits` instead. + */ + + + var defineEmit = defineEmits; + /** + * Vue `<script setup>` compiler macro for declaring a component's exposed + * instance properties when it is accessed by a parent component via template + * refs. + * + * `<script setup>` components are closed by default - i.e. varaibles inside + * the `<script setup>` scope is not exposed to parent unless explicitly exposed + * via `defineExpose`. + * + * This is only usable inside `<script setup>`, is compiled away in the + * output and should **not** be actually called at runtime. + */ + + function defineExpose(exposed) {} + /** + * Vue `<script setup>` compiler macro for providing props default values when + * using type-based `defineProps` decalration. + * + * Example usage: + * ```ts + * withDefaults(defineProps<{ + * size?: number + * labels?: string[] + * }>(), { + * size: 3, + * labels: () => ['default label'] + * }) + * ``` + * + * This is only usable inside `<script setup>`, is compiled away in the output + * and should **not** be actually called at runtime. + */ + + + function withDefaults(props, defaults) { + return null; + } + /** + * @deprecated use `useSlots` and `useAttrs` instead. + */ + + + function useContext() { + return getContext(); + } + + function useSlots() { + return getContext().slots; + } + + function useAttrs() { + return getContext().attrs; + } + + function getContext() { + var i = getCurrentInstance(); + return i.setupContext || (i.setupContext = createSetupContext(i)); + } + /** + * Runtime helper for merging default declarations. Imported by compiled code + * only. + * @internal + */ + + + function mergeDefaults( // the base props is compiler-generated and guaranteed to be in this shape. + props, defaults) { + for (var key in defaults) { + var val = props[key]; + + if (val) { + val.default = defaults[key]; + } else if (val === null) { + props[key] = { + default: defaults[key] + }; + } else ; + } + + return props; + } + /** + * Runtime helper for storing and resuming current instance context in + * async setup(). + */ + + + function withAsyncContext(awaitable) { + var ctx = getCurrentInstance(); + setCurrentInstance(null); // unset after storing instance + + return isPromise(awaitable) ? awaitable.then(res => { + setCurrentInstance(ctx); + return res; + }, err => { + setCurrentInstance(ctx); + throw err; + }) : awaitable; + } // Actual implementation + + + function h(type, propsOrChildren, children) { + var l = arguments.length; + + if (l === 2) { + if (isObject(propsOrChildren) && !isArray(propsOrChildren)) { + // single vnode without props + if (isVNode(propsOrChildren)) { + return createVNode(type, null, [propsOrChildren]); + } // props without children + + + return createVNode(type, propsOrChildren); + } else { + // omit props + return createVNode(type, null, propsOrChildren); + } + } else { + if (l > 3) { + children = Array.prototype.slice.call(arguments, 2); + } else if (l === 3 && isVNode(children)) { + children = [children]; + } + + return createVNode(type, propsOrChildren, children); + } + } + + var ssrContextKey = Symbol(""); + + var useSSRContext = () => { + { + var ctx = inject(ssrContextKey); + + if (!ctx) { + warn("Server rendering context not provided. Make sure to only call " + "useSSRContext() conditionally in the server build."); + } + + return ctx; + } + }; + + function initCustomFormatter() { + /* eslint-disable no-restricted-globals */ + { + return; + } + } // Core API ------------------------------------------------------------------ + + + var version = "3.1.4"; + /** + * SSR utils for \@vue/server-renderer. Only exposed in cjs builds. + * @internal + */ + + var ssrUtils = null; + /** + * @internal only exposed in compat builds + */ + + var resolveFilter = null; + /** + * @internal only exposed in compat builds. + */ + + var compatUtils = null; + + function createElement(tagName, container) { + if (tagName === 'input') { + return new UniInputElement(tagName, container); + } else if (tagName === 'textarea') { + return new UniTextAreaElement(tagName, container); + } + + return new UniElement(tagName, container); + } + + function createTextNode(text, container) { + return new UniTextNode(text, container); + } + + function createComment(text, container) { + return new UniCommentNode(text, container); + } + + var tempContainer; + var nodeOps = { + insert: (child, parent, anchor) => { + parent.insertBefore(child, anchor || null); + }, + remove: child => { + var parent = child.parentNode; + + if (parent) { + parent.removeChild(child); + } + }, + createElement: (tag, container) => { + return createElement(tag, container); + }, + createText: (text, container) => createTextNode(text, container), + createComment: (text, container) => createComment(text, container), + setText: (node, text) => { + node.nodeValue = text; + }, + setElementText: (el, text) => { + el.textContent = text; + }, + parentNode: node => node.parentNode, + nextSibling: node => node.nextSibling, + + // querySelector: selector => doc.querySelector(selector), + setScopeId(el, id) { + el.setAttribute(id, ''); + }, + + cloneNode(el) { + var cloned = el.cloneNode(true); // #3072 + // - in `patchDOMProp`, we store the actual value in the `el._value` property. + // - normally, elements using `:value` bindings will not be hoisted, but if + // the bound value is a constant, e.g. `:value="true"` - they do get + // hoisted. + // - in production, hoisted nodes are cloned when subsequent inserts, but + // cloneNode() does not copy the custom property we attached. + // - This may need to account for other custom DOM properties we attach to + // elements in addition to `_value` in the future. + + if ("_value" in el) { + cloned._value = el._value; + } + + return cloned; + }, + + // __UNSAFE__ + // Reason: innerHTML. + // Static content here can only come from compiled templates. + // As long as the user only uses trusted templates, this is safe. + insertStaticContent(content, parent, anchor) { + var temp = tempContainer || (tempContainer = createElement('div')); + temp.innerHTML = content; + var first = temp.firstChild; + var node = first; + var last = node; + + while (node) { + last = node; + nodeOps.insert(node, parent, anchor); + node = temp.firstChild; + } + + return [first, last]; + } + + }; // compiler should normalize class + :class bindings on the same element + // into a single binding ['staticClass', dynamic] + + function patchClass(el, value) { + if (value == null) { + value = ''; + } + + el.setAttribute('class', value); + } + + function patchStyle(el, prev, next) { + if (!next) { + el.removeAttribute('style'); + } else if (isString(next)) { + if (prev !== next) { + el.setAttribute('style', next); + } + } else { + var batchedStyles = {}; + var isPrevObj = prev && !isString(prev); + + if (isPrevObj) { + for (var key in prev) { + if (next[key] == null) { + batchedStyles[key] = ''; + } + } + + for (var _key8 in next) { + var value = next[_key8]; + + if (value !== prev[_key8]) { + batchedStyles[_key8] = value; + } + } + } else { + for (var _key9 in next) { + batchedStyles[_key9] = next[_key9]; + } + } + + if (Object.keys(batchedStyles).length) { + el.setAttribute('style', batchedStyles); + } + } + } + + function patchAttr(el, key, value) { + if (value == null) { + el.removeAttribute(key); + } else { + el.setAttribute(key, value); + } + } + + function addEventListener(el, event, handler, options) { + el.addEventListener(event, handler, options); + } + + function removeEventListener(el, event, handler, options) { + el.removeEventListener(event, handler, options); + } + + function patchEvent(el, rawName, prevValue, nextValue, instance = null) { + // vei = vue event invokers + var invokers = el._vei || (el._vei = {}); + var existingInvoker = invokers[rawName]; + + if (nextValue && existingInvoker) { + // patch + existingInvoker.value = nextValue; + } else { + var [name, options] = parseName(rawName); + + if (nextValue) { + // add + var invoker = invokers[rawName] = createInvoker(nextValue, instance); + addEventListener(el, name, invoker, options); + } else if (existingInvoker) { + // remove + removeEventListener(el, name, existingInvoker, options); + invokers[rawName] = undefined; + } + } + } + + var optionsModifierRE = /(?:Once|Passive|Capture)$/; + + function parseName(name) { + var options; + + if (optionsModifierRE.test(name)) { + options = {}; + var m; + + while (m = name.match(optionsModifierRE)) { + name = name.slice(0, name.length - m[0].length); + options[m[0].toLowerCase()] = true; + } + } + + return [hyphenate(name.slice(2)), options]; + } + + function createInvoker(initialValue, instance) { + var invoker = e => { + callWithAsyncErrorHandling(invoker.value, instance, 5 + /* NATIVE_EVENT_HANDLER */ + , [e]); + }; + + invoker.value = initialValue; + var modifiers = new Set(); // 合并 modifiers + + if (isArray(invoker.value)) { + invoker.value.forEach(v => { + if (v.modifiers) { + v.modifiers.forEach(m => { + modifiers.add(m); + }); + } + }); + } else { + if (invoker.value.modifiers) { + invoker.value.modifiers.forEach(m => { + modifiers.add(m); + }); + } + + initWxsEvent(invoker, instance); + } + + invoker.modifiers = [...modifiers]; + return invoker; + } + + function initWxsEvent(invoker, instance) { + if (!instance) { + return; + } + + var { + $wxsModules + } = instance; + + if (!$wxsModules) { + return; + } + + var invokerSourceCode = invoker.value.toString(); + + if (!$wxsModules.find(module => invokerSourceCode.indexOf('.' + module + '.') > -1)) { + return; + } + + invoker.wxsEvent = invoker.value(); + } + + var forcePatchProps = { + AD: ['data'], + 'AD-DRAW': ['data'], + 'LIVE-PLAYER': ['picture-in-picture-mode'], + MAP: ['markers', 'polyline', 'circles', 'controls', 'include-points', 'polygons'], + PICKER: ['range', 'value'], + 'PICKER-VIEW': ['value'], + 'RICH-TEXT': ['nodes'], + VIDEO: ['danmu-list', 'header'], + 'WEB-VIEW': ['webview-styles'] + }; + var forcePatchPropKeys = ['animation']; + + var forcePatchProp = (_, key) => { + if (forcePatchPropKeys.indexOf(key) > -1) { + return true; + } + + var keys = forcePatchProps[_.nodeName]; + + if (keys && keys.indexOf(key) > -1) { + return true; + } + + return false; + }; + + var patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => { + switch (key) { + // special + case 'class': + patchClass(el, nextValue); + break; + + case 'style': + patchStyle(el, prevValue, nextValue); + break; + + default: + if (isOn(key)) { + // ignore v-model listeners + if (!isModelListener(key)) { + patchEvent(el, key, prevValue, nextValue, parentComponent); + } + } else { + // 非基本类型 + if (isObject(nextValue)) { + var equal = prevValue === nextValue; // 可触发收集响应式数据的最新依赖 + + nextValue = JSON_PROTOCOL + JSON.stringify(nextValue); + + if (equal && el.getAttribute(key) === nextValue) { + return; + } + } else if (prevValue === nextValue) { + // 基本类型 + return; + } + + patchAttr(el, key, nextValue); + } + + break; + } + }; + + function useCssModule(name = '$style') { + /* istanbul ignore else */ + { + var instance = getCurrentInstance(); + + if (!instance) { + return EMPTY_OBJ; + } + + var modules = instance.type.__cssModules; + + if (!modules) { + return EMPTY_OBJ; + } + + var mod = modules[name]; + + if (!mod) { + return EMPTY_OBJ; + } + + return mod; + } + } + /** + * Runtime helper for SFC's CSS variable injection feature. + * @private + */ + + + function useCssVars(getter) { + var instance = getCurrentInstance(); + /* istanbul ignore next */ + + if (!instance) { + return; + } + + var setVars = () => setVarsOnVNode(instance.subTree, getter(instance.proxy)); + + onMounted(() => watchEffect(setVars, { + flush: 'post' + })); + onUpdated(setVars); + } + + function setVarsOnVNode(vnode, vars) { + if (vnode.shapeFlag & 128 + /* SUSPENSE */ + ) { + var suspense = vnode.suspense; + vnode = suspense.activeBranch; + + if (suspense.pendingBranch && !suspense.isHydrating) { + suspense.effects.push(() => { + setVarsOnVNode(suspense.activeBranch, vars); + }); + } + } // drill down HOCs until it's a non-component vnode + + + while (vnode.component) { + vnode = vnode.component.subTree; + } + + if (vnode.shapeFlag & 1 + /* ELEMENT */ + && vnode.el) { + var style = vnode.el.style; + + for (var key in vars) { + style.setProperty("--".concat(key), vars[key]); + } + } else if (vnode.type === Fragment) { + vnode.children.forEach(c => setVarsOnVNode(c, vars)); + } + } + + var TRANSITION = 'transition'; + var ANIMATION = 'animation'; // DOM Transition is a higher-order-component based on the platform-agnostic + // base Transition component, with DOM-specific logic. + + var Transition = (props, { + slots + }) => h(BaseTransition, resolveTransitionProps(props), slots); + + Transition.displayName = 'Transition'; + var DOMTransitionPropsValidators = { + name: String, + type: String, + css: { + type: Boolean, + default: true + }, + duration: [String, Number, Object], + enterFromClass: String, + enterActiveClass: String, + enterToClass: String, + appearFromClass: String, + appearActiveClass: String, + appearToClass: String, + leaveFromClass: String, + leaveActiveClass: String, + leaveToClass: String + }; + var TransitionPropsValidators = Transition.props = /*#__PURE__*/extend({}, BaseTransition.props, DOMTransitionPropsValidators); + /** + * #3227 Incoming hooks may be merged into arrays when wrapping Transition + * with custom HOCs. + */ + + var callHook$1 = (hook, args = []) => { + if (isArray(hook)) { + hook.forEach(h => h(...args)); + } else if (hook) { + hook(...args); + } + }; + /** + * Check if a hook expects a callback (2nd arg), which means the user + * intends to explicitly control the end of the transition. + */ + + + var hasExplicitCallback = hook => { + return hook ? isArray(hook) ? hook.some(h => h.length > 1) : hook.length > 1 : false; + }; + + function resolveTransitionProps(rawProps) { + var baseProps = {}; + + for (var key in rawProps) { + if (!(key in DOMTransitionPropsValidators)) { + baseProps[key] = rawProps[key]; + } + } + + if (rawProps.css === false) { + return baseProps; + } + + var { + name = 'v', + type, + duration, + enterFromClass = "".concat(name, "-enter-from"), + enterActiveClass = "".concat(name, "-enter-active"), + enterToClass = "".concat(name, "-enter-to"), + appearFromClass = enterFromClass, + appearActiveClass = enterActiveClass, + appearToClass = enterToClass, + leaveFromClass = "".concat(name, "-leave-from"), + leaveActiveClass = "".concat(name, "-leave-active"), + leaveToClass = "".concat(name, "-leave-to") + } = rawProps; + var durations = normalizeDuration(duration); + var enterDuration = durations && durations[0]; + var leaveDuration = durations && durations[1]; + var { + onBeforeEnter, + onEnter, + onEnterCancelled, + onLeave, + onLeaveCancelled, + onBeforeAppear = onBeforeEnter, + onAppear = onEnter, + onAppearCancelled = onEnterCancelled + } = baseProps; + + var finishEnter = (el, isAppear, done) => { + removeTransitionClass(el, isAppear ? appearToClass : enterToClass); + removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass); + done && done(); + }; + + var finishLeave = (el, done) => { + removeTransitionClass(el, leaveToClass); + removeTransitionClass(el, leaveActiveClass); + done && done(); + }; + + var makeEnterHook = isAppear => { + return (el, done) => { + var hook = isAppear ? onAppear : onEnter; + + var resolve = () => finishEnter(el, isAppear, done); + + callHook$1(hook, [el, resolve]); + nextFrame(() => { + removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass); + addTransitionClass(el, isAppear ? appearToClass : enterToClass); + + if (!hasExplicitCallback(hook)) { + whenTransitionEnds(el, type, enterDuration, resolve); + } + }); + }; + }; + + return extend(baseProps, { + onBeforeEnter(el) { + callHook$1(onBeforeEnter, [el]); + addTransitionClass(el, enterFromClass); + addTransitionClass(el, enterActiveClass); + }, + + onBeforeAppear(el) { + callHook$1(onBeforeAppear, [el]); + addTransitionClass(el, appearFromClass); + addTransitionClass(el, appearActiveClass); + }, + + onEnter: makeEnterHook(false), + onAppear: makeEnterHook(true), + + onLeave(el, done) { + var resolve = () => finishLeave(el, done); + + addTransitionClass(el, leaveFromClass); // force reflow so *-leave-from classes immediately take effect (#2593) + + forceReflow(); + addTransitionClass(el, leaveActiveClass); + nextFrame(() => { + removeTransitionClass(el, leaveFromClass); + addTransitionClass(el, leaveToClass); + + if (!hasExplicitCallback(onLeave)) { + whenTransitionEnds(el, type, leaveDuration, resolve); + } + }); + callHook$1(onLeave, [el, resolve]); + }, + + onEnterCancelled(el) { + finishEnter(el, false); + callHook$1(onEnterCancelled, [el]); + }, + + onAppearCancelled(el) { + finishEnter(el, true); + callHook$1(onAppearCancelled, [el]); + }, + + onLeaveCancelled(el) { + finishLeave(el); + callHook$1(onLeaveCancelled, [el]); + } + + }); + } + + function normalizeDuration(duration) { + if (duration == null) { + return null; + } else if (isObject(duration)) { + return [NumberOf(duration.enter), NumberOf(duration.leave)]; + } else { + var n = NumberOf(duration); + return [n, n]; + } + } + + function NumberOf(val) { + var res = toNumber(val); + return res; + } + + function addTransitionClass(el, cls) { + cls.split(/\s+/).forEach(c => c && el.classList.add(c)); + (el._vtc || (el._vtc = new Set())).add(cls); + } + + function removeTransitionClass(el, cls) { + cls.split(/\s+/).forEach(c => c && el.classList.remove(c)); + var { + _vtc + } = el; + + if (_vtc) { + _vtc.delete(cls); + + if (!_vtc.size) { + el._vtc = undefined; + } + } + } + + function nextFrame(cb) { + requestAnimationFrame(() => { + requestAnimationFrame(cb); + }); + } + + var endId = 0; + + function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) { + var id = el._endId = ++endId; + + var resolveIfNotStale = () => { + if (id === el._endId) { + resolve(); + } + }; + + if (explicitTimeout) { + return setTimeout(resolveIfNotStale, explicitTimeout); + } + + var { + type, + timeout, + propCount + } = getTransitionInfo(el, expectedType); + + if (!type) { + return resolve(); + } + + var endEvent = type + 'end'; + var ended = 0; + + var end = () => { + el.removeEventListener(endEvent, onEnd); + resolveIfNotStale(); + }; + + var onEnd = e => { + if (e.target === el && ++ended >= propCount) { + end(); + } + }; + + setTimeout(() => { + if (ended < propCount) { + end(); + } + }, timeout + 1); + el.addEventListener(endEvent, onEnd); + } + + function getTransitionInfo(el, expectedType) { + var styles = window.getComputedStyle(el); // JSDOM may return undefined for transition properties + + var getStyleProperties = key => (styles[key] || '').split(', '); + + var transitionDelays = getStyleProperties(TRANSITION + 'Delay'); + var transitionDurations = getStyleProperties(TRANSITION + 'Duration'); + var transitionTimeout = getTimeout(transitionDelays, transitionDurations); + var animationDelays = getStyleProperties(ANIMATION + 'Delay'); + var animationDurations = getStyleProperties(ANIMATION + 'Duration'); + var animationTimeout = getTimeout(animationDelays, animationDurations); + var type = null; + var timeout = 0; + var propCount = 0; + /* istanbul ignore if */ + + if (expectedType === TRANSITION) { + if (transitionTimeout > 0) { + type = TRANSITION; + timeout = transitionTimeout; + propCount = transitionDurations.length; + } + } else if (expectedType === ANIMATION) { + if (animationTimeout > 0) { + type = ANIMATION; + timeout = animationTimeout; + propCount = animationDurations.length; + } + } else { + timeout = Math.max(transitionTimeout, animationTimeout); + type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null; + propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0; + } + + var hasTransform = type === TRANSITION && /\b(transform|all)(,|$)/.test(styles[TRANSITION + 'Property']); + return { + type, + timeout, + propCount, + hasTransform + }; + } + + function getTimeout(delays, durations) { + while (delays.length < durations.length) { + delays = delays.concat(delays); + } + + return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i]))); + } // Old versions of Chromium (below 61.0.3163.100) formats floating pointer + // numbers in a locale-dependent way, using a comma instead of a dot. + // If comma is not replaced with a dot, the input will be rounded down + // (i.e. acting as a floor function) causing unexpected behaviors + + + function toMs(s) { + return Number(s.slice(0, -1).replace(',', '.')) * 1000; + } // synchronously force layout to put elements into a certain state + + + function forceReflow() { + return document.body.offsetHeight; + } + + var positionMap = new WeakMap(); + var newPositionMap = new WeakMap(); + var TransitionGroupImpl = { + name: 'TransitionGroup', + props: /*#__PURE__*/extend({}, TransitionPropsValidators, { + tag: String, + moveClass: String + }), + + setup(props, { + slots + }) { + var instance = getCurrentInstance(); + var state = useTransitionState(); + var prevChildren; + var children; + onUpdated(() => { + // children is guaranteed to exist after initial render + if (!prevChildren.length) { + return; + } + + var moveClass = props.moveClass || "".concat(props.name || 'v', "-move"); + + if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) { + return; + } // we divide the work into three loops to avoid mixing DOM reads and writes + // in each iteration - which helps prevent layout thrashing. + + + prevChildren.forEach(callPendingCbs); + prevChildren.forEach(recordPosition); + var movedChildren = prevChildren.filter(applyTranslation); // force reflow to put everything in position + + forceReflow(); + movedChildren.forEach(c => { + var el = c.el; + var style = el.style; + addTransitionClass(el, moveClass); + style.transform = style.webkitTransform = style.transitionDuration = ''; + + var cb = el._moveCb = e => { + if (e && e.target !== el) { + return; + } + + if (!e || /transform$/.test(e.propertyName)) { + el.removeEventListener('transitionend', cb); + el._moveCb = null; + removeTransitionClass(el, moveClass); + } + }; + + el.addEventListener('transitionend', cb); + }); + }); + return () => { + var rawProps = toRaw(props); + var cssTransitionProps = resolveTransitionProps(rawProps); + var tag = rawProps.tag || Fragment; + prevChildren = children; + children = slots.default ? getTransitionRawChildren(slots.default()) : []; + + for (var i = 0; i < children.length; i++) { + var child = children[i]; + + if (child.key != null) { + setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance)); + } + } + + if (prevChildren) { + for (var _i4 = 0; _i4 < prevChildren.length; _i4++) { + var _child = prevChildren[_i4]; + setTransitionHooks(_child, resolveTransitionHooks(_child, cssTransitionProps, state, instance)); + positionMap.set(_child, _child.el.getBoundingClientRect()); + } + } + + return createVNode(tag, null, children); + }; + } + + }; + var TransitionGroup = TransitionGroupImpl; + + function callPendingCbs(c) { + var el = c.el; + + if (el._moveCb) { + el._moveCb(); + } + + if (el._enterCb) { + el._enterCb(); + } + } + + function recordPosition(c) { + newPositionMap.set(c, c.el.getBoundingClientRect()); + } + + function applyTranslation(c) { + var oldPos = positionMap.get(c); + var newPos = newPositionMap.get(c); + var dx = oldPos.left - newPos.left; + var dy = oldPos.top - newPos.top; + + if (dx || dy) { + var s = c.el.style; + s.transform = s.webkitTransform = "translate(".concat(dx, "px,").concat(dy, "px)"); + s.transitionDuration = '0s'; + return c; + } + } + + function hasCSSTransform(el, root, moveClass) { + // Detect whether an element with the move class applied has + // CSS transitions. Since the element may be inside an entering + // transition at this very moment, we make a clone of it and remove + // all other transition classes applied to ensure only the move class + // is applied. + var clone = el.cloneNode(); + + if (el._vtc) { + el._vtc.forEach(cls => { + cls.split(/\s+/).forEach(c => c && clone.classList.remove(c)); + }); + } + + moveClass.split(/\s+/).forEach(c => c && clone.classList.add(c)); + clone.style.display = 'none'; + var container = root.nodeType === 1 ? root : root.parentNode; + container.appendChild(clone); + var { + hasTransform + } = getTransitionInfo(clone); + container.removeChild(clone); + return hasTransform; + } + + var getModelAssigner = vnode => { + var fn = vnode.props['onUpdate:modelValue']; + return isArray(fn) ? value => invokeArrayFns(fn, value) : fn; + }; // We are exporting the v-model runtime directly as vnode hooks so that it can + // be tree-shaken in case v-model is never used. + + + var vModelText = { + created(el, { + value, + modifiers: { + trim, + number + } + }, vnode) { + el.value = value == null ? '' : value; + el._assign = getModelAssigner(vnode); + addEventListener(el, 'input', e => { + var domValue = e.detail.value; // 从 view 层接收到新值后,赋值给 service 层元素,注意,需要临时解除 pageNode,否则赋值 value 会触发向 view 层的再次同步数据 + + var pageNode = el.pageNode; + el.pageNode = null; + el.value = domValue; + el.pageNode = pageNode; + + if (trim) { + domValue = domValue.trim(); + } else if (number) { + domValue = toNumber(domValue); + } + + el._assign(domValue); + }); + }, + + beforeUpdate(el, { + value + }, vnode) { + el._assign = getModelAssigner(vnode); + var newValue = value == null ? '' : value; + + if (el.value !== newValue) { + el.value = newValue; + } + } + + }; + var systemModifiers = ['ctrl', 'shift', 'alt', 'meta']; + var modifierGuards = { + stop: e => e.stopPropagation(), + prevent: e => e.preventDefault(), + self: e => e.target !== e.currentTarget, + ctrl: e => !e.ctrlKey, + shift: e => !e.shiftKey, + alt: e => !e.altKey, + meta: e => !e.metaKey, + left: e => 'button' in e && e.button !== 0, + middle: e => 'button' in e && e.button !== 1, + right: e => 'button' in e && e.button !== 2, + exact: (e, modifiers) => systemModifiers.some(m => e["".concat(m, "Key")] && !modifiers.includes(m)) + }; + /** + * @private + */ + + var withModifiers = (fn, modifiers) => { + // fixed by xxxxxx 补充 modifiers 标记,方便同步给 view 层 + var wrapper = (event, ...args) => { + for (var i = 0; i < modifiers.length; i++) { + var guard = modifierGuards[modifiers[i]]; + if (guard && guard(event, modifiers)) return; + } + + return fn(event, ...args); + }; + + wrapper.modifiers = modifiers; + return wrapper; + }; // Kept for 2.x compat. + // Note: IE11 compat for `spacebar` and `del` is removed for now. + + + var keyNames = { + esc: 'escape', + space: ' ', + up: 'arrow-up', + left: 'arrow-left', + right: 'arrow-right', + down: 'arrow-down', + delete: 'backspace' + }; + /** + * @private + */ + + var withKeys = (fn, modifiers) => { + return event => { + if (!('key' in event)) { + return; + } + + var eventKey = hyphenate(event.key); + + if (modifiers.some(k => k === eventKey || keyNames[k] === eventKey)) { + return fn(event); + } + }; + }; + + var vShow = { + beforeMount(el, { + value + }) { + setDisplay(el, value); + }, + + updated(el, { + value, + oldValue + }) { + if (!value === !oldValue) return; + setDisplay(el, value); + }, + + beforeUnmount(el, { + value + }) { + setDisplay(el, value); + } + + }; + + function setDisplay(el, value) { + el.setAttribute('.vShow', !!value); + } + + var rendererOptions = extend({ + patchProp, + forcePatchProp + }, nodeOps); // lazy create the renderer - this makes core renderer logic tree-shakable + // in case the user only imports reactivity utilities from Vue. + + var renderer; + + function ensureRenderer() { + return renderer || (renderer = createRenderer(rendererOptions)); + } // use explicit type casts here to avoid import() calls in rolled-up d.ts + + + var render = (...args) => { + ensureRenderer().render(...args); + }; + + var createApp = (...args) => { + var app = ensureRenderer().createApp(...args); + var { + mount + } = app; + + app.mount = container => { + if (isString(container)) { + container = createComment(container); + } + + return container && mount(container, false, false); + }; + + return app; + }; + + var createSSRApp = createApp; // 在h5平台测试时,需要的mock + + function onBeforeActivate() {} + + function onBeforeDeactivate() {} + + var Vue = /*#__PURE__*/Object.freeze({ + __proto__: null, + BaseTransition: BaseTransition, + Comment: Comment$1, + Fragment: Fragment, + KeepAlive: KeepAlive, + Static: Static, + Suspense: Suspense, + Teleport: Teleport, + Text: Text, + Transition: Transition, + TransitionGroup: TransitionGroup, + callWithAsyncErrorHandling: callWithAsyncErrorHandling, + callWithErrorHandling: callWithErrorHandling, + camelize: camelize, + capitalize: capitalize, + cloneVNode: cloneVNode, + compatUtils: compatUtils, + computed: computed$1, + createApp: createApp, + createBlock: createBlock, + createComment: createComment, + createCommentVNode: createCommentVNode, + createElement: createElement, + createHydrationRenderer: createHydrationRenderer, + createRenderer: createRenderer, + createSSRApp: createSSRApp, + createSlots: createSlots, + createStaticVNode: createStaticVNode, + createTextNode: createTextNode, + createTextVNode: createTextVNode, + createVNode: createVNode, + createVueApp: createApp, + customRef: customRef, + defineAsyncComponent: defineAsyncComponent, + defineComponent: defineComponent, + defineEmit: defineEmit, + defineEmits: defineEmits, + defineExpose: defineExpose, + defineProps: defineProps, + + get devtools() { + return devtools; + }, + + getCurrentInstance: getCurrentInstance, + getTransitionRawChildren: getTransitionRawChildren, + h: h, + handleError: handleError, + initCustomFormatter: initCustomFormatter, + inject: inject, + injectHook: injectHook, + + get isInSSRComponentSetup() { + return isInSSRComponentSetup; + }, + + isProxy: isProxy, + isReactive: isReactive, + isReadonly: isReadonly, + isRef: isRef, + isRuntimeOnly: isRuntimeOnly, + isVNode: isVNode, + markRaw: markRaw, + mergeDefaults: mergeDefaults, + mergeProps: mergeProps, + nextTick: nextTick, + onActivated: onActivated, + onBeforeActivate: onBeforeActivate, + onBeforeDeactivate: onBeforeDeactivate, + onBeforeMount: onBeforeMount, + onBeforeUnmount: onBeforeUnmount, + onBeforeUpdate: onBeforeUpdate, + onDeactivated: onDeactivated, + onErrorCaptured: onErrorCaptured, + onMounted: onMounted, + onRenderTracked: onRenderTracked, + onRenderTriggered: onRenderTriggered, + onServerPrefetch: onServerPrefetch, + onUnmounted: onUnmounted, + onUpdated: onUpdated, + openBlock: openBlock, + popScopeId: popScopeId, + provide: provide, + proxyRefs: proxyRefs, + pushScopeId: pushScopeId, + queuePostFlushCb: queuePostFlushCb, + reactive: reactive, + readonly: readonly, + ref: ref, + registerRuntimeCompiler: registerRuntimeCompiler, + render: render, + renderList: renderList, + renderSlot: renderSlot, + resolveComponent: resolveComponent, + resolveDirective: resolveDirective, + resolveDynamicComponent: resolveDynamicComponent, + resolveFilter: resolveFilter, + resolveTransitionHooks: resolveTransitionHooks, + setBlockTracking: setBlockTracking, + setDevtoolsHook: setDevtoolsHook, + setTransitionHooks: setTransitionHooks, + shallowReactive: shallowReactive, + shallowReadonly: shallowReadonly, + shallowRef: shallowRef, + ssrContextKey: ssrContextKey, + ssrUtils: ssrUtils, + toDisplayString: toDisplayString, + toHandlerKey: toHandlerKey, + toHandlers: toHandlers, + toRaw: toRaw, + toRef: toRef, + toRefs: toRefs, + transformVNodeArgs: transformVNodeArgs, + triggerRef: triggerRef, + unref: unref, + useAttrs: useAttrs, + useContext: useContext, + useCssModule: useCssModule, + useCssVars: useCssVars, + useSSRContext: useSSRContext, + useSlots: useSlots, + useTransitionState: useTransitionState, + vModelText: vModelText, + vShow: vShow, + version: version, + warn: warn, + watch: watch, + watchEffect: watchEffect, + withAsyncContext: withAsyncContext, + withCtx: withCtx, + withDefaults: withDefaults, + withDirectives: withDirectives, + withKeys: withKeys, + withModifiers: withModifiers, + withScopeId: withScopeId + }); + exports.Vue = Vue; +} diff --git a/packages/uni-app-vue/package.json b/packages/uni-app-vue/package.json index c4b5ea1603f..9a7a22df979 100644 --- a/packages/uni-app-vue/package.json +++ b/packages/uni-app-vue/package.json @@ -2,8 +2,8 @@ "name": "@dcloudio/uni-app-vue", "version": "3.0.0-alpha-3000020210813001", "description": "@dcloudio/uni-app-vue", - "main": "dist/service.runtime.esm.js", - "module": "dist/service.runtime.esm.js", + "main": "dist/service.runtime.esm.dev.js", + "module": "dist/service.runtime.esm.dev.js", "files": [ "dist" ], diff --git a/packages/uni-cli-nvue/src/webpack/plugin/WatchPlugin.ts b/packages/uni-cli-nvue/src/webpack/plugin/WatchPlugin.ts index 2bc3d14be0a..2720b8010b2 100644 --- a/packages/uni-cli-nvue/src/webpack/plugin/WatchPlugin.ts +++ b/packages/uni-cli-nvue/src/webpack/plugin/WatchPlugin.ts @@ -16,7 +16,9 @@ export default class WatchPlugin { compiler.hooks.invalid.tap('WatchPlugin', () => { if (!isCompiling) { isCompiling = true - console.log(M['dev.watching.start']) + if (!isFirst) { + console.log(M['dev.watching.start']) + } } }) compiler.hooks.done.tap('WatchPlugin', (stats) => { diff --git a/packages/vite-plugin-uni/src/cli/action.ts b/packages/vite-plugin-uni/src/cli/action.ts index 6fd6c5921c1..53b127c6a0c 100644 --- a/packages/vite-plugin-uni/src/cli/action.ts +++ b/packages/vite-plugin-uni/src/cli/action.ts @@ -15,8 +15,12 @@ export async function runDev(options: CliOptions & ServerOptions) { await (options.ssr ? createSSRServer(options) : createServer(options)) } else { const watcher = (await build(options)) as RollupWatcher + let isFirst = true watcher.on('event', (event) => { if (event.code === 'BUNDLE_START') { + if (isFirst) { + return (isFirst = false) + } console.log(M['dev.watching.start']) } else if (event.code === 'BUNDLE_END') { event.result.close()
51fe9f2867710d987895684631d1167492abaff9
2024-08-23 15:16:04
zhenyuWang
wip(x-ios): 实现 dialogPage eventBus
false
实现 dialogPage eventBus
wip
diff --git a/packages/uni-app-plus/src/x/framework/page/dialogPage.ts b/packages/uni-app-plus/src/x/framework/page/dialogPage.ts index 9d63cf96182..7ac377cc7cc 100644 --- a/packages/uni-app-plus/src/x/framework/page/dialogPage.ts +++ b/packages/uni-app-plus/src/x/framework/page/dialogPage.ts @@ -1,9 +1,20 @@ +import { + type EmitterEmit, + type EmitterOff, + type EmitterOn, + type EmitterOnce, + EventBus, +} from '@dcloudio/uni-api' import type { ComponentPublicInstance } from 'vue' export class DialogPage { route: string = '' component?: any $getParentPage: () => ComponentPublicInstance | null + $on: EmitterOn + $once: EmitterOnce + $off: EmitterOff + $emit: EmitterEmit $disableEscBack: boolean = false $vm?: ComponentPublicInstance @@ -19,6 +30,11 @@ export class DialogPage { this.route = route this.component = component this.$getParentPage = $getParentPage + const { $on, $once, $emit, $off } = new EventBus() + this.$on = $on + this.$once = $once + this.$off = $off + this.$emit = $emit } }
1890130cec96f25730a62ae1d2974f009e5c09d4
2025-01-15 17:15:43
DCloud_LXH
feat(harmony-x): uni-document
false
uni-document
feat
diff --git a/packages/uni-app-harmony/dist-x/uni-api-shared.ets b/packages/uni-app-harmony/dist-x/uni-api-shared.ets new file mode 100644 index 00000000000..50b0357c3d5 --- /dev/null +++ b/packages/uni-app-harmony/dist-x/uni-api-shared.ets @@ -0,0 +1,142 @@ +import { defineAsyncApi as originalDefineAsyncApi, defineOffApi as originalDefineOffApi, defineOnApi as originalDefineOnApi, defineSyncApi as originalDefineSyncApi, defineTaskApi as originalDefineTaskApi } from "@dcloudio/uni-runtime-harmony"; +interface UniProvider { + id: string; + description: string; +} +const providers: Map<String, Map<String, UniProvider>> = new Map(); +function getUniProvider<T extends UniProvider>(service: string, providerName: String): T | null { + return providers.get(service)?.get(providerName) as T | null; +} +function getUniProviders(service: string): UniProvider[] { + const result: UniProvider[] = []; + providers.get(service)?.forEach((provider)=>{ + result.push(provider); + }); + return result; +} +function registerUniProvider<T extends UniProvider>(service: string, providerName: string, provider: T) { + if (!providers.has(service)) { + providers.set(service, new Map()); + } + providers.get(service)?.set(providerName, provider); +} +type Anything = Object | null | undefined; +type NullType = null | undefined; +type FormatArgsValueType = Function | string | number | boolean; +interface AsyncApiSuccessResult { +} +interface AsyncApiResult { +} +interface ApiError { + errMsg?: string | null; + errCode?: number | null; +} +interface ApiExecutor<K> { + resolve: (res?: K | void) => void; + reject: (errMsg?: string, errRes?: ApiError) => void; +} +interface ProtocolOptions { + name?: string | null; + type?: string | null; + required?: boolean | null; + validator?: (value: Object) => boolean | undefined | string; +} +interface ApiOptions<T> { + beforeInvoke?: (args: Object) => boolean | void | string; + beforeAll?: (res: Object) => void; + beforeSuccess?: (res: Object, args: T) => void; + formatArgs?: Map<string, FormatArgsValueType>; +} +interface AsyncMethodOptionLike { + success?: Function | null; +} +const TYPE_MAP = new Map<string, Object>([ + [ + 'string', + String + ], + [ + 'number', + Number + ], + [ + 'boolean', + Boolean + ], + [ + 'array', + Array + ], + [ + 'object', + Object + ] +]); +function getPropType(type: string | NullType): Anything { + if (!type) { + return; + } + return TYPE_MAP.get(type); +} +function buildProtocol(protocol: Map<string, ProtocolOptions> | null = null) { + const originalProtocol = {} as Record<string, Object>; + protocol?.forEach((value, key)=>{ + const protocol = originalProtocol[key] = {} as Record<string, Anything>; + protocol.name = value.name; + protocol.type = getPropType(value.type); + protocol.required = value.required; + protocol.validator = value.validator; + }); + return originalProtocol; +} +function buildOptions(options: ApiOptions<AsyncMethodOptionLike> | null = null) { + const originalFormatArgs = {} as Record<string, FormatArgsValueType>; + const originalOptions = {} as Record<string, Anything>; + if (options) { + if (options.formatArgs) { + options.formatArgs.forEach((value, key)=>{ + originalFormatArgs[key] = value; + }); + } + originalOptions.beforeInvoke = options.beforeInvoke; + originalOptions.beforeAll = options.beforeAll; + originalOptions.beforeSuccess = options.beforeSuccess; + originalOptions.formatArgs = originalFormatArgs; + } + return originalOptions; +} +function defineAsyncApi<T extends AsyncMethodOptionLike, K>(name: string, fn: (options: T, res: ApiExecutor<K>) => void, protocol: Map<string, ProtocolOptions> | null = null, options: ApiOptions<T> | null = null): Function { + const originalProtocol = buildProtocol(protocol); + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineAsyncApi(name, fn, originalProtocol, originalOptions); +} +function defineTaskApi<T, K, TASK>(name: string, fn: (options: T, res: ApiExecutor<K>) => TASK, protocol: Map<string, ProtocolOptions>, options: ApiOptions<T>): Object { + const originalProtocol = buildProtocol(protocol); + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineTaskApi(name, fn, originalProtocol, originalOptions); +} +function defineSyncApi<K>(name: string, fn: Function, protocol: Map<string, ProtocolOptions> | null = null, options: ApiOptions<Object> | null = null): (...args: Object[]) => K { + const originalProtocol = buildProtocol(protocol); + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineSyncApi(name, fn, originalProtocol, originalOptions); +} +function defineOnApi<T>(name: string, fn: () => void, options: ApiOptions<T> | null = null): Function { + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineOnApi(name, fn, originalOptions); +} +function defineOffApi<T>(name: string, fn: () => void, options: ApiOptions<T> | null = null): Function { + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineOffApi(name, fn, originalOptions); +} +export { UniProvider as UniProvider, getUniProvider as getUniProvider, getUniProviders as getUniProviders, registerUniProvider as registerUniProvider }; +export { AsyncApiSuccessResult as AsyncApiSuccessResult }; +export { AsyncApiResult as AsyncApiResult }; +export { ApiError as ApiError }; +export { ApiExecutor as ApiExecutor }; +export { ProtocolOptions as ProtocolOptions }; +export { ApiOptions as ApiOptions }; +export { defineAsyncApi as defineAsyncApi }; +export { defineTaskApi as defineTaskApi }; +export { defineSyncApi as defineSyncApi }; +export { defineOnApi as defineOnApi }; +export { defineOffApi as defineOffApi }; diff --git a/packages/uni-app-harmony/dist-x/uni.api.ets b/packages/uni-app-harmony/dist-x/uni.api.ets new file mode 100644 index 00000000000..8d6ccef513b --- /dev/null +++ b/packages/uni-app-harmony/dist-x/uni.api.ets @@ -0,0 +1,10636 @@ +import Want from '@ohos.app.ability.Want'; +import common from '@ohos.app.ability.common'; +import wantConstant from '@ohos.app.ability.wantConstant'; +import buffer from '@ohos.buffer'; +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; +import deviceInfo from '@ohos.deviceInfo'; +import fs from '@ohos.file.fs'; +import photoAccessHelper from '@ohos.file.photoAccessHelper'; +import inputMethod from '@ohos.inputMethod'; +import media from '@ohos.multimedia.media'; +import connection from '@ohos.net.connection'; +import webSocket from '@ohos.net.webSocket'; +import pasteboard from '@ohos.pasteboard'; +import cryptoFramework from '@ohos.security.cryptoFramework'; +import call from '@ohos.telephony.call'; +import radio from '@ohos.telephony.radio'; +import uri from '@ohos.uri'; +import util from '@ohos.util'; +import webview from '@ohos.web.webview'; +import zlib from '@ohos.zlib'; +import { BusinessError as BusinessError1 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError10 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError11 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError12 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError13 } from '@ohos.base'; +import { BusinessError as BusinessError14 } from '@ohos.base'; +import { BusinessError as BusinessError2 } from '@ohos.base'; +import { BusinessError as BusinessError3 } from '@ohos.base'; +import { BusinessError as BusinessError4 } from '@ohos.base'; +import { BusinessError as BusinessError5 } from '@ohos.base'; +import { BusinessError as BusinessError6 } from '@ohos.base'; +import { BusinessError as BusinessError7 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError8 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError9 } from '@kit.BasicServicesKit'; +import { BusinessError } from '@kit.BasicServicesKit'; +import { CompressorResponseCode, CompressorResponse, VideoCompressor, CompressQuality } from '@ohos/videocompressor'; +import { Emitter as Emitter1, onNativePageReady } from "@dcloudio/uni-runtime-harmony"; +import { Emitter as Emitter2, getCurrentMP as getCurrentMP1 } from "@dcloudio/uni-runtime-harmony"; +import { Emitter as Emitter5, getCurrentMP as getCurrentMP5 } from "@dcloudio/uni-runtime-harmony"; +import { Emitter, getCurrentMP } from "@dcloudio/uni-runtime-harmony"; +import Hash from '@ohos.file.hash'; +import I18n from '@ohos.i18n'; +import I18n1 from '@ohos.i18n'; +import I18n2 from '@ohos.i18n'; +import { ListFileOptions } from '@ohos.file.fs'; +import { ReadOptions as ReadOptions2 } from '@ohos.file.fs'; +import { ReadOptions } from '@ohos.file.fs'; +import { UTSObject, UniError, IUniError, string, ApiError, UniProvider, AsyncApiSuccessResult, AsyncApiResult, UTSJSONObject, ApiOptions, ProtocolOptions, defineAsyncApi, ApiExecutor, defineSyncApi, getUniProviders, defineTaskApi, getUniProvider } from "./shared"; +import { UniElement, UTSHarmony, UniPageImpl } from "@dcloudio/uni-runtime-harmony"; +import Want1 from '@ohos.app.ability.Want'; +import { abilityAccessCtrl } from '@kit.AbilityKit'; +import { access } from '@kit.ConnectivityKit'; +import { audio as audio1 } from '@kit.AudioKit'; +import { audio } from '@kit.AudioKit'; +import { avSession } from '@kit.AVSessionKit'; +import { backgroundTaskManager } from '@kit.BackgroundTasksKit'; +import buffer1 from '@ohos.buffer'; +import { bundleManager } from '@kit.AbilityKit'; +import bundleManager1 from '@ohos.bundle.bundleManager'; +import bundleManager2 from '@ohos.bundle.bundleManager'; +import { camera as camera1 } from '@kit.CameraKit'; +import { camera } from '@kit.CameraKit'; +import { cameraPicker as cameraPicker1 } from '@kit.CameraKit'; +import { cameraPicker } from '@kit.CameraKit'; +import common1 from '@ohos.app.ability.common'; +import common2 from '@ohos.app.ability.common'; +import common3 from '@ohos.app.ability.common'; +import common4 from '@ohos.app.ability.common'; +import { contact } from '@kit.ContactsKit'; +import cryptoFramework1 from '@ohos.security.cryptoFramework'; +import dataPreferences from '@ohos.data.preferences'; +import deviceInfo1 from '@ohos.deviceInfo'; +import { display } from '@kit.ArkUI'; +import { document as uniDocument } from "@dcloudio/uni-runtime-harmony"; +import { fileIo as fileIo1 } from '@kit.CoreFileKit'; +import { fileIo as fileIo2 } from '@kit.CoreFileKit'; +import { fileIo as fileIo3 } from '@kit.CoreFileKit'; +import { fileIo as fileIo4 } from '@kit.CoreFileKit'; +import { fileIo as fs5 } from '@kit.CoreFileKit'; +import { fileIo } from '@kit.CoreFileKit'; +import fileUri from '@ohos.file.fileuri'; +import fileUri1 from '@ohos.file.fileuri'; +import fs1 from '@ohos.file.fs'; +import fs2, { ReadTextOptions } from '@ohos.file.fs'; +import fs3, { ListFileOptions as ListFileOptions1, WriteOptions as OHWriteOptions, ReadOptions as ReadOptions1, ReadTextOptions as ReadTextOptions1 } from '@ohos.file.fs'; +import fs4 from '@ohos.file.fs'; +import fs6 from '@ohos.file.fs'; +import fs7 from '@ohos.file.fs'; +import fs8 from '@ohos.file.fs'; +import { geoLocationManager } from '@kit.LocationKit'; +import { getCurrentMP as getCurrentMP4 } from "@dcloudio/uni-runtime-harmony"; +import { getDeviceId } from "@dcloudio/uni-runtime-harmony"; +import { getEnv as getEnv1, getRealPath as getRealPath1 } from "@dcloudio/uni-runtime-harmony"; +import { getEnv as getEnv2, getRealPath as runtimeGetRealPath } from "@dcloudio/uni-runtime-harmony"; +import { getEnv as getEnv3 } from "@dcloudio/uni-runtime-harmony"; +import { getEnv as getEnv4 } from "@dcloudio/uni-runtime-harmony"; +import { getEnv as getEnv5, Emitter as Emitter4, getCurrentMP as getCurrentMP3 } from "@dcloudio/uni-runtime-harmony"; +import { getEnv, getRealPath } from "@dcloudio/uni-runtime-harmony"; +import { getRealPath as getRealPath2 } from "@dcloudio/uni-runtime-harmony"; +import { getRealPath as getRealPath3 } from "@dcloudio/uni-runtime-harmony"; +import { getRealPath as getRealPath4 } from "@dcloudio/uni-runtime-harmony"; +import { getRealPath as getRealPath5, Emitter as Emitter3, getCurrentMP as getCurrentMP2 } from "@dcloudio/uni-runtime-harmony"; +import { getResourceStr } from "@dcloudio/uni-runtime-harmony"; +import { getWindowInfo as internalGetWindowInfo, getDeviceId as getDeviceId1 } from "@dcloudio/uni-runtime-harmony"; +import harmonyUrl from '@ohos.url'; +import harmonyUrl1 from '@ohos.url'; +import harmonyWindow from '@ohos.window'; +import { http } from '@kit.NetworkKit'; +import http1 from '@ohos.net.http'; +import http2 from '@ohos.net.http'; +import http3 from '@ohos.net.http'; +import { image } from '@kit.ImageKit'; +import image1 from '@ohos.multimedia.image'; +import { media as media1 } from '@kit.MediaKit'; +import { media as media2 } from '@kit.MediaKit'; +import media3 from '@ohos.multimedia.media'; +import media4 from '@ohos.multimedia.media'; +import { notificationManager } from '@kit.NotificationKit'; +import photoAccessHelper1 from '@ohos.file.photoAccessHelper'; +import photoAccessHelper2 from '@ohos.file.photoAccessHelper'; +import photoAccessHelper3 from '@ohos.file.photoAccessHelper'; +import photoAccessHelper4 from '@ohos.file.photoAccessHelper'; +import photoAccessHelper5 from '@ohos.file.photoAccessHelper'; +import { picker, fileIo as fileIo5 } from '@kit.CoreFileKit'; +import { promptAction as promptAction2 } from '@kit.ArkUI'; +import { promptAction as promptAction3 } from '@kit.ArkUI'; +import { promptAction as promptAction4 } from '@kit.ArkUI'; +import { promptAction } from '@kit.ArkUI'; +import promptAction1 from '@ohos.promptAction'; +import promptAction5 from '@ohos.promptAction'; +import { scanCore, scanBarcode } from '@kit.ScanKit'; +import { systemShare } from '@kit.ShareKit'; +import { uni } from "@dcloudio/uni-runtime-harmony"; +import { uniformTypeDescriptor as uniformTypeDescriptor1 } from '@kit.ArkData'; +import { userAuth } from '@kit.UserAuthenticationKit'; +import util1 from '@ohos.util'; +import { wantAgent } from '@kit.AbilityKit'; +import { wifiManager } from '@kit.ConnectivityKit'; +import { window as window1 } from '@kit.ArkUI'; +import { window as window2 } from '@kit.ArkUI'; +import { window } from '@kit.ArkUI'; +type AddPhoneContact = (options: AddPhoneContactOptions) => void; +class AddPhoneContactSuccess extends UTSObject { +} +type AddPhoneContactSuccessCallback = (result: AddPhoneContactSuccess) => void; +type AddPhoneContactFail = UniError; +type AddPhoneContactFailCallback = (result: AddPhoneContactFail) => void; +type AddPhoneContactComplete = Object; +type AddPhoneContactCompleteCallback = (result: AddPhoneContactComplete) => void; +class AddPhoneContactOptions extends UTSObject { + photoFilePath: string | null = null; + nickName: string | null = null; + lastName: string | null = null; + middleName: string | null = null; + firstName: string | null = null; + remark: string | null = null; + mobilePhoneNumber: string | null = null; + weChatNumber: string | null = null; + addressCountry: string | null = null; + addressState: string | null = null; + addressCity: string | null = null; + addressStreet: string | null = null; + addressPostalCode: string | null = null; + organization: string | null = null; + title: string | null = null; + workFaxNumber: string | null = null; + workPhoneNumber: string | null = null; + hostNumber: string | null = null; + email: string | null = null; + url: string | null = null; + workAddressCountry: string | null = null; + workAddressState: string | null = null; + workAddressCity: string | null = null; + workAddressStreet: string | null = null; + workAddressPostalCode: string | null = null; + homeFaxNumber: string | null = null; + homePhoneNumber: string | null = null; + homeAddressCountry: string | null = null; + homeAddressState: string | null = null; + homeAddressCity: string | null = null; + homeAddressStreet: string | null = null; + homeAddressPostalCode: string | null = null; + success: AddPhoneContactSuccessCallback | null = null; + fail: AddPhoneContactFailCallback | null = null; + complete: AddPhoneContactCompleteCallback | null = null; +} +type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void; +type SoterAuthMode = 'fingerPrint' | 'facial' | 'speech'; +class StartSoterAuthenticationSuccess extends UTSObject { + errCode!: number; + authMode!: SoterAuthMode; + resultJSON: string | null = null; + resultJSONSignature: string | null = null; + errMsg!: string; +} +type StartSoterAuthenticationSuccessCallback = (result: StartSoterAuthenticationSuccess) => void; +type StartSoterAuthenticationFail = UniError; +type StartSoterAuthenticationFailCallback = (result: StartSoterAuthenticationFail) => void; +type StartSoterAuthenticationComplete = Object; +type StartSoterAuthenticationCompleteCallback = (result: StartSoterAuthenticationComplete) => void; +class StartSoterAuthenticationOptions extends UTSObject { + requestAuthModes!: SoterAuthMode[]; + challenge: string | null = null; + authContent: string | null = null; + success: StartSoterAuthenticationSuccessCallback | null = null; + fail: StartSoterAuthenticationFailCallback | null = null; + complete: StartSoterAuthenticationCompleteCallback | null = null; +} +type CheckIsSupportSoterAuthentication = (options: CheckIsSupportSoterAuthenticationOptions) => void; +class CheckIsSupportSoterAuthenticationSuccess extends UTSObject { + supportMode!: SoterAuthMode[]; + errMsg!: string; +} +type CheckIsSupportSoterAuthenticationSuccessCallback = (result: CheckIsSupportSoterAuthenticationSuccess) => void; +type CheckIsSupportSoterAuthenticationFail = UniError; +type CheckIsSupportSoterAuthenticationFailCallback = (result: CheckIsSupportSoterAuthenticationFail) => void; +type CheckIsSupportSoterAuthenticationComplete = Object; +type CheckIsSupportSoterAuthenticationCompleteCallback = (result: CheckIsSupportSoterAuthenticationComplete) => void; +class CheckIsSupportSoterAuthenticationOptions extends UTSObject { + success: CheckIsSupportSoterAuthenticationSuccessCallback | null = null; + fail: CheckIsSupportSoterAuthenticationFailCallback | null = null; + complete: CheckIsSupportSoterAuthenticationCompleteCallback | null = null; +} +type CheckIsSoterEnrolledInDevice = (options: CheckIsSoterEnrolledInDeviceOptions) => void; +class CheckIsSoterEnrolledInDeviceSuccess extends UTSObject { + isEnrolled!: boolean; + errMsg!: string; +} +type CheckIsSoterEnrolledInDeviceSuccessCallback = (result: CheckIsSoterEnrolledInDeviceSuccess) => void; +type CheckIsSoterEnrolledInDeviceFail = UniError; +type CheckIsSoterEnrolledInDeviceFailCallback = (result: CheckIsSoterEnrolledInDeviceFail) => void; +type CheckIsSoterEnrolledInDeviceComplete = Object; +type CheckIsSoterEnrolledInDeviceCompleteCallback = (result: CheckIsSoterEnrolledInDeviceComplete) => void; +class CheckIsSoterEnrolledInDeviceOptions extends UTSObject { + checkAuthMode!: SoterAuthMode; + success: CheckIsSoterEnrolledInDeviceSuccessCallback | null = null; + fail: CheckIsSoterEnrolledInDeviceFailCallback | null = null; + complete: CheckIsSoterEnrolledInDeviceCompleteCallback | null = null; +} +type ChooseMediaErrorCode = 1101001 | 1101005 | 1101006 | 1101008; +interface IChooseMediaError extends IUniError { + errCode: ChooseMediaErrorCode; +} +type ChooseMediaFileType = 'image' | 'video'; +class ChooseMediaTempFile extends UTSObject { + tempFilePath!: string; + fileType!: ChooseMediaFileType; + size!: number; + duration: number | null = null; + height: number | null = null; + width: number | null = null; + thumbTempFilePath: string | null = null; +} +export class ChooseMediaSuccess extends UTSObject { + tempFiles!: ChooseMediaTempFile[]; + type!: 'image' | 'video' | 'mix'; +} +type ChooseMediaFail = IChooseMediaError; +type ChooseMediaSuccessCallback = (callback: ChooseMediaSuccess) => void; +type ChooseMediaFailCallback = (callback: ChooseMediaFail) => void; +type ChooseMediaCompleteCallback = (callback: Object) => void; +type ChooseMediaPageOrientation = "auto" | "portrait" | "landscape"; +export class ChooseMediaOptions extends UTSObject { + pageOrientation: ChooseMediaPageOrientation | null = null; + count: number | null = null; + mediaType: (string[]) | null = null; + sourceType: (string[]) | null = null; + maxDuration: number | null = null; + camera: 'front' | 'back' | null = null; + success: (ChooseMediaSuccessCallback) | null = null; + fail: (ChooseMediaFailCallback) | null = null; + complete: (ChooseMediaCompleteCallback) | null = null; +} +export type ChooseMedia = (options: ChooseMediaOptions) => void; +type _MediaOrientation = 'up' | 'down' | 'left' | 'right' | 'up-mirrored' | 'down-mirrored' | 'left-mirrored' | 'right-mirrored'; +class _GetVideoInfoSuccess extends UTSObject { + orientation: _MediaOrientation | null = null; + type: string | null = null; + duration!: number; + size!: number; + height!: number; + width!: number; + fps: number | null = null; + bitrate: number | null = null; +} +interface _MediaFile { + fileType: 'video' | 'image'; + tempFilePath: string; + size: number; + width?: number; + height?: number; + duration?: number; + thumbTempFilePath?: string; +} +interface __ChooseMediaOptions { + mimeType: photoAccessHelper.PhotoViewMIMETypes.VIDEO_TYPE | photoAccessHelper.PhotoViewMIMETypes.IMAGE_TYPE | photoAccessHelper.PhotoViewMIMETypes.IMAGE_VIDEO_TYPE; + count?: number; + sourceType?: ('album' | 'camera')[]; + isOriginalSupported?: boolean; +} +interface _chooseMediaSuccessCallbackResult { + tempFiles: _MediaFile[]; +} +type CameraPosition = 'back' | 'front'; +type UNI_MEDIA_TYPE = 'image' | 'video' | 'mix'; +export type SetClipboardData = (options: SetClipboardDataOptions) => void; +export class SetClipboardDataSuccess extends UTSObject { +} +type SetClipboardDataSuccessCallback = (result: SetClipboardDataSuccess) => void; +type SetClipboardDataFail = UniError; +type SetClipboardDataFailCallback = (result: SetClipboardDataFail) => void; +type SetClipboardDataComplete = Object; +type SetClipboardDataCompleteCallback = (result: SetClipboardDataComplete) => void; +export class SetClipboardDataOptions extends UTSObject { + data!: string; + showToast: boolean | null = null; + success: SetClipboardDataSuccessCallback | null = null; + fail: SetClipboardDataFailCallback | null = null; + complete: SetClipboardDataCompleteCallback | null = null; +} +export type GetClipboardData = (options: GetClipboardDataOptions) => void; +export class GetClipboardDataSuccess extends UTSObject { + data!: string; +} +type GetClipboardDataSuccessCallback = (result: GetClipboardDataSuccess) => void; +type GetClipboardDataFail = UniError; +type GetClipboardDataFailCallback = (result: GetClipboardDataFail) => void; +type GetClipboardDataComplete = Object; +type GetClipboardDataCompleteCallback = (result: GetClipboardDataComplete) => void; +export class GetClipboardDataOptions extends UTSObject { + success: GetClipboardDataSuccessCallback | null = null; + fail: GetClipboardDataFailCallback | null = null; + complete: GetClipboardDataCompleteCallback | null = null; +} +class ClipboardCallbackOptions extends UTSObject { + data!: string; + result!: 'success' | 'fail'; +} +type ClipboardCallback = (res: ClipboardCallbackOptions) => void; +type CreateInnerAudioContext = () => InnerAudioContext; +interface InnerAudioContext { + duration: number; + currentTime: number; + paused: boolean; + src: string; + startTime: number; + buffered: number; + autoplay: boolean; + loop: boolean; + obeyMuteSwitch: boolean; + volume: number; + playbackRate?: number; + pause(): void; + stop(): void; + play(): void; + seek(position: number): void; + destroy(): void; + onCanplay(callback: (result: Object) => void): void; + onPlay(callback: (result: Object) => void): void; + onPause(callback: (result: Object) => void): void; + onStop(callback: (result: Object) => void): void; + onEnded(callback: (result: Object) => void): void; + onTimeUpdate(callback: (result: Object) => void): void; + onError(callback: (result: ICreateInnerAudioContextFail) => void): void; + onWaiting(callback: (result: Object) => void): void; + onSeeking(callback: (result: Object) => void): void; + onSeeked(callback: (result: Object) => void): void; + offCanplay(callback: (result: Object) => void): void; + offPlay(callback: (result: Object) => void): void; + offPause(callback: (result: Object) => void): void; + offStop(callback: (result: Object) => void): void; + offEnded(callback: (result: Object) => void): void; + offTimeUpdate(callback: (result: Object) => void): void; + offError(callback: (result: ICreateInnerAudioContextFail) => void): void; + offWaiting(callback: (result: Object) => void): void; + offSeeking(callback: (result: Object) => void): void; + offSeeked(callback: (result: Object) => void): void; +} +type CreateInnerAudioContextErrorCode = 1107601 | 1107602 | 1107603 | 1107604 | 1107605 | 1107609; +interface ICreateInnerAudioContextFail extends IUniError { + errCode: CreateInnerAudioContextErrorCode; +} +type CreateElement = (tagName: string) => UniElement; +type $OnCallback = Function; +type $On = (eventName: string, callback: $OnCallback) => number; +type $OnceCallback = Function; +type $Once = (eventName: string, callback: $OnceCallback) => number; +type $Off = (eventName: string, callback?: Object | null) => void; +type $Emit = (eventName: string, ...args: Array<Object | null>) => void; +interface IUniEventEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +class ExitSuccess extends UTSObject { + errMsg!: string; +} +type ExitErrorCode = 12001 | 12002 | 12003; +interface IExitError extends IUniError { + errCode: ExitErrorCode; +} +type ExitFail = IExitError; +type ExitSuccessCallback = (res: ExitSuccess) => void; +type ExitFailCallback = (res: ExitFail) => void; +type ExitCompleteCallback = (res: Object) => void; +class ExitOptions extends UTSObject { + success: ExitSuccessCallback | null = null; + fail: ExitFailCallback | null = null; + complete: ExitCompleteCallback | null = null; +} +type Exit = (options?: ExitOptions | null) => void; +export class LegacySaveFileSuccess extends UTSObject { + savedFilePath!: string; +} +type LegacySaveFileSuccessCallback = (res: LegacySaveFileSuccess) => void; +export class LegacySaveFileFail extends UTSObject { +} +type LegacySaveFileFailCallback = (res: LegacySaveFileFail) => void; +type LegacySaveFileCompleteCallback = (res: Object) => void; +export class LegacySaveFileOptions extends UTSObject { + tempFilePath!: string; + success: LegacySaveFileSuccessCallback | null = null; + fail: LegacySaveFileFailCallback | null = null; + complete: LegacySaveFileCompleteCallback | null = null; +} +export class LegacyGetFileInfoSuccess extends UTSObject { + digest!: string; + size!: number; +} +type LegacyGetFileInfoSuccessCallback = (res: LegacyGetFileInfoSuccess) => void; +export class LegacyGetFileInfoFail extends UTSObject { +} +type LegacyGetFileInfoFailCallback = (res: LegacyGetFileInfoFail) => void; +type LegacyGetFileInfoCompleteCallback = (res: Object) => void; +export class LegacyGetFileInfoOptions extends UTSObject { + filePath!: string; + digestAlgorithm: string | null = null; + success: LegacyGetFileInfoSuccessCallback | null = null; + fail: LegacyGetFileInfoFailCallback | null = null; + complete: LegacyGetFileInfoCompleteCallback | null = null; +} +export class LegacyGetSavedFileInfoSuccess extends UTSObject { + size!: number; + createTime!: number; +} +type LegacyGetSavedFileInfoSuccessCallback = (res: LegacyGetSavedFileInfoSuccess) => void; +export class LegacyGetSavedFileInfoFail extends UTSObject { +} +type LegacyGetSavedFileInfoFailCallback = (res: LegacyGetSavedFileInfoFail) => void; +type LegacyGetSavedFileInfoCompleteCallback = (res: Object) => void; +export class LegacyGetSavedFileInfoOptions extends UTSObject { + filePath!: string; + success: LegacyGetSavedFileInfoSuccessCallback | null = null; + fail: LegacyGetSavedFileInfoFailCallback | null = null; + complete: LegacyGetSavedFileInfoCompleteCallback | null = null; +} +export class LegacyRemoveSavedFileSuccess extends UTSObject { +} +type LegacyRemoveSavedFileSuccessCallback = (res: LegacyRemoveSavedFileSuccess) => void; +export class LegacyRemoveSavedFileFail extends UTSObject { +} +type LegacyRemoveSavedFileFailCallback = (res: LegacyRemoveSavedFileFail) => void; +type LegacyRemoveSavedFileCompleteCallback = (res: Object) => void; +export class LegacyRemoveSavedFileOptions extends UTSObject { + filePath!: string; + success: LegacyRemoveSavedFileSuccessCallback | null = null; + fail: LegacyRemoveSavedFileFailCallback | null = null; + complete: LegacyRemoveSavedFileCompleteCallback | null = null; +} +export class LegacySavedFileListItem extends UTSObject { + filePath!: string; + size!: number; + createTime!: number; +} +export class LegacyGetSavedFileListSuccess extends UTSObject { + fileList!: LegacySavedFileListItem[]; +} +type LegacyGetSavedFileListSuccessCallback = (res: LegacyGetSavedFileListSuccess) => void; +export class LegacyGetSavedFileListFail extends UTSObject { +} +type LegacyGetSavedFileListFailCallback = (res: LegacyGetSavedFileListFail) => void; +type LegacyGetSavedFileListCompleteCallback = (res: Object) => void; +export class LegacyGetSavedFileListOptions extends UTSObject { + success: LegacyGetSavedFileListSuccessCallback | null = null; + fail: LegacyGetSavedFileListFailCallback | null = null; + complete: LegacyGetSavedFileListCompleteCallback | null = null; +} +export type SaveFile = (options?: LegacySaveFileOptions | null) => void; +export type GetFileInfo = (options?: LegacyGetFileInfoOptions | null) => void; +export type GetSavedFileInfo = (options?: LegacyGetSavedFileInfoOptions | null) => void; +export type RemoveSavedFile = (options?: LegacyRemoveSavedFileOptions | null) => void; +export type GetSavedFileList = (options?: LegacyGetSavedFileListOptions | null) => void; +class ReadFileSuccessResult extends UTSObject { + data!: Object; +} +class OpenFileSuccessResult extends UTSObject { + fd!: string; + errMsg: string | null = null; +} +class FileManagerSuccessResult extends UTSObject { + errMsg!: string; +} +type FileManagerSuccessCallback = (res: FileManagerSuccessResult) => void; +type FileManagerFailCallback = (res: FileSystemManagerFail) => void; +type FileManagerCompleteCallback = (res: Object) => void; +type ReadFileSuccessCallback = (res: ReadFileSuccessResult) => void; +class ReadFileOptions extends UTSObject { + encoding: "base64" | "utf-8" | "ascii" | null = null; + filePath!: string.URIString; + success: ReadFileSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class WriteFileOptions extends UTSObject { + filePath!: string.URIString; + encoding: "ascii" | "base64" | "utf-8" | null = null; + data!: Object; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class AppendFileOptions extends UTSObject { + filePath!: string.URIString; + encoding: "ascii" | "base64" | "utf-8" | null = null; + data!: Object; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +type OpenFileSuccessCallback = (res: OpenFileSuccessResult) => void; +class OpenFileOptions extends UTSObject { + filePath!: string.URIString; + flag!: "a" | "ax" | "a+" | "ax+" | "r" | "r+" | "w" | "wx" | "w+" | "wx" | "wx+"; + success: OpenFileSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class OpenFileSyncOptions extends UTSObject { + filePath!: string.URIString; + flag!: "a" | "ax" | "a+" | "ax+" | "r" | "r+" | "w" | "wx" | "w+" | "wx" | "wx+"; +} +type UnLinkSuccessCallback = (res: FileManagerSuccessResult) => void; +class UnLinkOptions extends UTSObject { + filePath!: string.URIString; + success: UnLinkSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +type MkDirSuccessCallback = (res: FileManagerSuccessResult) => void; +class MkDirOptions extends UTSObject { + dirPath!: string.URIString; + recursive!: boolean; + success: MkDirSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class RmDirOptions extends UTSObject { + dirPath!: string.URIString; + recursive!: boolean; + success: MkDirSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class ReadDirSuccessResult extends UTSObject { + files!: string[]; + errMsg: string | null = null; +} +type ReadDirSuccessCallback = (res: ReadDirSuccessResult) => void; +class ReadDirOptions extends UTSObject { + dirPath!: string.URIString; + success: ReadDirSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class AccessOptions extends UTSObject { + path!: string.URIString; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class RenameOptions extends UTSObject { + oldPath!: string.URIString; + newPath!: string.URIString; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class CopyFileOptions extends UTSObject { + srcPath!: string.URIString; + destPath!: string.URIString; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class SaveFileOptions extends UTSObject { + tempFilePath!: string.URIString; + filePath: string.URIString | null = null; + success: SaveFileSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +type SaveFileSuccessCallback = (res: SaveFileSuccessResult) => void; +class SaveFileSuccessResult extends UTSObject { + savedFilePath!: string; +} +class GetFileInfoSuccessResult extends UTSObject { + digest!: string; + size!: number; + errMsg!: string; +} +type GetFileInfoSuccessCallback = (res: GetFileInfoSuccessResult) => void; +class GetFileInfoOptions extends UTSObject { + filePath!: string.URIString; + digestAlgorithm: "md5" | "sha1" | null = null; + success: GetFileInfoSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +interface Stats { + mode: number; + size: number; + lastAccessedTime: number; + lastModifiedTime: number; + mIsFile: boolean; + isDirectory(): boolean; + isFile(): boolean; +} +class FileStats extends UTSObject { + path!: string; + stats!: Stats; +} +class StatSuccessResult extends UTSObject { + errMsg!: string; + stats!: FileStats[]; +} +type StatSuccessCallback = (res: StatSuccessResult) => void; +class StatOptions extends UTSObject { + path!: string.URIString; + recursive!: boolean; + success: StatSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class UnzipFileOptions extends UTSObject { + zipFilePath!: string; + targetPath!: string; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class GetSavedFileListResult extends UTSObject { + fileList!: string[]; +} +type GetSavedFileListCallback = (res: GetSavedFileListResult) => void; +class GetSavedFileListOptions extends UTSObject { + success: GetSavedFileListCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class TruncateFileOptions extends UTSObject { + filePath!: string.URIString; + length!: number; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class ReadCompressedFileResult extends UTSObject { + data!: string; +} +type ReadCompressedFileCallback = (res: ReadCompressedFileResult) => void; +class ReadCompressedFileOptions extends UTSObject { + filePath!: string.URIString; + compressionAlgorithm!: "br"; + success: ReadCompressedFileCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class RemoveSavedFileOptions extends UTSObject { + filePath!: string.URIString; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class WriteResult extends UTSObject { + bytesWritten!: number; + errMsg!: string; +} +type WriteCallback = (res: WriteResult) => void; +class WriteOptions extends UTSObject { + fd!: string; + data!: Object; + offset: number | null = null; + length: number | null = null; + position: number | null = null; + encoding: "ascii" | "base64" | "utf-8" | null = null; + success: WriteCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class WriteSyncOptions extends UTSObject { + fd!: string; + data!: Object; + encoding: "ascii" | "base64" | "utf-8" | null = null; + length: number | null = null; + offset: number | null = null; + position: number | null = null; +} +class CloseOptions extends UTSObject { + fd!: string; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class CloseSyncOptions extends UTSObject { + fd!: string; +} +class FStatSuccessResult extends UTSObject { + stats!: Stats; +} +type FStatSuccessCallback = (res: FStatSuccessResult) => void; +class FStatOptions extends UTSObject { + fd!: string; + success: FStatSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class FStatSyncOptions extends UTSObject { + fd!: string; +} +class FTruncateFileOptions extends UTSObject { + fd!: string; + length!: number; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class FTruncateFileSyncOptions extends UTSObject { + fd!: string; + length!: number; +} +class EntryItem extends UTSObject { + path!: string; + encoding: "ascii" | "base64" | "utf-8" | null = null; +} +class EntriesResult extends UTSObject { + entries!: Map<string, ZipFileItem>; + result!: Map<string, ZipFileItem>; + errMsg: string | null = null; +} +class ZipFileItem extends UTSObject { + data: Object | null = null; + errMsg!: string; +} +type ReadZipEntryCallback = (res: EntriesResult) => void; +class ReadZipEntryOptions extends UTSObject { + filePath!: string.URIString; + encoding: "ascii" | "base64" | "utf-8" | null = null; + entries: EntryItem[] | null = null; + success: ReadZipEntryCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class ReadSuccessCallbackResult extends UTSObject { + arrayBuffer!: ArrayBuffer; + bytesRead!: number; + errMsg!: string; +} +type ReadSuccessCallback = (result: ReadSuccessCallbackResult) => void; +class ReadOption extends UTSObject { + arrayBuffer!: ArrayBuffer; + fd!: string; + length: number | null = null; + offset: number | null = null; + position: number | null = null; + complete: FileManagerCompleteCallback | null = null; + fail: FileManagerFailCallback | null = null; + success: ReadSuccessCallback | null = null; +} +class ReadSyncOption extends UTSObject { + arrayBuffer!: ArrayBuffer; + fd!: string; + length: number | null = null; + offset: number | null = null; + position: number | null = null; +} +class ReadResult extends UTSObject { + arrayBuffer!: ArrayBuffer; + bytesRead!: number; +} +interface FileSystemManager { + readFile(options: ReadFileOptions): void; + readFileSync(filePath: string, encoding?: string): Object; + writeFile(options: WriteFileOptions): void; + read(option: ReadOption): void; + readSync(option: ReadSyncOption): ReadResult; + writeFileSync(filePath: string, data: Object, encoding?: string): void; + unlink(options: UnLinkOptions): void; + unlinkSync(filePath: string): void; + mkdir(options: MkDirOptions): void; + mkdirSync(dirPath: string, recursive: boolean): void; + rmdir(options: RmDirOptions): void; + rmdirSync(dirPath: string, recursive: boolean): void; + readdir(options: ReadDirOptions): void; + readdirSync(dirPath: string): string[] | null; + access(options: AccessOptions): void; + accessSync(path: string): void; + rename(options: RenameOptions): void; + renameSync(oldPath: string, newPath: string): void; + copyFile(options: CopyFileOptions): void; + copyFileSync(srcPath: string, destPath: string): void; + getFileInfo(options: GetFileInfoOptions): void; + stat(options: StatOptions): void; + statSync(path: string, recursive: boolean): FileStats[]; + appendFile(options: AppendFileOptions): void; + appendFileSync(filePath: string, data: Object, encoding?: string): void; + saveFile(options: SaveFileOptions): void; + saveFileSync(tempFilePath: string, filePath: string | null): string; + removeSavedFile(options: RemoveSavedFileOptions): void; + unzip(options: UnzipFileOptions): void; + getSavedFileList(options: GetSavedFileListOptions): void; + truncate(options: TruncateFileOptions): void; + truncateSync(filePath: string, length?: number): void; + readCompressedFile(options: ReadCompressedFileOptions): void; + readCompressedFileSync(filePath: string, compressionAlgorithm: string): string; + open(options: OpenFileOptions): void; + openSync(options: OpenFileSyncOptions): string; + write(options: WriteOptions): void; + writeSync(options: WriteSyncOptions): WriteResult; + close(options: CloseOptions): void; + closeSync(options: CloseSyncOptions): void; + fstat(options: FStatOptions): void; + fstatSync(options: FStatSyncOptions): Stats; + ftruncate(options: FTruncateFileOptions): void; + ftruncateSync(options: FTruncateFileSyncOptions): void; + readZipEntry(options: ReadZipEntryOptions): void; +} +type GetFileSystemManager = () => FileSystemManager; +type FileSystemManagerErrorCode = 1200002 | 1300002 | 1300013 | 1300021 | 1300022 | 1300066 | 1301003 | 1301005 | 1300201 | 1300202 | 1301111 | 1302003 | 1300009 | 1300010 | 1300011 | 1300012 | 1300015 | 1300014 | 1300016 | 1300017 | 1300018 | 1300019 | 1300020 | 1300021; +type FileSystemManagerFail = IFileSystemManagerFail; +interface IFileSystemManagerFail extends IUniError { + errCode: FileSystemManagerErrorCode; +} +interface CallBack { + success?: Function | null; + fail?: Function | null; + complete?: Function | null; +} +type ModeReflect = Record<string, string>; +type BaseType = number | string | boolean | null | undefined; +type DataType = BaseType | Object | Function | ArrayBuffer | Array<BaseType>; +interface CustomValidReturn { + isValid: false; + err: IFileSystemManagerFail; +} +interface CustomValidReturnValid { + isValid: true; +} +interface ObtainUpperPathReturn { + index: number; + upperPath: string; +} +interface ObtainFileNameReturn { + index: number; + fileName: string; +} +interface CheckFd { + isValid: true; + fd: number; +} +interface CheckFdErr { + isValid: false; + fd: number; + err: IFileSystemManagerFail; +} +interface CheckEncodingReturn { + isValid: boolean; + errMsg: string; +} +interface FileSystemManagerApiError extends ApiError { + errMsg: string; +} +type _FLAG = "a" | "ax" | "a+" | "ax+" | "r" | "r+" | "w" | "wx" | "w+" | "wx+"; +type GetAppAuthorizeSetting = () => GetAppAuthorizeSettingResult; +class GetAppAuthorizeSettingResult extends UTSObject { + albumAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + bluetoothAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + cameraAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + locationAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + locationAccuracy: 'reduced' | 'full' | 'unsupported' | null = null; + locationReducedAccuracy: boolean | null = null; + microphoneAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + notificationAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + notificationAlertAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; + notificationBadgeAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; + notificationSoundAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; + phoneCalendarAuthorized: 'authorized' | 'denied' | 'not determined' | null = null; +} +class GetAppBaseInfoOptions extends UTSObject { + filter!: Array<string>; +} +export class GetAppBaseInfoResult extends UTSObject { + appId: string | null = null; + appName: string | null = null; + appVersion: string | null = null; + appVersionCode: string | null = null; + appLanguage: string | null = null; + language: string | null = null; + version: string | null = null; + appWgtVersion: string | null = null; + hostLanguage: string | null = null; + hostVersion: string | null = null; + hostName: string | null = null; + hostPackageName: string | null = null; + hostSDKVersion: string | null = null; + hostTheme: string | null = null; + isUniAppX: boolean | null = null; + uniCompileVersion: string | null = null; + uniCompilerVersion: string | null = null; + uniPlatform: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei' | null = null; + uniRuntimeVersion: string | null = null; + uniCompileVersionCode: number | null = null; + uniCompilerVersionCode: number | null = null; + uniRuntimeVersionCode: number | null = null; + packageName: string | null = null; + bundleId: string | null = null; + signature: string | null = null; + appTheme: 'light' | 'dark' | 'auto' | null = null; + channel: string | null = null; +} +export type GetAppBaseInfo = (options?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult; +interface IAppBaseInfoAppVersion { + name: string; + code: string; +} +type GetBackgroundAudioManager = () => BackgroundAudioManager; +interface BackgroundAudioManager { + duration: number; + currentTime: number; + paused: boolean; + src: string; + startTime: number; + buffered: number; + title: string; + epname: string; + singer: string; + coverImgUrl: string; + webUrl: string; + protocol: string; + playbackRate?: number; + play(): void; + pause(): void; + seek(position: number): void; + stop(): void; + onCanplay(callback: (result: Object) => void): void; + onPlay(callback: (result: Object) => void): void; + onPause(callback: (result: Object) => void): void; + onStop(callback: (result: Object) => void): void; + onEnded(callback: (result: Object) => void): void; + onSeeking(callback: (result: Object) => void): void; + onSeeked(callback: (result: Object) => void): void; + onTimeUpdate(callback: (result: Object) => void): void; + onPrev(callback: (result: Object) => void): void; + onNext(callback: (result: Object) => void): void; + onError(callback: (result: ICreateBackgroundAudioFail) => void): void; + onWaiting(callback: (result: Object) => void): void; +} +type CreateBackgroundAudioErrorCode = 1107601 | 1107602 | 1107603 | 1107604 | 1107605 | 1107609; +interface ICreateBackgroundAudioFail extends IUniError { + errCode: CreateBackgroundAudioErrorCode; +} +interface TempAbilityInfo { + bundleName: string; + name: string; +} +class GetDeviceInfoOptions extends UTSObject { + filter!: Array<string>; +} +export class GetDeviceInfoResult extends UTSObject { + brand: string | null = null; + deviceBrand: string | null = null; + deviceId: string | null = null; + model: string | null = null; + deviceModel: string | null = null; + deviceType: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance' | null = null; + deviceOrientation: string | null = null; + devicePixelRatio: number | null = null; + system: string | null = null; + platform: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux' | null = null; + isRoot: boolean | null = null; + isSimulator: boolean | null = null; + isUSBDebugging: boolean | null = null; + osName: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux' | null = null; + osVersion: string | null = null; + osLanguage: string | null = null; + osTheme: 'light' | 'dark' | null = null; + osAndroidAPILevel: number | null = null; + romName: string | null = null; + romVersion: string | null = null; +} +export type GetDeviceInfo = (options?: GetDeviceInfoOptions | null) => GetDeviceInfoResult; +type GetElementById = (id: string.IDString | string) => UniElement | null; +type GetNetworkType = (options: GetNetworkTypeOptions) => void; +class GetNetworkTypeSuccess extends UTSObject { + networkType!: string; +} +type GetNetworkTypeSuccessCallback = (result: GetNetworkTypeSuccess) => void; +type GetNetworkTypeFail = UniError; +type GetNetworkTypeFailCallback = (result: GetNetworkTypeFail) => void; +type GetNetworkTypeComplete = Object; +type GetNetworkTypeCompleteCallback = (result: GetNetworkTypeComplete) => void; +class GetNetworkTypeOptions extends UTSObject { + success: GetNetworkTypeSuccessCallback | null = null; + fail: GetNetworkTypeFailCallback | null = null; + complete: GetNetworkTypeCompleteCallback | null = null; +} +class OnNetworkStatusChangeCallbackResult extends UTSObject { + isConnected!: boolean; + networkType!: string; +} +type OnNetworkStatusChangeCallback = (result: OnNetworkStatusChangeCallbackResult) => void; +type OnNetworkStatusChange = (callback: OnNetworkStatusChangeCallback) => void; +type OffNetworkStatusChange = (callback: (result: Object) => void) => void; +interface IUniGetNetworkTypeEventEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +export class GetProviderSuccess extends UTSObject { + service!: 'payment' | 'oauth'; + provider!: string[]; + providers!: UniProvider[]; +} +export class GetProviderSyncSuccess extends UTSObject { + service!: 'payment' | 'location' | 'oauth'; + providerIds!: string[]; + providerObjects!: UniProvider[]; +} +export type GetProviderSync = (options: GetProviderSyncOptions) => GetProviderSyncSuccess; +export class GetProviderSyncOptions extends UTSObject { + service!: 'payment' | 'location' | 'oauth'; +} +type GetProviderSuccessCallback = (result: GetProviderSuccess) => void; +type GetProviderFail = IGetProviderFail; +type GetProviderFailCallback = (result: GetProviderFail) => void; +type GetProviderComplete = Object; +type GetProviderCompleteCallback = (result: GetProviderComplete) => void; +export class GetProviderOptions extends UTSObject { + service!: 'payment' | 'oauth'; + success: GetProviderSuccessCallback | null = null; + fail: GetProviderFailCallback | null = null; + complete: GetProviderCompleteCallback | null = null; +} +export type GetProvider = (options: GetProviderOptions) => void; +type ProviderErrorCode = 110600; +interface IGetProviderFail extends IUniError { + errCode: ProviderErrorCode; +} +type GetRecorderManager = () => RecorderManager; +class RecorderManagerStartOptions extends UTSObject { + duration: number | null = null; + sampleRate: number | null = null; + numberOfChannels: number | null = null; + encodeBitRate: number | null = null; + format: 'aac' | 'mp3' | 'PCM' | 'wav' | null = null; + frameSize: number | null = null; +} +interface RecorderManagerOnStopResult { + tempFilePath: string; +} +interface RecorderManager { + start(options: RecorderManagerStartOptions): void; + pause(): void; + resume(): void; + stop(): void; + onStart(options: (result: Object) => void): void; + onPause(options: (result: Object) => void): void; + onStop(options: (result: RecorderManagerOnStopResult) => void): void; + onFrameRecorded(options: (result: Object) => void): void; + onError(options: (result: Object) => void): void; + onResume?: (options: (result: Object) => void) => void; + onInterruptionBegin?: (options: (result: Object) => void) => void; + onInterruptionEnd?: (options: (result: Object) => void) => void; +} +type RecorderState = 'pause' | 'resume' | 'start' | 'stop' | 'error' | 'frameRecorded' | 'interruptionBegin' | 'interruptionEnd'; +interface Callbacks { + pause?: Function; + resume?: Function; + start?: Function; + stop?: Function; + error?: Function; + frameRecorded?: Function; + interruptionBegin?: Function; + interruptionEnd?: Function; +} +interface StateChangeRes extends RecorderManagerOnStopResult { + errMsg?: string; + frameBuffer?: ArrayBuffer; + isLastFrame?: boolean; +} +export type GetSystemInfo = (options: GetSystemInfoOptions) => void; +export type GetSystemInfoSync = () => GetSystemInfoResult; +export type GetWindowInfo = () => GetWindowInfoResult; +export class SafeArea extends UTSObject { + left!: number; + right!: number; + top!: number; + bottom!: number; + width!: number; + height!: number; +} +export class SafeAreaInsets extends UTSObject { + left!: number; + right!: number; + top!: number; + bottom!: number; +} +class CutoutRect extends UTSObject { + left!: number; + right!: number; + top!: number; + bottom!: number; +} +export class GetSystemInfoResult extends UTSObject { + SDKVersion!: string; + appId!: string; + appLanguage!: string; + appName!: string; + appVersion!: string; + appVersionCode!: string; + appWgtVersion: string | null = null; + brand!: string; + browserName!: string; + browserVersion!: string; + deviceId!: string; + deviceBrand!: string; + deviceModel!: string; + deviceType!: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance'; + devicePixelRatio!: number; + deviceOrientation!: 'portrait' | 'landscape'; + language!: string; + model: string | null = null; + osName!: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux'; + osVersion!: string; + osLanguage!: string; + osTheme: 'light' | 'dark' | null = null; + pixelRatio!: number; + platform!: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux'; + screenWidth!: number; + screenHeight!: number; + statusBarHeight!: number; + system!: string; + safeArea!: SafeArea; + safeAreaInsets!: SafeAreaInsets; + ua!: string; + uniCompileVersion!: string; + uniCompilerVersion!: string; + uniPlatform!: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei'; + uniRuntimeVersion!: string; + uniCompileVersionCode!: number; + uniCompilerVersionCode!: number; + uniRuntimeVersionCode!: number; + version!: string; + romName!: string; + romVersion!: string; + windowWidth!: number; + windowHeight!: number; + windowTop!: number; + windowBottom!: number; + osAndroidAPILevel: number | null = null; + appTheme: 'light' | 'dark' | 'auto' | null = null; +} +type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void; +type GetSystemInfoFail = UniError; +type GetSystemInfoFailCallback = (result: GetSystemInfoFail) => void; +type GetSystemInfoComplete = Object; +type GetSystemInfoCompleteCallback = (result: GetSystemInfoComplete) => void; +export class GetSystemInfoOptions extends UTSObject { + success: GetSystemInfoSuccessCallback | null = null; + fail: GetSystemInfoFailCallback | null = null; + complete: GetSystemInfoCompleteCallback | null = null; +} +export class GetWindowInfoResult extends UTSObject { + pixelRatio!: number; + screenWidth!: number; + screenHeight!: number; + windowWidth!: number; + windowHeight!: number; + statusBarHeight!: number; + windowTop!: number; + windowBottom!: number; + safeArea!: SafeArea; + safeAreaInsets!: SafeAreaInsets; + screenTop!: number; + cutoutArea: Array<CutoutRect> | null = null; +} +interface ISystemInfoAppVersion { + name: string; + code: string; +} +class GetSystemSettingResult extends UTSObject { + bluetoothEnabled: boolean | null = null; + bluetoothError: string | null = null; + locationEnabled!: boolean; + wifiEnabled: boolean | null = null; + wifiError: string | null = null; + deviceOrientation!: 'portrait' | 'landscape'; +} +type GetSystemSetting = () => GetSystemSettingResult; +export class HideKeyboardSuccess extends UTSObject { +} +export class HideKeyboardFail extends UTSObject { +} +type HideKeyboardSuccessCallback = (res: HideKeyboardSuccess) => void; +type HideKeyboardFailCallback = (res: HideKeyboardFail) => void; +type HideKeyboardCompleteCallback = (res: Object) => void; +export class HideKeyboardOptions extends UTSObject { + success: HideKeyboardSuccessCallback | null = null; + fail: HideKeyboardFailCallback | null = null; + complete: HideKeyboardCompleteCallback | null = null; +} +type HideKeyboard = (options?: HideKeyboardOptions | null) => void; +class LoadFontFaceOptionDesc extends UTSObject { + style: string | null = null; + weight: string | null = null; + variant: string | null = null; +} +type LoadFontFaceErrCode = 4 | 99 | 101 | 100001 | 100002 | 200001 | 300001 | 300002; +interface LoadFontFaceFail extends IUniError { + errCode: LoadFontFaceErrCode; +} +class LoadFontFaceOptions extends UTSObject { + global: boolean | null = null; + family!: string; + source!: string.FontURIString; + desc: LoadFontFaceOptionDesc | null = null; + success: LoadFontFaceSuccessCallback | null = null; + fail: LoadFontFaceFailCallback | null = null; + complete: LoadFontFaceCompleteCallback | null = null; +} +type LoadFontFaceSuccess = AsyncApiSuccessResult; +type LoadFontFaceSuccessCallback = (result: LoadFontFaceSuccess) => void; +type LoadFontFaceFailCallback = (error: LoadFontFaceFail) => void; +type LoadFontFaceComplete = AsyncApiResult; +type LoadFontFaceCompleteCallback = (res: LoadFontFaceComplete) => void; +type LoadFontFace = (options: LoadFontFaceOptions) => Promise<LoadFontFaceSuccess> | null; +export type MakePhoneCall = (options: MakePhoneCallOptions) => void; +export class MakePhoneCallSuccess extends UTSObject { +} +type MakePhoneCallSuccessCallback = (result: MakePhoneCallSuccess) => void; +type MakePhoneCallFail = UniError; +type MakePhoneCallFailCallback = (result: MakePhoneCallFail) => void; +type MakePhoneCallComplete = Object; +type MakePhoneCallCompleteCallback = (result: MakePhoneCallComplete) => void; +export class MakePhoneCallOptions extends UTSObject { + phoneNumber!: string; + success: MakePhoneCallSuccessCallback | null = null; + fail: MakePhoneCallFailCallback | null = null; + complete: MakePhoneCallCompleteCallback | null = null; +} +type MediaOrientation = 'up' | 'down' | 'left' | 'right' | 'up-mirrored' | 'down-mirrored' | 'left-mirrored' | 'right-mirrored'; +type MediaErrorCode = 1101001 | 1101002 | 1101003 | 1101004 | 1101005 | 1101006 | 1101007 | 1101008 | 1101009 | 1101010; +interface IMediaError extends IUniError { + errCode: MediaErrorCode; +} +class ChooseImageTempFile extends UTSObject { + path!: string; + size!: number; + name: string | null = null; + type: string | null = null; +} +export class ChooseImageSuccess extends UTSObject { + errSubject!: string; + errMsg!: string; + tempFilePaths!: Array<string>; + tempFiles!: ChooseImageTempFile[]; +} +type ChooseImageFail = IMediaError; +type ChooseImageSuccessCallback = (callback: ChooseImageSuccess) => void; +type ChooseImageFailCallback = (callback: ChooseImageFail) => void; +type ChooseImageCompleteCallback = (callback: Object) => void; +class ChooseImageCropOptions extends UTSObject { + width!: number; + height!: number; + quality: (number) | null = null; + resize: (boolean) | null = null; +} +type ChooseImagePageOrientation = "auto" | "portrait" | "landscape"; +type ChooseImageAlbumMode = "custom" | "system"; +export class ChooseImageOptions extends UTSObject { + pageOrientation: ChooseImagePageOrientation | null = null; + albumMode: ChooseImageAlbumMode | null = null; + count: (number) | null = null; + sizeType: (string[]) | null = null; + sourceType: (string[]) | null = null; + extension: (string[]) | null = null; + crop: (ChooseImageCropOptions) | null = null; + success: (ChooseImageSuccessCallback) | null = null; + fail: (ChooseImageFailCallback) | null = null; + complete: (ChooseImageCompleteCallback) | null = null; +} +export type ChooseImage = (options: ChooseImageOptions) => void; +export class PreviewImageSuccess extends UTSObject { + errSubject!: string; + errMsg!: string; +} +type PreviewImageFail = IMediaError; +type PreviewImageSuccessCallback = (callback: PreviewImageSuccess) => void; +type PreviewImageFailCallback = (callback: PreviewImageFail) => void; +type PreviewImageCompleteCallback = ChooseImageCompleteCallback; +export class PreviewImageOptions extends UTSObject { + current: Object | null = null; + urls!: Array<string.ImageURIString>; + showmenu: boolean | null = null; + indicator: 'default' | 'number' | 'none' | null = null; + loop: boolean | null = null; + success: (PreviewImageSuccessCallback) | null = null; + fail: (PreviewImageFailCallback) | null = null; + complete: (PreviewImageCompleteCallback) | null = null; +} +export type PreviewImage = (options: PreviewImageOptions) => void; +export type ClosePreviewImage = (options: ClosePreviewImageOptions) => void; +export class ClosePreviewImageSuccess extends UTSObject { + errMsg!: string; +} +type ClosePreviewImageFail = IMediaError; +type ClosePreviewImageSuccessCallback = (callback: ClosePreviewImageSuccess) => void; +type ClosePreviewImageFailCallback = (callback: ClosePreviewImageFail) => void; +type ClosePreviewImageCompleteCallback = ChooseImageCompleteCallback; +export class ClosePreviewImageOptions extends UTSObject { + success: (ClosePreviewImageSuccessCallback) | null = null; + fail: (ClosePreviewImageFailCallback) | null = null; + complete: (ClosePreviewImageCompleteCallback) | null = null; +} +export type GetImageInfo = (options: GetImageInfoOptions) => void; +export class GetImageInfoSuccess extends UTSObject { + width!: number; + height!: number; + path!: string; + orientation: MediaOrientation | null = null; + type: string | null = null; +} +type GetImageInfoFail = IMediaError; +type GetImageInfoSuccessCallback = (callback: GetImageInfoSuccess) => void; +type GetImageInfoFailCallback = (callback: GetImageInfoFail) => void; +type GetImageInfoCompleteCallback = ChooseImageCompleteCallback; +export class GetImageInfoOptions extends UTSObject { + src!: string.ImageURIString; + success: (GetImageInfoSuccessCallback) | null = null; + fail: (GetImageInfoFailCallback) | null = null; + complete: (GetImageInfoCompleteCallback) | null = null; +} +export type SaveImageToPhotosAlbum = (options: SaveImageToPhotosAlbumOptions) => void; +export class SaveImageToPhotosAlbumSuccess extends UTSObject { + path!: string; +} +type SaveImageToPhotosAlbumFail = IMediaError; +type SaveImageToPhotosAlbumSuccessCallback = (callback: SaveImageToPhotosAlbumSuccess) => void; +type SaveImageToPhotosAlbumFailCallback = (callback: SaveImageToPhotosAlbumFail) => void; +type SaveImageToPhotosAlbumCompleteCallback = ChooseImageCompleteCallback; +export class SaveImageToPhotosAlbumOptions extends UTSObject { + filePath!: string.ImageURIString; + success: (SaveImageToPhotosAlbumSuccessCallback) | null = null; + fail: (SaveImageToPhotosAlbumFailCallback) | null = null; + complete: (SaveImageToPhotosAlbumCompleteCallback) | null = null; +} +type CompressImage = (options: CompressImageOptions) => void; +class CompressImageSuccess extends UTSObject { + tempFilePath!: string; +} +type CompressImageFail = IMediaError; +type CompressImageSuccessCallback = (callback: CompressImageSuccess) => void; +type CompressImageFailCallback = (callback: CompressImageFail) => void; +type CompressImageCompleteCallback = ChooseImageCompleteCallback; +class CompressImageOptions extends UTSObject { + src!: string.ImageURIString; + quality: number | null = null; + rotate: number | null = null; + width: string | null = null; + height: string | null = null; + compressedHeight: number | null = null; + compressedWidth: number | null = null; + success: (CompressImageSuccessCallback) | null = null; + fail: (CompressImageFailCallback) | null = null; + complete: (CompressImageCompleteCallback) | null = null; +} +export class ChooseVideoSuccess extends UTSObject { + tempFilePath!: string; + duration!: number; + size!: number; + height!: number; + width!: number; +} +type ChooseVideoFail = IMediaError; +type ChooseVideoSuccessCallback = (callback: ChooseVideoSuccess) => void; +type ChooseVideoFailCallback = (callback: ChooseVideoFail) => void; +type ChooseVideoCompleteCallback = ChooseImageCompleteCallback; +type ChooseVideoPageOrientation = ChooseImagePageOrientation; +type ChooseVideoAlbumMode = ChooseImageAlbumMode; +export class ChooseVideoOptions extends UTSObject { + pageOrientation: ChooseVideoPageOrientation | null = null; + albumMode: ChooseVideoAlbumMode | null = null; + sourceType: (string[]) | null = null; + compressed: boolean | null = true; + maxDuration: number | null = null; + camera: 'front' | 'back' | null = null; + extension: (string[]) | null = null; + success: (ChooseVideoSuccessCallback) | null = null; + fail: (ChooseVideoFailCallback) | null = null; + complete: (ChooseVideoCompleteCallback) | null = null; +} +export type ChooseVideo = (options: ChooseVideoOptions) => void; +export class GetVideoInfoSuccess extends UTSObject { + orientation: MediaOrientation | null = null; + type: string | null = null; + duration!: number; + size!: number; + height!: number; + width!: number; + fps: number | null = null; + bitrate: number | null = null; +} +type GetVideoInfoFail = IMediaError; +type GetVideoInfoSuccessCallback = (callback: GetVideoInfoSuccess) => void; +type GetVideoInfoFailCallback = (callback: GetVideoInfoFail) => void; +type GetVideoInfoCompleteCallback = ChooseImageCompleteCallback; +export class GetVideoInfoOptions extends UTSObject { + src!: string.VideoURIString; + success: (GetVideoInfoSuccessCallback) | null = null; + fail: (GetVideoInfoFailCallback) | null = null; + complete: (GetVideoInfoCompleteCallback) | null = null; +} +export type GetVideoInfo = (options: GetVideoInfoOptions) => void; +export class SaveVideoToPhotosAlbumSuccess extends UTSObject { +} +type SaveVideoToPhotosAlbumFail = IMediaError; +type SaveVideoToPhotosAlbumSuccessCallback = (callback: SaveVideoToPhotosAlbumSuccess) => void; +type SaveVideoToPhotosAlbumFailCallback = (callback: SaveVideoToPhotosAlbumFail) => void; +type SaveVideoToPhotosAlbumCompleteCallback = ChooseImageCompleteCallback; +export class SaveVideoToPhotosAlbumOptions extends UTSObject { + filePath!: string.VideoURIString; + success: (SaveVideoToPhotosAlbumSuccessCallback) | null = null; + fail: (SaveVideoToPhotosAlbumFailCallback) | null = null; + complete: (SaveVideoToPhotosAlbumCompleteCallback) | null = null; +} +export type SaveVideoToPhotosAlbum = (options: SaveVideoToPhotosAlbumOptions) => void; +export class CompressVideoSuccess extends UTSObject { + tempFilePath!: string; + size!: number; +} +type CompressVideoFail = IMediaError; +type CompressVideoSuccessCallback = (callback: CompressVideoSuccess) => void; +type CompressVideoFailCallback = (callback: CompressVideoFail) => void; +type CompressVideoCompleteCallback = ChooseImageCompleteCallback; +export class CompressVideoOptions extends UTSObject { + src!: string.VideoURIString; + quality: string | null = null; + bitrate: number | null = null; + fps: number | null = null; + resolution: number | null = null; + success: (CompressVideoSuccessCallback) | null = null; + fail: (CompressVideoFailCallback) | null = null; + complete: (CompressVideoCompleteCallback) | null = null; +} +export type CompressVideo = (options: CompressVideoOptions) => void; +export type ChooseFile = (options: ChooseFileOptions) => void; +export class ChooseFileSuccess extends UTSObject { + tempFilePaths!: string[]; + tempFiles!: ChooseFileTempFile[]; +} +class ChooseFileTempFile extends UTSObject { + name!: string; + path!: string; + size!: number; + type!: 'video' | 'image' | 'audio' | 'file'; +} +type ChooseFileSuccessCallback = (result: ChooseFileSuccess) => void; +type ChooseFileFail = IMediaError; +type ChooseFileFailCallback = (result: ChooseFileFail) => void; +type ChooseFileComplete = Object; +type ChooseFileCompleteCallback = (result: ChooseFileComplete) => void; +export class ChooseFileOptions extends UTSObject { + count: number | null = null; + type: 'image' | 'video' | 'all' | 'audio' | null = null; + extension: (string[]) | null = null; + sizeType: Object | null = null; + sourceType: (string[]) | null = null; + success: ChooseFileSuccessCallback | null = null; + fail: ChooseFileFailCallback | null = null; + complete: ChooseFileCompleteCallback | null = null; +} +interface _CompressImageSuccess { + size: number; + tempFilePath: string; +} +interface MediaFile { + fileType: 'video' | 'image'; + tempFilePath: string; + size: number; + width?: number; + height?: number; + duration?: number; + thumbTempFilePath?: string; +} +interface _ChooseMediaOptions { + mimeType: photoAccessHelper2.PhotoViewMIMETypes.VIDEO_TYPE | photoAccessHelper2.PhotoViewMIMETypes.IMAGE_TYPE | photoAccessHelper2.PhotoViewMIMETypes.IMAGE_VIDEO_TYPE; + count?: number; + sourceType?: ('album' | 'camera')[]; + isOriginalSupported?: boolean; +} +interface chooseMediaSuccessCallbackResult { + tempFiles: MediaFile[]; +} +type CameraPosition1 = 'back' | 'front'; +interface TempFiles { + tempFilePath: string; + size: number; +} +interface TakePhotoRes { + tempFiles: TempFiles[]; +} +interface TakeVideoOptions { + cameraType?: CameraPosition1; + videoDuration?: number; +} +interface TakeVideoRes { + path: string; + duration: number; + size: number; + height: number; + width: number; + orientation: MediaOrientation; + type: string; +} +interface IGetImageInfoDownloadOptions { + url: string; + success: (res: IGetImageInfoDownloadSuccess) => void; + fail: (err: IGetImageInfoDownloadFail) => void; +} +interface IGetImageInfoDownloadSuccess { + tempFilePath: string; +} +interface IGetImageInfoDownloadFail { + errMsg: string; +} +interface ISaveMediaError { + code: number; + message: string; +} +export type Request<T = Object> = (param: RequestOptions<T>) => RequestTask; +export class RequestOptions<T = Object> extends UTSObject { + url!: string; + data: Object | null = null; + header: UTSJSONObject | null = null; + method: RequestMethod | null = null; + timeout: number | null = null; + dataType: string | null = null; + responseType: string | null = null; + sslVerify: boolean | null = null; + withCredentials: boolean | null = null; + firstIpv4: boolean | null = null; + success: RequestSuccessCallback<T> | null = null; + fail: RequestFailCallback | null = null; + complete: RequestCompleteCallback | null = null; +} +export class RequestSuccess<T = Object> extends UTSObject { + data: T | null = null; + statusCode!: number; + header!: Object; + cookies!: Array<string>; +} +type RequestMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"; +type RequestErrorCode = 5 | 1000 | 100001 | 100002 | 600003 | 600008 | 600009 | 602001; +export interface RequestFail extends IUniError { + errCode: RequestErrorCode; +} +type RequestSuccessCallback<T> = (option: RequestSuccess<T>) => void; +type RequestFailCallback = (option: RequestFail) => void; +type RequestCompleteCallback = (option: Object) => void; +export interface RequestTask { + abort(): void; +} +export type UploadFile = (options: UploadFileOptions) => UploadTask; +class UploadFileOptionFiles extends UTSObject { + name: string | null = null; + uri!: string; + file: Object | null = null; +} +export class UploadFileSuccess extends UTSObject { + data!: string; + statusCode!: number; +} +type UploadFileSuccessCallback = (result: UploadFileSuccess) => void; +interface UploadFileFail extends IUniError { + errCode: RequestErrorCode; +} +type UploadFileFailCallback = (result: UploadFileFail) => void; +type UploadFileCompleteCallback = (result: Object) => void; +export class UploadFileOptions extends UTSObject { + url!: string; + filePath: string | null = null; + name: string | null = null; + files: (UploadFileOptionFiles[]) | null = null; + header: UTSJSONObject | null = null; + formData: UTSJSONObject | null = null; + timeout: number | null = null; + success: UploadFileSuccessCallback | null = null; + fail: UploadFileFailCallback | null = null; + complete: UploadFileCompleteCallback | null = null; +} +export class OnProgressUpdateResult extends UTSObject { + progress!: number; + totalBytesSent!: number; + totalBytesExpectedToSend!: number; +} +type UploadFileProgressUpdateCallback = (result: OnProgressUpdateResult) => void; +export interface UploadTask { + abort(): void; + onProgressUpdate(callback: UploadFileProgressUpdateCallback): void; +} +export type DownloadFile = (options: DownloadFileOptions) => DownloadTask; +export class DownloadFileSuccess extends UTSObject { + tempFilePath!: string; + statusCode!: number; +} +type DownloadFileSuccessCallback = (result: DownloadFileSuccess) => void; +interface DownloadFileFail extends IUniError { + errCode: RequestErrorCode; +} +type DownloadFileFailCallback = (result: DownloadFileFail) => void; +type DownloadFileComplete = Object; +type DownloadFileCompleteCallback = (result: DownloadFileComplete) => void; +export class DownloadFileOptions extends UTSObject { + url!: string; + header: UTSJSONObject | null = null; + filePath: string | null = null; + timeout: number | null = null; + success: DownloadFileSuccessCallback | null = null; + fail: DownloadFileFailCallback | null = null; + complete: DownloadFileCompleteCallback | null = null; +} +export class OnProgressDownloadResult extends UTSObject { + progress!: number; + totalBytesWritten!: number; + totalBytesExpectedToWrite!: number; +} +type DownloadFileProgressUpdateCallback = (result: OnProgressDownloadResult) => void; +export interface DownloadTask { + abort(): void; + onProgressUpdate(callback: DownloadFileProgressUpdateCallback): void; +} +export type ConfigMTLS = (options: ConfigMTLSOptions) => void; +class Certificate extends UTSObject { + host!: string; + client: string | null = null; + clientPassword: string | null = null; + keyPath: string | null = null; + server: (string[]) | null = null; +} +export class ConfigMTLSSuccess extends UTSObject { + code!: number; +} +type ConfigMTLSSuccessCallback = (result: ConfigMTLSSuccess) => void; +class ConfigMTLSFail extends UTSObject { + code!: number; +} +type ConfigMTLSFailCallback = (result: ConfigMTLSFail) => void; +type ConfigMTLSComplete = Object; +type ConfigMTLSCompleteCallback = (result: ConfigMTLSComplete) => void; +export class ConfigMTLSOptions extends UTSObject { + certificates!: Certificate[]; + success: ConfigMTLSSuccessCallback | null = null; + fail: ConfigMTLSFailCallback | null = null; + complete: ConfigMTLSCompleteCallback | null = null; +} +interface IUniRequestEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +interface IRequestTask { + abort: Function; + onHeadersReceived: Function; + offHeadersReceived: Function; +} +interface IUniUploadFileEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +interface IUploadTask { + abort: Function; + onHeadersReceived: Function; + offHeadersReceived: Function; + onProgressUpdate: Function; + offProgressUpdate: Function; +} +interface IUniDownloadFileEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +interface IDownloadTask { + abort: Function; + onHeadersReceived: Function; + offHeadersReceived: Function; + onProgressUpdate: Function; + offProgressUpdate: Function; +} +export interface UniOAuthProvider extends UniProvider { + login(options: LoginOptions): void; + getUserInfo(options: GetUserInfoOptions): void; +} +export type Login = (options: LoginOptions) => void; +class AppleLoginAppleInfo extends UTSObject { + authorizationCode: string | null = null; + fullName: Object | null = null; + identityToken: string | null = null; + realUserStatus: number | null = null; + user: string | null = null; +} +export class LoginSuccess extends UTSObject { + errMsg!: string; + authResult!: Object; + code!: string; + anonymousCode: string | null = null; + authCode: string | null = null; + authErrorScope: Object | null = null; + authSucessScope: (string[]) | null = null; + appleInfo: AppleLoginAppleInfo | null = null; +} +type LoginSuccessCallback = (result: LoginSuccess) => void; +export type LoginFail = IUniError; +type LoginFailCallback = (result: LoginFail) => void; +type LoginComplete = Object; +type LoginCompleteCallback = (result: LoginComplete) => void; +export class LoginOptions extends UTSObject { + provider: 'weixin' | 'qq' | 'sinaweibo' | 'xiaomi' | 'apple' | 'univerify' | 'huawei' | null = null; + scopes: Object | null = null; + timeout: number | null = null; + univerifyStyle: UniverifyStyle | null = null; + onlyAuthorize: boolean | null = null; + success: LoginSuccessCallback | null = null; + fail: LoginFailCallback | null = null; + complete: LoginCompleteCallback | null = null; +} +class UniverifyIconStyles extends UTSObject { + path!: string; + width: string | null = null; + height: string | null = null; +} +class UniverifyPhoneNumStyles extends UTSObject { + color: string | null = null; + fontSize: string | null = null; +} +class UniverifySloganStyles extends UTSObject { + color: string | null = null; + fontSize: string | null = null; +} +class UniverifyAuthButtonStyles extends UTSObject { + normalColor: string | null = null; + highlightColor: string | null = null; + disabledColor: string | null = null; + width: string | null = null; + height: string | null = null; + textColor: string | null = null; + title: string | null = null; + borderRadius: string | null = null; +} +class UniverifyOtherButtonStyles extends UTSObject { + visible: boolean | null = null; + normalColor: string | null = null; + highlightColor: string | null = null; + width: string | null = null; + height: string | null = null; + textColor: string | null = null; + title: string | null = null; + borderWidth: string | null = null; + borderColor: string | null = null; + borderRadius: string | null = null; +} +class UniverifyPrivacyItemStyles extends UTSObject { + url!: string; + title!: string; +} +class UniverifyPrivacyTermsStyles extends UTSObject { + defaultCheckBoxState: boolean | null = null; + textColor: string | null = null; + termsColor: string | null = null; + prefix: string | null = null; + suffix: string | null = null; + fontSize: string | null = null; + privacyItems: (UniverifyPrivacyItemStyles[]) | null = null; +} +class UniVerifyButtonListItem extends UTSObject { + provider!: string; + iconPath!: string; +} +class UniVerifyButtonsStyles extends UTSObject { + iconWidth: string | null = null; + list!: UniVerifyButtonListItem[]; +} +class UniverifyStyle extends UTSObject { + fullScreen: boolean | null = null; + backgroundColor: string | null = null; + backgroundImage: string | null = null; + icon: UniverifyIconStyles | null = null; + phoneNum: UniverifyPhoneNumStyles | null = null; + slogan: UniverifySloganStyles | null = null; + authButton: UniverifyAuthButtonStyles | null = null; + otherLoginButton: UniverifyOtherButtonStyles | null = null; + privacyTerms: UniverifyPrivacyTermsStyles | null = null; + buttons: UniVerifyButtonsStyles | null = null; +} +export type GetUserInfo = (options: GetUserInfoOptions) => void; +export class UserInfo extends UTSObject { + nickName!: string; + openId: string | null = null; + avatarUrl!: string; +} +export class GetUserInfoSuccess extends UTSObject { + userInfo!: UserInfo; + rawData: string | null = null; + signature: string | null = null; + encryptedData: string | null = null; + iv: string | null = null; + errMsg!: string; +} +type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void; +export type GetUserInfoFail = IUniError; +type GetUserInfoFailCallback = (result: GetUserInfoFail) => void; +type GetUserInfoComplete = Object; +type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void; +export class GetUserInfoOptions extends UTSObject { + provider: 'weixin' | 'qq' | 'sinaweibo' | 'xiaomi' | 'apple' | 'huawei' | null = null; + withCredentials: boolean | null = null; + lang: string | null = null; + timeout: number | null = null; + success: GetUserInfoSuccessCallback | null = null; + fail: GetUserInfoFailCallback | null = null; + complete: GetUserInfoCompleteCallback | null = null; +} +export type OpenAppAuthorizeSetting = (options: OpenAppAuthorizeSettingOptions) => void; +export class OpenAppAuthorizeSettingSuccess extends UTSObject { + errMsg!: string; +} +type OpenAppAuthorizeSettingSuccessCallback = (result: OpenAppAuthorizeSettingSuccess) => void; +class OpenAppAuthorizeSettingFail extends UTSObject { + errMsg!: string; +} +type OpenAppAuthorizeSettingFailCallback = (result: OpenAppAuthorizeSettingFail) => void; +class OpenAppAuthorizeSettingComplete extends UTSObject { + errMsg!: string; +} +type OpenAppAuthorizeSettingCompleteCallback = (result: OpenAppAuthorizeSettingComplete) => void; +export class OpenAppAuthorizeSettingOptions extends UTSObject { + success: OpenAppAuthorizeSettingSuccessCallback | null = null; + fail: OpenAppAuthorizeSettingFailCallback | null = null; + complete: OpenAppAuthorizeSettingCompleteCallback | null = null; +} +export class OpenDocumentSuccess extends UTSObject { +} +export class OpenDocumentFail extends UTSObject { +} +type OpenDocumentSuccessCallback = (res: OpenDocumentSuccess) => void; +type OpenDocumentFailCallback = (res: OpenDocumentFail) => void; +type OpenDocumentCompleteCallback = (res: Object) => void; +type OpenDocumentSupportedTypes = 'doc' | 'xls' | 'ppt' | 'pdf' | 'docx' | 'xlsx' | 'pptx'; +export class OpenDocumentOptions extends UTSObject { + filePath!: string; + fileType: OpenDocumentSupportedTypes | null = null; + success: OpenDocumentSuccessCallback | null = null; + fail: OpenDocumentFailCallback | null = null; + complete: OpenDocumentCompleteCallback | null = null; +} +type OpenDocument = (options?: OpenDocumentOptions | null) => void; +export interface UniPaymentProvider extends UniProvider { + requestPayment(options: RequestPaymentOptions): void; +} +type RequestPaymentErrorCode = 700600 | 701100 | 701110 | 700601 | 700602 | 700603 | 700000 | 700604 | 700605 | 700607 | 700608 | 700800 | 700801; +export type RequestPayment = (options: RequestPaymentOptions) => void; +export class RequestPaymentSuccess extends UTSObject { + data: object | null = null; +} +type RequestPaymentSuccessCallback = (result: RequestPaymentSuccess) => void; +export type RequestPaymentFail = IRequestPaymentFail; +type RequestPaymentFailCallback = (result: RequestPaymentFail) => void; +type RequestPaymentComplete = Object; +interface IRequestPaymentFail extends IUniError { + errCode: RequestPaymentErrorCode; +} +type RequestPaymentCompleteCallback = (result: RequestPaymentComplete) => void; +export class RequestPaymentOptions extends UTSObject { + provider!: string; + orderInfo!: string; + success: RequestPaymentSuccessCallback | null = null; + fail: RequestPaymentFailCallback | null = null; + complete: RequestPaymentCompleteCallback | null = null; +} +type PromptErrorCode = 1 | 1001; +interface IPromptError extends IUniError { + errCode: PromptErrorCode; +} +class ShowToastSuccess extends UTSObject { +} +type ShowToastFail = IPromptError; +type ShowToastSuccessCallback = (res: ShowToastSuccess) => void; +type ShowToastFailCallback = (res: ShowToastFail) => void; +type ShowToastCompleteCallback = (res: Object) => void; +type Icon = "success" | "error" | "fail" | "exception" | "loading" | "none"; +type ShowToastPosition = "top" | "center" | "bottom"; +class ShowToastOptions extends UTSObject { + title!: string; + icon: Icon | null = null; + image: string.ImageURIString | null = null; + mask: boolean | null = null; + duration: number | null = null; + position: ShowToastPosition | null = null; + success: ShowToastSuccessCallback | null = null; + fail: ShowToastFailCallback | null = null; + complete: ShowToastCompleteCallback | null = null; +} +type ShowToast = (options: ShowToastOptions) => void; +type HideToast = () => void; +class ShowLoadingSuccess extends UTSObject { +} +type ShowLoadingFail = IPromptError; +type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void; +type ShowLoadingFailCallback = (res: ShowLoadingFail) => void; +type ShowLoadingCompleteCallback = (res: Object) => void; +class ShowLoadingOptions extends UTSObject { + title!: string; + mask: boolean | null = null; + success: ShowLoadingSuccessCallback | null = null; + fail: ShowLoadingFailCallback | null = null; + complete: ShowLoadingCompleteCallback | null = null; +} +type ShowLoading = (options: ShowLoadingOptions) => void; +type HideLoading = () => void; +class ShowModalSuccess extends UTSObject { + confirm!: boolean; + cancel!: boolean; + content: string | null = null; +} +type ShowModalFail = IPromptError; +type ShowModalSuccessCallback = (res: ShowModalSuccess) => void; +type ShowModalFailCallback = (res: ShowModalFail) => void; +type ShowModalCompleteCallback = (res: Object) => void; +class ShowModalOptions extends UTSObject { + title: string | null = null; + content: string | null = null; + showCancel: boolean | null = true; + cancelText: string | null = null; + cancelColor: string.ColorString | null = null; + confirmText: string | null = null; + confirmColor: string.ColorString | null = null; + editable: boolean | null = false; + placeholderText: string | null = null; + success: ShowModalSuccessCallback | null = null; + fail: ShowModalFailCallback | null = null; + complete: ShowModalCompleteCallback | null = null; +} +type ShowModal = (options: ShowModalOptions) => void; +class ShowActionSheetSuccess extends UTSObject { + tapIndex!: number; +} +class Popover extends UTSObject { + top!: number; + left!: number; + width!: number; + height!: number; +} +type ShowActionSheetFail = IPromptError; +type ShowActionSheetSuccessCallback = (res: ShowActionSheetSuccess) => void; +type ShowActionSheetFailCallback = (res: ShowActionSheetFail) => void; +type ShowActionSheetCompleteCallback = (res: Object) => void; +class ShowActionSheetOptions extends UTSObject { + title: string | null = null; + alertText: string | null = null; + itemList!: string[]; + itemColor: string.ColorString | null = null; + popover: Popover | null = null; + success: ShowActionSheetSuccessCallback | null = null; + fail: ShowActionSheetFailCallback | null = null; + complete: ShowActionSheetCompleteCallback | null = null; +} +type ShowActionSheet = (options: ShowActionSheetOptions) => void; +interface IHideLoadingOptions { +} +interface IHideLoadingSuccess { +} +export type Rpx2px = (number: number) => number; +export class ScanCodeSuccess extends UTSObject { + result!: string; + scanType!: string; +} +export class ScanCodeFail extends UTSObject { +} +type ScanCodeSuccessCallback = (res: ScanCodeSuccess) => void; +type ScanCodeFailCallback = (res: ScanCodeFail) => void; +type ScanCodeCompleteCallback = (res: Object) => void; +type ScanCodeSupportedTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf417'; +export class ScanCodeOptions extends UTSObject { + onlyFromCamera: boolean | null = null; + scanType: ScanCodeSupportedTypes[] | null = null; + success: ScanCodeSuccessCallback | null = null; + fail: ScanCodeFailCallback | null = null; + complete: ScanCodeCompleteCallback | null = null; +} +type ScanCode = (options?: ScanCodeOptions | null) => void; +type UniScanOptionsTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf417'; +type UniScanResultTypes = "QR_CODE" | "AZTEC" | "CODABAR" | "CODE_39" | "CODE_93" | "CODE_128" | "DATA_MATRIX" | "EAN_8" | "EAN_13" | "ITF" | "MAXICODE" | "PDF_417" | "RSS_14" | "RSS_EXPANDED" | "UPC_A" | "UPC_E" | "UPC_EAN_EXTENSION" | "WX_CODE" | "CODE_25"; +type HarmonyScanResultTypes = scanCore.ScanType.AZTEC_CODE | scanCore.ScanType.CODABAR_CODE | scanCore.ScanType.CODE128_CODE | scanCore.ScanType.CODE39_CODE | scanCore.ScanType.CODE93_CODE | scanCore.ScanType.DATAMATRIX_CODE | scanCore.ScanType.EAN13_CODE | scanCore.ScanType.EAN8_CODE | scanCore.ScanType.ITF14_CODE | scanCore.ScanType.MULTIFUNCTIONAL_CODE | scanCore.ScanType.PDF417_CODE | scanCore.ScanType.QR_CODE | scanCore.ScanType.UPC_A_CODE | scanCore.ScanType.UPC_E_CODE; +export class ShareWithSystemSuccess extends UTSObject { +} +export type ShareWithSystemFail = IShareWithSystemFail; +interface IShareWithSystemFail extends IUniError { + errCode: ShareWithSystemErrorCode; +} +type ShareWithSystemErrorCode = 1310600 | 1310601 | 1310602 | 1310603 | 1310604 | 1310605 | 1310606 | 1310607; +type ShareWithSystemSuccessCallback = (res: ShareWithSystemSuccess) => void; +type ShareWithSystemFailCallback = (res: ShareWithSystemFail) => void; +type ShareWithSystemCallback = (res: Object) => void; +export class ShareWithSystemOptions extends UTSObject { + type: 'text' | 'image' | 'video' | 'audio' | 'file' | null = null; + summary: string | null = null; + href: string | null = null; + imageUrl: string | null = null; + imagePaths: Array<string> | null = null; + videoPaths: Array<string> | null = null; + audioPaths: Array<string> | null = null; + filePaths: Array<string> | null = null; + success: ShareWithSystemSuccessCallback | null = null; + fail: ShareWithSystemFailCallback | null = null; + complete: ShareWithSystemCallback | null = null; +} +export type ShareWithSystem = (options: ShareWithSystemOptions) => void; +export class SetStorageSuccess extends UTSObject { +} +type SetStorageSuccessCallback = (res: SetStorageSuccess) => void; +type SetStorageFailCallback = (res: UniError) => void; +type SetStorageCompleteCallback = (res: Object) => void; +export class SetStorageOptions extends UTSObject { + key!: string; + data!: Object; + success: SetStorageSuccessCallback | null = null; + fail: SetStorageFailCallback | null = null; + complete: SetStorageCompleteCallback | null = null; +} +export type SetStorage = (options: SetStorageOptions) => void; +export type SetStorageSync = (key: string, data: Object) => void; +export class GetStorageSuccess extends UTSObject { + data: Object | null = null; +} +type GetStorageSuccessCallback = (res: GetStorageSuccess) => void; +type GetStorageFailCallback = (res: UniError) => void; +type GetStorageCompleteCallback = (res: Object) => void; +export class GetStorageOptions extends UTSObject { + key!: string; + success: GetStorageSuccessCallback | null = null; + fail: GetStorageFailCallback | null = null; + complete: GetStorageCompleteCallback | null = null; +} +export type GetStorage = (options: GetStorageOptions) => void; +export type GetStorageSync = (key: string) => Object | null; +export class GetStorageInfoSuccess extends UTSObject { + keys!: Array<string>; + currentSize!: number; + limitSize!: number; +} +type GetStorageInfoSuccessCallback = (res: GetStorageInfoSuccess) => void; +type GetStorageInfoFailCallback = (res: UniError) => void; +type GetStorageInfoCompleteCallback = (res: Object) => void; +export class GetStorageInfoOptions extends UTSObject { + success: GetStorageInfoSuccessCallback | null = null; + fail: GetStorageInfoFailCallback | null = null; + complete: GetStorageInfoCompleteCallback | null = null; +} +export type GetStorageInfo = (options: GetStorageInfoOptions) => void; +export type GetStorageInfoSync = () => GetStorageInfoSuccess; +export class RemoveStorageSuccess extends UTSObject { +} +type RemoveStorageSuccessCallback = (res: RemoveStorageSuccess) => void; +type RemoveStorageFailCallback = (res: UniError) => void; +type RemoveStorageCompleteCallback = (res: Object) => void; +export class RemoveStorageOptions extends UTSObject { + key!: string; + success: RemoveStorageSuccessCallback | null = null; + fail: RemoveStorageFailCallback | null = null; + complete: RemoveStorageCompleteCallback | null = null; +} +export type RemoveStorage = (options: RemoveStorageOptions) => void; +export type RemoveStorageSync = (key: string) => void; +export class ClearStorageSuccess extends UTSObject { +} +type ClearStorageSuccessCallback = (res: ClearStorageSuccess) => void; +type ClearStorageFailCallback = (res: UniError) => void; +type ClearStorageCompleteCallback = (res: Object) => void; +export class ClearStorageOptions extends UTSObject { + success: ClearStorageSuccessCallback | null = null; + fail: ClearStorageFailCallback | null = null; + complete: ClearStorageCompleteCallback | null = null; +} +export type ClearStorage = (option?: ClearStorageOptions | null) => void; +export type ClearStorageSync = () => void; +export type ConnectSocket = (options: ConnectSocketOptions) => SocketTask; +export class ConnectSocketSuccess extends UTSObject { + errMsg!: string; +} +type ConnectSocketSuccessCallback = (result: ConnectSocketSuccess) => void; +type ConnectSocketErrorCode = 600009; +interface ConnectSocketFail extends IUniError { + errCode: ConnectSocketErrorCode; +} +type ConnectSocketFailCallback = (result: ConnectSocketFail) => void; +type ConnectSocketComplete = Object; +type ConnectSocketCompleteCallback = (result: ConnectSocketComplete) => void; +export class ConnectSocketOptions extends UTSObject { + url!: string; + header: UTSJSONObject | null = null; + protocols: (string[]) | null = null; + success: ConnectSocketSuccessCallback | null = null; + fail: ConnectSocketFailCallback | null = null; + complete: ConnectSocketCompleteCallback | null = null; +} +class GeneralCallbackResult extends UTSObject { + errMsg!: string; +} +type SendSocketMessageErrorCode = 10001 | 10002 | 602001; +interface SendSocketMessageFail extends IUniError { + errCode: SendSocketMessageErrorCode; +} +export class SendSocketMessageOptions extends UTSObject { + data!: Object; + success: ((result: GeneralCallbackResult) => void) | null = null; + fail: ((result: SendSocketMessageFail) => void) | null = null; + complete: ((result: Object) => void) | null = null; +} +export class CloseSocketOptions extends UTSObject { + code: number | null = null; + reason: string | null = null; + success: ((result: GeneralCallbackResult) => void) | null = null; + fail: ((result: GeneralCallbackResult) => void) | null = null; + complete: ((result: GeneralCallbackResult) => void) | null = null; +} +class OnSocketOpenCallbackResult extends UTSObject { + header!: Object; +} +export class OnSocketMessageCallbackResult extends UTSObject { + data!: Object; +} +export interface SocketTask { + send(options: SendSocketMessageOptions): void; + close(options: CloseSocketOptions): void; + onOpen(callback: (result: OnSocketOpenCallbackResult) => void): void; + onClose(callback: (result: Object) => void): void; + onError(callback: (result: GeneralCallbackResult) => void): void; + onMessage(callback: (result: OnSocketMessageCallbackResult) => void): void; +} +type OnSocketOpenCallback = (result: OnSocketOpenCallbackResult) => void; +type OnSocketOpen = (options: OnSocketOpenCallback) => void; +export class OnSocketErrorCallbackResult extends UTSObject { + errMsg!: string; +} +type OnSocketErrorCallback = (result: OnSocketErrorCallbackResult) => void; +type OnSocketError = (callback: OnSocketErrorCallback) => void; +type SendSocketMessage = (options: SendSocketMessageOptions) => void; +type OnSocketMessageCallback = (result: OnSocketMessageCallbackResult) => void; +type OnSocketMessage = (callback: OnSocketMessageCallback) => void; +type CloseSocket = (options: CloseSocketOptions) => void; +class OnSocketCloseCallbackResult extends UTSObject { + code!: number; + reason!: string; +} +type OnSocketCloseCallback = (result: OnSocketCloseCallbackResult) => void; +type OnSocketClose = (callback: OnSocketCloseCallback) => void; +interface IUniWebsocketEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +interface UniExtApi { + addPhoneContact: AddPhoneContact; + startSoterAuthentication: StartSoterAuthentication; + checkIsSupportSoterAuthentication: CheckIsSupportSoterAuthentication; + checkIsSoterEnrolledInDevice: CheckIsSoterEnrolledInDevice; + chooseMedia: ChooseMedia; + getClipboardData: GetClipboardData; + setClipboardData: SetClipboardData; + createInnerAudioContext: CreateInnerAudioContext; + createElement: CreateElement; + $on: $On; + $once: $Once; + $off: $Off; + $emit: $Emit; + exit: Exit; + saveFile: SaveFile; + getSavedFileList: GetSavedFileList; + getSavedFileInfo: GetSavedFileInfo; + removeSavedFile: RemoveSavedFile; + getFileInfo: GetFileInfo; + getFileSystemManager: GetFileSystemManager; + getAppAuthorizeSetting: GetAppAuthorizeSetting; + getAppBaseInfo: GetAppBaseInfo; + getBackgroundAudioManager: GetBackgroundAudioManager; + getDeviceInfo: GetDeviceInfo; + getElementById: GetElementById; + getNetworkType: GetNetworkType; + onNetworkStatusChange: OnNetworkStatusChange; + offNetworkStatusChange: OffNetworkStatusChange; + getProvider: GetProvider; + getProviderSync: GetProviderSync; + getRecorderManager: GetRecorderManager; + getSystemInfo: GetSystemInfo; + getSystemInfoSync: GetSystemInfoSync; + getWindowInfo: GetWindowInfo; + getSystemSetting: GetSystemSetting; + hideKeyboard: HideKeyboard; + loadFontFace: LoadFontFace; + makePhoneCall: MakePhoneCall; + chooseImage: ChooseImage; + previewImage: PreviewImage; + closePreviewImage: ClosePreviewImage; + getImageInfo: GetImageInfo; + saveImageToPhotosAlbum: SaveImageToPhotosAlbum; + compressImage: CompressImage; + chooseVideo: ChooseVideo; + saveVideoToPhotosAlbum: SaveVideoToPhotosAlbum; + getVideoInfo: GetVideoInfo; + compressVideo: CompressVideo; + chooseFile: ChooseFile; + request: Request<Object>; + uploadFile: UploadFile; + downloadFile: DownloadFile; + configMTLS: ConfigMTLS; + login: Login; + getUserInfo: GetUserInfo; + openAppAuthorizeSetting: OpenAppAuthorizeSetting; + openDocument: OpenDocument; + requestPayment: RequestPayment; + showToast: ShowToast; + hideToast: HideToast; + showLoading: ShowLoading; + hideLoading: HideLoading; + showModal: ShowModal; + showActionSheet: ShowActionSheet; + rpx2px: Rpx2px; + scanCode: ScanCode; + shareWithSystem: ShareWithSystem; + setStorage: SetStorage; + setStorageSync: SetStorageSync; + getStorage: GetStorage; + getStorageSync: GetStorageSync; + getStorageInfo: GetStorageInfo; + getStorageInfoSync: GetStorageInfoSync; + removeStorage: RemoveStorage; + removeStorageSync: RemoveStorageSync; + clearStorage: ClearStorage; + clearStorageSync: ClearStorageSync; + connectSocket: ConnectSocket; + sendSocketMessage: SendSocketMessage; + closeSocket: CloseSocket; + onSocketOpen: OnSocketOpen; + onSocketMessage: OnSocketMessage; + onSocketClose: OnSocketClose; + onSocketError: OnSocketError; +} +export function initUniExtApi() { + const API_ADD_PHONE_CONTACT = 'addPhoneContact'; + const AddPhoneContactApiOptions: ApiOptions<AddPhoneContactOptions> = { + formatArgs: new Map<string, ((firstName: string) => string | undefined)>([ + [ + 'firstName', + (firstName: string)=>{ + if (!firstName) { + return 'addPhoneContact:fail parameter error: parameter.firstName should not be empty;'; + } + return undefined; + } + ] + ]) + }; + const AddPhoneContactApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'firstName', + { + type: 'string', + required: true + } + ], + [ + 'photoFilePath', + { + type: 'string' + } + ], + [ + 'nickName', + { + type: 'string' + } + ], + [ + 'lastName', + { + type: 'string' + } + ], + [ + 'middleName', + { + type: 'string' + } + ], + [ + 'remark', + { + type: 'string' + } + ], + [ + 'mobilePhoneNumber', + { + type: 'string' + } + ], + [ + 'weChatNumber', + { + type: 'string' + } + ], + [ + 'addressCountry', + { + type: 'string' + } + ], + [ + 'addressState', + { + type: 'string' + } + ], + [ + 'addressCity', + { + type: 'string' + } + ], + [ + 'addressStreet', + { + type: 'string' + } + ], + [ + 'addressPostalCode', + { + type: 'string' + } + ], + [ + 'organization', + { + type: 'string' + } + ], + [ + 'title', + { + type: 'string' + } + ], + [ + 'workFaxNumber', + { + type: 'string' + } + ], + [ + 'workPhoneNumber', + { + type: 'string' + } + ], + [ + 'hostNumber', + { + type: 'string' + } + ], + [ + 'email', + { + type: 'string' + } + ], + [ + 'url', + { + type: 'string' + } + ], + [ + 'workAddressCountry', + { + type: 'string' + } + ], + [ + 'workAddressState', + { + type: 'string' + } + ], + [ + 'workAddressCity', + { + type: 'string' + } + ], + [ + 'workAddressStreet', + { + type: 'string' + } + ], + [ + 'workAddressPostalCode', + { + type: 'string' + } + ], + [ + 'homeFaxNumber', + { + type: 'string' + } + ], + [ + 'homePhoneNumber', + { + type: 'string' + } + ], + [ + 'homeAddressCountry', + { + type: 'string' + } + ], + [ + 'homeAddressState', + { + type: 'string' + } + ], + [ + 'homeAddressCity', + { + type: 'string' + } + ], + [ + 'homeAddressStreet', + { + type: 'string' + } + ], + [ + 'homeAddressPostalCode', + { + type: 'string' + } + ] + ]); + const addPhoneContact: AddPhoneContact = defineAsyncApi<AddPhoneContactOptions, AddPhoneContactSuccess>(API_ADD_PHONE_CONTACT, (args: AddPhoneContactOptions, executor: ApiExecutor<AddPhoneContactSuccess>)=>{ + UTSHarmony.requestSystemPermission([ + 'ohos.permission.WRITE_CONTACTS' + ], (allRight: boolean)=>{ + if (allRight) { + const photoFilePath = args.photoFilePath, _args_nickName = args.nickName, nickName = _args_nickName == null ? '' : _args_nickName, _args_lastName = args.lastName, lastName = _args_lastName == null ? '' : _args_lastName, _args_middleName = args.middleName, middleName = _args_middleName == null ? '' : _args_middleName, _args_firstName = args.firstName, firstName = _args_firstName == null ? '' : _args_firstName, _args_remark = args.remark, remark = _args_remark == null ? '' : _args_remark, _args_mobilePhoneNumber = args.mobilePhoneNumber, mobilePhoneNumber = _args_mobilePhoneNumber == null ? '' : _args_mobilePhoneNumber, _args_addressCountry = args.addressCountry, addressCountry = _args_addressCountry == null ? '' : _args_addressCountry, _args_addressState = args.addressState, addressState = _args_addressState == null ? '' : _args_addressState, _args_addressCity = args.addressCity, addressCity = _args_addressCity == null ? '' : _args_addressCity, _args_addressStreet = args.addressStreet, addressStreet = _args_addressStreet == null ? '' : _args_addressStreet, _args_addressPostalCode = args.addressPostalCode, addressPostalCode = _args_addressPostalCode == null ? '' : _args_addressPostalCode, _args_organization = args.organization, organization = _args_organization == null ? '' : _args_organization, _args_url = args.url, url = _args_url == null ? '' : _args_url, _args_workPhoneNumber = args.workPhoneNumber, workPhoneNumber = _args_workPhoneNumber == null ? '' : _args_workPhoneNumber, _args_workFaxNumber = args.workFaxNumber, workFaxNumber = _args_workFaxNumber == null ? '' : _args_workFaxNumber, _args_hostNumber = args.hostNumber, hostNumber = _args_hostNumber == null ? '' : _args_hostNumber, _args_email = args.email, email = _args_email == null ? '' : _args_email, _args_title = args.title, title = _args_title == null ? '' : _args_title, _args_workAddressCountry = args.workAddressCountry, workAddressCountry = _args_workAddressCountry == null ? '' : _args_workAddressCountry, _args_workAddressState = args.workAddressState, workAddressState = _args_workAddressState == null ? '' : _args_workAddressState, _args_workAddressCity = args.workAddressCity, workAddressCity = _args_workAddressCity == null ? '' : _args_workAddressCity, _args_workAddressStreet = args.workAddressStreet, workAddressStreet = _args_workAddressStreet == null ? '' : _args_workAddressStreet, workAddressPostalCode = args.workAddressPostalCode, _args_homeFaxNumber = args.homeFaxNumber, homeFaxNumber = _args_homeFaxNumber == null ? '' : _args_homeFaxNumber, _args_homePhoneNumber = args.homePhoneNumber, homePhoneNumber = _args_homePhoneNumber == null ? '' : _args_homePhoneNumber, _args_homeAddressCountry = args.homeAddressCountry, homeAddressCountry = _args_homeAddressCountry == null ? '' : _args_homeAddressCountry, _args_homeAddressState = args.homeAddressState, homeAddressState = _args_homeAddressState == null ? '' : _args_homeAddressState, _args_homeAddressCity = args.homeAddressCity, homeAddressCity = _args_homeAddressCity == null ? '' : _args_homeAddressCity, _args_homeAddressStreet = args.homeAddressStreet, homeAddressStreet = _args_homeAddressStreet == null ? '' : _args_homeAddressStreet, _args_homeAddressPostalCode = args.homeAddressPostalCode, homeAddressPostalCode = _args_homeAddressPostalCode == null ? '' : _args_homeAddressPostalCode; + const contactInfo: contact.Contact = { + name: { + givenName: firstName!, + fullName: lastName! + middleName! + firstName! + } + }; + if (nickName) { + contactInfo.nickName = { + nickName: nickName! + } as contact.NickName; + } + if (lastName) { + contactInfo.name!.familyName = lastName; + } + if (middleName) { + contactInfo.name!.middleName = middleName; + } + if (email) { + contactInfo.emails = [ + { + email: email!, + displayName: '邮箱' + } as contact.Email + ]; + } + if (photoFilePath) { + contactInfo.portrait = { + uri: photoFilePath + } as contact.Portrait; + } + if (url) { + contactInfo.websites = [ + { + website: url + } as contact.Website + ]; + } + if (remark) { + contactInfo.note = { + noteContent: remark + } as contact.Note; + } + if (organization) { + contactInfo.organization = { + name: organization, + title: title! + } as contact.Organization; + } + const phoneNumbers: contact.PhoneNumber[] = []; + if (homePhoneNumber) { + phoneNumbers.push({ + phoneNumber: homePhoneNumber!, + labelId: contact.PhoneNumber.NUM_HOME + } as contact.PhoneNumber); + } + if (mobilePhoneNumber) { + phoneNumbers.push({ + phoneNumber: mobilePhoneNumber!, + labelId: contact.PhoneNumber.NUM_MOBILE + } as contact.PhoneNumber); + } + if (homeFaxNumber) { + phoneNumbers.push({ + phoneNumber: homeFaxNumber!, + labelId: contact.PhoneNumber.NUM_FAX_HOME + } as contact.PhoneNumber); + } + if (workFaxNumber) { + phoneNumbers.push({ + phoneNumber: workFaxNumber!, + labelId: contact.PhoneNumber.NUM_FAX_WORK + } as contact.PhoneNumber); + } + if (workPhoneNumber) { + phoneNumbers.push({ + phoneNumber: workPhoneNumber!, + labelId: contact.PhoneNumber.NUM_WORK + } as contact.PhoneNumber); + } + if (hostNumber) { + phoneNumbers.push({ + phoneNumber: hostNumber!, + labelId: contact.PhoneNumber.NUM_COMPANY_MAIN + } as contact.PhoneNumber); + } + if (phoneNumbers.length) contactInfo.phoneNumbers = phoneNumbers; + const postalAddresses: contact.PostalAddress[] = []; + if (homeAddressCity || homeAddressCountry || homeAddressPostalCode || homeAddressStreet) { + postalAddresses.push({ + city: homeAddressCity!, + country: homeAddressCountry!, + postcode: homeAddressPostalCode!, + street: homeAddressStreet!, + postalAddress: `${homeAddressCountry!}${homeAddressState!}${homeAddressCity!}${homeAddressStreet!}`, + labelId: contact.PostalAddress.ADDR_HOME + } as contact.PostalAddress); + } + if (workAddressCity || workAddressCountry || workAddressPostalCode || workAddressStreet) { + postalAddresses.push({ + city: workAddressCity!, + country: workAddressCountry!, + postcode: workAddressPostalCode!, + street: workAddressStreet!, + postalAddress: `${workAddressCountry!}${workAddressState!}${workAddressCity!}${workAddressStreet!}`, + labelId: contact.PostalAddress.ADDR_WORK + } as contact.PostalAddress); + } + if (addressCity || addressCountry || addressPostalCode || addressStreet) { + postalAddresses.push({ + city: addressCity!, + country: addressCountry!, + postcode: addressPostalCode!, + street: addressStreet!, + postalAddress: `${addressCountry!}${addressState!}${addressCity!}${addressStreet!}`, + labelId: contact.PostalAddress.CUSTOM_LABEL + } as contact.PostalAddress); + } + if (postalAddresses.length) contactInfo.postalAddresses = postalAddresses; + contact.addContact(UTSHarmony.getUIAbilityContext()!, contactInfo).then((contactId)=>{ + executor.resolve(contactId); + }).catch((err: BusinessError)=>{ + executor.reject(err.message); + }); + } else { + executor.reject('Permission denied'); + } + }, ()=>executor.reject('Permission denied')); + }, AddPhoneContactApiProtocol, AddPhoneContactApiOptions) as AddPhoneContact; + const API_START_SOTER_AUTHENTICATION = 'startSoterAuthentication'; + const StartSoterAuthenticationApiOptions: ApiOptions<StartSoterAuthenticationOptions> = { + formatArgs: new Map<string, ((value: string) => string | undefined)>([ + [ + 'requestAuthModes', + (value: string)=>{ + if (!value.includes('fingerPrint') && !value.includes('facial')) { + return 'requestAuthModes 填写错误'; + } + return undefined; + } + ] + ]) + }; + const StartSoterAuthenticationApiProtocols = new Map<string, ProtocolOptions>([ + [ + 'requestAuthModes', + { + type: 'array', + required: true + } + ], + [ + 'challenge', + { + type: 'string', + required: true + } + ], + [ + 'authContent', + { + type: 'string' + } + ] + ]); + const API_CHECK_IS_SOTER_ENROLLED_IN_DEVICE = 'checkIsSoterEnrolledInDevice'; + const checkAuthModes: SoterAuthMode[] = [ + 'fingerPrint', + 'facial', + 'speech' + ]; + const CheckIsSoterEnrolledInDeviceApiOptions: ApiOptions<CheckIsSoterEnrolledInDeviceOptions> = { + formatArgs: new Map<string, ((value: string) => string | undefined)>([ + [ + 'checkAuthMode', + (value: string)=>{ + if (!checkAuthModes.includes(value as SoterAuthMode)) { + return 'checkAuthMode 填写错误'; + } + return undefined; + } + ] + ]) + }; + const CheckIsSoterEnrolledInDeviceProtocols = new Map<string, ProtocolOptions>([ + [ + 'checkAuthMode', + { + type: 'string' + } + ] + ]); + const API_CHECK_IS_SUPPORT_SOTER_AUTHENTICATION = 'checkIsSupportSoterAuthentication'; + const getErrorMessage = (code: number): string =>{ + switch(code){ + case 201: + return "权限认证失败"; + case 401: + return "参数不正确。可能的一个原因: 强制参数未指定"; + case userAuth.UserAuthResultCode.FAIL: + return "认证失败"; + case userAuth.UserAuthResultCode.GENERAL_ERROR: + return "操作通用错误"; + case userAuth.UserAuthResultCode.CANCELED: + return "操作取消"; + case userAuth.UserAuthResultCode.TIMEOUT: + return "操作超时"; + case userAuth.UserAuthResultCode.TYPE_NOT_SUPPORT: + return "不支持的认证类型"; + case userAuth.UserAuthResultCode.TRUST_LEVEL_NOT_SUPPORT: + return "不支持的认证等级"; + case userAuth.UserAuthResultCode.BUSY: + return "忙碌状态"; + case userAuth.UserAuthResultCode.LOCKED: + return "认证器已锁定"; + case userAuth.UserAuthResultCode.NOT_ENROLLED: + return "用户未录入认证信息"; + case userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET: + return "切换到自定义身份验证过程"; + case 12500013: + return "系统锁屏密码过期"; + default: + return ''; + } + }; + const getUniErrMsg = (code: number): number =>{ + switch(code){ + case 201: + return 90002; + case 401: + return 90004; + case userAuth.UserAuthResultCode.FAIL: + return 90009; + case userAuth.UserAuthResultCode.GENERAL_ERROR: + return 90007; + case userAuth.UserAuthResultCode.CANCELED: + return 90008; + case userAuth.UserAuthResultCode.TIMEOUT: + return 90007; + case userAuth.UserAuthResultCode.TYPE_NOT_SUPPORT: + return 90003; + case userAuth.UserAuthResultCode.TRUST_LEVEL_NOT_SUPPORT: + return 90003; + case userAuth.UserAuthResultCode.BUSY: + return 90010; + case userAuth.UserAuthResultCode.LOCKED: + return 90010; + case userAuth.UserAuthResultCode.NOT_ENROLLED: + return 90011; + case userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET: + return userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET; + case 12500013: + return 12500013; + default: + return -1; + } + }; + const toUint8Arr = (str: string)=>{ + const buffer: number[] = []; + for (let i of str){ + const _code: number = i.charCodeAt(0); + if (_code < 0x80) { + buffer.push(_code); + } else if (_code < 0x800) { + buffer.push(0xc0 + (_code >> 6)); + buffer.push(0x80 + (_code & 0x3f)); + } else if (_code < 0x10000) { + buffer.push(0xe0 + (_code >> 12)); + buffer.push(0x80 + (_code >> 6 & 0x3f)); + buffer.push(0x80 + (_code & 0x3f)); + } + } + return Uint8Array.from(buffer); + }; + const startSoterAuthentication: StartSoterAuthentication = defineAsyncApi<StartSoterAuthenticationOptions, StartSoterAuthenticationSuccess>(API_START_SOTER_AUTHENTICATION, (args: StartSoterAuthenticationOptions, executor: ApiExecutor<StartSoterAuthenticationSuccess>)=>{ + const authType: userAuth.UserAuthType[] = []; + args.requestAuthModes.forEach((item)=>{ + if (item === 'fingerPrint') { + authType.push(userAuth.UserAuthType.FINGERPRINT); + } else if (item === 'facial') { + authType.push(userAuth.UserAuthType.FACE); + } + }); + const challengeArr = toUint8Arr(args.challenge ?? ''); + const authContent = args.authContent ?? ''; + try { + const auth = userAuth.getUserAuthInstance({ + challenge: challengeArr, + authType, + authTrustLevel: userAuth.AuthTrustLevel.ATL1 + } as userAuth.AuthParam, { + title: authContent + } as userAuth.WidgetParam); + auth.on("result", { + onResult: (result: userAuth.UserAuthResult)=>{ + if (result.result === userAuth.UserAuthResultCode.SUCCESS) { + executor.resolve({ + errCode: 0, + authMode: result.authType === userAuth.UserAuthType.FINGERPRINT ? 'fingerPrint' : 'facial' + } as StartSoterAuthenticationSuccess); + } else { + const errMsg = getErrorMessage(result.result); + const errCode = getUniErrMsg(result.result); + executor.reject(errMsg, { + errCode + } as ApiError); + } + } + } as userAuth.IAuthCallback); + if (authContent) { + promptAction.showToast({ + message: authContent + } as promptAction.ShowToastOptions); + } + auth.start(); + } catch (error) { + const code = (error as BusinessError1).code; + executor.reject(getErrorMessage(code), { + errCode: getUniErrMsg(code) + } as ApiError); + } + }, StartSoterAuthenticationApiProtocols, StartSoterAuthenticationApiOptions) as StartSoterAuthentication; + const fingerPrintAvailable = ()=>{ + try { + userAuth.getAvailableStatus(userAuth.UserAuthType.FINGERPRINT, userAuth.AuthTrustLevel.ATL1); + return true; + } catch (error) { + if ([ + userAuth.UserAuthResultCode.NOT_ENROLLED, + userAuth.UserAuthResultCode.PIN_EXPIRED + ].includes((error as BusinessError1).code)) { + return true; + } + return false; + } + }; + const faceAvailable = ()=>{ + try { + userAuth.getAvailableStatus(userAuth.UserAuthType.FACE, userAuth.AuthTrustLevel.ATL1); + return true; + } catch (error) { + if ([ + userAuth.UserAuthResultCode.NOT_ENROLLED, + userAuth.UserAuthResultCode.PIN_EXPIRED + ].includes((error as BusinessError1).code)) { + return true; + } + return false; + } + }; + const PERMISSIONS = [ + 'ohos.permission.ACCESS_BIOMETRIC' + ]; + const checkIsSupportSoterAuthentication: CheckIsSupportSoterAuthentication = defineAsyncApi<CheckIsSupportSoterAuthenticationOptions, CheckIsSupportSoterAuthenticationSuccess>(API_CHECK_IS_SUPPORT_SOTER_AUTHENTICATION, (args: CheckIsSupportSoterAuthenticationOptions, executor: ApiExecutor<CheckIsSupportSoterAuthenticationSuccess>)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS, (allRight: boolean)=>{ + if (allRight) { + try { + const supportMode: SoterAuthMode[] = []; + if (fingerPrintAvailable()) supportMode.push('fingerPrint'); + if (faceAvailable()) supportMode.push('facial'); + return executor.resolve({ + supportMode, + errMsg: '' + } as CheckIsSupportSoterAuthenticationSuccess); + } catch (error) { + const code = (error as BusinessError1).code; + executor.reject(getErrorMessage(code), { + errCode: getUniErrMsg(code) + } as ApiError); + } + } else { + executor.reject(getErrorMessage(201)); + } + }, ()=>{ + executor.reject(getErrorMessage(201)); + }); + }) as CheckIsSupportSoterAuthentication; + const getFingerPrintEnrolledState = ()=>{ + userAuth.getEnrolledState(userAuth.UserAuthType.FINGERPRINT); + return true; + }; + const getFaceEnrolledState = ()=>{ + userAuth.getEnrolledState(userAuth.UserAuthType.FACE); + return true; + }; + const harmonyCheckIsSoterEnrolledInDevice = (checkAuthMode: SoterAuthMode): boolean =>{ + if (checkAuthMode === 'fingerPrint') { + return getFingerPrintEnrolledState(); + } else if (checkAuthMode === 'facial') { + return getFaceEnrolledState(); + } + return false; + }; + const checkIsSoterEnrolledInDevice: CheckIsSoterEnrolledInDevice = defineAsyncApi<CheckIsSoterEnrolledInDeviceOptions, CheckIsSoterEnrolledInDeviceSuccess>(API_CHECK_IS_SOTER_ENROLLED_IN_DEVICE, (args: CheckIsSoterEnrolledInDeviceOptions, executor: ApiExecutor<CheckIsSoterEnrolledInDeviceSuccess>)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS, (allRight: boolean)=>{ + if (allRight) { + try { + const isEnrolled = harmonyCheckIsSoterEnrolledInDevice(args.checkAuthMode); + executor.resolve({ + isEnrolled, + errMsg: '' + } as CheckIsSoterEnrolledInDeviceSuccess); + } catch (error) { + const code = (error as BusinessError1).code; + executor.reject(getErrorMessage(code), { + errCode: getUniErrMsg(code) + } as ApiError); + } + } else { + executor.reject(getErrorMessage(201)); + } + }, ()=>{ + executor.reject(getErrorMessage(201)); + }); + }, CheckIsSoterEnrolledInDeviceProtocols, CheckIsSoterEnrolledInDeviceApiOptions) as CheckIsSoterEnrolledInDevice; + const API_CHOOSE_MEDIA = 'chooseMedia'; + const ChooseMediaApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'count', + { + type: 'number', + required: false + } + ], + [ + 'mediaType', + { + type: 'array', + required: false + } + ], + [ + 'sourceType', + { + type: 'array', + required: false + } + ], + [ + 'maxDuration', + { + type: 'number', + required: false + } + ], + [ + 'camera', + { + type: 'string', + required: false + } + ] + ]); + const ChooseMediaApiOptions: ApiOptions<ChooseMediaOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'count', + (count: number, params: ChooseMediaOptions)=>{ + if (count == null) { + params.count = 9; + } + if (params.count != null && params.count > 9) { + params.count = 9; + } + } + ], + [ + 'mediaType', + (mediaType: string[], params: ChooseMediaOptions)=>{ + if (mediaType == null) { + params.mediaType = [ + 'image', + 'video' + ]; + } + } + ], + [ + 'sourceType', + (sourceType: string[], params: ChooseMediaOptions)=>{ + if (sourceType == null) { + params.sourceType = [ + 'album', + 'camera' + ]; + } + } + ], + [ + 'maxDuration', + (maxDuration: number, params: ChooseMediaOptions)=>{ + if (maxDuration == null) { + params.maxDuration = 10; + } + } + ], + [ + 'camera', + (camera: string, params: ChooseMediaOptions)=>{ + if (camera == null) { + params.camera = 'back'; + } + } + ] + ]) + }; + const _getVideoInfo = async (uri: string): Promise<_GetVideoInfoSuccess> =>{ + const file = await fs.open(uri, fs.OpenMode.READ_ONLY); + const avMetadataExtractor = await media.createAVMetadataExtractor(); + let metadata: media.AVMetadata | null = null; + let size: number = 0; + try { + size = (await fs.stat(file.fd)).size; + avMetadataExtractor.dataSrc = { + fileSize: size, + callback: (buffer: ArrayBuffer, length: number, pos: number | null = null)=>{ + return fs.readSync(file.fd, buffer, { + offset: pos, + length + } as ReadOptions); + } + }; + metadata = await avMetadataExtractor.fetchMetadata(); + } catch (error) { + throw error as Error; + } finally{ + await avMetadataExtractor.release(); + await fs.close(file); + } + const videoOrientationArr = [ + 'up', + 'right', + 'down', + 'left' + ] as _MediaOrientation[]; + return { + size: size, + duration: metadata.duration ? Number(metadata.duration) / 1000 : undefined, + width: metadata.videoWidth ? Number(metadata.videoWidth) : undefined, + height: metadata.videoHeight ? Number(metadata.videoHeight) : undefined, + type: metadata.mimeType, + orientation: metadata.videoOrientation ? videoOrientationArr[Number(metadata.videoOrientation) / 90] : undefined + } as _GetVideoInfoSuccess; + }; + const _chooseMedia = async (options: __ChooseMediaOptions): Promise<_chooseMediaSuccessCallbackResult> =>{ + const photoSelectOptions = new photoAccessHelper.PhotoSelectOptions(); + const mimeType = options.mimeType; + photoSelectOptions.MIMEType = mimeType; + if (mimeType === photoAccessHelper.PhotoViewMIMETypes.VIDEO_TYPE) { + photoSelectOptions.maxSelectNumber = 1; + } else { + photoSelectOptions.maxSelectNumber = options.count || 9; + } + photoSelectOptions.isOriginalSupported = options.isOriginalSupported; + photoSelectOptions.isPhotoTakingSupported = !(options.sourceType && !options.sourceType.includes('camera')); + const photoPicker = new photoAccessHelper.PhotoViewPicker(); + const photoSelectResult = await photoPicker.select(photoSelectOptions); + const uris = photoSelectResult.photoUris; + if (mimeType !== photoAccessHelper.PhotoViewMIMETypes.VIDEO_TYPE) { + let realUris: string[] = uris; + return { + tempFiles: realUris.map((uri)=>{ + const file = fs.openSync(uri, fs.OpenMode.READ_ONLY); + const stat = fs.statSync(file.fd); + fs.closeSync(file); + return { + fileType: 'image', + tempFilePath: uri, + size: stat.size + } as _MediaFile; + }) + }; + } + const tempFiles: _MediaFile[] = []; + for(let i = 0; i < uris.length; i++){ + const uri = uris[i]; + const videoInfo = await _getVideoInfo(uri); + tempFiles.push({ + fileType: 'video', + tempFilePath: uri, + size: videoInfo.size, + duration: videoInfo.duration, + width: videoInfo.width, + height: videoInfo.height + } as _MediaFile); + } + return { + tempFiles + } as _chooseMediaSuccessCallbackResult; + }; + const getHMCameraPosition = (cameraType: CameraPosition)=>{ + switch(cameraType){ + case 'back': + return camera.CameraPosition.CAMERA_POSITION_BACK; + case 'front': + return camera.CameraPosition.CAMERA_POSITION_FRONT; + default: + return camera.CameraPosition.CAMERA_POSITION_BACK; + } + }; + const getCameraPickerMediaTypes = (UniMediaTypes: UNI_MEDIA_TYPE[]): cameraPicker.PickerMediaType[] =>{ + let mediaTypes: Array<cameraPicker.PickerMediaType> = []; + if (UniMediaTypes.includes('mix')) { + mediaTypes.push(cameraPicker.PickerMediaType.PHOTO, cameraPicker.PickerMediaType.VIDEO); + } else { + if (UniMediaTypes.includes('image')) { + mediaTypes.push(cameraPicker.PickerMediaType.PHOTO); + } + if (UniMediaTypes.includes('video')) { + mediaTypes.push(cameraPicker.PickerMediaType.VIDEO); + } + } + return mediaTypes; + }; + const _takeCamera = async (args: ChooseMediaOptions, executor: ApiExecutor<ChooseMediaSuccess>)=>{ + try { + let pickerProfile: cameraPicker.PickerProfile = { + cameraPosition: getHMCameraPosition(args?.camera ?? 'back'), + videoDuration: args?.maxDuration ?? 10 + }; + const mediaTypes = getCameraPickerMediaTypes((args.mediaType ?? []) as UNI_MEDIA_TYPE[]); + const res = await cameraPicker.pick(UTSHarmony.getUIAbilityContext()!, mediaTypes, pickerProfile); + executor.resolve({ + type: 'mix', + tempFiles: [ + { + tempFilePath: res.resultUri, + fileType: res.mediaType === cameraPicker.PickerMediaType.PHOTO ? 'image' : 'video' + } + ] + } as ChooseMediaSuccess); + } catch (error) { + const err = error as BusinessError2; + executor.reject(err.message, { + errCode: err.code + } as ApiError); + } + }; + const __chooseMedia = async (args: ChooseMediaOptions, mimeType: photoAccessHelper1.PhotoViewMIMETypes, executor: ApiExecutor<ChooseMediaSuccess>)=>{ + if (args.sourceType?.length === 1 && args.sourceType[0] === 'camera') { + _takeCamera(args, executor); + } else { + _chooseMedia({ + mimeType, + sourceType: [ + "album" + ], + count: args.count!, + isOriginalSupported: true + } as __ChooseMediaOptions).then((res)=>{ + executor.resolve({ + type: 'mix', + tempFiles: res.tempFiles.map((tempFile): ChooseMediaTempFile =>{ + if (tempFile.fileType === 'image') { + return { + fileType: tempFile.fileType, + tempFilePath: tempFile.tempFilePath, + size: tempFile.size + } as ChooseMediaTempFile; + } + return { + tempFilePath: tempFile.tempFilePath, + duration: tempFile.duration, + size: tempFile.size, + height: tempFile.height, + width: tempFile.width, + fileType: tempFile.fileType + } as ChooseMediaTempFile; + }) + } as ChooseMediaSuccess); + }).catch((err: Error)=>{ + executor.reject(err.message); + }); + } + }; + const chooseMedia: ChooseMedia = defineAsyncApi<ChooseMediaOptions, ChooseMediaSuccess>(API_CHOOSE_MEDIA, async (args: ChooseMediaOptions, executor: ApiExecutor<ChooseMediaSuccess>)=>{ + if (args.mediaType?.length === 1 && args.mediaType[0] === 'image') { + __chooseMedia(args, photoAccessHelper1.PhotoViewMIMETypes.IMAGE_TYPE, executor); + return; + } + if (args.mediaType?.length === 1 && args.mediaType[0] === 'video') { + __chooseMedia(args, photoAccessHelper1.PhotoViewMIMETypes.VIDEO_TYPE, executor); + return; + } + if (args.sourceType?.length === 1 && args.sourceType[0] === 'camera') { + _takeCamera(args, executor); + } else { + const lastWindow = UTSHarmony.getCurrentWindow() as window.Window; + const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); + UIContextPromptAction.showActionMenu({ + buttons: [ + { + text: '拍摄', + color: '#000000' + }, + { + text: '从相册选择', + color: '#000000' + } + ] + } as promptAction1.ActionMenuOptions, (err, ref)=>{ + let index = ref.index; + if (err) { + executor.reject('cancel'); + } else { + if (index === 0) { + _takeCamera(args, executor); + } else if (index === 1) { + __chooseMedia(args, photoAccessHelper1.PhotoViewMIMETypes.IMAGE_VIDEO_TYPE, executor); + } + } + }); + } + }, ChooseMediaApiProtocol, ChooseMediaApiOptions) as ChooseMedia; + const API_GET_CLIPBOARD_DATA = 'getClipboardData'; + const API_SET_CLIPBOARD_DATA = 'setClipboardData'; + const SetClipboardDataApiOptions: ApiOptions<SetClipboardDataOptions> = { + formatArgs: new Map<string, boolean>([ + [ + 'showToast', + true + ] + ]) + }; + const SetClipboardDataProtocol = new Map<string, ProtocolOptions>([ + [ + 'data', + { + type: 'string', + required: true + } + ], + [ + 'showToast', + { + type: 'boolean' + } + ] + ]); + const getString = (callback: ClipboardCallback)=>{ + const systemPasteboard: pasteboard.SystemPasteboard = pasteboard.getSystemPasteboard(); + UTSHarmony.requestSystemPermission([ + 'ohos.permission.READ_PASTEBOARD' + ], (allRight: boolean)=>{ + if (allRight) { + const pasteData = systemPasteboard.getDataSync(); + try { + const text: string = pasteData.getPrimaryText(); + callback({ + data: text, + result: 'success' + } as ClipboardCallbackOptions); + } catch (err) { + callback({ + data: (err as BusinessError3<void>).message, + result: 'fail' + } as ClipboardCallbackOptions); + } + } else { + callback({ + data: 'Permission denied', + result: 'fail' + } as ClipboardCallbackOptions); + } + }, ()=>{ + callback({ + data: 'Permission denied', + result: 'fail' + } as ClipboardCallbackOptions); + }); + }; + const setString = (data: string)=>{ + const pasteData: pasteboard.PasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_PLAIN, data); + const systemPasteboard: pasteboard.SystemPasteboard = pasteboard.getSystemPasteboard(); + try { + systemPasteboard.setDataSync(pasteData); + return { + data, + result: 'success' + } as ClipboardCallbackOptions; + } catch (err) { + return { + data: (err as BusinessError3<void>).message, + result: 'fail' + } as ClipboardCallbackOptions; + } + }; + const getClipboardData: GetClipboardData = defineAsyncApi<GetClipboardDataOptions, GetClipboardDataSuccess>(API_GET_CLIPBOARD_DATA, (_: GetClipboardDataOptions, res: ApiExecutor<GetClipboardDataSuccess>)=>{ + getString((ret: ClipboardCallbackOptions)=>{ + if (ret.result === 'success') { + res.resolve({ + data: ret.data + } as GetClipboardDataSuccess); + } else { + res.reject('getClipboardData:fail ' + ret.data); + } + }); + }) as GetClipboardData; + const setClipboardData: SetClipboardData = defineAsyncApi<SetClipboardDataOptions, SetClipboardDataSuccess>(API_SET_CLIPBOARD_DATA, (options: SetClipboardDataOptions, res: ApiExecutor<SetClipboardDataSuccess>)=>{ + const ret = setString(options.data); + if (ret.result === 'success') { + res.resolve(); + } else { + res.reject('setClipboardData:fail ' + ret.data); + } + }, SetClipboardDataProtocol, SetClipboardDataApiOptions) as SetClipboardData; + const API_CREATE_INNER_AUDIO_CONTEXT = 'createInnerAudioContext'; + const isFileUri = (path: string)=>{ + return path && typeof path === 'string' && (path.startsWith('file://') || path.startsWith('datashare://')); + }; + const isSandboxPath = (path: string)=>{ + return path && typeof path === 'string' && path.startsWith('/data/storage/'); + }; + const getFdFromUriOrSandBoxPath = (uri: string)=>{ + try { + const file = fileIo.openSync(uri, fileIo.OpenMode.READ_ONLY); + return file.fd; + } catch (error) { + console.info(`[AdvancedAPI] Can not get file from uri: ${uri} `); + } + throw new Error('file is not exist'); + }; + const callCallbacks = (callbacks: Function[], ...args: Object[])=>{ + callbacks.forEach((cb)=>{ + typeof cb === 'function' && cb(...args); + }); + }; + const remoteCallback = (callbacks: Function[], callback: Function)=>{ + const index = callbacks.indexOf(callback); + if (index > -1) { + callbacks.splice(index, 1); + } + }; + class AudioPlayerError { + errMsg: string; + errCode: number; + constructor(errMsg: string, errCode: number){ + this.errMsg = errMsg; + this.errCode = errCode; + } + } + class AudioPlayerCallback { + onCanplayCallbacks: Function[] = []; + onPlayCallbacks: Function[] = []; + onPauseCallbacks: Function[] = []; + onStopCallbacks: Function[] = []; + onEndedCallbacks: Function[] = []; + onTimeUpdateCallbacks: Function[] = []; + onErrorCallbacks: Function[] = []; + onWaitingCallbacks: Function[] = []; + onSeekingCallbacks: Function[] = []; + onSeekedCallbacks: Function[] = []; + constructor(){} + canPlay() { + callCallbacks(this.onCanplayCallbacks); + } + onCanplay(callback: Function) { + this.onCanplayCallbacks.push(callback); + } + offCanplay(callback: Function) { + remoteCallback(this.onCanplayCallbacks, callback); + } + play() { + callCallbacks(this.onPlayCallbacks); + } + onPlay(callback: Function) { + this.onPlayCallbacks.push(callback); + } + offPlay(callback: Function) { + remoteCallback(this.onPlayCallbacks, callback); + } + pause() { + callCallbacks(this.onPauseCallbacks); + } + onPause(callback: Function) { + this.onPauseCallbacks.push(callback); + } + offPause(callback: Function) { + remoteCallback(this.onPauseCallbacks, callback); + } + stop() { + callCallbacks(this.onStopCallbacks); + } + onStop(callback: Function) { + this.onStopCallbacks.push(callback); + } + offStop(callback: Function) { + remoteCallback(this.onStopCallbacks, callback); + } + ended() { + callCallbacks(this.onEndedCallbacks); + } + onEnded(callback: Function) { + this.onEndedCallbacks.push(callback); + } + offEnded(callback: Function) { + remoteCallback(this.onEndedCallbacks, callback); + } + timeUpdate(time: number) { + callCallbacks(this.onTimeUpdateCallbacks, time); + } + onTimeUpdate(callback: Function) { + this.onTimeUpdateCallbacks.push(callback); + } + offTimeUpdate(callback: Function) { + remoteCallback(this.onTimeUpdateCallbacks, callback); + } + error(res: AudioPlayerError) { + callCallbacks(this.onErrorCallbacks, res); + } + onError(callback: Function) { + this.onErrorCallbacks.push(callback); + } + offError(callback: Function) { + remoteCallback(this.onErrorCallbacks, callback); + } + onPrev(callback: Function) { + console.info('ios only'); + } + onNext(callback: Function) { + console.info('ios only'); + } + waiting() { + callCallbacks(this.onWaitingCallbacks); + } + onWaiting(callback: Function) { + this.onWaitingCallbacks.push(callback); + } + offWaiting(callback: Function) { + remoteCallback(this.onWaitingCallbacks, callback); + } + seeking() { + callCallbacks(this.onSeekingCallbacks); + } + onSeeking(callback: Function) { + this.onSeekingCallbacks.push(callback); + } + offSeeking(callback: Function) { + remoteCallback(this.onSeekingCallbacks, callback); + } + seeked() { + callCallbacks(this.onSeekedCallbacks); + } + onSeeked(callback: Function) { + this.onSeekedCallbacks.push(callback); + } + offSeeked(callback: Function) { + remoteCallback(this.onSeekedCallbacks, callback); + } + } + const AUDIOS: Record<string, InnerAudioContext | undefined> = {}; + const AUDIO_PLAYERS: Record<string, media1.AudioPlayer | undefined> = {}; + const LOG = (msg: string)=>console.log(`[createInnerAudioContext]: ${msg}`); + class STATE_TYPE { + static IDLE: string = 'idle'; + static PLAYING: string = 'playing'; + static PAUSED: string = 'paused'; + static STOPPED: string = 'stopped'; + static ERROR: string = 'error'; + } + class AudioPlayer implements InnerAudioContext { + __v_skip: boolean = true; + private audioPlayerCallback: AudioPlayerCallback = new AudioPlayerCallback(); + private _volume: number = 1; + private _src: string = ''; + private _autoplay: boolean = false; + private _startTime: number = 0; + private _buffered: number = 0; + private _title: string = ''; + private audioId: string = ''; + private _playbackRate: number = 1; + readonly obeyMuteSwitch: boolean = false; + constructor(audioId: string){ + this.audioId = audioId; + this.init(); + } + init() { + AUDIO_PLAYERS[this.audioId]?.on('dataLoad', ()=>{ + this.audioPlayerCallback.canPlay(); + }); + AUDIO_PLAYERS[this.audioId]?.on('play', ()=>{ + this.audioPlayerCallback.play(); + }); + AUDIO_PLAYERS[this.audioId]?.on('pause', ()=>{ + this.audioPlayerCallback.pause(); + }); + AUDIO_PLAYERS[this.audioId]?.on('finish', ()=>{ + this.audioPlayerCallback.ended(); + }); + AUDIO_PLAYERS[this.audioId]?.on('timeUpdate', (res)=>{ + this.audioPlayerCallback.timeUpdate(res / 1000); + }); + AUDIO_PLAYERS[this.audioId]?.on('error', (err)=>{ + this.audioPlayerCallback.error(new AudioPlayerError(err.message, err.code)); + }); + AUDIO_PLAYERS[this.audioId]?.on('bufferingUpdate', (infoType, value)=>{ + console.info(`[AdvancedAPI] audioPlayer bufferingUpdate ${infoType} ${value}`); + if (infoType === media1.BufferingInfoType.BUFFERING_PERCENT && value !== 0 && AUDIO_PLAYERS[this.audioId]) { + this._buffered = value; + if ((AUDIO_PLAYERS[this.audioId]!.currentTime / 1000) >= (AUDIO_PLAYERS[this.audioId]!.duration * value / 100000)) { + this.audioPlayerCallback.waiting(); + } + } + }); + AUDIO_PLAYERS[this.audioId]?.on('audioInterrupt', (InterruptEvent)=>{ + console.info('[AdvancedAPI] audioInterrupt:' + JSON.stringify(InterruptEvent)); + if (AUDIO_PLAYERS[this.audioId] && InterruptEvent.hintType === audio.InterruptHint.INTERRUPT_HINT_PAUSE) { + AUDIO_PLAYERS[this.audioId]!.pause(); + } + }); + } + get duration() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return 0; + } + return audioPlayer.duration / 1000; + } + get currentTime() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return 0; + } + return audioPlayer.currentTime / 1000; + } + get paused() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return false; + } + return audioPlayer.state === STATE_TYPE.PAUSED; + } + get loop() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return false; + } + return audioPlayer.loop; + } + set loop(value) { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (audioPlayer) { + audioPlayer.loop = value; + } + } + get volume() { + return this._volume; + } + set volume(value) { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (audioPlayer) { + this._volume = value; + audioPlayer.setVolume(value); + } + } + get src() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return ''; + } + return audioPlayer.src; + } + set src(value) { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (typeof value !== 'string') { + this.audioPlayerCallback.error(new AudioPlayerError(`set src: ${value} is not string`, 10004)); + return; + } + if (!audioPlayer) { + this.audioPlayerCallback.error(new AudioPlayerError(`player is not exist`, 10001)); + return; + } + if (!value || !(value.startsWith('http:') || value.startsWith('https:') || isFileUri(value) || isSandboxPath(value))) { + LOG(`set src: ${value} is invalid`); + return; + } + let path: string = ''; + if (value.startsWith('http:') || value.startsWith('https:')) { + path = value; + } else if (isFileUri(value) || isSandboxPath(value)) { + try { + const fd = getFdFromUriOrSandBoxPath(value); + path = `fd://${fd}`; + } catch (error) { + console.error(`${JSON.stringify(error)}`); + } + } + if (audioPlayer.src && path !== audioPlayer.src) { + audioPlayer.reset(); + } + AUDIO_PLAYERS[this.audioId]!.src = path; + this._src = value; + if (this._autoplay) { + audioPlayer.play(); + if (this._startTime) { + audioPlayer.seek(this._startTime); + } + } + } + get startTime() { + return this._startTime / 1000; + } + set startTime(time: number) { + this._startTime = time * 1000; + } + get autoplay() { + return this._autoplay; + } + set autoplay(flag) { + this._autoplay = flag; + } + get buffered() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) return 0; + return audioPlayer.duration * this._buffered / 100000; + } + set playbackRate(rate: number) { + this.audioPlayerCallback.error(new AudioPlayerError('HarmonyOS Next Audio setting playbackRate is not supported.', -1)); + } + get playbackRate() { + return this._playbackRate; + } + play() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + const state = audioPlayer.state ?? ''; + if (![ + STATE_TYPE.PAUSED, + STATE_TYPE.STOPPED, + STATE_TYPE.IDLE + ].includes(state)) { + return; + } + if (this._src && audioPlayer.src === '') { + this.src = this._src; + } + audioPlayer.play(); + } + pause() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + const state = audioPlayer.state; + if (STATE_TYPE.PLAYING !== state) { + return; + } + audioPlayer.pause(); + } + stop() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + if (![ + STATE_TYPE.PAUSED, + STATE_TYPE.PLAYING + ].includes(audioPlayer.state)) { + return; + } + audioPlayer.stop(); + this.audioPlayerCallback.stop(); + audioPlayer.release(); + } + seek(position: number) { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + const state = audioPlayer.state; + if (![ + STATE_TYPE.PAUSED, + STATE_TYPE.PLAYING + ].includes(state)) { + return; + } + this.audioPlayerCallback.seeking(); + audioPlayer.seek(position * 1000); + this.audioPlayerCallback.seeked(); + } + destroy() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + audioPlayer.release(); + AUDIO_PLAYERS[this.audioId] = undefined; + AUDIOS[this.audioId] = undefined; + } + onCanplay(callback: (result: Object) => void): void { + this.audioPlayerCallback.onCanplay(callback); + } + onPlay(callback: (result: Object) => void): void { + this.audioPlayerCallback.onPlay(callback); + } + onPause(callback: (result: Object) => void): void { + this.audioPlayerCallback.onPause(callback); + } + onStop(callback: (result: Object) => void): void { + this.audioPlayerCallback.onStop(callback); + } + onEnded(callback: (result: Object) => void): void { + this.audioPlayerCallback.onEnded(callback); + } + onTimeUpdate(callback: (result: Object) => void): void { + this.audioPlayerCallback.onTimeUpdate(callback); + } + onError(callback: (result: ICreateInnerAudioContextFail) => void): void { + this.audioPlayerCallback.onError(callback); + } + onWaiting(callback: (result: Object) => void): void { + this.audioPlayerCallback.onWaiting(callback); + } + onSeeking(callback: (result: Object) => void): void { + this.audioPlayerCallback.onSeeking(callback); + } + onSeeked(callback: (result: Object) => void): void { + this.audioPlayerCallback.onSeeked(callback); + } + offCanplay(callback: (result: Object) => void): void { + this.audioPlayerCallback.offCanplay(callback); + } + offPlay(callback: (result: Object) => void): void { + this.audioPlayerCallback.offPlay(callback); + } + offPause(callback: (result: Object) => void): void { + this.audioPlayerCallback.offPause(callback); + } + offStop(callback: (result: Object) => void): void { + this.audioPlayerCallback.offStop(callback); + } + offEnded(callback: (result: Object) => void): void { + this.audioPlayerCallback.offEnded(callback); + } + offTimeUpdate(callback: (result: Object) => void): void { + this.audioPlayerCallback.offTimeUpdate(callback); + } + offError(callback: (result: ICreateInnerAudioContextFail) => void): void { + this.audioPlayerCallback.offError(callback); + } + offWaiting(callback: (result: Object) => void): void { + this.audioPlayerCallback.offWaiting(callback); + } + offSeeking(callback: (result: Object) => void): void { + this.audioPlayerCallback.offSeeking(callback); + } + offSeeked(callback: (result: Object) => void): void { + this.audioPlayerCallback.offSeeked(callback); + } + } + const createAudioInstance = ()=>{ + const audioId = `${Date.now()}${Math.random()}`; + AUDIO_PLAYERS[audioId] = media1.createAudioPlayer(); + AUDIOS[audioId] = new AudioPlayer(audioId); + return audioId; + }; + const createInnerAudioContext: CreateInnerAudioContext = defineSyncApi<InnerAudioContext>(API_CREATE_INNER_AUDIO_CONTEXT, ()=>{ + const audioId = createAudioInstance(); + return AUDIOS[audioId]; + }) as CreateInnerAudioContext; + const API_CREATE_ELEMENT = 'createElement'; + const createElement: CreateElement = defineSyncApi<UniElement>(API_CREATE_ELEMENT, (tagName: string): UniElement =>{ + return uniDocument.createElement(tagName) as UniElement; + }) as CreateElement; + const API_$_ON = '$on'; + const API_$_ONCE = '$once'; + const API_$_OFF = '$off'; + const API_$_EMIT = '$emit'; + const emitterStore = new Map<string, IUniEventEmitter>(); + const getEmitter = (): IUniEventEmitter =>{ + const mp = getCurrentMP(); + const id = mp.id as string; + if (emitterStore.has(id)) { + return emitterStore.get(id) as IUniEventEmitter; + } + const emitter = new Emitter() as IUniEventEmitter; + emitterStore.set(id, emitter); + mp.on('beforeClose', ()=>{ + emitterStore.delete(id); + }); + return emitter; + }; + const $on: $On = defineSyncApi<number>(API_$_ON, (eventName: string, callback: Function)=>{ + return getEmitter().on(eventName, callback); + }) as $On; + const $once: $Once = defineSyncApi<number>(API_$_ONCE, (eventName: string, callback: Function)=>{ + return getEmitter().once(eventName, callback); + }) as $Once; + const $off: $Off = defineSyncApi<void>(API_$_OFF, (eventName: string, callback: Function)=>{ + getEmitter().off(eventName, callback); + }) as $Off; + const $emit: $Emit = defineSyncApi<void>(API_$_EMIT, (eventName: string, ...args: (Object | undefined | null)[])=>{ + getEmitter().emit(eventName, ...args); + }) as $Emit; + const API_EXIT = 'exit'; + const exit: Exit = defineSyncApi<void>(API_EXIT, ()=>{ + UTSHarmony.exit(); + }) as Exit; + const API_SAVE_FILE = 'saveFile'; + const API_GET_FILE_INFO = 'getFileInfo'; + const API_GET_SAVED_FILE_INFO = 'getSavedFileInfo'; + const API_GET_SAVED_FILE_LIST = 'getSavedFileList'; + const API_REMOVE_SAVED_FILE = 'removeSavedFile'; + const getSavedDir = ()=>{ + return getEnv().USER_DATA_PATH + '/saved'; + }; + let savedIndex: [string, number] = [ + '0', + 0 + ]; + const getSavedFileName = (filePath: string)=>{ + const ext = filePath.split('/').pop()?.split('.').slice(1).join('.'); + let fileName = Date.now() + ''; + if (savedIndex[0] === fileName) { + savedIndex[1]++; + if (savedIndex[1] > 0) { + fileName += '-' + savedIndex[1]; + } + } else { + savedIndex[0] = fileName; + savedIndex[1] = 0; + } + if (ext) { + fileName += '.' + ext; + } + return fileName; + }; + const getFsPath = (filePath: string)=>{ + filePath = getRealPath(filePath) as string; + if (!/^file:/.test(filePath)) { + return filePath; + } + const rawPath = filePath.replace(/^file:\/\//, ''); + if (rawPath[0] === '/') { + return rawPath; + } + return filePath; + }; + const saveFile: SaveFile = defineAsyncApi<LegacySaveFileOptions, LegacySaveFileSuccess>(API_SAVE_FILE, (options: LegacySaveFileOptions, exec: ApiExecutor<LegacySaveFileSuccess>)=>{ + const tempFilePath = getRealPath(options.tempFilePath) as string; + const savedPath = getSavedDir(); + if (!fs1.accessSync(savedPath)) { + fs1.mkdirSync(savedPath, true); + } + let srcFile: fs1.File; + try { + srcFile = fs1.openSync(tempFilePath, fs1.OpenMode.READ_ONLY); + } catch (error) { + exec.reject((error as Error).message); + return; + } + const savedFilePath = savedPath + '/' + getSavedFileName(tempFilePath); + fs1.copyFile(srcFile.fd, savedFilePath, (err)=>{ + fs1.closeSync(srcFile); + if (err) { + exec.reject(err.message); + } else { + exec.resolve({ + savedFilePath + } as LegacySaveFileSuccess); + } + }); + }) as SaveFile; + const getSavedFileList: GetSavedFileList = defineAsyncApi<LegacyGetSavedFileListOptions, LegacyGetSavedFileListSuccess>(API_GET_SAVED_FILE_LIST, (options: LegacyGetSavedFileListOptions, exec: ApiExecutor<LegacyGetSavedFileListSuccess>)=>{ + const savedPath = getSavedDir(); + if (!fs1.accessSync(savedPath)) { + exec.resolve({ + fileList: [] + } as LegacyGetSavedFileListSuccess); + } + fs1.listFile(savedPath, {} as ListFileOptions, (err, fileList)=>{ + if (err) { + exec.reject(err.message); + } else { + exec.resolve({ + fileList: fileList.map((filePath: string)=>{ + const fullPath = savedPath + '/' + filePath; + const stat = fs1.statSync(fullPath); + if (!stat.isFile()) { + return null; + } + return { + filePath: fullPath, + size: stat.size, + createTime: stat.ctime + } as LegacySavedFileListItem; + }).filter((item)=>!!item) + } as LegacyGetSavedFileListSuccess); + } + }); + }) as GetSavedFileList; + const getSavedFileInfo: GetSavedFileInfo = defineAsyncApi<LegacyGetSavedFileInfoOptions, LegacyGetSavedFileInfoSuccess>(API_GET_SAVED_FILE_INFO, (options: LegacyGetSavedFileInfoOptions, exec: ApiExecutor<LegacyGetSavedFileInfoSuccess>)=>{ + const savedFilePath = getFsPath(options.filePath); + if (!fs1.accessSync(savedFilePath)) { + exec.reject('file not exist'); + return; + } + const stat = fs1.statSync(savedFilePath); + if (!stat.isFile()) { + exec.reject('file not exist'); + } + exec.resolve({ + size: stat.size, + createTime: stat.ctime + } as LegacyGetSavedFileInfoSuccess); + }) as GetSavedFileInfo; + const removeSavedFile: RemoveSavedFile = defineAsyncApi<LegacyRemoveSavedFileOptions, LegacyRemoveSavedFileSuccess>(API_REMOVE_SAVED_FILE, (options: LegacyRemoveSavedFileOptions, exec: ApiExecutor<LegacyRemoveSavedFileSuccess>)=>{ + const savedFilePath = getFsPath(options.filePath); + if (!fs1.accessSync(savedFilePath)) { + exec.reject('file not exist'); + return; + } + fs1.unlink(savedFilePath, (err)=>{ + if (err) { + exec.reject(err.message); + } else { + exec.resolve(); + } + }); + }) as RemoveSavedFile; + const SupportedHashAlgorithm = [ + 'md5', + 'sha1' + ]; + const getFileInfo: GetFileInfo = defineAsyncApi<LegacyGetFileInfoOptions, LegacyGetFileInfoSuccess>(API_GET_FILE_INFO, (options: LegacyGetFileInfoOptions, exec: ApiExecutor<LegacyGetFileInfoSuccess>)=>{ + const filePath = getFsPath(options.filePath); + const digestAlgorithm = options.digestAlgorithm && SupportedHashAlgorithm.includes(options.digestAlgorithm) ? options.digestAlgorithm : 'md5'; + if (!fs1.accessSync(filePath)) { + exec.reject('file not exist'); + return; + } + const stat = fs1.statSync(filePath); + if (!stat.isFile()) { + exec.reject('file not exist'); + } + Hash.hash(filePath, digestAlgorithm, (err, hash)=>{ + if (err) { + exec.reject(err.message); + } else { + exec.resolve({ + size: stat.size, + digest: hash + } as LegacyGetFileInfoSuccess); + } + }); + }) as GetFileInfo; + const GET_FILE_SYSTEM_MANAGER = 'getFileSystemManager'; + class FileCallback { + successFn?: Function; + failFn?: Function; + completeFn?: Function; + constructor(callback: CallBack = {}){ + if (typeof callback.success === 'function') this.successFn = callback.success; + if (typeof callback.fail === 'function') this.failFn = callback.fail; + if (typeof callback.complete === 'function') this.completeFn = callback.complete; + } + success(...args: Object[]) { + if (this.successFn) { + try { + this.successFn(...args); + } catch (err) { + console.error(err); + } + } + if (this.completeFn) { + try { + this.completeFn(...args); + } catch (err) { + console.error(err); + } + } + } + fail(...args: Object[]) { + if (this.failFn) { + try { + this.failFn(...args); + } catch (err) { + console.error(err); + } + } + if (this.completeFn) { + try { + this.completeFn(...args); + } catch (err) { + console.error(err); + } + } + } + } + const FileSystemManagerUniErrorSubject = 'uni-fileSystemManager'; + const FileSystemManagerUniErrors: Map<FileSystemManagerErrorCode, string> = new Map([ + [ + 1200002, + 'Type error. only support base64 / utf-8' + ], + [ + 1300002, + 'No such file or directory' + ], + [ + 1300013, + 'Permission denied' + ], + [ + 1300021, + 'Is a directory' + ], + [ + 1300022, + 'Invalid argument' + ], + [ + 1300066, + 'Directory not empty' + ], + [ + 1301003, + 'Illegal operation on a directory' + ], + [ + 1301005, + 'File already exists' + ], + [ + 1300201, + 'System error' + ], + [ + 1300202, + 'The maximum size of the file storage limit is exceeded' + ], + [ + 1301111, + 'Brotli decompress fail' + ], + [ + 1302003, + 'Invalid flag' + ], + [ + 1300009, + 'Bad file descriptor' + ], + [ + 1300010, + 'Try again' + ], + [ + 1300011, + 'Bad address' + ], + [ + 1300012, + 'Operation would block' + ], + [ + 1300014, + 'Network is unreachable' + ], + [ + 1300015, + 'Unknown error' + ], + [ + 1300016, + 'Not a directory' + ], + [ + 1300017, + 'Text file busy' + ], + [ + 1300018, + 'File too large' + ], + [ + 1300019, + 'Read-only file system' + ], + [ + 1300020, + 'File name too long' + ] + ]); + class FileSystemManagerFailImpl extends UniError implements IFileSystemManagerFail { + errCode: FileSystemManagerErrorCode; + constructor(errCode: FileSystemManagerErrorCode){ + super(); + this.errSubject = FileSystemManagerUniErrorSubject; + this.errCode = errCode; + this.errMsg = FileSystemManagerUniErrors.get(errCode) ?? ""; + } + } + let type = new util.types(); + const modeReflect: ModeReflect = { + 'ax': 'a', + 'ax+': 'a+', + 'wx': 'w', + 'wx+': 'w+' + }; + const ENCODING = [ + 'utf8', + 'utf-8', + 'ascii', + 'base64', + 'binary', + 'hex', + 'ucs2', + 'ucs-2', + 'utf16le', + 'utf-16le', + 'latin1' + ]; + const getFileTypeMode = (stat: fs2.Stat): number =>{ + if (stat.isBlockDevice()) { + return 0o060000; + } + if (stat.isCharacterDevice()) { + return 0o020000; + } + if (stat.isDirectory()) { + return 0o040000; + } + if (stat.isFIFO()) { + return 0o010000; + } + if (stat.isFile()) { + return 0o100000; + } + if (stat.isSocket()) { + return 0o140000; + } + if (stat.isSymbolicLink()) { + return 0o120000; + } + return 0; + }; + const getOpenMode = (flag: string): number | null =>{ + switch(flag){ + case 'a': + return fs2.OpenMode.CREATE | fs2.OpenMode.APPEND; + case 'a+': + return fs2.OpenMode.CREATE | fs2.OpenMode.READ_WRITE | fs2.OpenMode.APPEND; + case 'as': + return fs2.OpenMode.SYNC | fs2.OpenMode.CREATE | fs2.OpenMode.APPEND; + case 'as+': + return fs2.OpenMode.SYNC | fs2.OpenMode.CREATE | fs2.OpenMode.READ_WRITE | fs2.OpenMode.APPEND; + case 'r': + return fs2.OpenMode.READ_ONLY; + case 'r+': + return fs2.OpenMode.READ_WRITE; + case 'w': + return fs2.OpenMode.CREATE | fs2.OpenMode.WRITE_ONLY | fs2.OpenMode.TRUNC; + case 'w+': + return fs2.OpenMode.CREATE | fs2.OpenMode.READ_WRITE | fs2.OpenMode.TRUNC; + } + return null; + }; + const transformErrorCode = (errCode: number): FileSystemManagerErrorCode =>{ + switch(errCode){ + case 13900012: + case 13900001: + return 1300013; + case 13900002: + return 1300002; + case 13900004: + return 1300201; + case 13900005: + return 1301003; + case 13900008: + return 1300009; + case 13900010: + return 1300010; + case 13900013: + return 1300011; + case 13900018: + return 1300016; + case 13900019: + return 1300021; + case 13900020: + return 1300022; + case 13900023: + return 1300017; + case 13900024: + return 1300018; + case 13900027: + return 1300019; + case 13900030: + return 1300020; + case 13900033: + return 1300021; + case 13900034: + return 1300012; + case 13900042: + return 1300013; + case 13900044: + return 1300014; + } + return 1300201; + }; + const isString = (data: DataType | null = null): boolean =>{ + return typeof data === 'string'; + }; + const isFunction = (data: DataType | null = null): boolean =>{ + return typeof data === 'function'; + }; + const isNull = (data: DataType | null = null): boolean =>{ + return data === null; + }; + const isUndefined = (data: DataType | null = null): boolean =>{ + return typeof data === 'undefined'; + }; + const isArray = (data: DataType | null = null): boolean =>{ + return Array.isArray(data); + }; + const isNumber = (data: DataType | null = null): boolean =>{ + return typeof data === 'number' && !Number.isNaN(data) && Number.isFinite(data); + }; + const isBoolean = (data: DataType | null = null): boolean =>{ + return typeof data === 'boolean'; + }; + const isArrayBuffer = (data: DataType | null = null): boolean =>{ + return type.isAnyArrayBuffer(data as object); + }; + const checkSingleDataType = (data: DataType, dataType: string)=>{ + let result = false; + switch(dataType){ + case 'string': + result = isString(data); + break; + case 'number': + result = isNumber(data); + break; + case 'boolean': + result = isBoolean(data); + break; + case 'function': + result = isFunction(data); + break; + case 'arraybuffer': + result = isArrayBuffer(data); + break; + case 'array': + result = isArray(data); + break; + case 'null': + result = isNull(data); + break; + case 'undefined': + result = isUndefined(data); + break; + } + return result; + }; + const checkDataType = (data: DataType, isRequired: boolean, dataType: string, customCheck: ((data: DataType) => boolean) | null = null): boolean =>{ + let result = false; + try { + if (isRequired && (isNull(data) || isUndefined(data))) { + throw new Error('The param data is required'); + } + if (!isString(dataType) && !isArray(dataType)) { + throw new Error('The param dataType should be a String or an Array'); + } + if (customCheck != null && typeof customCheck !== 'function') { + throw new Error('If customCheck exist,it should be a Function'); + } + if (!isRequired && (isNull(data) || isUndefined(data))) { + return true; + } + result = checkSingleDataType(data as DataType, dataType); + if (result && typeof customCheck === 'function') { + result = customCheck!(data); + } + } catch (error) { + console.log(error); + return false; + } + return result; + }; + const checkPathExistence = (methodName: string, pathName: string, path: string): CustomValidReturn | CustomValidReturnValid =>{ + const errMsg = `${methodName}: fail ${pathName}`; + let isValid = false; + if (!checkDataType(path, true, 'string')) { + return { + isValid, + err: getParameterError(errMsg) + } as CustomValidReturn; + } + if (path === '') { + return { + isValid, + err: getPermissionError(errMsg) as IFileSystemManagerFail + } as CustomValidReturn; + } + if (!fs2.accessSync(path)) { + return { + isValid, + err: getNoSuchFileOrDirectoryError(errMsg) as IFileSystemManagerFail + } as CustomValidReturn; + } + return { + isValid: true + } as CustomValidReturnValid; + }; + const ohosRead = (filePath: string, sizeOfNewArrayBuffer: number, cb: FileCallback)=>{ + const file = fs2.openSync(filePath, fs2.OpenMode.READ_ONLY); + const buf = new ArrayBuffer(sizeOfNewArrayBuffer); + fs2.read(file.fd, buf).then((readLen)=>{ + cb.success({ + data: buf + } as ReadFileSuccessResult); + }).catch((err: BusinessError4)=>{ + cb.fail(new FileSystemManagerFailImpl(transformErrorCode(err.code)) as ApiError); + }).finally(()=>{ + fs2.closeSync(file); + }); + }; + const ohosReadText = (filePath: string, option: ReadTextOptions, cb: FileCallback)=>{ + fs2.readText(filePath, option).then((str)=>{ + cb.success({ + data: str + } as ReadFileSuccessResult); + }).catch((err: BusinessError4)=>{ + cb.fail(new FileSystemManagerFailImpl(transformErrorCode(err.code)) as ApiError); + }); + }; + const obtainUpperPath = (inputPath: string): ObtainUpperPathReturn =>{ + let index = inputPath.lastIndexOf('/'); + let upperPath = inputPath.substring(0, index); + return { + index, + upperPath + } as ObtainUpperPathReturn; + }; + const obtainFileName = (inputPath: string): ObtainFileNameReturn =>{ + let index = inputPath.lastIndexOf('/'); + let fileName = inputPath.substring(index); + if (inputPath.endsWith('/')) { + fileName = inputPath.substring(inputPath.lastIndexOf("/", inputPath.length - 2) + 1, inputPath.length - 1); + } + return { + index, + fileName + } as ObtainFileNameReturn; + }; + const checkFd = (methodName: string, fd: string): CheckFd | CheckFdErr =>{ + const errMsg = `${methodName}: fail`; + if (!checkDataType(fd, true, 'string')) { + return { + isValid: false, + fd: 0, + err: getParameterError(errMsg) + }; + } + const transFdToNum = Number(fd); + if (isNaN(transFdToNum)) { + return { + isValid: false, + fd: 0, + err: getParameterError(errMsg) + }; + } + return { + isValid: true, + fd: transFdToNum + }; + }; + const checkPath = (methodName: string, pathName: string, path: string): CustomValidReturn | CustomValidReturnValid =>{ + const errMsg = `${methodName}: fail ${pathName}`; + let isValid = false; + if (!checkDataType(path, true, 'string')) { + return { + isValid, + err: getParameterError(errMsg) + }; + } + if (path === '') { + return { + isValid, + err: getPermissionError(errMsg) + }; + } + return { + isValid: true + }; + }; + const checkPathSync = (methodName: string, pathName: string, path: string): CustomValidReturn | CustomValidReturnValid =>{ + const errMsg = `${methodName}: fail ${pathName}`; + let isValid = false; + if (path === '' || !checkDataType(path, true, 'string')) { + return { + isValid, + err: getParameterError(errMsg) + }; + } + return { + isValid: true + }; + }; + const checkPathExistenceSync = (methodName: string, pathName: string, path: string): CustomValidReturn | CustomValidReturnValid =>{ + const errMsg = `${methodName}: fail ${pathName}`; + let isValid = false; + if (path === '' || !checkDataType(path, true, 'string')) { + return { + isValid, + err: getParameterError(errMsg) + }; + } + if (!fs2.accessSync(path)) { + return { + isValid, + err: getNoSuchFileOrDirectoryError(errMsg) + }; + } + return { + isValid: true + }; + }; + const checkEncoding = (methodName: string, encoding: string | null = null): CheckEncodingReturn =>{ + let isValid = false; + if (encoding === null || !checkDataType(encoding, false, 'string')) { + return { + errMsg: `${methodName}: fail invalid encoding: ${encoding}`, + isValid + } as CheckEncodingReturn; + } + if (encoding !== '' && encoding !== undefined) { + if (!ENCODING.includes(encoding)) { + return { + errMsg: `${methodName}: fail Unknown encoding: ${encoding}`, + isValid + } as CheckEncodingReturn; + } + if (encoding !== 'utf-8' && encoding !== 'utf8') { + return { + errMsg: `${methodName}: fail, The encoding is valid, but is not supported currently: ${encoding}`, + isValid + } as CheckEncodingReturn; + } + } + return { + isValid: true, + errMsg: '' + }; + }; + const isFileUri1 = (path: string)=>{ + return path && typeof path === 'string' && (path.startsWith('file://') || path.startsWith('datashare://')); + }; + class SecurityBase { + static rsa(algName: string, blob: cryptoFramework.DataBlob): Promise<Uint8Array> { + return new Promise<Uint8Array>(async (resolve, reject)=>{ + let md: cryptoFramework.Md; + try { + md = cryptoFramework.createMd(algName); + await md.update(blob); + const mdOutput = await md.digest(); + resolve(mdOutput.data); + } catch (error) { + console.error(`rsa fail error code: ${(error as BusinessError4).code}, message is: ${(error as BusinessError4).message}`); + reject(error); + } + }); + } + } + const getApiError = (errCode: number, errMsg: string | null = null): FileSystemManagerApiError =>{ + return wrapErrMsg(new FileSystemManagerFailImpl(transformErrorCode(errCode)), errMsg) as FileSystemManagerApiError; + }; + const wrapErrMsg = (err: IFileSystemManagerFail, errMsg: string | null = null): IFileSystemManagerFail =>{ + if (errMsg) { + err.errMsg = `${errMsg} ${err.errMsg}`; + } + return err; + }; + const getParameterError = (errMsg: string | null = null): IFileSystemManagerFail =>{ + return getApiError(1300022, errMsg) as IFileSystemManagerFail; + }; + const getPermissionError = (errMsg: string | null = null): IFileSystemManagerFail =>{ + return getApiError(1300013, errMsg) as IFileSystemManagerFail; + }; + const getNoSuchFileOrDirectoryError = (errMsg: string | null = null): IFileSystemManagerFail =>{ + return getApiError(1300002, errMsg) as IFileSystemManagerFail; + }; + const getSavedDir1 = ()=>{ + return getEnv1().USER_DATA_PATH + '/saved'; + }; + let savedIndex1: [string, number] = [ + '0', + 0 + ]; + const getSavedFileName1 = (filePath: string)=>{ + const uriInstance = new uri.URI(filePath); + const ext = uriInstance.clearQuery().getLastSegment().split('.')[1]; + let fileName = Date.now() + ''; + if (savedIndex1[0] === fileName) { + savedIndex1[1]++; + if (savedIndex1[1] > 0) { + fileName += '-' + savedIndex1[1]; + } + } else { + savedIndex1[0] = fileName; + savedIndex1[1] = 0; + } + if (ext) { + fileName += '.' + ext; + } + return fileName; + }; + const getFsPath1 = (filePath: string)=>{ + filePath = getRealPath1(filePath) as string; + if (!/^file:/.test(filePath)) { + return filePath; + } + const rawPath = filePath.replace(/^file:\/\//, ''); + if (rawPath[0] === '/') { + return rawPath; + } + return filePath; + }; + const DEFAULT_ENCODING = 'utf-8'; + const ENCODING_SUPPORT = [ + "ascii", + "base64", + "utf-8" + ]; + const DIGEST_ALGORITHM_VALUES = [ + "md5", + "sha1" + ]; + const DEFAULT_POSITION = 0; + const DEFAULT_LENGTH = 0; + const DEFAULT_FLAG = 'r'; + const DEFAULT_OFFSET = 0; + const FLAG = [ + 'a', + 'ax', + 'a+', + 'ax+', + 'as', + 'as+', + 'r', + 'r+', + 'w', + 'wx', + 'w+', + 'wx+' + ]; + const useGetRealPath = (filepath: string): string =>{ + return (runtimeGetRealPath(filepath) as string).replace(/^file:\/\//, ''); + }; + class StatsImpl implements Stats { + stat: fs3.Stat | null = null; + mode: number = -1; + size: number = -1; + lastAccessedTime: number = -1; + lastModifiedTime: number = -1; + mIsFile: boolean = false; + constructor(stat: fs3.Stat, mode: number){ + this.stat = stat; + this.mode = mode; + this.size = stat.size; + this.lastAccessedTime = stat.atime; + this.lastModifiedTime = stat.mtime; + this.mIsFile = stat.isFile(); + } + isDirectory(): boolean { + if (this.stat == null) { + return false; + } + return this.stat.isDirectory(); + } + isFile(): boolean { + if (this.stat == null) { + return false; + } + return this.stat.isFile(); + } + } + class FileSystemManagerImpl implements FileSystemManager { + readFile(options: ReadFileOptions): void { + const errMsg = `readFile: fail`; + const filePath = options.filePath, encoding = options.encoding, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkRes = checkPathExistence('readFile', 'filePath', filePath); + if (!checkRes.isValid) { + cb.fail({ + errMsg: (checkRes as CustomValidReturn).err.errMsg + } as ApiError); + return; + } + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + cb.fail(getApiError(1300021, errMsg)); + return; + } + const lengthOfFile = stat.size; + if (encoding == undefined) { + let sizeOfNewArrayBuffer = lengthOfFile; + ohosRead(filePath, sizeOfNewArrayBuffer, cb); + } else { + const res = checkEncoding('readFile', encoding); + if (!res.isValid) { + cb.fail({ + errMsg: res.errMsg + } as ApiError); + return; + } + ohosReadText(filePath, { + encoding + } as ReadTextOptions1, cb); + } + } + readFileSync(filePath: string, encoding: string | null = null): ReadFileSuccessResult { + const errMsg = `readFileSync: fail`; + const res1 = checkPathExistenceSync('readFileSync', 'filePath', filePath); + if (!res1.isValid) { + throw new Error((res1 as CustomValidReturn).err?.errMsg); + } + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + throw new Error(getApiError(1300021, errMsg).errMsg); + } + const lengthOfFile = stat.size; + if (encoding == undefined) { + let sizeOfNewArrayBuffer = lengthOfFile; + const file = fs3.openSync(filePath, fs3.OpenMode.READ_ONLY); + const buf = new ArrayBuffer(sizeOfNewArrayBuffer); + try { + fs3.readSync(file.fd, buf); + } catch (err) { + console.error(err); + } + fs3.closeSync(file); + return { + data: buf + } as ReadFileSuccessResult; + } else { + const res2 = checkEncoding('readFileSync', encoding); + if (!res2.isValid) { + throw new Error(res2.errMsg); + } + if ((encoding as string) === 'utf8') { + encoding = 'utf-8'; + } + try { + const str = fs3.readTextSync(filePath, { + encoding + } as ReadTextOptions1); + return { + data: str + } as ReadFileSuccessResult; + } catch (err) { + throw new Error(`readFileSync: ${(err as BusinessError5).message}`); + } + } + } + writeFile(options: WriteFileOptions): void { + const errMsg = `writeFile: fail`; + const filePath = options.filePath, data = options.data, _options_encoding = options.encoding, encoding = _options_encoding == null ? DEFAULT_ENCODING : _options_encoding, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(filePath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} filePath`) as ApiError); + return; + } + if (!ENCODING_SUPPORT.includes(encoding)) { + cb.fail(getParameterError(`${errMsg} encoding`)); + return; + } + let file: fs3.File | null = null; + try { + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + cb.fail({ + errMsg: `${errMsg} illegal operation on a directory, open: ${filePath}` + } as ApiError); + return; + } + } catch (error) { + try { + file = fs3.openSync(filePath, fs3.OpenMode.CREATE | fs3.OpenMode.WRITE_ONLY | fs3.OpenMode.TRUNC); + } catch (error) { + cb.fail(getApiError((error as BusinessError5).code, errMsg)); + return; + } + } + const writeOptions: OHWriteOptions = {}; + if (checkDataType((data as (string | ArrayBuffer)), true, 'string')) writeOptions.encoding = encoding as string; + if (file == null) { + file = fs3.openSync(filePath, fs3.OpenMode.WRITE_ONLY | fs3.OpenMode.TRUNC); + } + fs3.write(file.fd, data as (string | ArrayBuffer), writeOptions).then((writeLen)=>{ + cb.success({ + errMsg: 'writeFile: ok' + } as FileManagerSuccessResult); + }).finally(()=>{ + fs3.closeSync(file); + }); + } + writeFileSync(filePath: string, data: Object, encoding: string = DEFAULT_ENCODING): void { + const errMsg = `writeFileSync: fail`; + if (!checkDataType(filePath, true, 'string')) { + throw new Error(getParameterError(`${errMsg} filePath`).errMsg); + } + if (!ENCODING_SUPPORT.includes(encoding)) { + throw new Error(getParameterError(`${errMsg} encoding`).errMsg); + } + let file: fs3.File | null = null; + try { + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + throw new Error(`${errMsg} illegal operation on a directory, open: ${filePath}`); + } + } catch (error) { + try { + file = fs3.openSync(filePath, fs3.OpenMode.CREATE | fs3.OpenMode.WRITE_ONLY | fs3.OpenMode.TRUNC); + } catch (error) { + throw new Error(getApiError((error as BusinessError5).code, errMsg).errMsg); + } + } + const writeOptions: OHWriteOptions = {}; + if (checkDataType((data as (string | ArrayBuffer)), true, 'string')) writeOptions.encoding = encoding; + if (file == null) { + file = fs3.openSync(filePath, fs3.OpenMode.WRITE_ONLY | fs3.OpenMode.TRUNC); + } + try { + fs3.writeSync(file.fd, data as (string | ArrayBuffer), writeOptions); + fs3.closeSync(file); + } catch (err) { + fs3.closeSync(file); + throw new Error(`writeFileSync: ${(err as BusinessError5).message}`); + } + } + read(option: ReadOption): void { + const errMsg = 'read: fail'; + let inFd = option.fd, arrayBuffer = option.arrayBuffer, offset = option.offset, length = option.length, position = option.position, success = option.success, fail = option.fail, complete = option.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + let fd: number = -1; + if (!checkDataType(inFd, true, 'string') || inFd === '' || isNaN(Number(inFd))) { + cb.fail({ + errMsg: `${errMsg} invalid fd` + } as ApiError); + return; + } else { + fd = Number(inFd); + } + if (!checkDataType(arrayBuffer, true, 'arraybuffer')) { + cb.fail({ + errMsg: `${errMsg} invalid arrayBuffer: ${arrayBuffer}` + } as ApiError); + return; + } + if (!checkDataType(offset, false, 'number') || offset! < 0) { + offset = Number(offset); + if (isNaN(offset) || offset < 0) { + offset = DEFAULT_OFFSET; + } + } + if (!checkDataType(length, false, 'number') || length! < 0) { + length = Number(length); + if (isNaN(length) || length < 0) { + length = DEFAULT_LENGTH; + } + } + const allowedSize = arrayBuffer.byteLength - offset!; + if (allowedSize < length!) { + cb.fail({ + errMsg: `${errMsg} RangeError [ERR_OUT_OF_RANGE]: The value length is out of range. It must be <= ${allowedSize}. Received ${length}` + } as ApiError); + return; + } + if (!checkDataType(position, false, 'number') || position! < 0) { + position = DEFAULT_POSITION; + } + const offsetArrayBuffer = offset!; + const newBuffer = arrayBuffer.slice(offsetArrayBuffer); + fs3.read(fd, newBuffer, { + offset: position, + length + } as ReadOptions1).then((readLen)=>{ + const viewNewBuffer = new Uint8Array(newBuffer); + const viewArrayBuffer = new Uint8Array(arrayBuffer); + viewArrayBuffer.set(viewNewBuffer, offsetArrayBuffer); + cb.success({ + bytesRead: readLen, + arrayBuffer: arrayBuffer, + errMsg: 'read: ok' + } as ReadSuccessCallbackResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: `${errMsg} with error message: ${err.message},error code: ${err.code}` + } as ApiError); + }); + } + readSync(option: ReadSyncOption): ReadResult { + const errMsg = 'readSync: fail'; + let inFd = option.fd, arrayBuffer = option.arrayBuffer, offset = option.offset, length = option.length, position = option.position; + let fd: number = -1; + if (!checkDataType(inFd, true, 'string') || inFd === '' || isNaN(Number(inFd))) { + throw new Error(`${errMsg} invalid fd`); + } else { + fd = Number(inFd); + } + if (!checkDataType(arrayBuffer, true, 'arraybuffer')) { + throw new Error(`${errMsg} invalid arrayBuffer`); + } + if (!checkDataType(offset, false, 'number') || offset! < 0) { + offset = Number(offset); + if (isNaN(offset) || offset < 0) { + offset = DEFAULT_OFFSET; + } + } + if (!checkDataType(length, false, 'number') || length! < 0) { + length = Number(length); + if (isNaN(length) || length < 0) { + length = DEFAULT_LENGTH; + } + } + const allowedSize = arrayBuffer.byteLength - offset!; + if (allowedSize < length!) { + throw new Error(`${errMsg} RangeError [ERR_OUT_OF_RANGE]: The value length is out of range. It must be <= ${allowedSize}. Received ${length}`); + } + if (!checkDataType(position, false, 'number') || position! < 0) { + position = DEFAULT_POSITION; + } + try { + const offsetArrayBuffer = offset!; + let newBuffer = arrayBuffer.slice(offsetArrayBuffer); + const len = fs3.readSync(fd, newBuffer, { + offset: position, + length + } as ReadOptions1); + const viewNewBuffer = new Uint8Array(newBuffer); + let viewArrayBuffer = new Uint8Array(arrayBuffer); + viewArrayBuffer.set(viewNewBuffer, offsetArrayBuffer); + return { + bytesRead: len, + arrayBuffer: arrayBuffer + } as ReadResult; + } catch (err) { + throw new Error(`${errMsg} ${(err as BusinessError5).message}`); + } + } + unlink(options: UnLinkOptions): void { + const errMsg = 'unlink: fail'; + const filePath = options.filePath, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const res = checkPathExistence('unlink', 'filePath', filePath); + if (!res.isValid) { + cb.fail((res as CustomValidReturn).err); + return; + } + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + cb.fail({ + errMsg: `${errMsg} illegal operation on a directory, unlink: ${filePath}` + } as ApiError); + return; + } + fs3.unlink(filePath).then(()=>{ + cb.success({ + errMsg: 'unlink: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: `${errMsg} with error message: ${err.message}, error code: ${err.code}` + } as ApiError); + }); + } + unlinkSync(filePath: string): void { + const errMsg = 'unlinkSync: fail'; + const res = checkPathExistenceSync('unlinkSync', 'filePath', filePath); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (fs3.statSync(filePath).isDirectory()) { + throw new Error(`${errMsg} illegal operation on a directory, unlink: ${filePath}`); + } + try { + fs3.unlinkSync(filePath); + } catch (err) { + throw new Error(`${errMsg} ${(err as BusinessError5).message}`); + } + } + mkdir(options: MkDirOptions): void { + const errMsg = `mkdir: fail`; + let dirPath = options.dirPath, recursive = options.recursive, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + const checkRes = checkPath('mkdir', 'dirPath', dirPath); + if (!checkRes.isValid) { + cb.fail((checkRes as CustomValidReturn).err); + return; + } + if (fs3.accessSync(dirPath)) { + cb.fail({ + errMsg: `${errMsg} dirPath already exists: ${dirPath}` + } as ApiError); + return; + } + const getSubPath = obtainUpperPath(dirPath); + if (!recursive && !fs3.accessSync(getSubPath.upperPath)) { + cb.fail({ + errMsg: `${errMsg} recursive is false and upper path does not exist` + } as ApiError); + return; + } + fs3.mkdir(dirPath, recursive).then(()=>{ + cb.success({ + errMsg: 'mkdir: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError(err.code, errMsg)); + }); + } + mkdirSync(dirPath: string, recursive: boolean): void { + const errMsg = `mkdirSync: fail`; + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + const res = checkPathSync('mkdirSync', 'dirPath', dirPath); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (fs3.accessSync(dirPath)) { + throw new Error(`${errMsg} dirPath already exists: ${dirPath}`); + } + if (!recursive && !fs3.accessSync(obtainUpperPath(dirPath).upperPath)) { + throw new Error(`${errMsg} recursive is false and upper path does not exist`); + } + try { + fs3.mkdirSync(dirPath, recursive); + } catch (error) { + throw new Error(getApiError((error as BusinessError5).code, errMsg).errMsg); + } + } + rmdir(options: RmDirOptions): void { + const errMsg = 'rmdir: fail'; + let dirPath = options.dirPath, recursive = options.recursive, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + const res = checkPathExistence('rmdir', 'dirPath', dirPath); + if (!res.isValid) { + cb.fail((res as CustomValidReturn).err); + return; + } + if (!fs3.statSync(dirPath).isDirectory()) { + cb.fail({ + errMsg: `${errMsg} no such directory, open: ${dirPath}` + } as ApiError); + return; + } + if (!recursive) { + let filenames = fs3.listFileSync(dirPath); + if (filenames.length) { + cb.fail({ + errMsg: `${errMsg} directory not empty` + } as ApiError); + return; + } + } + fs3.rmdir(dirPath).then(()=>{ + cb.success({ + errMsg: 'rmdir: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + rmdirSync(dirPath: string, recursive: boolean): void { + const errMsg = 'rmdirSync: fail'; + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + const res = checkPathExistenceSync('rmdirSync', 'dirPath', dirPath); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (!fs3.statSync(dirPath).isDirectory()) { + throw new Error(`${errMsg} no such directory, open: ${dirPath}`); + } + if (!recursive && (fs3.listFileSync(dirPath).length > 0)) { + throw new Error(`${errMsg} directory not empty`); + } + try { + fs3.rmdirSync(dirPath); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + readdir(options: ReadDirOptions): void { + const errMsg = 'readdir: fail'; + const dirPath = options.dirPath, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkRes = checkPathExistence('readdir', 'dirPath', dirPath); + if (!checkRes.isValid) { + cb.fail((checkRes as CustomValidReturn).err); + return; + } + const stat = fs3.statSync(dirPath); + if (stat.isFile()) { + cb.fail({ + errMsg: `${errMsg} dirPath not a directory: ${dirPath}` + } as ApiError); + return; + } + fs3.listFile(dirPath).then((files)=>{ + cb.success({ + files, + errMsg: 'readdir: ok' + } as ReadDirSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: `${errMsg} with error message: ${err.message}, error code: ${err.code}` + } as ApiError); + }); + } + readdirSync(dirPath: string): string[] | null { + const errMsg = 'readdirSync: fail'; + const res = checkPathExistenceSync('readdirSync', 'dirPath', dirPath); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (fs3.statSync(dirPath).isFile()) { + throw new Error(`${errMsg} not a directory: ${dirPath}`); + } + try { + return fs3.listFileSync(dirPath); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + access(options: AccessOptions): void { + const errMsg = 'access: fail'; + const path = options.path, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(path, true, 'string')) { + cb.fail(getParameterError(`${errMsg} path`)); + return; + } + fs3.access(path).then((res)=>{ + if (res) { + cb.success({ + errMsg: 'access: ok' + } as FileManagerSuccessResult); + } else { + cb.fail(getNoSuchFileOrDirectoryError(errMsg)); + } + }, (err: BusinessError5)=>{ + cb.fail({ + errCode: err.code, + errMsg: getApiError(err.code, errMsg).errMsg + } as ApiError); + }); + } + accessSync(path: string): void { + const errMsg = 'accessSync: fail'; + if (!checkDataType(path, true, 'string')) { + throw new Error(`${errMsg} path must be a string`); + } + const res = fs3.accessSync(path); + if (!res) { + throw new Error(`${errMsg} no such file or directory`); + } + } + rename(options: RenameOptions): void { + const errMsg = 'rename: fail'; + const oldPath = options.oldPath, newPath = options.newPath, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkRes1 = checkPathExistence('rename', 'oldPath', oldPath); + if (!checkRes1.isValid) { + cb.fail((checkRes1 as CustomValidReturn).err); + return; + } + const checkRes2 = checkPath('rename', 'newPath', newPath); + if (!checkRes2.isValid) { + cb.fail((checkRes2 as CustomValidReturn).err); + return; + } + const ifAccessNewPath = fs3.accessSync(newPath); + if (!ifAccessNewPath) { + const getUpperPath = obtainUpperPath(newPath); + if (!fs3.accessSync(getUpperPath.upperPath)) { + cb.fail({ + errMsg: `${errMsg} no such file or directory: ${newPath}` + } as ApiError); + return; + } + } + if (ifAccessNewPath && (oldPath !== newPath)) { + cb.fail({ + errMsg + } as ApiError); + return; + } + fs3.rename(oldPath, newPath).then(()=>{ + cb.success({ + errMsg: 'rename: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: getApiError((err as BusinessError5).code, errMsg).errMsg + } as ApiError); + }); + } + renameSync(oldPath: string, newPath: string): void { + const errMsg = 'renameSync: fail'; + const res1 = checkPathExistenceSync('renameSync', 'oldPath', oldPath); + if (!res1.isValid) { + throw new Error((res1 as CustomValidReturn).err?.errMsg); + } + const res2 = checkPathSync('renameSync', 'newPath', newPath); + if (!res2.isValid) { + throw new Error((res2 as CustomValidReturn).err?.errMsg); + } + const ifAccessNewPath = fs3.accessSync(newPath); + if (!ifAccessNewPath && !fs3.accessSync(obtainUpperPath(newPath).upperPath)) { + throw new Error(`${errMsg} no such file or directory, open: ${newPath}`); + } + if (ifAccessNewPath && (oldPath !== newPath)) { + throw new Error(errMsg); + } + try { + fs3.renameSync(oldPath, newPath); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + copyFile(options: CopyFileOptions): void { + const errMsg = 'copyFile: fail'; + let srcPath = options.srcPath, destPath = options.destPath, success = options.success, fail = options.fail, complete = options.complete; + srcPath = useGetRealPath(srcPath); + destPath = useGetRealPath(destPath); + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkResOfSrcPath = checkPathExistence('copyFile', 'srcPath', srcPath); + if (!checkResOfSrcPath.isValid) { + cb.fail((checkResOfSrcPath as CustomValidReturn).err); + return; + } + const checkResOfDestPath = checkPath('copyFile', 'destPath', destPath); + if (!checkResOfDestPath.isValid) { + cb.fail((checkResOfDestPath as CustomValidReturn).err); + return; + } + if (fs3.statSync(srcPath).isDirectory()) { + cb.fail({ + errMsg: `${errMsg} illegal operation on a directory, open: ${srcPath}` + } as ApiError); + return; + } + if (!fs3.accessSync(destPath)) { + const getUpperPath = obtainUpperPath(destPath); + if (!fs3.accessSync(getUpperPath.upperPath)) { + cb.fail({ + errMsg: `${errMsg} no such file or directory, open: ${destPath}` + } as ApiError); + return; + } + } else { + const destPathStat = fs3.statSync(destPath); + if (destPathStat.isDirectory()) { + destPath = destPath + obtainFileName(srcPath).fileName; + } else { + if (destPathStat.isFile() && (srcPath !== destPath)) { + cb.fail({ + errMsg + } as ApiError); + return; + } + } + } + fs3.copyFile(srcPath, destPath).then(()=>{ + cb.success({ + errMsg: 'copyFile: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + copyFileSync(srcPath: string, destPath: string): void { + const errMsg = 'copyFileSync: fail'; + srcPath = useGetRealPath(srcPath); + destPath = useGetRealPath(destPath); + const checkResSrc = checkPathExistenceSync('copyFileSync', 'srcPath', srcPath); + if (!checkResSrc.isValid) { + throw new Error((checkResSrc as CustomValidReturn).err?.errMsg); + } + const checkResDest = checkPathSync('copyFileSync', 'destPath', destPath); + if (!checkResDest.isValid) { + throw new Error((checkResDest as CustomValidReturn).err?.errMsg); + } + if (fs3.statSync(srcPath).isDirectory()) { + throw new Error(`${errMsg} illegal operation on a directory: ${srcPath}`); + } + if (!fs3.accessSync(destPath)) { + const getUpperPath = obtainUpperPath(destPath); + if (!fs3.accessSync(getUpperPath.upperPath)) { + throw new Error(`${errMsg} no such file or directory: ${destPath}`); + } + } else { + const destPathStat = fs3.statSync(destPath); + if (destPathStat.isDirectory()) { + const index = destPath.lastIndexOf('/'); + let namePath = destPath.substring(index); + if (destPath.endsWith('/')) { + namePath = destPath.substring(destPath.lastIndexOf('/', destPath.length - 2) + 1, destPath.length - 1); + } + destPath = destPath + namePath; + } else { + if (destPathStat.isFile() && (srcPath !== destPath)) { + throw new Error(`${errMsg} copyFile failed`); + } + } + } + try { + fs3.copyFileSync(srcPath, destPath); + } catch (err) { + throw new Error(`copyFileSync: ${(err as BusinessError5).message}`); + } + } + getFileInfo(options: GetFileInfoOptions): void { + const errMsg = 'getFileInfo: fail'; + let filePath = options.filePath, success = options.success, fail = options.fail, complete = options.complete; + let digestAlgorithm: string = options.digestAlgorithm ?? 'md5'; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkResOfFilePath = checkPathExistence('getFileInfo', 'filePath', filePath); + if (!checkResOfFilePath.isValid) { + cb.fail((checkResOfFilePath as CustomValidReturn).err); + return; + } + if (typeof digestAlgorithm === 'string') { + digestAlgorithm = digestAlgorithm.toUpperCase(); + } + if (!DIGEST_ALGORITHM_VALUES.includes(digestAlgorithm)) { + digestAlgorithm = 'md5'; + } + try { + const fd = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE).fd; + const stat = isFileUri1(filePath) ? fs3.statSync(fd) : fs3.statSync(filePath); + const buf = new ArrayBuffer(stat.size); + fs3.readSync(fd, buf); + const algName = digestAlgorithm.toLocaleUpperCase(); + SecurityBase.rsa(algName, { + data: new Uint8Array(buf) + } as cryptoFramework1.DataBlob).then((resultBuf: Uint8Array)=>{ + const textDecoder = util1.TextDecoder.create('utf-8', { + ignoreBOM: true + } as util1.TextDecoderOptions); + cb.success({ + errMsg: 'getFileInfo ok', + size: stat.size, + digest: textDecoder.decodeToString(resultBuf, { + stream: false + } as util1.DecodeToStringOptions) + } as GetFileInfoSuccessResult); + }); + } catch (err) { + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + } + } + stat(options: StatOptions): void { + const errMsg = 'stat: fail'; + let path = options.path, recursive = options.recursive, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const res = checkPathExistence('stat', 'path', path); + if (!res.isValid) { + cb.fail((res as CustomValidReturn).err); + return; + } + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + fs3.stat(path, (err, stat)=>{ + if (err) { + cb.fail({ + errMsg: `${errMsg} with error message: ${err.message}, error code: ${err.code}` + } as ApiError); + } else { + const combinationMode = getFileTypeMode(stat) | stat.mode; + const fileStats = { + path, + stats: new StatsImpl(stat, combinationMode) + } as FileStats; + cb.success({ + stats: [ + fileStats + ] as FileStats[], + errMsg: 'stat: ok' + } as StatSuccessResult); + } + }); + } + statSync(path: string, recursive: boolean): FileStats[] { + const errMsg = 'statSync: fail'; + const res = checkPathExistenceSync('statSync', 'path', path); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + try { + const stat = fs3.statSync(path); + const combinationMode = getFileTypeMode(stat) | stat.mode; + const fileStats = { + path, + stats: new StatsImpl(stat, combinationMode) + } as FileStats; + return [ + fileStats + ] as FileStats[]; + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + appendFile(options: AppendFileOptions): void { + const errMsg = 'appendFile: fail'; + const filePath = options.filePath, data = options.data, _options_encoding = options.encoding, encoding = _options_encoding == null ? DEFAULT_ENCODING : _options_encoding, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(filePath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} filePath`)); + return; + } + if (!checkDataType(data, true, 'string') && !checkDataType(data, true, 'arraybuffer')) { + cb.fail(getParameterError(`${errMsg} data`)); + return; + } + const res = fs3.accessSync(filePath); + if (!res) { + cb.fail(getNoSuchFileOrDirectoryError(errMsg)); + return; + } + const writeOptions: OHWriteOptions = {}; + if (checkDataType(data, true, 'string')) writeOptions.encoding = encoding; + const file = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE | fs3.OpenMode.APPEND); + fs3.write(file.fd, data as (string | ArrayBuffer), writeOptions).then((_)=>{ + cb.success({ + errMsg: 'appendFile:ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError(err.code, errMsg)); + }).finally(()=>{ + fs3.closeSync(file); + }); + } + appendFileSync(filePath: string, data: Object, encoding: string = DEFAULT_ENCODING): void { + const errMsg = 'appendFileSync: fail'; + if (!checkDataType(filePath, true, 'string')) { + throw new Error(`${errMsg} parameter error: parameter.filePath should be String`); + } + if (!checkDataType(data, true, 'string') && !checkDataType(data, true, 'arraybuffer')) { + throw new Error(`${errMsg} parameter error: parameter.data should be String/ArrayBuffer`); + } + const res = fs3.accessSync(filePath); + if (!res) { + throw new Error(`${errMsg} no such file or directory, open "${filePath}"`); + } + const writeOptions: OHWriteOptions = {}; + if (checkDataType(data, true, 'string')) writeOptions.encoding = encoding; + const file = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE | fs3.OpenMode.APPEND); + fs3.writeSync(file.fd, data as (string | ArrayBuffer), writeOptions); + } + saveFile(options: SaveFileOptions): void { + const errMsg = 'saveFile: fail'; + const filePath = options.filePath, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const tempFilePath = useGetRealPath(options.tempFilePath) as string; + if (!fs3.accessSync(tempFilePath)) { + cb.fail({ + errMsg: `${errMsg} no such file or directory. tempFilePath: ${tempFilePath}` + } as ApiError); + return; + } + const savedPath = filePath || getSavedDir1(); + try { + if (!fs3.accessSync(savedPath)) { + fs3.mkdirSync(savedPath, true); + } + } catch (error) { + cb.fail({ + errMsg: (error as Error).message + } as ApiError); + return; + } + let srcFile: fs3.File; + try { + srcFile = fs3.openSync(tempFilePath, fs3.OpenMode.READ_ONLY); + } catch (error) { + cb.fail({ + errMsg: (error as Error).message + } as ApiError); + return; + } + const savedFilePath = savedPath + '/' + getSavedFileName1(tempFilePath); + fs3.copyFile(srcFile.fd, savedFilePath).then(()=>{ + cb.success({ + savedFilePath + } as SaveFileSuccessResult); + }).catch((err: Error)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + saveFileSync(inTempFilePath: string, filePath: string | null): string { + const errMsg = 'saveFileSync: fail'; + const tempFilePath = useGetRealPath(inTempFilePath) as string; + if (!fs3.accessSync(tempFilePath)) { + throw new Error(`${errMsg} no such file or directory. tempFilePath: ${tempFilePath}`); + } + const savedPath = filePath || getSavedDir1(); + try { + if (!fs3.accessSync(savedPath)) { + fs3.mkdirSync(savedPath, true); + } + } catch (error) { + throw new Error((error as Error).message); + } + let srcFile: fs3.File; + try { + srcFile = fs3.openSync(tempFilePath, fs3.OpenMode.READ_ONLY); + } catch (error) { + throw new Error((error as Error).message); + } + const savedFilePath = `${savedPath}${savedPath.endsWith('/') ? '' : '/'}${getSavedFileName1(tempFilePath)}`; + try { + fs3.copyFileSync(srcFile.fd, savedFilePath); + return savedFilePath; + } catch (error) { + throw new Error((error as Error).message); + } + } + removeSavedFile(options: RemoveSavedFileOptions): void { + const filePath = options.filePath, success = options.success, fail = options.fail, complete = options.complete; + const savedFilePath = getFsPath1(filePath); + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!fs3.accessSync(savedFilePath)) { + cb.fail({ + errMsg: 'file not exist' + } as ApiError); + return; + } + fs3.unlink(savedFilePath, (err)=>{ + if (err) { + cb.fail(getApiError(err.code, 'removeSavedFile: fail')); + } else { + cb.success({ + errMsg: 'removeSavedFile: ok' + } as FileManagerSuccessResult); + } + }); + } + getSavedFileList(options: GetSavedFileListOptions): void { + const errMsg = 'getSavedFileList: fail'; + const success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const savedPath = getSavedDir1(); + if (!fs3.accessSync(savedPath)) { + cb.fail(getApiError(1300002, errMsg)); + return; + } + fs3.listFile(savedPath, {} as ListFileOptions1, (err, fileList)=>{ + if (err) { + cb.fail(getApiError(err.code, errMsg)); + } else { + cb.success({ + fileList: fileList.map((filePath: string)=>{ + const fullPath = savedPath + '/' + filePath; + const stat = fs3.statSync(fullPath); + if (!stat.isFile()) { + return null; + } + return fullPath; + }).filter((item)=>!!item) + } as GetSavedFileListResult); + } + }); + } + truncate(options: TruncateFileOptions): void { + const errMsg = 'truncate: fail'; + let filePath = options.filePath, length = options.length, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(filePath, true, 'string')) { + cb.fail({ + errMsg: `${errMsg} parameter error: parameter.filePath should be String` + } as ApiError); + return; + } + const res = fs3.accessSync(filePath); + if (!res) { + cb.fail({ + errMsg: `${errMsg} no such file or directory, open "${filePath}"` + } as ApiError); + return; + } + const fileStat = fs3.statSync(filePath); + if (fileStat.isDirectory()) { + cb.fail({ + errMsg: `${errMsg} illegal operation on a directory, open: ${filePath}` + } as ApiError); + return; + } + if (!checkDataType(length, false, 'number') || length! < 0) { + length = 0; + } + const file = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE); + fs3.truncate(file.fd, length).then(()=>{ + cb.success({ + errMsg: 'truncate: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError(err.code, errMsg)); + }); + } + truncateSync(filePath: string, length: number | null = null): void { + const errMsg = 'truncateSync: fail'; + if (!checkDataType(filePath, true, 'string')) { + throw new Error(`${errMsg} parameter error: parameter.filePath should be String`); + } + const res = fs3.accessSync(filePath); + if (!res) { + throw new Error(`${errMsg} no such file or directory, open "${filePath}"`); + } + const fileStat = fs3.statSync(filePath); + if (fileStat.isDirectory()) { + throw new Error(`${errMsg} illegal operation on a directory, open: ${filePath}`); + } + if (!checkDataType(length, false, 'number') || length! < 0) { + length = 0; + } + const file = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE); + try { + fs3.truncateSync(file.fd, length!); + } catch (error) { + throw new Error(getApiError((error as BusinessError5).code, errMsg).errMsg); + } + } + open(options: OpenFileOptions): void { + const errMsg = 'open: fail'; + let filePath = options.filePath, flag = options.flag, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(filePath, true, 'string')) { + cb.fail({ + errMsg: `${errMsg} parameter error: parameter.filePath should be String` + } as ApiError); + return; + } + if (!FLAG.includes(flag)) { + flag = DEFAULT_FLAG; + } + if (Object.keys(modeReflect).includes(flag)) { + if (fs3.accessSync(filePath)) { + cb.fail({ + errMsg: `${errMsg} EXIST: file already exists` + } as ApiError); + return; + } else { + flag = modeReflect[flag as keyof ModeReflect] as _FLAG; + } + } + fs3.open(filePath, getOpenMode(flag)!, (err, file)=>{ + if (err) { + cb.fail(getApiError(err.code, errMsg)); + } else { + cb.success({ + fd: file.fd.toString(), + errMsg: 'open: ok' + } as OpenFileSuccessResult); + } + }); + } + openSync(options: OpenFileSyncOptions): string { + let filePath = options.filePath, flag = options.flag; + if (!checkDataType(filePath, true, 'string')) { + throw new Error('openSync:fail parameter error: parameter.filePath should be String'); + } + if (!FLAG.includes(flag)) { + flag = DEFAULT_FLAG; + } + if (Object.keys(modeReflect).includes(flag)) { + if (fs3.accessSync(filePath)) { + throw new Error('openSync:fail EXIST: file already exists'); + } else { + flag = modeReflect[flag as keyof ModeReflect] as _FLAG; + } + } + const file = fs3.openSync(filePath, getOpenMode(flag)!); + return file.fd.toString(); + } + write(options: WriteOptions): void { + let inFd = options.fd, data = options.data, offset = options.offset, length = options.length, position = options.position, _options_encoding = options.encoding, encoding = _options_encoding == null ? 'utf-8' : _options_encoding, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + let fd: number = -1; + const writeOptions: OHWriteOptions = {}; + if (!checkDataType(inFd, true, 'string') || inFd === '' || isNaN(Number(inFd))) { + cb.fail({ + errMsg: 'write: fail invalid fd' + } as ApiError); + return; + } else { + fd = Number(inFd); + } + if (!checkDataType((data as DataType), true, 'arraybuffer') && !checkDataType((data as DataType), true, 'string')) { + cb.fail({ + errMsg: 'write: fail data must be a string or ArrayBuffer' + } as ApiError); + return; + } + if (checkDataType((data as DataType), true, 'arraybuffer')) { + const sizeOfArrayBuffer = (data as ArrayBuffer).byteLength as number; + if (!checkDataType(offset, false, 'number') || offset! < 0 || !offset) { + offset = DEFAULT_OFFSET; + } + if (offset > sizeOfArrayBuffer) { + cb.fail({ + errMsg: `write: fail RangeError [ERR_OUT_OF_RANGE]: The value of offset is out of range. It must be <= ${sizeOfArrayBuffer}. Received ${offset}` + } as ApiError); + return; + } + if (!checkDataType(length, false, 'number') || length! < 0 || !length) { + length = sizeOfArrayBuffer - offset; + } + if (length > sizeOfArrayBuffer - offset) { + cb.fail({ + errMsg: `write: fail RangeError [ERR_OUT_OF_RANGE]: The value of length is out of range. It must be <= ${sizeOfArrayBuffer - offset}. Received ${length}` + } as ApiError); + return; + } + const uint8ArrayTemp = new Uint8Array(data as ArrayBuffer); + const slicedArray = uint8ArrayTemp.slice(offset); + data = slicedArray.buffer; + } + if (checkDataType((data as DataType), true, 'string')) { + const res = checkEncoding('write', encoding); + if (!res.isValid) { + cb.fail({ + errMsg: res.errMsg + } as ApiError); + return; + } + writeOptions.encoding = encoding as string; + length = buffer.byteLength(data as string); + } + if (!checkDataType(position, false, 'number') || position! < 0 || !position) { + position = DEFAULT_POSITION; + } + writeOptions.offset = position; + writeOptions.length = length!; + fs3.write(fd, data as (ArrayBuffer | string), writeOptions).then((writeLen)=>{ + cb.success({ + bytesWritten: writeLen, + errMsg: 'write:ok' + } as WriteResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: `write data to file failed with error message: ${err.message}, error code: ${err.code}` + } as ApiError); + }); + } + writeSync(options: WriteSyncOptions): WriteResult { + let inFd = options.fd, data = options.data, offset = options.offset, length = options.length, position = options.position, _options_encoding = options.encoding, encoding = _options_encoding == null ? 'utf-8' : _options_encoding; + let fd: number = -1; + const writeOptions: OHWriteOptions = {}; + if (!checkDataType(inFd, true, 'string') || inFd === '' || isNaN(Number(inFd))) { + throw new Error('writeSync: fail invalid fd'); + } else { + fd = Number(inFd); + } + if (!checkDataType((data as DataType), true, 'arraybuffer') && !checkDataType((data as DataType), true, 'string')) { + throw new Error('writeSync: fail data must be a string or ArrayBuffer'); + } + if (checkDataType((data as DataType), true, 'arraybuffer')) { + const sizeOfArrayBuffer = (data as ArrayBuffer).byteLength as number; + if (!checkDataType(offset, false, 'number') || offset! < 0 || !offset) { + offset = DEFAULT_OFFSET; + } + if (offset > sizeOfArrayBuffer) { + throw new Error(`write: fail RangeError [ERR_OUT_OF_RANGE]: The value of offset is out of range. It must be <= ${sizeOfArrayBuffer}. Received ${offset}`); + } + if (!checkDataType(length, false, 'number') || length! < 0 || !length) { + length = sizeOfArrayBuffer - offset; + } + if (length > sizeOfArrayBuffer - offset) { + throw new Error(`write: fail RangeError [ERR_OUT_OF_RANGE]: The value of length is out of range. It must be <= ${sizeOfArrayBuffer - offset}. Received ${length}`); + } + const uint8ArrayTemp = new Uint8Array(data as ArrayBuffer); + const slicedArray = uint8ArrayTemp.slice(offset); + data = slicedArray.buffer; + } + if (checkDataType((data as DataType), true, 'string')) { + const res = checkEncoding('write', encoding); + if (!res.isValid) { + throw new Error(res.errMsg); + } + writeOptions.encoding = encoding as string; + length = buffer.byteLength(data as string); + } + if (!checkDataType(position, false, 'number') || position! < 0 || !position) { + position = DEFAULT_POSITION; + } + writeOptions.offset = position; + writeOptions.length = length!; + try { + const writeLen = fs3.writeSync(fd, data as (ArrayBuffer | string), writeOptions); + return { + bytesWritten: writeLen, + errMsg: 'write:ok' + } as WriteResult; + } catch (error) { + throw new Error(`writeSync: fail ${(error as BusinessError5).message}`); + } + } + close(options: CloseOptions): void { + const errMsg = 'close: fail'; + let inFd = options.fd, success = options.success, fail = options.fail, complete = options.complete; + let fd: number = -1; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const res = checkFd('fstat', inFd); + if (!res.isValid) { + cb.fail((res as CheckFdErr).err); + return; + } + fd = res.fd; + if (isNaN(fd)) { + cb.fail({ + errMsg: `${errMsg} bad file descriptor` + } as ApiError); + return; + } + fs3.close(fd, (err)=>{ + if (err) { + cb.fail({ + errMsg: `${errMsg} bad file descriptor` + } as ApiError); + } else { + cb.success({ + errMsg: 'close:ok' + } as FileManagerSuccessResult); + } + }); + } + closeSync(options: CloseSyncOptions): void { + const errMsg = 'closeSync: fail'; + let inFd = options.fd; + let fd: number = -1; + if (inFd === '' || !checkDataType(inFd, true, 'string')) { + throw new Error(`${errMsg} invalid fd`); + } + fd = Number(inFd); + if (isNaN(fd)) { + throw new Error(`${errMsg} bad file descriptor`); + } + fs3.closeSync(fd); + } + fstat(options: FStatOptions): void { + const errMsg = 'fstat: fail'; + let inFd = options.fd, success = options.success, fail = options.fail, complete = options.complete; + let fd: number = -1; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const res = checkFd('fstat', inFd); + if (!res.isValid) { + cb.fail((res as CheckFdErr).err); + return; + } else { + fd = res.fd; + } + fs3.stat(fd, (err, stat)=>{ + if (err) { + cb.fail(getApiError(err.code, errMsg)); + } else { + const combinationMode = getFileTypeMode(stat) | stat.mode; + cb.success({ + stats: new StatsImpl(stat, combinationMode) + } as FStatSuccessResult); + } + }); + } + fstatSync(options: FStatSyncOptions): Stats { + const errMsg = 'fstatSync: fail'; + let fd: number = -1; + const res = checkFd('fstatSync', options.fd); + if (!res.isValid) { + throw new Error((res as CheckFdErr).err?.errMsg); + } else { + fd = res.fd; + } + try { + const stat = fs3.statSync(fd); + const combinationMode = getFileTypeMode(stat) | stat.mode; + return new StatsImpl(stat, combinationMode); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + ftruncate(options: FTruncateFileOptions): void { + const errMsg = 'ftruncate: fail'; + let inFd = options.fd, length = options.length, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + let fd: number = -1; + const res = checkFd('ftruncate', inFd); + if (!res.isValid) { + cb.fail((res as CheckFdErr).err); + return; + } else { + fd = res.fd; + } + if (!checkDataType(length, true, 'number') || length < 0) { + length = DEFAULT_LENGTH; + } + fs3.truncate(fd, length).then(()=>{ + cb.success({ + errMsg: 'ftruncate: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + ftruncateSync(options: FTruncateFileSyncOptions): void { + const errMsg = 'ftruncateSync: fail'; + let inFd = options.fd, length = options.length; + const res = checkFd('ftruncateSync', inFd); + let fd: number = -1; + if (!res.isValid) { + throw new Error((res as CheckFdErr).err?.errMsg); + } else { + fd = res.fd; + } + if (!checkDataType(length, true, 'number') || length < 0) { + length = DEFAULT_LENGTH; + } + try { + fs3.truncateSync(fd, length); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + unzip(options: UnzipFileOptions): void { + const errMsg = 'unzip: fail'; + let zipFilePath = options.zipFilePath, targetPath = options.targetPath, success = options.success, fail = options.fail, complete = options.complete; + zipFilePath = useGetRealPath(zipFilePath); + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(zipFilePath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} zipFilePath`)); + return; + } + if (!checkDataType(targetPath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} targetPath`)); + return; + } + const res = fs3.accessSync(zipFilePath); + if (!res) { + cb.fail(getNoSuchFileOrDirectoryError(errMsg)); + return; + } + const targetStat = fs3.statSync(targetPath); + if (!targetStat.isDirectory()) { + cb.fail(getApiError(1300016, errMsg)); + return; + } + zlib.decompressFile(zipFilePath, targetPath).then(()=>{ + cb.success({ + errMsg: 'unzip: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + readZipEntry(options: ReadZipEntryOptions): void { + const errMsg = 'readZipEntry: fail'; + const okMsg = 'readZipEntry: ok'; + let filePath = options.filePath, encoding = options.encoding, entries = options.entries, success = options.success, fail = options.fail, complete = options.complete; + filePath = useGetRealPath(filePath); + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + let isAll = false; + let encodeArrayBuffer = false; + if (!checkDataType(filePath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} filePath`)); + return; + } + if (entries != null) { + if (!Array.isArray(entries)) { + cb.fail(getParameterError(`${errMsg} entries`)); + return; + } else { + if (entries.length === 0) { + cb.fail(getParameterError(`${errMsg} entries`)); + return; + } + } + } else { + isAll = true; + if (encoding == null) { + encodeArrayBuffer = true; + } else if (isString(encoding)) { + if ((encoding as string) === 'utf8') { + encoding = 'utf-8'; + } + } + } + if (isString(encoding) && !ENCODING_SUPPORT.includes(encoding as string)) { + cb.fail(getParameterError(`${errMsg} encoding`)); + return; + } + const res = fs3.accessSync(filePath); + if (!res) { + cb.fail(getNoSuchFileOrDirectoryError(errMsg)); + return; + } + const targetPath = `${getEnv2().TEMP_PATH}/unzip/${Date.now().toString()}`; + fs3.mkdir(targetPath, true).then(()=>{ + this.unzip({ + zipFilePath: filePath, + targetPath, + success: ()=>{ + const entriesResult: Map<string, ZipFileItem> = new Map(); + const readFileSync = (file: string, fullPath: string, encoding: string | null = null)=>{ + const data = this.readFileSync(fullPath).data as ArrayBuffer; + if (encodeArrayBuffer) { + entriesResult.set(file, { + data, + errMsg: okMsg + } as ZipFileItem); + } else { + entriesResult.set(file, { + data: buffer.from(data).toString(encoding as string), + errMsg: okMsg + } as ZipFileItem); + } + }; + try { + if (isAll) { + const files = fs3.listFileSync(targetPath); + for (const file of files){ + const fullPath = `${targetPath}/${file}`; + if (fs3.statSync(fullPath).isFile()) { + readFileSync(file, fullPath, encoding as string); + } + } + } else { + for (const entry of entries!){ + const entryPath = entry.path; + const fullPath = `${targetPath}/${entryPath}`; + if (!fs3.accessSync(fullPath) || !fs3.statSync(fullPath).isFile()) { + continue; + } + readFileSync(entryPath, fullPath, entry.encoding as string); + } + } + cb.success({ + entries: entriesResult, + result: entriesResult, + errMsg: okMsg + } as EntriesResult); + } catch (err) { + cb.fail({ + errMsg: `${errMsg} ${(err as Error).message}` + } as FileManagerSuccessResult); + } + }, + fail: cb.fail, + complete: null + } as UnzipFileOptions); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + readCompressedFile(options: ReadCompressedFileOptions): void { + throw new Error('Method not implemented.'); + } + readCompressedFileSync(filePath: string, compressionAlgorithm: string): string { + throw new Error('Method not implemented.'); + } + } + const getFileSystemManager = defineSyncApi<FileSystemManager>(GET_FILE_SYSTEM_MANAGER, ()=>{ + return new FileSystemManagerImpl(); + }); + const AUTHORIZED = 'authorized'; + const DENIED = 'denied'; + const NOT_DETERMINED = 'not determined'; + class AppAuthorizeSetting { + albumAuthorized: string = NOT_DETERMINED; + bluetoothAuthorized: string = NOT_DETERMINED; + cameraAuthorized: string = NOT_DETERMINED; + locationAuthorized: string = NOT_DETERMINED; + locationAccuracy: string = NOT_DETERMINED; + microphoneAuthorized: string = NOT_DETERMINED; + notificationAuthorized: string = NOT_DETERMINED; + notificationAlertAuthorized: string = NOT_DETERMINED; + notificationBadgeAuthorized: string = NOT_DETERMINED; + notificationSoundAuthorized: string = NOT_DETERMINED; + phoneCalendarAuthorized: string = NOT_DETERMINED; + } + class GetAppAuthorizeSettingImpl { + accessTokenId: number; + atManager: abilityAccessCtrl.AtManager; + appAuthorizeSetting: AppAuthorizeSetting; + constructor(accessTokenId: number, atManager: abilityAccessCtrl.AtManager, appAuthorizeSetting: AppAuthorizeSetting){ + this.accessTokenId = accessTokenId; + this.atManager = atManager; + this.appAuthorizeSetting = appAuthorizeSetting; + this.getAlbumAuthorizeSetting(); + this.getBlueToothAuthorizeSetting(); + this.getCameraAuthorizeSetting(); + this.getLocationAuthorizeSetting(); + this.getMicrophoneAuthorizeSetting(); + this.getNotificationAuthorizeSetting(); + this.getPhoneCalendarAuthorizeSetting(); + } + getAlbumAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.READ_IMAGEVIDEO'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.albumAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.albumAuthorized = AUTHORIZED; + } + } + getBlueToothAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.ACCESS_BLUETOOTH'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.bluetoothAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.bluetoothAuthorized = AUTHORIZED; + } + } + getCameraAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.CAMERA'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.cameraAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.cameraAuthorized = AUTHORIZED; + } + } + getLocationAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.LOCATION'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.locationAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.locationAuthorized = AUTHORIZED; + } + } + getMicrophoneAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.MICROPHONE'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.microphoneAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.microphoneAuthorized = AUTHORIZED; + } + } + getNotificationAuthorizeSetting() { + try { + const isNotificationEnabled = notificationManager.isNotificationEnabledSync(); + if (isNotificationEnabled) { + this.appAuthorizeSetting.notificationAuthorized = DENIED; + } + if (isNotificationEnabled) { + this.appAuthorizeSetting.notificationAuthorized = AUTHORIZED; + } + } catch (error) { + this.appAuthorizeSetting.notificationAuthorized = DENIED; + } + } + getPhoneCalendarAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.WRITE_CALENDAR'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.phoneCalendarAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.phoneCalendarAuthorized = AUTHORIZED; + } + } + } + const getAppAuthorizeSetting: GetAppAuthorizeSetting = defineSyncApi<GetAppAuthorizeSettingResult>('getAppAuthorizeSetting', ()=>{ + const bundleInfoWithApplication = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION); + const appAuthorizeSettingImpl = new GetAppAuthorizeSettingImpl(bundleInfoWithApplication.appInfo.accessTokenId, abilityAccessCtrl.createAtManager(), new AppAuthorizeSetting()); + return appAuthorizeSettingImpl.appAuthorizeSetting as GetAppAuthorizeSettingResult; + }) as GetAppAuthorizeSetting; + const API_GET_APP_BASE_INFO = 'getAppBaseInfo'; + const getBundleInfoOnce = ()=>{ + let bundleInfo: bundleManager1.BundleInfo | null = null; + return (): bundleManager1.BundleInfo =>{ + if (bundleInfo) { + return bundleInfo; + } + bundleInfo = bundleManager1.getBundleInfoForSelfSync(bundleManager1.BundleFlag.GET_BUNDLE_INFO_DEFAULT); + return bundleInfo; + }; + }; + const getBundleInfo = getBundleInfoOnce(); + const getAppBaseInfo: GetAppBaseInfo = defineSyncApi<GetAppBaseInfoResult>(API_GET_APP_BASE_INFO, (): GetAppBaseInfoResult =>{ + const appVersion = UTSHarmony.getAppVersion() as IAppBaseInfoAppVersion; + const appLanguage = I18n.System.getAppPreferredLanguage(); + const uniCompilerVersion: string = UTSHarmony.getUniCompilerVersion() as string; + const uniRuntimeVersion: string = UTSHarmony.getUniRuntimeVersion(); + return { + appId: UTSHarmony.getAppId() as string, + appLanguage, + appName: UTSHarmony.getAppName() as string, + appTheme: UTSHarmony.getAppTheme() as string, + appVersion: appVersion.name, + appVersionCode: appVersion.code, + appWgtVersion: appVersion.name, + hostLanguage: I18n.System.getSystemLanguage(), + isUniAppX: UTSHarmony.isUniAppX() as boolean, + packageName: getBundleInfo().name, + uniCompilerVersion: uniCompilerVersion, + uniCompilerVersionCode: parseFloat(uniCompilerVersion), + uniRuntimeVersion: uniRuntimeVersion, + uniRuntimeVersionCode: parseFloat(uniRuntimeVersion), + uniPlatform: 'app' + } as GetAppBaseInfoResult; + }) as GetAppBaseInfo; + const API_GET_BACKGROUND_AUDIO_MANAGER = 'getBackgroundAudioManager'; + const isFileUri2 = (path: string)=>{ + return path && typeof path === 'string' && (path.startsWith('file://') || path.startsWith('datashare://')); + }; + const isSandboxPath1 = (path: string)=>{ + return path && typeof path === 'string' && path.startsWith('/data/storage/'); + }; + const getFdFromUriOrSandBoxPath1 = (uri: string)=>{ + try { + const file = fileIo1.openSync(uri, fileIo1.OpenMode.READ_ONLY); + return file.fd; + } catch (error) { + console.info(`[AdvancedAPI] Can not get file from uri: ${uri} `); + } + throw new Error('file is not exist'); + }; + const callCallbacks1 = (callbacks: Function[], ...args: Object[])=>{ + callbacks.forEach((cb)=>{ + typeof cb === 'function' && cb(...args); + }); + }; + const remoteCallback1 = (callbacks: Function[], callback: Function)=>{ + const index = callbacks.indexOf(callback); + if (index > -1) { + callbacks.splice(index, 1); + } + }; + class AudioPlayerError1 { + errMsg: string; + errCode: number; + constructor(errMsg: string, errCode: number){ + this.errMsg = errMsg; + this.errCode = errCode; + } + } + class AudioPlayerCallback1 { + onCanplayCallbacks: Function[] = []; + onPlayCallbacks: Function[] = []; + onPauseCallbacks: Function[] = []; + onStopCallbacks: Function[] = []; + onEndedCallbacks: Function[] = []; + onTimeUpdateCallbacks: Function[] = []; + onErrorCallbacks: Function[] = []; + onWaitingCallbacks: Function[] = []; + onSeekingCallbacks: Function[] = []; + onSeekedCallbacks: Function[] = []; + constructor(){} + canPlay() { + callCallbacks1(this.onCanplayCallbacks); + } + onCanplay(callback: Function) { + this.onCanplayCallbacks.push(callback); + } + offCanplay(callback: Function) { + remoteCallback1(this.onCanplayCallbacks, callback); + } + play() { + callCallbacks1(this.onPlayCallbacks); + } + onPlay(callback: Function) { + this.onPlayCallbacks.push(callback); + } + offPlay(callback: Function) { + remoteCallback1(this.onPlayCallbacks, callback); + } + pause() { + callCallbacks1(this.onPauseCallbacks); + } + onPause(callback: Function) { + this.onPauseCallbacks.push(callback); + } + offPause(callback: Function) { + remoteCallback1(this.onPauseCallbacks, callback); + } + stop() { + callCallbacks1(this.onStopCallbacks); + } + onStop(callback: Function) { + this.onStopCallbacks.push(callback); + } + offStop(callback: Function) { + remoteCallback1(this.onStopCallbacks, callback); + } + ended() { + callCallbacks1(this.onEndedCallbacks); + } + onEnded(callback: Function) { + this.onEndedCallbacks.push(callback); + } + offEnded(callback: Function) { + remoteCallback1(this.onEndedCallbacks, callback); + } + timeUpdate(time: number) { + callCallbacks1(this.onTimeUpdateCallbacks, time); + } + onTimeUpdate(callback: Function) { + this.onTimeUpdateCallbacks.push(callback); + } + offTimeUpdate(callback: Function) { + remoteCallback1(this.onTimeUpdateCallbacks, callback); + } + error(res: AudioPlayerError1) { + callCallbacks1(this.onErrorCallbacks, res); + } + onError(callback: Function) { + this.onErrorCallbacks.push(callback); + } + offError(callback: Function) { + remoteCallback1(this.onErrorCallbacks, callback); + } + onPrev(callback: Function) { + console.info('ios only'); + } + onNext(callback: Function) { + console.info('ios only'); + } + waiting() { + callCallbacks1(this.onWaitingCallbacks); + } + onWaiting(callback: Function) { + this.onWaitingCallbacks.push(callback); + } + offWaiting(callback: Function) { + remoteCallback1(this.onWaitingCallbacks, callback); + } + seeking() { + callCallbacks1(this.onSeekingCallbacks); + } + onSeeking(callback: Function) { + this.onSeekingCallbacks.push(callback); + } + offSeeking(callback: Function) { + remoteCallback1(this.onSeekingCallbacks, callback); + } + seeked() { + callCallbacks1(this.onSeekedCallbacks); + } + onSeeked(callback: Function) { + this.onSeekedCallbacks.push(callback); + } + offSeeked(callback: Function) { + remoteCallback1(this.onSeekedCallbacks, callback); + } + } + const audioPlayerCallback = new AudioPlayerCallback1(); + let AV_SESSION: avSession.AVSession | null = null; + const createAVSession = ()=>{ + avSession.createAVSession(UTSHarmony.getUIAbilityContext()!, 'player', 'audio').then((data)=>{ + AV_SESSION = data; + }); + }; + const destroyAVSession = ()=>{ + if (AV_SESSION === null) { + return; + } + AV_SESSION.destroy(); + AV_SESSION = null; + }; + const startBackgroundTask = ()=>{ + const abilityInfo = UTSHarmony.getUIAbilityContext()!.abilityInfo as TempAbilityInfo; + const wantAgentInfo: wantAgent.WantAgentInfo = { + wants: [ + { + bundleName: abilityInfo.bundleName, + abilityName: abilityInfo.name + } + ], + operationType: wantAgent.OperationType.START_ABILITY, + requestCode: 0, + wantAgentFlags: [ + wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG + ] + }; + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj)=>{ + return backgroundTaskManager.startBackgroundRunning(UTSHarmony.getUIAbilityContext()!, backgroundTaskManager.BackgroundMode.AUDIO_PLAYBACK, wantAgentObj); + }).then(()=>{ + console.debug('[getBackgroundAudioManager] start bg operation succeeded'); + }).catch((err: BusinessError6)=>{ + audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); + }); + }; + const stopBackgroundTask = ()=>{ + backgroundTaskManager.stopBackgroundRunning(UTSHarmony.getUIAbilityContext()!).then(()=>{ + console.debug('[getBackgroundAudioManager] stop operation succeeded'); + }).catch((err: BusinessError6)=>{ + audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); + }); + }; + const START_BACKGROUND = ()=>{ + startBackgroundTask(); + createAVSession(); + }; + const STOP_BACKGROUND = ()=>{ + destroyAVSession(); + stopBackgroundTask(); + }; + const LOG1 = (msg: string)=>console.log(`[getBackgroundAudioManager]: ${msg}`); + class STATE_TYPE1 { + static IDLE: string = 'idle'; + static PLAYING: string = 'playing'; + static PAUSED: string = 'paused'; + static STOPPED: string = 'stopped'; + static ERROR: string = 'error'; + } + class BackgroundAudioManagerImpl implements BackgroundAudioManager { + static audioPlayer?: media2.AudioPlayer; + private _src: string = ''; + private _startTime: number = 0; + private _buffered: number = 0; + private _title: string = ''; + private _epname: string = ''; + private _singer: string = ''; + private _coverImgUrl: string = ''; + private _webUrl: string = ''; + private _protocol: string = ''; + private _playbackRate: number = 1; + readonly obeyMuteSwitch: boolean = false; + constructor(){ + this.init(); + } + init() { + BackgroundAudioManagerImpl.audioPlayer = media2.createAudioPlayer(); + BackgroundAudioManagerImpl.audioPlayer.on('dataLoad', ()=>{ + audioPlayerCallback.canPlay(); + }); + BackgroundAudioManagerImpl.audioPlayer.on('play', ()=>{ + audioPlayerCallback.play(); + }); + BackgroundAudioManagerImpl.audioPlayer.on('pause', ()=>{ + audioPlayerCallback.pause(); + }); + BackgroundAudioManagerImpl.audioPlayer.on('finish', ()=>{ + STOP_BACKGROUND(); + audioPlayerCallback.ended(); + }); + BackgroundAudioManagerImpl.audioPlayer.on('timeUpdate', (res)=>{ + audioPlayerCallback.timeUpdate(res / 1000); + }); + BackgroundAudioManagerImpl.audioPlayer.on('error', (err)=>{ + audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); + }); + BackgroundAudioManagerImpl.audioPlayer.on('bufferingUpdate', (infoType, value)=>{ + console.info(`[AdvancedAPI] audioPlayer bufferingUpdate ${infoType} ${value}`); + if (infoType === media2.BufferingInfoType.BUFFERING_PERCENT && value !== 0 && BackgroundAudioManagerImpl.audioPlayer) { + this._buffered = value; + if ((BackgroundAudioManagerImpl.audioPlayer.currentTime / 1000) >= (BackgroundAudioManagerImpl.audioPlayer.duration * value / 100000)) { + audioPlayerCallback.waiting(); + } + } + }); + BackgroundAudioManagerImpl.audioPlayer.on('audioInterrupt', (InterruptEvent)=>{ + console.info('[AdvancedAPI] audioInterrupt:' + JSON.stringify(InterruptEvent)); + if (BackgroundAudioManagerImpl.audioPlayer && InterruptEvent.hintType === audio1.InterruptHint.INTERRUPT_HINT_PAUSE) { + BackgroundAudioManagerImpl.audioPlayer.pause(); + } + if (BackgroundAudioManagerImpl.audioPlayer && InterruptEvent.hintType === audio1.InterruptHint.INTERRUPT_HINT_RESUME) { + BackgroundAudioManagerImpl.audioPlayer.play(); + } + }); + } + get duration() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return 0; + } + return BackgroundAudioManagerImpl.audioPlayer.duration / 1000; + } + get currentTime() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return 0; + } + return BackgroundAudioManagerImpl.audioPlayer.currentTime / 1000; + } + get paused() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return false; + } + return BackgroundAudioManagerImpl.audioPlayer.state === STATE_TYPE1.PAUSED; + } + get src() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return ''; + } + return BackgroundAudioManagerImpl.audioPlayer.src; + } + set src(value) { + if (typeof value !== 'string') { + audioPlayerCallback.error(new AudioPlayerError1(`set src: ${value} is not string`, 10004)); + return; + } + if (!BackgroundAudioManagerImpl.audioPlayer) { + audioPlayerCallback.error(new AudioPlayerError1(`player is not exist`, 10001)); + return; + } + if (!value || !(value.startsWith('http:') || value.startsWith('https:') || isFileUri2(value) || isSandboxPath1(value))) { + LOG1(`set src: ${value} is invalid`); + return; + } + let path: string = ''; + if (value.startsWith('http:') || value.startsWith('https:')) { + path = value; + } else if (isFileUri2(value) || isSandboxPath1(value)) { + try { + const fd = getFdFromUriOrSandBoxPath1(value); + path = `fd://${fd}`; + } catch (err) { + audioPlayerCallback.error(new AudioPlayerError1((err as BusinessError6).message, (err as BusinessError6).code)); + } + } + if (BackgroundAudioManagerImpl.audioPlayer.src && path !== BackgroundAudioManagerImpl.audioPlayer.src) { + BackgroundAudioManagerImpl.audioPlayer.reset(); + } + BackgroundAudioManagerImpl.audioPlayer.src = path; + this._src = value; + if (this._startTime) { + BackgroundAudioManagerImpl.audioPlayer.seek(this._startTime); + } + BackgroundAudioManagerImpl.audioPlayer.play(); + START_BACKGROUND(); + } + get startTime() { + return this._startTime / 1000; + } + set startTime(time: number) { + this._startTime = time * 1000; + } + get title() { + return this._title; + } + set title(titleName: string) { + this._title = titleName; + } + get buffered() { + if (!BackgroundAudioManagerImpl.audioPlayer) return 0; + return BackgroundAudioManagerImpl.audioPlayer.duration * this._buffered / 100000; + } + get epname() { + return this._epname; + } + set epname(epName: string) { + this._epname = epName; + } + get singer() { + return this._singer; + } + set singer(singerName: string) { + this._singer = singerName; + } + get coverImgUrl() { + return this._coverImgUrl; + } + set coverImgUrl(url: string) { + this._coverImgUrl = url; + } + get webUrl() { + return this._webUrl; + } + set webUrl(url: string) { + this._webUrl = url; + } + get protocol() { + return this._protocol; + } + set protocol(protocolType: string) { + this._protocol = protocolType; + } + set playbackRate(rate: number) { + audioPlayerCallback.error(new AudioPlayerError1('HarmonyOS Next Audio setting playbackRate is not supported.', -1)); + } + get playbackRate() { + return this._playbackRate; + } + play() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return; + } + const state = BackgroundAudioManagerImpl.audioPlayer.state; + if (![ + STATE_TYPE1.PAUSED, + STATE_TYPE1.STOPPED, + STATE_TYPE1.IDLE + ].includes(state)) { + return; + } + if (this._src && BackgroundAudioManagerImpl.audioPlayer.src === '') { + this.src = this._src; + } + BackgroundAudioManagerImpl.audioPlayer.play(); + START_BACKGROUND(); + } + pause() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return; + } + const state = BackgroundAudioManagerImpl.audioPlayer.state; + if (STATE_TYPE1.PLAYING !== state) { + return; + } + BackgroundAudioManagerImpl.audioPlayer.pause(); + } + stop() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return; + } + if (![ + STATE_TYPE1.PAUSED, + STATE_TYPE1.PLAYING + ].includes(BackgroundAudioManagerImpl.audioPlayer.state)) { + return; + } + BackgroundAudioManagerImpl.audioPlayer.stop(); + BackgroundAudioManagerImpl.audioPlayer.release(); + this.init(); + STOP_BACKGROUND(); + audioPlayerCallback.stop(); + } + seek(position: number) { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return; + } + const state = BackgroundAudioManagerImpl.audioPlayer.state; + if (![ + STATE_TYPE1.PAUSED, + STATE_TYPE1.PLAYING + ].includes(state)) { + return; + } + BackgroundAudioManagerImpl.audioPlayer.seek(position * 1000); + } + onCanplay(callback: (result: Object) => void): void { + audioPlayerCallback.onCanplay(callback); + } + onPlay(callback: (result: Object) => void): void { + audioPlayerCallback.onPlay(callback); + } + onPause(callback: (result: Object) => void): void { + audioPlayerCallback.onPause(callback); + } + onStop(callback: (result: Object) => void): void { + audioPlayerCallback.onStop(callback); + } + onEnded(callback: (result: Object) => void): void { + audioPlayerCallback.onEnded(callback); + } + onTimeUpdate(callback: (result: Object) => void): void { + audioPlayerCallback.onTimeUpdate(callback); + } + onError(callback: (result: ICreateBackgroundAudioFail) => void): void { + audioPlayerCallback.onError(callback); + } + onWaiting(callback: (result: Object) => void): void { + audioPlayerCallback.onWaiting(callback); + } + offCanplay(callback: (result: Object) => void): void { + audioPlayerCallback.offCanplay(callback); + } + offPlay(callback: (result: Object) => void): void { + audioPlayerCallback.offPlay(callback); + } + offPause(callback: (result: Object) => void): void { + audioPlayerCallback.offPause(callback); + } + offStop(callback: (result: Object) => void): void { + audioPlayerCallback.offStop(callback); + } + offEnded(callback: (result: Object) => void): void { + audioPlayerCallback.offEnded(callback); + } + offTimeUpdate(callback: (result: Object) => void): void { + audioPlayerCallback.offTimeUpdate(callback); + } + offError(callback: (result: ICreateBackgroundAudioFail) => void): void { + audioPlayerCallback.offError(callback); + } + offWaiting(callback: (result: Object) => void): void { + audioPlayerCallback.offWaiting(callback); + } + onPrev(callback: (result: Object) => void): void { + throw new Error('Method not implemented.'); + } + onNext(callback: (result: Object) => void): void { + throw new Error('Method not implemented.'); + } + onSeeking(callback: (result: Object) => void): void { + throw new Error('Method not implemented.'); + } + onSeeked(callback: (result: Object) => void): void { + throw new Error('Method not implemented.'); + } + } + let backgroundAudioManager: BackgroundAudioManager | null = null; + const getBackgroundAudioManager: GetBackgroundAudioManager = defineSyncApi<BackgroundAudioManager>(API_GET_BACKGROUND_AUDIO_MANAGER, ()=>{ + if (!backgroundAudioManager) backgroundAudioManager = new BackgroundAudioManagerImpl(); + return backgroundAudioManager; + }) as GetBackgroundAudioManager; + const API_GET_DEVICE_INFO = 'getDeviceInfo'; + const parseDeviceType = (deviceType: string): 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'unknown' | 'car' | 'vr' | 'appliance' =>{ + switch(deviceType){ + case 'phone': + return 'phone'; + case 'wearable': + return 'watch'; + case 'tablet': + return 'pad'; + case '2in1': + return 'pc'; + case 'tv': + return 'tv'; + case 'car': + return 'car'; + case 'smartVision': + return 'vr'; + default: + return 'unknown'; + } + }; + const getDeviceInfo: GetDeviceInfo = defineSyncApi<GetDeviceInfoResult>(API_GET_DEVICE_INFO, (): GetDeviceInfoResult =>{ + return { + deviceBrand: deviceInfo.brand.toLowerCase(), + deviceId: getDeviceId(), + deviceModel: deviceInfo.productModel, + deviceOrientation: 'portrait', + devicePixelRatio: vp2px(1), + deviceType: parseDeviceType(deviceInfo.deviceType), + osLanguage: I18n1.System.getSystemLanguage(), + osTheme: UTSHarmony.getOsTheme() as string, + osVersion: deviceInfo.majorVersion + '.' + deviceInfo.seniorVersion + '.' + deviceInfo.featureVersion + '.' + deviceInfo.buildVersion, + osName: 'harmonyos', + platform: 'harmonyos', + romName: deviceInfo.distributionOSName, + romVersion: deviceInfo.distributionOSVersion, + system: deviceInfo.osFullName + } as GetDeviceInfoResult; + }) as GetDeviceInfo; + const getElementById: GetElementById = defineSyncApi<UniElement | null>('getElementById', (id: string.IDString | string): UniElement | null =>{ + const pages = globalThis.getCurrentPages() as UniPageImpl[]; + if (pages.length == 0) { + return null; + } + const page = pages[pages.length - 1]; + const bodyNode = ((page.vm as object)['$el'] as UniElement | null)?.parentNode; + if (!bodyNode) { + console.warn('bodyNode is null'); + return null; + } + return bodyNode.querySelector(`#${id}`); + }); + const API_GET_NETWORK_TYPE = 'getNetworkType'; + const PERMISSIONS1 = [ + 'ohos.permission.GET_NETWORK_INFO' + ]; + enum NetworkinfoType { + UNKNOW = 0, + NONE = 1, + ETHERNET = 2, + WIFI = 3, + "2G" = 4, + "3G" = 5, + "4G" = 6, + "5G" = 7 + } + const signalType = (resultObj: radio.NetworkType)=>{ + switch(resultObj){ + case radio.NetworkType.NETWORK_TYPE_GSM: + case radio.NetworkType.NETWORK_TYPE_CDMA: + return NetworkinfoType['2G']; + case radio.NetworkType.NETWORK_TYPE_WCDMA: + case radio.NetworkType.NETWORK_TYPE_TDSCDMA: + return NetworkinfoType['3G']; + case radio.NetworkType.NETWORK_TYPE_LTE: + return NetworkinfoType['4G']; + case radio.NetworkType.NETWORK_TYPE_NR: + return NetworkinfoType['5G']; + case radio.NetworkType.NETWORK_TYPE_UNKNOWN: + return NetworkinfoType.UNKNOW; + default: + return NetworkinfoType.NONE; + } + }; + const networkGetType = ()=>{ + return new Promise<number>((resolve, reject)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight) { + try { + radio.getPrimarySlotId().then((slotId: number)=>radio.getSignalInformationSync(slotId)).then((signalInformation: Array<radio.SignalInformation>)=>{ + const data = signalInformation[0]; + if (data && data.signalType) { + resolve(signalType(data.signalType)); + } else { + resolve(NetworkinfoType.NONE); + } + }); + } catch (error) { + reject(error as BusinessError7); + } + } else { + reject('permission denied'); + } + }, ()=>reject('permission denied')); + }); + }; + class GlobalContext { + netList: connection.NetHandle[] = []; + netHandle: connection.NetHandle | null = null; + private constructor(){} + private static instance: GlobalContext; + public static getContext(): GlobalContext { + if (!GlobalContext.instance) { + GlobalContext.instance = new GlobalContext(); + } + return GlobalContext.instance; + } + } + const getCurrentType = ()=>{ + return new Promise<number>((resolve, reject)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight) { + try { + connection.getDefaultNet().then((data: connection.NetHandle)=>{ + if (data) { + GlobalContext.getContext().netHandle = data; + connection.getNetCapabilities(GlobalContext.getContext().netHandle!).then((data: connection.NetCapabilities)=>{ + const bearerTypes: Set<number> = new Set(data.bearerTypes); + const bearerTypesNum = Array.from(bearerTypes.values()); + for (const item of bearerTypesNum){ + if (item == connection.NetBearType.BEARER_CELLULAR) { + networkGetType().then(resolve).catch(reject); + } else if (item == connection.NetBearType.BEARER_WIFI) { + resolve(NetworkinfoType.WIFI); + } else if (item == connection.NetBearType.BEARER_ETHERNET) { + resolve(NetworkinfoType.ETHERNET); + } else { + resolve(NetworkinfoType.UNKNOW); + } + } + }).catch((err: BusinessError7)=>{ + reject(err); + }); + } + }); + } catch (error) { + reject(error); + } + } else { + reject('permission denied'); + } + }); + }); + }; + class Network { + static netConnection: connection.NetConnection | null = null; + constructor(){ + Network.netConnection = connection.createNetConnection(); + } + static ohoSubscribe() { + if (!Network.netConnection) { + Network.netConnection = connection.createNetConnection(); + } + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight && Network.netConnection) { + Network.netConnection.register((err: BusinessError7)=>{}); + Network.netConnection.on('netCapabilitiesChange', (capability: connection.NetCapabilityInfo)=>{ + const NetBearType = capability?.netCap?.bearerTypes[0]; + let networkType = ''; + switch(NetBearType){ + case connection.NetBearType.BEARER_CELLULAR: + getCurrentType().then((type: number)=>{ + invokeOnNetworkStatusChange(NetworkinfoType[type]); + }).catch(()=>{ + invokeOnNetworkStatusChange(NetworkinfoType[1]); + }); + return; + case connection.NetBearType.BEARER_WIFI: + networkType = NetworkinfoType[3]; + break; + case connection.NetBearType.BEARER_ETHERNET: + networkType = NetworkinfoType[2]; + break; + default: + networkType = NetworkinfoType[1]; + } + invokeOnNetworkStatusChange(networkType); + }); + Network.netConnection.on('netLost', (netLost: connection.NetHandle)=>{ + invokeOnNetworkStatusChange(NetworkinfoType[1]); + }); + } + }); + } + } + new Network(); + onNativePageReady().then(()=>{ + Network.ohoSubscribe(); + }); + const getNetworkType: GetNetworkType = defineAsyncApi<GetNetworkTypeOptions, GetNetworkTypeSuccess>(API_GET_NETWORK_TYPE, (options: GetNetworkTypeOptions, res: ApiExecutor<GetNetworkTypeSuccess>)=>{ + getCurrentType().then((type: number)=>{ + res.resolve({ + networkType: NetworkinfoType[type].toLocaleLowerCase() + } as GetNetworkTypeSuccess); + }).catch((err: BusinessError7)=>{ + if (err.code === 2100001) { + res.resolve({ + networkType: NetworkinfoType[1].toLocaleLowerCase() + } as GetNetworkTypeSuccess); + } else { + res.reject(err.message); + } + }); + }) as GetNetworkType; + const invokeOnNetworkStatusChange = (networkType: string)=>{ + UniGetNetworkTypeEventEmitter.emit('networkStatusChange', { + isConnected: networkType !== NetworkinfoType[1], + networkType: networkType.toLocaleLowerCase() + } as OnNetworkStatusChangeCallbackResult); + }; + const UniGetNetworkTypeEventEmitter = new Emitter1() as IUniGetNetworkTypeEventEmitter; + const onNetworkStatusChange: OnNetworkStatusChange = (callback: Function)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight) { + UniGetNetworkTypeEventEmitter.on('networkStatusChange', callback); + } + }); + }; + const offNetworkStatusChange: OffNetworkStatusChange = (callback: Function)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight) { + UniGetNetworkTypeEventEmitter.off('networkStatusChange', callback); + } + }); + }; + const API_GET_PROVIDER = 'getProvider'; + const API_GET_PROVIDER_SYNC = 'getProviderSync'; + const SupportedProviderServiceList = [ + 'oauth', + 'share', + 'payment', + 'push', + 'location' + ]; + const _getProviderSync = (options: GetProviderOptions)=>{ + if (!SupportedProviderServiceList.includes(options.service)) { + return 'Parameter service invalid.'; + } + const providers = getUniProviders(options.service); + const providerIds = providers.map((provider): string =>{ + return provider.id; + }); + const result: GetProviderSuccess = { + service: options.service, + provider: providerIds, + providers + }; + return result; + }; + const getProvider: GetProvider = defineAsyncApi<GetProviderOptions, GetProviderSuccess>(API_GET_PROVIDER, (options: GetProviderOptions, exec: ApiExecutor<GetProviderSuccess>): void =>{ + const res = _getProviderSync(options); + if (typeof res === 'string') exec.reject(res); + else exec.resolve(res); + }) as GetProvider; + const getProviderSync: GetProviderSync = defineSyncApi<GetProviderSyncSuccess>(API_GET_PROVIDER_SYNC, (options: GetProviderSyncOptions): GetProviderSyncSuccess =>{ + const res = _getProviderSync(options as GetProviderOptions); + if (typeof res === 'string') throw new Error(res); + return { + service: res.service, + providerIds: res.provider, + providerObjects: res.providers + } as GetProviderSyncSuccess; + }) as GetProviderSync; + const API_GET_RECORDER_MANAGER = 'getRecorderManager'; + const callbacks: Callbacks = { + pause: undefined, + resume: undefined, + start: undefined, + stop: undefined, + error: undefined, + frameRecorded: undefined, + interruptionBegin: undefined, + interruptionEnd: undefined + }; + const setRecordStateCallback = (state: RecorderState, cb: Function)=>{ + switch(state){ + case 'pause': + callbacks.pause = cb; + break; + case 'resume': + callbacks.resume = cb; + break; + case 'start': + callbacks.start = cb; + break; + case 'stop': + callbacks.stop = cb; + break; + case 'error': + callbacks.error = cb; + break; + case 'frameRecorded': + callbacks.frameRecorded = cb; + break; + case 'interruptionBegin': + callbacks.interruptionBegin = cb; + break; + case 'interruptionEnd': + callbacks.interruptionEnd = cb; + break; + } + }; + const onRecorderStateChange = (state: RecorderState, res: StateChangeRes | null = null): void =>{ + switch(state){ + case 'pause': + return callbacks.pause?.(res); + case 'resume': + return callbacks.resume?.(res); + case 'start': + return callbacks.start?.(res); + case 'stop': + return callbacks.stop?.(res); + case 'error': + return callbacks.error?.(res); + case 'frameRecorded': + return callbacks.frameRecorded?.(res); + case 'interruptionBegin': + return callbacks.interruptionBegin?.(res); + case 'interruptionEnd': + return callbacks.interruptionEnd?.(res); + } + }; + const createFile = (supportFormats: string[], format: string, defaultExt: string)=>{ + const TEMP_PATH = getEnv3().TEMP_PATH as string; + const filePath = `${TEMP_PATH}/recorder/`; + if (!fileIo2.accessSync(filePath)) { + fileIo2.mkdirSync(filePath, true); + } + const fileName = `${Date.now()}.${supportFormats.includes(format ?? '') ? format?.toLocaleLowerCase() : defaultExt}`; + const file: fileIo2.File = fileIo2.openSync(`${filePath}${fileName}`, fileIo2.OpenMode.READ_WRITE | fileIo2.OpenMode.CREATE); + return file; + }; + const permissionDenied = ()=>{ + throw new Error('Permission MICROPHONE denied'); + }; + const supportFormats = [ + 'aac' + ]; + class AVRecorder implements RecorderManager { + private avRecorder?: media3.AVRecorder; + private isFirstStart: boolean = true; + constructor(){} + private onStateChange(file: fileIo3.File) { + if (this.avRecorder) { + this.avRecorder.on('stateChange', async (state, reason)=>{ + switch(state){ + case 'idle': + this.isFirstStart = true; + break; + case 'started': + if (this.isFirstStart) { + this.isFirstStart = false; + onRecorderStateChange('start'); + } else { + if (reason === media3.StateChangeReason.BACKGROUND) { + onRecorderStateChange('interruptionEnd'); + } + onRecorderStateChange('resume'); + } + break; + case 'paused': + if (reason === media3.StateChangeReason.BACKGROUND) { + onRecorderStateChange('interruptionBegin'); + } + onRecorderStateChange('pause'); + break; + case 'stopped': + onRecorderStateChange('stop', { + tempFilePath: file.path + } as StateChangeRes); + fileIo3.closeSync(file); + break; + } + }); + this.avRecorder.on('error', (err: BusinessError8)=>{ + onRecorderStateChange('error', { + errMsg: `${err.message} ${err.code}` + } as StateChangeRes); + }); + } + } + private async release() { + if (this.avRecorder !== undefined) { + await this.avRecorder.reset(); + await this.avRecorder.release(); + this.avRecorder = undefined; + } + } + async start(options: RecorderManagerStartOptions): Promise<void> { + if (this.avRecorder !== undefined) { + await this.release(); + } + this.avRecorder = await media3.createAVRecorder(); + const _options_sampleRate = options.sampleRate, sampleRate = _options_sampleRate == null ? 48000 : _options_sampleRate, _options_numberOfChannels = options.numberOfChannels, numberOfChannels = _options_numberOfChannels == null ? 2 : _options_numberOfChannels, _options_encodeBitRate = options.encodeBitRate, encodeBitRate = _options_encodeBitRate == null ? 48000 : _options_encodeBitRate, _options_duration = options.duration, duration = _options_duration == null ? null : _options_duration; + const file = createFile(supportFormats, options.format ?? '', 'aac'); + this.onStateChange(file); + const audioProfile: media3.AVRecorderProfile = { + audioBitrate: encodeBitRate!, + audioChannels: numberOfChannels!, + audioCodec: media3.CodecMimeType.AUDIO_AAC, + audioSampleRate: sampleRate!, + fileFormat: media3.ContainerFormatType.CFT_MPEG_4A + }; + const audioConfig: media3.AVRecorderConfig = { + audioSourceType: media3.AudioSourceType.AUDIO_SOURCE_TYPE_MIC, + profile: audioProfile, + url: 'fd://' + file.fd + }; + UTSHarmony.requestSystemPermission([ + 'ohos.permission.MICROPHONE' + ], async (allRight: boolean)=>{ + if (allRight) { + await this.avRecorder?.prepare(audioConfig); + await this.avRecorder?.start(); + if (duration) { + setTimeout(async ()=>{ + await this.avRecorder?.stop(); + }, duration); + } + } else { + permissionDenied(); + } + }, permissionDenied); + } + async pause(): Promise<void> { + if (this.avRecorder !== undefined && this.avRecorder.state === 'started') { + await this.avRecorder.pause(); + } + } + async resume(): Promise<void> { + if (this.avRecorder !== undefined && this.avRecorder.state === 'paused') { + await this.avRecorder.resume(); + } + } + async stop(): Promise<void> { + if (this.avRecorder !== undefined && (this.avRecorder.state === 'started' || this.avRecorder.state === 'paused')) { + await this.avRecorder.stop(); + await this.release(); + this.isFirstStart = true; + } + } + onStart(options: (result: Object) => void): void { + setRecordStateCallback('start', options); + } + onPause(options: (result: Object) => void): void { + setRecordStateCallback('pause', options); + } + onStop(options: (result: RecorderManagerOnStopResult) => void): void { + setRecordStateCallback('stop', options); + } + onFrameRecorded(options: (result: Object) => void): void { + setRecordStateCallback('frameRecorded', options); + } + onError(options: (result: Object) => void): void { + setRecordStateCallback('error', options); + } + onResume(options: (result: Object) => void): void { + setRecordStateCallback('resume', options); + } + onInterruptionBegin(options: (result: Object) => void): void { + setRecordStateCallback('interruptionBegin', options); + } + onInterruptionEnd(options: (result: Object) => void): void { + setRecordStateCallback('interruptionEnd', options); + } + } + let RECORDER_MANAGER: AVRecorder | null = null; + const DEFAULT_DURATION = 60000; + const MAX_DURATION = 60000 * 10; + const DEFAULT_FORMAT = 'aac'; + class RecorderManagerImpl implements RecorderManager { + start(options: RecorderManagerStartOptions | null = null): void { + if (options == null) options = {} as RecorderManagerStartOptions; + if (!options.format) options.format = DEFAULT_FORMAT; + if (options.duration == null) { + options.duration = DEFAULT_DURATION; + } + if (options.duration > MAX_DURATION) { + options.duration = MAX_DURATION; + } + if (supportFormats.includes(options.format ?? '')) { + RECORDER_MANAGER = new AVRecorder(); + } + if (RECORDER_MANAGER) { + RECORDER_MANAGER.start(options); + } else { + onRecorderStateChange('error', { + errMsg: `format not supported. Only supported ${supportFormats.join(',')}` + } as StateChangeRes); + } + } + pause(): void { + if (RECORDER_MANAGER) RECORDER_MANAGER.pause(); + } + resume(): void { + if (RECORDER_MANAGER) RECORDER_MANAGER.resume(); + } + async stop() { + if (RECORDER_MANAGER) { + try { + await RECORDER_MANAGER.stop(); + } catch (error) {} + RECORDER_MANAGER = null; + } + } + onStart(options: (result: Object) => void): void { + setRecordStateCallback('start', options); + } + onPause(options: (result: Object) => void): void { + setRecordStateCallback('pause', options); + } + onStop(options: (result: RecorderManagerOnStopResult) => void): void { + setRecordStateCallback('stop', options); + } + onFrameRecorded(options: (result: Object) => void): void { + setRecordStateCallback('frameRecorded', options); + } + onError(options: (result: Object) => void): void { + setRecordStateCallback('error', options); + } + onResume(options: (result: Object) => void): void { + setRecordStateCallback('resume', options); + } + onInterruptionBegin(options: (result: Object) => void): void { + setRecordStateCallback('interruptionBegin', options); + } + onInterruptionEnd(options: (result: Object) => void): void { + setRecordStateCallback('interruptionEnd', options); + } + } + let recorderManager: RecorderManager | null = null; + const getRecorderManager: GetRecorderManager = defineSyncApi<RecorderManager>(API_GET_RECORDER_MANAGER, (): RecorderManager =>{ + if (recorderManager) return recorderManager; + else recorderManager = new RecorderManagerImpl(); + return recorderManager; + }) as GetRecorderManager; + const API_GET_SYSTEM_INFO = 'getSystemInfo'; + const API_GET_SYSTEM_INFO_SYNC = 'getSystemInfoSync'; + const API_GET_WINDOW_INFO = 'getWindowInfo'; + const parseDeviceType1 = (deviceType: string): 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'unknown' | 'car' | 'vr' | 'appliance' =>{ + switch(deviceType){ + case 'phone': + return 'phone'; + case 'wearable': + return 'watch'; + case 'tablet': + return 'pad'; + case '2in1': + return 'pc'; + case 'tv': + return 'tv'; + case 'car': + return 'car'; + case 'smartVision': + return 'vr'; + default: + return 'unknown'; + } + }; + const getWindowInfo: GetWindowInfo = defineSyncApi<GetWindowInfoResult>(API_GET_WINDOW_INFO, (): GetWindowInfoResult =>{ + return internalGetWindowInfo() as GetWindowInfoResult; + }) as GetWindowInfo; + const internalGetSystemInfo = (): GetSystemInfoResult =>{ + const appVersion = UTSHarmony.getAppVersion() as ISystemInfoAppVersion; + const appLanguage = I18n2.System.getAppPreferredLanguage(); + const uniCompilerVersion: string = UTSHarmony.getUniCompilerVersion() as string; + const uniCompilerVersionCode: number = parseFloat(uniCompilerVersion); + const uniRuntimeVersion: string = UTSHarmony.getUniRuntimeVersion(); + const windowInfo = internalGetWindowInfo() as GetWindowInfoResult; + const pixelRatio = windowInfo.pixelRatio; + const safeArea = windowInfo.safeArea; + const safeAreaInsets = windowInfo.safeAreaInsets; + const screenHeight = windowInfo.screenHeight; + const screenWidth = windowInfo.screenWidth; + const statusBarHeight = windowInfo.statusBarHeight; + const windowBottom = windowInfo.windowBottom; + const windowHeight = windowInfo.windowHeight; + const windowTop = windowInfo.windowTop; + const windowWidth = windowInfo.windowWidth; + return { + appId: UTSHarmony.getAppId() as string, + appLanguage, + appName: UTSHarmony.getAppName() as string, + appTheme: UTSHarmony.getAppTheme() as string, + appVersion: appVersion.name, + appVersionCode: appVersion.code, + appWgtVersion: appVersion.name, + uniCompilerVersion: uniCompilerVersion, + uniCompilerVersionCode: uniCompilerVersionCode, + uniRuntimeVersion: uniRuntimeVersion, + uniRuntimeVersionCode: parseFloat(uniRuntimeVersion), + uniPlatform: 'app', + deviceBrand: deviceInfo1.brand.toLowerCase(), + deviceId: getDeviceId1(), + deviceModel: deviceInfo1.productModel, + deviceOrientation: 'portrait', + devicePixelRatio: vp2px(1), + deviceType: parseDeviceType1(deviceInfo1.deviceType), + osLanguage: I18n2.System.getSystemLanguage(), + osTheme: UTSHarmony.getOsTheme() as string, + osVersion: deviceInfo1.majorVersion + '.' + deviceInfo1.seniorVersion + '.' + deviceInfo1.featureVersion + '.' + deviceInfo1.buildVersion, + osName: 'harmonyos', + romName: deviceInfo1.distributionOSName, + romVersion: deviceInfo1.distributionOSVersion, + system: deviceInfo1.osFullName, + pixelRatio, + safeArea, + safeAreaInsets, + screenHeight, + screenWidth, + statusBarHeight, + windowBottom, + windowHeight, + windowTop, + windowWidth, + SDKVersion: '', + browserName: '', + browserVersion: '', + ua: '', + language: appLanguage, + brand: deviceInfo1.brand, + model: '', + platform: 'harmonyos', + uniCompileVersion: uniCompilerVersion, + uniCompileVersionCode: uniCompilerVersionCode, + version: '' + } as GetSystemInfoResult; + }; + const getSystemInfoSync: GetSystemInfoSync = defineSyncApi<GetSystemInfoResult>(API_GET_SYSTEM_INFO_SYNC, (): GetSystemInfoResult =>{ + return internalGetSystemInfo(); + }) as GetSystemInfoSync; + const getSystemInfo: GetSystemInfo = defineAsyncApi<GetSystemInfoOptions, GetSystemInfoResult>(API_GET_SYSTEM_INFO, (options: GetSystemInfoOptions, exec: ApiExecutor<GetSystemInfoResult>)=>{ + try { + exec.resolve(internalGetSystemInfo()); + } catch (error) { + exec.reject((error as Error).message); + } + }) as GetSystemInfo; + const getSystemSetting: GetSystemSetting = defineSyncApi<GetSystemSettingResult>('getSystemSetting', (): GetSystemSettingResult =>{ + const defaultDisplay = display.getDefaultDisplaySync(); + const res: GetSystemSettingResult = { + bluetoothEnabled: false, + bluetoothError: null, + locationEnabled: false, + wifiEnabled: false, + wifiError: null, + deviceOrientation: (defaultDisplay.orientation === display.Orientation.PORTRAIT || defaultDisplay.orientation === display.Orientation.PORTRAIT_INVERTED) ? 'portrait' : 'landscape' + }; + try { + if (access.getState() === access.BluetoothState.STATE_ON) res.bluetoothEnabled = true; + } catch (err) { + res.bluetoothError = (err as BusinessError9).message; + } + try { + res.locationEnabled = geoLocationManager.isLocationEnabled(); + } catch (err) {} + try { + res.wifiEnabled = wifiManager.isWifiActive(); + } catch (err) { + res.wifiError = (err as BusinessError9).message; + } + return res; + }) as GetSystemSetting; + const API_HIDE_KEYBOARD = 'hideKeyboard'; + const hideKeyboard: HideKeyboard = defineAsyncApi<HideKeyboardOptions, HideKeyboardSuccess>(API_HIDE_KEYBOARD, (options: HideKeyboardOptions, exec: ApiExecutor<HideKeyboardSuccess>)=>{ + inputMethod.getController().hideTextInput().then(()=>{ + exec.resolve(); + }, (err: Error)=>{ + exec.reject(err.message); + }); + }) as HideKeyboard; + const API_LOAD_FONT_FACE = 'loadFontFace'; + const ApiLoadFontFaceProtocol = new Map<string, ProtocolOptions>([ + [ + 'family', + { + type: 'string', + required: true + } + ], + [ + 'source', + { + type: 'string', + required: true + } + ], + [ + 'desc', + { + type: 'object' + } + ] + ]); + const getFontSrc = (source: string): string =>{ + if (source.startsWith(`url("`) || source.startsWith(`url('`)) { + source = getRealPath2(source.substring(5, source.length - 2)) as string; + } else if (source.startsWith('url(')) { + source = getRealPath2(source.substring(4, source.length - 1)) as string; + } else { + source = getRealPath2(source) as string; + } + return source; + }; + const loadFontFace: LoadFontFace = defineAsyncApi<LoadFontFaceOptions, LoadFontFaceSuccess>(API_LOAD_FONT_FACE, (options: LoadFontFaceOptions, exec: ApiExecutor<LoadFontFaceSuccess>)=>{ + const src = getFontSrc(options.source); + const pages = globalThis.getCurrentPages() as UniPageImpl[]; + const page = pages[pages.length - 1]; + if (!page) { + exec.reject('page is not ready', { + errCode: 99 + } as ApiError); + return; + } + if (page!.$fontFamilySet.has(options.family)) { + return; + } + page!.$fontFamilySet.add(options.family); + page.getNativePage().loadFontFace({ + family: options.family, + source: src, + success: ()=>{ + exec.resolve(); + }, + fail: (err: ApiError)=>{ + exec.reject('', err); + } + } as ESObject); + }, ApiLoadFontFaceProtocol) as LoadFontFace; + const API_MAKE_PHONE_CALL = 'makePhoneCall'; + const MakePhoneCallProtocol = new Map<string, ProtocolOptions>([ + [ + 'phoneNumber', + { + type: 'string', + required: true + } + ] + ]); + const isPromise = (res: Object)=>{ + if ((typeof res === "object" || typeof res === "function") && typeof (res as Promise<void>).then === "function") { + return true; + } + return false; + }; + const dial = (number: string, confirm = true)=>{ + if (!confirm && typeof call.dial === 'function') { + return new Promise<void>((resolve, reject)=>{ + UTSHarmony.requestSystemPermission([ + 'ohos.permission.PLACE_CALL' + ], (allRight: boolean)=>{ + if (allRight) { + call.dial(number).then(()=>{ + resolve(); + }).catch(reject); + } else { + reject('permission denied'); + } + }, ()=>{ + reject('permission denied'); + }); + }); + } else { + return call.makeCall(number); + } + }; + const makePhoneCall: MakePhoneCall = defineAsyncApi<MakePhoneCallOptions, MakePhoneCallSuccess>(API_MAKE_PHONE_CALL, (options: MakePhoneCallOptions, res: ApiExecutor<MakePhoneCallSuccess>)=>{ + const dialRes = dial(options.phoneNumber) as Object as Promise<void>; + if (isPromise(dialRes)) { + dialRes.then(res.resolve).catch((err: BusinessError10<void>)=>{ + res.reject(err.message); + }); + } else { + res.resolve(); + } + }, MakePhoneCallProtocol) as MakePhoneCall; + const API_GET_IMAGE_INFO = 'getImageInfo'; + const GetImageInfoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'src', + { + type: 'string', + required: true + } + ] + ]); + const GetImageInfoApiOptions: ApiOptions<GetImageInfoOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'src', + (src: string, params: GetImageInfoOptions)=>{ + params.src = getRealPath3(src); + } + ] + ]) + }; + const API_CHOOSE_IMAGE = 'chooseImage'; + const ChooseImageApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'count', + { + type: 'number', + required: false + } + ], + [ + 'sizeType', + { + type: 'array', + required: false + } + ], + [ + 'sourceType', + { + type: 'array', + required: false + } + ], + [ + 'extension', + { + type: 'array', + required: false + } + ] + ]); + const ChooseImageApiOptions: ApiOptions<ChooseImageOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'count', + (count: number, params: ChooseImageOptions)=>{ + if (count == null) { + params.count = 9; + } + } + ], + [ + 'sizeType', + (sizeType: string[], params: ChooseImageOptions)=>{ + if (sizeType == null) { + params.sizeType = [ + 'original', + 'compressed' + ]; + } + } + ], + [ + 'sourceType', + (sourceType: string[], params: ChooseImageOptions)=>{ + if (sourceType == null) { + params.sourceType = [ + 'album', + 'camera' + ]; + } + } + ], + [ + 'extension', + (extension: string[], params: ChooseImageOptions)=>{ + if (extension == null) { + params.extension = [ + '*' + ]; + } + } + ] + ]) + }; + const API_GET_VIDEO_INFO = 'getVideoInfo'; + const GetVideoInfoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'src', + { + type: 'string', + required: true + } + ] + ]); + const GetVideoInfoApiOptions: ApiOptions<GetVideoInfoOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'src', + (src: string, params: GetVideoInfoOptions)=>{ + params.src = getRealPath3(src); + } + ] + ]) + }; + const API_CHOOSE_VIDEO = 'chooseVideo'; + const ChooseVideoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'sourceType', + { + type: 'array', + required: false + } + ], + [ + 'compressed', + { + type: 'boolean', + required: false + } + ], + [ + 'maxDuration', + { + type: 'number', + required: false + } + ], + [ + 'camera', + { + type: 'string', + required: false + } + ], + [ + 'extension', + { + type: 'array', + required: false + } + ] + ]); + const ChooseVideoApiOptions: ApiOptions<ChooseVideoOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'sourceType', + (sourceType: string[], params: ChooseVideoOptions)=>{ + if (sourceType == null) { + params.sourceType = [ + 'album', + 'camera' + ]; + } + } + ], + [ + 'compressed', + (compressed: boolean, params: ChooseVideoOptions)=>{ + if (compressed == null) { + params.compressed = true; + } + } + ], + [ + 'maxDuration', + (maxDuration: number, params: ChooseVideoOptions)=>{ + if (maxDuration == null) { + params.maxDuration = 60; + } + } + ], + [ + 'camera', + (camera: string, params: ChooseVideoOptions)=>{ + if (camera == null) { + params.camera = 'back'; + } + } + ], + [ + 'extension', + (extension: string[], params: ChooseVideoOptions)=>{ + if (extension == null) { + params.extension = [ + '*' + ]; + } + } + ] + ]) + }; + const API_PREVIEW_IMAGE = 'previewImage'; + const PreviewImageApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'urls', + { + type: 'array', + required: true + } + ], + [ + 'current', + { + type: 'string', + required: false + } + ] + ]); + const PreviewImageApiOptions: ApiOptions<PreviewImageOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'urls', + (urls: string[], params: PreviewImageOptions)=>{ + params.urls = urls.map((url)=>getRealPath3(url) as string); + } + ] + ]) + }; + const API_CLOSE_PREVIEW_IMAGE = 'closePreviewImage'; + const API_SAVE_IMAGE_TO_PHOTOS_ALBUM = 'saveImageToPhotosAlbum'; + const SaveImageToPhotosAlbumApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'filePath', + { + type: 'string', + required: true + } + ] + ]); + const API_SAVE_VIDEO_TO_PHOTOS_ALBUM = 'saveVideoToPhotosAlbum'; + const SaveVideoToPhotosAlbumApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'filePath', + { + type: 'string', + required: true + } + ] + ]); + const CompressImageApiOptions: ApiOptions<CompressImageOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'src', + (src: string, params: CompressImageOptions)=>{ + if (src) params.src = getRealPath3(src); + } + ], + [ + 'quality', + (quality: number, params: CompressImageOptions)=>{ + if (quality == null) { + params.quality = 80; + } + } + ] + ]) + }; + const CompressImageApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'src', + { + type: 'string', + required: true + } + ], + [ + 'quality', + { + type: 'number' + } + ], + [ + 'compressedWidth', + { + type: 'number' + } + ], + [ + 'compressedHeight', + { + type: 'number' + } + ] + ]); + const API_CHOOSE_FILE = 'chooseFile'; + const CHOOSE_MEDIA_TYPE: string[] = [ + 'all', + 'image', + 'video' + ]; + const CHOOSE_FILE_SOURCE_TYPE: string[] = [ + 'album', + 'camera' + ]; + const ChooseFileApiOptions: ApiOptions<ChooseFileOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'count', + (count: number, params: ChooseFileOptions)=>{ + if (!count || count <= 0) { + params.count = 100; + } + return undefined; + } + ], + [ + 'sourceType', + (sourceType: string[] = [], params: ChooseFileOptions)=>{ + sourceType = sourceType.filter((type)=>CHOOSE_FILE_SOURCE_TYPE.includes(type)); + if (!sourceType.length) { + params.sourceType = [ + 'album', + 'camera' + ]; + } + return undefined; + } + ], + [ + 'type', + (type: string = 'all', params: ChooseFileOptions)=>{ + if (!CHOOSE_MEDIA_TYPE.includes(type)) { + params.type = 'all'; + } + return undefined; + } + ], + [ + 'extension', + (extension: string[], params: ChooseFileOptions)=>{ + if (extension instanceof Array && extension.length === 0) { + return 'param extension should not be empty.'; + } + if (!extension) params.extension = [ + '' + ]; + return undefined; + } + ] + ]) + }; + const ChooseFileApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'count', + { + type: 'number' + } + ], + [ + 'sourceType', + { + type: 'array' + } + ], + [ + 'type', + { + 'type': 'string' + } + ], + [ + 'extension', + { + type: 'array' + } + ] + ]); + const API_COMPRESS_VIDEO = 'compressVideo'; + const CompressVideoApiOptions: ApiOptions<CompressVideoOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'src', + (src: string, params: CompressVideoOptions)=>{ + if (src) params.src = getRealPath3(src); + } + ] + ]) + }; + const CompressVideoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'src', + { + type: 'string', + required: true + } + ], + [ + 'quality', + { + type: 'string' + } + ], + [ + 'bitrate', + { + type: 'number' + } + ], + [ + 'fps', + { + type: 'number' + } + ], + [ + 'resolution', + { + type: 'number' + } + ] + ]); + const getFileName = (path: string)=>{ + const array = path.split('/'); + return array[array.length - 1]; + }; + let id: number = 0; + const _compressImage = (args: CompressImageOptions)=>{ + const imageName = getFileName(args.src); + const imageExt = imageName.split('.').slice(-1)[0]; + const imagePacker: image.ImagePacker = image.createImagePacker(); + const file2 = fileIo4.openSync(args.src, fileIo4.OpenMode.READ_ONLY); + if (!file2) { + throw new Error('open file failed'); + } + const imageSource: image.ImageSource = image.createImageSource(file2.fd); + if (imageSource == null) { + throw new Error('create image source failed'); + } + let decodingOptions: image.DecodingOptions = { + editable: true + }; + if (args.rotate != null) { + decodingOptions.rotate = args.rotate; + } + if (args.compressedHeight != null || args.compressedWidth != null) { + decodingOptions.desiredSize = { + height: (args.compressedHeight ?? args.compressedWidth)!, + width: (args.compressedWidth ?? args.compressedHeight)! + }; + } + const pixelMap = imageSource.createPixelMapSync(decodingOptions); + let format: string = ''; + if ([ + 'jpg', + 'jpe', + 'jpeg', + 'png' + ].includes(imageExt)) { + format = 'image/jpeg'; + } + if (imageExt === 'webp') format = 'image/webp'; + if (!format.length) { + throw new Error('error image format'); + } + const packOptions: image.PackingOption = { + format, + quality: args.quality ?? 80 + }; + const tempFileName = `${Date.now()}_${id++}.${imageExt}`; + const tempDirPath = `${getEnv4().TEMP_PATH}/compress`; + if (!fileIo4.accessSync(tempDirPath)) { + fileIo4.mkdirSync(tempDirPath, true); + } + const tempFilePath: string = `${tempDirPath}/${tempFileName}`; + const file = fileIo4.openSync(tempFilePath, fileIo4.OpenMode.CREATE | fileIo4.OpenMode.READ_WRITE); + return imagePacker.packToFile(pixelMap, file.fd, packOptions).then((_)=>{ + const size = fileIo4.statSync(file.fd).size; + fileIo4.closeSync(file.fd); + pixelMap.release(); + return { + size, + tempFilePath + } as _CompressImageSuccess; + }); + }; + const compressImage: CompressImage = defineAsyncApi<CompressImageOptions, CompressImageSuccess>(API_CHOOSE_IMAGE, (args: CompressImageOptions, executor: ApiExecutor<CompressImageSuccess>)=>{ + try { + _compressImage(args).then((res)=>{ + executor.resolve({ + tempFilePath: res.tempFilePath + } as CompressImageSuccess); + }); + } catch (error) { + executor.reject((error as BusinessError11).message); + } + }, CompressImageApiProtocol, CompressImageApiOptions) as CompressImage; + const _getVideoInfo1 = async (uri: string): Promise<GetVideoInfoSuccess> =>{ + const file = await fs4.open(uri, fs4.OpenMode.READ_ONLY); + const avMetadataExtractor = await media4.createAVMetadataExtractor(); + let metadata: media4.AVMetadata | null = null; + let size: number = 0; + try { + size = (await fs4.stat(file.fd)).size; + avMetadataExtractor.dataSrc = { + fileSize: size, + callback: (buffer: ArrayBuffer, length: number, pos: number | null = null)=>{ + return fs4.readSync(file.fd, buffer, { + offset: pos, + length + } as ReadOptions2); + } + }; + metadata = await avMetadataExtractor.fetchMetadata(); + } catch (error) { + throw error as Error; + } finally{ + await avMetadataExtractor.release(); + await fs4.close(file); + } + const videoOrientationArr = [ + 'up', + 'right', + 'down', + 'left' + ] as MediaOrientation[]; + return { + size: size, + duration: metadata.duration ? Number(metadata.duration) / 1000 : undefined, + width: metadata.videoWidth ? Number(metadata.videoWidth) : undefined, + height: metadata.videoHeight ? Number(metadata.videoHeight) : undefined, + type: metadata.mimeType, + orientation: metadata.videoOrientation ? videoOrientationArr[Number(metadata.videoOrientation) / 90] : undefined + } as GetVideoInfoSuccess; + }; + const _getImageInfo = async (uri: string): Promise<GetImageInfoSuccess> =>{ + const file = await fs4.open(uri, fs4.OpenMode.READ_ONLY); + const imageSource = image1.createImageSource(file.fd); + const imageInfo = await imageSource.getImageInfo(); + let orientation: string = ''; + try { + orientation = await imageSource.getImageProperty(image1.PropertyKey.ORIENTATION); + } catch (error) {} + await imageSource.release(); + await fs4.close(file.fd); + let orientationNum = 0; + if (typeof orientation === 'string') { + const matched = orientation.match(/^Unknown value (\d)$/); + if (matched && matched[1]) { + orientationNum = Number(matched[1]); + } else if (/^\d$/.test(orientation)) { + orientationNum = Number(orientation); + } + } else if (typeof orientation === 'number') { + orientationNum = orientation; + } + let orientationStr: MediaOrientation = 'up'; + switch(orientationNum){ + case 2: + orientationStr = 'up-mirrored'; + break; + case 3: + orientationStr = 'down'; + break; + case 4: + orientationStr = 'down-mirrored'; + break; + case 5: + orientationStr = 'left-mirrored'; + break; + case 6: + orientationStr = 'right'; + break; + case 7: + orientationStr = 'right-mirrored'; + break; + case 8: + orientationStr = 'left'; + break; + case 0: + case 1: + default: + orientationStr = 'up'; + break; + } + return { + path: uri, + width: imageInfo.size.width, + height: imageInfo.size.height, + orientation: orientationStr + } as GetImageInfoSuccess; + }; + const _chooseMedia1 = async (options: _ChooseMediaOptions): Promise<chooseMediaSuccessCallbackResult> =>{ + const photoSelectOptions = new photoAccessHelper2.PhotoSelectOptions(); + const mimeType = options.mimeType; + photoSelectOptions.MIMEType = mimeType; + if (mimeType === photoAccessHelper2.PhotoViewMIMETypes.VIDEO_TYPE) { + photoSelectOptions.maxSelectNumber = 1; + } else { + photoSelectOptions.maxSelectNumber = options.count || 9; + } + photoSelectOptions.isOriginalSupported = options.isOriginalSupported; + photoSelectOptions.isPhotoTakingSupported = !(options.sourceType && !options.sourceType.includes('camera')); + const photoPicker = new photoAccessHelper2.PhotoViewPicker(); + const photoSelectResult = await photoPicker.select(photoSelectOptions); + const uris = photoSelectResult.photoUris; + if (mimeType !== photoAccessHelper2.PhotoViewMIMETypes.VIDEO_TYPE) { + let realUris: string[] = uris; + if (!photoSelectResult.isOriginalPhoto) { + const compressResult = await Promise.all(uris.map((uri): Promise<CompressImageSuccess> =>{ + return _compressImage({ + src: uri, + quality: 80 + } as CompressImageOptions); + })); + realUris = compressResult.map((result)=>result.tempFilePath); + } + return { + tempFiles: realUris.map((uri)=>{ + const file = fs4.openSync(uri, fs4.OpenMode.READ_ONLY); + const stat = fs4.statSync(file.fd); + fs4.closeSync(file); + return { + fileType: 'image', + tempFilePath: uri, + size: stat.size + } as MediaFile; + }) + }; + } + const tempFiles: MediaFile[] = []; + for(let i = 0; i < uris.length; i++){ + const uri = uris[i]; + const videoInfo = await _getVideoInfo1(uri); + tempFiles.push({ + fileType: 'video', + tempFilePath: uri, + size: videoInfo.size, + duration: videoInfo.duration, + width: videoInfo.width, + height: videoInfo.height + } as MediaFile); + } + return { + tempFiles + } as chooseMediaSuccessCallbackResult; + }; + const getMimeTypeFromExtension = (extension: string): string | null =>{ + const typeId = uniformTypeDescriptor.getUniformDataTypeByFilenameExtension('.' + extension); + const typeObj = uniformTypeDescriptor.getTypeDescriptor(typeId); + const mimeTypes = typeObj.mimeTypes; + return mimeTypes[0] || null; + }; + const MediaUniErrors: Map<number, string> = new Map([ + [ + 1101001, + 'user cancel' + ], + [ + 1101002, + 'fail parameter error: parameter.urls should have at least 1 item' + ], + [ + 1101003, + "file not find" + ], + [ + 1101004, + "Failed to load resource" + ], + [ + 1101005, + "No Permission" + ], + [ + 1101006, + "save error" + ], + [ + 1101007, + "crop error" + ], + [ + 1101008, + 'camera error' + ], + [ + 1101009, + "image output failed" + ], + [ + 1101010, + "unexpect error:" + ] + ]); + const getHMCameraPosition1 = (cameraType: CameraPosition1)=>{ + switch(cameraType){ + case 'back': + return camera1.CameraPosition.CAMERA_POSITION_BACK; + case 'front': + return camera1.CameraPosition.CAMERA_POSITION_FRONT; + default: + return camera1.CameraPosition.CAMERA_POSITION_BACK; + } + }; + const takePhoto = async (cameraType: CameraPosition1 = 'back')=>{ + let pickerProfile: cameraPicker1.PickerProfile = { + cameraPosition: getHMCameraPosition1(cameraType) + }; + const res = await cameraPicker1.pick(UTSHarmony.getUIAbilityContext()!, [ + cameraPicker1.PickerMediaType.PHOTO + ], pickerProfile); + const file = fs5.openSync(res.resultUri, fs5.OpenMode.READ_ONLY); + const stat = fs5.statSync(file.fd); + return { + tempFiles: [ + { + tempFilePath: res.resultUri, + size: stat.size + } + ] + } as TakePhotoRes; + }; + const takeVideo = async (args: TakeVideoOptions | null = null)=>{ + let pickerProfile: cameraPicker1.PickerProfile = { + cameraPosition: getHMCameraPosition1(args?.cameraType ?? 'back'), + videoDuration: args?.videoDuration + }; + const res = await cameraPicker1.pick(UTSHarmony.getUIAbilityContext()!, [ + cameraPicker1.PickerMediaType.VIDEO + ], pickerProfile); + return _getVideoInfo1(res.resultUri).then((getVideInfoRes)=>{ + return { + path: res.resultUri, + size: getVideInfoRes.size, + duration: getVideInfoRes.duration!, + width: getVideInfoRes.width!, + height: getVideInfoRes.height!, + type: getVideInfoRes.type!, + orientation: getVideInfoRes.orientation! + } as TakeVideoRes; + }); + }; + const errSubject = 'uni-chooseImage'; + const _chooseImage = (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ + _chooseMedia1({ + mimeType: photoAccessHelper3.PhotoViewMIMETypes.IMAGE_TYPE, + sourceType: [ + "album" + ], + isOriginalSupported: options.sizeType?.includes('original') !== false, + count: options.count! + } as _ChooseMediaOptions).then((chooseMediaRes)=>{ + const tempFiles = chooseMediaRes.tempFiles; + if (tempFiles.length === 0) { + const errMsg = MediaUniErrors.get(1101001) as string; + res.reject(errMsg, { + errCode: 1101001 + } as ApiError); + return; + } + res.resolve({ + errMsg: '', + errSubject, + tempFilePaths: chooseMediaRes.tempFiles.map((file)=>file.tempFilePath), + tempFiles: chooseMediaRes.tempFiles.map((file)=>{ + return { + path: file.tempFilePath, + size: file.size + } as ChooseImageTempFile; + }) + } as ChooseImageSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }; + const _takePhoto = (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ + takePhoto().then((photo)=>{ + res.resolve({ + errMsg: '', + errSubject, + tempFilePaths: photo.tempFiles.map((file)=>file.tempFilePath), + tempFiles: photo.tempFiles.map((tempFile): ChooseImageTempFile =>({ + path: tempFile.tempFilePath, + size: tempFile.size + } as ChooseImageTempFile)) + } as ChooseImageSuccess); + }).catch((err: Error)=>{ + res.reject(err.message); + }); + }; + const chooseImage: ChooseImage = defineAsyncApi<ChooseImageOptions, ChooseImageSuccess>(API_CHOOSE_IMAGE, async (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ + if (options.sourceType?.length === 1 && options.sourceType[0] === 'camera') { + _takePhoto(options, res); + } else if (options.sourceType?.length === 1 && options.sourceType[0] === 'album') { + _chooseImage(options, res); + } else { + const lastWindow = UTSHarmony.getCurrentWindow() as window1.Window; + const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); + UIContextPromptAction.showActionMenu({ + buttons: [ + { + text: '拍照', + color: '#000000' + }, + { + text: '从相册选择', + color: '#000000' + } + ] + } as promptAction2.ActionMenuOptions, (err, ref)=>{ + let index = ref.index; + if (err) { + res.reject('cancel'); + } else { + if (index === 0) { + _takePhoto(options, res); + } else if (index === 1) { + _chooseImage(options, res); + } + } + }); + } + }, ChooseImageApiProtocol, ChooseImageApiOptions) as ChooseImage; + const _chooseVideo = (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ + _chooseMedia1({ + mimeType: photoAccessHelper4.PhotoViewMIMETypes.VIDEO_TYPE, + sourceType: [ + "album" + ], + isOriginalSupported: options.compressed === false + } as _ChooseMediaOptions).then((chooseMediaRes)=>{ + const file = chooseMediaRes.tempFiles[0]; + if (!file) { + const errMsg = MediaUniErrors.get(1101001) as string; + res.reject(errMsg, { + errCode: 1101001 + } as ApiError); + return; + } + res.resolve({ + tempFilePath: file.tempFilePath, + duration: file.duration, + size: file.size, + width: file.width, + height: file.height + } as ChooseVideoSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }; + const _takeVideo = (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ + const takeVideoOptions: TakeVideoOptions = { + cameraType: options.camera! as CameraPosition1, + videoDuration: options.maxDuration! + }; + takeVideo(takeVideoOptions).then((video)=>{ + res.resolve({ + tempFilePath: video.path, + duration: video.duration, + size: video.size, + width: video.width, + height: video.height + } as ChooseVideoSuccess); + }).catch((err: Error)=>{ + res.reject(err.message); + }); + }; + const chooseVideo: ChooseVideo = defineAsyncApi<ChooseVideoOptions, ChooseVideoSuccess>(API_CHOOSE_VIDEO, async (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ + if (options.sourceType?.length === 1 && options.sourceType[0] === 'camera') { + _takeVideo(options, res); + } else if (options.sourceType?.length === 1 && options.sourceType[0] === 'album') { + _chooseVideo(options, res); + } else { + const lastWindow = UTSHarmony.getCurrentWindow() as window2.Window; + const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); + UIContextPromptAction.showActionMenu({ + buttons: [ + { + text: '拍摄', + color: '#000000' + }, + { + text: '从相册选择', + color: '#000000' + } + ] + } as promptAction3.ActionMenuOptions, (err, ref)=>{ + let index = ref.index; + if (err) { + res.reject('cancel'); + } else { + if (index === 0) { + _takeVideo(options, res); + } else if (index === 1) { + _chooseVideo(options, res); + } + } + }); + } + }, ChooseVideoApiProtocol, ChooseVideoApiOptions) as ChooseVideo; + const getImageInfo: GetImageInfo = defineAsyncApi<GetImageInfoOptions, GetImageInfoSuccess>(API_GET_IMAGE_INFO, async (options: GetImageInfoOptions, res: ApiExecutor<GetImageInfoSuccess>)=>{ + let src = options.src; + if (src.startsWith('http:') || src.startsWith('https:')) { + try { + src = await new Promise<string>((resolve, reject)=>{ + uni.downloadFile({ + url: options.src, + success: (res: IGetImageInfoDownloadSuccess)=>{ + resolve(res.tempFilePath); + }, + fail: (err: IGetImageInfoDownloadFail)=>{ + reject(err); + } + } as IGetImageInfoDownloadOptions); + }); + } catch (err) { + const error = err as IGetImageInfoDownloadFail; + res.reject(error.errMsg); + return; + } + } + _getImageInfo(src).then((getImageInfoRes)=>{ + res.resolve(getImageInfoRes); + }, (err: Error)=>{ + res.reject(err.message); + }); + }, GetImageInfoApiProtocol, GetImageInfoApiOptions) as GetImageInfo; + const getVideoInfo: GetVideoInfo = defineAsyncApi<GetVideoInfoOptions, GetVideoInfoSuccess>(API_GET_VIDEO_INFO, (options: GetVideoInfoOptions, res: ApiExecutor<GetVideoInfoSuccess>)=>{ + _getVideoInfo1(options.src).then((getVideInfoRes)=>{ + res.resolve({ + size: getVideInfoRes.size, + duration: getVideInfoRes.duration!, + width: getVideInfoRes.width!, + height: getVideInfoRes.height!, + type: getVideInfoRes.type!, + orientation: getVideInfoRes.orientation! + } as GetVideoInfoSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }, GetVideoInfoApiProtocol, GetVideoInfoApiOptions) as GetVideoInfo; + const previewImage: PreviewImage = defineAsyncApi<PreviewImageOptions, PreviewImageSuccess>(API_PREVIEW_IMAGE, (options: PreviewImageOptions, exec: ApiExecutor<PreviewImageSuccess>)=>{ + throw new Error('previewImage is not implemented yet'); + }, PreviewImageApiProtocol, PreviewImageApiOptions) as PreviewImage; + const closePreviewImage: ClosePreviewImage = defineAsyncApi<ClosePreviewImageOptions, ClosePreviewImageSuccess>(API_CLOSE_PREVIEW_IMAGE, (options: ClosePreviewImageOptions, exec: ApiExecutor<ClosePreviewImageSuccess>)=>{ + throw new Error('closePreviewImage is not implemented yet'); + }) as ClosePreviewImage; + const saveResource = async (src: Resource, dest: string)=>{ + const context = UTSHarmony.getUIAbilityContext() as common.UIAbilityContext; + const resourceManager = context.resourceManager; + const srcPath: string = src.params?.[0] as string; + const destFile = fs6.openSync(dest, fs6.OpenMode.WRITE_ONLY); + const content = await resourceManager.getRawFileContent(srcPath); + await fs6.write(destFile.fd, content.buffer as ArrayBuffer); + await fs6.close(destFile); + }; + const saveUri = async (src: string, dest: string)=>{ + const srcFile = fs6.openSync(src, fs6.OpenMode.READ_ONLY); + const destFile = fs6.openSync(dest, fs6.OpenMode.WRITE_ONLY); + await fs6.copyFile(srcFile.fd, destFile.fd); + await fs6.close(srcFile); + await fs6.close(destFile); + }; + const saveMediaToAlbum = async (fromUri: string, type: 'image' | 'video'): Promise<string | ISaveMediaError> =>{ + const realPath = getResourceStr(fromUri) as string | Resource; + const context = UTSHarmony.getUIAbilityContext() as common.UIAbilityContext; + let fileName = Date.now() + (type === 'image' ? '.png' : '.mp4'); + const isResource = typeof realPath !== 'string'; + if (isResource) { + if (typeof realPath.params?.[0] === 'string') { + fileName = realPath.params?.[0].split('/').pop() || fileName; + } + } else { + fileName = realPath.split('/').pop() || fileName; + } + const phAccessHelper = photoAccessHelper5.getPhotoAccessHelper(context); + const fileNameParts = fileName.split('.'); + const title = fileNameParts[0]; + const fileNameExtension = fileNameParts.pop()!; + const photoCreationConfigs: Array<photoAccessHelper5.PhotoCreationConfig> = [ + { + title, + fileNameExtension, + photoType: type === 'image' ? photoAccessHelper5.PhotoType.IMAGE : photoAccessHelper5.PhotoType.VIDEO + } + ]; + const desFileUris: Array<string> = await phAccessHelper.showAssetsCreationDialog([ + fromUri.startsWith('file://') ? fromUri : fileUri.getUriFromPath(fromUri) + ], photoCreationConfigs); + if (!desFileUris || desFileUris.length === 0) { + return { + code: 1101001, + message: MediaUniErrors.get(1101001) as string + } as ISaveMediaError; + } + const destUri = desFileUris[0]; + if (!destUri.startsWith('file://')) { + return { + code: 1101006, + message: MediaUniErrors.get(1101006) as string + ', code: ' + destUri + } as ISaveMediaError; + } + if (isResource) { + await saveResource(realPath as Resource, destUri); + } else { + await saveUri(realPath as string, destUri); + } + return destUri; + }; + const saveImageToPhotosAlbum: SaveImageToPhotosAlbum = defineAsyncApi<SaveImageToPhotosAlbumOptions, SaveImageToPhotosAlbumSuccess>(API_SAVE_IMAGE_TO_PHOTOS_ALBUM, (options: SaveImageToPhotosAlbumOptions, res: ApiExecutor<SaveImageToPhotosAlbumSuccess>)=>{ + saveMediaToAlbum(options.filePath, 'image').then((uri)=>{ + if (typeof uri === 'object') { + const err = uri as ISaveMediaError; + res.reject(err.message, { + errCode: err.code + } as ApiError); + return; + } + res.resolve({ + path: uri + } as SaveImageToPhotosAlbumSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }, SaveImageToPhotosAlbumApiProtocol) as SaveImageToPhotosAlbum; + const saveVideoToPhotosAlbum: SaveVideoToPhotosAlbum = defineAsyncApi<SaveVideoToPhotosAlbumOptions, SaveVideoToPhotosAlbumSuccess>(API_SAVE_VIDEO_TO_PHOTOS_ALBUM, (options: SaveVideoToPhotosAlbumOptions, res: ApiExecutor<SaveVideoToPhotosAlbumSuccess>)=>{ + saveMediaToAlbum(options.filePath, 'video').then((uri)=>{ + if (typeof uri === 'object') { + const err = uri as ISaveMediaError; + res.reject(err.message, { + errCode: err.code + } as ApiError); + return; + } + res.resolve({} as SaveVideoToPhotosAlbumSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }, SaveVideoToPhotosAlbumApiProtocol) as SaveVideoToPhotosAlbum; + const IMAGES: string[] = [ + "jpg", + "jpe", + "pbm", + "pgm", + "pnm", + "ppm", + "psd", + "pic", + "rgb", + "svg", + "svgz", + "tif", + "xif", + "wbmp", + "wdp", + "xbm", + "ico" + ]; + const VIDEOS: string[] = [ + "3g2", + "3gp", + "avi", + "f4v", + "flv", + "jpgm", + "jpgv", + "m1v", + "m2v", + "mpe", + "mpg", + "mpg4", + "m4v", + "mkv", + "mov", + "qt", + "movie", + "mp4v", + "ogv", + "smv", + "wm", + "wmv", + "wmx", + "wvx" + ]; + const getFile = (url: string)=>{ + const file = fileIo5.openSync(url, fileIo5.OpenMode.READ_ONLY); + const size = fileIo5.statSync(file.fd).size; + const ext = file.name.split('.').pop()!; + return { + path: url, + name: file.name, + size, + type: getMimeTypeFromExtension(ext) ?? ext + } as ChooseFileTempFile; + }; + const chooseFile: ChooseFile = defineAsyncApi<ChooseFileOptions, ChooseFileSuccess>(API_CHOOSE_FILE, (args: ChooseFileOptions, executor: ApiExecutor<ChooseFileSuccess>)=>{ + if ([ + 'image', + 'video' + ].includes(args.type ?? '')) { + if (args.type === 'image') { + chooseImage({ + sourceType: args.sourceType, + success (res: ChooseImageSuccess) { + executor.resolve({ + tempFilePaths: res.tempFilePaths, + tempFiles: res.tempFilePaths.map((url): ChooseFileTempFile =>getFile(url)) + } as ChooseFileSuccess); + }, + fail (err: IMediaError) { + executor.reject(err.errMsg, { + errCode: err.errCode + } as ApiError); + } + } as ChooseImageOptions); + } + if (args.type === 'video') { + chooseVideo({ + sourceType: args.sourceType, + success (res: ChooseVideoSuccess) { + executor.resolve({ + tempFilePaths: [ + res.tempFilePath + ], + tempFiles: [ + getFile(res.tempFilePath) + ] + } as ChooseFileSuccess); + }, + fail (err: IMediaError) { + executor.reject(err.errMsg, { + errCode: err.errCode + } as ApiError); + } + } as ChooseVideoOptions); + } + } else { + try { + let documentSelectOptions = new picker.DocumentSelectOptions(); + let documentPicker = new picker.DocumentViewPicker(UTSHarmony.getUIAbilityContext()!); + documentSelectOptions.selectMode = picker.DocumentSelectMode.FILE; + if (args.count) documentSelectOptions.maxSelectNumber = args.count; + if (args.extension) documentSelectOptions.fileSuffixFilters = args.extension; + if (args.type === 'image') { + documentSelectOptions.fileSuffixFilters = documentSelectOptions.fileSuffixFilters?.concat(IMAGES); + } + if (args.type === 'video') { + documentSelectOptions.fileSuffixFilters = documentSelectOptions.fileSuffixFilters?.concat(VIDEOS); + } + documentPicker.select(documentSelectOptions).then((documentSelectResult: Array<string>)=>{ + let tempFiles = documentSelectResult.map((url): ChooseFileTempFile =>getFile(url)); + if (tempFiles.length !== 0) { + executor.resolve({ + tempFilePaths: documentSelectResult, + tempFiles + } as ChooseFileSuccess); + } else { + executor.reject('cancel'); + } + }).catch((err: BusinessError12)=>{ + executor.reject(err.message, { + errCode: err.code + } as ApiError); + }); + } catch (error) { + let err: BusinessError12 = error as BusinessError12; + executor.reject(err.message, { + errCode: err.code + } as ApiError); + } + } + }, ChooseFileApiProtocol, ChooseFileApiOptions) as ChooseFile; + const getQuality = (quality: string | null = null)=>{ + switch(quality){ + case "low": + return CompressQuality.COMPRESS_QUALITY_LOW; + case 'medium': + return CompressQuality.COMPRESS_QUALITY_MEDIUM; + } + return CompressQuality.COMPRESS_QUALITY_HIGH; + }; + const compressVideo: CompressVideo = defineAsyncApi<CompressVideoOptions, CompressVideoSuccess>(API_COMPRESS_VIDEO, async (args: CompressVideoOptions, executor: ApiExecutor<CompressVideoSuccess>)=>{ + let videoCompressor = new VideoCompressor(); + videoCompressor.compressVideo(UTSHarmony.getUIAbilityContext()!, args.src, getQuality(args.quality!)).then((data: CompressorResponse): void =>{ + if (data.code == CompressorResponseCode.SUCCESS) { + _getVideoInfo1(data.outputPath).then((res)=>{ + executor.resolve({ + tempFilePath: data.outputPath, + size: res.size + } as CompressVideoSuccess); + }); + } else { + executor.reject(data.message, { + errCode: data.code + } as ApiError); + } + }).catch((err: Error)=>{ + executor.reject(err.message); + }); + }, CompressVideoApiProtocol, CompressVideoApiOptions) as CompressVideo; + const API_REQUEST = 'request'; + const RequestApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'url', + { + type: 'string', + required: true + } + ], + [ + 'data', + { + type: 'object', + required: false + } + ], + [ + 'header', + { + type: 'object', + required: false + } + ], + [ + 'method', + { + type: 'string', + required: false + } + ], + [ + 'dataType', + { + type: 'string', + required: false + } + ], + [ + 'responseType', + { + type: 'string', + required: false + } + ], + [ + 'timeout', + { + type: 'number', + required: false + } + ], + [ + 'sslVerify', + { + type: 'boolean', + required: false + } + ], + [ + 'withCredentials', + { + type: 'boolean', + required: false + } + ], + [ + 'firstIpv4', + { + type: 'boolean', + required: false + } + ] + ]); + const RequestApiOptions: ApiOptions<RequestOptions<Object>> = { + formatArgs: new Map<string, Function>([ + [ + 'url', + (url: string, params: RequestOptions<Object>)=>{ + if (url == null) { + throw new Error('url is required'); + } + } + ], + [ + 'method', + (method: string, params: RequestOptions<Object>)=>{ + params.method = (method || 'GET').toUpperCase() as RequestMethod; + } + ], + [ + 'dataType', + (dataType: string, params: RequestOptions<Object>)=>{ + if (dataType == null) { + params.dataType = 'json'; + } + } + ], + [ + 'responseType', + (responseType: string, params: RequestOptions<Object>)=>{ + if (responseType == null) { + params.responseType = 'text'; + } + } + ], + [ + 'timeout', + (timeout: number, params: RequestOptions<Object>)=>{ + if (timeout == null) { + params.timeout = 60000; + } + } + ], + [ + 'sslVerify', + (sslVerify: boolean, params: RequestOptions<Object>)=>{ + if (sslVerify == null) { + params.sslVerify = true; + } + } + ], + [ + 'withCredentials', + (withCredentials: boolean, params: RequestOptions<Object>)=>{ + if (withCredentials == null) { + params.withCredentials = false; + } + } + ], + [ + 'firstIpv4', + (firstIpv4: boolean, params: RequestOptions<Object>)=>{ + if (firstIpv4 == null) { + params.firstIpv4 = false; + } + } + ] + ]) + }; + const API_DOWNLOAD_FILE = 'downloadFile'; + const DownloadFileApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'url', + { + type: 'string', + required: true + } + ], + [ + 'header', + { + type: 'object', + required: false + } + ], + [ + 'timeout', + { + type: 'number', + required: false + } + ] + ]); + const DownloadFileApiOptions: ApiOptions<DownloadFileOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'url', + (url: string, params: DownloadFileOptions)=>{ + if (url == null) { + throw new Error('url is required'); + } + } + ] + ]) + }; + const API_UPLOAD_FILE = 'uploadFile'; + const UploadFileApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'url', + { + type: 'string', + required: true + } + ], + [ + 'filePath', + { + type: 'string', + required: false + } + ], + [ + 'name', + { + type: 'string', + required: false + } + ], + [ + 'header', + { + type: 'object', + required: false + } + ], + [ + 'formData', + { + type: 'object', + required: false + } + ], + [ + 'timeout', + { + type: 'number', + required: false + } + ] + ]); + const UploadFileApiOptions: ApiOptions<UploadFileOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'url', + (url: string, params: UploadFileOptions)=>{ + if (url == null) { + throw new Error('url is required'); + } + } + ], + [ + 'name', + (name: string, params: UploadFileOptions)=>{ + if (name == null) { + params.name = 'file'; + } + } + ] + ]) + }; + const API_CONFIG_MTLS = 'configMTLS'; + const ConfigMTLSApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'certificates', + { + type: 'array', + required: true + } + ] + ]); + const ConfigMTLSApiOptions: ApiOptions<ConfigMTLSOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'certificates', + (certificates: (Certificate[]) | null = null)=>{ + if (!certificates || certificates.some((item)=>typeof item.host !== 'string')) { + return '参数 certificates 配置错误,请确认后重试'; + } + return undefined; + } + ] + ]) + }; + const needsEncoding = (str: string)=>{ + const decoded = decodeURIComponent(str); + if (decoded !== str) { + if (encodeURIComponent(decoded) === str) { + return false; + } + } + return encodeURIComponent(decoded) !== decoded; + }; + const parseUrl = (url: string)=>{ + try { + const urlObj = harmonyUrl.URL.parseURL(url); + urlObj.params.forEach((value, key)=>{ + if (needsEncoding(value)) { + urlObj.params.set(key, value); + } + }); + return urlObj.toString(); + } catch (error) { + return url; + } + }; + const certificates: Certificate[] = []; + const getCertType = (certPath: string): http.CertType =>{ + const certExt = certPath.split('.').pop(); + switch(certExt){ + case 'p12': + return http.CertType.P12; + case 'pem': + return http.CertType.PEM; + default: + return http.CertType.PEM; + } + }; + const getClientCertificate = (url: string): http.ClientCert | undefined =>{ + if (certificates.length === 0) return undefined; + const urlObj = harmonyUrl.URL.parseURL(url); + const cert = certificates.find((certificate)=>certificate.host === urlObj.host); + if (cert) { + return { + certType: getCertType(cert.client!), + certPath: getRealPath4(cert.client!), + keyPath: cert.keyPath ?? '', + keyPassword: cert.clientPassword + } as http.ClientCert; + } + return undefined; + }; + const replaceHttpWithHttps = (url: string): string =>{ + return url.replace(/^http:/, 'https:'); + }; + const getCookieSync = (url: string): string =>{ + return webview.WebCookieManager.fetchCookieSync(replaceHttpWithHttps(url)); + }; + const setCookieSync = (url: string, cookies: string[]): void =>{ + cookies.forEach((cookie)=>{ + let hasSecure = false; + let hasSameSite = false; + let savedCookie = cookie.split(';').map((cookieItem)=>{ + const pair = cookieItem.split('=').map((item)=>item.trim()); + const keyLower = pair[0].toLowerCase(); + if (keyLower === 'secure') { + hasSecure = true; + return cookieItem; + } + if (keyLower === 'samesite') { + hasSameSite = true; + return 'samesite=none'; + } + return cookieItem; + }).join(';'); + if (!hasSecure) { + savedCookie += '; secure'; + } + if (!hasSameSite) { + savedCookie += '; samesite=none'; + } + try { + webview.WebCookieManager.configCookieSync(replaceHttpWithHttps(url), savedCookie); + } catch (error) {} + }); + webview.WebCookieManager.saveCookieAsync(); + }; + const cookiesParse = (header: Record<string, string>)=>{ + let cookiesArr: string[] = []; + const handleCookiesArr = (header['Set-Cookie'] || header['set-cookie'] || []) as string[]; + for(let i = 0; i < handleCookiesArr.length; i++){ + if (handleCookiesArr[i].indexOf('Expires=') !== -1 || handleCookiesArr[i].indexOf('expires=') !== -1) { + cookiesArr.push(handleCookiesArr[i].replace(',', '')); + } else { + cookiesArr.push(handleCookiesArr[i]); + } + } + return cookiesArr; + }; + class RequestTask1 implements RequestTask { + __v_skip: boolean = true; + private _requestTask: IRequestTask; + constructor(requestTask: IRequestTask){ + this._requestTask = requestTask; + } + abort() { + this._requestTask.abort(); + } + onHeadersReceived(callback: Function) { + this._requestTask.onHeadersReceived(callback); + } + offHeadersReceived(callback: Function | null = null) { + this._requestTask.offHeadersReceived(callback); + } + } + const request = defineTaskApi<RequestOptions<Object>, RequestSuccess<Object>, RequestTask>(API_REQUEST, (args: RequestOptions<Object>, exec: ApiExecutor<RequestSuccess<Object>>)=>{ + let header = args.header, method = args.method, data = args.data, dataType = args.dataType, timeout = args.timeout, url = args.url, responseType = args.responseType; + header = header || {} as ESObject; + if (!header!['Cookie'] && !header!['cookie']) { + header!['Cookie'] = getCookieSync(url); + } + let contentType = ''; + const headers = {} as Record<string, Object>; + const headerRecord = header as Object as Record<string, string>; + const headerKeys = Object.keys(headerRecord); + for(let i = 0; i < headerKeys.length; i++){ + const name = headerKeys[i]; + if (name.toLowerCase() === 'content-type') { + contentType = headerRecord[name] as string; + } + headers[name.toLowerCase()] = headerRecord[name]; + } + if (!contentType && method === 'POST') { + headers['Content-Type'] = 'application/json'; + contentType = 'application/json'; + } + if (method === 'GET' && data) { + const dataRecord = data as Record<string, Object>; + const query = Object.keys(dataRecord).map((key)=>{ + return (encodeURIComponent(key) + '=' + encodeURIComponent(dataRecord[key] as string | number | boolean)); + }).join('&'); + url += query ? (url.indexOf('?') > -1 ? '&' : '?') + query : ''; + data = null; + } else if (method !== 'GET' && contentType && contentType.indexOf('application/json') === 0 && data) { + data = JSON.stringify(data); + } else if (method !== 'GET' && contentType && contentType.indexOf('application/x-www-form-urlencoded') === 0 && data) { + const dataRecord = data as Record<string, Object>; + data = Object.keys(dataRecord).map((key)=>{ + return (encodeURIComponent(key) + '=' + encodeURIComponent(dataRecord[key] as number | string | boolean)); + }).join('&'); + } + const httpRequest = http1.createHttp(); + const mp = getCurrentMP1(); + const userAgent = mp.userAgent.fullUserAgent; + if (userAgent && headers && !headers!['User-Agent'] && !headers!['user-agent']) { + headers!['User-Agent'] = userAgent; + } + const emitter = new Emitter2() as IUniRequestEmitter; + const requestTask: IRequestTask = { + abort () { + emitter.off('headersReceive'); + httpRequest.destroy(); + }, + onHeadersReceived (callback: Function) { + emitter.on('headersReceive', callback); + }, + offHeadersReceived (callback: Function | null = null) { + emitter.off('headersReceive', callback); + } + }; + const destroy = ()=>{ + emitter.off('headersReceive'); + httpRequest.destroy(); + }; + mp.on('beforeClose', destroy); + let latestHeaders: Object | null = null; + let lastUrl = url; + httpRequest.on('headersReceive', (headers: Object)=>{ + const realHeaders = headers as Record<string, string | string[]>; + const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; + if (setCookieHeader) { + setCookieSync(lastUrl, setCookieHeader as string[]); + } + latestHeaders = headers; + const location = realHeaders['location'] || realHeaders['Location']; + if (location) { + lastUrl = location as string; + } + }); + const bufs = [] as buffer1.Buffer[]; + httpRequest.on('dataReceive', (data)=>{ + bufs.push(buffer1.from(data)); + }); + httpRequest.requestInStream(parseUrl(url), { + header: headers, + method: (method || 'GET').toUpperCase() as http1.RequestMethod, + extraData: data || undefined, + connectTimeout: timeout ? timeout : undefined, + readTimeout: timeout ? timeout : undefined, + clientCert: getClientCertificate(url) + } as http1.HttpRequestOptions, (err, statusCode)=>{ + if (err) { + exec.reject(err.message); + } else { + const responseData = buffer1.concat(bufs); + let data: ArrayBuffer | string | object = ''; + if (responseType === 'arraybuffer') { + data = responseData.buffer; + } else { + data = responseData.toString('utf8'); + if (dataType === 'json') { + try { + data = JSON.parse(data); + } catch (e) {} + } + } + const headers = latestHeaders as Record<string, string | string[]>; + const oldCookies = headers ? (headers['Set-Cookie'] || headers['set-cookie'] || []) as string[] : [] as string[]; + const cookies = latestHeaders ? cookiesParse(latestHeaders as Record<string, string>) : []; + let newCookies = oldCookies.join(','); + if (newCookies) { + if (headers['Set-Cookie']) { + headers['Set-Cookie'] = newCookies; + } else { + headers['set-cookie'] = newCookies; + } + } + exec.resolve({ + data, + statusCode, + header: latestHeaders!, + cookies: cookies + } as RequestSuccess<Object>); + } + requestTask.offHeadersReceived(); + httpRequest.destroy(); + mp.off('beforeClose', destroy); + }); + return new RequestTask1(requestTask); + }, RequestApiProtocol, RequestApiOptions) as Request<Object>; + const lookupExt = (contentType: string): string | undefined =>{ + const rawContentType = contentType.split(';')[0].trim().toLowerCase(); + return (UTSHarmony.getExtensionFromMimeType(rawContentType) as string | null) || undefined; + }; + const lookupContentTypeWithUri = (uri: string): string | undefined =>{ + const uriArr = uri.split('.'); + if (uriArr.length <= 1) { + return undefined; + } + const ext = uriArr.pop() as string; + return (UTSHarmony.getMimeTypeFromExtension(ext) as string | null) || undefined; + }; + class UploadTask1 implements UploadTask { + __v_skip: boolean = true; + private _uploadTask: IUploadTask; + constructor(uploadTask: IUploadTask){ + this._uploadTask = uploadTask; + } + abort() { + this._uploadTask.abort(); + } + onProgressUpdate(callback: Function) { + this._uploadTask.onProgressUpdate(callback); + } + offProgressUpdate(callback: Function | null = null) { + this._uploadTask.offProgressUpdate(callback); + } + onHeadersReceived(callback: Function) { + this._uploadTask.onHeadersReceived(callback); + } + offHeadersReceived(callback: Function | null = null) { + this._uploadTask.offHeadersReceived(callback); + } + } + const readFile = (filePath: string): ArrayBuffer =>{ + const readFilePath = getRealPath5(filePath) as string; + const file = fs7.openSync(readFilePath, fs7.OpenMode.READ_ONLY); + const stat = fs7.statSync(file.fd); + const data = new ArrayBuffer(stat.size); + fs7.readSync(file.fd, data); + fs7.closeSync(file.fd); + return data; + }; + const uploadFile = defineTaskApi<UploadFileOptions, UploadFileSuccess, UploadTask>(API_UPLOAD_FILE, (args: UploadFileOptions, exec: ApiExecutor<UploadFileSuccess>)=>{ + let url = args.url, timeout = args.timeout, header = args.header, formData = args.formData, files = args.files, filePath = args.filePath, name = args.name; + header = header || {} as ESObject; + if (!header!['Cookie'] && !header!['cookie']) { + header!['Cookie'] = getCookieSync(url); + } + const headers = {} as Record<string, Object>; + if (header) { + const headerRecord = header as Object as Record<string, string>; + const headerKeys = Object.keys(headerRecord); + for(let i = 0; i < headerKeys.length; i++){ + const name = headerKeys[i]; + headers[name.toLowerCase()] = headerRecord[name]; + } + } + headers['Content-Type'] = 'multipart/form-data'; + const multiFormDataList = [] as Array<http2.MultiFormData>; + if (formData) { + const formDataRecord = formData as Object as Record<string, Object>; + const formDataKeys = Object.keys(formDataRecord); + for(let i = 0; i < formDataKeys.length; i++){ + const name = formDataKeys[i]; + multiFormDataList.push({ + name, + contentType: 'text/plain', + data: String(formDataRecord[name]) + } as http2.MultiFormData); + } + } + try { + if (files && files.length) { + for(let i = 0; i < files.length; i++){ + const _files_i = files[i], name = _files_i.name, uri = _files_i.uri; + multiFormDataList.push({ + name: name || 'file', + contentType: lookupContentTypeWithUri(uri) || 'application/octet-stream', + remoteFileName: uri.split('/').pop() || 'no-name', + data: readFile(uri!) + } as http2.MultiFormData); + } + } else if (filePath) { + multiFormDataList.push({ + name: name || 'file', + contentType: lookupContentTypeWithUri(filePath!) || 'application/octet-stream', + remoteFileName: filePath.split('/').pop() || 'no-name', + data: readFile(filePath!) + } as http2.MultiFormData); + } + } catch (error) { + exec.reject((error as Error).message); + return new UploadTask1({ + abort: ()=>{}, + onHeadersReceived: (callback: Function)=>{}, + offHeadersReceived: (callback: Function)=>{}, + onProgressUpdate: (callback: Function)=>{}, + offProgressUpdate: (callback: Function)=>{} + } as IUploadTask); + } + const httpRequest = http2.createHttp(); + const mp = getCurrentMP2(); + const userAgent = mp.userAgent.fullUserAgent; + if (userAgent && !headers['User-Agent'] && !headers['user-agent']) { + headers['User-Agent'] = userAgent; + } + const emitter = new Emitter3() as IUniUploadFileEmitter; + const uploadTask: IUploadTask = { + abort () { + emitter.off('headersReceive'); + emitter.off('progress'); + httpRequest.destroy(); + }, + onHeadersReceived (callback: Function) { + emitter.on('headersReceive', callback); + }, + offHeadersReceived (callback: Function | null = null) { + emitter.off('headersReceive', callback); + }, + onProgressUpdate (callback: Function) { + emitter.on('progress', callback); + }, + offProgressUpdate (callback: Function | null = null) { + emitter.off('progress', callback); + } + }; + const destroy = ()=>{ + emitter.off('headersReceive'); + emitter.off('progress'); + httpRequest.destroy(); + }; + mp.on('beforeClose', destroy); + let lastUrl = url; + httpRequest.on('headersReceive', (headers: Object)=>{ + const realHeaders = headers as Record<string, string | string[]>; + const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; + if (setCookieHeader) { + setCookieSync(lastUrl, setCookieHeader as string[]); + } + const location = realHeaders['location'] || realHeaders['Location']; + if (location) { + lastUrl = location as string; + } + }); + httpRequest.on('dataSendProgress', (ref)=>{ + let sendSize = ref.sendSize, totalSize = ref.totalSize; + emitter.emit('progress', { + progress: Math.floor((sendSize / totalSize) * 100), + totalBytesSent: sendSize, + totalBytesExpectedToSend: totalSize + } as OnProgressUpdateResult); + }); + httpRequest.request(parseUrl(url), { + header: headers, + method: http2.RequestMethod.POST, + connectTimeout: timeout ? timeout : undefined, + readTimeout: timeout ? timeout : undefined, + multiFormDataList, + expectDataType: http2.HttpDataType.STRING, + clientCert: getClientCertificate(url) + } as http2.HttpRequestOptions, (err, res)=>{ + if (err) { + exec.reject(err.message); + } else { + exec.resolve({ + data: res.result as string, + statusCode: res.responseCode + } as UploadFileSuccess); + } + uploadTask.offHeadersReceived(); + uploadTask.offProgressUpdate(); + httpRequest.destroy(); + mp.off('beforeClose', destroy); + }); + return new UploadTask1(uploadTask); + }, UploadFileApiProtocol, UploadFileApiOptions) as UploadFile; + const getPossibleExt = (contentType: string, contentDisposition: string, url: string): string =>{ + const contentDispositionFileNameMatches = contentDisposition.match(/filename="(.*)"/); + const contentDispositionFileName = contentDispositionFileNameMatches ? contentDispositionFileNameMatches[1] : ''; + const contentDispositionExt = contentDispositionFileName ? contentDispositionFileName.split('.').pop() : ''; + if (contentDispositionExt) { + return contentDispositionExt; + } + const urlPath = harmonyUrl1.URL.parseURL(url).pathname; + const urlExt = urlPath.split('/').pop()?.split('.')[1] || ''; + if (urlExt) { + return urlExt; + } + const contentTypeExt = lookupExt(contentType); + return contentTypeExt || ''; + }; + class DownloadTask1 implements DownloadTask { + __v_skip: boolean = true; + private _downloadTask: IDownloadTask; + constructor(downloadTask: IDownloadTask){ + this._downloadTask = downloadTask; + } + abort() { + this._downloadTask.abort(); + } + onProgressUpdate(callback: Function) { + this._downloadTask.onProgressUpdate(callback); + } + offProgressUpdate(callback: Function | null = null) { + this._downloadTask.offProgressUpdate(callback); + } + onHeadersReceived(callback: Function) { + this._downloadTask.onHeadersReceived(callback); + } + offHeadersReceived(callback: Function | null = null) { + this._downloadTask.offHeadersReceived(callback); + } + } + let downloadIndex: [string, number] = [ + '0', + 0 + ]; + const getDownloadFileName = (ext: string)=>{ + let fileName = Date.now() + ''; + if (downloadIndex[0] === fileName) { + downloadIndex[1]++; + if (downloadIndex[1] > 0) { + fileName += '-' + downloadIndex[1]; + } + } else { + downloadIndex[0] = fileName; + downloadIndex[1] = 0; + } + if (ext) { + fileName += '.' + ext; + } + return fileName; + }; + const downloadFile = defineTaskApi<DownloadFileOptions, DownloadFileSuccess, DownloadTask>(API_DOWNLOAD_FILE, (args: DownloadFileOptions, exec: ApiExecutor<DownloadFileSuccess>)=>{ + let url = args.url, timeout = args.timeout, header = args.header, filePath = args.filePath; + header = header || {} as ESObject; + if (!header!['Cookie'] && !header!['cookie']) { + header!['Cookie'] = getCookieSync(url); + } + const httpRequest = http3.createHttp(); + const mp = getCurrentMP3(); + const userAgent = mp.userAgent.fullUserAgent; + if (userAgent && !header!['User-Agent'] && !header!['user-agent']) { + header!['User-Agent'] = userAgent; + } + const emitter = new Emitter4() as IUniDownloadFileEmitter; + const downloadTask: IDownloadTask = { + abort () { + emitter.off('headersReceive'); + emitter.off('progress'); + httpRequest.destroy(); + }, + onHeadersReceived (callback: Function) { + emitter.on('headersReceive', callback); + }, + offHeadersReceived (callback: Function | null = null) { + emitter.off('headersReceive', callback); + }, + onProgressUpdate (callback: Function) { + emitter.on('progress', callback); + }, + offProgressUpdate (callback: Function | null = null) { + emitter.off('progress', callback); + } + }; + const destroy = ()=>{ + downloadTask.abort(); + }; + mp.on('beforeClose', destroy); + let responseContentType = ''; + let responseContentDisposition = ''; + let lastUrl = url; + httpRequest.on('headersReceive', (headers: Object)=>{ + const realHeaders = headers as Record<string, string | string[]>; + responseContentType = realHeaders['content-type'] as string || realHeaders['Content-Type'] as string || ''; + responseContentDisposition = realHeaders['content-disposition'] as string || realHeaders['Content-Disposition'] as string || ''; + const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; + if (setCookieHeader) { + setCookieSync(lastUrl, setCookieHeader as string[]); + } + const location = realHeaders['location'] || realHeaders['Location']; + if (location) { + lastUrl = location as string; + } + }); + httpRequest.on('dataReceiveProgress', (ref)=>{ + let receiveSize = ref.receiveSize, totalSize = ref.totalSize; + emitter.emit('progress', { + progress: Math.floor((receiveSize / totalSize) * 100), + totalBytesWritten: receiveSize, + totalBytesExpectedToWrite: totalSize + } as OnProgressDownloadResult); + }); + const TEMP_PATH = getEnv5().TEMP_PATH as string; + const downloadPath = TEMP_PATH + '/download'; + if (!fs8.accessSync(downloadPath)) { + fs8.mkdirSync(downloadPath, true); + } + let stream: fs8.Stream; + let tempFilePath = ''; + let writePromise = Promise.resolve(0); + const queueWrite = async (data: ArrayBuffer): Promise<number> =>{ + writePromise = writePromise.then(async (total)=>{ + const length = await stream.write(data); + return total + length; + }); + return writePromise; + }; + httpRequest.on('dataReceive', (data)=>{ + if (!stream) { + const ext = getPossibleExt(responseContentType, responseContentDisposition, url); + tempFilePath = filePath ? filePath.replace(/^file:\/\//, '') : downloadPath + '/' + getDownloadFileName(ext); + stream = fs8.createStreamSync(tempFilePath, 'w+'); + } + queueWrite(data); + }); + httpRequest.requestInStream(parseUrl(url), { + header: header ? header : {} as ESObject, + method: http3.RequestMethod.GET, + connectTimeout: timeout ? timeout : undefined, + readTimeout: timeout ? timeout : undefined, + clientCert: getClientCertificate(url) + } as http3.HttpRequestOptions, (err, statusCode)=>{ + let finishPromise: Promise<void> = Promise.resolve(); + if (err) { + exec.reject(err.message); + } else { + finishPromise = writePromise.then(async ()=>{ + await stream.flush(); + await stream.close(); + exec.resolve({ + tempFilePath, + statusCode + } as DownloadFileSuccess); + }).catch((err: Error)=>{ + exec.reject(err.message); + }); + } + finishPromise.then(()=>{ + downloadTask.offHeadersReceived(); + downloadTask.offProgressUpdate(); + httpRequest.destroy(); + mp.off('beforeClose', destroy); + }); + }); + return new DownloadTask1(downloadTask); + }, DownloadFileApiProtocol, DownloadFileApiOptions) as DownloadFile; + const configMTLS: ConfigMTLS = defineAsyncApi<ConfigMTLSOptions, ConfigMTLSSuccess>(API_CONFIG_MTLS, (args: ConfigMTLSOptions, executor: ApiExecutor<ConfigMTLSSuccess>)=>{ + try { + args.certificates.forEach((certificate)=>{ + const certHosts = certificates.map((cert)=>cert.host); + const certHostIndex = certHosts.indexOf(certificate.host); + if (certHostIndex > -1) { + certificates.splice(certHostIndex, 1); + } + certificates.push(certificate); + }); + executor.resolve(); + } catch (error) { + executor.reject((error as BusinessError13).message); + } + }, ConfigMTLSApiProtocol, ConfigMTLSApiOptions) as ConfigMTLS; + const API_LOGIN = 'login'; + const LoginApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'provider', + { + type: 'string' + } + ], + [ + 'timeout', + { + type: 'number' + } + ] + ]); + const API_GET_USER_INFO = 'getUserInfo'; + const GetUserInfoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'provider', + { + type: 'string' + } + ], + [ + 'timeout', + { + type: 'number' + } + ] + ]); + const SERVICE = 'oauth'; + const PROVIDER = 'huawei'; + const login: Login = defineAsyncApi<LoginOptions, LoginSuccess>(API_LOGIN, (args: LoginOptions, executor: ApiExecutor<LoginSuccess>)=>{ + const provider = getUniProvider<UniOAuthProvider>(SERVICE, args.provider ?? PROVIDER); + if (!provider) { + executor.reject('Provider not found.'); + return; + } + provider.login({ + success (res) { + executor.resolve(res); + }, + fail (err) { + executor.reject(err.errMsg); + } + } as LoginOptions); + }, LoginApiProtocol) as Login; + const getUserInfo: GetUserInfo = defineAsyncApi<GetUserInfoOptions, GetUserInfoSuccess>(API_GET_USER_INFO, (args: GetUserInfoOptions, executor: ApiExecutor<GetUserInfoSuccess>)=>{ + const provider = getUniProvider<UniOAuthProvider>(SERVICE, args.provider ?? PROVIDER); + if (!provider) { + executor.reject('Provider not found.'); + return; + } + provider.getUserInfo({ + success (res) { + executor.resolve(res); + }, + fail (err) { + executor.reject(err.errMsg); + } + } as GetUserInfoOptions); + }, GetUserInfoApiProtocol) as GetUserInfo; + const API_OPEN_APP_AUTHORIZE_SETTING = 'openAppAuthorizeSetting'; + const openAppAuthorizeSetting: OpenAppAuthorizeSetting = defineAsyncApi<OpenAppAuthorizeSettingOptions, OpenAppAuthorizeSettingSuccess>(API_OPEN_APP_AUTHORIZE_SETTING, (options: OpenAppAuthorizeSettingOptions, exec: ApiExecutor<OpenAppAuthorizeSettingSuccess>)=>{ + const want: Want = { + bundleName: 'com.huawei.hmos.settings', + abilityName: 'com.huawei.hmos.settings.MainAbility', + uri: 'application_info_entry', + parameters: { + pushParams: bundleManager2.getBundleInfoForSelfSync(bundleManager2.BundleFlag.GET_BUNDLE_INFO_DEFAULT).name + } + } as Want; + const context = UTSHarmony.getUIAbilityContext() as common1.UIAbilityContext; + context.startAbility(want).then(()=>{ + exec.resolve({ + errMsg: '' + } as OpenAppAuthorizeSettingSuccess); + }, (err: Error)=>{ + exec.reject(err.message); + }); + }) as OpenAppAuthorizeSetting; + const API_OPEN_DOCUMENT = 'openDocument'; + const getContentType = (filePath: string, fileType: string | null = null): string | void =>{ + const suffix = fileType || filePath.split('.').pop(); + if (!suffix) { + return; + } + switch(suffix){ + case 'doc': + case 'docx': + return 'application/msword'; + case 'xls': + case 'xlsx': + return 'application/vnd.ms-excel'; + case 'ppt': + case 'pptx': + return 'application/vnd.ms-powerpoint'; + case 'pdf': + return 'application/pdf'; + default: + return; + } + }; + const openDocument: OpenDocument = defineAsyncApi<OpenDocumentOptions, OpenDocumentSuccess>(API_OPEN_DOCUMENT, (options: OpenDocumentOptions, exec: ApiExecutor<OpenDocumentSuccess>)=>{ + const filePath = options.filePath; + const uri = fileUri1.getUriFromPath(filePath.replace(/^file:\/\//, '')); + const fileContentType = getContentType(filePath, options.fileType); + if (!fileContentType) { + exec.reject('file type not supported'); + return; + } + const want: Want1 = { + flags: wantConstant.Flags.FLAG_AUTH_WRITE_URI_PERMISSION | wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION | wantConstant.Flags.FLAG_AUTH_PERSISTABLE_URI_PERMISSION, + action: 'ohos.want.action.viewData', + uri: uri, + type: fileContentType as string + }; + const abilityContext = UTSHarmony.getUIAbilityContext() as common2.UIAbilityContext; + abilityContext.startAbility(want).then(()=>{ + exec.resolve({} as OpenDocumentSuccess); + }, (err: Error)=>{ + exec.reject(err.message); + }); + }) as OpenDocument; + const RequestPaymentUniErrors: Map<RequestPaymentErrorCode, string> = new Map([ + [ + 700600, + 'The payment result is unknown (it may have been successfully paid). Please check the payment status of the order in the merchant order list.' + ], + [ + 701100, + 'Order payment failure.' + ], + [ + 701110, + 'Repeat the request.' + ], + [ + 700601, + 'The user canceled midway.' + ], + [ + 700602, + 'Network connection error.' + ], + [ + 700603, + 'Payment result unknown (may have been successfully paid), please check the payment status of the order in the merchant order list.' + ], + [ + 700607, + 'Payment not completed.' + ], + [ + 700608, + 'Parameter error.' + ], + [ + 700000, + 'Other payment errors.' + ], + [ + 700604, + 'Wechat is not installed.' + ], + [ + 700605, + 'Failed to get provider.' + ], + [ + 700800, + 'URL Scheme is not configured.' + ], + [ + 700801, + 'Universal Link is not configured.' + ] + ]); + const API_REQUEST_PAYMENT = 'requestPayment'; + const requestPayment: RequestPayment = defineAsyncApi<RequestPaymentOptions, RequestPaymentSuccess>(API_REQUEST_PAYMENT, (options: RequestPaymentOptions, exec: ApiExecutor<RequestPaymentSuccess>): void =>{ + const provider = getUniProvider<UniPaymentProvider>('payment', options.provider); + if (!provider) { + exec.reject('Provider not found.'); + return; + } + provider.requestPayment({ + orderInfo: options.orderInfo, + success: (result: RequestPaymentSuccess)=>{ + exec.resolve(result); + }, + fail: (error: RequestPaymentFail)=>{ + const errMsg = RequestPaymentUniErrors.get(error.errCode) ?? ""; + exec.reject(errMsg, { + errCode: error.errCode + } as ApiError); + } + } as RequestPaymentOptions); + }) as RequestPayment; + const API_SHOW_TOAST = 'showToast'; + const ShowToastProtocol = new Map<string, ProtocolOptions>([ + [ + 'title', + { + type: 'string', + required: true + } + ], + [ + 'duration', + { + type: 'number' + } + ] + ]); + const ShowToastApiOptions: ApiOptions<ShowToastOptions> = { + formatArgs: new Map<string, Function | string | number>([ + [ + "title", + "" + ], + [ + "duration", + 1500 + ] + ]) + }; + const API_HIDE_TOAST = 'hideToast'; + const PRIMARY_COLOR = '#007aff'; + const API_SHOW_MODAL = 'showModal'; + const ShowModalProtocol = new Map<string, ProtocolOptions>([ + [ + "title", + { + type: "string" + } + ], + [ + "content", + { + type: "string" + } + ], + [ + "showCancel", + { + type: "boolean" + } + ], + [ + "cancelText", + { + type: "string" + } + ], + [ + "cancelColor", + { + type: "string" + } + ], + [ + "confirmText", + { + type: "string" + } + ], + [ + "confirmColor", + { + type: "string" + } + ] + ]); + const ShowModalApiOptions: ApiOptions<ShowModalOptions> = { + formatArgs: new Map<string, Function | string | boolean>([ + [ + "title", + "" + ], + [ + "content", + "" + ], + [ + "placeholderText", + "" + ], + [ + "showCancel", + true + ], + [ + "editable", + false + ], + [ + "cancelColor", + "#000000" + ], + [ + "confirmColor", + PRIMARY_COLOR + ] + ]) + }; + const API_SHOW_ACTION_SHEET = 'showActionSheet'; + const ShowActionSheetProtocol = new Map<string, ProtocolOptions>([ + [ + "title", + { + type: "string" + } + ], + [ + "itemList", + { + type: "array", + required: true + } + ], + [ + "itemColor", + { + type: "string" + } + ] + ]); + const ShowActionSheetApiOptions: ApiOptions<ShowActionSheetOptions> = { + formatArgs: new Map<string, string>([ + [ + "itemColor", + "#000000" + ] + ]) + }; + const API_SHOW_LOADING = 'showLoading'; + const ShowLoadingProtocol = new Map<string, ProtocolOptions>([ + [ + 'title', + { + type: 'string' + } + ], + [ + 'mask', + { + type: 'boolean' + } + ] + ]); + const ShowLoadingApiOptions: ApiOptions<ShowLoadingOptions> = { + formatArgs: new Map<string, Function | string | boolean>([ + [ + "title", + "" + ], + [ + "mask", + false + ] + ]) + }; + const API_HIDE_LOADING = 'hideLoading'; + const showToast: ShowToast = defineAsyncApi<ShowToastOptions, ShowToastSuccess>(API_SHOW_TOAST, (options: ShowToastOptions, res: ApiExecutor<ShowToastSuccess>)=>{ + try { + const showToastOptions: promptAction4.ShowToastOptions = { + message: options.title, + duration: options.duration!, + alignment: Alignment.Center + }; + if (options.position) { + switch(options.position){ + case 'top': + showToastOptions.alignment = Alignment.Top; + break; + case 'bottom': + showToastOptions.alignment = Alignment.Bottom; + break; + } + } + const window = UTSHarmony.getCurrentWindow() as window.Window; + window.getUIContext().getPromptAction().showToast(showToastOptions); + res.resolve({} as ShowToastSuccess); + } catch (error) { + let message = (error as BusinessError14).message; + res.reject(message); + } + }, ShowToastProtocol, ShowToastApiOptions) as ShowToast; + const hideToast: HideToast = defineAsyncApi(API_HIDE_TOAST, (_, res: ApiExecutor<Object>)=>{}) as HideToast; + const showModal: ShowModal = defineAsyncApi<ShowModalOptions, ShowModalSuccess>(API_SHOW_MODAL, async (args: ShowModalOptions, res: ApiExecutor<ShowModalSuccess>)=>{ + const modalRes = await new Promise<ShowModalSuccess>((resolve, reject)=>{ + const confirmButton: AlertDialogButtonOptions = { + value: args.confirmText ?? '确定', + fontColor: args.confirmColor!, + action: ()=>{ + resolve({ + "confirm": true + } as ShowModalSuccess); + } + }; + const cancelButton: AlertDialogButtonOptions = { + value: args.cancelText ?? '取消', + fontColor: args.cancelColor ?? '#000000', + action: ()=>{ + resolve({ + "cancel": true + } as ShowModalSuccess); + } + }; + const buttons: Array<AlertDialogButtonOptions> = []; + if (args.showCancel) { + buttons.push(cancelButton); + } + buttons.push(confirmButton); + const window = UTSHarmony.getCurrentWindow() as window.Window; + window.getUIContext().showAlertDialog({ + title: args.title ?? '', + message: args.content ?? '', + autoCancel: false, + alignment: DialogAlignment.Center, + buttons, + cancel: ()=>{ + resolve({ + 'cancel': true + } as ShowModalSuccess); + } + } as AlertDialogParamWithOptions); + }); + if (modalRes.confirm) { + modalRes.cancel = false; + } + if (modalRes.cancel) { + modalRes.confirm = false; + } + modalRes.content = null; + res.resolve(modalRes as ShowModalSuccess); + }, ShowModalProtocol, ShowModalApiOptions) as ShowModal; + const showActionSheet: ShowActionSheet = defineAsyncApi<ShowActionSheetOptions, ShowActionSheetSuccess>(API_SHOW_ACTION_SHEET, async (options: ShowActionSheetOptions, res: ApiExecutor<ShowActionSheetSuccess>)=>{ + const actionItemList = options.itemList.filter(Boolean); + if (actionItemList.length === 0) { + return; + } + type ActionMenuButtons = [promptAction5.Button, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?]; + const actionMenuButtons: ActionMenuButtons = [ + { + text: actionItemList[0], + color: options.itemColor! + } + ]; + actionItemList.slice(1).forEach((item)=>{ + actionMenuButtons.push({ + text: item, + color: options.itemColor! + } as promptAction5.Button); + }); + const window = UTSHarmony.getCurrentWindow() as window.Window; + window.getUIContext().getPromptAction().showActionMenu({ + title: options.title, + buttons: actionMenuButtons + } as promptAction5.ActionMenuOptions).then((showACtionSheetRes)=>{ + res.resolve({ + tapIndex: showACtionSheetRes.index + } as ShowActionSheetSuccess); + }).catch((e: Error)=>{ + if (e.message === 'cancel') { + res.reject('cancel'); + return; + } + res.reject(e.message); + }); + }, ShowActionSheetProtocol, ShowActionSheetApiOptions) as ShowActionSheet; + const showLoading: ShowLoading = defineAsyncApi<ShowLoadingOptions, ShowLoadingSuccess>(API_SHOW_LOADING, async (options: ShowLoadingOptions, exec: ApiExecutor<ShowLoadingSuccess>)=>{ + console.log('showLoading is not implemented yet'); + exec.resolve({} as ShowLoadingSuccess); + }, ShowLoadingProtocol, ShowLoadingApiOptions) as ShowLoading; + const hideLoading: HideLoading = defineAsyncApi<IHideLoadingOptions, IHideLoadingSuccess>(API_HIDE_LOADING, (options: IHideLoadingOptions, exec: ApiExecutor<IHideLoadingSuccess>)=>{ + console.log('hideLoading is not implemented yet'); + exec.resolve({} as IHideLoadingSuccess); + }) as HideLoading; + const API_RPX2PX = 'rpx2px'; + const EPS = 1e-4; + const rpx2px: Rpx2px = defineSyncApi<number>(API_RPX2PX, (number: number): number =>{ + const windowStage: harmonyWindow.WindowStage = UTSHarmony.getWindowStage() as harmonyWindow.WindowStage; + let windowWidthInVp: number = 384; + let windowWidthInPx: number = 1344; + if (windowStage) { + const mainWindow: harmonyWindow.Window = windowStage.getMainWindowSync(); + windowWidthInPx = mainWindow.getWindowProperties().windowRect.width; + windowWidthInVp = px2vp(windowWidthInPx); + } + let result = (number / 750) * windowWidthInVp; + if (result < 0) { + result = -result; + } + result = Math.floor(result + EPS); + if (result == 0) { + if (windowWidthInPx == windowWidthInVp) { + result = 1; + } else { + result = 0.5; + } + } + return number < 0 ? -result : result; + }) as Rpx2px; + const API_SCAN_CODE = 'scanCode'; + const HarmonyScanTypeMap = new Map<UniScanOptionsTypes, scanCore.ScanType[]>([ + [ + 'barCode', + [ + scanCore.ScanType.ONE_D_CODE + ] + ], + [ + 'qrCode', + [ + scanCore.ScanType.TWO_D_CODE + ] + ], + [ + 'datamatrix', + [ + scanCore.ScanType.DATAMATRIX_CODE + ] + ], + [ + 'pdf417', + [ + scanCore.ScanType.PDF417_CODE + ] + ] + ]); + const UniScanTypeMap = new Map<HarmonyScanResultTypes, UniScanResultTypes>([ + [ + scanCore.ScanType.AZTEC_CODE, + 'AZTEC' + ], + [ + scanCore.ScanType.CODABAR_CODE, + 'CODABAR' + ], + [ + scanCore.ScanType.CODE128_CODE, + 'CODE_128' + ], + [ + scanCore.ScanType.CODE39_CODE, + 'CODE_39' + ], + [ + scanCore.ScanType.CODE93_CODE, + 'CODE_93' + ], + [ + scanCore.ScanType.DATAMATRIX_CODE, + 'DATA_MATRIX' + ], + [ + scanCore.ScanType.EAN13_CODE, + 'EAN_13' + ], + [ + scanCore.ScanType.EAN8_CODE, + 'EAN_8' + ], + [ + scanCore.ScanType.ITF14_CODE, + 'ITF' + ], + [ + scanCore.ScanType.PDF417_CODE, + 'PDF_417' + ], + [ + scanCore.ScanType.QR_CODE, + 'QR_CODE' + ], + [ + scanCore.ScanType.UPC_A_CODE, + 'UPC_A' + ], + [ + scanCore.ScanType.UPC_E_CODE, + 'UPC_E' + ] + ]); + const scanCode: ScanCode = defineAsyncApi<ScanCodeOptions, ScanCodeSuccess>(API_SCAN_CODE, (options: ScanCodeOptions, exec: ApiExecutor<ScanCodeSuccess>)=>{ + if (!canIUse('SystemCapability.Multimedia.Scan.ScanBarcode')) { + exec.reject('not support'); + return; + } + let scanTypes: scanCore.ScanType[] = []; + if (options.scanType && Array.isArray(options.scanType) && options.scanType.length > 0) { + for(let i = 0; i < options.scanType.length; i++){ + const uniScanType = options.scanType[i]; + const harmonyScanTypes = HarmonyScanTypeMap.get(uniScanType); + if (!harmonyScanTypes) { + continue; + } + scanTypes = scanTypes.concat(harmonyScanTypes); + } + } + if (scanTypes.length === 0) { + scanTypes = [ + scanCore.ScanType.ALL + ]; + } + const scanOptions: scanBarcode.ScanOptions = { + scanTypes, + enableMultiMode: true, + enableAlbum: !options.onlyFromCamera + }; + scanBarcode.startScanForResult(UTSHarmony.getUIAbilityContext()!, scanOptions, (err, data)=>{ + if (err) { + exec.reject(err.message); + return; + } + exec.resolve({ + result: data.originalValue, + scanType: UniScanTypeMap.get(data.scanType as HarmonyScanResultTypes) || '' + } as ScanCodeSuccess); + }); + }) as ScanCode; + const API_SHARE_WITH_SYSTEM = 'shareWithSystem'; + const shareWithSystem = defineAsyncApi<ShareWithSystemOptions, ShareWithSystemSuccess>(API_SHARE_WITH_SYSTEM, (args: ShareWithSystemOptions, exec: ApiExecutor<ShareWithSystemSuccess>)=>{ + const href = args.href; + const imageUrl = args.imageUrl; + const summary = args.summary; + const shareRecords: systemShare.SharedRecord[] = []; + if (href) { + shareRecords.push({ + utd: uniformTypeDescriptor1.UniformDataType.HYPERLINK, + content: href + } as systemShare.SharedRecord); + } + if (imageUrl) { + shareRecords.push({ + utd: uniformTypeDescriptor1.UniformDataType.IMAGE, + uri: imageUrl + } as systemShare.SharedRecord); + } + if (summary) { + shareRecords.push({ + utd: uniformTypeDescriptor1.UniformDataType.TEXT, + content: summary + } as systemShare.SharedRecord); + } + if (shareRecords.length === 0) { + exec.reject('No share data'); + return; + } + const shareData = new systemShare.SharedData(shareRecords[0]); + for(let index = 1; index < shareRecords.length; index++){ + shareData.addRecord(shareRecords[index]); + } + const shareController: systemShare.ShareController = new systemShare.ShareController(shareData); + shareController.show(UTSHarmony.getUIAbilityContext() as common3.UIAbilityContext, {} as systemShare.ShareControllerOptions); + const onDismiss = ()=>{ + shareController.off('dismiss', onDismiss); + exec.resolve({} as ShareWithSystemSuccess); + }; + shareController.on('dismiss', onDismiss); + }) as ShareWithSystem; + const API_GET_STORAGE = 'getStorage'; + const API_GET_STORAGE_SYNC = 'getStorageSync'; + const API_SET_STORAGE = 'setStorage'; + const API_SET_STORAGE_SYNC = 'setStorageSync'; + const API_REMOVE_STORAGE = 'removeStorage'; + const API_REMOVE_STORAGE_SYNC = 'removeStorageSync'; + const API_CLEAR_STORAGE = 'clearStorage'; + const API_CLEAR_STORAGE_SYNC = 'clearStorageSync'; + const API_GET_STORAGE_INFO = 'getStorageInfo'; + const API_GET_STORAGE_INFO_SYNC = 'getStorageInfoSync'; + const parseStorageValue = (value: string): Object =>{ + try { + return JSON.parse(value).data; + } catch (e) { + return value; + } + }; + const stringifyStorageValue = (value: Object): string =>{ + return JSON.stringify({ + type: typeof value, + data: value + } as ESObject); + }; + const stores = new Map<string, dataPreferences.Preferences>(); + const createStore = (): dataPreferences.Preferences =>{ + const id = getCurrentMP4().id; + if (stores.has(id)) { + return stores.get(id)!; + } + const store = dataPreferences.getPreferencesSync(UTSHarmony.getUIAbilityContext() as common4.UIAbilityContext, { + name: `storage.${id}` + } as dataPreferences.Options); + stores.set(id, store); + return store; + }; + const getStorageSync = defineSyncApi<Object>(API_GET_STORAGE_SYNC, (key: string)=>{ + const storeValue = createStore().getSync(key, ''); + if (!storeValue) { + return ''; + } + return parseStorageValue(storeValue as string); + }) as GetStorageSync; + const getStorage = defineAsyncApi<GetStorageOptions, GetStorageSuccess>(API_GET_STORAGE, (args: GetStorageOptions, exec: ApiExecutor<GetStorageSuccess>)=>{ + createStore().get(args.key, '').then((storeValue)=>{ + if (!storeValue) { + return exec.reject('data not found'); + } + let value: Object; + try { + value = parseStorageValue(storeValue as string); + } catch (error) { + exec.reject('data parse error'); + return; + } + exec.resolve({ + data: value + } as GetStorageSuccess); + }); + }) as GetStorage; + const setStorageSync = defineSyncApi<void>(API_SET_STORAGE_SYNC, (key: string, value: Object)=>{ + createStore().putSync(key, stringifyStorageValue(value)); + createStore().flush(); + }) as SetStorageSync; + const setStorage = defineAsyncApi<SetStorageOptions, SetStorageSuccess>(API_SET_STORAGE, (args: SetStorageOptions, exec: ApiExecutor<SetStorageSuccess>)=>{ + try { + createStore().put(args.key, stringifyStorageValue(args.data)).then(()=>{ + createStore().flush(); + exec.resolve({} as ESObject); + }, (error: Error)=>{ + exec.reject(error.message); + }); + } catch (error) { + exec.reject((error as Error).message); + } + }) as SetStorage; + const removeStorageSync = defineSyncApi<void>(API_REMOVE_STORAGE_SYNC, (key: string)=>{ + createStore().deleteSync(key); + createStore().flush(); + }) as RemoveStorageSync; + const removeStorage = defineAsyncApi<RemoveStorageOptions, RemoveStorageSuccess>(API_REMOVE_STORAGE, (args: RemoveStorageOptions, exec: ApiExecutor<RemoveStorageSuccess>)=>{ + createStore().delete(args.key).then(()=>{ + createStore().flush(); + exec.resolve({} as ESObject); + }, (error: Error)=>{ + exec.reject(error.message); + }); + }) as RemoveStorage; + const clearStorageSync = defineSyncApi<void>(API_CLEAR_STORAGE_SYNC, ()=>{ + createStore().clearSync(); + createStore().flush(); + }) as ClearStorageSync; + const clearStorage = defineAsyncApi<ClearStorageOptions, ClearStorageSuccess>(API_CLEAR_STORAGE, (args: ClearStorageOptions, exec: ApiExecutor<ClearStorageSuccess>)=>{ + createStore().clear().then(()=>{ + createStore().flush(); + exec.resolve({} as ESObject); + }, (error: Error)=>{ + exec.reject(error.message); + }); + }) as ClearStorage; + const getStorageInfoSync = defineSyncApi<GetStorageInfoSuccess>(API_GET_STORAGE_INFO_SYNC, ()=>{ + const allData = createStore().getAllSync(); + return { + keys: Object.keys(allData), + currentSize: 0, + limitSize: 0 + } as GetStorageInfoSuccess; + }) as GetStorageInfoSync; + const getStorageInfo = defineAsyncApi<GetStorageInfoOptions, GetStorageInfoSuccess>(API_GET_STORAGE_INFO, (args: GetStorageInfoOptions, exec: ApiExecutor<GetStorageInfoSuccess>)=>{ + createStore().getAll().then((allData)=>{ + exec.resolve({ + keys: Object.keys(allData), + currentSize: 0, + limitSize: 0 + } as GetStorageInfoSuccess); + }); + }) as GetStorageInfo; + const API_CONNECT_SOCKET = 'connectSocket'; + const ConnectSocketApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'url', + { + type: 'string', + required: true + } + ], + [ + 'header', + { + type: 'object', + required: false + } + ], + [ + 'protocols', + { + type: 'string[]', + required: false + } + ] + ]); + const ConnectSocketApiOptions: ApiOptions<ConnectSocketOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'url', + (url: string, params: ConnectSocketOptions)=>{ + if (url == null) { + throw new Error('url is required'); + } + } + ] + ]) + }; + const API_SEND_SOCKET_MESSAGE = 'sendSocketMessage'; + const API_CLOSE_SOCKET = 'closeSocket'; + const tryExec = (fn: Function | null | undefined, ...args: Object[])=>{ + if (!fn) { + return; + } + try { + fn(...args); + } catch (error) { + console.error(error); + } + }; + const GlobalWebsocketEmitter = new Emitter5() as IUniWebsocketEmitter; + const destroySocketTaskEmitter = (emitter: IUniWebsocketEmitter)=>{ + emitter.off('message'); + emitter.off('open'); + emitter.off('error'); + emitter.off('close'); + }; + class SocketTask1 implements SocketTask { + __v_skip: boolean = true; + _destroy: Function; + private _ws: webSocket.WebSocket; + private _emitter: IUniWebsocketEmitter = new Emitter5() as IUniWebsocketEmitter; + constructor(ws: webSocket.WebSocket){ + const mp = getCurrentMP5(); + this._ws = ws; + this._ws.on('message', (_, data)=>{ + const message = { + data + } as OnSocketMessageCallbackResult; + this._emitter.emit('message', message); + const socketTasks = getSocketTasks(mp.id); + if (this === socketTasks[0]) { + GlobalWebsocketEmitter.emit('message', message); + } + }); + this._ws.on('open', (_, data)=>{ + this._emitter.emit('open', data); + const socketTasks = getSocketTasks(mp.id); + if (this === socketTasks[0]) { + GlobalWebsocketEmitter.emit('open', data); + } + }); + this._ws.on('error', (error)=>{ + const message = { + errMsg: error.message + } as OnSocketErrorCallbackResult; + this._emitter.emit('error', message); + const socketTasks = getSocketTasks(mp.id); + if (this === socketTasks[0]) { + GlobalWebsocketEmitter.emit('error', message); + } + }); + this._ws.on('close', (_, data)=>{ + this._emitter.emit('close', data); + const socketTasks = getSocketTasks(mp.id); + if (this === socketTasks[0]) { + GlobalWebsocketEmitter.emit('close', data); + } + const index = socketTasks.indexOf(this); + if (index >= 0) { + socketTasks.splice(index, 1); + } + }); + this._destroy = ()=>{ + destroySocketTaskEmitter(this._emitter); + this.close(); + }; + } + send(options: SendSocketMessageOptions) { + this._ws.send(options.data as string | ArrayBuffer).then((success: boolean)=>{ + if (success) { + tryExec(options.success, {} as GeneralCallbackResult); + } else { + tryExec(options.fail, new UniError('send message failed')); + } + }, (err: Error)=>{ + tryExec(options.fail, new UniError(err.message)); + }); + } + close(options: CloseSocketOptions | null = null) { + this._ws.close({ + code: typeof options?.code === 'number' ? options.code : 1000, + reason: typeof options?.reason === 'string' ? options.reason : '' + } as webSocket.WebSocketCloseOptions).then((success: boolean)=>{ + if (success) { + tryExec(options?.success, {} as GeneralCallbackResult); + } else { + tryExec(options?.fail, new UniError('close socket failed')); + } + }, (err: Error)=>{ + tryExec(options?.fail, new UniError(err.message)); + }); + } + onMessage(callback: Function) { + this._emitter.on('message', callback); + } + onOpen(callback: Function) { + this._emitter.on('open', callback); + } + onError(callback: Function) { + this._emitter.on('error', callback); + } + onClose(callback: Function) { + this._emitter.on('close', callback); + } + } + const socketTasksMap: Map<string, SocketTask1[]> = new Map(); + const addSocketTask = (task: SocketTask1)=>{ + const mp = getCurrentMP5(); + mp.on('beforeClose', task._destroy); + task.onClose(()=>{ + mp.off('beforeClose', task._destroy); + }); + const id = mp.id; + if (!socketTasksMap.has(id)) { + socketTasksMap.set(id, []); + } + const socketTasks = socketTasksMap.get(id) as SocketTask1[]; + socketTasks.push(task); + }; + const getSocketTasks = (id: string | null = null)=>{ + if (!id) { + const mp = getCurrentMP5(); + id = mp.id; + } + return socketTasksMap.get(id!) || []; + }; + const connectSocket = defineTaskApi<ConnectSocketOptions, ConnectSocketSuccess, SocketTask>(API_CONNECT_SOCKET, (args: ConnectSocketOptions, exec: ApiExecutor<ConnectSocketSuccess>)=>{ + const ws = webSocket.createWebSocket(); + const mp = getCurrentMP5(); + ws.connect(args.url, { + header: args.header ? args.header as Object : undefined, + protocol: args.protocols ? Array.isArray(args.protocols) ? args.protocols.join(',') : args.protocols : '' + } as webSocket.WebSocketRequestOptions); + const task = new SocketTask1(ws); + mp.on('beforeClose', task._destroy); + task.onClose(()=>{ + mp.off('beforeClose', task._destroy); + }); + addSocketTask(task); + return task; + }, ConnectSocketApiProtocol, ConnectSocketApiOptions) as ConnectSocket; + const onSocketMessage: OnSocketMessage = (callback: Function)=>{ + GlobalWebsocketEmitter.on('message', callback); + }; + const onSocketOpen: OnSocketOpen = (callback: Function)=>{ + GlobalWebsocketEmitter.on('open', callback); + }; + const onSocketError: OnSocketError = (callback: Function)=>{ + GlobalWebsocketEmitter.on('error', callback); + }; + const onSocketClose: OnSocketClose = (callback: Function)=>{ + GlobalWebsocketEmitter.on('close', callback); + }; + const sendSocketMessage = defineAsyncApi<SendSocketMessageOptions, GeneralCallbackResult>(API_SEND_SOCKET_MESSAGE, (args: SendSocketMessageOptions, exec: ApiExecutor<GeneralCallbackResult>)=>{ + const socketTasks = getSocketTasks(); + const task = socketTasks[0]; + if (task) { + task.send({ + data: args.data, + success (res) { + exec.resolve(res); + }, + fail (err) { + exec.reject('sendSocketMessage:fail'); + } + } as SendSocketMessageOptions); + } else { + exec.reject('WebSocket is not connected'); + } + }) as SendSocketMessage; + const closeSocket = defineAsyncApi<CloseSocketOptions, GeneralCallbackResult>(API_CLOSE_SOCKET, (args: CloseSocketOptions, exec: ApiExecutor<GeneralCallbackResult>)=>{ + const socketTasks = getSocketTasks(); + const task = socketTasks[0]; + if (task) { + task.close({ + code: args.code, + reason: args.reason, + success (res) { + exec.resolve(res); + }, + fail (err) { + exec.reject('closeSocket:fail'); + } + } as CloseSocketOptions); + } else { + exec.reject('WebSocket is not connected'); + } + }) as CloseSocket; + return { + addPhoneContact, + startSoterAuthentication, + checkIsSupportSoterAuthentication, + checkIsSoterEnrolledInDevice, + chooseMedia, + getClipboardData, + setClipboardData, + createInnerAudioContext, + createElement, + $on, + $once, + $off, + $emit, + exit, + saveFile, + getSavedFileList, + getSavedFileInfo, + removeSavedFile, + getFileInfo, + getFileSystemManager, + getAppAuthorizeSetting, + getAppBaseInfo, + getBackgroundAudioManager, + getDeviceInfo, + getElementById, + getNetworkType, + onNetworkStatusChange, + offNetworkStatusChange, + getProvider, + getProviderSync, + getRecorderManager, + getSystemInfo, + getSystemInfoSync, + getWindowInfo, + getSystemSetting, + hideKeyboard, + loadFontFace, + makePhoneCall, + chooseImage, + previewImage, + closePreviewImage, + getImageInfo, + saveImageToPhotosAlbum, + compressImage, + chooseVideo, + saveVideoToPhotosAlbum, + getVideoInfo, + compressVideo, + chooseFile, + request, + uploadFile, + downloadFile, + configMTLS, + login, + getUserInfo, + openAppAuthorizeSetting, + openDocument, + requestPayment, + showToast, + hideToast, + showLoading, + hideLoading, + showModal, + showActionSheet, + rpx2px, + scanCode, + shareWithSystem, + setStorage, + setStorageSync, + getStorage, + getStorageSync, + getStorageInfo, + getStorageInfoSync, + removeStorage, + removeStorageSync, + clearStorage, + clearStorageSync, + connectSocket, + sendSocketMessage, + closeSocket, + onSocketOpen, + onSocketMessage, + onSocketClose, + onSocketError + } as UniExtApi; +} diff --git a/packages/uni-app-harmony/dist-x/uni.component.ets b/packages/uni-app-harmony/dist-x/uni.component.ets new file mode 100644 index 00000000000..df92fdcbd18 --- /dev/null +++ b/packages/uni-app-harmony/dist-x/uni.component.ets @@ -0,0 +1,5 @@ +interface UniExtApi { +} +export function initUniComponentExtApi() { + return {} as UniExtApi; +} diff --git a/packages/uni-app-harmony/dist/uni-api-shared.ets b/packages/uni-app-harmony/dist/uni-api-shared.ets new file mode 100644 index 00000000000..fdda60a6023 --- /dev/null +++ b/packages/uni-app-harmony/dist/uni-api-shared.ets @@ -0,0 +1,142 @@ +import { defineAsyncApi as originalDefineAsyncApi, defineOffApi as originalDefineOffApi, defineOnApi as originalDefineOnApi, defineSyncApi as originalDefineSyncApi, defineTaskApi as originalDefineTaskApi } from "@dcloudio/uni-mp-sdk"; +interface UniProvider { + id: string; + description: string; +} +const providers: Map<String, Map<String, UniProvider>> = new Map(); +function getUniProvider<T extends UniProvider>(service: string, providerName: String): T | null { + return providers.get(service)?.get(providerName) as T | null; +} +function getUniProviders(service: string): UniProvider[] { + const result: UniProvider[] = []; + providers.get(service)?.forEach((provider)=>{ + result.push(provider); + }); + return result; +} +function registerUniProvider<T extends UniProvider>(service: string, providerName: string, provider: T) { + if (!providers.has(service)) { + providers.set(service, new Map()); + } + providers.get(service)?.set(providerName, provider); +} +type Anything = Object | null | undefined; +type NullType = null | undefined; +type FormatArgsValueType = Function | string | number | boolean; +interface AsyncApiSuccessResult { +} +interface AsyncApiResult { +} +interface ApiError { + errMsg?: string | null; + errCode?: number | null; +} +interface ApiExecutor<K> { + resolve: (res?: K | void) => void; + reject: (errMsg?: string, errRes?: ApiError) => void; +} +interface ProtocolOptions { + name?: string | null; + type?: string | null; + required?: boolean | null; + validator?: (value: Object) => boolean | undefined | string; +} +interface ApiOptions<T> { + beforeInvoke?: (args: Object) => boolean | void | string; + beforeAll?: (res: Object) => void; + beforeSuccess?: (res: Object, args: T) => void; + formatArgs?: Map<string, FormatArgsValueType>; +} +interface AsyncMethodOptionLike { + success?: Function | null; +} +const TYPE_MAP = new Map<string, Object>([ + [ + 'string', + String + ], + [ + 'number', + Number + ], + [ + 'boolean', + Boolean + ], + [ + 'array', + Array + ], + [ + 'object', + Object + ] +]); +function getPropType(type: string | NullType): Anything { + if (!type) { + return; + } + return TYPE_MAP.get(type); +} +function buildProtocol(protocol: Map<string, ProtocolOptions> | null = null) { + const originalProtocol = {} as Record<string, Object>; + protocol?.forEach((value, key)=>{ + const protocol = originalProtocol[key] = {} as Record<string, Anything>; + protocol.name = value.name; + protocol.type = getPropType(value.type); + protocol.required = value.required; + protocol.validator = value.validator; + }); + return originalProtocol; +} +function buildOptions(options: ApiOptions<AsyncMethodOptionLike> | null = null) { + const originalFormatArgs = {} as Record<string, FormatArgsValueType>; + const originalOptions = {} as Record<string, Anything>; + if (options) { + if (options.formatArgs) { + options.formatArgs.forEach((value, key)=>{ + originalFormatArgs[key] = value; + }); + } + originalOptions.beforeInvoke = options.beforeInvoke; + originalOptions.beforeAll = options.beforeAll; + originalOptions.beforeSuccess = options.beforeSuccess; + originalOptions.formatArgs = originalFormatArgs; + } + return originalOptions; +} +function defineAsyncApi<T extends AsyncMethodOptionLike, K>(name: string, fn: (options: T, res: ApiExecutor<K>) => void, protocol: Map<string, ProtocolOptions> | null = null, options: ApiOptions<T> | null = null): Function { + const originalProtocol = buildProtocol(protocol); + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineAsyncApi(name, fn, originalProtocol, originalOptions); +} +function defineTaskApi<T, K, TASK>(name: string, fn: (options: T, res: ApiExecutor<K>) => TASK, protocol: Map<string, ProtocolOptions>, options: ApiOptions<T>): Object { + const originalProtocol = buildProtocol(protocol); + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineTaskApi(name, fn, originalProtocol, originalOptions); +} +function defineSyncApi<K>(name: string, fn: Function, protocol: Map<string, ProtocolOptions> | null = null, options: ApiOptions<Object> | null = null): (...args: Object[]) => K { + const originalProtocol = buildProtocol(protocol); + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineSyncApi(name, fn, originalProtocol, originalOptions); +} +function defineOnApi<T>(name: string, fn: () => void, options: ApiOptions<T> | null = null): Function { + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineOnApi(name, fn, originalOptions); +} +function defineOffApi<T>(name: string, fn: () => void, options: ApiOptions<T> | null = null): Function { + const originalOptions = buildOptions(options as ApiOptions<AsyncMethodOptionLike>); + return originalDefineOffApi(name, fn, originalOptions); +} +export { UniProvider as UniProvider, getUniProvider as getUniProvider, getUniProviders as getUniProviders, registerUniProvider as registerUniProvider }; +export { AsyncApiSuccessResult as AsyncApiSuccessResult }; +export { AsyncApiResult as AsyncApiResult }; +export { ApiError as ApiError }; +export { ApiExecutor as ApiExecutor }; +export { ProtocolOptions as ProtocolOptions }; +export { ApiOptions as ApiOptions }; +export { defineAsyncApi as defineAsyncApi }; +export { defineTaskApi as defineTaskApi }; +export { defineSyncApi as defineSyncApi }; +export { defineOnApi as defineOnApi }; +export { defineOffApi as defineOffApi }; diff --git a/packages/uni-app-harmony/dist/uni.api.ets b/packages/uni-app-harmony/dist/uni.api.ets new file mode 100644 index 00000000000..b757b6a33f9 --- /dev/null +++ b/packages/uni-app-harmony/dist/uni.api.ets @@ -0,0 +1,10585 @@ +import Want from '@ohos.app.ability.Want'; +import common from '@ohos.app.ability.common'; +import wantConstant from '@ohos.app.ability.wantConstant'; +import buffer from '@ohos.buffer'; +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; +import deviceInfo from '@ohos.deviceInfo'; +import fs from '@ohos.file.fs'; +import photoAccessHelper from '@ohos.file.photoAccessHelper'; +import inputMethod from '@ohos.inputMethod'; +import media from '@ohos.multimedia.media'; +import connection from '@ohos.net.connection'; +import webSocket from '@ohos.net.webSocket'; +import pasteboard from '@ohos.pasteboard'; +import cryptoFramework from '@ohos.security.cryptoFramework'; +import call from '@ohos.telephony.call'; +import radio from '@ohos.telephony.radio'; +import uri from '@ohos.uri'; +import util from '@ohos.util'; +import webview from '@ohos.web.webview'; +import zlib from '@ohos.zlib'; +import { BusinessError as BusinessError1 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError10 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError11 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError12 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError13 } from '@ohos.base'; +import { BusinessError as BusinessError14 } from '@ohos.base'; +import { BusinessError as BusinessError2 } from '@ohos.base'; +import { BusinessError as BusinessError3 } from '@ohos.base'; +import { BusinessError as BusinessError4 } from '@ohos.base'; +import { BusinessError as BusinessError5 } from '@ohos.base'; +import { BusinessError as BusinessError6 } from '@ohos.base'; +import { BusinessError as BusinessError7 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError8 } from '@kit.BasicServicesKit'; +import { BusinessError as BusinessError9 } from '@kit.BasicServicesKit'; +import { BusinessError } from '@kit.BasicServicesKit'; +import { CompressorResponseCode, CompressorResponse, VideoCompressor, CompressQuality } from '@ohos/videocompressor'; +import { Emitter as Emitter1, onNativePageReady } from "@dcloudio/uni-mp-sdk"; +import { Emitter as Emitter2, getCurrentMP as getCurrentMP1 } from "@dcloudio/uni-mp-sdk"; +import { Emitter as Emitter5, getCurrentMP as getCurrentMP5 } from "@dcloudio/uni-mp-sdk"; +import { Emitter, getCurrentMP } from "@dcloudio/uni-mp-sdk"; +import Hash from '@ohos.file.hash'; +import I18n from '@ohos.i18n'; +import I18n1 from '@ohos.i18n'; +import I18n2 from '@ohos.i18n'; +import { ListFileOptions } from '@ohos.file.fs'; +import { ReadOptions as ReadOptions2 } from '@ohos.file.fs'; +import { ReadOptions } from '@ohos.file.fs'; +import { UTSHarmony } from "@dcloudio/uni-mp-sdk"; +import { UTSObject, UniError, IUniError, string, ApiError, UniProvider, UTSJSONObject, AsyncApiSuccessResult, AsyncApiResult, ApiOptions, ProtocolOptions, defineAsyncApi, ApiExecutor, defineSyncApi, getUniProviders, defineTaskApi, getUniProvider } from "./shared"; +import Want1 from '@ohos.app.ability.Want'; +import { abilityAccessCtrl } from '@kit.AbilityKit'; +import { access } from '@kit.ConnectivityKit'; +import { audio as audio1 } from '@kit.AudioKit'; +import { audio } from '@kit.AudioKit'; +import { avSession } from '@kit.AVSessionKit'; +import { backgroundTaskManager } from '@kit.BackgroundTasksKit'; +import buffer1 from '@ohos.buffer'; +import { bundleManager } from '@kit.AbilityKit'; +import bundleManager1 from '@ohos.bundle.bundleManager'; +import bundleManager2 from '@ohos.bundle.bundleManager'; +import { camera as camera1 } from '@kit.CameraKit'; +import { camera } from '@kit.CameraKit'; +import { cameraPicker as cameraPicker1 } from '@kit.CameraKit'; +import { cameraPicker } from '@kit.CameraKit'; +import common1 from '@ohos.app.ability.common'; +import common2 from '@ohos.app.ability.common'; +import common3 from '@ohos.app.ability.common'; +import common4 from '@ohos.app.ability.common'; +import { contact } from '@kit.ContactsKit'; +import cryptoFramework1 from '@ohos.security.cryptoFramework'; +import dataPreferences from '@ohos.data.preferences'; +import deviceInfo1 from '@ohos.deviceInfo'; +import { display } from '@kit.ArkUI'; +import { fileIo as fileIo1 } from '@kit.CoreFileKit'; +import { fileIo as fileIo2 } from '@kit.CoreFileKit'; +import { fileIo as fileIo3 } from '@kit.CoreFileKit'; +import { fileIo as fileIo4 } from '@kit.CoreFileKit'; +import { fileIo as fs5 } from '@kit.CoreFileKit'; +import { fileIo } from '@kit.CoreFileKit'; +import fileUri from '@ohos.file.fileuri'; +import fileUri1 from '@ohos.file.fileuri'; +import fs1 from '@ohos.file.fs'; +import fs2, { ReadTextOptions } from '@ohos.file.fs'; +import fs3, { ListFileOptions as ListFileOptions1, WriteOptions as OHWriteOptions, ReadOptions as ReadOptions1, ReadTextOptions as ReadTextOptions1 } from '@ohos.file.fs'; +import fs4 from '@ohos.file.fs'; +import fs6 from '@ohos.file.fs'; +import fs7 from '@ohos.file.fs'; +import fs8 from '@ohos.file.fs'; +import { geoLocationManager } from '@kit.LocationKit'; +import { getCurrentMP as getCurrentMP4 } from "@dcloudio/uni-mp-sdk"; +import { getDeviceId } from "@dcloudio/uni-mp-sdk"; +import { getEnv as getEnv1, getRealPath as getRealPath1 } from "@dcloudio/uni-mp-sdk"; +import { getEnv as getEnv2, getRealPath as runtimeGetRealPath } from "@dcloudio/uni-mp-sdk"; +import { getEnv as getEnv3 } from "@dcloudio/uni-mp-sdk"; +import { getEnv as getEnv4 } from "@dcloudio/uni-mp-sdk"; +import { getEnv as getEnv5, Emitter as Emitter4, getCurrentMP as getCurrentMP3 } from "@dcloudio/uni-mp-sdk"; +import { getEnv, getRealPath } from "@dcloudio/uni-mp-sdk"; +import { getOSRuntime as getOSRuntime1, onNativePageReady as onNativePageReady2 } from "@dcloudio/uni-mp-sdk"; +import { getOSRuntime, onNativePageReady as onNativePageReady1 } from "@dcloudio/uni-mp-sdk"; +import { getRealPath as getRealPath2 } from "@dcloudio/uni-mp-sdk"; +import { getRealPath as getRealPath3 } from "@dcloudio/uni-mp-sdk"; +import { getRealPath as getRealPath4 } from "@dcloudio/uni-mp-sdk"; +import { getRealPath as getRealPath5, Emitter as Emitter3, getCurrentMP as getCurrentMP2 } from "@dcloudio/uni-mp-sdk"; +import { getResourceStr } from "@dcloudio/uni-mp-sdk"; +import { getWindowInfo as internalGetWindowInfo, getDeviceId as getDeviceId1 } from "@dcloudio/uni-mp-sdk"; +import harmonyUrl from '@ohos.url'; +import harmonyUrl1 from '@ohos.url'; +import harmonyWindow from '@ohos.window'; +import { http } from '@kit.NetworkKit'; +import http1 from '@ohos.net.http'; +import http2 from '@ohos.net.http'; +import http3 from '@ohos.net.http'; +import { image } from '@kit.ImageKit'; +import image1 from '@ohos.multimedia.image'; +import { media as media1 } from '@kit.MediaKit'; +import { media as media2 } from '@kit.MediaKit'; +import media3 from '@ohos.multimedia.media'; +import media4 from '@ohos.multimedia.media'; +import { notificationManager } from '@kit.NotificationKit'; +import photoAccessHelper1 from '@ohos.file.photoAccessHelper'; +import photoAccessHelper2 from '@ohos.file.photoAccessHelper'; +import photoAccessHelper3 from '@ohos.file.photoAccessHelper'; +import photoAccessHelper4 from '@ohos.file.photoAccessHelper'; +import photoAccessHelper5 from '@ohos.file.photoAccessHelper'; +import { picker, fileIo as fileIo5 } from '@kit.CoreFileKit'; +import { promptAction as promptAction2 } from '@kit.ArkUI'; +import { promptAction as promptAction3 } from '@kit.ArkUI'; +import { promptAction as promptAction4 } from '@kit.ArkUI'; +import { promptAction } from '@kit.ArkUI'; +import promptAction1 from '@ohos.promptAction'; +import promptAction5 from '@ohos.promptAction'; +import { scanCore, scanBarcode } from '@kit.ScanKit'; +import { startPullDownRefresh as internalStartPullDownRefresh, stopPullDownRefresh as internalStopPullDownRefresh } from "@dcloudio/uni-mp-sdk"; +import { systemShare } from '@kit.ShareKit'; +import { uni } from "@dcloudio/uni-mp-sdk"; +import { uniformTypeDescriptor as uniformTypeDescriptor1 } from '@kit.ArkData'; +import { userAuth } from '@kit.UserAuthenticationKit'; +import util1 from '@ohos.util'; +import { wantAgent } from '@kit.AbilityKit'; +import { wifiManager } from '@kit.ConnectivityKit'; +import { window as window1 } from '@kit.ArkUI'; +import { window as window2 } from '@kit.ArkUI'; +import { window } from '@kit.ArkUI'; +type AddPhoneContact = (options: AddPhoneContactOptions) => void; +class AddPhoneContactSuccess extends UTSObject { +} +type AddPhoneContactSuccessCallback = (result: AddPhoneContactSuccess) => void; +type AddPhoneContactFail = UniError; +type AddPhoneContactFailCallback = (result: AddPhoneContactFail) => void; +type AddPhoneContactComplete = Object; +type AddPhoneContactCompleteCallback = (result: AddPhoneContactComplete) => void; +class AddPhoneContactOptions extends UTSObject { + photoFilePath: string | null = null; + nickName: string | null = null; + lastName: string | null = null; + middleName: string | null = null; + firstName: string | null = null; + remark: string | null = null; + mobilePhoneNumber: string | null = null; + weChatNumber: string | null = null; + addressCountry: string | null = null; + addressState: string | null = null; + addressCity: string | null = null; + addressStreet: string | null = null; + addressPostalCode: string | null = null; + organization: string | null = null; + title: string | null = null; + workFaxNumber: string | null = null; + workPhoneNumber: string | null = null; + hostNumber: string | null = null; + email: string | null = null; + url: string | null = null; + workAddressCountry: string | null = null; + workAddressState: string | null = null; + workAddressCity: string | null = null; + workAddressStreet: string | null = null; + workAddressPostalCode: string | null = null; + homeFaxNumber: string | null = null; + homePhoneNumber: string | null = null; + homeAddressCountry: string | null = null; + homeAddressState: string | null = null; + homeAddressCity: string | null = null; + homeAddressStreet: string | null = null; + homeAddressPostalCode: string | null = null; + success: AddPhoneContactSuccessCallback | null = null; + fail: AddPhoneContactFailCallback | null = null; + complete: AddPhoneContactCompleteCallback | null = null; +} +type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void; +type SoterAuthMode = 'fingerPrint' | 'facial' | 'speech'; +class StartSoterAuthenticationSuccess extends UTSObject { + errCode!: number; + authMode!: SoterAuthMode; + resultJSON: string | null = null; + resultJSONSignature: string | null = null; + errMsg!: string; +} +type StartSoterAuthenticationSuccessCallback = (result: StartSoterAuthenticationSuccess) => void; +type StartSoterAuthenticationFail = UniError; +type StartSoterAuthenticationFailCallback = (result: StartSoterAuthenticationFail) => void; +type StartSoterAuthenticationComplete = Object; +type StartSoterAuthenticationCompleteCallback = (result: StartSoterAuthenticationComplete) => void; +class StartSoterAuthenticationOptions extends UTSObject { + requestAuthModes!: SoterAuthMode[]; + challenge: string | null = null; + authContent: string | null = null; + success: StartSoterAuthenticationSuccessCallback | null = null; + fail: StartSoterAuthenticationFailCallback | null = null; + complete: StartSoterAuthenticationCompleteCallback | null = null; +} +type CheckIsSupportSoterAuthentication = (options: CheckIsSupportSoterAuthenticationOptions) => void; +class CheckIsSupportSoterAuthenticationSuccess extends UTSObject { + supportMode!: SoterAuthMode[]; + errMsg!: string; +} +type CheckIsSupportSoterAuthenticationSuccessCallback = (result: CheckIsSupportSoterAuthenticationSuccess) => void; +type CheckIsSupportSoterAuthenticationFail = UniError; +type CheckIsSupportSoterAuthenticationFailCallback = (result: CheckIsSupportSoterAuthenticationFail) => void; +type CheckIsSupportSoterAuthenticationComplete = Object; +type CheckIsSupportSoterAuthenticationCompleteCallback = (result: CheckIsSupportSoterAuthenticationComplete) => void; +class CheckIsSupportSoterAuthenticationOptions extends UTSObject { + success: CheckIsSupportSoterAuthenticationSuccessCallback | null = null; + fail: CheckIsSupportSoterAuthenticationFailCallback | null = null; + complete: CheckIsSupportSoterAuthenticationCompleteCallback | null = null; +} +type CheckIsSoterEnrolledInDevice = (options: CheckIsSoterEnrolledInDeviceOptions) => void; +class CheckIsSoterEnrolledInDeviceSuccess extends UTSObject { + isEnrolled!: boolean; + errMsg!: string; +} +type CheckIsSoterEnrolledInDeviceSuccessCallback = (result: CheckIsSoterEnrolledInDeviceSuccess) => void; +type CheckIsSoterEnrolledInDeviceFail = UniError; +type CheckIsSoterEnrolledInDeviceFailCallback = (result: CheckIsSoterEnrolledInDeviceFail) => void; +type CheckIsSoterEnrolledInDeviceComplete = Object; +type CheckIsSoterEnrolledInDeviceCompleteCallback = (result: CheckIsSoterEnrolledInDeviceComplete) => void; +class CheckIsSoterEnrolledInDeviceOptions extends UTSObject { + checkAuthMode!: SoterAuthMode; + success: CheckIsSoterEnrolledInDeviceSuccessCallback | null = null; + fail: CheckIsSoterEnrolledInDeviceFailCallback | null = null; + complete: CheckIsSoterEnrolledInDeviceCompleteCallback | null = null; +} +type ChooseMediaErrorCode = 1101001 | 1101005 | 1101006 | 1101008; +interface IChooseMediaError extends IUniError { + errCode: ChooseMediaErrorCode; +} +type ChooseMediaFileType = 'image' | 'video'; +class ChooseMediaTempFile extends UTSObject { + tempFilePath!: string; + fileType!: ChooseMediaFileType; + size!: number; + duration: number | null = null; + height: number | null = null; + width: number | null = null; + thumbTempFilePath: string | null = null; +} +export class ChooseMediaSuccess extends UTSObject { + tempFiles!: ChooseMediaTempFile[]; + type!: 'image' | 'video' | 'mix'; +} +type ChooseMediaFail = IChooseMediaError; +type ChooseMediaSuccessCallback = (callback: ChooseMediaSuccess) => void; +type ChooseMediaFailCallback = (callback: ChooseMediaFail) => void; +type ChooseMediaCompleteCallback = (callback: Object) => void; +type ChooseMediaPageOrientation = "auto" | "portrait" | "landscape"; +export class ChooseMediaOptions extends UTSObject { + pageOrientation: ChooseMediaPageOrientation | null = null; + count: number | null = null; + mediaType: (string[]) | null = null; + sourceType: (string[]) | null = null; + maxDuration: number | null = null; + camera: 'front' | 'back' | null = null; + success: (ChooseMediaSuccessCallback) | null = null; + fail: (ChooseMediaFailCallback) | null = null; + complete: (ChooseMediaCompleteCallback) | null = null; +} +export type ChooseMedia = (options: ChooseMediaOptions) => void; +type _MediaOrientation = 'up' | 'down' | 'left' | 'right' | 'up-mirrored' | 'down-mirrored' | 'left-mirrored' | 'right-mirrored'; +class _GetVideoInfoSuccess extends UTSObject { + orientation: _MediaOrientation | null = null; + type: string | null = null; + duration!: number; + size!: number; + height!: number; + width!: number; + fps: number | null = null; + bitrate: number | null = null; +} +interface _MediaFile { + fileType: 'video' | 'image'; + tempFilePath: string; + size: number; + width?: number; + height?: number; + duration?: number; + thumbTempFilePath?: string; +} +interface __ChooseMediaOptions { + mimeType: photoAccessHelper.PhotoViewMIMETypes.VIDEO_TYPE | photoAccessHelper.PhotoViewMIMETypes.IMAGE_TYPE | photoAccessHelper.PhotoViewMIMETypes.IMAGE_VIDEO_TYPE; + count?: number; + sourceType?: ('album' | 'camera')[]; + isOriginalSupported?: boolean; +} +interface _chooseMediaSuccessCallbackResult { + tempFiles: _MediaFile[]; +} +type CameraPosition = 'back' | 'front'; +type UNI_MEDIA_TYPE = 'image' | 'video' | 'mix'; +export type SetClipboardData = (options: SetClipboardDataOptions) => void; +export class SetClipboardDataSuccess extends UTSObject { +} +type SetClipboardDataSuccessCallback = (result: SetClipboardDataSuccess) => void; +type SetClipboardDataFail = UniError; +type SetClipboardDataFailCallback = (result: SetClipboardDataFail) => void; +type SetClipboardDataComplete = Object; +type SetClipboardDataCompleteCallback = (result: SetClipboardDataComplete) => void; +export class SetClipboardDataOptions extends UTSObject { + data!: string; + showToast: boolean | null = null; + success: SetClipboardDataSuccessCallback | null = null; + fail: SetClipboardDataFailCallback | null = null; + complete: SetClipboardDataCompleteCallback | null = null; +} +export type GetClipboardData = (options: GetClipboardDataOptions) => void; +export class GetClipboardDataSuccess extends UTSObject { + data!: string; +} +type GetClipboardDataSuccessCallback = (result: GetClipboardDataSuccess) => void; +type GetClipboardDataFail = UniError; +type GetClipboardDataFailCallback = (result: GetClipboardDataFail) => void; +type GetClipboardDataComplete = Object; +type GetClipboardDataCompleteCallback = (result: GetClipboardDataComplete) => void; +export class GetClipboardDataOptions extends UTSObject { + success: GetClipboardDataSuccessCallback | null = null; + fail: GetClipboardDataFailCallback | null = null; + complete: GetClipboardDataCompleteCallback | null = null; +} +class ClipboardCallbackOptions extends UTSObject { + data!: string; + result!: 'success' | 'fail'; +} +type ClipboardCallback = (res: ClipboardCallbackOptions) => void; +type CreateInnerAudioContext = () => InnerAudioContext; +interface InnerAudioContext { + duration: number; + currentTime: number; + paused: boolean; + src: string; + startTime: number; + buffered: number; + autoplay: boolean; + loop: boolean; + obeyMuteSwitch: boolean; + volume: number; + playbackRate?: number; + pause(): void; + stop(): void; + play(): void; + seek(position: number): void; + destroy(): void; + onCanplay(callback: (result: Object) => void): void; + onPlay(callback: (result: Object) => void): void; + onPause(callback: (result: Object) => void): void; + onStop(callback: (result: Object) => void): void; + onEnded(callback: (result: Object) => void): void; + onTimeUpdate(callback: (result: Object) => void): void; + onError(callback: (result: ICreateInnerAudioContextFail) => void): void; + onWaiting(callback: (result: Object) => void): void; + onSeeking(callback: (result: Object) => void): void; + onSeeked(callback: (result: Object) => void): void; + offCanplay(callback: (result: Object) => void): void; + offPlay(callback: (result: Object) => void): void; + offPause(callback: (result: Object) => void): void; + offStop(callback: (result: Object) => void): void; + offEnded(callback: (result: Object) => void): void; + offTimeUpdate(callback: (result: Object) => void): void; + offError(callback: (result: ICreateInnerAudioContextFail) => void): void; + offWaiting(callback: (result: Object) => void): void; + offSeeking(callback: (result: Object) => void): void; + offSeeked(callback: (result: Object) => void): void; +} +type CreateInnerAudioContextErrorCode = 1107601 | 1107602 | 1107603 | 1107604 | 1107605 | 1107609; +interface ICreateInnerAudioContextFail extends IUniError { + errCode: CreateInnerAudioContextErrorCode; +} +type $OnCallback = Function; +type $On = (eventName: string, callback: $OnCallback) => number; +type $OnceCallback = Function; +type $Once = (eventName: string, callback: $OnceCallback) => number; +type $Off = (eventName: string, callback?: Object | null) => void; +type $Emit = (eventName: string, ...args: Array<Object | null>) => void; +interface IUniEventEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +class ExitSuccess extends UTSObject { + errMsg!: string; +} +type ExitErrorCode = 12001 | 12002 | 12003; +interface IExitError extends IUniError { + errCode: ExitErrorCode; +} +type ExitFail = IExitError; +type ExitSuccessCallback = (res: ExitSuccess) => void; +type ExitFailCallback = (res: ExitFail) => void; +type ExitCompleteCallback = (res: Object) => void; +class ExitOptions extends UTSObject { + success: ExitSuccessCallback | null = null; + fail: ExitFailCallback | null = null; + complete: ExitCompleteCallback | null = null; +} +type Exit = (options?: ExitOptions | null) => void; +export class LegacySaveFileSuccess extends UTSObject { + savedFilePath!: string; +} +type LegacySaveFileSuccessCallback = (res: LegacySaveFileSuccess) => void; +export class LegacySaveFileFail extends UTSObject { +} +type LegacySaveFileFailCallback = (res: LegacySaveFileFail) => void; +type LegacySaveFileCompleteCallback = (res: Object) => void; +export class LegacySaveFileOptions extends UTSObject { + tempFilePath!: string; + success: LegacySaveFileSuccessCallback | null = null; + fail: LegacySaveFileFailCallback | null = null; + complete: LegacySaveFileCompleteCallback | null = null; +} +export class LegacyGetFileInfoSuccess extends UTSObject { + digest!: string; + size!: number; +} +type LegacyGetFileInfoSuccessCallback = (res: LegacyGetFileInfoSuccess) => void; +export class LegacyGetFileInfoFail extends UTSObject { +} +type LegacyGetFileInfoFailCallback = (res: LegacyGetFileInfoFail) => void; +type LegacyGetFileInfoCompleteCallback = (res: Object) => void; +export class LegacyGetFileInfoOptions extends UTSObject { + filePath!: string; + digestAlgorithm: string | null = null; + success: LegacyGetFileInfoSuccessCallback | null = null; + fail: LegacyGetFileInfoFailCallback | null = null; + complete: LegacyGetFileInfoCompleteCallback | null = null; +} +export class LegacyGetSavedFileInfoSuccess extends UTSObject { + size!: number; + createTime!: number; +} +type LegacyGetSavedFileInfoSuccessCallback = (res: LegacyGetSavedFileInfoSuccess) => void; +export class LegacyGetSavedFileInfoFail extends UTSObject { +} +type LegacyGetSavedFileInfoFailCallback = (res: LegacyGetSavedFileInfoFail) => void; +type LegacyGetSavedFileInfoCompleteCallback = (res: Object) => void; +export class LegacyGetSavedFileInfoOptions extends UTSObject { + filePath!: string; + success: LegacyGetSavedFileInfoSuccessCallback | null = null; + fail: LegacyGetSavedFileInfoFailCallback | null = null; + complete: LegacyGetSavedFileInfoCompleteCallback | null = null; +} +export class LegacyRemoveSavedFileSuccess extends UTSObject { +} +type LegacyRemoveSavedFileSuccessCallback = (res: LegacyRemoveSavedFileSuccess) => void; +export class LegacyRemoveSavedFileFail extends UTSObject { +} +type LegacyRemoveSavedFileFailCallback = (res: LegacyRemoveSavedFileFail) => void; +type LegacyRemoveSavedFileCompleteCallback = (res: Object) => void; +export class LegacyRemoveSavedFileOptions extends UTSObject { + filePath!: string; + success: LegacyRemoveSavedFileSuccessCallback | null = null; + fail: LegacyRemoveSavedFileFailCallback | null = null; + complete: LegacyRemoveSavedFileCompleteCallback | null = null; +} +export class LegacySavedFileListItem extends UTSObject { + filePath!: string; + size!: number; + createTime!: number; +} +export class LegacyGetSavedFileListSuccess extends UTSObject { + fileList!: LegacySavedFileListItem[]; +} +type LegacyGetSavedFileListSuccessCallback = (res: LegacyGetSavedFileListSuccess) => void; +export class LegacyGetSavedFileListFail extends UTSObject { +} +type LegacyGetSavedFileListFailCallback = (res: LegacyGetSavedFileListFail) => void; +type LegacyGetSavedFileListCompleteCallback = (res: Object) => void; +export class LegacyGetSavedFileListOptions extends UTSObject { + success: LegacyGetSavedFileListSuccessCallback | null = null; + fail: LegacyGetSavedFileListFailCallback | null = null; + complete: LegacyGetSavedFileListCompleteCallback | null = null; +} +export type SaveFile = (options?: LegacySaveFileOptions | null) => void; +export type GetFileInfo = (options?: LegacyGetFileInfoOptions | null) => void; +export type GetSavedFileInfo = (options?: LegacyGetSavedFileInfoOptions | null) => void; +export type RemoveSavedFile = (options?: LegacyRemoveSavedFileOptions | null) => void; +export type GetSavedFileList = (options?: LegacyGetSavedFileListOptions | null) => void; +class ReadFileSuccessResult extends UTSObject { + data!: Object; +} +class OpenFileSuccessResult extends UTSObject { + fd!: string; + errMsg: string | null = null; +} +class FileManagerSuccessResult extends UTSObject { + errMsg!: string; +} +type FileManagerSuccessCallback = (res: FileManagerSuccessResult) => void; +type FileManagerFailCallback = (res: FileSystemManagerFail) => void; +type FileManagerCompleteCallback = (res: Object) => void; +type ReadFileSuccessCallback = (res: ReadFileSuccessResult) => void; +class ReadFileOptions extends UTSObject { + encoding: "base64" | "utf-8" | "ascii" | null = null; + filePath!: string.URIString; + success: ReadFileSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class WriteFileOptions extends UTSObject { + filePath!: string.URIString; + encoding: "ascii" | "base64" | "utf-8" | null = null; + data!: Object; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class AppendFileOptions extends UTSObject { + filePath!: string.URIString; + encoding: "ascii" | "base64" | "utf-8" | null = null; + data!: Object; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +type OpenFileSuccessCallback = (res: OpenFileSuccessResult) => void; +class OpenFileOptions extends UTSObject { + filePath!: string.URIString; + flag!: "a" | "ax" | "a+" | "ax+" | "r" | "r+" | "w" | "wx" | "w+" | "wx" | "wx+"; + success: OpenFileSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class OpenFileSyncOptions extends UTSObject { + filePath!: string.URIString; + flag!: "a" | "ax" | "a+" | "ax+" | "r" | "r+" | "w" | "wx" | "w+" | "wx" | "wx+"; +} +type UnLinkSuccessCallback = (res: FileManagerSuccessResult) => void; +class UnLinkOptions extends UTSObject { + filePath!: string.URIString; + success: UnLinkSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +type MkDirSuccessCallback = (res: FileManagerSuccessResult) => void; +class MkDirOptions extends UTSObject { + dirPath!: string.URIString; + recursive!: boolean; + success: MkDirSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class RmDirOptions extends UTSObject { + dirPath!: string.URIString; + recursive!: boolean; + success: MkDirSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class ReadDirSuccessResult extends UTSObject { + files!: string[]; + errMsg: string | null = null; +} +type ReadDirSuccessCallback = (res: ReadDirSuccessResult) => void; +class ReadDirOptions extends UTSObject { + dirPath!: string.URIString; + success: ReadDirSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class AccessOptions extends UTSObject { + path!: string.URIString; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class RenameOptions extends UTSObject { + oldPath!: string.URIString; + newPath!: string.URIString; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class CopyFileOptions extends UTSObject { + srcPath!: string.URIString; + destPath!: string.URIString; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class SaveFileOptions extends UTSObject { + tempFilePath!: string.URIString; + filePath: string.URIString | null = null; + success: SaveFileSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +type SaveFileSuccessCallback = (res: SaveFileSuccessResult) => void; +class SaveFileSuccessResult extends UTSObject { + savedFilePath!: string; +} +class GetFileInfoSuccessResult extends UTSObject { + digest!: string; + size!: number; + errMsg!: string; +} +type GetFileInfoSuccessCallback = (res: GetFileInfoSuccessResult) => void; +class GetFileInfoOptions extends UTSObject { + filePath!: string.URIString; + digestAlgorithm: "md5" | "sha1" | null = null; + success: GetFileInfoSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +interface Stats { + mode: number; + size: number; + lastAccessedTime: number; + lastModifiedTime: number; + mIsFile: boolean; + isDirectory(): boolean; + isFile(): boolean; +} +class FileStats extends UTSObject { + path!: string; + stats!: Stats; +} +class StatSuccessResult extends UTSObject { + errMsg!: string; + stats!: FileStats[]; +} +type StatSuccessCallback = (res: StatSuccessResult) => void; +class StatOptions extends UTSObject { + path!: string.URIString; + recursive!: boolean; + success: StatSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class UnzipFileOptions extends UTSObject { + zipFilePath!: string; + targetPath!: string; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class GetSavedFileListResult extends UTSObject { + fileList!: string[]; +} +type GetSavedFileListCallback = (res: GetSavedFileListResult) => void; +class GetSavedFileListOptions extends UTSObject { + success: GetSavedFileListCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class TruncateFileOptions extends UTSObject { + filePath!: string.URIString; + length!: number; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class ReadCompressedFileResult extends UTSObject { + data!: string; +} +type ReadCompressedFileCallback = (res: ReadCompressedFileResult) => void; +class ReadCompressedFileOptions extends UTSObject { + filePath!: string.URIString; + compressionAlgorithm!: "br"; + success: ReadCompressedFileCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class RemoveSavedFileOptions extends UTSObject { + filePath!: string.URIString; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class WriteResult extends UTSObject { + bytesWritten!: number; + errMsg!: string; +} +type WriteCallback = (res: WriteResult) => void; +class WriteOptions extends UTSObject { + fd!: string; + data!: Object; + offset: number | null = null; + length: number | null = null; + position: number | null = null; + encoding: "ascii" | "base64" | "utf-8" | null = null; + success: WriteCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class WriteSyncOptions extends UTSObject { + fd!: string; + data!: Object; + encoding: "ascii" | "base64" | "utf-8" | null = null; + length: number | null = null; + offset: number | null = null; + position: number | null = null; +} +class CloseOptions extends UTSObject { + fd!: string; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class CloseSyncOptions extends UTSObject { + fd!: string; +} +class FStatSuccessResult extends UTSObject { + stats!: Stats; +} +type FStatSuccessCallback = (res: FStatSuccessResult) => void; +class FStatOptions extends UTSObject { + fd!: string; + success: FStatSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class FStatSyncOptions extends UTSObject { + fd!: string; +} +class FTruncateFileOptions extends UTSObject { + fd!: string; + length!: number; + success: FileManagerSuccessCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class FTruncateFileSyncOptions extends UTSObject { + fd!: string; + length!: number; +} +class EntryItem extends UTSObject { + path!: string; + encoding: "ascii" | "base64" | "utf-8" | null = null; +} +class EntriesResult extends UTSObject { + entries!: Map<string, ZipFileItem>; + result!: Map<string, ZipFileItem>; + errMsg: string | null = null; +} +class ZipFileItem extends UTSObject { + data: Object | null = null; + errMsg!: string; +} +type ReadZipEntryCallback = (res: EntriesResult) => void; +class ReadZipEntryOptions extends UTSObject { + filePath!: string.URIString; + encoding: "ascii" | "base64" | "utf-8" | null = null; + entries: EntryItem[] | null = null; + success: ReadZipEntryCallback | null = null; + fail: FileManagerFailCallback | null = null; + complete: FileManagerCompleteCallback | null = null; +} +class ReadSuccessCallbackResult extends UTSObject { + arrayBuffer!: ArrayBuffer; + bytesRead!: number; + errMsg!: string; +} +type ReadSuccessCallback = (result: ReadSuccessCallbackResult) => void; +class ReadOption extends UTSObject { + arrayBuffer!: ArrayBuffer; + fd!: string; + length: number | null = null; + offset: number | null = null; + position: number | null = null; + complete: FileManagerCompleteCallback | null = null; + fail: FileManagerFailCallback | null = null; + success: ReadSuccessCallback | null = null; +} +class ReadSyncOption extends UTSObject { + arrayBuffer!: ArrayBuffer; + fd!: string; + length: number | null = null; + offset: number | null = null; + position: number | null = null; +} +class ReadResult extends UTSObject { + arrayBuffer!: ArrayBuffer; + bytesRead!: number; +} +interface FileSystemManager { + readFile(options: ReadFileOptions): void; + readFileSync(filePath: string, encoding?: string): Object; + writeFile(options: WriteFileOptions): void; + read(option: ReadOption): void; + readSync(option: ReadSyncOption): ReadResult; + writeFileSync(filePath: string, data: Object, encoding?: string): void; + unlink(options: UnLinkOptions): void; + unlinkSync(filePath: string): void; + mkdir(options: MkDirOptions): void; + mkdirSync(dirPath: string, recursive: boolean): void; + rmdir(options: RmDirOptions): void; + rmdirSync(dirPath: string, recursive: boolean): void; + readdir(options: ReadDirOptions): void; + readdirSync(dirPath: string): string[] | null; + access(options: AccessOptions): void; + accessSync(path: string): void; + rename(options: RenameOptions): void; + renameSync(oldPath: string, newPath: string): void; + copyFile(options: CopyFileOptions): void; + copyFileSync(srcPath: string, destPath: string): void; + getFileInfo(options: GetFileInfoOptions): void; + stat(options: StatOptions): void; + statSync(path: string, recursive: boolean): FileStats[]; + appendFile(options: AppendFileOptions): void; + appendFileSync(filePath: string, data: Object, encoding?: string): void; + saveFile(options: SaveFileOptions): void; + saveFileSync(tempFilePath: string, filePath: string | null): string; + removeSavedFile(options: RemoveSavedFileOptions): void; + unzip(options: UnzipFileOptions): void; + getSavedFileList(options: GetSavedFileListOptions): void; + truncate(options: TruncateFileOptions): void; + truncateSync(filePath: string, length?: number): void; + readCompressedFile(options: ReadCompressedFileOptions): void; + readCompressedFileSync(filePath: string, compressionAlgorithm: string): string; + open(options: OpenFileOptions): void; + openSync(options: OpenFileSyncOptions): string; + write(options: WriteOptions): void; + writeSync(options: WriteSyncOptions): WriteResult; + close(options: CloseOptions): void; + closeSync(options: CloseSyncOptions): void; + fstat(options: FStatOptions): void; + fstatSync(options: FStatSyncOptions): Stats; + ftruncate(options: FTruncateFileOptions): void; + ftruncateSync(options: FTruncateFileSyncOptions): void; + readZipEntry(options: ReadZipEntryOptions): void; +} +type GetFileSystemManager = () => FileSystemManager; +type FileSystemManagerErrorCode = 1200002 | 1300002 | 1300013 | 1300021 | 1300022 | 1300066 | 1301003 | 1301005 | 1300201 | 1300202 | 1301111 | 1302003 | 1300009 | 1300010 | 1300011 | 1300012 | 1300015 | 1300014 | 1300016 | 1300017 | 1300018 | 1300019 | 1300020 | 1300021; +type FileSystemManagerFail = IFileSystemManagerFail; +interface IFileSystemManagerFail extends IUniError { + errCode: FileSystemManagerErrorCode; +} +interface CallBack { + success?: Function | null; + fail?: Function | null; + complete?: Function | null; +} +type ModeReflect = Record<string, string>; +type BaseType = number | string | boolean | null | undefined; +type DataType = BaseType | Object | Function | ArrayBuffer | Array<BaseType>; +interface CustomValidReturn { + isValid: false; + err: IFileSystemManagerFail; +} +interface CustomValidReturnValid { + isValid: true; +} +interface ObtainUpperPathReturn { + index: number; + upperPath: string; +} +interface ObtainFileNameReturn { + index: number; + fileName: string; +} +interface CheckFd { + isValid: true; + fd: number; +} +interface CheckFdErr { + isValid: false; + fd: number; + err: IFileSystemManagerFail; +} +interface CheckEncodingReturn { + isValid: boolean; + errMsg: string; +} +interface FileSystemManagerApiError extends ApiError { + errMsg: string; +} +type _FLAG = "a" | "ax" | "a+" | "ax+" | "r" | "r+" | "w" | "wx" | "w+" | "wx+"; +type GetAppAuthorizeSetting = () => GetAppAuthorizeSettingResult; +class GetAppAuthorizeSettingResult extends UTSObject { + albumAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + bluetoothAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + cameraAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + locationAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + locationAccuracy: 'reduced' | 'full' | 'unsupported' | null = null; + locationReducedAccuracy: boolean | null = null; + microphoneAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + notificationAuthorized!: 'authorized' | 'denied' | 'not determined' | 'config error'; + notificationAlertAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; + notificationBadgeAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; + notificationSoundAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error' | null = null; + phoneCalendarAuthorized: 'authorized' | 'denied' | 'not determined' | null = null; +} +class GetAppBaseInfoOptions extends UTSObject { + filter!: Array<string>; +} +export class GetAppBaseInfoResult extends UTSObject { + appId: string | null = null; + appName: string | null = null; + appVersion: string | null = null; + appVersionCode: string | null = null; + appLanguage: string | null = null; + language: string | null = null; + version: string | null = null; + appWgtVersion: string | null = null; + hostLanguage: string | null = null; + hostVersion: string | null = null; + hostName: string | null = null; + hostPackageName: string | null = null; + hostSDKVersion: string | null = null; + hostTheme: string | null = null; + isUniAppX: boolean | null = null; + uniCompileVersion: string | null = null; + uniCompilerVersion: string | null = null; + uniPlatform: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei' | null = null; + uniRuntimeVersion: string | null = null; + uniCompileVersionCode: number | null = null; + uniCompilerVersionCode: number | null = null; + uniRuntimeVersionCode: number | null = null; + packageName: string | null = null; + bundleId: string | null = null; + signature: string | null = null; + appTheme: 'light' | 'dark' | 'auto' | null = null; + channel: string | null = null; +} +export type GetAppBaseInfo = (options?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult; +interface IAppBaseInfoAppVersion { + name: string; + code: string; +} +type GetBackgroundAudioManager = () => BackgroundAudioManager; +interface BackgroundAudioManager { + duration: number; + currentTime: number; + paused: boolean; + src: string; + startTime: number; + buffered: number; + title: string; + epname: string; + singer: string; + coverImgUrl: string; + webUrl: string; + protocol: string; + playbackRate?: number; + play(): void; + pause(): void; + seek(position: number): void; + stop(): void; + onCanplay(callback: (result: Object) => void): void; + onPlay(callback: (result: Object) => void): void; + onPause(callback: (result: Object) => void): void; + onStop(callback: (result: Object) => void): void; + onEnded(callback: (result: Object) => void): void; + onSeeking(callback: (result: Object) => void): void; + onSeeked(callback: (result: Object) => void): void; + onTimeUpdate(callback: (result: Object) => void): void; + onPrev(callback: (result: Object) => void): void; + onNext(callback: (result: Object) => void): void; + onError(callback: (result: ICreateBackgroundAudioFail) => void): void; + onWaiting(callback: (result: Object) => void): void; +} +type CreateBackgroundAudioErrorCode = 1107601 | 1107602 | 1107603 | 1107604 | 1107605 | 1107609; +interface ICreateBackgroundAudioFail extends IUniError { + errCode: CreateBackgroundAudioErrorCode; +} +interface TempAbilityInfo { + bundleName: string; + name: string; +} +class GetDeviceInfoOptions extends UTSObject { + filter!: Array<string>; +} +export class GetDeviceInfoResult extends UTSObject { + brand: string | null = null; + deviceBrand: string | null = null; + deviceId: string | null = null; + model: string | null = null; + deviceModel: string | null = null; + deviceType: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance' | null = null; + deviceOrientation: string | null = null; + devicePixelRatio: number | null = null; + system: string | null = null; + platform: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux' | null = null; + isRoot: boolean | null = null; + isSimulator: boolean | null = null; + isUSBDebugging: boolean | null = null; + osName: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux' | null = null; + osVersion: string | null = null; + osLanguage: string | null = null; + osTheme: 'light' | 'dark' | null = null; + osAndroidAPILevel: number | null = null; + romName: string | null = null; + romVersion: string | null = null; +} +export type GetDeviceInfo = (options?: GetDeviceInfoOptions | null) => GetDeviceInfoResult; +type GetNetworkType = (options: GetNetworkTypeOptions) => void; +class GetNetworkTypeSuccess extends UTSObject { + networkType!: string; +} +type GetNetworkTypeSuccessCallback = (result: GetNetworkTypeSuccess) => void; +type GetNetworkTypeFail = UniError; +type GetNetworkTypeFailCallback = (result: GetNetworkTypeFail) => void; +type GetNetworkTypeComplete = Object; +type GetNetworkTypeCompleteCallback = (result: GetNetworkTypeComplete) => void; +class GetNetworkTypeOptions extends UTSObject { + success: GetNetworkTypeSuccessCallback | null = null; + fail: GetNetworkTypeFailCallback | null = null; + complete: GetNetworkTypeCompleteCallback | null = null; +} +class OnNetworkStatusChangeCallbackResult extends UTSObject { + isConnected!: boolean; + networkType!: string; +} +type OnNetworkStatusChangeCallback = (result: OnNetworkStatusChangeCallbackResult) => void; +type OnNetworkStatusChange = (callback: OnNetworkStatusChangeCallback) => void; +type OffNetworkStatusChange = (callback: (result: Object) => void) => void; +interface IUniGetNetworkTypeEventEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +export class GetProviderSuccess extends UTSObject { + service!: 'payment' | 'oauth'; + provider!: string[]; + providers!: UniProvider[]; +} +export class GetProviderSyncSuccess extends UTSObject { + service!: 'payment' | 'location' | 'oauth'; + providerIds!: string[]; + providerObjects!: UniProvider[]; +} +export type GetProviderSync = (options: GetProviderSyncOptions) => GetProviderSyncSuccess; +export class GetProviderSyncOptions extends UTSObject { + service!: 'payment' | 'location' | 'oauth'; +} +type GetProviderSuccessCallback = (result: GetProviderSuccess) => void; +type GetProviderFail = IGetProviderFail; +type GetProviderFailCallback = (result: GetProviderFail) => void; +type GetProviderComplete = Object; +type GetProviderCompleteCallback = (result: GetProviderComplete) => void; +export class GetProviderOptions extends UTSObject { + service!: 'payment' | 'oauth'; + success: GetProviderSuccessCallback | null = null; + fail: GetProviderFailCallback | null = null; + complete: GetProviderCompleteCallback | null = null; +} +export type GetProvider = (options: GetProviderOptions) => void; +type ProviderErrorCode = 110600; +interface IGetProviderFail extends IUniError { + errCode: ProviderErrorCode; +} +type GetRecorderManager = () => RecorderManager; +class RecorderManagerStartOptions extends UTSObject { + duration: number | null = null; + sampleRate: number | null = null; + numberOfChannels: number | null = null; + encodeBitRate: number | null = null; + format: 'aac' | 'mp3' | 'PCM' | 'wav' | null = null; + frameSize: number | null = null; +} +interface RecorderManagerOnStopResult { + tempFilePath: string; +} +interface RecorderManager { + start(options: RecorderManagerStartOptions): void; + pause(): void; + resume(): void; + stop(): void; + onStart(options: (result: Object) => void): void; + onPause(options: (result: Object) => void): void; + onStop(options: (result: RecorderManagerOnStopResult) => void): void; + onFrameRecorded(options: (result: Object) => void): void; + onError(options: (result: Object) => void): void; + onResume?: (options: (result: Object) => void) => void; + onInterruptionBegin?: (options: (result: Object) => void) => void; + onInterruptionEnd?: (options: (result: Object) => void) => void; +} +type RecorderState = 'pause' | 'resume' | 'start' | 'stop' | 'error' | 'frameRecorded' | 'interruptionBegin' | 'interruptionEnd'; +interface Callbacks { + pause?: Function; + resume?: Function; + start?: Function; + stop?: Function; + error?: Function; + frameRecorded?: Function; + interruptionBegin?: Function; + interruptionEnd?: Function; +} +interface StateChangeRes extends RecorderManagerOnStopResult { + errMsg?: string; + frameBuffer?: ArrayBuffer; + isLastFrame?: boolean; +} +export type GetSystemInfo = (options: GetSystemInfoOptions) => void; +export type GetSystemInfoSync = () => GetSystemInfoResult; +export type GetWindowInfo = () => GetWindowInfoResult; +export class SafeArea extends UTSObject { + left!: number; + right!: number; + top!: number; + bottom!: number; + width!: number; + height!: number; +} +export class SafeAreaInsets extends UTSObject { + left!: number; + right!: number; + top!: number; + bottom!: number; +} +export class GetSystemInfoResult extends UTSObject { + SDKVersion!: string; + appId!: string; + appLanguage!: string; + appName!: string; + appVersion!: string; + appVersionCode!: string; + appWgtVersion: string | null = null; + brand!: string; + browserName!: string; + browserVersion!: string; + deviceId!: string; + deviceBrand!: string; + deviceModel!: string; + deviceType!: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance'; + devicePixelRatio!: number; + deviceOrientation!: 'portrait' | 'landscape'; + language!: string; + model: string | null = null; + osName!: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux'; + osVersion!: string; + osLanguage!: string; + osTheme: 'light' | 'dark' | null = null; + pixelRatio!: number; + platform!: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux'; + screenWidth!: number; + screenHeight!: number; + statusBarHeight!: number; + system!: string; + safeArea!: SafeArea; + safeAreaInsets!: SafeAreaInsets; + ua!: string; + uniCompileVersion!: string; + uniCompilerVersion!: string; + uniPlatform!: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei'; + uniRuntimeVersion!: string; + uniCompileVersionCode!: number; + uniCompilerVersionCode!: number; + uniRuntimeVersionCode!: number; + version!: string; + romName!: string; + romVersion!: string; + windowWidth!: number; + windowHeight!: number; + windowTop!: number; + windowBottom!: number; + osAndroidAPILevel: number | null = null; + appTheme: 'light' | 'dark' | 'auto' | null = null; +} +type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void; +type GetSystemInfoFail = UniError; +type GetSystemInfoFailCallback = (result: GetSystemInfoFail) => void; +type GetSystemInfoComplete = Object; +type GetSystemInfoCompleteCallback = (result: GetSystemInfoComplete) => void; +export class GetSystemInfoOptions extends UTSObject { + success: GetSystemInfoSuccessCallback | null = null; + fail: GetSystemInfoFailCallback | null = null; + complete: GetSystemInfoCompleteCallback | null = null; +} +export class GetWindowInfoResult extends UTSObject { + pixelRatio!: number; + screenWidth!: number; + screenHeight!: number; + windowWidth!: number; + windowHeight!: number; + statusBarHeight!: number; + windowTop!: number; + windowBottom!: number; + safeArea!: SafeArea; + safeAreaInsets!: SafeAreaInsets; + screenTop!: number; +} +interface ISystemInfoAppVersion { + name: string; + code: string; +} +class GetSystemSettingResult extends UTSObject { + bluetoothEnabled: boolean | null = null; + bluetoothError: string | null = null; + locationEnabled!: boolean; + wifiEnabled: boolean | null = null; + wifiError: string | null = null; + deviceOrientation!: 'portrait' | 'landscape'; +} +type GetSystemSetting = () => GetSystemSettingResult; +export class HideKeyboardSuccess extends UTSObject { +} +export class HideKeyboardFail extends UTSObject { +} +type HideKeyboardSuccessCallback = (res: HideKeyboardSuccess) => void; +type HideKeyboardFailCallback = (res: HideKeyboardFail) => void; +type HideKeyboardCompleteCallback = (res: Object) => void; +export class HideKeyboardOptions extends UTSObject { + success: HideKeyboardSuccessCallback | null = null; + fail: HideKeyboardFailCallback | null = null; + complete: HideKeyboardCompleteCallback | null = null; +} +type HideKeyboard = (options?: HideKeyboardOptions | null) => void; +export type MakePhoneCall = (options: MakePhoneCallOptions) => void; +export class MakePhoneCallSuccess extends UTSObject { +} +type MakePhoneCallSuccessCallback = (result: MakePhoneCallSuccess) => void; +type MakePhoneCallFail = UniError; +type MakePhoneCallFailCallback = (result: MakePhoneCallFail) => void; +type MakePhoneCallComplete = Object; +type MakePhoneCallCompleteCallback = (result: MakePhoneCallComplete) => void; +export class MakePhoneCallOptions extends UTSObject { + phoneNumber!: string; + success: MakePhoneCallSuccessCallback | null = null; + fail: MakePhoneCallFailCallback | null = null; + complete: MakePhoneCallCompleteCallback | null = null; +} +type MediaOrientation = 'up' | 'down' | 'left' | 'right' | 'up-mirrored' | 'down-mirrored' | 'left-mirrored' | 'right-mirrored'; +type MediaErrorCode = 1101001 | 1101002 | 1101003 | 1101004 | 1101005 | 1101006 | 1101007 | 1101008 | 1101009 | 1101010; +interface IMediaError extends IUniError { + errCode: MediaErrorCode; +} +class ChooseImageTempFile extends UTSObject { + path!: string; + size!: number; + name: string | null = null; + type: string | null = null; +} +export class ChooseImageSuccess extends UTSObject { + errSubject!: string; + errMsg!: string; + tempFilePaths!: Array<string>; + tempFiles!: ChooseImageTempFile[]; +} +type ChooseImageFail = IMediaError; +type ChooseImageSuccessCallback = (callback: ChooseImageSuccess) => void; +type ChooseImageFailCallback = (callback: ChooseImageFail) => void; +type ChooseImageCompleteCallback = (callback: Object) => void; +class ChooseImageCropOptions extends UTSObject { + width!: number; + height!: number; + quality: (number) | null = null; + resize: (boolean) | null = null; +} +type ChooseImagePageOrientation = "auto" | "portrait" | "landscape"; +type ChooseImageAlbumMode = "custom" | "system"; +export class ChooseImageOptions extends UTSObject { + pageOrientation: ChooseImagePageOrientation | null = null; + albumMode: ChooseImageAlbumMode | null = null; + count: (number) | null = null; + sizeType: (string[]) | null = null; + sourceType: (string[]) | null = null; + extension: (string[]) | null = null; + crop: (ChooseImageCropOptions) | null = null; + success: (ChooseImageSuccessCallback) | null = null; + fail: (ChooseImageFailCallback) | null = null; + complete: (ChooseImageCompleteCallback) | null = null; +} +export type ChooseImage = (options: ChooseImageOptions) => void; +export class PreviewImageSuccess extends UTSObject { + errSubject!: string; + errMsg!: string; +} +type PreviewImageFail = IMediaError; +type PreviewImageSuccessCallback = (callback: PreviewImageSuccess) => void; +type PreviewImageFailCallback = (callback: PreviewImageFail) => void; +type PreviewImageCompleteCallback = ChooseImageCompleteCallback; +export class PreviewImageOptions extends UTSObject { + current: Object | null = null; + urls!: Array<string.ImageURIString>; + showmenu: boolean | null = null; + indicator: 'default' | 'number' | 'none' | null = null; + loop: boolean | null = null; + success: (PreviewImageSuccessCallback) | null = null; + fail: (PreviewImageFailCallback) | null = null; + complete: (PreviewImageCompleteCallback) | null = null; +} +export type PreviewImage = (options: PreviewImageOptions) => void; +export type ClosePreviewImage = (options: ClosePreviewImageOptions) => void; +export class ClosePreviewImageSuccess extends UTSObject { + errMsg!: string; +} +type ClosePreviewImageFail = IMediaError; +type ClosePreviewImageSuccessCallback = (callback: ClosePreviewImageSuccess) => void; +type ClosePreviewImageFailCallback = (callback: ClosePreviewImageFail) => void; +type ClosePreviewImageCompleteCallback = ChooseImageCompleteCallback; +export class ClosePreviewImageOptions extends UTSObject { + success: (ClosePreviewImageSuccessCallback) | null = null; + fail: (ClosePreviewImageFailCallback) | null = null; + complete: (ClosePreviewImageCompleteCallback) | null = null; +} +export type GetImageInfo = (options: GetImageInfoOptions) => void; +export class GetImageInfoSuccess extends UTSObject { + width!: number; + height!: number; + path!: string; + orientation: MediaOrientation | null = null; + type: string | null = null; +} +type GetImageInfoFail = IMediaError; +type GetImageInfoSuccessCallback = (callback: GetImageInfoSuccess) => void; +type GetImageInfoFailCallback = (callback: GetImageInfoFail) => void; +type GetImageInfoCompleteCallback = ChooseImageCompleteCallback; +export class GetImageInfoOptions extends UTSObject { + src!: string.ImageURIString; + success: (GetImageInfoSuccessCallback) | null = null; + fail: (GetImageInfoFailCallback) | null = null; + complete: (GetImageInfoCompleteCallback) | null = null; +} +export type SaveImageToPhotosAlbum = (options: SaveImageToPhotosAlbumOptions) => void; +export class SaveImageToPhotosAlbumSuccess extends UTSObject { + path!: string; +} +type SaveImageToPhotosAlbumFail = IMediaError; +type SaveImageToPhotosAlbumSuccessCallback = (callback: SaveImageToPhotosAlbumSuccess) => void; +type SaveImageToPhotosAlbumFailCallback = (callback: SaveImageToPhotosAlbumFail) => void; +type SaveImageToPhotosAlbumCompleteCallback = ChooseImageCompleteCallback; +export class SaveImageToPhotosAlbumOptions extends UTSObject { + filePath!: string.ImageURIString; + success: (SaveImageToPhotosAlbumSuccessCallback) | null = null; + fail: (SaveImageToPhotosAlbumFailCallback) | null = null; + complete: (SaveImageToPhotosAlbumCompleteCallback) | null = null; +} +type CompressImage = (options: CompressImageOptions) => void; +class CompressImageSuccess extends UTSObject { + tempFilePath!: string; +} +type CompressImageFail = IMediaError; +type CompressImageSuccessCallback = (callback: CompressImageSuccess) => void; +type CompressImageFailCallback = (callback: CompressImageFail) => void; +type CompressImageCompleteCallback = ChooseImageCompleteCallback; +class CompressImageOptions extends UTSObject { + src!: string.ImageURIString; + quality: number | null = null; + rotate: number | null = null; + width: string | null = null; + height: string | null = null; + compressedHeight: number | null = null; + compressedWidth: number | null = null; + success: (CompressImageSuccessCallback) | null = null; + fail: (CompressImageFailCallback) | null = null; + complete: (CompressImageCompleteCallback) | null = null; +} +export class ChooseVideoSuccess extends UTSObject { + tempFilePath!: string; + duration!: number; + size!: number; + height!: number; + width!: number; +} +type ChooseVideoFail = IMediaError; +type ChooseVideoSuccessCallback = (callback: ChooseVideoSuccess) => void; +type ChooseVideoFailCallback = (callback: ChooseVideoFail) => void; +type ChooseVideoCompleteCallback = ChooseImageCompleteCallback; +type ChooseVideoPageOrientation = ChooseImagePageOrientation; +type ChooseVideoAlbumMode = ChooseImageAlbumMode; +export class ChooseVideoOptions extends UTSObject { + pageOrientation: ChooseVideoPageOrientation | null = null; + albumMode: ChooseVideoAlbumMode | null = null; + sourceType: (string[]) | null = null; + compressed: boolean | null = true; + maxDuration: number | null = null; + camera: 'front' | 'back' | null = null; + extension: (string[]) | null = null; + success: (ChooseVideoSuccessCallback) | null = null; + fail: (ChooseVideoFailCallback) | null = null; + complete: (ChooseVideoCompleteCallback) | null = null; +} +export type ChooseVideo = (options: ChooseVideoOptions) => void; +export class GetVideoInfoSuccess extends UTSObject { + orientation: MediaOrientation | null = null; + type: string | null = null; + duration!: number; + size!: number; + height!: number; + width!: number; + fps: number | null = null; + bitrate: number | null = null; +} +type GetVideoInfoFail = IMediaError; +type GetVideoInfoSuccessCallback = (callback: GetVideoInfoSuccess) => void; +type GetVideoInfoFailCallback = (callback: GetVideoInfoFail) => void; +type GetVideoInfoCompleteCallback = ChooseImageCompleteCallback; +export class GetVideoInfoOptions extends UTSObject { + src!: string.VideoURIString; + success: (GetVideoInfoSuccessCallback) | null = null; + fail: (GetVideoInfoFailCallback) | null = null; + complete: (GetVideoInfoCompleteCallback) | null = null; +} +export type GetVideoInfo = (options: GetVideoInfoOptions) => void; +export class SaveVideoToPhotosAlbumSuccess extends UTSObject { +} +type SaveVideoToPhotosAlbumFail = IMediaError; +type SaveVideoToPhotosAlbumSuccessCallback = (callback: SaveVideoToPhotosAlbumSuccess) => void; +type SaveVideoToPhotosAlbumFailCallback = (callback: SaveVideoToPhotosAlbumFail) => void; +type SaveVideoToPhotosAlbumCompleteCallback = ChooseImageCompleteCallback; +export class SaveVideoToPhotosAlbumOptions extends UTSObject { + filePath!: string.VideoURIString; + success: (SaveVideoToPhotosAlbumSuccessCallback) | null = null; + fail: (SaveVideoToPhotosAlbumFailCallback) | null = null; + complete: (SaveVideoToPhotosAlbumCompleteCallback) | null = null; +} +export type SaveVideoToPhotosAlbum = (options: SaveVideoToPhotosAlbumOptions) => void; +export class CompressVideoSuccess extends UTSObject { + tempFilePath!: string; + size!: number; +} +type CompressVideoFail = IMediaError; +type CompressVideoSuccessCallback = (callback: CompressVideoSuccess) => void; +type CompressVideoFailCallback = (callback: CompressVideoFail) => void; +type CompressVideoCompleteCallback = ChooseImageCompleteCallback; +export class CompressVideoOptions extends UTSObject { + src!: string.VideoURIString; + quality: string | null = null; + bitrate: number | null = null; + fps: number | null = null; + resolution: number | null = null; + success: (CompressVideoSuccessCallback) | null = null; + fail: (CompressVideoFailCallback) | null = null; + complete: (CompressVideoCompleteCallback) | null = null; +} +export type CompressVideo = (options: CompressVideoOptions) => void; +export type ChooseFile = (options: ChooseFileOptions) => void; +export class ChooseFileSuccess extends UTSObject { + tempFilePaths!: string[]; + tempFiles!: ChooseFileTempFile[]; +} +class ChooseFileTempFile extends UTSObject { + name!: string; + path!: string; + size!: number; + type!: 'video' | 'image' | 'audio' | 'file'; +} +type ChooseFileSuccessCallback = (result: ChooseFileSuccess) => void; +type ChooseFileFail = IMediaError; +type ChooseFileFailCallback = (result: ChooseFileFail) => void; +type ChooseFileComplete = Object; +type ChooseFileCompleteCallback = (result: ChooseFileComplete) => void; +export class ChooseFileOptions extends UTSObject { + count: number | null = null; + type: 'image' | 'video' | 'all' | 'audio' | null = null; + extension: (string[]) | null = null; + sizeType: Object | null = null; + sourceType: (string[]) | null = null; + success: ChooseFileSuccessCallback | null = null; + fail: ChooseFileFailCallback | null = null; + complete: ChooseFileCompleteCallback | null = null; +} +interface _CompressImageSuccess { + size: number; + tempFilePath: string; +} +interface MediaFile { + fileType: 'video' | 'image'; + tempFilePath: string; + size: number; + width?: number; + height?: number; + duration?: number; + thumbTempFilePath?: string; +} +interface _ChooseMediaOptions { + mimeType: photoAccessHelper2.PhotoViewMIMETypes.VIDEO_TYPE | photoAccessHelper2.PhotoViewMIMETypes.IMAGE_TYPE | photoAccessHelper2.PhotoViewMIMETypes.IMAGE_VIDEO_TYPE; + count?: number; + sourceType?: ('album' | 'camera')[]; + isOriginalSupported?: boolean; +} +interface chooseMediaSuccessCallbackResult { + tempFiles: MediaFile[]; +} +type CameraPosition1 = 'back' | 'front'; +interface TempFiles { + tempFilePath: string; + size: number; +} +interface TakePhotoRes { + tempFiles: TempFiles[]; +} +interface TakeVideoOptions { + cameraType?: CameraPosition1; + videoDuration?: number; +} +interface TakeVideoRes { + path: string; + duration: number; + size: number; + height: number; + width: number; + orientation: MediaOrientation; + type: string; +} +interface IGetImageInfoDownloadOptions { + url: string; + success: (res: IGetImageInfoDownloadSuccess) => void; + fail: (err: IGetImageInfoDownloadFail) => void; +} +interface IGetImageInfoDownloadSuccess { + tempFilePath: string; +} +interface IGetImageInfoDownloadFail { + errMsg: string; +} +interface IPreviewImageOptions { + urls: string[]; + current: string; + showmenu: boolean; +} +interface ISaveMediaError { + code: number; + message: string; +} +export type Request<T = Object> = (param: RequestOptions<T>) => RequestTask; +export class RequestOptions<T = Object> extends UTSObject { + url!: string; + data: Object | null = null; + header: UTSJSONObject | null = null; + method: RequestMethod | null = null; + timeout: number | null = null; + dataType: string | null = null; + responseType: string | null = null; + sslVerify: boolean | null = null; + withCredentials: boolean | null = null; + firstIpv4: boolean | null = null; + success: RequestSuccessCallback<T> | null = null; + fail: RequestFailCallback | null = null; + complete: RequestCompleteCallback | null = null; +} +export class RequestSuccess<T = Object> extends UTSObject { + data: T | null = null; + statusCode!: number; + header!: Object; + cookies!: Array<string>; +} +type RequestMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"; +type RequestErrorCode = 5 | 1000 | 100001 | 100002 | 600003 | 600008 | 600009 | 602001; +export interface RequestFail extends IUniError { + errCode: RequestErrorCode; +} +type RequestSuccessCallback<T> = (option: RequestSuccess<T>) => void; +type RequestFailCallback = (option: RequestFail) => void; +type RequestCompleteCallback = (option: Object) => void; +export interface RequestTask { + abort(): void; +} +export type UploadFile = (options: UploadFileOptions) => UploadTask; +class UploadFileOptionFiles extends UTSObject { + name: string | null = null; + uri!: string; + file: Object | null = null; +} +export class UploadFileSuccess extends UTSObject { + data!: string; + statusCode!: number; +} +type UploadFileSuccessCallback = (result: UploadFileSuccess) => void; +interface UploadFileFail extends IUniError { + errCode: RequestErrorCode; +} +type UploadFileFailCallback = (result: UploadFileFail) => void; +type UploadFileCompleteCallback = (result: Object) => void; +export class UploadFileOptions extends UTSObject { + url!: string; + filePath: string | null = null; + name: string | null = null; + files: (UploadFileOptionFiles[]) | null = null; + header: UTSJSONObject | null = null; + formData: UTSJSONObject | null = null; + timeout: number | null = null; + success: UploadFileSuccessCallback | null = null; + fail: UploadFileFailCallback | null = null; + complete: UploadFileCompleteCallback | null = null; +} +export class OnProgressUpdateResult extends UTSObject { + progress!: number; + totalBytesSent!: number; + totalBytesExpectedToSend!: number; +} +type UploadFileProgressUpdateCallback = (result: OnProgressUpdateResult) => void; +export interface UploadTask { + abort(): void; + onProgressUpdate(callback: UploadFileProgressUpdateCallback): void; +} +export type DownloadFile = (options: DownloadFileOptions) => DownloadTask; +export class DownloadFileSuccess extends UTSObject { + tempFilePath!: string; + statusCode!: number; +} +type DownloadFileSuccessCallback = (result: DownloadFileSuccess) => void; +interface DownloadFileFail extends IUniError { + errCode: RequestErrorCode; +} +type DownloadFileFailCallback = (result: DownloadFileFail) => void; +type DownloadFileComplete = Object; +type DownloadFileCompleteCallback = (result: DownloadFileComplete) => void; +export class DownloadFileOptions extends UTSObject { + url!: string; + header: UTSJSONObject | null = null; + filePath: string | null = null; + timeout: number | null = null; + success: DownloadFileSuccessCallback | null = null; + fail: DownloadFileFailCallback | null = null; + complete: DownloadFileCompleteCallback | null = null; +} +export class OnProgressDownloadResult extends UTSObject { + progress!: number; + totalBytesWritten!: number; + totalBytesExpectedToWrite!: number; +} +type DownloadFileProgressUpdateCallback = (result: OnProgressDownloadResult) => void; +export interface DownloadTask { + abort(): void; + onProgressUpdate(callback: DownloadFileProgressUpdateCallback): void; +} +export type ConfigMTLS = (options: ConfigMTLSOptions) => void; +class Certificate extends UTSObject { + host!: string; + client: string | null = null; + clientPassword: string | null = null; + keyPath: string | null = null; + server: (string[]) | null = null; +} +export class ConfigMTLSSuccess extends UTSObject { + code!: number; +} +type ConfigMTLSSuccessCallback = (result: ConfigMTLSSuccess) => void; +class ConfigMTLSFail extends UTSObject { + code!: number; +} +type ConfigMTLSFailCallback = (result: ConfigMTLSFail) => void; +type ConfigMTLSComplete = Object; +type ConfigMTLSCompleteCallback = (result: ConfigMTLSComplete) => void; +export class ConfigMTLSOptions extends UTSObject { + certificates!: Certificate[]; + success: ConfigMTLSSuccessCallback | null = null; + fail: ConfigMTLSFailCallback | null = null; + complete: ConfigMTLSCompleteCallback | null = null; +} +interface IUniRequestEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +interface IRequestTask { + abort: Function; + onHeadersReceived: Function; + offHeadersReceived: Function; +} +interface IUniUploadFileEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +interface IUploadTask { + abort: Function; + onHeadersReceived: Function; + offHeadersReceived: Function; + onProgressUpdate: Function; + offProgressUpdate: Function; +} +interface IUniDownloadFileEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +interface IDownloadTask { + abort: Function; + onHeadersReceived: Function; + offHeadersReceived: Function; + onProgressUpdate: Function; + offProgressUpdate: Function; +} +export interface UniOAuthProvider extends UniProvider { + login(options: LoginOptions): void; + getUserInfo(options: GetUserInfoOptions): void; +} +export type Login = (options: LoginOptions) => void; +class AppleLoginAppleInfo extends UTSObject { + authorizationCode: string | null = null; + fullName: Object | null = null; + identityToken: string | null = null; + realUserStatus: number | null = null; + user: string | null = null; +} +export class LoginSuccess extends UTSObject { + errMsg!: string; + authResult!: Object; + code!: string; + anonymousCode: string | null = null; + authCode: string | null = null; + authErrorScope: Object | null = null; + authSucessScope: (string[]) | null = null; + appleInfo: AppleLoginAppleInfo | null = null; +} +type LoginSuccessCallback = (result: LoginSuccess) => void; +export type LoginFail = IUniError; +type LoginFailCallback = (result: LoginFail) => void; +type LoginComplete = Object; +type LoginCompleteCallback = (result: LoginComplete) => void; +export class LoginOptions extends UTSObject { + provider: 'weixin' | 'qq' | 'sinaweibo' | 'xiaomi' | 'apple' | 'univerify' | 'huawei' | null = null; + scopes: Object | null = null; + timeout: number | null = null; + univerifyStyle: UniverifyStyle | null = null; + onlyAuthorize: boolean | null = null; + success: LoginSuccessCallback | null = null; + fail: LoginFailCallback | null = null; + complete: LoginCompleteCallback | null = null; +} +class UniverifyIconStyles extends UTSObject { + path!: string; + width: string | null = null; + height: string | null = null; +} +class UniverifyPhoneNumStyles extends UTSObject { + color: string | null = null; + fontSize: string | null = null; +} +class UniverifySloganStyles extends UTSObject { + color: string | null = null; + fontSize: string | null = null; +} +class UniverifyAuthButtonStyles extends UTSObject { + normalColor: string | null = null; + highlightColor: string | null = null; + disabledColor: string | null = null; + width: string | null = null; + height: string | null = null; + textColor: string | null = null; + title: string | null = null; + borderRadius: string | null = null; +} +class UniverifyOtherButtonStyles extends UTSObject { + visible: boolean | null = null; + normalColor: string | null = null; + highlightColor: string | null = null; + width: string | null = null; + height: string | null = null; + textColor: string | null = null; + title: string | null = null; + borderWidth: string | null = null; + borderColor: string | null = null; + borderRadius: string | null = null; +} +class UniverifyPrivacyItemStyles extends UTSObject { + url!: string; + title!: string; +} +class UniverifyPrivacyTermsStyles extends UTSObject { + defaultCheckBoxState: boolean | null = null; + textColor: string | null = null; + termsColor: string | null = null; + prefix: string | null = null; + suffix: string | null = null; + fontSize: string | null = null; + privacyItems: (UniverifyPrivacyItemStyles[]) | null = null; +} +class UniVerifyButtonListItem extends UTSObject { + provider!: string; + iconPath!: string; +} +class UniVerifyButtonsStyles extends UTSObject { + iconWidth: string | null = null; + list!: UniVerifyButtonListItem[]; +} +class UniverifyStyle extends UTSObject { + fullScreen: boolean | null = null; + backgroundColor: string | null = null; + backgroundImage: string | null = null; + icon: UniverifyIconStyles | null = null; + phoneNum: UniverifyPhoneNumStyles | null = null; + slogan: UniverifySloganStyles | null = null; + authButton: UniverifyAuthButtonStyles | null = null; + otherLoginButton: UniverifyOtherButtonStyles | null = null; + privacyTerms: UniverifyPrivacyTermsStyles | null = null; + buttons: UniVerifyButtonsStyles | null = null; +} +export type GetUserInfo = (options: GetUserInfoOptions) => void; +export class UserInfo extends UTSObject { + nickName!: string; + openId: string | null = null; + avatarUrl!: string; +} +export class GetUserInfoSuccess extends UTSObject { + userInfo!: UserInfo; + rawData: string | null = null; + signature: string | null = null; + encryptedData: string | null = null; + iv: string | null = null; + errMsg!: string; +} +type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void; +export type GetUserInfoFail = IUniError; +type GetUserInfoFailCallback = (result: GetUserInfoFail) => void; +type GetUserInfoComplete = Object; +type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void; +export class GetUserInfoOptions extends UTSObject { + provider: 'weixin' | 'qq' | 'sinaweibo' | 'xiaomi' | 'apple' | 'huawei' | null = null; + withCredentials: boolean | null = null; + lang: string | null = null; + timeout: number | null = null; + success: GetUserInfoSuccessCallback | null = null; + fail: GetUserInfoFailCallback | null = null; + complete: GetUserInfoCompleteCallback | null = null; +} +export type OpenAppAuthorizeSetting = (options: OpenAppAuthorizeSettingOptions) => void; +export class OpenAppAuthorizeSettingSuccess extends UTSObject { + errMsg!: string; +} +type OpenAppAuthorizeSettingSuccessCallback = (result: OpenAppAuthorizeSettingSuccess) => void; +class OpenAppAuthorizeSettingFail extends UTSObject { + errMsg!: string; +} +type OpenAppAuthorizeSettingFailCallback = (result: OpenAppAuthorizeSettingFail) => void; +class OpenAppAuthorizeSettingComplete extends UTSObject { + errMsg!: string; +} +type OpenAppAuthorizeSettingCompleteCallback = (result: OpenAppAuthorizeSettingComplete) => void; +export class OpenAppAuthorizeSettingOptions extends UTSObject { + success: OpenAppAuthorizeSettingSuccessCallback | null = null; + fail: OpenAppAuthorizeSettingFailCallback | null = null; + complete: OpenAppAuthorizeSettingCompleteCallback | null = null; +} +export class OpenDocumentSuccess extends UTSObject { +} +export class OpenDocumentFail extends UTSObject { +} +type OpenDocumentSuccessCallback = (res: OpenDocumentSuccess) => void; +type OpenDocumentFailCallback = (res: OpenDocumentFail) => void; +type OpenDocumentCompleteCallback = (res: Object) => void; +type OpenDocumentSupportedTypes = 'doc' | 'xls' | 'ppt' | 'pdf' | 'docx' | 'xlsx' | 'pptx'; +export class OpenDocumentOptions extends UTSObject { + filePath!: string; + fileType: OpenDocumentSupportedTypes | null = null; + success: OpenDocumentSuccessCallback | null = null; + fail: OpenDocumentFailCallback | null = null; + complete: OpenDocumentCompleteCallback | null = null; +} +type OpenDocument = (options?: OpenDocumentOptions | null) => void; +export interface UniPaymentProvider extends UniProvider { + requestPayment(options: RequestPaymentOptions): void; +} +type RequestPaymentErrorCode = 700600 | 701100 | 701110 | 700601 | 700602 | 700603 | 700000 | 700604 | 700605 | 700607 | 700608 | 700800 | 700801; +export type RequestPayment = (options: RequestPaymentOptions) => void; +export class RequestPaymentSuccess extends UTSObject { + data: object | null = null; +} +type RequestPaymentSuccessCallback = (result: RequestPaymentSuccess) => void; +export type RequestPaymentFail = IRequestPaymentFail; +type RequestPaymentFailCallback = (result: RequestPaymentFail) => void; +type RequestPaymentComplete = Object; +interface IRequestPaymentFail extends IUniError { + errCode: RequestPaymentErrorCode; +} +type RequestPaymentCompleteCallback = (result: RequestPaymentComplete) => void; +export class RequestPaymentOptions extends UTSObject { + provider!: string; + orderInfo!: string; + success: RequestPaymentSuccessCallback | null = null; + fail: RequestPaymentFailCallback | null = null; + complete: RequestPaymentCompleteCallback | null = null; +} +type PromptErrorCode = 1 | 1001; +interface IPromptError extends IUniError { + errCode: PromptErrorCode; +} +class ShowToastSuccess extends UTSObject { +} +type ShowToastFail = IPromptError; +type ShowToastSuccessCallback = (res: ShowToastSuccess) => void; +type ShowToastFailCallback = (res: ShowToastFail) => void; +type ShowToastCompleteCallback = (res: Object) => void; +type Icon = "success" | "error" | "fail" | "exception" | "loading" | "none"; +type ShowToastPosition = "top" | "center" | "bottom"; +class ShowToastOptions extends UTSObject { + title!: string; + icon: Icon | null = null; + image: string.ImageURIString | null = null; + mask: boolean | null = null; + duration: number | null = null; + position: ShowToastPosition | null = null; + success: ShowToastSuccessCallback | null = null; + fail: ShowToastFailCallback | null = null; + complete: ShowToastCompleteCallback | null = null; +} +type ShowToast = (options: ShowToastOptions) => void; +type HideToast = () => void; +class ShowLoadingSuccess extends UTSObject { +} +type ShowLoadingFail = IPromptError; +type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void; +type ShowLoadingFailCallback = (res: ShowLoadingFail) => void; +type ShowLoadingCompleteCallback = (res: Object) => void; +class ShowLoadingOptions extends UTSObject { + title!: string; + mask: boolean | null = null; + success: ShowLoadingSuccessCallback | null = null; + fail: ShowLoadingFailCallback | null = null; + complete: ShowLoadingCompleteCallback | null = null; +} +type ShowLoading = (options: ShowLoadingOptions) => void; +type HideLoading = () => void; +class ShowModalSuccess extends UTSObject { + confirm!: boolean; + cancel!: boolean; + content: string | null = null; +} +type ShowModalFail = IPromptError; +type ShowModalSuccessCallback = (res: ShowModalSuccess) => void; +type ShowModalFailCallback = (res: ShowModalFail) => void; +type ShowModalCompleteCallback = (res: Object) => void; +class ShowModalOptions extends UTSObject { + title: string | null = null; + content: string | null = null; + showCancel: boolean | null = true; + cancelText: string | null = null; + cancelColor: string.ColorString | null = null; + confirmText: string | null = null; + confirmColor: string.ColorString | null = null; + editable: boolean | null = false; + placeholderText: string | null = null; + success: ShowModalSuccessCallback | null = null; + fail: ShowModalFailCallback | null = null; + complete: ShowModalCompleteCallback | null = null; +} +type ShowModal = (options: ShowModalOptions) => void; +class ShowActionSheetSuccess extends UTSObject { + tapIndex!: number; +} +class Popover extends UTSObject { + top!: number; + left!: number; + width!: number; + height!: number; +} +type ShowActionSheetFail = IPromptError; +type ShowActionSheetSuccessCallback = (res: ShowActionSheetSuccess) => void; +type ShowActionSheetFailCallback = (res: ShowActionSheetFail) => void; +type ShowActionSheetCompleteCallback = (res: Object) => void; +class ShowActionSheetOptions extends UTSObject { + title: string | null = null; + alertText: string | null = null; + itemList!: string[]; + itemColor: string.ColorString | null = null; + popover: Popover | null = null; + success: ShowActionSheetSuccessCallback | null = null; + fail: ShowActionSheetFailCallback | null = null; + complete: ShowActionSheetCompleteCallback | null = null; +} +type ShowActionSheet = (options: ShowActionSheetOptions) => void; +interface IShowLoadingOptions { + title: string; + mask: boolean; +} +interface IHideLoadingOptions { +} +interface IHideLoadingSuccess { +} +type PullDownRefreshErrorCode = 4; +interface StartPullDownRefreshFail extends IUniError { + errCode: PullDownRefreshErrorCode; +} +export class StartPullDownRefreshOptions extends UTSObject { + success: StartPullDownRefreshSuccessCallback | null = null; + fail: StartPullDownRefreshFailCallback | null = null; + complete: StartPullDownRefreshCompleteCallback | null = null; +} +export type StartPullDownRefreshSuccess = AsyncApiSuccessResult; +type StartPullDownRefreshSuccessCallback = (result: StartPullDownRefreshSuccess) => void; +type StartPullDownRefreshFailCallback = (result: StartPullDownRefreshFail) => void; +type StartPullDownRefreshComplete = AsyncApiResult; +type StartPullDownRefreshCompleteCallback = (result: StartPullDownRefreshComplete) => void; +type StartPullDownRefresh = (options: StartPullDownRefreshOptions) => void; +type StopPullDownRefresh = () => void; +export type Rpx2px = (number: number) => number; +export class ScanCodeSuccess extends UTSObject { + result!: string; + scanType!: string; +} +export class ScanCodeFail extends UTSObject { +} +type ScanCodeSuccessCallback = (res: ScanCodeSuccess) => void; +type ScanCodeFailCallback = (res: ScanCodeFail) => void; +type ScanCodeCompleteCallback = (res: Object) => void; +type ScanCodeSupportedTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf417'; +export class ScanCodeOptions extends UTSObject { + onlyFromCamera: boolean | null = null; + scanType: ScanCodeSupportedTypes[] | null = null; + success: ScanCodeSuccessCallback | null = null; + fail: ScanCodeFailCallback | null = null; + complete: ScanCodeCompleteCallback | null = null; +} +type ScanCode = (options?: ScanCodeOptions | null) => void; +type UniScanOptionsTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf417'; +type UniScanResultTypes = "QR_CODE" | "AZTEC" | "CODABAR" | "CODE_39" | "CODE_93" | "CODE_128" | "DATA_MATRIX" | "EAN_8" | "EAN_13" | "ITF" | "MAXICODE" | "PDF_417" | "RSS_14" | "RSS_EXPANDED" | "UPC_A" | "UPC_E" | "UPC_EAN_EXTENSION" | "WX_CODE" | "CODE_25"; +type HarmonyScanResultTypes = scanCore.ScanType.AZTEC_CODE | scanCore.ScanType.CODABAR_CODE | scanCore.ScanType.CODE128_CODE | scanCore.ScanType.CODE39_CODE | scanCore.ScanType.CODE93_CODE | scanCore.ScanType.DATAMATRIX_CODE | scanCore.ScanType.EAN13_CODE | scanCore.ScanType.EAN8_CODE | scanCore.ScanType.ITF14_CODE | scanCore.ScanType.MULTIFUNCTIONAL_CODE | scanCore.ScanType.PDF417_CODE | scanCore.ScanType.QR_CODE | scanCore.ScanType.UPC_A_CODE | scanCore.ScanType.UPC_E_CODE; +export class ShareWithSystemSuccess extends UTSObject { +} +export type ShareWithSystemFail = IShareWithSystemFail; +interface IShareWithSystemFail extends IUniError { + errCode: ShareWithSystemErrorCode; +} +type ShareWithSystemErrorCode = 1310600 | 1310601 | 1310602 | 1310603 | 1310604 | 1310605 | 1310606 | 1310607; +type ShareWithSystemSuccessCallback = (res: ShareWithSystemSuccess) => void; +type ShareWithSystemFailCallback = (res: ShareWithSystemFail) => void; +type ShareWithSystemCallback = (res: Object) => void; +export class ShareWithSystemOptions extends UTSObject { + type: 'text' | 'image' | 'video' | 'audio' | 'file' | null = null; + summary: string | null = null; + href: string | null = null; + imageUrl: string | null = null; + imagePaths: Array<string> | null = null; + videoPaths: Array<string> | null = null; + audioPaths: Array<string> | null = null; + filePaths: Array<string> | null = null; + success: ShareWithSystemSuccessCallback | null = null; + fail: ShareWithSystemFailCallback | null = null; + complete: ShareWithSystemCallback | null = null; +} +export type ShareWithSystem = (options: ShareWithSystemOptions) => void; +export class SetStorageSuccess extends UTSObject { +} +type SetStorageSuccessCallback = (res: SetStorageSuccess) => void; +type SetStorageFailCallback = (res: UniError) => void; +type SetStorageCompleteCallback = (res: Object) => void; +export class SetStorageOptions extends UTSObject { + key!: string; + data!: Object; + success: SetStorageSuccessCallback | null = null; + fail: SetStorageFailCallback | null = null; + complete: SetStorageCompleteCallback | null = null; +} +export type SetStorage = (options: SetStorageOptions) => void; +export type SetStorageSync = (key: string, data: Object) => void; +export class GetStorageSuccess extends UTSObject { + data: Object | null = null; +} +type GetStorageSuccessCallback = (res: GetStorageSuccess) => void; +type GetStorageFailCallback = (res: UniError) => void; +type GetStorageCompleteCallback = (res: Object) => void; +export class GetStorageOptions extends UTSObject { + key!: string; + success: GetStorageSuccessCallback | null = null; + fail: GetStorageFailCallback | null = null; + complete: GetStorageCompleteCallback | null = null; +} +export type GetStorage = (options: GetStorageOptions) => void; +export type GetStorageSync = (key: string) => Object | null; +export class GetStorageInfoSuccess extends UTSObject { + keys!: Array<string>; + currentSize!: number; + limitSize!: number; +} +type GetStorageInfoSuccessCallback = (res: GetStorageInfoSuccess) => void; +type GetStorageInfoFailCallback = (res: UniError) => void; +type GetStorageInfoCompleteCallback = (res: Object) => void; +export class GetStorageInfoOptions extends UTSObject { + success: GetStorageInfoSuccessCallback | null = null; + fail: GetStorageInfoFailCallback | null = null; + complete: GetStorageInfoCompleteCallback | null = null; +} +export type GetStorageInfo = (options: GetStorageInfoOptions) => void; +export type GetStorageInfoSync = () => GetStorageInfoSuccess; +export class RemoveStorageSuccess extends UTSObject { +} +type RemoveStorageSuccessCallback = (res: RemoveStorageSuccess) => void; +type RemoveStorageFailCallback = (res: UniError) => void; +type RemoveStorageCompleteCallback = (res: Object) => void; +export class RemoveStorageOptions extends UTSObject { + key!: string; + success: RemoveStorageSuccessCallback | null = null; + fail: RemoveStorageFailCallback | null = null; + complete: RemoveStorageCompleteCallback | null = null; +} +export type RemoveStorage = (options: RemoveStorageOptions) => void; +export type RemoveStorageSync = (key: string) => void; +export class ClearStorageSuccess extends UTSObject { +} +type ClearStorageSuccessCallback = (res: ClearStorageSuccess) => void; +type ClearStorageFailCallback = (res: UniError) => void; +type ClearStorageCompleteCallback = (res: Object) => void; +export class ClearStorageOptions extends UTSObject { + success: ClearStorageSuccessCallback | null = null; + fail: ClearStorageFailCallback | null = null; + complete: ClearStorageCompleteCallback | null = null; +} +export type ClearStorage = (option?: ClearStorageOptions | null) => void; +export type ClearStorageSync = () => void; +export type ConnectSocket = (options: ConnectSocketOptions) => SocketTask; +export class ConnectSocketSuccess extends UTSObject { + errMsg!: string; +} +type ConnectSocketSuccessCallback = (result: ConnectSocketSuccess) => void; +type ConnectSocketErrorCode = 600009; +interface ConnectSocketFail extends IUniError { + errCode: ConnectSocketErrorCode; +} +type ConnectSocketFailCallback = (result: ConnectSocketFail) => void; +type ConnectSocketComplete = Object; +type ConnectSocketCompleteCallback = (result: ConnectSocketComplete) => void; +export class ConnectSocketOptions extends UTSObject { + url!: string; + header: UTSJSONObject | null = null; + protocols: (string[]) | null = null; + success: ConnectSocketSuccessCallback | null = null; + fail: ConnectSocketFailCallback | null = null; + complete: ConnectSocketCompleteCallback | null = null; +} +class GeneralCallbackResult extends UTSObject { + errMsg!: string; +} +type SendSocketMessageErrorCode = 10001 | 10002 | 602001; +interface SendSocketMessageFail extends IUniError { + errCode: SendSocketMessageErrorCode; +} +export class SendSocketMessageOptions extends UTSObject { + data!: Object; + success: ((result: GeneralCallbackResult) => void) | null = null; + fail: ((result: SendSocketMessageFail) => void) | null = null; + complete: ((result: Object) => void) | null = null; +} +export class CloseSocketOptions extends UTSObject { + code: number | null = null; + reason: string | null = null; + success: ((result: GeneralCallbackResult) => void) | null = null; + fail: ((result: GeneralCallbackResult) => void) | null = null; + complete: ((result: GeneralCallbackResult) => void) | null = null; +} +class OnSocketOpenCallbackResult extends UTSObject { + header!: Object; +} +export class OnSocketMessageCallbackResult extends UTSObject { + data!: Object; +} +export interface SocketTask { + send(options: SendSocketMessageOptions): void; + close(options: CloseSocketOptions): void; + onOpen(callback: (result: OnSocketOpenCallbackResult) => void): void; + onClose(callback: (result: Object) => void): void; + onError(callback: (result: GeneralCallbackResult) => void): void; + onMessage(callback: (result: OnSocketMessageCallbackResult) => void): void; +} +type OnSocketOpenCallback = (result: OnSocketOpenCallbackResult) => void; +type OnSocketOpen = (options: OnSocketOpenCallback) => void; +export class OnSocketErrorCallbackResult extends UTSObject { + errMsg!: string; +} +type OnSocketErrorCallback = (result: OnSocketErrorCallbackResult) => void; +type OnSocketError = (callback: OnSocketErrorCallback) => void; +type SendSocketMessage = (options: SendSocketMessageOptions) => void; +type OnSocketMessageCallback = (result: OnSocketMessageCallbackResult) => void; +type OnSocketMessage = (callback: OnSocketMessageCallback) => void; +type CloseSocket = (options: CloseSocketOptions) => void; +class OnSocketCloseCallbackResult extends UTSObject { + code!: number; + reason!: string; +} +type OnSocketCloseCallback = (result: OnSocketCloseCallbackResult) => void; +type OnSocketClose = (callback: OnSocketCloseCallback) => void; +interface IUniWebsocketEmitter { + on: (eventName: string, callback: Function) => void; + once: (eventName: string, callback: Function) => void; + off: (eventName: string, callback?: Function | null) => void; + emit: (eventName: string, ...args: (Object | undefined | null)[]) => void; +} +interface UniExtApi { + addPhoneContact: AddPhoneContact; + startSoterAuthentication: StartSoterAuthentication; + checkIsSupportSoterAuthentication: CheckIsSupportSoterAuthentication; + checkIsSoterEnrolledInDevice: CheckIsSoterEnrolledInDevice; + chooseMedia: ChooseMedia; + getClipboardData: GetClipboardData; + setClipboardData: SetClipboardData; + createInnerAudioContext: CreateInnerAudioContext; + $on: $On; + $once: $Once; + $off: $Off; + $emit: $Emit; + exit: Exit; + saveFile: SaveFile; + getSavedFileList: GetSavedFileList; + getSavedFileInfo: GetSavedFileInfo; + removeSavedFile: RemoveSavedFile; + getFileInfo: GetFileInfo; + getFileSystemManager: GetFileSystemManager; + getAppAuthorizeSetting: GetAppAuthorizeSetting; + getAppBaseInfo: GetAppBaseInfo; + getBackgroundAudioManager: GetBackgroundAudioManager; + getDeviceInfo: GetDeviceInfo; + getNetworkType: GetNetworkType; + onNetworkStatusChange: OnNetworkStatusChange; + offNetworkStatusChange: OffNetworkStatusChange; + getProvider: GetProvider; + getProviderSync: GetProviderSync; + getRecorderManager: GetRecorderManager; + getSystemInfo: GetSystemInfo; + getSystemInfoSync: GetSystemInfoSync; + getWindowInfo: GetWindowInfo; + getSystemSetting: GetSystemSetting; + hideKeyboard: HideKeyboard; + makePhoneCall: MakePhoneCall; + chooseImage: ChooseImage; + previewImage: PreviewImage; + closePreviewImage: ClosePreviewImage; + getImageInfo: GetImageInfo; + saveImageToPhotosAlbum: SaveImageToPhotosAlbum; + compressImage: CompressImage; + chooseVideo: ChooseVideo; + saveVideoToPhotosAlbum: SaveVideoToPhotosAlbum; + getVideoInfo: GetVideoInfo; + compressVideo: CompressVideo; + chooseFile: ChooseFile; + request: Request<Object>; + uploadFile: UploadFile; + downloadFile: DownloadFile; + configMTLS: ConfigMTLS; + login: Login; + getUserInfo: GetUserInfo; + openAppAuthorizeSetting: OpenAppAuthorizeSetting; + openDocument: OpenDocument; + requestPayment: RequestPayment; + showToast: ShowToast; + hideToast: HideToast; + showLoading: ShowLoading; + hideLoading: HideLoading; + showModal: ShowModal; + showActionSheet: ShowActionSheet; + startPullDownRefresh: StartPullDownRefresh; + stopPullDownRefresh: StopPullDownRefresh; + rpx2px: Rpx2px; + scanCode: ScanCode; + shareWithSystem: ShareWithSystem; + setStorage: SetStorage; + setStorageSync: SetStorageSync; + getStorage: GetStorage; + getStorageSync: GetStorageSync; + getStorageInfo: GetStorageInfo; + getStorageInfoSync: GetStorageInfoSync; + removeStorage: RemoveStorage; + removeStorageSync: RemoveStorageSync; + clearStorage: ClearStorage; + clearStorageSync: ClearStorageSync; + connectSocket: ConnectSocket; + sendSocketMessage: SendSocketMessage; + closeSocket: CloseSocket; + onSocketOpen: OnSocketOpen; + onSocketMessage: OnSocketMessage; + onSocketClose: OnSocketClose; + onSocketError: OnSocketError; +} +export function initUniExtApi() { + const API_ADD_PHONE_CONTACT = 'addPhoneContact'; + const AddPhoneContactApiOptions: ApiOptions<AddPhoneContactOptions> = { + formatArgs: new Map<string, ((firstName: string) => string | undefined)>([ + [ + 'firstName', + (firstName: string)=>{ + if (!firstName) { + return 'addPhoneContact:fail parameter error: parameter.firstName should not be empty;'; + } + return undefined; + } + ] + ]) + }; + const AddPhoneContactApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'firstName', + { + type: 'string', + required: true + } + ], + [ + 'photoFilePath', + { + type: 'string' + } + ], + [ + 'nickName', + { + type: 'string' + } + ], + [ + 'lastName', + { + type: 'string' + } + ], + [ + 'middleName', + { + type: 'string' + } + ], + [ + 'remark', + { + type: 'string' + } + ], + [ + 'mobilePhoneNumber', + { + type: 'string' + } + ], + [ + 'weChatNumber', + { + type: 'string' + } + ], + [ + 'addressCountry', + { + type: 'string' + } + ], + [ + 'addressState', + { + type: 'string' + } + ], + [ + 'addressCity', + { + type: 'string' + } + ], + [ + 'addressStreet', + { + type: 'string' + } + ], + [ + 'addressPostalCode', + { + type: 'string' + } + ], + [ + 'organization', + { + type: 'string' + } + ], + [ + 'title', + { + type: 'string' + } + ], + [ + 'workFaxNumber', + { + type: 'string' + } + ], + [ + 'workPhoneNumber', + { + type: 'string' + } + ], + [ + 'hostNumber', + { + type: 'string' + } + ], + [ + 'email', + { + type: 'string' + } + ], + [ + 'url', + { + type: 'string' + } + ], + [ + 'workAddressCountry', + { + type: 'string' + } + ], + [ + 'workAddressState', + { + type: 'string' + } + ], + [ + 'workAddressCity', + { + type: 'string' + } + ], + [ + 'workAddressStreet', + { + type: 'string' + } + ], + [ + 'workAddressPostalCode', + { + type: 'string' + } + ], + [ + 'homeFaxNumber', + { + type: 'string' + } + ], + [ + 'homePhoneNumber', + { + type: 'string' + } + ], + [ + 'homeAddressCountry', + { + type: 'string' + } + ], + [ + 'homeAddressState', + { + type: 'string' + } + ], + [ + 'homeAddressCity', + { + type: 'string' + } + ], + [ + 'homeAddressStreet', + { + type: 'string' + } + ], + [ + 'homeAddressPostalCode', + { + type: 'string' + } + ] + ]); + const addPhoneContact: AddPhoneContact = defineAsyncApi<AddPhoneContactOptions, AddPhoneContactSuccess>(API_ADD_PHONE_CONTACT, (args: AddPhoneContactOptions, executor: ApiExecutor<AddPhoneContactSuccess>)=>{ + UTSHarmony.requestSystemPermission([ + 'ohos.permission.WRITE_CONTACTS' + ], (allRight: boolean)=>{ + if (allRight) { + const photoFilePath = args.photoFilePath, _args_nickName = args.nickName, nickName = _args_nickName == null ? '' : _args_nickName, _args_lastName = args.lastName, lastName = _args_lastName == null ? '' : _args_lastName, _args_middleName = args.middleName, middleName = _args_middleName == null ? '' : _args_middleName, _args_firstName = args.firstName, firstName = _args_firstName == null ? '' : _args_firstName, _args_remark = args.remark, remark = _args_remark == null ? '' : _args_remark, _args_mobilePhoneNumber = args.mobilePhoneNumber, mobilePhoneNumber = _args_mobilePhoneNumber == null ? '' : _args_mobilePhoneNumber, _args_addressCountry = args.addressCountry, addressCountry = _args_addressCountry == null ? '' : _args_addressCountry, _args_addressState = args.addressState, addressState = _args_addressState == null ? '' : _args_addressState, _args_addressCity = args.addressCity, addressCity = _args_addressCity == null ? '' : _args_addressCity, _args_addressStreet = args.addressStreet, addressStreet = _args_addressStreet == null ? '' : _args_addressStreet, _args_addressPostalCode = args.addressPostalCode, addressPostalCode = _args_addressPostalCode == null ? '' : _args_addressPostalCode, _args_organization = args.organization, organization = _args_organization == null ? '' : _args_organization, _args_url = args.url, url = _args_url == null ? '' : _args_url, _args_workPhoneNumber = args.workPhoneNumber, workPhoneNumber = _args_workPhoneNumber == null ? '' : _args_workPhoneNumber, _args_workFaxNumber = args.workFaxNumber, workFaxNumber = _args_workFaxNumber == null ? '' : _args_workFaxNumber, _args_hostNumber = args.hostNumber, hostNumber = _args_hostNumber == null ? '' : _args_hostNumber, _args_email = args.email, email = _args_email == null ? '' : _args_email, _args_title = args.title, title = _args_title == null ? '' : _args_title, _args_workAddressCountry = args.workAddressCountry, workAddressCountry = _args_workAddressCountry == null ? '' : _args_workAddressCountry, _args_workAddressState = args.workAddressState, workAddressState = _args_workAddressState == null ? '' : _args_workAddressState, _args_workAddressCity = args.workAddressCity, workAddressCity = _args_workAddressCity == null ? '' : _args_workAddressCity, _args_workAddressStreet = args.workAddressStreet, workAddressStreet = _args_workAddressStreet == null ? '' : _args_workAddressStreet, workAddressPostalCode = args.workAddressPostalCode, _args_homeFaxNumber = args.homeFaxNumber, homeFaxNumber = _args_homeFaxNumber == null ? '' : _args_homeFaxNumber, _args_homePhoneNumber = args.homePhoneNumber, homePhoneNumber = _args_homePhoneNumber == null ? '' : _args_homePhoneNumber, _args_homeAddressCountry = args.homeAddressCountry, homeAddressCountry = _args_homeAddressCountry == null ? '' : _args_homeAddressCountry, _args_homeAddressState = args.homeAddressState, homeAddressState = _args_homeAddressState == null ? '' : _args_homeAddressState, _args_homeAddressCity = args.homeAddressCity, homeAddressCity = _args_homeAddressCity == null ? '' : _args_homeAddressCity, _args_homeAddressStreet = args.homeAddressStreet, homeAddressStreet = _args_homeAddressStreet == null ? '' : _args_homeAddressStreet, _args_homeAddressPostalCode = args.homeAddressPostalCode, homeAddressPostalCode = _args_homeAddressPostalCode == null ? '' : _args_homeAddressPostalCode; + const contactInfo: contact.Contact = { + name: { + givenName: firstName!, + fullName: lastName! + middleName! + firstName! + } + }; + if (nickName) { + contactInfo.nickName = { + nickName: nickName! + } as contact.NickName; + } + if (lastName) { + contactInfo.name!.familyName = lastName; + } + if (middleName) { + contactInfo.name!.middleName = middleName; + } + if (email) { + contactInfo.emails = [ + { + email: email!, + displayName: '邮箱' + } as contact.Email + ]; + } + if (photoFilePath) { + contactInfo.portrait = { + uri: photoFilePath + } as contact.Portrait; + } + if (url) { + contactInfo.websites = [ + { + website: url + } as contact.Website + ]; + } + if (remark) { + contactInfo.note = { + noteContent: remark + } as contact.Note; + } + if (organization) { + contactInfo.organization = { + name: organization, + title: title! + } as contact.Organization; + } + const phoneNumbers: contact.PhoneNumber[] = []; + if (homePhoneNumber) { + phoneNumbers.push({ + phoneNumber: homePhoneNumber!, + labelId: contact.PhoneNumber.NUM_HOME + } as contact.PhoneNumber); + } + if (mobilePhoneNumber) { + phoneNumbers.push({ + phoneNumber: mobilePhoneNumber!, + labelId: contact.PhoneNumber.NUM_MOBILE + } as contact.PhoneNumber); + } + if (homeFaxNumber) { + phoneNumbers.push({ + phoneNumber: homeFaxNumber!, + labelId: contact.PhoneNumber.NUM_FAX_HOME + } as contact.PhoneNumber); + } + if (workFaxNumber) { + phoneNumbers.push({ + phoneNumber: workFaxNumber!, + labelId: contact.PhoneNumber.NUM_FAX_WORK + } as contact.PhoneNumber); + } + if (workPhoneNumber) { + phoneNumbers.push({ + phoneNumber: workPhoneNumber!, + labelId: contact.PhoneNumber.NUM_WORK + } as contact.PhoneNumber); + } + if (hostNumber) { + phoneNumbers.push({ + phoneNumber: hostNumber!, + labelId: contact.PhoneNumber.NUM_COMPANY_MAIN + } as contact.PhoneNumber); + } + if (phoneNumbers.length) contactInfo.phoneNumbers = phoneNumbers; + const postalAddresses: contact.PostalAddress[] = []; + if (homeAddressCity || homeAddressCountry || homeAddressPostalCode || homeAddressStreet) { + postalAddresses.push({ + city: homeAddressCity!, + country: homeAddressCountry!, + postcode: homeAddressPostalCode!, + street: homeAddressStreet!, + postalAddress: `${homeAddressCountry!}${homeAddressState!}${homeAddressCity!}${homeAddressStreet!}`, + labelId: contact.PostalAddress.ADDR_HOME + } as contact.PostalAddress); + } + if (workAddressCity || workAddressCountry || workAddressPostalCode || workAddressStreet) { + postalAddresses.push({ + city: workAddressCity!, + country: workAddressCountry!, + postcode: workAddressPostalCode!, + street: workAddressStreet!, + postalAddress: `${workAddressCountry!}${workAddressState!}${workAddressCity!}${workAddressStreet!}`, + labelId: contact.PostalAddress.ADDR_WORK + } as contact.PostalAddress); + } + if (addressCity || addressCountry || addressPostalCode || addressStreet) { + postalAddresses.push({ + city: addressCity!, + country: addressCountry!, + postcode: addressPostalCode!, + street: addressStreet!, + postalAddress: `${addressCountry!}${addressState!}${addressCity!}${addressStreet!}`, + labelId: contact.PostalAddress.CUSTOM_LABEL + } as contact.PostalAddress); + } + if (postalAddresses.length) contactInfo.postalAddresses = postalAddresses; + contact.addContact(UTSHarmony.getUIAbilityContext()!, contactInfo).then((contactId)=>{ + executor.resolve(contactId); + }).catch((err: BusinessError)=>{ + executor.reject(err.message); + }); + } else { + executor.reject('Permission denied'); + } + }, ()=>executor.reject('Permission denied')); + }, AddPhoneContactApiProtocol, AddPhoneContactApiOptions) as AddPhoneContact; + const API_START_SOTER_AUTHENTICATION = 'startSoterAuthentication'; + const StartSoterAuthenticationApiOptions: ApiOptions<StartSoterAuthenticationOptions> = { + formatArgs: new Map<string, ((value: string) => string | undefined)>([ + [ + 'requestAuthModes', + (value: string)=>{ + if (!value.includes('fingerPrint') && !value.includes('facial')) { + return 'requestAuthModes 填写错误'; + } + return undefined; + } + ] + ]) + }; + const StartSoterAuthenticationApiProtocols = new Map<string, ProtocolOptions>([ + [ + 'requestAuthModes', + { + type: 'array', + required: true + } + ], + [ + 'challenge', + { + type: 'string', + required: true + } + ], + [ + 'authContent', + { + type: 'string' + } + ] + ]); + const API_CHECK_IS_SOTER_ENROLLED_IN_DEVICE = 'checkIsSoterEnrolledInDevice'; + const checkAuthModes: SoterAuthMode[] = [ + 'fingerPrint', + 'facial', + 'speech' + ]; + const CheckIsSoterEnrolledInDeviceApiOptions: ApiOptions<CheckIsSoterEnrolledInDeviceOptions> = { + formatArgs: new Map<string, ((value: string) => string | undefined)>([ + [ + 'checkAuthMode', + (value: string)=>{ + if (!checkAuthModes.includes(value as SoterAuthMode)) { + return 'checkAuthMode 填写错误'; + } + return undefined; + } + ] + ]) + }; + const CheckIsSoterEnrolledInDeviceProtocols = new Map<string, ProtocolOptions>([ + [ + 'checkAuthMode', + { + type: 'string' + } + ] + ]); + const API_CHECK_IS_SUPPORT_SOTER_AUTHENTICATION = 'checkIsSupportSoterAuthentication'; + const getErrorMessage = (code: number): string =>{ + switch(code){ + case 201: + return "权限认证失败"; + case 401: + return "参数不正确。可能的一个原因: 强制参数未指定"; + case userAuth.UserAuthResultCode.FAIL: + return "认证失败"; + case userAuth.UserAuthResultCode.GENERAL_ERROR: + return "操作通用错误"; + case userAuth.UserAuthResultCode.CANCELED: + return "操作取消"; + case userAuth.UserAuthResultCode.TIMEOUT: + return "操作超时"; + case userAuth.UserAuthResultCode.TYPE_NOT_SUPPORT: + return "不支持的认证类型"; + case userAuth.UserAuthResultCode.TRUST_LEVEL_NOT_SUPPORT: + return "不支持的认证等级"; + case userAuth.UserAuthResultCode.BUSY: + return "忙碌状态"; + case userAuth.UserAuthResultCode.LOCKED: + return "认证器已锁定"; + case userAuth.UserAuthResultCode.NOT_ENROLLED: + return "用户未录入认证信息"; + case userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET: + return "切换到自定义身份验证过程"; + case 12500013: + return "系统锁屏密码过期"; + default: + return ''; + } + }; + const getUniErrMsg = (code: number): number =>{ + switch(code){ + case 201: + return 90002; + case 401: + return 90004; + case userAuth.UserAuthResultCode.FAIL: + return 90009; + case userAuth.UserAuthResultCode.GENERAL_ERROR: + return 90007; + case userAuth.UserAuthResultCode.CANCELED: + return 90008; + case userAuth.UserAuthResultCode.TIMEOUT: + return 90007; + case userAuth.UserAuthResultCode.TYPE_NOT_SUPPORT: + return 90003; + case userAuth.UserAuthResultCode.TRUST_LEVEL_NOT_SUPPORT: + return 90003; + case userAuth.UserAuthResultCode.BUSY: + return 90010; + case userAuth.UserAuthResultCode.LOCKED: + return 90010; + case userAuth.UserAuthResultCode.NOT_ENROLLED: + return 90011; + case userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET: + return userAuth.UserAuthResultCode.CANCELED_FROM_WIDGET; + case 12500013: + return 12500013; + default: + return -1; + } + }; + const toUint8Arr = (str: string)=>{ + const buffer: number[] = []; + for (let i of str){ + const _code: number = i.charCodeAt(0); + if (_code < 0x80) { + buffer.push(_code); + } else if (_code < 0x800) { + buffer.push(0xc0 + (_code >> 6)); + buffer.push(0x80 + (_code & 0x3f)); + } else if (_code < 0x10000) { + buffer.push(0xe0 + (_code >> 12)); + buffer.push(0x80 + (_code >> 6 & 0x3f)); + buffer.push(0x80 + (_code & 0x3f)); + } + } + return Uint8Array.from(buffer); + }; + const startSoterAuthentication: StartSoterAuthentication = defineAsyncApi<StartSoterAuthenticationOptions, StartSoterAuthenticationSuccess>(API_START_SOTER_AUTHENTICATION, (args: StartSoterAuthenticationOptions, executor: ApiExecutor<StartSoterAuthenticationSuccess>)=>{ + const authType: userAuth.UserAuthType[] = []; + args.requestAuthModes.forEach((item)=>{ + if (item === 'fingerPrint') { + authType.push(userAuth.UserAuthType.FINGERPRINT); + } else if (item === 'facial') { + authType.push(userAuth.UserAuthType.FACE); + } + }); + const challengeArr = toUint8Arr(args.challenge ?? ''); + const authContent = args.authContent ?? ''; + try { + const auth = userAuth.getUserAuthInstance({ + challenge: challengeArr, + authType, + authTrustLevel: userAuth.AuthTrustLevel.ATL1 + } as userAuth.AuthParam, { + title: authContent + } as userAuth.WidgetParam); + auth.on("result", { + onResult: (result: userAuth.UserAuthResult)=>{ + if (result.result === userAuth.UserAuthResultCode.SUCCESS) { + executor.resolve({ + errCode: 0, + authMode: result.authType === userAuth.UserAuthType.FINGERPRINT ? 'fingerPrint' : 'facial' + } as StartSoterAuthenticationSuccess); + } else { + const errMsg = getErrorMessage(result.result); + const errCode = getUniErrMsg(result.result); + executor.reject(errMsg, { + errCode + } as ApiError); + } + } + } as userAuth.IAuthCallback); + if (authContent) { + promptAction.showToast({ + message: authContent + } as promptAction.ShowToastOptions); + } + auth.start(); + } catch (error) { + const code = (error as BusinessError1).code; + executor.reject(getErrorMessage(code), { + errCode: getUniErrMsg(code) + } as ApiError); + } + }, StartSoterAuthenticationApiProtocols, StartSoterAuthenticationApiOptions) as StartSoterAuthentication; + const fingerPrintAvailable = ()=>{ + try { + userAuth.getAvailableStatus(userAuth.UserAuthType.FINGERPRINT, userAuth.AuthTrustLevel.ATL1); + return true; + } catch (error) { + if ([ + userAuth.UserAuthResultCode.NOT_ENROLLED, + userAuth.UserAuthResultCode.PIN_EXPIRED + ].includes((error as BusinessError1).code)) { + return true; + } + return false; + } + }; + const faceAvailable = ()=>{ + try { + userAuth.getAvailableStatus(userAuth.UserAuthType.FACE, userAuth.AuthTrustLevel.ATL1); + return true; + } catch (error) { + if ([ + userAuth.UserAuthResultCode.NOT_ENROLLED, + userAuth.UserAuthResultCode.PIN_EXPIRED + ].includes((error as BusinessError1).code)) { + return true; + } + return false; + } + }; + const PERMISSIONS = [ + 'ohos.permission.ACCESS_BIOMETRIC' + ]; + const checkIsSupportSoterAuthentication: CheckIsSupportSoterAuthentication = defineAsyncApi<CheckIsSupportSoterAuthenticationOptions, CheckIsSupportSoterAuthenticationSuccess>(API_CHECK_IS_SUPPORT_SOTER_AUTHENTICATION, (args: CheckIsSupportSoterAuthenticationOptions, executor: ApiExecutor<CheckIsSupportSoterAuthenticationSuccess>)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS, (allRight: boolean)=>{ + if (allRight) { + try { + const supportMode: SoterAuthMode[] = []; + if (fingerPrintAvailable()) supportMode.push('fingerPrint'); + if (faceAvailable()) supportMode.push('facial'); + return executor.resolve({ + supportMode, + errMsg: '' + } as CheckIsSupportSoterAuthenticationSuccess); + } catch (error) { + const code = (error as BusinessError1).code; + executor.reject(getErrorMessage(code), { + errCode: getUniErrMsg(code) + } as ApiError); + } + } else { + executor.reject(getErrorMessage(201)); + } + }, ()=>{ + executor.reject(getErrorMessage(201)); + }); + }) as CheckIsSupportSoterAuthentication; + const getFingerPrintEnrolledState = ()=>{ + userAuth.getEnrolledState(userAuth.UserAuthType.FINGERPRINT); + return true; + }; + const getFaceEnrolledState = ()=>{ + userAuth.getEnrolledState(userAuth.UserAuthType.FACE); + return true; + }; + const harmonyCheckIsSoterEnrolledInDevice = (checkAuthMode: SoterAuthMode): boolean =>{ + if (checkAuthMode === 'fingerPrint') { + return getFingerPrintEnrolledState(); + } else if (checkAuthMode === 'facial') { + return getFaceEnrolledState(); + } + return false; + }; + const checkIsSoterEnrolledInDevice: CheckIsSoterEnrolledInDevice = defineAsyncApi<CheckIsSoterEnrolledInDeviceOptions, CheckIsSoterEnrolledInDeviceSuccess>(API_CHECK_IS_SOTER_ENROLLED_IN_DEVICE, (args: CheckIsSoterEnrolledInDeviceOptions, executor: ApiExecutor<CheckIsSoterEnrolledInDeviceSuccess>)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS, (allRight: boolean)=>{ + if (allRight) { + try { + const isEnrolled = harmonyCheckIsSoterEnrolledInDevice(args.checkAuthMode); + executor.resolve({ + isEnrolled, + errMsg: '' + } as CheckIsSoterEnrolledInDeviceSuccess); + } catch (error) { + const code = (error as BusinessError1).code; + executor.reject(getErrorMessage(code), { + errCode: getUniErrMsg(code) + } as ApiError); + } + } else { + executor.reject(getErrorMessage(201)); + } + }, ()=>{ + executor.reject(getErrorMessage(201)); + }); + }, CheckIsSoterEnrolledInDeviceProtocols, CheckIsSoterEnrolledInDeviceApiOptions) as CheckIsSoterEnrolledInDevice; + const API_CHOOSE_MEDIA = 'chooseMedia'; + const ChooseMediaApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'count', + { + type: 'number', + required: false + } + ], + [ + 'mediaType', + { + type: 'array', + required: false + } + ], + [ + 'sourceType', + { + type: 'array', + required: false + } + ], + [ + 'maxDuration', + { + type: 'number', + required: false + } + ], + [ + 'camera', + { + type: 'string', + required: false + } + ] + ]); + const ChooseMediaApiOptions: ApiOptions<ChooseMediaOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'count', + (count: number, params: ChooseMediaOptions)=>{ + if (count == null) { + params.count = 9; + } + if (params.count != null && params.count > 9) { + params.count = 9; + } + } + ], + [ + 'mediaType', + (mediaType: string[], params: ChooseMediaOptions)=>{ + if (mediaType == null) { + params.mediaType = [ + 'image', + 'video' + ]; + } + } + ], + [ + 'sourceType', + (sourceType: string[], params: ChooseMediaOptions)=>{ + if (sourceType == null) { + params.sourceType = [ + 'album', + 'camera' + ]; + } + } + ], + [ + 'maxDuration', + (maxDuration: number, params: ChooseMediaOptions)=>{ + if (maxDuration == null) { + params.maxDuration = 10; + } + } + ], + [ + 'camera', + (camera: string, params: ChooseMediaOptions)=>{ + if (camera == null) { + params.camera = 'back'; + } + } + ] + ]) + }; + const _getVideoInfo = async (uri: string): Promise<_GetVideoInfoSuccess> =>{ + const file = await fs.open(uri, fs.OpenMode.READ_ONLY); + const avMetadataExtractor = await media.createAVMetadataExtractor(); + let metadata: media.AVMetadata | null = null; + let size: number = 0; + try { + size = (await fs.stat(file.fd)).size; + avMetadataExtractor.dataSrc = { + fileSize: size, + callback: (buffer: ArrayBuffer, length: number, pos: number | null = null)=>{ + return fs.readSync(file.fd, buffer, { + offset: pos, + length + } as ReadOptions); + } + }; + metadata = await avMetadataExtractor.fetchMetadata(); + } catch (error) { + throw error as Error; + } finally{ + await avMetadataExtractor.release(); + await fs.close(file); + } + const videoOrientationArr = [ + 'up', + 'right', + 'down', + 'left' + ] as _MediaOrientation[]; + return { + size: size, + duration: metadata.duration ? Number(metadata.duration) / 1000 : undefined, + width: metadata.videoWidth ? Number(metadata.videoWidth) : undefined, + height: metadata.videoHeight ? Number(metadata.videoHeight) : undefined, + type: metadata.mimeType, + orientation: metadata.videoOrientation ? videoOrientationArr[Number(metadata.videoOrientation) / 90] : undefined + } as _GetVideoInfoSuccess; + }; + const _chooseMedia = async (options: __ChooseMediaOptions): Promise<_chooseMediaSuccessCallbackResult> =>{ + const photoSelectOptions = new photoAccessHelper.PhotoSelectOptions(); + const mimeType = options.mimeType; + photoSelectOptions.MIMEType = mimeType; + if (mimeType === photoAccessHelper.PhotoViewMIMETypes.VIDEO_TYPE) { + photoSelectOptions.maxSelectNumber = 1; + } else { + photoSelectOptions.maxSelectNumber = options.count || 9; + } + photoSelectOptions.isOriginalSupported = options.isOriginalSupported; + photoSelectOptions.isPhotoTakingSupported = !(options.sourceType && !options.sourceType.includes('camera')); + const photoPicker = new photoAccessHelper.PhotoViewPicker(); + const photoSelectResult = await photoPicker.select(photoSelectOptions); + const uris = photoSelectResult.photoUris; + if (mimeType !== photoAccessHelper.PhotoViewMIMETypes.VIDEO_TYPE) { + let realUris: string[] = uris; + return { + tempFiles: realUris.map((uri)=>{ + const file = fs.openSync(uri, fs.OpenMode.READ_ONLY); + const stat = fs.statSync(file.fd); + fs.closeSync(file); + return { + fileType: 'image', + tempFilePath: uri, + size: stat.size + } as _MediaFile; + }) + }; + } + const tempFiles: _MediaFile[] = []; + for(let i = 0; i < uris.length; i++){ + const uri = uris[i]; + const videoInfo = await _getVideoInfo(uri); + tempFiles.push({ + fileType: 'video', + tempFilePath: uri, + size: videoInfo.size, + duration: videoInfo.duration, + width: videoInfo.width, + height: videoInfo.height + } as _MediaFile); + } + return { + tempFiles + } as _chooseMediaSuccessCallbackResult; + }; + const getHMCameraPosition = (cameraType: CameraPosition)=>{ + switch(cameraType){ + case 'back': + return camera.CameraPosition.CAMERA_POSITION_BACK; + case 'front': + return camera.CameraPosition.CAMERA_POSITION_FRONT; + default: + return camera.CameraPosition.CAMERA_POSITION_BACK; + } + }; + const getCameraPickerMediaTypes = (UniMediaTypes: UNI_MEDIA_TYPE[]): cameraPicker.PickerMediaType[] =>{ + let mediaTypes: Array<cameraPicker.PickerMediaType> = []; + if (UniMediaTypes.includes('mix')) { + mediaTypes.push(cameraPicker.PickerMediaType.PHOTO, cameraPicker.PickerMediaType.VIDEO); + } else { + if (UniMediaTypes.includes('image')) { + mediaTypes.push(cameraPicker.PickerMediaType.PHOTO); + } + if (UniMediaTypes.includes('video')) { + mediaTypes.push(cameraPicker.PickerMediaType.VIDEO); + } + } + return mediaTypes; + }; + const _takeCamera = async (args: ChooseMediaOptions, executor: ApiExecutor<ChooseMediaSuccess>)=>{ + try { + let pickerProfile: cameraPicker.PickerProfile = { + cameraPosition: getHMCameraPosition(args?.camera ?? 'back'), + videoDuration: args?.maxDuration ?? 10 + }; + const mediaTypes = getCameraPickerMediaTypes((args.mediaType ?? []) as UNI_MEDIA_TYPE[]); + const res = await cameraPicker.pick(UTSHarmony.getUIAbilityContext()!, mediaTypes, pickerProfile); + executor.resolve({ + type: 'mix', + tempFiles: [ + { + tempFilePath: res.resultUri, + fileType: res.mediaType === cameraPicker.PickerMediaType.PHOTO ? 'image' : 'video' + } + ] + } as ChooseMediaSuccess); + } catch (error) { + const err = error as BusinessError2; + executor.reject(err.message, { + errCode: err.code + } as ApiError); + } + }; + const __chooseMedia = async (args: ChooseMediaOptions, mimeType: photoAccessHelper1.PhotoViewMIMETypes, executor: ApiExecutor<ChooseMediaSuccess>)=>{ + if (args.sourceType?.length === 1 && args.sourceType[0] === 'camera') { + _takeCamera(args, executor); + } else { + _chooseMedia({ + mimeType, + sourceType: [ + "album" + ], + count: args.count!, + isOriginalSupported: true + } as __ChooseMediaOptions).then((res)=>{ + executor.resolve({ + type: 'mix', + tempFiles: res.tempFiles.map((tempFile): ChooseMediaTempFile =>{ + if (tempFile.fileType === 'image') { + return { + fileType: tempFile.fileType, + tempFilePath: tempFile.tempFilePath, + size: tempFile.size + } as ChooseMediaTempFile; + } + return { + tempFilePath: tempFile.tempFilePath, + duration: tempFile.duration, + size: tempFile.size, + height: tempFile.height, + width: tempFile.width, + fileType: tempFile.fileType + } as ChooseMediaTempFile; + }) + } as ChooseMediaSuccess); + }).catch((err: Error)=>{ + executor.reject(err.message); + }); + } + }; + const chooseMedia: ChooseMedia = defineAsyncApi<ChooseMediaOptions, ChooseMediaSuccess>(API_CHOOSE_MEDIA, async (args: ChooseMediaOptions, executor: ApiExecutor<ChooseMediaSuccess>)=>{ + if (args.mediaType?.length === 1 && args.mediaType[0] === 'image') { + __chooseMedia(args, photoAccessHelper1.PhotoViewMIMETypes.IMAGE_TYPE, executor); + return; + } + if (args.mediaType?.length === 1 && args.mediaType[0] === 'video') { + __chooseMedia(args, photoAccessHelper1.PhotoViewMIMETypes.VIDEO_TYPE, executor); + return; + } + if (args.sourceType?.length === 1 && args.sourceType[0] === 'camera') { + _takeCamera(args, executor); + } else { + const lastWindow = UTSHarmony.getCurrentWindow() as window.Window; + const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); + UIContextPromptAction.showActionMenu({ + buttons: [ + { + text: '拍摄', + color: '#000000' + }, + { + text: '从相册选择', + color: '#000000' + } + ] + } as promptAction1.ActionMenuOptions, (err, ref)=>{ + let index = ref.index; + if (err) { + executor.reject('cancel'); + } else { + if (index === 0) { + _takeCamera(args, executor); + } else if (index === 1) { + __chooseMedia(args, photoAccessHelper1.PhotoViewMIMETypes.IMAGE_VIDEO_TYPE, executor); + } + } + }); + } + }, ChooseMediaApiProtocol, ChooseMediaApiOptions) as ChooseMedia; + const API_GET_CLIPBOARD_DATA = 'getClipboardData'; + const API_SET_CLIPBOARD_DATA = 'setClipboardData'; + const SetClipboardDataApiOptions: ApiOptions<SetClipboardDataOptions> = { + formatArgs: new Map<string, boolean>([ + [ + 'showToast', + true + ] + ]) + }; + const SetClipboardDataProtocol = new Map<string, ProtocolOptions>([ + [ + 'data', + { + type: 'string', + required: true + } + ], + [ + 'showToast', + { + type: 'boolean' + } + ] + ]); + const getString = (callback: ClipboardCallback)=>{ + const systemPasteboard: pasteboard.SystemPasteboard = pasteboard.getSystemPasteboard(); + UTSHarmony.requestSystemPermission([ + 'ohos.permission.READ_PASTEBOARD' + ], (allRight: boolean)=>{ + if (allRight) { + const pasteData = systemPasteboard.getDataSync(); + try { + const text: string = pasteData.getPrimaryText(); + callback({ + data: text, + result: 'success' + } as ClipboardCallbackOptions); + } catch (err) { + callback({ + data: (err as BusinessError3<void>).message, + result: 'fail' + } as ClipboardCallbackOptions); + } + } else { + callback({ + data: 'Permission denied', + result: 'fail' + } as ClipboardCallbackOptions); + } + }, ()=>{ + callback({ + data: 'Permission denied', + result: 'fail' + } as ClipboardCallbackOptions); + }); + }; + const setString = (data: string)=>{ + const pasteData: pasteboard.PasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_PLAIN, data); + const systemPasteboard: pasteboard.SystemPasteboard = pasteboard.getSystemPasteboard(); + try { + systemPasteboard.setDataSync(pasteData); + return { + data, + result: 'success' + } as ClipboardCallbackOptions; + } catch (err) { + return { + data: (err as BusinessError3<void>).message, + result: 'fail' + } as ClipboardCallbackOptions; + } + }; + const getClipboardData: GetClipboardData = defineAsyncApi<GetClipboardDataOptions, GetClipboardDataSuccess>(API_GET_CLIPBOARD_DATA, (_: GetClipboardDataOptions, res: ApiExecutor<GetClipboardDataSuccess>)=>{ + getString((ret: ClipboardCallbackOptions)=>{ + if (ret.result === 'success') { + res.resolve({ + data: ret.data + } as GetClipboardDataSuccess); + } else { + res.reject('getClipboardData:fail ' + ret.data); + } + }); + }) as GetClipboardData; + const setClipboardData: SetClipboardData = defineAsyncApi<SetClipboardDataOptions, SetClipboardDataSuccess>(API_SET_CLIPBOARD_DATA, (options: SetClipboardDataOptions, res: ApiExecutor<SetClipboardDataSuccess>)=>{ + const ret = setString(options.data); + if (ret.result === 'success') { + res.resolve(); + } else { + res.reject('setClipboardData:fail ' + ret.data); + } + }, SetClipboardDataProtocol, SetClipboardDataApiOptions) as SetClipboardData; + const API_CREATE_INNER_AUDIO_CONTEXT = 'createInnerAudioContext'; + const isFileUri = (path: string)=>{ + return path && typeof path === 'string' && (path.startsWith('file://') || path.startsWith('datashare://')); + }; + const isSandboxPath = (path: string)=>{ + return path && typeof path === 'string' && path.startsWith('/data/storage/'); + }; + const getFdFromUriOrSandBoxPath = (uri: string)=>{ + try { + const file = fileIo.openSync(uri, fileIo.OpenMode.READ_ONLY); + return file.fd; + } catch (error) { + console.info(`[AdvancedAPI] Can not get file from uri: ${uri} `); + } + throw new Error('file is not exist'); + }; + const callCallbacks = (callbacks: Function[], ...args: Object[])=>{ + callbacks.forEach((cb)=>{ + typeof cb === 'function' && cb(...args); + }); + }; + const remoteCallback = (callbacks: Function[], callback: Function)=>{ + const index = callbacks.indexOf(callback); + if (index > -1) { + callbacks.splice(index, 1); + } + }; + class AudioPlayerError { + errMsg: string; + errCode: number; + constructor(errMsg: string, errCode: number){ + this.errMsg = errMsg; + this.errCode = errCode; + } + } + class AudioPlayerCallback { + onCanplayCallbacks: Function[] = []; + onPlayCallbacks: Function[] = []; + onPauseCallbacks: Function[] = []; + onStopCallbacks: Function[] = []; + onEndedCallbacks: Function[] = []; + onTimeUpdateCallbacks: Function[] = []; + onErrorCallbacks: Function[] = []; + onWaitingCallbacks: Function[] = []; + onSeekingCallbacks: Function[] = []; + onSeekedCallbacks: Function[] = []; + constructor(){} + canPlay() { + callCallbacks(this.onCanplayCallbacks); + } + onCanplay(callback: Function) { + this.onCanplayCallbacks.push(callback); + } + offCanplay(callback: Function) { + remoteCallback(this.onCanplayCallbacks, callback); + } + play() { + callCallbacks(this.onPlayCallbacks); + } + onPlay(callback: Function) { + this.onPlayCallbacks.push(callback); + } + offPlay(callback: Function) { + remoteCallback(this.onPlayCallbacks, callback); + } + pause() { + callCallbacks(this.onPauseCallbacks); + } + onPause(callback: Function) { + this.onPauseCallbacks.push(callback); + } + offPause(callback: Function) { + remoteCallback(this.onPauseCallbacks, callback); + } + stop() { + callCallbacks(this.onStopCallbacks); + } + onStop(callback: Function) { + this.onStopCallbacks.push(callback); + } + offStop(callback: Function) { + remoteCallback(this.onStopCallbacks, callback); + } + ended() { + callCallbacks(this.onEndedCallbacks); + } + onEnded(callback: Function) { + this.onEndedCallbacks.push(callback); + } + offEnded(callback: Function) { + remoteCallback(this.onEndedCallbacks, callback); + } + timeUpdate(time: number) { + callCallbacks(this.onTimeUpdateCallbacks, time); + } + onTimeUpdate(callback: Function) { + this.onTimeUpdateCallbacks.push(callback); + } + offTimeUpdate(callback: Function) { + remoteCallback(this.onTimeUpdateCallbacks, callback); + } + error(res: AudioPlayerError) { + callCallbacks(this.onErrorCallbacks, res); + } + onError(callback: Function) { + this.onErrorCallbacks.push(callback); + } + offError(callback: Function) { + remoteCallback(this.onErrorCallbacks, callback); + } + onPrev(callback: Function) { + console.info('ios only'); + } + onNext(callback: Function) { + console.info('ios only'); + } + waiting() { + callCallbacks(this.onWaitingCallbacks); + } + onWaiting(callback: Function) { + this.onWaitingCallbacks.push(callback); + } + offWaiting(callback: Function) { + remoteCallback(this.onWaitingCallbacks, callback); + } + seeking() { + callCallbacks(this.onSeekingCallbacks); + } + onSeeking(callback: Function) { + this.onSeekingCallbacks.push(callback); + } + offSeeking(callback: Function) { + remoteCallback(this.onSeekingCallbacks, callback); + } + seeked() { + callCallbacks(this.onSeekedCallbacks); + } + onSeeked(callback: Function) { + this.onSeekedCallbacks.push(callback); + } + offSeeked(callback: Function) { + remoteCallback(this.onSeekedCallbacks, callback); + } + } + const AUDIOS: Record<string, InnerAudioContext | undefined> = {}; + const AUDIO_PLAYERS: Record<string, media1.AudioPlayer | undefined> = {}; + const LOG = (msg: string)=>console.log(`[createInnerAudioContext]: ${msg}`); + class STATE_TYPE { + static IDLE: string = 'idle'; + static PLAYING: string = 'playing'; + static PAUSED: string = 'paused'; + static STOPPED: string = 'stopped'; + static ERROR: string = 'error'; + } + class AudioPlayer implements InnerAudioContext { + __v_skip: boolean = true; + private audioPlayerCallback: AudioPlayerCallback = new AudioPlayerCallback(); + private _volume: number = 1; + private _src: string = ''; + private _autoplay: boolean = false; + private _startTime: number = 0; + private _buffered: number = 0; + private _title: string = ''; + private audioId: string = ''; + private _playbackRate: number = 1; + readonly obeyMuteSwitch: boolean = false; + constructor(audioId: string){ + this.audioId = audioId; + this.init(); + } + init() { + AUDIO_PLAYERS[this.audioId]?.on('dataLoad', ()=>{ + this.audioPlayerCallback.canPlay(); + }); + AUDIO_PLAYERS[this.audioId]?.on('play', ()=>{ + this.audioPlayerCallback.play(); + }); + AUDIO_PLAYERS[this.audioId]?.on('pause', ()=>{ + this.audioPlayerCallback.pause(); + }); + AUDIO_PLAYERS[this.audioId]?.on('finish', ()=>{ + this.audioPlayerCallback.ended(); + }); + AUDIO_PLAYERS[this.audioId]?.on('timeUpdate', (res)=>{ + this.audioPlayerCallback.timeUpdate(res / 1000); + }); + AUDIO_PLAYERS[this.audioId]?.on('error', (err)=>{ + this.audioPlayerCallback.error(new AudioPlayerError(err.message, err.code)); + }); + AUDIO_PLAYERS[this.audioId]?.on('bufferingUpdate', (infoType, value)=>{ + console.info(`[AdvancedAPI] audioPlayer bufferingUpdate ${infoType} ${value}`); + if (infoType === media1.BufferingInfoType.BUFFERING_PERCENT && value !== 0 && AUDIO_PLAYERS[this.audioId]) { + this._buffered = value; + if ((AUDIO_PLAYERS[this.audioId]!.currentTime / 1000) >= (AUDIO_PLAYERS[this.audioId]!.duration * value / 100000)) { + this.audioPlayerCallback.waiting(); + } + } + }); + AUDIO_PLAYERS[this.audioId]?.on('audioInterrupt', (InterruptEvent)=>{ + console.info('[AdvancedAPI] audioInterrupt:' + JSON.stringify(InterruptEvent)); + if (AUDIO_PLAYERS[this.audioId] && InterruptEvent.hintType === audio.InterruptHint.INTERRUPT_HINT_PAUSE) { + AUDIO_PLAYERS[this.audioId]!.pause(); + } + }); + } + get duration() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return 0; + } + return audioPlayer.duration / 1000; + } + get currentTime() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return 0; + } + return audioPlayer.currentTime / 1000; + } + get paused() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return false; + } + return audioPlayer.state === STATE_TYPE.PAUSED; + } + get loop() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return false; + } + return audioPlayer.loop; + } + set loop(value) { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (audioPlayer) { + audioPlayer.loop = value; + } + } + get volume() { + return this._volume; + } + set volume(value) { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (audioPlayer) { + this._volume = value; + audioPlayer.setVolume(value); + } + } + get src() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return ''; + } + return audioPlayer.src; + } + set src(value) { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (typeof value !== 'string') { + this.audioPlayerCallback.error(new AudioPlayerError(`set src: ${value} is not string`, 10004)); + return; + } + if (!audioPlayer) { + this.audioPlayerCallback.error(new AudioPlayerError(`player is not exist`, 10001)); + return; + } + if (!value || !(value.startsWith('http:') || value.startsWith('https:') || isFileUri(value) || isSandboxPath(value))) { + LOG(`set src: ${value} is invalid`); + return; + } + let path: string = ''; + if (value.startsWith('http:') || value.startsWith('https:')) { + path = value; + } else if (isFileUri(value) || isSandboxPath(value)) { + try { + const fd = getFdFromUriOrSandBoxPath(value); + path = `fd://${fd}`; + } catch (error) { + console.error(`${JSON.stringify(error)}`); + } + } + if (audioPlayer.src && path !== audioPlayer.src) { + audioPlayer.reset(); + } + AUDIO_PLAYERS[this.audioId]!.src = path; + this._src = value; + if (this._autoplay) { + audioPlayer.play(); + if (this._startTime) { + audioPlayer.seek(this._startTime); + } + } + } + get startTime() { + return this._startTime / 1000; + } + set startTime(time: number) { + this._startTime = time * 1000; + } + get autoplay() { + return this._autoplay; + } + set autoplay(flag) { + this._autoplay = flag; + } + get buffered() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) return 0; + return audioPlayer.duration * this._buffered / 100000; + } + set playbackRate(rate: number) { + this.audioPlayerCallback.error(new AudioPlayerError('HarmonyOS Next Audio setting playbackRate is not supported.', -1)); + } + get playbackRate() { + return this._playbackRate; + } + play() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + const state = audioPlayer.state ?? ''; + if (![ + STATE_TYPE.PAUSED, + STATE_TYPE.STOPPED, + STATE_TYPE.IDLE + ].includes(state)) { + return; + } + if (this._src && audioPlayer.src === '') { + this.src = this._src; + } + audioPlayer.play(); + } + pause() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + const state = audioPlayer.state; + if (STATE_TYPE.PLAYING !== state) { + return; + } + audioPlayer.pause(); + } + stop() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + if (![ + STATE_TYPE.PAUSED, + STATE_TYPE.PLAYING + ].includes(audioPlayer.state)) { + return; + } + audioPlayer.stop(); + this.audioPlayerCallback.stop(); + audioPlayer.release(); + } + seek(position: number) { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + const state = audioPlayer.state; + if (![ + STATE_TYPE.PAUSED, + STATE_TYPE.PLAYING + ].includes(state)) { + return; + } + this.audioPlayerCallback.seeking(); + audioPlayer.seek(position * 1000); + this.audioPlayerCallback.seeked(); + } + destroy() { + const audioPlayer = AUDIO_PLAYERS[this.audioId]; + if (!audioPlayer) { + return; + } + audioPlayer.release(); + AUDIO_PLAYERS[this.audioId] = undefined; + AUDIOS[this.audioId] = undefined; + } + onCanplay(callback: (result: Object) => void): void { + this.audioPlayerCallback.onCanplay(callback); + } + onPlay(callback: (result: Object) => void): void { + this.audioPlayerCallback.onPlay(callback); + } + onPause(callback: (result: Object) => void): void { + this.audioPlayerCallback.onPause(callback); + } + onStop(callback: (result: Object) => void): void { + this.audioPlayerCallback.onStop(callback); + } + onEnded(callback: (result: Object) => void): void { + this.audioPlayerCallback.onEnded(callback); + } + onTimeUpdate(callback: (result: Object) => void): void { + this.audioPlayerCallback.onTimeUpdate(callback); + } + onError(callback: (result: ICreateInnerAudioContextFail) => void): void { + this.audioPlayerCallback.onError(callback); + } + onWaiting(callback: (result: Object) => void): void { + this.audioPlayerCallback.onWaiting(callback); + } + onSeeking(callback: (result: Object) => void): void { + this.audioPlayerCallback.onSeeking(callback); + } + onSeeked(callback: (result: Object) => void): void { + this.audioPlayerCallback.onSeeked(callback); + } + offCanplay(callback: (result: Object) => void): void { + this.audioPlayerCallback.offCanplay(callback); + } + offPlay(callback: (result: Object) => void): void { + this.audioPlayerCallback.offPlay(callback); + } + offPause(callback: (result: Object) => void): void { + this.audioPlayerCallback.offPause(callback); + } + offStop(callback: (result: Object) => void): void { + this.audioPlayerCallback.offStop(callback); + } + offEnded(callback: (result: Object) => void): void { + this.audioPlayerCallback.offEnded(callback); + } + offTimeUpdate(callback: (result: Object) => void): void { + this.audioPlayerCallback.offTimeUpdate(callback); + } + offError(callback: (result: ICreateInnerAudioContextFail) => void): void { + this.audioPlayerCallback.offError(callback); + } + offWaiting(callback: (result: Object) => void): void { + this.audioPlayerCallback.offWaiting(callback); + } + offSeeking(callback: (result: Object) => void): void { + this.audioPlayerCallback.offSeeking(callback); + } + offSeeked(callback: (result: Object) => void): void { + this.audioPlayerCallback.offSeeked(callback); + } + } + const createAudioInstance = ()=>{ + const audioId = `${Date.now()}${Math.random()}`; + AUDIO_PLAYERS[audioId] = media1.createAudioPlayer(); + AUDIOS[audioId] = new AudioPlayer(audioId); + return audioId; + }; + const createInnerAudioContext: CreateInnerAudioContext = defineSyncApi<InnerAudioContext>(API_CREATE_INNER_AUDIO_CONTEXT, ()=>{ + const audioId = createAudioInstance(); + return AUDIOS[audioId]; + }) as CreateInnerAudioContext; + const API_$_ON = '$on'; + const API_$_ONCE = '$once'; + const API_$_OFF = '$off'; + const API_$_EMIT = '$emit'; + const emitterStore = new Map<string, IUniEventEmitter>(); + const getEmitter = (): IUniEventEmitter =>{ + const mp = getCurrentMP(); + const id = mp.id as string; + if (emitterStore.has(id)) { + return emitterStore.get(id) as IUniEventEmitter; + } + const emitter = new Emitter() as IUniEventEmitter; + emitterStore.set(id, emitter); + mp.on('beforeClose', ()=>{ + emitterStore.delete(id); + }); + return emitter; + }; + const $on: $On = defineSyncApi<number>(API_$_ON, (eventName: string, callback: Function)=>{ + return getEmitter().on(eventName, callback); + }) as $On; + const $once: $Once = defineSyncApi<number>(API_$_ONCE, (eventName: string, callback: Function)=>{ + return getEmitter().once(eventName, callback); + }) as $Once; + const $off: $Off = defineSyncApi<void>(API_$_OFF, (eventName: string, callback: Function)=>{ + getEmitter().off(eventName, callback); + }) as $Off; + const $emit: $Emit = defineSyncApi<void>(API_$_EMIT, (eventName: string, ...args: (Object | undefined | null)[])=>{ + getEmitter().emit(eventName, ...args); + }) as $Emit; + const API_EXIT = 'exit'; + const exit: Exit = defineSyncApi<void>(API_EXIT, ()=>{ + UTSHarmony.exit(); + }) as Exit; + const API_SAVE_FILE = 'saveFile'; + const API_GET_FILE_INFO = 'getFileInfo'; + const API_GET_SAVED_FILE_INFO = 'getSavedFileInfo'; + const API_GET_SAVED_FILE_LIST = 'getSavedFileList'; + const API_REMOVE_SAVED_FILE = 'removeSavedFile'; + const getSavedDir = ()=>{ + return getEnv().USER_DATA_PATH + '/saved'; + }; + let savedIndex: [string, number] = [ + '0', + 0 + ]; + const getSavedFileName = (filePath: string)=>{ + const ext = filePath.split('/').pop()?.split('.').slice(1).join('.'); + let fileName = Date.now() + ''; + if (savedIndex[0] === fileName) { + savedIndex[1]++; + if (savedIndex[1] > 0) { + fileName += '-' + savedIndex[1]; + } + } else { + savedIndex[0] = fileName; + savedIndex[1] = 0; + } + if (ext) { + fileName += '.' + ext; + } + return fileName; + }; + const getFsPath = (filePath: string)=>{ + filePath = getRealPath(filePath) as string; + if (!/^file:/.test(filePath)) { + return filePath; + } + const rawPath = filePath.replace(/^file:\/\//, ''); + if (rawPath[0] === '/') { + return rawPath; + } + return filePath; + }; + const saveFile: SaveFile = defineAsyncApi<LegacySaveFileOptions, LegacySaveFileSuccess>(API_SAVE_FILE, (options: LegacySaveFileOptions, exec: ApiExecutor<LegacySaveFileSuccess>)=>{ + const tempFilePath = getRealPath(options.tempFilePath) as string; + const savedPath = getSavedDir(); + if (!fs1.accessSync(savedPath)) { + fs1.mkdirSync(savedPath, true); + } + let srcFile: fs1.File; + try { + srcFile = fs1.openSync(tempFilePath, fs1.OpenMode.READ_ONLY); + } catch (error) { + exec.reject((error as Error).message); + return; + } + const savedFilePath = savedPath + '/' + getSavedFileName(tempFilePath); + fs1.copyFile(srcFile.fd, savedFilePath, (err)=>{ + fs1.closeSync(srcFile); + if (err) { + exec.reject(err.message); + } else { + exec.resolve({ + savedFilePath + } as LegacySaveFileSuccess); + } + }); + }) as SaveFile; + const getSavedFileList: GetSavedFileList = defineAsyncApi<LegacyGetSavedFileListOptions, LegacyGetSavedFileListSuccess>(API_GET_SAVED_FILE_LIST, (options: LegacyGetSavedFileListOptions, exec: ApiExecutor<LegacyGetSavedFileListSuccess>)=>{ + const savedPath = getSavedDir(); + if (!fs1.accessSync(savedPath)) { + exec.resolve({ + fileList: [] + } as LegacyGetSavedFileListSuccess); + } + fs1.listFile(savedPath, {} as ListFileOptions, (err, fileList)=>{ + if (err) { + exec.reject(err.message); + } else { + exec.resolve({ + fileList: fileList.map((filePath: string)=>{ + const fullPath = savedPath + '/' + filePath; + const stat = fs1.statSync(fullPath); + if (!stat.isFile()) { + return null; + } + return { + filePath: fullPath, + size: stat.size, + createTime: stat.ctime + } as LegacySavedFileListItem; + }).filter((item)=>!!item) + } as LegacyGetSavedFileListSuccess); + } + }); + }) as GetSavedFileList; + const getSavedFileInfo: GetSavedFileInfo = defineAsyncApi<LegacyGetSavedFileInfoOptions, LegacyGetSavedFileInfoSuccess>(API_GET_SAVED_FILE_INFO, (options: LegacyGetSavedFileInfoOptions, exec: ApiExecutor<LegacyGetSavedFileInfoSuccess>)=>{ + const savedFilePath = getFsPath(options.filePath); + if (!fs1.accessSync(savedFilePath)) { + exec.reject('file not exist'); + return; + } + const stat = fs1.statSync(savedFilePath); + if (!stat.isFile()) { + exec.reject('file not exist'); + } + exec.resolve({ + size: stat.size, + createTime: stat.ctime + } as LegacyGetSavedFileInfoSuccess); + }) as GetSavedFileInfo; + const removeSavedFile: RemoveSavedFile = defineAsyncApi<LegacyRemoveSavedFileOptions, LegacyRemoveSavedFileSuccess>(API_REMOVE_SAVED_FILE, (options: LegacyRemoveSavedFileOptions, exec: ApiExecutor<LegacyRemoveSavedFileSuccess>)=>{ + const savedFilePath = getFsPath(options.filePath); + if (!fs1.accessSync(savedFilePath)) { + exec.reject('file not exist'); + return; + } + fs1.unlink(savedFilePath, (err)=>{ + if (err) { + exec.reject(err.message); + } else { + exec.resolve(); + } + }); + }) as RemoveSavedFile; + const SupportedHashAlgorithm = [ + 'md5', + 'sha1' + ]; + const getFileInfo: GetFileInfo = defineAsyncApi<LegacyGetFileInfoOptions, LegacyGetFileInfoSuccess>(API_GET_FILE_INFO, (options: LegacyGetFileInfoOptions, exec: ApiExecutor<LegacyGetFileInfoSuccess>)=>{ + const filePath = getFsPath(options.filePath); + const digestAlgorithm = options.digestAlgorithm && SupportedHashAlgorithm.includes(options.digestAlgorithm) ? options.digestAlgorithm : 'md5'; + if (!fs1.accessSync(filePath)) { + exec.reject('file not exist'); + return; + } + const stat = fs1.statSync(filePath); + if (!stat.isFile()) { + exec.reject('file not exist'); + } + Hash.hash(filePath, digestAlgorithm, (err, hash)=>{ + if (err) { + exec.reject(err.message); + } else { + exec.resolve({ + size: stat.size, + digest: hash + } as LegacyGetFileInfoSuccess); + } + }); + }) as GetFileInfo; + const GET_FILE_SYSTEM_MANAGER = 'getFileSystemManager'; + class FileCallback { + successFn?: Function; + failFn?: Function; + completeFn?: Function; + constructor(callback: CallBack = {}){ + if (typeof callback.success === 'function') this.successFn = callback.success; + if (typeof callback.fail === 'function') this.failFn = callback.fail; + if (typeof callback.complete === 'function') this.completeFn = callback.complete; + } + success(...args: Object[]) { + if (this.successFn) { + try { + this.successFn(...args); + } catch (err) { + console.error(err); + } + } + if (this.completeFn) { + try { + this.completeFn(...args); + } catch (err) { + console.error(err); + } + } + } + fail(...args: Object[]) { + if (this.failFn) { + try { + this.failFn(...args); + } catch (err) { + console.error(err); + } + } + if (this.completeFn) { + try { + this.completeFn(...args); + } catch (err) { + console.error(err); + } + } + } + } + const FileSystemManagerUniErrorSubject = 'uni-fileSystemManager'; + const FileSystemManagerUniErrors: Map<FileSystemManagerErrorCode, string> = new Map([ + [ + 1200002, + 'Type error. only support base64 / utf-8' + ], + [ + 1300002, + 'No such file or directory' + ], + [ + 1300013, + 'Permission denied' + ], + [ + 1300021, + 'Is a directory' + ], + [ + 1300022, + 'Invalid argument' + ], + [ + 1300066, + 'Directory not empty' + ], + [ + 1301003, + 'Illegal operation on a directory' + ], + [ + 1301005, + 'File already exists' + ], + [ + 1300201, + 'System error' + ], + [ + 1300202, + 'The maximum size of the file storage limit is exceeded' + ], + [ + 1301111, + 'Brotli decompress fail' + ], + [ + 1302003, + 'Invalid flag' + ], + [ + 1300009, + 'Bad file descriptor' + ], + [ + 1300010, + 'Try again' + ], + [ + 1300011, + 'Bad address' + ], + [ + 1300012, + 'Operation would block' + ], + [ + 1300014, + 'Network is unreachable' + ], + [ + 1300015, + 'Unknown error' + ], + [ + 1300016, + 'Not a directory' + ], + [ + 1300017, + 'Text file busy' + ], + [ + 1300018, + 'File too large' + ], + [ + 1300019, + 'Read-only file system' + ], + [ + 1300020, + 'File name too long' + ] + ]); + class FileSystemManagerFailImpl extends UniError implements IFileSystemManagerFail { + errCode: FileSystemManagerErrorCode; + constructor(errCode: FileSystemManagerErrorCode){ + super(); + this.errSubject = FileSystemManagerUniErrorSubject; + this.errCode = errCode; + this.errMsg = FileSystemManagerUniErrors.get(errCode) ?? ""; + } + } + let type = new util.types(); + const modeReflect: ModeReflect = { + 'ax': 'a', + 'ax+': 'a+', + 'wx': 'w', + 'wx+': 'w+' + }; + const ENCODING = [ + 'utf8', + 'utf-8', + 'ascii', + 'base64', + 'binary', + 'hex', + 'ucs2', + 'ucs-2', + 'utf16le', + 'utf-16le', + 'latin1' + ]; + const getFileTypeMode = (stat: fs2.Stat): number =>{ + if (stat.isBlockDevice()) { + return 0o060000; + } + if (stat.isCharacterDevice()) { + return 0o020000; + } + if (stat.isDirectory()) { + return 0o040000; + } + if (stat.isFIFO()) { + return 0o010000; + } + if (stat.isFile()) { + return 0o100000; + } + if (stat.isSocket()) { + return 0o140000; + } + if (stat.isSymbolicLink()) { + return 0o120000; + } + return 0; + }; + const getOpenMode = (flag: string): number | null =>{ + switch(flag){ + case 'a': + return fs2.OpenMode.CREATE | fs2.OpenMode.APPEND; + case 'a+': + return fs2.OpenMode.CREATE | fs2.OpenMode.READ_WRITE | fs2.OpenMode.APPEND; + case 'as': + return fs2.OpenMode.SYNC | fs2.OpenMode.CREATE | fs2.OpenMode.APPEND; + case 'as+': + return fs2.OpenMode.SYNC | fs2.OpenMode.CREATE | fs2.OpenMode.READ_WRITE | fs2.OpenMode.APPEND; + case 'r': + return fs2.OpenMode.READ_ONLY; + case 'r+': + return fs2.OpenMode.READ_WRITE; + case 'w': + return fs2.OpenMode.CREATE | fs2.OpenMode.WRITE_ONLY | fs2.OpenMode.TRUNC; + case 'w+': + return fs2.OpenMode.CREATE | fs2.OpenMode.READ_WRITE | fs2.OpenMode.TRUNC; + } + return null; + }; + const transformErrorCode = (errCode: number): FileSystemManagerErrorCode =>{ + switch(errCode){ + case 13900012: + case 13900001: + return 1300013; + case 13900002: + return 1300002; + case 13900004: + return 1300201; + case 13900005: + return 1301003; + case 13900008: + return 1300009; + case 13900010: + return 1300010; + case 13900013: + return 1300011; + case 13900018: + return 1300016; + case 13900019: + return 1300021; + case 13900020: + return 1300022; + case 13900023: + return 1300017; + case 13900024: + return 1300018; + case 13900027: + return 1300019; + case 13900030: + return 1300020; + case 13900033: + return 1300021; + case 13900034: + return 1300012; + case 13900042: + return 1300013; + case 13900044: + return 1300014; + } + return 1300201; + }; + const isString = (data: DataType | null = null): boolean =>{ + return typeof data === 'string'; + }; + const isFunction = (data: DataType | null = null): boolean =>{ + return typeof data === 'function'; + }; + const isNull = (data: DataType | null = null): boolean =>{ + return data === null; + }; + const isUndefined = (data: DataType | null = null): boolean =>{ + return typeof data === 'undefined'; + }; + const isArray = (data: DataType | null = null): boolean =>{ + return Array.isArray(data); + }; + const isNumber = (data: DataType | null = null): boolean =>{ + return typeof data === 'number' && !Number.isNaN(data) && Number.isFinite(data); + }; + const isBoolean = (data: DataType | null = null): boolean =>{ + return typeof data === 'boolean'; + }; + const isArrayBuffer = (data: DataType | null = null): boolean =>{ + return type.isAnyArrayBuffer(data as object); + }; + const checkSingleDataType = (data: DataType, dataType: string)=>{ + let result = false; + switch(dataType){ + case 'string': + result = isString(data); + break; + case 'number': + result = isNumber(data); + break; + case 'boolean': + result = isBoolean(data); + break; + case 'function': + result = isFunction(data); + break; + case 'arraybuffer': + result = isArrayBuffer(data); + break; + case 'array': + result = isArray(data); + break; + case 'null': + result = isNull(data); + break; + case 'undefined': + result = isUndefined(data); + break; + } + return result; + }; + const checkDataType = (data: DataType, isRequired: boolean, dataType: string, customCheck: ((data: DataType) => boolean) | null = null): boolean =>{ + let result = false; + try { + if (isRequired && (isNull(data) || isUndefined(data))) { + throw new Error('The param data is required'); + } + if (!isString(dataType) && !isArray(dataType)) { + throw new Error('The param dataType should be a String or an Array'); + } + if (customCheck != null && typeof customCheck !== 'function') { + throw new Error('If customCheck exist,it should be a Function'); + } + if (!isRequired && (isNull(data) || isUndefined(data))) { + return true; + } + result = checkSingleDataType(data as DataType, dataType); + if (result && typeof customCheck === 'function') { + result = customCheck!(data); + } + } catch (error) { + console.log(error); + return false; + } + return result; + }; + const checkPathExistence = (methodName: string, pathName: string, path: string): CustomValidReturn | CustomValidReturnValid =>{ + const errMsg = `${methodName}: fail ${pathName}`; + let isValid = false; + if (!checkDataType(path, true, 'string')) { + return { + isValid, + err: getParameterError(errMsg) + } as CustomValidReturn; + } + if (path === '') { + return { + isValid, + err: getPermissionError(errMsg) as IFileSystemManagerFail + } as CustomValidReturn; + } + if (!fs2.accessSync(path)) { + return { + isValid, + err: getNoSuchFileOrDirectoryError(errMsg) as IFileSystemManagerFail + } as CustomValidReturn; + } + return { + isValid: true + } as CustomValidReturnValid; + }; + const ohosRead = (filePath: string, sizeOfNewArrayBuffer: number, cb: FileCallback)=>{ + const file = fs2.openSync(filePath, fs2.OpenMode.READ_ONLY); + const buf = new ArrayBuffer(sizeOfNewArrayBuffer); + fs2.read(file.fd, buf).then((readLen)=>{ + cb.success({ + data: buf + } as ReadFileSuccessResult); + }).catch((err: BusinessError4)=>{ + cb.fail(new FileSystemManagerFailImpl(transformErrorCode(err.code)) as ApiError); + }).finally(()=>{ + fs2.closeSync(file); + }); + }; + const ohosReadText = (filePath: string, option: ReadTextOptions, cb: FileCallback)=>{ + fs2.readText(filePath, option).then((str)=>{ + cb.success({ + data: str + } as ReadFileSuccessResult); + }).catch((err: BusinessError4)=>{ + cb.fail(new FileSystemManagerFailImpl(transformErrorCode(err.code)) as ApiError); + }); + }; + const obtainUpperPath = (inputPath: string): ObtainUpperPathReturn =>{ + let index = inputPath.lastIndexOf('/'); + let upperPath = inputPath.substring(0, index); + return { + index, + upperPath + } as ObtainUpperPathReturn; + }; + const obtainFileName = (inputPath: string): ObtainFileNameReturn =>{ + let index = inputPath.lastIndexOf('/'); + let fileName = inputPath.substring(index); + if (inputPath.endsWith('/')) { + fileName = inputPath.substring(inputPath.lastIndexOf("/", inputPath.length - 2) + 1, inputPath.length - 1); + } + return { + index, + fileName + } as ObtainFileNameReturn; + }; + const checkFd = (methodName: string, fd: string): CheckFd | CheckFdErr =>{ + const errMsg = `${methodName}: fail`; + if (!checkDataType(fd, true, 'string')) { + return { + isValid: false, + fd: 0, + err: getParameterError(errMsg) + }; + } + const transFdToNum = Number(fd); + if (isNaN(transFdToNum)) { + return { + isValid: false, + fd: 0, + err: getParameterError(errMsg) + }; + } + return { + isValid: true, + fd: transFdToNum + }; + }; + const checkPath = (methodName: string, pathName: string, path: string): CustomValidReturn | CustomValidReturnValid =>{ + const errMsg = `${methodName}: fail ${pathName}`; + let isValid = false; + if (!checkDataType(path, true, 'string')) { + return { + isValid, + err: getParameterError(errMsg) + }; + } + if (path === '') { + return { + isValid, + err: getPermissionError(errMsg) + }; + } + return { + isValid: true + }; + }; + const checkPathSync = (methodName: string, pathName: string, path: string): CustomValidReturn | CustomValidReturnValid =>{ + const errMsg = `${methodName}: fail ${pathName}`; + let isValid = false; + if (path === '' || !checkDataType(path, true, 'string')) { + return { + isValid, + err: getParameterError(errMsg) + }; + } + return { + isValid: true + }; + }; + const checkPathExistenceSync = (methodName: string, pathName: string, path: string): CustomValidReturn | CustomValidReturnValid =>{ + const errMsg = `${methodName}: fail ${pathName}`; + let isValid = false; + if (path === '' || !checkDataType(path, true, 'string')) { + return { + isValid, + err: getParameterError(errMsg) + }; + } + if (!fs2.accessSync(path)) { + return { + isValid, + err: getNoSuchFileOrDirectoryError(errMsg) + }; + } + return { + isValid: true + }; + }; + const checkEncoding = (methodName: string, encoding: string | null = null): CheckEncodingReturn =>{ + let isValid = false; + if (encoding === null || !checkDataType(encoding, false, 'string')) { + return { + errMsg: `${methodName}: fail invalid encoding: ${encoding}`, + isValid + } as CheckEncodingReturn; + } + if (encoding !== '' && encoding !== undefined) { + if (!ENCODING.includes(encoding)) { + return { + errMsg: `${methodName}: fail Unknown encoding: ${encoding}`, + isValid + } as CheckEncodingReturn; + } + if (encoding !== 'utf-8' && encoding !== 'utf8') { + return { + errMsg: `${methodName}: fail, The encoding is valid, but is not supported currently: ${encoding}`, + isValid + } as CheckEncodingReturn; + } + } + return { + isValid: true, + errMsg: '' + }; + }; + const isFileUri1 = (path: string)=>{ + return path && typeof path === 'string' && (path.startsWith('file://') || path.startsWith('datashare://')); + }; + class SecurityBase { + static rsa(algName: string, blob: cryptoFramework.DataBlob): Promise<Uint8Array> { + return new Promise<Uint8Array>(async (resolve, reject)=>{ + let md: cryptoFramework.Md; + try { + md = cryptoFramework.createMd(algName); + await md.update(blob); + const mdOutput = await md.digest(); + resolve(mdOutput.data); + } catch (error) { + console.error(`rsa fail error code: ${(error as BusinessError4).code}, message is: ${(error as BusinessError4).message}`); + reject(error); + } + }); + } + } + const getApiError = (errCode: number, errMsg: string | null = null): FileSystemManagerApiError =>{ + return wrapErrMsg(new FileSystemManagerFailImpl(transformErrorCode(errCode)), errMsg) as FileSystemManagerApiError; + }; + const wrapErrMsg = (err: IFileSystemManagerFail, errMsg: string | null = null): IFileSystemManagerFail =>{ + if (errMsg) { + err.errMsg = `${errMsg} ${err.errMsg}`; + } + return err; + }; + const getParameterError = (errMsg: string | null = null): IFileSystemManagerFail =>{ + return getApiError(1300022, errMsg) as IFileSystemManagerFail; + }; + const getPermissionError = (errMsg: string | null = null): IFileSystemManagerFail =>{ + return getApiError(1300013, errMsg) as IFileSystemManagerFail; + }; + const getNoSuchFileOrDirectoryError = (errMsg: string | null = null): IFileSystemManagerFail =>{ + return getApiError(1300002, errMsg) as IFileSystemManagerFail; + }; + const getSavedDir1 = ()=>{ + return getEnv1().USER_DATA_PATH + '/saved'; + }; + let savedIndex1: [string, number] = [ + '0', + 0 + ]; + const getSavedFileName1 = (filePath: string)=>{ + const uriInstance = new uri.URI(filePath); + const ext = uriInstance.clearQuery().getLastSegment().split('.')[1]; + let fileName = Date.now() + ''; + if (savedIndex1[0] === fileName) { + savedIndex1[1]++; + if (savedIndex1[1] > 0) { + fileName += '-' + savedIndex1[1]; + } + } else { + savedIndex1[0] = fileName; + savedIndex1[1] = 0; + } + if (ext) { + fileName += '.' + ext; + } + return fileName; + }; + const getFsPath1 = (filePath: string)=>{ + filePath = getRealPath1(filePath) as string; + if (!/^file:/.test(filePath)) { + return filePath; + } + const rawPath = filePath.replace(/^file:\/\//, ''); + if (rawPath[0] === '/') { + return rawPath; + } + return filePath; + }; + const DEFAULT_ENCODING = 'utf-8'; + const ENCODING_SUPPORT = [ + "ascii", + "base64", + "utf-8" + ]; + const DIGEST_ALGORITHM_VALUES = [ + "md5", + "sha1" + ]; + const DEFAULT_POSITION = 0; + const DEFAULT_LENGTH = 0; + const DEFAULT_FLAG = 'r'; + const DEFAULT_OFFSET = 0; + const FLAG = [ + 'a', + 'ax', + 'a+', + 'ax+', + 'as', + 'as+', + 'r', + 'r+', + 'w', + 'wx', + 'w+', + 'wx+' + ]; + const useGetRealPath = (filepath: string): string =>{ + return (runtimeGetRealPath(filepath) as string).replace(/^file:\/\//, ''); + }; + class StatsImpl implements Stats { + stat: fs3.Stat | null = null; + mode: number = -1; + size: number = -1; + lastAccessedTime: number = -1; + lastModifiedTime: number = -1; + mIsFile: boolean = false; + constructor(stat: fs3.Stat, mode: number){ + this.stat = stat; + this.mode = mode; + this.size = stat.size; + this.lastAccessedTime = stat.atime; + this.lastModifiedTime = stat.mtime; + this.mIsFile = stat.isFile(); + } + isDirectory(): boolean { + if (this.stat == null) { + return false; + } + return this.stat.isDirectory(); + } + isFile(): boolean { + if (this.stat == null) { + return false; + } + return this.stat.isFile(); + } + } + class FileSystemManagerImpl implements FileSystemManager { + readFile(options: ReadFileOptions): void { + const errMsg = `readFile: fail`; + const filePath = options.filePath, encoding = options.encoding, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkRes = checkPathExistence('readFile', 'filePath', filePath); + if (!checkRes.isValid) { + cb.fail({ + errMsg: (checkRes as CustomValidReturn).err.errMsg + } as ApiError); + return; + } + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + cb.fail(getApiError(1300021, errMsg)); + return; + } + const lengthOfFile = stat.size; + if (encoding == undefined) { + let sizeOfNewArrayBuffer = lengthOfFile; + ohosRead(filePath, sizeOfNewArrayBuffer, cb); + } else { + const res = checkEncoding('readFile', encoding); + if (!res.isValid) { + cb.fail({ + errMsg: res.errMsg + } as ApiError); + return; + } + ohosReadText(filePath, { + encoding + } as ReadTextOptions1, cb); + } + } + readFileSync(filePath: string, encoding: string | null = null): ReadFileSuccessResult { + const errMsg = `readFileSync: fail`; + const res1 = checkPathExistenceSync('readFileSync', 'filePath', filePath); + if (!res1.isValid) { + throw new Error((res1 as CustomValidReturn).err?.errMsg); + } + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + throw new Error(getApiError(1300021, errMsg).errMsg); + } + const lengthOfFile = stat.size; + if (encoding == undefined) { + let sizeOfNewArrayBuffer = lengthOfFile; + const file = fs3.openSync(filePath, fs3.OpenMode.READ_ONLY); + const buf = new ArrayBuffer(sizeOfNewArrayBuffer); + try { + fs3.readSync(file.fd, buf); + } catch (err) { + console.error(err); + } + fs3.closeSync(file); + return { + data: buf + } as ReadFileSuccessResult; + } else { + const res2 = checkEncoding('readFileSync', encoding); + if (!res2.isValid) { + throw new Error(res2.errMsg); + } + if ((encoding as string) === 'utf8') { + encoding = 'utf-8'; + } + try { + const str = fs3.readTextSync(filePath, { + encoding + } as ReadTextOptions1); + return { + data: str + } as ReadFileSuccessResult; + } catch (err) { + throw new Error(`readFileSync: ${(err as BusinessError5).message}`); + } + } + } + writeFile(options: WriteFileOptions): void { + const errMsg = `writeFile: fail`; + const filePath = options.filePath, data = options.data, _options_encoding = options.encoding, encoding = _options_encoding == null ? DEFAULT_ENCODING : _options_encoding, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(filePath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} filePath`) as ApiError); + return; + } + if (!ENCODING_SUPPORT.includes(encoding)) { + cb.fail(getParameterError(`${errMsg} encoding`)); + return; + } + let file: fs3.File | null = null; + try { + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + cb.fail({ + errMsg: `${errMsg} illegal operation on a directory, open: ${filePath}` + } as ApiError); + return; + } + } catch (error) { + try { + file = fs3.openSync(filePath, fs3.OpenMode.CREATE | fs3.OpenMode.WRITE_ONLY | fs3.OpenMode.TRUNC); + } catch (error) { + cb.fail(getApiError((error as BusinessError5).code, errMsg)); + return; + } + } + const writeOptions: OHWriteOptions = {}; + if (checkDataType((data as (string | ArrayBuffer)), true, 'string')) writeOptions.encoding = encoding as string; + if (file == null) { + file = fs3.openSync(filePath, fs3.OpenMode.WRITE_ONLY | fs3.OpenMode.TRUNC); + } + fs3.write(file.fd, data as (string | ArrayBuffer), writeOptions).then((writeLen)=>{ + cb.success({ + errMsg: 'writeFile: ok' + } as FileManagerSuccessResult); + }).finally(()=>{ + fs3.closeSync(file); + }); + } + writeFileSync(filePath: string, data: Object, encoding: string = DEFAULT_ENCODING): void { + const errMsg = `writeFileSync: fail`; + if (!checkDataType(filePath, true, 'string')) { + throw new Error(getParameterError(`${errMsg} filePath`).errMsg); + } + if (!ENCODING_SUPPORT.includes(encoding)) { + throw new Error(getParameterError(`${errMsg} encoding`).errMsg); + } + let file: fs3.File | null = null; + try { + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + throw new Error(`${errMsg} illegal operation on a directory, open: ${filePath}`); + } + } catch (error) { + try { + file = fs3.openSync(filePath, fs3.OpenMode.CREATE | fs3.OpenMode.WRITE_ONLY | fs3.OpenMode.TRUNC); + } catch (error) { + throw new Error(getApiError((error as BusinessError5).code, errMsg).errMsg); + } + } + const writeOptions: OHWriteOptions = {}; + if (checkDataType((data as (string | ArrayBuffer)), true, 'string')) writeOptions.encoding = encoding; + if (file == null) { + file = fs3.openSync(filePath, fs3.OpenMode.WRITE_ONLY | fs3.OpenMode.TRUNC); + } + try { + fs3.writeSync(file.fd, data as (string | ArrayBuffer), writeOptions); + fs3.closeSync(file); + } catch (err) { + fs3.closeSync(file); + throw new Error(`writeFileSync: ${(err as BusinessError5).message}`); + } + } + read(option: ReadOption): void { + const errMsg = 'read: fail'; + let inFd = option.fd, arrayBuffer = option.arrayBuffer, offset = option.offset, length = option.length, position = option.position, success = option.success, fail = option.fail, complete = option.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + let fd: number = -1; + if (!checkDataType(inFd, true, 'string') || inFd === '' || isNaN(Number(inFd))) { + cb.fail({ + errMsg: `${errMsg} invalid fd` + } as ApiError); + return; + } else { + fd = Number(inFd); + } + if (!checkDataType(arrayBuffer, true, 'arraybuffer')) { + cb.fail({ + errMsg: `${errMsg} invalid arrayBuffer: ${arrayBuffer}` + } as ApiError); + return; + } + if (!checkDataType(offset, false, 'number') || offset! < 0) { + offset = Number(offset); + if (isNaN(offset) || offset < 0) { + offset = DEFAULT_OFFSET; + } + } + if (!checkDataType(length, false, 'number') || length! < 0) { + length = Number(length); + if (isNaN(length) || length < 0) { + length = DEFAULT_LENGTH; + } + } + const allowedSize = arrayBuffer.byteLength - offset!; + if (allowedSize < length!) { + cb.fail({ + errMsg: `${errMsg} RangeError [ERR_OUT_OF_RANGE]: The value length is out of range. It must be <= ${allowedSize}. Received ${length}` + } as ApiError); + return; + } + if (!checkDataType(position, false, 'number') || position! < 0) { + position = DEFAULT_POSITION; + } + const offsetArrayBuffer = offset!; + const newBuffer = arrayBuffer.slice(offsetArrayBuffer); + fs3.read(fd, newBuffer, { + offset: position, + length + } as ReadOptions1).then((readLen)=>{ + const viewNewBuffer = new Uint8Array(newBuffer); + const viewArrayBuffer = new Uint8Array(arrayBuffer); + viewArrayBuffer.set(viewNewBuffer, offsetArrayBuffer); + cb.success({ + bytesRead: readLen, + arrayBuffer: arrayBuffer, + errMsg: 'read: ok' + } as ReadSuccessCallbackResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: `${errMsg} with error message: ${err.message},error code: ${err.code}` + } as ApiError); + }); + } + readSync(option: ReadSyncOption): ReadResult { + const errMsg = 'readSync: fail'; + let inFd = option.fd, arrayBuffer = option.arrayBuffer, offset = option.offset, length = option.length, position = option.position; + let fd: number = -1; + if (!checkDataType(inFd, true, 'string') || inFd === '' || isNaN(Number(inFd))) { + throw new Error(`${errMsg} invalid fd`); + } else { + fd = Number(inFd); + } + if (!checkDataType(arrayBuffer, true, 'arraybuffer')) { + throw new Error(`${errMsg} invalid arrayBuffer`); + } + if (!checkDataType(offset, false, 'number') || offset! < 0) { + offset = Number(offset); + if (isNaN(offset) || offset < 0) { + offset = DEFAULT_OFFSET; + } + } + if (!checkDataType(length, false, 'number') || length! < 0) { + length = Number(length); + if (isNaN(length) || length < 0) { + length = DEFAULT_LENGTH; + } + } + const allowedSize = arrayBuffer.byteLength - offset!; + if (allowedSize < length!) { + throw new Error(`${errMsg} RangeError [ERR_OUT_OF_RANGE]: The value length is out of range. It must be <= ${allowedSize}. Received ${length}`); + } + if (!checkDataType(position, false, 'number') || position! < 0) { + position = DEFAULT_POSITION; + } + try { + const offsetArrayBuffer = offset!; + let newBuffer = arrayBuffer.slice(offsetArrayBuffer); + const len = fs3.readSync(fd, newBuffer, { + offset: position, + length + } as ReadOptions1); + const viewNewBuffer = new Uint8Array(newBuffer); + let viewArrayBuffer = new Uint8Array(arrayBuffer); + viewArrayBuffer.set(viewNewBuffer, offsetArrayBuffer); + return { + bytesRead: len, + arrayBuffer: arrayBuffer + } as ReadResult; + } catch (err) { + throw new Error(`${errMsg} ${(err as BusinessError5).message}`); + } + } + unlink(options: UnLinkOptions): void { + const errMsg = 'unlink: fail'; + const filePath = options.filePath, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const res = checkPathExistence('unlink', 'filePath', filePath); + if (!res.isValid) { + cb.fail((res as CustomValidReturn).err); + return; + } + const stat = fs3.statSync(filePath); + if (stat.isDirectory()) { + cb.fail({ + errMsg: `${errMsg} illegal operation on a directory, unlink: ${filePath}` + } as ApiError); + return; + } + fs3.unlink(filePath).then(()=>{ + cb.success({ + errMsg: 'unlink: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: `${errMsg} with error message: ${err.message}, error code: ${err.code}` + } as ApiError); + }); + } + unlinkSync(filePath: string): void { + const errMsg = 'unlinkSync: fail'; + const res = checkPathExistenceSync('unlinkSync', 'filePath', filePath); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (fs3.statSync(filePath).isDirectory()) { + throw new Error(`${errMsg} illegal operation on a directory, unlink: ${filePath}`); + } + try { + fs3.unlinkSync(filePath); + } catch (err) { + throw new Error(`${errMsg} ${(err as BusinessError5).message}`); + } + } + mkdir(options: MkDirOptions): void { + const errMsg = `mkdir: fail`; + let dirPath = options.dirPath, recursive = options.recursive, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + const checkRes = checkPath('mkdir', 'dirPath', dirPath); + if (!checkRes.isValid) { + cb.fail((checkRes as CustomValidReturn).err); + return; + } + if (fs3.accessSync(dirPath)) { + cb.fail({ + errMsg: `${errMsg} dirPath already exists: ${dirPath}` + } as ApiError); + return; + } + const getSubPath = obtainUpperPath(dirPath); + if (!recursive && !fs3.accessSync(getSubPath.upperPath)) { + cb.fail({ + errMsg: `${errMsg} recursive is false and upper path does not exist` + } as ApiError); + return; + } + fs3.mkdir(dirPath, recursive).then(()=>{ + cb.success({ + errMsg: 'mkdir: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError(err.code, errMsg)); + }); + } + mkdirSync(dirPath: string, recursive: boolean): void { + const errMsg = `mkdirSync: fail`; + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + const res = checkPathSync('mkdirSync', 'dirPath', dirPath); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (fs3.accessSync(dirPath)) { + throw new Error(`${errMsg} dirPath already exists: ${dirPath}`); + } + if (!recursive && !fs3.accessSync(obtainUpperPath(dirPath).upperPath)) { + throw new Error(`${errMsg} recursive is false and upper path does not exist`); + } + try { + fs3.mkdirSync(dirPath, recursive); + } catch (error) { + throw new Error(getApiError((error as BusinessError5).code, errMsg).errMsg); + } + } + rmdir(options: RmDirOptions): void { + const errMsg = 'rmdir: fail'; + let dirPath = options.dirPath, recursive = options.recursive, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + const res = checkPathExistence('rmdir', 'dirPath', dirPath); + if (!res.isValid) { + cb.fail((res as CustomValidReturn).err); + return; + } + if (!fs3.statSync(dirPath).isDirectory()) { + cb.fail({ + errMsg: `${errMsg} no such directory, open: ${dirPath}` + } as ApiError); + return; + } + if (!recursive) { + let filenames = fs3.listFileSync(dirPath); + if (filenames.length) { + cb.fail({ + errMsg: `${errMsg} directory not empty` + } as ApiError); + return; + } + } + fs3.rmdir(dirPath).then(()=>{ + cb.success({ + errMsg: 'rmdir: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + rmdirSync(dirPath: string, recursive: boolean): void { + const errMsg = 'rmdirSync: fail'; + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + const res = checkPathExistenceSync('rmdirSync', 'dirPath', dirPath); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (!fs3.statSync(dirPath).isDirectory()) { + throw new Error(`${errMsg} no such directory, open: ${dirPath}`); + } + if (!recursive && (fs3.listFileSync(dirPath).length > 0)) { + throw new Error(`${errMsg} directory not empty`); + } + try { + fs3.rmdirSync(dirPath); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + readdir(options: ReadDirOptions): void { + const errMsg = 'readdir: fail'; + const dirPath = options.dirPath, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkRes = checkPathExistence('readdir', 'dirPath', dirPath); + if (!checkRes.isValid) { + cb.fail((checkRes as CustomValidReturn).err); + return; + } + const stat = fs3.statSync(dirPath); + if (stat.isFile()) { + cb.fail({ + errMsg: `${errMsg} dirPath not a directory: ${dirPath}` + } as ApiError); + return; + } + fs3.listFile(dirPath).then((files)=>{ + cb.success({ + files, + errMsg: 'readdir: ok' + } as ReadDirSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: `${errMsg} with error message: ${err.message}, error code: ${err.code}` + } as ApiError); + }); + } + readdirSync(dirPath: string): string[] | null { + const errMsg = 'readdirSync: fail'; + const res = checkPathExistenceSync('readdirSync', 'dirPath', dirPath); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (fs3.statSync(dirPath).isFile()) { + throw new Error(`${errMsg} not a directory: ${dirPath}`); + } + try { + return fs3.listFileSync(dirPath); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + access(options: AccessOptions): void { + const errMsg = 'access: fail'; + const path = options.path, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(path, true, 'string')) { + cb.fail(getParameterError(`${errMsg} path`)); + return; + } + fs3.access(path).then((res)=>{ + if (res) { + cb.success({ + errMsg: 'access: ok' + } as FileManagerSuccessResult); + } else { + cb.fail(getNoSuchFileOrDirectoryError(errMsg)); + } + }, (err: BusinessError5)=>{ + cb.fail({ + errCode: err.code, + errMsg: getApiError(err.code, errMsg).errMsg + } as ApiError); + }); + } + accessSync(path: string): void { + const errMsg = 'accessSync: fail'; + if (!checkDataType(path, true, 'string')) { + throw new Error(`${errMsg} path must be a string`); + } + const res = fs3.accessSync(path); + if (!res) { + throw new Error(`${errMsg} no such file or directory`); + } + } + rename(options: RenameOptions): void { + const errMsg = 'rename: fail'; + const oldPath = options.oldPath, newPath = options.newPath, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkRes1 = checkPathExistence('rename', 'oldPath', oldPath); + if (!checkRes1.isValid) { + cb.fail((checkRes1 as CustomValidReturn).err); + return; + } + const checkRes2 = checkPath('rename', 'newPath', newPath); + if (!checkRes2.isValid) { + cb.fail((checkRes2 as CustomValidReturn).err); + return; + } + const ifAccessNewPath = fs3.accessSync(newPath); + if (!ifAccessNewPath) { + const getUpperPath = obtainUpperPath(newPath); + if (!fs3.accessSync(getUpperPath.upperPath)) { + cb.fail({ + errMsg: `${errMsg} no such file or directory: ${newPath}` + } as ApiError); + return; + } + } + if (ifAccessNewPath && (oldPath !== newPath)) { + cb.fail({ + errMsg + } as ApiError); + return; + } + fs3.rename(oldPath, newPath).then(()=>{ + cb.success({ + errMsg: 'rename: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: getApiError((err as BusinessError5).code, errMsg).errMsg + } as ApiError); + }); + } + renameSync(oldPath: string, newPath: string): void { + const errMsg = 'renameSync: fail'; + const res1 = checkPathExistenceSync('renameSync', 'oldPath', oldPath); + if (!res1.isValid) { + throw new Error((res1 as CustomValidReturn).err?.errMsg); + } + const res2 = checkPathSync('renameSync', 'newPath', newPath); + if (!res2.isValid) { + throw new Error((res2 as CustomValidReturn).err?.errMsg); + } + const ifAccessNewPath = fs3.accessSync(newPath); + if (!ifAccessNewPath && !fs3.accessSync(obtainUpperPath(newPath).upperPath)) { + throw new Error(`${errMsg} no such file or directory, open: ${newPath}`); + } + if (ifAccessNewPath && (oldPath !== newPath)) { + throw new Error(errMsg); + } + try { + fs3.renameSync(oldPath, newPath); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + copyFile(options: CopyFileOptions): void { + const errMsg = 'copyFile: fail'; + let srcPath = options.srcPath, destPath = options.destPath, success = options.success, fail = options.fail, complete = options.complete; + srcPath = useGetRealPath(srcPath); + destPath = useGetRealPath(destPath); + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkResOfSrcPath = checkPathExistence('copyFile', 'srcPath', srcPath); + if (!checkResOfSrcPath.isValid) { + cb.fail((checkResOfSrcPath as CustomValidReturn).err); + return; + } + const checkResOfDestPath = checkPath('copyFile', 'destPath', destPath); + if (!checkResOfDestPath.isValid) { + cb.fail((checkResOfDestPath as CustomValidReturn).err); + return; + } + if (fs3.statSync(srcPath).isDirectory()) { + cb.fail({ + errMsg: `${errMsg} illegal operation on a directory, open: ${srcPath}` + } as ApiError); + return; + } + if (!fs3.accessSync(destPath)) { + const getUpperPath = obtainUpperPath(destPath); + if (!fs3.accessSync(getUpperPath.upperPath)) { + cb.fail({ + errMsg: `${errMsg} no such file or directory, open: ${destPath}` + } as ApiError); + return; + } + } else { + const destPathStat = fs3.statSync(destPath); + if (destPathStat.isDirectory()) { + destPath = destPath + obtainFileName(srcPath).fileName; + } else { + if (destPathStat.isFile() && (srcPath !== destPath)) { + cb.fail({ + errMsg + } as ApiError); + return; + } + } + } + fs3.copyFile(srcPath, destPath).then(()=>{ + cb.success({ + errMsg: 'copyFile: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + copyFileSync(srcPath: string, destPath: string): void { + const errMsg = 'copyFileSync: fail'; + srcPath = useGetRealPath(srcPath); + destPath = useGetRealPath(destPath); + const checkResSrc = checkPathExistenceSync('copyFileSync', 'srcPath', srcPath); + if (!checkResSrc.isValid) { + throw new Error((checkResSrc as CustomValidReturn).err?.errMsg); + } + const checkResDest = checkPathSync('copyFileSync', 'destPath', destPath); + if (!checkResDest.isValid) { + throw new Error((checkResDest as CustomValidReturn).err?.errMsg); + } + if (fs3.statSync(srcPath).isDirectory()) { + throw new Error(`${errMsg} illegal operation on a directory: ${srcPath}`); + } + if (!fs3.accessSync(destPath)) { + const getUpperPath = obtainUpperPath(destPath); + if (!fs3.accessSync(getUpperPath.upperPath)) { + throw new Error(`${errMsg} no such file or directory: ${destPath}`); + } + } else { + const destPathStat = fs3.statSync(destPath); + if (destPathStat.isDirectory()) { + const index = destPath.lastIndexOf('/'); + let namePath = destPath.substring(index); + if (destPath.endsWith('/')) { + namePath = destPath.substring(destPath.lastIndexOf('/', destPath.length - 2) + 1, destPath.length - 1); + } + destPath = destPath + namePath; + } else { + if (destPathStat.isFile() && (srcPath !== destPath)) { + throw new Error(`${errMsg} copyFile failed`); + } + } + } + try { + fs3.copyFileSync(srcPath, destPath); + } catch (err) { + throw new Error(`copyFileSync: ${(err as BusinessError5).message}`); + } + } + getFileInfo(options: GetFileInfoOptions): void { + const errMsg = 'getFileInfo: fail'; + let filePath = options.filePath, success = options.success, fail = options.fail, complete = options.complete; + let digestAlgorithm: string = options.digestAlgorithm ?? 'md5'; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const checkResOfFilePath = checkPathExistence('getFileInfo', 'filePath', filePath); + if (!checkResOfFilePath.isValid) { + cb.fail((checkResOfFilePath as CustomValidReturn).err); + return; + } + if (typeof digestAlgorithm === 'string') { + digestAlgorithm = digestAlgorithm.toUpperCase(); + } + if (!DIGEST_ALGORITHM_VALUES.includes(digestAlgorithm)) { + digestAlgorithm = 'md5'; + } + try { + const fd = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE).fd; + const stat = isFileUri1(filePath) ? fs3.statSync(fd) : fs3.statSync(filePath); + const buf = new ArrayBuffer(stat.size); + fs3.readSync(fd, buf); + const algName = digestAlgorithm.toLocaleUpperCase(); + SecurityBase.rsa(algName, { + data: new Uint8Array(buf) + } as cryptoFramework1.DataBlob).then((resultBuf: Uint8Array)=>{ + const textDecoder = util1.TextDecoder.create('utf-8', { + ignoreBOM: true + } as util1.TextDecoderOptions); + cb.success({ + errMsg: 'getFileInfo ok', + size: stat.size, + digest: textDecoder.decodeToString(resultBuf, { + stream: false + } as util1.DecodeToStringOptions) + } as GetFileInfoSuccessResult); + }); + } catch (err) { + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + } + } + stat(options: StatOptions): void { + const errMsg = 'stat: fail'; + let path = options.path, recursive = options.recursive, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const res = checkPathExistence('stat', 'path', path); + if (!res.isValid) { + cb.fail((res as CustomValidReturn).err); + return; + } + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + fs3.stat(path, (err, stat)=>{ + if (err) { + cb.fail({ + errMsg: `${errMsg} with error message: ${err.message}, error code: ${err.code}` + } as ApiError); + } else { + const combinationMode = getFileTypeMode(stat) | stat.mode; + const fileStats = { + path, + stats: new StatsImpl(stat, combinationMode) + } as FileStats; + cb.success({ + stats: [ + fileStats + ] as FileStats[], + errMsg: 'stat: ok' + } as StatSuccessResult); + } + }); + } + statSync(path: string, recursive: boolean): FileStats[] { + const errMsg = 'statSync: fail'; + const res = checkPathExistenceSync('statSync', 'path', path); + if (!res.isValid) { + throw new Error((res as CustomValidReturn).err?.errMsg); + } + if (!checkDataType(recursive, false, 'boolean')) { + recursive = Boolean(recursive); + } + try { + const stat = fs3.statSync(path); + const combinationMode = getFileTypeMode(stat) | stat.mode; + const fileStats = { + path, + stats: new StatsImpl(stat, combinationMode) + } as FileStats; + return [ + fileStats + ] as FileStats[]; + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + appendFile(options: AppendFileOptions): void { + const errMsg = 'appendFile: fail'; + const filePath = options.filePath, data = options.data, _options_encoding = options.encoding, encoding = _options_encoding == null ? DEFAULT_ENCODING : _options_encoding, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(filePath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} filePath`)); + return; + } + if (!checkDataType(data, true, 'string') && !checkDataType(data, true, 'arraybuffer')) { + cb.fail(getParameterError(`${errMsg} data`)); + return; + } + const res = fs3.accessSync(filePath); + if (!res) { + cb.fail(getNoSuchFileOrDirectoryError(errMsg)); + return; + } + const writeOptions: OHWriteOptions = {}; + if (checkDataType(data, true, 'string')) writeOptions.encoding = encoding; + const file = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE | fs3.OpenMode.APPEND); + fs3.write(file.fd, data as (string | ArrayBuffer), writeOptions).then((_)=>{ + cb.success({ + errMsg: 'appendFile:ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError(err.code, errMsg)); + }).finally(()=>{ + fs3.closeSync(file); + }); + } + appendFileSync(filePath: string, data: Object, encoding: string = DEFAULT_ENCODING): void { + const errMsg = 'appendFileSync: fail'; + if (!checkDataType(filePath, true, 'string')) { + throw new Error(`${errMsg} parameter error: parameter.filePath should be String`); + } + if (!checkDataType(data, true, 'string') && !checkDataType(data, true, 'arraybuffer')) { + throw new Error(`${errMsg} parameter error: parameter.data should be String/ArrayBuffer`); + } + const res = fs3.accessSync(filePath); + if (!res) { + throw new Error(`${errMsg} no such file or directory, open "${filePath}"`); + } + const writeOptions: OHWriteOptions = {}; + if (checkDataType(data, true, 'string')) writeOptions.encoding = encoding; + const file = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE | fs3.OpenMode.APPEND); + fs3.writeSync(file.fd, data as (string | ArrayBuffer), writeOptions); + } + saveFile(options: SaveFileOptions): void { + const errMsg = 'saveFile: fail'; + const filePath = options.filePath, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const tempFilePath = useGetRealPath(options.tempFilePath) as string; + if (!fs3.accessSync(tempFilePath)) { + cb.fail({ + errMsg: `${errMsg} no such file or directory. tempFilePath: ${tempFilePath}` + } as ApiError); + return; + } + const savedPath = filePath || getSavedDir1(); + try { + if (!fs3.accessSync(savedPath)) { + fs3.mkdirSync(savedPath, true); + } + } catch (error) { + cb.fail({ + errMsg: (error as Error).message + } as ApiError); + return; + } + let srcFile: fs3.File; + try { + srcFile = fs3.openSync(tempFilePath, fs3.OpenMode.READ_ONLY); + } catch (error) { + cb.fail({ + errMsg: (error as Error).message + } as ApiError); + return; + } + const savedFilePath = savedPath + '/' + getSavedFileName1(tempFilePath); + fs3.copyFile(srcFile.fd, savedFilePath).then(()=>{ + cb.success({ + savedFilePath + } as SaveFileSuccessResult); + }).catch((err: Error)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + saveFileSync(inTempFilePath: string, filePath: string | null): string { + const errMsg = 'saveFileSync: fail'; + const tempFilePath = useGetRealPath(inTempFilePath) as string; + if (!fs3.accessSync(tempFilePath)) { + throw new Error(`${errMsg} no such file or directory. tempFilePath: ${tempFilePath}`); + } + const savedPath = filePath || getSavedDir1(); + try { + if (!fs3.accessSync(savedPath)) { + fs3.mkdirSync(savedPath, true); + } + } catch (error) { + throw new Error((error as Error).message); + } + let srcFile: fs3.File; + try { + srcFile = fs3.openSync(tempFilePath, fs3.OpenMode.READ_ONLY); + } catch (error) { + throw new Error((error as Error).message); + } + const savedFilePath = `${savedPath}${savedPath.endsWith('/') ? '' : '/'}${getSavedFileName1(tempFilePath)}`; + try { + fs3.copyFileSync(srcFile.fd, savedFilePath); + return savedFilePath; + } catch (error) { + throw new Error((error as Error).message); + } + } + removeSavedFile(options: RemoveSavedFileOptions): void { + const filePath = options.filePath, success = options.success, fail = options.fail, complete = options.complete; + const savedFilePath = getFsPath1(filePath); + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!fs3.accessSync(savedFilePath)) { + cb.fail({ + errMsg: 'file not exist' + } as ApiError); + return; + } + fs3.unlink(savedFilePath, (err)=>{ + if (err) { + cb.fail(getApiError(err.code, 'removeSavedFile: fail')); + } else { + cb.success({ + errMsg: 'removeSavedFile: ok' + } as FileManagerSuccessResult); + } + }); + } + getSavedFileList(options: GetSavedFileListOptions): void { + const errMsg = 'getSavedFileList: fail'; + const success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const savedPath = getSavedDir1(); + if (!fs3.accessSync(savedPath)) { + cb.fail(getApiError(1300002, errMsg)); + return; + } + fs3.listFile(savedPath, {} as ListFileOptions1, (err, fileList)=>{ + if (err) { + cb.fail(getApiError(err.code, errMsg)); + } else { + cb.success({ + fileList: fileList.map((filePath: string)=>{ + const fullPath = savedPath + '/' + filePath; + const stat = fs3.statSync(fullPath); + if (!stat.isFile()) { + return null; + } + return fullPath; + }).filter((item)=>!!item) + } as GetSavedFileListResult); + } + }); + } + truncate(options: TruncateFileOptions): void { + const errMsg = 'truncate: fail'; + let filePath = options.filePath, length = options.length, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(filePath, true, 'string')) { + cb.fail({ + errMsg: `${errMsg} parameter error: parameter.filePath should be String` + } as ApiError); + return; + } + const res = fs3.accessSync(filePath); + if (!res) { + cb.fail({ + errMsg: `${errMsg} no such file or directory, open "${filePath}"` + } as ApiError); + return; + } + const fileStat = fs3.statSync(filePath); + if (fileStat.isDirectory()) { + cb.fail({ + errMsg: `${errMsg} illegal operation on a directory, open: ${filePath}` + } as ApiError); + return; + } + if (!checkDataType(length, false, 'number') || length! < 0) { + length = 0; + } + const file = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE); + fs3.truncate(file.fd, length).then(()=>{ + cb.success({ + errMsg: 'truncate: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError(err.code, errMsg)); + }); + } + truncateSync(filePath: string, length: number | null = null): void { + const errMsg = 'truncateSync: fail'; + if (!checkDataType(filePath, true, 'string')) { + throw new Error(`${errMsg} parameter error: parameter.filePath should be String`); + } + const res = fs3.accessSync(filePath); + if (!res) { + throw new Error(`${errMsg} no such file or directory, open "${filePath}"`); + } + const fileStat = fs3.statSync(filePath); + if (fileStat.isDirectory()) { + throw new Error(`${errMsg} illegal operation on a directory, open: ${filePath}`); + } + if (!checkDataType(length, false, 'number') || length! < 0) { + length = 0; + } + const file = fs3.openSync(filePath, fs3.OpenMode.READ_WRITE); + try { + fs3.truncateSync(file.fd, length!); + } catch (error) { + throw new Error(getApiError((error as BusinessError5).code, errMsg).errMsg); + } + } + open(options: OpenFileOptions): void { + const errMsg = 'open: fail'; + let filePath = options.filePath, flag = options.flag, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(filePath, true, 'string')) { + cb.fail({ + errMsg: `${errMsg} parameter error: parameter.filePath should be String` + } as ApiError); + return; + } + if (!FLAG.includes(flag)) { + flag = DEFAULT_FLAG; + } + if (Object.keys(modeReflect).includes(flag)) { + if (fs3.accessSync(filePath)) { + cb.fail({ + errMsg: `${errMsg} EXIST: file already exists` + } as ApiError); + return; + } else { + flag = modeReflect[flag as keyof ModeReflect] as _FLAG; + } + } + fs3.open(filePath, getOpenMode(flag)!, (err, file)=>{ + if (err) { + cb.fail(getApiError(err.code, errMsg)); + } else { + cb.success({ + fd: file.fd.toString(), + errMsg: 'open: ok' + } as OpenFileSuccessResult); + } + }); + } + openSync(options: OpenFileSyncOptions): string { + let filePath = options.filePath, flag = options.flag; + if (!checkDataType(filePath, true, 'string')) { + throw new Error('openSync:fail parameter error: parameter.filePath should be String'); + } + if (!FLAG.includes(flag)) { + flag = DEFAULT_FLAG; + } + if (Object.keys(modeReflect).includes(flag)) { + if (fs3.accessSync(filePath)) { + throw new Error('openSync:fail EXIST: file already exists'); + } else { + flag = modeReflect[flag as keyof ModeReflect] as _FLAG; + } + } + const file = fs3.openSync(filePath, getOpenMode(flag)!); + return file.fd.toString(); + } + write(options: WriteOptions): void { + let inFd = options.fd, data = options.data, offset = options.offset, length = options.length, position = options.position, _options_encoding = options.encoding, encoding = _options_encoding == null ? 'utf-8' : _options_encoding, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + let fd: number = -1; + const writeOptions: OHWriteOptions = {}; + if (!checkDataType(inFd, true, 'string') || inFd === '' || isNaN(Number(inFd))) { + cb.fail({ + errMsg: 'write: fail invalid fd' + } as ApiError); + return; + } else { + fd = Number(inFd); + } + if (!checkDataType((data as DataType), true, 'arraybuffer') && !checkDataType((data as DataType), true, 'string')) { + cb.fail({ + errMsg: 'write: fail data must be a string or ArrayBuffer' + } as ApiError); + return; + } + if (checkDataType((data as DataType), true, 'arraybuffer')) { + const sizeOfArrayBuffer = (data as ArrayBuffer).byteLength as number; + if (!checkDataType(offset, false, 'number') || offset! < 0 || !offset) { + offset = DEFAULT_OFFSET; + } + if (offset > sizeOfArrayBuffer) { + cb.fail({ + errMsg: `write: fail RangeError [ERR_OUT_OF_RANGE]: The value of offset is out of range. It must be <= ${sizeOfArrayBuffer}. Received ${offset}` + } as ApiError); + return; + } + if (!checkDataType(length, false, 'number') || length! < 0 || !length) { + length = sizeOfArrayBuffer - offset; + } + if (length > sizeOfArrayBuffer - offset) { + cb.fail({ + errMsg: `write: fail RangeError [ERR_OUT_OF_RANGE]: The value of length is out of range. It must be <= ${sizeOfArrayBuffer - offset}. Received ${length}` + } as ApiError); + return; + } + const uint8ArrayTemp = new Uint8Array(data as ArrayBuffer); + const slicedArray = uint8ArrayTemp.slice(offset); + data = slicedArray.buffer; + } + if (checkDataType((data as DataType), true, 'string')) { + const res = checkEncoding('write', encoding); + if (!res.isValid) { + cb.fail({ + errMsg: res.errMsg + } as ApiError); + return; + } + writeOptions.encoding = encoding as string; + length = buffer.byteLength(data as string); + } + if (!checkDataType(position, false, 'number') || position! < 0 || !position) { + position = DEFAULT_POSITION; + } + writeOptions.offset = position; + writeOptions.length = length!; + fs3.write(fd, data as (ArrayBuffer | string), writeOptions).then((writeLen)=>{ + cb.success({ + bytesWritten: writeLen, + errMsg: 'write:ok' + } as WriteResult); + }).catch((err: BusinessError5)=>{ + cb.fail({ + errMsg: `write data to file failed with error message: ${err.message}, error code: ${err.code}` + } as ApiError); + }); + } + writeSync(options: WriteSyncOptions): WriteResult { + let inFd = options.fd, data = options.data, offset = options.offset, length = options.length, position = options.position, _options_encoding = options.encoding, encoding = _options_encoding == null ? 'utf-8' : _options_encoding; + let fd: number = -1; + const writeOptions: OHWriteOptions = {}; + if (!checkDataType(inFd, true, 'string') || inFd === '' || isNaN(Number(inFd))) { + throw new Error('writeSync: fail invalid fd'); + } else { + fd = Number(inFd); + } + if (!checkDataType((data as DataType), true, 'arraybuffer') && !checkDataType((data as DataType), true, 'string')) { + throw new Error('writeSync: fail data must be a string or ArrayBuffer'); + } + if (checkDataType((data as DataType), true, 'arraybuffer')) { + const sizeOfArrayBuffer = (data as ArrayBuffer).byteLength as number; + if (!checkDataType(offset, false, 'number') || offset! < 0 || !offset) { + offset = DEFAULT_OFFSET; + } + if (offset > sizeOfArrayBuffer) { + throw new Error(`write: fail RangeError [ERR_OUT_OF_RANGE]: The value of offset is out of range. It must be <= ${sizeOfArrayBuffer}. Received ${offset}`); + } + if (!checkDataType(length, false, 'number') || length! < 0 || !length) { + length = sizeOfArrayBuffer - offset; + } + if (length > sizeOfArrayBuffer - offset) { + throw new Error(`write: fail RangeError [ERR_OUT_OF_RANGE]: The value of length is out of range. It must be <= ${sizeOfArrayBuffer - offset}. Received ${length}`); + } + const uint8ArrayTemp = new Uint8Array(data as ArrayBuffer); + const slicedArray = uint8ArrayTemp.slice(offset); + data = slicedArray.buffer; + } + if (checkDataType((data as DataType), true, 'string')) { + const res = checkEncoding('write', encoding); + if (!res.isValid) { + throw new Error(res.errMsg); + } + writeOptions.encoding = encoding as string; + length = buffer.byteLength(data as string); + } + if (!checkDataType(position, false, 'number') || position! < 0 || !position) { + position = DEFAULT_POSITION; + } + writeOptions.offset = position; + writeOptions.length = length!; + try { + const writeLen = fs3.writeSync(fd, data as (ArrayBuffer | string), writeOptions); + return { + bytesWritten: writeLen, + errMsg: 'write:ok' + } as WriteResult; + } catch (error) { + throw new Error(`writeSync: fail ${(error as BusinessError5).message}`); + } + } + close(options: CloseOptions): void { + const errMsg = 'close: fail'; + let inFd = options.fd, success = options.success, fail = options.fail, complete = options.complete; + let fd: number = -1; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const res = checkFd('fstat', inFd); + if (!res.isValid) { + cb.fail((res as CheckFdErr).err); + return; + } + fd = res.fd; + if (isNaN(fd)) { + cb.fail({ + errMsg: `${errMsg} bad file descriptor` + } as ApiError); + return; + } + fs3.close(fd, (err)=>{ + if (err) { + cb.fail({ + errMsg: `${errMsg} bad file descriptor` + } as ApiError); + } else { + cb.success({ + errMsg: 'close:ok' + } as FileManagerSuccessResult); + } + }); + } + closeSync(options: CloseSyncOptions): void { + const errMsg = 'closeSync: fail'; + let inFd = options.fd; + let fd: number = -1; + if (inFd === '' || !checkDataType(inFd, true, 'string')) { + throw new Error(`${errMsg} invalid fd`); + } + fd = Number(inFd); + if (isNaN(fd)) { + throw new Error(`${errMsg} bad file descriptor`); + } + fs3.closeSync(fd); + } + fstat(options: FStatOptions): void { + const errMsg = 'fstat: fail'; + let inFd = options.fd, success = options.success, fail = options.fail, complete = options.complete; + let fd: number = -1; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + const res = checkFd('fstat', inFd); + if (!res.isValid) { + cb.fail((res as CheckFdErr).err); + return; + } else { + fd = res.fd; + } + fs3.stat(fd, (err, stat)=>{ + if (err) { + cb.fail(getApiError(err.code, errMsg)); + } else { + const combinationMode = getFileTypeMode(stat) | stat.mode; + cb.success({ + stats: new StatsImpl(stat, combinationMode) + } as FStatSuccessResult); + } + }); + } + fstatSync(options: FStatSyncOptions): Stats { + const errMsg = 'fstatSync: fail'; + let fd: number = -1; + const res = checkFd('fstatSync', options.fd); + if (!res.isValid) { + throw new Error((res as CheckFdErr).err?.errMsg); + } else { + fd = res.fd; + } + try { + const stat = fs3.statSync(fd); + const combinationMode = getFileTypeMode(stat) | stat.mode; + return new StatsImpl(stat, combinationMode); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + ftruncate(options: FTruncateFileOptions): void { + const errMsg = 'ftruncate: fail'; + let inFd = options.fd, length = options.length, success = options.success, fail = options.fail, complete = options.complete; + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + let fd: number = -1; + const res = checkFd('ftruncate', inFd); + if (!res.isValid) { + cb.fail((res as CheckFdErr).err); + return; + } else { + fd = res.fd; + } + if (!checkDataType(length, true, 'number') || length < 0) { + length = DEFAULT_LENGTH; + } + fs3.truncate(fd, length).then(()=>{ + cb.success({ + errMsg: 'ftruncate: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + ftruncateSync(options: FTruncateFileSyncOptions): void { + const errMsg = 'ftruncateSync: fail'; + let inFd = options.fd, length = options.length; + const res = checkFd('ftruncateSync', inFd); + let fd: number = -1; + if (!res.isValid) { + throw new Error((res as CheckFdErr).err?.errMsg); + } else { + fd = res.fd; + } + if (!checkDataType(length, true, 'number') || length < 0) { + length = DEFAULT_LENGTH; + } + try { + fs3.truncateSync(fd, length); + } catch (err) { + throw new Error(getApiError((err as BusinessError5).code, errMsg).errMsg); + } + } + unzip(options: UnzipFileOptions): void { + const errMsg = 'unzip: fail'; + let zipFilePath = options.zipFilePath, targetPath = options.targetPath, success = options.success, fail = options.fail, complete = options.complete; + zipFilePath = useGetRealPath(zipFilePath); + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + if (!checkDataType(zipFilePath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} zipFilePath`)); + return; + } + if (!checkDataType(targetPath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} targetPath`)); + return; + } + const res = fs3.accessSync(zipFilePath); + if (!res) { + cb.fail(getNoSuchFileOrDirectoryError(errMsg)); + return; + } + const targetStat = fs3.statSync(targetPath); + if (!targetStat.isDirectory()) { + cb.fail(getApiError(1300016, errMsg)); + return; + } + zlib.decompressFile(zipFilePath, targetPath).then(()=>{ + cb.success({ + errMsg: 'unzip: ok' + } as FileManagerSuccessResult); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + readZipEntry(options: ReadZipEntryOptions): void { + const errMsg = 'readZipEntry: fail'; + const okMsg = 'readZipEntry: ok'; + let filePath = options.filePath, encoding = options.encoding, entries = options.entries, success = options.success, fail = options.fail, complete = options.complete; + filePath = useGetRealPath(filePath); + const cb = new FileCallback({ + success, + fail, + complete + } as CallBack); + let isAll = false; + let encodeArrayBuffer = false; + if (!checkDataType(filePath, true, 'string')) { + cb.fail(getParameterError(`${errMsg} filePath`)); + return; + } + if (entries != null) { + if (!Array.isArray(entries)) { + cb.fail(getParameterError(`${errMsg} entries`)); + return; + } else { + if (entries.length === 0) { + cb.fail(getParameterError(`${errMsg} entries`)); + return; + } + } + } else { + isAll = true; + if (encoding == null) { + encodeArrayBuffer = true; + } else if (isString(encoding)) { + if ((encoding as string) === 'utf8') { + encoding = 'utf-8'; + } + } + } + if (isString(encoding) && !ENCODING_SUPPORT.includes(encoding as string)) { + cb.fail(getParameterError(`${errMsg} encoding`)); + return; + } + const res = fs3.accessSync(filePath); + if (!res) { + cb.fail(getNoSuchFileOrDirectoryError(errMsg)); + return; + } + const targetPath = `${getEnv2().TEMP_PATH}/unzip/${Date.now().toString()}`; + fs3.mkdir(targetPath, true).then(()=>{ + this.unzip({ + zipFilePath: filePath, + targetPath, + success: ()=>{ + const entriesResult: Map<string, ZipFileItem> = new Map(); + const readFileSync = (file: string, fullPath: string, encoding: string | null = null)=>{ + const data = this.readFileSync(fullPath).data as ArrayBuffer; + if (encodeArrayBuffer) { + entriesResult.set(file, { + data, + errMsg: okMsg + } as ZipFileItem); + } else { + entriesResult.set(file, { + data: buffer.from(data).toString(encoding as string), + errMsg: okMsg + } as ZipFileItem); + } + }; + try { + if (isAll) { + const files = fs3.listFileSync(targetPath); + for (const file of files){ + const fullPath = `${targetPath}/${file}`; + if (fs3.statSync(fullPath).isFile()) { + readFileSync(file, fullPath, encoding as string); + } + } + } else { + for (const entry of entries!){ + const entryPath = entry.path; + const fullPath = `${targetPath}/${entryPath}`; + if (!fs3.accessSync(fullPath) || !fs3.statSync(fullPath).isFile()) { + continue; + } + readFileSync(entryPath, fullPath, entry.encoding as string); + } + } + cb.success({ + entries: entriesResult, + result: entriesResult, + errMsg: okMsg + } as EntriesResult); + } catch (err) { + cb.fail({ + errMsg: `${errMsg} ${(err as Error).message}` + } as FileManagerSuccessResult); + } + }, + fail: cb.fail, + complete: null + } as UnzipFileOptions); + }).catch((err: BusinessError5)=>{ + cb.fail(getApiError((err as BusinessError5).code, errMsg)); + }); + } + readCompressedFile(options: ReadCompressedFileOptions): void { + throw new Error('Method not implemented.'); + } + readCompressedFileSync(filePath: string, compressionAlgorithm: string): string { + throw new Error('Method not implemented.'); + } + } + const getFileSystemManager = defineSyncApi<FileSystemManager>(GET_FILE_SYSTEM_MANAGER, ()=>{ + return new FileSystemManagerImpl(); + }); + const AUTHORIZED = 'authorized'; + const DENIED = 'denied'; + const NOT_DETERMINED = 'not determined'; + class AppAuthorizeSetting { + albumAuthorized: string = NOT_DETERMINED; + bluetoothAuthorized: string = NOT_DETERMINED; + cameraAuthorized: string = NOT_DETERMINED; + locationAuthorized: string = NOT_DETERMINED; + locationAccuracy: string = NOT_DETERMINED; + microphoneAuthorized: string = NOT_DETERMINED; + notificationAuthorized: string = NOT_DETERMINED; + notificationAlertAuthorized: string = NOT_DETERMINED; + notificationBadgeAuthorized: string = NOT_DETERMINED; + notificationSoundAuthorized: string = NOT_DETERMINED; + phoneCalendarAuthorized: string = NOT_DETERMINED; + } + class GetAppAuthorizeSettingImpl { + accessTokenId: number; + atManager: abilityAccessCtrl.AtManager; + appAuthorizeSetting: AppAuthorizeSetting; + constructor(accessTokenId: number, atManager: abilityAccessCtrl.AtManager, appAuthorizeSetting: AppAuthorizeSetting){ + this.accessTokenId = accessTokenId; + this.atManager = atManager; + this.appAuthorizeSetting = appAuthorizeSetting; + this.getAlbumAuthorizeSetting(); + this.getBlueToothAuthorizeSetting(); + this.getCameraAuthorizeSetting(); + this.getLocationAuthorizeSetting(); + this.getMicrophoneAuthorizeSetting(); + this.getNotificationAuthorizeSetting(); + this.getPhoneCalendarAuthorizeSetting(); + } + getAlbumAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.READ_IMAGEVIDEO'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.albumAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.albumAuthorized = AUTHORIZED; + } + } + getBlueToothAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.ACCESS_BLUETOOTH'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.bluetoothAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.bluetoothAuthorized = AUTHORIZED; + } + } + getCameraAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.CAMERA'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.cameraAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.cameraAuthorized = AUTHORIZED; + } + } + getLocationAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.LOCATION'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.locationAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.locationAuthorized = AUTHORIZED; + } + } + getMicrophoneAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.MICROPHONE'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.microphoneAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.microphoneAuthorized = AUTHORIZED; + } + } + getNotificationAuthorizeSetting() { + try { + const isNotificationEnabled = notificationManager.isNotificationEnabledSync(); + if (isNotificationEnabled) { + this.appAuthorizeSetting.notificationAuthorized = DENIED; + } + if (isNotificationEnabled) { + this.appAuthorizeSetting.notificationAuthorized = AUTHORIZED; + } + } catch (error) { + this.appAuthorizeSetting.notificationAuthorized = DENIED; + } + } + getPhoneCalendarAuthorizeSetting() { + const grantStatus = this.atManager.checkAccessTokenSync(this.accessTokenId, 'ohos.permission.WRITE_CALENDAR'); + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) { + this.appAuthorizeSetting.phoneCalendarAuthorized = DENIED; + } + if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { + this.appAuthorizeSetting.phoneCalendarAuthorized = AUTHORIZED; + } + } + } + const getAppAuthorizeSetting: GetAppAuthorizeSetting = defineSyncApi<GetAppAuthorizeSettingResult>('getAppAuthorizeSetting', ()=>{ + const bundleInfoWithApplication = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION); + const appAuthorizeSettingImpl = new GetAppAuthorizeSettingImpl(bundleInfoWithApplication.appInfo.accessTokenId, abilityAccessCtrl.createAtManager(), new AppAuthorizeSetting()); + return appAuthorizeSettingImpl.appAuthorizeSetting as GetAppAuthorizeSettingResult; + }) as GetAppAuthorizeSetting; + const API_GET_APP_BASE_INFO = 'getAppBaseInfo'; + const getBundleInfoOnce = ()=>{ + let bundleInfo: bundleManager1.BundleInfo | null = null; + return (): bundleManager1.BundleInfo =>{ + if (bundleInfo) { + return bundleInfo; + } + bundleInfo = bundleManager1.getBundleInfoForSelfSync(bundleManager1.BundleFlag.GET_BUNDLE_INFO_DEFAULT); + return bundleInfo; + }; + }; + const getBundleInfo = getBundleInfoOnce(); + const getAppBaseInfo: GetAppBaseInfo = defineSyncApi<GetAppBaseInfoResult>(API_GET_APP_BASE_INFO, (): GetAppBaseInfoResult =>{ + const appVersion = UTSHarmony.getAppVersion() as IAppBaseInfoAppVersion; + const appLanguage = I18n.System.getAppPreferredLanguage(); + const uniCompilerVersion: string = UTSHarmony.getUniCompilerVersion() as string; + const uniRuntimeVersion: string = UTSHarmony.getUniRuntimeVersion(); + return { + appId: UTSHarmony.getAppId() as string, + appLanguage, + appName: UTSHarmony.getAppName() as string, + appTheme: UTSHarmony.getAppTheme() as string, + appVersion: appVersion.name, + appVersionCode: appVersion.code, + appWgtVersion: appVersion.name, + hostLanguage: I18n.System.getSystemLanguage(), + isUniAppX: UTSHarmony.isUniAppX() as boolean, + packageName: getBundleInfo().name, + uniCompilerVersion: uniCompilerVersion, + uniCompilerVersionCode: parseFloat(uniCompilerVersion), + uniRuntimeVersion: uniRuntimeVersion, + uniRuntimeVersionCode: parseFloat(uniRuntimeVersion), + uniPlatform: 'app' + } as GetAppBaseInfoResult; + }) as GetAppBaseInfo; + const API_GET_BACKGROUND_AUDIO_MANAGER = 'getBackgroundAudioManager'; + const isFileUri2 = (path: string)=>{ + return path && typeof path === 'string' && (path.startsWith('file://') || path.startsWith('datashare://')); + }; + const isSandboxPath1 = (path: string)=>{ + return path && typeof path === 'string' && path.startsWith('/data/storage/'); + }; + const getFdFromUriOrSandBoxPath1 = (uri: string)=>{ + try { + const file = fileIo1.openSync(uri, fileIo1.OpenMode.READ_ONLY); + return file.fd; + } catch (error) { + console.info(`[AdvancedAPI] Can not get file from uri: ${uri} `); + } + throw new Error('file is not exist'); + }; + const callCallbacks1 = (callbacks: Function[], ...args: Object[])=>{ + callbacks.forEach((cb)=>{ + typeof cb === 'function' && cb(...args); + }); + }; + const remoteCallback1 = (callbacks: Function[], callback: Function)=>{ + const index = callbacks.indexOf(callback); + if (index > -1) { + callbacks.splice(index, 1); + } + }; + class AudioPlayerError1 { + errMsg: string; + errCode: number; + constructor(errMsg: string, errCode: number){ + this.errMsg = errMsg; + this.errCode = errCode; + } + } + class AudioPlayerCallback1 { + onCanplayCallbacks: Function[] = []; + onPlayCallbacks: Function[] = []; + onPauseCallbacks: Function[] = []; + onStopCallbacks: Function[] = []; + onEndedCallbacks: Function[] = []; + onTimeUpdateCallbacks: Function[] = []; + onErrorCallbacks: Function[] = []; + onWaitingCallbacks: Function[] = []; + onSeekingCallbacks: Function[] = []; + onSeekedCallbacks: Function[] = []; + constructor(){} + canPlay() { + callCallbacks1(this.onCanplayCallbacks); + } + onCanplay(callback: Function) { + this.onCanplayCallbacks.push(callback); + } + offCanplay(callback: Function) { + remoteCallback1(this.onCanplayCallbacks, callback); + } + play() { + callCallbacks1(this.onPlayCallbacks); + } + onPlay(callback: Function) { + this.onPlayCallbacks.push(callback); + } + offPlay(callback: Function) { + remoteCallback1(this.onPlayCallbacks, callback); + } + pause() { + callCallbacks1(this.onPauseCallbacks); + } + onPause(callback: Function) { + this.onPauseCallbacks.push(callback); + } + offPause(callback: Function) { + remoteCallback1(this.onPauseCallbacks, callback); + } + stop() { + callCallbacks1(this.onStopCallbacks); + } + onStop(callback: Function) { + this.onStopCallbacks.push(callback); + } + offStop(callback: Function) { + remoteCallback1(this.onStopCallbacks, callback); + } + ended() { + callCallbacks1(this.onEndedCallbacks); + } + onEnded(callback: Function) { + this.onEndedCallbacks.push(callback); + } + offEnded(callback: Function) { + remoteCallback1(this.onEndedCallbacks, callback); + } + timeUpdate(time: number) { + callCallbacks1(this.onTimeUpdateCallbacks, time); + } + onTimeUpdate(callback: Function) { + this.onTimeUpdateCallbacks.push(callback); + } + offTimeUpdate(callback: Function) { + remoteCallback1(this.onTimeUpdateCallbacks, callback); + } + error(res: AudioPlayerError1) { + callCallbacks1(this.onErrorCallbacks, res); + } + onError(callback: Function) { + this.onErrorCallbacks.push(callback); + } + offError(callback: Function) { + remoteCallback1(this.onErrorCallbacks, callback); + } + onPrev(callback: Function) { + console.info('ios only'); + } + onNext(callback: Function) { + console.info('ios only'); + } + waiting() { + callCallbacks1(this.onWaitingCallbacks); + } + onWaiting(callback: Function) { + this.onWaitingCallbacks.push(callback); + } + offWaiting(callback: Function) { + remoteCallback1(this.onWaitingCallbacks, callback); + } + seeking() { + callCallbacks1(this.onSeekingCallbacks); + } + onSeeking(callback: Function) { + this.onSeekingCallbacks.push(callback); + } + offSeeking(callback: Function) { + remoteCallback1(this.onSeekingCallbacks, callback); + } + seeked() { + callCallbacks1(this.onSeekedCallbacks); + } + onSeeked(callback: Function) { + this.onSeekedCallbacks.push(callback); + } + offSeeked(callback: Function) { + remoteCallback1(this.onSeekedCallbacks, callback); + } + } + const audioPlayerCallback = new AudioPlayerCallback1(); + let AV_SESSION: avSession.AVSession | null = null; + const createAVSession = ()=>{ + avSession.createAVSession(UTSHarmony.getUIAbilityContext()!, 'player', 'audio').then((data)=>{ + AV_SESSION = data; + }); + }; + const destroyAVSession = ()=>{ + if (AV_SESSION === null) { + return; + } + AV_SESSION.destroy(); + AV_SESSION = null; + }; + const startBackgroundTask = ()=>{ + const abilityInfo = UTSHarmony.getUIAbilityContext()!.abilityInfo as TempAbilityInfo; + const wantAgentInfo: wantAgent.WantAgentInfo = { + wants: [ + { + bundleName: abilityInfo.bundleName, + abilityName: abilityInfo.name + } + ], + operationType: wantAgent.OperationType.START_ABILITY, + requestCode: 0, + wantAgentFlags: [ + wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG + ] + }; + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj)=>{ + return backgroundTaskManager.startBackgroundRunning(UTSHarmony.getUIAbilityContext()!, backgroundTaskManager.BackgroundMode.AUDIO_PLAYBACK, wantAgentObj); + }).then(()=>{ + console.debug('[getBackgroundAudioManager] start bg operation succeeded'); + }).catch((err: BusinessError6)=>{ + audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); + }); + }; + const stopBackgroundTask = ()=>{ + backgroundTaskManager.stopBackgroundRunning(UTSHarmony.getUIAbilityContext()!).then(()=>{ + console.debug('[getBackgroundAudioManager] stop operation succeeded'); + }).catch((err: BusinessError6)=>{ + audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); + }); + }; + const START_BACKGROUND = ()=>{ + startBackgroundTask(); + createAVSession(); + }; + const STOP_BACKGROUND = ()=>{ + destroyAVSession(); + stopBackgroundTask(); + }; + const LOG1 = (msg: string)=>console.log(`[getBackgroundAudioManager]: ${msg}`); + class STATE_TYPE1 { + static IDLE: string = 'idle'; + static PLAYING: string = 'playing'; + static PAUSED: string = 'paused'; + static STOPPED: string = 'stopped'; + static ERROR: string = 'error'; + } + class BackgroundAudioManagerImpl implements BackgroundAudioManager { + static audioPlayer?: media2.AudioPlayer; + private _src: string = ''; + private _startTime: number = 0; + private _buffered: number = 0; + private _title: string = ''; + private _epname: string = ''; + private _singer: string = ''; + private _coverImgUrl: string = ''; + private _webUrl: string = ''; + private _protocol: string = ''; + private _playbackRate: number = 1; + readonly obeyMuteSwitch: boolean = false; + constructor(){ + this.init(); + } + init() { + BackgroundAudioManagerImpl.audioPlayer = media2.createAudioPlayer(); + BackgroundAudioManagerImpl.audioPlayer.on('dataLoad', ()=>{ + audioPlayerCallback.canPlay(); + }); + BackgroundAudioManagerImpl.audioPlayer.on('play', ()=>{ + audioPlayerCallback.play(); + }); + BackgroundAudioManagerImpl.audioPlayer.on('pause', ()=>{ + audioPlayerCallback.pause(); + }); + BackgroundAudioManagerImpl.audioPlayer.on('finish', ()=>{ + STOP_BACKGROUND(); + audioPlayerCallback.ended(); + }); + BackgroundAudioManagerImpl.audioPlayer.on('timeUpdate', (res)=>{ + audioPlayerCallback.timeUpdate(res / 1000); + }); + BackgroundAudioManagerImpl.audioPlayer.on('error', (err)=>{ + audioPlayerCallback.error(new AudioPlayerError1(err.message, err.code)); + }); + BackgroundAudioManagerImpl.audioPlayer.on('bufferingUpdate', (infoType, value)=>{ + console.info(`[AdvancedAPI] audioPlayer bufferingUpdate ${infoType} ${value}`); + if (infoType === media2.BufferingInfoType.BUFFERING_PERCENT && value !== 0 && BackgroundAudioManagerImpl.audioPlayer) { + this._buffered = value; + if ((BackgroundAudioManagerImpl.audioPlayer.currentTime / 1000) >= (BackgroundAudioManagerImpl.audioPlayer.duration * value / 100000)) { + audioPlayerCallback.waiting(); + } + } + }); + BackgroundAudioManagerImpl.audioPlayer.on('audioInterrupt', (InterruptEvent)=>{ + console.info('[AdvancedAPI] audioInterrupt:' + JSON.stringify(InterruptEvent)); + if (BackgroundAudioManagerImpl.audioPlayer && InterruptEvent.hintType === audio1.InterruptHint.INTERRUPT_HINT_PAUSE) { + BackgroundAudioManagerImpl.audioPlayer.pause(); + } + if (BackgroundAudioManagerImpl.audioPlayer && InterruptEvent.hintType === audio1.InterruptHint.INTERRUPT_HINT_RESUME) { + BackgroundAudioManagerImpl.audioPlayer.play(); + } + }); + } + get duration() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return 0; + } + return BackgroundAudioManagerImpl.audioPlayer.duration / 1000; + } + get currentTime() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return 0; + } + return BackgroundAudioManagerImpl.audioPlayer.currentTime / 1000; + } + get paused() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return false; + } + return BackgroundAudioManagerImpl.audioPlayer.state === STATE_TYPE1.PAUSED; + } + get src() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return ''; + } + return BackgroundAudioManagerImpl.audioPlayer.src; + } + set src(value) { + if (typeof value !== 'string') { + audioPlayerCallback.error(new AudioPlayerError1(`set src: ${value} is not string`, 10004)); + return; + } + if (!BackgroundAudioManagerImpl.audioPlayer) { + audioPlayerCallback.error(new AudioPlayerError1(`player is not exist`, 10001)); + return; + } + if (!value || !(value.startsWith('http:') || value.startsWith('https:') || isFileUri2(value) || isSandboxPath1(value))) { + LOG1(`set src: ${value} is invalid`); + return; + } + let path: string = ''; + if (value.startsWith('http:') || value.startsWith('https:')) { + path = value; + } else if (isFileUri2(value) || isSandboxPath1(value)) { + try { + const fd = getFdFromUriOrSandBoxPath1(value); + path = `fd://${fd}`; + } catch (err) { + audioPlayerCallback.error(new AudioPlayerError1((err as BusinessError6).message, (err as BusinessError6).code)); + } + } + if (BackgroundAudioManagerImpl.audioPlayer.src && path !== BackgroundAudioManagerImpl.audioPlayer.src) { + BackgroundAudioManagerImpl.audioPlayer.reset(); + } + BackgroundAudioManagerImpl.audioPlayer.src = path; + this._src = value; + if (this._startTime) { + BackgroundAudioManagerImpl.audioPlayer.seek(this._startTime); + } + BackgroundAudioManagerImpl.audioPlayer.play(); + START_BACKGROUND(); + } + get startTime() { + return this._startTime / 1000; + } + set startTime(time: number) { + this._startTime = time * 1000; + } + get title() { + return this._title; + } + set title(titleName: string) { + this._title = titleName; + } + get buffered() { + if (!BackgroundAudioManagerImpl.audioPlayer) return 0; + return BackgroundAudioManagerImpl.audioPlayer.duration * this._buffered / 100000; + } + get epname() { + return this._epname; + } + set epname(epName: string) { + this._epname = epName; + } + get singer() { + return this._singer; + } + set singer(singerName: string) { + this._singer = singerName; + } + get coverImgUrl() { + return this._coverImgUrl; + } + set coverImgUrl(url: string) { + this._coverImgUrl = url; + } + get webUrl() { + return this._webUrl; + } + set webUrl(url: string) { + this._webUrl = url; + } + get protocol() { + return this._protocol; + } + set protocol(protocolType: string) { + this._protocol = protocolType; + } + set playbackRate(rate: number) { + audioPlayerCallback.error(new AudioPlayerError1('HarmonyOS Next Audio setting playbackRate is not supported.', -1)); + } + get playbackRate() { + return this._playbackRate; + } + play() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return; + } + const state = BackgroundAudioManagerImpl.audioPlayer.state; + if (![ + STATE_TYPE1.PAUSED, + STATE_TYPE1.STOPPED, + STATE_TYPE1.IDLE + ].includes(state)) { + return; + } + if (this._src && BackgroundAudioManagerImpl.audioPlayer.src === '') { + this.src = this._src; + } + BackgroundAudioManagerImpl.audioPlayer.play(); + START_BACKGROUND(); + } + pause() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return; + } + const state = BackgroundAudioManagerImpl.audioPlayer.state; + if (STATE_TYPE1.PLAYING !== state) { + return; + } + BackgroundAudioManagerImpl.audioPlayer.pause(); + } + stop() { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return; + } + if (![ + STATE_TYPE1.PAUSED, + STATE_TYPE1.PLAYING + ].includes(BackgroundAudioManagerImpl.audioPlayer.state)) { + return; + } + BackgroundAudioManagerImpl.audioPlayer.stop(); + BackgroundAudioManagerImpl.audioPlayer.release(); + this.init(); + STOP_BACKGROUND(); + audioPlayerCallback.stop(); + } + seek(position: number) { + if (!BackgroundAudioManagerImpl.audioPlayer) { + return; + } + const state = BackgroundAudioManagerImpl.audioPlayer.state; + if (![ + STATE_TYPE1.PAUSED, + STATE_TYPE1.PLAYING + ].includes(state)) { + return; + } + BackgroundAudioManagerImpl.audioPlayer.seek(position * 1000); + } + onCanplay(callback: (result: Object) => void): void { + audioPlayerCallback.onCanplay(callback); + } + onPlay(callback: (result: Object) => void): void { + audioPlayerCallback.onPlay(callback); + } + onPause(callback: (result: Object) => void): void { + audioPlayerCallback.onPause(callback); + } + onStop(callback: (result: Object) => void): void { + audioPlayerCallback.onStop(callback); + } + onEnded(callback: (result: Object) => void): void { + audioPlayerCallback.onEnded(callback); + } + onTimeUpdate(callback: (result: Object) => void): void { + audioPlayerCallback.onTimeUpdate(callback); + } + onError(callback: (result: ICreateBackgroundAudioFail) => void): void { + audioPlayerCallback.onError(callback); + } + onWaiting(callback: (result: Object) => void): void { + audioPlayerCallback.onWaiting(callback); + } + offCanplay(callback: (result: Object) => void): void { + audioPlayerCallback.offCanplay(callback); + } + offPlay(callback: (result: Object) => void): void { + audioPlayerCallback.offPlay(callback); + } + offPause(callback: (result: Object) => void): void { + audioPlayerCallback.offPause(callback); + } + offStop(callback: (result: Object) => void): void { + audioPlayerCallback.offStop(callback); + } + offEnded(callback: (result: Object) => void): void { + audioPlayerCallback.offEnded(callback); + } + offTimeUpdate(callback: (result: Object) => void): void { + audioPlayerCallback.offTimeUpdate(callback); + } + offError(callback: (result: ICreateBackgroundAudioFail) => void): void { + audioPlayerCallback.offError(callback); + } + offWaiting(callback: (result: Object) => void): void { + audioPlayerCallback.offWaiting(callback); + } + onPrev(callback: (result: Object) => void): void { + throw new Error('Method not implemented.'); + } + onNext(callback: (result: Object) => void): void { + throw new Error('Method not implemented.'); + } + onSeeking(callback: (result: Object) => void): void { + throw new Error('Method not implemented.'); + } + onSeeked(callback: (result: Object) => void): void { + throw new Error('Method not implemented.'); + } + } + let backgroundAudioManager: BackgroundAudioManager | null = null; + const getBackgroundAudioManager: GetBackgroundAudioManager = defineSyncApi<BackgroundAudioManager>(API_GET_BACKGROUND_AUDIO_MANAGER, ()=>{ + if (!backgroundAudioManager) backgroundAudioManager = new BackgroundAudioManagerImpl(); + return backgroundAudioManager; + }) as GetBackgroundAudioManager; + const API_GET_DEVICE_INFO = 'getDeviceInfo'; + const parseDeviceType = (deviceType: string): 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'unknown' | 'car' | 'vr' | 'appliance' =>{ + switch(deviceType){ + case 'phone': + return 'phone'; + case 'wearable': + return 'watch'; + case 'tablet': + return 'pad'; + case '2in1': + return 'pc'; + case 'tv': + return 'tv'; + case 'car': + return 'car'; + case 'smartVision': + return 'vr'; + default: + return 'unknown'; + } + }; + const getDeviceInfo: GetDeviceInfo = defineSyncApi<GetDeviceInfoResult>(API_GET_DEVICE_INFO, (): GetDeviceInfoResult =>{ + return { + deviceBrand: deviceInfo.brand.toLowerCase(), + deviceId: getDeviceId(), + deviceModel: deviceInfo.productModel, + deviceOrientation: 'portrait', + devicePixelRatio: vp2px(1), + deviceType: parseDeviceType(deviceInfo.deviceType), + osLanguage: I18n1.System.getSystemLanguage(), + osTheme: UTSHarmony.getOsTheme() as string, + osVersion: deviceInfo.majorVersion + '.' + deviceInfo.seniorVersion + '.' + deviceInfo.featureVersion + '.' + deviceInfo.buildVersion, + osName: 'harmonyos', + platform: 'harmonyos', + romName: deviceInfo.distributionOSName, + romVersion: deviceInfo.distributionOSVersion, + system: deviceInfo.osFullName + } as GetDeviceInfoResult; + }) as GetDeviceInfo; + const API_GET_NETWORK_TYPE = 'getNetworkType'; + const PERMISSIONS1 = [ + 'ohos.permission.GET_NETWORK_INFO' + ]; + enum NetworkinfoType { + UNKNOW = 0, + NONE = 1, + ETHERNET = 2, + WIFI = 3, + "2G" = 4, + "3G" = 5, + "4G" = 6, + "5G" = 7 + } + const signalType = (resultObj: radio.NetworkType)=>{ + switch(resultObj){ + case radio.NetworkType.NETWORK_TYPE_GSM: + case radio.NetworkType.NETWORK_TYPE_CDMA: + return NetworkinfoType['2G']; + case radio.NetworkType.NETWORK_TYPE_WCDMA: + case radio.NetworkType.NETWORK_TYPE_TDSCDMA: + return NetworkinfoType['3G']; + case radio.NetworkType.NETWORK_TYPE_LTE: + return NetworkinfoType['4G']; + case radio.NetworkType.NETWORK_TYPE_NR: + return NetworkinfoType['5G']; + case radio.NetworkType.NETWORK_TYPE_UNKNOWN: + return NetworkinfoType.UNKNOW; + default: + return NetworkinfoType.NONE; + } + }; + const networkGetType = ()=>{ + return new Promise<number>((resolve, reject)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight) { + try { + radio.getPrimarySlotId().then((slotId: number)=>radio.getSignalInformationSync(slotId)).then((signalInformation: Array<radio.SignalInformation>)=>{ + const data = signalInformation[0]; + if (data && data.signalType) { + resolve(signalType(data.signalType)); + } else { + resolve(NetworkinfoType.NONE); + } + }); + } catch (error) { + reject(error as BusinessError7); + } + } else { + reject('permission denied'); + } + }, ()=>reject('permission denied')); + }); + }; + class GlobalContext { + netList: connection.NetHandle[] = []; + netHandle: connection.NetHandle | null = null; + private constructor(){} + private static instance: GlobalContext; + public static getContext(): GlobalContext { + if (!GlobalContext.instance) { + GlobalContext.instance = new GlobalContext(); + } + return GlobalContext.instance; + } + } + const getCurrentType = ()=>{ + return new Promise<number>((resolve, reject)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight) { + try { + connection.getDefaultNet().then((data: connection.NetHandle)=>{ + if (data) { + GlobalContext.getContext().netHandle = data; + connection.getNetCapabilities(GlobalContext.getContext().netHandle!).then((data: connection.NetCapabilities)=>{ + const bearerTypes: Set<number> = new Set(data.bearerTypes); + const bearerTypesNum = Array.from(bearerTypes.values()); + for (const item of bearerTypesNum){ + if (item == connection.NetBearType.BEARER_CELLULAR) { + networkGetType().then(resolve).catch(reject); + } else if (item == connection.NetBearType.BEARER_WIFI) { + resolve(NetworkinfoType.WIFI); + } else if (item == connection.NetBearType.BEARER_ETHERNET) { + resolve(NetworkinfoType.ETHERNET); + } else { + resolve(NetworkinfoType.UNKNOW); + } + } + }).catch((err: BusinessError7)=>{ + reject(err); + }); + } + }); + } catch (error) { + reject(error); + } + } else { + reject('permission denied'); + } + }); + }); + }; + class Network { + static netConnection: connection.NetConnection | null = null; + constructor(){ + Network.netConnection = connection.createNetConnection(); + } + static ohoSubscribe() { + if (!Network.netConnection) { + Network.netConnection = connection.createNetConnection(); + } + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight && Network.netConnection) { + Network.netConnection.register((err: BusinessError7)=>{}); + Network.netConnection.on('netCapabilitiesChange', (capability: connection.NetCapabilityInfo)=>{ + const NetBearType = capability?.netCap?.bearerTypes[0]; + let networkType = ''; + switch(NetBearType){ + case connection.NetBearType.BEARER_CELLULAR: + getCurrentType().then((type: number)=>{ + invokeOnNetworkStatusChange(NetworkinfoType[type]); + }).catch(()=>{ + invokeOnNetworkStatusChange(NetworkinfoType[1]); + }); + return; + case connection.NetBearType.BEARER_WIFI: + networkType = NetworkinfoType[3]; + break; + case connection.NetBearType.BEARER_ETHERNET: + networkType = NetworkinfoType[2]; + break; + default: + networkType = NetworkinfoType[1]; + } + invokeOnNetworkStatusChange(networkType); + }); + Network.netConnection.on('netLost', (netLost: connection.NetHandle)=>{ + invokeOnNetworkStatusChange(NetworkinfoType[1]); + }); + } + }); + } + } + new Network(); + onNativePageReady().then(()=>{ + Network.ohoSubscribe(); + }); + const getNetworkType: GetNetworkType = defineAsyncApi<GetNetworkTypeOptions, GetNetworkTypeSuccess>(API_GET_NETWORK_TYPE, (options: GetNetworkTypeOptions, res: ApiExecutor<GetNetworkTypeSuccess>)=>{ + getCurrentType().then((type: number)=>{ + res.resolve({ + networkType: NetworkinfoType[type].toLocaleLowerCase() + } as GetNetworkTypeSuccess); + }).catch((err: BusinessError7)=>{ + if (err.code === 2100001) { + res.resolve({ + networkType: NetworkinfoType[1].toLocaleLowerCase() + } as GetNetworkTypeSuccess); + } else { + res.reject(err.message); + } + }); + }) as GetNetworkType; + const invokeOnNetworkStatusChange = (networkType: string)=>{ + UniGetNetworkTypeEventEmitter.emit('networkStatusChange', { + isConnected: networkType !== NetworkinfoType[1], + networkType: networkType.toLocaleLowerCase() + } as OnNetworkStatusChangeCallbackResult); + }; + const UniGetNetworkTypeEventEmitter = new Emitter1() as IUniGetNetworkTypeEventEmitter; + const onNetworkStatusChange: OnNetworkStatusChange = (callback: Function)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight) { + UniGetNetworkTypeEventEmitter.on('networkStatusChange', callback); + } + }); + }; + const offNetworkStatusChange: OffNetworkStatusChange = (callback: Function)=>{ + UTSHarmony.requestSystemPermission(PERMISSIONS1, (allRight: boolean)=>{ + if (allRight) { + UniGetNetworkTypeEventEmitter.off('networkStatusChange', callback); + } + }); + }; + const API_GET_PROVIDER = 'getProvider'; + const API_GET_PROVIDER_SYNC = 'getProviderSync'; + const SupportedProviderServiceList = [ + 'oauth', + 'share', + 'payment', + 'push', + 'location' + ]; + const _getProviderSync = (options: GetProviderOptions)=>{ + if (!SupportedProviderServiceList.includes(options.service)) { + return 'Parameter service invalid.'; + } + const providers = getUniProviders(options.service); + const providerIds = providers.map((provider): string =>{ + return provider.id; + }); + const result: GetProviderSuccess = { + service: options.service, + provider: providerIds, + providers + }; + return result; + }; + const getProvider: GetProvider = defineAsyncApi<GetProviderOptions, GetProviderSuccess>(API_GET_PROVIDER, (options: GetProviderOptions, exec: ApiExecutor<GetProviderSuccess>): void =>{ + const res = _getProviderSync(options); + if (typeof res === 'string') exec.reject(res); + else exec.resolve(res); + }) as GetProvider; + const getProviderSync: GetProviderSync = defineSyncApi<GetProviderSyncSuccess>(API_GET_PROVIDER_SYNC, (options: GetProviderSyncOptions): GetProviderSyncSuccess =>{ + const res = _getProviderSync(options as GetProviderOptions); + if (typeof res === 'string') throw new Error(res); + return { + service: res.service, + providerIds: res.provider, + providerObjects: res.providers + } as GetProviderSyncSuccess; + }) as GetProviderSync; + const API_GET_RECORDER_MANAGER = 'getRecorderManager'; + const callbacks: Callbacks = { + pause: undefined, + resume: undefined, + start: undefined, + stop: undefined, + error: undefined, + frameRecorded: undefined, + interruptionBegin: undefined, + interruptionEnd: undefined + }; + const setRecordStateCallback = (state: RecorderState, cb: Function)=>{ + switch(state){ + case 'pause': + callbacks.pause = cb; + break; + case 'resume': + callbacks.resume = cb; + break; + case 'start': + callbacks.start = cb; + break; + case 'stop': + callbacks.stop = cb; + break; + case 'error': + callbacks.error = cb; + break; + case 'frameRecorded': + callbacks.frameRecorded = cb; + break; + case 'interruptionBegin': + callbacks.interruptionBegin = cb; + break; + case 'interruptionEnd': + callbacks.interruptionEnd = cb; + break; + } + }; + const onRecorderStateChange = (state: RecorderState, res: StateChangeRes | null = null): void =>{ + switch(state){ + case 'pause': + return callbacks.pause?.(res); + case 'resume': + return callbacks.resume?.(res); + case 'start': + return callbacks.start?.(res); + case 'stop': + return callbacks.stop?.(res); + case 'error': + return callbacks.error?.(res); + case 'frameRecorded': + return callbacks.frameRecorded?.(res); + case 'interruptionBegin': + return callbacks.interruptionBegin?.(res); + case 'interruptionEnd': + return callbacks.interruptionEnd?.(res); + } + }; + const createFile = (supportFormats: string[], format: string, defaultExt: string)=>{ + const TEMP_PATH = getEnv3().TEMP_PATH as string; + const filePath = `${TEMP_PATH}/recorder/`; + if (!fileIo2.accessSync(filePath)) { + fileIo2.mkdirSync(filePath, true); + } + const fileName = `${Date.now()}.${supportFormats.includes(format ?? '') ? format?.toLocaleLowerCase() : defaultExt}`; + const file: fileIo2.File = fileIo2.openSync(`${filePath}${fileName}`, fileIo2.OpenMode.READ_WRITE | fileIo2.OpenMode.CREATE); + return file; + }; + const permissionDenied = ()=>{ + throw new Error('Permission MICROPHONE denied'); + }; + const supportFormats = [ + 'aac' + ]; + class AVRecorder implements RecorderManager { + private avRecorder?: media3.AVRecorder; + private isFirstStart: boolean = true; + constructor(){} + private onStateChange(file: fileIo3.File) { + if (this.avRecorder) { + this.avRecorder.on('stateChange', async (state, reason)=>{ + switch(state){ + case 'idle': + this.isFirstStart = true; + break; + case 'started': + if (this.isFirstStart) { + this.isFirstStart = false; + onRecorderStateChange('start'); + } else { + if (reason === media3.StateChangeReason.BACKGROUND) { + onRecorderStateChange('interruptionEnd'); + } + onRecorderStateChange('resume'); + } + break; + case 'paused': + if (reason === media3.StateChangeReason.BACKGROUND) { + onRecorderStateChange('interruptionBegin'); + } + onRecorderStateChange('pause'); + break; + case 'stopped': + onRecorderStateChange('stop', { + tempFilePath: file.path + } as StateChangeRes); + fileIo3.closeSync(file); + break; + } + }); + this.avRecorder.on('error', (err: BusinessError8)=>{ + onRecorderStateChange('error', { + errMsg: `${err.message} ${err.code}` + } as StateChangeRes); + }); + } + } + private async release() { + if (this.avRecorder !== undefined) { + await this.avRecorder.reset(); + await this.avRecorder.release(); + this.avRecorder = undefined; + } + } + async start(options: RecorderManagerStartOptions): Promise<void> { + if (this.avRecorder !== undefined) { + await this.release(); + } + this.avRecorder = await media3.createAVRecorder(); + const _options_sampleRate = options.sampleRate, sampleRate = _options_sampleRate == null ? 48000 : _options_sampleRate, _options_numberOfChannels = options.numberOfChannels, numberOfChannels = _options_numberOfChannels == null ? 2 : _options_numberOfChannels, _options_encodeBitRate = options.encodeBitRate, encodeBitRate = _options_encodeBitRate == null ? 48000 : _options_encodeBitRate, _options_duration = options.duration, duration = _options_duration == null ? null : _options_duration; + const file = createFile(supportFormats, options.format ?? '', 'aac'); + this.onStateChange(file); + const audioProfile: media3.AVRecorderProfile = { + audioBitrate: encodeBitRate!, + audioChannels: numberOfChannels!, + audioCodec: media3.CodecMimeType.AUDIO_AAC, + audioSampleRate: sampleRate!, + fileFormat: media3.ContainerFormatType.CFT_MPEG_4A + }; + const audioConfig: media3.AVRecorderConfig = { + audioSourceType: media3.AudioSourceType.AUDIO_SOURCE_TYPE_MIC, + profile: audioProfile, + url: 'fd://' + file.fd + }; + UTSHarmony.requestSystemPermission([ + 'ohos.permission.MICROPHONE' + ], async (allRight: boolean)=>{ + if (allRight) { + await this.avRecorder?.prepare(audioConfig); + await this.avRecorder?.start(); + if (duration) { + setTimeout(async ()=>{ + await this.avRecorder?.stop(); + }, duration); + } + } else { + permissionDenied(); + } + }, permissionDenied); + } + async pause(): Promise<void> { + if (this.avRecorder !== undefined && this.avRecorder.state === 'started') { + await this.avRecorder.pause(); + } + } + async resume(): Promise<void> { + if (this.avRecorder !== undefined && this.avRecorder.state === 'paused') { + await this.avRecorder.resume(); + } + } + async stop(): Promise<void> { + if (this.avRecorder !== undefined && (this.avRecorder.state === 'started' || this.avRecorder.state === 'paused')) { + await this.avRecorder.stop(); + await this.release(); + this.isFirstStart = true; + } + } + onStart(options: (result: Object) => void): void { + setRecordStateCallback('start', options); + } + onPause(options: (result: Object) => void): void { + setRecordStateCallback('pause', options); + } + onStop(options: (result: RecorderManagerOnStopResult) => void): void { + setRecordStateCallback('stop', options); + } + onFrameRecorded(options: (result: Object) => void): void { + setRecordStateCallback('frameRecorded', options); + } + onError(options: (result: Object) => void): void { + setRecordStateCallback('error', options); + } + onResume(options: (result: Object) => void): void { + setRecordStateCallback('resume', options); + } + onInterruptionBegin(options: (result: Object) => void): void { + setRecordStateCallback('interruptionBegin', options); + } + onInterruptionEnd(options: (result: Object) => void): void { + setRecordStateCallback('interruptionEnd', options); + } + } + let RECORDER_MANAGER: AVRecorder | null = null; + const DEFAULT_DURATION = 60000; + const MAX_DURATION = 60000 * 10; + const DEFAULT_FORMAT = 'aac'; + class RecorderManagerImpl implements RecorderManager { + start(options: RecorderManagerStartOptions | null = null): void { + if (options == null) options = {} as RecorderManagerStartOptions; + if (!options.format) options.format = DEFAULT_FORMAT; + if (options.duration == null) { + options.duration = DEFAULT_DURATION; + } + if (options.duration > MAX_DURATION) { + options.duration = MAX_DURATION; + } + if (supportFormats.includes(options.format ?? '')) { + RECORDER_MANAGER = new AVRecorder(); + } + if (RECORDER_MANAGER) { + RECORDER_MANAGER.start(options); + } else { + onRecorderStateChange('error', { + errMsg: `format not supported. Only supported ${supportFormats.join(',')}` + } as StateChangeRes); + } + } + pause(): void { + if (RECORDER_MANAGER) RECORDER_MANAGER.pause(); + } + resume(): void { + if (RECORDER_MANAGER) RECORDER_MANAGER.resume(); + } + async stop() { + if (RECORDER_MANAGER) { + try { + await RECORDER_MANAGER.stop(); + } catch (error) {} + RECORDER_MANAGER = null; + } + } + onStart(options: (result: Object) => void): void { + setRecordStateCallback('start', options); + } + onPause(options: (result: Object) => void): void { + setRecordStateCallback('pause', options); + } + onStop(options: (result: RecorderManagerOnStopResult) => void): void { + setRecordStateCallback('stop', options); + } + onFrameRecorded(options: (result: Object) => void): void { + setRecordStateCallback('frameRecorded', options); + } + onError(options: (result: Object) => void): void { + setRecordStateCallback('error', options); + } + onResume(options: (result: Object) => void): void { + setRecordStateCallback('resume', options); + } + onInterruptionBegin(options: (result: Object) => void): void { + setRecordStateCallback('interruptionBegin', options); + } + onInterruptionEnd(options: (result: Object) => void): void { + setRecordStateCallback('interruptionEnd', options); + } + } + let recorderManager: RecorderManager | null = null; + const getRecorderManager: GetRecorderManager = defineSyncApi<RecorderManager>(API_GET_RECORDER_MANAGER, (): RecorderManager =>{ + if (recorderManager) return recorderManager; + else recorderManager = new RecorderManagerImpl(); + return recorderManager; + }) as GetRecorderManager; + const API_GET_SYSTEM_INFO = 'getSystemInfo'; + const API_GET_SYSTEM_INFO_SYNC = 'getSystemInfoSync'; + const API_GET_WINDOW_INFO = 'getWindowInfo'; + const parseDeviceType1 = (deviceType: string): 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'unknown' | 'car' | 'vr' | 'appliance' =>{ + switch(deviceType){ + case 'phone': + return 'phone'; + case 'wearable': + return 'watch'; + case 'tablet': + return 'pad'; + case '2in1': + return 'pc'; + case 'tv': + return 'tv'; + case 'car': + return 'car'; + case 'smartVision': + return 'vr'; + default: + return 'unknown'; + } + }; + const getWindowInfo: GetWindowInfo = defineSyncApi<GetWindowInfoResult>(API_GET_WINDOW_INFO, (): GetWindowInfoResult =>{ + return internalGetWindowInfo() as GetWindowInfoResult; + }) as GetWindowInfo; + const internalGetSystemInfo = (): GetSystemInfoResult =>{ + const appVersion = UTSHarmony.getAppVersion() as ISystemInfoAppVersion; + const appLanguage = I18n2.System.getAppPreferredLanguage(); + const uniCompilerVersion: string = UTSHarmony.getUniCompilerVersion() as string; + const uniCompilerVersionCode: number = parseFloat(uniCompilerVersion); + const uniRuntimeVersion: string = UTSHarmony.getUniRuntimeVersion(); + const windowInfo = internalGetWindowInfo() as GetWindowInfoResult; + const pixelRatio = windowInfo.pixelRatio; + const safeArea = windowInfo.safeArea; + const safeAreaInsets = windowInfo.safeAreaInsets; + const screenHeight = windowInfo.screenHeight; + const screenWidth = windowInfo.screenWidth; + const statusBarHeight = windowInfo.statusBarHeight; + const windowBottom = windowInfo.windowBottom; + const windowHeight = windowInfo.windowHeight; + const windowTop = windowInfo.windowTop; + const windowWidth = windowInfo.windowWidth; + return { + appId: UTSHarmony.getAppId() as string, + appLanguage, + appName: UTSHarmony.getAppName() as string, + appTheme: UTSHarmony.getAppTheme() as string, + appVersion: appVersion.name, + appVersionCode: appVersion.code, + appWgtVersion: appVersion.name, + uniCompilerVersion: uniCompilerVersion, + uniCompilerVersionCode: uniCompilerVersionCode, + uniRuntimeVersion: uniRuntimeVersion, + uniRuntimeVersionCode: parseFloat(uniRuntimeVersion), + uniPlatform: 'app', + deviceBrand: deviceInfo1.brand.toLowerCase(), + deviceId: getDeviceId1(), + deviceModel: deviceInfo1.productModel, + deviceOrientation: 'portrait', + devicePixelRatio: vp2px(1), + deviceType: parseDeviceType1(deviceInfo1.deviceType), + osLanguage: I18n2.System.getSystemLanguage(), + osTheme: UTSHarmony.getOsTheme() as string, + osVersion: deviceInfo1.majorVersion + '.' + deviceInfo1.seniorVersion + '.' + deviceInfo1.featureVersion + '.' + deviceInfo1.buildVersion, + osName: 'harmonyos', + romName: deviceInfo1.distributionOSName, + romVersion: deviceInfo1.distributionOSVersion, + system: deviceInfo1.osFullName, + pixelRatio, + safeArea, + safeAreaInsets, + screenHeight, + screenWidth, + statusBarHeight, + windowBottom, + windowHeight, + windowTop, + windowWidth, + SDKVersion: '', + browserName: '', + browserVersion: '', + ua: '', + language: appLanguage, + brand: deviceInfo1.brand, + model: '', + platform: 'harmonyos', + uniCompileVersion: uniCompilerVersion, + uniCompileVersionCode: uniCompilerVersionCode, + version: '' + } as GetSystemInfoResult; + }; + const getSystemInfoSync: GetSystemInfoSync = defineSyncApi<GetSystemInfoResult>(API_GET_SYSTEM_INFO_SYNC, (): GetSystemInfoResult =>{ + return internalGetSystemInfo(); + }) as GetSystemInfoSync; + const getSystemInfo: GetSystemInfo = defineAsyncApi<GetSystemInfoOptions, GetSystemInfoResult>(API_GET_SYSTEM_INFO, (options: GetSystemInfoOptions, exec: ApiExecutor<GetSystemInfoResult>)=>{ + try { + exec.resolve(internalGetSystemInfo()); + } catch (error) { + exec.reject((error as Error).message); + } + }) as GetSystemInfo; + const getSystemSetting: GetSystemSetting = defineSyncApi<GetSystemSettingResult>('getSystemSetting', (): GetSystemSettingResult =>{ + const defaultDisplay = display.getDefaultDisplaySync(); + const res: GetSystemSettingResult = { + bluetoothEnabled: false, + bluetoothError: null, + locationEnabled: false, + wifiEnabled: false, + wifiError: null, + deviceOrientation: (defaultDisplay.orientation === display.Orientation.PORTRAIT || defaultDisplay.orientation === display.Orientation.PORTRAIT_INVERTED) ? 'portrait' : 'landscape' + }; + try { + if (access.getState() === access.BluetoothState.STATE_ON) res.bluetoothEnabled = true; + } catch (err) { + res.bluetoothError = (err as BusinessError9).message; + } + try { + res.locationEnabled = geoLocationManager.isLocationEnabled(); + } catch (err) {} + try { + res.wifiEnabled = wifiManager.isWifiActive(); + } catch (err) { + res.wifiError = (err as BusinessError9).message; + } + return res; + }) as GetSystemSetting; + const API_HIDE_KEYBOARD = 'hideKeyboard'; + const hideKeyboard: HideKeyboard = defineAsyncApi<HideKeyboardOptions, HideKeyboardSuccess>(API_HIDE_KEYBOARD, (options: HideKeyboardOptions, exec: ApiExecutor<HideKeyboardSuccess>)=>{ + inputMethod.getController().hideTextInput().then(()=>{ + exec.resolve(); + }, (err: Error)=>{ + exec.reject(err.message); + }); + }) as HideKeyboard; + const API_MAKE_PHONE_CALL = 'makePhoneCall'; + const MakePhoneCallProtocol = new Map<string, ProtocolOptions>([ + [ + 'phoneNumber', + { + type: 'string', + required: true + } + ] + ]); + const isPromise = (res: Object)=>{ + if ((typeof res === "object" || typeof res === "function") && typeof (res as Promise<void>).then === "function") { + return true; + } + return false; + }; + const dial = (number: string, confirm = true)=>{ + if (!confirm && typeof call.dial === 'function') { + return new Promise<void>((resolve, reject)=>{ + UTSHarmony.requestSystemPermission([ + 'ohos.permission.PLACE_CALL' + ], (allRight: boolean)=>{ + if (allRight) { + call.dial(number).then(()=>{ + resolve(); + }).catch(reject); + } else { + reject('permission denied'); + } + }, ()=>{ + reject('permission denied'); + }); + }); + } else { + return call.makeCall(number); + } + }; + const makePhoneCall: MakePhoneCall = defineAsyncApi<MakePhoneCallOptions, MakePhoneCallSuccess>(API_MAKE_PHONE_CALL, (options: MakePhoneCallOptions, res: ApiExecutor<MakePhoneCallSuccess>)=>{ + const dialRes = dial(options.phoneNumber) as Object as Promise<void>; + if (isPromise(dialRes)) { + dialRes.then(res.resolve).catch((err: BusinessError10<void>)=>{ + res.reject(err.message); + }); + } else { + res.resolve(); + } + }, MakePhoneCallProtocol) as MakePhoneCall; + const API_GET_IMAGE_INFO = 'getImageInfo'; + const GetImageInfoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'src', + { + type: 'string', + required: true + } + ] + ]); + const GetImageInfoApiOptions: ApiOptions<GetImageInfoOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'src', + (src: string, params: GetImageInfoOptions)=>{ + params.src = getRealPath2(src); + } + ] + ]) + }; + const API_CHOOSE_IMAGE = 'chooseImage'; + const ChooseImageApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'count', + { + type: 'number', + required: false + } + ], + [ + 'sizeType', + { + type: 'array', + required: false + } + ], + [ + 'sourceType', + { + type: 'array', + required: false + } + ], + [ + 'extension', + { + type: 'array', + required: false + } + ] + ]); + const ChooseImageApiOptions: ApiOptions<ChooseImageOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'count', + (count: number, params: ChooseImageOptions)=>{ + if (count == null) { + params.count = 9; + } + } + ], + [ + 'sizeType', + (sizeType: string[], params: ChooseImageOptions)=>{ + if (sizeType == null) { + params.sizeType = [ + 'original', + 'compressed' + ]; + } + } + ], + [ + 'sourceType', + (sourceType: string[], params: ChooseImageOptions)=>{ + if (sourceType == null) { + params.sourceType = [ + 'album', + 'camera' + ]; + } + } + ], + [ + 'extension', + (extension: string[], params: ChooseImageOptions)=>{ + if (extension == null) { + params.extension = [ + '*' + ]; + } + } + ] + ]) + }; + const API_GET_VIDEO_INFO = 'getVideoInfo'; + const GetVideoInfoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'src', + { + type: 'string', + required: true + } + ] + ]); + const GetVideoInfoApiOptions: ApiOptions<GetVideoInfoOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'src', + (src: string, params: GetVideoInfoOptions)=>{ + params.src = getRealPath2(src); + } + ] + ]) + }; + const API_CHOOSE_VIDEO = 'chooseVideo'; + const ChooseVideoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'sourceType', + { + type: 'array', + required: false + } + ], + [ + 'compressed', + { + type: 'boolean', + required: false + } + ], + [ + 'maxDuration', + { + type: 'number', + required: false + } + ], + [ + 'camera', + { + type: 'string', + required: false + } + ], + [ + 'extension', + { + type: 'array', + required: false + } + ] + ]); + const ChooseVideoApiOptions: ApiOptions<ChooseVideoOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'sourceType', + (sourceType: string[], params: ChooseVideoOptions)=>{ + if (sourceType == null) { + params.sourceType = [ + 'album', + 'camera' + ]; + } + } + ], + [ + 'compressed', + (compressed: boolean, params: ChooseVideoOptions)=>{ + if (compressed == null) { + params.compressed = true; + } + } + ], + [ + 'maxDuration', + (maxDuration: number, params: ChooseVideoOptions)=>{ + if (maxDuration == null) { + params.maxDuration = 60; + } + } + ], + [ + 'camera', + (camera: string, params: ChooseVideoOptions)=>{ + if (camera == null) { + params.camera = 'back'; + } + } + ], + [ + 'extension', + (extension: string[], params: ChooseVideoOptions)=>{ + if (extension == null) { + params.extension = [ + '*' + ]; + } + } + ] + ]) + }; + const API_PREVIEW_IMAGE = 'previewImage'; + const PreviewImageApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'urls', + { + type: 'array', + required: true + } + ], + [ + 'current', + { + type: 'string', + required: false + } + ] + ]); + const PreviewImageApiOptions: ApiOptions<PreviewImageOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'urls', + (urls: string[], params: PreviewImageOptions)=>{ + params.urls = urls.map((url)=>getRealPath2(url) as string); + } + ] + ]) + }; + const API_CLOSE_PREVIEW_IMAGE = 'closePreviewImage'; + const API_SAVE_IMAGE_TO_PHOTOS_ALBUM = 'saveImageToPhotosAlbum'; + const SaveImageToPhotosAlbumApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'filePath', + { + type: 'string', + required: true + } + ] + ]); + const API_SAVE_VIDEO_TO_PHOTOS_ALBUM = 'saveVideoToPhotosAlbum'; + const SaveVideoToPhotosAlbumApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'filePath', + { + type: 'string', + required: true + } + ] + ]); + const CompressImageApiOptions: ApiOptions<CompressImageOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'src', + (src: string, params: CompressImageOptions)=>{ + if (src) params.src = getRealPath2(src); + } + ], + [ + 'quality', + (quality: number, params: CompressImageOptions)=>{ + if (quality == null) { + params.quality = 80; + } + } + ] + ]) + }; + const CompressImageApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'src', + { + type: 'string', + required: true + } + ], + [ + 'quality', + { + type: 'number' + } + ], + [ + 'compressedWidth', + { + type: 'number' + } + ], + [ + 'compressedHeight', + { + type: 'number' + } + ] + ]); + const API_CHOOSE_FILE = 'chooseFile'; + const CHOOSE_MEDIA_TYPE: string[] = [ + 'all', + 'image', + 'video' + ]; + const CHOOSE_FILE_SOURCE_TYPE: string[] = [ + 'album', + 'camera' + ]; + const ChooseFileApiOptions: ApiOptions<ChooseFileOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'count', + (count: number, params: ChooseFileOptions)=>{ + if (!count || count <= 0) { + params.count = 100; + } + return undefined; + } + ], + [ + 'sourceType', + (sourceType: string[] = [], params: ChooseFileOptions)=>{ + sourceType = sourceType.filter((type)=>CHOOSE_FILE_SOURCE_TYPE.includes(type)); + if (!sourceType.length) { + params.sourceType = [ + 'album', + 'camera' + ]; + } + return undefined; + } + ], + [ + 'type', + (type: string = 'all', params: ChooseFileOptions)=>{ + if (!CHOOSE_MEDIA_TYPE.includes(type)) { + params.type = 'all'; + } + return undefined; + } + ], + [ + 'extension', + (extension: string[], params: ChooseFileOptions)=>{ + if (extension instanceof Array && extension.length === 0) { + return 'param extension should not be empty.'; + } + if (!extension) params.extension = [ + '' + ]; + return undefined; + } + ] + ]) + }; + const ChooseFileApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'count', + { + type: 'number' + } + ], + [ + 'sourceType', + { + type: 'array' + } + ], + [ + 'type', + { + 'type': 'string' + } + ], + [ + 'extension', + { + type: 'array' + } + ] + ]); + const API_COMPRESS_VIDEO = 'compressVideo'; + const CompressVideoApiOptions: ApiOptions<CompressVideoOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'src', + (src: string, params: CompressVideoOptions)=>{ + if (src) params.src = getRealPath2(src); + } + ] + ]) + }; + const CompressVideoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'src', + { + type: 'string', + required: true + } + ], + [ + 'quality', + { + type: 'string' + } + ], + [ + 'bitrate', + { + type: 'number' + } + ], + [ + 'fps', + { + type: 'number' + } + ], + [ + 'resolution', + { + type: 'number' + } + ] + ]); + const getFileName = (path: string)=>{ + const array = path.split('/'); + return array[array.length - 1]; + }; + let id: number = 0; + const _compressImage = (args: CompressImageOptions)=>{ + const imageName = getFileName(args.src); + const imageExt = imageName.split('.').slice(-1)[0]; + const imagePacker: image.ImagePacker = image.createImagePacker(); + const file2 = fileIo4.openSync(args.src, fileIo4.OpenMode.READ_ONLY); + if (!file2) { + throw new Error('open file failed'); + } + const imageSource: image.ImageSource = image.createImageSource(file2.fd); + if (imageSource == null) { + throw new Error('create image source failed'); + } + let decodingOptions: image.DecodingOptions = { + editable: true + }; + if (args.rotate != null) { + decodingOptions.rotate = args.rotate; + } + if (args.compressedHeight != null || args.compressedWidth != null) { + decodingOptions.desiredSize = { + height: (args.compressedHeight ?? args.compressedWidth)!, + width: (args.compressedWidth ?? args.compressedHeight)! + }; + } + const pixelMap = imageSource.createPixelMapSync(decodingOptions); + let format: string = ''; + if ([ + 'jpg', + 'jpe', + 'jpeg', + 'png' + ].includes(imageExt)) { + format = 'image/jpeg'; + } + if (imageExt === 'webp') format = 'image/webp'; + if (!format.length) { + throw new Error('error image format'); + } + const packOptions: image.PackingOption = { + format, + quality: args.quality ?? 80 + }; + const tempFileName = `${Date.now()}_${id++}.${imageExt}`; + const tempDirPath = `${getEnv4().TEMP_PATH}/compress`; + if (!fileIo4.accessSync(tempDirPath)) { + fileIo4.mkdirSync(tempDirPath, true); + } + const tempFilePath: string = `${tempDirPath}/${tempFileName}`; + const file = fileIo4.openSync(tempFilePath, fileIo4.OpenMode.CREATE | fileIo4.OpenMode.READ_WRITE); + return imagePacker.packToFile(pixelMap, file.fd, packOptions).then((_)=>{ + const size = fileIo4.statSync(file.fd).size; + fileIo4.closeSync(file.fd); + pixelMap.release(); + return { + size, + tempFilePath + } as _CompressImageSuccess; + }); + }; + const compressImage: CompressImage = defineAsyncApi<CompressImageOptions, CompressImageSuccess>(API_CHOOSE_IMAGE, (args: CompressImageOptions, executor: ApiExecutor<CompressImageSuccess>)=>{ + try { + _compressImage(args).then((res)=>{ + executor.resolve({ + tempFilePath: res.tempFilePath + } as CompressImageSuccess); + }); + } catch (error) { + executor.reject((error as BusinessError11).message); + } + }, CompressImageApiProtocol, CompressImageApiOptions) as CompressImage; + const _getVideoInfo1 = async (uri: string): Promise<GetVideoInfoSuccess> =>{ + const file = await fs4.open(uri, fs4.OpenMode.READ_ONLY); + const avMetadataExtractor = await media4.createAVMetadataExtractor(); + let metadata: media4.AVMetadata | null = null; + let size: number = 0; + try { + size = (await fs4.stat(file.fd)).size; + avMetadataExtractor.dataSrc = { + fileSize: size, + callback: (buffer: ArrayBuffer, length: number, pos: number | null = null)=>{ + return fs4.readSync(file.fd, buffer, { + offset: pos, + length + } as ReadOptions2); + } + }; + metadata = await avMetadataExtractor.fetchMetadata(); + } catch (error) { + throw error as Error; + } finally{ + await avMetadataExtractor.release(); + await fs4.close(file); + } + const videoOrientationArr = [ + 'up', + 'right', + 'down', + 'left' + ] as MediaOrientation[]; + return { + size: size, + duration: metadata.duration ? Number(metadata.duration) / 1000 : undefined, + width: metadata.videoWidth ? Number(metadata.videoWidth) : undefined, + height: metadata.videoHeight ? Number(metadata.videoHeight) : undefined, + type: metadata.mimeType, + orientation: metadata.videoOrientation ? videoOrientationArr[Number(metadata.videoOrientation) / 90] : undefined + } as GetVideoInfoSuccess; + }; + const _getImageInfo = async (uri: string): Promise<GetImageInfoSuccess> =>{ + const file = await fs4.open(uri, fs4.OpenMode.READ_ONLY); + const imageSource = image1.createImageSource(file.fd); + const imageInfo = await imageSource.getImageInfo(); + let orientation: string = ''; + try { + orientation = await imageSource.getImageProperty(image1.PropertyKey.ORIENTATION); + } catch (error) {} + await imageSource.release(); + await fs4.close(file.fd); + let orientationNum = 0; + if (typeof orientation === 'string') { + const matched = orientation.match(/^Unknown value (\d)$/); + if (matched && matched[1]) { + orientationNum = Number(matched[1]); + } else if (/^\d$/.test(orientation)) { + orientationNum = Number(orientation); + } + } else if (typeof orientation === 'number') { + orientationNum = orientation; + } + let orientationStr: MediaOrientation = 'up'; + switch(orientationNum){ + case 2: + orientationStr = 'up-mirrored'; + break; + case 3: + orientationStr = 'down'; + break; + case 4: + orientationStr = 'down-mirrored'; + break; + case 5: + orientationStr = 'left-mirrored'; + break; + case 6: + orientationStr = 'right'; + break; + case 7: + orientationStr = 'right-mirrored'; + break; + case 8: + orientationStr = 'left'; + break; + case 0: + case 1: + default: + orientationStr = 'up'; + break; + } + return { + path: uri, + width: imageInfo.size.width, + height: imageInfo.size.height, + orientation: orientationStr + } as GetImageInfoSuccess; + }; + const _chooseMedia1 = async (options: _ChooseMediaOptions): Promise<chooseMediaSuccessCallbackResult> =>{ + const photoSelectOptions = new photoAccessHelper2.PhotoSelectOptions(); + const mimeType = options.mimeType; + photoSelectOptions.MIMEType = mimeType; + if (mimeType === photoAccessHelper2.PhotoViewMIMETypes.VIDEO_TYPE) { + photoSelectOptions.maxSelectNumber = 1; + } else { + photoSelectOptions.maxSelectNumber = options.count || 9; + } + photoSelectOptions.isOriginalSupported = options.isOriginalSupported; + photoSelectOptions.isPhotoTakingSupported = !(options.sourceType && !options.sourceType.includes('camera')); + const photoPicker = new photoAccessHelper2.PhotoViewPicker(); + const photoSelectResult = await photoPicker.select(photoSelectOptions); + const uris = photoSelectResult.photoUris; + if (mimeType !== photoAccessHelper2.PhotoViewMIMETypes.VIDEO_TYPE) { + let realUris: string[] = uris; + if (!photoSelectResult.isOriginalPhoto) { + const compressResult = await Promise.all(uris.map((uri): Promise<CompressImageSuccess> =>{ + return _compressImage({ + src: uri, + quality: 80 + } as CompressImageOptions); + })); + realUris = compressResult.map((result)=>result.tempFilePath); + } + return { + tempFiles: realUris.map((uri)=>{ + const file = fs4.openSync(uri, fs4.OpenMode.READ_ONLY); + const stat = fs4.statSync(file.fd); + fs4.closeSync(file); + return { + fileType: 'image', + tempFilePath: uri, + size: stat.size + } as MediaFile; + }) + }; + } + const tempFiles: MediaFile[] = []; + for(let i = 0; i < uris.length; i++){ + const uri = uris[i]; + const videoInfo = await _getVideoInfo1(uri); + tempFiles.push({ + fileType: 'video', + tempFilePath: uri, + size: videoInfo.size, + duration: videoInfo.duration, + width: videoInfo.width, + height: videoInfo.height + } as MediaFile); + } + return { + tempFiles + } as chooseMediaSuccessCallbackResult; + }; + const getMimeTypeFromExtension = (extension: string): string | null =>{ + const typeId = uniformTypeDescriptor.getUniformDataTypeByFilenameExtension('.' + extension); + const typeObj = uniformTypeDescriptor.getTypeDescriptor(typeId); + const mimeTypes = typeObj.mimeTypes; + return mimeTypes[0] || null; + }; + const MediaUniErrors: Map<number, string> = new Map([ + [ + 1101001, + 'user cancel' + ], + [ + 1101002, + 'fail parameter error: parameter.urls should have at least 1 item' + ], + [ + 1101003, + "file not find" + ], + [ + 1101004, + "Failed to load resource" + ], + [ + 1101005, + "No Permission" + ], + [ + 1101006, + "save error" + ], + [ + 1101007, + "crop error" + ], + [ + 1101008, + 'camera error' + ], + [ + 1101009, + "image output failed" + ], + [ + 1101010, + "unexpect error:" + ] + ]); + const getHMCameraPosition1 = (cameraType: CameraPosition1)=>{ + switch(cameraType){ + case 'back': + return camera1.CameraPosition.CAMERA_POSITION_BACK; + case 'front': + return camera1.CameraPosition.CAMERA_POSITION_FRONT; + default: + return camera1.CameraPosition.CAMERA_POSITION_BACK; + } + }; + const takePhoto = async (cameraType: CameraPosition1 = 'back')=>{ + let pickerProfile: cameraPicker1.PickerProfile = { + cameraPosition: getHMCameraPosition1(cameraType) + }; + const res = await cameraPicker1.pick(UTSHarmony.getUIAbilityContext()!, [ + cameraPicker1.PickerMediaType.PHOTO + ], pickerProfile); + const file = fs5.openSync(res.resultUri, fs5.OpenMode.READ_ONLY); + const stat = fs5.statSync(file.fd); + return { + tempFiles: [ + { + tempFilePath: res.resultUri, + size: stat.size + } + ] + } as TakePhotoRes; + }; + const takeVideo = async (args: TakeVideoOptions | null = null)=>{ + let pickerProfile: cameraPicker1.PickerProfile = { + cameraPosition: getHMCameraPosition1(args?.cameraType ?? 'back'), + videoDuration: args?.videoDuration + }; + const res = await cameraPicker1.pick(UTSHarmony.getUIAbilityContext()!, [ + cameraPicker1.PickerMediaType.VIDEO + ], pickerProfile); + return _getVideoInfo1(res.resultUri).then((getVideInfoRes)=>{ + return { + path: res.resultUri, + size: getVideInfoRes.size, + duration: getVideInfoRes.duration!, + width: getVideInfoRes.width!, + height: getVideInfoRes.height!, + type: getVideInfoRes.type!, + orientation: getVideInfoRes.orientation! + } as TakeVideoRes; + }); + }; + const errSubject = 'uni-chooseImage'; + const _chooseImage = (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ + _chooseMedia1({ + mimeType: photoAccessHelper3.PhotoViewMIMETypes.IMAGE_TYPE, + sourceType: [ + "album" + ], + isOriginalSupported: options.sizeType?.includes('original') !== false, + count: options.count! + } as _ChooseMediaOptions).then((chooseMediaRes)=>{ + const tempFiles = chooseMediaRes.tempFiles; + if (tempFiles.length === 0) { + const errMsg = MediaUniErrors.get(1101001) as string; + res.reject(errMsg, { + errCode: 1101001 + } as ApiError); + return; + } + res.resolve({ + errMsg: '', + errSubject, + tempFilePaths: chooseMediaRes.tempFiles.map((file)=>file.tempFilePath), + tempFiles: chooseMediaRes.tempFiles.map((file)=>{ + return { + path: file.tempFilePath, + size: file.size + } as ChooseImageTempFile; + }) + } as ChooseImageSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }; + const _takePhoto = (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ + takePhoto().then((photo)=>{ + res.resolve({ + errMsg: '', + errSubject, + tempFilePaths: photo.tempFiles.map((file)=>file.tempFilePath), + tempFiles: photo.tempFiles.map((tempFile): ChooseImageTempFile =>({ + path: tempFile.tempFilePath, + size: tempFile.size + } as ChooseImageTempFile)) + } as ChooseImageSuccess); + }).catch((err: Error)=>{ + res.reject(err.message); + }); + }; + const chooseImage: ChooseImage = defineAsyncApi<ChooseImageOptions, ChooseImageSuccess>(API_CHOOSE_IMAGE, async (options: ChooseImageOptions, res: ApiExecutor<ChooseImageSuccess>)=>{ + if (options.sourceType?.length === 1 && options.sourceType[0] === 'camera') { + _takePhoto(options, res); + } else if (options.sourceType?.length === 1 && options.sourceType[0] === 'album') { + _chooseImage(options, res); + } else { + const lastWindow = UTSHarmony.getCurrentWindow() as window1.Window; + const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); + UIContextPromptAction.showActionMenu({ + buttons: [ + { + text: '拍照', + color: '#000000' + }, + { + text: '从相册选择', + color: '#000000' + } + ] + } as promptAction2.ActionMenuOptions, (err, ref)=>{ + let index = ref.index; + if (err) { + res.reject('cancel'); + } else { + if (index === 0) { + _takePhoto(options, res); + } else if (index === 1) { + _chooseImage(options, res); + } + } + }); + } + }, ChooseImageApiProtocol, ChooseImageApiOptions) as ChooseImage; + const _chooseVideo = (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ + _chooseMedia1({ + mimeType: photoAccessHelper4.PhotoViewMIMETypes.VIDEO_TYPE, + sourceType: [ + "album" + ], + isOriginalSupported: options.compressed === false + } as _ChooseMediaOptions).then((chooseMediaRes)=>{ + const file = chooseMediaRes.tempFiles[0]; + if (!file) { + const errMsg = MediaUniErrors.get(1101001) as string; + res.reject(errMsg, { + errCode: 1101001 + } as ApiError); + return; + } + res.resolve({ + tempFilePath: file.tempFilePath, + duration: file.duration, + size: file.size, + width: file.width, + height: file.height + } as ChooseVideoSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }; + const _takeVideo = (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ + const takeVideoOptions: TakeVideoOptions = { + cameraType: options.camera! as CameraPosition1, + videoDuration: options.maxDuration! + }; + takeVideo(takeVideoOptions).then((video)=>{ + res.resolve({ + tempFilePath: video.path, + duration: video.duration, + size: video.size, + width: video.width, + height: video.height + } as ChooseVideoSuccess); + }).catch((err: Error)=>{ + res.reject(err.message); + }); + }; + const chooseVideo: ChooseVideo = defineAsyncApi<ChooseVideoOptions, ChooseVideoSuccess>(API_CHOOSE_VIDEO, async (options: ChooseVideoOptions, res: ApiExecutor<ChooseVideoSuccess>)=>{ + if (options.sourceType?.length === 1 && options.sourceType[0] === 'camera') { + _takeVideo(options, res); + } else if (options.sourceType?.length === 1 && options.sourceType[0] === 'album') { + _chooseVideo(options, res); + } else { + const lastWindow = UTSHarmony.getCurrentWindow() as window2.Window; + const UIContextPromptAction = await lastWindow.getUIContext().getPromptAction(); + UIContextPromptAction.showActionMenu({ + buttons: [ + { + text: '拍摄', + color: '#000000' + }, + { + text: '从相册选择', + color: '#000000' + } + ] + } as promptAction3.ActionMenuOptions, (err, ref)=>{ + let index = ref.index; + if (err) { + res.reject('cancel'); + } else { + if (index === 0) { + _takeVideo(options, res); + } else if (index === 1) { + _chooseVideo(options, res); + } + } + }); + } + }, ChooseVideoApiProtocol, ChooseVideoApiOptions) as ChooseVideo; + const getImageInfo: GetImageInfo = defineAsyncApi<GetImageInfoOptions, GetImageInfoSuccess>(API_GET_IMAGE_INFO, async (options: GetImageInfoOptions, res: ApiExecutor<GetImageInfoSuccess>)=>{ + let src = options.src; + if (src.startsWith('http:') || src.startsWith('https:')) { + try { + src = await new Promise<string>((resolve, reject)=>{ + uni.downloadFile({ + url: options.src, + success: (res: IGetImageInfoDownloadSuccess)=>{ + resolve(res.tempFilePath); + }, + fail: (err: IGetImageInfoDownloadFail)=>{ + reject(err); + } + } as IGetImageInfoDownloadOptions); + }); + } catch (err) { + const error = err as IGetImageInfoDownloadFail; + res.reject(error.errMsg); + return; + } + } + _getImageInfo(src).then((getImageInfoRes)=>{ + res.resolve(getImageInfoRes); + }, (err: Error)=>{ + res.reject(err.message); + }); + }, GetImageInfoApiProtocol, GetImageInfoApiOptions) as GetImageInfo; + const getVideoInfo: GetVideoInfo = defineAsyncApi<GetVideoInfoOptions, GetVideoInfoSuccess>(API_GET_VIDEO_INFO, (options: GetVideoInfoOptions, res: ApiExecutor<GetVideoInfoSuccess>)=>{ + _getVideoInfo1(options.src).then((getVideInfoRes)=>{ + res.resolve({ + size: getVideInfoRes.size, + duration: getVideInfoRes.duration!, + width: getVideInfoRes.width!, + height: getVideInfoRes.height!, + type: getVideInfoRes.type!, + orientation: getVideInfoRes.orientation! + } as GetVideoInfoSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }, GetVideoInfoApiProtocol, GetVideoInfoApiOptions) as GetVideoInfo; + const previewImage: PreviewImage = defineAsyncApi<PreviewImageOptions, PreviewImageSuccess>(API_PREVIEW_IMAGE, (options: PreviewImageOptions, exec: ApiExecutor<PreviewImageSuccess>)=>{ + const currentUrl = typeof options.current === 'number' ? options.urls[options.current ?? 0] : options.current as string; + onNativePageReady1().then((nativePage: Object)=>{ + getOSRuntime().previewImage({ + urls: options.urls.map((url)=>getRealPath3(url) as string), + current: getRealPath3(currentUrl || ''), + showmenu: options.showmenu === false ? false : true + } as IPreviewImageOptions, nativePage); + exec.resolve({ + errSubject: 'uni-previewImage', + errMsg: '' + } as PreviewImageSuccess); + }); + }, PreviewImageApiProtocol, PreviewImageApiOptions) as PreviewImage; + const closePreviewImage: ClosePreviewImage = defineAsyncApi<ClosePreviewImageOptions, ClosePreviewImageSuccess>(API_CLOSE_PREVIEW_IMAGE, (options: ClosePreviewImageOptions, exec: ApiExecutor<ClosePreviewImageSuccess>)=>{ + onNativePageReady1().then((nativePage: Object)=>{ + getOSRuntime().closePreviewImage(); + exec.resolve({ + errMsg: '' + } as ClosePreviewImageSuccess); + }); + }) as ClosePreviewImage; + const saveResource = async (src: Resource, dest: string)=>{ + const context = UTSHarmony.getUIAbilityContext() as common.UIAbilityContext; + const resourceManager = context.resourceManager; + const srcPath: string = src.params?.[0] as string; + const destFile = fs6.openSync(dest, fs6.OpenMode.WRITE_ONLY); + const content = await resourceManager.getRawFileContent(srcPath); + await fs6.write(destFile.fd, content.buffer as ArrayBuffer); + await fs6.close(destFile); + }; + const saveUri = async (src: string, dest: string)=>{ + const srcFile = fs6.openSync(src, fs6.OpenMode.READ_ONLY); + const destFile = fs6.openSync(dest, fs6.OpenMode.WRITE_ONLY); + await fs6.copyFile(srcFile.fd, destFile.fd); + await fs6.close(srcFile); + await fs6.close(destFile); + }; + const saveMediaToAlbum = async (fromUri: string, type: 'image' | 'video'): Promise<string | ISaveMediaError> =>{ + const realPath = getResourceStr(fromUri) as string | Resource; + const context = UTSHarmony.getUIAbilityContext() as common.UIAbilityContext; + let fileName = Date.now() + (type === 'image' ? '.png' : '.mp4'); + const isResource = typeof realPath !== 'string'; + if (isResource) { + if (typeof realPath.params?.[0] === 'string') { + fileName = realPath.params?.[0].split('/').pop() || fileName; + } + } else { + fileName = realPath.split('/').pop() || fileName; + } + const phAccessHelper = photoAccessHelper5.getPhotoAccessHelper(context); + const fileNameParts = fileName.split('.'); + const title = fileNameParts[0]; + const fileNameExtension = fileNameParts.pop()!; + const photoCreationConfigs: Array<photoAccessHelper5.PhotoCreationConfig> = [ + { + title, + fileNameExtension, + photoType: type === 'image' ? photoAccessHelper5.PhotoType.IMAGE : photoAccessHelper5.PhotoType.VIDEO + } + ]; + const desFileUris: Array<string> = await phAccessHelper.showAssetsCreationDialog([ + fromUri.startsWith('file://') ? fromUri : fileUri.getUriFromPath(fromUri) + ], photoCreationConfigs); + if (!desFileUris || desFileUris.length === 0) { + return { + code: 1101001, + message: MediaUniErrors.get(1101001) as string + } as ISaveMediaError; + } + const destUri = desFileUris[0]; + if (!destUri.startsWith('file://')) { + return { + code: 1101006, + message: MediaUniErrors.get(1101006) as string + ', code: ' + destUri + } as ISaveMediaError; + } + if (isResource) { + await saveResource(realPath as Resource, destUri); + } else { + await saveUri(realPath as string, destUri); + } + return destUri; + }; + const saveImageToPhotosAlbum: SaveImageToPhotosAlbum = defineAsyncApi<SaveImageToPhotosAlbumOptions, SaveImageToPhotosAlbumSuccess>(API_SAVE_IMAGE_TO_PHOTOS_ALBUM, (options: SaveImageToPhotosAlbumOptions, res: ApiExecutor<SaveImageToPhotosAlbumSuccess>)=>{ + saveMediaToAlbum(options.filePath, 'image').then((uri)=>{ + if (typeof uri === 'object') { + const err = uri as ISaveMediaError; + res.reject(err.message, { + errCode: err.code + } as ApiError); + return; + } + res.resolve({ + path: uri + } as SaveImageToPhotosAlbumSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }, SaveImageToPhotosAlbumApiProtocol) as SaveImageToPhotosAlbum; + const saveVideoToPhotosAlbum: SaveVideoToPhotosAlbum = defineAsyncApi<SaveVideoToPhotosAlbumOptions, SaveVideoToPhotosAlbumSuccess>(API_SAVE_VIDEO_TO_PHOTOS_ALBUM, (options: SaveVideoToPhotosAlbumOptions, res: ApiExecutor<SaveVideoToPhotosAlbumSuccess>)=>{ + saveMediaToAlbum(options.filePath, 'video').then((uri)=>{ + if (typeof uri === 'object') { + const err = uri as ISaveMediaError; + res.reject(err.message, { + errCode: err.code + } as ApiError); + return; + } + res.resolve({} as SaveVideoToPhotosAlbumSuccess); + }, (err: Error)=>{ + res.reject(err.message); + }); + }, SaveVideoToPhotosAlbumApiProtocol) as SaveVideoToPhotosAlbum; + const IMAGES: string[] = [ + "jpg", + "jpe", + "pbm", + "pgm", + "pnm", + "ppm", + "psd", + "pic", + "rgb", + "svg", + "svgz", + "tif", + "xif", + "wbmp", + "wdp", + "xbm", + "ico" + ]; + const VIDEOS: string[] = [ + "3g2", + "3gp", + "avi", + "f4v", + "flv", + "jpgm", + "jpgv", + "m1v", + "m2v", + "mpe", + "mpg", + "mpg4", + "m4v", + "mkv", + "mov", + "qt", + "movie", + "mp4v", + "ogv", + "smv", + "wm", + "wmv", + "wmx", + "wvx" + ]; + const getFile = (url: string)=>{ + const file = fileIo5.openSync(url, fileIo5.OpenMode.READ_ONLY); + const size = fileIo5.statSync(file.fd).size; + const ext = file.name.split('.').pop()!; + return { + path: url, + name: file.name, + size, + type: getMimeTypeFromExtension(ext) ?? ext + } as ChooseFileTempFile; + }; + const chooseFile: ChooseFile = defineAsyncApi<ChooseFileOptions, ChooseFileSuccess>(API_CHOOSE_FILE, (args: ChooseFileOptions, executor: ApiExecutor<ChooseFileSuccess>)=>{ + if ([ + 'image', + 'video' + ].includes(args.type ?? '')) { + if (args.type === 'image') { + chooseImage({ + sourceType: args.sourceType, + success (res: ChooseImageSuccess) { + executor.resolve({ + tempFilePaths: res.tempFilePaths, + tempFiles: res.tempFilePaths.map((url): ChooseFileTempFile =>getFile(url)) + } as ChooseFileSuccess); + }, + fail (err: IMediaError) { + executor.reject(err.errMsg, { + errCode: err.errCode + } as ApiError); + } + } as ChooseImageOptions); + } + if (args.type === 'video') { + chooseVideo({ + sourceType: args.sourceType, + success (res: ChooseVideoSuccess) { + executor.resolve({ + tempFilePaths: [ + res.tempFilePath + ], + tempFiles: [ + getFile(res.tempFilePath) + ] + } as ChooseFileSuccess); + }, + fail (err: IMediaError) { + executor.reject(err.errMsg, { + errCode: err.errCode + } as ApiError); + } + } as ChooseVideoOptions); + } + } else { + try { + let documentSelectOptions = new picker.DocumentSelectOptions(); + let documentPicker = new picker.DocumentViewPicker(UTSHarmony.getUIAbilityContext()!); + documentSelectOptions.selectMode = picker.DocumentSelectMode.FILE; + if (args.count) documentSelectOptions.maxSelectNumber = args.count; + if (args.extension) documentSelectOptions.fileSuffixFilters = args.extension; + if (args.type === 'image') { + documentSelectOptions.fileSuffixFilters = documentSelectOptions.fileSuffixFilters?.concat(IMAGES); + } + if (args.type === 'video') { + documentSelectOptions.fileSuffixFilters = documentSelectOptions.fileSuffixFilters?.concat(VIDEOS); + } + documentPicker.select(documentSelectOptions).then((documentSelectResult: Array<string>)=>{ + let tempFiles = documentSelectResult.map((url): ChooseFileTempFile =>getFile(url)); + if (tempFiles.length !== 0) { + executor.resolve({ + tempFilePaths: documentSelectResult, + tempFiles + } as ChooseFileSuccess); + } else { + executor.reject('cancel'); + } + }).catch((err: BusinessError12)=>{ + executor.reject(err.message, { + errCode: err.code + } as ApiError); + }); + } catch (error) { + let err: BusinessError12 = error as BusinessError12; + executor.reject(err.message, { + errCode: err.code + } as ApiError); + } + } + }, ChooseFileApiProtocol, ChooseFileApiOptions) as ChooseFile; + const getQuality = (quality: string | null = null)=>{ + switch(quality){ + case "low": + return CompressQuality.COMPRESS_QUALITY_LOW; + case 'medium': + return CompressQuality.COMPRESS_QUALITY_MEDIUM; + } + return CompressQuality.COMPRESS_QUALITY_HIGH; + }; + const compressVideo: CompressVideo = defineAsyncApi<CompressVideoOptions, CompressVideoSuccess>(API_COMPRESS_VIDEO, async (args: CompressVideoOptions, executor: ApiExecutor<CompressVideoSuccess>)=>{ + let videoCompressor = new VideoCompressor(); + videoCompressor.compressVideo(UTSHarmony.getUIAbilityContext()!, args.src, getQuality(args.quality!)).then((data: CompressorResponse): void =>{ + if (data.code == CompressorResponseCode.SUCCESS) { + _getVideoInfo1(data.outputPath).then((res)=>{ + executor.resolve({ + tempFilePath: data.outputPath, + size: res.size + } as CompressVideoSuccess); + }); + } else { + executor.reject(data.message, { + errCode: data.code + } as ApiError); + } + }).catch((err: Error)=>{ + executor.reject(err.message); + }); + }, CompressVideoApiProtocol, CompressVideoApiOptions) as CompressVideo; + const API_REQUEST = 'request'; + const RequestApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'url', + { + type: 'string', + required: true + } + ], + [ + 'data', + { + type: 'object', + required: false + } + ], + [ + 'header', + { + type: 'object', + required: false + } + ], + [ + 'method', + { + type: 'string', + required: false + } + ], + [ + 'dataType', + { + type: 'string', + required: false + } + ], + [ + 'responseType', + { + type: 'string', + required: false + } + ], + [ + 'timeout', + { + type: 'number', + required: false + } + ], + [ + 'sslVerify', + { + type: 'boolean', + required: false + } + ], + [ + 'withCredentials', + { + type: 'boolean', + required: false + } + ], + [ + 'firstIpv4', + { + type: 'boolean', + required: false + } + ] + ]); + const RequestApiOptions: ApiOptions<RequestOptions<Object>> = { + formatArgs: new Map<string, Function>([ + [ + 'url', + (url: string, params: RequestOptions<Object>)=>{ + if (url == null) { + throw new Error('url is required'); + } + } + ], + [ + 'method', + (method: string, params: RequestOptions<Object>)=>{ + params.method = (method || 'GET').toUpperCase() as RequestMethod; + } + ], + [ + 'dataType', + (dataType: string, params: RequestOptions<Object>)=>{ + if (dataType == null) { + params.dataType = 'json'; + } + } + ], + [ + 'responseType', + (responseType: string, params: RequestOptions<Object>)=>{ + if (responseType == null) { + params.responseType = 'text'; + } + } + ], + [ + 'timeout', + (timeout: number, params: RequestOptions<Object>)=>{ + if (timeout == null) { + params.timeout = 60000; + } + } + ], + [ + 'sslVerify', + (sslVerify: boolean, params: RequestOptions<Object>)=>{ + if (sslVerify == null) { + params.sslVerify = true; + } + } + ], + [ + 'withCredentials', + (withCredentials: boolean, params: RequestOptions<Object>)=>{ + if (withCredentials == null) { + params.withCredentials = false; + } + } + ], + [ + 'firstIpv4', + (firstIpv4: boolean, params: RequestOptions<Object>)=>{ + if (firstIpv4 == null) { + params.firstIpv4 = false; + } + } + ] + ]) + }; + const API_DOWNLOAD_FILE = 'downloadFile'; + const DownloadFileApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'url', + { + type: 'string', + required: true + } + ], + [ + 'header', + { + type: 'object', + required: false + } + ], + [ + 'timeout', + { + type: 'number', + required: false + } + ] + ]); + const DownloadFileApiOptions: ApiOptions<DownloadFileOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'url', + (url: string, params: DownloadFileOptions)=>{ + if (url == null) { + throw new Error('url is required'); + } + } + ] + ]) + }; + const API_UPLOAD_FILE = 'uploadFile'; + const UploadFileApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'url', + { + type: 'string', + required: true + } + ], + [ + 'filePath', + { + type: 'string', + required: false + } + ], + [ + 'name', + { + type: 'string', + required: false + } + ], + [ + 'header', + { + type: 'object', + required: false + } + ], + [ + 'formData', + { + type: 'object', + required: false + } + ], + [ + 'timeout', + { + type: 'number', + required: false + } + ] + ]); + const UploadFileApiOptions: ApiOptions<UploadFileOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'url', + (url: string, params: UploadFileOptions)=>{ + if (url == null) { + throw new Error('url is required'); + } + } + ], + [ + 'name', + (name: string, params: UploadFileOptions)=>{ + if (name == null) { + params.name = 'file'; + } + } + ] + ]) + }; + const API_CONFIG_MTLS = 'configMTLS'; + const ConfigMTLSApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'certificates', + { + type: 'array', + required: true + } + ] + ]); + const ConfigMTLSApiOptions: ApiOptions<ConfigMTLSOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'certificates', + (certificates: (Certificate[]) | null = null)=>{ + if (!certificates || certificates.some((item)=>typeof item.host !== 'string')) { + return '参数 certificates 配置错误,请确认后重试'; + } + return undefined; + } + ] + ]) + }; + const needsEncoding = (str: string)=>{ + const decoded = decodeURIComponent(str); + if (decoded !== str) { + if (encodeURIComponent(decoded) === str) { + return false; + } + } + return encodeURIComponent(decoded) !== decoded; + }; + const parseUrl = (url: string)=>{ + try { + const urlObj = harmonyUrl.URL.parseURL(url); + urlObj.params.forEach((value, key)=>{ + if (needsEncoding(value)) { + urlObj.params.set(key, value); + } + }); + return urlObj.toString(); + } catch (error) { + return url; + } + }; + const certificates: Certificate[] = []; + const getCertType = (certPath: string): http.CertType =>{ + const certExt = certPath.split('.').pop(); + switch(certExt){ + case 'p12': + return http.CertType.P12; + case 'pem': + return http.CertType.PEM; + default: + return http.CertType.PEM; + } + }; + const getClientCertificate = (url: string): http.ClientCert | undefined =>{ + if (certificates.length === 0) return undefined; + const urlObj = harmonyUrl.URL.parseURL(url); + const cert = certificates.find((certificate)=>certificate.host === urlObj.host); + if (cert) { + return { + certType: getCertType(cert.client!), + certPath: getRealPath4(cert.client!), + keyPath: cert.keyPath ?? '', + keyPassword: cert.clientPassword + } as http.ClientCert; + } + return undefined; + }; + const replaceHttpWithHttps = (url: string): string =>{ + return url.replace(/^http:/, 'https:'); + }; + const getCookieSync = (url: string): string =>{ + return webview.WebCookieManager.fetchCookieSync(replaceHttpWithHttps(url)); + }; + const setCookieSync = (url: string, cookies: string[]): void =>{ + cookies.forEach((cookie)=>{ + let hasSecure = false; + let hasSameSite = false; + let savedCookie = cookie.split(';').map((cookieItem)=>{ + const pair = cookieItem.split('=').map((item)=>item.trim()); + const keyLower = pair[0].toLowerCase(); + if (keyLower === 'secure') { + hasSecure = true; + return cookieItem; + } + if (keyLower === 'samesite') { + hasSameSite = true; + return 'samesite=none'; + } + return cookieItem; + }).join(';'); + if (!hasSecure) { + savedCookie += '; secure'; + } + if (!hasSameSite) { + savedCookie += '; samesite=none'; + } + try { + webview.WebCookieManager.configCookieSync(replaceHttpWithHttps(url), savedCookie); + } catch (error) {} + }); + webview.WebCookieManager.saveCookieAsync(); + }; + const cookiesParse = (header: Record<string, string>)=>{ + let cookiesArr: string[] = []; + const handleCookiesArr = (header['Set-Cookie'] || header['set-cookie'] || []) as string[]; + for(let i = 0; i < handleCookiesArr.length; i++){ + if (handleCookiesArr[i].indexOf('Expires=') !== -1 || handleCookiesArr[i].indexOf('expires=') !== -1) { + cookiesArr.push(handleCookiesArr[i].replace(',', '')); + } else { + cookiesArr.push(handleCookiesArr[i]); + } + } + return cookiesArr; + }; + class RequestTask1 implements RequestTask { + __v_skip: boolean = true; + private _requestTask: IRequestTask; + constructor(requestTask: IRequestTask){ + this._requestTask = requestTask; + } + abort() { + this._requestTask.abort(); + } + onHeadersReceived(callback: Function) { + this._requestTask.onHeadersReceived(callback); + } + offHeadersReceived(callback: Function | null = null) { + this._requestTask.offHeadersReceived(callback); + } + } + const request = defineTaskApi<RequestOptions<Object>, RequestSuccess<Object>, RequestTask>(API_REQUEST, (args: RequestOptions<Object>, exec: ApiExecutor<RequestSuccess<Object>>)=>{ + let header = args.header, method = args.method, data = args.data, dataType = args.dataType, timeout = args.timeout, url = args.url, responseType = args.responseType; + header = header || {} as ESObject; + if (!header!['Cookie'] && !header!['cookie']) { + header!['Cookie'] = getCookieSync(url); + } + let contentType = ''; + const headers = {} as Record<string, Object>; + const headerRecord = header as Object as Record<string, string>; + const headerKeys = Object.keys(headerRecord); + for(let i = 0; i < headerKeys.length; i++){ + const name = headerKeys[i]; + if (name.toLowerCase() === 'content-type') { + contentType = headerRecord[name] as string; + } + headers[name.toLowerCase()] = headerRecord[name]; + } + if (!contentType && method === 'POST') { + headers['Content-Type'] = 'application/json'; + contentType = 'application/json'; + } + if (method === 'GET' && data) { + const dataRecord = data as Record<string, Object>; + const query = Object.keys(dataRecord).map((key)=>{ + return (encodeURIComponent(key) + '=' + encodeURIComponent(dataRecord[key] as string | number | boolean)); + }).join('&'); + url += query ? (url.indexOf('?') > -1 ? '&' : '?') + query : ''; + data = null; + } else if (method !== 'GET' && contentType && contentType.indexOf('application/json') === 0 && data) { + data = JSON.stringify(data); + } else if (method !== 'GET' && contentType && contentType.indexOf('application/x-www-form-urlencoded') === 0 && data) { + const dataRecord = data as Record<string, Object>; + data = Object.keys(dataRecord).map((key)=>{ + return (encodeURIComponent(key) + '=' + encodeURIComponent(dataRecord[key] as number | string | boolean)); + }).join('&'); + } + const httpRequest = http1.createHttp(); + const mp = getCurrentMP1(); + const userAgent = mp.userAgent.fullUserAgent; + if (userAgent && headers && !headers!['User-Agent'] && !headers!['user-agent']) { + headers!['User-Agent'] = userAgent; + } + const emitter = new Emitter2() as IUniRequestEmitter; + const requestTask: IRequestTask = { + abort () { + emitter.off('headersReceive'); + httpRequest.destroy(); + }, + onHeadersReceived (callback: Function) { + emitter.on('headersReceive', callback); + }, + offHeadersReceived (callback: Function | null = null) { + emitter.off('headersReceive', callback); + } + }; + const destroy = ()=>{ + emitter.off('headersReceive'); + httpRequest.destroy(); + }; + mp.on('beforeClose', destroy); + let latestHeaders: Object | null = null; + let lastUrl = url; + httpRequest.on('headersReceive', (headers: Object)=>{ + const realHeaders = headers as Record<string, string | string[]>; + const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; + if (setCookieHeader) { + setCookieSync(lastUrl, setCookieHeader as string[]); + } + latestHeaders = headers; + const location = realHeaders['location'] || realHeaders['Location']; + if (location) { + lastUrl = location as string; + } + }); + const bufs = [] as buffer1.Buffer[]; + httpRequest.on('dataReceive', (data)=>{ + bufs.push(buffer1.from(data)); + }); + httpRequest.requestInStream(parseUrl(url), { + header: headers, + method: (method || 'GET').toUpperCase() as http1.RequestMethod, + extraData: data || undefined, + connectTimeout: timeout ? timeout : undefined, + readTimeout: timeout ? timeout : undefined, + clientCert: getClientCertificate(url) + } as http1.HttpRequestOptions, (err, statusCode)=>{ + if (err) { + exec.reject(err.message); + } else { + const responseData = buffer1.concat(bufs); + let data: ArrayBuffer | string | object = ''; + if (responseType === 'arraybuffer') { + data = responseData.buffer; + } else { + data = responseData.toString('utf8'); + if (dataType === 'json') { + try { + data = JSON.parse(data); + } catch (e) {} + } + } + const headers = latestHeaders as Record<string, string | string[]>; + const oldCookies = headers ? (headers['Set-Cookie'] || headers['set-cookie'] || []) as string[] : [] as string[]; + const cookies = latestHeaders ? cookiesParse(latestHeaders as Record<string, string>) : []; + let newCookies = oldCookies.join(','); + if (newCookies) { + if (headers['Set-Cookie']) { + headers['Set-Cookie'] = newCookies; + } else { + headers['set-cookie'] = newCookies; + } + } + exec.resolve({ + data, + statusCode, + header: latestHeaders!, + cookies: cookies + } as RequestSuccess<Object>); + } + requestTask.offHeadersReceived(); + httpRequest.destroy(); + mp.off('beforeClose', destroy); + }); + return new RequestTask1(requestTask); + }, RequestApiProtocol, RequestApiOptions) as Request<Object>; + const lookupExt = (contentType: string): string | undefined =>{ + const rawContentType = contentType.split(';')[0].trim().toLowerCase(); + return (UTSHarmony.getExtensionFromMimeType(rawContentType) as string | null) || undefined; + }; + const lookupContentTypeWithUri = (uri: string): string | undefined =>{ + const uriArr = uri.split('.'); + if (uriArr.length <= 1) { + return undefined; + } + const ext = uriArr.pop() as string; + return (UTSHarmony.getMimeTypeFromExtension(ext) as string | null) || undefined; + }; + class UploadTask1 implements UploadTask { + __v_skip: boolean = true; + private _uploadTask: IUploadTask; + constructor(uploadTask: IUploadTask){ + this._uploadTask = uploadTask; + } + abort() { + this._uploadTask.abort(); + } + onProgressUpdate(callback: Function) { + this._uploadTask.onProgressUpdate(callback); + } + offProgressUpdate(callback: Function | null = null) { + this._uploadTask.offProgressUpdate(callback); + } + onHeadersReceived(callback: Function) { + this._uploadTask.onHeadersReceived(callback); + } + offHeadersReceived(callback: Function | null = null) { + this._uploadTask.offHeadersReceived(callback); + } + } + const readFile = (filePath: string): ArrayBuffer =>{ + const readFilePath = getRealPath5(filePath) as string; + const file = fs7.openSync(readFilePath, fs7.OpenMode.READ_ONLY); + const stat = fs7.statSync(file.fd); + const data = new ArrayBuffer(stat.size); + fs7.readSync(file.fd, data); + fs7.closeSync(file.fd); + return data; + }; + const uploadFile = defineTaskApi<UploadFileOptions, UploadFileSuccess, UploadTask>(API_UPLOAD_FILE, (args: UploadFileOptions, exec: ApiExecutor<UploadFileSuccess>)=>{ + let url = args.url, timeout = args.timeout, header = args.header, formData = args.formData, files = args.files, filePath = args.filePath, name = args.name; + header = header || {} as ESObject; + if (!header!['Cookie'] && !header!['cookie']) { + header!['Cookie'] = getCookieSync(url); + } + const headers = {} as Record<string, Object>; + if (header) { + const headerRecord = header as Object as Record<string, string>; + const headerKeys = Object.keys(headerRecord); + for(let i = 0; i < headerKeys.length; i++){ + const name = headerKeys[i]; + headers[name.toLowerCase()] = headerRecord[name]; + } + } + headers['Content-Type'] = 'multipart/form-data'; + const multiFormDataList = [] as Array<http2.MultiFormData>; + if (formData) { + const formDataRecord = formData as Object as Record<string, Object>; + const formDataKeys = Object.keys(formDataRecord); + for(let i = 0; i < formDataKeys.length; i++){ + const name = formDataKeys[i]; + multiFormDataList.push({ + name, + contentType: 'text/plain', + data: String(formDataRecord[name]) + } as http2.MultiFormData); + } + } + try { + if (files && files.length) { + for(let i = 0; i < files.length; i++){ + const _files_i = files[i], name = _files_i.name, uri = _files_i.uri; + multiFormDataList.push({ + name: name || 'file', + contentType: lookupContentTypeWithUri(uri) || 'application/octet-stream', + remoteFileName: uri.split('/').pop() || 'no-name', + data: readFile(uri!) + } as http2.MultiFormData); + } + } else if (filePath) { + multiFormDataList.push({ + name: name || 'file', + contentType: lookupContentTypeWithUri(filePath!) || 'application/octet-stream', + remoteFileName: filePath.split('/').pop() || 'no-name', + data: readFile(filePath!) + } as http2.MultiFormData); + } + } catch (error) { + exec.reject((error as Error).message); + return new UploadTask1({ + abort: ()=>{}, + onHeadersReceived: (callback: Function)=>{}, + offHeadersReceived: (callback: Function)=>{}, + onProgressUpdate: (callback: Function)=>{}, + offProgressUpdate: (callback: Function)=>{} + } as IUploadTask); + } + const httpRequest = http2.createHttp(); + const mp = getCurrentMP2(); + const userAgent = mp.userAgent.fullUserAgent; + if (userAgent && !headers['User-Agent'] && !headers['user-agent']) { + headers['User-Agent'] = userAgent; + } + const emitter = new Emitter3() as IUniUploadFileEmitter; + const uploadTask: IUploadTask = { + abort () { + emitter.off('headersReceive'); + emitter.off('progress'); + httpRequest.destroy(); + }, + onHeadersReceived (callback: Function) { + emitter.on('headersReceive', callback); + }, + offHeadersReceived (callback: Function | null = null) { + emitter.off('headersReceive', callback); + }, + onProgressUpdate (callback: Function) { + emitter.on('progress', callback); + }, + offProgressUpdate (callback: Function | null = null) { + emitter.off('progress', callback); + } + }; + const destroy = ()=>{ + emitter.off('headersReceive'); + emitter.off('progress'); + httpRequest.destroy(); + }; + mp.on('beforeClose', destroy); + let lastUrl = url; + httpRequest.on('headersReceive', (headers: Object)=>{ + const realHeaders = headers as Record<string, string | string[]>; + const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; + if (setCookieHeader) { + setCookieSync(lastUrl, setCookieHeader as string[]); + } + const location = realHeaders['location'] || realHeaders['Location']; + if (location) { + lastUrl = location as string; + } + }); + httpRequest.on('dataSendProgress', (ref)=>{ + let sendSize = ref.sendSize, totalSize = ref.totalSize; + emitter.emit('progress', { + progress: Math.floor((sendSize / totalSize) * 100), + totalBytesSent: sendSize, + totalBytesExpectedToSend: totalSize + } as OnProgressUpdateResult); + }); + httpRequest.request(parseUrl(url), { + header: headers, + method: http2.RequestMethod.POST, + connectTimeout: timeout ? timeout : undefined, + readTimeout: timeout ? timeout : undefined, + multiFormDataList, + expectDataType: http2.HttpDataType.STRING, + clientCert: getClientCertificate(url) + } as http2.HttpRequestOptions, (err, res)=>{ + if (err) { + exec.reject(err.message); + } else { + exec.resolve({ + data: res.result as string, + statusCode: res.responseCode + } as UploadFileSuccess); + } + uploadTask.offHeadersReceived(); + uploadTask.offProgressUpdate(); + httpRequest.destroy(); + mp.off('beforeClose', destroy); + }); + return new UploadTask1(uploadTask); + }, UploadFileApiProtocol, UploadFileApiOptions) as UploadFile; + const getPossibleExt = (contentType: string, contentDisposition: string, url: string): string =>{ + const contentDispositionFileNameMatches = contentDisposition.match(/filename="(.*)"/); + const contentDispositionFileName = contentDispositionFileNameMatches ? contentDispositionFileNameMatches[1] : ''; + const contentDispositionExt = contentDispositionFileName ? contentDispositionFileName.split('.').pop() : ''; + if (contentDispositionExt) { + return contentDispositionExt; + } + const urlPath = harmonyUrl1.URL.parseURL(url).pathname; + const urlExt = urlPath.split('/').pop()?.split('.')[1] || ''; + if (urlExt) { + return urlExt; + } + const contentTypeExt = lookupExt(contentType); + return contentTypeExt || ''; + }; + class DownloadTask1 implements DownloadTask { + __v_skip: boolean = true; + private _downloadTask: IDownloadTask; + constructor(downloadTask: IDownloadTask){ + this._downloadTask = downloadTask; + } + abort() { + this._downloadTask.abort(); + } + onProgressUpdate(callback: Function) { + this._downloadTask.onProgressUpdate(callback); + } + offProgressUpdate(callback: Function | null = null) { + this._downloadTask.offProgressUpdate(callback); + } + onHeadersReceived(callback: Function) { + this._downloadTask.onHeadersReceived(callback); + } + offHeadersReceived(callback: Function | null = null) { + this._downloadTask.offHeadersReceived(callback); + } + } + let downloadIndex: [string, number] = [ + '0', + 0 + ]; + const getDownloadFileName = (ext: string)=>{ + let fileName = Date.now() + ''; + if (downloadIndex[0] === fileName) { + downloadIndex[1]++; + if (downloadIndex[1] > 0) { + fileName += '-' + downloadIndex[1]; + } + } else { + downloadIndex[0] = fileName; + downloadIndex[1] = 0; + } + if (ext) { + fileName += '.' + ext; + } + return fileName; + }; + const downloadFile = defineTaskApi<DownloadFileOptions, DownloadFileSuccess, DownloadTask>(API_DOWNLOAD_FILE, (args: DownloadFileOptions, exec: ApiExecutor<DownloadFileSuccess>)=>{ + let url = args.url, timeout = args.timeout, header = args.header, filePath = args.filePath; + header = header || {} as ESObject; + if (!header!['Cookie'] && !header!['cookie']) { + header!['Cookie'] = getCookieSync(url); + } + const httpRequest = http3.createHttp(); + const mp = getCurrentMP3(); + const userAgent = mp.userAgent.fullUserAgent; + if (userAgent && !header!['User-Agent'] && !header!['user-agent']) { + header!['User-Agent'] = userAgent; + } + const emitter = new Emitter4() as IUniDownloadFileEmitter; + const downloadTask: IDownloadTask = { + abort () { + emitter.off('headersReceive'); + emitter.off('progress'); + httpRequest.destroy(); + }, + onHeadersReceived (callback: Function) { + emitter.on('headersReceive', callback); + }, + offHeadersReceived (callback: Function | null = null) { + emitter.off('headersReceive', callback); + }, + onProgressUpdate (callback: Function) { + emitter.on('progress', callback); + }, + offProgressUpdate (callback: Function | null = null) { + emitter.off('progress', callback); + } + }; + const destroy = ()=>{ + downloadTask.abort(); + }; + mp.on('beforeClose', destroy); + let responseContentType = ''; + let responseContentDisposition = ''; + let lastUrl = url; + httpRequest.on('headersReceive', (headers: Object)=>{ + const realHeaders = headers as Record<string, string | string[]>; + responseContentType = realHeaders['content-type'] as string || realHeaders['Content-Type'] as string || ''; + responseContentDisposition = realHeaders['content-disposition'] as string || realHeaders['Content-Disposition'] as string || ''; + const setCookieHeader = realHeaders['set-cookie'] || realHeaders['Set-Cookie']; + if (setCookieHeader) { + setCookieSync(lastUrl, setCookieHeader as string[]); + } + const location = realHeaders['location'] || realHeaders['Location']; + if (location) { + lastUrl = location as string; + } + }); + httpRequest.on('dataReceiveProgress', (ref)=>{ + let receiveSize = ref.receiveSize, totalSize = ref.totalSize; + emitter.emit('progress', { + progress: Math.floor((receiveSize / totalSize) * 100), + totalBytesWritten: receiveSize, + totalBytesExpectedToWrite: totalSize + } as OnProgressDownloadResult); + }); + const TEMP_PATH = getEnv5().TEMP_PATH as string; + const downloadPath = TEMP_PATH + '/download'; + if (!fs8.accessSync(downloadPath)) { + fs8.mkdirSync(downloadPath, true); + } + let stream: fs8.Stream; + let tempFilePath = ''; + let writePromise = Promise.resolve(0); + const queueWrite = async (data: ArrayBuffer): Promise<number> =>{ + writePromise = writePromise.then(async (total)=>{ + const length = await stream.write(data); + return total + length; + }); + return writePromise; + }; + httpRequest.on('dataReceive', (data)=>{ + if (!stream) { + const ext = getPossibleExt(responseContentType, responseContentDisposition, url); + tempFilePath = filePath ? filePath.replace(/^file:\/\//, '') : downloadPath + '/' + getDownloadFileName(ext); + stream = fs8.createStreamSync(tempFilePath, 'w+'); + } + queueWrite(data); + }); + httpRequest.requestInStream(parseUrl(url), { + header: header ? header : {} as ESObject, + method: http3.RequestMethod.GET, + connectTimeout: timeout ? timeout : undefined, + readTimeout: timeout ? timeout : undefined, + clientCert: getClientCertificate(url) + } as http3.HttpRequestOptions, (err, statusCode)=>{ + let finishPromise: Promise<void> = Promise.resolve(); + if (err) { + exec.reject(err.message); + } else { + finishPromise = writePromise.then(async ()=>{ + await stream.flush(); + await stream.close(); + exec.resolve({ + tempFilePath, + statusCode + } as DownloadFileSuccess); + }).catch((err: Error)=>{ + exec.reject(err.message); + }); + } + finishPromise.then(()=>{ + downloadTask.offHeadersReceived(); + downloadTask.offProgressUpdate(); + httpRequest.destroy(); + mp.off('beforeClose', destroy); + }); + }); + return new DownloadTask1(downloadTask); + }, DownloadFileApiProtocol, DownloadFileApiOptions) as DownloadFile; + const configMTLS: ConfigMTLS = defineAsyncApi<ConfigMTLSOptions, ConfigMTLSSuccess>(API_CONFIG_MTLS, (args: ConfigMTLSOptions, executor: ApiExecutor<ConfigMTLSSuccess>)=>{ + try { + args.certificates.forEach((certificate)=>{ + const certHosts = certificates.map((cert)=>cert.host); + const certHostIndex = certHosts.indexOf(certificate.host); + if (certHostIndex > -1) { + certificates.splice(certHostIndex, 1); + } + certificates.push(certificate); + }); + executor.resolve(); + } catch (error) { + executor.reject((error as BusinessError13).message); + } + }, ConfigMTLSApiProtocol, ConfigMTLSApiOptions) as ConfigMTLS; + const API_LOGIN = 'login'; + const LoginApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'provider', + { + type: 'string' + } + ], + [ + 'timeout', + { + type: 'number' + } + ] + ]); + const API_GET_USER_INFO = 'getUserInfo'; + const GetUserInfoApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'provider', + { + type: 'string' + } + ], + [ + 'timeout', + { + type: 'number' + } + ] + ]); + const SERVICE = 'oauth'; + const PROVIDER = 'huawei'; + const login: Login = defineAsyncApi<LoginOptions, LoginSuccess>(API_LOGIN, (args: LoginOptions, executor: ApiExecutor<LoginSuccess>)=>{ + const provider = getUniProvider<UniOAuthProvider>(SERVICE, args.provider ?? PROVIDER); + if (!provider) { + executor.reject('Provider not found.'); + return; + } + provider.login({ + success (res) { + executor.resolve(res); + }, + fail (err) { + executor.reject(err.errMsg); + } + } as LoginOptions); + }, LoginApiProtocol) as Login; + const getUserInfo: GetUserInfo = defineAsyncApi<GetUserInfoOptions, GetUserInfoSuccess>(API_GET_USER_INFO, (args: GetUserInfoOptions, executor: ApiExecutor<GetUserInfoSuccess>)=>{ + const provider = getUniProvider<UniOAuthProvider>(SERVICE, args.provider ?? PROVIDER); + if (!provider) { + executor.reject('Provider not found.'); + return; + } + provider.getUserInfo({ + success (res) { + executor.resolve(res); + }, + fail (err) { + executor.reject(err.errMsg); + } + } as GetUserInfoOptions); + }, GetUserInfoApiProtocol) as GetUserInfo; + const API_OPEN_APP_AUTHORIZE_SETTING = 'openAppAuthorizeSetting'; + const openAppAuthorizeSetting: OpenAppAuthorizeSetting = defineAsyncApi<OpenAppAuthorizeSettingOptions, OpenAppAuthorizeSettingSuccess>(API_OPEN_APP_AUTHORIZE_SETTING, (options: OpenAppAuthorizeSettingOptions, exec: ApiExecutor<OpenAppAuthorizeSettingSuccess>)=>{ + const want: Want = { + bundleName: 'com.huawei.hmos.settings', + abilityName: 'com.huawei.hmos.settings.MainAbility', + uri: 'application_info_entry', + parameters: { + pushParams: bundleManager2.getBundleInfoForSelfSync(bundleManager2.BundleFlag.GET_BUNDLE_INFO_DEFAULT).name + } + } as Want; + const context = UTSHarmony.getUIAbilityContext() as common1.UIAbilityContext; + context.startAbility(want).then(()=>{ + exec.resolve({ + errMsg: '' + } as OpenAppAuthorizeSettingSuccess); + }, (err: Error)=>{ + exec.reject(err.message); + }); + }) as OpenAppAuthorizeSetting; + const API_OPEN_DOCUMENT = 'openDocument'; + const getContentType = (filePath: string, fileType: string | null = null): string | void =>{ + const suffix = fileType || filePath.split('.').pop(); + if (!suffix) { + return; + } + switch(suffix){ + case 'doc': + case 'docx': + return 'application/msword'; + case 'xls': + case 'xlsx': + return 'application/vnd.ms-excel'; + case 'ppt': + case 'pptx': + return 'application/vnd.ms-powerpoint'; + case 'pdf': + return 'application/pdf'; + default: + return; + } + }; + const openDocument: OpenDocument = defineAsyncApi<OpenDocumentOptions, OpenDocumentSuccess>(API_OPEN_DOCUMENT, (options: OpenDocumentOptions, exec: ApiExecutor<OpenDocumentSuccess>)=>{ + const filePath = options.filePath; + const uri = fileUri1.getUriFromPath(filePath.replace(/^file:\/\//, '')); + const fileContentType = getContentType(filePath, options.fileType); + if (!fileContentType) { + exec.reject('file type not supported'); + return; + } + const want: Want1 = { + flags: wantConstant.Flags.FLAG_AUTH_WRITE_URI_PERMISSION | wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION | wantConstant.Flags.FLAG_AUTH_PERSISTABLE_URI_PERMISSION, + action: 'ohos.want.action.viewData', + uri: uri, + type: fileContentType as string + }; + const abilityContext = UTSHarmony.getUIAbilityContext() as common2.UIAbilityContext; + abilityContext.startAbility(want).then(()=>{ + exec.resolve({} as OpenDocumentSuccess); + }, (err: Error)=>{ + exec.reject(err.message); + }); + }) as OpenDocument; + const RequestPaymentUniErrors: Map<RequestPaymentErrorCode, string> = new Map([ + [ + 700600, + 'The payment result is unknown (it may have been successfully paid). Please check the payment status of the order in the merchant order list.' + ], + [ + 701100, + 'Order payment failure.' + ], + [ + 701110, + 'Repeat the request.' + ], + [ + 700601, + 'The user canceled midway.' + ], + [ + 700602, + 'Network connection error.' + ], + [ + 700603, + 'Payment result unknown (may have been successfully paid), please check the payment status of the order in the merchant order list.' + ], + [ + 700607, + 'Payment not completed.' + ], + [ + 700608, + 'Parameter error.' + ], + [ + 700000, + 'Other payment errors.' + ], + [ + 700604, + 'Wechat is not installed.' + ], + [ + 700605, + 'Failed to get provider.' + ], + [ + 700800, + 'URL Scheme is not configured.' + ], + [ + 700801, + 'Universal Link is not configured.' + ] + ]); + const API_REQUEST_PAYMENT = 'requestPayment'; + const requestPayment: RequestPayment = defineAsyncApi<RequestPaymentOptions, RequestPaymentSuccess>(API_REQUEST_PAYMENT, (options: RequestPaymentOptions, exec: ApiExecutor<RequestPaymentSuccess>): void =>{ + const provider = getUniProvider<UniPaymentProvider>('payment', options.provider); + if (!provider) { + exec.reject('Provider not found.'); + return; + } + provider.requestPayment({ + orderInfo: options.orderInfo, + success: (result: RequestPaymentSuccess)=>{ + exec.resolve(result); + }, + fail: (error: RequestPaymentFail)=>{ + const errMsg = RequestPaymentUniErrors.get(error.errCode) ?? ""; + exec.reject(errMsg, { + errCode: error.errCode + } as ApiError); + } + } as RequestPaymentOptions); + }) as RequestPayment; + const API_SHOW_TOAST = 'showToast'; + const ShowToastProtocol = new Map<string, ProtocolOptions>([ + [ + 'title', + { + type: 'string', + required: true + } + ], + [ + 'duration', + { + type: 'number' + } + ] + ]); + const ShowToastApiOptions: ApiOptions<ShowToastOptions> = { + formatArgs: new Map<string, Function | string | number>([ + [ + "title", + "" + ], + [ + "duration", + 1500 + ] + ]) + }; + const API_HIDE_TOAST = 'hideToast'; + const PRIMARY_COLOR = '#007aff'; + const API_SHOW_MODAL = 'showModal'; + const ShowModalProtocol = new Map<string, ProtocolOptions>([ + [ + "title", + { + type: "string" + } + ], + [ + "content", + { + type: "string" + } + ], + [ + "showCancel", + { + type: "boolean" + } + ], + [ + "cancelText", + { + type: "string" + } + ], + [ + "cancelColor", + { + type: "string" + } + ], + [ + "confirmText", + { + type: "string" + } + ], + [ + "confirmColor", + { + type: "string" + } + ] + ]); + const ShowModalApiOptions: ApiOptions<ShowModalOptions> = { + formatArgs: new Map<string, Function | string | boolean>([ + [ + "title", + "" + ], + [ + "content", + "" + ], + [ + "placeholderText", + "" + ], + [ + "showCancel", + true + ], + [ + "editable", + false + ], + [ + "cancelColor", + "#000000" + ], + [ + "confirmColor", + PRIMARY_COLOR + ] + ]) + }; + const API_SHOW_ACTION_SHEET = 'showActionSheet'; + const ShowActionSheetProtocol = new Map<string, ProtocolOptions>([ + [ + "title", + { + type: "string" + } + ], + [ + "itemList", + { + type: "array", + required: true + } + ], + [ + "itemColor", + { + type: "string" + } + ] + ]); + const ShowActionSheetApiOptions: ApiOptions<ShowActionSheetOptions> = { + formatArgs: new Map<string, string>([ + [ + "itemColor", + "#000000" + ] + ]) + }; + const API_SHOW_LOADING = 'showLoading'; + const ShowLoadingProtocol = new Map<string, ProtocolOptions>([ + [ + 'title', + { + type: 'string' + } + ], + [ + 'mask', + { + type: 'boolean' + } + ] + ]); + const ShowLoadingApiOptions: ApiOptions<ShowLoadingOptions> = { + formatArgs: new Map<string, Function | string | boolean>([ + [ + "title", + "" + ], + [ + "mask", + false + ] + ]) + }; + const API_HIDE_LOADING = 'hideLoading'; + const showToast: ShowToast = defineAsyncApi<ShowToastOptions, ShowToastSuccess>(API_SHOW_TOAST, (options: ShowToastOptions, res: ApiExecutor<ShowToastSuccess>)=>{ + try { + const showToastOptions: promptAction4.ShowToastOptions = { + message: options.title, + duration: options.duration!, + alignment: Alignment.Center + }; + if (options.position) { + switch(options.position){ + case 'top': + showToastOptions.alignment = Alignment.Top; + break; + case 'bottom': + showToastOptions.alignment = Alignment.Bottom; + break; + } + } + const window = UTSHarmony.getCurrentWindow() as window.Window; + window.getUIContext().getPromptAction().showToast(showToastOptions); + res.resolve({} as ShowToastSuccess); + } catch (error) { + let message = (error as BusinessError14).message; + res.reject(message); + } + }, ShowToastProtocol, ShowToastApiOptions) as ShowToast; + const hideToast: HideToast = defineAsyncApi(API_HIDE_TOAST, (_, res: ApiExecutor<Object>)=>{}) as HideToast; + const showModal: ShowModal = defineAsyncApi<ShowModalOptions, ShowModalSuccess>(API_SHOW_MODAL, async (args: ShowModalOptions, res: ApiExecutor<ShowModalSuccess>)=>{ + const modalRes = await new Promise<ShowModalSuccess>((resolve, reject)=>{ + const confirmButton: AlertDialogButtonOptions = { + value: args.confirmText ?? '确定', + fontColor: args.confirmColor!, + action: ()=>{ + resolve({ + "confirm": true + } as ShowModalSuccess); + } + }; + const cancelButton: AlertDialogButtonOptions = { + value: args.cancelText ?? '取消', + fontColor: args.cancelColor ?? '#000000', + action: ()=>{ + resolve({ + "cancel": true + } as ShowModalSuccess); + } + }; + const buttons: Array<AlertDialogButtonOptions> = []; + if (args.showCancel) { + buttons.push(cancelButton); + } + buttons.push(confirmButton); + const window = UTSHarmony.getCurrentWindow() as window.Window; + window.getUIContext().showAlertDialog({ + title: args.title ?? '', + message: args.content ?? '', + autoCancel: false, + alignment: DialogAlignment.Center, + buttons, + cancel: ()=>{ + resolve({ + 'cancel': true + } as ShowModalSuccess); + } + } as AlertDialogParamWithOptions); + }); + if (modalRes.confirm) { + modalRes.cancel = false; + } + if (modalRes.cancel) { + modalRes.confirm = false; + } + modalRes.content = null; + res.resolve(modalRes as ShowModalSuccess); + }, ShowModalProtocol, ShowModalApiOptions) as ShowModal; + const showActionSheet: ShowActionSheet = defineAsyncApi<ShowActionSheetOptions, ShowActionSheetSuccess>(API_SHOW_ACTION_SHEET, async (options: ShowActionSheetOptions, res: ApiExecutor<ShowActionSheetSuccess>)=>{ + const actionItemList = options.itemList.filter(Boolean); + if (actionItemList.length === 0) { + return; + } + type ActionMenuButtons = [promptAction5.Button, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?, promptAction5.Button?]; + const actionMenuButtons: ActionMenuButtons = [ + { + text: actionItemList[0], + color: options.itemColor! + } + ]; + actionItemList.slice(1).forEach((item)=>{ + actionMenuButtons.push({ + text: item, + color: options.itemColor! + } as promptAction5.Button); + }); + const window = UTSHarmony.getCurrentWindow() as window.Window; + window.getUIContext().getPromptAction().showActionMenu({ + title: options.title, + buttons: actionMenuButtons + } as promptAction5.ActionMenuOptions).then((showACtionSheetRes)=>{ + res.resolve({ + tapIndex: showACtionSheetRes.index + } as ShowActionSheetSuccess); + }).catch((e: Error)=>{ + if (e.message === 'cancel') { + res.reject('cancel'); + return; + } + res.reject(e.message); + }); + }, ShowActionSheetProtocol, ShowActionSheetApiOptions) as ShowActionSheet; + const showLoading: ShowLoading = defineAsyncApi<ShowLoadingOptions, ShowLoadingSuccess>(API_SHOW_LOADING, async (options: ShowLoadingOptions, exec: ApiExecutor<ShowLoadingSuccess>)=>{ + onNativePageReady2().then((nativePage: Object)=>{ + getOSRuntime1().showLoading({ + title: options.title || '', + mask: options.mask == null ? false : options.mask + } as IShowLoadingOptions, nativePage); + exec.resolve({} as ShowLoadingSuccess); + }); + }, ShowLoadingProtocol, ShowLoadingApiOptions) as ShowLoading; + const hideLoading: HideLoading = defineAsyncApi<IHideLoadingOptions, IHideLoadingSuccess>(API_HIDE_LOADING, (options: IHideLoadingOptions, exec: ApiExecutor<IHideLoadingSuccess>)=>{ + onNativePageReady2().then((nativePage: Object)=>{ + getOSRuntime1().hideLoading(); + exec.resolve({} as IHideLoadingSuccess); + }); + }) as HideLoading; + const API_START_PULL_DOWN_REFRESH = 'startPullDownRefresh'; + const API_STOP_PULL_DOWN_REFRESH = 'stopPullDownRefresh'; + const startPullDownRefresh = defineAsyncApi<StartPullDownRefreshOptions, StartPullDownRefreshSuccess>(API_START_PULL_DOWN_REFRESH, (_, res)=>{ + internalStartPullDownRefresh(); + res.resolve(); + }) as StartPullDownRefresh; + const stopPullDownRefresh = defineSyncApi<void>(API_STOP_PULL_DOWN_REFRESH, ()=>{ + internalStopPullDownRefresh(); + }) as StopPullDownRefresh; + const API_RPX2PX = 'rpx2px'; + const EPS = 1e-4; + const rpx2px: Rpx2px = defineSyncApi<number>(API_RPX2PX, (number: number): number =>{ + const windowStage: harmonyWindow.WindowStage = UTSHarmony.getWindowStage() as harmonyWindow.WindowStage; + let windowWidthInVp: number = 384; + let windowWidthInPx: number = 1344; + if (windowStage) { + const mainWindow: harmonyWindow.Window = windowStage.getMainWindowSync(); + windowWidthInPx = mainWindow.getWindowProperties().windowRect.width; + windowWidthInVp = px2vp(windowWidthInPx); + } + let result = (number / 750) * windowWidthInVp; + if (result < 0) { + result = -result; + } + result = Math.floor(result + EPS); + if (result == 0) { + if (windowWidthInPx == windowWidthInVp) { + result = 1; + } else { + result = 0.5; + } + } + return number < 0 ? -result : result; + }) as Rpx2px; + const API_SCAN_CODE = 'scanCode'; + const HarmonyScanTypeMap = new Map<UniScanOptionsTypes, scanCore.ScanType[]>([ + [ + 'barCode', + [ + scanCore.ScanType.ONE_D_CODE + ] + ], + [ + 'qrCode', + [ + scanCore.ScanType.TWO_D_CODE + ] + ], + [ + 'datamatrix', + [ + scanCore.ScanType.DATAMATRIX_CODE + ] + ], + [ + 'pdf417', + [ + scanCore.ScanType.PDF417_CODE + ] + ] + ]); + const UniScanTypeMap = new Map<HarmonyScanResultTypes, UniScanResultTypes>([ + [ + scanCore.ScanType.AZTEC_CODE, + 'AZTEC' + ], + [ + scanCore.ScanType.CODABAR_CODE, + 'CODABAR' + ], + [ + scanCore.ScanType.CODE128_CODE, + 'CODE_128' + ], + [ + scanCore.ScanType.CODE39_CODE, + 'CODE_39' + ], + [ + scanCore.ScanType.CODE93_CODE, + 'CODE_93' + ], + [ + scanCore.ScanType.DATAMATRIX_CODE, + 'DATA_MATRIX' + ], + [ + scanCore.ScanType.EAN13_CODE, + 'EAN_13' + ], + [ + scanCore.ScanType.EAN8_CODE, + 'EAN_8' + ], + [ + scanCore.ScanType.ITF14_CODE, + 'ITF' + ], + [ + scanCore.ScanType.PDF417_CODE, + 'PDF_417' + ], + [ + scanCore.ScanType.QR_CODE, + 'QR_CODE' + ], + [ + scanCore.ScanType.UPC_A_CODE, + 'UPC_A' + ], + [ + scanCore.ScanType.UPC_E_CODE, + 'UPC_E' + ] + ]); + const scanCode: ScanCode = defineAsyncApi<ScanCodeOptions, ScanCodeSuccess>(API_SCAN_CODE, (options: ScanCodeOptions, exec: ApiExecutor<ScanCodeSuccess>)=>{ + if (!canIUse('SystemCapability.Multimedia.Scan.ScanBarcode')) { + exec.reject('not support'); + return; + } + let scanTypes: scanCore.ScanType[] = []; + if (options.scanType && Array.isArray(options.scanType) && options.scanType.length > 0) { + for(let i = 0; i < options.scanType.length; i++){ + const uniScanType = options.scanType[i]; + const harmonyScanTypes = HarmonyScanTypeMap.get(uniScanType); + if (!harmonyScanTypes) { + continue; + } + scanTypes = scanTypes.concat(harmonyScanTypes); + } + } + if (scanTypes.length === 0) { + scanTypes = [ + scanCore.ScanType.ALL + ]; + } + const scanOptions: scanBarcode.ScanOptions = { + scanTypes, + enableMultiMode: true, + enableAlbum: !options.onlyFromCamera + }; + scanBarcode.startScanForResult(UTSHarmony.getUIAbilityContext()!, scanOptions, (err, data)=>{ + if (err) { + exec.reject(err.message); + return; + } + exec.resolve({ + result: data.originalValue, + scanType: UniScanTypeMap.get(data.scanType as HarmonyScanResultTypes) || '' + } as ScanCodeSuccess); + }); + }) as ScanCode; + const API_SHARE_WITH_SYSTEM = 'shareWithSystem'; + const shareWithSystem = defineAsyncApi<ShareWithSystemOptions, ShareWithSystemSuccess>(API_SHARE_WITH_SYSTEM, (args: ShareWithSystemOptions, exec: ApiExecutor<ShareWithSystemSuccess>)=>{ + const href = args.href; + const imageUrl = args.imageUrl; + const summary = args.summary; + const shareRecords: systemShare.SharedRecord[] = []; + if (href) { + shareRecords.push({ + utd: uniformTypeDescriptor1.UniformDataType.HYPERLINK, + content: href + } as systemShare.SharedRecord); + } + if (imageUrl) { + shareRecords.push({ + utd: uniformTypeDescriptor1.UniformDataType.IMAGE, + uri: imageUrl + } as systemShare.SharedRecord); + } + if (summary) { + shareRecords.push({ + utd: uniformTypeDescriptor1.UniformDataType.TEXT, + content: summary + } as systemShare.SharedRecord); + } + if (shareRecords.length === 0) { + exec.reject('No share data'); + return; + } + const shareData = new systemShare.SharedData(shareRecords[0]); + for(let index = 1; index < shareRecords.length; index++){ + shareData.addRecord(shareRecords[index]); + } + const shareController: systemShare.ShareController = new systemShare.ShareController(shareData); + shareController.show(UTSHarmony.getUIAbilityContext() as common3.UIAbilityContext, {} as systemShare.ShareControllerOptions); + const onDismiss = ()=>{ + shareController.off('dismiss', onDismiss); + exec.resolve({} as ShareWithSystemSuccess); + }; + shareController.on('dismiss', onDismiss); + }) as ShareWithSystem; + const API_GET_STORAGE = 'getStorage'; + const API_GET_STORAGE_SYNC = 'getStorageSync'; + const API_SET_STORAGE = 'setStorage'; + const API_SET_STORAGE_SYNC = 'setStorageSync'; + const API_REMOVE_STORAGE = 'removeStorage'; + const API_REMOVE_STORAGE_SYNC = 'removeStorageSync'; + const API_CLEAR_STORAGE = 'clearStorage'; + const API_CLEAR_STORAGE_SYNC = 'clearStorageSync'; + const API_GET_STORAGE_INFO = 'getStorageInfo'; + const API_GET_STORAGE_INFO_SYNC = 'getStorageInfoSync'; + const parseStorageValue = (value: string): Object =>{ + try { + return JSON.parse(value).data; + } catch (e) { + return value; + } + }; + const stringifyStorageValue = (value: Object): string =>{ + return JSON.stringify({ + type: typeof value, + data: value + } as ESObject); + }; + const stores = new Map<string, dataPreferences.Preferences>(); + const createStore = (): dataPreferences.Preferences =>{ + const id = getCurrentMP4().id; + if (stores.has(id)) { + return stores.get(id)!; + } + const store = dataPreferences.getPreferencesSync(UTSHarmony.getUIAbilityContext() as common4.UIAbilityContext, { + name: `storage.${id}` + } as dataPreferences.Options); + stores.set(id, store); + return store; + }; + const getStorageSync = defineSyncApi<Object>(API_GET_STORAGE_SYNC, (key: string)=>{ + const storeValue = createStore().getSync(key, ''); + if (!storeValue) { + return ''; + } + return parseStorageValue(storeValue as string); + }) as GetStorageSync; + const getStorage = defineAsyncApi<GetStorageOptions, GetStorageSuccess>(API_GET_STORAGE, (args: GetStorageOptions, exec: ApiExecutor<GetStorageSuccess>)=>{ + createStore().get(args.key, '').then((storeValue)=>{ + if (!storeValue) { + return exec.reject('data not found'); + } + let value: Object; + try { + value = parseStorageValue(storeValue as string); + } catch (error) { + exec.reject('data parse error'); + return; + } + exec.resolve({ + data: value + } as GetStorageSuccess); + }); + }) as GetStorage; + const setStorageSync = defineSyncApi<void>(API_SET_STORAGE_SYNC, (key: string, value: Object)=>{ + createStore().putSync(key, stringifyStorageValue(value)); + createStore().flush(); + }) as SetStorageSync; + const setStorage = defineAsyncApi<SetStorageOptions, SetStorageSuccess>(API_SET_STORAGE, (args: SetStorageOptions, exec: ApiExecutor<SetStorageSuccess>)=>{ + try { + createStore().put(args.key, stringifyStorageValue(args.data)).then(()=>{ + createStore().flush(); + exec.resolve({} as ESObject); + }, (error: Error)=>{ + exec.reject(error.message); + }); + } catch (error) { + exec.reject((error as Error).message); + } + }) as SetStorage; + const removeStorageSync = defineSyncApi<void>(API_REMOVE_STORAGE_SYNC, (key: string)=>{ + createStore().deleteSync(key); + createStore().flush(); + }) as RemoveStorageSync; + const removeStorage = defineAsyncApi<RemoveStorageOptions, RemoveStorageSuccess>(API_REMOVE_STORAGE, (args: RemoveStorageOptions, exec: ApiExecutor<RemoveStorageSuccess>)=>{ + createStore().delete(args.key).then(()=>{ + createStore().flush(); + exec.resolve({} as ESObject); + }, (error: Error)=>{ + exec.reject(error.message); + }); + }) as RemoveStorage; + const clearStorageSync = defineSyncApi<void>(API_CLEAR_STORAGE_SYNC, ()=>{ + createStore().clearSync(); + createStore().flush(); + }) as ClearStorageSync; + const clearStorage = defineAsyncApi<ClearStorageOptions, ClearStorageSuccess>(API_CLEAR_STORAGE, (args: ClearStorageOptions, exec: ApiExecutor<ClearStorageSuccess>)=>{ + createStore().clear().then(()=>{ + createStore().flush(); + exec.resolve({} as ESObject); + }, (error: Error)=>{ + exec.reject(error.message); + }); + }) as ClearStorage; + const getStorageInfoSync = defineSyncApi<GetStorageInfoSuccess>(API_GET_STORAGE_INFO_SYNC, ()=>{ + const allData = createStore().getAllSync(); + return { + keys: Object.keys(allData), + currentSize: 0, + limitSize: 0 + } as GetStorageInfoSuccess; + }) as GetStorageInfoSync; + const getStorageInfo = defineAsyncApi<GetStorageInfoOptions, GetStorageInfoSuccess>(API_GET_STORAGE_INFO, (args: GetStorageInfoOptions, exec: ApiExecutor<GetStorageInfoSuccess>)=>{ + createStore().getAll().then((allData)=>{ + exec.resolve({ + keys: Object.keys(allData), + currentSize: 0, + limitSize: 0 + } as GetStorageInfoSuccess); + }); + }) as GetStorageInfo; + const API_CONNECT_SOCKET = 'connectSocket'; + const ConnectSocketApiProtocol = new Map<string, ProtocolOptions>([ + [ + 'url', + { + type: 'string', + required: true + } + ], + [ + 'header', + { + type: 'object', + required: false + } + ], + [ + 'protocols', + { + type: 'string[]', + required: false + } + ] + ]); + const ConnectSocketApiOptions: ApiOptions<ConnectSocketOptions> = { + formatArgs: new Map<string, Function>([ + [ + 'url', + (url: string, params: ConnectSocketOptions)=>{ + if (url == null) { + throw new Error('url is required'); + } + } + ] + ]) + }; + const API_SEND_SOCKET_MESSAGE = 'sendSocketMessage'; + const API_CLOSE_SOCKET = 'closeSocket'; + const tryExec = (fn: Function | null | undefined, ...args: Object[])=>{ + if (!fn) { + return; + } + try { + fn(...args); + } catch (error) { + console.error(error); + } + }; + const GlobalWebsocketEmitter = new Emitter5() as IUniWebsocketEmitter; + const destroySocketTaskEmitter = (emitter: IUniWebsocketEmitter)=>{ + emitter.off('message'); + emitter.off('open'); + emitter.off('error'); + emitter.off('close'); + }; + class SocketTask1 implements SocketTask { + __v_skip: boolean = true; + _destroy: Function; + private _ws: webSocket.WebSocket; + private _emitter: IUniWebsocketEmitter = new Emitter5() as IUniWebsocketEmitter; + constructor(ws: webSocket.WebSocket){ + const mp = getCurrentMP5(); + this._ws = ws; + this._ws.on('message', (_, data)=>{ + const message = { + data + } as OnSocketMessageCallbackResult; + this._emitter.emit('message', message); + const socketTasks = getSocketTasks(mp.id); + if (this === socketTasks[0]) { + GlobalWebsocketEmitter.emit('message', message); + } + }); + this._ws.on('open', (_, data)=>{ + this._emitter.emit('open', data); + const socketTasks = getSocketTasks(mp.id); + if (this === socketTasks[0]) { + GlobalWebsocketEmitter.emit('open', data); + } + }); + this._ws.on('error', (error)=>{ + const message = { + errMsg: error.message + } as OnSocketErrorCallbackResult; + this._emitter.emit('error', message); + const socketTasks = getSocketTasks(mp.id); + if (this === socketTasks[0]) { + GlobalWebsocketEmitter.emit('error', message); + } + }); + this._ws.on('close', (_, data)=>{ + this._emitter.emit('close', data); + const socketTasks = getSocketTasks(mp.id); + if (this === socketTasks[0]) { + GlobalWebsocketEmitter.emit('close', data); + } + const index = socketTasks.indexOf(this); + if (index >= 0) { + socketTasks.splice(index, 1); + } + }); + this._destroy = ()=>{ + destroySocketTaskEmitter(this._emitter); + this.close(); + }; + } + send(options: SendSocketMessageOptions) { + this._ws.send(options.data as string | ArrayBuffer).then((success: boolean)=>{ + if (success) { + tryExec(options.success, {} as GeneralCallbackResult); + } else { + tryExec(options.fail, new UniError('send message failed')); + } + }, (err: Error)=>{ + tryExec(options.fail, new UniError(err.message)); + }); + } + close(options: CloseSocketOptions | null = null) { + this._ws.close({ + code: typeof options?.code === 'number' ? options.code : 1000, + reason: typeof options?.reason === 'string' ? options.reason : '' + } as webSocket.WebSocketCloseOptions).then((success: boolean)=>{ + if (success) { + tryExec(options?.success, {} as GeneralCallbackResult); + } else { + tryExec(options?.fail, new UniError('close socket failed')); + } + }, (err: Error)=>{ + tryExec(options?.fail, new UniError(err.message)); + }); + } + onMessage(callback: Function) { + this._emitter.on('message', callback); + } + onOpen(callback: Function) { + this._emitter.on('open', callback); + } + onError(callback: Function) { + this._emitter.on('error', callback); + } + onClose(callback: Function) { + this._emitter.on('close', callback); + } + } + const socketTasksMap: Map<string, SocketTask1[]> = new Map(); + const addSocketTask = (task: SocketTask1)=>{ + const mp = getCurrentMP5(); + mp.on('beforeClose', task._destroy); + task.onClose(()=>{ + mp.off('beforeClose', task._destroy); + }); + const id = mp.id; + if (!socketTasksMap.has(id)) { + socketTasksMap.set(id, []); + } + const socketTasks = socketTasksMap.get(id) as SocketTask1[]; + socketTasks.push(task); + }; + const getSocketTasks = (id: string | null = null)=>{ + if (!id) { + const mp = getCurrentMP5(); + id = mp.id; + } + return socketTasksMap.get(id!) || []; + }; + const connectSocket = defineTaskApi<ConnectSocketOptions, ConnectSocketSuccess, SocketTask>(API_CONNECT_SOCKET, (args: ConnectSocketOptions, exec: ApiExecutor<ConnectSocketSuccess>)=>{ + const ws = webSocket.createWebSocket(); + const mp = getCurrentMP5(); + ws.connect(args.url, { + header: args.header ? args.header as Object : undefined, + protocol: args.protocols ? Array.isArray(args.protocols) ? args.protocols.join(',') : args.protocols : '' + } as webSocket.WebSocketRequestOptions); + const task = new SocketTask1(ws); + mp.on('beforeClose', task._destroy); + task.onClose(()=>{ + mp.off('beforeClose', task._destroy); + }); + addSocketTask(task); + return task; + }, ConnectSocketApiProtocol, ConnectSocketApiOptions) as ConnectSocket; + const onSocketMessage: OnSocketMessage = (callback: Function)=>{ + GlobalWebsocketEmitter.on('message', callback); + }; + const onSocketOpen: OnSocketOpen = (callback: Function)=>{ + GlobalWebsocketEmitter.on('open', callback); + }; + const onSocketError: OnSocketError = (callback: Function)=>{ + GlobalWebsocketEmitter.on('error', callback); + }; + const onSocketClose: OnSocketClose = (callback: Function)=>{ + GlobalWebsocketEmitter.on('close', callback); + }; + const sendSocketMessage = defineAsyncApi<SendSocketMessageOptions, GeneralCallbackResult>(API_SEND_SOCKET_MESSAGE, (args: SendSocketMessageOptions, exec: ApiExecutor<GeneralCallbackResult>)=>{ + const socketTasks = getSocketTasks(); + const task = socketTasks[0]; + if (task) { + task.send({ + data: args.data, + success (res) { + exec.resolve(res); + }, + fail (err) { + exec.reject('sendSocketMessage:fail'); + } + } as SendSocketMessageOptions); + } else { + exec.reject('WebSocket is not connected'); + } + }) as SendSocketMessage; + const closeSocket = defineAsyncApi<CloseSocketOptions, GeneralCallbackResult>(API_CLOSE_SOCKET, (args: CloseSocketOptions, exec: ApiExecutor<GeneralCallbackResult>)=>{ + const socketTasks = getSocketTasks(); + const task = socketTasks[0]; + if (task) { + task.close({ + code: args.code, + reason: args.reason, + success (res) { + exec.resolve(res); + }, + fail (err) { + exec.reject('closeSocket:fail'); + } + } as CloseSocketOptions); + } else { + exec.reject('WebSocket is not connected'); + } + }) as CloseSocket; + return { + addPhoneContact, + startSoterAuthentication, + checkIsSupportSoterAuthentication, + checkIsSoterEnrolledInDevice, + chooseMedia, + getClipboardData, + setClipboardData, + createInnerAudioContext, + $on, + $once, + $off, + $emit, + exit, + saveFile, + getSavedFileList, + getSavedFileInfo, + removeSavedFile, + getFileInfo, + getFileSystemManager, + getAppAuthorizeSetting, + getAppBaseInfo, + getBackgroundAudioManager, + getDeviceInfo, + getNetworkType, + onNetworkStatusChange, + offNetworkStatusChange, + getProvider, + getProviderSync, + getRecorderManager, + getSystemInfo, + getSystemInfoSync, + getWindowInfo, + getSystemSetting, + hideKeyboard, + makePhoneCall, + chooseImage, + previewImage, + closePreviewImage, + getImageInfo, + saveImageToPhotosAlbum, + compressImage, + chooseVideo, + saveVideoToPhotosAlbum, + getVideoInfo, + compressVideo, + chooseFile, + request, + uploadFile, + downloadFile, + configMTLS, + login, + getUserInfo, + openAppAuthorizeSetting, + openDocument, + requestPayment, + showToast, + hideToast, + showLoading, + hideLoading, + showModal, + showActionSheet, + startPullDownRefresh, + stopPullDownRefresh, + rpx2px, + scanCode, + shareWithSystem, + setStorage, + setStorageSync, + getStorage, + getStorageSync, + getStorageInfo, + getStorageInfoSync, + removeStorage, + removeStorageSync, + clearStorage, + clearStorageSync, + connectSocket, + sendSocketMessage, + closeSocket, + onSocketOpen, + onSocketMessage, + onSocketClose, + onSocketError + } as UniExtApi; +} diff --git a/packages/uni-app-harmony/dist/uni.compiler.js b/packages/uni-app-harmony/dist/uni.compiler.js index b1a22757a95..cb400d0375f 100644 --- a/packages/uni-app-harmony/dist/uni.compiler.js +++ b/packages/uni-app-harmony/dist/uni.compiler.js @@ -57,8 +57,6 @@ var ExternalModuls = [ type: "extapi", plugin: "uni-verify", apis: [ - "getUniverifyManager", - "getUniVerifyManager" ], version: "1.0.0" } @@ -111,8 +109,6 @@ var ExternalModulsX = [ type: "extapi", plugin: "uni-verify", apis: [ - "getUniverifyManager", - "getUniVerifyManager" ], version: "1.0.0" } diff --git a/packages/uni-app-harmony/src/compiler/constants.ts b/packages/uni-app-harmony/src/compiler/constants.ts index b99facd880e..ab1214fae19 100644 --- a/packages/uni-app-harmony/src/compiler/constants.ts +++ b/packages/uni-app-harmony/src/compiler/constants.ts @@ -50,4 +50,8 @@ export const ExtApiBlackListX = [ // 'uni-chooseMedia', ] -export const ExtApiBlackList = ['uni-loadFontFace', 'uni-getElementById'] +export const ExtApiBlackList = [ + 'uni-loadFontFace', + 'uni-getElementById', + 'uni-document', +] diff --git a/packages/uni-app-harmony/src/compiler/external-modules-x.json b/packages/uni-app-harmony/src/compiler/external-modules-x.json index 7ebbeca5c40..585d2212560 100644 --- a/packages/uni-app-harmony/src/compiler/external-modules-x.json +++ b/packages/uni-app-harmony/src/compiler/external-modules-x.json @@ -44,10 +44,7 @@ { "type": "extapi", "plugin": "uni-verify", - "apis": [ - "getUniverifyManager", - "getUniVerifyManager" - ], + "apis": [], "version": "1.0.0" } ] diff --git a/packages/uni-app-harmony/src/compiler/external-modules.json b/packages/uni-app-harmony/src/compiler/external-modules.json index 7ebbeca5c40..585d2212560 100644 --- a/packages/uni-app-harmony/src/compiler/external-modules.json +++ b/packages/uni-app-harmony/src/compiler/external-modules.json @@ -44,10 +44,7 @@ { "type": "extapi", "plugin": "uni-verify", - "apis": [ - "getUniverifyManager", - "getUniVerifyManager" - ], + "apis": [], "version": "1.0.0" } ]
188f650cd6196ddabfe34645132ea7d8eba20134
2022-11-15 09:28:03
fxy060608
refactor(h5): async component
false
async component
refactor
diff --git a/packages/uni-h5/src/framework/setup/app.ts b/packages/uni-h5/src/framework/setup/app.ts index 1ac251afcb4..d68da91e51d 100644 --- a/packages/uni-h5/src/framework/setup/app.ts +++ b/packages/uni-h5/src/framework/setup/app.ts @@ -16,17 +16,12 @@ export function getApp() { export function initApp(vm: ComponentPublicInstance) { appVm = vm - if (!appVm.$.appContext.app.component(AsyncLoadingComponent.name)) { - appVm.$.appContext.app.component( - AsyncLoadingComponent.name, - AsyncLoadingComponent - ) + const app = appVm.$.appContext.app + if (!app.component(AsyncLoadingComponent.name)) { + app.component(AsyncLoadingComponent.name, AsyncLoadingComponent) } - if (!appVm.$.appContext.app.component(AsyncErrorComponent.name)) { - appVm.$.appContext.app.component( - AsyncErrorComponent.name, - AsyncErrorComponent - ) + if (!app.component(AsyncErrorComponent.name)) { + app.component(AsyncErrorComponent.name, AsyncErrorComponent) } initAppVm(appVm) defineGlobalData(appVm)
3bab6ee73a51b899186aab936636c9d953008920
2022-04-18 17:40:03
fxy060608
chore: build
false
build
chore
diff --git a/packages/uni-mp-baidu/dist/uni.compiler.js b/packages/uni-mp-baidu/dist/uni.compiler.js index 42e62148076..3af0b8657b2 100644 --- a/packages/uni-mp-baidu/dist/uni.compiler.js +++ b/packages/uni-mp-baidu/dist/uni.compiler.js @@ -81,6 +81,14 @@ const miniProgram = { dynamicSlotNames: false, }, directive: 's-', + lazyElement: { + editor: [ + { + name: 'on', + arg: ['ready'], + }, + ], + }, component: { dir: COMPONENTS_DIR, }, diff --git a/packages/uni-mp-vue/dist/vue.runtime.esm.js b/packages/uni-mp-vue/dist/vue.runtime.esm.js index e9d73c74a8f..fc2cbb12070 100644 --- a/packages/uni-mp-vue/dist/vue.runtime.esm.js +++ b/packages/uni-mp-vue/dist/vue.runtime.esm.js @@ -5396,20 +5396,12 @@ function vOn(value, key) { } else { // add - mpInstance[name] = createInvoker(name, value, instance, mpInstance); + mpInstance[name] = createInvoker(value, instance); } return name; } -const editorReady = 'eReady'; -function createInvoker(name, initialValue, instance, mpInstance) { +function createInvoker(initialValue, instance) { const invoker = (e) => { - const dataset = e.target && e.target.dataset; - // TODO 临时解决 editor ready 事件可能错乱的问题 https://github.com/dcloudio/uni-app/issues/3406 - if (mpInstance && dataset && dataset[editorReady]) { - if (invoker.id !== dataset[editorReady]) { - return mpInstance[dataset[editorReady]](e); - } - } patchMPEvent(e); let args = [e]; if (e.detail && e.detail.__args__) { @@ -5418,7 +5410,12 @@ function createInvoker(name, initialValue, instance, mpInstance) { const eventValue = invoker.value; const invoke = () => callWithAsyncErrorHandling(patchStopImmediatePropagation(e, eventValue), instance, 5 /* NATIVE_EVENT_HANDLER */, args); // 冒泡事件触发时,启用延迟策略,避免同一批次的事件执行时机不正确,对性能可能有略微影响 https://github.com/dcloudio/uni-app/issues/3228 - const eventSync = dataset && dataset.eventsync; + const eventTarget = e.target; + const eventSync = eventTarget + ? eventTarget.dataset + ? eventTarget.dataset.eventsync === 'true' + : false + : false; if (bubbles.includes(e.type) && !eventSync) { setTimeout(invoke); } @@ -5426,7 +5423,6 @@ function createInvoker(name, initialValue, instance, mpInstance) { return invoke(); } }; - invoker.id = name; invoker.value = initialValue; return invoker; } diff --git a/packages/uni-shared/dist/uni-shared.cjs.js b/packages/uni-shared/dist/uni-shared.cjs.js index 52b3e016a9c..d7942868613 100644 --- a/packages/uni-shared/dist/uni-shared.cjs.js +++ b/packages/uni-shared/dist/uni-shared.cjs.js @@ -110,6 +110,7 @@ const NVUE_BUILT_IN_TAGS = [ 'richtext', 'recycle-list', 'u-scalable', + 'barcode', ]; const NVUE_U_BUILT_IN_TAGS = [ 'u-text', diff --git a/packages/uni-shared/dist/uni-shared.es.js b/packages/uni-shared/dist/uni-shared.es.js index 803e1eb4bff..76aa48da46c 100644 --- a/packages/uni-shared/dist/uni-shared.es.js +++ b/packages/uni-shared/dist/uni-shared.es.js @@ -106,6 +106,7 @@ const NVUE_BUILT_IN_TAGS = [ 'richtext', 'recycle-list', 'u-scalable', + 'barcode', ]; const NVUE_U_BUILT_IN_TAGS = [ 'u-text',
edf66d8559729736898986353d4fae659ef7b805
2024-11-26 16:44:47
fxy060608
wip(mp): 调整sourcemap
false
调整sourcemap
wip
diff --git a/packages/uni-mp-vite/src/plugin/build.ts b/packages/uni-mp-vite/src/plugin/build.ts index 82b3b8f1cc2..df54c36ed05 100644 --- a/packages/uni-mp-vite/src/plugin/build.ts +++ b/packages/uni-mp-vite/src/plugin/build.ts @@ -9,8 +9,10 @@ import { M, dynamicImportPolyfill, emptyDir, + enableSourceMap, hasJsonFile, isCSSRequest, + isEnableConsole, isMiniProgramAssetFile, normalizeMiniProgramFilename, normalizePath, @@ -45,7 +47,8 @@ export function createBuildOptions( ): BuildOptions { const { renderDynamicImport } = dynamicImportPolyfill() return { - // sourcemap: 'inline', // TODO + // TODO 待优化,不同小程序平台sourcemap处理逻辑可能不同 + sourcemap: isEnableConsole() && enableSourceMap(), // target: ['chrome53'], // 由小程序自己启用 es6 编译 emptyOutDir: false, // 不清空输出目录,否则会影响自定义的一些文件输出,比如wxml lib: { @@ -57,6 +60,26 @@ export function createBuildOptions( rollupOptions: { input: parseRollupInput(inputDir, platform), output: { + sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => { + let [, modulePath] = relativeSourcePath.split('/node_modules/') + if (modulePath) { + return `node_modules/${modulePath}` + } + let [, base64] = relativeSourcePath.split('/uniPage:/') + if (base64) { + return parseVirtualPagePath(base64) + '?type=page' + } + ;[, base64] = relativeSourcePath.split('/uniComponent:/') + if (base64) { + return parseVirtualComponentPath(base64) + '?type=component' + } + return normalizePath( + path.relative( + process.env.UNI_INPUT_DIR, + path.resolve(path.dirname(sourcemapPath), relativeSourcePath) + ) + ) + }, entryFileNames(chunk) { if (chunk.name === 'main') { return 'app.js' diff --git a/packages/uni-mp-vite/src/plugins/mainJs.ts b/packages/uni-mp-vite/src/plugins/mainJs.ts index dbc57c50957..2c7c20c1d8f 100644 --- a/packages/uni-mp-vite/src/plugins/mainJs.ts +++ b/packages/uni-mp-vite/src/plugins/mainJs.ts @@ -1,10 +1,10 @@ import { PAGES_JSON_JS, defineUniMainJsPlugin, + enableSourceMap, parseProgram, transformDynamicImports, updateMiniProgramGlobalComponents, - withSourcemap, } from '@dcloudio/uni-cli-shared' import type { SFCScriptCompileOptions } from '@vue/compiler-sfc' import { dynamicImport } from './usingComponents' @@ -41,7 +41,7 @@ export function uniMainJsPlugin( ) const { code, map } = await transformDynamicImports(source, imports, { id, - sourceMap: withSourcemap(opts.resolvedConfig), + sourceMap: enableSourceMap(), dynamicImport, }) return { diff --git a/packages/uni-mp-vite/src/plugins/runtimeHooks.ts b/packages/uni-mp-vite/src/plugins/runtimeHooks.ts index d3e983e091b..d408d76ebf6 100644 --- a/packages/uni-mp-vite/src/plugins/runtimeHooks.ts +++ b/packages/uni-mp-vite/src/plugins/runtimeHooks.ts @@ -1,22 +1,18 @@ -import type { Plugin, ResolvedConfig } from 'vite' +import type { Plugin } from 'vite' import { MINI_PROGRAM_PAGE_RUNTIME_HOOKS } from '@dcloudio/uni-shared' import { + enableSourceMap, isUniPageSetupAndTs, isUniPageSfcFile, - withSourcemap, } from '@dcloudio/uni-cli-shared' import { MagicString } from '@vue/compiler-sfc' type RuntimeHooks = keyof typeof MINI_PROGRAM_PAGE_RUNTIME_HOOKS export function uniRuntimeHooksPlugin(): Plugin { - let resolvedConfig: ResolvedConfig return { name: 'uni:mp-runtime-hooks', enforce: 'post', - configResolved(config) { - resolvedConfig = config - }, async transform(source, id) { const isSetupJs = isUniPageSfcFile(id) const isSetupTs = !isSetupJs && isUniPageSetupAndTs(id) @@ -59,7 +55,7 @@ export function uniRuntimeHooksPlugin(): Plugin { } return { code: source, - map: withSourcemap(resolvedConfig) + map: enableSourceMap() ? new MagicString(source).generateMap() : { mappings: '' }, } diff --git a/packages/uni-mp-vite/src/plugins/usingComponents.ts b/packages/uni-mp-vite/src/plugins/usingComponents.ts index 164c3e4c6f0..b5066781486 100644 --- a/packages/uni-mp-vite/src/plugins/usingComponents.ts +++ b/packages/uni-mp-vite/src/plugins/usingComponents.ts @@ -1,8 +1,9 @@ import path from 'path' -import type { Plugin, ResolvedConfig } from 'vite' +import type { Plugin } from 'vite' import type { SFCScriptCompileOptions } from '@vue/compiler-sfc' import { EXTNAME_VUE, + enableSourceMap, isAppVue, isMiniProgramPageFile, parseMainDescriptor, @@ -15,7 +16,6 @@ import { updateMiniProgramComponentsByMainFilename, updateMiniProgramComponentsByScriptFilename, updateMiniProgramComponentsByTemplateFilename, - withSourcemap, } from '@dcloudio/uni-cli-shared' import { virtualComponentPath, virtualPagePath } from './entry' import type { CustomPluginOptions, ResolvedId } from 'rollup' @@ -34,19 +34,15 @@ export function uniUsingComponentsPlugin( }) } const inputDir = process.env.UNI_INPUT_DIR - let resolvedConfig: ResolvedConfig return { name: 'uni:mp-using-component', enforce: 'post', - configResolved(config) { - resolvedConfig = config - }, async transform(source, id) { const { filename, query } = parseVueRequest(id) if (isAppVue(filename)) { return null } - const sourceMap = withSourcemap(resolvedConfig) + const sourceMap = enableSourceMap() const dynamicImportOptions = { id, sourceMap,
c84473123410ebb4b596b4ba939e1ed82b3ec329
2023-01-31 16:12:54
DCloud_LXH
feat(app-plus): 音频api立即触发timeupdate事件
false
音频api立即触发timeupdate事件
feat
diff --git a/packages/uni-app-plus/src/service/api/context/createInnerAudioContext.ts b/packages/uni-app-plus/src/service/api/context/createInnerAudioContext.ts index 25c4cfcc1ae..88cb5ca1041 100644 --- a/packages/uni-app-plus/src/service/api/context/createInnerAudioContext.ts +++ b/packages/uni-app-plus/src/service/api/context/createInnerAudioContext.ts @@ -51,6 +51,7 @@ const evts: AudioEvnets[] = [ ] const AUDIO_DEFAULT_SESSION_CATEGORY: string = 'playback' +const TIME_UPDATE = 200 const initStateChage = (audioId: string) => { const audio = audios[audioId] @@ -209,12 +210,13 @@ const onAudioStateChange = ({ emit(audio, state, errMsg, errCode) if (state === 'play') { const oldCurrentTime = audio.currentTime + emit(audio, 'timeUpdate' as any) audio.__timing = setInterval(() => { const currentTime = audio.currentTime if (currentTime !== oldCurrentTime) { emit(audio, 'timeUpdate' as any) } - }, 200) + }, TIME_UPDATE) } else if (state === 'pause' || state === 'stop' || state === 'error') { clearInterval(audio.__timing!) } diff --git a/packages/uni-app-plus/src/service/api/context/getBackgroundAudioManager.ts b/packages/uni-app-plus/src/service/api/context/getBackgroundAudioManager.ts index b5b470345fd..9a762966fe1 100644 --- a/packages/uni-app-plus/src/service/api/context/getBackgroundAudioManager.ts +++ b/packages/uni-app-plus/src/service/api/context/getBackgroundAudioManager.ts @@ -85,6 +85,7 @@ const events: Events[] = ['play', 'pause', 'ended', 'stop', 'canplay'] function startTimeUpdateTimer() { stopTimeUpdateTimer() + onBackgroundAudioStateChange({ state: 'timeUpdate' }) timeUpdateTimer = setInterval(() => { onBackgroundAudioStateChange({ state: 'timeUpdate' }) }, TIME_UPDATE)
0aba5c8650abca0761cdd7fdd5ec034ac285e2f0
2022-05-11 17:38:35
qiang
chore: build
false
build
chore
diff --git a/packages/uni-app-plus/dist/style.css b/packages/uni-app-plus/dist/style.css index 8720baee944..9020193fa93 100644 --- a/packages/uni-app-plus/dist/style.css +++ b/packages/uni-app-plus/dist/style.css @@ -1 +1 @@ -*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(26,173,25,.6);border-color:rgba(26,173,25,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0px;left:0px;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled:before{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{color:inherit;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all;box-sizing:content-box!important}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} +*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(26,173,25,.6);border-color:rgba(26,173,25,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0px;left:0px;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled:before{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{color:inherit;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index 9a7a10d7be8..e967edcea37 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -1,3 +1,3 @@ -(function(Gn){typeof define=="function"&&define.amd?define(Gn):Gn()})(function(){"use strict";var Gn="",KT="",GT="",Lr={exports:{}},ha={exports:{}},ga={exports:{}},$h=ga.exports={version:"2.6.12"};typeof __e=="number"&&(__e=$h);var pa={exports:{}};pa.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")(),typeof __g=="number"&&(__g=window);var zh=ga.exports,Ll="__core-js_shared__",Pl=window[Ll]||(window[Ll]={});(ha.exports=function(e,t){return Pl[e]||(Pl[e]=t!==void 0?t:{})})("versions",[]).push({version:zh.version,mode:"window",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"});var Uh=0,Hh=Math.random(),Jn=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++Uh+Hh).toString(36))},Qn=ha.exports("wks"),Wh=Jn,eo=pa.exports.Symbol,Nl=typeof eo=="function",Vh=Lr.exports=function(e){return Qn[e]||(Qn[e]=Nl&&eo[e]||(Nl?eo:Wh)("Symbol."+e))};Vh.store=Qn;var ma={},to=function(e){return typeof e=="object"?e!==null:typeof e=="function"},jh=to,ro=function(e){if(!jh(e))throw TypeError(e+" is not an object!");return e},_a=function(e){try{return!!e()}catch(t){return!0}},ui=!_a(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Dl=to,io=pa.exports.document,Yh=Dl(io)&&Dl(io.createElement),Bl=function(e){return Yh?io.createElement(e):{}},qh=!ui&&!_a(function(){return Object.defineProperty(Bl("div"),"a",{get:function(){return 7}}).a!=7}),ba=to,Xh=function(e,t){if(!ba(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!ba(i=r.call(e))||typeof(r=e.valueOf)=="function"&&!ba(i=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ba(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")},Fl=ro,Zh=qh,Kh=Xh,Gh=Object.defineProperty;ma.f=ui?Object.defineProperty:function(t,r,i){if(Fl(t),r=Kh(r,!0),Fl(i),Zh)try{return Gh(t,r,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[r]=i.value),t};var $l=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},Jh=ma,Qh=$l,Pr=ui?function(e,t,r){return Jh.f(e,t,Qh(1,r))}:function(e,t,r){return e[t]=r,e},ao=Lr.exports("unscopables"),no=Array.prototype;no[ao]==null&&Pr(no,ao,{});var eg=function(e){no[ao][e]=!0},tg=function(e,t){return{value:t,done:!!e}},oo={},rg={}.toString,ig=function(e){return rg.call(e).slice(8,-1)},ag=ig,ng=Object("z").propertyIsEnumerable(0)?Object:function(e){return ag(e)=="String"?e.split(""):Object(e)},zl=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},og=ng,sg=zl,wa=function(e){return og(sg(e))},ya={exports:{}},lg={}.hasOwnProperty,xa=function(e,t){return lg.call(e,t)},ug=ha.exports("native-function-to-string",Function.toString),Sa=Pr,Ul=xa,so=Jn("src"),lo=ug,Hl="toString",fg=(""+lo).split(Hl);ga.exports.inspectSource=function(e){return lo.call(e)},(ya.exports=function(e,t,r,i){var a=typeof r=="function";a&&(Ul(r,"name")||Sa(r,"name",t)),e[t]!==r&&(a&&(Ul(r,so)||Sa(r,so,e[t]?""+e[t]:fg.join(String(t)))),e===window?e[t]=r:i?e[t]?e[t]=r:Sa(e,t,r):(delete e[t],Sa(e,t,r)))})(Function.prototype,Hl,function(){return typeof this=="function"&&this[so]||lo.call(this)});var Wl=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},cg=Wl,dg=function(e,t,r){if(cg(e),t===void 0)return e;switch(r){case 1:return function(i){return e.call(t,i)};case 2:return function(i,a){return e.call(t,i,a)};case 3:return function(i,a,n){return e.call(t,i,a,n)}}return function(){return e.apply(t,arguments)}},Ea=ga.exports,vg=Pr,hg=ya.exports,Vl=dg,uo="prototype",je=function(e,t,r){var i=e&je.F,a=e&je.G,n=e&je.S,o=e&je.P,s=e&je.B,u=a?window:n?window[t]||(window[t]={}):(window[t]||{})[uo],l=a?Ea:Ea[t]||(Ea[t]={}),f=l[uo]||(l[uo]={}),v,p,g,y;a&&(r=t);for(v in r)p=!i&&u&&u[v]!==void 0,g=(p?u:r)[v],y=s&&p?Vl(g,window):o&&typeof g=="function"?Vl(Function.call,g):g,u&&hg(u,v,g,e&je.U),l[v]!=g&&vg(l,v,y),o&&f[v]!=g&&(f[v]=g)};window.core=Ea,je.F=1,je.G=2,je.S=4,je.P=8,je.B=16,je.W=32,je.U=64,je.R=128;var fo=je,gg=Math.ceil,pg=Math.floor,jl=function(e){return isNaN(e=+e)?0:(e>0?pg:gg)(e)},mg=jl,_g=Math.min,bg=function(e){return e>0?_g(mg(e),9007199254740991):0},wg=jl,yg=Math.max,xg=Math.min,Sg=function(e,t){return e=wg(e),e<0?yg(e+t,0):xg(e,t)},Eg=wa,Tg=bg,Cg=Sg,Og=function(e){return function(t,r,i){var a=Eg(t),n=Tg(a.length),o=Cg(i,n),s;if(e&&r!=r){for(;n>o;)if(s=a[o++],s!=s)return!0}else for(;n>o;o++)if((e||o in a)&&a[o]===r)return e||o||0;return!e&&-1}},Yl=ha.exports("keys"),Ag=Jn,co=function(e){return Yl[e]||(Yl[e]=Ag(e))},ql=xa,Ig=wa,kg=Og(!1),Mg=co("IE_PROTO"),Rg=function(e,t){var r=Ig(e),i=0,a=[],n;for(n in r)n!=Mg&&ql(r,n)&&a.push(n);for(;t.length>i;)ql(r,n=t[i++])&&(~kg(a,n)||a.push(n));return a},Xl="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Lg=Rg,Pg=Xl,vo=Object.keys||function(t){return Lg(t,Pg)},Ng=ma,Dg=ro,Bg=vo,Fg=ui?Object.defineProperties:function(t,r){Dg(t);for(var i=Bg(r),a=i.length,n=0,o;a>n;)Ng.f(t,o=i[n++],r[o]);return t},Zl=pa.exports.document,$g=Zl&&Zl.documentElement,zg=ro,Ug=Fg,Kl=Xl,Hg=co("IE_PROTO"),ho=function(){},go="prototype",Ta=function(){var e=Bl("iframe"),t=Kl.length,r="<",i=">",a;for(e.style.display="none",$g.appendChild(e),e.src="javascript:",a=e.contentWindow.document,a.open(),a.write(r+"script"+i+"document.F=Object"+r+"/script"+i),a.close(),Ta=a.F;t--;)delete Ta[go][Kl[t]];return Ta()},Wg=Object.create||function(t,r){var i;return t!==null?(ho[go]=zg(t),i=new ho,ho[go]=null,i[Hg]=t):i=Ta(),r===void 0?i:Ug(i,r)},Vg=ma.f,jg=xa,Gl=Lr.exports("toStringTag"),Jl=function(e,t,r){e&&!jg(e=r?e:e.prototype,Gl)&&Vg(e,Gl,{configurable:!0,value:t})},Yg=Wg,qg=$l,Xg=Jl,Ql={};Pr(Ql,Lr.exports("iterator"),function(){return this});var Zg=function(e,t,r){e.prototype=Yg(Ql,{next:qg(1,r)}),Xg(e,t+" Iterator")},Kg=zl,eu=function(e){return Object(Kg(e))},Gg=xa,Jg=eu,tu=co("IE_PROTO"),Qg=Object.prototype,ep=Object.getPrototypeOf||function(e){return e=Jg(e),Gg(e,tu)?e[tu]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Qg:null},po=fo,tp=ya.exports,ru=Pr,iu=oo,rp=Zg,ip=Jl,ap=ep,fi=Lr.exports("iterator"),mo=!([].keys&&"next"in[].keys()),np="@@iterator",au="keys",Ca="values",nu=function(){return this},op=function(e,t,r,i,a,n,o){rp(r,t,i);var s=function(c){if(!mo&&c in v)return v[c];switch(c){case au:return function(){return new r(this,c)};case Ca:return function(){return new r(this,c)}}return function(){return new r(this,c)}},u=t+" Iterator",l=a==Ca,f=!1,v=e.prototype,p=v[fi]||v[np]||a&&v[a],g=p||s(a),y=a?l?s("entries"):g:void 0,m=t=="Array"&&v.entries||p,w,h,b;if(m&&(b=ap(m.call(new e)),b!==Object.prototype&&b.next&&(ip(b,u,!0),typeof b[fi]!="function"&&ru(b,fi,nu))),l&&p&&p.name!==Ca&&(f=!0,g=function(){return p.call(this)}),(mo||f||!v[fi])&&ru(v,fi,g),iu[t]=g,iu[u]=nu,a)if(w={values:l?g:s(Ca),keys:n?g:s(au),entries:y},o)for(h in w)h in v||tp(v,h,w[h]);else po(po.P+po.F*(mo||f),t,w);return w},_o=eg,Oa=tg,ou=oo,sp=wa,lp=op(Array,"Array",function(e,t){this._t=sp(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,Oa(1)):t=="keys"?Oa(0,r):t=="values"?Oa(0,e[r]):Oa(0,[r,e[r]])},"values");ou.Arguments=ou.Array,_o("keys"),_o("values"),_o("entries");for(var su=lp,up=vo,fp=ya.exports,lu=Pr,uu=oo,fu=Lr.exports,cu=fu("iterator"),du=fu("toStringTag"),vu=uu.Array,hu={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},gu=up(hu),bo=0;bo<gu.length;bo++){var Aa=gu[bo],cp=hu[Aa],pu=window[Aa],ur=pu&&pu.prototype,Ia;if(ur&&(ur[cu]||lu(ur,cu,vu),ur[du]||lu(ur,du,Aa),uu[Aa]=vu,cp))for(Ia in su)ur[Ia]||fp(ur,Ia,su[Ia],!0)}function ka(e,t){for(var r=Object.create(null),i=e.split(","),a=0;a<i.length;a++)r[i[a]]=!0;return t?n=>!!r[n.toLowerCase()]:n=>!!r[n]}var dp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vp=ka(dp);function mu(e){return!!e||e===""}var hp=ka("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function wo(e){if(ne(e)){for(var t={},r=0;r<e.length;r++){var i=e[r],a=Ee(i)?_u(i):wo(i);if(a)for(var n in a)t[n]=a[n]}return t}else{if(Ee(e))return e;if(We(e))return e}}var gp=/;(?![^(]*\))/g,pp=/:(.+)/;function _u(e){var t={};return e.split(gp).forEach(r=>{if(r){var i=r.split(pp);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function mp(e){var t="";if(!e||Ee(e))return t;for(var r in e){var i=e[r],a=r.startsWith("--")?r:Je(r);(Ee(i)||typeof i=="number"&&hp(a))&&(t+="".concat(a,":").concat(i,";"))}return t}function yo(e){var t="";if(Ee(e))t=e;else if(ne(e))for(var r=0;r<e.length;r++){var i=yo(e[r]);i&&(t+=i+" ")}else if(We(e))for(var a in e)e[a]&&(t+=a+" ");return t.trim()}var Se={},ci=[],mt=()=>{},_p=()=>!1,bp=/^on[^a-z]/,Ma=e=>bp.test(e),xo=e=>e.startsWith("onUpdate:"),ce=Object.assign,So=(e,t)=>{var r=e.indexOf(t);r>-1&&e.splice(r,1)},wp=Object.prototype.hasOwnProperty,ie=(e,t)=>wp.call(e,t),ne=Array.isArray,di=e=>vi(e)==="[object Map]",yp=e=>vi(e)==="[object Set]",oe=e=>typeof e=="function",Ee=e=>typeof e=="string",Eo=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",bu=e=>We(e)&&oe(e.then)&&oe(e.catch),xp=Object.prototype.toString,vi=e=>xp.call(e),To=e=>vi(e).slice(8,-1),_t=e=>vi(e)==="[object Object]",Co=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ra=ka(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),La=e=>{var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}},Sp=/-(\w)/g,Ht=La(e=>e.replace(Sp,(t,r)=>r?r.toUpperCase():"")),Ep=/\B([A-Z])/g,Je=La(e=>e.replace(Ep,"-$1").toLowerCase()),Oo=La(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ao=La(e=>e?"on".concat(Oo(e)):""),hi=(e,t)=>!Object.is(e,t),Io=(e,t)=>{for(var r=0;r<e.length;r++)e[r](t)},Pa=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Tp=e=>{var t=parseFloat(e);return isNaN(t)?e:t},wu,Cp=()=>wu||(wu=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{}),gi=` -`,yu=44,Na="#007aff",Op=/^([a-z-]+:)?\/\//i,Ap=/^data:.*,.*/,xu="wxs://",Su="json://",Ip="wxsModules",kp="renderjsModules",Mp="onPageScroll",Rp="onReachBottom",Lp="onWxsInvokeCallMethod",ko=0;function Mo(e){var t=Date.now(),r=ko?t-ko:0;ko=t;for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return"[".concat(t,"][").concat(r,"ms][").concat(e,"]\uFF1A").concat(a.map(o=>JSON.stringify(o)).join(" "))}function Pp(e){var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}}function Np(e){return Pp(e)}function Dp(e){return e.indexOf("/")===0}function Ro(e){return Dp(e)?e:"/"+e}function pi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r;return function(){if(e){for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];r=e.apply(t,a),e=null}return r}}function Eu(e,t){if(!!Ee(t)){t=t.replace(/\[(\d+)\]/g,".$1");var r=t.split("."),i=r[0];return e||(e={}),r.length===1?e[i]:Eu(e[i],r.slice(1).join("."))}}function Tu(e){return Ht(e.substring(5))}var Bp=pi(()=>{var e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(i,a){if(i.startsWith("data-")&&this.tagName.startsWith("UNI-")){var n=this.__uniDataset||(this.__uniDataset={});n[Tu(i)]=a}t.call(this,i,a)};var r=e.removeAttribute;e.removeAttribute=function(i){this.__uniDataset&&i.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[Tu(i)],r.call(this,i)}});function Lo(e){return ce({},e.dataset,e.__uniDataset)}function mi(e){return{passive:e}}function Po(e){var{id:t,offsetTop:r,offsetLeft:i}=e;return{id:t,dataset:Lo(e),offsetTop:r,offsetLeft:i}}function Fp(e,t,r){var i=document.fonts;if(i){var a=new FontFace(e,t,r);return a.load().then(()=>{i.add&&i.add(a)})}return new Promise(n=>{var o=document.createElement("style"),s=[];if(r){var{style:u,weight:l,stretch:f,unicodeRange:v,variant:p,featureSettings:g}=r;u&&s.push("font-style:".concat(u)),l&&s.push("font-weight:".concat(l)),f&&s.push("font-stretch:".concat(f)),v&&s.push("unicode-range:".concat(v)),p&&s.push("font-variant:".concat(p)),g&&s.push("font-feature-settings:".concat(g))}o.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(s.join(";"),"}"),document.head.appendChild(o),n()})}function $p(e,t,r){if(Ee(e)){var i=document.querySelector(e);if(i){var{height:a,top:n}=i.getBoundingClientRect();e=n+window.pageYOffset,r&&(e-=a)}}e<0&&(e=0);var o=document.documentElement,{clientHeight:s,scrollHeight:u}=o;if(e=Math.min(e,u-s),t===0){o.scrollTop=document.body.scrollTop=e;return}if(window.scrollY!==e){var l=f=>{if(f<=0){window.scrollTo(0,e);return}var v=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+v/f*10),l(f-10)})};l(t)}}function zp(){return typeof __channelId__=="string"&&__channelId__}function Up(e,t){switch(To(t)){case"Function":return"function() { [native code] }";default:return t}}function Hp(e,t,r){if(zp())return r.push(t.replace("at ","uni-app:///")),console[e].apply(console,r);var i=r.map(function(a){var n=vi(a).toLowerCase();if(["[object object]","[object array]","[object module]"].indexOf(n)!==-1)try{a="---BEGIN:JSON---"+JSON.stringify(a,Up)+"---END:JSON---"}catch(s){a=n}else if(a===null)a="---NULL---";else if(a===void 0)a="---UNDEFINED---";else{var o=To(a).toUpperCase();o==="NUMBER"||o==="BOOLEAN"?a="---BEGIN:"+o+"---"+a+"---END:"+o+"---":a=String(a)}return a});return i.join("---COMMA---")+" "+t}function Wp(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var n=Hp(e,t,i);n&&console[e](n)}function Nr(e){if(typeof e=="function"){if(window.plus)return e();document.addEventListener("plusready",e)}}function Vp(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(Oo(Ht(e)))}var Cu=/(?:Once|Passive|Capture)$/;function No(e){var t;if(Cu.test(e)){t={};for(var r;r=e.match(Cu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Je(e.slice(2)),t]}var Do=(()=>({stop:1,prevent:1<<1,self:1<<2}))(),Ou="class",Bo="style",jp="innerHTML",Yp="textContent",Da=".vShow",Au=".vOwnerId",Iu=".vRenderjs",Fo="change:",ku=1,qp=2,Xp=3,Zp=4,Kp=5,Gp=6,Jp=7,Qp=8,em=9,tm=10,rm=12,im=15,am=20;function nm(e,t,r){var{clearTimeout:i,setTimeout:a}=r,n,o=function(){i(n);var s=()=>e.apply(this,arguments);n=a(s,t)};return o.cancel=function(){i(n)},o}var Mu=function(){};Mu.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function a(){i.off(e,a),t.apply(r,arguments)}return a._=t,this.on(e,a,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,a=r.length;for(i;i<a;i++)r[i].fn.apply(r[i].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),i=r[e],a=[];if(i&&t)for(var n=0,o=i.length;n<o;n++)i[n].fn!==t&&i[n].fn._!==t&&a.push(i[n]);return a.length?r[e]=a:delete r[e],this}};var Ru=Mu,om=Array.isArray,sm=e=>e!==null&&typeof e=="object",lm=["{","}"];class um{constructor(){this._caches=Object.create(null)}interpolate(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lm;if(!r)return[t];var a=this._caches[t];return a||(a=dm(t,i),this._caches[t]=a),vm(a,r)}}var fm=/^(?:\d)+/,cm=/^(?:\w)+/;function dm(e,t){for(var[r,i]=t,a=[],n=0,o="";n<e.length;){var s=e[n++];if(s===r){o&&a.push({type:"text",value:o}),o="";var u="";for(s=e[n++];s!==void 0&&s!==i;)u+=s,s=e[n++];var l=s===i,f=fm.test(u)?"list":l&&cm.test(u)?"named":"unknown";a.push({value:u,type:f})}else o+=s}return o&&a.push({type:"text",value:o}),a}function vm(e,t){var r=[],i=0,a=om(t)?"list":sm(t)?"named":"unknown";if(a==="unknown")return r;for(;i<e.length;){var n=e[i];switch(n.type){case"text":r.push(n.value);break;case"list":r.push(t[parseInt(n.value,10)]);break;case"named":a==="named"&&r.push(t[n.value]);break}i++}return r}var _i="zh-Hans",Ba="zh-Hant",Wt="en",$o="fr",zo="es",hm=Object.prototype.hasOwnProperty,Lu=(e,t)=>hm.call(e,t),gm=new um;function pm(e,t){return!!t.find(r=>e.indexOf(r)!==-1)}function mm(e,t){return t.find(r=>e.indexOf(r)===0)}function Pu(e,t){if(!!e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return _i;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?_i:e.indexOf("-hant")>-1||pm(e,["-tw","-hk","-mo","-cht"])?Ba:_i;var r=mm(e,[Wt,$o,zo]);if(r)return r}}class _m{constructor(t){var{locale:r,fallbackLocale:i,messages:a,watcher:n,formater:o}=t;this.locale=Wt,this.fallbackLocale=Wt,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=o||gm,this.messages=a||{},this.setLocale(r||Wt),n&&this.watchLocale(n)}setLocale(t){var r=this.locale;this.locale=Pu(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach(i=>{i(this.locale,r)})}getLocale(){return this.locale}watchLocale(t){var r=this.watchers.push(t)-1;return()=>{this.watchers.splice(r,1)}}add(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=this.messages[t];a?i?Object.assign(a,r):Object.keys(r).forEach(n=>{Lu(a,n)||(a[n]=r[n])}):this.messages[t]=r}f(t,r,i){return this.formater.interpolate(t,r,i).join("")}t(t,r,i){var a=this.message;return typeof r=="string"?(r=Pu(r,this.messages),r&&(a=this.messages[r])):i=r,Lu(a,t)?this.formater.interpolate(a[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}function bm(e,t){e.$watchLocale?e.$watchLocale(r=>{t.setLocale(r)}):e.$watch(()=>e.$locale,r=>{t.setLocale(r)})}function wm(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof window!="undefined"&&window.getLocale?window.getLocale():Wt}function ym(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;typeof e!="string"&&([e,t]=[t,e]),typeof e!="string"&&(e=wm()),typeof r!="string"&&(r=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||Wt);var a=new _m({locale:e,fallbackLocale:r,messages:t,watcher:i}),n=(o,s)=>{if(typeof getApp!="function")n=function(l,f){return a.t(l,f)};else{var u=!1;n=function(l,f){var v=getApp().$vm;return v&&(v.$locale,u||(u=!0,bm(v,a))),a.t(l,f)}}return n(o,s)};return{i18n:a,f(o,s,u){return a.f(o,s,u)},t(o,s){return n(o,s)},add(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.add(o,s,u)},watch(o){return a.watchLocale(o)},getLocale(){return a.getLocale()},setLocale(o){return a.setLocale(o)}}}var xm=pi(()=>typeof __uniConfig!="undefined"&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length),bi;function Qe(){if(!bi){var e;if(typeof getApp=="function"?e=weex.requireModule("plus").getLanguage():e=plus.webview.currentWebview().getStyle().locale,bi=ym(e),xm()){var t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(r=>bi.add(r,__uniConfig.locales[r])),bi.setLocale(e)}}return bi}function bt(e,t,r){return t.reduce((i,a,n)=>(i[e+a]=r[n],i),{})}var Sm=pi(()=>{var e="uni.picker.",t=["done","cancel"];Qe().add(Wt,bt(e,t,["Done","Cancel"]),!1),Qe().add(zo,bt(e,t,["OK","Cancelar"]),!1),Qe().add($o,bt(e,t,["OK","Annuler"]),!1),Qe().add(_i,bt(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1),Qe().add(Ba,bt(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1)}),Em=pi(()=>{var e="uni.button.",t=["feedback.title","feedback.send"];Qe().add(Wt,bt(e,t,["feedback","send"]),!1),Qe().add(zo,bt(e,t,["realimentaci\xF3n","enviar"]),!1),Qe().add($o,bt(e,t,["retour d'information","envoyer"]),!1),Qe().add(_i,bt(e,t,["\u95EE\u9898\u53CD\u9988","\u53D1\u9001"]),!1),Qe().add(Ba,bt(e,t,["\u554F\u984C\u53CD\u994B","\u767C\u9001"]),!1)});function Tm(e){var t=new Ru;return{on(r,i){return t.on(r,i)},once(r,i){return t.once(r,i)},off(r,i){return t.off(r,i)},emit(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return t.emit(r,...a)},subscribe(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t[a?"once":"on"]("".concat(e,".").concat(r),i)},unsubscribe(r,i){t.off("".concat(e,".").concat(r),i)},subscribeHandler(r,i,a){t.emit("".concat(e,".").concat(r),i,a)}}}var Nu="invokeViewApi",Du="invokeServiceApi",Cm=1,Om=(e,t,r)=>{var{subscribe:i,publishHandler:a}=UniViewJSBridge,n=r?Cm++:0;r&&i(Du+"."+n,r,!0),a(Du,{id:n,name:e,args:t})},Fa=Object.create(null);function $a(e,t){return e+"."+t}function Am(e,t){UniViewJSBridge.subscribe($a(e,Nu),t?t(Bu):Bu)}function wt(e,t,r){t=$a(e,t),Fa[t]||(Fa[t]=r)}function Im(e,t){t=$a(e,t),delete Fa[t]}function Bu(e,t){var{id:r,name:i,args:a}=e;i=$a(t,i);var n=s=>{r&&UniViewJSBridge.publishHandler(Nu+"."+r,s)},o=Fa[i];o?o(a,n):n({})}var km=ce(Tm("service"),{invokeServiceMethod:Om}),Mm=350,Fu=10,za=mi(!0),wi;function yi(){wi&&(clearTimeout(wi),wi=null)}var $u=0,zu=0;function Rm(e){if(yi(),e.touches.length===1){var{pageX:t,pageY:r}=e.touches[0];$u=t,zu=r,wi=setTimeout(function(){var i=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});i.touches=e.touches,i.changedTouches=e.changedTouches,e.target.dispatchEvent(i)},Mm)}}function Lm(e){if(!!wi){if(e.touches.length!==1)return yi();var{pageX:t,pageY:r}=e.touches[0];if(Math.abs(t-$u)>Fu||Math.abs(r-zu)>Fu)return yi()}}function Pm(){window.addEventListener("touchstart",Rm,za),window.addEventListener("touchmove",Lm,za),window.addEventListener("touchend",yi,za),window.addEventListener("touchcancel",yi,za)}function Uu(e,t){var r=Number(e);return isNaN(r)?t:r}function Nm(){var e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90,r=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,i=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r;return i}function Dm(){var e=__uniConfig.globalStyle||{},t=Uu(e.rpxCalcMaxDeviceWidth,960),r=Uu(e.rpxCalcBaseDeviceWidth,375);function i(){var a=Nm();a=a<=t?a:r,document.documentElement.style.fontSize=a/23.4375+"px"}i(),document.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i),window.addEventListener("resize",i)}function Bm(){Dm(),Bp(),Pm()}var Fm=_a,$m=function(e,t){return!!e&&Fm(function(){t?e.call(null,function(){},1):e.call(null)})},Uo=fo,zm=Wl,Hu=eu,Wu=_a,Ho=[].sort,Vu=[1,2,3];Uo(Uo.P+Uo.F*(Wu(function(){Vu.sort(void 0)})||!Wu(function(){Vu.sort(null)})||!$m(Ho)),"Array",{sort:function(t){return t===void 0?Ho.call(Hu(this)):Ho.call(Hu(this),zm(t))}});var yt;class Um{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.active=!0,this.effects=[],this.cleanups=[],!t&&yt&&(this.parent=yt,this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}run(t){if(this.active){var r=yt;try{return yt=this,t()}finally{yt=r}}}on(){yt=this}off(){yt=this.parent}stop(t){if(this.active){var r,i;for(r=0,i=this.effects.length;r<i;r++)this.effects[r].stop();for(r=0,i=this.cleanups.length;r<i;r++)this.cleanups[r]();if(this.scopes)for(r=0,i=this.scopes.length;r<i;r++)this.scopes[r].stop(!0);if(this.parent&&!t){var a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.active=!1}}}function Hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yt;t&&t.active&&t.effects.push(e)}var Wo=e=>{var t=new Set(e);return t.w=0,t.n=0,t},ju=e=>(e.w&Vt)>0,Yu=e=>(e.n&Vt)>0,Wm=e=>{var{deps:t}=e;if(t.length)for(var r=0;r<t.length;r++)t[r].w|=Vt},Vm=e=>{var{deps:t}=e;if(t.length){for(var r=0,i=0;i<t.length;i++){var a=t[i];ju(a)&&!Yu(a)?a.delete(e):t[r++]=a,a.w&=~Vt,a.n&=~Vt}t.length=r}},Vo=new WeakMap,xi=0,Vt=1,jo=30,ct,fr=Symbol(""),Yo=Symbol("");class qo{constructor(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Hm(this,i)}run(){if(!this.active)return this.fn();for(var t=ct,r=jt;t;){if(t===this)return;t=t.parent}try{return this.parent=ct,ct=this,jt=!0,Vt=1<<++xi,xi<=jo?Wm(this):qu(this),this.fn()}finally{xi<=jo&&Vm(this),Vt=1<<--xi,ct=this.parent,jt=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ct===this?this.deferStop=!0:this.active&&(qu(this),this.onStop&&this.onStop(),this.active=!1)}}function qu(e){var{deps:t}=e;if(t.length){for(var r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var jt=!0,Xu=[];function Dr(){Xu.push(jt),jt=!1}function Br(){var e=Xu.pop();jt=e===void 0?!0:e}function et(e,t,r){if(jt&&ct){var i=Vo.get(e);i||Vo.set(e,i=new Map);var a=i.get(r);a||i.set(r,a=Wo()),Zu(a)}}function Zu(e,t){var r=!1;xi<=jo?Yu(e)||(e.n|=Vt,r=!ju(e)):r=!e.has(ct),r&&(e.add(ct),ct.deps.push(e))}function Lt(e,t,r,i,a,n){var o=Vo.get(e);if(!!o){var s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&ne(e))o.forEach((f,v)=>{(v==="length"||v>=i)&&s.push(f)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":ne(e)?Co(r)&&s.push(o.get("length")):(s.push(o.get(fr)),di(e)&&s.push(o.get(Yo)));break;case"delete":ne(e)||(s.push(o.get(fr)),di(e)&&s.push(o.get(Yo)));break;case"set":di(e)&&s.push(o.get(fr));break}if(s.length===1)s[0]&&Xo(s[0]);else{var u=[];for(var l of s)l&&u.push(...l);Xo(Wo(u))}}}function Xo(e,t){for(var r of ne(e)?e:[...e])(r!==ct||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}var jm=ka("__proto__,__v_isRef,__isVue"),Ku=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Eo)),Ym=Zo(),qm=Zo(!1,!0),Xm=Zo(!0),Gu=Zm();function Zm(){var e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(){for(var r=me(this),i=0,a=this.length;i<a;i++)et(r,"get",i+"");for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var u=r[t](...o);return u===-1||u===!1?r[t](...o.map(me)):u}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(){Dr();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var n=me(this)[t].apply(this,i);return Br(),n}}),e}function Zo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i,a,n){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&n===(e?t?c0:sf:t?of:nf).get(i))return i;var o=ne(i);if(!e&&o&&ie(Gu,a))return Reflect.get(Gu,a,n);var s=Reflect.get(i,a,n);if((Eo(a)?Ku.has(a):jm(a))||(e||et(i,"get",a),t))return s;if($e(s)){var u=!o||!Co(a);return u?s.value:s}return We(s)?e?lf(s):ke(s):s}}var Km=Ju(),Gm=Ju(!0);function Ju(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return function(r,i,a,n){var o=r[i];if(Si(o)&&$e(o)&&!$e(a))return!1;if(!e&&!Si(a)&&(uf(a)||(a=me(a),o=me(o)),!ne(r)&&$e(o)&&!$e(a)))return o.value=a,!0;var s=ne(r)&&Co(i)?Number(i)<r.length:ie(r,i),u=Reflect.set(r,i,a,n);return r===me(n)&&(s?hi(a,o)&&Lt(r,"set",i,a):Lt(r,"add",i,a)),u}}function Jm(e,t){var r=ie(e,t);e[t];var i=Reflect.deleteProperty(e,t);return i&&r&&Lt(e,"delete",t,void 0),i}function Qm(e,t){var r=Reflect.has(e,t);return(!Eo(t)||!Ku.has(t))&&et(e,"has",t),r}function e0(e){return et(e,"iterate",ne(e)?"length":fr),Reflect.ownKeys(e)}var Qu={get:Ym,set:Km,deleteProperty:Jm,has:Qm,ownKeys:e0},t0={get:Xm,set(e,t){return!0},deleteProperty(e,t){return!0}},r0=ce({},Qu,{get:qm,set:Gm}),Ko=e=>e,Ua=e=>Reflect.getPrototypeOf(e);function Ha(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e=e.__v_raw;var a=me(e),n=me(t);t!==n&&!r&&et(a,"get",t),!r&&et(a,"get",n);var{has:o}=Ua(a),s=i?Ko:r?Qo:Ei;if(o.call(a,t))return s(e.get(t));if(o.call(a,n))return s(e.get(n));e!==a&&e.get(t)}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.__v_raw,i=me(r),a=me(e);return e!==a&&!t&&et(i,"has",e),!t&&et(i,"has",a),e===a?r.has(e):r.has(e)||r.has(a)}function Va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e=e.__v_raw,!t&&et(me(e),"iterate",fr),Reflect.get(e,"size",e)}function ef(e){e=me(e);var t=me(this),r=Ua(t),i=r.has.call(t,e);return i||(t.add(e),Lt(t,"add",e,e)),this}function tf(e,t){t=me(t);var r=me(this),{has:i,get:a}=Ua(r),n=i.call(r,e);n||(e=me(e),n=i.call(r,e));var o=a.call(r,e);return r.set(e,t),n?hi(t,o)&&Lt(r,"set",e,t):Lt(r,"add",e,t),this}function rf(e){var t=me(this),{has:r,get:i}=Ua(t),a=r.call(t,e);a||(e=me(e),a=r.call(t,e)),i&&i.call(t,e);var n=t.delete(e);return a&&Lt(t,"delete",e,void 0),n}function af(){var e=me(this),t=e.size!==0,r=e.clear();return t&&Lt(e,"clear",void 0,void 0),r}function ja(e,t){return function(i,a){var n=this,o=n.__v_raw,s=me(o),u=t?Ko:e?Qo:Ei;return!e&&et(s,"iterate",fr),o.forEach((l,f)=>i.call(a,u(l),u(f),n))}}function Ya(e,t,r){return function(){var i=this.__v_raw,a=me(i),n=di(a),o=e==="entries"||e===Symbol.iterator&&n,s=e==="keys"&&n,u=i[e](...arguments),l=r?Ko:t?Qo:Ei;return!t&&et(a,"iterate",s?Yo:fr),{next(){var{value:f,done:v}=u.next();return v?{value:f,done:v}:{value:o?[l(f[0]),l(f[1])]:l(f),done:v}},[Symbol.iterator](){return this}}}}function Yt(e){return function(){return e==="delete"?!1:this}}function i0(){var e={get(n){return Ha(this,n)},get size(){return Va(this)},has:Wa,add:ef,set:tf,delete:rf,clear:af,forEach:ja(!1,!1)},t={get(n){return Ha(this,n,!1,!0)},get size(){return Va(this)},has:Wa,add:ef,set:tf,delete:rf,clear:af,forEach:ja(!1,!0)},r={get(n){return Ha(this,n,!0)},get size(){return Va(this,!0)},has(n){return Wa.call(this,n,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:ja(!0,!1)},i={get(n){return Ha(this,n,!0,!0)},get size(){return Va(this,!0)},has(n){return Wa.call(this,n,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:ja(!0,!0)},a=["keys","values","entries",Symbol.iterator];return a.forEach(n=>{e[n]=Ya(n,!1,!1),r[n]=Ya(n,!0,!1),t[n]=Ya(n,!1,!0),i[n]=Ya(n,!0,!0)}),[e,r,t,i]}var[a0,n0,o0,s0]=i0();function Go(e,t){var r=t?e?s0:o0:e?n0:a0;return(i,a,n)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?i:Reflect.get(ie(r,a)&&a in i?r:i,a,n)}var l0={get:Go(!1,!1)},u0={get:Go(!1,!0)},f0={get:Go(!0,!1)},nf=new WeakMap,of=new WeakMap,sf=new WeakMap,c0=new WeakMap;function d0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function v0(e){return e.__v_skip||!Object.isExtensible(e)?0:d0(To(e))}function ke(e){return Si(e)?e:Jo(e,!1,Qu,l0,nf)}function h0(e){return Jo(e,!1,r0,u0,of)}function lf(e){return Jo(e,!0,t0,f0,sf)}function Jo(e,t,r,i,a){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;var n=a.get(e);if(n)return n;var o=v0(e);if(o===0)return e;var s=new Proxy(e,o===2?i:r);return a.set(e,s),s}function Fr(e){return Si(e)?Fr(e.__v_raw):!!(e&&e.__v_isReactive)}function Si(e){return!!(e&&e.__v_isReadonly)}function uf(e){return!!(e&&e.__v_isShallow)}function ff(e){return Fr(e)||Si(e)}function me(e){var t=e&&e.__v_raw;return t?me(t):e}function qa(e){return Pa(e,"__v_skip",!0),e}var Ei=e=>We(e)?ke(e):e,Qo=e=>We(e)?lf(e):e;function cf(e){jt&&ct&&(e=me(e),Zu(e.dep||(e.dep=Wo())))}function df(e,t){e=me(e),e.dep&&Xo(e.dep)}function $e(e){return!!(e&&e.__v_isRef===!0)}function F(e){return vf(e,!1)}function es(e){return vf(e,!0)}function vf(e,t){return $e(e)?e:new g0(e,t)}class g0{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:me(t),this._value=r?t:Ei(t)}get value(){return cf(this),this._value}set value(t){t=this.__v_isShallow?t:me(t),hi(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Ei(t),df(this))}}function p0(e){return $e(e)?e.value:e}var m0={get:(e,t,r)=>p0(Reflect.get(e,t,r)),set:(e,t,r,i)=>{var a=e[t];return $e(a)&&!$e(r)?(a.value=r,!0):Reflect.set(e,t,r,i)}};function hf(e){return Fr(e)?e:new Proxy(e,m0)}class _0{constructor(t,r,i,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new qo(t,()=>{this._dirty||(this._dirty=!0,df(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=i}get value(){var t=me(this);return cf(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function b0(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i,a,n=oe(e);n?(i=e,a=mt):(i=e.get,a=e.set);var o=new _0(i,a,n||!a,r);return o}function qt(e,t,r,i){var a;try{a=i?e(...i):e()}catch(n){Xa(n,t,r)}return a}function dt(e,t,r,i){if(oe(e)){var a=qt(e,t,r,i);return a&&bu(a)&&a.catch(s=>{Xa(s,t,r)}),a}for(var n=[],o=0;o<e.length;o++)n.push(dt(e[o],t,r,i));return n}function Xa(e,t,r){if(t&&t.vnode,t){for(var i=t.parent,a=t.proxy,n=r;i;){var o=i.ec;if(o){for(var s=0;s<o.length;s++)if(o[s](e,a,n)===!1)return}i=i.parent}var u=t.appContext.config.errorHandler;if(u){qt(u,null,10,[e,a,n]);return}}w0(e)}function w0(e,t,r){e instanceof Error?console.error(e.message+` -`+e.stack):console.error(e)}var Za=!1,ts=!1,tt=[],Pt=0,Ti=[],Ci=null,$r=0,Oi=[],Xt=null,zr=0,gf=Promise.resolve(),rs=null,is=null;function Ur(e){var t=rs||gf;return e?t.then(this?e.bind(this):e):t}function y0(e){for(var t=Pt+1,r=tt.length;t<r;){var i=t+r>>>1,a=Ai(tt[i]);a<e?t=i+1:r=i}return t}function pf(e){(!tt.length||!tt.includes(e,Za&&e.allowRecurse?Pt+1:Pt))&&e!==is&&(e.id==null?tt.push(e):tt.splice(y0(e.id),0,e),mf())}function mf(){!Za&&!ts&&(ts=!0,rs=gf.then(wf))}function x0(e){var t=tt.indexOf(e);t>Pt&&tt.splice(t,1)}function _f(e,t,r,i){ne(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),mf()}function S0(e){_f(e,Ci,Ti,$r)}function E0(e){_f(e,Xt,Oi,zr)}function as(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Ti.length){for(is=t,Ci=[...new Set(Ti)],Ti.length=0,$r=0;$r<Ci.length;$r++)Ci[$r]();Ci=null,$r=0,is=null,as(e,t)}}function bf(e){if(Oi.length){var t=[...new Set(Oi)];if(Oi.length=0,Xt){Xt.push(...t);return}for(Xt=t,Xt.sort((r,i)=>Ai(r)-Ai(i)),zr=0;zr<Xt.length;zr++)Xt[zr]();Xt=null,zr=0}}var Ai=e=>e.id==null?1/0:e.id;function wf(e){ts=!1,Za=!0,as(e),tt.sort((i,a)=>Ai(i)-Ai(a));var t=mt;try{for(Pt=0;Pt<tt.length;Pt++){var r=tt[Pt];r&&r.active!==!1&&qt(r,null,14)}}finally{Pt=0,tt.length=0,bf(),Za=!1,rs=null,(tt.length||Ti.length||Oi.length)&&wf(e)}}function T0(e,t){if(!e.isUnmounted){for(var r=e.vnode.props||Se,i=arguments.length,a=new Array(i>2?i-2:0),n=2;n<i;n++)a[n-2]=arguments[n];var o=a,s=t.startsWith("update:"),u=s&&t.slice(7);if(u&&u in r){var l="".concat(u==="modelValue"?"model":u,"Modifiers"),{number:f,trim:v}=r[l]||Se;v?o=a.map(m=>m.trim()):f&&(o=a.map(Tp))}var p,g=r[p=Ao(t)]||r[p=Ao(Ht(t))];!g&&s&&(g=r[p=Ao(Je(t))]),g&&dt(g,e,6,o);var y=r[p+"Once"];if(y){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,dt(y,e,6,o)}}}function yf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;var n=e.emits,o={},s=!1;if(!oe(e)){var u=l=>{var f=yf(l,t,!0);f&&(s=!0,ce(o,f))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!n&&!s?(i.set(e,null),null):(ne(n)?n.forEach(l=>o[l]=null):ce(o,n),i.set(e,o),o)}function Ka(e,t){return!e||!Ma(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Je(t))||ie(e,t))}var vt=null,xf=null;function Ga(e){var t=vt;return vt=e,xf=e&&e.type.__scopeId||null,t}function C0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vt;if(!t||e._n)return e;var r=function(){r._d&&Yf(-1);var i=Ga(t),a=e(...arguments);return Ga(i),r._d&&Yf(1),a};return r._n=!0,r._c=!0,r._d=!0,r}function JT(){}function ns(e){var{type:t,vnode:r,proxy:i,withProxy:a,props:n,propsOptions:[o],slots:s,attrs:u,emit:l,render:f,renderCache:v,data:p,setupState:g,ctx:y,inheritAttrs:m}=e,w,h,b=Ga(e);try{if(r.shapeFlag&4){var c=a||i;w=St(f.call(c,c,v,n,g,p,y)),h=u}else{var d=t;w=St(d.length>1?d(n,{attrs:u,slots:s,emit:l}):d(n,null)),h=t.props?u:O0(u)}}catch(C){Xa(C,e,1),w=I(Hr)}var _=w;if(h&&m!==!1){var x=Object.keys(h),{shapeFlag:E}=_;x.length&&E&7&&(o&&x.some(xo)&&(h=A0(h,o)),_=Mi(_,h))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),w=_,Ga(b),w}var O0=e=>{var t;for(var r in e)(r==="class"||r==="style"||Ma(r))&&((t||(t={}))[r]=e[r]);return t},A0=(e,t)=>{var r={};for(var i in e)(!xo(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function I0(e,t,r){var{props:i,children:a,component:n}=e,{props:o,children:s,patchFlag:u}=t,l=n.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return i?Sf(i,o,l):!!o;if(u&8)for(var f=t.dynamicProps,v=0;v<f.length;v++){var p=f[v];if(o[p]!==i[p]&&!Ka(l,p))return!0}}else return(a||s)&&(!s||!s.$stable)?!0:i===o?!1:i?o?Sf(i,o,l):!0:!!o;return!1}function Sf(e,t,r){var i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(var a=0;a<i.length;a++){var n=i[a];if(t[n]!==e[n]&&!Ka(r,n))return!0}return!1}function k0(e,t){for(var{vnode:r,parent:i}=e;i&&i.subTree===r;)(r=i.vnode).el=t,i=i.parent}var M0=e=>e.__isSuspense;function R0(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):E0(e)}function ze(e,t){if(Ue){var r=Ue.provides,i=Ue.parent&&Ue.parent.provides;i===r&&(r=Ue.provides=Object.create(i)),r[e]=t}}function _e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=Ue||vt;if(i){var a=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&oe(t)?t.call(i.proxy):t}}function L0(e,t){return os(e,null,t)}var Ef={};function W(e,t,r){return os(e,t,r)}function os(e,t){var{immediate:r,deep:i,flush:a,onTrack:n,onTrigger:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,s=Ue,u,l=!1,f=!1;if($e(e)?(u=()=>e.value,l=uf(e)):Fr(e)?(u=()=>e,i=!0):ne(e)?(f=!0,l=e.some(Fr),u=()=>e.map(b=>{if($e(b))return b.value;if(Fr(b))return cr(b);if(oe(b))return qt(b,s,2)})):oe(e)?t?u=()=>qt(e,s,2):u=()=>{if(!(s&&s.isUnmounted))return p&&p(),dt(e,s,3,[g])}:u=mt,t&&i){var v=u;u=()=>cr(v())}var p,g=b=>{p=h.onStop=()=>{qt(b,s,4)}};if(Ri)return g=mt,t?r&&dt(t,s,3,[u(),f?[]:void 0,g]):u(),mt;var y=f?[]:Ef,m=()=>{if(!!h.active)if(t){var b=h.run();(i||l||(f?b.some((c,d)=>hi(c,y[d])):hi(b,y)))&&(p&&p(),dt(t,s,3,[b,y===Ef?void 0:y,g]),y=b)}else h.run()};m.allowRecurse=!!t;var w;a==="sync"?w=m:a==="post"?w=()=>Xe(m,s&&s.suspense):w=()=>{!s||s.isMounted?S0(m):m()};var h=new qo(u,w);return t?r?m():y=h.run():a==="post"?Xe(h.run.bind(h),s&&s.suspense):h.run(),()=>{h.stop(),s&&s.scope&&So(s.scope.effects,h)}}function P0(e,t,r){var i=this.proxy,a=Ee(e)?e.includes(".")?Tf(i,e):()=>i[e]:e.bind(i,i),n;oe(t)?n=t:(n=t.handler,r=t);var o=Ue;Wr(this);var s=os(a,n.bind(i),r);return o?Wr(o):gr(),s}function Tf(e,t){var r=t.split(".");return()=>{for(var i=e,a=0;a<r.length&&i;a++)i=i[r[a]];return i}}function cr(e,t){if(!We(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))cr(e.value,t);else if(ne(e))for(var r=0;r<e.length;r++)cr(e[r],t);else if(yp(e)||di(e))e.forEach(a=>{cr(a,t)});else if(_t(e))for(var i in e)cr(e[i],t);return e}function N0(e){return oe(e)?{setup:e,name:e.name}:e}var ss=e=>!!e.type.__asyncLoader,Cf=e=>e.type.__isKeepAlive;function ls(e,t){Of(e,"a",t)}function D0(e,t){Of(e,"da",t)}function Of(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,i=e.__wdc||(e.__wdc=()=>{for(var n=r;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Ja(t,i,r),r)for(var a=r.parent;a&&a.parent;)Cf(a.parent.vnode)&&B0(i,t,r,a),a=a.parent}function B0(e,t,r,i){var a=Ja(t,e,i,!0);Zt(()=>{So(i[t],a)},r)}function Ja(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r){var a=r[e]||(r[e]=[]),n=t.__weh||(t.__weh=function(){if(!r.isUnmounted){Dr(),Wr(r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var l=dt(t,r,e,s);return gr(),Br(),l}});return i?a.unshift(n):a.push(n),n}}var Nt=e=>function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return(!Ri||e==="sp")&&Ja(e,t,r)},Af=Nt("bm"),Re=Nt("m"),F0=Nt("bu"),$0=Nt("u"),Ce=Nt("bum"),Zt=Nt("um"),z0=Nt("sp"),U0=Nt("rtg"),H0=Nt("rtc");function W0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;Ja("ec",e,t)}var us=!0;function V0(e){var t=Mf(e),r=e.proxy,i=e.ctx;us=!1,t.beforeCreate&&If(t.beforeCreate,e,"bc");var{data:a,computed:n,methods:o,watch:s,provide:u,inject:l,created:f,beforeMount:v,mounted:p,beforeUpdate:g,updated:y,activated:m,deactivated:w,beforeDestroy:h,beforeUnmount:b,destroyed:c,unmounted:d,render:_,renderTracked:x,renderTriggered:E,errorCaptured:C,serverPrefetch:O,expose:M,inheritAttrs:R,components:U,directives:te,filters:L}=t,H=null;if(l&&j0(l,i,H,e.appContext.config.unwrapInjectedRef),o)for(var q in o){var re=o[q];oe(re)&&(i[q]=re.bind(r))}if(a&&function(){var le=a.call(r,r);We(le)&&(e.data=ke(le))}(),us=!0,n){var V=function(le){var J=n[le],xe=oe(J)?J.bind(r,r):oe(J.get)?J.get.bind(r,r):mt,we=!oe(J)&&oe(J.set)?J.set.bind(r):mt,Ve=ee({get:xe,set:we});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:sr=>Ve.value=sr})};for(var K in n)V(K)}if(s)for(var ae in s)kf(s[ae],i,r,ae);if(u){var Te=oe(u)?u.call(r):u;Reflect.ownKeys(Te).forEach(le=>{ze(le,Te[le])})}f&&If(f,e,"c");function se(le,J){ne(J)?J.forEach(xe=>le(xe.bind(r))):J&&le(J.bind(r))}if(se(Af,v),se(Re,p),se(F0,g),se($0,y),se(ls,m),se(D0,w),se(W0,C),se(H0,x),se(U0,E),se(Ce,b),se(Zt,d),se(z0,O),ne(M))if(M.length){var he=e.exposed||(e.exposed={});M.forEach(le=>{Object.defineProperty(he,le,{get:()=>r[le],set:J=>r[le]=J})})}else e.exposed||(e.exposed={});_&&e.render===mt&&(e.render=_),R!=null&&(e.inheritAttrs=R),U&&(e.components=U),te&&(e.directives=te)}function j0(e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;ne(e)&&(e=fs(e));var i=function(n){var o=e[n],s=void 0;We(o)?"default"in o?s=_e(o.from||n,o.default,!0):s=_e(o.from||n):s=_e(o),$e(s)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:u=>s.value=u}):t[n]=s};for(var a in e)i(a)}function If(e,t,r){dt(ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function kf(e,t,r,i){var a=i.includes(".")?Tf(r,i):()=>r[i];if(Ee(e)){var n=t[e];oe(n)&&W(a,n)}else if(oe(e))W(a,e.bind(r));else if(We(e))if(ne(e))e.forEach(s=>kf(s,t,r,i));else{var o=oe(e.handler)?e.handler.bind(r):t[e.handler];oe(o)&&W(a,o,e)}}function Mf(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:n,config:{optionMergeStrategies:o}}=e.appContext,s=n.get(t),u;return s?u=s:!a.length&&!r&&!i?u=t:(u={},a.length&&a.forEach(l=>Qa(u,l,o,!0)),Qa(u,t,o)),n.set(t,u),u}function Qa(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,{mixins:a,extends:n}=t;n&&Qa(e,n,r,!0),a&&a.forEach(u=>Qa(e,u,r,!0));for(var o in t)if(!(i&&o==="expose")){var s=Y0[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Y0={data:Rf,props:dr,emits:dr,methods:dr,computed:dr,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:dr,directives:dr,watch:X0,provide:Rf,inject:q0};function Rf(e,t){return t?e?function(){return ce(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function q0(e,t){return dr(fs(e),fs(t))}function fs(e){if(ne(e)){for(var t={},r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function dr(e,t){return e?ce(ce(Object.create(null),e),t):t}function X0(e,t){if(!e)return t;if(!t)return e;var r=ce(Object.create(null),e);for(var i in t)r[i]=Ye(e[i],t[i]);return r}function Z0(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a={},n={};Pa(n,tn,1),e.propsDefaults=Object.create(null),Lf(e,t,a,n);for(var o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=i?a:h0(a):e.type.props?e.props=a:e.props=n,e.attrs=n}function K0(e,t,r,i){var{props:a,attrs:n,vnode:{patchFlag:o}}=e,s=me(a),[u]=e.propsOptions,l=!1;if((i||o>0)&&!(o&16)){if(o&8)for(var f=e.vnode.dynamicProps,v=0;v<f.length;v++){var p=f[v];if(!Ka(e.emitsOptions,p)){var g=t[p];if(u)if(ie(n,p))g!==n[p]&&(n[p]=g,l=!0);else{var y=Ht(p);a[y]=cs(u,s,y,g,e,!1)}else g!==n[p]&&(n[p]=g,l=!0)}}}else{Lf(e,t,a,n)&&(l=!0);var m;for(var w in s)(!t||!ie(t,w)&&((m=Je(w))===w||!ie(t,m)))&&(u?r&&(r[w]!==void 0||r[m]!==void 0)&&(a[w]=cs(u,s,w,void 0,e,!0)):delete a[w]);if(n!==s)for(var h in n)(!t||!ie(t,h)&&!0)&&(delete n[h],l=!0)}l&&Lt(e,"set","$attrs")}function Lf(e,t,r,i){var[a,n]=e.propsOptions,o=!1,s;if(t){for(var u in t)if(!Ra(u)){var l=t[u],f=void 0;a&&ie(a,f=Ht(u))?!n||!n.includes(f)?r[f]=l:(s||(s={}))[f]=l:Ka(e.emitsOptions,u)||(!(u in i)||l!==i[u])&&(i[u]=l,o=!0)}}if(n)for(var v=me(r),p=s||Se,g=0;g<n.length;g++){var y=n[g];r[y]=cs(a,v,y,p[y],e,!ie(p,y))}return o}function cs(e,t,r,i,a,n){var o=e[r];if(o!=null){var s=ie(o,"default");if(s&&i===void 0){var u=o.default;if(o.type!==Function&&oe(u)){var{propsDefaults:l}=a;r in l?i=l[r]:(Wr(a),i=l[r]=u.call(null,t),gr())}else i=u}o[0]&&(n&&!s?i=!1:o[1]&&(i===""||i===Je(r))&&(i=!0))}return i}function Pf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.propsCache,a=i.get(e);if(a)return a;var n=e.props,o={},s=[],u=!1;if(!oe(e)){var l=c=>{u=!0;var[d,_]=Pf(c,t,!0);ce(o,d),_&&s.push(..._)};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!n&&!u)return i.set(e,ci),ci;if(ne(n))for(var f=0;f<n.length;f++){var v=Ht(n[f]);Nf(v)&&(o[v]=Se)}else if(n)for(var p in n){var g=Ht(p);if(Nf(g)){var y=n[p],m=o[g]=ne(y)||oe(y)?{type:y}:y;if(m){var w=Ff(Boolean,m.type),h=Ff(String,m.type);m[0]=w>-1,m[1]=h<0||w<h,(w>-1||ie(m,"default"))&&s.push(g)}}}var b=[o,s];return i.set(e,b),b}function Nf(e){return e[0]!=="$"}function Df(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Bf(e,t){return Df(e)===Df(t)}function Ff(e,t){return ne(t)?t.findIndex(r=>Bf(r,e)):oe(t)&&Bf(t,e)?0:-1}var $f=e=>e[0]==="_"||e==="$stable",ds=e=>ne(e)?e.map(St):[St(e)],G0=(e,t,r)=>{var i=C0(function(){return ds(t(...arguments))},r);return i._c=!1,i},zf=(e,t,r)=>{var i=e._ctx;for(var a in e)if(!$f(a)){var n=e[a];oe(n)?t[a]=G0(a,n,i):n!=null&&function(){var o=ds(n);t[a]=()=>o}()}},Uf=(e,t)=>{var r=ds(t);e.slots.default=()=>r},J0=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=me(t),Pa(t,"_",r)):zf(t,e.slots={})}else e.slots={},t&&Uf(e,t);Pa(e.slots,tn,1)},Q0=(e,t,r)=>{var{vnode:i,slots:a}=e,n=!0,o=Se;if(i.shapeFlag&32){var s=t._;s?r&&s===1?n=!1:(ce(a,t),!r&&s===1&&delete a._):(n=!t.$stable,zf(t,a)),o=t}else t&&(Uf(e,t),o={default:1});if(n)for(var u in a)!$f(u)&&!(u in o)&&delete a[u]};function Ii(e,t){var r=vt;if(r===null)return e;for(var i=nn(r)||r.proxy,a=e.dirs||(e.dirs=[]),n=0;n<t.length;n++){var[o,s,u,l=Se]=t[n];oe(o)&&(o={mounted:o,updated:o}),o.deep&&cr(s),a.push({dir:o,instance:i,value:s,oldValue:void 0,arg:u,modifiers:l})}return e}function vr(e,t,r,i){for(var a=e.dirs,n=t&&t.dirs,o=0;o<a.length;o++){var s=a[o];n&&(s.oldValue=n[o].value);var u=s.dir[i];u&&(Dr(),dt(u,r,8,[e.el,s,e,t]),Br())}}function Hf(){return{app:null,config:{isNativeTag:_p,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var e_=0;function t_(e,t){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;oe(i)||(i=Object.assign({},i)),a!=null&&!We(a)&&(a=null);var n=Hf(),o=new Set,s=!1,u=n.app={_uid:e_++,_component:i,_props:a,_container:null,_context:n,_instance:null,version:y_,get config(){return n.config},set config(l){},use(l){for(var f=arguments.length,v=new Array(f>1?f-1:0),p=1;p<f;p++)v[p-1]=arguments[p];return o.has(l)||(l&&oe(l.install)?(o.add(l),l.install(u,...v)):oe(l)&&(o.add(l),l(u,...v))),u},mixin(l){return n.mixins.includes(l)||n.mixins.push(l),u},component(l,f){return f?(n.components[l]=f,u):n.components[l]},directive(l,f){return f?(n.directives[l]=f,u):n.directives[l]},mount(l,f,v){if(!s){var p=I(i,a);return p.appContext=n,f&&t?t(p,l):e(p,l,v),s=!0,u._container=l,l.__vue_app__=u,nn(p.component)||p.component.proxy}},unmount(){s&&(e(null,u._container),delete u._container.__vue_app__)},provide(l,f){return n.provides[l]=f,u}};return u}}function vs(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ne(e)){e.forEach((m,w)=>vs(m,t&&(ne(t)?t[w]:t),r,i,a));return}if(!(ss(i)&&!a)){var n=i.shapeFlag&4?nn(i.component)||i.component.proxy:i.el,o=a?null:n,{i:s,r:u}=e,l=t&&t.r,f=s.refs===Se?s.refs={}:s.refs,v=s.setupState;if(l!=null&&l!==u&&(Ee(l)?(f[l]=null,ie(v,l)&&(v[l]=null)):$e(l)&&(l.value=null)),oe(u))qt(u,s,12,[o,f]);else{var p=Ee(u),g=$e(u);if(p||g){var y=()=>{if(e.f){var m=p?f[u]:u.value;a?ne(m)&&So(m,n):ne(m)?m.includes(n)||m.push(n):p?(f[u]=[n],ie(v,u)&&(v[u]=f[u])):(u.value=[n],e.k&&(f[e.k]=u.value))}else p?(f[u]=o,ie(v,u)&&(v[u]=o)):$e(u)&&(u.value=o,e.k&&(f[e.k]=o))};o?(y.id=-1,Xe(y,r)):y()}}}}var Xe=R0;function r_(e){return i_(e)}function i_(e,t){var r=Cp();r.__VUE__=!0;var{insert:i,remove:a,patchProp:n,createElement:o,createText:s,createComment:u,setText:l,setElementText:f,parentNode:v,nextSibling:p,setScopeId:g=mt,cloneNode:y,insertStaticContent:m}=e,w=function(S,T,k){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,$=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,j=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,B=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!!T.dynamicChildren;if(S!==T){S&&!ki(S,T)&&(P=Ve(S),he(S,N,$,!0),S=null),T.patchFlag===-2&&(z=!1,T.dynamicChildren=null);var{type:D,ref:Q,shapeFlag:G}=T;switch(D){case hs:h(S,T,k,P);break;case Hr:b(S,T,k,P);break;case gs:S==null&&c(T,k,P,j);break;case xt:te(S,T,k,P,N,$,j,B,z);break;default:G&1?x(S,T,k,P,N,$,j,B,z):G&6?L(S,T,k,P,N,$,j,B,z):(G&64||G&128)&&D.process(S,T,k,P,N,$,j,B,z,Ne)}Q!=null&&N&&vs(Q,S&&S.ref,$,T||S,!T)}},h=(S,T,k,P)=>{if(S==null)i(T.el=s(T.children),k,P);else{var N=T.el=S.el;T.children!==S.children&&l(N,T.children)}},b=(S,T,k,P)=>{S==null?i(T.el=u(T.children||""),k,P):T.el=S.el},c=(S,T,k,P)=>{[S.el,S.anchor]=m(S.children,T,k,P,S.el,S.anchor)},d=(S,T,k)=>{for(var{el:P,anchor:N}=S,$;P&&P!==N;)$=p(P),i(P,T,k),P=$;i(N,T,k)},_=S=>{for(var{el:T,anchor:k}=S,P;T&&T!==k;)P=p(T),a(T),T=P;a(k)},x=(S,T,k,P,N,$,j,B,z)=>{j=j||T.type==="svg",S==null?E(T,k,P,N,$,j,B,z):M(S,T,N,$,j,B,z)},E=(S,T,k,P,N,$,j,B)=>{var z,D,{type:Q,props:G,shapeFlag:Z,transition:fe,patchFlag:Be,dirs:Ae}=S;if(S.el&&y!==void 0&&Be===-1)z=S.el=y(S.el);else{if(z=S.el=o(S.type,$,G&&G.is,G),Z&8?f(z,S.children):Z&16&&O(S.children,z,null,P,N,$&&Q!=="foreignObject",j,B),Ae&&vr(S,null,P,"created"),G){for(var A in G)A!=="value"&&!Ra(A)&&n(z,A,null,G[A],$,S.children,P,N,we);"value"in G&&n(z,"value",null,G.value),(D=G.onVnodeBeforeMount)&&Et(D,P,S)}C(z,S,S.scopeId,j,P)}Object.defineProperty(z,"__vueParentComponent",{value:P,enumerable:!1}),Ae&&vr(S,null,P,"beforeMount");var Y=(!N||N&&!N.pendingBranch)&&fe&&!fe.persisted;Y&&fe.beforeEnter(z),i(z,T,k),((D=G&&G.onVnodeMounted)||Y||Ae)&&Xe(()=>{D&&Et(D,P,S),Y&&fe.enter(z),Ae&&vr(S,null,P,"mounted")},N)},C=(S,T,k,P,N)=>{if(k&&g(S,k),P)for(var $=0;$<P.length;$++)g(S,P[$]);if(N){var j=N.subTree;if(T===j){var B=N.vnode;C(S,B,B.scopeId,B.slotScopeIds,N.parent)}}},O=function(S,T,k,P,N,$,j,B){for(var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,D=z;D<S.length;D++){var Q=S[D]=B?Kt(S[D]):St(S[D]);w(null,Q,T,k,P,N,$,j,B)}},M=(S,T,k,P,N,$,j)=>{var B=T.el=S.el,{patchFlag:z,dynamicChildren:D,dirs:Q}=T;z|=S.patchFlag&16;var G=S.props||Se,Z=T.props||Se,fe;k&&hr(k,!1),(fe=Z.onVnodeBeforeUpdate)&&Et(fe,k,T,S),Q&&vr(T,S,k,"beforeUpdate"),k&&hr(k,!0);var Be=N&&T.type!=="foreignObject";if(D?R(S.dynamicChildren,D,B,k,P,Be,$):j||K(S,T,B,null,k,P,Be,$,!1),z>0){if(z&16)U(B,T,G,Z,k,P,N);else if(z&2&&G.class!==Z.class&&n(B,"class",null,Z.class,N),z&4&&n(B,"style",G.style,Z.style,N),z&8)for(var Ae=T.dynamicProps,A=0;A<Ae.length;A++){var Y=Ae[A],X=G[Y],ge=Z[Y];(ge!==X||Y==="value")&&n(B,Y,X,ge,N,S.children,k,P,we)}z&1&&S.children!==T.children&&f(B,T.children)}else!j&&D==null&&U(B,T,G,Z,k,P,N);((fe=Z.onVnodeUpdated)||Q)&&Xe(()=>{fe&&Et(fe,k,T,S),Q&&vr(T,S,k,"updated")},P)},R=(S,T,k,P,N,$,j)=>{for(var B=0;B<T.length;B++){var z=S[B],D=T[B],Q=z.el&&(z.type===xt||!ki(z,D)||z.shapeFlag&70)?v(z.el):k;w(z,D,Q,null,P,N,$,j,!0)}},U=(S,T,k,P,N,$,j)=>{if(k!==P){for(var B in P)if(!Ra(B)){var z=P[B],D=k[B];z!==D&&B!=="value"&&n(S,B,D,z,j,T.children,N,$,we)}if(k!==Se)for(var Q in k)!Ra(Q)&&!(Q in P)&&n(S,Q,k[Q],null,j,T.children,N,$,we);"value"in P&&n(S,"value",k.value,P.value)}},te=(S,T,k,P,N,$,j,B,z)=>{var D=T.el=S?S.el:s(""),Q=T.anchor=S?S.anchor:s(""),{patchFlag:G,dynamicChildren:Z,slotScopeIds:fe}=T;fe&&(B=B?B.concat(fe):fe),S==null?(i(D,k,P),i(Q,k,P),O(T.children,k,Q,N,$,j,B,z)):G>0&&G&64&&Z&&S.dynamicChildren?(R(S.dynamicChildren,Z,k,N,$,j,B),(T.key!=null||N&&T===N.subTree)&&Wf(S,T,!0)):K(S,T,k,Q,N,$,j,B,z)},L=(S,T,k,P,N,$,j,B,z)=>{T.slotScopeIds=B,S==null?T.shapeFlag&512?N.ctx.activate(T,k,P,j,z):H(T,k,P,N,$,j,z):q(S,T,z)},H=(S,T,k,P,N,$,j)=>{var B=S.component=h_(S,P,N);if(Cf(S)&&(B.ctx.renderer=Ne),g_(B),B.asyncDep){if(N&&N.registerDep(B,re),!S.el){var z=B.subTree=I(Hr);b(null,z,T,k)}return}re(B,S,T,k,N,$,j)},q=(S,T,k)=>{var P=T.component=S.component;if(I0(S,T,k))if(P.asyncDep&&!P.asyncResolved){V(P,T,k);return}else P.next=T,x0(P.update),P.update();else T.component=S.component,T.el=S.el,P.vnode=T},re=(S,T,k,P,N,$,j)=>{var B=()=>{if(S.isMounted){var{next:ue,bu:Fe,u:Ge,parent:De,vnode:pt}=S,lr=ue,Rt;hr(S,!1),ue?(ue.el=pt.el,V(S,ue,j)):ue=pt,Fe&&Io(Fe),(Rt=ue.props&&ue.props.onVnodeBeforeUpdate)&&Et(Rt,De,ue,pt),hr(S,!0);var Mr=ns(S),Ut=S.subTree;S.subTree=Mr,w(Ut,Mr,v(Ut.el),Ve(Ut),S,N,$),ue.el=Mr.el,lr===null&&k0(S,Mr.el),Ge&&Xe(Ge,N),(Rt=ue.props&&ue.props.onVnodeUpdated)&&Xe(()=>Et(Rt,De,ue,pt),N)}else{var Q,{el:G,props:Z}=T,{bm:fe,m:Be,parent:Ae}=S,A=ss(T);if(hr(S,!1),fe&&Io(fe),!A&&(Q=Z&&Z.onVnodeBeforeMount)&&Et(Q,Ae,T),hr(S,!0),G&&va){var Y=()=>{S.subTree=ns(S),va(G,S.subTree,S,N,null)};A?T.type.__asyncLoader().then(()=>!S.isUnmounted&&Y()):Y()}else{var X=S.subTree=ns(S);w(null,X,k,P,S,N,$),T.el=X.el}if(Be&&Xe(Be,N),!A&&(Q=Z&&Z.onVnodeMounted)){var ge=T;Xe(()=>Et(Q,Ae,ge),N)}T.shapeFlag&256&&S.a&&Xe(S.a,N),S.isMounted=!0,T=k=P=null}},z=S.effect=new qo(B,()=>pf(S.update),S.scope),D=S.update=z.run.bind(z);D.id=S.uid,hr(S,!0),D()},V=(S,T,k)=>{T.component=S;var P=S.vnode.props;S.vnode=T,S.next=null,K0(S,T.props,P,k),Q0(S,T.children,k),Dr(),as(void 0,S.update),Br()},K=function(S,T,k,P,N,$,j,B){var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,D=S&&S.children,Q=S?S.shapeFlag:0,G=T.children,{patchFlag:Z,shapeFlag:fe}=T;if(Z>0){if(Z&128){Te(D,G,k,P,N,$,j,B,z);return}else if(Z&256){ae(D,G,k,P,N,$,j,B,z);return}}fe&8?(Q&16&&we(D,N,$),G!==D&&f(k,G)):Q&16?fe&16?Te(D,G,k,P,N,$,j,B,z):we(D,N,$,!0):(Q&8&&f(k,""),fe&16&&O(G,k,P,N,$,j,B,z))},ae=(S,T,k,P,N,$,j,B,z)=>{S=S||ci,T=T||ci;var D=S.length,Q=T.length,G=Math.min(D,Q),Z;for(Z=0;Z<G;Z++){var fe=T[Z]=z?Kt(T[Z]):St(T[Z]);w(S[Z],fe,k,null,N,$,j,B,z)}D>Q?we(S,N,$,!0,!1,G):O(T,k,P,N,$,j,B,z,G)},Te=(S,T,k,P,N,$,j,B,z)=>{for(var D=0,Q=T.length,G=S.length-1,Z=Q-1;D<=G&&D<=Z;){var fe=S[D],Be=T[D]=z?Kt(T[D]):St(T[D]);if(ki(fe,Be))w(fe,Be,k,null,N,$,j,B,z);else break;D++}for(;D<=G&&D<=Z;){var Ae=S[G],A=T[Z]=z?Kt(T[Z]):St(T[Z]);if(ki(Ae,A))w(Ae,A,k,null,N,$,j,B,z);else break;G--,Z--}if(D>G){if(D<=Z)for(var Y=Z+1,X=Y<Q?T[Y].el:P;D<=Z;)w(null,T[D]=z?Kt(T[D]):St(T[D]),k,X,N,$,j,B,z),D++}else if(D>Z)for(;D<=G;)he(S[D],N,$,!0),D++;else{var ge=D,ue=D,Fe=new Map;for(D=ue;D<=Z;D++){var Ge=T[D]=z?Kt(T[D]):St(T[D]);Ge.key!=null&&Fe.set(Ge.key,D)}var De,pt=0,lr=Z-ue+1,Rt=!1,Mr=0,Ut=new Array(lr);for(D=0;D<lr;D++)Ut[D]=0;for(D=ge;D<=G;D++){var li=S[D];if(pt>=lr){he(li,N,$,!0);continue}var Rr=void 0;if(li.key!=null)Rr=Fe.get(li.key);else for(De=ue;De<=Z;De++)if(Ut[De-ue]===0&&ki(li,T[De])){Rr=De;break}Rr===void 0?he(li,N,$,!0):(Ut[Rr-ue]=D+1,Rr>=Mr?Mr=Rr:Rt=!0,w(li,T[Rr],k,null,N,$,j,B,z),pt++)}var Dh=Rt?a_(Ut):ci;for(De=Dh.length-1,D=lr-1;D>=0;D--){var Rl=ue+D,Bh=T[Rl],Fh=Rl+1<Q?T[Rl+1].el:P;Ut[D]===0?w(null,Bh,k,Fh,N,$,j,B,z):Rt&&(De<0||D!==Dh[De]?se(Bh,k,Fh,2):De--)}}},se=function(S,T,k,P){var N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,{el:$,type:j,transition:B,children:z,shapeFlag:D}=S;if(D&6){se(S.component.subTree,T,k,P);return}if(D&128){S.suspense.move(T,k,P);return}if(D&64){j.move(S,T,k,Ne);return}if(j===xt){i($,T,k);for(var Q=0;Q<z.length;Q++)se(z[Q],T,k,P);i(S.anchor,T,k);return}if(j===gs){d(S,T,k);return}var G=P!==2&&D&1&&B;if(G)if(P===0)B.beforeEnter($),i($,T,k),Xe(()=>B.enter($),N);else{var{leave:Z,delayLeave:fe,afterLeave:Be}=B,Ae=()=>i($,T,k),A=()=>{Z($,()=>{Ae(),Be&&Be()})};fe?fe($,Ae,A):A()}else i($,T,k)},he=function(S,T,k){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,{type:$,props:j,ref:B,children:z,dynamicChildren:D,shapeFlag:Q,patchFlag:G,dirs:Z}=S;if(B!=null&&vs(B,null,k,S,!0),Q&256){T.ctx.deactivate(S);return}var fe=Q&1&&Z,Be=!ss(S),Ae;if(Be&&(Ae=j&&j.onVnodeBeforeUnmount)&&Et(Ae,T,S),Q&6)xe(S.component,k,P);else{if(Q&128){S.suspense.unmount(k,P);return}fe&&vr(S,null,T,"beforeUnmount"),Q&64?S.type.remove(S,T,k,N,Ne,P):D&&($!==xt||G>0&&G&64)?we(D,T,k,!1,!0):($===xt&&G&384||!N&&Q&16)&&we(z,T,k),P&&le(S)}(Be&&(Ae=j&&j.onVnodeUnmounted)||fe)&&Xe(()=>{Ae&&Et(Ae,T,S),fe&&vr(S,null,T,"unmounted")},k)},le=S=>{var{type:T,el:k,anchor:P,transition:N}=S;if(T===xt){J(k,P);return}if(T===gs){_(S);return}var $=()=>{a(k),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(S.shapeFlag&1&&N&&!N.persisted){var{leave:j,delayLeave:B}=N,z=()=>j(k,$);B?B(S.el,$,z):z()}else $()},J=(S,T)=>{for(var k;S!==T;)k=p(S),a(S),S=k;a(T)},xe=(S,T,k)=>{var{bum:P,scope:N,update:$,subTree:j,um:B}=S;P&&Io(P),N.stop(),$&&($.active=!1,he(j,S,T,k)),B&&Xe(B,T),Xe(()=>{S.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},we=function(S,T,k){for(var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,$=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,j=$;j<S.length;j++)he(S[j],T,k,P,N)},Ve=S=>S.shapeFlag&6?Ve(S.component.subTree):S.shapeFlag&128?S.suspense.next():p(S.anchor||S.el),sr=(S,T,k)=>{if(S==null)T._vnode&&he(T._vnode,null,null,!0);else{var P=T.__vueParent;w(T._vnode||null,S,T,null,P,null,k)}T._vnode=S},Ne={p:w,um:he,m:se,r:le,mt:H,mc:O,pc:K,pbc:R,n:Ve,o:e},da,va;return t&&([da,va]=t(Ne)),{render:sr,hydrate:da,createApp:t_(sr,da)}}function hr(e,t){var{effect:r,update:i}=e;r.allowRecurse=i.allowRecurse=t}function Wf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=e.children,a=t.children;if(ne(i)&&ne(a))for(var n=0;n<i.length;n++){var o=i[n],s=a[n];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[n]=Kt(a[n]),s.el=o.el),r||Wf(o,s))}}function a_(e){var t=e.slice(),r=[0],i,a,n,o,s,u=e.length;for(i=0;i<u;i++){var l=e[i];if(l!==0){if(a=r[r.length-1],e[a]<l){t[i]=a,r.push(i);continue}for(n=0,o=r.length-1;n<o;)s=n+o>>1,e[r[s]]<l?n=s+1:o=s;l<e[r[n]]&&(n>0&&(t[i]=r[n-1]),r[n]=i)}}for(n=r.length,o=r[n-1];n-- >0;)r[n]=o,o=t[o];return r}var n_=e=>e.__isTeleport,o_=Symbol(),xt=Symbol(void 0),hs=Symbol(void 0),Hr=Symbol(void 0),gs=Symbol(void 0),Vf=null,jf=1;function Yf(e){jf+=e}function en(e){return e?e.__v_isVNode===!0:!1}function ki(e,t){return e.type===t.type&&e.key===t.key}var tn="__vInternal",qf=e=>{var{key:t}=e;return t!=null?t:null},rn=e=>{var{ref:t,ref_key:r,ref_for:i}=e;return t!=null?Ee(t)||$e(t)||oe(t)?{i:vt,r:t,k:r,f:!!i}:t:null};function s_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e===xt?0:1,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qf(t),ref:t&&rn(t),scopeId:xf,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null};return s?(ps(u,r),n&128&&e.normalize(u)):r&&(u.shapeFlag|=Ee(r)?8:16),jf>0&&!o&&Vf&&(u.patchFlag>0||n&6)&&u.patchFlag!==32&&Vf.push(u),u}var I=l_;function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if((!e||e===o_)&&(e=Hr),en(e)){var o=Mi(e,t,!0);return r&&ps(o,r),o}if(b_(e)&&(e=e.__vccOpts),t){t=u_(t);var{class:s,style:u}=t;s&&!Ee(s)&&(t.class=yo(s)),We(u)&&(ff(u)&&!ne(u)&&(u=ce({},u)),t.style=wo(u))}var l=Ee(e)?1:M0(e)?128:n_(e)?64:We(e)?4:oe(e)?2:0;return s_(e,t,r,i,a,l,n,!0)}function u_(e){return e?ff(e)||tn in e?ce({},e):e:null}function Mi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{props:i,ref:a,patchFlag:n,children:o}=e,s=t?rt(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&qf(s),ref:t&&t.ref?r&&a?ne(a)?a.concat(rn(t)):[a,rn(t)]:rn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xt?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mi(e.ssContent),ssFallback:e.ssFallback&&Mi(e.ssFallback),el:e.el,anchor:e.anchor};return u}function f_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return I(hs,null,e,t)}function St(e){return e==null||typeof e=="boolean"?I(Hr):ne(e)?I(xt,null,e.slice()):typeof e=="object"?Kt(e):I(hs,null,String(e))}function Kt(e){return e.el===null||e.memo?e:Mi(e)}function ps(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(ne(t))r=16;else if(typeof t=="object")if(i&65){var a=t.default;a&&(a._c&&(a._d=!1),ps(e,a()),a._c&&(a._d=!0));return}else{r=32;var n=t._;!n&&!(tn in t)?t._ctx=vt:n===3&&vt&&(vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:vt},r=32):(t=String(t),i&64?(r=16,t=[f_(t)]):r=8);e.children=t,e.shapeFlag|=r}function rt(){for(var e={},t=0;t<arguments.length;t++){var r=t<0||arguments.length<=t?void 0:arguments[t];for(var i in r)if(i==="class")e.class!==r.class&&(e.class=yo([e.class,r.class]));else if(i==="style")e.style=wo([e.style,r.style]);else if(Ma(i)){var a=e[i],n=r[i];n&&a!==n&&!(ne(a)&&a.includes(n))&&(e[i]=a?[].concat(a,n):n)}else i!==""&&(e[i]=r[i])}return e}function Et(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt(e,t,7,[r,i])}var ms=e=>e?Xf(e)?nn(e)||e.proxy:ms(e.parent):null,an=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ms(e.parent),$root:e=>ms(e.root),$emit:e=>e.emit,$options:e=>Mf(e),$forceUpdate:e=>()=>pf(e.update),$nextTick:e=>Ur.bind(e.proxy),$watch:e=>P0.bind(e)}),c_={get(e,t){var{_:r}=e,{ctx:i,setupState:a,data:n,props:o,accessCache:s,type:u,appContext:l}=r,f;if(t[0]!=="$"){var v=s[t];if(v!==void 0)switch(v){case 1:return a[t];case 2:return n[t];case 4:return i[t];case 3:return o[t]}else{if(a!==Se&&ie(a,t))return s[t]=1,a[t];if(n!==Se&&ie(n,t))return s[t]=2,n[t];if((f=r.propsOptions[0])&&ie(f,t))return s[t]=3,o[t];if(i!==Se&&ie(i,t))return s[t]=4,i[t];us&&(s[t]=0)}}var p=an[t],g,y;if(p)return t==="$attrs"&&et(r,"get",t),p(r);if((g=u.__cssModules)&&(g=g[t]))return g;if(i!==Se&&ie(i,t))return s[t]=4,i[t];if(y=l.config.globalProperties,ie(y,t))return y[t]},set(e,t,r){var{_:i}=e,{data:a,setupState:n,ctx:o}=i;return n!==Se&&ie(n,t)?(n[t]=r,!0):a!==Se&&ie(a,t)?(a[t]=r,!0):ie(i.props,t)||t[0]==="$"&&t.slice(1)in i?!1:(o[t]=r,!0)},has(e,t){var{_:{data:r,setupState:i,accessCache:a,ctx:n,appContext:o,propsOptions:s}}=e,u;return!!a[t]||r!==Se&&ie(r,t)||i!==Se&&ie(i,t)||(u=s[0])&&ie(u,t)||ie(n,t)||ie(an,t)||ie(o.config.globalProperties,t)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ie(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},d_=Hf(),v_=0;function h_(e,t,r){var i=e.type,a=(t?t.appContext:e.appContext)||d_,n={uid:v_++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Um(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pf(i,a),emitsOptions:yf(i,a),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:i.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return n.ctx={_:n},n.root=t?t.root:n,n.emit=T0.bind(null,n),e.ce&&e.ce(n),n}var Ue=null,Dt=()=>Ue||vt,Wr=e=>{Ue=e,e.scope.on()},gr=()=>{Ue&&Ue.scope.off(),Ue=null};function Xf(e){return e.vnode.shapeFlag&4}var Ri=!1;function g_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ri=t;var{props:r,children:i}=e.vnode,a=Xf(e);Z0(e,r,a,t),J0(e,i);var n=a?p_(e,t):void 0;return Ri=!1,n}function p_(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=qa(new Proxy(e.ctx,c_));var{setup:i}=r;if(i){var a=e.setupContext=i.length>1?__(e):null;Wr(e),Dr();var n=qt(i,e,0,[e.props,a]);if(Br(),gr(),bu(n)){if(n.then(gr,gr),t)return n.then(o=>{Zf(e,o,t)}).catch(o=>{Xa(o,e,0)});e.asyncDep=n}else Zf(e,n,t)}else Gf(e,t)}function Zf(e,t,r){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=hf(t)),Gf(e,r)}var Kf;function Gf(e,t,r){var i=e.type;if(!e.render){if(!t&&Kf&&!i.render){var a=i.template;if(a){var{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:u}=i,l=ce(ce({isCustomElement:n,delimiters:s},o),u);i.render=Kf(a,l)}}e.render=i.render||mt}Wr(e),Dr(),V0(e),Br(),gr()}function m_(e){return new Proxy(e.attrs,{get(t,r){return et(e,"get","$attrs"),t[r]}})}function __(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=m_(e))},slots:e.slots,emit:e.emit,expose:t}}function nn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(hf(qa(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in an)return an[r](e)}}))}function b_(e){return oe(e)&&"__vccOpts"in e}var ee=(e,t)=>b0(e,t,Ri);function w_(e,t,r){var i=arguments.length;return i===2?We(t)&&!ne(t)?en(t)?I(e,null,[t]):I(e,t):I(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&en(r)&&(r=[r]),I(e,t,r))}var y_="3.2.33",x_="http://www.w3.org/2000/svg",pr=typeof document!="undefined"?document:null,Jf=pr&&pr.createElement("template"),S_={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var a=t?pr.createElementNS(x_,e):pr.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:e=>pr.createTextNode(e),createComment:e=>pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i,a,n){var o=r?r.previousSibling:t.lastChild;if(a&&(a===n||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===n||!(a=a.nextSibling)););else{Jf.innerHTML=i?"<svg>".concat(e,"</svg>"):e;var s=Jf.content;if(i){for(var u=s.firstChild;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function E_(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function T_(e,t,r){var i=e.style,a=Ee(r);if(r&&!a){for(var n in r)_s(i,n,r[n]);if(t&&!Ee(t))for(var o in t)r[o]==null&&_s(i,o,"")}else{var s=i.display;a?t!==r&&(i.cssText=normalizeStyleValue(r)):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=s)}}var Qf=/\s*!important$/;function _s(e,t,r){if(ne(r))r.forEach(a=>_s(e,t,a));else if(r==null&&(r=""),r=normalizeStyleValue(r),t.startsWith("--"))e.setProperty(t,r);else{var i=normalizeStyleName(e,t);Qf.test(r)?e.setProperty(Je(i),r.replace(Qf,""),"important"):e[i]=r}}var ec="http://www.w3.org/1999/xlink";function C_(e,t,r,i,a){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(ec,t.slice(6,t.length)):e.setAttributeNS(ec,t,r);else{var n=vp(t);r==null||n&&!mu(r)?e.removeAttribute(t):e.setAttribute(t,n?"":r)}}function O_(e,t,r,i,a,n,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,a,n),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;var s=r==null?"":r;(e.value!==s||e.tagName==="OPTION")&&(e.value=s),r==null&&e.removeAttribute(t);return}var u=!1;if(r===""||r==null){var l=typeof e[t];l==="boolean"?r=mu(r):r==null&&l==="string"?(r="",u=!0):l==="number"&&(r=0,u=!0)}try{e[t]=r}catch(f){}u&&e.removeAttribute(t)}var[tc,A_]=(()=>{var e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());var r=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(r&&Number(r[1])<=53)}return[e,t]})(),bs=0,I_=Promise.resolve(),k_=()=>{bs=0},M_=()=>bs||(I_.then(k_),bs=tc());function R_(e,t,r,i){e.addEventListener(t,r,i)}function L_(e,t,r,i){e.removeEventListener(t,r,i)}function P_(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=e._vei||(e._vei={}),o=n[t];if(i&&o)o.value=i;else{var[s,u]=N_(t);if(i){var l=n[t]=D_(i,a);R_(e,s,l,u)}else o&&(L_(e,s,o,u),n[t]=void 0)}}var rc=/(?:Once|Passive|Capture)$/;function N_(e){var t;if(rc.test(e)){t={};for(var r;r=e.match(rc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Je(e.slice(2)),t]}function D_(e,t){var r=i=>{var a=i.timeStamp||tc();(A_||a>=r.attached-1)&&dt(B_(i,r.value),t,5,[i])};return r.value=e,r.attached=M_(),r}function B_(e,t){if(ne(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>a=>!a._stopped&&i&&i(a))}else return t}var ic=/^on[a-z]/,F_=function(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,n=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0;t==="class"?E_(e,i,a):t==="style"?T_(e,r,i):Ma(t)?xo(t)||P_(e,t,r,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$_(e,t,i,a))?O_(e,t,i,n,o,s,u):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),C_(e,t,i,a))};function $_(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&ic.test(t)&&oe(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ic.test(t)&&Ee(r)?!1:t in e}var z_=["ctrl","shift","alt","meta"],U_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>z_.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},ws=(e,t)=>function(r){for(var i=0;i<t.length;i++){var a=U_[t[i]];if(a&&a(r,t))return}for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return e(r,...o)},Li={beforeMount(e,t,r){var{value:i}=t,{transition:a}=r;e._vod=e.style.display==="none"?"":e.style.display,a&&i?a.beforeEnter(e):Pi(e,i)},mounted(e,t,r){var{value:i}=t,{transition:a}=r;a&&i&&a.enter(e)},updated(e,t,r){var{value:i,oldValue:a}=t,{transition:n}=r;!i!=!a&&(n?i?(n.beforeEnter(e),Pi(e,!0),n.enter(e)):n.leave(e,()=>{Pi(e,!1)}):Pi(e,i))},beforeUnmount(e,t){var{value:r}=t;Pi(e,r)}};function Pi(e,t){e.style.display=t?e._vod:"none"}var H_=ce({patchProp:F_},S_),ac;function W_(){return ac||(ac=r_(H_))}var nc=function(){var e=W_().createApp(...arguments),{mount:t}=e;return e.mount=r=>{var i=V_(r);if(!!i){var a=e._component;!oe(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";var n=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),n}},e};function V_(e){if(Ee(e)){var t=document.querySelector(e);return t}return e}var oc=["top","left","right","bottom"],ys,on={},ot;function xs(){return!("CSS"in window)||typeof CSS.supports!="function"?ot="":CSS.supports("top: env(safe-area-inset-top)")?ot="env":CSS.supports("top: constant(safe-area-inset-top)")?ot="constant":ot="",ot}function sc(){if(ot=typeof ot=="string"?ot:xs(),!ot){oc.forEach(function(s){on[s]=0});return}function e(s,u){var l=s.style;Object.keys(u).forEach(function(f){var v=u[f];l[f]=v})}var t=[];function r(s){s?t.push(s):t.forEach(function(u){u()})}var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,a)}catch(s){}function n(s,u){var l=document.createElement("div"),f=document.createElement("div"),v=document.createElement("div"),p=document.createElement("div"),g=100,y=1e4,m={position:"absolute",width:g+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:ot+"(safe-area-inset-"+u+")"};e(l,m),e(f,m),e(v,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(p,{transition:"0s",animation:"none",width:"250%",height:"250%"}),l.appendChild(v),f.appendChild(p),s.appendChild(l),s.appendChild(f),r(function(){l.scrollTop=f.scrollTop=y;var h=l.scrollTop,b=f.scrollTop;function c(){this.scrollTop!==(this===l?h:b)&&(l.scrollTop=f.scrollTop=y,h=l.scrollTop,b=f.scrollTop,j_(u))}l.addEventListener("scroll",c,i),f.addEventListener("scroll",c,i)});var w=getComputedStyle(l);Object.defineProperty(on,u,{configurable:!0,get:function(){return parseFloat(w.paddingBottom)}})}var o=document.createElement("div");e(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),oc.forEach(function(s){n(o,s)}),document.body.appendChild(o),r(),ys=!0}function sn(e){return ys||sc(),on[e]}var ln=[];function j_(e){ln.length||setTimeout(function(){var t={};ln.forEach(function(r){t[r]=on[r]}),ln.length=0,un.forEach(function(r){r(t)})},0),ln.push(e)}var un=[];function Y_(e){!xs()||(ys||sc(),typeof e=="function"&&un.push(e))}function q_(e){var t=un.indexOf(e);t>=0&&un.splice(t,1)}var X_={get support(){return(typeof ot=="string"?ot:xs()).length!=0},get top(){return sn("top")},get left(){return sn("left")},get right(){return sn("right")},get bottom(){return sn("bottom")},onChange:Y_,offChange:q_},fn=X_,lc=ws(()=>{},["prevent"]);function cn(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Ss(){var e=document.documentElement.style,t=cn(e,"--window-top");return t?t+fn.top:0}function Z_(){var e=document.documentElement.style,t=Ss(),r=cn(e,"--window-bottom"),i=cn(e,"--window-left"),a=cn(e,"--window-right");return{top:t,bottom:r?r+fn.bottom:0,left:i?i+fn.left:0,right:a?a+fn.right:0}}function K_(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function dn(e){return Symbol(e)}function uc(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t)return G_(e);if(typeof e=="string"){var r=parseInt(e)||0;return uc(e)?uni.upx2px(r):r}return e}function G_(e){return uc(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var J_="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",Q_="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",eb="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",tb="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",rb="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",vn="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",ib="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",ab="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",nb="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function hn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#000",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:27;return I("svg",{width:r,height:r,viewBox:"0 0 32 32"},[I("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function gn(){return Gt()}function ob(){return window.__PAGE_INFO__}function Gt(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function sb(e){e.preventDefault()}var fc,cc=0;function lb(e){var{onPageScroll:t,onReachBottom:r,onReachBottomDistance:i}=e,a=!1,n=!1,o=!0,s=()=>{var{scrollHeight:l}=document.documentElement,f=window.innerHeight,v=window.scrollY,p=v>0&&l>f&&v+f+i>=l,g=Math.abs(l-cc)>i;return p&&(!n||g)?(cc=l,n=!0,!0):(!p&&n&&(n=!1),!1)},u=()=>{t&&t(window.pageYOffset);function l(){if(s())return r&&r(),o=!1,setTimeout(function(){o=!0},350),!0}r&&o&&(l()||(fc=setTimeout(l,300))),a=!1};return function(){clearTimeout(fc),a||requestAnimationFrame(u),a=!0}}function Es(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Es(e,t.slice(2));for(var r=t.split("/"),i=r.length,a=0;a<i&&r[a]==="..";a++);r.splice(0,a),t=r.join("/");var n=e.length>0?e.split("/"):[];return n.splice(n.length-a-1,a+1),Ro(n.concat(r).join("/"))}var jr,dc,Yr;function vc(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function hc(){return jr.webview.currentWebview().id}var pn,Ts,Cs={};function Os(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=Cs[r];i&&i(t),t.keep||delete Cs[r]}}function ub(e,t){vc()==="v8"?Yr?(pn&&pn.close(),pn=new Yr(hc()),pn.onmessage=Os):Ts||(Ts=dc.requireModule("globalEvent"),Ts.addEventListener("plusMessage",Os)):window.__plusMessage=Os,Cs[e]=t}class fb{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(Yr){var a=new Yr(i);a.postMessage(r)}else jr.webview.postMessageToUniNView&&jr.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function cb(e){var{context:t={},url:r,data:i={},style:a={},onMessage:n,onClose:o}=e;jr=t.plus||plus,dc=t.weex||(typeof weex=="object"?weex:null),Yr=t.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var s={autoBackButton:!0,titleSize:"17px"},u="page".concat(Date.now());a=ce({},a),a.titleNView!==!1&&a.titleNView!=="none"&&(a.titleNView=ce(s,a.titleNView));var l={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"/".concat(r,".js"),defaultFontSize:16,viewport:jr.screen.resolutionWidth}};a=ce(l,a);var f=jr.webview.create("",u,a,{extras:{from:hc(),runtime:vc(),data:i,useGlobalEvent:!Yr}});return f.addEventListener("close",o),ub(u,v=>{typeof n=="function"&&n(v.data),v.keep||f.close("auto")}),f.show(a.animationType,a.animationDuration),new fb(f)}class db{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=gc(this.$el.querySelector(t));if(!!r)return As(r)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),a=0;a<i.length;a++){var n=gc(i[a]);n&&r.push(As(n))}return r}forceUpdate(t){t==="class"?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():t==="style"&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){var{__wxsAddClass:t}=this.$el;t.length&&(this.$el.className=t.join(" "))}updateWxsStyle(){var{__wxsStyle:t}=this.$el;t&&this.$el.setAttribute("style",mp(t))}setStyle(t){return!this.$el||!t?this:(typeof t=="string"&&(t=_u(t)),_t(t)&&(this.$el.__wxsStyle=t,this.forceUpdate("style")),this)}addClass(t){if(!this.$el||!t)return this;var r=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return r.indexOf(t)===-1&&(r.push(t),this.forceUpdate("class")),this}removeClass(t){if(!this.$el||!t)return this;var{__wxsAddClass:r}=this.$el;if(r){var i=r.indexOf(t);i>-1&&r.splice(i,1)}var a=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return a.indexOf(t)===-1&&(a.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.$vm[t];oe(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(Lp,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,a)=>(i[a]=r[a],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function As(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new db(e)),e.$el.__wxsComponentDescriptor}function Ni(e,t){return As(e)}function gc(e){if(!!e)return qr(e)}function qr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:a,__wxsClassChanged:n}=e,o,s;a&&(e.__wxsStyleChanged=!1,t&&(s=()=>{Object.keys(t).forEach(u=>{e.style[u]=t[u]})})),n&&(e.__wxsClassChanged=!1,o=()=>{i&&i.forEach(u=>{e.classList.remove(u)}),r&&r.forEach(u=>{e.classList.add(u)})}),requestAnimationFrame(()=>{o&&o(),s&&s()})}})}var vb=e=>e.type==="click";function pc(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];var a=i.tagName.indexOf("UNI-")!==0,n=mc(e,a);if(vb(e))gb(n,e);else if(e instanceof TouchEvent){var o=Ss();n.touches=_c(e.touches,o),n.changedTouches=_c(e.changedTouches,o)}return[n]}function hb(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function mc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,{type:r,timeStamp:i,target:a,currentTarget:n}=e,o={type:r,timeStamp:i,target:Po(t?a:hb(a)),detail:{},currentTarget:Po(n)};return e._stopped&&(o._stopped=!0),e.type.startsWith("touch")&&(o.touches=e.touches,o.changedTouches=e.changedTouches),o}function gb(e,t){var{x:r,y:i}=t,a=Ss();e.detail={x:r,y:i-a},e.touches=e.changedTouches=[pb(t,a)]}function pb(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function _c(e,t){for(var r=[],i=0;i<e.length;i++){var{identifier:a,pageX:n,pageY:o,clientX:s,clientY:u,force:l}=e[i];r.push({identifier:a,pageX:n,pageY:o-t,clientX:s,clientY:u-t,force:l||0})}return r}var bc="vdSync",mb="__uniapp__service",Is="onWebviewReady",_b=0,bb="webviewInserted",wb="webviewRemoved",yb="webviewId",xb="setLocale",wc=ce(km,{publishHandler:Sb});function Sb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Gt()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:r}},mb)}function Eb(e,t){var r=e[0];if(!(!t||!_t(t.formatArgs)&&_t(r)))for(var i=t.formatArgs,a=Object.keys(i),n=0;n<a.length;n++){var o=a[n],s=i[o];if(oe(s)){var u=s(e[0][o],r);if(Ee(u))return u}else ie(r,o)||(r[o]=s)}}function Tb(e,t,r,i){if(i&&i.beforeInvoke){var a=i.beforeInvoke(t);if(Ee(a))return a}var n=Eb(t,i);if(n)return n}function Cb(e,t,r,i){return function(){for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];var s=Tb(e,n,r,i);if(s)throw new Error(s);return t.apply(null,n)}}function Ob(e,t,r,i){return Cb(e,t,void 0,i)}function yc(){if(typeof __SYSTEM_INFO__!="undefined")return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize()||{resolutionWidth:0};return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}function st(e){if(e.indexOf("//")===0)return"https:"+e;if(Op.test(e)||Ap.test(e))return e;if(Ab(e))return"file://"+xc(e);var t="file://"+xc("_www");if(e.indexOf("/")===0)return e.startsWith("/storage/")||e.startsWith("/sdcard/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(e.indexOf("../")===0||e.indexOf("./")===0){if(typeof __id__=="string")return t+Es(Ro(__id__),e);var r=ob();if(r)return t+Es(Ro(r.route),e)}return e}var xc=Np(e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Ab(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}var Ib=0;function kb(e,t,r){var i="".concat(Date.now()).concat(Ib++),a=e.split(","),n=a[0],o=a[1],s=(n.match(/data:image\/(\S+?);/)||["","png"])[1].replace("jpeg","jpg"),u="".concat(i,".").concat(s),l="".concat(t,"/").concat(u),f=t.indexOf("/"),v=t.substring(0,f),p=t.substring(f+1);plus.io.resolveLocalFileSystemURL(v,function(g){g.getDirectory(p,{create:!0,exclusive:!1},function(y){y.getFile(u,{create:!0,exclusive:!1},function(m){m.createWriter(function(w){w.onwrite=function(){r(null,l)},w.onerror=r,w.seek(0),w.writeAsBinary(o)},r)},r)},r)},r)}function Mb(e){return new Promise(function(t,r){function i(){var a=new plus.nativeObj.Bitmap("bitmap_".concat(Date.now(),"_").concat(Math.random(),"}"));a.load(e,function(){t(a.toBase64Data()),a.clear()},function(n){a.clear(),r(n)})}plus.io.resolveLocalFileSystemURL(e,function(a){a.file(function(n){var o=new plus.io.FileReader;o.onload=function(s){t(s.target.result)},o.onerror=i,o.readAsDataURL(n)},i)},i)})}function Rb(e){return new Promise(function(t,r){if(e.indexOf("http://")!==0&&e.indexOf("https://")!==0){t(e);return}plus.downloader.createDownload(e,{filename:"_doc/uniapp_temp/download/"},function(i,a){a===200?t(i.filename):r(new Error("network fail"))}).start()})}function Lb(e){return Rb(e).then(function(t){var r=window;return r.webkit&&r.webkit.messageHandlers?Mb(t):plus.io.convertLocalFileSystemURL(t)})}var Bt={};(function(e){var t=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function r(n,o){return Object.prototype.hasOwnProperty.call(n,o)}e.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(!!s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var u in s)r(s,u)&&(n[u]=s[u])}}return n},e.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var i={arraySet:function(n,o,s,u,l){if(o.subarray&&n.subarray){n.set(o.subarray(s,s+u),l);return}for(var f=0;f<u;f++)n[l+f]=o[s+f]},flattenChunks:function(n){var o,s,u,l,f,v;for(u=0,o=0,s=n.length;o<s;o++)u+=n[o].length;for(v=new Uint8Array(u),l=0,o=0,s=n.length;o<s;o++)f=n[o],v.set(f,l),l+=f.length;return v}},a={arraySet:function(n,o,s,u,l){for(var f=0;f<u;f++)n[l+f]=o[s+f]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(Bt);var Di={},Tt={},Xr={},Pb=Bt,Nb=4,Sc=0,Ec=1,Db=2;function Zr(e){for(var t=e.length;--t>=0;)e[t]=0}var Bb=0,Tc=1,Fb=2,$b=3,zb=258,ks=29,Bi=256,Fi=Bi+1+ks,Kr=30,Ms=19,Cc=2*Fi+1,mr=15,Rs=16,Ub=7,Ls=256,Oc=16,Ac=17,Ic=18,Ps=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],mn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Hb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],kc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Wb=512,Ft=new Array((Fi+2)*2);Zr(Ft);var $i=new Array(Kr*2);Zr($i);var zi=new Array(Wb);Zr(zi);var Ui=new Array(zb-$b+1);Zr(Ui);var Ns=new Array(ks);Zr(Ns);var _n=new Array(Kr);Zr(_n);function Ds(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var Mc,Rc,Lc;function Bs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Pc(e){return e<256?zi[e]:zi[256+(e>>>7)]}function Hi(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Ze(e,t,r){e.bi_valid>Rs-r?(e.bi_buf|=t<<e.bi_valid&65535,Hi(e,e.bi_buf),e.bi_buf=t>>Rs-e.bi_valid,e.bi_valid+=r-Rs):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Ct(e,t,r){Ze(e,r[t*2],r[t*2+1])}function Nc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Vb(e){e.bi_valid===16?(Hi(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function jb(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,n=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,l,f,v,p,g,y,m=0;for(p=0;p<=mr;p++)e.bl_count[p]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Cc;l++)f=e.heap[l],p=r[r[f*2+1]*2+1]+1,p>u&&(p=u,m++),r[f*2+1]=p,!(f>i)&&(e.bl_count[p]++,g=0,f>=s&&(g=o[f-s]),y=r[f*2],e.opt_len+=y*(p+g),n&&(e.static_len+=y*(a[f*2+1]+g)));if(m!==0){do{for(p=u-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[u]--,m-=2}while(m>0);for(p=u;p!==0;p--)for(f=e.bl_count[p];f!==0;)v=e.heap[--l],!(v>i)&&(r[v*2+1]!==p&&(e.opt_len+=(p-r[v*2+1])*r[v*2],r[v*2+1]=p),f--)}}function Dc(e,t,r){var i=new Array(mr+1),a=0,n,o;for(n=1;n<=mr;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=Nc(i[s]++,s))}}function Yb(){var e,t,r,i,a,n=new Array(mr+1);for(r=0,i=0;i<ks-1;i++)for(Ns[i]=r,e=0;e<1<<Ps[i];e++)Ui[r++]=i;for(Ui[r-1]=i,a=0,i=0;i<16;i++)for(_n[i]=a,e=0;e<1<<mn[i];e++)zi[a++]=i;for(a>>=7;i<Kr;i++)for(_n[i]=a<<7,e=0;e<1<<mn[i]-7;e++)zi[256+a++]=i;for(t=0;t<=mr;t++)n[t]=0;for(e=0;e<=143;)Ft[e*2+1]=8,e++,n[8]++;for(;e<=255;)Ft[e*2+1]=9,e++,n[9]++;for(;e<=279;)Ft[e*2+1]=7,e++,n[7]++;for(;e<=287;)Ft[e*2+1]=8,e++,n[8]++;for(Dc(Ft,Fi+1,n),e=0;e<Kr;e++)$i[e*2+1]=5,$i[e*2]=Nc(e,5);Mc=new Ds(Ft,Ps,Bi+1,Fi,mr),Rc=new Ds($i,mn,0,Kr,mr),Lc=new Ds(new Array(0),Hb,0,Ms,Ub)}function Bc(e){var t;for(t=0;t<Fi;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Kr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ms;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ls*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Fc(e){e.bi_valid>8?Hi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function qb(e,t,r,i){Fc(e),i&&(Hi(e,r),Hi(e,~r)),Pb.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function $c(e,t,r,i){var a=t*2,n=r*2;return e[a]<e[n]||e[a]===e[n]&&i[t]<=i[r]}function Fs(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&$c(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!$c(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function zc(e,t,r){var i,a,n=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],a=e.pending_buf[e.l_buf+n],n++,i===0?Ct(e,a,t):(o=Ui[a],Ct(e,o+Bi+1,t),s=Ps[o],s!==0&&(a-=Ns[o],Ze(e,a,s)),i--,o=Pc(i),Ct(e,o,r),s=mn[o],s!==0&&(i-=_n[o],Ze(e,i,s)));while(n<e.last_lit);Ct(e,Ls,t)}function $s(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,n=t.stat_desc.elems,o,s,u=-1,l;for(e.heap_len=0,e.heap_max=Cc,o=0;o<n;o++)r[o*2]!==0?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=u<2?++u:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,a&&(e.static_len-=i[l*2+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)Fs(e,r,o);l=n;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Fs(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[l*2]=r[o*2]+r[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=l,e.heap[1]=l++,Fs(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],jb(e,t),Dc(r,u,e.bl_count)}function Uc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)n=o,o=t[(i+1)*2+1],!(++s<u&&n===o)&&(s<l?e.bl_tree[n*2]+=s:n!==0?(n!==a&&e.bl_tree[n*2]++,e.bl_tree[Oc*2]++):s<=10?e.bl_tree[Ac*2]++:e.bl_tree[Ic*2]++,s=0,a=n,o===0?(u=138,l=3):n===o?(u=6,l=3):(u=7,l=4))}function Hc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),i=0;i<=r;i++)if(n=o,o=t[(i+1)*2+1],!(++s<u&&n===o)){if(s<l)do Ct(e,n,e.bl_tree);while(--s!==0);else n!==0?(n!==a&&(Ct(e,n,e.bl_tree),s--),Ct(e,Oc,e.bl_tree),Ze(e,s-3,2)):s<=10?(Ct(e,Ac,e.bl_tree),Ze(e,s-3,3)):(Ct(e,Ic,e.bl_tree),Ze(e,s-11,7));s=0,a=n,o===0?(u=138,l=3):n===o?(u=6,l=3):(u=7,l=4)}}function Xb(e){var t;for(Uc(e,e.dyn_ltree,e.l_desc.max_code),Uc(e,e.dyn_dtree,e.d_desc.max_code),$s(e,e.bl_desc),t=Ms-1;t>=3&&e.bl_tree[kc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Zb(e,t,r,i){var a;for(Ze(e,t-257,5),Ze(e,r-1,5),Ze(e,i-4,4),a=0;a<i;a++)Ze(e,e.bl_tree[kc[a]*2+1],3);Hc(e,e.dyn_ltree,t-1),Hc(e,e.dyn_dtree,r-1)}function Kb(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Sc;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ec;for(r=32;r<Bi;r++)if(e.dyn_ltree[r*2]!==0)return Ec;return Sc}var Wc=!1;function Gb(e){Wc||(Yb(),Wc=!0),e.l_desc=new Bs(e.dyn_ltree,Mc),e.d_desc=new Bs(e.dyn_dtree,Rc),e.bl_desc=new Bs(e.bl_tree,Lc),e.bi_buf=0,e.bi_valid=0,Bc(e)}function Vc(e,t,r,i){Ze(e,(Bb<<1)+(i?1:0),3),qb(e,t,r,!0)}function Jb(e){Ze(e,Tc<<1,3),Ct(e,Ls,Ft),Vb(e)}function Qb(e,t,r,i){var a,n,o=0;e.level>0?(e.strm.data_type===Db&&(e.strm.data_type=Kb(e)),$s(e,e.l_desc),$s(e,e.d_desc),o=Xb(e),a=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=a&&(a=n)):a=n=r+5,r+4<=a&&t!==-1?Vc(e,t,r,i):e.strategy===Nb||n===a?(Ze(e,(Tc<<1)+(i?1:0),3),zc(e,Ft,$i)):(Ze(e,(Fb<<1)+(i?1:0),3),Zb(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),zc(e,e.dyn_ltree,e.dyn_dtree)),Bc(e),i&&Fc(e)}function ew(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Ui[r]+Bi+1)*2]++,e.dyn_dtree[Pc(t)*2]++),e.last_lit===e.lit_bufsize-1}Xr._tr_init=Gb,Xr._tr_stored_block=Vc,Xr._tr_flush_block=Qb,Xr._tr_tally=ew,Xr._tr_align=Jb;function tw(e,t,r,i){for(var a=e&65535|0,n=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do a=a+t[i++]|0,n=n+a|0;while(--o);a%=65521,n%=65521}return a|n<<16|0}var jc=tw;function rw(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var iw=rw();function aw(e,t,r,i){var a=iw,n=i+r;e^=-1;for(var o=i;o<n;o++)e=e>>>8^a[(e^t[o])&255];return e^-1}var Yc=aw,zs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},qe=Bt,lt=Xr,qc=jc,Jt=Yc,nw=zs,_r=0,ow=1,sw=3,Qt=4,Xc=5,Ot=0,Zc=1,ut=-2,lw=-3,Us=-5,uw=-1,fw=1,bn=2,cw=3,dw=4,vw=0,hw=2,wn=8,gw=9,pw=15,mw=8,_w=29,bw=256,Hs=bw+1+_w,ww=30,yw=19,xw=2*Hs+1,Sw=15,de=3,er=258,ht=er+de+1,Ew=32,yn=42,Ws=69,xn=73,Sn=91,En=103,br=113,Wi=666,Pe=1,Vi=2,wr=3,Gr=4,Tw=3;function tr(e,t){return e.msg=nw[t],t}function Kc(e){return(e<<1)-(e>4?9:0)}function rr(e){for(var t=e.length;--t>=0;)e[t]=0}function ir(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(qe.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function He(e,t){lt._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ir(e.strm)}function pe(e,t){e.pending_buf[e.pending++]=t}function ji(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Cw(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,qe.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=qc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Jt(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function Gc(e,t){var r=e.max_chain_length,i=e.strstart,a,n,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-ht?e.strstart-(e.w_size-ht):0,l=e.window,f=e.w_mask,v=e.prev,p=e.strstart+er,g=l[i+o-1],y=l[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(l[a+o]!==y||l[a+o-1]!==g||l[a]!==l[i]||l[++a]!==l[i+1])){i+=2,a++;do;while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<p);if(n=er-(p-i),i=p-er,n>o){if(e.match_start=t,o=n,n>=s)break;g=l[i+o-1],y=l[i+o]}}while((t=v[t&f])>u&&--r!==0);return o<=e.lookahead?o:e.lookahead}function yr(e){var t=e.w_size,r,i,a,n,o;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ht)){qe.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);n+=t}if(e.strm.avail_in===0)break;if(i=Cw(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=i,e.lookahead+e.insert>=de)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+de-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<de)););}while(e.lookahead<ht&&e.strm.avail_in!==0)}function Ow(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(yr(e),e.lookahead===0&&t===_r)return Pe;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,He(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-ht&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):(e.strstart>e.block_start&&(He(e,!1),e.strm.avail_out===0),Pe)}function Vs(e,t){for(var r,i;;){if(e.lookahead<ht){if(yr(e),e.lookahead<ht&&t===_r)return Pe;if(e.lookahead===0)break}if(r=0,e.lookahead>=de&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-ht&&(e.match_length=Gc(e,r)),e.match_length>=de)if(i=lt._tr_tally(e,e.strstart-e.match_start,e.match_length-de),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=de){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=lt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=e.strstart<de-1?e.strstart:de-1,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function Jr(e,t){for(var r,i,a;;){if(e.lookahead<ht){if(yr(e),e.lookahead<ht&&t===_r)return Pe;if(e.lookahead===0)break}if(r=0,e.lookahead>=de&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=de-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-ht&&(e.match_length=Gc(e,r),e.match_length<=5&&(e.strategy===fw||e.match_length===de&&e.strstart-e.match_start>4096)&&(e.match_length=de-1)),e.prev_length>=de&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-de,i=lt._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-de),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+de-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=de-1,e.strstart++,i&&(He(e,!1),e.strm.avail_out===0))return Pe}else if(e.match_available){if(i=lt._tr_tally(e,0,e.window[e.strstart-1]),i&&He(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Pe}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=lt._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<de-1?e.strstart:de-1,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function Aw(e,t){for(var r,i,a,n,o=e.window;;){if(e.lookahead<=er){if(yr(e),e.lookahead<=er&&t===_r)return Pe;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=de&&e.strstart>0&&(a=e.strstart-1,i=o[a],i===o[++a]&&i===o[++a]&&i===o[++a])){n=e.strstart+er;do;while(i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&a<n);e.match_length=er-(n-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=de?(r=lt._tr_tally(e,1,e.match_length-de),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=lt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function Iw(e,t){for(var r;;){if(e.lookahead===0&&(yr(e),e.lookahead===0)){if(t===_r)return Pe;break}if(e.match_length=0,r=lt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function At(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var Qr;Qr=[new At(0,0,0,0,Ow),new At(4,4,8,4,Vs),new At(4,5,16,8,Vs),new At(4,6,32,32,Vs),new At(4,4,16,16,Jr),new At(8,16,32,32,Jr),new At(8,16,128,128,Jr),new At(8,32,128,256,Jr),new At(32,128,258,1024,Jr),new At(32,258,258,4096,Jr)];function kw(e){e.window_size=2*e.w_size,rr(e.head),e.max_lazy_match=Qr[e.level].max_lazy,e.good_match=Qr[e.level].good_length,e.nice_match=Qr[e.level].nice_length,e.max_chain_length=Qr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=de-1,e.match_available=0,e.ins_h=0}function Mw(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=wn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new qe.Buf16(xw*2),this.dyn_dtree=new qe.Buf16((2*ww+1)*2),this.bl_tree=new qe.Buf16((2*yw+1)*2),rr(this.dyn_ltree),rr(this.dyn_dtree),rr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new qe.Buf16(Sw+1),this.heap=new qe.Buf16(2*Hs+1),rr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new qe.Buf16(2*Hs+1),rr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Jc(e){var t;return!e||!e.state?tr(e,ut):(e.total_in=e.total_out=0,e.data_type=hw,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?yn:br,e.adler=t.wrap===2?0:1,t.last_flush=_r,lt._tr_init(t),Ot)}function Qc(e){var t=Jc(e);return t===Ot&&kw(e.state),t}function Rw(e,t){return!e||!e.state||e.state.wrap!==2?ut:(e.state.gzhead=t,Ot)}function ed(e,t,r,i,a,n){if(!e)return ut;var o=1;if(t===uw&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),a<1||a>gw||r!==wn||i<8||i>15||t<0||t>9||n<0||n>dw)return tr(e,ut);i===8&&(i=9);var s=new Mw;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+de-1)/de),s.window=new qe.Buf8(s.w_size*2),s.head=new qe.Buf16(s.hash_size),s.prev=new qe.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new qe.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=(1+2)*s.lit_bufsize,s.level=t,s.strategy=n,s.method=r,Qc(e)}function Lw(e,t){return ed(e,t,wn,pw,mw,vw)}function Pw(e,t){var r,i,a,n;if(!e||!e.state||t>Xc||t<0)return e?tr(e,ut):ut;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Wi&&t!==Qt)return tr(e,e.avail_out===0?Us:ut);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===yn)if(i.wrap===2)e.adler=0,pe(i,31),pe(i,139),pe(i,8),i.gzhead?(pe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),pe(i,i.gzhead.time&255),pe(i,i.gzhead.time>>8&255),pe(i,i.gzhead.time>>16&255),pe(i,i.gzhead.time>>24&255),pe(i,i.level===9?2:i.strategy>=bn||i.level<2?4:0),pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(pe(i,i.gzhead.extra.length&255),pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Jt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Ws):(pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,i.level===9?2:i.strategy>=bn||i.level<2?4:0),pe(i,Tw),i.status=br);else{var o=wn+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=bn||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=Ew),o+=31-o%31,i.status=br,ji(i,o),i.strstart!==0&&(ji(i,e.adler>>>16),ji(i,e.adler&65535)),e.adler=1}if(i.status===Ws)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size));)pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=xn)}else i.status=xn;if(i.status===xn)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.name.length?n=i.gzhead.name.charCodeAt(i.gzindex++)&255:n=0,pe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.gzindex=0,i.status=Sn)}else i.status=Sn;if(i.status===Sn)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.comment.length?n=i.gzhead.comment.charCodeAt(i.gzindex++)&255:n=0,pe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.status=En)}else i.status=En;if(i.status===En&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ir(e),i.pending+2<=i.pending_buf_size&&(pe(i,e.adler&255),pe(i,e.adler>>8&255),e.adler=0,i.status=br)):i.status=br),i.pending!==0){if(ir(e),e.avail_out===0)return i.last_flush=-1,Ot}else if(e.avail_in===0&&Kc(t)<=Kc(r)&&t!==Qt)return tr(e,Us);if(i.status===Wi&&e.avail_in!==0)return tr(e,Us);if(e.avail_in!==0||i.lookahead!==0||t!==_r&&i.status!==Wi){var u=i.strategy===bn?Iw(i,t):i.strategy===cw?Aw(i,t):Qr[i.level].func(i,t);if((u===wr||u===Gr)&&(i.status=Wi),u===Pe||u===wr)return e.avail_out===0&&(i.last_flush=-1),Ot;if(u===Vi&&(t===ow?lt._tr_align(i):t!==Xc&&(lt._tr_stored_block(i,0,0,!1),t===sw&&(rr(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ir(e),e.avail_out===0))return i.last_flush=-1,Ot}return t!==Qt?Ot:i.wrap<=0?Zc:(i.wrap===2?(pe(i,e.adler&255),pe(i,e.adler>>8&255),pe(i,e.adler>>16&255),pe(i,e.adler>>24&255),pe(i,e.total_in&255),pe(i,e.total_in>>8&255),pe(i,e.total_in>>16&255),pe(i,e.total_in>>24&255)):(ji(i,e.adler>>>16),ji(i,e.adler&65535)),ir(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Ot:Zc)}function Nw(e){var t;return!e||!e.state?ut:(t=e.state.status,t!==yn&&t!==Ws&&t!==xn&&t!==Sn&&t!==En&&t!==br&&t!==Wi?tr(e,ut):(e.state=null,t===br?tr(e,lw):Ot))}function Dw(e,t){var r=t.length,i,a,n,o,s,u,l,f;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==yn||i.lookahead))return ut;for(o===1&&(e.adler=qc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(rr(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new qe.Buf8(i.w_size),qe.arraySet(f,t,r-i.w_size,i.w_size,0),t=f,r=i.w_size),s=e.avail_in,u=e.next_in,l=e.input,e.avail_in=r,e.next_in=0,e.input=t,yr(i);i.lookahead>=de;){a=i.strstart,n=i.lookahead-(de-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+de-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--n);i.strstart=a,i.lookahead=de-1,yr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=de-1,i.match_available=0,e.next_in=u,e.input=l,e.avail_in=s,i.wrap=o,Ot}Tt.deflateInit=Lw,Tt.deflateInit2=ed,Tt.deflateReset=Qc,Tt.deflateResetKeep=Jc,Tt.deflateSetHeader=Rw,Tt.deflate=Pw,Tt.deflateEnd=Nw,Tt.deflateSetDictionary=Dw,Tt.deflateInfo="pako deflate (from Nodeca project)";var xr={},Tn=Bt,td=!0,rd=!0;try{String.fromCharCode.apply(null,[0])}catch(e){td=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){rd=!1}for(var Yi=new Tn.Buf8(256),ar=0;ar<256;ar++)Yi[ar]=ar>=252?6:ar>=248?5:ar>=240?4:ar>=224?3:ar>=192?2:1;Yi[254]=Yi[254]=1,xr.string2buf=function(e){var t,r,i,a,n,o=e.length,s=0;for(a=0;a<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<o&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Tn.Buf8(s),n=0,a=0;n<s;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<o&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[n++]=r:r<2048?(t[n++]=192|r>>>6,t[n++]=128|r&63):r<65536?(t[n++]=224|r>>>12,t[n++]=128|r>>>6&63,t[n++]=128|r&63):(t[n++]=240|r>>>18,t[n++]=128|r>>>12&63,t[n++]=128|r>>>6&63,t[n++]=128|r&63);return t};function id(e,t){if(t<65534&&(e.subarray&&rd||!e.subarray&&td))return String.fromCharCode.apply(null,Tn.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}xr.buf2binstring=function(e){return id(e,e.length)},xr.binstring2buf=function(e){for(var t=new Tn.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},xr.buf2string=function(e,t){var r,i,a,n,o=t||e.length,s=new Array(o*2);for(i=0,r=0;r<o;){if(a=e[r++],a<128){s[i++]=a;continue}if(n=Yi[a],n>4){s[i++]=65533,r+=n-1;continue}for(a&=n===2?31:n===3?15:7;n>1&&r<o;)a=a<<6|e[r++]&63,n--;if(n>1){s[i++]=65533;continue}a<65536?s[i++]=a:(a-=65536,s[i++]=55296|a>>10&1023,s[i++]=56320|a&1023)}return id(s,i)},xr.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Yi[e[r]]>t?r:t};function Bw(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ad=Bw,qi=Tt,Xi=Bt,js=xr,Ys=zs,Fw=ad,nd=Object.prototype.toString,$w=0,qs=4,ei=0,od=1,sd=2,zw=-1,Uw=0,Hw=8;function Sr(e){if(!(this instanceof Sr))return new Sr(e);this.options=Xi.assign({level:zw,method:Hw,chunkSize:16384,windowBits:15,memLevel:8,strategy:Uw,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Fw,this.strm.avail_out=0;var r=qi.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ei)throw new Error(Ys[r]);if(t.header&&qi.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=js.string2buf(t.dictionary):nd.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=qi.deflateSetDictionary(this.strm,i),r!==ei)throw new Error(Ys[r]);this._dict_set=!0}}Sr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,n;if(this.ended)return!1;n=t===~~t?t:t===!0?qs:$w,typeof e=="string"?r.input=js.string2buf(e):nd.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Xi.Buf8(i),r.next_out=0,r.avail_out=i),a=qi.deflate(r,n),a!==od&&a!==ei)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(n===qs||n===sd))&&(this.options.to==="string"?this.onData(js.buf2binstring(Xi.shrinkBuf(r.output,r.next_out))):this.onData(Xi.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==od);return n===qs?(a=qi.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ei):(n===sd&&(this.onEnd(ei),r.avail_out=0),!0)},Sr.prototype.onData=function(e){this.chunks.push(e)},Sr.prototype.onEnd=function(e){e===ei&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Xi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xs(e,t){var r=new Sr(t);if(r.push(e,!0),r.err)throw r.msg||Ys[r.err];return r.result}function Ww(e,t){return t=t||{},t.raw=!0,Xs(e,t)}function Vw(e,t){return t=t||{},t.gzip=!0,Xs(e,t)}Di.Deflate=Sr,Di.deflate=Xs,Di.deflateRaw=Ww,Di.gzip=Vw;var Zi={},gt={},Cn=30,jw=12,Yw=function(t,r){var i,a,n,o,s,u,l,f,v,p,g,y,m,w,h,b,c,d,_,x,E,C,O,M,R;i=t.state,a=t.next_in,M=t.input,n=a+(t.avail_in-5),o=t.next_out,R=t.output,s=o-(r-t.avail_out),u=o+(t.avail_out-257),l=i.dmax,f=i.wsize,v=i.whave,p=i.wnext,g=i.window,y=i.hold,m=i.bits,w=i.lencode,h=i.distcode,b=(1<<i.lenbits)-1,c=(1<<i.distbits)-1;e:do{m<15&&(y+=M[a++]<<m,m+=8,y+=M[a++]<<m,m+=8),d=w[y&b];t:for(;;){if(_=d>>>24,y>>>=_,m-=_,_=d>>>16&255,_===0)R[o++]=d&65535;else if(_&16){x=d&65535,_&=15,_&&(m<_&&(y+=M[a++]<<m,m+=8),x+=y&(1<<_)-1,y>>>=_,m-=_),m<15&&(y+=M[a++]<<m,m+=8,y+=M[a++]<<m,m+=8),d=h[y&c];r:for(;;){if(_=d>>>24,y>>>=_,m-=_,_=d>>>16&255,_&16){if(E=d&65535,_&=15,m<_&&(y+=M[a++]<<m,m+=8,m<_&&(y+=M[a++]<<m,m+=8)),E+=y&(1<<_)-1,E>l){t.msg="invalid distance too far back",i.mode=Cn;break e}if(y>>>=_,m-=_,_=o-s,E>_){if(_=E-_,_>v&&i.sane){t.msg="invalid distance too far back",i.mode=Cn;break e}if(C=0,O=g,p===0){if(C+=f-_,_<x){x-=_;do R[o++]=g[C++];while(--_);C=o-E,O=R}}else if(p<_){if(C+=f+p-_,_-=p,_<x){x-=_;do R[o++]=g[C++];while(--_);if(C=0,p<x){_=p,x-=_;do R[o++]=g[C++];while(--_);C=o-E,O=R}}}else if(C+=p-_,_<x){x-=_;do R[o++]=g[C++];while(--_);C=o-E,O=R}for(;x>2;)R[o++]=O[C++],R[o++]=O[C++],R[o++]=O[C++],x-=3;x&&(R[o++]=O[C++],x>1&&(R[o++]=O[C++]))}else{C=o-E;do R[o++]=R[C++],R[o++]=R[C++],R[o++]=R[C++],x-=3;while(x>2);x&&(R[o++]=R[C++],x>1&&(R[o++]=R[C++]))}}else if((_&64)===0){d=h[(d&65535)+(y&(1<<_)-1)];continue r}else{t.msg="invalid distance code",i.mode=Cn;break e}break}}else if((_&64)===0){d=w[(d&65535)+(y&(1<<_)-1)];continue t}else if(_&32){i.mode=jw;break e}else{t.msg="invalid literal/length code",i.mode=Cn;break e}break}}while(a<n&&o<u);x=m>>3,a-=x,m-=x<<3,y&=(1<<m)-1,t.next_in=a,t.next_out=o,t.avail_in=a<n?5+(n-a):5-(a-n),t.avail_out=o<u?257+(u-o):257-(o-u),i.hold=y,i.bits=m},ld=Bt,ti=15,ud=852,fd=592,cd=0,Zs=1,dd=2,qw=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Xw=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Zw=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Kw=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Gw=function(t,r,i,a,n,o,s,u){var l=u.bits,f=0,v=0,p=0,g=0,y=0,m=0,w=0,h=0,b=0,c=0,d,_,x,E,C,O=null,M=0,R,U=new ld.Buf16(ti+1),te=new ld.Buf16(ti+1),L=null,H=0,q,re,V;for(f=0;f<=ti;f++)U[f]=0;for(v=0;v<a;v++)U[r[i+v]]++;for(y=l,g=ti;g>=1&&U[g]===0;g--);if(y>g&&(y=g),g===0)return n[o++]=1<<24|64<<16|0,n[o++]=1<<24|64<<16|0,u.bits=1,0;for(p=1;p<g&&U[p]===0;p++);for(y<p&&(y=p),h=1,f=1;f<=ti;f++)if(h<<=1,h-=U[f],h<0)return-1;if(h>0&&(t===cd||g!==1))return-1;for(te[1]=0,f=1;f<ti;f++)te[f+1]=te[f]+U[f];for(v=0;v<a;v++)r[i+v]!==0&&(s[te[r[i+v]]++]=v);if(t===cd?(O=L=s,R=19):t===Zs?(O=qw,M-=257,L=Xw,H-=257,R=256):(O=Zw,L=Kw,R=-1),c=0,v=0,f=p,C=o,m=y,w=0,x=-1,b=1<<y,E=b-1,t===Zs&&b>ud||t===dd&&b>fd)return 1;for(;;){q=f-w,s[v]<R?(re=0,V=s[v]):s[v]>R?(re=L[H+s[v]],V=O[M+s[v]]):(re=32+64,V=0),d=1<<f-w,_=1<<m,p=_;do _-=d,n[C+(c>>w)+_]=q<<24|re<<16|V|0;while(_!==0);for(d=1<<f-1;c&d;)d>>=1;if(d!==0?(c&=d-1,c+=d):c=0,v++,--U[f]===0){if(f===g)break;f=r[i+s[v]]}if(f>y&&(c&E)!==x){for(w===0&&(w=y),C+=p,m=f-w,h=1<<m;m+w<g&&(h-=U[m+w],!(h<=0));)m++,h<<=1;if(b+=1<<m,t===Zs&&b>ud||t===dd&&b>fd)return 1;x=c&E,n[x]=y<<24|m<<16|C-o|0}}return c!==0&&(n[C+c]=f-w<<24|64<<16|0),u.bits=y,0},it=Bt,Ks=jc,It=Yc,Jw=Yw,Ki=Gw,Qw=0,vd=1,hd=2,gd=4,e1=5,On=6,Er=0,t1=1,r1=2,ft=-2,pd=-3,md=-4,i1=-5,_d=8,bd=1,wd=2,yd=3,xd=4,Sd=5,Ed=6,Td=7,Cd=8,Od=9,Ad=10,An=11,$t=12,Gs=13,Id=14,Js=15,kd=16,Md=17,Rd=18,Ld=19,In=20,kn=21,Pd=22,Nd=23,Dd=24,Bd=25,Fd=26,Qs=27,$d=28,zd=29,Oe=30,Ud=31,a1=32,n1=852,o1=592,s1=15,l1=s1;function Hd(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function u1(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new it.Buf16(320),this.work=new it.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Wd(e){var t;return!e||!e.state?ft:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=bd,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new it.Buf32(n1),t.distcode=t.distdyn=new it.Buf32(o1),t.sane=1,t.back=-1,Er)}function Vd(e){var t;return!e||!e.state?ft:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Wd(e))}function jd(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ft:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Vd(e))}function Yd(e,t){var r,i;return e?(i=new u1,e.state=i,i.window=null,r=jd(e,t),r!==Er&&(e.state=null),r):ft}function f1(e){return Yd(e,l1)}var qd=!0,el,tl;function c1(e){if(qd){var t;for(el=new it.Buf32(512),tl=new it.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ki(vd,e.lens,0,288,el,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ki(hd,e.lens,0,32,tl,0,e.work,{bits:5}),qd=!1}e.lencode=el,e.lenbits=9,e.distcode=tl,e.distbits=5}function Xd(e,t,r,i){var a,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new it.Buf8(n.wsize)),i>=n.wsize?(it.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a>i&&(a=i),it.arraySet(n.window,t,r-i,a,n.wnext),i-=a,i?(it.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=a))),0}function d1(e,t){var r,i,a,n,o,s,u,l,f,v,p,g,y,m,w=0,h,b,c,d,_,x,E,C,O=new it.Buf8(4),M,R,U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ft;r=e.state,r.mode===$t&&(r.mode=Gs),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,v=s,p=u,C=Er;e:for(;;)switch(r.mode){case bd:if(r.wrap===0){r.mode=Gs;break}for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.wrap&2&&l===35615){r.check=0,O[0]=l&255,O[1]=l>>>8&255,r.check=It(r.check,O,2,0),l=0,f=0,r.mode=wd;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Oe;break}if((l&15)!==_d){e.msg="unknown compression method",r.mode=Oe;break}if(l>>>=4,f-=4,E=(l&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=Oe;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=l&512?Ad:$t,l=0,f=0;break;case wd:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.flags=l,(r.flags&255)!==_d){e.msg="unknown compression method",r.mode=Oe;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Oe;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=It(r.check,O,2,0)),l=0,f=0,r.mode=yd;case yd:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.head&&(r.head.time=l),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,r.check=It(r.check,O,4,0)),l=0,f=0,r.mode=xd;case xd:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=It(r.check,O,2,0)),l=0,f=0,r.mode=Sd;case Sd:if(r.flags&1024){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=It(r.check,O,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=Ed;case Ed:if(r.flags&1024&&(g=r.length,g>s&&(g=s),g&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),it.arraySet(r.head.extra,i,n,g,E)),r.flags&512&&(r.check=It(r.check,i,g,n)),s-=g,n+=g,r.length-=g),r.length))break e;r.length=0,r.mode=Td;case Td:if(r.flags&2048){if(s===0)break e;g=0;do E=i[n+g++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&g<s);if(r.flags&512&&(r.check=It(r.check,i,g,n)),s-=g,n+=g,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Cd;case Cd:if(r.flags&4096){if(s===0)break e;g=0;do E=i[n+g++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&g<s);if(r.flags&512&&(r.check=It(r.check,i,g,n)),s-=g,n+=g,E)break e}else r.head&&(r.head.comment=null);r.mode=Od;case Od:if(r.flags&512){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Oe;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=$t;break;case Ad:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}e.adler=r.check=Hd(l),l=0,f=0,r.mode=An;case An:if(r.havedict===0)return e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,r1;e.adler=r.check=1,r.mode=$t;case $t:if(t===e1||t===On)break e;case Gs:if(r.last){l>>>=f&7,f-=f&7,r.mode=Qs;break}for(;f<3;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}switch(r.last=l&1,l>>>=1,f-=1,l&3){case 0:r.mode=Id;break;case 1:if(c1(r),r.mode=In,t===On){l>>>=2,f-=2;break e}break;case 2:r.mode=Md;break;case 3:e.msg="invalid block type",r.mode=Oe}l>>>=2,f-=2;break;case Id:for(l>>>=f&7,f-=f&7;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Oe;break}if(r.length=l&65535,l=0,f=0,r.mode=Js,t===On)break e;case Js:r.mode=kd;case kd:if(g=r.length,g){if(g>s&&(g=s),g>u&&(g=u),g===0)break e;it.arraySet(a,i,n,g,o),s-=g,n+=g,u-=g,o+=g,r.length-=g;break}r.mode=$t;break;case Md:for(;f<14;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.nlen=(l&31)+257,l>>>=5,f-=5,r.ndist=(l&31)+1,l>>>=5,f-=5,r.ncode=(l&15)+4,l>>>=4,f-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Oe;break}r.have=0,r.mode=Rd;case Rd:for(;r.have<r.ncode;){for(;f<3;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.lens[U[r.have++]]=l&7,l>>>=3,f-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,M={bits:r.lenbits},C=Ki(Qw,r.lens,0,19,r.lencode,0,r.work,M),r.lenbits=M.bits,C){e.msg="invalid code lengths set",r.mode=Oe;break}r.have=0,r.mode=Ld;case Ld:for(;r.have<r.nlen+r.ndist;){for(;w=r.lencode[l&(1<<r.lenbits)-1],h=w>>>24,b=w>>>16&255,c=w&65535,!(h<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(c<16)l>>>=h,f-=h,r.lens[r.have++]=c;else{if(c===16){for(R=h+2;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l>>>=h,f-=h,r.have===0){e.msg="invalid bit length repeat",r.mode=Oe;break}E=r.lens[r.have-1],g=3+(l&3),l>>>=2,f-=2}else if(c===17){for(R=h+3;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=h,f-=h,E=0,g=3+(l&7),l>>>=3,f-=3}else{for(R=h+7;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=h,f-=h,E=0,g=11+(l&127),l>>>=7,f-=7}if(r.have+g>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Oe;break}for(;g--;)r.lens[r.have++]=E}}if(r.mode===Oe)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Oe;break}if(r.lenbits=9,M={bits:r.lenbits},C=Ki(vd,r.lens,0,r.nlen,r.lencode,0,r.work,M),r.lenbits=M.bits,C){e.msg="invalid literal/lengths set",r.mode=Oe;break}if(r.distbits=6,r.distcode=r.distdyn,M={bits:r.distbits},C=Ki(hd,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,M),r.distbits=M.bits,C){e.msg="invalid distances set",r.mode=Oe;break}if(r.mode=In,t===On)break e;case In:r.mode=kn;case kn:if(s>=6&&u>=258){e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,Jw(e,p),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,r.mode===$t&&(r.back=-1);break}for(r.back=0;w=r.lencode[l&(1<<r.lenbits)-1],h=w>>>24,b=w>>>16&255,c=w&65535,!(h<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(b&&(b&240)===0){for(d=h,_=b,x=c;w=r.lencode[x+((l&(1<<d+_)-1)>>d)],h=w>>>24,b=w>>>16&255,c=w&65535,!(d+h<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=d,f-=d,r.back+=d}if(l>>>=h,f-=h,r.back+=h,r.length=c,b===0){r.mode=Fd;break}if(b&32){r.back=-1,r.mode=$t;break}if(b&64){e.msg="invalid literal/length code",r.mode=Oe;break}r.extra=b&15,r.mode=Pd;case Pd:if(r.extra){for(R=r.extra;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Nd;case Nd:for(;w=r.distcode[l&(1<<r.distbits)-1],h=w>>>24,b=w>>>16&255,c=w&65535,!(h<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if((b&240)===0){for(d=h,_=b,x=c;w=r.distcode[x+((l&(1<<d+_)-1)>>d)],h=w>>>24,b=w>>>16&255,c=w&65535,!(d+h<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=d,f-=d,r.back+=d}if(l>>>=h,f-=h,r.back+=h,b&64){e.msg="invalid distance code",r.mode=Oe;break}r.offset=c,r.extra=b&15,r.mode=Dd;case Dd:if(r.extra){for(R=r.extra;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Oe;break}r.mode=Bd;case Bd:if(u===0)break e;if(g=p-u,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Oe;break}g>r.wnext?(g-=r.wnext,y=r.wsize-g):y=r.wnext-g,g>r.length&&(g=r.length),m=r.window}else m=a,y=o-r.offset,g=r.length;g>u&&(g=u),u-=g,r.length-=g;do a[o++]=m[y++];while(--g);r.length===0&&(r.mode=kn);break;case Fd:if(u===0)break e;a[o++]=r.length,u--,r.mode=kn;break;case Qs:if(r.wrap){for(;f<32;){if(s===0)break e;s--,l|=i[n++]<<f,f+=8}if(p-=u,e.total_out+=p,r.total+=p,p&&(e.adler=r.check=r.flags?It(r.check,a,p,o-p):Ks(r.check,a,p,o-p)),p=u,(r.flags?l:Hd(l))!==r.check){e.msg="incorrect data check",r.mode=Oe;break}l=0,f=0}r.mode=$d;case $d:if(r.wrap&&r.flags){for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Oe;break}l=0,f=0}r.mode=zd;case zd:C=t1;break e;case Oe:C=pd;break e;case Ud:return md;case a1:default:return ft}return e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,(r.wsize||p!==e.avail_out&&r.mode<Oe&&(r.mode<Qs||t!==gd))&&Xd(e,e.output,e.next_out,p-e.avail_out),v-=e.avail_in,p-=e.avail_out,e.total_in+=v,e.total_out+=p,r.total+=p,r.wrap&&p&&(e.adler=r.check=r.flags?It(r.check,a,p,e.next_out-p):Ks(r.check,a,p,e.next_out-p)),e.data_type=r.bits+(r.last?64:0)+(r.mode===$t?128:0)+(r.mode===In||r.mode===Js?256:0),(v===0&&p===0||t===gd)&&C===Er&&(C=i1),C}function v1(e){if(!e||!e.state)return ft;var t=e.state;return t.window&&(t.window=null),e.state=null,Er}function h1(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ft:(r.head=t,t.done=!1,Er)}function g1(e,t){var r=t.length,i,a,n;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==An)?ft:i.mode===An&&(a=1,a=Ks(a,t,r,0),a!==i.check)?pd:(n=Xd(e,t,r,r),n?(i.mode=Ud,md):(i.havedict=1,Er))}gt.inflateReset=Vd,gt.inflateReset2=jd,gt.inflateResetKeep=Wd,gt.inflateInit=f1,gt.inflateInit2=Yd,gt.inflate=d1,gt.inflateEnd=v1,gt.inflateGetHeader=h1,gt.inflateSetDictionary=g1,gt.inflateInfo="pako inflate (from Nodeca project)";var Zd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function p1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var m1=p1,ri=gt,Gi=Bt,Mn=xr,Me=Zd,rl=zs,_1=ad,b1=m1,Kd=Object.prototype.toString;function Tr(e){if(!(this instanceof Tr))return new Tr(e);this.options=Gi.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _1,this.strm.avail_out=0;var r=ri.inflateInit2(this.strm,t.windowBits);if(r!==Me.Z_OK)throw new Error(rl[r]);if(this.header=new b1,ri.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Mn.string2buf(t.dictionary):Kd.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ri.inflateSetDictionary(this.strm,t.dictionary),r!==Me.Z_OK)))throw new Error(rl[r])}Tr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,n,o,s,u,l,f=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?Me.Z_FINISH:Me.Z_NO_FLUSH,typeof e=="string"?r.input=Mn.binstring2buf(e):Kd.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Gi.Buf8(i),r.next_out=0,r.avail_out=i),n=ri.inflate(r,Me.Z_NO_FLUSH),n===Me.Z_NEED_DICT&&a&&(n=ri.inflateSetDictionary(this.strm,a)),n===Me.Z_BUF_ERROR&&f===!0&&(n=Me.Z_OK,f=!1),n!==Me.Z_STREAM_END&&n!==Me.Z_OK)return this.onEnd(n),this.ended=!0,!1;r.next_out&&(r.avail_out===0||n===Me.Z_STREAM_END||r.avail_in===0&&(o===Me.Z_FINISH||o===Me.Z_SYNC_FLUSH))&&(this.options.to==="string"?(s=Mn.utf8border(r.output,r.next_out),u=r.next_out-s,l=Mn.buf2string(r.output,s),r.next_out=u,r.avail_out=i-u,u&&Gi.arraySet(r.output,r.output,s,u,0),this.onData(l)):this.onData(Gi.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(f=!0)}while((r.avail_in>0||r.avail_out===0)&&n!==Me.Z_STREAM_END);return n===Me.Z_STREAM_END&&(o=Me.Z_FINISH),o===Me.Z_FINISH?(n=ri.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Me.Z_OK):(o===Me.Z_SYNC_FLUSH&&(this.onEnd(Me.Z_OK),r.avail_out=0),!0)},Tr.prototype.onData=function(e){this.chunks.push(e)},Tr.prototype.onEnd=function(e){e===Me.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Gi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function il(e,t){var r=new Tr(t);if(r.push(e,!0),r.err)throw r.msg||rl[r.err];return r.result}function w1(e,t){return t=t||{},t.raw=!0,il(e,t)}Zi.Inflate=Tr,Zi.inflate=il,Zi.inflateRaw=w1,Zi.ungzip=il;var y1=Bt.assign,x1=Di,S1=Zi,E1=Zd,Gd={};y1(Gd,x1,S1,E1);var Jd=Gd,T1="upx2px",C1=1e-4,O1=750,Qd=!1,al=0,ev=0,tv=960,rv=375;function A1(){var{platform:e,pixelRatio:t,windowWidth:r}=yc();al=r,ev=t,Qd=e==="ios"}function iv(e,t){var r=Number(e);return isNaN(r)?t:r}function I1(){var e=__uniConfig.globalStyle||{};tv=iv(e.rpxCalcMaxDeviceWidth,960),rv=iv(e.rpxCalcBaseDeviceWidth,375)}var av=Ob(T1,(e,t)=>{if(al===0&&(A1(),I1()),e=Number(e),e===0)return 0;var r=t||al;r=r<=tv?r:rv;var i=e/O1*r;return i<0&&(i=-i),i=Math.floor(i+C1),i===0&&(ev===1||!Qd?i=1:i=.5),e<0?-i:i});new Ru;var k1=[{name:"id",type:String,required:!0}];k1.concat({name:"componentInstance",type:Object});var nv={};nv.f={}.propertyIsEnumerable;var M1=ui,R1=vo,L1=wa,P1=nv.f,N1=function(e){return function(t){for(var r=L1(t),i=R1(r),a=i.length,n=0,o=[],s;a>n;)s=i[n++],(!M1||P1.call(r,s))&&o.push(e?[s,r[s]]:r[s]);return o}},ov=fo,D1=N1(!1);ov(ov.S,"Object",{values:function(t){return D1(t)}});var B1="setPageMeta",F1="loadFontFace",$1="pageScrollTo",z1=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(c){try{return c.defaultView&&c.defaultView.frameElement||null}catch(d){return null}}var t=function(c){for(var d=c,_=e(d);_;)d=_.ownerDocument,_=e(d);return d}(window.document),r=[],i=null,a=null;function n(c){this.time=c.time,this.target=c.target,this.rootBounds=y(c.rootBounds),this.boundingClientRect=y(c.boundingClientRect),this.intersectionRect=y(c.intersectionRect||g()),this.isIntersecting=!!c.intersectionRect;var d=this.boundingClientRect,_=d.width*d.height,x=this.intersectionRect,E=x.width*x.height;_?this.intersectionRatio=Number((E/_).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(c,d){var _=d||{};if(typeof c!="function")throw new Error("callback must be a function");if(_.root&&_.root.nodeType!=1&&_.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=u(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=c,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(_.rootMargin),this.thresholds=this._initThresholds(_.threshold),this.root=_.root||null,this.rootMargin=this._rootMarginValues.map(function(x){return x.value+x.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return i||(i=function(c,d){!c||!d?a=g():a=m(c,d),r.forEach(function(_){_._checkForIntersections()})}),i},o._resetCrossOriginUpdater=function(){i=null,a=null},o.prototype.observe=function(c){var d=this._observationTargets.some(function(_){return _.element==c});if(!d){if(!(c&&c.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:c,entry:null}),this._monitorIntersections(c.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(c){this._observationTargets=this._observationTargets.filter(function(d){return d.element!=c}),this._unmonitorIntersections(c.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var c=this._queuedEntries.slice();return this._queuedEntries=[],c},o.prototype._initThresholds=function(c){var d=c||[0];return Array.isArray(d)||(d=[d]),d.sort().filter(function(_,x,E){if(typeof _!="number"||isNaN(_)||_<0||_>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return _!==E[x-1]})},o.prototype._parseRootMargin=function(c){var d=c||"0px",_=d.split(/\s+/).map(function(x){var E=/^(-?\d*\.?\d+)(px|%)$/.exec(x);if(!E)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(E[1]),unit:E[2]}});return _[1]=_[1]||_[0],_[2]=_[2]||_[0],_[3]=_[3]||_[1],_},o.prototype._monitorIntersections=function(c){var d=c.defaultView;if(!!d&&this._monitoringDocuments.indexOf(c)==-1){var _=this._checkForIntersections,x=null,E=null;this.POLL_INTERVAL?x=d.setInterval(_,this.POLL_INTERVAL):(l(d,"resize",_,!0),l(c,"scroll",_,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in d&&(E=new d.MutationObserver(_),E.observe(c,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(c),this._monitoringUnsubscribes.push(function(){var M=c.defaultView;M&&(x&&M.clearInterval(x),f(M,"resize",_,!0)),f(c,"scroll",_,!0),E&&E.disconnect()});var C=this.root&&(this.root.ownerDocument||this.root)||t;if(c!=C){var O=e(c);O&&this._monitorIntersections(O.ownerDocument)}}},o.prototype._unmonitorIntersections=function(c){var d=this._monitoringDocuments.indexOf(c);if(d!=-1){var _=this.root&&(this.root.ownerDocument||this.root)||t,x=this._observationTargets.some(function(O){var M=O.element.ownerDocument;if(M==c)return!0;for(;M&&M!=_;){var R=e(M);if(M=R&&R.ownerDocument,M==c)return!0}return!1});if(!x){var E=this._monitoringUnsubscribes[d];if(this._monitoringDocuments.splice(d,1),this._monitoringUnsubscribes.splice(d,1),E(),c!=_){var C=e(c);C&&this._unmonitorIntersections(C.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var c=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var d=0;d<c.length;d++)c[d]()},o.prototype._checkForIntersections=function(){if(!(!this.root&&i&&!a)){var c=this._rootIsInDom(),d=c?this._getRootRect():g();this._observationTargets.forEach(function(_){var x=_.element,E=p(x),C=this._rootContainsTarget(x),O=_.entry,M=c&&C&&this._computeTargetAndRootIntersection(x,E,d),R=null;this._rootContainsTarget(x)?(!i||this.root)&&(R=d):R=g();var U=_.entry=new n({time:s(),target:x,boundingClientRect:E,rootBounds:R,intersectionRect:M});O?c&&C?this._hasCrossedThreshold(O,U)&&this._queuedEntries.push(U):O&&O.isIntersecting&&this._queuedEntries.push(U):this._queuedEntries.push(U)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(c,d,_){if(window.getComputedStyle(c).display!="none"){for(var x=d,E=h(c),C=!1;!C&&E;){var O=null,M=E.nodeType==1?window.getComputedStyle(E):{};if(M.display=="none")return null;if(E==this.root||E.nodeType==9)if(C=!0,E==this.root||E==t)i&&!this.root?!a||a.width==0&&a.height==0?(E=null,O=null,x=null):O=a:O=_;else{var R=h(E),U=R&&p(R),te=R&&this._computeTargetAndRootIntersection(R,U,_);U&&te?(E=R,O=m(U,te)):(E=null,x=null)}else{var L=E.ownerDocument;E!=L.body&&E!=L.documentElement&&M.overflow!="visible"&&(O=p(E))}if(O&&(x=v(O,x)),!x)break;E=E&&h(E)}return x}},o.prototype._getRootRect=function(){var c;if(this.root&&!b(this.root))c=p(this.root);else{var d=b(this.root)?this.root:t,_=d.documentElement,x=d.body;c={top:0,left:0,right:_.clientWidth||x.clientWidth,width:_.clientWidth||x.clientWidth,bottom:_.clientHeight||x.clientHeight,height:_.clientHeight||x.clientHeight}}return this._expandRectByRootMargin(c)},o.prototype._expandRectByRootMargin=function(c){var d=this._rootMarginValues.map(function(x,E){return x.unit=="px"?x.value:x.value*(E%2?c.width:c.height)/100}),_={top:c.top-d[0],right:c.right+d[1],bottom:c.bottom+d[2],left:c.left-d[3]};return _.width=_.right-_.left,_.height=_.bottom-_.top,_},o.prototype._hasCrossedThreshold=function(c,d){var _=c&&c.isIntersecting?c.intersectionRatio||0:-1,x=d.isIntersecting?d.intersectionRatio||0:-1;if(_!==x)for(var E=0;E<this.thresholds.length;E++){var C=this.thresholds[E];if(C==_||C==x||C<_!=C<x)return!0}},o.prototype._rootIsInDom=function(){return!this.root||w(t,this.root)},o.prototype._rootContainsTarget=function(c){var d=this.root&&(this.root.ownerDocument||this.root)||t;return w(d,c)&&(!this.root||d==c.ownerDocument)},o.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},o.prototype._unregisterInstance=function(){var c=r.indexOf(this);c!=-1&&r.splice(c,1)};function s(){return window.performance&&performance.now&&performance.now()}function u(c,d){var _=null;return function(){_||(_=setTimeout(function(){c(),_=null},d))}}function l(c,d,_,x){typeof c.addEventListener=="function"?c.addEventListener(d,_,x||!1):typeof c.attachEvent=="function"&&c.attachEvent("on"+d,_)}function f(c,d,_,x){typeof c.removeEventListener=="function"?c.removeEventListener(d,_,x||!1):typeof c.detatchEvent=="function"&&c.detatchEvent("on"+d,_)}function v(c,d){var _=Math.max(c.top,d.top),x=Math.min(c.bottom,d.bottom),E=Math.max(c.left,d.left),C=Math.min(c.right,d.right),O=C-E,M=x-_;return O>=0&&M>=0&&{top:_,bottom:x,left:E,right:C,width:O,height:M}||null}function p(c){var d;try{d=c.getBoundingClientRect()}catch(_){}return d?(d.width&&d.height||(d={top:d.top,right:d.right,bottom:d.bottom,left:d.left,width:d.right-d.left,height:d.bottom-d.top}),d):g()}function g(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function y(c){return!c||"x"in c?c:{top:c.top,y:c.top,bottom:c.bottom,left:c.left,x:c.left,right:c.right,width:c.width,height:c.height}}function m(c,d){var _=d.top-c.top,x=d.left-c.left;return{top:_,left:x,height:d.height,width:d.width,bottom:_+d.height,right:x+d.width}}function w(c,d){for(var _=d;_;){if(_==c)return!0;_=h(_)}return!1}function h(c){var d=c.parentNode;return c.nodeType==9&&c!=t?e(c):(d&&d.assignedSlot&&(d=d.assignedSlot.parentNode),d&&d.nodeType==11&&d.host?d.host:d)}function b(c){return c&&c.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=n};function nl(e){var{bottom:t,height:r,left:i,right:a,top:n,width:o}=e||{};return{bottom:t,height:r,left:i,right:a,top:n,width:o}}function U1(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:a,width:n}}=e;return t!==0?t:a===r?n/i:a/r}function H1(e,t,r){z1();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,a=new IntersectionObserver(u=>{u.forEach(l=>{r({intersectionRatio:U1(l),intersectionRect:nl(l.intersectionRect),boundingClientRect:nl(l.boundingClientRect),relativeRect:nl(l.rootBounds),time:Date.now(),dataset:Lo(l.target),id:l.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){a.USE_MUTATION_OBSERVER=!0;for(var n=e.querySelectorAll(t.selector),o=0;o<n.length;o++)a.observe(n[o])}else{a.USE_MUTATION_OBSERVER=!1;var s=e.querySelector(t.selector);s?a.observe(s):console.warn("Node ".concat(t.selector," is not found. Intersection observer will not trigger."))}return a}function W1(e){UniViewJSBridge.invokeServiceMethod("navigateTo",e)}function V1(e){UniViewJSBridge.invokeServiceMethod("navigateBack",e)}function j1(e){UniViewJSBridge.invokeServiceMethod("reLaunch",e)}function Y1(e){UniViewJSBridge.invokeServiceMethod("redirectTo",e)}function q1(e){UniViewJSBridge.invokeServiceMethod("switchTab",e)}var X1=Object.freeze(Object.defineProperty({__proto__:null,upx2px:av,navigateTo:W1,navigateBack:V1,reLaunch:j1,redirectTo:Y1,switchTab:q1},Symbol.toStringTag,{value:"Module"}));function Z1(){if(String(navigator.vendor).indexOf("Apple")===0){var e=null,t;document.documentElement.addEventListener("click",r=>{var i=450,a=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=a&&Math.abs(r.pageY-e.pageY)<=a&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function K1(e){if(!e.length)return r=>r;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof r=="number")return e[r];var a={};return r.forEach(n=>{var[o,s]=n;i?a[t(o)]=t(s):a[t(o)]=s}),a};return t}function sv(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=G1(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function G1(e,t){var r={};return e.forEach(i=>{var[a,[n,o]]=i;r[t(a)]=[t(n),o]}),r}function J1(e,t){return e.priority=t,e}var ol=new Set,Q1=1,Rn=2,lv=3,uv=4;function zt(e,t){ol.add(J1(e,t))}function ey(){try{[...ol].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{ol.clear()}}function fv(e,t){var r=window["__"+Ip],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var ty=xu.length;function ry(e,t,r){var[i,a,n,o]=ll(t),s=sl(e,i);if(ne(r)||ne(o)){var[u,l]=n.split(".");return ul(s,a,u,l,r||o)}return ny(s,a,n)}function iy(e,t,r){var[i,a,n]=ll(t),[o,s]=n.split("."),u=sl(e,i);return ul(u,a,o,s,[sy(r,e),Ni(qr(u))])}function sl(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function ll(e){return JSON.parse(e.slice(ty))}function ay(e,t,r,i){var[a,n,o]=ll(e),s=sl(t,a),[u,l]=o.split(".");return ul(s,n,u,l,[r,i,Ni(qr(s)),Ni(qr(t))])}function ul(e,t,r,i,a){var n=fv(t,e);if(!n)return console.error(Mo("wxs","module "+r+" not found"));var o=n[i];return oe(o)?o.apply(n,a):console.error(r+"."+i+" is not a function")}function ny(e,t,r){var i=fv(t,e);return i?Eu(i,r.slice(r.indexOf(".")+1)):console.error(Mo("wxs","module "+r+" not found"))}function oy(e,t,r){var i=r;return a=>{try{ay(t,e.$,a,i)}catch(n){console.error(n)}i=a}}function sy(e,t){var r=qr(t);return Object.defineProperty(e,"instance",{get(){return Ni(r)}}),e}function cv(e,t){Object.keys(t).forEach(r=>{uy(e,t[r])})}function ly(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function uy(e,t){var r=fy(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=cy(i,r)}}function fy(e){var t=window["__"+kp],r=t&&t[e];return r||console.error(Mo("renderjs",e+" not found"))}function cy(e,t){return t=t.default||t,t.render=()=>{},nc(t).mixin({mounted(){this.$ownerInstance=Ni(qr(e))}}).mount(document.createElement("div"))}class ii{constructor(t,r,i,a){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=t,this.tag=r,this.pid=i,a&&(this.$=a),this.$wxsProps=new Map;var n=this.$parent=ET(i);n&&n.appendUniChild(this)}init(t){ie(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t,this.updateView()}insert(t,r,i){i&&this.init(i,!1);var a=this.$,n=Ke(t);r===-1?n.appendChild(a):n.insertBefore(a,Ke(r).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,Ch(this.id),ly(this),this.removeUniChildren(),this.updateView()}appendChild(t){var r=this.$.appendChild(t);return this.updateView(!0),r}insertBefore(t,r){var i=this.$.insertBefore(t,r);return this.updateView(!0),i}appendUniChild(t){this.$children.push(t)}removeUniChild(t){var r=this.$children.indexOf(t);r>=0&&this.$children.splice(r,1)}removeUniParent(){var{$parent:t}=this;t&&(t.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach(t=>t.remove()),this.$children.length=0}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(Fo)===0){var i=r.replace(Fo,""),a=t[i],n=oy(this,t[r],a);zt(()=>n(a),uv),this.$wxsProps.set(r,n),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,a]=t[r];this.addWxsEvent(r,i,a)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.$hasWxsProps&&this.$wxsProps.get(Fo+t);if(a)return zt(()=>i?Ur(()=>a(r)):a(r),uv),!0}updateView(t){(this.isMounted||t)&&window.dispatchEvent(new CustomEvent("updateview"))}}function dv(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(a=>i.indexOf(a)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function fl(e){return vy(Vr(e,!0))}var dy=/url\(\s*'?"?([a-zA-Z0-9\.\-\_\/]+\.(jpg|gif|png))"?'?\s*\)/,vy=e=>{if(Ee(e)&&e.indexOf("url(")!==-1){var t=e.match(dy);t&&t.length===3&&(e=e.replace(t[1],st(t[1])))}return e},vv=["Webkit"],cl={};function hv(e,t){var r=cl[t];if(r)return r;var i=Ht(t);if(i!=="filter"&&i in e)return cl[t]=i;i=Oo(i);for(var a=0;a<vv.length;a++){var n=vv[a]+i;if(n in e)return cl[t]=n}return t}function gv(e,t){var r=e.style;if(Ee(t))t===""?e.removeAttribute("style"):r.cssText=fl(t);else for(var i in t)dl(r,i,t[i]);var{__wxsStyle:a}=e;if(a)for(var n in a)dl(r,n,a[n])}var pv=/\s*!important$/;function dl(e,t,r){if(ne(r))r.forEach(a=>dl(e,t,a));else if(r=fl(r),t.startsWith("--"))e.setProperty(t,r);else{var i=hv(e,t);pv.test(r)?e.setProperty(Je(i),r.replace(pv,""),"important"):e[i]=r}}var hy=Su.length;function vl(e,t){return Ee(t)&&(t.indexOf(Su)===0?t=JSON.parse(t.slice(hy)):t.indexOf(xu)===0&&(t=ry(e,t))),t}function Ln(e){return e.indexOf("--")===0}function gy(e){return!!e.addWxsEvent}function mv(e,t){var r=e.__listeners[t];r&&e.removeEventListener(t,r)}function _v(e,t){if(e.__listeners[t])return!0}function bv(e,t,r){var[i,a]=No(t);r===-1?mv(e,i):_v(e,i)||e.addEventListener(i,e.__listeners[i]=wv(e.__id,r,a),a)}function wv(e,t,r){var i=a=>{var[n]=pc(a);n.type=Vp(a.type,r),UniViewJSBridge.publishHandler(bc,[[am,e,n]])};return t?ws(i,yv(t)):i}function yv(e){var t=[];return e&Do.prevent&&t.push("prevent"),e&Do.self&&t.push("self"),e&Do.stop&&t.push("stop"),t}function py(e,t,r,i){var[a,n]=No(t);i===-1?mv(e,a):_v(e,a)||e.addEventListener(a,e.__listeners[a]=xv(e,r,i),n)}function xv(e,t,r){var i=a=>{iy(gy(e)?e.$:e,t,pc(a)[0])};return r?ws(i,yv(r)):i}function hl(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Sv extends ii{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r.tagName,i,r),this.$props=ke({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=o,this._update=this.update.bind(this),this.init(n),this.insert(i,a)}init(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ie(t,"a")&&this.setAttrs(t.a),ie(t,"s")&&this.setAttr("style",t.s),ie(t,"e")&&this.addEvents(t.e),ie(t,"w")&&this.addWxsEvents(t.w),super.init(t),r&&(W(this.$props,()=>{zt(this._update,Q1)},{flush:"sync"}),this.update(!0))}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){py(this.$,t,r,i)}addEvent(t,r){bv(this.$,t,r)}removeEvent(t){bv(this.$,t,-1)}setAttr(t,r){t===Ou?dv(this.$,r):t===Bo?gv(this.$,r):t===Da?hl(this.$,r):t===Au?this.$.__ownerId=r:t===Iu?zt(()=>cv(this,r),lv):t===jp?this.$.innerHTML=r:t===Yp?this.setText(r):this.setAttribute(t,r),this.updateView()}removeAttr(t){t===Ou?dv(this.$,""):t===Bo?gv(this.$,""):this.removeAttribute(t),this.updateView()}setAttribute(t,r){r=vl(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:Ln(t)?this.$.style.setProperty(t,r):this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:Ln(t)?this.$.style.removeProperty(t):this.$.removeAttribute(t)}update(){}}class my extends ii{constructor(t,r,i){super(t,"#comment",r,document.createComment("")),this.insert(r,i)}}var QT="";function Ev(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function _y(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function by(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],a=["width","height","left","right","top","bottom"],n=e.animates,o=e.option,s=o.transition,u={},l=[];return n.forEach(f=>{var v=f.type,p=[...f.args];if(t.concat(r).includes(v))v.startsWith("rotate")||v.startsWith("skew")?p=p.map(y=>parseFloat(y)+"deg"):v.startsWith("translate")&&(p=p.map(Ev)),r.indexOf(v)>=0&&(p.length=1),l.push("".concat(v,"(").concat(p.join(","),")"));else if(i.concat(a).includes(p[0])){v=p[0];var g=p[1];u[v]=a.includes(v)?Ev(g):g}}),u.transform=u.webkitTransform=l.join(" "),u.transition=u.webkitTransition=Object.keys(u).map(f=>"".concat(_y(f)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")).join(","),u.transformOrigin=u.webkitTransformOrigin=o.transformOrigin,u}function Tv(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,a=t.actions.length;function n(){var o=i[r],s=o.option.transition,u=by(o);Object.keys(u).forEach(l=>{e.$el.style[l]=u[l]}),r+=1,r<a&&setTimeout(n,s.duration+s.delay)}setTimeout(()=>{n()},0)}var Pn={props:["animation"],watch:{animation:{deep:!0,handler(){Tv(this)}}},mounted(){Tv(this)}},ve=e=>{e.__reserved=!0;var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(Pn),wy(e)},wy=e=>(e.__reserved=!0,e.compatConfig={MODE:3},N0(e)),yy={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function gl(e){var t=F(!1),r=!1,i,a;function n(){requestAnimationFrame(()=>{clearTimeout(a),a=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function o(l){l._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||l.touches.length>1||(e.hoverStopPropagation&&(l._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||n()},parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&n()}function u(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:o,onTouchend:s,onTouchcancel:u}}}function ai(e,t){return Ee(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Cr(e){return e.__wwe=!0,e}function Le(e,t){return(r,i,a)=>{e.value&&t(r,Sy(r,i,e.value,a||{}))}}function xy(e){return(t,r)=>{e(t,mc(r))}}function Sy(e,t,r,i){var a=Po(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:a,currentTarget:a,detail:i}}var kt=dn("uf"),Ey=ve({name:"Form",emits:["submit","reset"],setup(e,t){var{slots:r,emit:i}=t,a=F(null);return Ty(Le(a,i)),()=>I("uni-form",{ref:a},[I("span",null,[r.default&&r.default()])],512)}});function Ty(e){var t=[];return ze(kt,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,a)=>{if(a.submit){var[n,o]=a.submit();n&&(i[n]=o)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var Cy={for:{type:String,default:""}},Ji=dn("ul");function Oy(){var e=[];return ze(Ji,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}var Ay=ve({name:"Label",props:Cy,setup(e,t){var{slots:r}=t,i=gn(),a=Oy(),n=ee(()=>e.for||r.default&&r.default.length),o=Cr(s=>{var u=s.target,l=/^uni-(checkbox|radio|switch)-/.test(u.className);l||(l=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(u.tagName)),!l&&(e.for?UniViewJSBridge.emit("uni-label-click-"+i+"-"+e.for,s,!0):a.length&&a[0](s,!0))});return()=>I("uni-label",{class:{"uni-label-pointer":n},onClick:o},[r.default&&r.default()],10,["onClick"])}});function Nn(e,t){Cv(e.id,t),W(()=>e.id,(r,i)=>{Ov(i,t,!0),Cv(r,t,!0)}),Zt(()=>{Ov(e.id,t)})}function Cv(e,t,r){var i=gn();r&&!e||!_t(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.on(a,t[a]):e&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}function Ov(e,t,r){var i=gn();r&&!e||!_t(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.off(a,t[a]):e&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}var Iy={id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},ky=ve({name:"Button",props:Iy,setup(e,t){var{slots:r}=t,i=F(null);Em();var a=_e(kt,!1),{hovering:n,binding:o}=gl(e),{t:s}=Qe(),u=Cr((f,v)=>{if(e.disabled)return f.stopImmediatePropagation();v&&i.value.click();var p=e.formType;if(p){if(!a)return;p==="submit"?a.submit(f):p==="reset"&&a.reset(f);return}e.openType==="feedback"&&My(s("uni.button.feedback.title"),s("uni.button.feedback.send"))}),l=_e(Ji,!1);return l&&(l.addHandler(u),Ce(()=>{l.removeHandler(u)})),Nn(e,{"label-click":u}),()=>{var f=e.hoverClass,v=ai(e,"disabled"),p=ai(e,"loading"),g=ai(e,"plain"),y=f&&f!=="none";return I("uni-button",rt({ref:i,onClick:u,class:y&&n.value?f:""},y&&o,v,p,g),[r.default&&r.default()],16,["onClick"])}}});function My(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var Or=ve({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:r}=t,i=F(null),a=Ly(i),n=Ry(i,r,a);return Py(i,e,n,a),()=>I("uni-resize-sensor",{ref:i,onAnimationstartOnce:n},[I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"]),I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Ry(e,t,r){var i=ke({width:-1,height:-1});return W(()=>ce({},i),a=>t("resize",a)),()=>{var a=e.value;i.width=a.offsetWidth,i.height=a.offsetHeight,r()}}function Ly(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function Py(e,t,r,i){ls(i),Re(()=>{t.initial&&Ur(r);var a=e.value;a.offsetParent!==a.parentElement&&(a.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var ye=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function Av(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;e.width=e.offsetWidth*(t?ye:1),e.height=e.offsetHeight*(t?ye:1),e.getContext("2d").__hidpi__=t}var Iv=!1;function Ny(){if(!Iv){Iv=!0;var e=function(i,a){for(var n in i)ie(i,n)&&a(i[n],n)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(a,n,o,s,u,l,f,v,p,g){if(!this.__hidpi__)return i.apply(this,arguments);n*=ye,o*=ye,s*=ye,u*=ye,l*=ye,f*=ye,v=g?v*ye:v,p=g?p*ye:p,i.call(this,a,n,o,s,u,l,f,v,p)}}(r.drawImage),ye!==1&&(e(t,function(i,a){r[a]=function(n){return function(){if(!this.__hidpi__)return n.apply(this,arguments);var o=Array.prototype.slice.call(arguments);if(i==="all")o=o.map(function(u){return u*ye});else if(Array.isArray(i))for(var s=0;s<i.length;s++)o[i[s]]*=ye;return n.apply(this,o)}}(r[a])}),r.stroke=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);this.lineWidth*=ye,i.apply(this,arguments),this.lineWidth/=ye}}(r.stroke),r.fillText=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);var a=Array.prototype.slice.call(arguments);a[1]*=ye,a[2]*=ye,a[3]&&typeof a[3]=="number"&&(a[3]*=ye);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(o,s,u){return s*ye+u}),i.apply(this,a),this.font=n}}(r.fillText),r.strokeText=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);var a=Array.prototype.slice.call(arguments);a[1]*=ye,a[2]*=ye,a[3]&&typeof a[3]=="number"&&(a[3]*=ye);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(o,s,u){return s*ye+u}),i.apply(this,a),this.font=n}}(r.strokeText),r.drawImage=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);this.scale(ye,ye),i.apply(this,arguments),this.scale(1/ye,1/ye)}}(r.drawImage))}}var Dy=pi(()=>Ny());function kv(e){return e&&st(e)}function Dn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Mv(e,t){var r=e;return Array.from(t).map(i=>{var a=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-a.left,y:i.clientY-a.top}})}var Qi;function Rv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Qi||(Qi=document.createElement("canvas")),Qi.width=e,Qi.height=t,Qi}var By={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},Fy=ve({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:By,computed:{id(){return this.canvasId}},setup(e,t){var{emit:r,slots:i}=t;Dy();var a=F(null),n=F(null),o=F(!1),s=xy(r),{$attrs:u,$excludeAttrs:l,$listeners:f}=Gv({excludeListeners:!0}),{_listeners:v}=$y(e,f,s),{_handleSubscribe:p,_resize:g}=zy(e,a,o);return sa(p,la(e.canvasId),!0),Re(()=>{g()}),()=>{var{canvasId:y,disableScroll:m}=e;return I("uni-canvas",rt({"canvas-id":y,"disable-scroll":m},u.value,l.value,v.value),[I("canvas",{ref:a,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),I("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[i.default&&i.default()]),I(Or,{ref:n,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function $y(e,t,r){var i=ee(()=>{var a=["onTouchstart","onTouchmove","onTouchend"],n=t.value,o=ce({},(()=>{var s={};for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)){var l=n[u];s[u]=l}return s})());return a.forEach(s=>{var u=o[s],l=[];u&&l.push(Cr(f=>{r(s.replace("on","").toLocaleLowerCase(),ce({},(()=>{var v={};for(var p in f)v[p]=f[p];return v})(),{touches:Mv(f.currentTarget,f.touches),changedTouches:Mv(f.currentTarget,f.changedTouches)}))})),e.disableScroll&&s==="onTouchmove"&&l.push(lc),o[s]=l}),o});return{_listeners:i}}function zy(e,t,r){var i=[],a={},n=ee(()=>e.hidpi?ye:1);function o(m){var w=t.value,h=!m||w.width!==Math.floor(m.width*n.value)||w.height!==Math.floor(m.height*n.value);if(!!h)if(w.width>0&&w.height>0){var b=w.getContext("2d"),c=b.getImageData(0,0,w.width,w.height);Av(w,e.hidpi),b.putImageData(c,0,0)}else Av(w,e.hidpi)}function s(m,w){var{actions:h,reserve:b}=m;if(!!h){if(r.value){i.push([h,b]);return}var c=t.value,d=c.getContext("2d");b||(d.fillStyle="#000000",d.strokeStyle="#000000",d.shadowColor="#000000",d.shadowBlur=0,d.shadowOffsetX=0,d.shadowOffsetY=0,d.setTransform(1,0,0,1,0,0),d.clearRect(0,0,c.width,c.height)),u(h);for(var _=function(C){var O=h[C],M=O.method,R=O.data,U=R[0];if(/^set/.test(M)&&M!=="setTransform"){var te=M[3].toLowerCase()+M.slice(4),L;if(te==="fillStyle"||te==="strokeStyle"){if(U==="normal")L=Dn(R[1]);else if(U==="linear"){var H=d.createLinearGradient(...R[1]);R[2].forEach(function(J){var xe=J[0],we=Dn(J[1]);H.addColorStop(xe,we)}),L=H}else if(U==="radial"){var q=R[1],re=q[0],V=q[1],K=q[2],ae=d.createRadialGradient(re,V,0,re,V,K);R[2].forEach(function(J){var xe=J[0],we=Dn(J[1]);ae.addColorStop(xe,we)}),L=ae}else if(U==="pattern"){var Te=l(R[1],h.slice(C+1),w,function(J){J&&(d[te]=d.createPattern(J,R[2]))});return Te?"continue":"break"}d[te]=L}else if(te==="globalAlpha")d[te]=Number(U)/255;else if(te==="shadow"){var se=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];R.forEach(function(J,xe){d[se[xe]]=se[xe]==="shadowColor"?Dn(J):J})}else if(te==="fontSize"){var he=d.__font__||d.font;d.__font__=d.font=he.replace(/\d+\.?\d*px/,U+"px")}else te==="lineDash"?(d.setLineDash(U),d.lineDashOffset=R[1]||0):te==="textBaseline"?(U==="normal"&&(R[0]="alphabetic"),d[te]=U):te==="font"?d.__font__=d.font=U:d[te]=U}else if(M==="fillPath"||M==="strokePath")M=M.replace(/Path/,""),d.beginPath(),R.forEach(function(J){d[J.method].apply(d,J.data)}),d[M]();else if(M==="fillText")d.fillText.apply(d,R);else if(M==="drawImage"){var le=function(){var J=[...R],xe=J[0],we=J.slice(1);if(a=a||{},!l(xe,h.slice(C+1),w,function(Ve){Ve&&d.drawImage.apply(d,[Ve].concat([...we.slice(4,8)],[...we.slice(0,4)]))}))return"break"}();if(le==="break")return"break"}else M==="clip"?(R.forEach(function(J){d[J.method].apply(d,J.data)}),d.clip()):d[M].apply(d,R)},x=0;x<h.length;x++){var E=_(x);if(E==="break")break}r.value||w({errMsg:"drawCanvas:ok"})}}function u(m){m.forEach(function(w){var h=w.method,b=w.data,c="";h==="drawImage"?(c=b[0],c=kv(c),b[0]=c):h==="setFillStyle"&&b[0]==="pattern"&&(c=b[1],c=kv(c),b[1]=c),c&&!a[c]&&d();function d(){var _=a[c]=new Image;if(_.onload=function(){_.ready=!0},navigator.vendor==="Google Inc."){c.indexOf("file://")===0&&(_.crossOrigin="anonymous"),_.src=c;return}Lb(c).then(x=>{_.src=x}).catch(()=>{_.src=c})}})}function l(m,w,h,b){var c=a[m];return c.ready?(b(c),!0):(i.unshift([w,!0]),r.value=!0,c.onload=function(){c.ready=!0,b(c),r.value=!1;var d=i.slice(0);i=[];for(var _=d.shift();_;)s({actions:_[0],reserve:_[1]},h),_=d.shift()},!1)}function f(m,w){var{x:h=0,y:b=0,width:c,height:d,destWidth:_,destHeight:x,hidpi:E=!0,dataType:C,quality:O=1,type:M="png"}=m,R=t.value,U,te=R.offsetWidth-h;c=c?Math.min(c,te):te;var L=R.offsetHeight-b;d=d?Math.min(d,L):L,E?(_=c,x=d):!_&&!x?(_=Math.round(c*n.value),x=Math.round(d*n.value)):_?x||(x=Math.round(d/c*_)):_=Math.round(c/d*x);var H=Rv(_,x),q=H.getContext("2d");(M==="jpeg"||M==="jpg")&&(M="jpeg",q.fillStyle="#fff",q.fillRect(0,0,_,x)),q.__hidpi__=!0,q.drawImageByCanvas(R,h,b,c,d,0,0,_,x,!1);var re;try{var V;if(C==="base64")U=H.toDataURL("image/".concat(M),O);else{var K=q.getImageData(0,0,_,x);U=Jd.deflateRaw(K.data,{to:"string"}),V=!0}re={data:U,compressed:V,width:_,height:x}}catch(ae){re={errMsg:"canvasGetImageData:fail ".concat(ae)}}if(H.height=H.width=0,q.__hidpi__=!1,w)w(re);else return re}function v(m,w){var{data:h,x:b,y:c,width:d,height:_,compressed:x}=m;try{x&&(h=Jd.inflateRaw(h)),_||(_=Math.round(h.length/4/d));var E=Rv(d,_),C=E.getContext("2d");C.putImageData(new ImageData(new Uint8ClampedArray(h),d,_),0,0),t.value.getContext("2d").drawImage(E,b,c,d,_),E.height=E.width=0}catch(O){w({errMsg:"canvasPutImageData:fail"});return}w({errMsg:"canvasPutImageData:ok"})}function p(m,w){var{x:h=0,y:b=0,width:c,height:d,destWidth:_,destHeight:x,fileType:E,quality:C,dirname:O}=m,M=f({x:h,y:b,width:c,height:d,destWidth:_,destHeight:x,hidpi:!1,dataType:"base64",type:E,quality:C});if(!M.data||!M.data.length){w({errMsg:M.errMsg.replace("canvasPutImageData","toTempFilePath")});return}kb(M.data,O,(R,U)=>{var te="toTempFilePath:".concat(R?"fail":"ok");R&&(te+=" ".concat(R.message)),w({errMsg:te,tempFilePath:U})})}var g={actionsChanged:s,getImageData:f,putImageData:v,toTempFilePath:p};function y(m,w,h){var b=g[m];m.indexOf("_")!==0&&typeof b=="function"&&b(w,h)}return ce(g,{_resize:o,_handleSubscribe:y})}var Lv=dn("ucg"),Uy={name:{type:String,default:""}},Hy=ve({name:"CheckboxGroup",props:Uy,emits:["change"],setup(e,t){var{emit:r,slots:i}=t,a=F(null),n=Le(a,r);return Wy(e,n),()=>I("uni-checkbox-group",{ref:a},[i.default&&i.default()],512)}});function Wy(e,t){var r=[],i=()=>r.reduce((n,o)=>(o.value.checkboxChecked&&n.push(o.value.value),n),new Array);ze(Lv,{addField(n){r.push(n)},removeField(n){r.splice(r.indexOf(n),1)},checkboxChange(n){t("change",n,{value:i()})}});var a=_e(kt,!1);return a&&a.addField({submit:()=>{var n=["",null];return e.name!==""&&(n[0]=e.name,n[1]=i()),n}}),i}var Vy={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},jy=ve({name:"Checkbox",props:Vy,setup(e,t){var{slots:r}=t,i=F(e.checked),a=F(e.value);W([()=>e.checked,()=>e.value],l=>{var[f,v]=l;i.value=f,a.value=v});var n=()=>{i.value=!1},{uniCheckGroup:o,uniLabel:s}=Yy(i,a,n),u=l=>{e.disabled||(i.value=!i.value,o&&o.checkboxChange(l))};return s&&(s.addHandler(u),Ce(()=>{s.removeHandler(u)})),Nn(e,{"label-click":u}),()=>{var l=ai(e,"disabled");return I("uni-checkbox",rt(l,{onClick:u}),[I("div",{class:"uni-checkbox-wrapper"},[I("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[i.value?hn(vn,e.color,22):""],2),r.default&&r.default()])],16,["onClick"])}}});function Yy(e,t,r){var i=ee(()=>({checkboxChecked:Boolean(e.value),value:t.value})),a={reset:r},n=_e(Lv,!1);n&&n.addField(i);var o=_e(kt,!1);o&&o.addField(a);var s=_e(Ji,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s}}var Pv,ea,Bn,nr,Fn,pl;Nr(()=>{ea=plus.os.name==="Android",Bn=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){nr=e.height,Fn&&Fn()},!1);function Nv(){}function ta(e,t,r){Nr(()=>{var i="adjustResize",a="adjustPan",n="nothing",o=plus.webview.currentWebview(),s=pl||o.getStyle()||{},u={mode:r||s.softinputMode===i?i:e.adjustPosition?a:n,position:{top:0,height:0}};if(u.mode===a){var l=t.getBoundingClientRect();u.position.top=l.top,u.position.height=l.height+(Number(e.cursorSpacing)||0)}o.setSoftinputTemporary(u)})}function qy(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}Nr(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},a=i!=="none";a!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function Xy(e){var t=e.softinputNavBar;t&&Nr(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var Dv={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},Bv=["keyboardheightchange"];function Fv(e,t,r){var i={};function a(n){var o,s=ee(()=>String(navigator.vendor).indexOf("Apple")===0),u=()=>{r("keyboardheightchange",{},{height:nr,duration:.25}),o&&nr===0&&ta(e,n),e.autoBlur&&o&&nr===0&&(ea||parseInt(Bn)>=13)&&document.activeElement.blur()};n.addEventListener("focus",()=>{o=!0,clearTimeout(Pv),document.addEventListener("click",Nv,!1),Fn=u,nr&&r("keyboardheightchange",{},{height:nr,duration:0}),qy(e,i),ta(e,n)}),ea&&n.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&o&&nr===0&&ta(e,n)}),ea||(parseInt(Bn)<12&&n.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!o&&ta(e,n)}),parseFloat(Bn)>=14.6&&!pl&&Nr(()=>{var f=plus.webview.currentWebview();pl=f.getStyle()||{}}));var l=()=>{document.removeEventListener("click",Nv,!1),Fn=null,nr&&r("keyboardheightchange",{},{height:0,duration:0}),Xy(i),ea&&(Pv=setTimeout(()=>{ta(e,n,!0)},300)),s.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};n.addEventListener("blur",()=>{s.value&&n.blur(),o=!1,l()})}W(()=>t.value,n=>a(n))}var $v=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,zv=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Zy=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Ky=ni("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Gy=ni("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Jy=ni("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Qy=ni("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),ex=ni("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),tx=ni("script,style");function Uv(e,t){var r,i,a,n=[],o=e;for(n.last=function(){return this[this.length-1]};e;){if(i=!0,!n.last()||!tx[n.last()]){if(e.indexOf("<!--")==0?(r=e.indexOf("-->"),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("</")==0?(a=e.match(zv),a&&(e=e.substring(a[0].length),a[0].replace(zv,l),i=!1)):e.indexOf("<")==0&&(a=e.match($v),a&&(e=e.substring(a[0].length),a[0].replace($v,u),i=!1)),i){r=e.indexOf("<");var s=r<0?e:e.substring(0,r);e=r<0?"":e.substring(r),t.chars&&t.chars(s)}}else e=e.replace(new RegExp("([\\s\\S]*?)</"+n.last()+"[^>]*>"),function(f,v){return v=v.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(v),""}),l("",n.last());if(e==o)throw"Parse Error: "+e;o=e}l();function u(f,v,p,g){if(v=v.toLowerCase(),Gy[v])for(;n.last()&&Jy[n.last()];)l("",n.last());if(Qy[v]&&n.last()==v&&l("",v),g=Ky[v]||!!g,g||n.push(v),t.start){var y=[];p.replace(Zy,function(m,w){var h=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:ex[w]?w:"";y.push({name:w,value:h,escaped:h.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(v,y,g)}}function l(f,v){if(v)for(var p=n.length-1;p>=0&&n[p]!=v;p--);else var p=0;if(p>=0){for(var g=n.length-1;g>=p;g--)t.end&&t.end(n[g]);n.length=p}}}function ni(e){for(var t={},r=e.split(","),i=0;i<r.length;i++)t[r[i]]=!0;return t}var ml={};function Hv(e,t,r){var i=typeof e=="string"?window[e]:e;if(i){r();return}var a=ml[t];if(!a){a=ml[t]=[];var n=document.createElement("script");n.src=t,document.body.appendChild(n),n.onload=function(){a.forEach(o=>o()),delete ml[t]}}a.push(r)}function rx(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function ix(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function ax(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},a=new r.Style("align","text-align",i);return{"formats/align":a}}function nx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},a=new r.Style("direction","direction",i);return{"formats/direction":a}}function ox(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class a extends r{static create(o){var s=o==="ordered"?"OL":"UL",u=super.create(s);return(o==="checked"||o==="unchecked")&&u.setAttribute("data-checked",o==="checked"),u}static formats(o){if(o.tagName==="OL")return"ordered";if(o.tagName==="UL")return o.hasAttribute("data-checked")?o.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(o){super(o);var s=u=>{if(u.target.parentNode===o){var l=this.statics.formats(o),f=t.find(u.target);l==="checked"?f.format("list","unchecked"):l==="unchecked"&&f.format("list","checked")}};o.addEventListener("click",s)}format(o,s){this.children.length>0&&this.children.tail.format(o,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(o,s){if(o instanceof i)super.insertBefore(o,s);else{var u=s==null?this.length():s.offset(this),l=this.split(u);l.parent.insertBefore(o,l)}}optimize(o){super.optimize(o);var s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(o){if(o.statics.blotName!==this.statics.blotName){var s=t.create(this.statics.defaultChild);o.moveChildren(s),this.appendChild(s)}super.replace(o)}}return a.blotName="list",a.scope=t.Scope.BLOCK_BLOT,a.tagName=["OL","UL"],a.defaultChild="list-item",a.allowedChildren=[i],{"formats/list":a}}function sx(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function lx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},a=["margin","marginTop","marginBottom","marginLeft","marginRight"],n=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],o={};return a.concat(n).forEach(s=>{o["formats/".concat(s)]=new r.Style(s,Je(s),i)}),o}function ux(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},a=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],n={};return a.forEach(o=>{n["formats/".concat(o)]=new r.Style(o,Je(o),i)}),n}function fx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],a={};return i.forEach(n=>{var{name:o,scope:s}=n;a["formats/".concat(o)]=new r.Style(o,Je(o),{scope:s})}),a}function cx(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=a=>a&&st(a),t.formats=function(n){return r.reduce(function(o,s){return n.hasAttribute(s)&&(o[s]=n.getAttribute(s)),o},{})};var i=t.prototype.format;t.prototype.format=function(a,n){r.indexOf(a)>-1?n?this.domNode.setAttribute(a,n):this.domNode.removeAttribute(a):i.call(this,a,n)}}function dx(e){var t=e.import("formats/link");t.sanitize=r=>{var i=document.createElement("a");i.href=r;var a=i.href.slice(0,i.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(a)>-1?r:t.SANITIZED_URL}}function vx(e){var t={divider:rx,ins:ix,align:ax,direction:nx,list:ox,background:sx,box:lx,font:ux,text:fx,image:cx,link:dx},r={};Object.values(t).forEach(i=>ce(r,i(e))),e.register(r,!0)}function hx(e,t,r){var i,a,n,o=!1;W(()=>e.readOnly,y=>{i&&(n.enable(!y),y||n.blur())}),W(()=>e.placeholder,y=>{i&&l(y)});function s(y){var m=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],w="",h;Uv(y,{start:function(c,d,_){if(!m.includes(c)){h=!_;return}h=!1;var x=d.map(C=>{var{name:O,value:M}=C;return"".concat(O,'="').concat(M,'"')}).join(" "),E="<".concat(c," ").concat(x," ").concat(_?"/":"",">");w+=E},end:function(c){h||(w+="</".concat(c,">"))},chars:function(c){h||(w+=c)}}),a=!0;var b=n.clipboard.convert(w);return a=!1,b}function u(){var y=n.root.innerHTML,m=n.getText(),w=n.getContents();return{html:y,text:m,delta:w}}function l(y){var m="data-placeholder",w=n.root;w.getAttribute(m)!==y&&w.setAttribute(m,y)}var f={};function v(y){var m=y?n.getFormat(y):{},w=Object.keys(m);(w.length!==Object.keys(f).length||w.find(h=>m[h]!==f[h]))&&(f=m,r("statuschange",{},m))}function p(y){var m=window.Quill;vx(m);var w={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};y.length&&(m.register("modules/ImageResize",window.ImageResize.default),w.modules={ImageResize:{modules:y}});var h=t.value;n=new m(h,w);var b=n.root,c=["focus","blur","input"];c.forEach(d=>{b.addEventListener(d,_=>{var x=u();if(d==="input"){if(yc().platform==="ios"){var E=(x.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],C=E&&E.replace(/\s/g,"")?"":e.placeholder;l(C)}_.stopPropagation()}else r(d,_,x)})}),n.on("text-change",()=>{o||r("input",{},u())}),n.on("selection-change",v),n.on("scroll-optimize",()=>{var d=n.selection.getRange()[0];v(d)}),n.clipboard.addMatcher(Node.ELEMENT_NODE,(d,_)=>(a||_.ops&&(_.ops=_.ops.filter(x=>{var{insert:E}=x;return typeof E=="string"}).map(x=>{var{insert:E}=x;return{insert:E}})),_)),i=!0,r("ready",{},{})}Re(()=>{var y=[];e.showImgSize&&y.push("DisplaySize"),e.showImgToolbar&&y.push("Toolbar"),e.showImgResize&&y.push("Resize");var m="./__uniappquill.js";Hv(window.Quill,m,()=>{if(y.length){var w="./__uniappquillimageresize.js";Hv(window.ImageResize,w,()=>{p(y)})}else p(y)})});var g=la();sa((y,m,w)=>{var{options:h,callbackId:b}=m,c,d,_;if(i){var x=window.Quill;switch(y){case"format":{var{name:E="",value:C=!1}=h;d=n.getSelection(!0);var O=n.getFormat(d)[E]||!1;if(["bold","italic","underline","strike","ins"].includes(E))C=!O;else if(E==="direction"){C=C==="rtl"&&O?!1:C;var M=n.getFormat(d).align;C==="rtl"&&!M?n.format("align","right","user"):!C&&M==="right"&&n.format("align",!1,"user")}else if(E==="indent"){var R=n.getFormat(d).direction==="rtl";C=C==="+1",R&&(C=!C),C=C?"+1":"-1"}else E==="list"&&(C=C==="check"?"unchecked":C,O=O==="checked"?"unchecked":O),C=O&&O!==(C||!1)||!O&&C?C:!O;n.format(E,C,"user")}break;case"insertDivider":d=n.getSelection(!0),n.insertText(d.index,gi,"user"),n.insertEmbed(d.index+1,"divider",!0,"user"),n.setSelection(d.index+2,0,"silent");break;case"insertImage":{d=n.getSelection(!0);var{src:U="",alt:te="",width:L="",height:H="",extClass:q="",data:re={}}=h,V=st(U);n.insertEmbed(d.index,"image",V,"user");var K=/^(file|blob):/.test(V)?V:!1;o=!0,n.formatText(d.index,1,"data-local",K),n.formatText(d.index,1,"alt",te),n.formatText(d.index,1,"width",L),n.formatText(d.index,1,"height",H),n.formatText(d.index,1,"class",q),o=!1,n.formatText(d.index,1,"data-custom",Object.keys(re).map(le=>"".concat(le,"=").concat(re[le])).join("&")),n.setSelection(d.index+1,0,"silent")}break;case"insertText":{d=n.getSelection(!0);var{text:ae=""}=h;n.insertText(d.index,ae,"user"),n.setSelection(d.index+ae.length,0,"silent")}break;case"setContents":{var{delta:Te,html:se}=h;typeof Te=="object"?n.setContents(Te,"silent"):typeof se=="string"?n.setContents(s(se),"silent"):_="contents is missing"}break;case"getContents":c=u();break;case"clear":n.setText("");break;case"removeFormat":{d=n.getSelection(!0);var he=x.import("parchment");d.length?n.removeFormat(d.index,d.length,"user"):Object.keys(n.getFormat(d)).forEach(le=>{he.query(le,he.Scope.INLINE)&&n.format(le,!1)})}break;case"undo":n.history.undo();break;case"redo":n.history.redo();break;case"blur":n.blur();break;case"getSelectionText":d=n.selection.savedRange,c={text:""},d&&d.length!==0&&(c.text=n.getText(d.index,d.length));break;case"scrollIntoView":n.scrollIntoView();break}v(d)}else _="not ready";b&&w({callbackId:b,data:ce({},c,{errMsg:"".concat(y,":").concat(_?"fail "+_:"ok")})})},g,!0)}var gx=ce({},Dv,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),px=ve({name:"Editor",props:gx,emit:["ready","focus","blur","input","statuschange",...Bv],setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r);return hx(e,i,a),Fv(e,i,a),()=>I("uni-editor",{ref:i,id:e.id,class:"ql-container"},null,8,["id"])}}),Wv="#10aeff",mx="#f76260",Vv="#b2b2b2",_x="#f43530",bx={success:{d:ib,c:Na},success_no_circle:{d:vn,c:Na},info:{d:tb,c:Wv},warn:{d:nb,c:mx},waiting:{d:ab,c:Wv},cancel:{d:J_,c:_x},download:{d:eb,c:Na},search:{d:rb,c:Vv},clear:{d:Q_,c:Vv}},wx=ve({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=ee(()=>bx[e.type]);return()=>{var{value:r}=t;return I("uni-icon",null,[r&&r.d&&hn(r.d,e.color||r.c,Vr(e.size))])}}}),yx={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},$n={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},xx={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},Sx=ve({name:"Image",props:yx,setup(e,t){var{emit:r}=t,i=F(null),a=Ex(i,e),n=Le(i,r),{fixSize:o}=Ax(i,e,a);return Tx(a,e,i,o,n),()=>I("uni-image",{ref:i},[I("div",{style:a.modeStyle},null,4),$n[e.mode]?I(Or,{onResize:o},null,8,["onResize"]):I("span",null,null)],512)}});function Ex(e,t){var r=F(""),i=ee(()=>{var n="auto",o="",s=xx[t.mode];return s?(s[0]&&(o=s[0]),s[1]&&(n=s[1])):(o="0% 0%",n="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",";background-position:").concat(o,";background-size:").concat(n,";")}),a=ke({rootEl:e,src:ee(()=>t.src?st(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Re(()=>{var n=e.value,o=n.style;a.origWidth=Number(o.width)||0,a.origHeight=Number(o.height)||0}),a}function Tx(e,t,r,i,a){var n,o,s=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";e.origWidth=f,e.origHeight=v,e.imgSrc=p},u=f=>{if(!f){l(),s();return}n=n||new Image,n.onload=v=>{var{width:p,height:g}=n;s(p,g,f),i(),n.draggable=t.draggable,o&&o.remove(),o=n,r.value.appendChild(n),l(),a("load",v,{width:p,height:g})},n.onerror=v=>{s(),l(),a("error",v,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},n.src=f},l=()=>{n&&(n.onload=null,n.onerror=null,n=null)};W(()=>e.src,f=>u(f)),W(()=>e.imgSrc,f=>{!f&&o&&(o.remove(),o=null)}),Re(()=>u(e.src)),Ce(()=>l())}var Cx=navigator.vendor==="Google Inc.";function Ox(e){return Cx&&e>10&&(e=Math.round(e/2)*2),e}function Ax(e,t,r){var i=()=>{var{mode:n}=t,o=$n[n];if(!!o){var{origWidth:s,origHeight:u}=r,l=s&&u?s/u:0;if(!!l){var f=e.value,v=f[o[0]];v&&(f.style[o[1]]=Ox(o[2](v,l))+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},a=()=>{var{style:n}=e.value,{origStyle:{width:o,height:s}}=r;n.width=o,n.height=s};return W(()=>t.mode,(n,o)=>{$n[o]&&a(),$n[n]&&i()}),{fixSize:i,resetSize:a}}function Ix(e,t){var r=0,i,a,n=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var l=Date.now();if(clearTimeout(i),a=()=>{a=null,r=l,e.apply(this,s)},l-r<t){i=setTimeout(a,t-(l-r));return}a()};return n.cancel=function(){clearTimeout(i),a=null},n.flush=function(){clearTimeout(i),a&&a()},n}var kx=mi(!0),zn=[],_l=0,jv,Yv=e=>zn.forEach(t=>t.userAction=e);function Mx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{userAction:!1};if(!jv){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach(r=>{document.addEventListener(r,function(){!_l&&Yv(!0),_l++,setTimeout(()=>{!--_l&&Yv(!1)},0)},kx)}),jv=!0}zn.push(e)}function Rx(e){var t=zn.indexOf(e);t>=0&&zn.splice(t,1)}function Lx(){var e=ke({userAction:!1});return Re(()=>{Mx(e)}),Ce(()=>{Rx(e)}),{state:e}}function qv(){var e=ke({attrs:{}});return Re(()=>{for(var t=Dt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function Px(e,t){var r=_e(kt,!1);if(!!r){var i=Dt(),a={submit(){var n=i.proxy;return[n[e],typeof t=="string"?n[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(a),Ce(()=>{r.removeField(a)})}}function Nx(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var Dx=function(){wt(Gt(),"getSelectedTextRange",Nx)},Bx=200,bl;function wl(e,t){return t==="number"&&isNaN(Number(e))&&(e=""),e===null?"":String(e)}var Xv=ce({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0}},Dv),Zv=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...Bv];function Fx(e,t,r){var i=F(null),a=Le(t,r),n=ee(()=>{var v=Number(e.selectionStart);return isNaN(v)?-1:v}),o=ee(()=>{var v=Number(e.selectionEnd);return isNaN(v)?-1:v}),s=ee(()=>{var v=Number(e.cursor);return isNaN(v)?-1:v}),u=ee(()=>{var v=Number(e.maxlength);return isNaN(v)?140:v}),l=wl(e.modelValue,e.type)||wl(e.value,e.type),f=ke({value:l,valueOrigin:l,maxlength:u,focus:e.focus,composing:!1,selectionStart:n,selectionEnd:o,cursor:s});return W(()=>f.focus,v=>r("update:focus",v)),W(()=>f.maxlength,v=>f.value=f.value.slice(0,v)),{fieldRef:i,state:f,trigger:a}}function $x(e,t,r,i){var a=nm(s=>{t.value=wl(s,e.type)},100,{setTimeout,clearTimeout});W(()=>e.modelValue,a),W(()=>e.value,a);var n=Ix((s,u)=>{a.cancel(),r("update:modelValue",u.value),r("update:value",u.value),i("input",s,u)},100),o=(s,u,l)=>{a.cancel(),n(s,u),l&&n.flush()};return Af(()=>{a.cancel(),n.cancel()}),{trigger:i,triggerInput:o}}function zx(e,t){var{state:r}=Lx(),i=ee(()=>e.autoFocus||e.focus);function a(){if(!!i.value){var o=t.value;if(!o||!("plus"in window)){setTimeout(a,100);return}{var s=Bx-(Date.now()-bl);if(s>0){setTimeout(a,s);return}o.focus(),r.userAction||plus.key.showSoftKeybord()}}}function n(){var o=t.value;o&&o.blur()}W(()=>e.focus,o=>{o?a():n()}),Re(()=>{bl=bl||Date.now(),i.value&&Ur(a)})}function Ux(e,t,r,i,a,n){function o(){var f=e.value;f&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&f.type!=="number"&&(f.selectionStart=t.selectionStart,f.selectionEnd=t.selectionEnd)}function s(){var f=e.value;f&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&f.type!=="number"&&(f.selectionEnd=f.selectionStart=t.cursor)}function u(f){return f.type==="number"?null:f.selectionEnd}function l(){var f=e.value,v=function(m){t.focus=!0,i("focus",m,{value:t.value}),o(),s()},p=function(m,w){m.stopPropagation(),!(typeof n=="function"&&n(m,t)===!1)&&(t.value=f.value,(!t.composing||!r.ignoreCompositionEvent)&&a(m,{value:f.value,cursor:u(f)},w))},g=function(m){t.composing&&(t.composing=!1,p(m,!0)),t.focus=!1,i("blur",m,{value:t.value,cursor:u(m.target)})};f.addEventListener("change",m=>m.stopPropagation()),f.addEventListener("focus",v),f.addEventListener("blur",g),f.addEventListener("input",p),f.addEventListener("compositionstart",m=>{m.stopPropagation(),t.composing=!0,y(m)}),f.addEventListener("compositionend",m=>{m.stopPropagation(),t.composing&&(t.composing=!1,p(m)),y(m)}),f.addEventListener("compositionupdate",y);function y(m){r.ignoreCompositionEvent||i(m.type,m,{value:m.data})}}W([()=>t.selectionStart,()=>t.selectionEnd],o),W(()=>t.cursor,s),W(()=>e.value,l)}function Kv(e,t,r,i){Dx();var{fieldRef:a,state:n,trigger:o}=Fx(e,t,r),{triggerInput:s}=$x(e,n,r,o);zx(e,a),Fv(e,a,o);var{state:u}=qv();Px("name",n),Ux(a,n,e,o,s,i);var l=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:a,state:n,scopedAttrsState:u,fixDisabledColor:l,trigger:o}}var Hx=ce({},Xv,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Wx=ve({name:"Input",props:Hx,emits:["confirm",...Zv],setup(e,t){var{emit:r}=t,i=["text","number","idcard","digit","password","tel"],a=["off","one-time-code"],n=ee(()=>{var b="";switch(e.type){case"text":e.confirmType==="search"&&(b="search");break;case"idcard":b="text";break;case"digit":b="number";break;default:b=~i.includes(e.type)?e.type:"text";break}return e.password?"password":b}),o=ee(()=>{var b=a.indexOf(e.textContentType),c=a.indexOf(Je(e.textContentType)),d=b!==-1?b:c!==-1?c:0;return a[d]}),s=F(""),u,l=F(null),{fieldRef:f,state:v,scopedAttrsState:p,fixDisabledColor:g,trigger:y}=Kv(e,l,r,(b,c)=>{var d=b.target;if(n.value==="number"){if(u&&(d.removeEventListener("blur",u),u=null),d.validity&&!d.validity.valid)return!s.value&&b.data==="-"||s.value[0]==="-"&&b.inputType==="deleteContentBackward"?(s.value="-",c.value="",u=()=>{s.value=d.value=""},d.addEventListener("blur",u),!1):(s.value=c.value=d.value=s.value==="-"?"":s.value,!1);s.value=d.value;var _=c.maxlength;if(_>0&&d.value.length>_)return d.value=d.value.slice(0,_),c.value=d.value,!1}});W(()=>v.value,b=>{e.type==="number"&&!(s.value==="-"&&b==="")&&(s.value=b)});var m=["number","digit"],w=ee(()=>m.includes(e.type)?"0.000000000000000001":"");function h(b){if(b.key==="Enter"){var c=b.target;b.stopPropagation(),y("confirm",b,{value:c.value}),!e.confirmHold&&c.blur()}}return()=>{var b=e.disabled&&g?I("input",{ref:f,value:v.value,tabindex:"-1",readonly:!!e.disabled,type:n.value,maxlength:v.maxlength,step:w.value,class:"uni-input-input",onFocus:c=>c.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):I("input",{ref:f,value:v.value,disabled:!!e.disabled,type:n.value,maxlength:v.maxlength,step:w.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:o.value,onKeyup:h},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return I("uni-input",{ref:l},[I("div",{class:"uni-input-wrapper"},[Ii(I("div",rt(p.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Li,!(v.value.length||s.value==="-")]]),e.confirmType==="search"?I("form",{action:"",onSubmit:c=>c.preventDefault(),class:"uni-input-form"},[b],40,["onSubmit"]):b])],512)}}});function Vx(e){return Object.keys(e).map(t=>[t,e[t]])}var jx=["class","style"],Yx=/^on[A-Z]+/,Gv=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=Dt(),a=es({}),n=es({}),o=es({}),s=r.concat(jx);return i.attrs=ke(i.attrs),L0(()=>{var u=Vx(i.attrs).reduce((l,f)=>{var[v,p]=f;return s.includes(v)?l.exclude[v]=p:Yx.test(v)?(t||(l.attrs[v]=p),l.listeners[v]=p):l.attrs[v]=p,l},{exclude:{},attrs:{},listeners:{}});a.value=u.attrs,n.value=u.listeners,o.value=u.exclude}),{$attrs:a,$listeners:n,$excludeAttrs:o}},Un,ra;function Hn(){Nr(()=>{Un||(Un=plus.webview.currentWebview()),ra||(ra=(Un.getStyle()||{}).pullToRefresh||{})})}function or(e){var{disable:t}=e;ra&&ra.support&&Un.setPullToRefresh(Object.assign({},ra,{support:!t}))}function yl(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{en(r)?r.type===xt?t.push(...yl(r.children)):t.push(r):Array.isArray(r)&&t.push(...yl(r))}),t}function ia(e){var t=Dt();t.rebuild=e}var qx={scaleArea:{type:Boolean,default:!1}},Xx=ve({inheritAttrs:!1,name:"MovableArea",props:qx,setup(e,t){var{slots:r}=t,i=F(null),a=F(!1),{setContexts:n,events:o}=Zx(e,i),{$listeners:s,$attrs:u,$excludeAttrs:l}=Gv(),f=s.value,v=["onTouchstart","onTouchmove","onTouchend"];v.forEach(h=>{var b=f[h],c=o["_".concat(h)];f[h]=b?[].concat(b,c):c}),Re(()=>{o._resize(),Hn(),a.value=!0});var p=[],g=[];function y(){for(var h=[],b=function(d){var _=p[d];_ instanceof Element||(_=_.el);var x=g.find(E=>_===E.rootRef.value);x&&h.push(qa(x))},c=0;c<p.length;c++)b(c);n(h)}ia(()=>{p=i.value.children,y()});var m=h=>{g.push(h),y()},w=h=>{var b=g.indexOf(h);b>=0&&(g.splice(b,1),y())};return ze("_isMounted",a),ze("movableAreaRootRef",i),ze("addMovableViewContext",m),ze("removeMovableViewContext",w),()=>(r.default&&r.default(),I("uni-movable-area",rt({ref:i},u.value,l.value,f),[I(Or,{onReize:o._resize},null,8,["onReize"]),p],16))}});function Jv(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function Zx(e,t){var r=F(0),i=F(0),a=ke({x:null,y:null}),n=F(null),o=null,s=[];function u(m){m&&m!==1&&(e.scaleArea?s.forEach(function(w){w._setScale(m)}):o&&o._setScale(m))}function l(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,h=t.value;function b(c){for(var d=0;d<w.length;d++){var _=w[d];if(c===_.rootRef.value)return _}return c===h||c===document.body||c===document?null:b(c.parentNode)}return b(m)}var f=Cr(m=>{or({disable:!0});var w=m.touches;if(w&&w.length>1){var h={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(n.value=Jv(h),a.x=h.x,a.y=h.y,!e.scaleArea){var b=l(w[0].target),c=l(w[1].target);o=b&&b===c?b:null}}}),v=Cr(m=>{var w=m.touches;if(w&&w.length>1){m.preventDefault();var h={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(a.x!==null&&n.value&&n.value>0){var b=Jv(h)/n.value;u(b)}a.x=h.x,a.y=h.y}}),p=Cr(m=>{or({disable:!1});var w=m.touches;w&&w.length||m.changedTouches&&(a.x=0,a.y=0,n.value=null,e.scaleArea?s.forEach(function(h){h._endScale()}):o&&o._endScale())});function g(){y(),s.forEach(function(m,w){m.setParent()})}function y(){var m=window.getComputedStyle(t.value),w=t.value.getBoundingClientRect();r.value=w.width-["Left","Right"].reduce(function(h,b){var c="border"+b+"Width",d="padding"+b;return h+parseFloat(m[c])+parseFloat(m[d])},0),i.value=w.height-["Top","Bottom"].reduce(function(h,b){var c="border"+b+"Width",d="padding"+b;return h+parseFloat(m[c])+parseFloat(m[d])},0)}return ze("movableAreaWidth",r),ze("movableAreaHeight",i),{setContexts(m){s=m},events:{_onTouchstart:f,_onTouchmove:v,_onTouchend:p,_resize:g}}}var aa=function(e,t,r,i){e.addEventListener(t,a=>{typeof r=="function"&&r(a)===!1&&((typeof a.cancelable=="undefined"||a.cancelable)&&a.preventDefault(),a.stopPropagation())},{passive:!1})},Qv,eh;function Wn(e,t,r){Ce(()=>{document.removeEventListener("mousemove",Qv),document.removeEventListener("mouseup",eh)});var i=0,a=0,n=0,o=0,s=function(g,y,m,w){if(t({cancelable:g.cancelable,target:g.target,currentTarget:g.currentTarget,preventDefault:g.preventDefault.bind(g),stopPropagation:g.stopPropagation.bind(g),touches:g.touches,changedTouches:g.changedTouches,detail:{state:y,x:m,y:w,dx:m-i,dy:w-a,ddx:m-n,ddy:w-o,timeStamp:g.timeStamp}})===!1)return!1},u=null,l,f;aa(e,"touchstart",function(g){if(l=!0,g.touches.length===1&&!u)return u=g,i=n=g.touches[0].pageX,a=o=g.touches[0].pageY,s(g,"start",i,a)}),aa(e,"mousedown",function(g){if(f=!0,!l&&!u)return u=g,i=n=g.pageX,a=o=g.pageY,s(g,"start",i,a)}),aa(e,"touchmove",function(g){if(g.touches.length===1&&u){var y=s(g,"move",g.touches[0].pageX,g.touches[0].pageY);return n=g.touches[0].pageX,o=g.touches[0].pageY,y}});var v=Qv=function(g){if(!l&&f&&u){var y=s(g,"move",g.pageX,g.pageY);return n=g.pageX,o=g.pageY,y}};document.addEventListener("mousemove",v),aa(e,"touchend",function(g){if(g.touches.length===0&&u)return l=!1,u=null,s(g,"end",g.changedTouches[0].pageX,g.changedTouches[0].pageY)});var p=eh=function(g){if(f=!1,!l&&u)return u=null,s(g,"end",g.pageX,g.pageY)};document.addEventListener("mouseup",p),aa(e,"touchcancel",function(g){if(u){l=!1;var y=u;return u=null,s(g,r?"cancel":"end",y.touches[0].pageX,y.touches[0].pageY)}})}function Vn(e,t,r){return e>t-r&&e<t+r}function Ar(e,t){return Vn(e,0,t)}function xl(){}xl.prototype.x=function(e){return Math.sqrt(e)};function Mt(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}Mt.prototype.setV=function(e,t){var r=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/r,this._y_a=-this._f*this._y_v/r,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=new Date().getTime()},Mt.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Mt.prototype.s=function(e){e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&r<this._endPositionY||this._y_a<0&&r>this._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},Mt.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Mt.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Mt.prototype.dt=function(){return-this._x_v/this._x_a},Mt.prototype.done=function(){var e=Vn(this.s().x,this._endPositionX)||Vn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Mt.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Mt.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function at(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}at.prototype._solve=function(e,t){var r=this._c,i=this._m,a=this._k,n=r*r-4*i*a;if(n===0){var o=-r/(2*i),s=e,u=t/(o*e);return{x:function(h){return(s+u*h)*Math.pow(Math.E,o*h)},dx:function(h){var b=Math.pow(Math.E,o*h);return o*(s+u*h)*b+u*b}}}if(n>0){var l=(-r-Math.sqrt(n))/(2*i),f=(-r+Math.sqrt(n))/(2*i),v=(t-l*e)/(f-l),p=e-v;return{x:function(h){var b,c;return h===this._t&&(b=this._powER1T,c=this._powER2T),this._t=h,b||(b=this._powER1T=Math.pow(Math.E,l*h)),c||(c=this._powER2T=Math.pow(Math.E,f*h)),p*b+v*c},dx:function(h){var b,c;return h===this._t&&(b=this._powER1T,c=this._powER2T),this._t=h,b||(b=this._powER1T=Math.pow(Math.E,l*h)),c||(c=this._powER2T=Math.pow(Math.E,f*h)),p*l*b+v*f*c}}}var g=Math.sqrt(4*i*a-r*r)/(2*i),y=-r/2*i,m=e,w=(t-y*e)/g;return{x:function(h){return Math.pow(Math.E,y*h)*(m*Math.cos(g*h)+w*Math.sin(g*h))},dx:function(h){var b=Math.pow(Math.E,y*h),c=Math.cos(g*h),d=Math.sin(g*h);return b*(w*g*c-m*g*d)+y*b*(w*d+m*c)}}},at.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},at.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},at.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!Ar(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(Ar(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),Ar(t,.1)&&(t=0),Ar(i,.1)&&(i=0),i+=this._endPosition),this._solution&&Ar(i-e,.1)&&Ar(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},at.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},at.prototype.done=function(e){return e||(e=new Date().getTime()),Vn(this.x(),this._endPosition,.1)&&Ar(this.dx(),.1)},at.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},at.prototype.springConstant=function(){return this._k},at.prototype.damping=function(){return this._c},at.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function na(e,t,r){this._springX=new at(e,t,r),this._springY=new at(e,t,r),this._springScale=new at(e,t,r),this._startTime=0}na.prototype.setEnd=function(e,t,r,i){var a=new Date().getTime();this._springX.setEnd(e,i,a),this._springY.setEnd(t,i,a),this._springScale.setEnd(r,i,a),this._startTime=a},na.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},na.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},na.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var Kx={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}};function th(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}var Gx=ve({name:"MovableView",props:Kx,emits:["change","scale"],setup(e,t){var{slots:r,emit:i}=t,a=F(null),n=Le(a,i),{setParent:o}=Jx(e,n,a);return()=>I("uni-movable-view",{ref:a},[I(Or,{onResize:o},null,8,["onResize"]),r.default&&r.default()],512)}}),Sl=!1;function rh(e){Sl||(Sl=!0,requestAnimationFrame(function(){e(),Sl=!1}))}function ih(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=ih(e.offsetParent,t):0}function ah(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=ah(e.offsetParent,t):0}function nh(e,t,r){var i={id:0,cancelled:!1},a=function(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)};function n(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(n.bind(null,o,s,u,l))),f&&l&&l(s)}}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}function jn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function Jx(e,t,r){var i=_e("movableAreaWidth",F(0)),a=_e("movableAreaHeight",F(0)),n=_e("_isMounted",F(!1)),o=_e("movableAreaRootRef"),s=_e("addMovableViewContext",()=>{}),u=_e("removeMovableViewContext",()=>{}),l=F(jn(e.x)),f=F(jn(e.y)),v=F(Number(e.scaleValue)||1),p=F(0),g=F(0),y=F(0),m=F(0),w=F(0),h=F(0),b=null,c=null,d={x:0,y:0},_={x:0,y:0},x=1,E=1,C=0,O=0,M=!1,R=!1,U,te,L=null,H=null,q=new xl,re=new xl,V={historyX:[0,0],historyY:[0,0],historyT:[0,0]},K=ee(()=>{var A=Number(e.damping);return isNaN(A)?20:A}),ae=ee(()=>{var A=Number(e.friction);return isNaN(A)||A<=0?2:A}),Te=ee(()=>{var A=Number(e.scaleMin);return isNaN(A)?.5:A}),se=ee(()=>{var A=Number(e.scaleMax);return isNaN(A)?10:A}),he=ee(()=>e.direction==="all"||e.direction==="horizontal"),le=ee(()=>e.direction==="all"||e.direction==="vertical"),J=new na(1,9*Math.pow(K.value,2)/40,K.value),xe=new Mt(1,ae.value);W(()=>e.x,A=>{l.value=jn(A)}),W(()=>e.y,A=>{f.value=jn(A)}),W(l,A=>{Ve(A)}),W(f,A=>{sr(A)}),W(()=>e.scaleValue,A=>{v.value=Number(A)||0}),W(v,A=>{da(A)}),W(Te,()=>{Ne()}),W(se,()=>{Ne()});function we(){c&&c.cancel(),b&&b.cancel()}function Ve(A){if(he.value){if(A+_.x===C)return C;b&&b.cancel(),Q(A+_.x,f.value+_.y,x)}return A}function sr(A){if(le.value){if(A+_.y===O)return O;b&&b.cancel(),Q(l.value+_.x,A+_.y,x)}return A}function Ne(){if(!e.scale)return!1;B(x,!0),z(x)}function da(A){return e.scale?(A=D(A),B(A,!0),z(A),A):!1}function va(){M||e.disabled||(or({disable:!0}),we(),V.historyX=[0,0],V.historyY=[0,0],V.historyT=[0,0],he.value&&(U=C),le.value&&(te=O),r.value.style.willChange="transform",L=null,H=null,R=!0)}function S(A){if(!M&&!e.disabled&&R){var Y=C,X=O;if(H===null&&(H=Math.abs(A.detail.dx/A.detail.dy)>1?"htouchmove":"vtouchmove"),he.value&&(Y=A.detail.dx+U,V.historyX.shift(),V.historyX.push(Y),!le.value&&L===null&&(L=Math.abs(A.detail.dx/A.detail.dy)<1)),le.value&&(X=A.detail.dy+te,V.historyY.shift(),V.historyY.push(X),!he.value&&L===null&&(L=Math.abs(A.detail.dy/A.detail.dx)<1)),V.historyT.shift(),V.historyT.push(A.detail.timeStamp),!L){A.preventDefault();var ge="touch";Y<y.value?e.outOfBounds?(ge="touch-out-of-bounds",Y=y.value-q.x(y.value-Y)):Y=y.value:Y>w.value&&(e.outOfBounds?(ge="touch-out-of-bounds",Y=w.value+q.x(Y-w.value)):Y=w.value),X<m.value?e.outOfBounds?(ge="touch-out-of-bounds",X=m.value-re.x(m.value-X)):X=m.value:X>h.value&&(e.outOfBounds?(ge="touch-out-of-bounds",X=h.value+re.x(X-h.value)):X=h.value),rh(function(){Z(Y,X,x,ge)})}}}function T(){if(!M&&!e.disabled&&R&&(or({disable:!1}),r.value.style.willChange="auto",R=!1,!L&&!G("out-of-bounds")&&e.inertia)){var A=1e3*(V.historyX[1]-V.historyX[0])/(V.historyT[1]-V.historyT[0]),Y=1e3*(V.historyY[1]-V.historyY[0])/(V.historyT[1]-V.historyT[0]);xe.setV(A,Y),xe.setS(C,O);var X=xe.delta().x,ge=xe.delta().y,ue=X+C,Fe=ge+O;ue<y.value?(ue=y.value,Fe=O+(y.value-C)*ge/X):ue>w.value&&(ue=w.value,Fe=O+(w.value-C)*ge/X),Fe<m.value?(Fe=m.value,ue=C+(m.value-O)*X/ge):Fe>h.value&&(Fe=h.value,ue=C+(h.value-O)*X/ge),xe.setEnd(ue,Fe),c=nh(xe,function(){var Ge=xe.s(),De=Ge.x,pt=Ge.y;Z(De,pt,x,"friction")},function(){c.cancel()})}!e.outOfBounds&&!e.inertia&&we()}function k(A,Y){var X=!1;return A>w.value?(A=w.value,X=!0):A<y.value&&(A=y.value,X=!0),Y>h.value?(Y=h.value,X=!0):Y<m.value&&(Y=m.value,X=!0),{x:A,y:Y,outOfBounds:X}}function P(){d.x=ih(r.value,o.value),d.y=ah(r.value,o.value)}function N(A){A=A||x,A=D(A);var Y=r.value.getBoundingClientRect();g.value=Y.height/x,p.value=Y.width/x;var X=g.value*A,ge=p.value*A;_.x=(ge-p.value)/2,_.y=(X-g.value)/2}function $(){var A=0-d.x+_.x,Y=i.value-p.value-d.x-_.x;y.value=Math.min(A,Y),w.value=Math.max(A,Y);var X=0-d.y+_.y,ge=a.value-g.value-d.y-_.y;m.value=Math.min(X,ge),h.value=Math.max(X,ge)}function j(){M=!0}function B(A,Y){if(e.scale){A=D(A),N(A),$();var X=k(C,O),ge=X.x,ue=X.y;Y?Q(ge,ue,A,"",!0,!0):rh(function(){Z(ge,ue,A,"",!0,!0)})}}function z(A){E=A}function D(A){return A=Math.max(.5,Te.value,A),A=Math.min(10,se.value,A),A}function Q(A,Y,X,ge,ue,Fe){we(),he.value||(A=C),le.value||(Y=O),e.scale||(X=x);var Ge=k(A,Y);if(A=Ge.x,Y=Ge.y,!e.animation){Z(A,Y,X,ge,ue,Fe);return}J._springX._solution=null,J._springY._solution=null,J._springScale._solution=null,J._springX._endPosition=C,J._springY._endPosition=O,J._springScale._endPosition=x,J.setEnd(A,Y,X,1),b=nh(J,function(){var De=J.x(),pt=De.x,lr=De.y,Rt=De.scale;Z(pt,lr,Rt,ge,ue,Fe)},function(){b.cancel()})}function G(A){var Y=k(C,O),X=Y.x,ge=Y.y,ue=Y.outOfBounds;return ue&&Q(X,ge,x,A),ue}function Z(A,Y,X){var ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",ue=arguments.length>4?arguments[4]:void 0,Fe=arguments.length>5?arguments[5]:void 0;A!==null&&A.toString()!=="NaN"&&typeof A=="number"||(A=C||0),Y!==null&&Y.toString()!=="NaN"&&typeof Y=="number"||(Y=O||0),A=Number(A.toFixed(1)),Y=Number(Y.toFixed(1)),X=Number(X.toFixed(1)),C===A&&O===Y||ue||t("change",{},{x:th(A,_.x),y:th(Y,_.y),source:ge}),e.scale||(X=x),X=D(X),X=+X.toFixed(3),Fe&&X!==x&&t("scale",{},{x:A,y:Y,scale:X});var Ge="translateX("+A+"px) translateY("+Y+"px) translateZ(0px) scale("+X+")";r.value.style.transform=Ge,r.value.style.webkitTransform=Ge,C=A,O=Y,x=X}function fe(){if(!!n.value){we();var A=e.scale?v.value:1;P(),N(A),$(),C=l.value+_.x,O=f.value+_.y;var Y=k(C,O),X=Y.x,ge=Y.y;Z(X,ge,A,"",!0),z(A)}}function Be(){M=!1,z(x)}function Ae(A){A&&(A=E*A,j(),B(A))}return Re(()=>{Wn(r.value,Y=>{switch(Y.detail.state){case"start":va();break;case"move":S(Y);break;case"end":T()}}),fe(),xe.reconfigure(1,ae.value),J.reconfigure(1,9*Math.pow(K.value,2)/40,K.value),r.value.style.transformOrigin="center",Hn();var A={rootRef:r,setParent:fe,_endScale:Be,_setScale:Ae};s(A),Zt(()=>{u(A)})}),Zt(()=>{we()}),{setParent:fe}}var Qx=["navigate","redirect","switchTab","reLaunch","navigateBack"],eS=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],tS=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],rS={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~Qx.indexOf(e))}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,validator(e){return!e||eS.concat(tS).includes(e)}},animationDuration:{type:[String,Number],default:300}};function iS(e){return()=>{if(e.openType!=="navigateBack"&&!e.url){console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}var t=parseInt(e.animationDuration);switch(e.openType){case"navigate":uni.navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t});break}}}var aS=ve({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:rS,setup(e,t){var{slots:r}=t,i=Dt(),a=i&&i.vnode.scopeId||"",{hovering:n,binding:o}=gl(e),s=iS(e);return()=>{var{hoverClass:u,url:l}=e,f=e.hoverClass&&e.hoverClass!=="none";return I("a",{class:"navigator-wrap",href:l,onClick:lc},[I("uni-navigator",rt({class:f&&n.value?u:""},f&&o,i?i.attrs:{},{[a]:""},{onClick:s}),[r.default&&r.default()],16,["onClick"])],8,["href","onClick"])}}}),nS={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function oS(e){var t=ke([...e.value]),r=ke({value:t,height:34});return W(()=>e.value,(i,a)=>{(i===a||i.length!==a.length||i.findIndex((n,o)=>n!==a[o])>=0)&&(r.value.length=i.length,i.forEach((n,o)=>{n!==r.value[o]&&r.value.splice(o,1,n)}))}),r}var sS=ve({name:"PickerView",props:nS,emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:r,emit:i}=t,a=F(null),n=F(null),o=Le(a,i),s=oS(e),u=F(null),l=()=>{var y=u.value;s.height=y.$el.offsetHeight},f=F([]),v=F([]);function p(y){var m=v.value;if(m instanceof HTMLCollection)return Array.prototype.indexOf.call(m,y.el);m=m.filter(h=>h.type!==Hr);var w=m.indexOf(y);return w!==-1?w:f.value.indexOf(y)}var g=function(y){var m=ee({get(){var w=p(y.vnode);return s.value[w]||0},set(w){var h=p(y.vnode);if(!(h<0)){var b=s.value[h];if(b!==w){s.value[h]=w;var c=s.value.map(d=>d);i("update:value",c),o("change",{},{value:c})}}}});return m};return ze("getPickerViewColumn",g),ze("pickerViewProps",e),ze("pickerViewState",s),ia(()=>{l(),v.value=n.value.children}),()=>{var y=r.default&&r.default();return I("uni-picker-view",{ref:a},[I(Or,{ref:u,onResize:m=>{var{height:w}=m;return s.height=w}},null,8,["onResize"]),I("div",{ref:n,class:"uni-picker-view-wrapper"},[y],512)],512)}}});class oh{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function sh(e,t,r){return e>t-r&&e<t+r}function Ir(e,t){return sh(e,0,t)}class lh{constructor(t,r,i){this._m=t,this._k=r,this._c=i,this._solution=null,this._endPosition=0,this._startTime=0}_solve(t,r){var i=this._c,a=this._m,n=this._k,o=i*i-4*a*n;if(o===0){var s=-i/(2*a),u=t,l=r/(s*t);return{x:function(b){return(u+l*b)*Math.pow(Math.E,s*b)},dx:function(b){var c=Math.pow(Math.E,s*b);return s*(u+l*b)*c+l*c}}}if(o>0){var f=(-i-Math.sqrt(o))/(2*a),v=(-i+Math.sqrt(o))/(2*a),p=(r-f*t)/(v-f),g=t-p;return{x:function(b){var c,d;return b===this._t&&(c=this._powER1T,d=this._powER2T),this._t=b,c||(c=this._powER1T=Math.pow(Math.E,f*b)),d||(d=this._powER2T=Math.pow(Math.E,v*b)),g*c+p*d},dx:function(b){var c,d;return b===this._t&&(c=this._powER1T,d=this._powER2T),this._t=b,c||(c=this._powER1T=Math.pow(Math.E,f*b)),d||(d=this._powER2T=Math.pow(Math.E,v*b)),g*f*c+p*v*d}}}var y=Math.sqrt(4*a*n-i*i)/(2*a),m=-i/2*a,w=t,h=(r-m*t)/y;return{x:function(b){return Math.pow(Math.E,m*b)*(w*Math.cos(y*b)+h*Math.sin(y*b))},dx:function(b){var c=Math.pow(Math.E,m*b),d=Math.cos(y*b),_=Math.sin(y*b);return c*(h*y*d-w*y*_)+m*c*(h*_+w*d)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!Ir(r,.4)){r=r||0;var a=this._endPosition;this._solution&&(Ir(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),a=this._solution.x((i-this._startTime)/1e3),Ir(r,.4)&&(r=0),Ir(a,.4)&&(a=0),a+=this._endPosition),this._solution&&Ir(a-t,.4)&&Ir(r,.4)||(this._endPosition=t,this._solution=this._solve(a-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),sh(this.x(),this._endPosition,.4)&&Ir(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,a){i.reconfigure(1,a,i.damping())}function r(i,a){i.reconfigure(1,i.springConstant(),a)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class lS{constructor(t,r,i){this._extent=t,this._friction=r||new oh(.01),this._spring=i||new lh(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function uS(e,t,r){var i={id:0,cancelled:!1};function a(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(a.bind(null,o,s,u,l))),f&&l&&l(s)}}function n(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}class fS{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new lS(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)<this._itemSize&&Math.abs(i.y)<300||Math.abs(i.y)<150)){this.snap();return}if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(i.x)<300||Math.abs(i.x)<150)){this.snap();return}}this._enableX?this._scroll.set(this._position,i.x):this._enableY&&this._scroll.set(this._position,i.y);var a;if(this._enableSnap){var n=this._scroll._friction.x(100),o=n%this._itemSize;a=Math.abs(o)>this._itemSize/2?n-(this._itemSize-Math.abs(o)):n-o,a<=0&&a>=-this._extent&&this._scroll.setVelocityByEnd(a)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=uS(this._scroll,()=>{var s=Date.now(),u=(s-this._scroll._startTime)/1e3,l=this._scroll.x(u);this._position=l,this.updatePosition();var f=this._scroll.dx(u);this._shouldDispatchScrollEvent&&s-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/f),this._lastTime=s)},()=>{this._enableSnap&&(a<=0&&a>=-this._extent&&(this._position=a,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var a=0,n=this._position;this._enableX?(a=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(a=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-a?this._position=-a:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),n!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=a,this._scroll._extent=a}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function cS(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new fS(e,t);function a(u){var l=u,f=u;return l.detail.state==="move"||l.detail.state==="end"?{x:l.detail.dx,y:l.detail.dy}:{x:f.screenX-r.x,y:f.screenY-r.y}}function n(u){var l=u,f=u;l.detail.state==="start"?(r.trackingID="touch",r.x=l.detail.x,r.y=l.detail.y):(r.trackingID="mouse",r.x=f.screenX,r.y=f.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[l.detail.timeStamp||f.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),(typeof u.cancelable!="boolean"||u.cancelable)&&u.preventDefault()}function o(u){var l=u,f=u;if(r.trackingID!==-1){(typeof u.cancelable!="boolean"||u.cancelable)&&u.preventDefault();var v=a(u);if(v){for(r.maxDy=Math.max(r.maxDy,Math.abs(v.y)),r.maxDx=Math.max(r.maxDx,Math.abs(v.x)),r.historyX.push(v.x),r.historyY.push(v.y),r.historyTime.push(l.detail.timeStamp||f.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(v.x,v.y)}}}function s(u){if(r.trackingID!==-1){u.preventDefault();var l=a(u);if(l){var f=r.listener;r.trackingID=-1,r.listener=null;var v=r.historyTime.length,p={x:0,y:0};if(v>2)for(var g=r.historyTime.length-1,y=r.historyTime[g],m=r.historyX[g],w=r.historyY[g];g>0;){g--;var h=r.historyTime[g],b=y-h;if(b>30&&b<50){p.x=(m-r.historyX[g])/(b/1e3),p.y=(w-r.historyY[g])/(b/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],f&&f.onTouchEnd&&f.onTouchEnd(l.x,l.y,p)}}}return{scroller:i,handleTouchStart:n,handleTouchMove:o,handleTouchEnd:s}}var dS=0;function vS(e){var t="uni-picker-view-content-".concat(dS++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return W(()=>e.value,r),t}function hS(e){var t=20,r=0,i=0;e.addEventListener("touchstart",a=>{var n=a.changedTouches[0];r=n.clientX,i=n.clientY}),e.addEventListener("touchend",a=>{var n=a.changedTouches[0];if(Math.abs(n.clientX-r)<t&&Math.abs(n.clientY-i)<t){var o={bubbles:!0,cancelable:!0,target:a.target,currentTarget:a.currentTarget},s=new CustomEvent("click",o),u=["screenX","screenY","clientX","clientY","pageX","pageY"];u.forEach(l=>{s[l]=n[l]}),a.target.dispatchEvent(s)}})}var gS=ve({name:"PickerViewColumn",setup(e,t){var{slots:r,emit:i}=t,a=F(null),n=F(null),o=_e("getPickerViewColumn"),s=Dt(),u=o?o(s):F(0),l=_e("pickerViewProps"),f=_e("pickerViewState"),v=F(34),p=F(null),g=()=>{var M=p.value;v.value=M.$el.offsetHeight},y=ee(()=>(f.height-v.value)/2),{state:m}=qv(),w=vS(v),h,b=ke({current:u.value,length:0}),c;function d(){h&&!c&&(c=!0,Ur(()=>{c=!1;var M=Math.min(b.current,b.length-1);M=Math.max(M,0),h.update(M*v.value,void 0,v.value)}))}W(()=>u.value,M=>{M!==b.current&&(b.current=M,d())}),W(()=>b.current,M=>u.value=M),W([()=>v.value,()=>b.length,()=>f.height],d);var _=0;function x(M){var R=_+M.deltaY;if(Math.abs(R)>10){_=0;var U=Math.min(b.current+(R<0?-1:1),b.length-1);b.current=U=Math.max(U,0),h.scrollTo(U*v.value)}else _=R;M.preventDefault()}function E(M){var{clientY:R}=M,U=a.value;if(!h.isScrolling()){var te=U.getBoundingClientRect(),L=R-te.top-f.height/2,H=v.value/2;if(!(Math.abs(L)<=H)){var q=Math.ceil((Math.abs(L)-H)/v.value),re=L<0?-q:q,V=Math.min(b.current+re,b.length-1);b.current=V=Math.max(V,0),h.scrollTo(V*v.value)}}}var C=()=>{var M=a.value,R=n.value,{scroller:U,handleTouchStart:te,handleTouchMove:L,handleTouchEnd:H}=cS(R,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:v.value,friction:new oh(1e-4),spring:new lh(2,90,20),onSnap:q=>{!isNaN(q)&&q!==b.current&&(b.current=q)}});h=U,Wn(M,q=>{switch(q.detail.state){case"start":te(q),or({disable:!0});break;case"move":L(q),q.stopPropagation();break;case"end":case"cancel":H(q),or({disable:!1})}},!0),hS(M),Hn(),d()};{var O=!1;ia(()=>{b.length=n.value.children.length,O||(O=!0,g(),C())})}return()=>{var M=r.default&&r.default(),R="".concat(y.value,"px 0");return I("uni-picker-view-column",{ref:a},[I("div",{onWheel:x,onClick:E,class:"uni-picker-view-group"},[I("div",rt(m.attrs,{class:["uni-picker-view-mask",l.maskClass],style:"background-size: 100% ".concat(y.value,"px;").concat(l.maskStyle)}),null,16),I("div",rt(m.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[I(Or,{ref:p,onResize:U=>{var{height:te}=U;return v.value=te}},null,8,["onResize"])],16),I("div",{ref:n,class:["uni-picker-view-content",w],style:{padding:R}},[M],6)],40,["onWheel","onClick"])],512)}}}),pS=16,kr={activeColor:Na,backgroundColor:"#EBEBEB",activeMode:"backwards"},mS={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},fontSize:{type:[String,Number],default:pS},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:kr.activeColor},activeColor:{type:String,default:kr.activeColor},backgroundColor:{type:String,default:kr.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:kr.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}},borderRadius:{type:[Number,String],default:0}},_S=ve({name:"Progress",props:mS,setup(e){var t=bS(e);return uh(t,e),W(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,uh(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:a,currentPercent:n}=t;return I("uni-progress",{class:"uni-progress"},[I("div",{style:i,class:"uni-progress-bar"},[I("div",{style:a,class:"uni-progress-inner-bar"},null,4)],4),r?I("p",{class:"uni-progress-info"},[n+"%"]):""])}}});function bS(e){var t=F(0),r=ee(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=ee(()=>{var o=e.color!==kr.activeColor&&e.activeColor===kr.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(o)}),a=ee(()=>{var o=parseFloat(e.percent);return o<0&&(o=0),o>100&&(o=100),o}),n=ke({outerBarStyle:r,innerBarStyle:i,realPercent:a,currentPercent:t,strokeTimer:0,lastPercent:0});return n}function uh(e,t){t.active?(e.currentPercent=t.activeMode===kr.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var fh=dn("ucg"),wS={name:{type:String,default:""}},yS=ve({name:"RadioGroup",props:wS,setup(e,t){var{emit:r,slots:i}=t,a=F(null),n=Le(a,r);return xS(e,n),()=>I("uni-radio-group",{ref:a},[i.default&&i.default()],512)}});function xS(e,t){var r=[];Re(()=>{s(r.length-1)});var i=()=>{var u;return(u=r.find(l=>l.value.radioChecked))===null||u===void 0?void 0:u.value.value};ze(fh,{addField(u){r.push(u)},removeField(u){r.splice(r.indexOf(u),1)},radioChange(u,l){var f=r.indexOf(l);s(f,!0),t("change",u,{value:i()})}});var a=_e(kt,!1),n={submit:()=>{var u=["",null];return e.name!==""&&(u[0]=e.name,u[1]=i()),u}};a&&(a.addField(n),Ce(()=>{a.removeField(n)}));function o(u,l){u.value={radioChecked:l,value:u.value.value}}function s(u,l){r.forEach((f,v)=>{v!==u&&(l?o(r[v],!1):r.forEach((p,g)=>{v>=g||r[g].value.radioChecked&&o(r[v],!1)}))})}return r}var SS={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},ES=ve({name:"Radio",props:SS,setup(e,t){var{slots:r}=t,i=F(e.checked),a=F(e.value),n=ee(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));W([()=>e.checked,()=>e.value],v=>{var[p,g]=v;i.value=p,a.value=g});var o=()=>{i.value=!1},{uniCheckGroup:s,uniLabel:u,field:l}=TS(i,a,o),f=v=>{e.disabled||(i.value=!0,s&&s.radioChange(v,l))};return u&&(u.addHandler(f),Ce(()=>{u.removeHandler(f)})),Nn(e,{"label-click":f}),()=>{var v=ai(e,"disabled");return I("uni-radio",rt(v,{onClick:f}),[I("div",{class:"uni-radio-wrapper"},[I("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:i.value?n.value:""},[i.value?hn(vn,"#fff",18):""],6),r.default&&r.default()])],16,["onClick"])}}});function TS(e,t,r){var i=ee({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:u=>{var{radioChecked:l}=u;e.value=l}}),a={reset:r},n=_e(fh,!1);n&&n.addField(i);var o=_e(kt,!1);o&&o.addField(a);var s=_e(Ji,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s,field:i}}var ch={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},El={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function CS(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(ie(El,r)&&El[r])return El[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function OS(e,t,r){return e==="img"&&t==="src"?st(r):r}function dh(e,t,r,i){return e.forEach(function(a){if(!!_t(a))if(!ie(a,"type")||a.type==="node"){if(!(typeof a.name=="string"&&a.name))return;var n=a.name.toLowerCase();if(!ie(ch,n))return;var o=document.createElement(n);if(!o)return;r&&o.setAttribute(r,"");var s=a.attrs;if(_t(s)){var u=ch[n]||[];Object.keys(s).forEach(function(f){var v=s[f];switch(f){case"class":Array.isArray(v)&&(v=v.join(" "));case"style":o.setAttribute(f,v);break;default:u.indexOf(f)!==-1&&o.setAttribute(f,OS(n,f,v))}})}AS(a,o,i);var l=a.children;Array.isArray(l)&&l.length&&dh(a.children,o,r,i),t.appendChild(o)}else a.type==="text"&&typeof a.text=="string"&&a.text!==""&&t.appendChild(document.createTextNode(CS(a.text)))}),t}function AS(e,t,r){["a","img"].includes(e.name)&&r&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",i=>{r(i,{node:e}),i.stopPropagation()},!0))}function IS(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function kS(e){return e.reduce(function(t,r){var i=r.value,a=r.name;return i.match(/ /)&&["style","src"].indexOf(a)===-1&&(i=i.split(" ")),t[a]?Array.isArray(t[a])?t[a].push(i):t[a]=[t[a],i]:t[a]=i,t},{})}function MS(e){e=IS(e);var t=[],r={node:"root",children:[]};return Uv(e,{start:function(i,a,n){var o={name:i};if(a.length!==0&&(o.attrs=kS(a)),n){var s=t[0]||r;s.children||(s.children=[]),s.children.push(o)}else t.unshift(o)},end:function(i){var a=t.shift();if(a.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},chars:function(i){var a={type:"text",text:i};if(t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},comment:function(i){var a={node:"comment",text:i},n=t[0];n.children||(n.children=[]),n.children.push(a)}}),r.children}var RS={nodes:{type:[Array,String],default:function(){return[]}}},LS=ve({name:"RichText",compatConfig:{MODE:3},props:RS,emits:["click","touchstart","touchmove","touchcancel","touchend","longpress"],setup(e,t){var{emit:r,attrs:i}=t,a=Dt(),n=F(null),o=Le(n,r),s=!!i.onItemclick;function u(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o("itemclick",f,v)}function l(f){typeof f=="string"&&(f=MS(f));var v=dh(f,document.createDocumentFragment(),a&&a.vnode.scopeId||"",s&&u);n.value.firstElementChild.innerHTML="",n.value.firstElementChild.appendChild(v)}return W(()=>e.nodes,f=>{l(f)}),Re(()=>{l(e.nodes)}),()=>I("uni-rich-text",{ref:n},[I("div",null,null)],512)}}),vh=mi(!0),PS={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},NS=ve({name:"ScrollView",compatConfig:{MODE:3},props:PS,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:r,slots:i}=t,a=F(null),n=F(null),o=F(null),s=F(null),u=F(null),l=Le(a,r),{state:f,scrollTopNumber:v,scrollLeftNumber:p}=DS(e);BS(e,f,v,p,l,a,n,s,r);var g=ee(()=>{var y="";return e.scrollX?y+="overflow-x:auto;":y+="overflow-x:hidden;",e.scrollY?y+="overflow-y:auto;":y+="overflow-y:hidden;",y});return()=>{var{refresherEnabled:y,refresherBackground:m,refresherDefaultStyle:w}=e,{refresherHeight:h,refreshState:b,refreshRotate:c}=f;return I("uni-scroll-view",{ref:a},[I("div",{ref:o,class:"uni-scroll-view"},[I("div",{ref:n,style:g.value,class:"uni-scroll-view"},[I("div",{ref:s,class:"uni-scroll-view-content"},[y?I("div",{ref:u,style:{backgroundColor:m,height:h+"px"},class:"uni-scroll-view-refresher"},[w!=="none"?I("div",{class:"uni-scroll-view-refresh"},[I("div",{class:"uni-scroll-view-refresh-inner"},[b=="pulling"?I("svg",{key:"refresh__icon",style:{transform:"rotate("+c+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[I("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),I("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,b=="refreshing"?I("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[I("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,w=="none"?i.refresher&&i.refresher():null],4):null,i.default&&i.default()],512)],4)],512)],512)}}});function DS(e){var t=ee(()=>Number(e.scrollTop)||0),r=ee(()=>Number(e.scrollLeft)||0),i=ke({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function BS(e,t,r,i,a,n,o,s,u){var l=!1,f=0,v=!1,p=()=>{},g=ee(()=>{var x=Number(e.upperThreshold);return isNaN(x)?50:x}),y=ee(()=>{var x=Number(e.lowerThreshold);return isNaN(x)?50:x});function m(x,E){var C=o.value,O=0,M="";if(x<0?x=0:E==="x"&&x>C.scrollWidth-C.offsetWidth?x=C.scrollWidth-C.offsetWidth:E==="y"&&x>C.scrollHeight-C.offsetHeight&&(x=C.scrollHeight-C.offsetHeight),E==="x"?O=C.scrollLeft-x:E==="y"&&(O=C.scrollTop-x),O!==0){var R=s.value;R.style.transition="transform .3s ease-out",R.style.webkitTransition="-webkit-transform .3s ease-out",E==="x"?M="translateX("+O+"px) translateZ(0)":E==="y"&&(M="translateY("+O+"px) translateZ(0)"),R.removeEventListener("transitionend",p),R.removeEventListener("webkitTransitionEnd",p),p=()=>d(x,E),R.addEventListener("transitionend",p),R.addEventListener("webkitTransitionEnd",p),E==="x"?C.style.overflowX="hidden":E==="y"&&(C.style.overflowY="hidden"),R.style.transform=M,R.style.webkitTransform=M}}function w(x){var E=x.target;a("scroll",x,{scrollLeft:E.scrollLeft,scrollTop:E.scrollTop,scrollHeight:E.scrollHeight,scrollWidth:E.scrollWidth,deltaX:t.lastScrollLeft-E.scrollLeft,deltaY:t.lastScrollTop-E.scrollTop}),e.scrollY&&(E.scrollTop<=g.value&&t.lastScrollTop-E.scrollTop>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",x,{direction:"top"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollTop+E.offsetHeight+y.value>=E.scrollHeight&&t.lastScrollTop-E.scrollTop<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",x,{direction:"bottom"}),t.lastScrollToLowerTime=x.timeStamp)),e.scrollX&&(E.scrollLeft<=g.value&&t.lastScrollLeft-E.scrollLeft>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",x,{direction:"left"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollLeft+E.offsetWidth+y.value>=E.scrollWidth&&t.lastScrollLeft-E.scrollLeft<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",x,{direction:"right"}),t.lastScrollToLowerTime=x.timeStamp)),t.lastScrollTop=E.scrollTop,t.lastScrollLeft=E.scrollLeft}function h(x){e.scrollY&&(e.scrollWithAnimation?m(x,"y"):o.value.scrollTop=x)}function b(x){e.scrollX&&(e.scrollWithAnimation?m(x,"x"):o.value.scrollLeft=x)}function c(x){if(x){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(x)){console.error("id error: scroll-into-view=".concat(x));return}var E=n.value.querySelector("#"+x);if(E){var C=o.value.getBoundingClientRect(),O=E.getBoundingClientRect();if(e.scrollX){var M=O.left-C.left,R=o.value.scrollLeft,U=R+M;e.scrollWithAnimation?m(U,"x"):o.value.scrollLeft=U}if(e.scrollY){var te=O.top-C.top,L=o.value.scrollTop,H=L+te;e.scrollWithAnimation?m(H,"y"):o.value.scrollTop=H}}}}function d(x,E){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var C=o.value;E==="x"?(C.style.overflowX=e.scrollX?"auto":"hidden",C.scrollLeft=x):E==="y"&&(C.style.overflowY=e.scrollY?"auto":"hidden",C.scrollTop=x),s.value.removeEventListener("transitionend",p),s.value.removeEventListener("webkitTransitionEnd",p)}function _(x){switch(x){case"refreshing":t.refresherHeight=e.refresherThreshold,l||(l=!0,a("refresherrefresh",{},{}),u("update:refresherTriggered",!0));break;case"restore":case"refresherabort":l=!1,t.refresherHeight=f=0,x==="restore"&&(v=!1,a("refresherrestore",{},{})),x==="refresherabort"&&v&&(v=!1,a("refresherabort",{},{}));break}t.refreshState=x}Re(()=>{Ur(()=>{h(r.value),b(i.value)}),c(e.scrollIntoView);var x=function(U){U.preventDefault(),U.stopPropagation(),w(U)},E={x:0,y:0},C=null,O=function(U){if(E!==null){var te=U.touches[0].pageX,L=U.touches[0].pageY,H=o.value;if(Math.abs(te-E.x)>Math.abs(L-E.y))if(e.scrollX){if(H.scrollLeft===0&&te>E.x){C=!1;return}else if(H.scrollWidth===H.offsetWidth+H.scrollLeft&&te<E.x){C=!1;return}C=!0}else C=!1;else if(e.scrollY)if(H.scrollTop===0&&L>E.y)C=!1,e.refresherEnabled&&U.cancelable!==!1&&U.preventDefault();else if(H.scrollHeight===H.offsetHeight+H.scrollTop&&L<E.y){C=!1;return}else C=!0;else C=!1;if(C&&U.stopPropagation(),H.scrollTop===0&&U.touches.length===1&&(t.refreshState="pulling"),e.refresherEnabled&&t.refreshState==="pulling"){var q=L-E.y;f===0&&(f=L),l?(t.refresherHeight=q+e.refresherThreshold,v=!1):(t.refresherHeight=L-f,t.refresherHeight>0&&(v=!0,a("refresherpulling",U,{deltaY:q})));var re=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(re>1?1:re)*360}}},M=function(U){U.touches.length===1&&(or({disable:!0}),E={x:U.touches[0].pageX,y:U.touches[0].pageY})},R=function(U){E=null,or({disable:!1}),t.refresherHeight>=e.refresherThreshold?_("refreshing"):_("refresherabort")};o.value.addEventListener("touchstart",M,vh),o.value.addEventListener("touchmove",O,mi(!1)),o.value.addEventListener("scroll",x,mi(!1)),o.value.addEventListener("touchend",R,vh),Hn(),Ce(()=>{o.value.removeEventListener("touchstart",M),o.value.removeEventListener("touchmove",O),o.value.removeEventListener("scroll",x),o.value.removeEventListener("touchend",R)})}),ls(()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)}),W(r,x=>{h(x)}),W(i,x=>{b(x)}),W(()=>e.scrollIntoView,x=>{c(x)}),W(()=>e.refresherTriggered,x=>{x===!0?_("refreshing"):x===!1&&_("restore")})}var FS={name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},$S=ve({name:"Slider",props:FS,emits:["changing","change"],setup(e,t){var{emit:r}=t,i=F(null),a=F(null),n=F(null),o=F(Number(e.value));W(()=>e.value,v=>{o.value=Number(v)});var s=Le(i,r),u=zS(e,o),{_onClick:l,_onTrack:f}=US(e,o,i,a,s);return Re(()=>{Wn(n.value,f)}),()=>{var{setBgColor:v,setBlockBg:p,setActiveColor:g,setBlockStyle:y}=u;return I("uni-slider",{ref:i,onClick:Cr(l)},[I("div",{class:"uni-slider-wrapper"},[I("div",{class:"uni-slider-tap-area"},[I("div",{style:v.value,class:"uni-slider-handle-wrapper"},[I("div",{ref:n,style:p.value,class:"uni-slider-handle"},null,4),I("div",{style:y.value,class:"uni-slider-thumb"},null,4),I("div",{style:g.value,class:"uni-slider-track"},null,4)],4)]),Ii(I("span",{ref:a,class:"uni-slider-value"},[o.value],512),[[Li,e.showValue]])]),I("slot",null,null)],8,["onClick"])}}});function zS(e,t){var r=()=>{var o=Number(e.max),s=Number(e.min);return 100*(t.value-s)/(o-s)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",a=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",n={setBgColor:ee(()=>({backgroundColor:i()})),setBlockBg:ee(()=>({left:r()})),setActiveColor:ee(()=>({backgroundColor:a(),width:r()})),setBlockStyle:ee(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return n}function US(e,t,r,i,a){var n=v=>{e.disabled||(s(v),a("change",v,{value:t.value}))},o=v=>{var p=Number(e.max),g=Number(e.min),y=Number(e.step);return v<g?g:v>p?p:HS.mul.call(Math.round((v-g)/y),y)+g},s=v=>{var p=Number(e.max),g=Number(e.min),y=i.value,m=getComputedStyle(y,null).marginLeft,w=y.offsetWidth;w=w+parseInt(m);var h=r.value,b=h.offsetWidth-(e.showValue?w:0),c=h.getBoundingClientRect().left,d=(v.x-c)*(p-g)/b+g;t.value=o(d)},u=v=>{if(!e.disabled)return v.detail.state==="move"?(s({x:v.detail.x}),a("changing",v,{value:t.value}),!1):v.detail.state==="end"&&a("change",v,{value:t.value})},l=_e(kt,!1);if(l){var f={reset:()=>t.value=Number(e.min),submit:()=>{var v=["",null];return e.name!==""&&(v[0]=e.name,v[1]=t.value),v}};l.addField(f),Ce(()=>{l.removeField(f)})}return{_onClick:n,_onTrack:u}}var HS={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch(a){}try{t+=i.split(".")[1].length}catch(a){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},WS={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function VS(e){var t=ee(()=>{var n=Number(e.interval);return isNaN(n)?5e3:n}),r=ee(()=>{var n=Number(e.duration);return isNaN(n)?500:n}),i=ee(()=>{var n=Math.round(e.displayMultipleItems);return isNaN(n)?1:n}),a=ke({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return a}function jS(e,t,r,i,a,n){function o(){s&&(clearTimeout(s),s=null)}var s=null,u=!0,l=0,f=1,v=null,p=!1,g=0,y,m="",w,h=ee(()=>e.circular&&r.value.length>t.displayMultipleItems);function b(L){if(!u)for(var H=r.value,q=H.length,re=L+t.displayMultipleItems,V=0;V<q;V++){var K=H[V],ae=Math.floor(L/q)*q+V,Te=ae+q,se=ae-q,he=Math.max(L-(ae+1),ae-re,0),le=Math.max(L-(Te+1),Te-re,0),J=Math.max(L-(se+1),se-re,0),xe=Math.min(he,le,J),we=[ae,Te,se][[he,le,J].indexOf(xe)];K.updatePosition(we,e.vertical)}}function c(L){Math.floor(2*l)===Math.floor(2*L)&&Math.ceil(2*l)===Math.ceil(2*L)||h.value&&b(L);var H=e.vertical?"0":100*-L*f+"%",q=e.vertical?100*-L*f+"%":"0",re="translate("+H+", "+q+") translateZ(0)",V=i.value;if(V&&(V.style.webkitTransform=re,V.style.transform=re),l=L,!y){if(L%1===0)return;y=L}L-=Math.floor(y);var K=r.value;L<=-(K.length-1)?L+=K.length:L>=K.length&&(L-=K.length),L=y%1>.5||y<0?L-1:L,n("transition",{},{dx:e.vertical?0:L*V.offsetWidth,dy:e.vertical?L*V.offsetHeight:0})}function d(){v&&(c(v.toPos),v=null)}function _(L){var H=r.value.length;if(!H)return-1;var q=(Math.round(L)%H+H)%H;if(h.value){if(H<=t.displayMultipleItems)return 0}else if(q>H-t.displayMultipleItems)return H-t.displayMultipleItems;return q}function x(){v=null}function E(){if(!v){p=!1;return}var L=v,H=L.toPos,q=L.acc,re=L.endTime,V=L.source,K=re-Date.now();if(K<=0){c(H),v=null,p=!1,y=null;var ae=r.value[t.current];if(ae){var Te=ae.getItemId();n("animationfinish",{},{current:t.current,currentItemId:Te,source:V})}return}var se=q*K*K/2,he=H+se;c(he),w=requestAnimationFrame(E)}function C(L,H,q){x();var re=t.duration,V=r.value.length,K=l;if(h.value)if(q<0){for(;K<L;)K+=V;for(;K-V>L;)K-=V}else if(q>0){for(;K>L;)K-=V;for(;K+V<L;)K+=V;K+V-L<L-K&&(K+=V)}else{for(;K+V<L;)K+=V;for(;K-V>L;)K-=V;K+V-L<L-K&&(K+=V)}v={toPos:L,acc:2*(K-L)/(re*re),endTime:Date.now()+re,source:H},p||(p=!0,w=requestAnimationFrame(E))}function O(){o();var L=r.value,H=function(){s=null,m="autoplay",h.value?t.current=_(t.current+1):t.current=t.current+t.displayMultipleItems<L.length?t.current+1:0,C(t.current,"autoplay",h.value?1:0),s=setTimeout(H,t.interval)};u||L.length<=t.displayMultipleItems||(s=setTimeout(H,t.interval))}function M(){o(),d();for(var L=r.value,H=0;H<L.length;H++)L[H].updatePosition(H,e.vertical);f=1;var q=i.value;if(t.displayMultipleItems===1&&L.length){var re=L[0].getBoundingClientRect(),V=q.getBoundingClientRect();f=re.width/V.width,f>0&&f<1||(f=1)}var K=l;l=-2;var ae=t.current;ae>=0?(u=!1,t.userTracking?(c(K+ae-g),g=ae):(c(ae),e.autoplay&&O())):(u=!0,c(-t.displayMultipleItems-1))}W([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var L=-1;if(e.currentItemId)for(var H=0,q=r.value;H<q.length;H++){var re=q[H].getItemId();if(re===e.currentItemId){L=H;break}}L<0&&(L=Math.round(e.current)||0),L=L<0?0:L,t.current!==L&&(m="",t.current=L)}),W([()=>e.vertical,()=>h.value,()=>t.displayMultipleItems,()=>[...r.value]],M),W(()=>t.interval,()=>{s&&(o(),O())});function R(L,H){var q=m;m="";var re=r.value;if(!q){var V=re.length;C(L,"",h.value&&H+(V-L)%V>V/2?1:0)}var K=re[L];if(K){var ae=t.currentItemId=K.getItemId();n("change",{},{current:t.current,currentItemId:ae,source:q})}}W(()=>t.current,(L,H)=>{R(L,H),a("update:current",L)}),W(()=>t.currentItemId,L=>{a("update:currentItemId",L)});function U(L){L?O():o()}W(()=>e.autoplay&&!t.userTracking,U),U(e.autoplay&&!t.userTracking),Re(()=>{var L=!1,H=0,q=0;function re(){o(),g=l,H=0,q=Date.now(),x()}function V(ae){var Te=q;q=Date.now();var se=r.value.length,he=se-t.displayMultipleItems;function le(Ve){return .5-.25/(Ve+.5)}function J(Ve,sr){var Ne=g+Ve;H=.6*H+.4*sr,h.value||(Ne<0||Ne>he)&&(Ne<0?Ne=-le(-Ne):Ne>he&&(Ne=he+le(Ne-he)),H=0),c(Ne)}var xe=q-Te||1,we=i.value;e.vertical?J(-ae.dy/we.offsetHeight,-ae.ddy/xe):J(-ae.dx/we.offsetWidth,-ae.ddx/xe)}function K(ae){t.userTracking=!1;var Te=H/Math.abs(H),se=0;!ae&&Math.abs(H)>.2&&(se=.5*Te);var he=_(l+se);ae?c(g):(m="touch",t.current=he,C(he,"touch",se!==0?se:he===0&&h.value&&l>=1?1:0))}Wn(i.value,ae=>{if(!e.disableTouch&&!u){if(ae.detail.state==="start")return t.userTracking=!0,L=!1,re();if(ae.detail.state==="end")return K(!1);if(ae.detail.state==="cancel")return K(!0);if(t.userTracking){if(!L){L=!0;var Te=Math.abs(ae.detail.dx),se=Math.abs(ae.detail.dy);if((Te>=se&&e.vertical||Te<=se&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&O();return}}return V(ae.detail),!1}}})}),Zt(()=>{o(),cancelAnimationFrame(w)});function te(L){C(t.current=L,m="click",h.value?1:0)}return{onSwiperDotClick:te}}var YS=ve({name:"Swiper",props:WS,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:r,emit:i}=t,a=F(null),n=Le(a,i),o=F(null),s=F(null),u=VS(e),l=ee(()=>{var b={};return(e.nextMargin||e.previousMargin)&&(b=e.vertical?{left:0,right:0,top:Vr(e.previousMargin,!0),bottom:Vr(e.nextMargin,!0)}:{top:0,bottom:0,left:Vr(e.previousMargin,!0),right:Vr(e.nextMargin,!0)}),b}),f=ee(()=>{var b=Math.abs(100/u.displayMultipleItems)+"%";return{width:e.vertical?"100%":b,height:e.vertical?b:"100%"}}),v=[],p=[],g=F([]);function y(){for(var b=[],c=function(_){var x=v[_];x instanceof Element||(x=x.el);var E=p.find(C=>x===C.rootRef.value);E&&b.push(qa(E))},d=0;d<v.length;d++)c(d);g.value=b}ia(()=>{v=s.value.children,y()});var m=function(b){p.push(b),y()};ze("addSwiperContext",m);var w=function(b){var c=p.indexOf(b);c>=0&&(p.splice(c,1),y())};ze("removeSwiperContext",w);var{onSwiperDotClick:h}=jS(e,u,g,s,i,n);return()=>{var b=r.default&&r.default();return v=yl(b),I("uni-swiper",{ref:a},[I("div",{ref:o,class:"uni-swiper-wrapper"},[I("div",{class:"uni-swiper-slides",style:l.value},[I("div",{ref:s,class:"uni-swiper-slide-frame",style:f.value},[b],4)],4),e.indicatorDots&&I("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[g.value.map((c,d,_)=>I("div",{onClick:()=>h(d),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":d<u.current+u.displayMultipleItems&&d>=u.current||d<u.current+u.displayMultipleItems-_.length},style:{background:d===u.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2)],512)],512)}}}),qS={itemId:{type:String,default:""}},XS=ve({name:"SwiperItem",props:qS,setup(e,t){var{slots:r}=t,i=F(null),a={rootRef:i,getItemId(){return e.itemId},getBoundingClientRect(){var n=i.value;return n.getBoundingClientRect()},updatePosition(n,o){var s=o?"0":100*n+"%",u=o?100*n+"%":"0",l=i.value,f="translate(".concat(s,",").concat(u,") translateZ(0)");l&&(l.style.webkitTransform=f,l.style.transform=f)}};return Re(()=>{var n=_e("addSwiperContext");n&&n(a)}),Zt(()=>{var n=_e("removeSwiperContext");n&&n(a)}),()=>I("uni-swiper-item",{ref:i,style:{position:"absolute",width:"100%",height:"100%"}},[r.default&&r.default()],512)}}),ZS={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},KS=ve({name:"Switch",props:ZS,emits:["change"],setup(e,t){var{emit:r}=t,i=F(null),a=F(e.checked),n=GS(e,a),o=Le(i,r);W(()=>e.checked,u=>{a.value=u});var s=u=>{e.disabled||(a.value=!a.value,o("change",u,{value:a.value}))};return n&&(n.addHandler(s),Ce(()=>{n.removeHandler(s)})),Nn(e,{"label-click":s}),()=>{var{color:u,type:l}=e,f=ai(e,"disabled");return I("uni-switch",rt({ref:i},f,{onClick:s}),[I("div",{class:"uni-switch-wrapper"},[Ii(I("div",{class:["uni-switch-input",[a.value?"uni-switch-input-checked":""]],style:{backgroundColor:a.value?u:"#DFDFDF",borderColor:a.value?u:"#DFDFDF"}},null,6),[[Li,l==="switch"]]),Ii(I("div",{class:"uni-checkbox-input"},[a.value?hn(vn,e.color,22):""],512),[[Li,l==="checkbox"]])])],16,["onClick"])}}});function GS(e,t){var r=_e(kt,!1),i=_e(Ji,!1),a={submit:()=>{var n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};return r&&(r.addField(a),Zt(()=>{r.removeField(a)})),i}var oa={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function JS(e,t){return e.replace(/\\n/g,gi).split(gi).map(r=>QS(r,t))}function QS(e,t){var{space:r,decode:i}=t;return!e||(r&&oa[r]&&(e=e.replace(/ /g,oa[r])),!i)?e:e.replace(/&nbsp;/g,oa.nbsp).replace(/&ensp;/g,oa.ensp).replace(/&emsp;/g,oa.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")}var eE=ce({},Xv,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator(e){return hh.concat("return").includes(e)}}}),Tl=!1,hh=["done","go","next","search","send"];function tE(){var e="(prefers-color-scheme: dark)";Tl=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var rE=ve({name:"Textarea",props:eE,emits:["confirm","linechange",...Zv],setup(e,t){var{emit:r}=t,i=F(null),{fieldRef:a,state:n,scopedAttrsState:o,fixDisabledColor:s,trigger:u}=Kv(e,i,r),l=ee(()=>n.value.split(gi)),f=ee(()=>hh.includes(e.confirmType)),v=F(0),p=F(null);W(()=>v.value,h=>{var b=i.value,c=p.value,d=parseFloat(getComputedStyle(b).lineHeight);isNaN(d)&&(d=c.offsetHeight);var _=Math.round(h/d);u("linechange",{},{height:h,heightRpx:750/window.innerWidth*h,lineCount:_}),e.autoHeight&&(b.style.height=h+"px")});function g(h){var{height:b}=h;v.value=b}function y(h){u("confirm",h,{value:n.value})}function m(h){h.key==="Enter"&&f.value&&h.preventDefault()}function w(h){if(h.key==="Enter"&&f.value){y(h);var b=h.target;!e.confirmHold&&b.blur()}}return tE(),()=>{var h=e.disabled&&s?I("textarea",{ref:a,value:n.value,tabindex:"-1",readonly:!!e.disabled,maxlength:n.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tl},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:b=>b.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):I("textarea",{ref:a,value:n.value,disabled:!!e.disabled,maxlength:n.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tl},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:m,onKeyup:w},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return I("uni-textarea",{ref:i},[I("div",{class:"uni-textarea-wrapper"},[Ii(I("div",rt(o.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Li,!n.value.length]]),I("div",{ref:p,class:"uni-textarea-line"},[" "],512),I("div",{class:"uni-textarea-compute"},[l.value.map(b=>I("div",null,[b.trim()?b:"."])),I(Or,{initial:!0,onResize:g},null,8,["initial","onResize"])]),e.confirmType==="search"?I("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[h],40,["onSubmit"]):h])],512)}}});ce({},yy);function Yn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function gh(e,t,r){!e||wt(r||Gt(),e,(i,a)=>{var{type:n,data:o}=i;t(n,o,a)})}function ph(e,t){!e||Im(t||Gt(),e)}function sa(e,t,r,i){var a=Dt(),n=a.proxy;Re(()=>{gh(t||Yn(n),e,i),(r||!t)&&W(()=>n.id,(o,s)=>{gh(Yn(n,o),e,i),ph(s&&Yn(n,s))})}),Ce(()=>{ph(t||Yn(n),i)})}var iE=0;function la(e){var t=gn(),r=Dt(),i=r.proxy,a=i.$options.name.toLowerCase(),n=e||i.id||"context".concat(iE++);return Re(()=>{var o=i.$el;o.__uniContextInfo={id:n,type:a,page:t}}),"".concat(a,".").concat(n)}function aE(e){return e.__uniContextInfo}class mh extends Sv{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...Pn.props,...o])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!!this.$animate){if(t)return this.call(Pn.mounted);this.$animate&&(this.$animate=!1,this.call(Pn.watch.animation.handler))}}}var nE=["space","decode"];class oE extends mh{constructor(t,r,i,a){super(t,document.createElement("uni-text"),r,i,a,nE),this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update(),this.updateView()}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{$props:{space:r,decode:i}}=this;this.$.textContent=JS(this._text,{space:r,decode:i}).join(gi),super.update(t)}}class sE extends ii{constructor(t,r,i,a){super(t,"#text",r,document.createTextNode("")),this.init(a),this.insert(r,i)}}var e2="",lE=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class uE extends mh{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...lE,...o])}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new fE(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class fE{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class cE extends uE{constructor(t,r,i,a){super(t,document.createElement("uni-view"),r,i,a)}}function _h(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function bh(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?yu+_h():0}var wh=Symbol("onDraw");function dE(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function qn(e,t){return ee(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var a=e[i];a=i==="src"?st(a):a,r[i.replace(/[A-Z]/g,n=>"-"+n.toLowerCase())]=a}}),r})}function oi(e){var t=ke({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=F(!1);function i(){var v=e.value,p=v.getBoundingClientRect(),g=["width","height"];r.value=p.width===0||p.height===0,r.value||(t.position=dE(v)?"absolute":"static",g.push("top","left")),g.forEach(y=>{var m=p[y];m=y==="top"?m+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:bh()):m,t[y]=m+"px"})}var a=null;function n(){a&&cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=null,i()})}window.addEventListener("updateview",n);var o=[],s=[];function u(v){s?s.push(v):v()}function l(v){var p=_e(wh),g=y=>{v(y),o.forEach(m=>m(t)),o=null};u(()=>{p?p(g):g({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var f=function(v){o?o.push(v):v(t)};return ze(wh,f),Re(()=>{i(),s.forEach(v=>v()),s=null}),Ce(()=>{window.removeEventListener("updateview",n)}),{position:t,hidden:r,onParentReady:l}}var vE=ve({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var{emit:r}=t,i=F(null),a=F(null),n=Le(i,r),o=qn(e,["id"]),{position:s,onParentReady:u}=oi(a),l;return u(()=>{l=plus.ad.createAdView(Object.assign({},o.value,s)),plus.webview.currentWebview().append(l),l.setDislikeListener(v=>{a.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),n("close",{},v)}),l.setRenderingListener(v=>{v.result===0?(a.value.style.height=v.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):n("error",{},{errCode:v.result})}),l.setAdClickedListener(()=>{n("adclicked",{},{})}),W(()=>s,v=>l.setStyle(v),{deep:!0}),W(()=>e.adpid,v=>{v&&f()}),W(()=>e.data,v=>{v&&l.renderingBind(v)});function f(){var v={adpid:e.adpid,width:s.width,count:e.dataCount};e.channel!==void 0&&(v.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",v,p=>{var{code:g,data:y,message:m}=p;g===0?l.renderingBind(y):n("error",{},{errMsg:m})})}e.adpid&&f()}),Ce(()=>{l&&l.close()}),()=>I("uni-ad",{ref:i},[I("div",{ref:a,class:"uni-ad-container"},null,512)],512)}});class be extends ii{constructor(t,r,i,a,n,o,s){super(t,r,a);var u=document.createElement("div");u.__vueParent=hE(this),this.$props=ke({}),this.init(o),this.$app=nc(ST(i,this.$props)),this.$app.mount(u),this.$=u.firstElementChild,s&&(this.$holder=this.$.querySelector(s)),ie(o,"t")&&this.setText(o.t||""),o.a&&ie(o.a,Da)&&hl(this.$,o.a[Da]),this.insert(a,n),bf()}init(t){var{a:r,e:i,w:a}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(n=>{this.setAttr(n,r[n])})),ie(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(n=>{this.addEvent(n,i[n])}),a&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t,this.updateView()}addWxsEvent(t,r,i){this.$props[t]=xv(this,r,i)}addEvent(t,r){this.$props[t]=wv(this.id,r,No(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===Da)this.$&&hl(this.$,r);else if(t===Au)this.$.__ownerId=r;else if(t===Iu)zt(()=>cv(this,r),lv);else if(t===Bo){var i=vl(this.$||Ke(this.pid).$,r),a=this.$props.style;_t(i)&&_t(a)?Object.keys(i).forEach(n=>{a[n]=i[n]}):this.$props.style=i}else Ln(t)?this.$.style.setProperty(t,r):(r=vl(this.$||Ke(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r));this.updateView()}removeAttr(t){Ln(t)?this.$.style.removeProperty(t):this.$props[t]=null,this.updateView()}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),Ch(this.id),this.removeUniChildren(),this.updateView()}appendChild(t){var r=(this.$holder||this.$).appendChild(t);return this.updateView(!0),r}insertBefore(t,r){var i=(this.$holder||this.$).insertBefore(t,r);return this.updateView(!0),i}}class ua extends be{constructor(t,r,i,a,n,o,s){super(t,r,i,a,n,o,s)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return zt(this.getRebuildFn(),Rn),super.setText(t)}appendChild(t){return zt(this.getRebuildFn(),Rn),super.appendChild(t)}insertBefore(t,r){return zt(this.getRebuildFn(),Rn),super.insertBefore(t,r)}removeUniChild(t){return zt(this.getRebuildFn(),Rn),super.removeUniChild(t)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function hE(e){for(;e&&e.pid>0;)if(e=Ke(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function Cl(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}var gE=["value","modelValue"];function yh(e){gE.forEach(t=>{if(ie(e,t)){var r="onUpdate:"+t;ie(e,r)||(e[r]=i=>e[t]=i)}})}class pE extends be{constructor(t,r,i,a){super(t,"uni-ad",vE,r,i,a)}}var t2="";class mE extends be{constructor(t,r,i,a){super(t,"uni-button",ky,r,i,a)}}class fa extends ii{constructor(t,r,i,a){super(t,r,i),this.insert(i,a)}}class _E extends fa{constructor(t,r,i){super(t,"uni-camera",r,i)}}var r2="";class bE extends be{constructor(t,r,i,a){super(t,"uni-canvas",Fy,r,i,a,"uni-canvas > div")}}var i2="";class wE extends be{constructor(t,r,i,a){super(t,"uni-checkbox",jy,r,i,a,".uni-checkbox-wrapper")}setText(t){Cl(this.$holder,"uni-checkbox-input",t)}}var a2="";class yE extends be{constructor(t,r,i,a){super(t,"uni-checkbox-group",Hy,r,i,a)}}var n2="",xE=0;function xh(e,t,r){var{position:i,hidden:a,onParentReady:n}=oi(e),o,s;n(u=>{var l=ee(()=>{var c={};for(var d in i){var _=i[d],x=parseFloat(_),E=parseFloat(u[d]);if(d==="top"||d==="left")_=Math.max(x,E)+"px";else if(d==="width"||d==="height"){var C=d==="width"?"left":"top",O=parseFloat(u[C]),M=parseFloat(i[C]),R=Math.max(O-M,0),U=Math.max(M+x-(O+E),0);_=Math.max(x-R-U,0)+"px"}c[d]=_}return c}),f=["borderRadius","borderColor","borderWidth","backgroundColor"],v=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],p=[],g={start:"left",end:"right"};function y(c){var d=getComputedStyle(e.value);return f.concat(v,p).forEach(_=>{c[_]=d[_]}),c}var m=ke(y({})),w=null;s=function(){w&&cancelAnimationFrame(w),w=requestAnimationFrame(()=>{w=null,y(m)})},window.addEventListener("updateview",s);function h(){var c={};for(var d in c){var _=c[d];(d==="top"||d==="left")&&(_=Math.min(parseFloat(_)-parseFloat(u[d]),0)+"px"),c[d]=_}return c}var b=ee(()=>{var c=h(),d=[{tag:"rect",position:c,rectStyles:{color:m.backgroundColor,radius:m.borderRadius,borderColor:m.borderColor,borderWidth:m.borderWidth}}];if("src"in r)r.src&&d.push({tag:"img",position:c,src:r.src});else{var _=parseFloat(m.lineHeight)-parseFloat(m.fontSize),x=parseFloat(c.width)-parseFloat(m.paddingLeft)-parseFloat(m.paddingRight);x=x<0?0:x;var E=parseFloat(c.height)-parseFloat(m.paddingTop)-_/2-parseFloat(m.paddingBottom);E=E<0?0:E,d.push({tag:"font",position:{top:"".concat(parseFloat(c.top)+parseFloat(m.paddingTop)+_/2,"px"),left:"".concat(parseFloat(c.left)+parseFloat(m.paddingLeft),"px"),width:"".concat(x,"px"),height:"".concat(E,"px")},textStyles:{align:g[m.textAlign]||m.textAlign,color:m.color,decoration:"none",lineSpacing:"".concat(_,"px"),margin:"0px",overflow:m.textOverflow,size:m.fontSize,verticalAlign:"top",weight:m.fontWeight,whiteSpace:m.whiteSpace},text:r.text})}return d});o=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(xE++),l.value,b.value),plus.webview.currentWebview().append(o),a.value&&o.hide(),o.addEventListener("click",()=>{t("click",{},{})}),W(()=>a.value,c=>{o[c?"hide":"show"]()}),W(()=>l.value,c=>{o.setStyle(c)},{deep:!0}),W(()=>b.value,()=>{o.reset(),o.draw(b.value)},{deep:!0})}),Ce(()=>{o&&o.close(),s&&window.removeEventListener("updateview",s)})}var SE="_doc/uniapp_temp/",EE={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function TE(e,t,r){var i=F(""),a;function n(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var s=e.src?st(e.src):"";s.indexOf("http://")===0||s.indexOf("https://")===0?(a=plus.downloader.createDownload(s,{filename:SE+"/download/"},(u,l)=>{l===200?o(u.filename):r("error",{},{errMsg:"error"})}),a.start()):s&&o(s)}function o(s){t.src=s,plus.io.getImageInfo({src:s,success:u=>{var{width:l,height:f}=u;e.autoSize&&(i.value="width:".concat(l,"px;height:").concat(f,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:l,height:f})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&n(),W(()=>e.src,n),Ce(()=>{a&&a.abort()}),i}var Sh=ve({name:"CoverImage",props:EE,emits:["click","load","error"],setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r),n=ke({src:""}),o=TE(e,n,a);return xh(i,a,n),()=>I("uni-cover-image",{ref:i,style:o.value},[I("div",{class:"uni-cover-image"},null)],4)}});class CE extends be{constructor(t,r,i,a){super(t,"uni-cover-image",Sh,r,i,a)}}var o2="",OE=ve({name:"CoverView",emits:["click"],setup(e,t){var{emit:r}=t,i=F(null),a=F(null),n=Le(i,r),o=ke({text:""});return xh(i,n,o),ia(()=>{var s=a.value.childNodes[0];o.text=s&&s instanceof Text?s.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))}),()=>I("uni-cover-view",{ref:i},[I("div",{ref:a,class:"uni-cover-view"},null,512)],512)}});class AE extends ua{constructor(t,r,i,a){super(t,"uni-cover-view",OE,r,i,a,".uni-cover-view")}}var s2="";class IE extends be{constructor(t,r,i,a){super(t,"uni-editor",px,r,i,a)}}var l2="";class kE extends be{constructor(t,r,i,a){super(t,"uni-form",Ey,r,i,a,"span")}}class ME extends fa{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var u2="";class RE extends be{constructor(t,r,i,a){super(t,"uni-icon",wx,r,i,a)}}var f2="";class LE extends be{constructor(t,r,i,a){super(t,"uni-image",Sx,r,i,a)}}var c2="";class PE extends be{constructor(t,r,i,a){super(t,"uni-input",Wx,r,i,a)}init(t){super.init(t),yh(this.$props)}}var d2="";class NE extends be{constructor(t,r,i,a){super(t,"uni-label",Ay,r,i,a)}}class DE extends fa{constructor(t,r,i){super(t,"uni-live-player",r,i)}}var v2="",BE={id:{type:String,default:""},url:{type:String,default:""},mode:{type:String,default:"SD"},muted:{type:[Boolean,String],default:!1},enableCamera:{type:[Boolean,String],default:!0},autoFocus:{type:[Boolean,String],default:!0},beauty:{type:[Number,String],default:0},whiteness:{type:[Number,String],default:0},aspect:{type:[String],default:"3:2"},minBitrate:{type:[Number],default:200}},Eh=["statechange","netstatus","error"],FE=ve({name:"LivePusher",props:BE,emits:Eh,setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r),n=F(null),o=qn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f;l(()=>{f=new plus.video.LivePusher("livePusher"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(f),Eh.forEach(p=>{f.addEventListener(p,g=>{a(p,{},g.detail)})}),W(()=>o.value,p=>f.setStyles(p),{deep:!0}),W(()=>s,p=>f.setStyles(p),{deep:!0}),W(()=>u.value,p=>{p||f.setStyles(s)})});var v=la();return sa((p,g)=>{f&&f[p](g)},v,!0),Ce(()=>{f&&f.close()}),()=>I("uni-live-pusher",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-live-pusher-container"},null,512)],8,["id"])}});class $E extends be{constructor(t,r,i,a){super(t,"uni-live-pusher",FE,r,i,a,".uni-live-pusher-slot")}}var h2="",zE=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function ca(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.slice(7,9);return{color:e.slice(0,7),opacity:t?Number("0x"+t)/255:1}}var UE={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},polygons:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},HE=ve({name:"Map",props:UE,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r),n=F(null),o=qn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f,{_addMarkers:v,_addMapLines:p,_addMapCircles:g,_addMapPolygons:y,_setMap:m}=WE(e,a);l(()=>{f=ce(plus.maps.create(Gt()+"-map-"+(e.id||Date.now()),Object.assign({},o.value,s,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[],__polygons__:[]}),f.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(f),u.value&&f.hide(),f.onclick=h=>{a("click",{},h)},f.onstatuschanged=h=>{a("regionchange",{},{})},m(f),v(e.markers),p(e.polyline),g(e.circles),y(e.polygons),W(()=>o.value,h=>f&&f.setStyles(h),{deep:!0}),W(()=>s,h=>f&&f.setStyles(h),{deep:!0}),W(u,h=>{f&&f[h?"hide":"show"]()}),W(()=>e.scale,h=>{f&&f.setZoom(parseInt(String(h)))}),W([()=>e.latitude,()=>e.longitude],h=>{var[b,c]=h;f&&f.setStyles({center:new plus.maps.Point(Number(b),Number(c))})}),W(()=>e.markers,h=>{v(h,!0)},{deep:!0}),W(()=>e.polyline,h=>{p(h)},{deep:!0}),W(()=>e.circles,h=>{g(h)},{deep:!0}),W(()=>e.polygons,h=>{y(h)},{deep:!0})});var w=ee(()=>e.controls.map(h=>{var b={position:"absolute"};return["top","left","width","height"].forEach(c=>{h.position[c]&&(b[c]=h.position[c]+"px")}),{id:h.id,iconPath:st(h.iconPath),position:b,clickable:h.clickable}}));return Ce(()=>{f&&(f.close(),m(null))}),()=>I("uni-map",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-map-container"},null,512),w.value.map((h,b)=>I(Sh,{key:b,src:h.iconPath,style:h.position,"auto-size":!0,onClick:()=>h.clickable&&a("controltap",{},{controlId:h.id})},null,8,["src","style","auto-size","onClick"])),I("div",{class:"uni-map-slot"},null)],8,["id"])}});function WE(e,t){var r;function i(y){var{longitude:m,latitude:w}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};!r||(r.setCenter(new plus.maps.Point(Number(m||e.longitude),Number(w||e.latitude))),y({errMsg:"moveToLocation:ok"}))}function a(y){!r||r.getCurrentCenter((m,w)=>{y({longitude:w.getLng(),latitude:w.getLat(),errMsg:"getCenterLocation:ok"})})}function n(y){if(!!r){var m=r.getBounds();y({southwest:m.getSouthWest(),northeast:m.getNorthEast(),errMsg:"getRegion:ok"})}}function o(y){!r||y({scale:r.getZoom(),errMsg:"getScale:ok"})}function s(y){if(!!r){var{id:m,latitude:w,longitude:h,iconPath:b,callout:c,label:d}=y;zE(h,w,_=>{var x,{latitude:E,longitude:C}=_.coord,O=new plus.maps.Marker(new plus.maps.Point(C,E));b&&O.setIcon(st(b)),d&&d.content&&O.setLabel(d.content);var M=void 0;c&&c.content&&(M=new plus.maps.Bubble(c.content)),M&&O.setBubble(M),(m||m===0)&&(O.onclick=R=>{t("markertap",{},{markerId:m})},M&&(M.onclick=()=>{t("callouttap",{},{markerId:m})})),(x=r)===null||x===void 0||x.addOverlay(O),r.__markers__.push(O)})}}function u(){if(!!r){var y=r.__markers__;y.forEach(m=>{var w;(w=r)===null||w===void 0||w.removeOverlay(m)}),r.__markers__=[]}}function l(y,m){m&&u(),y.forEach(w=>{s(w)})}function f(y){!r||(r.__lines__.length>0&&(r.__lines__.forEach(m=>{var w;(w=r)===null||w===void 0||w.removeOverlay(m)}),r.__lines__=[]),y.forEach(m=>{var w,{color:h,width:b}=m,c=m.points.map(x=>new plus.maps.Point(x.longitude,x.latitude)),d=new plus.maps.Polyline(c);if(h){var _=ca(h);d.setStrokeColor(_.color),d.setStrokeOpacity(_.opacity)}b&&d.setLineWidth(b),(w=r)===null||w===void 0||w.addOverlay(d),r.__lines__.push(d)}))}function v(y){!r||(r.__circles__.length>0&&(r.__circles__.forEach(m=>{var w;(w=r)===null||w===void 0||w.removeOverlay(m)}),r.__circles__=[]),y.forEach(m=>{var w,{latitude:h,longitude:b,color:c,fillColor:d,radius:_,strokeWidth:x}=m,E=new plus.maps.Circle(new plus.maps.Point(b,h),_);if(c){var C=ca(c);E.setStrokeColor(C.color),E.setStrokeOpacity(C.opacity)}if(d){var O=ca(d);E.setFillColor(O.color),E.setFillOpacity(O.opacity)}x&&E.setLineWidth(x),(w=r)===null||w===void 0||w.addOverlay(E),r.__circles__.push(E)}))}function p(y){if(!!r){var m=r.__polygons__;m.forEach(w=>{var h;(h=r)===null||h===void 0||h.removeOverlay(w)}),m.length=0,y.forEach(w=>{var h,{points:b,strokeWidth:c,strokeColor:d,fillColor:_}=w,x=[];b&&b.forEach(M=>{x.push(new plus.maps.Point(M.longitude,M.latitude))});var E=new plus.maps.Polygon(x);if(d){var C=ca(d);E.setStrokeColor(C.color),E.setStrokeOpacity(C.opacity)}if(_){var O=ca(_);E.setFillColor(O.color),E.setFillOpacity(O.opacity)}c&&E.setLineWidth(c),(h=r)===null||h===void 0||h.addOverlay(E),m.push(E)})}}var g={moveToLocation:i,getCenterLocation:a,getRegion:n,getScale:o};return sa((y,m,w)=>{g[y]&&g[y](w,m)},la(),!0),{_addMarkers:l,_addMapLines:f,_addMapCircles:v,_addMapPolygons:p,_setMap(y){r=y}}}class VE extends be{constructor(t,r,i,a){super(t,"uni-map",HE,r,i,a,".uni-map-slot")}}var g2="";class jE extends ua{constructor(t,r,i,a){super(t,"uni-movable-area",Xx,r,i,a)}}var p2="";class YE extends be{constructor(t,r,i,a){super(t,"uni-movable-view",Gx,r,i,a)}}var m2="";class qE extends be{constructor(t,r,i,a){super(t,"uni-navigator",aS,r,i,a,"uni-navigator")}}class XE extends fa{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class ZE extends fa{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var Ie={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},si={YEAR:"year",MONTH:"month",DAY:"day"};function Xn(e){return e>9?e:"0".concat(e)}function Zn(e,t){e=String(e||"");var r=new Date;if(t===Ie.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var a=e.split("-");a.length===3&&r.setFullYear(parseInt(a[0]),parseInt(String(parseFloat(a[1])-1)),parseInt(a[2]))}return r}function KE(e){if(e.mode===Ie.TIME)return"00:00";if(e.mode===Ie.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case si.YEAR:return t;case si.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function GE(e){if(e.mode===Ie.TIME)return"23:59";if(e.mode===Ie.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case si.YEAR:return t;case si.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var JE={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Ie.SELECTOR,validator(e){return Object.values(Ie).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:KE},end:{type:String,default:GE},disabled:{type:[Boolean,String],default:!1}},QE=ve({name:"Picker",props:JE,emits:["change","cancel","columnchange"],setup(e,t){var{emit:r}=t;Sm();var{t:i,getLocale:a}=Qe(),n=F(null),o=Le(n,r),s=F(null),u=F(null),l=()=>{var h=e.value;switch(e.mode){case Ie.MULTISELECTOR:{Array.isArray(h)||(h=[]),Array.isArray(s.value)||(s.value=[]);for(var b=s.value.length=Math.max(h.length,e.range.length),c=0;c<b;c++){var d=Number(h[c]),_=Number(s.value[c]),x=isNaN(d)?isNaN(_)?0:_:d;s.value.splice(c,1,x<0?0:x)}}break;case Ie.TIME:case Ie.DATE:s.value=String(h);break;default:{var E=Number(h);s.value=E<0?0:E;break}}},f=h=>{u.value&&u.value.sendMessage(h)},v=h=>{var b={event:"cancel"};u.value=cb({url:"__uniapppicker",data:h,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:c=>{var d=c.event;if(d==="created"){f(h);return}if(d==="columnchange"){delete c.event,o(d,{},c);return}b=c},onClose:()=>{u.value=null;var c=b.event;delete b.event,c&&o(c,{},b)}})},p=(h,b)=>{plus.nativeUI[e.mode===Ie.TIME?"pickTime":"pickDate"](c=>{var d=c.date;o("change",{},{value:e.mode===Ie.TIME?"".concat(Xn(d.getHours()),":").concat(Xn(d.getMinutes())):"".concat(d.getFullYear(),"-").concat(Xn(d.getMonth()+1),"-").concat(Xn(d.getDate()))})},()=>{o("cancel",{},{})},e.mode===Ie.TIME?{time:Zn(e.value,Ie.TIME),popover:b}:{date:Zn(e.value,Ie.DATE),minDate:Zn(e.start,Ie.DATE),maxDate:Zn(e.end,Ie.DATE),popover:b})},g=(h,b)=>{(h.mode===Ie.TIME||h.mode===Ie.DATE)&&!h.fields?p(h,b):(h.fields=Object.values(si).includes(h.fields)?h.fields:si.DAY,v(h))},y=h=>{if(!e.disabled){var b=h.currentTarget,c=b.getBoundingClientRect();g(Object.assign({},e,{value:s.value,locale:a(),messages:{done:i("uni.picker.done"),cancel:i("uni.picker.cancel")}}),{top:c.top+bh(),left:c.left,width:c.width,height:c.height})}},m=_e(kt,!1),w={submit:()=>[e.name,s.value],reset:()=>{switch(e.mode){case Ie.SELECTOR:s.value=0;break;case Ie.MULTISELECTOR:Array.isArray(e.value)&&(s.value=e.value.map(h=>0));break;case Ie.DATE:case Ie.TIME:s.value="";break}}};return m&&(m.addField(w),Ce(()=>m.removeField(w))),Object.keys(e).forEach(h=>{h!=="name"&&W(()=>e[h],b=>{var c={};c[h]=b,f(c)},{deep:!0})}),W(()=>e.value,l,{deep:!0}),l(),()=>I("uni-picker",{ref:n,onClick:y},[I("slot",null,null)],8,["onClick"])}});class eT extends be{constructor(t,r,i,a){super(t,"uni-picker",QE,r,i,a)}}var _2="";class tT extends ua{constructor(t,r,i,a){super(t,"uni-picker-view",sS,r,i,a,".uni-picker-view-wrapper")}}var b2="";class rT extends ua{constructor(t,r,i,a){super(t,"uni-picker-view-column",gS,r,i,a,".uni-picker-view-content")}}var w2="";class iT extends be{constructor(t,r,i,a){super(t,"uni-progress",_S,r,i,a)}}var y2="";class aT extends be{constructor(t,r,i,a){super(t,"uni-radio",ES,r,i,a,".uni-radio-wrapper")}setText(t){Cl(this.$holder,"uni-radio-input",t)}}var x2="";class nT extends be{constructor(t,r,i,a){super(t,"uni-radio-group",yS,r,i,a)}}var S2="";class oT extends be{constructor(t,r,i,a){super(t,"uni-rich-text",LS,r,i,a)}}var E2="";class sT extends be{constructor(t,r,i,a){super(t,"uni-scroll-view",NS,r,i,a,".uni-scroll-view-content")}setText(t){Cl(this.$holder,"uni-scroll-view-refresher",t)}}var T2="";class lT extends be{constructor(t,r,i,a){super(t,"uni-slider",$S,r,i,a)}}var C2="";class uT extends ua{constructor(t,r,i,a){super(t,"uni-swiper",YS,r,i,a,".uni-swiper-slide-frame")}}var O2="";class fT extends be{constructor(t,r,i,a){super(t,"uni-swiper-item",XS,r,i,a)}}var A2="";class cT extends be{constructor(t,r,i,a){super(t,"uni-switch",KS,r,i,a)}}var I2="";class dT extends be{constructor(t,r,i,a){super(t,"uni-textarea",rE,r,i,a)}init(t){super.init(t),yh(this.$props)}}var k2="",vT={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},vslideGesture:{type:[Boolean,String],default:!1},vslideGestureInFullscreen:{type:[Boolean,String],default:!1},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},Th=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],hT=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],gT=ve({name:"Video",props:vT,emits:Th,setup(e,t){var{emit:r}=t,i=F(null),a=Le(i,r),n=F(null),o=qn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f;l(()=>{f=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(f),u.value&&f.hide(),Th.forEach(p=>{f.addEventListener(p,g=>{a(p,{},g.detail)})}),W(()=>o.value,p=>f.setStyles(p),{deep:!0}),W(()=>s,p=>f.setStyles(p),{deep:!0}),W(()=>u.value,p=>{f[p?"hide":"show"](),p||f.setStyles(s)})});var v=la();return sa((p,g)=>{if(hT.includes(p)){var y;switch(p){case"seek":y=g.position;break;case"sendDanmu":y=g;break;case"playbackRate":y=g.rate;break;case"requestFullScreen":y=g.direction;break}f&&f[p](y)}},v,!0),Ce(()=>{f&&f.close()}),()=>I("uni-video",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-video-container"},null,512),I("div",{class:"uni-video-slot"},null)],8,["id"])}});class pT extends be{constructor(t,r,i,a){super(t,"uni-video",gT,r,i,a,".uni-video-slot")}}var M2="",mT={src:{type:String,default:""},updateTitle:{type:Boolean,default:!0},webviewStyles:{type:Object,default(){return{}}}},nt,_T=e=>{var{htmlId:t,src:r,webviewStyles:i,props:a}=e,n=plus.webview.currentWebview(),o=ce(i,{"uni-app":"none",isUniH5:!0}),s=n.getTitleNView();if(s){var u=yu+parseFloat(o.top||"0");plus.navigator.isImmersedStatusbar()&&(u+=_h()),o.top=String(u),o.bottom=o.bottom||"0"}nt=plus.webview.create(r,t,o),s&&nt.addEventListener("titleUpdate",function(){var l;if(!!a.updateTitle){var f=(l=nt)===null||l===void 0?void 0:l.getTitle();n.setStyle({titleNView:{titleText:!f||f==="null"?" ":f}})}}),plus.webview.currentWebview().append(nt)},bT=()=>{var e;plus.webview.currentWebview().remove(nt),(e=nt)===null||e===void 0||e.close("none"),nt=null},wT=ve({name:"WebView",props:mT,setup(e){var t=Gt(),r=F(null),{hidden:i,onParentReady:a}=oi(r),n=ee(()=>e.webviewStyles);return a(()=>{var o,s=F(yb+t);_T({htmlId:s.value,src:st(e.src),webviewStyles:n.value,props:e}),UniViewJSBridge.publishHandler(bb,{},t),i.value&&((o=nt)===null||o===void 0||o.hide())}),Ce(()=>{bT(),UniViewJSBridge.publishHandler(wb,{},t)}),W(()=>e.src,o=>{var s,u=st(o)||"";if(!!u){if(/^(http|https):\/\//.test(u)&&e.webviewStyles.progress){var l;(l=nt)===null||l===void 0||l.setStyle({progress:{color:e.webviewStyles.progress.color}})}(s=nt)===null||s===void 0||s.loadURL(u)}}),W(n,o=>{var s;(s=nt)===null||s===void 0||s.setStyle(o)}),W(i,o=>{nt&&nt[o?"hide":"show"]()}),()=>I("uni-web-view",{ref:r},null,512)}});class yT extends be{constructor(t,r,i,a){super(t,"uni-web-view",wT,r,i,a)}}var xT={"#text":sE,"#comment":my,VIEW:cE,IMAGE:LE,TEXT:oE,NAVIGATOR:qE,FORM:kE,BUTTON:mE,INPUT:PE,LABEL:NE,RADIO:aT,CHECKBOX:wE,"CHECKBOX-GROUP":yE,AD:pE,CAMERA:_E,CANVAS:bE,"COVER-IMAGE":CE,"COVER-VIEW":AE,EDITOR:IE,"FUNCTIONAL-PAGE-NAVIGATOR":ME,ICON:RE,"RADIO-GROUP":nT,"LIVE-PLAYER":DE,"LIVE-PUSHER":$E,MAP:VE,"MOVABLE-AREA":jE,"MOVABLE-VIEW":YE,"OFFICIAL-ACCOUNT":XE,"OPEN-DATA":ZE,PICKER:eT,"PICKER-VIEW":tT,"PICKER-VIEW-COLUMN":rT,PROGRESS:iT,"RICH-TEXT":oT,"SCROLL-VIEW":sT,SLIDER:lT,SWIPER:uT,"SWIPER-ITEM":fT,SWITCH:cT,TEXTAREA:dT,VIDEO:pT,"WEB-VIEW":yT};function ST(e,t){return()=>w_(e,t)}var Kn=new Map;function Ke(e){return Kn.get(e)}function ET(e){return Kn.get(e)}function Ch(e){return Kn.delete(e)}function Oh(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},n;if(e===0)n=new ii(e,t,r,document.createElement(t));else{var o=xT[t];o?n=new o(e,r,i,a):n=new Sv(e,document.createElement(t),r,i,a)}return Kn.set(e,n),n}var Ol=[],Ah=!1;function Ih(e){if(Ah)return e();Ol.push(e)}function Al(){Ah=!0,Ol.forEach(e=>{try{e()}catch(t){console.error(t)}}),Ol.length=0}function R2(){}function kh(e){var{css:t,route:r,platform:i,pixelRatio:a,windowWidth:n,disableScroll:o,statusbarHeight:s,windowTop:u,windowBottom:l}=e;TT(r),CT(i,a,n),OT();var f=plus.webview.currentWebview().id;window.__id__=f,document.title="".concat(r,"[").concat(f,"]"),IT(s,u,l),o&&document.addEventListener("touchmove",sb),t?AT(r):Al()}function TT(e){window.__PAGE_INFO__={route:e}}function CT(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function OT(){Oh(0,"div",-1,-1).$=document.getElementById("app")}function AT(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Al,t.onerror=Al,document.head.appendChild(t)}function IT(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};K_(i)}var Mh=!1;function kT(e){if(!Mh){Mh=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(Mp,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(Rp)}};requestAnimationFrame(()=>document.addEventListener("scroll",lb(t)))}}function MT(e,t){var{scrollTop:r,selector:i,duration:a}=e;$p(i||r||0,a),t()}function RT(e){var t=e[0];t[0]===ku?LT(t):Ih(()=>PT(e))}function LT(e){return kh(e[1])}function PT(e){var t=e[0],r=K1(t[0]===_b?t[1]:[]);e.forEach(i=>{switch(i[0]){case ku:return kh(i[1]);case qp:return void 0;case Xp:var a=i[3];return Oh(i[1],r(i[2]),a===-1?0:a,i[4],sv(r,i[5]));case Zp:return Ke(i[1]).insert(i[2],i[3],sv(r,i[4]));case Kp:return Ke(i[1]).remove();case Gp:return Ke(i[1]).setAttr(r(i[2]),r(i[3]));case Jp:return Ke(i[1]).removeAttr(r(i[2]));case Qp:return Ke(i[1]).addEvent(r(i[2]),i[3]);case rm:return Ke(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case em:return Ke(i[1]).removeEvent(r(i[2]));case tm:return Ke(i[1]).setText(r(i[2]));case im:return kT(i[1])}}),ey()}function NT(){var{subscribe:e}=UniViewJSBridge;e(bc,RT),e(xb,t=>Qe().setLocale(t)),e(Is,DT)}function DT(){UniViewJSBridge.publishHandler(Is)}function Rh(e){return window.__$__(e).$}function BT(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function Il(e,t){var r={},{top:i}=Z_();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Lo(e)),t.rect||t.size){var a=e.getBoundingClientRect();t.rect&&(r.left=a.left,r.right=a.right,r.top=a.top-i,r.bottom=a.bottom-i),t.size&&(r.width=a.width,r.height=a.height)}if(Array.isArray(t.properties)&&t.properties.forEach(s=>{s=s.replace(/-([a-z])/g,function(u,l){return l.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var n=e.children[0].children[0];r.scrollLeft=n.scrollLeft,r.scrollTop=n.scrollTop,r.scrollHeight=n.scrollHeight,r.scrollWidth=n.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var o=getComputedStyle(e);t.computedStyle.forEach(s=>{r[s]=o[s]})}return t.context&&(r.contextInfo=aE(e)),r}function FT(e,t){return e?window.__$__(e).$:t.$el}function Lh(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var a=this.parentElement.querySelectorAll(i),n=a.length;--n>=0&&a.item(n)!==this;);return n>-1};return r.call(e,t)}function $T(e,t,r,i,a){var n=FT(t,e),o=n.parentElement;if(!o)return i?null:[];var{nodeType:s}=n,u=s===3||s===8;if(i){var l=u?o.querySelector(r):Lh(n,r)?n:n.querySelector(r);return l?Il(l,a):null}else{var f=[],v=(u?o:n).querySelectorAll(r);return v&&v.length&&[].forEach.call(v,p=>{f.push(Il(p,a))}),!u&&Lh(n,r)&&f.unshift(Il(n,a)),f}}function zT(e,t,r){var i=[];t.forEach(a=>{var{component:n,selector:o,single:s,fields:u}=a;n===null?i.push(BT(u)):i.push($T(e,n,o,s,u))}),r(i)}function UT(e,t){var{pageStyle:r,rootFontSize:i}=t;if(r){var a=document.querySelector("uni-page-body")||document.body;a.setAttribute("style",r)}i&&document.documentElement.style.fontSize!==i&&(document.documentElement.style.fontSize=i)}function HT(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=Rh(i);(o.__io||(o.__io={}))[r]=H1(o,a,n)}function WT(e,t){var{reqId:r,component:i}=e,a=Rh(i),n=a.__io&&a.__io[r];n&&(n.disconnect(),delete a.__io[r])}var kl={},Ml={};function VT(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Ph(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Ph(i),": ").concat(e[i],")"));var a=t.join(" and ");return a}function Ph(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function jT(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=kl[r]=window.matchMedia(VT(a)),s=Ml[r]=u=>n(u.matches);s(o),o.addListener(s)}function YT(e,t){var{reqId:r,component:i}=e,a=Ml[r],n=kl[r];n&&(n.removeListener(a),delete Ml[r],delete kl[r])}function qT(e,t){var{family:r,source:i,desc:a}=e;Fp(r,i,a).then(()=>{t()}).catch(n=>{t(n.toString())})}var XT={$el:document.body};function ZT(){var e=Gt();Am(e,t=>function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];Ih(()=>{t.apply(null,i)})}),wt(e,"requestComponentInfo",(t,r)=>{zT(XT,t.reqs,r)}),wt(e,"addIntersectionObserver",t=>{HT(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),wt(e,"removeIntersectionObserver",t=>{WT(t)}),wt(e,"addMediaQueryObserver",t=>{jT(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),wt(e,"removeMediaQueryObserver",t=>{YT(t)}),wt(e,$1,MT),wt(e,F1,qT),wt(e,B1,t=>{UT(null,t)})}window.uni=X1,window.UniViewJSBridge=wc,window.rpx2px=av,window.normalizeStyleName=hv,window.normalizeStyleValue=fl,window.__$__=Ke,window.__f__=Wp;function Nh(){Bm(),ZT(),NT(),Z1(),wc.publishHandler(Is)}typeof plus!="undefined"?Nh():document.addEventListener("plusready",Nh)}); +(function(Gn){typeof define=="function"&&define.amd?define(Gn):Gn()})(function(){"use strict";var Gn="",KT="",GT="",Lr={exports:{}},ha={exports:{}},ga={exports:{}},$h=ga.exports={version:"2.6.12"};typeof __e=="number"&&(__e=$h);var pa={exports:{}};pa.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")(),typeof __g=="number"&&(__g=window);var zh=ga.exports,Ll="__core-js_shared__",Pl=window[Ll]||(window[Ll]={});(ha.exports=function(e,t){return Pl[e]||(Pl[e]=t!==void 0?t:{})})("versions",[]).push({version:zh.version,mode:"window",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"});var Uh=0,Hh=Math.random(),Jn=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++Uh+Hh).toString(36))},Qn=ha.exports("wks"),Wh=Jn,eo=pa.exports.Symbol,Nl=typeof eo=="function",Vh=Lr.exports=function(e){return Qn[e]||(Qn[e]=Nl&&eo[e]||(Nl?eo:Wh)("Symbol."+e))};Vh.store=Qn;var ma={},to=function(e){return typeof e=="object"?e!==null:typeof e=="function"},jh=to,ro=function(e){if(!jh(e))throw TypeError(e+" is not an object!");return e},_a=function(e){try{return!!e()}catch(t){return!0}},ui=!_a(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Dl=to,io=pa.exports.document,Yh=Dl(io)&&Dl(io.createElement),Bl=function(e){return Yh?io.createElement(e):{}},qh=!ui&&!_a(function(){return Object.defineProperty(Bl("div"),"a",{get:function(){return 7}}).a!=7}),ba=to,Xh=function(e,t){if(!ba(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!ba(i=r.call(e))||typeof(r=e.valueOf)=="function"&&!ba(i=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ba(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")},Fl=ro,Zh=qh,Kh=Xh,Gh=Object.defineProperty;ma.f=ui?Object.defineProperty:function(t,r,i){if(Fl(t),r=Kh(r,!0),Fl(i),Zh)try{return Gh(t,r,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[r]=i.value),t};var $l=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},Jh=ma,Qh=$l,Pr=ui?function(e,t,r){return Jh.f(e,t,Qh(1,r))}:function(e,t,r){return e[t]=r,e},ao=Lr.exports("unscopables"),no=Array.prototype;no[ao]==null&&Pr(no,ao,{});var eg=function(e){no[ao][e]=!0},tg=function(e,t){return{value:t,done:!!e}},oo={},rg={}.toString,ig=function(e){return rg.call(e).slice(8,-1)},ag=ig,ng=Object("z").propertyIsEnumerable(0)?Object:function(e){return ag(e)=="String"?e.split(""):Object(e)},zl=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},og=ng,sg=zl,wa=function(e){return og(sg(e))},ya={exports:{}},lg={}.hasOwnProperty,xa=function(e,t){return lg.call(e,t)},ug=ha.exports("native-function-to-string",Function.toString),Sa=Pr,Ul=xa,so=Jn("src"),lo=ug,Hl="toString",fg=(""+lo).split(Hl);ga.exports.inspectSource=function(e){return lo.call(e)},(ya.exports=function(e,t,r,i){var a=typeof r=="function";a&&(Ul(r,"name")||Sa(r,"name",t)),e[t]!==r&&(a&&(Ul(r,so)||Sa(r,so,e[t]?""+e[t]:fg.join(String(t)))),e===window?e[t]=r:i?e[t]?e[t]=r:Sa(e,t,r):(delete e[t],Sa(e,t,r)))})(Function.prototype,Hl,function(){return typeof this=="function"&&this[so]||lo.call(this)});var Wl=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},cg=Wl,vg=function(e,t,r){if(cg(e),t===void 0)return e;switch(r){case 1:return function(i){return e.call(t,i)};case 2:return function(i,a){return e.call(t,i,a)};case 3:return function(i,a,n){return e.call(t,i,a,n)}}return function(){return e.apply(t,arguments)}},Ea=ga.exports,dg=Pr,hg=ya.exports,Vl=vg,uo="prototype",je=function(e,t,r){var i=e&je.F,a=e&je.G,n=e&je.S,o=e&je.P,s=e&je.B,u=a?window:n?window[t]||(window[t]={}):(window[t]||{})[uo],l=a?Ea:Ea[t]||(Ea[t]={}),f=l[uo]||(l[uo]={}),v,g,h,y;a&&(r=t);for(v in r)g=!i&&u&&u[v]!==void 0,h=(g?u:r)[v],y=s&&g?Vl(h,window):o&&typeof h=="function"?Vl(Function.call,h):h,u&&hg(u,v,h,e&je.U),l[v]!=h&&dg(l,v,y),o&&f[v]!=h&&(f[v]=h)};window.core=Ea,je.F=1,je.G=2,je.S=4,je.P=8,je.B=16,je.W=32,je.U=64,je.R=128;var fo=je,gg=Math.ceil,pg=Math.floor,jl=function(e){return isNaN(e=+e)?0:(e>0?pg:gg)(e)},mg=jl,_g=Math.min,bg=function(e){return e>0?_g(mg(e),9007199254740991):0},wg=jl,yg=Math.max,xg=Math.min,Sg=function(e,t){return e=wg(e),e<0?yg(e+t,0):xg(e,t)},Eg=wa,Tg=bg,Cg=Sg,Og=function(e){return function(t,r,i){var a=Eg(t),n=Tg(a.length),o=Cg(i,n),s;if(e&&r!=r){for(;n>o;)if(s=a[o++],s!=s)return!0}else for(;n>o;o++)if((e||o in a)&&a[o]===r)return e||o||0;return!e&&-1}},Yl=ha.exports("keys"),Ag=Jn,co=function(e){return Yl[e]||(Yl[e]=Ag(e))},ql=xa,Ig=wa,kg=Og(!1),Mg=co("IE_PROTO"),Rg=function(e,t){var r=Ig(e),i=0,a=[],n;for(n in r)n!=Mg&&ql(r,n)&&a.push(n);for(;t.length>i;)ql(r,n=t[i++])&&(~kg(a,n)||a.push(n));return a},Xl="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Lg=Rg,Pg=Xl,vo=Object.keys||function(t){return Lg(t,Pg)},Ng=ma,Dg=ro,Bg=vo,Fg=ui?Object.defineProperties:function(t,r){Dg(t);for(var i=Bg(r),a=i.length,n=0,o;a>n;)Ng.f(t,o=i[n++],r[o]);return t},Zl=pa.exports.document,$g=Zl&&Zl.documentElement,zg=ro,Ug=Fg,Kl=Xl,Hg=co("IE_PROTO"),ho=function(){},go="prototype",Ta=function(){var e=Bl("iframe"),t=Kl.length,r="<",i=">",a;for(e.style.display="none",$g.appendChild(e),e.src="javascript:",a=e.contentWindow.document,a.open(),a.write(r+"script"+i+"document.F=Object"+r+"/script"+i),a.close(),Ta=a.F;t--;)delete Ta[go][Kl[t]];return Ta()},Wg=Object.create||function(t,r){var i;return t!==null?(ho[go]=zg(t),i=new ho,ho[go]=null,i[Hg]=t):i=Ta(),r===void 0?i:Ug(i,r)},Vg=ma.f,jg=xa,Gl=Lr.exports("toStringTag"),Jl=function(e,t,r){e&&!jg(e=r?e:e.prototype,Gl)&&Vg(e,Gl,{configurable:!0,value:t})},Yg=Wg,qg=$l,Xg=Jl,Ql={};Pr(Ql,Lr.exports("iterator"),function(){return this});var Zg=function(e,t,r){e.prototype=Yg(Ql,{next:qg(1,r)}),Xg(e,t+" Iterator")},Kg=zl,eu=function(e){return Object(Kg(e))},Gg=xa,Jg=eu,tu=co("IE_PROTO"),Qg=Object.prototype,ep=Object.getPrototypeOf||function(e){return e=Jg(e),Gg(e,tu)?e[tu]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Qg:null},po=fo,tp=ya.exports,ru=Pr,iu=oo,rp=Zg,ip=Jl,ap=ep,fi=Lr.exports("iterator"),mo=!([].keys&&"next"in[].keys()),np="@@iterator",au="keys",Ca="values",nu=function(){return this},op=function(e,t,r,i,a,n,o){rp(r,t,i);var s=function(c){if(!mo&&c in v)return v[c];switch(c){case au:return function(){return new r(this,c)};case Ca:return function(){return new r(this,c)}}return function(){return new r(this,c)}},u=t+" Iterator",l=a==Ca,f=!1,v=e.prototype,g=v[fi]||v[np]||a&&v[a],h=g||s(a),y=a?l?s("entries"):h:void 0,m=t=="Array"&&v.entries||g,w,p,b;if(m&&(b=ap(m.call(new e)),b!==Object.prototype&&b.next&&(ip(b,u,!0),typeof b[fi]!="function"&&ru(b,fi,nu))),l&&g&&g.name!==Ca&&(f=!0,h=function(){return g.call(this)}),(mo||f||!v[fi])&&ru(v,fi,h),iu[t]=h,iu[u]=nu,a)if(w={values:l?h:s(Ca),keys:n?h:s(au),entries:y},o)for(p in w)p in v||tp(v,p,w[p]);else po(po.P+po.F*(mo||f),t,w);return w},_o=eg,Oa=tg,ou=oo,sp=wa,lp=op(Array,"Array",function(e,t){this._t=sp(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,Oa(1)):t=="keys"?Oa(0,r):t=="values"?Oa(0,e[r]):Oa(0,[r,e[r]])},"values");ou.Arguments=ou.Array,_o("keys"),_o("values"),_o("entries");for(var su=lp,up=vo,fp=ya.exports,lu=Pr,uu=oo,fu=Lr.exports,cu=fu("iterator"),vu=fu("toStringTag"),du=uu.Array,hu={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},gu=up(hu),bo=0;bo<gu.length;bo++){var Aa=gu[bo],cp=hu[Aa],pu=window[Aa],ur=pu&&pu.prototype,Ia;if(ur&&(ur[cu]||lu(ur,cu,du),ur[vu]||lu(ur,vu,Aa),uu[Aa]=du,cp))for(Ia in su)ur[Ia]||fp(ur,Ia,su[Ia],!0)}function ka(e,t){for(var r=Object.create(null),i=e.split(","),a=0;a<i.length;a++)r[i[a]]=!0;return t?n=>!!r[n.toLowerCase()]:n=>!!r[n]}var vp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dp=ka(vp);function mu(e){return!!e||e===""}var hp=ka("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function wo(e){if(ne(e)){for(var t={},r=0;r<e.length;r++){var i=e[r],a=Ee(i)?_u(i):wo(i);if(a)for(var n in a)t[n]=a[n]}return t}else{if(Ee(e))return e;if(We(e))return e}}var gp=/;(?![^(]*\))/g,pp=/:(.+)/;function _u(e){var t={};return e.split(gp).forEach(r=>{if(r){var i=r.split(pp);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function mp(e){var t="";if(!e||Ee(e))return t;for(var r in e){var i=e[r],a=r.startsWith("--")?r:Je(r);(Ee(i)||typeof i=="number"&&hp(a))&&(t+="".concat(a,":").concat(i,";"))}return t}function yo(e){var t="";if(Ee(e))t=e;else if(ne(e))for(var r=0;r<e.length;r++){var i=yo(e[r]);i&&(t+=i+" ")}else if(We(e))for(var a in e)e[a]&&(t+=a+" ");return t.trim()}var Se={},ci=[],mt=()=>{},_p=()=>!1,bp=/^on[^a-z]/,Ma=e=>bp.test(e),xo=e=>e.startsWith("onUpdate:"),ce=Object.assign,So=(e,t)=>{var r=e.indexOf(t);r>-1&&e.splice(r,1)},wp=Object.prototype.hasOwnProperty,ie=(e,t)=>wp.call(e,t),ne=Array.isArray,vi=e=>di(e)==="[object Map]",yp=e=>di(e)==="[object Set]",oe=e=>typeof e=="function",Ee=e=>typeof e=="string",Eo=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",bu=e=>We(e)&&oe(e.then)&&oe(e.catch),xp=Object.prototype.toString,di=e=>xp.call(e),To=e=>di(e).slice(8,-1),_t=e=>di(e)==="[object Object]",Co=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ra=ka(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),La=e=>{var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}},Sp=/-(\w)/g,Ht=La(e=>e.replace(Sp,(t,r)=>r?r.toUpperCase():"")),Ep=/\B([A-Z])/g,Je=La(e=>e.replace(Ep,"-$1").toLowerCase()),Oo=La(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ao=La(e=>e?"on".concat(Oo(e)):""),hi=(e,t)=>!Object.is(e,t),Io=(e,t)=>{for(var r=0;r<e.length;r++)e[r](t)},Pa=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Tp=e=>{var t=parseFloat(e);return isNaN(t)?e:t},wu,Cp=()=>wu||(wu=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{}),gi=` +`,yu=44,Na="#007aff",Op=/^([a-z-]+:)?\/\//i,Ap=/^data:.*,.*/,xu="wxs://",Su="json://",Ip="wxsModules",kp="renderjsModules",Mp="onPageScroll",Rp="onReachBottom",Lp="onWxsInvokeCallMethod",ko=0;function Mo(e){var t=Date.now(),r=ko?t-ko:0;ko=t;for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return"[".concat(t,"][").concat(r,"ms][").concat(e,"]\uFF1A").concat(a.map(o=>JSON.stringify(o)).join(" "))}function Pp(e){var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}}function Np(e){return Pp(e)}function Dp(e){return e.indexOf("/")===0}function Ro(e){return Dp(e)?e:"/"+e}function pi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r;return function(){if(e){for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];r=e.apply(t,a),e=null}return r}}function Eu(e,t){if(!!Ee(t)){t=t.replace(/\[(\d+)\]/g,".$1");var r=t.split("."),i=r[0];return e||(e={}),r.length===1?e[i]:Eu(e[i],r.slice(1).join("."))}}function Tu(e){return Ht(e.substring(5))}var Bp=pi(()=>{var e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(i,a){if(i.startsWith("data-")&&this.tagName.startsWith("UNI-")){var n=this.__uniDataset||(this.__uniDataset={});n[Tu(i)]=a}t.call(this,i,a)};var r=e.removeAttribute;e.removeAttribute=function(i){this.__uniDataset&&i.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[Tu(i)],r.call(this,i)}});function Lo(e){return ce({},e.dataset,e.__uniDataset)}function mi(e){return{passive:e}}function Po(e){var{id:t,offsetTop:r,offsetLeft:i}=e;return{id:t,dataset:Lo(e),offsetTop:r,offsetLeft:i}}function Fp(e,t,r){var i=document.fonts;if(i){var a=new FontFace(e,t,r);return a.load().then(()=>{i.add&&i.add(a)})}return new Promise(n=>{var o=document.createElement("style"),s=[];if(r){var{style:u,weight:l,stretch:f,unicodeRange:v,variant:g,featureSettings:h}=r;u&&s.push("font-style:".concat(u)),l&&s.push("font-weight:".concat(l)),f&&s.push("font-stretch:".concat(f)),v&&s.push("unicode-range:".concat(v)),g&&s.push("font-variant:".concat(g)),h&&s.push("font-feature-settings:".concat(h))}o.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(s.join(";"),"}"),document.head.appendChild(o),n()})}function $p(e,t,r){if(Ee(e)){var i=document.querySelector(e);if(i){var{height:a,top:n}=i.getBoundingClientRect();e=n+window.pageYOffset,r&&(e-=a)}}e<0&&(e=0);var o=document.documentElement,{clientHeight:s,scrollHeight:u}=o;if(e=Math.min(e,u-s),t===0){o.scrollTop=document.body.scrollTop=e;return}if(window.scrollY!==e){var l=f=>{if(f<=0){window.scrollTo(0,e);return}var v=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+v/f*10),l(f-10)})};l(t)}}function zp(){return typeof __channelId__=="string"&&__channelId__}function Up(e,t){switch(To(t)){case"Function":return"function() { [native code] }";default:return t}}function Hp(e,t,r){if(zp())return r.push(t.replace("at ","uni-app:///")),console[e].apply(console,r);var i=r.map(function(a){var n=di(a).toLowerCase();if(["[object object]","[object array]","[object module]"].indexOf(n)!==-1)try{a="---BEGIN:JSON---"+JSON.stringify(a,Up)+"---END:JSON---"}catch(s){a=n}else if(a===null)a="---NULL---";else if(a===void 0)a="---UNDEFINED---";else{var o=To(a).toUpperCase();o==="NUMBER"||o==="BOOLEAN"?a="---BEGIN:"+o+"---"+a+"---END:"+o+"---":a=String(a)}return a});return i.join("---COMMA---")+" "+t}function Wp(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var n=Hp(e,t,i);n&&console[e](n)}function Nr(e){if(typeof e=="function"){if(window.plus)return e();document.addEventListener("plusready",e)}}function Vp(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(Oo(Ht(e)))}var Cu=/(?:Once|Passive|Capture)$/;function No(e){var t;if(Cu.test(e)){t={};for(var r;r=e.match(Cu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Je(e.slice(2)),t]}var Do=(()=>({stop:1,prevent:1<<1,self:1<<2}))(),Ou="class",Bo="style",jp="innerHTML",Yp="textContent",Da=".vShow",Au=".vOwnerId",Iu=".vRenderjs",Fo="change:",ku=1,qp=2,Xp=3,Zp=4,Kp=5,Gp=6,Jp=7,Qp=8,em=9,tm=10,rm=12,im=15,am=20;function nm(e,t,r){var{clearTimeout:i,setTimeout:a}=r,n,o=function(){i(n);var s=()=>e.apply(this,arguments);n=a(s,t)};return o.cancel=function(){i(n)},o}var Mu=function(){};Mu.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function a(){i.off(e,a),t.apply(r,arguments)}return a._=t,this.on(e,a,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,a=r.length;for(i;i<a;i++)r[i].fn.apply(r[i].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),i=r[e],a=[];if(i&&t)for(var n=0,o=i.length;n<o;n++)i[n].fn!==t&&i[n].fn._!==t&&a.push(i[n]);return a.length?r[e]=a:delete r[e],this}};var Ru=Mu,om=Array.isArray,sm=e=>e!==null&&typeof e=="object",lm=["{","}"];class um{constructor(){this._caches=Object.create(null)}interpolate(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lm;if(!r)return[t];var a=this._caches[t];return a||(a=vm(t,i),this._caches[t]=a),dm(a,r)}}var fm=/^(?:\d)+/,cm=/^(?:\w)+/;function vm(e,t){for(var[r,i]=t,a=[],n=0,o="";n<e.length;){var s=e[n++];if(s===r){o&&a.push({type:"text",value:o}),o="";var u="";for(s=e[n++];s!==void 0&&s!==i;)u+=s,s=e[n++];var l=s===i,f=fm.test(u)?"list":l&&cm.test(u)?"named":"unknown";a.push({value:u,type:f})}else o+=s}return o&&a.push({type:"text",value:o}),a}function dm(e,t){var r=[],i=0,a=om(t)?"list":sm(t)?"named":"unknown";if(a==="unknown")return r;for(;i<e.length;){var n=e[i];switch(n.type){case"text":r.push(n.value);break;case"list":r.push(t[parseInt(n.value,10)]);break;case"named":a==="named"&&r.push(t[n.value]);break}i++}return r}var _i="zh-Hans",Ba="zh-Hant",Wt="en",$o="fr",zo="es",hm=Object.prototype.hasOwnProperty,Lu=(e,t)=>hm.call(e,t),gm=new um;function pm(e,t){return!!t.find(r=>e.indexOf(r)!==-1)}function mm(e,t){return t.find(r=>e.indexOf(r)===0)}function Pu(e,t){if(!!e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return _i;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?_i:e.indexOf("-hant")>-1||pm(e,["-tw","-hk","-mo","-cht"])?Ba:_i;var r=mm(e,[Wt,$o,zo]);if(r)return r}}class _m{constructor(t){var{locale:r,fallbackLocale:i,messages:a,watcher:n,formater:o}=t;this.locale=Wt,this.fallbackLocale=Wt,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=o||gm,this.messages=a||{},this.setLocale(r||Wt),n&&this.watchLocale(n)}setLocale(t){var r=this.locale;this.locale=Pu(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach(i=>{i(this.locale,r)})}getLocale(){return this.locale}watchLocale(t){var r=this.watchers.push(t)-1;return()=>{this.watchers.splice(r,1)}}add(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=this.messages[t];a?i?Object.assign(a,r):Object.keys(r).forEach(n=>{Lu(a,n)||(a[n]=r[n])}):this.messages[t]=r}f(t,r,i){return this.formater.interpolate(t,r,i).join("")}t(t,r,i){var a=this.message;return typeof r=="string"?(r=Pu(r,this.messages),r&&(a=this.messages[r])):i=r,Lu(a,t)?this.formater.interpolate(a[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}function bm(e,t){e.$watchLocale?e.$watchLocale(r=>{t.setLocale(r)}):e.$watch(()=>e.$locale,r=>{t.setLocale(r)})}function wm(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof window!="undefined"&&window.getLocale?window.getLocale():Wt}function ym(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;typeof e!="string"&&([e,t]=[t,e]),typeof e!="string"&&(e=wm()),typeof r!="string"&&(r=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||Wt);var a=new _m({locale:e,fallbackLocale:r,messages:t,watcher:i}),n=(o,s)=>{if(typeof getApp!="function")n=function(l,f){return a.t(l,f)};else{var u=!1;n=function(l,f){var v=getApp().$vm;return v&&(v.$locale,u||(u=!0,bm(v,a))),a.t(l,f)}}return n(o,s)};return{i18n:a,f(o,s,u){return a.f(o,s,u)},t(o,s){return n(o,s)},add(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.add(o,s,u)},watch(o){return a.watchLocale(o)},getLocale(){return a.getLocale()},setLocale(o){return a.setLocale(o)}}}var xm=pi(()=>typeof __uniConfig!="undefined"&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length),bi;function Qe(){if(!bi){var e;if(typeof getApp=="function"?e=weex.requireModule("plus").getLanguage():e=plus.webview.currentWebview().getStyle().locale,bi=ym(e),xm()){var t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(r=>bi.add(r,__uniConfig.locales[r])),bi.setLocale(e)}}return bi}function bt(e,t,r){return t.reduce((i,a,n)=>(i[e+a]=r[n],i),{})}var Sm=pi(()=>{var e="uni.picker.",t=["done","cancel"];Qe().add(Wt,bt(e,t,["Done","Cancel"]),!1),Qe().add(zo,bt(e,t,["OK","Cancelar"]),!1),Qe().add($o,bt(e,t,["OK","Annuler"]),!1),Qe().add(_i,bt(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1),Qe().add(Ba,bt(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1)}),Em=pi(()=>{var e="uni.button.",t=["feedback.title","feedback.send"];Qe().add(Wt,bt(e,t,["feedback","send"]),!1),Qe().add(zo,bt(e,t,["realimentaci\xF3n","enviar"]),!1),Qe().add($o,bt(e,t,["retour d'information","envoyer"]),!1),Qe().add(_i,bt(e,t,["\u95EE\u9898\u53CD\u9988","\u53D1\u9001"]),!1),Qe().add(Ba,bt(e,t,["\u554F\u984C\u53CD\u994B","\u767C\u9001"]),!1)});function Tm(e){var t=new Ru;return{on(r,i){return t.on(r,i)},once(r,i){return t.once(r,i)},off(r,i){return t.off(r,i)},emit(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return t.emit(r,...a)},subscribe(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t[a?"once":"on"]("".concat(e,".").concat(r),i)},unsubscribe(r,i){t.off("".concat(e,".").concat(r),i)},subscribeHandler(r,i,a){t.emit("".concat(e,".").concat(r),i,a)}}}var Nu="invokeViewApi",Du="invokeServiceApi",Cm=1,Om=(e,t,r)=>{var{subscribe:i,publishHandler:a}=UniViewJSBridge,n=r?Cm++:0;r&&i(Du+"."+n,r,!0),a(Du,{id:n,name:e,args:t})},Fa=Object.create(null);function $a(e,t){return e+"."+t}function Am(e,t){UniViewJSBridge.subscribe($a(e,Nu),t?t(Bu):Bu)}function wt(e,t,r){t=$a(e,t),Fa[t]||(Fa[t]=r)}function Im(e,t){t=$a(e,t),delete Fa[t]}function Bu(e,t){var{id:r,name:i,args:a}=e;i=$a(t,i);var n=s=>{r&&UniViewJSBridge.publishHandler(Nu+"."+r,s)},o=Fa[i];o?o(a,n):n({})}var km=ce(Tm("service"),{invokeServiceMethod:Om}),Mm=350,Fu=10,za=mi(!0),wi;function yi(){wi&&(clearTimeout(wi),wi=null)}var $u=0,zu=0;function Rm(e){if(yi(),e.touches.length===1){var{pageX:t,pageY:r}=e.touches[0];$u=t,zu=r,wi=setTimeout(function(){var i=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});i.touches=e.touches,i.changedTouches=e.changedTouches,e.target.dispatchEvent(i)},Mm)}}function Lm(e){if(!!wi){if(e.touches.length!==1)return yi();var{pageX:t,pageY:r}=e.touches[0];if(Math.abs(t-$u)>Fu||Math.abs(r-zu)>Fu)return yi()}}function Pm(){window.addEventListener("touchstart",Rm,za),window.addEventListener("touchmove",Lm,za),window.addEventListener("touchend",yi,za),window.addEventListener("touchcancel",yi,za)}function Uu(e,t){var r=Number(e);return isNaN(r)?t:r}function Nm(){var e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90,r=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,i=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r;return i}function Dm(){var e=__uniConfig.globalStyle||{},t=Uu(e.rpxCalcMaxDeviceWidth,960),r=Uu(e.rpxCalcBaseDeviceWidth,375);function i(){var a=Nm();a=a<=t?a:r,document.documentElement.style.fontSize=a/23.4375+"px"}i(),document.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i),window.addEventListener("resize",i)}function Bm(){Dm(),Bp(),Pm()}var Fm=_a,$m=function(e,t){return!!e&&Fm(function(){t?e.call(null,function(){},1):e.call(null)})},Uo=fo,zm=Wl,Hu=eu,Wu=_a,Ho=[].sort,Vu=[1,2,3];Uo(Uo.P+Uo.F*(Wu(function(){Vu.sort(void 0)})||!Wu(function(){Vu.sort(null)})||!$m(Ho)),"Array",{sort:function(t){return t===void 0?Ho.call(Hu(this)):Ho.call(Hu(this),zm(t))}});var yt;class Um{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.active=!0,this.effects=[],this.cleanups=[],!t&&yt&&(this.parent=yt,this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}run(t){if(this.active){var r=yt;try{return yt=this,t()}finally{yt=r}}}on(){yt=this}off(){yt=this.parent}stop(t){if(this.active){var r,i;for(r=0,i=this.effects.length;r<i;r++)this.effects[r].stop();for(r=0,i=this.cleanups.length;r<i;r++)this.cleanups[r]();if(this.scopes)for(r=0,i=this.scopes.length;r<i;r++)this.scopes[r].stop(!0);if(this.parent&&!t){var a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.active=!1}}}function Hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yt;t&&t.active&&t.effects.push(e)}var Wo=e=>{var t=new Set(e);return t.w=0,t.n=0,t},ju=e=>(e.w&Vt)>0,Yu=e=>(e.n&Vt)>0,Wm=e=>{var{deps:t}=e;if(t.length)for(var r=0;r<t.length;r++)t[r].w|=Vt},Vm=e=>{var{deps:t}=e;if(t.length){for(var r=0,i=0;i<t.length;i++){var a=t[i];ju(a)&&!Yu(a)?a.delete(e):t[r++]=a,a.w&=~Vt,a.n&=~Vt}t.length=r}},Vo=new WeakMap,xi=0,Vt=1,jo=30,ct,fr=Symbol(""),Yo=Symbol("");class qo{constructor(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Hm(this,i)}run(){if(!this.active)return this.fn();for(var t=ct,r=jt;t;){if(t===this)return;t=t.parent}try{return this.parent=ct,ct=this,jt=!0,Vt=1<<++xi,xi<=jo?Wm(this):qu(this),this.fn()}finally{xi<=jo&&Vm(this),Vt=1<<--xi,ct=this.parent,jt=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ct===this?this.deferStop=!0:this.active&&(qu(this),this.onStop&&this.onStop(),this.active=!1)}}function qu(e){var{deps:t}=e;if(t.length){for(var r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var jt=!0,Xu=[];function Dr(){Xu.push(jt),jt=!1}function Br(){var e=Xu.pop();jt=e===void 0?!0:e}function et(e,t,r){if(jt&&ct){var i=Vo.get(e);i||Vo.set(e,i=new Map);var a=i.get(r);a||i.set(r,a=Wo()),Zu(a)}}function Zu(e,t){var r=!1;xi<=jo?Yu(e)||(e.n|=Vt,r=!ju(e)):r=!e.has(ct),r&&(e.add(ct),ct.deps.push(e))}function Lt(e,t,r,i,a,n){var o=Vo.get(e);if(!!o){var s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&ne(e))o.forEach((f,v)=>{(v==="length"||v>=i)&&s.push(f)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":ne(e)?Co(r)&&s.push(o.get("length")):(s.push(o.get(fr)),vi(e)&&s.push(o.get(Yo)));break;case"delete":ne(e)||(s.push(o.get(fr)),vi(e)&&s.push(o.get(Yo)));break;case"set":vi(e)&&s.push(o.get(fr));break}if(s.length===1)s[0]&&Xo(s[0]);else{var u=[];for(var l of s)l&&u.push(...l);Xo(Wo(u))}}}function Xo(e,t){for(var r of ne(e)?e:[...e])(r!==ct||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}var jm=ka("__proto__,__v_isRef,__isVue"),Ku=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Eo)),Ym=Zo(),qm=Zo(!1,!0),Xm=Zo(!0),Gu=Zm();function Zm(){var e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(){for(var r=me(this),i=0,a=this.length;i<a;i++)et(r,"get",i+"");for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var u=r[t](...o);return u===-1||u===!1?r[t](...o.map(me)):u}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(){Dr();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var n=me(this)[t].apply(this,i);return Br(),n}}),e}function Zo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i,a,n){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&n===(e?t?c0:sf:t?of:nf).get(i))return i;var o=ne(i);if(!e&&o&&ie(Gu,a))return Reflect.get(Gu,a,n);var s=Reflect.get(i,a,n);if((Eo(a)?Ku.has(a):jm(a))||(e||et(i,"get",a),t))return s;if($e(s)){var u=!o||!Co(a);return u?s.value:s}return We(s)?e?lf(s):ke(s):s}}var Km=Ju(),Gm=Ju(!0);function Ju(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return function(r,i,a,n){var o=r[i];if(Si(o)&&$e(o)&&!$e(a))return!1;if(!e&&!Si(a)&&(uf(a)||(a=me(a),o=me(o)),!ne(r)&&$e(o)&&!$e(a)))return o.value=a,!0;var s=ne(r)&&Co(i)?Number(i)<r.length:ie(r,i),u=Reflect.set(r,i,a,n);return r===me(n)&&(s?hi(a,o)&&Lt(r,"set",i,a):Lt(r,"add",i,a)),u}}function Jm(e,t){var r=ie(e,t);e[t];var i=Reflect.deleteProperty(e,t);return i&&r&&Lt(e,"delete",t,void 0),i}function Qm(e,t){var r=Reflect.has(e,t);return(!Eo(t)||!Ku.has(t))&&et(e,"has",t),r}function e0(e){return et(e,"iterate",ne(e)?"length":fr),Reflect.ownKeys(e)}var Qu={get:Ym,set:Km,deleteProperty:Jm,has:Qm,ownKeys:e0},t0={get:Xm,set(e,t){return!0},deleteProperty(e,t){return!0}},r0=ce({},Qu,{get:qm,set:Gm}),Ko=e=>e,Ua=e=>Reflect.getPrototypeOf(e);function Ha(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e=e.__v_raw;var a=me(e),n=me(t);t!==n&&!r&&et(a,"get",t),!r&&et(a,"get",n);var{has:o}=Ua(a),s=i?Ko:r?Qo:Ei;if(o.call(a,t))return s(e.get(t));if(o.call(a,n))return s(e.get(n));e!==a&&e.get(t)}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.__v_raw,i=me(r),a=me(e);return e!==a&&!t&&et(i,"has",e),!t&&et(i,"has",a),e===a?r.has(e):r.has(e)||r.has(a)}function Va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e=e.__v_raw,!t&&et(me(e),"iterate",fr),Reflect.get(e,"size",e)}function ef(e){e=me(e);var t=me(this),r=Ua(t),i=r.has.call(t,e);return i||(t.add(e),Lt(t,"add",e,e)),this}function tf(e,t){t=me(t);var r=me(this),{has:i,get:a}=Ua(r),n=i.call(r,e);n||(e=me(e),n=i.call(r,e));var o=a.call(r,e);return r.set(e,t),n?hi(t,o)&&Lt(r,"set",e,t):Lt(r,"add",e,t),this}function rf(e){var t=me(this),{has:r,get:i}=Ua(t),a=r.call(t,e);a||(e=me(e),a=r.call(t,e)),i&&i.call(t,e);var n=t.delete(e);return a&&Lt(t,"delete",e,void 0),n}function af(){var e=me(this),t=e.size!==0,r=e.clear();return t&&Lt(e,"clear",void 0,void 0),r}function ja(e,t){return function(i,a){var n=this,o=n.__v_raw,s=me(o),u=t?Ko:e?Qo:Ei;return!e&&et(s,"iterate",fr),o.forEach((l,f)=>i.call(a,u(l),u(f),n))}}function Ya(e,t,r){return function(){var i=this.__v_raw,a=me(i),n=vi(a),o=e==="entries"||e===Symbol.iterator&&n,s=e==="keys"&&n,u=i[e](...arguments),l=r?Ko:t?Qo:Ei;return!t&&et(a,"iterate",s?Yo:fr),{next(){var{value:f,done:v}=u.next();return v?{value:f,done:v}:{value:o?[l(f[0]),l(f[1])]:l(f),done:v}},[Symbol.iterator](){return this}}}}function Yt(e){return function(){return e==="delete"?!1:this}}function i0(){var e={get(n){return Ha(this,n)},get size(){return Va(this)},has:Wa,add:ef,set:tf,delete:rf,clear:af,forEach:ja(!1,!1)},t={get(n){return Ha(this,n,!1,!0)},get size(){return Va(this)},has:Wa,add:ef,set:tf,delete:rf,clear:af,forEach:ja(!1,!0)},r={get(n){return Ha(this,n,!0)},get size(){return Va(this,!0)},has(n){return Wa.call(this,n,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:ja(!0,!1)},i={get(n){return Ha(this,n,!0,!0)},get size(){return Va(this,!0)},has(n){return Wa.call(this,n,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:ja(!0,!0)},a=["keys","values","entries",Symbol.iterator];return a.forEach(n=>{e[n]=Ya(n,!1,!1),r[n]=Ya(n,!0,!1),t[n]=Ya(n,!1,!0),i[n]=Ya(n,!0,!0)}),[e,r,t,i]}var[a0,n0,o0,s0]=i0();function Go(e,t){var r=t?e?s0:o0:e?n0:a0;return(i,a,n)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?i:Reflect.get(ie(r,a)&&a in i?r:i,a,n)}var l0={get:Go(!1,!1)},u0={get:Go(!1,!0)},f0={get:Go(!0,!1)},nf=new WeakMap,of=new WeakMap,sf=new WeakMap,c0=new WeakMap;function v0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function d0(e){return e.__v_skip||!Object.isExtensible(e)?0:v0(To(e))}function ke(e){return Si(e)?e:Jo(e,!1,Qu,l0,nf)}function h0(e){return Jo(e,!1,r0,u0,of)}function lf(e){return Jo(e,!0,t0,f0,sf)}function Jo(e,t,r,i,a){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;var n=a.get(e);if(n)return n;var o=d0(e);if(o===0)return e;var s=new Proxy(e,o===2?i:r);return a.set(e,s),s}function Fr(e){return Si(e)?Fr(e.__v_raw):!!(e&&e.__v_isReactive)}function Si(e){return!!(e&&e.__v_isReadonly)}function uf(e){return!!(e&&e.__v_isShallow)}function ff(e){return Fr(e)||Si(e)}function me(e){var t=e&&e.__v_raw;return t?me(t):e}function qa(e){return Pa(e,"__v_skip",!0),e}var Ei=e=>We(e)?ke(e):e,Qo=e=>We(e)?lf(e):e;function cf(e){jt&&ct&&(e=me(e),Zu(e.dep||(e.dep=Wo())))}function vf(e,t){e=me(e),e.dep&&Xo(e.dep)}function $e(e){return!!(e&&e.__v_isRef===!0)}function B(e){return df(e,!1)}function es(e){return df(e,!0)}function df(e,t){return $e(e)?e:new g0(e,t)}class g0{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:me(t),this._value=r?t:Ei(t)}get value(){return cf(this),this._value}set value(t){t=this.__v_isShallow?t:me(t),hi(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Ei(t),vf(this))}}function p0(e){return $e(e)?e.value:e}var m0={get:(e,t,r)=>p0(Reflect.get(e,t,r)),set:(e,t,r,i)=>{var a=e[t];return $e(a)&&!$e(r)?(a.value=r,!0):Reflect.set(e,t,r,i)}};function hf(e){return Fr(e)?e:new Proxy(e,m0)}class _0{constructor(t,r,i,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new qo(t,()=>{this._dirty||(this._dirty=!0,vf(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=i}get value(){var t=me(this);return cf(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function b0(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i,a,n=oe(e);n?(i=e,a=mt):(i=e.get,a=e.set);var o=new _0(i,a,n||!a,r);return o}function qt(e,t,r,i){var a;try{a=i?e(...i):e()}catch(n){Xa(n,t,r)}return a}function vt(e,t,r,i){if(oe(e)){var a=qt(e,t,r,i);return a&&bu(a)&&a.catch(s=>{Xa(s,t,r)}),a}for(var n=[],o=0;o<e.length;o++)n.push(vt(e[o],t,r,i));return n}function Xa(e,t,r){if(t&&t.vnode,t){for(var i=t.parent,a=t.proxy,n=r;i;){var o=i.ec;if(o){for(var s=0;s<o.length;s++)if(o[s](e,a,n)===!1)return}i=i.parent}var u=t.appContext.config.errorHandler;if(u){qt(u,null,10,[e,a,n]);return}}w0(e)}function w0(e,t,r){e instanceof Error?console.error(e.message+` +`+e.stack):console.error(e)}var Za=!1,ts=!1,tt=[],Pt=0,Ti=[],Ci=null,$r=0,Oi=[],Xt=null,zr=0,gf=Promise.resolve(),rs=null,is=null;function Ur(e){var t=rs||gf;return e?t.then(this?e.bind(this):e):t}function y0(e){for(var t=Pt+1,r=tt.length;t<r;){var i=t+r>>>1,a=Ai(tt[i]);a<e?t=i+1:r=i}return t}function pf(e){(!tt.length||!tt.includes(e,Za&&e.allowRecurse?Pt+1:Pt))&&e!==is&&(e.id==null?tt.push(e):tt.splice(y0(e.id),0,e),mf())}function mf(){!Za&&!ts&&(ts=!0,rs=gf.then(wf))}function x0(e){var t=tt.indexOf(e);t>Pt&&tt.splice(t,1)}function _f(e,t,r,i){ne(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),mf()}function S0(e){_f(e,Ci,Ti,$r)}function E0(e){_f(e,Xt,Oi,zr)}function as(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Ti.length){for(is=t,Ci=[...new Set(Ti)],Ti.length=0,$r=0;$r<Ci.length;$r++)Ci[$r]();Ci=null,$r=0,is=null,as(e,t)}}function bf(e){if(Oi.length){var t=[...new Set(Oi)];if(Oi.length=0,Xt){Xt.push(...t);return}for(Xt=t,Xt.sort((r,i)=>Ai(r)-Ai(i)),zr=0;zr<Xt.length;zr++)Xt[zr]();Xt=null,zr=0}}var Ai=e=>e.id==null?1/0:e.id;function wf(e){ts=!1,Za=!0,as(e),tt.sort((i,a)=>Ai(i)-Ai(a));var t=mt;try{for(Pt=0;Pt<tt.length;Pt++){var r=tt[Pt];r&&r.active!==!1&&qt(r,null,14)}}finally{Pt=0,tt.length=0,bf(),Za=!1,rs=null,(tt.length||Ti.length||Oi.length)&&wf(e)}}function T0(e,t){if(!e.isUnmounted){for(var r=e.vnode.props||Se,i=arguments.length,a=new Array(i>2?i-2:0),n=2;n<i;n++)a[n-2]=arguments[n];var o=a,s=t.startsWith("update:"),u=s&&t.slice(7);if(u&&u in r){var l="".concat(u==="modelValue"?"model":u,"Modifiers"),{number:f,trim:v}=r[l]||Se;v?o=a.map(m=>m.trim()):f&&(o=a.map(Tp))}var g,h=r[g=Ao(t)]||r[g=Ao(Ht(t))];!h&&s&&(h=r[g=Ao(Je(t))]),h&&vt(h,e,6,o);var y=r[g+"Once"];if(y){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,vt(y,e,6,o)}}}function yf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;var n=e.emits,o={},s=!1;if(!oe(e)){var u=l=>{var f=yf(l,t,!0);f&&(s=!0,ce(o,f))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!n&&!s?(i.set(e,null),null):(ne(n)?n.forEach(l=>o[l]=null):ce(o,n),i.set(e,o),o)}function Ka(e,t){return!e||!Ma(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Je(t))||ie(e,t))}var dt=null,xf=null;function Ga(e){var t=dt;return dt=e,xf=e&&e.type.__scopeId||null,t}function C0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt;if(!t||e._n)return e;var r=function(){r._d&&Yf(-1);var i=Ga(t),a=e(...arguments);return Ga(i),r._d&&Yf(1),a};return r._n=!0,r._c=!0,r._d=!0,r}function JT(){}function ns(e){var{type:t,vnode:r,proxy:i,withProxy:a,props:n,propsOptions:[o],slots:s,attrs:u,emit:l,render:f,renderCache:v,data:g,setupState:h,ctx:y,inheritAttrs:m}=e,w,p,b=Ga(e);try{if(r.shapeFlag&4){var c=a||i;w=St(f.call(c,c,v,n,h,g,y)),p=u}else{var d=t;w=St(d.length>1?d(n,{attrs:u,slots:s,emit:l}):d(n,null)),p=t.props?u:O0(u)}}catch(C){Xa(C,e,1),w=I(Hr)}var _=w;if(p&&m!==!1){var x=Object.keys(p),{shapeFlag:E}=_;x.length&&E&7&&(o&&x.some(xo)&&(p=A0(p,o)),_=Mi(_,p))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),w=_,Ga(b),w}var O0=e=>{var t;for(var r in e)(r==="class"||r==="style"||Ma(r))&&((t||(t={}))[r]=e[r]);return t},A0=(e,t)=>{var r={};for(var i in e)(!xo(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function I0(e,t,r){var{props:i,children:a,component:n}=e,{props:o,children:s,patchFlag:u}=t,l=n.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return i?Sf(i,o,l):!!o;if(u&8)for(var f=t.dynamicProps,v=0;v<f.length;v++){var g=f[v];if(o[g]!==i[g]&&!Ka(l,g))return!0}}else return(a||s)&&(!s||!s.$stable)?!0:i===o?!1:i?o?Sf(i,o,l):!0:!!o;return!1}function Sf(e,t,r){var i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(var a=0;a<i.length;a++){var n=i[a];if(t[n]!==e[n]&&!Ka(r,n))return!0}return!1}function k0(e,t){for(var{vnode:r,parent:i}=e;i&&i.subTree===r;)(r=i.vnode).el=t,i=i.parent}var M0=e=>e.__isSuspense;function R0(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):E0(e)}function ze(e,t){if(Ue){var r=Ue.provides,i=Ue.parent&&Ue.parent.provides;i===r&&(r=Ue.provides=Object.create(i)),r[e]=t}}function _e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=Ue||dt;if(i){var a=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&oe(t)?t.call(i.proxy):t}}function L0(e,t){return os(e,null,t)}var Ef={};function W(e,t,r){return os(e,t,r)}function os(e,t){var{immediate:r,deep:i,flush:a,onTrack:n,onTrigger:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,s=Ue,u,l=!1,f=!1;if($e(e)?(u=()=>e.value,l=uf(e)):Fr(e)?(u=()=>e,i=!0):ne(e)?(f=!0,l=e.some(Fr),u=()=>e.map(b=>{if($e(b))return b.value;if(Fr(b))return cr(b);if(oe(b))return qt(b,s,2)})):oe(e)?t?u=()=>qt(e,s,2):u=()=>{if(!(s&&s.isUnmounted))return g&&g(),vt(e,s,3,[h])}:u=mt,t&&i){var v=u;u=()=>cr(v())}var g,h=b=>{g=p.onStop=()=>{qt(b,s,4)}};if(Ri)return h=mt,t?r&&vt(t,s,3,[u(),f?[]:void 0,h]):u(),mt;var y=f?[]:Ef,m=()=>{if(!!p.active)if(t){var b=p.run();(i||l||(f?b.some((c,d)=>hi(c,y[d])):hi(b,y)))&&(g&&g(),vt(t,s,3,[b,y===Ef?void 0:y,h]),y=b)}else p.run()};m.allowRecurse=!!t;var w;a==="sync"?w=m:a==="post"?w=()=>Xe(m,s&&s.suspense):w=()=>{!s||s.isMounted?S0(m):m()};var p=new qo(u,w);return t?r?m():y=p.run():a==="post"?Xe(p.run.bind(p),s&&s.suspense):p.run(),()=>{p.stop(),s&&s.scope&&So(s.scope.effects,p)}}function P0(e,t,r){var i=this.proxy,a=Ee(e)?e.includes(".")?Tf(i,e):()=>i[e]:e.bind(i,i),n;oe(t)?n=t:(n=t.handler,r=t);var o=Ue;Wr(this);var s=os(a,n.bind(i),r);return o?Wr(o):gr(),s}function Tf(e,t){var r=t.split(".");return()=>{for(var i=e,a=0;a<r.length&&i;a++)i=i[r[a]];return i}}function cr(e,t){if(!We(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))cr(e.value,t);else if(ne(e))for(var r=0;r<e.length;r++)cr(e[r],t);else if(yp(e)||vi(e))e.forEach(a=>{cr(a,t)});else if(_t(e))for(var i in e)cr(e[i],t);return e}function N0(e){return oe(e)?{setup:e,name:e.name}:e}var ss=e=>!!e.type.__asyncLoader,Cf=e=>e.type.__isKeepAlive;function ls(e,t){Of(e,"a",t)}function D0(e,t){Of(e,"da",t)}function Of(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,i=e.__wdc||(e.__wdc=()=>{for(var n=r;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Ja(t,i,r),r)for(var a=r.parent;a&&a.parent;)Cf(a.parent.vnode)&&B0(i,t,r,a),a=a.parent}function B0(e,t,r,i){var a=Ja(t,e,i,!0);Zt(()=>{So(i[t],a)},r)}function Ja(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r){var a=r[e]||(r[e]=[]),n=t.__weh||(t.__weh=function(){if(!r.isUnmounted){Dr(),Wr(r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var l=vt(t,r,e,s);return gr(),Br(),l}});return i?a.unshift(n):a.push(n),n}}var Nt=e=>function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return(!Ri||e==="sp")&&Ja(e,t,r)},Af=Nt("bm"),Re=Nt("m"),F0=Nt("bu"),$0=Nt("u"),Ce=Nt("bum"),Zt=Nt("um"),z0=Nt("sp"),U0=Nt("rtg"),H0=Nt("rtc");function W0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;Ja("ec",e,t)}var us=!0;function V0(e){var t=Mf(e),r=e.proxy,i=e.ctx;us=!1,t.beforeCreate&&If(t.beforeCreate,e,"bc");var{data:a,computed:n,methods:o,watch:s,provide:u,inject:l,created:f,beforeMount:v,mounted:g,beforeUpdate:h,updated:y,activated:m,deactivated:w,beforeDestroy:p,beforeUnmount:b,destroyed:c,unmounted:d,render:_,renderTracked:x,renderTriggered:E,errorCaptured:C,serverPrefetch:O,expose:M,inheritAttrs:R,components:U,directives:te,filters:L}=t,H=null;if(l&&j0(l,i,H,e.appContext.config.unwrapInjectedRef),o)for(var q in o){var re=o[q];oe(re)&&(i[q]=re.bind(r))}if(a&&function(){var le=a.call(r,r);We(le)&&(e.data=ke(le))}(),us=!0,n){var V=function(le){var J=n[le],xe=oe(J)?J.bind(r,r):oe(J.get)?J.get.bind(r,r):mt,we=!oe(J)&&oe(J.set)?J.set.bind(r):mt,Ve=ee({get:xe,set:we});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:sr=>Ve.value=sr})};for(var K in n)V(K)}if(s)for(var ae in s)kf(s[ae],i,r,ae);if(u){var Te=oe(u)?u.call(r):u;Reflect.ownKeys(Te).forEach(le=>{ze(le,Te[le])})}f&&If(f,e,"c");function se(le,J){ne(J)?J.forEach(xe=>le(xe.bind(r))):J&&le(J.bind(r))}if(se(Af,v),se(Re,g),se(F0,h),se($0,y),se(ls,m),se(D0,w),se(W0,C),se(H0,x),se(U0,E),se(Ce,b),se(Zt,d),se(z0,O),ne(M))if(M.length){var he=e.exposed||(e.exposed={});M.forEach(le=>{Object.defineProperty(he,le,{get:()=>r[le],set:J=>r[le]=J})})}else e.exposed||(e.exposed={});_&&e.render===mt&&(e.render=_),R!=null&&(e.inheritAttrs=R),U&&(e.components=U),te&&(e.directives=te)}function j0(e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;ne(e)&&(e=fs(e));var i=function(n){var o=e[n],s=void 0;We(o)?"default"in o?s=_e(o.from||n,o.default,!0):s=_e(o.from||n):s=_e(o),$e(s)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:u=>s.value=u}):t[n]=s};for(var a in e)i(a)}function If(e,t,r){vt(ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function kf(e,t,r,i){var a=i.includes(".")?Tf(r,i):()=>r[i];if(Ee(e)){var n=t[e];oe(n)&&W(a,n)}else if(oe(e))W(a,e.bind(r));else if(We(e))if(ne(e))e.forEach(s=>kf(s,t,r,i));else{var o=oe(e.handler)?e.handler.bind(r):t[e.handler];oe(o)&&W(a,o,e)}}function Mf(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:n,config:{optionMergeStrategies:o}}=e.appContext,s=n.get(t),u;return s?u=s:!a.length&&!r&&!i?u=t:(u={},a.length&&a.forEach(l=>Qa(u,l,o,!0)),Qa(u,t,o)),n.set(t,u),u}function Qa(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,{mixins:a,extends:n}=t;n&&Qa(e,n,r,!0),a&&a.forEach(u=>Qa(e,u,r,!0));for(var o in t)if(!(i&&o==="expose")){var s=Y0[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Y0={data:Rf,props:vr,emits:vr,methods:vr,computed:vr,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:vr,directives:vr,watch:X0,provide:Rf,inject:q0};function Rf(e,t){return t?e?function(){return ce(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function q0(e,t){return vr(fs(e),fs(t))}function fs(e){if(ne(e)){for(var t={},r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function vr(e,t){return e?ce(ce(Object.create(null),e),t):t}function X0(e,t){if(!e)return t;if(!t)return e;var r=ce(Object.create(null),e);for(var i in t)r[i]=Ye(e[i],t[i]);return r}function Z0(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a={},n={};Pa(n,tn,1),e.propsDefaults=Object.create(null),Lf(e,t,a,n);for(var o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=i?a:h0(a):e.type.props?e.props=a:e.props=n,e.attrs=n}function K0(e,t,r,i){var{props:a,attrs:n,vnode:{patchFlag:o}}=e,s=me(a),[u]=e.propsOptions,l=!1;if((i||o>0)&&!(o&16)){if(o&8)for(var f=e.vnode.dynamicProps,v=0;v<f.length;v++){var g=f[v];if(!Ka(e.emitsOptions,g)){var h=t[g];if(u)if(ie(n,g))h!==n[g]&&(n[g]=h,l=!0);else{var y=Ht(g);a[y]=cs(u,s,y,h,e,!1)}else h!==n[g]&&(n[g]=h,l=!0)}}}else{Lf(e,t,a,n)&&(l=!0);var m;for(var w in s)(!t||!ie(t,w)&&((m=Je(w))===w||!ie(t,m)))&&(u?r&&(r[w]!==void 0||r[m]!==void 0)&&(a[w]=cs(u,s,w,void 0,e,!0)):delete a[w]);if(n!==s)for(var p in n)(!t||!ie(t,p)&&!0)&&(delete n[p],l=!0)}l&&Lt(e,"set","$attrs")}function Lf(e,t,r,i){var[a,n]=e.propsOptions,o=!1,s;if(t){for(var u in t)if(!Ra(u)){var l=t[u],f=void 0;a&&ie(a,f=Ht(u))?!n||!n.includes(f)?r[f]=l:(s||(s={}))[f]=l:Ka(e.emitsOptions,u)||(!(u in i)||l!==i[u])&&(i[u]=l,o=!0)}}if(n)for(var v=me(r),g=s||Se,h=0;h<n.length;h++){var y=n[h];r[y]=cs(a,v,y,g[y],e,!ie(g,y))}return o}function cs(e,t,r,i,a,n){var o=e[r];if(o!=null){var s=ie(o,"default");if(s&&i===void 0){var u=o.default;if(o.type!==Function&&oe(u)){var{propsDefaults:l}=a;r in l?i=l[r]:(Wr(a),i=l[r]=u.call(null,t),gr())}else i=u}o[0]&&(n&&!s?i=!1:o[1]&&(i===""||i===Je(r))&&(i=!0))}return i}function Pf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.propsCache,a=i.get(e);if(a)return a;var n=e.props,o={},s=[],u=!1;if(!oe(e)){var l=c=>{u=!0;var[d,_]=Pf(c,t,!0);ce(o,d),_&&s.push(..._)};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!n&&!u)return i.set(e,ci),ci;if(ne(n))for(var f=0;f<n.length;f++){var v=Ht(n[f]);Nf(v)&&(o[v]=Se)}else if(n)for(var g in n){var h=Ht(g);if(Nf(h)){var y=n[g],m=o[h]=ne(y)||oe(y)?{type:y}:y;if(m){var w=Ff(Boolean,m.type),p=Ff(String,m.type);m[0]=w>-1,m[1]=p<0||w<p,(w>-1||ie(m,"default"))&&s.push(h)}}}var b=[o,s];return i.set(e,b),b}function Nf(e){return e[0]!=="$"}function Df(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Bf(e,t){return Df(e)===Df(t)}function Ff(e,t){return ne(t)?t.findIndex(r=>Bf(r,e)):oe(t)&&Bf(t,e)?0:-1}var $f=e=>e[0]==="_"||e==="$stable",vs=e=>ne(e)?e.map(St):[St(e)],G0=(e,t,r)=>{var i=C0(function(){return vs(t(...arguments))},r);return i._c=!1,i},zf=(e,t,r)=>{var i=e._ctx;for(var a in e)if(!$f(a)){var n=e[a];oe(n)?t[a]=G0(a,n,i):n!=null&&function(){var o=vs(n);t[a]=()=>o}()}},Uf=(e,t)=>{var r=vs(t);e.slots.default=()=>r},J0=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=me(t),Pa(t,"_",r)):zf(t,e.slots={})}else e.slots={},t&&Uf(e,t);Pa(e.slots,tn,1)},Q0=(e,t,r)=>{var{vnode:i,slots:a}=e,n=!0,o=Se;if(i.shapeFlag&32){var s=t._;s?r&&s===1?n=!1:(ce(a,t),!r&&s===1&&delete a._):(n=!t.$stable,zf(t,a)),o=t}else t&&(Uf(e,t),o={default:1});if(n)for(var u in a)!$f(u)&&!(u in o)&&delete a[u]};function Ii(e,t){var r=dt;if(r===null)return e;for(var i=nn(r)||r.proxy,a=e.dirs||(e.dirs=[]),n=0;n<t.length;n++){var[o,s,u,l=Se]=t[n];oe(o)&&(o={mounted:o,updated:o}),o.deep&&cr(s),a.push({dir:o,instance:i,value:s,oldValue:void 0,arg:u,modifiers:l})}return e}function dr(e,t,r,i){for(var a=e.dirs,n=t&&t.dirs,o=0;o<a.length;o++){var s=a[o];n&&(s.oldValue=n[o].value);var u=s.dir[i];u&&(Dr(),vt(u,r,8,[e.el,s,e,t]),Br())}}function Hf(){return{app:null,config:{isNativeTag:_p,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var e_=0;function t_(e,t){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;oe(i)||(i=Object.assign({},i)),a!=null&&!We(a)&&(a=null);var n=Hf(),o=new Set,s=!1,u=n.app={_uid:e_++,_component:i,_props:a,_container:null,_context:n,_instance:null,version:y_,get config(){return n.config},set config(l){},use(l){for(var f=arguments.length,v=new Array(f>1?f-1:0),g=1;g<f;g++)v[g-1]=arguments[g];return o.has(l)||(l&&oe(l.install)?(o.add(l),l.install(u,...v)):oe(l)&&(o.add(l),l(u,...v))),u},mixin(l){return n.mixins.includes(l)||n.mixins.push(l),u},component(l,f){return f?(n.components[l]=f,u):n.components[l]},directive(l,f){return f?(n.directives[l]=f,u):n.directives[l]},mount(l,f,v){if(!s){var g=I(i,a);return g.appContext=n,f&&t?t(g,l):e(g,l,v),s=!0,u._container=l,l.__vue_app__=u,nn(g.component)||g.component.proxy}},unmount(){s&&(e(null,u._container),delete u._container.__vue_app__)},provide(l,f){return n.provides[l]=f,u}};return u}}function ds(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ne(e)){e.forEach((m,w)=>ds(m,t&&(ne(t)?t[w]:t),r,i,a));return}if(!(ss(i)&&!a)){var n=i.shapeFlag&4?nn(i.component)||i.component.proxy:i.el,o=a?null:n,{i:s,r:u}=e,l=t&&t.r,f=s.refs===Se?s.refs={}:s.refs,v=s.setupState;if(l!=null&&l!==u&&(Ee(l)?(f[l]=null,ie(v,l)&&(v[l]=null)):$e(l)&&(l.value=null)),oe(u))qt(u,s,12,[o,f]);else{var g=Ee(u),h=$e(u);if(g||h){var y=()=>{if(e.f){var m=g?f[u]:u.value;a?ne(m)&&So(m,n):ne(m)?m.includes(n)||m.push(n):g?(f[u]=[n],ie(v,u)&&(v[u]=f[u])):(u.value=[n],e.k&&(f[e.k]=u.value))}else g?(f[u]=o,ie(v,u)&&(v[u]=o)):$e(u)&&(u.value=o,e.k&&(f[e.k]=o))};o?(y.id=-1,Xe(y,r)):y()}}}}var Xe=R0;function r_(e){return i_(e)}function i_(e,t){var r=Cp();r.__VUE__=!0;var{insert:i,remove:a,patchProp:n,createElement:o,createText:s,createComment:u,setText:l,setElementText:f,parentNode:v,nextSibling:g,setScopeId:h=mt,cloneNode:y,insertStaticContent:m}=e,w=function(S,T,k){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,$=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,j=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,F=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!!T.dynamicChildren;if(S!==T){S&&!ki(S,T)&&(P=Ve(S),he(S,N,$,!0),S=null),T.patchFlag===-2&&(z=!1,T.dynamicChildren=null);var{type:D,ref:Q,shapeFlag:G}=T;switch(D){case hs:p(S,T,k,P);break;case Hr:b(S,T,k,P);break;case gs:S==null&&c(T,k,P,j);break;case xt:te(S,T,k,P,N,$,j,F,z);break;default:G&1?x(S,T,k,P,N,$,j,F,z):G&6?L(S,T,k,P,N,$,j,F,z):(G&64||G&128)&&D.process(S,T,k,P,N,$,j,F,z,Ne)}Q!=null&&N&&ds(Q,S&&S.ref,$,T||S,!T)}},p=(S,T,k,P)=>{if(S==null)i(T.el=s(T.children),k,P);else{var N=T.el=S.el;T.children!==S.children&&l(N,T.children)}},b=(S,T,k,P)=>{S==null?i(T.el=u(T.children||""),k,P):T.el=S.el},c=(S,T,k,P)=>{[S.el,S.anchor]=m(S.children,T,k,P,S.el,S.anchor)},d=(S,T,k)=>{for(var{el:P,anchor:N}=S,$;P&&P!==N;)$=g(P),i(P,T,k),P=$;i(N,T,k)},_=S=>{for(var{el:T,anchor:k}=S,P;T&&T!==k;)P=g(T),a(T),T=P;a(k)},x=(S,T,k,P,N,$,j,F,z)=>{j=j||T.type==="svg",S==null?E(T,k,P,N,$,j,F,z):M(S,T,N,$,j,F,z)},E=(S,T,k,P,N,$,j,F)=>{var z,D,{type:Q,props:G,shapeFlag:Z,transition:fe,patchFlag:Be,dirs:Ae}=S;if(S.el&&y!==void 0&&Be===-1)z=S.el=y(S.el);else{if(z=S.el=o(S.type,$,G&&G.is,G),Z&8?f(z,S.children):Z&16&&O(S.children,z,null,P,N,$&&Q!=="foreignObject",j,F),Ae&&dr(S,null,P,"created"),G){for(var A in G)A!=="value"&&!Ra(A)&&n(z,A,null,G[A],$,S.children,P,N,we);"value"in G&&n(z,"value",null,G.value),(D=G.onVnodeBeforeMount)&&Et(D,P,S)}C(z,S,S.scopeId,j,P)}Object.defineProperty(z,"__vueParentComponent",{value:P,enumerable:!1}),Ae&&dr(S,null,P,"beforeMount");var Y=(!N||N&&!N.pendingBranch)&&fe&&!fe.persisted;Y&&fe.beforeEnter(z),i(z,T,k),((D=G&&G.onVnodeMounted)||Y||Ae)&&Xe(()=>{D&&Et(D,P,S),Y&&fe.enter(z),Ae&&dr(S,null,P,"mounted")},N)},C=(S,T,k,P,N)=>{if(k&&h(S,k),P)for(var $=0;$<P.length;$++)h(S,P[$]);if(N){var j=N.subTree;if(T===j){var F=N.vnode;C(S,F,F.scopeId,F.slotScopeIds,N.parent)}}},O=function(S,T,k,P,N,$,j,F){for(var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,D=z;D<S.length;D++){var Q=S[D]=F?Kt(S[D]):St(S[D]);w(null,Q,T,k,P,N,$,j,F)}},M=(S,T,k,P,N,$,j)=>{var F=T.el=S.el,{patchFlag:z,dynamicChildren:D,dirs:Q}=T;z|=S.patchFlag&16;var G=S.props||Se,Z=T.props||Se,fe;k&&hr(k,!1),(fe=Z.onVnodeBeforeUpdate)&&Et(fe,k,T,S),Q&&dr(T,S,k,"beforeUpdate"),k&&hr(k,!0);var Be=N&&T.type!=="foreignObject";if(D?R(S.dynamicChildren,D,F,k,P,Be,$):j||K(S,T,F,null,k,P,Be,$,!1),z>0){if(z&16)U(F,T,G,Z,k,P,N);else if(z&2&&G.class!==Z.class&&n(F,"class",null,Z.class,N),z&4&&n(F,"style",G.style,Z.style,N),z&8)for(var Ae=T.dynamicProps,A=0;A<Ae.length;A++){var Y=Ae[A],X=G[Y],ge=Z[Y];(ge!==X||Y==="value")&&n(F,Y,X,ge,N,S.children,k,P,we)}z&1&&S.children!==T.children&&f(F,T.children)}else!j&&D==null&&U(F,T,G,Z,k,P,N);((fe=Z.onVnodeUpdated)||Q)&&Xe(()=>{fe&&Et(fe,k,T,S),Q&&dr(T,S,k,"updated")},P)},R=(S,T,k,P,N,$,j)=>{for(var F=0;F<T.length;F++){var z=S[F],D=T[F],Q=z.el&&(z.type===xt||!ki(z,D)||z.shapeFlag&70)?v(z.el):k;w(z,D,Q,null,P,N,$,j,!0)}},U=(S,T,k,P,N,$,j)=>{if(k!==P){for(var F in P)if(!Ra(F)){var z=P[F],D=k[F];z!==D&&F!=="value"&&n(S,F,D,z,j,T.children,N,$,we)}if(k!==Se)for(var Q in k)!Ra(Q)&&!(Q in P)&&n(S,Q,k[Q],null,j,T.children,N,$,we);"value"in P&&n(S,"value",k.value,P.value)}},te=(S,T,k,P,N,$,j,F,z)=>{var D=T.el=S?S.el:s(""),Q=T.anchor=S?S.anchor:s(""),{patchFlag:G,dynamicChildren:Z,slotScopeIds:fe}=T;fe&&(F=F?F.concat(fe):fe),S==null?(i(D,k,P),i(Q,k,P),O(T.children,k,Q,N,$,j,F,z)):G>0&&G&64&&Z&&S.dynamicChildren?(R(S.dynamicChildren,Z,k,N,$,j,F),(T.key!=null||N&&T===N.subTree)&&Wf(S,T,!0)):K(S,T,k,Q,N,$,j,F,z)},L=(S,T,k,P,N,$,j,F,z)=>{T.slotScopeIds=F,S==null?T.shapeFlag&512?N.ctx.activate(T,k,P,j,z):H(T,k,P,N,$,j,z):q(S,T,z)},H=(S,T,k,P,N,$,j)=>{var F=S.component=h_(S,P,N);if(Cf(S)&&(F.ctx.renderer=Ne),g_(F),F.asyncDep){if(N&&N.registerDep(F,re),!S.el){var z=F.subTree=I(Hr);b(null,z,T,k)}return}re(F,S,T,k,N,$,j)},q=(S,T,k)=>{var P=T.component=S.component;if(I0(S,T,k))if(P.asyncDep&&!P.asyncResolved){V(P,T,k);return}else P.next=T,x0(P.update),P.update();else T.component=S.component,T.el=S.el,P.vnode=T},re=(S,T,k,P,N,$,j)=>{var F=()=>{if(S.isMounted){var{next:ue,bu:Fe,u:Ge,parent:De,vnode:pt}=S,lr=ue,Rt;hr(S,!1),ue?(ue.el=pt.el,V(S,ue,j)):ue=pt,Fe&&Io(Fe),(Rt=ue.props&&ue.props.onVnodeBeforeUpdate)&&Et(Rt,De,ue,pt),hr(S,!0);var Mr=ns(S),Ut=S.subTree;S.subTree=Mr,w(Ut,Mr,v(Ut.el),Ve(Ut),S,N,$),ue.el=Mr.el,lr===null&&k0(S,Mr.el),Ge&&Xe(Ge,N),(Rt=ue.props&&ue.props.onVnodeUpdated)&&Xe(()=>Et(Rt,De,ue,pt),N)}else{var Q,{el:G,props:Z}=T,{bm:fe,m:Be,parent:Ae}=S,A=ss(T);if(hr(S,!1),fe&&Io(fe),!A&&(Q=Z&&Z.onVnodeBeforeMount)&&Et(Q,Ae,T),hr(S,!0),G&&da){var Y=()=>{S.subTree=ns(S),da(G,S.subTree,S,N,null)};A?T.type.__asyncLoader().then(()=>!S.isUnmounted&&Y()):Y()}else{var X=S.subTree=ns(S);w(null,X,k,P,S,N,$),T.el=X.el}if(Be&&Xe(Be,N),!A&&(Q=Z&&Z.onVnodeMounted)){var ge=T;Xe(()=>Et(Q,Ae,ge),N)}T.shapeFlag&256&&S.a&&Xe(S.a,N),S.isMounted=!0,T=k=P=null}},z=S.effect=new qo(F,()=>pf(S.update),S.scope),D=S.update=z.run.bind(z);D.id=S.uid,hr(S,!0),D()},V=(S,T,k)=>{T.component=S;var P=S.vnode.props;S.vnode=T,S.next=null,K0(S,T.props,P,k),Q0(S,T.children,k),Dr(),as(void 0,S.update),Br()},K=function(S,T,k,P,N,$,j,F){var z=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,D=S&&S.children,Q=S?S.shapeFlag:0,G=T.children,{patchFlag:Z,shapeFlag:fe}=T;if(Z>0){if(Z&128){Te(D,G,k,P,N,$,j,F,z);return}else if(Z&256){ae(D,G,k,P,N,$,j,F,z);return}}fe&8?(Q&16&&we(D,N,$),G!==D&&f(k,G)):Q&16?fe&16?Te(D,G,k,P,N,$,j,F,z):we(D,N,$,!0):(Q&8&&f(k,""),fe&16&&O(G,k,P,N,$,j,F,z))},ae=(S,T,k,P,N,$,j,F,z)=>{S=S||ci,T=T||ci;var D=S.length,Q=T.length,G=Math.min(D,Q),Z;for(Z=0;Z<G;Z++){var fe=T[Z]=z?Kt(T[Z]):St(T[Z]);w(S[Z],fe,k,null,N,$,j,F,z)}D>Q?we(S,N,$,!0,!1,G):O(T,k,P,N,$,j,F,z,G)},Te=(S,T,k,P,N,$,j,F,z)=>{for(var D=0,Q=T.length,G=S.length-1,Z=Q-1;D<=G&&D<=Z;){var fe=S[D],Be=T[D]=z?Kt(T[D]):St(T[D]);if(ki(fe,Be))w(fe,Be,k,null,N,$,j,F,z);else break;D++}for(;D<=G&&D<=Z;){var Ae=S[G],A=T[Z]=z?Kt(T[Z]):St(T[Z]);if(ki(Ae,A))w(Ae,A,k,null,N,$,j,F,z);else break;G--,Z--}if(D>G){if(D<=Z)for(var Y=Z+1,X=Y<Q?T[Y].el:P;D<=Z;)w(null,T[D]=z?Kt(T[D]):St(T[D]),k,X,N,$,j,F,z),D++}else if(D>Z)for(;D<=G;)he(S[D],N,$,!0),D++;else{var ge=D,ue=D,Fe=new Map;for(D=ue;D<=Z;D++){var Ge=T[D]=z?Kt(T[D]):St(T[D]);Ge.key!=null&&Fe.set(Ge.key,D)}var De,pt=0,lr=Z-ue+1,Rt=!1,Mr=0,Ut=new Array(lr);for(D=0;D<lr;D++)Ut[D]=0;for(D=ge;D<=G;D++){var li=S[D];if(pt>=lr){he(li,N,$,!0);continue}var Rr=void 0;if(li.key!=null)Rr=Fe.get(li.key);else for(De=ue;De<=Z;De++)if(Ut[De-ue]===0&&ki(li,T[De])){Rr=De;break}Rr===void 0?he(li,N,$,!0):(Ut[Rr-ue]=D+1,Rr>=Mr?Mr=Rr:Rt=!0,w(li,T[Rr],k,null,N,$,j,F,z),pt++)}var Dh=Rt?a_(Ut):ci;for(De=Dh.length-1,D=lr-1;D>=0;D--){var Rl=ue+D,Bh=T[Rl],Fh=Rl+1<Q?T[Rl+1].el:P;Ut[D]===0?w(null,Bh,k,Fh,N,$,j,F,z):Rt&&(De<0||D!==Dh[De]?se(Bh,k,Fh,2):De--)}}},se=function(S,T,k,P){var N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,{el:$,type:j,transition:F,children:z,shapeFlag:D}=S;if(D&6){se(S.component.subTree,T,k,P);return}if(D&128){S.suspense.move(T,k,P);return}if(D&64){j.move(S,T,k,Ne);return}if(j===xt){i($,T,k);for(var Q=0;Q<z.length;Q++)se(z[Q],T,k,P);i(S.anchor,T,k);return}if(j===gs){d(S,T,k);return}var G=P!==2&&D&1&&F;if(G)if(P===0)F.beforeEnter($),i($,T,k),Xe(()=>F.enter($),N);else{var{leave:Z,delayLeave:fe,afterLeave:Be}=F,Ae=()=>i($,T,k),A=()=>{Z($,()=>{Ae(),Be&&Be()})};fe?fe($,Ae,A):A()}else i($,T,k)},he=function(S,T,k){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,{type:$,props:j,ref:F,children:z,dynamicChildren:D,shapeFlag:Q,patchFlag:G,dirs:Z}=S;if(F!=null&&ds(F,null,k,S,!0),Q&256){T.ctx.deactivate(S);return}var fe=Q&1&&Z,Be=!ss(S),Ae;if(Be&&(Ae=j&&j.onVnodeBeforeUnmount)&&Et(Ae,T,S),Q&6)xe(S.component,k,P);else{if(Q&128){S.suspense.unmount(k,P);return}fe&&dr(S,null,T,"beforeUnmount"),Q&64?S.type.remove(S,T,k,N,Ne,P):D&&($!==xt||G>0&&G&64)?we(D,T,k,!1,!0):($===xt&&G&384||!N&&Q&16)&&we(z,T,k),P&&le(S)}(Be&&(Ae=j&&j.onVnodeUnmounted)||fe)&&Xe(()=>{Ae&&Et(Ae,T,S),fe&&dr(S,null,T,"unmounted")},k)},le=S=>{var{type:T,el:k,anchor:P,transition:N}=S;if(T===xt){J(k,P);return}if(T===gs){_(S);return}var $=()=>{a(k),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(S.shapeFlag&1&&N&&!N.persisted){var{leave:j,delayLeave:F}=N,z=()=>j(k,$);F?F(S.el,$,z):z()}else $()},J=(S,T)=>{for(var k;S!==T;)k=g(S),a(S),S=k;a(T)},xe=(S,T,k)=>{var{bum:P,scope:N,update:$,subTree:j,um:F}=S;P&&Io(P),N.stop(),$&&($.active=!1,he(j,S,T,k)),F&&Xe(F,T),Xe(()=>{S.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},we=function(S,T,k){for(var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,$=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,j=$;j<S.length;j++)he(S[j],T,k,P,N)},Ve=S=>S.shapeFlag&6?Ve(S.component.subTree):S.shapeFlag&128?S.suspense.next():g(S.anchor||S.el),sr=(S,T,k)=>{if(S==null)T._vnode&&he(T._vnode,null,null,!0);else{var P=T.__vueParent;w(T._vnode||null,S,T,null,P,null,k)}T._vnode=S},Ne={p:w,um:he,m:se,r:le,mt:H,mc:O,pc:K,pbc:R,n:Ve,o:e},va,da;return t&&([va,da]=t(Ne)),{render:sr,hydrate:va,createApp:t_(sr,va)}}function hr(e,t){var{effect:r,update:i}=e;r.allowRecurse=i.allowRecurse=t}function Wf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=e.children,a=t.children;if(ne(i)&&ne(a))for(var n=0;n<i.length;n++){var o=i[n],s=a[n];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[n]=Kt(a[n]),s.el=o.el),r||Wf(o,s))}}function a_(e){var t=e.slice(),r=[0],i,a,n,o,s,u=e.length;for(i=0;i<u;i++){var l=e[i];if(l!==0){if(a=r[r.length-1],e[a]<l){t[i]=a,r.push(i);continue}for(n=0,o=r.length-1;n<o;)s=n+o>>1,e[r[s]]<l?n=s+1:o=s;l<e[r[n]]&&(n>0&&(t[i]=r[n-1]),r[n]=i)}}for(n=r.length,o=r[n-1];n-- >0;)r[n]=o,o=t[o];return r}var n_=e=>e.__isTeleport,o_=Symbol(),xt=Symbol(void 0),hs=Symbol(void 0),Hr=Symbol(void 0),gs=Symbol(void 0),Vf=null,jf=1;function Yf(e){jf+=e}function en(e){return e?e.__v_isVNode===!0:!1}function ki(e,t){return e.type===t.type&&e.key===t.key}var tn="__vInternal",qf=e=>{var{key:t}=e;return t!=null?t:null},rn=e=>{var{ref:t,ref_key:r,ref_for:i}=e;return t!=null?Ee(t)||$e(t)||oe(t)?{i:dt,r:t,k:r,f:!!i}:t:null};function s_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e===xt?0:1,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qf(t),ref:t&&rn(t),scopeId:xf,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null};return s?(ps(u,r),n&128&&e.normalize(u)):r&&(u.shapeFlag|=Ee(r)?8:16),jf>0&&!o&&Vf&&(u.patchFlag>0||n&6)&&u.patchFlag!==32&&Vf.push(u),u}var I=l_;function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if((!e||e===o_)&&(e=Hr),en(e)){var o=Mi(e,t,!0);return r&&ps(o,r),o}if(b_(e)&&(e=e.__vccOpts),t){t=u_(t);var{class:s,style:u}=t;s&&!Ee(s)&&(t.class=yo(s)),We(u)&&(ff(u)&&!ne(u)&&(u=ce({},u)),t.style=wo(u))}var l=Ee(e)?1:M0(e)?128:n_(e)?64:We(e)?4:oe(e)?2:0;return s_(e,t,r,i,a,l,n,!0)}function u_(e){return e?ff(e)||tn in e?ce({},e):e:null}function Mi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{props:i,ref:a,patchFlag:n,children:o}=e,s=t?rt(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&qf(s),ref:t&&t.ref?r&&a?ne(a)?a.concat(rn(t)):[a,rn(t)]:rn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xt?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mi(e.ssContent),ssFallback:e.ssFallback&&Mi(e.ssFallback),el:e.el,anchor:e.anchor};return u}function f_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return I(hs,null,e,t)}function St(e){return e==null||typeof e=="boolean"?I(Hr):ne(e)?I(xt,null,e.slice()):typeof e=="object"?Kt(e):I(hs,null,String(e))}function Kt(e){return e.el===null||e.memo?e:Mi(e)}function ps(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(ne(t))r=16;else if(typeof t=="object")if(i&65){var a=t.default;a&&(a._c&&(a._d=!1),ps(e,a()),a._c&&(a._d=!0));return}else{r=32;var n=t._;!n&&!(tn in t)?t._ctx=dt:n===3&&dt&&(dt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:dt},r=32):(t=String(t),i&64?(r=16,t=[f_(t)]):r=8);e.children=t,e.shapeFlag|=r}function rt(){for(var e={},t=0;t<arguments.length;t++){var r=t<0||arguments.length<=t?void 0:arguments[t];for(var i in r)if(i==="class")e.class!==r.class&&(e.class=yo([e.class,r.class]));else if(i==="style")e.style=wo([e.style,r.style]);else if(Ma(i)){var a=e[i],n=r[i];n&&a!==n&&!(ne(a)&&a.includes(n))&&(e[i]=a?[].concat(a,n):n)}else i!==""&&(e[i]=r[i])}return e}function Et(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vt(e,t,7,[r,i])}var ms=e=>e?Xf(e)?nn(e)||e.proxy:ms(e.parent):null,an=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ms(e.parent),$root:e=>ms(e.root),$emit:e=>e.emit,$options:e=>Mf(e),$forceUpdate:e=>()=>pf(e.update),$nextTick:e=>Ur.bind(e.proxy),$watch:e=>P0.bind(e)}),c_={get(e,t){var{_:r}=e,{ctx:i,setupState:a,data:n,props:o,accessCache:s,type:u,appContext:l}=r,f;if(t[0]!=="$"){var v=s[t];if(v!==void 0)switch(v){case 1:return a[t];case 2:return n[t];case 4:return i[t];case 3:return o[t]}else{if(a!==Se&&ie(a,t))return s[t]=1,a[t];if(n!==Se&&ie(n,t))return s[t]=2,n[t];if((f=r.propsOptions[0])&&ie(f,t))return s[t]=3,o[t];if(i!==Se&&ie(i,t))return s[t]=4,i[t];us&&(s[t]=0)}}var g=an[t],h,y;if(g)return t==="$attrs"&&et(r,"get",t),g(r);if((h=u.__cssModules)&&(h=h[t]))return h;if(i!==Se&&ie(i,t))return s[t]=4,i[t];if(y=l.config.globalProperties,ie(y,t))return y[t]},set(e,t,r){var{_:i}=e,{data:a,setupState:n,ctx:o}=i;return n!==Se&&ie(n,t)?(n[t]=r,!0):a!==Se&&ie(a,t)?(a[t]=r,!0):ie(i.props,t)||t[0]==="$"&&t.slice(1)in i?!1:(o[t]=r,!0)},has(e,t){var{_:{data:r,setupState:i,accessCache:a,ctx:n,appContext:o,propsOptions:s}}=e,u;return!!a[t]||r!==Se&&ie(r,t)||i!==Se&&ie(i,t)||(u=s[0])&&ie(u,t)||ie(n,t)||ie(an,t)||ie(o.config.globalProperties,t)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ie(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},v_=Hf(),d_=0;function h_(e,t,r){var i=e.type,a=(t?t.appContext:e.appContext)||v_,n={uid:d_++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Um(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pf(i,a),emitsOptions:yf(i,a),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:i.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return n.ctx={_:n},n.root=t?t.root:n,n.emit=T0.bind(null,n),e.ce&&e.ce(n),n}var Ue=null,Dt=()=>Ue||dt,Wr=e=>{Ue=e,e.scope.on()},gr=()=>{Ue&&Ue.scope.off(),Ue=null};function Xf(e){return e.vnode.shapeFlag&4}var Ri=!1;function g_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ri=t;var{props:r,children:i}=e.vnode,a=Xf(e);Z0(e,r,a,t),J0(e,i);var n=a?p_(e,t):void 0;return Ri=!1,n}function p_(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=qa(new Proxy(e.ctx,c_));var{setup:i}=r;if(i){var a=e.setupContext=i.length>1?__(e):null;Wr(e),Dr();var n=qt(i,e,0,[e.props,a]);if(Br(),gr(),bu(n)){if(n.then(gr,gr),t)return n.then(o=>{Zf(e,o,t)}).catch(o=>{Xa(o,e,0)});e.asyncDep=n}else Zf(e,n,t)}else Gf(e,t)}function Zf(e,t,r){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=hf(t)),Gf(e,r)}var Kf;function Gf(e,t,r){var i=e.type;if(!e.render){if(!t&&Kf&&!i.render){var a=i.template;if(a){var{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:u}=i,l=ce(ce({isCustomElement:n,delimiters:s},o),u);i.render=Kf(a,l)}}e.render=i.render||mt}Wr(e),Dr(),V0(e),Br(),gr()}function m_(e){return new Proxy(e.attrs,{get(t,r){return et(e,"get","$attrs"),t[r]}})}function __(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=m_(e))},slots:e.slots,emit:e.emit,expose:t}}function nn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(hf(qa(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in an)return an[r](e)}}))}function b_(e){return oe(e)&&"__vccOpts"in e}var ee=(e,t)=>b0(e,t,Ri);function w_(e,t,r){var i=arguments.length;return i===2?We(t)&&!ne(t)?en(t)?I(e,null,[t]):I(e,t):I(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&en(r)&&(r=[r]),I(e,t,r))}var y_="3.2.33",x_="http://www.w3.org/2000/svg",pr=typeof document!="undefined"?document:null,Jf=pr&&pr.createElement("template"),S_={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var a=t?pr.createElementNS(x_,e):pr.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:e=>pr.createTextNode(e),createComment:e=>pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i,a,n){var o=r?r.previousSibling:t.lastChild;if(a&&(a===n||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===n||!(a=a.nextSibling)););else{Jf.innerHTML=i?"<svg>".concat(e,"</svg>"):e;var s=Jf.content;if(i){for(var u=s.firstChild;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function E_(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function T_(e,t,r){var i=e.style,a=Ee(r);if(r&&!a){for(var n in r)_s(i,n,r[n]);if(t&&!Ee(t))for(var o in t)r[o]==null&&_s(i,o,"")}else{var s=i.display;a?t!==r&&(i.cssText=normalizeStyleValue(r)):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=s)}}var Qf=/\s*!important$/;function _s(e,t,r){if(ne(r))r.forEach(a=>_s(e,t,a));else if(r==null&&(r=""),r=normalizeStyleValue(r),t.startsWith("--"))e.setProperty(t,r);else{var i=normalizeStyleName(e,t);Qf.test(r)?e.setProperty(Je(i),r.replace(Qf,""),"important"):e[i]=r}}var ec="http://www.w3.org/1999/xlink";function C_(e,t,r,i,a){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(ec,t.slice(6,t.length)):e.setAttributeNS(ec,t,r);else{var n=dp(t);r==null||n&&!mu(r)?e.removeAttribute(t):e.setAttribute(t,n?"":r)}}function O_(e,t,r,i,a,n,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,a,n),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;var s=r==null?"":r;(e.value!==s||e.tagName==="OPTION")&&(e.value=s),r==null&&e.removeAttribute(t);return}var u=!1;if(r===""||r==null){var l=typeof e[t];l==="boolean"?r=mu(r):r==null&&l==="string"?(r="",u=!0):l==="number"&&(r=0,u=!0)}try{e[t]=r}catch(f){}u&&e.removeAttribute(t)}var[tc,A_]=(()=>{var e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());var r=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(r&&Number(r[1])<=53)}return[e,t]})(),bs=0,I_=Promise.resolve(),k_=()=>{bs=0},M_=()=>bs||(I_.then(k_),bs=tc());function R_(e,t,r,i){e.addEventListener(t,r,i)}function L_(e,t,r,i){e.removeEventListener(t,r,i)}function P_(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,n=e._vei||(e._vei={}),o=n[t];if(i&&o)o.value=i;else{var[s,u]=N_(t);if(i){var l=n[t]=D_(i,a);R_(e,s,l,u)}else o&&(L_(e,s,o,u),n[t]=void 0)}}var rc=/(?:Once|Passive|Capture)$/;function N_(e){var t;if(rc.test(e)){t={};for(var r;r=e.match(rc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Je(e.slice(2)),t]}function D_(e,t){var r=i=>{var a=i.timeStamp||tc();(A_||a>=r.attached-1)&&vt(B_(i,r.value),t,5,[i])};return r.value=e,r.attached=M_(),r}function B_(e,t){if(ne(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>a=>!a._stopped&&i&&i(a))}else return t}var ic=/^on[a-z]/,F_=function(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,n=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0;t==="class"?E_(e,i,a):t==="style"?T_(e,r,i):Ma(t)?xo(t)||P_(e,t,r,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$_(e,t,i,a))?O_(e,t,i,n,o,s,u):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),C_(e,t,i,a))};function $_(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&ic.test(t)&&oe(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ic.test(t)&&Ee(r)?!1:t in e}var z_=["ctrl","shift","alt","meta"],U_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>z_.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},ws=(e,t)=>function(r){for(var i=0;i<t.length;i++){var a=U_[t[i]];if(a&&a(r,t))return}for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return e(r,...o)},Li={beforeMount(e,t,r){var{value:i}=t,{transition:a}=r;e._vod=e.style.display==="none"?"":e.style.display,a&&i?a.beforeEnter(e):Pi(e,i)},mounted(e,t,r){var{value:i}=t,{transition:a}=r;a&&i&&a.enter(e)},updated(e,t,r){var{value:i,oldValue:a}=t,{transition:n}=r;!i!=!a&&(n?i?(n.beforeEnter(e),Pi(e,!0),n.enter(e)):n.leave(e,()=>{Pi(e,!1)}):Pi(e,i))},beforeUnmount(e,t){var{value:r}=t;Pi(e,r)}};function Pi(e,t){e.style.display=t?e._vod:"none"}var H_=ce({patchProp:F_},S_),ac;function W_(){return ac||(ac=r_(H_))}var nc=function(){var e=W_().createApp(...arguments),{mount:t}=e;return e.mount=r=>{var i=V_(r);if(!!i){var a=e._component;!oe(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";var n=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),n}},e};function V_(e){if(Ee(e)){var t=document.querySelector(e);return t}return e}var oc=["top","left","right","bottom"],ys,on={},ot;function xs(){return!("CSS"in window)||typeof CSS.supports!="function"?ot="":CSS.supports("top: env(safe-area-inset-top)")?ot="env":CSS.supports("top: constant(safe-area-inset-top)")?ot="constant":ot="",ot}function sc(){if(ot=typeof ot=="string"?ot:xs(),!ot){oc.forEach(function(s){on[s]=0});return}function e(s,u){var l=s.style;Object.keys(u).forEach(function(f){var v=u[f];l[f]=v})}var t=[];function r(s){s?t.push(s):t.forEach(function(u){u()})}var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,a)}catch(s){}function n(s,u){var l=document.createElement("div"),f=document.createElement("div"),v=document.createElement("div"),g=document.createElement("div"),h=100,y=1e4,m={position:"absolute",width:h+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:ot+"(safe-area-inset-"+u+")"};e(l,m),e(f,m),e(v,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(g,{transition:"0s",animation:"none",width:"250%",height:"250%"}),l.appendChild(v),f.appendChild(g),s.appendChild(l),s.appendChild(f),r(function(){l.scrollTop=f.scrollTop=y;var p=l.scrollTop,b=f.scrollTop;function c(){this.scrollTop!==(this===l?p:b)&&(l.scrollTop=f.scrollTop=y,p=l.scrollTop,b=f.scrollTop,j_(u))}l.addEventListener("scroll",c,i),f.addEventListener("scroll",c,i)});var w=getComputedStyle(l);Object.defineProperty(on,u,{configurable:!0,get:function(){return parseFloat(w.paddingBottom)}})}var o=document.createElement("div");e(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),oc.forEach(function(s){n(o,s)}),document.body.appendChild(o),r(),ys=!0}function sn(e){return ys||sc(),on[e]}var ln=[];function j_(e){ln.length||setTimeout(function(){var t={};ln.forEach(function(r){t[r]=on[r]}),ln.length=0,un.forEach(function(r){r(t)})},0),ln.push(e)}var un=[];function Y_(e){!xs()||(ys||sc(),typeof e=="function"&&un.push(e))}function q_(e){var t=un.indexOf(e);t>=0&&un.splice(t,1)}var X_={get support(){return(typeof ot=="string"?ot:xs()).length!=0},get top(){return sn("top")},get left(){return sn("left")},get right(){return sn("right")},get bottom(){return sn("bottom")},onChange:Y_,offChange:q_},fn=X_,lc=ws(()=>{},["prevent"]);function cn(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Ss(){var e=document.documentElement.style,t=cn(e,"--window-top");return t?t+fn.top:0}function Z_(){var e=document.documentElement.style,t=Ss(),r=cn(e,"--window-bottom"),i=cn(e,"--window-left"),a=cn(e,"--window-right");return{top:t,bottom:r?r+fn.bottom:0,left:i?i+fn.left:0,right:a?a+fn.right:0}}function K_(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function vn(e){return Symbol(e)}function uc(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t)return G_(e);if(typeof e=="string"){var r=parseInt(e)||0;return uc(e)?uni.upx2px(r):r}return e}function G_(e){return uc(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var J_="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",Q_="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",eb="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",tb="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",rb="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",dn="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",ib="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",ab="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",nb="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function hn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#000",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:27;return I("svg",{width:r,height:r,viewBox:"0 0 32 32"},[I("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function gn(){return Gt()}function ob(){return window.__PAGE_INFO__}function Gt(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function sb(e){e.preventDefault()}var fc,cc=0;function lb(e){var{onPageScroll:t,onReachBottom:r,onReachBottomDistance:i}=e,a=!1,n=!1,o=!0,s=()=>{var{scrollHeight:l}=document.documentElement,f=window.innerHeight,v=window.scrollY,g=v>0&&l>f&&v+f+i>=l,h=Math.abs(l-cc)>i;return g&&(!n||h)?(cc=l,n=!0,!0):(!g&&n&&(n=!1),!1)},u=()=>{t&&t(window.pageYOffset);function l(){if(s())return r&&r(),o=!1,setTimeout(function(){o=!0},350),!0}r&&o&&(l()||(fc=setTimeout(l,300))),a=!1};return function(){clearTimeout(fc),a||requestAnimationFrame(u),a=!0}}function Es(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Es(e,t.slice(2));for(var r=t.split("/"),i=r.length,a=0;a<i&&r[a]==="..";a++);r.splice(0,a),t=r.join("/");var n=e.length>0?e.split("/"):[];return n.splice(n.length-a-1,a+1),Ro(n.concat(r).join("/"))}var jr,vc,Yr;function dc(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function hc(){return jr.webview.currentWebview().id}var pn,Ts,Cs={};function Os(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=Cs[r];i&&i(t),t.keep||delete Cs[r]}}function ub(e,t){dc()==="v8"?Yr?(pn&&pn.close(),pn=new Yr(hc()),pn.onmessage=Os):Ts||(Ts=vc.requireModule("globalEvent"),Ts.addEventListener("plusMessage",Os)):window.__plusMessage=Os,Cs[e]=t}class fb{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(Yr){var a=new Yr(i);a.postMessage(r)}else jr.webview.postMessageToUniNView&&jr.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function cb(e){var{context:t={},url:r,data:i={},style:a={},onMessage:n,onClose:o}=e;jr=t.plus||plus,vc=t.weex||(typeof weex=="object"?weex:null),Yr=t.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var s={autoBackButton:!0,titleSize:"17px"},u="page".concat(Date.now());a=ce({},a),a.titleNView!==!1&&a.titleNView!=="none"&&(a.titleNView=ce(s,a.titleNView));var l={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"/".concat(r,".js"),defaultFontSize:16,viewport:jr.screen.resolutionWidth}};a=ce(l,a);var f=jr.webview.create("",u,a,{extras:{from:hc(),runtime:dc(),data:i,useGlobalEvent:!Yr}});return f.addEventListener("close",o),ub(u,v=>{typeof n=="function"&&n(v.data),v.keep||f.close("auto")}),f.show(a.animationType,a.animationDuration),new fb(f)}class vb{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=gc(this.$el.querySelector(t));if(!!r)return As(r)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),a=0;a<i.length;a++){var n=gc(i[a]);n&&r.push(As(n))}return r}forceUpdate(t){t==="class"?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():t==="style"&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){var{__wxsAddClass:t}=this.$el;t.length&&(this.$el.className=t.join(" "))}updateWxsStyle(){var{__wxsStyle:t}=this.$el;t&&this.$el.setAttribute("style",mp(t))}setStyle(t){return!this.$el||!t?this:(typeof t=="string"&&(t=_u(t)),_t(t)&&(this.$el.__wxsStyle=t,this.forceUpdate("style")),this)}addClass(t){if(!this.$el||!t)return this;var r=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return r.indexOf(t)===-1&&(r.push(t),this.forceUpdate("class")),this}removeClass(t){if(!this.$el||!t)return this;var{__wxsAddClass:r}=this.$el;if(r){var i=r.indexOf(t);i>-1&&r.splice(i,1)}var a=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return a.indexOf(t)===-1&&(a.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.$vm[t];oe(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(Lp,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,a)=>(i[a]=r[a],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function As(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new vb(e)),e.$el.__wxsComponentDescriptor}function Ni(e,t){return As(e)}function gc(e){if(!!e)return qr(e)}function qr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:a,__wxsClassChanged:n}=e,o,s;a&&(e.__wxsStyleChanged=!1,t&&(s=()=>{Object.keys(t).forEach(u=>{e.style[u]=t[u]})})),n&&(e.__wxsClassChanged=!1,o=()=>{i&&i.forEach(u=>{e.classList.remove(u)}),r&&r.forEach(u=>{e.classList.add(u)})}),requestAnimationFrame(()=>{o&&o(),s&&s()})}})}var db=e=>e.type==="click";function pc(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];var a=i.tagName.indexOf("UNI-")!==0,n=mc(e,a);if(db(e))gb(n,e);else if(e instanceof TouchEvent){var o=Ss();n.touches=_c(e.touches,o),n.changedTouches=_c(e.changedTouches,o)}return[n]}function hb(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function mc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,{type:r,timeStamp:i,target:a,currentTarget:n}=e,o={type:r,timeStamp:i,target:Po(t?a:hb(a)),detail:{},currentTarget:Po(n)};return e._stopped&&(o._stopped=!0),e.type.startsWith("touch")&&(o.touches=e.touches,o.changedTouches=e.changedTouches),o}function gb(e,t){var{x:r,y:i}=t,a=Ss();e.detail={x:r,y:i-a},e.touches=e.changedTouches=[pb(t,a)]}function pb(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function _c(e,t){for(var r=[],i=0;i<e.length;i++){var{identifier:a,pageX:n,pageY:o,clientX:s,clientY:u,force:l}=e[i];r.push({identifier:a,pageX:n,pageY:o-t,clientX:s,clientY:u-t,force:l||0})}return r}var bc="vdSync",mb="__uniapp__service",Is="onWebviewReady",_b=0,bb="webviewInserted",wb="webviewRemoved",yb="webviewId",xb="setLocale",wc=ce(km,{publishHandler:Sb});function Sb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Gt()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:r}},mb)}function Eb(e,t){var r=e[0];if(!(!t||!_t(t.formatArgs)&&_t(r)))for(var i=t.formatArgs,a=Object.keys(i),n=0;n<a.length;n++){var o=a[n],s=i[o];if(oe(s)){var u=s(e[0][o],r);if(Ee(u))return u}else ie(r,o)||(r[o]=s)}}function Tb(e,t,r,i){if(i&&i.beforeInvoke){var a=i.beforeInvoke(t);if(Ee(a))return a}var n=Eb(t,i);if(n)return n}function Cb(e,t,r,i){return function(){for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];var s=Tb(e,n,r,i);if(s)throw new Error(s);return t.apply(null,n)}}function Ob(e,t,r,i){return Cb(e,t,void 0,i)}function yc(){if(typeof __SYSTEM_INFO__!="undefined")return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize()||{resolutionWidth:0};return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}function st(e){if(e.indexOf("//")===0)return"https:"+e;if(Op.test(e)||Ap.test(e))return e;if(Ab(e))return"file://"+xc(e);var t="file://"+xc("_www");if(e.indexOf("/")===0)return e.startsWith("/storage/")||e.startsWith("/sdcard/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(e.indexOf("../")===0||e.indexOf("./")===0){if(typeof __id__=="string")return t+Es(Ro(__id__),e);var r=ob();if(r)return t+Es(Ro(r.route),e)}return e}var xc=Np(e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Ab(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}var Ib=0;function kb(e,t,r){var i="".concat(Date.now()).concat(Ib++),a=e.split(","),n=a[0],o=a[1],s=(n.match(/data:image\/(\S+?);/)||["","png"])[1].replace("jpeg","jpg"),u="".concat(i,".").concat(s),l="".concat(t,"/").concat(u),f=t.indexOf("/"),v=t.substring(0,f),g=t.substring(f+1);plus.io.resolveLocalFileSystemURL(v,function(h){h.getDirectory(g,{create:!0,exclusive:!1},function(y){y.getFile(u,{create:!0,exclusive:!1},function(m){m.createWriter(function(w){w.onwrite=function(){r(null,l)},w.onerror=r,w.seek(0),w.writeAsBinary(o)},r)},r)},r)},r)}function Mb(e){return new Promise(function(t,r){function i(){var a=new plus.nativeObj.Bitmap("bitmap_".concat(Date.now(),"_").concat(Math.random(),"}"));a.load(e,function(){t(a.toBase64Data()),a.clear()},function(n){a.clear(),r(n)})}plus.io.resolveLocalFileSystemURL(e,function(a){a.file(function(n){var o=new plus.io.FileReader;o.onload=function(s){t(s.target.result)},o.onerror=i,o.readAsDataURL(n)},i)},i)})}function Rb(e){return new Promise(function(t,r){if(e.indexOf("http://")!==0&&e.indexOf("https://")!==0){t(e);return}plus.downloader.createDownload(e,{filename:"_doc/uniapp_temp/download/"},function(i,a){a===200?t(i.filename):r(new Error("network fail"))}).start()})}function Lb(e){return Rb(e).then(function(t){var r=window;return r.webkit&&r.webkit.messageHandlers?Mb(t):plus.io.convertLocalFileSystemURL(t)})}var Bt={};(function(e){var t=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function r(n,o){return Object.prototype.hasOwnProperty.call(n,o)}e.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(!!s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var u in s)r(s,u)&&(n[u]=s[u])}}return n},e.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var i={arraySet:function(n,o,s,u,l){if(o.subarray&&n.subarray){n.set(o.subarray(s,s+u),l);return}for(var f=0;f<u;f++)n[l+f]=o[s+f]},flattenChunks:function(n){var o,s,u,l,f,v;for(u=0,o=0,s=n.length;o<s;o++)u+=n[o].length;for(v=new Uint8Array(u),l=0,o=0,s=n.length;o<s;o++)f=n[o],v.set(f,l),l+=f.length;return v}},a={arraySet:function(n,o,s,u,l){for(var f=0;f<u;f++)n[l+f]=o[s+f]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(Bt);var Di={},Tt={},Xr={},Pb=Bt,Nb=4,Sc=0,Ec=1,Db=2;function Zr(e){for(var t=e.length;--t>=0;)e[t]=0}var Bb=0,Tc=1,Fb=2,$b=3,zb=258,ks=29,Bi=256,Fi=Bi+1+ks,Kr=30,Ms=19,Cc=2*Fi+1,mr=15,Rs=16,Ub=7,Ls=256,Oc=16,Ac=17,Ic=18,Ps=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],mn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Hb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],kc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Wb=512,Ft=new Array((Fi+2)*2);Zr(Ft);var $i=new Array(Kr*2);Zr($i);var zi=new Array(Wb);Zr(zi);var Ui=new Array(zb-$b+1);Zr(Ui);var Ns=new Array(ks);Zr(Ns);var _n=new Array(Kr);Zr(_n);function Ds(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var Mc,Rc,Lc;function Bs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Pc(e){return e<256?zi[e]:zi[256+(e>>>7)]}function Hi(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Ze(e,t,r){e.bi_valid>Rs-r?(e.bi_buf|=t<<e.bi_valid&65535,Hi(e,e.bi_buf),e.bi_buf=t>>Rs-e.bi_valid,e.bi_valid+=r-Rs):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Ct(e,t,r){Ze(e,r[t*2],r[t*2+1])}function Nc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Vb(e){e.bi_valid===16?(Hi(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function jb(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,n=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,l,f,v,g,h,y,m=0;for(g=0;g<=mr;g++)e.bl_count[g]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Cc;l++)f=e.heap[l],g=r[r[f*2+1]*2+1]+1,g>u&&(g=u,m++),r[f*2+1]=g,!(f>i)&&(e.bl_count[g]++,h=0,f>=s&&(h=o[f-s]),y=r[f*2],e.opt_len+=y*(g+h),n&&(e.static_len+=y*(a[f*2+1]+h)));if(m!==0){do{for(g=u-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[u]--,m-=2}while(m>0);for(g=u;g!==0;g--)for(f=e.bl_count[g];f!==0;)v=e.heap[--l],!(v>i)&&(r[v*2+1]!==g&&(e.opt_len+=(g-r[v*2+1])*r[v*2],r[v*2+1]=g),f--)}}function Dc(e,t,r){var i=new Array(mr+1),a=0,n,o;for(n=1;n<=mr;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=Nc(i[s]++,s))}}function Yb(){var e,t,r,i,a,n=new Array(mr+1);for(r=0,i=0;i<ks-1;i++)for(Ns[i]=r,e=0;e<1<<Ps[i];e++)Ui[r++]=i;for(Ui[r-1]=i,a=0,i=0;i<16;i++)for(_n[i]=a,e=0;e<1<<mn[i];e++)zi[a++]=i;for(a>>=7;i<Kr;i++)for(_n[i]=a<<7,e=0;e<1<<mn[i]-7;e++)zi[256+a++]=i;for(t=0;t<=mr;t++)n[t]=0;for(e=0;e<=143;)Ft[e*2+1]=8,e++,n[8]++;for(;e<=255;)Ft[e*2+1]=9,e++,n[9]++;for(;e<=279;)Ft[e*2+1]=7,e++,n[7]++;for(;e<=287;)Ft[e*2+1]=8,e++,n[8]++;for(Dc(Ft,Fi+1,n),e=0;e<Kr;e++)$i[e*2+1]=5,$i[e*2]=Nc(e,5);Mc=new Ds(Ft,Ps,Bi+1,Fi,mr),Rc=new Ds($i,mn,0,Kr,mr),Lc=new Ds(new Array(0),Hb,0,Ms,Ub)}function Bc(e){var t;for(t=0;t<Fi;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Kr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ms;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ls*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Fc(e){e.bi_valid>8?Hi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function qb(e,t,r,i){Fc(e),i&&(Hi(e,r),Hi(e,~r)),Pb.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function $c(e,t,r,i){var a=t*2,n=r*2;return e[a]<e[n]||e[a]===e[n]&&i[t]<=i[r]}function Fs(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&$c(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!$c(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function zc(e,t,r){var i,a,n=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],a=e.pending_buf[e.l_buf+n],n++,i===0?Ct(e,a,t):(o=Ui[a],Ct(e,o+Bi+1,t),s=Ps[o],s!==0&&(a-=Ns[o],Ze(e,a,s)),i--,o=Pc(i),Ct(e,o,r),s=mn[o],s!==0&&(i-=_n[o],Ze(e,i,s)));while(n<e.last_lit);Ct(e,Ls,t)}function $s(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,n=t.stat_desc.elems,o,s,u=-1,l;for(e.heap_len=0,e.heap_max=Cc,o=0;o<n;o++)r[o*2]!==0?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=u<2?++u:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,a&&(e.static_len-=i[l*2+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)Fs(e,r,o);l=n;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Fs(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[l*2]=r[o*2]+r[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=l,e.heap[1]=l++,Fs(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],jb(e,t),Dc(r,u,e.bl_count)}function Uc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)n=o,o=t[(i+1)*2+1],!(++s<u&&n===o)&&(s<l?e.bl_tree[n*2]+=s:n!==0?(n!==a&&e.bl_tree[n*2]++,e.bl_tree[Oc*2]++):s<=10?e.bl_tree[Ac*2]++:e.bl_tree[Ic*2]++,s=0,a=n,o===0?(u=138,l=3):n===o?(u=6,l=3):(u=7,l=4))}function Hc(e,t,r){var i,a=-1,n,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),i=0;i<=r;i++)if(n=o,o=t[(i+1)*2+1],!(++s<u&&n===o)){if(s<l)do Ct(e,n,e.bl_tree);while(--s!==0);else n!==0?(n!==a&&(Ct(e,n,e.bl_tree),s--),Ct(e,Oc,e.bl_tree),Ze(e,s-3,2)):s<=10?(Ct(e,Ac,e.bl_tree),Ze(e,s-3,3)):(Ct(e,Ic,e.bl_tree),Ze(e,s-11,7));s=0,a=n,o===0?(u=138,l=3):n===o?(u=6,l=3):(u=7,l=4)}}function Xb(e){var t;for(Uc(e,e.dyn_ltree,e.l_desc.max_code),Uc(e,e.dyn_dtree,e.d_desc.max_code),$s(e,e.bl_desc),t=Ms-1;t>=3&&e.bl_tree[kc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Zb(e,t,r,i){var a;for(Ze(e,t-257,5),Ze(e,r-1,5),Ze(e,i-4,4),a=0;a<i;a++)Ze(e,e.bl_tree[kc[a]*2+1],3);Hc(e,e.dyn_ltree,t-1),Hc(e,e.dyn_dtree,r-1)}function Kb(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Sc;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ec;for(r=32;r<Bi;r++)if(e.dyn_ltree[r*2]!==0)return Ec;return Sc}var Wc=!1;function Gb(e){Wc||(Yb(),Wc=!0),e.l_desc=new Bs(e.dyn_ltree,Mc),e.d_desc=new Bs(e.dyn_dtree,Rc),e.bl_desc=new Bs(e.bl_tree,Lc),e.bi_buf=0,e.bi_valid=0,Bc(e)}function Vc(e,t,r,i){Ze(e,(Bb<<1)+(i?1:0),3),qb(e,t,r,!0)}function Jb(e){Ze(e,Tc<<1,3),Ct(e,Ls,Ft),Vb(e)}function Qb(e,t,r,i){var a,n,o=0;e.level>0?(e.strm.data_type===Db&&(e.strm.data_type=Kb(e)),$s(e,e.l_desc),$s(e,e.d_desc),o=Xb(e),a=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=a&&(a=n)):a=n=r+5,r+4<=a&&t!==-1?Vc(e,t,r,i):e.strategy===Nb||n===a?(Ze(e,(Tc<<1)+(i?1:0),3),zc(e,Ft,$i)):(Ze(e,(Fb<<1)+(i?1:0),3),Zb(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),zc(e,e.dyn_ltree,e.dyn_dtree)),Bc(e),i&&Fc(e)}function ew(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Ui[r]+Bi+1)*2]++,e.dyn_dtree[Pc(t)*2]++),e.last_lit===e.lit_bufsize-1}Xr._tr_init=Gb,Xr._tr_stored_block=Vc,Xr._tr_flush_block=Qb,Xr._tr_tally=ew,Xr._tr_align=Jb;function tw(e,t,r,i){for(var a=e&65535|0,n=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do a=a+t[i++]|0,n=n+a|0;while(--o);a%=65521,n%=65521}return a|n<<16|0}var jc=tw;function rw(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var iw=rw();function aw(e,t,r,i){var a=iw,n=i+r;e^=-1;for(var o=i;o<n;o++)e=e>>>8^a[(e^t[o])&255];return e^-1}var Yc=aw,zs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},qe=Bt,lt=Xr,qc=jc,Jt=Yc,nw=zs,_r=0,ow=1,sw=3,Qt=4,Xc=5,Ot=0,Zc=1,ut=-2,lw=-3,Us=-5,uw=-1,fw=1,bn=2,cw=3,vw=4,dw=0,hw=2,wn=8,gw=9,pw=15,mw=8,_w=29,bw=256,Hs=bw+1+_w,ww=30,yw=19,xw=2*Hs+1,Sw=15,ve=3,er=258,ht=er+ve+1,Ew=32,yn=42,Ws=69,xn=73,Sn=91,En=103,br=113,Wi=666,Pe=1,Vi=2,wr=3,Gr=4,Tw=3;function tr(e,t){return e.msg=nw[t],t}function Kc(e){return(e<<1)-(e>4?9:0)}function rr(e){for(var t=e.length;--t>=0;)e[t]=0}function ir(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(qe.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function He(e,t){lt._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ir(e.strm)}function pe(e,t){e.pending_buf[e.pending++]=t}function ji(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Cw(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,qe.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=qc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Jt(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function Gc(e,t){var r=e.max_chain_length,i=e.strstart,a,n,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-ht?e.strstart-(e.w_size-ht):0,l=e.window,f=e.w_mask,v=e.prev,g=e.strstart+er,h=l[i+o-1],y=l[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(l[a+o]!==y||l[a+o-1]!==h||l[a]!==l[i]||l[++a]!==l[i+1])){i+=2,a++;do;while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<g);if(n=er-(g-i),i=g-er,n>o){if(e.match_start=t,o=n,n>=s)break;h=l[i+o-1],y=l[i+o]}}while((t=v[t&f])>u&&--r!==0);return o<=e.lookahead?o:e.lookahead}function yr(e){var t=e.w_size,r,i,a,n,o;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ht)){qe.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);n+=t}if(e.strm.avail_in===0)break;if(i=Cw(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=i,e.lookahead+e.insert>=ve)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+ve-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<ve)););}while(e.lookahead<ht&&e.strm.avail_in!==0)}function Ow(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(yr(e),e.lookahead===0&&t===_r)return Pe;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,He(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-ht&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):(e.strstart>e.block_start&&(He(e,!1),e.strm.avail_out===0),Pe)}function Vs(e,t){for(var r,i;;){if(e.lookahead<ht){if(yr(e),e.lookahead<ht&&t===_r)return Pe;if(e.lookahead===0)break}if(r=0,e.lookahead>=ve&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ve-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-ht&&(e.match_length=Gc(e,r)),e.match_length>=ve)if(i=lt._tr_tally(e,e.strstart-e.match_start,e.match_length-ve),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ve){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ve-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=lt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=e.strstart<ve-1?e.strstart:ve-1,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function Jr(e,t){for(var r,i,a;;){if(e.lookahead<ht){if(yr(e),e.lookahead<ht&&t===_r)return Pe;if(e.lookahead===0)break}if(r=0,e.lookahead>=ve&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ve-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ve-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-ht&&(e.match_length=Gc(e,r),e.match_length<=5&&(e.strategy===fw||e.match_length===ve&&e.strstart-e.match_start>4096)&&(e.match_length=ve-1)),e.prev_length>=ve&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ve,i=lt._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ve),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ve-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ve-1,e.strstart++,i&&(He(e,!1),e.strm.avail_out===0))return Pe}else if(e.match_available){if(i=lt._tr_tally(e,0,e.window[e.strstart-1]),i&&He(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Pe}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=lt._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ve-1?e.strstart:ve-1,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function Aw(e,t){for(var r,i,a,n,o=e.window;;){if(e.lookahead<=er){if(yr(e),e.lookahead<=er&&t===_r)return Pe;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ve&&e.strstart>0&&(a=e.strstart-1,i=o[a],i===o[++a]&&i===o[++a]&&i===o[++a])){n=e.strstart+er;do;while(i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&a<n);e.match_length=er-(n-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ve?(r=lt._tr_tally(e,1,e.match_length-ve),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=lt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function Iw(e,t){for(var r;;){if(e.lookahead===0&&(yr(e),e.lookahead===0)){if(t===_r)return Pe;break}if(e.match_length=0,r=lt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(He(e,!1),e.strm.avail_out===0))return Pe}return e.insert=0,t===Qt?(He(e,!0),e.strm.avail_out===0?wr:Gr):e.last_lit&&(He(e,!1),e.strm.avail_out===0)?Pe:Vi}function At(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var Qr;Qr=[new At(0,0,0,0,Ow),new At(4,4,8,4,Vs),new At(4,5,16,8,Vs),new At(4,6,32,32,Vs),new At(4,4,16,16,Jr),new At(8,16,32,32,Jr),new At(8,16,128,128,Jr),new At(8,32,128,256,Jr),new At(32,128,258,1024,Jr),new At(32,258,258,4096,Jr)];function kw(e){e.window_size=2*e.w_size,rr(e.head),e.max_lazy_match=Qr[e.level].max_lazy,e.good_match=Qr[e.level].good_length,e.nice_match=Qr[e.level].nice_length,e.max_chain_length=Qr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ve-1,e.match_available=0,e.ins_h=0}function Mw(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=wn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new qe.Buf16(xw*2),this.dyn_dtree=new qe.Buf16((2*ww+1)*2),this.bl_tree=new qe.Buf16((2*yw+1)*2),rr(this.dyn_ltree),rr(this.dyn_dtree),rr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new qe.Buf16(Sw+1),this.heap=new qe.Buf16(2*Hs+1),rr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new qe.Buf16(2*Hs+1),rr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Jc(e){var t;return!e||!e.state?tr(e,ut):(e.total_in=e.total_out=0,e.data_type=hw,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?yn:br,e.adler=t.wrap===2?0:1,t.last_flush=_r,lt._tr_init(t),Ot)}function Qc(e){var t=Jc(e);return t===Ot&&kw(e.state),t}function Rw(e,t){return!e||!e.state||e.state.wrap!==2?ut:(e.state.gzhead=t,Ot)}function ev(e,t,r,i,a,n){if(!e)return ut;var o=1;if(t===uw&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),a<1||a>gw||r!==wn||i<8||i>15||t<0||t>9||n<0||n>vw)return tr(e,ut);i===8&&(i=9);var s=new Mw;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+ve-1)/ve),s.window=new qe.Buf8(s.w_size*2),s.head=new qe.Buf16(s.hash_size),s.prev=new qe.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new qe.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=(1+2)*s.lit_bufsize,s.level=t,s.strategy=n,s.method=r,Qc(e)}function Lw(e,t){return ev(e,t,wn,pw,mw,dw)}function Pw(e,t){var r,i,a,n;if(!e||!e.state||t>Xc||t<0)return e?tr(e,ut):ut;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Wi&&t!==Qt)return tr(e,e.avail_out===0?Us:ut);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===yn)if(i.wrap===2)e.adler=0,pe(i,31),pe(i,139),pe(i,8),i.gzhead?(pe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),pe(i,i.gzhead.time&255),pe(i,i.gzhead.time>>8&255),pe(i,i.gzhead.time>>16&255),pe(i,i.gzhead.time>>24&255),pe(i,i.level===9?2:i.strategy>=bn||i.level<2?4:0),pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(pe(i,i.gzhead.extra.length&255),pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Jt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Ws):(pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,0),pe(i,i.level===9?2:i.strategy>=bn||i.level<2?4:0),pe(i,Tw),i.status=br);else{var o=wn+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=bn||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=Ew),o+=31-o%31,i.status=br,ji(i,o),i.strstart!==0&&(ji(i,e.adler>>>16),ji(i,e.adler&65535)),e.adler=1}if(i.status===Ws)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size));)pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=xn)}else i.status=xn;if(i.status===xn)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.name.length?n=i.gzhead.name.charCodeAt(i.gzindex++)&255:n=0,pe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.gzindex=0,i.status=Sn)}else i.status=Sn;if(i.status===Sn)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),ir(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.comment.length?n=i.gzhead.comment.charCodeAt(i.gzindex++)&255:n=0,pe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Jt(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.status=En)}else i.status=En;if(i.status===En&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ir(e),i.pending+2<=i.pending_buf_size&&(pe(i,e.adler&255),pe(i,e.adler>>8&255),e.adler=0,i.status=br)):i.status=br),i.pending!==0){if(ir(e),e.avail_out===0)return i.last_flush=-1,Ot}else if(e.avail_in===0&&Kc(t)<=Kc(r)&&t!==Qt)return tr(e,Us);if(i.status===Wi&&e.avail_in!==0)return tr(e,Us);if(e.avail_in!==0||i.lookahead!==0||t!==_r&&i.status!==Wi){var u=i.strategy===bn?Iw(i,t):i.strategy===cw?Aw(i,t):Qr[i.level].func(i,t);if((u===wr||u===Gr)&&(i.status=Wi),u===Pe||u===wr)return e.avail_out===0&&(i.last_flush=-1),Ot;if(u===Vi&&(t===ow?lt._tr_align(i):t!==Xc&&(lt._tr_stored_block(i,0,0,!1),t===sw&&(rr(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ir(e),e.avail_out===0))return i.last_flush=-1,Ot}return t!==Qt?Ot:i.wrap<=0?Zc:(i.wrap===2?(pe(i,e.adler&255),pe(i,e.adler>>8&255),pe(i,e.adler>>16&255),pe(i,e.adler>>24&255),pe(i,e.total_in&255),pe(i,e.total_in>>8&255),pe(i,e.total_in>>16&255),pe(i,e.total_in>>24&255)):(ji(i,e.adler>>>16),ji(i,e.adler&65535)),ir(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Ot:Zc)}function Nw(e){var t;return!e||!e.state?ut:(t=e.state.status,t!==yn&&t!==Ws&&t!==xn&&t!==Sn&&t!==En&&t!==br&&t!==Wi?tr(e,ut):(e.state=null,t===br?tr(e,lw):Ot))}function Dw(e,t){var r=t.length,i,a,n,o,s,u,l,f;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==yn||i.lookahead))return ut;for(o===1&&(e.adler=qc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(rr(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new qe.Buf8(i.w_size),qe.arraySet(f,t,r-i.w_size,i.w_size,0),t=f,r=i.w_size),s=e.avail_in,u=e.next_in,l=e.input,e.avail_in=r,e.next_in=0,e.input=t,yr(i);i.lookahead>=ve;){a=i.strstart,n=i.lookahead-(ve-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+ve-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--n);i.strstart=a,i.lookahead=ve-1,yr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ve-1,i.match_available=0,e.next_in=u,e.input=l,e.avail_in=s,i.wrap=o,Ot}Tt.deflateInit=Lw,Tt.deflateInit2=ev,Tt.deflateReset=Qc,Tt.deflateResetKeep=Jc,Tt.deflateSetHeader=Rw,Tt.deflate=Pw,Tt.deflateEnd=Nw,Tt.deflateSetDictionary=Dw,Tt.deflateInfo="pako deflate (from Nodeca project)";var xr={},Tn=Bt,tv=!0,rv=!0;try{String.fromCharCode.apply(null,[0])}catch(e){tv=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){rv=!1}for(var Yi=new Tn.Buf8(256),ar=0;ar<256;ar++)Yi[ar]=ar>=252?6:ar>=248?5:ar>=240?4:ar>=224?3:ar>=192?2:1;Yi[254]=Yi[254]=1,xr.string2buf=function(e){var t,r,i,a,n,o=e.length,s=0;for(a=0;a<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<o&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Tn.Buf8(s),n=0,a=0;n<s;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<o&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[n++]=r:r<2048?(t[n++]=192|r>>>6,t[n++]=128|r&63):r<65536?(t[n++]=224|r>>>12,t[n++]=128|r>>>6&63,t[n++]=128|r&63):(t[n++]=240|r>>>18,t[n++]=128|r>>>12&63,t[n++]=128|r>>>6&63,t[n++]=128|r&63);return t};function iv(e,t){if(t<65534&&(e.subarray&&rv||!e.subarray&&tv))return String.fromCharCode.apply(null,Tn.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}xr.buf2binstring=function(e){return iv(e,e.length)},xr.binstring2buf=function(e){for(var t=new Tn.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},xr.buf2string=function(e,t){var r,i,a,n,o=t||e.length,s=new Array(o*2);for(i=0,r=0;r<o;){if(a=e[r++],a<128){s[i++]=a;continue}if(n=Yi[a],n>4){s[i++]=65533,r+=n-1;continue}for(a&=n===2?31:n===3?15:7;n>1&&r<o;)a=a<<6|e[r++]&63,n--;if(n>1){s[i++]=65533;continue}a<65536?s[i++]=a:(a-=65536,s[i++]=55296|a>>10&1023,s[i++]=56320|a&1023)}return iv(s,i)},xr.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Yi[e[r]]>t?r:t};function Bw(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var av=Bw,qi=Tt,Xi=Bt,js=xr,Ys=zs,Fw=av,nv=Object.prototype.toString,$w=0,qs=4,ei=0,ov=1,sv=2,zw=-1,Uw=0,Hw=8;function Sr(e){if(!(this instanceof Sr))return new Sr(e);this.options=Xi.assign({level:zw,method:Hw,chunkSize:16384,windowBits:15,memLevel:8,strategy:Uw,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Fw,this.strm.avail_out=0;var r=qi.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ei)throw new Error(Ys[r]);if(t.header&&qi.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=js.string2buf(t.dictionary):nv.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=qi.deflateSetDictionary(this.strm,i),r!==ei)throw new Error(Ys[r]);this._dict_set=!0}}Sr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,n;if(this.ended)return!1;n=t===~~t?t:t===!0?qs:$w,typeof e=="string"?r.input=js.string2buf(e):nv.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Xi.Buf8(i),r.next_out=0,r.avail_out=i),a=qi.deflate(r,n),a!==ov&&a!==ei)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(n===qs||n===sv))&&(this.options.to==="string"?this.onData(js.buf2binstring(Xi.shrinkBuf(r.output,r.next_out))):this.onData(Xi.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==ov);return n===qs?(a=qi.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ei):(n===sv&&(this.onEnd(ei),r.avail_out=0),!0)},Sr.prototype.onData=function(e){this.chunks.push(e)},Sr.prototype.onEnd=function(e){e===ei&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Xi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xs(e,t){var r=new Sr(t);if(r.push(e,!0),r.err)throw r.msg||Ys[r.err];return r.result}function Ww(e,t){return t=t||{},t.raw=!0,Xs(e,t)}function Vw(e,t){return t=t||{},t.gzip=!0,Xs(e,t)}Di.Deflate=Sr,Di.deflate=Xs,Di.deflateRaw=Ww,Di.gzip=Vw;var Zi={},gt={},Cn=30,jw=12,Yw=function(t,r){var i,a,n,o,s,u,l,f,v,g,h,y,m,w,p,b,c,d,_,x,E,C,O,M,R;i=t.state,a=t.next_in,M=t.input,n=a+(t.avail_in-5),o=t.next_out,R=t.output,s=o-(r-t.avail_out),u=o+(t.avail_out-257),l=i.dmax,f=i.wsize,v=i.whave,g=i.wnext,h=i.window,y=i.hold,m=i.bits,w=i.lencode,p=i.distcode,b=(1<<i.lenbits)-1,c=(1<<i.distbits)-1;e:do{m<15&&(y+=M[a++]<<m,m+=8,y+=M[a++]<<m,m+=8),d=w[y&b];t:for(;;){if(_=d>>>24,y>>>=_,m-=_,_=d>>>16&255,_===0)R[o++]=d&65535;else if(_&16){x=d&65535,_&=15,_&&(m<_&&(y+=M[a++]<<m,m+=8),x+=y&(1<<_)-1,y>>>=_,m-=_),m<15&&(y+=M[a++]<<m,m+=8,y+=M[a++]<<m,m+=8),d=p[y&c];r:for(;;){if(_=d>>>24,y>>>=_,m-=_,_=d>>>16&255,_&16){if(E=d&65535,_&=15,m<_&&(y+=M[a++]<<m,m+=8,m<_&&(y+=M[a++]<<m,m+=8)),E+=y&(1<<_)-1,E>l){t.msg="invalid distance too far back",i.mode=Cn;break e}if(y>>>=_,m-=_,_=o-s,E>_){if(_=E-_,_>v&&i.sane){t.msg="invalid distance too far back",i.mode=Cn;break e}if(C=0,O=h,g===0){if(C+=f-_,_<x){x-=_;do R[o++]=h[C++];while(--_);C=o-E,O=R}}else if(g<_){if(C+=f+g-_,_-=g,_<x){x-=_;do R[o++]=h[C++];while(--_);if(C=0,g<x){_=g,x-=_;do R[o++]=h[C++];while(--_);C=o-E,O=R}}}else if(C+=g-_,_<x){x-=_;do R[o++]=h[C++];while(--_);C=o-E,O=R}for(;x>2;)R[o++]=O[C++],R[o++]=O[C++],R[o++]=O[C++],x-=3;x&&(R[o++]=O[C++],x>1&&(R[o++]=O[C++]))}else{C=o-E;do R[o++]=R[C++],R[o++]=R[C++],R[o++]=R[C++],x-=3;while(x>2);x&&(R[o++]=R[C++],x>1&&(R[o++]=R[C++]))}}else if((_&64)===0){d=p[(d&65535)+(y&(1<<_)-1)];continue r}else{t.msg="invalid distance code",i.mode=Cn;break e}break}}else if((_&64)===0){d=w[(d&65535)+(y&(1<<_)-1)];continue t}else if(_&32){i.mode=jw;break e}else{t.msg="invalid literal/length code",i.mode=Cn;break e}break}}while(a<n&&o<u);x=m>>3,a-=x,m-=x<<3,y&=(1<<m)-1,t.next_in=a,t.next_out=o,t.avail_in=a<n?5+(n-a):5-(a-n),t.avail_out=o<u?257+(u-o):257-(o-u),i.hold=y,i.bits=m},lv=Bt,ti=15,uv=852,fv=592,cv=0,Zs=1,vv=2,qw=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Xw=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Zw=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Kw=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Gw=function(t,r,i,a,n,o,s,u){var l=u.bits,f=0,v=0,g=0,h=0,y=0,m=0,w=0,p=0,b=0,c=0,d,_,x,E,C,O=null,M=0,R,U=new lv.Buf16(ti+1),te=new lv.Buf16(ti+1),L=null,H=0,q,re,V;for(f=0;f<=ti;f++)U[f]=0;for(v=0;v<a;v++)U[r[i+v]]++;for(y=l,h=ti;h>=1&&U[h]===0;h--);if(y>h&&(y=h),h===0)return n[o++]=1<<24|64<<16|0,n[o++]=1<<24|64<<16|0,u.bits=1,0;for(g=1;g<h&&U[g]===0;g++);for(y<g&&(y=g),p=1,f=1;f<=ti;f++)if(p<<=1,p-=U[f],p<0)return-1;if(p>0&&(t===cv||h!==1))return-1;for(te[1]=0,f=1;f<ti;f++)te[f+1]=te[f]+U[f];for(v=0;v<a;v++)r[i+v]!==0&&(s[te[r[i+v]]++]=v);if(t===cv?(O=L=s,R=19):t===Zs?(O=qw,M-=257,L=Xw,H-=257,R=256):(O=Zw,L=Kw,R=-1),c=0,v=0,f=g,C=o,m=y,w=0,x=-1,b=1<<y,E=b-1,t===Zs&&b>uv||t===vv&&b>fv)return 1;for(;;){q=f-w,s[v]<R?(re=0,V=s[v]):s[v]>R?(re=L[H+s[v]],V=O[M+s[v]]):(re=32+64,V=0),d=1<<f-w,_=1<<m,g=_;do _-=d,n[C+(c>>w)+_]=q<<24|re<<16|V|0;while(_!==0);for(d=1<<f-1;c&d;)d>>=1;if(d!==0?(c&=d-1,c+=d):c=0,v++,--U[f]===0){if(f===h)break;f=r[i+s[v]]}if(f>y&&(c&E)!==x){for(w===0&&(w=y),C+=g,m=f-w,p=1<<m;m+w<h&&(p-=U[m+w],!(p<=0));)m++,p<<=1;if(b+=1<<m,t===Zs&&b>uv||t===vv&&b>fv)return 1;x=c&E,n[x]=y<<24|m<<16|C-o|0}}return c!==0&&(n[C+c]=f-w<<24|64<<16|0),u.bits=y,0},it=Bt,Ks=jc,It=Yc,Jw=Yw,Ki=Gw,Qw=0,dv=1,hv=2,gv=4,e1=5,On=6,Er=0,t1=1,r1=2,ft=-2,pv=-3,mv=-4,i1=-5,_v=8,bv=1,wv=2,yv=3,xv=4,Sv=5,Ev=6,Tv=7,Cv=8,Ov=9,Av=10,An=11,$t=12,Gs=13,Iv=14,Js=15,kv=16,Mv=17,Rv=18,Lv=19,In=20,kn=21,Pv=22,Nv=23,Dv=24,Bv=25,Fv=26,Qs=27,$v=28,zv=29,Oe=30,Uv=31,a1=32,n1=852,o1=592,s1=15,l1=s1;function Hv(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function u1(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new it.Buf16(320),this.work=new it.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Wv(e){var t;return!e||!e.state?ft:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=bv,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new it.Buf32(n1),t.distcode=t.distdyn=new it.Buf32(o1),t.sane=1,t.back=-1,Er)}function Vv(e){var t;return!e||!e.state?ft:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Wv(e))}function jv(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ft:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Vv(e))}function Yv(e,t){var r,i;return e?(i=new u1,e.state=i,i.window=null,r=jv(e,t),r!==Er&&(e.state=null),r):ft}function f1(e){return Yv(e,l1)}var qv=!0,el,tl;function c1(e){if(qv){var t;for(el=new it.Buf32(512),tl=new it.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ki(dv,e.lens,0,288,el,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ki(hv,e.lens,0,32,tl,0,e.work,{bits:5}),qv=!1}e.lencode=el,e.lenbits=9,e.distcode=tl,e.distbits=5}function Xv(e,t,r,i){var a,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new it.Buf8(n.wsize)),i>=n.wsize?(it.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a>i&&(a=i),it.arraySet(n.window,t,r-i,a,n.wnext),i-=a,i?(it.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=a))),0}function v1(e,t){var r,i,a,n,o,s,u,l,f,v,g,h,y,m,w=0,p,b,c,d,_,x,E,C,O=new it.Buf8(4),M,R,U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ft;r=e.state,r.mode===$t&&(r.mode=Gs),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,v=s,g=u,C=Er;e:for(;;)switch(r.mode){case bv:if(r.wrap===0){r.mode=Gs;break}for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.wrap&2&&l===35615){r.check=0,O[0]=l&255,O[1]=l>>>8&255,r.check=It(r.check,O,2,0),l=0,f=0,r.mode=wv;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Oe;break}if((l&15)!==_v){e.msg="unknown compression method",r.mode=Oe;break}if(l>>>=4,f-=4,E=(l&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=Oe;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=l&512?Av:$t,l=0,f=0;break;case wv:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.flags=l,(r.flags&255)!==_v){e.msg="unknown compression method",r.mode=Oe;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Oe;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=It(r.check,O,2,0)),l=0,f=0,r.mode=yv;case yv:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.head&&(r.head.time=l),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,r.check=It(r.check,O,4,0)),l=0,f=0,r.mode=xv;case xv:for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=It(r.check,O,2,0)),l=0,f=0,r.mode=Sv;case Sv:if(r.flags&1024){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,r.check=It(r.check,O,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=Ev;case Ev:if(r.flags&1024&&(h=r.length,h>s&&(h=s),h&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),it.arraySet(r.head.extra,i,n,h,E)),r.flags&512&&(r.check=It(r.check,i,h,n)),s-=h,n+=h,r.length-=h),r.length))break e;r.length=0,r.mode=Tv;case Tv:if(r.flags&2048){if(s===0)break e;h=0;do E=i[n+h++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&h<s);if(r.flags&512&&(r.check=It(r.check,i,h,n)),s-=h,n+=h,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Cv;case Cv:if(r.flags&4096){if(s===0)break e;h=0;do E=i[n+h++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&h<s);if(r.flags&512&&(r.check=It(r.check,i,h,n)),s-=h,n+=h,E)break e}else r.head&&(r.head.comment=null);r.mode=Ov;case Ov:if(r.flags&512){for(;f<16;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Oe;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=$t;break;case Av:for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}e.adler=r.check=Hv(l),l=0,f=0,r.mode=An;case An:if(r.havedict===0)return e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,r1;e.adler=r.check=1,r.mode=$t;case $t:if(t===e1||t===On)break e;case Gs:if(r.last){l>>>=f&7,f-=f&7,r.mode=Qs;break}for(;f<3;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}switch(r.last=l&1,l>>>=1,f-=1,l&3){case 0:r.mode=Iv;break;case 1:if(c1(r),r.mode=In,t===On){l>>>=2,f-=2;break e}break;case 2:r.mode=Mv;break;case 3:e.msg="invalid block type",r.mode=Oe}l>>>=2,f-=2;break;case Iv:for(l>>>=f&7,f-=f&7;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Oe;break}if(r.length=l&65535,l=0,f=0,r.mode=Js,t===On)break e;case Js:r.mode=kv;case kv:if(h=r.length,h){if(h>s&&(h=s),h>u&&(h=u),h===0)break e;it.arraySet(a,i,n,h,o),s-=h,n+=h,u-=h,o+=h,r.length-=h;break}r.mode=$t;break;case Mv:for(;f<14;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(r.nlen=(l&31)+257,l>>>=5,f-=5,r.ndist=(l&31)+1,l>>>=5,f-=5,r.ncode=(l&15)+4,l>>>=4,f-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Oe;break}r.have=0,r.mode=Rv;case Rv:for(;r.have<r.ncode;){for(;f<3;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.lens[U[r.have++]]=l&7,l>>>=3,f-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,M={bits:r.lenbits},C=Ki(Qw,r.lens,0,19,r.lencode,0,r.work,M),r.lenbits=M.bits,C){e.msg="invalid code lengths set",r.mode=Oe;break}r.have=0,r.mode=Lv;case Lv:for(;r.have<r.nlen+r.ndist;){for(;w=r.lencode[l&(1<<r.lenbits)-1],p=w>>>24,b=w>>>16&255,c=w&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(c<16)l>>>=p,f-=p,r.lens[r.have++]=c;else{if(c===16){for(R=p+2;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l>>>=p,f-=p,r.have===0){e.msg="invalid bit length repeat",r.mode=Oe;break}E=r.lens[r.have-1],h=3+(l&3),l>>>=2,f-=2}else if(c===17){for(R=p+3;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=p,f-=p,E=0,h=3+(l&7),l>>>=3,f-=3}else{for(R=p+7;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=p,f-=p,E=0,h=11+(l&127),l>>>=7,f-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Oe;break}for(;h--;)r.lens[r.have++]=E}}if(r.mode===Oe)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Oe;break}if(r.lenbits=9,M={bits:r.lenbits},C=Ki(dv,r.lens,0,r.nlen,r.lencode,0,r.work,M),r.lenbits=M.bits,C){e.msg="invalid literal/lengths set",r.mode=Oe;break}if(r.distbits=6,r.distcode=r.distdyn,M={bits:r.distbits},C=Ki(hv,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,M),r.distbits=M.bits,C){e.msg="invalid distances set",r.mode=Oe;break}if(r.mode=In,t===On)break e;case In:r.mode=kn;case kn:if(s>=6&&u>=258){e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,Jw(e,g),o=e.next_out,a=e.output,u=e.avail_out,n=e.next_in,i=e.input,s=e.avail_in,l=r.hold,f=r.bits,r.mode===$t&&(r.back=-1);break}for(r.back=0;w=r.lencode[l&(1<<r.lenbits)-1],p=w>>>24,b=w>>>16&255,c=w&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(b&&(b&240)===0){for(d=p,_=b,x=c;w=r.lencode[x+((l&(1<<d+_)-1)>>d)],p=w>>>24,b=w>>>16&255,c=w&65535,!(d+p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=d,f-=d,r.back+=d}if(l>>>=p,f-=p,r.back+=p,r.length=c,b===0){r.mode=Fv;break}if(b&32){r.back=-1,r.mode=$t;break}if(b&64){e.msg="invalid literal/length code",r.mode=Oe;break}r.extra=b&15,r.mode=Pv;case Pv:if(r.extra){for(R=r.extra;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Nv;case Nv:for(;w=r.distcode[l&(1<<r.distbits)-1],p=w>>>24,b=w>>>16&255,c=w&65535,!(p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if((b&240)===0){for(d=p,_=b,x=c;w=r.distcode[x+((l&(1<<d+_)-1)>>d)],p=w>>>24,b=w>>>16&255,c=w&65535,!(d+p<=f);){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}l>>>=d,f-=d,r.back+=d}if(l>>>=p,f-=p,r.back+=p,b&64){e.msg="invalid distance code",r.mode=Oe;break}r.offset=c,r.extra=b&15,r.mode=Dv;case Dv:if(r.extra){for(R=r.extra;f<R;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Oe;break}r.mode=Bv;case Bv:if(u===0)break e;if(h=g-u,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Oe;break}h>r.wnext?(h-=r.wnext,y=r.wsize-h):y=r.wnext-h,h>r.length&&(h=r.length),m=r.window}else m=a,y=o-r.offset,h=r.length;h>u&&(h=u),u-=h,r.length-=h;do a[o++]=m[y++];while(--h);r.length===0&&(r.mode=kn);break;case Fv:if(u===0)break e;a[o++]=r.length,u--,r.mode=kn;break;case Qs:if(r.wrap){for(;f<32;){if(s===0)break e;s--,l|=i[n++]<<f,f+=8}if(g-=u,e.total_out+=g,r.total+=g,g&&(e.adler=r.check=r.flags?It(r.check,a,g,o-g):Ks(r.check,a,g,o-g)),g=u,(r.flags?l:Hv(l))!==r.check){e.msg="incorrect data check",r.mode=Oe;break}l=0,f=0}r.mode=$v;case $v:if(r.wrap&&r.flags){for(;f<32;){if(s===0)break e;s--,l+=i[n++]<<f,f+=8}if(l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Oe;break}l=0,f=0}r.mode=zv;case zv:C=t1;break e;case Oe:C=pv;break e;case Uv:return mv;case a1:default:return ft}return e.next_out=o,e.avail_out=u,e.next_in=n,e.avail_in=s,r.hold=l,r.bits=f,(r.wsize||g!==e.avail_out&&r.mode<Oe&&(r.mode<Qs||t!==gv))&&Xv(e,e.output,e.next_out,g-e.avail_out),v-=e.avail_in,g-=e.avail_out,e.total_in+=v,e.total_out+=g,r.total+=g,r.wrap&&g&&(e.adler=r.check=r.flags?It(r.check,a,g,e.next_out-g):Ks(r.check,a,g,e.next_out-g)),e.data_type=r.bits+(r.last?64:0)+(r.mode===$t?128:0)+(r.mode===In||r.mode===Js?256:0),(v===0&&g===0||t===gv)&&C===Er&&(C=i1),C}function d1(e){if(!e||!e.state)return ft;var t=e.state;return t.window&&(t.window=null),e.state=null,Er}function h1(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ft:(r.head=t,t.done=!1,Er)}function g1(e,t){var r=t.length,i,a,n;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==An)?ft:i.mode===An&&(a=1,a=Ks(a,t,r,0),a!==i.check)?pv:(n=Xv(e,t,r,r),n?(i.mode=Uv,mv):(i.havedict=1,Er))}gt.inflateReset=Vv,gt.inflateReset2=jv,gt.inflateResetKeep=Wv,gt.inflateInit=f1,gt.inflateInit2=Yv,gt.inflate=v1,gt.inflateEnd=d1,gt.inflateGetHeader=h1,gt.inflateSetDictionary=g1,gt.inflateInfo="pako inflate (from Nodeca project)";var Zv={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function p1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var m1=p1,ri=gt,Gi=Bt,Mn=xr,Me=Zv,rl=zs,_1=av,b1=m1,Kv=Object.prototype.toString;function Tr(e){if(!(this instanceof Tr))return new Tr(e);this.options=Gi.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _1,this.strm.avail_out=0;var r=ri.inflateInit2(this.strm,t.windowBits);if(r!==Me.Z_OK)throw new Error(rl[r]);if(this.header=new b1,ri.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Mn.string2buf(t.dictionary):Kv.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ri.inflateSetDictionary(this.strm,t.dictionary),r!==Me.Z_OK)))throw new Error(rl[r])}Tr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,n,o,s,u,l,f=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?Me.Z_FINISH:Me.Z_NO_FLUSH,typeof e=="string"?r.input=Mn.binstring2buf(e):Kv.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Gi.Buf8(i),r.next_out=0,r.avail_out=i),n=ri.inflate(r,Me.Z_NO_FLUSH),n===Me.Z_NEED_DICT&&a&&(n=ri.inflateSetDictionary(this.strm,a)),n===Me.Z_BUF_ERROR&&f===!0&&(n=Me.Z_OK,f=!1),n!==Me.Z_STREAM_END&&n!==Me.Z_OK)return this.onEnd(n),this.ended=!0,!1;r.next_out&&(r.avail_out===0||n===Me.Z_STREAM_END||r.avail_in===0&&(o===Me.Z_FINISH||o===Me.Z_SYNC_FLUSH))&&(this.options.to==="string"?(s=Mn.utf8border(r.output,r.next_out),u=r.next_out-s,l=Mn.buf2string(r.output,s),r.next_out=u,r.avail_out=i-u,u&&Gi.arraySet(r.output,r.output,s,u,0),this.onData(l)):this.onData(Gi.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(f=!0)}while((r.avail_in>0||r.avail_out===0)&&n!==Me.Z_STREAM_END);return n===Me.Z_STREAM_END&&(o=Me.Z_FINISH),o===Me.Z_FINISH?(n=ri.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Me.Z_OK):(o===Me.Z_SYNC_FLUSH&&(this.onEnd(Me.Z_OK),r.avail_out=0),!0)},Tr.prototype.onData=function(e){this.chunks.push(e)},Tr.prototype.onEnd=function(e){e===Me.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Gi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function il(e,t){var r=new Tr(t);if(r.push(e,!0),r.err)throw r.msg||rl[r.err];return r.result}function w1(e,t){return t=t||{},t.raw=!0,il(e,t)}Zi.Inflate=Tr,Zi.inflate=il,Zi.inflateRaw=w1,Zi.ungzip=il;var y1=Bt.assign,x1=Di,S1=Zi,E1=Zv,Gv={};y1(Gv,x1,S1,E1);var Jv=Gv,T1="upx2px",C1=1e-4,O1=750,Qv=!1,al=0,ed=0,td=960,rd=375;function A1(){var{platform:e,pixelRatio:t,windowWidth:r}=yc();al=r,ed=t,Qv=e==="ios"}function id(e,t){var r=Number(e);return isNaN(r)?t:r}function I1(){var e=__uniConfig.globalStyle||{};td=id(e.rpxCalcMaxDeviceWidth,960),rd=id(e.rpxCalcBaseDeviceWidth,375)}var ad=Ob(T1,(e,t)=>{if(al===0&&(A1(),I1()),e=Number(e),e===0)return 0;var r=t||al;r=r<=td?r:rd;var i=e/O1*r;return i<0&&(i=-i),i=Math.floor(i+C1),i===0&&(ed===1||!Qv?i=1:i=.5),e<0?-i:i});new Ru;var k1=[{name:"id",type:String,required:!0}];k1.concat({name:"componentInstance",type:Object});var nd={};nd.f={}.propertyIsEnumerable;var M1=ui,R1=vo,L1=wa,P1=nd.f,N1=function(e){return function(t){for(var r=L1(t),i=R1(r),a=i.length,n=0,o=[],s;a>n;)s=i[n++],(!M1||P1.call(r,s))&&o.push(e?[s,r[s]]:r[s]);return o}},od=fo,D1=N1(!1);od(od.S,"Object",{values:function(t){return D1(t)}});var B1="setPageMeta",F1="loadFontFace",$1="pageScrollTo",z1=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(c){try{return c.defaultView&&c.defaultView.frameElement||null}catch(d){return null}}var t=function(c){for(var d=c,_=e(d);_;)d=_.ownerDocument,_=e(d);return d}(window.document),r=[],i=null,a=null;function n(c){this.time=c.time,this.target=c.target,this.rootBounds=y(c.rootBounds),this.boundingClientRect=y(c.boundingClientRect),this.intersectionRect=y(c.intersectionRect||h()),this.isIntersecting=!!c.intersectionRect;var d=this.boundingClientRect,_=d.width*d.height,x=this.intersectionRect,E=x.width*x.height;_?this.intersectionRatio=Number((E/_).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(c,d){var _=d||{};if(typeof c!="function")throw new Error("callback must be a function");if(_.root&&_.root.nodeType!=1&&_.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=u(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=c,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(_.rootMargin),this.thresholds=this._initThresholds(_.threshold),this.root=_.root||null,this.rootMargin=this._rootMarginValues.map(function(x){return x.value+x.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return i||(i=function(c,d){!c||!d?a=h():a=m(c,d),r.forEach(function(_){_._checkForIntersections()})}),i},o._resetCrossOriginUpdater=function(){i=null,a=null},o.prototype.observe=function(c){var d=this._observationTargets.some(function(_){return _.element==c});if(!d){if(!(c&&c.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:c,entry:null}),this._monitorIntersections(c.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(c){this._observationTargets=this._observationTargets.filter(function(d){return d.element!=c}),this._unmonitorIntersections(c.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var c=this._queuedEntries.slice();return this._queuedEntries=[],c},o.prototype._initThresholds=function(c){var d=c||[0];return Array.isArray(d)||(d=[d]),d.sort().filter(function(_,x,E){if(typeof _!="number"||isNaN(_)||_<0||_>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return _!==E[x-1]})},o.prototype._parseRootMargin=function(c){var d=c||"0px",_=d.split(/\s+/).map(function(x){var E=/^(-?\d*\.?\d+)(px|%)$/.exec(x);if(!E)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(E[1]),unit:E[2]}});return _[1]=_[1]||_[0],_[2]=_[2]||_[0],_[3]=_[3]||_[1],_},o.prototype._monitorIntersections=function(c){var d=c.defaultView;if(!!d&&this._monitoringDocuments.indexOf(c)==-1){var _=this._checkForIntersections,x=null,E=null;this.POLL_INTERVAL?x=d.setInterval(_,this.POLL_INTERVAL):(l(d,"resize",_,!0),l(c,"scroll",_,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in d&&(E=new d.MutationObserver(_),E.observe(c,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(c),this._monitoringUnsubscribes.push(function(){var M=c.defaultView;M&&(x&&M.clearInterval(x),f(M,"resize",_,!0)),f(c,"scroll",_,!0),E&&E.disconnect()});var C=this.root&&(this.root.ownerDocument||this.root)||t;if(c!=C){var O=e(c);O&&this._monitorIntersections(O.ownerDocument)}}},o.prototype._unmonitorIntersections=function(c){var d=this._monitoringDocuments.indexOf(c);if(d!=-1){var _=this.root&&(this.root.ownerDocument||this.root)||t,x=this._observationTargets.some(function(O){var M=O.element.ownerDocument;if(M==c)return!0;for(;M&&M!=_;){var R=e(M);if(M=R&&R.ownerDocument,M==c)return!0}return!1});if(!x){var E=this._monitoringUnsubscribes[d];if(this._monitoringDocuments.splice(d,1),this._monitoringUnsubscribes.splice(d,1),E(),c!=_){var C=e(c);C&&this._unmonitorIntersections(C.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var c=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var d=0;d<c.length;d++)c[d]()},o.prototype._checkForIntersections=function(){if(!(!this.root&&i&&!a)){var c=this._rootIsInDom(),d=c?this._getRootRect():h();this._observationTargets.forEach(function(_){var x=_.element,E=g(x),C=this._rootContainsTarget(x),O=_.entry,M=c&&C&&this._computeTargetAndRootIntersection(x,E,d),R=null;this._rootContainsTarget(x)?(!i||this.root)&&(R=d):R=h();var U=_.entry=new n({time:s(),target:x,boundingClientRect:E,rootBounds:R,intersectionRect:M});O?c&&C?this._hasCrossedThreshold(O,U)&&this._queuedEntries.push(U):O&&O.isIntersecting&&this._queuedEntries.push(U):this._queuedEntries.push(U)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(c,d,_){if(window.getComputedStyle(c).display!="none"){for(var x=d,E=p(c),C=!1;!C&&E;){var O=null,M=E.nodeType==1?window.getComputedStyle(E):{};if(M.display=="none")return null;if(E==this.root||E.nodeType==9)if(C=!0,E==this.root||E==t)i&&!this.root?!a||a.width==0&&a.height==0?(E=null,O=null,x=null):O=a:O=_;else{var R=p(E),U=R&&g(R),te=R&&this._computeTargetAndRootIntersection(R,U,_);U&&te?(E=R,O=m(U,te)):(E=null,x=null)}else{var L=E.ownerDocument;E!=L.body&&E!=L.documentElement&&M.overflow!="visible"&&(O=g(E))}if(O&&(x=v(O,x)),!x)break;E=E&&p(E)}return x}},o.prototype._getRootRect=function(){var c;if(this.root&&!b(this.root))c=g(this.root);else{var d=b(this.root)?this.root:t,_=d.documentElement,x=d.body;c={top:0,left:0,right:_.clientWidth||x.clientWidth,width:_.clientWidth||x.clientWidth,bottom:_.clientHeight||x.clientHeight,height:_.clientHeight||x.clientHeight}}return this._expandRectByRootMargin(c)},o.prototype._expandRectByRootMargin=function(c){var d=this._rootMarginValues.map(function(x,E){return x.unit=="px"?x.value:x.value*(E%2?c.width:c.height)/100}),_={top:c.top-d[0],right:c.right+d[1],bottom:c.bottom+d[2],left:c.left-d[3]};return _.width=_.right-_.left,_.height=_.bottom-_.top,_},o.prototype._hasCrossedThreshold=function(c,d){var _=c&&c.isIntersecting?c.intersectionRatio||0:-1,x=d.isIntersecting?d.intersectionRatio||0:-1;if(_!==x)for(var E=0;E<this.thresholds.length;E++){var C=this.thresholds[E];if(C==_||C==x||C<_!=C<x)return!0}},o.prototype._rootIsInDom=function(){return!this.root||w(t,this.root)},o.prototype._rootContainsTarget=function(c){var d=this.root&&(this.root.ownerDocument||this.root)||t;return w(d,c)&&(!this.root||d==c.ownerDocument)},o.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},o.prototype._unregisterInstance=function(){var c=r.indexOf(this);c!=-1&&r.splice(c,1)};function s(){return window.performance&&performance.now&&performance.now()}function u(c,d){var _=null;return function(){_||(_=setTimeout(function(){c(),_=null},d))}}function l(c,d,_,x){typeof c.addEventListener=="function"?c.addEventListener(d,_,x||!1):typeof c.attachEvent=="function"&&c.attachEvent("on"+d,_)}function f(c,d,_,x){typeof c.removeEventListener=="function"?c.removeEventListener(d,_,x||!1):typeof c.detatchEvent=="function"&&c.detatchEvent("on"+d,_)}function v(c,d){var _=Math.max(c.top,d.top),x=Math.min(c.bottom,d.bottom),E=Math.max(c.left,d.left),C=Math.min(c.right,d.right),O=C-E,M=x-_;return O>=0&&M>=0&&{top:_,bottom:x,left:E,right:C,width:O,height:M}||null}function g(c){var d;try{d=c.getBoundingClientRect()}catch(_){}return d?(d.width&&d.height||(d={top:d.top,right:d.right,bottom:d.bottom,left:d.left,width:d.right-d.left,height:d.bottom-d.top}),d):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function y(c){return!c||"x"in c?c:{top:c.top,y:c.top,bottom:c.bottom,left:c.left,x:c.left,right:c.right,width:c.width,height:c.height}}function m(c,d){var _=d.top-c.top,x=d.left-c.left;return{top:_,left:x,height:d.height,width:d.width,bottom:_+d.height,right:x+d.width}}function w(c,d){for(var _=d;_;){if(_==c)return!0;_=p(_)}return!1}function p(c){var d=c.parentNode;return c.nodeType==9&&c!=t?e(c):(d&&d.assignedSlot&&(d=d.assignedSlot.parentNode),d&&d.nodeType==11&&d.host?d.host:d)}function b(c){return c&&c.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=n};function nl(e){var{bottom:t,height:r,left:i,right:a,top:n,width:o}=e||{};return{bottom:t,height:r,left:i,right:a,top:n,width:o}}function U1(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:a,width:n}}=e;return t!==0?t:a===r?n/i:a/r}function H1(e,t,r){z1();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,a=new IntersectionObserver(u=>{u.forEach(l=>{r({intersectionRatio:U1(l),intersectionRect:nl(l.intersectionRect),boundingClientRect:nl(l.boundingClientRect),relativeRect:nl(l.rootBounds),time:Date.now(),dataset:Lo(l.target),id:l.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){a.USE_MUTATION_OBSERVER=!0;for(var n=e.querySelectorAll(t.selector),o=0;o<n.length;o++)a.observe(n[o])}else{a.USE_MUTATION_OBSERVER=!1;var s=e.querySelector(t.selector);s?a.observe(s):console.warn("Node ".concat(t.selector," is not found. Intersection observer will not trigger."))}return a}function W1(e){UniViewJSBridge.invokeServiceMethod("navigateTo",e)}function V1(e){UniViewJSBridge.invokeServiceMethod("navigateBack",e)}function j1(e){UniViewJSBridge.invokeServiceMethod("reLaunch",e)}function Y1(e){UniViewJSBridge.invokeServiceMethod("redirectTo",e)}function q1(e){UniViewJSBridge.invokeServiceMethod("switchTab",e)}var X1=Object.freeze(Object.defineProperty({__proto__:null,upx2px:ad,navigateTo:W1,navigateBack:V1,reLaunch:j1,redirectTo:Y1,switchTab:q1},Symbol.toStringTag,{value:"Module"}));function Z1(){if(String(navigator.vendor).indexOf("Apple")===0){var e=null,t;document.documentElement.addEventListener("click",r=>{var i=450,a=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=a&&Math.abs(r.pageY-e.pageY)<=a&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function K1(e){if(!e.length)return r=>r;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof r=="number")return e[r];var a={};return r.forEach(n=>{var[o,s]=n;i?a[t(o)]=t(s):a[t(o)]=s}),a};return t}function sd(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=G1(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function G1(e,t){var r={};return e.forEach(i=>{var[a,[n,o]]=i;r[t(a)]=[t(n),o]}),r}function J1(e,t){return e.priority=t,e}var ol=new Set,Q1=1,Rn=2,ld=3,ud=4;function zt(e,t){ol.add(J1(e,t))}function ey(){try{[...ol].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{ol.clear()}}function fd(e,t){var r=window["__"+Ip],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var ty=xu.length;function ry(e,t,r){var[i,a,n,o]=ll(t),s=sl(e,i);if(ne(r)||ne(o)){var[u,l]=n.split(".");return ul(s,a,u,l,r||o)}return ny(s,a,n)}function iy(e,t,r){var[i,a,n]=ll(t),[o,s]=n.split("."),u=sl(e,i);return ul(u,a,o,s,[sy(r,e),Ni(qr(u))])}function sl(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function ll(e){return JSON.parse(e.slice(ty))}function ay(e,t,r,i){var[a,n,o]=ll(e),s=sl(t,a),[u,l]=o.split(".");return ul(s,n,u,l,[r,i,Ni(qr(s)),Ni(qr(t))])}function ul(e,t,r,i,a){var n=fd(t,e);if(!n)return console.error(Mo("wxs","module "+r+" not found"));var o=n[i];return oe(o)?o.apply(n,a):console.error(r+"."+i+" is not a function")}function ny(e,t,r){var i=fd(t,e);return i?Eu(i,r.slice(r.indexOf(".")+1)):console.error(Mo("wxs","module "+r+" not found"))}function oy(e,t,r){var i=r;return a=>{try{ay(t,e.$,a,i)}catch(n){console.error(n)}i=a}}function sy(e,t){var r=qr(t);return Object.defineProperty(e,"instance",{get(){return Ni(r)}}),e}function cd(e,t){Object.keys(t).forEach(r=>{uy(e,t[r])})}function ly(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function uy(e,t){var r=fy(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=cy(i,r)}}function fy(e){var t=window["__"+kp],r=t&&t[e];return r||console.error(Mo("renderjs",e+" not found"))}function cy(e,t){return t=t.default||t,t.render=()=>{},nc(t).mixin({mounted(){this.$ownerInstance=Ni(qr(e))}}).mount(document.createElement("div"))}class ii{constructor(t,r,i,a){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=t,this.tag=r,this.pid=i,a&&(this.$=a),this.$wxsProps=new Map;var n=this.$parent=ET(i);n&&n.appendUniChild(this)}init(t){ie(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t,this.updateView()}insert(t,r,i){i&&this.init(i,!1);var a=this.$,n=Ke(t);r===-1?n.appendChild(a):n.insertBefore(a,Ke(r).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,Ch(this.id),ly(this),this.removeUniChildren(),this.updateView()}appendChild(t){var r=this.$.appendChild(t);return this.updateView(!0),r}insertBefore(t,r){var i=this.$.insertBefore(t,r);return this.updateView(!0),i}appendUniChild(t){this.$children.push(t)}removeUniChild(t){var r=this.$children.indexOf(t);r>=0&&this.$children.splice(r,1)}removeUniParent(){var{$parent:t}=this;t&&(t.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach(t=>t.remove()),this.$children.length=0}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(Fo)===0){var i=r.replace(Fo,""),a=t[i],n=oy(this,t[r],a);zt(()=>n(a),ud),this.$wxsProps.set(r,n),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,a]=t[r];this.addWxsEvent(r,i,a)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.$hasWxsProps&&this.$wxsProps.get(Fo+t);if(a)return zt(()=>i?Ur(()=>a(r)):a(r),ud),!0}updateView(t){(this.isMounted||t)&&window.dispatchEvent(new CustomEvent("updateview"))}}function vd(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(a=>i.indexOf(a)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function fl(e){return dy(Vr(e,!0))}var vy=/url\(\s*'?"?([a-zA-Z0-9\.\-\_\/]+\.(jpg|gif|png))"?'?\s*\)/,dy=e=>{if(Ee(e)&&e.indexOf("url(")!==-1){var t=e.match(vy);t&&t.length===3&&(e=e.replace(t[1],st(t[1])))}return e},dd=["Webkit"],cl={};function hd(e,t){var r=cl[t];if(r)return r;var i=Ht(t);if(i!=="filter"&&i in e)return cl[t]=i;i=Oo(i);for(var a=0;a<dd.length;a++){var n=dd[a]+i;if(n in e)return cl[t]=n}return t}function gd(e,t){var r=e.style;if(Ee(t))t===""?e.removeAttribute("style"):r.cssText=fl(t);else for(var i in t)vl(r,i,t[i]);var{__wxsStyle:a}=e;if(a)for(var n in a)vl(r,n,a[n])}var pd=/\s*!important$/;function vl(e,t,r){if(ne(r))r.forEach(a=>vl(e,t,a));else if(r=fl(r),t.startsWith("--"))e.setProperty(t,r);else{var i=hd(e,t);pd.test(r)?e.setProperty(Je(i),r.replace(pd,""),"important"):e[i]=r}}var hy=Su.length;function dl(e,t){return Ee(t)&&(t.indexOf(Su)===0?t=JSON.parse(t.slice(hy)):t.indexOf(xu)===0&&(t=ry(e,t))),t}function Ln(e){return e.indexOf("--")===0}function gy(e){return!!e.addWxsEvent}function md(e,t){var r=e.__listeners[t];r&&e.removeEventListener(t,r)}function _d(e,t){if(e.__listeners[t])return!0}function bd(e,t,r){var[i,a]=No(t);r===-1?md(e,i):_d(e,i)||e.addEventListener(i,e.__listeners[i]=wd(e.__id,r,a),a)}function wd(e,t,r){var i=a=>{var[n]=pc(a);n.type=Vp(a.type,r),UniViewJSBridge.publishHandler(bc,[[am,e,n]])};return t?ws(i,yd(t)):i}function yd(e){var t=[];return e&Do.prevent&&t.push("prevent"),e&Do.self&&t.push("self"),e&Do.stop&&t.push("stop"),t}function py(e,t,r,i){var[a,n]=No(t);i===-1?md(e,a):_d(e,a)||e.addEventListener(a,e.__listeners[a]=xd(e,r,i),n)}function xd(e,t,r){var i=a=>{iy(gy(e)?e.$:e,t,pc(a)[0])};return r?ws(i,yd(r)):i}function hl(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Sd extends ii{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r.tagName,i,r),this.$props=ke({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=o,this._update=this.update.bind(this),this.init(n),this.insert(i,a)}init(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ie(t,"a")&&this.setAttrs(t.a),ie(t,"s")&&this.setAttr("style",t.s),ie(t,"e")&&this.addEvents(t.e),ie(t,"w")&&this.addWxsEvents(t.w),super.init(t),r&&(W(this.$props,()=>{zt(this._update,Q1)},{flush:"sync"}),this.update(!0))}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){py(this.$,t,r,i)}addEvent(t,r){bd(this.$,t,r)}removeEvent(t){bd(this.$,t,-1)}setAttr(t,r){t===Ou?vd(this.$,r):t===Bo?gd(this.$,r):t===Da?hl(this.$,r):t===Au?this.$.__ownerId=r:t===Iu?zt(()=>cd(this,r),ld):t===jp?this.$.innerHTML=r:t===Yp?this.setText(r):this.setAttribute(t,r),this.updateView()}removeAttr(t){t===Ou?vd(this.$,""):t===Bo?gd(this.$,""):this.removeAttribute(t),this.updateView()}setAttribute(t,r){r=dl(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:Ln(t)?this.$.style.setProperty(t,r):this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:Ln(t)?this.$.style.removeProperty(t):this.$.removeAttribute(t)}update(){}}class my extends ii{constructor(t,r,i){super(t,"#comment",r,document.createComment("")),this.insert(r,i)}}var QT="";function Ed(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function _y(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function by(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],a=["width","height","left","right","top","bottom"],n=e.animates,o=e.option,s=o.transition,u={},l=[];return n.forEach(f=>{var v=f.type,g=[...f.args];if(t.concat(r).includes(v))v.startsWith("rotate")||v.startsWith("skew")?g=g.map(y=>parseFloat(y)+"deg"):v.startsWith("translate")&&(g=g.map(Ed)),r.indexOf(v)>=0&&(g.length=1),l.push("".concat(v,"(").concat(g.join(","),")"));else if(i.concat(a).includes(g[0])){v=g[0];var h=g[1];u[v]=a.includes(v)?Ed(h):h}}),u.transform=u.webkitTransform=l.join(" "),u.transition=u.webkitTransition=Object.keys(u).map(f=>"".concat(_y(f)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")).join(","),u.transformOrigin=u.webkitTransformOrigin=o.transformOrigin,u}function Td(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,a=t.actions.length;function n(){var o=i[r],s=o.option.transition,u=by(o);Object.keys(u).forEach(l=>{e.$el.style[l]=u[l]}),r+=1,r<a&&setTimeout(n,s.duration+s.delay)}setTimeout(()=>{n()},0)}var Pn={props:["animation"],watch:{animation:{deep:!0,handler(){Td(this)}}},mounted(){Td(this)}},de=e=>{e.__reserved=!0;var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(Pn),wy(e)},wy=e=>(e.__reserved=!0,e.compatConfig={MODE:3},N0(e)),yy={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function gl(e){var t=B(!1),r=!1,i,a;function n(){requestAnimationFrame(()=>{clearTimeout(a),a=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function o(l){l._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||l.touches.length>1||(e.hoverStopPropagation&&(l._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||n()},parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&n()}function u(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:o,onTouchend:s,onTouchcancel:u}}}function ai(e,t){return Ee(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Cr(e){return e.__wwe=!0,e}function Le(e,t){return(r,i,a)=>{e.value&&t(r,Sy(r,i,e.value,a||{}))}}function xy(e){return(t,r)=>{e(t,mc(r))}}function Sy(e,t,r,i){var a=Po(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:a,currentTarget:a,detail:i}}var kt=vn("uf"),Ey=de({name:"Form",emits:["submit","reset"],setup(e,t){var{slots:r,emit:i}=t,a=B(null);return Ty(Le(a,i)),()=>I("uni-form",{ref:a},[I("span",null,[r.default&&r.default()])],512)}});function Ty(e){var t=[];return ze(kt,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,a)=>{if(a.submit){var[n,o]=a.submit();n&&(i[n]=o)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var Cy={for:{type:String,default:""}},Ji=vn("ul");function Oy(){var e=[];return ze(Ji,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}var Ay=de({name:"Label",props:Cy,setup(e,t){var{slots:r}=t,i=gn(),a=Oy(),n=ee(()=>e.for||r.default&&r.default.length),o=Cr(s=>{var u=s.target,l=/^uni-(checkbox|radio|switch)-/.test(u.className);l||(l=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(u.tagName)),!l&&(e.for?UniViewJSBridge.emit("uni-label-click-"+i+"-"+e.for,s,!0):a.length&&a[0](s,!0))});return()=>I("uni-label",{class:{"uni-label-pointer":n},onClick:o},[r.default&&r.default()],10,["onClick"])}});function Nn(e,t){Cd(e.id,t),W(()=>e.id,(r,i)=>{Od(i,t,!0),Cd(r,t,!0)}),Zt(()=>{Od(e.id,t)})}function Cd(e,t,r){var i=gn();r&&!e||!_t(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.on(a,t[a]):e&&UniViewJSBridge.on("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}function Od(e,t,r){var i=gn();r&&!e||!_t(t)||Object.keys(t).forEach(a=>{r?a.indexOf("@")!==0&&a.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a]):a.indexOf("uni-")===0?UniViewJSBridge.off(a,t[a]):e&&UniViewJSBridge.off("uni-".concat(a,"-").concat(i,"-").concat(e),t[a])})}var Iy={id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},ky=de({name:"Button",props:Iy,setup(e,t){var{slots:r}=t,i=B(null);Em();var a=_e(kt,!1),{hovering:n,binding:o}=gl(e),{t:s}=Qe(),u=Cr((f,v)=>{if(e.disabled)return f.stopImmediatePropagation();v&&i.value.click();var g=e.formType;if(g){if(!a)return;g==="submit"?a.submit(f):g==="reset"&&a.reset(f);return}e.openType==="feedback"&&My(s("uni.button.feedback.title"),s("uni.button.feedback.send"))}),l=_e(Ji,!1);return l&&(l.addHandler(u),Ce(()=>{l.removeHandler(u)})),Nn(e,{"label-click":u}),()=>{var f=e.hoverClass,v=ai(e,"disabled"),g=ai(e,"loading"),h=ai(e,"plain"),y=f&&f!=="none";return I("uni-button",rt({ref:i,onClick:u,class:y&&n.value?f:""},y&&o,v,g,h),[r.default&&r.default()],16,["onClick"])}}});function My(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var Or=de({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:r}=t,i=B(null),a=Ly(i),n=Ry(i,r,a);return Py(i,e,n,a),()=>I("uni-resize-sensor",{ref:i,onAnimationstartOnce:n},[I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"]),I("div",{onScroll:n},[I("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Ry(e,t,r){var i=ke({width:-1,height:-1});return W(()=>ce({},i),a=>t("resize",a)),()=>{var a=e.value;i.width=a.offsetWidth,i.height=a.offsetHeight,r()}}function Ly(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function Py(e,t,r,i){ls(i),Re(()=>{t.initial&&Ur(r);var a=e.value;a.offsetParent!==a.parentElement&&(a.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var ye=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function Ad(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;e.width=e.offsetWidth*(t?ye:1),e.height=e.offsetHeight*(t?ye:1),e.getContext("2d").__hidpi__=t}var Id=!1;function Ny(){if(!Id){Id=!0;var e=function(i,a){for(var n in i)ie(i,n)&&a(i[n],n)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(a,n,o,s,u,l,f,v,g,h){if(!this.__hidpi__)return i.apply(this,arguments);n*=ye,o*=ye,s*=ye,u*=ye,l*=ye,f*=ye,v=h?v*ye:v,g=h?g*ye:g,i.call(this,a,n,o,s,u,l,f,v,g)}}(r.drawImage),ye!==1&&(e(t,function(i,a){r[a]=function(n){return function(){if(!this.__hidpi__)return n.apply(this,arguments);var o=Array.prototype.slice.call(arguments);if(i==="all")o=o.map(function(u){return u*ye});else if(Array.isArray(i))for(var s=0;s<i.length;s++)o[i[s]]*=ye;return n.apply(this,o)}}(r[a])}),r.stroke=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);this.lineWidth*=ye,i.apply(this,arguments),this.lineWidth/=ye}}(r.stroke),r.fillText=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);var a=Array.prototype.slice.call(arguments);a[1]*=ye,a[2]*=ye,a[3]&&typeof a[3]=="number"&&(a[3]*=ye);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(o,s,u){return s*ye+u}),i.apply(this,a),this.font=n}}(r.fillText),r.strokeText=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);var a=Array.prototype.slice.call(arguments);a[1]*=ye,a[2]*=ye,a[3]&&typeof a[3]=="number"&&(a[3]*=ye);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(o,s,u){return s*ye+u}),i.apply(this,a),this.font=n}}(r.strokeText),r.drawImage=function(i){return function(){if(!this.__hidpi__)return i.apply(this,arguments);this.scale(ye,ye),i.apply(this,arguments),this.scale(1/ye,1/ye)}}(r.drawImage))}}var Dy=pi(()=>Ny());function kd(e){return e&&st(e)}function Dn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Md(e,t){var r=e;return Array.from(t).map(i=>{var a=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-a.left,y:i.clientY-a.top}})}var Qi;function Rd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Qi||(Qi=document.createElement("canvas")),Qi.width=e,Qi.height=t,Qi}var By={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},Fy=de({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:By,computed:{id(){return this.canvasId}},setup(e,t){var{emit:r,slots:i}=t;Dy();var a=B(null),n=B(null),o=B(!1),s=xy(r),{$attrs:u,$excludeAttrs:l,$listeners:f}=Gd({excludeListeners:!0}),{_listeners:v}=$y(e,f,s),{_handleSubscribe:g,_resize:h}=zy(e,a,o);return sa(g,la(e.canvasId),!0),Re(()=>{h()}),()=>{var{canvasId:y,disableScroll:m}=e;return I("uni-canvas",rt({"canvas-id":y,"disable-scroll":m},u.value,l.value,v.value),[I("canvas",{ref:a,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),I("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[i.default&&i.default()]),I(Or,{ref:n,onResize:h},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function $y(e,t,r){var i=ee(()=>{var a=["onTouchstart","onTouchmove","onTouchend"],n=t.value,o=ce({},(()=>{var s={};for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)){var l=n[u];s[u]=l}return s})());return a.forEach(s=>{var u=o[s],l=[];u&&l.push(Cr(f=>{r(s.replace("on","").toLocaleLowerCase(),ce({},(()=>{var v={};for(var g in f)v[g]=f[g];return v})(),{touches:Md(f.currentTarget,f.touches),changedTouches:Md(f.currentTarget,f.changedTouches)}))})),e.disableScroll&&s==="onTouchmove"&&l.push(lc),o[s]=l}),o});return{_listeners:i}}function zy(e,t,r){var i=[],a={},n=ee(()=>e.hidpi?ye:1);function o(m){var w=t.value,p=!m||w.width!==Math.floor(m.width*n.value)||w.height!==Math.floor(m.height*n.value);if(!!p)if(w.width>0&&w.height>0){var b=w.getContext("2d"),c=b.getImageData(0,0,w.width,w.height);Ad(w,e.hidpi),b.putImageData(c,0,0)}else Ad(w,e.hidpi)}function s(m,w){var{actions:p,reserve:b}=m;if(!!p){if(r.value){i.push([p,b]);return}var c=t.value,d=c.getContext("2d");b||(d.fillStyle="#000000",d.strokeStyle="#000000",d.shadowColor="#000000",d.shadowBlur=0,d.shadowOffsetX=0,d.shadowOffsetY=0,d.setTransform(1,0,0,1,0,0),d.clearRect(0,0,c.width,c.height)),u(p);for(var _=function(C){var O=p[C],M=O.method,R=O.data,U=R[0];if(/^set/.test(M)&&M!=="setTransform"){var te=M[3].toLowerCase()+M.slice(4),L;if(te==="fillStyle"||te==="strokeStyle"){if(U==="normal")L=Dn(R[1]);else if(U==="linear"){var H=d.createLinearGradient(...R[1]);R[2].forEach(function(J){var xe=J[0],we=Dn(J[1]);H.addColorStop(xe,we)}),L=H}else if(U==="radial"){var q=R[1],re=q[0],V=q[1],K=q[2],ae=d.createRadialGradient(re,V,0,re,V,K);R[2].forEach(function(J){var xe=J[0],we=Dn(J[1]);ae.addColorStop(xe,we)}),L=ae}else if(U==="pattern"){var Te=l(R[1],p.slice(C+1),w,function(J){J&&(d[te]=d.createPattern(J,R[2]))});return Te?"continue":"break"}d[te]=L}else if(te==="globalAlpha")d[te]=Number(U)/255;else if(te==="shadow"){var se=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];R.forEach(function(J,xe){d[se[xe]]=se[xe]==="shadowColor"?Dn(J):J})}else if(te==="fontSize"){var he=d.__font__||d.font;d.__font__=d.font=he.replace(/\d+\.?\d*px/,U+"px")}else te==="lineDash"?(d.setLineDash(U),d.lineDashOffset=R[1]||0):te==="textBaseline"?(U==="normal"&&(R[0]="alphabetic"),d[te]=U):te==="font"?d.__font__=d.font=U:d[te]=U}else if(M==="fillPath"||M==="strokePath")M=M.replace(/Path/,""),d.beginPath(),R.forEach(function(J){d[J.method].apply(d,J.data)}),d[M]();else if(M==="fillText")d.fillText.apply(d,R);else if(M==="drawImage"){var le=function(){var J=[...R],xe=J[0],we=J.slice(1);if(a=a||{},!l(xe,p.slice(C+1),w,function(Ve){Ve&&d.drawImage.apply(d,[Ve].concat([...we.slice(4,8)],[...we.slice(0,4)]))}))return"break"}();if(le==="break")return"break"}else M==="clip"?(R.forEach(function(J){d[J.method].apply(d,J.data)}),d.clip()):d[M].apply(d,R)},x=0;x<p.length;x++){var E=_(x);if(E==="break")break}r.value||w({errMsg:"drawCanvas:ok"})}}function u(m){m.forEach(function(w){var p=w.method,b=w.data,c="";p==="drawImage"?(c=b[0],c=kd(c),b[0]=c):p==="setFillStyle"&&b[0]==="pattern"&&(c=b[1],c=kd(c),b[1]=c),c&&!a[c]&&d();function d(){var _=a[c]=new Image;if(_.onload=function(){_.ready=!0},navigator.vendor==="Google Inc."){c.indexOf("file://")===0&&(_.crossOrigin="anonymous"),_.src=c;return}Lb(c).then(x=>{_.src=x}).catch(()=>{_.src=c})}})}function l(m,w,p,b){var c=a[m];return c.ready?(b(c),!0):(i.unshift([w,!0]),r.value=!0,c.onload=function(){c.ready=!0,b(c),r.value=!1;var d=i.slice(0);i=[];for(var _=d.shift();_;)s({actions:_[0],reserve:_[1]},p),_=d.shift()},!1)}function f(m,w){var{x:p=0,y:b=0,width:c,height:d,destWidth:_,destHeight:x,hidpi:E=!0,dataType:C,quality:O=1,type:M="png"}=m,R=t.value,U,te=R.offsetWidth-p;c=c?Math.min(c,te):te;var L=R.offsetHeight-b;d=d?Math.min(d,L):L,E?(_=c,x=d):!_&&!x?(_=Math.round(c*n.value),x=Math.round(d*n.value)):_?x||(x=Math.round(d/c*_)):_=Math.round(c/d*x);var H=Rd(_,x),q=H.getContext("2d");(M==="jpeg"||M==="jpg")&&(M="jpeg",q.fillStyle="#fff",q.fillRect(0,0,_,x)),q.__hidpi__=!0,q.drawImageByCanvas(R,p,b,c,d,0,0,_,x,!1);var re;try{var V;if(C==="base64")U=H.toDataURL("image/".concat(M),O);else{var K=q.getImageData(0,0,_,x);U=Jv.deflateRaw(K.data,{to:"string"}),V=!0}re={data:U,compressed:V,width:_,height:x}}catch(ae){re={errMsg:"canvasGetImageData:fail ".concat(ae)}}if(H.height=H.width=0,q.__hidpi__=!1,w)w(re);else return re}function v(m,w){var{data:p,x:b,y:c,width:d,height:_,compressed:x}=m;try{x&&(p=Jv.inflateRaw(p)),_||(_=Math.round(p.length/4/d));var E=Rd(d,_),C=E.getContext("2d");C.putImageData(new ImageData(new Uint8ClampedArray(p),d,_),0,0),t.value.getContext("2d").drawImage(E,b,c,d,_),E.height=E.width=0}catch(O){w({errMsg:"canvasPutImageData:fail"});return}w({errMsg:"canvasPutImageData:ok"})}function g(m,w){var{x:p=0,y:b=0,width:c,height:d,destWidth:_,destHeight:x,fileType:E,quality:C,dirname:O}=m,M=f({x:p,y:b,width:c,height:d,destWidth:_,destHeight:x,hidpi:!1,dataType:"base64",type:E,quality:C});if(!M.data||!M.data.length){w({errMsg:M.errMsg.replace("canvasPutImageData","toTempFilePath")});return}kb(M.data,O,(R,U)=>{var te="toTempFilePath:".concat(R?"fail":"ok");R&&(te+=" ".concat(R.message)),w({errMsg:te,tempFilePath:U})})}var h={actionsChanged:s,getImageData:f,putImageData:v,toTempFilePath:g};function y(m,w,p){var b=h[m];m.indexOf("_")!==0&&typeof b=="function"&&b(w,p)}return ce(h,{_resize:o,_handleSubscribe:y})}var Ld=vn("ucg"),Uy={name:{type:String,default:""}},Hy=de({name:"CheckboxGroup",props:Uy,emits:["change"],setup(e,t){var{emit:r,slots:i}=t,a=B(null),n=Le(a,r);return Wy(e,n),()=>I("uni-checkbox-group",{ref:a},[i.default&&i.default()],512)}});function Wy(e,t){var r=[],i=()=>r.reduce((n,o)=>(o.value.checkboxChecked&&n.push(o.value.value),n),new Array);ze(Ld,{addField(n){r.push(n)},removeField(n){r.splice(r.indexOf(n),1)},checkboxChange(n){t("change",n,{value:i()})}});var a=_e(kt,!1);return a&&a.addField({submit:()=>{var n=["",null];return e.name!==""&&(n[0]=e.name,n[1]=i()),n}}),i}var Vy={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},jy=de({name:"Checkbox",props:Vy,setup(e,t){var{slots:r}=t,i=B(e.checked),a=B(e.value);W([()=>e.checked,()=>e.value],l=>{var[f,v]=l;i.value=f,a.value=v});var n=()=>{i.value=!1},{uniCheckGroup:o,uniLabel:s}=Yy(i,a,n),u=l=>{e.disabled||(i.value=!i.value,o&&o.checkboxChange(l))};return s&&(s.addHandler(u),Ce(()=>{s.removeHandler(u)})),Nn(e,{"label-click":u}),()=>{var l=ai(e,"disabled");return I("uni-checkbox",rt(l,{onClick:u}),[I("div",{class:"uni-checkbox-wrapper"},[I("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[i.value?hn(dn,e.color,22):""],2),r.default&&r.default()])],16,["onClick"])}}});function Yy(e,t,r){var i=ee(()=>({checkboxChecked:Boolean(e.value),value:t.value})),a={reset:r},n=_e(Ld,!1);n&&n.addField(i);var o=_e(kt,!1);o&&o.addField(a);var s=_e(Ji,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s}}var Pd,ea,Bn,nr,Fn,pl;Nr(()=>{ea=plus.os.name==="Android",Bn=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){nr=e.height,Fn&&Fn()},!1);function Nd(){}function ta(e,t,r){Nr(()=>{var i="adjustResize",a="adjustPan",n="nothing",o=plus.webview.currentWebview(),s=pl||o.getStyle()||{},u={mode:r||s.softinputMode===i?i:e.adjustPosition?a:n,position:{top:0,height:0}};if(u.mode===a){var l=t.getBoundingClientRect();u.position.top=l.top,u.position.height=l.height+(Number(e.cursorSpacing)||0)}o.setSoftinputTemporary(u)})}function qy(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}Nr(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},a=i!=="none";a!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function Xy(e){var t=e.softinputNavBar;t&&Nr(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var Dd={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},Bd=["keyboardheightchange"];function Fd(e,t,r){var i={};function a(n){var o,s=ee(()=>String(navigator.vendor).indexOf("Apple")===0),u=()=>{r("keyboardheightchange",{},{height:nr,duration:.25}),o&&nr===0&&ta(e,n),e.autoBlur&&o&&nr===0&&(ea||parseInt(Bn)>=13)&&document.activeElement.blur()};n.addEventListener("focus",()=>{o=!0,clearTimeout(Pd),document.addEventListener("click",Nd,!1),Fn=u,nr&&r("keyboardheightchange",{},{height:nr,duration:0}),qy(e,i),ta(e,n)}),ea&&n.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&o&&nr===0&&ta(e,n)}),ea||(parseInt(Bn)<12&&n.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!o&&ta(e,n)}),parseFloat(Bn)>=14.6&&!pl&&Nr(()=>{var f=plus.webview.currentWebview();pl=f.getStyle()||{}}));var l=()=>{document.removeEventListener("click",Nd,!1),Fn=null,nr&&r("keyboardheightchange",{},{height:0,duration:0}),Xy(i),ea&&(Pd=setTimeout(()=>{ta(e,n,!0)},300)),s.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};n.addEventListener("blur",()=>{s.value&&n.blur(),o=!1,l()})}W(()=>t.value,n=>a(n))}var $d=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,zd=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Zy=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Ky=ni("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Gy=ni("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Jy=ni("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Qy=ni("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),ex=ni("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),tx=ni("script,style");function Ud(e,t){var r,i,a,n=[],o=e;for(n.last=function(){return this[this.length-1]};e;){if(i=!0,!n.last()||!tx[n.last()]){if(e.indexOf("<!--")==0?(r=e.indexOf("-->"),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("</")==0?(a=e.match(zd),a&&(e=e.substring(a[0].length),a[0].replace(zd,l),i=!1)):e.indexOf("<")==0&&(a=e.match($d),a&&(e=e.substring(a[0].length),a[0].replace($d,u),i=!1)),i){r=e.indexOf("<");var s=r<0?e:e.substring(0,r);e=r<0?"":e.substring(r),t.chars&&t.chars(s)}}else e=e.replace(new RegExp("([\\s\\S]*?)</"+n.last()+"[^>]*>"),function(f,v){return v=v.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(v),""}),l("",n.last());if(e==o)throw"Parse Error: "+e;o=e}l();function u(f,v,g,h){if(v=v.toLowerCase(),Gy[v])for(;n.last()&&Jy[n.last()];)l("",n.last());if(Qy[v]&&n.last()==v&&l("",v),h=Ky[v]||!!h,h||n.push(v),t.start){var y=[];g.replace(Zy,function(m,w){var p=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:ex[w]?w:"";y.push({name:w,value:p,escaped:p.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(v,y,h)}}function l(f,v){if(v)for(var g=n.length-1;g>=0&&n[g]!=v;g--);else var g=0;if(g>=0){for(var h=n.length-1;h>=g;h--)t.end&&t.end(n[h]);n.length=g}}}function ni(e){for(var t={},r=e.split(","),i=0;i<r.length;i++)t[r[i]]=!0;return t}var ml={};function Hd(e,t,r){var i=typeof e=="string"?window[e]:e;if(i){r();return}var a=ml[t];if(!a){a=ml[t]=[];var n=document.createElement("script");n.src=t,document.body.appendChild(n),n.onload=function(){a.forEach(o=>o()),delete ml[t]}}a.push(r)}function rx(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function ix(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function ax(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},a=new r.Style("align","text-align",i);return{"formats/align":a}}function nx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},a=new r.Style("direction","direction",i);return{"formats/direction":a}}function ox(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class a extends r{static create(o){var s=o==="ordered"?"OL":"UL",u=super.create(s);return(o==="checked"||o==="unchecked")&&u.setAttribute("data-checked",o==="checked"),u}static formats(o){if(o.tagName==="OL")return"ordered";if(o.tagName==="UL")return o.hasAttribute("data-checked")?o.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(o){super(o);var s=u=>{if(u.target.parentNode===o){var l=this.statics.formats(o),f=t.find(u.target);l==="checked"?f.format("list","unchecked"):l==="unchecked"&&f.format("list","checked")}};o.addEventListener("click",s)}format(o,s){this.children.length>0&&this.children.tail.format(o,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(o,s){if(o instanceof i)super.insertBefore(o,s);else{var u=s==null?this.length():s.offset(this),l=this.split(u);l.parent.insertBefore(o,l)}}optimize(o){super.optimize(o);var s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(o){if(o.statics.blotName!==this.statics.blotName){var s=t.create(this.statics.defaultChild);o.moveChildren(s),this.appendChild(s)}super.replace(o)}}return a.blotName="list",a.scope=t.Scope.BLOCK_BLOT,a.tagName=["OL","UL"],a.defaultChild="list-item",a.allowedChildren=[i],{"formats/list":a}}function sx(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function lx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},a=["margin","marginTop","marginBottom","marginLeft","marginRight"],n=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],o={};return a.concat(n).forEach(s=>{o["formats/".concat(s)]=new r.Style(s,Je(s),i)}),o}function ux(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},a=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],n={};return a.forEach(o=>{n["formats/".concat(o)]=new r.Style(o,Je(o),i)}),n}function fx(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],a={};return i.forEach(n=>{var{name:o,scope:s}=n;a["formats/".concat(o)]=new r.Style(o,Je(o),{scope:s})}),a}function cx(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=a=>a&&st(a),t.formats=function(n){return r.reduce(function(o,s){return n.hasAttribute(s)&&(o[s]=n.getAttribute(s)),o},{})};var i=t.prototype.format;t.prototype.format=function(a,n){r.indexOf(a)>-1?n?this.domNode.setAttribute(a,n):this.domNode.removeAttribute(a):i.call(this,a,n)}}function vx(e){var t=e.import("formats/link");t.sanitize=r=>{var i=document.createElement("a");i.href=r;var a=i.href.slice(0,i.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(a)>-1?r:t.SANITIZED_URL}}function dx(e){var t={divider:rx,ins:ix,align:ax,direction:nx,list:ox,background:sx,box:lx,font:ux,text:fx,image:cx,link:vx},r={};Object.values(t).forEach(i=>ce(r,i(e))),e.register(r,!0)}function hx(e,t,r){var i,a,n,o=!1;W(()=>e.readOnly,y=>{i&&(n.enable(!y),y||n.blur())}),W(()=>e.placeholder,y=>{i&&l(y)});function s(y){var m=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],w="",p;Ud(y,{start:function(c,d,_){if(!m.includes(c)){p=!_;return}p=!1;var x=d.map(C=>{var{name:O,value:M}=C;return"".concat(O,'="').concat(M,'"')}).join(" "),E="<".concat(c," ").concat(x," ").concat(_?"/":"",">");w+=E},end:function(c){p||(w+="</".concat(c,">"))},chars:function(c){p||(w+=c)}}),a=!0;var b=n.clipboard.convert(w);return a=!1,b}function u(){var y=n.root.innerHTML,m=n.getText(),w=n.getContents();return{html:y,text:m,delta:w}}function l(y){var m="data-placeholder",w=n.root;w.getAttribute(m)!==y&&w.setAttribute(m,y)}var f={};function v(y){var m=y?n.getFormat(y):{},w=Object.keys(m);(w.length!==Object.keys(f).length||w.find(p=>m[p]!==f[p]))&&(f=m,r("statuschange",{},m))}function g(y){var m=window.Quill;dx(m);var w={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};y.length&&(m.register("modules/ImageResize",window.ImageResize.default),w.modules={ImageResize:{modules:y}});var p=t.value;n=new m(p,w);var b=n.root,c=["focus","blur","input"];c.forEach(d=>{b.addEventListener(d,_=>{var x=u();if(d==="input"){if(yc().platform==="ios"){var E=(x.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],C=E&&E.replace(/\s/g,"")?"":e.placeholder;l(C)}_.stopPropagation()}else r(d,_,x)})}),n.on("text-change",()=>{o||r("input",{},u())}),n.on("selection-change",v),n.on("scroll-optimize",()=>{var d=n.selection.getRange()[0];v(d)}),n.clipboard.addMatcher(Node.ELEMENT_NODE,(d,_)=>(a||_.ops&&(_.ops=_.ops.filter(x=>{var{insert:E}=x;return typeof E=="string"}).map(x=>{var{insert:E}=x;return{insert:E}})),_)),i=!0,r("ready",{},{})}Re(()=>{var y=[];e.showImgSize&&y.push("DisplaySize"),e.showImgToolbar&&y.push("Toolbar"),e.showImgResize&&y.push("Resize");var m="./__uniappquill.js";Hd(window.Quill,m,()=>{if(y.length){var w="./__uniappquillimageresize.js";Hd(window.ImageResize,w,()=>{g(y)})}else g(y)})});var h=la();sa((y,m,w)=>{var{options:p,callbackId:b}=m,c,d,_;if(i){var x=window.Quill;switch(y){case"format":{var{name:E="",value:C=!1}=p;d=n.getSelection(!0);var O=n.getFormat(d)[E]||!1;if(["bold","italic","underline","strike","ins"].includes(E))C=!O;else if(E==="direction"){C=C==="rtl"&&O?!1:C;var M=n.getFormat(d).align;C==="rtl"&&!M?n.format("align","right","user"):!C&&M==="right"&&n.format("align",!1,"user")}else if(E==="indent"){var R=n.getFormat(d).direction==="rtl";C=C==="+1",R&&(C=!C),C=C?"+1":"-1"}else E==="list"&&(C=C==="check"?"unchecked":C,O=O==="checked"?"unchecked":O),C=O&&O!==(C||!1)||!O&&C?C:!O;n.format(E,C,"user")}break;case"insertDivider":d=n.getSelection(!0),n.insertText(d.index,gi,"user"),n.insertEmbed(d.index+1,"divider",!0,"user"),n.setSelection(d.index+2,0,"silent");break;case"insertImage":{d=n.getSelection(!0);var{src:U="",alt:te="",width:L="",height:H="",extClass:q="",data:re={}}=p,V=st(U);n.insertEmbed(d.index,"image",V,"user");var K=/^(file|blob):/.test(V)?V:!1;o=!0,n.formatText(d.index,1,"data-local",K),n.formatText(d.index,1,"alt",te),n.formatText(d.index,1,"width",L),n.formatText(d.index,1,"height",H),n.formatText(d.index,1,"class",q),o=!1,n.formatText(d.index,1,"data-custom",Object.keys(re).map(le=>"".concat(le,"=").concat(re[le])).join("&")),n.setSelection(d.index+1,0,"silent")}break;case"insertText":{d=n.getSelection(!0);var{text:ae=""}=p;n.insertText(d.index,ae,"user"),n.setSelection(d.index+ae.length,0,"silent")}break;case"setContents":{var{delta:Te,html:se}=p;typeof Te=="object"?n.setContents(Te,"silent"):typeof se=="string"?n.setContents(s(se),"silent"):_="contents is missing"}break;case"getContents":c=u();break;case"clear":n.setText("");break;case"removeFormat":{d=n.getSelection(!0);var he=x.import("parchment");d.length?n.removeFormat(d.index,d.length,"user"):Object.keys(n.getFormat(d)).forEach(le=>{he.query(le,he.Scope.INLINE)&&n.format(le,!1)})}break;case"undo":n.history.undo();break;case"redo":n.history.redo();break;case"blur":n.blur();break;case"getSelectionText":d=n.selection.savedRange,c={text:""},d&&d.length!==0&&(c.text=n.getText(d.index,d.length));break;case"scrollIntoView":n.scrollIntoView();break}v(d)}else _="not ready";b&&w({callbackId:b,data:ce({},c,{errMsg:"".concat(y,":").concat(_?"fail "+_:"ok")})})},h,!0)}var gx=ce({},Dd,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),px=de({name:"Editor",props:gx,emit:["ready","focus","blur","input","statuschange",...Bd],setup(e,t){var{emit:r}=t,i=B(null),a=Le(i,r);return hx(e,i,a),Fd(e,i,a),()=>I("uni-editor",{ref:i,id:e.id,class:"ql-container"},null,8,["id"])}}),Wd="#10aeff",mx="#f76260",Vd="#b2b2b2",_x="#f43530",bx={success:{d:ib,c:Na},success_no_circle:{d:dn,c:Na},info:{d:tb,c:Wd},warn:{d:nb,c:mx},waiting:{d:ab,c:Wd},cancel:{d:J_,c:_x},download:{d:eb,c:Na},search:{d:rb,c:Vd},clear:{d:Q_,c:Vd}},wx=de({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=ee(()=>bx[e.type]);return()=>{var{value:r}=t;return I("uni-icon",null,[r&&r.d&&hn(r.d,e.color||r.c,Vr(e.size))])}}}),yx={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},$n={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},xx={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},Sx=de({name:"Image",props:yx,setup(e,t){var{emit:r}=t,i=B(null),a=Ex(i,e),n=Le(i,r),{fixSize:o}=Ax(i,e,a);return Tx(a,e,i,o,n),()=>I("uni-image",{ref:i},[I("div",{style:a.modeStyle},null,4),$n[e.mode]?I(Or,{onResize:o},null,8,["onResize"]):I("span",null,null)],512)}});function Ex(e,t){var r=B(""),i=ee(()=>{var n="auto",o="",s=xx[t.mode];return s?(s[0]&&(o=s[0]),s[1]&&(n=s[1])):(o="0% 0%",n="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",";background-position:").concat(o,";background-size:").concat(n,";")}),a=ke({rootEl:e,src:ee(()=>t.src?st(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Re(()=>{var n=e.value,o=n.style;a.origWidth=Number(o.width)||0,a.origHeight=Number(o.height)||0}),a}function Tx(e,t,r,i,a){var n,o,s=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";e.origWidth=f,e.origHeight=v,e.imgSrc=g},u=f=>{if(!f){l(),s();return}n=n||new Image,n.onload=v=>{var{width:g,height:h}=n;s(g,h,f),i(),n.draggable=t.draggable,o&&o.remove(),o=n,r.value.appendChild(n),l(),a("load",v,{width:g,height:h})},n.onerror=v=>{s(),l(),a("error",v,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},n.src=f},l=()=>{n&&(n.onload=null,n.onerror=null,n=null)};W(()=>e.src,f=>u(f)),W(()=>e.imgSrc,f=>{!f&&o&&(o.remove(),o=null)}),Re(()=>u(e.src)),Ce(()=>l())}var Cx=navigator.vendor==="Google Inc.";function Ox(e){return Cx&&e>10&&(e=Math.round(e/2)*2),e}function Ax(e,t,r){var i=()=>{var{mode:n}=t,o=$n[n];if(!!o){var{origWidth:s,origHeight:u}=r,l=s&&u?s/u:0;if(!!l){var f=e.value,v=f[o[0]];v&&(f.style[o[1]]=Ox(o[2](v,l))+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},a=()=>{var{style:n}=e.value,{origStyle:{width:o,height:s}}=r;n.width=o,n.height=s};return W(()=>t.mode,(n,o)=>{$n[o]&&a(),$n[n]&&i()}),{fixSize:i,resetSize:a}}function Ix(e,t){var r=0,i,a,n=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var l=Date.now();if(clearTimeout(i),a=()=>{a=null,r=l,e.apply(this,s)},l-r<t){i=setTimeout(a,t-(l-r));return}a()};return n.cancel=function(){clearTimeout(i),a=null},n.flush=function(){clearTimeout(i),a&&a()},n}var kx=mi(!0),zn=[],_l=0,jd,Yd=e=>zn.forEach(t=>t.userAction=e);function Mx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{userAction:!1};if(!jd){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach(r=>{document.addEventListener(r,function(){!_l&&Yd(!0),_l++,setTimeout(()=>{!--_l&&Yd(!1)},0)},kx)}),jd=!0}zn.push(e)}function Rx(e){var t=zn.indexOf(e);t>=0&&zn.splice(t,1)}function Lx(){var e=ke({userAction:!1});return Re(()=>{Mx(e)}),Ce(()=>{Rx(e)}),{state:e}}function qd(){var e=ke({attrs:{}});return Re(()=>{for(var t=Dt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function Px(e,t){var r=_e(kt,!1);if(!!r){var i=Dt(),a={submit(){var n=i.proxy;return[n[e],typeof t=="string"?n[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(a),Ce(()=>{r.removeField(a)})}}function Nx(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var Dx=function(){wt(Gt(),"getSelectedTextRange",Nx)},Bx=200,bl;function wl(e,t){return t==="number"&&isNaN(Number(e))&&(e=""),e===null?"":String(e)}var Xd=ce({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0}},Dd),Zd=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...Bd];function Fx(e,t,r){var i=B(null),a=Le(t,r),n=ee(()=>{var v=Number(e.selectionStart);return isNaN(v)?-1:v}),o=ee(()=>{var v=Number(e.selectionEnd);return isNaN(v)?-1:v}),s=ee(()=>{var v=Number(e.cursor);return isNaN(v)?-1:v}),u=ee(()=>{var v=Number(e.maxlength);return isNaN(v)?140:v}),l=wl(e.modelValue,e.type)||wl(e.value,e.type),f=ke({value:l,valueOrigin:l,maxlength:u,focus:e.focus,composing:!1,selectionStart:n,selectionEnd:o,cursor:s});return W(()=>f.focus,v=>r("update:focus",v)),W(()=>f.maxlength,v=>f.value=f.value.slice(0,v)),{fieldRef:i,state:f,trigger:a}}function $x(e,t,r,i){var a=nm(s=>{t.value=wl(s,e.type)},100,{setTimeout,clearTimeout});W(()=>e.modelValue,a),W(()=>e.value,a);var n=Ix((s,u)=>{a.cancel(),r("update:modelValue",u.value),r("update:value",u.value),i("input",s,u)},100),o=(s,u,l)=>{a.cancel(),n(s,u),l&&n.flush()};return Af(()=>{a.cancel(),n.cancel()}),{trigger:i,triggerInput:o}}function zx(e,t){var{state:r}=Lx(),i=ee(()=>e.autoFocus||e.focus);function a(){if(!!i.value){var o=t.value;if(!o||!("plus"in window)){setTimeout(a,100);return}{var s=Bx-(Date.now()-bl);if(s>0){setTimeout(a,s);return}o.focus(),r.userAction||plus.key.showSoftKeybord()}}}function n(){var o=t.value;o&&o.blur()}W(()=>e.focus,o=>{o?a():n()}),Re(()=>{bl=bl||Date.now(),i.value&&Ur(a)})}function Ux(e,t,r,i,a,n){function o(){var f=e.value;f&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&f.type!=="number"&&(f.selectionStart=t.selectionStart,f.selectionEnd=t.selectionEnd)}function s(){var f=e.value;f&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&f.type!=="number"&&(f.selectionEnd=f.selectionStart=t.cursor)}function u(f){return f.type==="number"?null:f.selectionEnd}function l(){var f=e.value,v=function(m){t.focus=!0,i("focus",m,{value:t.value}),o(),s()},g=function(m,w){m.stopPropagation(),!(typeof n=="function"&&n(m,t)===!1)&&(t.value=f.value,(!t.composing||!r.ignoreCompositionEvent)&&a(m,{value:f.value,cursor:u(f)},w))},h=function(m){t.composing&&(t.composing=!1,g(m,!0)),t.focus=!1,i("blur",m,{value:t.value,cursor:u(m.target)})};f.addEventListener("change",m=>m.stopPropagation()),f.addEventListener("focus",v),f.addEventListener("blur",h),f.addEventListener("input",g),f.addEventListener("compositionstart",m=>{m.stopPropagation(),t.composing=!0,y(m)}),f.addEventListener("compositionend",m=>{m.stopPropagation(),t.composing&&(t.composing=!1,g(m)),y(m)}),f.addEventListener("compositionupdate",y);function y(m){r.ignoreCompositionEvent||i(m.type,m,{value:m.data})}}W([()=>t.selectionStart,()=>t.selectionEnd],o),W(()=>t.cursor,s),W(()=>e.value,l)}function Kd(e,t,r,i){Dx();var{fieldRef:a,state:n,trigger:o}=Fx(e,t,r),{triggerInput:s}=$x(e,n,r,o);zx(e,a),Fd(e,a,o);var{state:u}=qd();Px("name",n),Ux(a,n,e,o,s,i);var l=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:a,state:n,scopedAttrsState:u,fixDisabledColor:l,trigger:o}}var Hx=ce({},Xd,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Wx=de({name:"Input",props:Hx,emits:["confirm",...Zd],setup(e,t){var{emit:r}=t,i=["text","number","idcard","digit","password","tel"],a=["off","one-time-code"],n=ee(()=>{var b="";switch(e.type){case"text":e.confirmType==="search"&&(b="search");break;case"idcard":b="text";break;case"digit":b="number";break;default:b=~i.includes(e.type)?e.type:"text";break}return e.password?"password":b}),o=ee(()=>{var b=a.indexOf(e.textContentType),c=a.indexOf(Je(e.textContentType)),d=b!==-1?b:c!==-1?c:0;return a[d]}),s=B(""),u,l=B(null),{fieldRef:f,state:v,scopedAttrsState:g,fixDisabledColor:h,trigger:y}=Kd(e,l,r,(b,c)=>{var d=b.target;if(n.value==="number"){if(u&&(d.removeEventListener("blur",u),u=null),d.validity&&!d.validity.valid)return!s.value&&b.data==="-"||s.value[0]==="-"&&b.inputType==="deleteContentBackward"?(s.value="-",c.value="",u=()=>{s.value=d.value=""},d.addEventListener("blur",u),!1):(s.value=c.value=d.value=s.value==="-"?"":s.value,!1);s.value=d.value;var _=c.maxlength;if(_>0&&d.value.length>_)return d.value=d.value.slice(0,_),c.value=d.value,!1}});W(()=>v.value,b=>{e.type==="number"&&!(s.value==="-"&&b==="")&&(s.value=b)});var m=["number","digit"],w=ee(()=>m.includes(e.type)?"0.000000000000000001":"");function p(b){if(b.key==="Enter"){var c=b.target;b.stopPropagation(),y("confirm",b,{value:c.value}),!e.confirmHold&&c.blur()}}return()=>{var b=e.disabled&&h?I("input",{ref:f,value:v.value,tabindex:"-1",readonly:!!e.disabled,type:n.value,maxlength:v.maxlength,step:w.value,class:"uni-input-input",onFocus:c=>c.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):I("input",{ref:f,value:v.value,disabled:!!e.disabled,type:n.value,maxlength:v.maxlength,step:w.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:o.value,onKeyup:p},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return I("uni-input",{ref:l},[I("div",{class:"uni-input-wrapper"},[Ii(I("div",rt(g.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Li,!(v.value.length||s.value==="-")]]),e.confirmType==="search"?I("form",{action:"",onSubmit:c=>c.preventDefault(),class:"uni-input-form"},[b],40,["onSubmit"]):b])],512)}}});function Vx(e){return Object.keys(e).map(t=>[t,e[t]])}var jx=["class","style"],Yx=/^on[A-Z]+/,Gd=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=Dt(),a=es({}),n=es({}),o=es({}),s=r.concat(jx);return i.attrs=ke(i.attrs),L0(()=>{var u=Vx(i.attrs).reduce((l,f)=>{var[v,g]=f;return s.includes(v)?l.exclude[v]=g:Yx.test(v)?(t||(l.attrs[v]=g),l.listeners[v]=g):l.attrs[v]=g,l},{exclude:{},attrs:{},listeners:{}});a.value=u.attrs,n.value=u.listeners,o.value=u.exclude}),{$attrs:a,$listeners:n,$excludeAttrs:o}},Un,ra;function Hn(){Nr(()=>{Un||(Un=plus.webview.currentWebview()),ra||(ra=(Un.getStyle()||{}).pullToRefresh||{})})}function or(e){var{disable:t}=e;ra&&ra.support&&Un.setPullToRefresh(Object.assign({},ra,{support:!t}))}function yl(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{en(r)?r.type===xt?t.push(...yl(r.children)):t.push(r):Array.isArray(r)&&t.push(...yl(r))}),t}function ia(e){var t=Dt();t.rebuild=e}var qx={scaleArea:{type:Boolean,default:!1}},Xx=de({inheritAttrs:!1,name:"MovableArea",props:qx,setup(e,t){var{slots:r}=t,i=B(null),a=B(!1),{setContexts:n,events:o}=Zx(e,i),{$listeners:s,$attrs:u,$excludeAttrs:l}=Gd(),f=s.value,v=["onTouchstart","onTouchmove","onTouchend"];v.forEach(p=>{var b=f[p],c=o["_".concat(p)];f[p]=b?[].concat(b,c):c}),Re(()=>{o._resize(),Hn(),a.value=!0});var g=[],h=[];function y(){for(var p=[],b=function(d){var _=g[d];_ instanceof Element||(_=_.el);var x=h.find(E=>_===E.rootRef.value);x&&p.push(qa(x))},c=0;c<g.length;c++)b(c);n(p)}ia(()=>{g=i.value.children,y()});var m=p=>{h.push(p),y()},w=p=>{var b=h.indexOf(p);b>=0&&(h.splice(b,1),y())};return ze("_isMounted",a),ze("movableAreaRootRef",i),ze("addMovableViewContext",m),ze("removeMovableViewContext",w),()=>(r.default&&r.default(),I("uni-movable-area",rt({ref:i},u.value,l.value,f),[I(Or,{onReize:o._resize},null,8,["onReize"]),g],16))}});function Jd(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function Zx(e,t){var r=B(0),i=B(0),a=ke({x:null,y:null}),n=B(null),o=null,s=[];function u(m){m&&m!==1&&(e.scaleArea?s.forEach(function(w){w._setScale(m)}):o&&o._setScale(m))}function l(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,p=t.value;function b(c){for(var d=0;d<w.length;d++){var _=w[d];if(c===_.rootRef.value)return _}return c===p||c===document.body||c===document?null:b(c.parentNode)}return b(m)}var f=Cr(m=>{or({disable:!0});var w=m.touches;if(w&&w.length>1){var p={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(n.value=Jd(p),a.x=p.x,a.y=p.y,!e.scaleArea){var b=l(w[0].target),c=l(w[1].target);o=b&&b===c?b:null}}}),v=Cr(m=>{var w=m.touches;if(w&&w.length>1){m.preventDefault();var p={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(a.x!==null&&n.value&&n.value>0){var b=Jd(p)/n.value;u(b)}a.x=p.x,a.y=p.y}}),g=Cr(m=>{or({disable:!1});var w=m.touches;w&&w.length||m.changedTouches&&(a.x=0,a.y=0,n.value=null,e.scaleArea?s.forEach(function(p){p._endScale()}):o&&o._endScale())});function h(){y(),s.forEach(function(m,w){m.setParent()})}function y(){var m=window.getComputedStyle(t.value),w=t.value.getBoundingClientRect();r.value=w.width-["Left","Right"].reduce(function(p,b){var c="border"+b+"Width",d="padding"+b;return p+parseFloat(m[c])+parseFloat(m[d])},0),i.value=w.height-["Top","Bottom"].reduce(function(p,b){var c="border"+b+"Width",d="padding"+b;return p+parseFloat(m[c])+parseFloat(m[d])},0)}return ze("movableAreaWidth",r),ze("movableAreaHeight",i),{setContexts(m){s=m},events:{_onTouchstart:f,_onTouchmove:v,_onTouchend:g,_resize:h}}}var aa=function(e,t,r,i){e.addEventListener(t,a=>{typeof r=="function"&&r(a)===!1&&((typeof a.cancelable=="undefined"||a.cancelable)&&a.preventDefault(),a.stopPropagation())},{passive:!1})},Qd,eh;function Wn(e,t,r){Ce(()=>{document.removeEventListener("mousemove",Qd),document.removeEventListener("mouseup",eh)});var i=0,a=0,n=0,o=0,s=function(h,y,m,w){if(t({cancelable:h.cancelable,target:h.target,currentTarget:h.currentTarget,preventDefault:h.preventDefault.bind(h),stopPropagation:h.stopPropagation.bind(h),touches:h.touches,changedTouches:h.changedTouches,detail:{state:y,x:m,y:w,dx:m-i,dy:w-a,ddx:m-n,ddy:w-o,timeStamp:h.timeStamp}})===!1)return!1},u=null,l,f;aa(e,"touchstart",function(h){if(l=!0,h.touches.length===1&&!u)return u=h,i=n=h.touches[0].pageX,a=o=h.touches[0].pageY,s(h,"start",i,a)}),aa(e,"mousedown",function(h){if(f=!0,!l&&!u)return u=h,i=n=h.pageX,a=o=h.pageY,s(h,"start",i,a)}),aa(e,"touchmove",function(h){if(h.touches.length===1&&u){var y=s(h,"move",h.touches[0].pageX,h.touches[0].pageY);return n=h.touches[0].pageX,o=h.touches[0].pageY,y}});var v=Qd=function(h){if(!l&&f&&u){var y=s(h,"move",h.pageX,h.pageY);return n=h.pageX,o=h.pageY,y}};document.addEventListener("mousemove",v),aa(e,"touchend",function(h){if(h.touches.length===0&&u)return l=!1,u=null,s(h,"end",h.changedTouches[0].pageX,h.changedTouches[0].pageY)});var g=eh=function(h){if(f=!1,!l&&u)return u=null,s(h,"end",h.pageX,h.pageY)};document.addEventListener("mouseup",g),aa(e,"touchcancel",function(h){if(u){l=!1;var y=u;return u=null,s(h,r?"cancel":"end",y.touches[0].pageX,y.touches[0].pageY)}})}function Vn(e,t,r){return e>t-r&&e<t+r}function Ar(e,t){return Vn(e,0,t)}function xl(){}xl.prototype.x=function(e){return Math.sqrt(e)};function Mt(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}Mt.prototype.setV=function(e,t){var r=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/r,this._y_a=-this._f*this._y_v/r,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=new Date().getTime()},Mt.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Mt.prototype.s=function(e){e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&r<this._endPositionY||this._y_a<0&&r>this._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},Mt.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Mt.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Mt.prototype.dt=function(){return-this._x_v/this._x_a},Mt.prototype.done=function(){var e=Vn(this.s().x,this._endPositionX)||Vn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Mt.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Mt.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function at(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}at.prototype._solve=function(e,t){var r=this._c,i=this._m,a=this._k,n=r*r-4*i*a;if(n===0){var o=-r/(2*i),s=e,u=t/(o*e);return{x:function(p){return(s+u*p)*Math.pow(Math.E,o*p)},dx:function(p){var b=Math.pow(Math.E,o*p);return o*(s+u*p)*b+u*b}}}if(n>0){var l=(-r-Math.sqrt(n))/(2*i),f=(-r+Math.sqrt(n))/(2*i),v=(t-l*e)/(f-l),g=e-v;return{x:function(p){var b,c;return p===this._t&&(b=this._powER1T,c=this._powER2T),this._t=p,b||(b=this._powER1T=Math.pow(Math.E,l*p)),c||(c=this._powER2T=Math.pow(Math.E,f*p)),g*b+v*c},dx:function(p){var b,c;return p===this._t&&(b=this._powER1T,c=this._powER2T),this._t=p,b||(b=this._powER1T=Math.pow(Math.E,l*p)),c||(c=this._powER2T=Math.pow(Math.E,f*p)),g*l*b+v*f*c}}}var h=Math.sqrt(4*i*a-r*r)/(2*i),y=-r/2*i,m=e,w=(t-y*e)/h;return{x:function(p){return Math.pow(Math.E,y*p)*(m*Math.cos(h*p)+w*Math.sin(h*p))},dx:function(p){var b=Math.pow(Math.E,y*p),c=Math.cos(h*p),d=Math.sin(h*p);return b*(w*h*c-m*h*d)+y*b*(w*d+m*c)}}},at.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},at.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},at.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!Ar(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(Ar(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),Ar(t,.1)&&(t=0),Ar(i,.1)&&(i=0),i+=this._endPosition),this._solution&&Ar(i-e,.1)&&Ar(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},at.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},at.prototype.done=function(e){return e||(e=new Date().getTime()),Vn(this.x(),this._endPosition,.1)&&Ar(this.dx(),.1)},at.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},at.prototype.springConstant=function(){return this._k},at.prototype.damping=function(){return this._c},at.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function na(e,t,r){this._springX=new at(e,t,r),this._springY=new at(e,t,r),this._springScale=new at(e,t,r),this._startTime=0}na.prototype.setEnd=function(e,t,r,i){var a=new Date().getTime();this._springX.setEnd(e,i,a),this._springY.setEnd(t,i,a),this._springScale.setEnd(r,i,a),this._startTime=a},na.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},na.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},na.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var Kx={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}};function th(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}var Gx=de({name:"MovableView",props:Kx,emits:["change","scale"],setup(e,t){var{slots:r,emit:i}=t,a=B(null),n=Le(a,i),{setParent:o}=Jx(e,n,a);return()=>I("uni-movable-view",{ref:a},[I(Or,{onResize:o},null,8,["onResize"]),r.default&&r.default()],512)}}),Sl=!1;function rh(e){Sl||(Sl=!0,requestAnimationFrame(function(){e(),Sl=!1}))}function ih(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=ih(e.offsetParent,t):0}function ah(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=ah(e.offsetParent,t):0}function nh(e,t,r){var i={id:0,cancelled:!1},a=function(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)};function n(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(n.bind(null,o,s,u,l))),f&&l&&l(s)}}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}function jn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function Jx(e,t,r){var i=_e("movableAreaWidth",B(0)),a=_e("movableAreaHeight",B(0)),n=_e("_isMounted",B(!1)),o=_e("movableAreaRootRef"),s=_e("addMovableViewContext",()=>{}),u=_e("removeMovableViewContext",()=>{}),l=B(jn(e.x)),f=B(jn(e.y)),v=B(Number(e.scaleValue)||1),g=B(0),h=B(0),y=B(0),m=B(0),w=B(0),p=B(0),b=null,c=null,d={x:0,y:0},_={x:0,y:0},x=1,E=1,C=0,O=0,M=!1,R=!1,U,te,L=null,H=null,q=new xl,re=new xl,V={historyX:[0,0],historyY:[0,0],historyT:[0,0]},K=ee(()=>{var A=Number(e.damping);return isNaN(A)?20:A}),ae=ee(()=>{var A=Number(e.friction);return isNaN(A)||A<=0?2:A}),Te=ee(()=>{var A=Number(e.scaleMin);return isNaN(A)?.5:A}),se=ee(()=>{var A=Number(e.scaleMax);return isNaN(A)?10:A}),he=ee(()=>e.direction==="all"||e.direction==="horizontal"),le=ee(()=>e.direction==="all"||e.direction==="vertical"),J=new na(1,9*Math.pow(K.value,2)/40,K.value),xe=new Mt(1,ae.value);W(()=>e.x,A=>{l.value=jn(A)}),W(()=>e.y,A=>{f.value=jn(A)}),W(l,A=>{Ve(A)}),W(f,A=>{sr(A)}),W(()=>e.scaleValue,A=>{v.value=Number(A)||0}),W(v,A=>{va(A)}),W(Te,()=>{Ne()}),W(se,()=>{Ne()});function we(){c&&c.cancel(),b&&b.cancel()}function Ve(A){if(he.value){if(A+_.x===C)return C;b&&b.cancel(),Q(A+_.x,f.value+_.y,x)}return A}function sr(A){if(le.value){if(A+_.y===O)return O;b&&b.cancel(),Q(l.value+_.x,A+_.y,x)}return A}function Ne(){if(!e.scale)return!1;F(x,!0),z(x)}function va(A){return e.scale?(A=D(A),F(A,!0),z(A),A):!1}function da(){M||e.disabled||(or({disable:!0}),we(),V.historyX=[0,0],V.historyY=[0,0],V.historyT=[0,0],he.value&&(U=C),le.value&&(te=O),r.value.style.willChange="transform",L=null,H=null,R=!0)}function S(A){if(!M&&!e.disabled&&R){var Y=C,X=O;if(H===null&&(H=Math.abs(A.detail.dx/A.detail.dy)>1?"htouchmove":"vtouchmove"),he.value&&(Y=A.detail.dx+U,V.historyX.shift(),V.historyX.push(Y),!le.value&&L===null&&(L=Math.abs(A.detail.dx/A.detail.dy)<1)),le.value&&(X=A.detail.dy+te,V.historyY.shift(),V.historyY.push(X),!he.value&&L===null&&(L=Math.abs(A.detail.dy/A.detail.dx)<1)),V.historyT.shift(),V.historyT.push(A.detail.timeStamp),!L){A.preventDefault();var ge="touch";Y<y.value?e.outOfBounds?(ge="touch-out-of-bounds",Y=y.value-q.x(y.value-Y)):Y=y.value:Y>w.value&&(e.outOfBounds?(ge="touch-out-of-bounds",Y=w.value+q.x(Y-w.value)):Y=w.value),X<m.value?e.outOfBounds?(ge="touch-out-of-bounds",X=m.value-re.x(m.value-X)):X=m.value:X>p.value&&(e.outOfBounds?(ge="touch-out-of-bounds",X=p.value+re.x(X-p.value)):X=p.value),rh(function(){Z(Y,X,x,ge)})}}}function T(){if(!M&&!e.disabled&&R&&(or({disable:!1}),r.value.style.willChange="auto",R=!1,!L&&!G("out-of-bounds")&&e.inertia)){var A=1e3*(V.historyX[1]-V.historyX[0])/(V.historyT[1]-V.historyT[0]),Y=1e3*(V.historyY[1]-V.historyY[0])/(V.historyT[1]-V.historyT[0]);xe.setV(A,Y),xe.setS(C,O);var X=xe.delta().x,ge=xe.delta().y,ue=X+C,Fe=ge+O;ue<y.value?(ue=y.value,Fe=O+(y.value-C)*ge/X):ue>w.value&&(ue=w.value,Fe=O+(w.value-C)*ge/X),Fe<m.value?(Fe=m.value,ue=C+(m.value-O)*X/ge):Fe>p.value&&(Fe=p.value,ue=C+(p.value-O)*X/ge),xe.setEnd(ue,Fe),c=nh(xe,function(){var Ge=xe.s(),De=Ge.x,pt=Ge.y;Z(De,pt,x,"friction")},function(){c.cancel()})}!e.outOfBounds&&!e.inertia&&we()}function k(A,Y){var X=!1;return A>w.value?(A=w.value,X=!0):A<y.value&&(A=y.value,X=!0),Y>p.value?(Y=p.value,X=!0):Y<m.value&&(Y=m.value,X=!0),{x:A,y:Y,outOfBounds:X}}function P(){d.x=ih(r.value,o.value),d.y=ah(r.value,o.value)}function N(A){A=A||x,A=D(A);var Y=r.value.getBoundingClientRect();h.value=Y.height/x,g.value=Y.width/x;var X=h.value*A,ge=g.value*A;_.x=(ge-g.value)/2,_.y=(X-h.value)/2}function $(){var A=0-d.x+_.x,Y=i.value-g.value-d.x-_.x;y.value=Math.min(A,Y),w.value=Math.max(A,Y);var X=0-d.y+_.y,ge=a.value-h.value-d.y-_.y;m.value=Math.min(X,ge),p.value=Math.max(X,ge)}function j(){M=!0}function F(A,Y){if(e.scale){A=D(A),N(A),$();var X=k(C,O),ge=X.x,ue=X.y;Y?Q(ge,ue,A,"",!0,!0):rh(function(){Z(ge,ue,A,"",!0,!0)})}}function z(A){E=A}function D(A){return A=Math.max(.5,Te.value,A),A=Math.min(10,se.value,A),A}function Q(A,Y,X,ge,ue,Fe){we(),he.value||(A=C),le.value||(Y=O),e.scale||(X=x);var Ge=k(A,Y);if(A=Ge.x,Y=Ge.y,!e.animation){Z(A,Y,X,ge,ue,Fe);return}J._springX._solution=null,J._springY._solution=null,J._springScale._solution=null,J._springX._endPosition=C,J._springY._endPosition=O,J._springScale._endPosition=x,J.setEnd(A,Y,X,1),b=nh(J,function(){var De=J.x(),pt=De.x,lr=De.y,Rt=De.scale;Z(pt,lr,Rt,ge,ue,Fe)},function(){b.cancel()})}function G(A){var Y=k(C,O),X=Y.x,ge=Y.y,ue=Y.outOfBounds;return ue&&Q(X,ge,x,A),ue}function Z(A,Y,X){var ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",ue=arguments.length>4?arguments[4]:void 0,Fe=arguments.length>5?arguments[5]:void 0;A!==null&&A.toString()!=="NaN"&&typeof A=="number"||(A=C||0),Y!==null&&Y.toString()!=="NaN"&&typeof Y=="number"||(Y=O||0),A=Number(A.toFixed(1)),Y=Number(Y.toFixed(1)),X=Number(X.toFixed(1)),C===A&&O===Y||ue||t("change",{},{x:th(A,_.x),y:th(Y,_.y),source:ge}),e.scale||(X=x),X=D(X),X=+X.toFixed(3),Fe&&X!==x&&t("scale",{},{x:A,y:Y,scale:X});var Ge="translateX("+A+"px) translateY("+Y+"px) translateZ(0px) scale("+X+")";r.value.style.transform=Ge,r.value.style.webkitTransform=Ge,C=A,O=Y,x=X}function fe(){if(!!n.value){we();var A=e.scale?v.value:1;P(),N(A),$(),C=l.value+_.x,O=f.value+_.y;var Y=k(C,O),X=Y.x,ge=Y.y;Z(X,ge,A,"",!0),z(A)}}function Be(){M=!1,z(x)}function Ae(A){A&&(A=E*A,j(),F(A))}return Re(()=>{Wn(r.value,Y=>{switch(Y.detail.state){case"start":da();break;case"move":S(Y);break;case"end":T()}}),fe(),xe.reconfigure(1,ae.value),J.reconfigure(1,9*Math.pow(K.value,2)/40,K.value),r.value.style.transformOrigin="center",Hn();var A={rootRef:r,setParent:fe,_endScale:Be,_setScale:Ae};s(A),Zt(()=>{u(A)})}),Zt(()=>{we()}),{setParent:fe}}var Qx=["navigate","redirect","switchTab","reLaunch","navigateBack"],eS=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],tS=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],rS={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~Qx.indexOf(e))}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,validator(e){return!e||eS.concat(tS).includes(e)}},animationDuration:{type:[String,Number],default:300}};function iS(e){return()=>{if(e.openType!=="navigateBack"&&!e.url){console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}var t=parseInt(e.animationDuration);switch(e.openType){case"navigate":uni.navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t});break}}}var aS=de({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:rS,setup(e,t){var{slots:r}=t,i=Dt(),a=i&&i.vnode.scopeId||"",{hovering:n,binding:o}=gl(e),s=iS(e);return()=>{var{hoverClass:u,url:l}=e,f=e.hoverClass&&e.hoverClass!=="none";return I("a",{class:"navigator-wrap",href:l,onClick:lc},[I("uni-navigator",rt({class:f&&n.value?u:""},f&&o,i?i.attrs:{},{[a]:""},{onClick:s}),[r.default&&r.default()],16,["onClick"])],8,["href","onClick"])}}}),nS={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function oS(e){var t=ke([...e.value]),r=ke({value:t,height:34});return W(()=>e.value,(i,a)=>{(i===a||i.length!==a.length||i.findIndex((n,o)=>n!==a[o])>=0)&&(r.value.length=i.length,i.forEach((n,o)=>{n!==r.value[o]&&r.value.splice(o,1,n)}))}),r}var sS=de({name:"PickerView",props:nS,emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:r,emit:i}=t,a=B(null),n=B(null),o=Le(a,i),s=oS(e),u=B(null),l=()=>{var y=u.value;s.height=y.$el.offsetHeight},f=B([]),v=B([]);function g(y){var m=v.value;if(m instanceof HTMLCollection)return Array.prototype.indexOf.call(m,y.el);m=m.filter(p=>p.type!==Hr);var w=m.indexOf(y);return w!==-1?w:f.value.indexOf(y)}var h=function(y){var m=ee({get(){var w=g(y.vnode);return s.value[w]||0},set(w){var p=g(y.vnode);if(!(p<0)){var b=s.value[p];if(b!==w){s.value[p]=w;var c=s.value.map(d=>d);i("update:value",c),o("change",{},{value:c})}}}});return m};return ze("getPickerViewColumn",h),ze("pickerViewProps",e),ze("pickerViewState",s),ia(()=>{l(),v.value=n.value.children}),()=>{var y=r.default&&r.default();return I("uni-picker-view",{ref:a},[I(Or,{ref:u,onResize:m=>{var{height:w}=m;return s.height=w}},null,8,["onResize"]),I("div",{ref:n,class:"uni-picker-view-wrapper"},[y],512)],512)}}});class oh{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function sh(e,t,r){return e>t-r&&e<t+r}function Ir(e,t){return sh(e,0,t)}class lh{constructor(t,r,i){this._m=t,this._k=r,this._c=i,this._solution=null,this._endPosition=0,this._startTime=0}_solve(t,r){var i=this._c,a=this._m,n=this._k,o=i*i-4*a*n;if(o===0){var s=-i/(2*a),u=t,l=r/(s*t);return{x:function(b){return(u+l*b)*Math.pow(Math.E,s*b)},dx:function(b){var c=Math.pow(Math.E,s*b);return s*(u+l*b)*c+l*c}}}if(o>0){var f=(-i-Math.sqrt(o))/(2*a),v=(-i+Math.sqrt(o))/(2*a),g=(r-f*t)/(v-f),h=t-g;return{x:function(b){var c,d;return b===this._t&&(c=this._powER1T,d=this._powER2T),this._t=b,c||(c=this._powER1T=Math.pow(Math.E,f*b)),d||(d=this._powER2T=Math.pow(Math.E,v*b)),h*c+g*d},dx:function(b){var c,d;return b===this._t&&(c=this._powER1T,d=this._powER2T),this._t=b,c||(c=this._powER1T=Math.pow(Math.E,f*b)),d||(d=this._powER2T=Math.pow(Math.E,v*b)),h*f*c+g*v*d}}}var y=Math.sqrt(4*a*n-i*i)/(2*a),m=-i/2*a,w=t,p=(r-m*t)/y;return{x:function(b){return Math.pow(Math.E,m*b)*(w*Math.cos(y*b)+p*Math.sin(y*b))},dx:function(b){var c=Math.pow(Math.E,m*b),d=Math.cos(y*b),_=Math.sin(y*b);return c*(p*y*d-w*y*_)+m*c*(p*_+w*d)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!Ir(r,.4)){r=r||0;var a=this._endPosition;this._solution&&(Ir(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),a=this._solution.x((i-this._startTime)/1e3),Ir(r,.4)&&(r=0),Ir(a,.4)&&(a=0),a+=this._endPosition),this._solution&&Ir(a-t,.4)&&Ir(r,.4)||(this._endPosition=t,this._solution=this._solve(a-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),sh(this.x(),this._endPosition,.4)&&Ir(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,a){i.reconfigure(1,a,i.damping())}function r(i,a){i.reconfigure(1,i.springConstant(),a)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class lS{constructor(t,r,i){this._extent=t,this._friction=r||new oh(.01),this._spring=i||new lh(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function uS(e,t,r){var i={id:0,cancelled:!1};function a(o,s,u,l){if(!o||!o.cancelled){u(s);var f=s.done();f||o.cancelled||(o.id=requestAnimationFrame(a.bind(null,o,s,u,l))),f&&l&&l(s)}}function n(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}class fS{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new lS(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)<this._itemSize&&Math.abs(i.y)<300||Math.abs(i.y)<150)){this.snap();return}if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(i.x)<300||Math.abs(i.x)<150)){this.snap();return}}this._enableX?this._scroll.set(this._position,i.x):this._enableY&&this._scroll.set(this._position,i.y);var a;if(this._enableSnap){var n=this._scroll._friction.x(100),o=n%this._itemSize;a=Math.abs(o)>this._itemSize/2?n-(this._itemSize-Math.abs(o)):n-o,a<=0&&a>=-this._extent&&this._scroll.setVelocityByEnd(a)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=uS(this._scroll,()=>{var s=Date.now(),u=(s-this._scroll._startTime)/1e3,l=this._scroll.x(u);this._position=l,this.updatePosition();var f=this._scroll.dx(u);this._shouldDispatchScrollEvent&&s-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/f),this._lastTime=s)},()=>{this._enableSnap&&(a<=0&&a>=-this._extent&&(this._position=a,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var a=0,n=this._position;this._enableX?(a=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(a=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-a?this._position=-a:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),n!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=a,this._scroll._extent=a}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function cS(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new fS(e,t);function a(u){var l=u,f=u;return l.detail.state==="move"||l.detail.state==="end"?{x:l.detail.dx,y:l.detail.dy}:{x:f.screenX-r.x,y:f.screenY-r.y}}function n(u){var l=u,f=u;l.detail.state==="start"?(r.trackingID="touch",r.x=l.detail.x,r.y=l.detail.y):(r.trackingID="mouse",r.x=f.screenX,r.y=f.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[l.detail.timeStamp||f.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),(typeof u.cancelable!="boolean"||u.cancelable)&&u.preventDefault()}function o(u){var l=u,f=u;if(r.trackingID!==-1){(typeof u.cancelable!="boolean"||u.cancelable)&&u.preventDefault();var v=a(u);if(v){for(r.maxDy=Math.max(r.maxDy,Math.abs(v.y)),r.maxDx=Math.max(r.maxDx,Math.abs(v.x)),r.historyX.push(v.x),r.historyY.push(v.y),r.historyTime.push(l.detail.timeStamp||f.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(v.x,v.y)}}}function s(u){if(r.trackingID!==-1){u.preventDefault();var l=a(u);if(l){var f=r.listener;r.trackingID=-1,r.listener=null;var v=r.historyTime.length,g={x:0,y:0};if(v>2)for(var h=r.historyTime.length-1,y=r.historyTime[h],m=r.historyX[h],w=r.historyY[h];h>0;){h--;var p=r.historyTime[h],b=y-p;if(b>30&&b<50){g.x=(m-r.historyX[h])/(b/1e3),g.y=(w-r.historyY[h])/(b/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],f&&f.onTouchEnd&&f.onTouchEnd(l.x,l.y,g)}}}return{scroller:i,handleTouchStart:n,handleTouchMove:o,handleTouchEnd:s}}var vS=0;function dS(e){var t="uni-picker-view-content-".concat(vS++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return W(()=>e.value,r),t}function hS(e){var t=20,r=0,i=0;e.addEventListener("touchstart",a=>{var n=a.changedTouches[0];r=n.clientX,i=n.clientY}),e.addEventListener("touchend",a=>{var n=a.changedTouches[0];if(Math.abs(n.clientX-r)<t&&Math.abs(n.clientY-i)<t){var o={bubbles:!0,cancelable:!0,target:a.target,currentTarget:a.currentTarget},s=new CustomEvent("click",o),u=["screenX","screenY","clientX","clientY","pageX","pageY"];u.forEach(l=>{s[l]=n[l]}),a.target.dispatchEvent(s)}})}var gS=de({name:"PickerViewColumn",setup(e,t){var{slots:r,emit:i}=t,a=B(null),n=B(null),o=_e("getPickerViewColumn"),s=Dt(),u=o?o(s):B(0),l=_e("pickerViewProps"),f=_e("pickerViewState"),v=B(34),g=B(null),h=()=>{var M=g.value;v.value=M.$el.offsetHeight},y=ee(()=>(f.height-v.value)/2),{state:m}=qd(),w=dS(v),p,b=ke({current:u.value,length:0}),c;function d(){p&&!c&&(c=!0,Ur(()=>{c=!1;var M=Math.min(b.current,b.length-1);M=Math.max(M,0),p.update(M*v.value,void 0,v.value)}))}W(()=>u.value,M=>{M!==b.current&&(b.current=M,d())}),W(()=>b.current,M=>u.value=M),W([()=>v.value,()=>b.length,()=>f.height],d);var _=0;function x(M){var R=_+M.deltaY;if(Math.abs(R)>10){_=0;var U=Math.min(b.current+(R<0?-1:1),b.length-1);b.current=U=Math.max(U,0),p.scrollTo(U*v.value)}else _=R;M.preventDefault()}function E(M){var{clientY:R}=M,U=a.value;if(!p.isScrolling()){var te=U.getBoundingClientRect(),L=R-te.top-f.height/2,H=v.value/2;if(!(Math.abs(L)<=H)){var q=Math.ceil((Math.abs(L)-H)/v.value),re=L<0?-q:q,V=Math.min(b.current+re,b.length-1);b.current=V=Math.max(V,0),p.scrollTo(V*v.value)}}}var C=()=>{var M=a.value,R=n.value,{scroller:U,handleTouchStart:te,handleTouchMove:L,handleTouchEnd:H}=cS(R,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:v.value,friction:new oh(1e-4),spring:new lh(2,90,20),onSnap:q=>{!isNaN(q)&&q!==b.current&&(b.current=q)}});p=U,Wn(M,q=>{switch(q.detail.state){case"start":te(q),or({disable:!0});break;case"move":L(q),q.stopPropagation();break;case"end":case"cancel":H(q),or({disable:!1})}},!0),hS(M),Hn(),d()};{var O=!1;ia(()=>{b.length=n.value.children.length,O||(O=!0,h(),C())})}return()=>{var M=r.default&&r.default(),R="".concat(y.value,"px 0");return I("uni-picker-view-column",{ref:a},[I("div",{onWheel:x,onClick:E,class:"uni-picker-view-group"},[I("div",rt(m.attrs,{class:["uni-picker-view-mask",l.maskClass],style:"background-size: 100% ".concat(y.value,"px;").concat(l.maskStyle)}),null,16),I("div",rt(m.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[I(Or,{ref:g,onResize:U=>{var{height:te}=U;return v.value=te}},null,8,["onResize"])],16),I("div",{ref:n,class:["uni-picker-view-content",w],style:{padding:R}},[M],6)],40,["onWheel","onClick"])],512)}}}),pS=16,kr={activeColor:Na,backgroundColor:"#EBEBEB",activeMode:"backwards"},mS={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},fontSize:{type:[String,Number],default:pS},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:kr.activeColor},activeColor:{type:String,default:kr.activeColor},backgroundColor:{type:String,default:kr.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:kr.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}},borderRadius:{type:[Number,String],default:0}},_S=de({name:"Progress",props:mS,setup(e){var t=bS(e);return uh(t,e),W(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,uh(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:a,currentPercent:n}=t;return I("uni-progress",{class:"uni-progress"},[I("div",{style:i,class:"uni-progress-bar"},[I("div",{style:a,class:"uni-progress-inner-bar"},null,4)],4),r?I("p",{class:"uni-progress-info"},[n+"%"]):""])}}});function bS(e){var t=B(0),r=ee(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=ee(()=>{var o=e.color!==kr.activeColor&&e.activeColor===kr.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(o)}),a=ee(()=>{var o=parseFloat(e.percent);return o<0&&(o=0),o>100&&(o=100),o}),n=ke({outerBarStyle:r,innerBarStyle:i,realPercent:a,currentPercent:t,strokeTimer:0,lastPercent:0});return n}function uh(e,t){t.active?(e.currentPercent=t.activeMode===kr.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var fh=vn("ucg"),wS={name:{type:String,default:""}},yS=de({name:"RadioGroup",props:wS,setup(e,t){var{emit:r,slots:i}=t,a=B(null),n=Le(a,r);return xS(e,n),()=>I("uni-radio-group",{ref:a},[i.default&&i.default()],512)}});function xS(e,t){var r=[];Re(()=>{s(r.length-1)});var i=()=>{var u;return(u=r.find(l=>l.value.radioChecked))===null||u===void 0?void 0:u.value.value};ze(fh,{addField(u){r.push(u)},removeField(u){r.splice(r.indexOf(u),1)},radioChange(u,l){var f=r.indexOf(l);s(f,!0),t("change",u,{value:i()})}});var a=_e(kt,!1),n={submit:()=>{var u=["",null];return e.name!==""&&(u[0]=e.name,u[1]=i()),u}};a&&(a.addField(n),Ce(()=>{a.removeField(n)}));function o(u,l){u.value={radioChecked:l,value:u.value.value}}function s(u,l){r.forEach((f,v)=>{v!==u&&(l?o(r[v],!1):r.forEach((g,h)=>{v>=h||r[h].value.radioChecked&&o(r[v],!1)}))})}return r}var SS={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},ES=de({name:"Radio",props:SS,setup(e,t){var{slots:r}=t,i=B(e.checked),a=B(e.value),n=ee(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));W([()=>e.checked,()=>e.value],v=>{var[g,h]=v;i.value=g,a.value=h});var o=()=>{i.value=!1},{uniCheckGroup:s,uniLabel:u,field:l}=TS(i,a,o),f=v=>{e.disabled||(i.value=!0,s&&s.radioChange(v,l))};return u&&(u.addHandler(f),Ce(()=>{u.removeHandler(f)})),Nn(e,{"label-click":f}),()=>{var v=ai(e,"disabled");return I("uni-radio",rt(v,{onClick:f}),[I("div",{class:"uni-radio-wrapper"},[I("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:i.value?n.value:""},[i.value?hn(dn,"#fff",18):""],6),r.default&&r.default()])],16,["onClick"])}}});function TS(e,t,r){var i=ee({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:u=>{var{radioChecked:l}=u;e.value=l}}),a={reset:r},n=_e(fh,!1);n&&n.addField(i);var o=_e(kt,!1);o&&o.addField(a);var s=_e(Ji,!1);return Ce(()=>{n&&n.removeField(i),o&&o.removeField(a)}),{uniCheckGroup:n,uniForm:o,uniLabel:s,field:i}}var ch={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},El={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function CS(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(ie(El,r)&&El[r])return El[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function OS(e,t,r){return e==="img"&&t==="src"?st(r):r}function vh(e,t,r,i){return e.forEach(function(a){if(!!_t(a))if(!ie(a,"type")||a.type==="node"){if(!(typeof a.name=="string"&&a.name))return;var n=a.name.toLowerCase();if(!ie(ch,n))return;var o=document.createElement(n);if(!o)return;r&&o.setAttribute(r,"");var s=a.attrs;if(_t(s)){var u=ch[n]||[];Object.keys(s).forEach(function(f){var v=s[f];switch(f){case"class":Array.isArray(v)&&(v=v.join(" "));case"style":o.setAttribute(f,v);break;default:u.indexOf(f)!==-1&&o.setAttribute(f,OS(n,f,v))}})}AS(a,o,i);var l=a.children;Array.isArray(l)&&l.length&&vh(a.children,o,r,i),t.appendChild(o)}else a.type==="text"&&typeof a.text=="string"&&a.text!==""&&t.appendChild(document.createTextNode(CS(a.text)))}),t}function AS(e,t,r){["a","img"].includes(e.name)&&r&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",i=>{r(i,{node:e}),i.stopPropagation()},!0))}function IS(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function kS(e){return e.reduce(function(t,r){var i=r.value,a=r.name;return i.match(/ /)&&["style","src"].indexOf(a)===-1&&(i=i.split(" ")),t[a]?Array.isArray(t[a])?t[a].push(i):t[a]=[t[a],i]:t[a]=i,t},{})}function MS(e){e=IS(e);var t=[],r={node:"root",children:[]};return Ud(e,{start:function(i,a,n){var o={name:i};if(a.length!==0&&(o.attrs=kS(a)),n){var s=t[0]||r;s.children||(s.children=[]),s.children.push(o)}else t.unshift(o)},end:function(i){var a=t.shift();if(a.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},chars:function(i){var a={type:"text",text:i};if(t.length===0)r.children.push(a);else{var n=t[0];n.children||(n.children=[]),n.children.push(a)}},comment:function(i){var a={node:"comment",text:i},n=t[0];n.children||(n.children=[]),n.children.push(a)}}),r.children}var RS={nodes:{type:[Array,String],default:function(){return[]}}},LS=de({name:"RichText",compatConfig:{MODE:3},props:RS,emits:["click","touchstart","touchmove","touchcancel","touchend","longpress"],setup(e,t){var{emit:r,attrs:i}=t,a=Dt(),n=B(null),o=Le(n,r),s=!!i.onItemclick;function u(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o("itemclick",f,v)}function l(f){typeof f=="string"&&(f=MS(f));var v=vh(f,document.createDocumentFragment(),a&&a.vnode.scopeId||"",s&&u);n.value.firstElementChild.innerHTML="",n.value.firstElementChild.appendChild(v)}return W(()=>e.nodes,f=>{l(f)}),Re(()=>{l(e.nodes)}),()=>I("uni-rich-text",{ref:n},[I("div",null,null)],512)}}),dh=mi(!0),PS={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},NS=de({name:"ScrollView",compatConfig:{MODE:3},props:PS,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:r,slots:i}=t,a=B(null),n=B(null),o=B(null),s=B(null),u=B(null),l=Le(a,r),{state:f,scrollTopNumber:v,scrollLeftNumber:g}=DS(e);BS(e,f,v,g,l,a,n,s,r);var h=ee(()=>{var y="";return e.scrollX?y+="overflow-x:auto;":y+="overflow-x:hidden;",e.scrollY?y+="overflow-y:auto;":y+="overflow-y:hidden;",y});return()=>{var{refresherEnabled:y,refresherBackground:m,refresherDefaultStyle:w}=e,{refresherHeight:p,refreshState:b,refreshRotate:c}=f;return I("uni-scroll-view",{ref:a},[I("div",{ref:o,class:"uni-scroll-view"},[I("div",{ref:n,style:h.value,class:"uni-scroll-view"},[I("div",{ref:s,class:"uni-scroll-view-content"},[y?I("div",{ref:u,style:{backgroundColor:m,height:p+"px"},class:"uni-scroll-view-refresher"},[w!=="none"?I("div",{class:"uni-scroll-view-refresh"},[I("div",{class:"uni-scroll-view-refresh-inner"},[b=="pulling"?I("svg",{key:"refresh__icon",style:{transform:"rotate("+c+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[I("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),I("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,b=="refreshing"?I("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[I("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,w=="none"?i.refresher&&i.refresher():null],4):null,i.default&&i.default()],512)],4)],512)],512)}}});function DS(e){var t=ee(()=>Number(e.scrollTop)||0),r=ee(()=>Number(e.scrollLeft)||0),i=ke({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function BS(e,t,r,i,a,n,o,s,u){var l=!1,f=0,v=!1,g=()=>{},h=ee(()=>{var x=Number(e.upperThreshold);return isNaN(x)?50:x}),y=ee(()=>{var x=Number(e.lowerThreshold);return isNaN(x)?50:x});function m(x,E){var C=o.value,O=0,M="";if(x<0?x=0:E==="x"&&x>C.scrollWidth-C.offsetWidth?x=C.scrollWidth-C.offsetWidth:E==="y"&&x>C.scrollHeight-C.offsetHeight&&(x=C.scrollHeight-C.offsetHeight),E==="x"?O=C.scrollLeft-x:E==="y"&&(O=C.scrollTop-x),O!==0){var R=s.value;R.style.transition="transform .3s ease-out",R.style.webkitTransition="-webkit-transform .3s ease-out",E==="x"?M="translateX("+O+"px) translateZ(0)":E==="y"&&(M="translateY("+O+"px) translateZ(0)"),R.removeEventListener("transitionend",g),R.removeEventListener("webkitTransitionEnd",g),g=()=>d(x,E),R.addEventListener("transitionend",g),R.addEventListener("webkitTransitionEnd",g),E==="x"?C.style.overflowX="hidden":E==="y"&&(C.style.overflowY="hidden"),R.style.transform=M,R.style.webkitTransform=M}}function w(x){var E=x.target;a("scroll",x,{scrollLeft:E.scrollLeft,scrollTop:E.scrollTop,scrollHeight:E.scrollHeight,scrollWidth:E.scrollWidth,deltaX:t.lastScrollLeft-E.scrollLeft,deltaY:t.lastScrollTop-E.scrollTop}),e.scrollY&&(E.scrollTop<=h.value&&t.lastScrollTop-E.scrollTop>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",x,{direction:"top"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollTop+E.offsetHeight+y.value>=E.scrollHeight&&t.lastScrollTop-E.scrollTop<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",x,{direction:"bottom"}),t.lastScrollToLowerTime=x.timeStamp)),e.scrollX&&(E.scrollLeft<=h.value&&t.lastScrollLeft-E.scrollLeft>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",x,{direction:"left"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollLeft+E.offsetWidth+y.value>=E.scrollWidth&&t.lastScrollLeft-E.scrollLeft<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",x,{direction:"right"}),t.lastScrollToLowerTime=x.timeStamp)),t.lastScrollTop=E.scrollTop,t.lastScrollLeft=E.scrollLeft}function p(x){e.scrollY&&(e.scrollWithAnimation?m(x,"y"):o.value.scrollTop=x)}function b(x){e.scrollX&&(e.scrollWithAnimation?m(x,"x"):o.value.scrollLeft=x)}function c(x){if(x){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(x)){console.error("id error: scroll-into-view=".concat(x));return}var E=n.value.querySelector("#"+x);if(E){var C=o.value.getBoundingClientRect(),O=E.getBoundingClientRect();if(e.scrollX){var M=O.left-C.left,R=o.value.scrollLeft,U=R+M;e.scrollWithAnimation?m(U,"x"):o.value.scrollLeft=U}if(e.scrollY){var te=O.top-C.top,L=o.value.scrollTop,H=L+te;e.scrollWithAnimation?m(H,"y"):o.value.scrollTop=H}}}}function d(x,E){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var C=o.value;E==="x"?(C.style.overflowX=e.scrollX?"auto":"hidden",C.scrollLeft=x):E==="y"&&(C.style.overflowY=e.scrollY?"auto":"hidden",C.scrollTop=x),s.value.removeEventListener("transitionend",g),s.value.removeEventListener("webkitTransitionEnd",g)}function _(x){switch(x){case"refreshing":t.refresherHeight=e.refresherThreshold,l||(l=!0,a("refresherrefresh",{},{}),u("update:refresherTriggered",!0));break;case"restore":case"refresherabort":l=!1,t.refresherHeight=f=0,x==="restore"&&(v=!1,a("refresherrestore",{},{})),x==="refresherabort"&&v&&(v=!1,a("refresherabort",{},{}));break}t.refreshState=x}Re(()=>{Ur(()=>{p(r.value),b(i.value)}),c(e.scrollIntoView);var x=function(U){U.preventDefault(),U.stopPropagation(),w(U)},E={x:0,y:0},C=null,O=function(U){if(E!==null){var te=U.touches[0].pageX,L=U.touches[0].pageY,H=o.value;if(Math.abs(te-E.x)>Math.abs(L-E.y))if(e.scrollX){if(H.scrollLeft===0&&te>E.x){C=!1;return}else if(H.scrollWidth===H.offsetWidth+H.scrollLeft&&te<E.x){C=!1;return}C=!0}else C=!1;else if(e.scrollY)if(H.scrollTop===0&&L>E.y)C=!1,e.refresherEnabled&&U.cancelable!==!1&&U.preventDefault();else if(H.scrollHeight===H.offsetHeight+H.scrollTop&&L<E.y){C=!1;return}else C=!0;else C=!1;if(C&&U.stopPropagation(),H.scrollTop===0&&U.touches.length===1&&(t.refreshState="pulling"),e.refresherEnabled&&t.refreshState==="pulling"){var q=L-E.y;f===0&&(f=L),l?(t.refresherHeight=q+e.refresherThreshold,v=!1):(t.refresherHeight=L-f,t.refresherHeight>0&&(v=!0,a("refresherpulling",U,{deltaY:q})));var re=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(re>1?1:re)*360}}},M=function(U){U.touches.length===1&&(or({disable:!0}),E={x:U.touches[0].pageX,y:U.touches[0].pageY})},R=function(U){E=null,or({disable:!1}),t.refresherHeight>=e.refresherThreshold?_("refreshing"):_("refresherabort")};o.value.addEventListener("touchstart",M,dh),o.value.addEventListener("touchmove",O,mi(!1)),o.value.addEventListener("scroll",x,mi(!1)),o.value.addEventListener("touchend",R,dh),Hn(),Ce(()=>{o.value.removeEventListener("touchstart",M),o.value.removeEventListener("touchmove",O),o.value.removeEventListener("scroll",x),o.value.removeEventListener("touchend",R)})}),ls(()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)}),W(r,x=>{p(x)}),W(i,x=>{b(x)}),W(()=>e.scrollIntoView,x=>{c(x)}),W(()=>e.refresherTriggered,x=>{x===!0?_("refreshing"):x===!1&&_("restore")})}var FS={name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},$S=de({name:"Slider",props:FS,emits:["changing","change"],setup(e,t){var{emit:r}=t,i=B(null),a=B(null),n=B(null),o=B(Number(e.value));W(()=>e.value,v=>{o.value=Number(v)});var s=Le(i,r),u=zS(e,o),{_onClick:l,_onTrack:f}=US(e,o,i,a,s);return Re(()=>{Wn(n.value,f)}),()=>{var{setBgColor:v,setBlockBg:g,setActiveColor:h,setBlockStyle:y}=u;return I("uni-slider",{ref:i,onClick:Cr(l)},[I("div",{class:"uni-slider-wrapper"},[I("div",{class:"uni-slider-tap-area"},[I("div",{style:v.value,class:"uni-slider-handle-wrapper"},[I("div",{ref:n,style:g.value,class:"uni-slider-handle"},null,4),I("div",{style:y.value,class:"uni-slider-thumb"},null,4),I("div",{style:h.value,class:"uni-slider-track"},null,4)],4)]),Ii(I("span",{ref:a,class:"uni-slider-value"},[o.value],512),[[Li,e.showValue]])]),I("slot",null,null)],8,["onClick"])}}});function zS(e,t){var r=()=>{var o=Number(e.max),s=Number(e.min);return 100*(t.value-s)/(o-s)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",a=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",n={setBgColor:ee(()=>({backgroundColor:i()})),setBlockBg:ee(()=>({left:r()})),setActiveColor:ee(()=>({backgroundColor:a(),width:r()})),setBlockStyle:ee(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return n}function US(e,t,r,i,a){var n=v=>{e.disabled||(s(v),a("change",v,{value:t.value}))},o=v=>{var g=Number(e.max),h=Number(e.min),y=Number(e.step);return v<h?h:v>g?g:HS.mul.call(Math.round((v-h)/y),y)+h},s=v=>{var g=Number(e.max),h=Number(e.min),y=i.value,m=getComputedStyle(y,null).marginLeft,w=y.offsetWidth;w=w+parseInt(m);var p=r.value,b=p.offsetWidth-(e.showValue?w:0),c=p.getBoundingClientRect().left,d=(v.x-c)*(g-h)/b+h;t.value=o(d)},u=v=>{if(!e.disabled)return v.detail.state==="move"?(s({x:v.detail.x}),a("changing",v,{value:t.value}),!1):v.detail.state==="end"&&a("change",v,{value:t.value})},l=_e(kt,!1);if(l){var f={reset:()=>t.value=Number(e.min),submit:()=>{var v=["",null];return e.name!==""&&(v[0]=e.name,v[1]=t.value),v}};l.addField(f),Ce(()=>{l.removeField(f)})}return{_onClick:n,_onTrack:u}}var HS={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch(a){}try{t+=i.split(".")[1].length}catch(a){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},WS={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function VS(e){var t=ee(()=>{var n=Number(e.interval);return isNaN(n)?5e3:n}),r=ee(()=>{var n=Number(e.duration);return isNaN(n)?500:n}),i=ee(()=>{var n=Math.round(e.displayMultipleItems);return isNaN(n)?1:n}),a=ke({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return a}function jS(e,t,r,i,a,n){function o(){s&&(clearTimeout(s),s=null)}var s=null,u=!0,l=0,f=1,v=null,g=!1,h=0,y,m="",w,p=ee(()=>e.circular&&r.value.length>t.displayMultipleItems);function b(L){if(!u)for(var H=r.value,q=H.length,re=L+t.displayMultipleItems,V=0;V<q;V++){var K=H[V],ae=Math.floor(L/q)*q+V,Te=ae+q,se=ae-q,he=Math.max(L-(ae+1),ae-re,0),le=Math.max(L-(Te+1),Te-re,0),J=Math.max(L-(se+1),se-re,0),xe=Math.min(he,le,J),we=[ae,Te,se][[he,le,J].indexOf(xe)];K.updatePosition(we,e.vertical)}}function c(L){Math.floor(2*l)===Math.floor(2*L)&&Math.ceil(2*l)===Math.ceil(2*L)||p.value&&b(L);var H=e.vertical?"0":100*-L*f+"%",q=e.vertical?100*-L*f+"%":"0",re="translate("+H+", "+q+") translateZ(0)",V=i.value;if(V&&(V.style.webkitTransform=re,V.style.transform=re),l=L,!y){if(L%1===0)return;y=L}L-=Math.floor(y);var K=r.value;L<=-(K.length-1)?L+=K.length:L>=K.length&&(L-=K.length),L=y%1>.5||y<0?L-1:L,n("transition",{},{dx:e.vertical?0:L*V.offsetWidth,dy:e.vertical?L*V.offsetHeight:0})}function d(){v&&(c(v.toPos),v=null)}function _(L){var H=r.value.length;if(!H)return-1;var q=(Math.round(L)%H+H)%H;if(p.value){if(H<=t.displayMultipleItems)return 0}else if(q>H-t.displayMultipleItems)return H-t.displayMultipleItems;return q}function x(){v=null}function E(){if(!v){g=!1;return}var L=v,H=L.toPos,q=L.acc,re=L.endTime,V=L.source,K=re-Date.now();if(K<=0){c(H),v=null,g=!1,y=null;var ae=r.value[t.current];if(ae){var Te=ae.getItemId();n("animationfinish",{},{current:t.current,currentItemId:Te,source:V})}return}var se=q*K*K/2,he=H+se;c(he),w=requestAnimationFrame(E)}function C(L,H,q){x();var re=t.duration,V=r.value.length,K=l;if(p.value)if(q<0){for(;K<L;)K+=V;for(;K-V>L;)K-=V}else if(q>0){for(;K>L;)K-=V;for(;K+V<L;)K+=V;K+V-L<L-K&&(K+=V)}else{for(;K+V<L;)K+=V;for(;K-V>L;)K-=V;K+V-L<L-K&&(K+=V)}v={toPos:L,acc:2*(K-L)/(re*re),endTime:Date.now()+re,source:H},g||(g=!0,w=requestAnimationFrame(E))}function O(){o();var L=r.value,H=function(){s=null,m="autoplay",p.value?t.current=_(t.current+1):t.current=t.current+t.displayMultipleItems<L.length?t.current+1:0,C(t.current,"autoplay",p.value?1:0),s=setTimeout(H,t.interval)};u||L.length<=t.displayMultipleItems||(s=setTimeout(H,t.interval))}function M(){o(),d();for(var L=r.value,H=0;H<L.length;H++)L[H].updatePosition(H,e.vertical);f=1;var q=i.value;if(t.displayMultipleItems===1&&L.length){var re=L[0].getBoundingClientRect(),V=q.getBoundingClientRect();f=re.width/V.width,f>0&&f<1||(f=1)}var K=l;l=-2;var ae=t.current;ae>=0?(u=!1,t.userTracking?(c(K+ae-h),h=ae):(c(ae),e.autoplay&&O())):(u=!0,c(-t.displayMultipleItems-1))}W([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var L=-1;if(e.currentItemId)for(var H=0,q=r.value;H<q.length;H++){var re=q[H].getItemId();if(re===e.currentItemId){L=H;break}}L<0&&(L=Math.round(e.current)||0),L=L<0?0:L,t.current!==L&&(m="",t.current=L)}),W([()=>e.vertical,()=>p.value,()=>t.displayMultipleItems,()=>[...r.value]],M),W(()=>t.interval,()=>{s&&(o(),O())});function R(L,H){var q=m;m="";var re=r.value;if(!q){var V=re.length;C(L,"",p.value&&H+(V-L)%V>V/2?1:0)}var K=re[L];if(K){var ae=t.currentItemId=K.getItemId();n("change",{},{current:t.current,currentItemId:ae,source:q})}}W(()=>t.current,(L,H)=>{R(L,H),a("update:current",L)}),W(()=>t.currentItemId,L=>{a("update:currentItemId",L)});function U(L){L?O():o()}W(()=>e.autoplay&&!t.userTracking,U),U(e.autoplay&&!t.userTracking),Re(()=>{var L=!1,H=0,q=0;function re(){o(),h=l,H=0,q=Date.now(),x()}function V(ae){var Te=q;q=Date.now();var se=r.value.length,he=se-t.displayMultipleItems;function le(Ve){return .5-.25/(Ve+.5)}function J(Ve,sr){var Ne=h+Ve;H=.6*H+.4*sr,p.value||(Ne<0||Ne>he)&&(Ne<0?Ne=-le(-Ne):Ne>he&&(Ne=he+le(Ne-he)),H=0),c(Ne)}var xe=q-Te||1,we=i.value;e.vertical?J(-ae.dy/we.offsetHeight,-ae.ddy/xe):J(-ae.dx/we.offsetWidth,-ae.ddx/xe)}function K(ae){t.userTracking=!1;var Te=H/Math.abs(H),se=0;!ae&&Math.abs(H)>.2&&(se=.5*Te);var he=_(l+se);ae?c(h):(m="touch",t.current=he,C(he,"touch",se!==0?se:he===0&&p.value&&l>=1?1:0))}Wn(i.value,ae=>{if(!e.disableTouch&&!u){if(ae.detail.state==="start")return t.userTracking=!0,L=!1,re();if(ae.detail.state==="end")return K(!1);if(ae.detail.state==="cancel")return K(!0);if(t.userTracking){if(!L){L=!0;var Te=Math.abs(ae.detail.dx),se=Math.abs(ae.detail.dy);if((Te>=se&&e.vertical||Te<=se&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&O();return}}return V(ae.detail),!1}}})}),Zt(()=>{o(),cancelAnimationFrame(w)});function te(L){C(t.current=L,m="click",p.value?1:0)}return{onSwiperDotClick:te}}var YS=de({name:"Swiper",props:WS,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:r,emit:i}=t,a=B(null),n=Le(a,i),o=B(null),s=B(null),u=VS(e),l=ee(()=>{var b={};return(e.nextMargin||e.previousMargin)&&(b=e.vertical?{left:0,right:0,top:Vr(e.previousMargin,!0),bottom:Vr(e.nextMargin,!0)}:{top:0,bottom:0,left:Vr(e.previousMargin,!0),right:Vr(e.nextMargin,!0)}),b}),f=ee(()=>{var b=Math.abs(100/u.displayMultipleItems)+"%";return{width:e.vertical?"100%":b,height:e.vertical?b:"100%"}}),v=[],g=[],h=B([]);function y(){for(var b=[],c=function(_){var x=v[_];x instanceof Element||(x=x.el);var E=g.find(C=>x===C.rootRef.value);E&&b.push(qa(E))},d=0;d<v.length;d++)c(d);h.value=b}ia(()=>{v=s.value.children,y()});var m=function(b){g.push(b),y()};ze("addSwiperContext",m);var w=function(b){var c=g.indexOf(b);c>=0&&(g.splice(c,1),y())};ze("removeSwiperContext",w);var{onSwiperDotClick:p}=jS(e,u,h,s,i,n);return()=>{var b=r.default&&r.default();return v=yl(b),I("uni-swiper",{ref:a},[I("div",{ref:o,class:"uni-swiper-wrapper"},[I("div",{class:"uni-swiper-slides",style:l.value},[I("div",{ref:s,class:"uni-swiper-slide-frame",style:f.value},[b],4)],4),e.indicatorDots&&I("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map((c,d,_)=>I("div",{onClick:()=>p(d),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":d<u.current+u.displayMultipleItems&&d>=u.current||d<u.current+u.displayMultipleItems-_.length},style:{background:d===u.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2)],512)],512)}}}),qS={itemId:{type:String,default:""}},XS=de({name:"SwiperItem",props:qS,setup(e,t){var{slots:r}=t,i=B(null),a={rootRef:i,getItemId(){return e.itemId},getBoundingClientRect(){var n=i.value;return n.getBoundingClientRect()},updatePosition(n,o){var s=o?"0":100*n+"%",u=o?100*n+"%":"0",l=i.value,f="translate(".concat(s,",").concat(u,") translateZ(0)");l&&(l.style.webkitTransform=f,l.style.transform=f)}};return Re(()=>{var n=_e("addSwiperContext");n&&n(a)}),Zt(()=>{var n=_e("removeSwiperContext");n&&n(a)}),()=>I("uni-swiper-item",{ref:i,style:{position:"absolute",width:"100%",height:"100%"}},[r.default&&r.default()],512)}}),ZS={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},KS=de({name:"Switch",props:ZS,emits:["change"],setup(e,t){var{emit:r}=t,i=B(null),a=B(e.checked),n=GS(e,a),o=Le(i,r);W(()=>e.checked,u=>{a.value=u});var s=u=>{e.disabled||(a.value=!a.value,o("change",u,{value:a.value}))};return n&&(n.addHandler(s),Ce(()=>{n.removeHandler(s)})),Nn(e,{"label-click":s}),()=>{var{color:u,type:l}=e,f=ai(e,"disabled");return I("uni-switch",rt({ref:i},f,{onClick:s}),[I("div",{class:"uni-switch-wrapper"},[Ii(I("div",{class:["uni-switch-input",[a.value?"uni-switch-input-checked":""]],style:{backgroundColor:a.value?u:"#DFDFDF",borderColor:a.value?u:"#DFDFDF"}},null,6),[[Li,l==="switch"]]),Ii(I("div",{class:"uni-checkbox-input"},[a.value?hn(dn,e.color,22):""],512),[[Li,l==="checkbox"]])])],16,["onClick"])}}});function GS(e,t){var r=_e(kt,!1),i=_e(Ji,!1),a={submit:()=>{var n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};return r&&(r.addField(a),Zt(()=>{r.removeField(a)})),i}var oa={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function JS(e,t){return e.replace(/\\n/g,gi).split(gi).map(r=>QS(r,t))}function QS(e,t){var{space:r,decode:i}=t;return!e||(r&&oa[r]&&(e=e.replace(/ /g,oa[r])),!i)?e:e.replace(/&nbsp;/g,oa.nbsp).replace(/&ensp;/g,oa.ensp).replace(/&emsp;/g,oa.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")}var eE=ce({},Xd,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator(e){return hh.concat("return").includes(e)}}}),Tl=!1,hh=["done","go","next","search","send"];function tE(){var e="(prefers-color-scheme: dark)";Tl=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var rE=de({name:"Textarea",props:eE,emits:["confirm","linechange",...Zd],setup(e,t){var{emit:r}=t,i=B(null),a=B(null),{fieldRef:n,state:o,scopedAttrsState:s,fixDisabledColor:u,trigger:l}=Kd(e,i,r),f=ee(()=>o.value.split(gi)),v=ee(()=>hh.includes(e.confirmType)),g=B(0),h=B(null);W(()=>g.value,b=>{var c=i.value,d=h.value,_=a.value,x=parseFloat(getComputedStyle(c).lineHeight);isNaN(x)&&(x=d.offsetHeight);var E=Math.round(b/x);l("linechange",{},{height:b,heightRpx:750/window.innerWidth*b,lineCount:E}),e.autoHeight&&(c.style.height="auto",_.style.height=b+"px")});function y(b){var{height:c}=b;g.value=c}function m(b){l("confirm",b,{value:o.value})}function w(b){b.key==="Enter"&&v.value&&b.preventDefault()}function p(b){if(b.key==="Enter"&&v.value){m(b);var c=b.target;!e.confirmHold&&c.blur()}}return tE(),()=>{var b=e.disabled&&u?I("textarea",{ref:n,value:o.value,tabindex:"-1",readonly:!!e.disabled,maxlength:o.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tl},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:c=>c.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):I("textarea",{ref:n,value:o.value,disabled:!!e.disabled,maxlength:o.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tl},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:w,onKeyup:p},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return I("uni-textarea",{ref:i},[I("div",{ref:a,class:"uni-textarea-wrapper"},[Ii(I("div",rt(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Li,!o.value.length]]),I("div",{ref:h,class:"uni-textarea-line"},[" "],512),I("div",{class:"uni-textarea-compute"},[f.value.map(c=>I("div",null,[c.trim()?c:"."])),I(Or,{initial:!0,onResize:y},null,8,["initial","onResize"])]),e.confirmType==="search"?I("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[b],40,["onSubmit"]):b],512)],512)}}});ce({},yy);function Yn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function gh(e,t,r){!e||wt(r||Gt(),e,(i,a)=>{var{type:n,data:o}=i;t(n,o,a)})}function ph(e,t){!e||Im(t||Gt(),e)}function sa(e,t,r,i){var a=Dt(),n=a.proxy;Re(()=>{gh(t||Yn(n),e,i),(r||!t)&&W(()=>n.id,(o,s)=>{gh(Yn(n,o),e,i),ph(s&&Yn(n,s))})}),Ce(()=>{ph(t||Yn(n),i)})}var iE=0;function la(e){var t=gn(),r=Dt(),i=r.proxy,a=i.$options.name.toLowerCase(),n=e||i.id||"context".concat(iE++);return Re(()=>{var o=i.$el;o.__uniContextInfo={id:n,type:a,page:t}}),"".concat(a,".").concat(n)}function aE(e){return e.__uniContextInfo}class mh extends Sd{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...Pn.props,...o])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!!this.$animate){if(t)return this.call(Pn.mounted);this.$animate&&(this.$animate=!1,this.call(Pn.watch.animation.handler))}}}var nE=["space","decode"];class oE extends mh{constructor(t,r,i,a){super(t,document.createElement("uni-text"),r,i,a,nE),this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update(),this.updateView()}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{$props:{space:r,decode:i}}=this;this.$.textContent=JS(this._text,{space:r,decode:i}).join(gi),super.update(t)}}class sE extends ii{constructor(t,r,i,a){super(t,"#text",r,document.createTextNode("")),this.init(a),this.insert(r,i)}}var e2="",lE=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class uE extends mh{constructor(t,r,i,a,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,a,n,[...lE,...o])}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new fE(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class fE{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class cE extends uE{constructor(t,r,i,a){super(t,document.createElement("uni-view"),r,i,a)}}function _h(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function bh(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?yu+_h():0}var wh=Symbol("onDraw");function vE(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function qn(e,t){return ee(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var a=e[i];a=i==="src"?st(a):a,r[i.replace(/[A-Z]/g,n=>"-"+n.toLowerCase())]=a}}),r})}function oi(e){var t=ke({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=B(!1);function i(){var v=e.value,g=v.getBoundingClientRect(),h=["width","height"];r.value=g.width===0||g.height===0,r.value||(t.position=vE(v)?"absolute":"static",h.push("top","left")),h.forEach(y=>{var m=g[y];m=y==="top"?m+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:bh()):m,t[y]=m+"px"})}var a=null;function n(){a&&cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=null,i()})}window.addEventListener("updateview",n);var o=[],s=[];function u(v){s?s.push(v):v()}function l(v){var g=_e(wh),h=y=>{v(y),o.forEach(m=>m(t)),o=null};u(()=>{g?g(h):h({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var f=function(v){o?o.push(v):v(t)};return ze(wh,f),Re(()=>{i(),s.forEach(v=>v()),s=null}),Ce(()=>{window.removeEventListener("updateview",n)}),{position:t,hidden:r,onParentReady:l}}var dE=de({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var{emit:r}=t,i=B(null),a=B(null),n=Le(i,r),o=qn(e,["id"]),{position:s,onParentReady:u}=oi(a),l;return u(()=>{l=plus.ad.createAdView(Object.assign({},o.value,s)),plus.webview.currentWebview().append(l),l.setDislikeListener(v=>{a.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),n("close",{},v)}),l.setRenderingListener(v=>{v.result===0?(a.value.style.height=v.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):n("error",{},{errCode:v.result})}),l.setAdClickedListener(()=>{n("adclicked",{},{})}),W(()=>s,v=>l.setStyle(v),{deep:!0}),W(()=>e.adpid,v=>{v&&f()}),W(()=>e.data,v=>{v&&l.renderingBind(v)});function f(){var v={adpid:e.adpid,width:s.width,count:e.dataCount};e.channel!==void 0&&(v.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",v,g=>{var{code:h,data:y,message:m}=g;h===0?l.renderingBind(y):n("error",{},{errMsg:m})})}e.adpid&&f()}),Ce(()=>{l&&l.close()}),()=>I("uni-ad",{ref:i},[I("div",{ref:a,class:"uni-ad-container"},null,512)],512)}});class be extends ii{constructor(t,r,i,a,n,o,s){super(t,r,a);var u=document.createElement("div");u.__vueParent=hE(this),this.$props=ke({}),this.init(o),this.$app=nc(ST(i,this.$props)),this.$app.mount(u),this.$=u.firstElementChild,s&&(this.$holder=this.$.querySelector(s)),ie(o,"t")&&this.setText(o.t||""),o.a&&ie(o.a,Da)&&hl(this.$,o.a[Da]),this.insert(a,n),bf()}init(t){var{a:r,e:i,w:a}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(n=>{this.setAttr(n,r[n])})),ie(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(n=>{this.addEvent(n,i[n])}),a&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t,this.updateView()}addWxsEvent(t,r,i){this.$props[t]=xd(this,r,i)}addEvent(t,r){this.$props[t]=wd(this.id,r,No(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===Da)this.$&&hl(this.$,r);else if(t===Au)this.$.__ownerId=r;else if(t===Iu)zt(()=>cd(this,r),ld);else if(t===Bo){var i=dl(this.$||Ke(this.pid).$,r),a=this.$props.style;_t(i)&&_t(a)?Object.keys(i).forEach(n=>{a[n]=i[n]}):this.$props.style=i}else Ln(t)?this.$.style.setProperty(t,r):(r=dl(this.$||Ke(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r));this.updateView()}removeAttr(t){Ln(t)?this.$.style.removeProperty(t):this.$props[t]=null,this.updateView()}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),Ch(this.id),this.removeUniChildren(),this.updateView()}appendChild(t){var r=(this.$holder||this.$).appendChild(t);return this.updateView(!0),r}insertBefore(t,r){var i=(this.$holder||this.$).insertBefore(t,r);return this.updateView(!0),i}}class ua extends be{constructor(t,r,i,a,n,o,s){super(t,r,i,a,n,o,s)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return zt(this.getRebuildFn(),Rn),super.setText(t)}appendChild(t){return zt(this.getRebuildFn(),Rn),super.appendChild(t)}insertBefore(t,r){return zt(this.getRebuildFn(),Rn),super.insertBefore(t,r)}removeUniChild(t){return zt(this.getRebuildFn(),Rn),super.removeUniChild(t)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function hE(e){for(;e&&e.pid>0;)if(e=Ke(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function Cl(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}var gE=["value","modelValue"];function yh(e){gE.forEach(t=>{if(ie(e,t)){var r="onUpdate:"+t;ie(e,r)||(e[r]=i=>e[t]=i)}})}class pE extends be{constructor(t,r,i,a){super(t,"uni-ad",dE,r,i,a)}}var t2="";class mE extends be{constructor(t,r,i,a){super(t,"uni-button",ky,r,i,a)}}class fa extends ii{constructor(t,r,i,a){super(t,r,i),this.insert(i,a)}}class _E extends fa{constructor(t,r,i){super(t,"uni-camera",r,i)}}var r2="";class bE extends be{constructor(t,r,i,a){super(t,"uni-canvas",Fy,r,i,a,"uni-canvas > div")}}var i2="";class wE extends be{constructor(t,r,i,a){super(t,"uni-checkbox",jy,r,i,a,".uni-checkbox-wrapper")}setText(t){Cl(this.$holder,"uni-checkbox-input",t)}}var a2="";class yE extends be{constructor(t,r,i,a){super(t,"uni-checkbox-group",Hy,r,i,a)}}var n2="",xE=0;function xh(e,t,r){var{position:i,hidden:a,onParentReady:n}=oi(e),o,s;n(u=>{var l=ee(()=>{var c={};for(var d in i){var _=i[d],x=parseFloat(_),E=parseFloat(u[d]);if(d==="top"||d==="left")_=Math.max(x,E)+"px";else if(d==="width"||d==="height"){var C=d==="width"?"left":"top",O=parseFloat(u[C]),M=parseFloat(i[C]),R=Math.max(O-M,0),U=Math.max(M+x-(O+E),0);_=Math.max(x-R-U,0)+"px"}c[d]=_}return c}),f=["borderRadius","borderColor","borderWidth","backgroundColor"],v=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],g=[],h={start:"left",end:"right"};function y(c){var d=getComputedStyle(e.value);return f.concat(v,g).forEach(_=>{c[_]=d[_]}),c}var m=ke(y({})),w=null;s=function(){w&&cancelAnimationFrame(w),w=requestAnimationFrame(()=>{w=null,y(m)})},window.addEventListener("updateview",s);function p(){var c={};for(var d in c){var _=c[d];(d==="top"||d==="left")&&(_=Math.min(parseFloat(_)-parseFloat(u[d]),0)+"px"),c[d]=_}return c}var b=ee(()=>{var c=p(),d=[{tag:"rect",position:c,rectStyles:{color:m.backgroundColor,radius:m.borderRadius,borderColor:m.borderColor,borderWidth:m.borderWidth}}];if("src"in r)r.src&&d.push({tag:"img",position:c,src:r.src});else{var _=parseFloat(m.lineHeight)-parseFloat(m.fontSize),x=parseFloat(c.width)-parseFloat(m.paddingLeft)-parseFloat(m.paddingRight);x=x<0?0:x;var E=parseFloat(c.height)-parseFloat(m.paddingTop)-_/2-parseFloat(m.paddingBottom);E=E<0?0:E,d.push({tag:"font",position:{top:"".concat(parseFloat(c.top)+parseFloat(m.paddingTop)+_/2,"px"),left:"".concat(parseFloat(c.left)+parseFloat(m.paddingLeft),"px"),width:"".concat(x,"px"),height:"".concat(E,"px")},textStyles:{align:h[m.textAlign]||m.textAlign,color:m.color,decoration:"none",lineSpacing:"".concat(_,"px"),margin:"0px",overflow:m.textOverflow,size:m.fontSize,verticalAlign:"top",weight:m.fontWeight,whiteSpace:m.whiteSpace},text:r.text})}return d});o=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(xE++),l.value,b.value),plus.webview.currentWebview().append(o),a.value&&o.hide(),o.addEventListener("click",()=>{t("click",{},{})}),W(()=>a.value,c=>{o[c?"hide":"show"]()}),W(()=>l.value,c=>{o.setStyle(c)},{deep:!0}),W(()=>b.value,()=>{o.reset(),o.draw(b.value)},{deep:!0})}),Ce(()=>{o&&o.close(),s&&window.removeEventListener("updateview",s)})}var SE="_doc/uniapp_temp/",EE={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function TE(e,t,r){var i=B(""),a;function n(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var s=e.src?st(e.src):"";s.indexOf("http://")===0||s.indexOf("https://")===0?(a=plus.downloader.createDownload(s,{filename:SE+"/download/"},(u,l)=>{l===200?o(u.filename):r("error",{},{errMsg:"error"})}),a.start()):s&&o(s)}function o(s){t.src=s,plus.io.getImageInfo({src:s,success:u=>{var{width:l,height:f}=u;e.autoSize&&(i.value="width:".concat(l,"px;height:").concat(f,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:l,height:f})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&n(),W(()=>e.src,n),Ce(()=>{a&&a.abort()}),i}var Sh=de({name:"CoverImage",props:EE,emits:["click","load","error"],setup(e,t){var{emit:r}=t,i=B(null),a=Le(i,r),n=ke({src:""}),o=TE(e,n,a);return xh(i,a,n),()=>I("uni-cover-image",{ref:i,style:o.value},[I("div",{class:"uni-cover-image"},null)],4)}});class CE extends be{constructor(t,r,i,a){super(t,"uni-cover-image",Sh,r,i,a)}}var o2="",OE=de({name:"CoverView",emits:["click"],setup(e,t){var{emit:r}=t,i=B(null),a=B(null),n=Le(i,r),o=ke({text:""});return xh(i,n,o),ia(()=>{var s=a.value.childNodes[0];o.text=s&&s instanceof Text?s.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))}),()=>I("uni-cover-view",{ref:i},[I("div",{ref:a,class:"uni-cover-view"},null,512)],512)}});class AE extends ua{constructor(t,r,i,a){super(t,"uni-cover-view",OE,r,i,a,".uni-cover-view")}}var s2="";class IE extends be{constructor(t,r,i,a){super(t,"uni-editor",px,r,i,a)}}var l2="";class kE extends be{constructor(t,r,i,a){super(t,"uni-form",Ey,r,i,a,"span")}}class ME extends fa{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var u2="";class RE extends be{constructor(t,r,i,a){super(t,"uni-icon",wx,r,i,a)}}var f2="";class LE extends be{constructor(t,r,i,a){super(t,"uni-image",Sx,r,i,a)}}var c2="";class PE extends be{constructor(t,r,i,a){super(t,"uni-input",Wx,r,i,a)}init(t){super.init(t),yh(this.$props)}}var v2="";class NE extends be{constructor(t,r,i,a){super(t,"uni-label",Ay,r,i,a)}}class DE extends fa{constructor(t,r,i){super(t,"uni-live-player",r,i)}}var d2="",BE={id:{type:String,default:""},url:{type:String,default:""},mode:{type:String,default:"SD"},muted:{type:[Boolean,String],default:!1},enableCamera:{type:[Boolean,String],default:!0},autoFocus:{type:[Boolean,String],default:!0},beauty:{type:[Number,String],default:0},whiteness:{type:[Number,String],default:0},aspect:{type:[String],default:"3:2"},minBitrate:{type:[Number],default:200}},Eh=["statechange","netstatus","error"],FE=de({name:"LivePusher",props:BE,emits:Eh,setup(e,t){var{emit:r}=t,i=B(null),a=Le(i,r),n=B(null),o=qn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f;l(()=>{f=new plus.video.LivePusher("livePusher"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(f),Eh.forEach(g=>{f.addEventListener(g,h=>{a(g,{},h.detail)})}),W(()=>o.value,g=>f.setStyles(g),{deep:!0}),W(()=>s,g=>f.setStyles(g),{deep:!0}),W(()=>u.value,g=>{g||f.setStyles(s)})});var v=la();return sa((g,h)=>{f&&f[g](h)},v,!0),Ce(()=>{f&&f.close()}),()=>I("uni-live-pusher",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-live-pusher-container"},null,512)],8,["id"])}});class $E extends be{constructor(t,r,i,a){super(t,"uni-live-pusher",FE,r,i,a,".uni-live-pusher-slot")}}var h2="",zE=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function ca(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.slice(7,9);return{color:e.slice(0,7),opacity:t?Number("0x"+t)/255:1}}var UE={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},polygons:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},HE=de({name:"Map",props:UE,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var{emit:r}=t,i=B(null),a=Le(i,r),n=B(null),o=qn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f,{_addMarkers:v,_addMapLines:g,_addMapCircles:h,_addMapPolygons:y,_setMap:m}=WE(e,a);l(()=>{f=ce(plus.maps.create(Gt()+"-map-"+(e.id||Date.now()),Object.assign({},o.value,s,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[],__polygons__:[]}),f.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(f),u.value&&f.hide(),f.onclick=p=>{a("click",{},p)},f.onstatuschanged=p=>{a("regionchange",{},{})},m(f),v(e.markers),g(e.polyline),h(e.circles),y(e.polygons),W(()=>o.value,p=>f&&f.setStyles(p),{deep:!0}),W(()=>s,p=>f&&f.setStyles(p),{deep:!0}),W(u,p=>{f&&f[p?"hide":"show"]()}),W(()=>e.scale,p=>{f&&f.setZoom(parseInt(String(p)))}),W([()=>e.latitude,()=>e.longitude],p=>{var[b,c]=p;f&&f.setStyles({center:new plus.maps.Point(Number(b),Number(c))})}),W(()=>e.markers,p=>{v(p,!0)},{deep:!0}),W(()=>e.polyline,p=>{g(p)},{deep:!0}),W(()=>e.circles,p=>{h(p)},{deep:!0}),W(()=>e.polygons,p=>{y(p)},{deep:!0})});var w=ee(()=>e.controls.map(p=>{var b={position:"absolute"};return["top","left","width","height"].forEach(c=>{p.position[c]&&(b[c]=p.position[c]+"px")}),{id:p.id,iconPath:st(p.iconPath),position:b,clickable:p.clickable}}));return Ce(()=>{f&&(f.close(),m(null))}),()=>I("uni-map",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-map-container"},null,512),w.value.map((p,b)=>I(Sh,{key:b,src:p.iconPath,style:p.position,"auto-size":!0,onClick:()=>p.clickable&&a("controltap",{},{controlId:p.id})},null,8,["src","style","auto-size","onClick"])),I("div",{class:"uni-map-slot"},null)],8,["id"])}});function WE(e,t){var r;function i(y){var{longitude:m,latitude:w}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};!r||(r.setCenter(new plus.maps.Point(Number(m||e.longitude),Number(w||e.latitude))),y({errMsg:"moveToLocation:ok"}))}function a(y){!r||r.getCurrentCenter((m,w)=>{y({longitude:w.getLng(),latitude:w.getLat(),errMsg:"getCenterLocation:ok"})})}function n(y){if(!!r){var m=r.getBounds();y({southwest:m.getSouthWest(),northeast:m.getNorthEast(),errMsg:"getRegion:ok"})}}function o(y){!r||y({scale:r.getZoom(),errMsg:"getScale:ok"})}function s(y){if(!!r){var{id:m,latitude:w,longitude:p,iconPath:b,callout:c,label:d}=y;zE(p,w,_=>{var x,{latitude:E,longitude:C}=_.coord,O=new plus.maps.Marker(new plus.maps.Point(C,E));b&&O.setIcon(st(b)),d&&d.content&&O.setLabel(d.content);var M=void 0;c&&c.content&&(M=new plus.maps.Bubble(c.content)),M&&O.setBubble(M),(m||m===0)&&(O.onclick=R=>{t("markertap",{},{markerId:m})},M&&(M.onclick=()=>{t("callouttap",{},{markerId:m})})),(x=r)===null||x===void 0||x.addOverlay(O),r.__markers__.push(O)})}}function u(){if(!!r){var y=r.__markers__;y.forEach(m=>{var w;(w=r)===null||w===void 0||w.removeOverlay(m)}),r.__markers__=[]}}function l(y,m){m&&u(),y.forEach(w=>{s(w)})}function f(y){!r||(r.__lines__.length>0&&(r.__lines__.forEach(m=>{var w;(w=r)===null||w===void 0||w.removeOverlay(m)}),r.__lines__=[]),y.forEach(m=>{var w,{color:p,width:b}=m,c=m.points.map(x=>new plus.maps.Point(x.longitude,x.latitude)),d=new plus.maps.Polyline(c);if(p){var _=ca(p);d.setStrokeColor(_.color),d.setStrokeOpacity(_.opacity)}b&&d.setLineWidth(b),(w=r)===null||w===void 0||w.addOverlay(d),r.__lines__.push(d)}))}function v(y){!r||(r.__circles__.length>0&&(r.__circles__.forEach(m=>{var w;(w=r)===null||w===void 0||w.removeOverlay(m)}),r.__circles__=[]),y.forEach(m=>{var w,{latitude:p,longitude:b,color:c,fillColor:d,radius:_,strokeWidth:x}=m,E=new plus.maps.Circle(new plus.maps.Point(b,p),_);if(c){var C=ca(c);E.setStrokeColor(C.color),E.setStrokeOpacity(C.opacity)}if(d){var O=ca(d);E.setFillColor(O.color),E.setFillOpacity(O.opacity)}x&&E.setLineWidth(x),(w=r)===null||w===void 0||w.addOverlay(E),r.__circles__.push(E)}))}function g(y){if(!!r){var m=r.__polygons__;m.forEach(w=>{var p;(p=r)===null||p===void 0||p.removeOverlay(w)}),m.length=0,y.forEach(w=>{var p,{points:b,strokeWidth:c,strokeColor:d,fillColor:_}=w,x=[];b&&b.forEach(M=>{x.push(new plus.maps.Point(M.longitude,M.latitude))});var E=new plus.maps.Polygon(x);if(d){var C=ca(d);E.setStrokeColor(C.color),E.setStrokeOpacity(C.opacity)}if(_){var O=ca(_);E.setFillColor(O.color),E.setFillOpacity(O.opacity)}c&&E.setLineWidth(c),(p=r)===null||p===void 0||p.addOverlay(E),m.push(E)})}}var h={moveToLocation:i,getCenterLocation:a,getRegion:n,getScale:o};return sa((y,m,w)=>{h[y]&&h[y](w,m)},la(),!0),{_addMarkers:l,_addMapLines:f,_addMapCircles:v,_addMapPolygons:g,_setMap(y){r=y}}}class VE extends be{constructor(t,r,i,a){super(t,"uni-map",HE,r,i,a,".uni-map-slot")}}var g2="";class jE extends ua{constructor(t,r,i,a){super(t,"uni-movable-area",Xx,r,i,a)}}var p2="";class YE extends be{constructor(t,r,i,a){super(t,"uni-movable-view",Gx,r,i,a)}}var m2="";class qE extends be{constructor(t,r,i,a){super(t,"uni-navigator",aS,r,i,a,"uni-navigator")}}class XE extends fa{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class ZE extends fa{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var Ie={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},si={YEAR:"year",MONTH:"month",DAY:"day"};function Xn(e){return e>9?e:"0".concat(e)}function Zn(e,t){e=String(e||"");var r=new Date;if(t===Ie.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var a=e.split("-");a.length===3&&r.setFullYear(parseInt(a[0]),parseInt(String(parseFloat(a[1])-1)),parseInt(a[2]))}return r}function KE(e){if(e.mode===Ie.TIME)return"00:00";if(e.mode===Ie.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case si.YEAR:return t;case si.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function GE(e){if(e.mode===Ie.TIME)return"23:59";if(e.mode===Ie.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case si.YEAR:return t;case si.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var JE={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Ie.SELECTOR,validator(e){return Object.values(Ie).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:KE},end:{type:String,default:GE},disabled:{type:[Boolean,String],default:!1}},QE=de({name:"Picker",props:JE,emits:["change","cancel","columnchange"],setup(e,t){var{emit:r}=t;Sm();var{t:i,getLocale:a}=Qe(),n=B(null),o=Le(n,r),s=B(null),u=B(null),l=()=>{var p=e.value;switch(e.mode){case Ie.MULTISELECTOR:{Array.isArray(p)||(p=[]),Array.isArray(s.value)||(s.value=[]);for(var b=s.value.length=Math.max(p.length,e.range.length),c=0;c<b;c++){var d=Number(p[c]),_=Number(s.value[c]),x=isNaN(d)?isNaN(_)?0:_:d;s.value.splice(c,1,x<0?0:x)}}break;case Ie.TIME:case Ie.DATE:s.value=String(p);break;default:{var E=Number(p);s.value=E<0?0:E;break}}},f=p=>{u.value&&u.value.sendMessage(p)},v=p=>{var b={event:"cancel"};u.value=cb({url:"__uniapppicker",data:p,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:c=>{var d=c.event;if(d==="created"){f(p);return}if(d==="columnchange"){delete c.event,o(d,{},c);return}b=c},onClose:()=>{u.value=null;var c=b.event;delete b.event,c&&o(c,{},b)}})},g=(p,b)=>{plus.nativeUI[e.mode===Ie.TIME?"pickTime":"pickDate"](c=>{var d=c.date;o("change",{},{value:e.mode===Ie.TIME?"".concat(Xn(d.getHours()),":").concat(Xn(d.getMinutes())):"".concat(d.getFullYear(),"-").concat(Xn(d.getMonth()+1),"-").concat(Xn(d.getDate()))})},()=>{o("cancel",{},{})},e.mode===Ie.TIME?{time:Zn(e.value,Ie.TIME),popover:b}:{date:Zn(e.value,Ie.DATE),minDate:Zn(e.start,Ie.DATE),maxDate:Zn(e.end,Ie.DATE),popover:b})},h=(p,b)=>{(p.mode===Ie.TIME||p.mode===Ie.DATE)&&!p.fields?g(p,b):(p.fields=Object.values(si).includes(p.fields)?p.fields:si.DAY,v(p))},y=p=>{if(!e.disabled){var b=p.currentTarget,c=b.getBoundingClientRect();h(Object.assign({},e,{value:s.value,locale:a(),messages:{done:i("uni.picker.done"),cancel:i("uni.picker.cancel")}}),{top:c.top+bh(),left:c.left,width:c.width,height:c.height})}},m=_e(kt,!1),w={submit:()=>[e.name,s.value],reset:()=>{switch(e.mode){case Ie.SELECTOR:s.value=0;break;case Ie.MULTISELECTOR:Array.isArray(e.value)&&(s.value=e.value.map(p=>0));break;case Ie.DATE:case Ie.TIME:s.value="";break}}};return m&&(m.addField(w),Ce(()=>m.removeField(w))),Object.keys(e).forEach(p=>{p!=="name"&&W(()=>e[p],b=>{var c={};c[p]=b,f(c)},{deep:!0})}),W(()=>e.value,l,{deep:!0}),l(),()=>I("uni-picker",{ref:n,onClick:y},[I("slot",null,null)],8,["onClick"])}});class eT extends be{constructor(t,r,i,a){super(t,"uni-picker",QE,r,i,a)}}var _2="";class tT extends ua{constructor(t,r,i,a){super(t,"uni-picker-view",sS,r,i,a,".uni-picker-view-wrapper")}}var b2="";class rT extends ua{constructor(t,r,i,a){super(t,"uni-picker-view-column",gS,r,i,a,".uni-picker-view-content")}}var w2="";class iT extends be{constructor(t,r,i,a){super(t,"uni-progress",_S,r,i,a)}}var y2="";class aT extends be{constructor(t,r,i,a){super(t,"uni-radio",ES,r,i,a,".uni-radio-wrapper")}setText(t){Cl(this.$holder,"uni-radio-input",t)}}var x2="";class nT extends be{constructor(t,r,i,a){super(t,"uni-radio-group",yS,r,i,a)}}var S2="";class oT extends be{constructor(t,r,i,a){super(t,"uni-rich-text",LS,r,i,a)}}var E2="";class sT extends be{constructor(t,r,i,a){super(t,"uni-scroll-view",NS,r,i,a,".uni-scroll-view-content")}setText(t){Cl(this.$holder,"uni-scroll-view-refresher",t)}}var T2="";class lT extends be{constructor(t,r,i,a){super(t,"uni-slider",$S,r,i,a)}}var C2="";class uT extends ua{constructor(t,r,i,a){super(t,"uni-swiper",YS,r,i,a,".uni-swiper-slide-frame")}}var O2="";class fT extends be{constructor(t,r,i,a){super(t,"uni-swiper-item",XS,r,i,a)}}var A2="";class cT extends be{constructor(t,r,i,a){super(t,"uni-switch",KS,r,i,a)}}var I2="";class vT extends be{constructor(t,r,i,a){super(t,"uni-textarea",rE,r,i,a)}init(t){super.init(t),yh(this.$props)}}var k2="",dT={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},vslideGesture:{type:[Boolean,String],default:!1},vslideGestureInFullscreen:{type:[Boolean,String],default:!1},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},Th=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],hT=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],gT=de({name:"Video",props:dT,emits:Th,setup(e,t){var{emit:r}=t,i=B(null),a=Le(i,r),n=B(null),o=qn(e,["id"]),{position:s,hidden:u,onParentReady:l}=oi(n),f;l(()=>{f=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},o.value,s)),plus.webview.currentWebview().append(f),u.value&&f.hide(),Th.forEach(g=>{f.addEventListener(g,h=>{a(g,{},h.detail)})}),W(()=>o.value,g=>f.setStyles(g),{deep:!0}),W(()=>s,g=>f.setStyles(g),{deep:!0}),W(()=>u.value,g=>{f[g?"hide":"show"](),g||f.setStyles(s)})});var v=la();return sa((g,h)=>{if(hT.includes(g)){var y;switch(g){case"seek":y=h.position;break;case"sendDanmu":y=h;break;case"playbackRate":y=h.rate;break;case"requestFullScreen":y=h.direction;break}f&&f[g](y)}},v,!0),Ce(()=>{f&&f.close()}),()=>I("uni-video",{ref:i,id:e.id},[I("div",{ref:n,class:"uni-video-container"},null,512),I("div",{class:"uni-video-slot"},null)],8,["id"])}});class pT extends be{constructor(t,r,i,a){super(t,"uni-video",gT,r,i,a,".uni-video-slot")}}var M2="",mT={src:{type:String,default:""},updateTitle:{type:Boolean,default:!0},webviewStyles:{type:Object,default(){return{}}}},nt,_T=e=>{var{htmlId:t,src:r,webviewStyles:i,props:a}=e,n=plus.webview.currentWebview(),o=ce(i,{"uni-app":"none",isUniH5:!0}),s=n.getTitleNView();if(s){var u=yu+parseFloat(o.top||"0");plus.navigator.isImmersedStatusbar()&&(u+=_h()),o.top=String(u),o.bottom=o.bottom||"0"}nt=plus.webview.create(r,t,o),s&&nt.addEventListener("titleUpdate",function(){var l;if(!!a.updateTitle){var f=(l=nt)===null||l===void 0?void 0:l.getTitle();n.setStyle({titleNView:{titleText:!f||f==="null"?" ":f}})}}),plus.webview.currentWebview().append(nt)},bT=()=>{var e;plus.webview.currentWebview().remove(nt),(e=nt)===null||e===void 0||e.close("none"),nt=null},wT=de({name:"WebView",props:mT,setup(e){var t=Gt(),r=B(null),{hidden:i,onParentReady:a}=oi(r),n=ee(()=>e.webviewStyles);return a(()=>{var o,s=B(yb+t);_T({htmlId:s.value,src:st(e.src),webviewStyles:n.value,props:e}),UniViewJSBridge.publishHandler(bb,{},t),i.value&&((o=nt)===null||o===void 0||o.hide())}),Ce(()=>{bT(),UniViewJSBridge.publishHandler(wb,{},t)}),W(()=>e.src,o=>{var s,u=st(o)||"";if(!!u){if(/^(http|https):\/\//.test(u)&&e.webviewStyles.progress){var l;(l=nt)===null||l===void 0||l.setStyle({progress:{color:e.webviewStyles.progress.color}})}(s=nt)===null||s===void 0||s.loadURL(u)}}),W(n,o=>{var s;(s=nt)===null||s===void 0||s.setStyle(o)}),W(i,o=>{nt&&nt[o?"hide":"show"]()}),()=>I("uni-web-view",{ref:r},null,512)}});class yT extends be{constructor(t,r,i,a){super(t,"uni-web-view",wT,r,i,a)}}var xT={"#text":sE,"#comment":my,VIEW:cE,IMAGE:LE,TEXT:oE,NAVIGATOR:qE,FORM:kE,BUTTON:mE,INPUT:PE,LABEL:NE,RADIO:aT,CHECKBOX:wE,"CHECKBOX-GROUP":yE,AD:pE,CAMERA:_E,CANVAS:bE,"COVER-IMAGE":CE,"COVER-VIEW":AE,EDITOR:IE,"FUNCTIONAL-PAGE-NAVIGATOR":ME,ICON:RE,"RADIO-GROUP":nT,"LIVE-PLAYER":DE,"LIVE-PUSHER":$E,MAP:VE,"MOVABLE-AREA":jE,"MOVABLE-VIEW":YE,"OFFICIAL-ACCOUNT":XE,"OPEN-DATA":ZE,PICKER:eT,"PICKER-VIEW":tT,"PICKER-VIEW-COLUMN":rT,PROGRESS:iT,"RICH-TEXT":oT,"SCROLL-VIEW":sT,SLIDER:lT,SWIPER:uT,"SWIPER-ITEM":fT,SWITCH:cT,TEXTAREA:vT,VIDEO:pT,"WEB-VIEW":yT};function ST(e,t){return()=>w_(e,t)}var Kn=new Map;function Ke(e){return Kn.get(e)}function ET(e){return Kn.get(e)}function Ch(e){return Kn.delete(e)}function Oh(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},n;if(e===0)n=new ii(e,t,r,document.createElement(t));else{var o=xT[t];o?n=new o(e,r,i,a):n=new Sd(e,document.createElement(t),r,i,a)}return Kn.set(e,n),n}var Ol=[],Ah=!1;function Ih(e){if(Ah)return e();Ol.push(e)}function Al(){Ah=!0,Ol.forEach(e=>{try{e()}catch(t){console.error(t)}}),Ol.length=0}function R2(){}function kh(e){var{css:t,route:r,platform:i,pixelRatio:a,windowWidth:n,disableScroll:o,statusbarHeight:s,windowTop:u,windowBottom:l}=e;TT(r),CT(i,a,n),OT();var f=plus.webview.currentWebview().id;window.__id__=f,document.title="".concat(r,"[").concat(f,"]"),IT(s,u,l),o&&document.addEventListener("touchmove",sb),t?AT(r):Al()}function TT(e){window.__PAGE_INFO__={route:e}}function CT(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function OT(){Oh(0,"div",-1,-1).$=document.getElementById("app")}function AT(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Al,t.onerror=Al,document.head.appendChild(t)}function IT(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};K_(i)}var Mh=!1;function kT(e){if(!Mh){Mh=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(Mp,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(Rp)}};requestAnimationFrame(()=>document.addEventListener("scroll",lb(t)))}}function MT(e,t){var{scrollTop:r,selector:i,duration:a}=e;$p(i||r||0,a),t()}function RT(e){var t=e[0];t[0]===ku?LT(t):Ih(()=>PT(e))}function LT(e){return kh(e[1])}function PT(e){var t=e[0],r=K1(t[0]===_b?t[1]:[]);e.forEach(i=>{switch(i[0]){case ku:return kh(i[1]);case qp:return void 0;case Xp:var a=i[3];return Oh(i[1],r(i[2]),a===-1?0:a,i[4],sd(r,i[5]));case Zp:return Ke(i[1]).insert(i[2],i[3],sd(r,i[4]));case Kp:return Ke(i[1]).remove();case Gp:return Ke(i[1]).setAttr(r(i[2]),r(i[3]));case Jp:return Ke(i[1]).removeAttr(r(i[2]));case Qp:return Ke(i[1]).addEvent(r(i[2]),i[3]);case rm:return Ke(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case em:return Ke(i[1]).removeEvent(r(i[2]));case tm:return Ke(i[1]).setText(r(i[2]));case im:return kT(i[1])}}),ey()}function NT(){var{subscribe:e}=UniViewJSBridge;e(bc,RT),e(xb,t=>Qe().setLocale(t)),e(Is,DT)}function DT(){UniViewJSBridge.publishHandler(Is)}function Rh(e){return window.__$__(e).$}function BT(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function Il(e,t){var r={},{top:i}=Z_();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Lo(e)),t.rect||t.size){var a=e.getBoundingClientRect();t.rect&&(r.left=a.left,r.right=a.right,r.top=a.top-i,r.bottom=a.bottom-i),t.size&&(r.width=a.width,r.height=a.height)}if(Array.isArray(t.properties)&&t.properties.forEach(s=>{s=s.replace(/-([a-z])/g,function(u,l){return l.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var n=e.children[0].children[0];r.scrollLeft=n.scrollLeft,r.scrollTop=n.scrollTop,r.scrollHeight=n.scrollHeight,r.scrollWidth=n.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var o=getComputedStyle(e);t.computedStyle.forEach(s=>{r[s]=o[s]})}return t.context&&(r.contextInfo=aE(e)),r}function FT(e,t){return e?window.__$__(e).$:t.$el}function Lh(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var a=this.parentElement.querySelectorAll(i),n=a.length;--n>=0&&a.item(n)!==this;);return n>-1};return r.call(e,t)}function $T(e,t,r,i,a){var n=FT(t,e),o=n.parentElement;if(!o)return i?null:[];var{nodeType:s}=n,u=s===3||s===8;if(i){var l=u?o.querySelector(r):Lh(n,r)?n:n.querySelector(r);return l?Il(l,a):null}else{var f=[],v=(u?o:n).querySelectorAll(r);return v&&v.length&&[].forEach.call(v,g=>{f.push(Il(g,a))}),!u&&Lh(n,r)&&f.unshift(Il(n,a)),f}}function zT(e,t,r){var i=[];t.forEach(a=>{var{component:n,selector:o,single:s,fields:u}=a;n===null?i.push(BT(u)):i.push($T(e,n,o,s,u))}),r(i)}function UT(e,t){var{pageStyle:r,rootFontSize:i}=t;if(r){var a=document.querySelector("uni-page-body")||document.body;a.setAttribute("style",r)}i&&document.documentElement.style.fontSize!==i&&(document.documentElement.style.fontSize=i)}function HT(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=Rh(i);(o.__io||(o.__io={}))[r]=H1(o,a,n)}function WT(e,t){var{reqId:r,component:i}=e,a=Rh(i),n=a.__io&&a.__io[r];n&&(n.disconnect(),delete a.__io[r])}var kl={},Ml={};function VT(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Ph(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Ph(i),": ").concat(e[i],")"));var a=t.join(" and ");return a}function Ph(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function jT(e,t){var{reqId:r,component:i,options:a,callback:n}=e,o=kl[r]=window.matchMedia(VT(a)),s=Ml[r]=u=>n(u.matches);s(o),o.addListener(s)}function YT(e,t){var{reqId:r,component:i}=e,a=Ml[r],n=kl[r];n&&(n.removeListener(a),delete Ml[r],delete kl[r])}function qT(e,t){var{family:r,source:i,desc:a}=e;Fp(r,i,a).then(()=>{t()}).catch(n=>{t(n.toString())})}var XT={$el:document.body};function ZT(){var e=Gt();Am(e,t=>function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];Ih(()=>{t.apply(null,i)})}),wt(e,"requestComponentInfo",(t,r)=>{zT(XT,t.reqs,r)}),wt(e,"addIntersectionObserver",t=>{HT(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),wt(e,"removeIntersectionObserver",t=>{WT(t)}),wt(e,"addMediaQueryObserver",t=>{jT(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),wt(e,"removeMediaQueryObserver",t=>{YT(t)}),wt(e,$1,MT),wt(e,F1,qT),wt(e,B1,t=>{UT(null,t)})}window.uni=X1,window.UniViewJSBridge=wc,window.rpx2px=ad,window.normalizeStyleName=hd,window.normalizeStyleValue=fl,window.__$__=Ke,window.__f__=Wp;function Nh(){Bm(),ZT(),NT(),Z1(),wc.publishHandler(Is)}typeof plus!="undefined"?Nh():document.addEventListener("plusready",Nh)}); diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index 9ae6ed0adf4..48dd8764c19 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -6474,6 +6474,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ emit: emit2 }) { const rootRef = vue.ref(null); + const wrapperRef = vue.ref(null); const { fieldRef, state, @@ -6488,6 +6489,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ vue.watch(() => heightRef.value, (height) => { const el = rootRef.value; const lineEl = lineRef.value; + const wrapper2 = wrapperRef.value; let lineHeight = parseFloat(getComputedStyle(el).lineHeight); if (isNaN(lineHeight)) { lineHeight = lineEl.offsetHeight; @@ -6499,7 +6501,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ lineCount }); if (props2.autoHeight) { - el.style.height = height + "px"; + el.style.height = "auto"; + wrapper2.style.height = height + "px"; } }); function onResize({ @@ -6564,6 +6567,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ return vue.createVNode("uni-textarea", { "ref": rootRef }, [vue.createVNode("div", { + "ref": wrapperRef, "class": "uni-textarea-wrapper" }, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { "style": props2.placeholderStyle, @@ -6580,7 +6584,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ "action": "", "onSubmit": () => false, "class": "uni-input-form" - }, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); + }, [textareaNode], 40, ["onSubmit"]) : textareaNode], 512)], 512); }; } }); diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 46c160b96c2..1a63ba2b5e5 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -13475,6 +13475,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ emit: emit2 }) { const rootRef = ref(null); + const wrapperRef = ref(null); const { fieldRef, state: state2, @@ -13489,6 +13490,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ watch(() => heightRef.value, (height) => { const el = rootRef.value; const lineEl = lineRef.value; + const wrapper2 = wrapperRef.value; let lineHeight = parseFloat(getComputedStyle(el).lineHeight); if (isNaN(lineHeight)) { lineHeight = lineEl.offsetHeight; @@ -13500,7 +13502,8 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ lineCount }); if (props2.autoHeight) { - el.style.height = height + "px"; + el.style.height = "auto"; + wrapper2.style.height = height + "px"; } }); function onResize2({ @@ -13568,6 +13571,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ return createVNode("uni-textarea", { "ref": rootRef }, [createVNode("div", { + "ref": wrapperRef, "class": "uni-textarea-wrapper" }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { "style": props2.placeholderStyle, @@ -13584,7 +13588,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ "action": "", "onSubmit": () => false, "class": "uni-input-form" - }, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); + }, [textareaNode], 40, ["onSubmit"]) : textareaNode], 512)], 512); }; } });
40562d3be61fb3def867f31ad081ed1c73747e53
2024-08-26 09:27:22
DCloud_LXH
chore: input digit DeleteContentBackward
false
input digit DeleteContentBackward
chore
diff --git a/packages/uni-components/src/vue/input/index.tsx b/packages/uni-components/src/vue/input/index.tsx index cb1b69560fe..e4b51219dbb 100644 --- a/packages/uni-components/src/vue/input/index.tsx +++ b/packages/uni-components/src/vue/input/index.tsx @@ -35,7 +35,8 @@ const resolveDigitDecimalPointDeleteContentBackward = (() => { return ( plus.os.name === 'iOS' && !!osVersion && - (parseInt(osVersion) === 16 || parseFloat(osVersion) < 17.2) + parseInt(osVersion) >= 16 && + parseFloat(osVersion) < 17.2 ) } @@ -45,10 +46,14 @@ const resolveDigitDecimalPointDeleteContentBackward = (() => { const osVersionFind = ua.match(/OS\s([\w_]+)\slike/) if (osVersionFind) { osVersion = osVersionFind[1].replace(/_/g, '.') + } else if (/Macintosh|Mac/i.test(ua) && navigator.maxTouchPoints > 0) { + const versionMatched = ua.match(/Version\/(\S*)\b/) + if (versionMatched) { + osVersion = versionMatched[1] + } } return ( - !!osVersion && - (parseInt(osVersion) === 16 || parseFloat(osVersion) < 17.2) + !!osVersion && parseInt(osVersion) >= 16 && parseFloat(osVersion) < 17.2 ) } })()
04bae2d0e421acc7d8dc2927b394c9106e648d3a
2024-11-18 18:47:23
zhenyuWang
refactor(x-ios): 代码优化
false
代码优化
refactor
diff --git a/packages/uni-app-plus/src/service/framework/page/setup.ts b/packages/uni-app-plus/src/service/framework/page/setup.ts index 704bca410ee..a3ff91932e0 100644 --- a/packages/uni-app-plus/src/service/framework/page/setup.ts +++ b/packages/uni-app-plus/src/service/framework/page/setup.ts @@ -1,9 +1,8 @@ -import { getCurrentPage, initPageVm, invokeHook } from '@dcloudio/uni-core' +import { initPageVm, invokeHook } from '@dcloudio/uni-core' import { EventChannel, ON_READY, ON_UNLOAD, - SYSTEM_DIALOG_PAGE_PATH_STARTER, formatLog, } from '@dcloudio/uni-shared' import { @@ -14,8 +13,10 @@ import { onMounted, } from 'vue' import type { VuePageComponent } from './define' -import { addCurrentPage, getPage$BasePage } from './getCurrentPages' -import { OPEN_DIALOG_PAGE } from '../../../x/constants' +import { addCurrentPage } from './getCurrentPages' +//#if _X_ +import { setupXPage } from '../../../x/framework/page/setup' +//#endif export function setupPage(component: VuePageComponent) { const oldSetup = component.setup @@ -31,106 +32,19 @@ export function setupPage(component: VuePageComponent) { const pageVm = instance.proxy! initPageVm(pageVm, __pageInstance as Page.PageInstance['$page']) if (__X__) { - instance.$dialogPages = [] - let uniPage: UniPage - if ( - (__pageInstance as Page.PageInstance['$page']).openType === - OPEN_DIALOG_PAGE - ) { - const currentPage = getCurrentPage() as unknown as UniPage - if ( - (__pagePath as string).startsWith(SYSTEM_DIALOG_PAGE_PATH_STARTER) - ) { - const systemDialogPages = currentPage.vm.$systemDialogPages - uniPage = systemDialogPages[systemDialogPages.length - 1] - } else { - uniPage = new UniDialogPageImpl() - } - uniPage.getElementById = ( - id: string.IDString | string - ): UniElement | null => { - const currentPage = getCurrentPage() as unknown as UniPage - if (currentPage !== uniPage.getParentPage()) { - return null - } - const containerNode = pageVm.$el?._parent - if (containerNode == null) { - console.warn('bodyNode is null') - return null - } - return containerNode.querySelector(`#${id}`) - } - } else { - uniPage = new UniNormalPageImpl() - uniPage.getElementById = ( - id: string.IDString | string - ): UniElement | null => { - const currentPage = getCurrentPage() as unknown as UniPage - if (currentPage !== uniPage) { - return null - } - const bodyNode = pageVm.$el?.parentNode - if (bodyNode == null) { - console.warn('bodyNode is null') - return null - } - return bodyNode.querySelector(`#${id}`) - } - } - pageVm.$basePage = pageVm.$page as Page.PageInstance['$page'] - pageVm.$page = uniPage - uniPage.route = pageVm.$basePage.route - // @ts-expect-error - uniPage.optionsByJS = pageVm.$basePage.options - Object.defineProperty(uniPage, 'options', { - get: function () { - return new UTSJSONObject(pageVm.$basePage.options) - }, - }) - uniPage.vm = pageVm - uniPage.$vm = pageVm - uniPage.getParentPage = () => { - // @ts-expect-error - const parentPage = uniPage.getParentPageByJS() - return parentPage || null - } - - uniPage.getPageStyle = (): UTSJSONObject => { - // @ts-expect-error - const pageStyle = uniPage.getPageStyleByJS() - return new UTSJSONObject(pageStyle) - } - uniPage.$getPageStyle = (): UTSJSONObject => { - return uniPage.getPageStyle() - } - - uniPage.setPageStyle = (styles: UTSJSONObject) => { - // @ts-expect-error - uniPage.setPageStyleByJS(styles) - } - uniPage.$setPageStyle = (styles: UTSJSONObject) => { - uniPage.setPageStyle(styles) - } - - uniPage.getAndroidView = () => null - uniPage.getIOSView = () => null - uniPage.getHTMLElement = () => null - - if (getPage$BasePage(pageVm).openType !== OPEN_DIALOG_PAGE) { - addCurrentPageWithInitScope( - __pageId as number, - pageVm, - __pageInstance as Page.PageInstance['$page'] - ) - } + setupXPage( + instance, + __pageInstance as Page.PageInstance['$page'], + pageVm, + __pageId as number, + __pagePath as string + ) } else { addCurrentPageWithInitScope( __pageId as number, pageVm, __pageInstance as Page.PageInstance['$page'] ) - } - if (!__X__) { onMounted(() => { nextTick(() => { // onShow被延迟,故onReady也同时延迟 @@ -141,19 +55,6 @@ export function setupPage(component: VuePageComponent) { onBeforeUnmount(() => { invokeHook(pageVm, ON_UNLOAD) }) - } else { - onMounted(() => { - const rootElement = pageVm.$el?._parent - if (rootElement) { - rootElement._page = pageVm.$page - } - }) - onBeforeUnmount(() => { - const rootElement = pageVm.$el?._parent - if (rootElement) { - rootElement._page = null - } - }) } if (oldSetup) { return oldSetup(props, ctx) @@ -201,7 +102,7 @@ export function initScope( return vm } -function addCurrentPageWithInitScope( +export function addCurrentPageWithInitScope( pageId: number, pageVm: ComponentPublicInstance, pageInstance: Page.PageInstance['$page'] diff --git a/packages/uni-app-plus/src/x/framework/page/setup.ts b/packages/uni-app-plus/src/x/framework/page/setup.ts new file mode 100644 index 00000000000..bb1a4fb3051 --- /dev/null +++ b/packages/uni-app-plus/src/x/framework/page/setup.ts @@ -0,0 +1,122 @@ +import { + type ComponentInternalInstance, + type ComponentPublicInstance, + onBeforeUnmount, + onMounted, +} from 'vue' +import { OPEN_DIALOG_PAGE } from '../../constants' +import { getCurrentPage } from '@dcloudio/uni-core' +import { SYSTEM_DIALOG_PAGE_PATH_STARTER } from '@dcloudio/uni-shared' +import { addCurrentPageWithInitScope } from '../../../service/framework/page/setup' +import { getPage$BasePage } from '../../../service/framework/page/getCurrentPages' + +export function setupXPage( + instance: ComponentInternalInstance, + pageInstance: Page.PageInstance['$page'], + pageVm: ComponentPublicInstance, + pageId: number, + pagePath: string +) { + instance.$dialogPages = [] + let uniPage: UniPage + if ( + (pageInstance as Page.PageInstance['$page']).openType === OPEN_DIALOG_PAGE + ) { + const currentPage = getCurrentPage() as unknown as UniPage + if ((pagePath as string).startsWith(SYSTEM_DIALOG_PAGE_PATH_STARTER)) { + const systemDialogPages = currentPage.vm.$systemDialogPages + uniPage = systemDialogPages[systemDialogPages.length - 1] + } else { + uniPage = new UniDialogPageImpl() + } + uniPage.getElementById = ( + id: string.IDString | string + ): UniElement | null => { + const currentPage = getCurrentPage() as unknown as UniPage + if (currentPage !== uniPage.getParentPage()) { + return null + } + const containerNode = pageVm.$el?._parent + if (containerNode == null) { + console.warn('bodyNode is null') + return null + } + return containerNode.querySelector(`#${id}`) + } + } else { + uniPage = new UniNormalPageImpl() + uniPage.getElementById = ( + id: string.IDString | string + ): UniElement | null => { + const currentPage = getCurrentPage() as unknown as UniPage + if (currentPage !== uniPage) { + return null + } + const bodyNode = pageVm.$el?.parentNode + if (bodyNode == null) { + console.warn('bodyNode is null') + return null + } + return bodyNode.querySelector(`#${id}`) + } + } + pageVm.$basePage = pageVm.$page as Page.PageInstance['$page'] + pageVm.$page = uniPage + uniPage.route = pageVm.$basePage.route + // @ts-expect-error + uniPage.optionsByJS = pageVm.$basePage.options + Object.defineProperty(uniPage, 'options', { + get: function () { + return new UTSJSONObject(pageVm.$basePage.options) + }, + }) + uniPage.vm = pageVm + uniPage.$vm = pageVm + uniPage.getParentPage = () => { + // @ts-expect-error + const parentPage = uniPage.getParentPageByJS() + return parentPage || null + } + + uniPage.getPageStyle = (): UTSJSONObject => { + // @ts-expect-error + const pageStyle = uniPage.getPageStyleByJS() + return new UTSJSONObject(pageStyle) + } + uniPage.$getPageStyle = (): UTSJSONObject => { + return uniPage.getPageStyle() + } + + uniPage.setPageStyle = (styles: UTSJSONObject) => { + // @ts-expect-error + uniPage.setPageStyleByJS(styles) + } + uniPage.$setPageStyle = (styles: UTSJSONObject) => { + uniPage.setPageStyle(styles) + } + + uniPage.getAndroidView = () => null + uniPage.getIOSView = () => null + uniPage.getHTMLElement = () => null + + if (getPage$BasePage(pageVm).openType !== OPEN_DIALOG_PAGE) { + addCurrentPageWithInitScope( + pageId, + pageVm, + pageInstance as Page.PageInstance['$page'] + ) + } + + onMounted(() => { + const rootElement = pageVm.$el?._parent + if (rootElement) { + rootElement._page = pageVm.$page + } + }) + onBeforeUnmount(() => { + const rootElement = pageVm.$el?._parent + if (rootElement) { + rootElement._page = null + } + }) +}
0b0d33239b14f7e31fd3f66d1a8ef099065b1232
2024-09-30 14:06:20
im-robot
chore: update uts compiler
false
update uts compiler
chore
diff --git a/packages/uts-darwin-arm64/uts.darwin-arm64.node b/packages/uts-darwin-arm64/uts.darwin-arm64.node index 23cedbefb92..6a718458e91 100755 Binary files a/packages/uts-darwin-arm64/uts.darwin-arm64.node and b/packages/uts-darwin-arm64/uts.darwin-arm64.node differ diff --git a/packages/uts-darwin-x64/uts.darwin-x64.node b/packages/uts-darwin-x64/uts.darwin-x64.node index 4ebd505d9ca..da01d73aee0 100755 Binary files a/packages/uts-darwin-x64/uts.darwin-x64.node and b/packages/uts-darwin-x64/uts.darwin-x64.node differ diff --git a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node index 5ec562f7c52..8ded3ba65fc 100755 Binary files a/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node and b/packages/uts-linux-x64-gnu/uts.linux-x64-gnu.node differ diff --git a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node index 49d58adfe4e..32b88f03b22 100755 Binary files a/packages/uts-linux-x64-musl/uts.linux-x64-musl.node and b/packages/uts-linux-x64-musl/uts.linux-x64-musl.node differ diff --git a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node index 50bfb887bd2..b4a4afdb618 100644 Binary files a/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node and b/packages/uts-win32-ia32-msvc/uts.win32-ia32-msvc.node differ diff --git a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node index 55cef0bbd40..211b5f6f6ce 100644 Binary files a/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node and b/packages/uts-win32-x64-msvc/uts.win32-x64-msvc.node differ
e5ae6903e983e531a991d4ac1971c929debe998e
2024-01-08 13:25:34
fxy060608
feat(uvue): UniInputElement 增加 focus 方法
false
UniInputElement 增加 focus 方法
feat
diff --git a/packages/uni-components/src/vue/input/index.tsx b/packages/uni-components/src/vue/input/index.tsx index 8885de82977..670da0c14c5 100644 --- a/packages/uni-components/src/vue/input/index.tsx +++ b/packages/uni-components/src/vue/input/index.tsx @@ -19,7 +19,11 @@ const props = /*#__PURE__*/ extend({}, fieldProps, { }, }) -class UniInputElement extends UniElement {} +class UniInputElement extends UniElement { + focus(options?: FocusOptions | undefined): void { + this.querySelector('input')?.focus(options) + } +} export default /*#__PURE__*/ defineBuiltInComponent({ name: 'Input', diff --git a/packages/uni-h5/dist-x/uni-h5.es.js b/packages/uni-h5/dist-x/uni-h5.es.js index a4792764fb7..bbf001bbf73 100644 --- a/packages/uni-h5/dist-x/uni-h5.es.js +++ b/packages/uni-h5/dist-x/uni-h5.es.js @@ -9704,6 +9704,10 @@ const props$q = /* @__PURE__ */ extend({}, props$r, { } }); class UniInputElement extends UniElement { + focus(options) { + var _a; + (_a = this.querySelector("input")) == null ? void 0 : _a.focus(options); + } } const Input = /* @__PURE__ */ defineBuiltInComponent({ name: "Input",
b1120b98e4ff53b07698ec183137000faef5073f
2022-10-10 18:27:30
fxy060608
chore: bump vite from 3.1.6 to 3.1.7
false
bump vite from 3.1.6 to 3.1.7
chore
diff --git a/package.json b/package.json index 6d4cb404fd4..9281d42fa14 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "simple-git-hooks": "^2.8.0", "ts-jest": "^27.0.3", "typescript": "^4.8.4", - "vite": "3.1.6", + "vite": "3.1.7", "vue": "3.2.40", "vue-router": "^4.1.5", "yorkie": "^2.0.0" diff --git a/packages/playground/ssr/package.json b/packages/playground/ssr/package.json index 0c66ffade7f..2f614de5f0e 100644 --- a/packages/playground/ssr/package.json +++ b/packages/playground/ssr/package.json @@ -21,6 +21,6 @@ "compression": "^1.7.4", "cypress": "^10.7.0", "serve-static": "^1.15.0", - "vite": "3.1.6" + "vite": "3.1.7" } } diff --git a/packages/uni-app-vite/package.json b/packages/uni-app-vite/package.json index 4d620a7bd2c..171ca6aa65e 100644 --- a/packages/uni-app-vite/package.json +++ b/packages/uni-app-vite/package.json @@ -40,7 +40,7 @@ "@vue/compiler-core": "3.2.40", "esbuild": "^0.15.9", "postcss": "^8.4.16", - "vite": "3.1.6", + "vite": "3.1.7", "vue": "3.2.40" } } diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 53be08e8113..4cca1c79944 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -57,11 +57,11 @@ "@types/sass": "^1.16.0", "@vue/babel-plugin-jsx": "^1.1.1", "chokidar": "^3.5.3", - "vite": "3.1.6", + "vite": "3.1.7", "vue": "3.2.40" }, "peerDependencies": { - "vite": "3.1.6" + "vite": "3.1.7" }, "uni-app": { "compilerVersion": "3.6.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ba3dedd8944..e1151d73ef2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,7 +51,7 @@ importers: simple-git-hooks: ^2.8.0 ts-jest: ^27.0.3 typescript: ^4.8.4 - vite: 3.1.6 + vite: 3.1.7 vue: 3.2.40 vue-router: ^4.1.5 yorkie: ^2.0.0 @@ -73,8 +73,8 @@ importers: '@types/jest': 27.5.2 '@types/node': 17.0.45 '@typescript-eslint/parser': 5.39.0_3rubbgt5ekhqrcgx4uwls3neim - '@vitejs/plugin-vue': [email protected][email protected] - '@vitejs/plugin-vue-jsx': [email protected][email protected] + '@vitejs/plugin-vue': [email protected][email protected] + '@vitejs/plugin-vue-jsx': [email protected][email protected] '@vue/compiler-sfc': 3.2.40 '@vue/reactivity': 3.2.40 '@vue/runtime-core': 3.2.40 @@ -103,7 +103,7 @@ importers: simple-git-hooks: 2.8.0 ts-jest: 27.1.5_zgo3ukr7wfsrfu7w73hol4lxpy typescript: 4.8.4 - vite: 3.1.6 + vite: 3.1.7 vue: 3.2.40 vue-router: [email protected] yorkie: 2.0.0 @@ -117,7 +117,7 @@ importers: compression: ^1.7.4 cypress: ^10.7.0 serve-static: ^1.15.0 - vite: 3.1.6 + vite: 3.1.7 vue: 3.2.40 vue-router: ^4.1.5 vuex: ^4.0.2 @@ -133,7 +133,7 @@ importers: compression: 1.7.4 cypress: 10.9.0 serve-static: 1.15.0 - vite: 3.1.6 + vite: 3.1.7 packages/size-check: specifiers: @@ -236,7 +236,7 @@ importers: picocolors: ^1.0.0 postcss: ^8.4.16 rollup: ~2.78.0 - vite: 3.1.6 + vite: 3.1.7 vue: 3.2.40 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -245,7 +245,7 @@ importers: '@dcloudio/uni-shared': link:../uni-shared '@dcloudio/uts': link:../uts '@rollup/pluginutils': 4.2.1 - '@vitejs/plugin-vue': [email protected][email protected] + '@vitejs/plugin-vue': [email protected][email protected] '@vue/compiler-dom': 3.2.40 '@vue/compiler-sfc': 3.2.40 debug: 4.3.4 @@ -258,7 +258,7 @@ importers: '@vue/compiler-core': 3.2.40 esbuild: 0.15.10 postcss: 8.4.17 - vite: 3.1.6 + vite: 3.1.7 vue: 3.2.40 packages/uni-app-vue: @@ -900,7 +900,7 @@ importers: jsonc-parser: ^3.0.0 picocolors: ^1.0.0 terser: ^5.4.0 - vite: 3.1.6 + vite: 3.1.7 vue: 3.2.40 dependencies: '@babel/core': 7.19.3 @@ -909,9 +909,9 @@ importers: '@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-shared': link:../uni-shared '@rollup/pluginutils': 4.2.1 - '@vitejs/plugin-legacy': [email protected][email protected] - '@vitejs/plugin-vue': [email protected][email protected] - '@vitejs/plugin-vue-jsx': [email protected][email protected] + '@vitejs/plugin-legacy': [email protected][email protected] + '@vitejs/plugin-vue': [email protected][email protected] + '@vitejs/plugin-vue-jsx': [email protected][email protected] '@vue/compiler-core': 3.2.40 '@vue/compiler-dom': 3.2.40 '@vue/compiler-sfc': 3.2.40 @@ -934,7 +934,7 @@ importers: '@types/sass': 1.43.1 '@vue/babel-plugin-jsx': 1.1.1_@[email protected] chokidar: 3.5.3 - vite: [email protected] + vite: [email protected] vue: 3.2.40 packages: @@ -3061,7 +3061,7 @@ packages: eslint-visitor-keys: 3.3.0 dev: true - /@vitejs/plugin-legacy/[email protected][email protected]: + /@vitejs/plugin-legacy/[email protected][email protected]: resolution: {integrity: sha512-xkSXZl2LNk0KKyo5CJknNW84mSlmHIClFzsBuFXkX3yBt+Lr8UO/n4QOg2X7+jvurgBRies9FRn3ZvMem+TmIg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3074,10 +3074,10 @@ packages: regenerator-runtime: 0.13.9 systemjs: 6.13.0 terser: 5.15.1 - vite: [email protected] + vite: [email protected] dev: false - /@vitejs/plugin-vue-jsx/[email protected][email protected]: + /@vitejs/plugin-vue-jsx/[email protected][email protected]: resolution: {integrity: sha512-lmiR1k9+lrF7LMczO0pxtQ8mOn6XeppJDHxnpxkJQpT5SiKz4SKhKdeNstXaTNuR8qZhUo5X0pJlcocn72Y4Jg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3088,19 +3088,19 @@ packages: '@babel/plugin-syntax-import-meta': 7.10.4_@[email protected] '@babel/plugin-transform-typescript': 7.19.3_@[email protected] '@vue/babel-plugin-jsx': 1.1.1_@[email protected] - vite: [email protected] + vite: [email protected] vue: 3.2.40 transitivePeerDependencies: - supports-color - /@vitejs/plugin-vue/[email protected][email protected]: + /@vitejs/plugin-vue/[email protected][email protected]: resolution: {integrity: sha512-3zxKNlvA3oNaKDYX0NBclgxTQ1xaFdL7PzwF6zj9tGFziKwmBa3Q/6XcJQxudlT81WxDjEhHmevvIC4Orc1LhQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^3.0.0 vue: ^3.2.25 dependencies: - vite: 3.1.6 + vite: 3.1.7 vue: 3.2.40 /@vue/babel-helper-vue-transform-on/1.0.2: @@ -8245,8 +8245,8 @@ packages: extsprintf: 1.3.0 dev: true - /vite/3.1.6: - resolution: {integrity: sha512-qMXIwnehvvcK5XfJiXQUiTxoYAEMKhM+jqCY6ZSTKFBKu1hJnAKEzP3AOcnTerI0cMZYAaJ4wpW1wiXLMDt4mA==} + /vite/3.1.7: + resolution: {integrity: sha512-5vCAmU4S8lyVdFCInu9M54f/g8qbOMakVw5xJ4pjoaDy5wgy9sLLZkGdSLN52dlsBqh0tBqxjaqqa8LgPqwRAA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -8271,8 +8271,8 @@ packages: optionalDependencies: fsevents: 2.3.2 - /vite/[email protected]: - resolution: {integrity: sha512-qMXIwnehvvcK5XfJiXQUiTxoYAEMKhM+jqCY6ZSTKFBKu1hJnAKEzP3AOcnTerI0cMZYAaJ4wpW1wiXLMDt4mA==} + /vite/[email protected]: + resolution: {integrity: sha512-5vCAmU4S8lyVdFCInu9M54f/g8qbOMakVw5xJ4pjoaDy5wgy9sLLZkGdSLN52dlsBqh0tBqxjaqqa8LgPqwRAA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: diff --git a/scripts/checkVersion.js b/scripts/checkVersion.js index 6976c6d09e1..191b811683d 100644 --- a/scripts/checkVersion.js +++ b/scripts/checkVersion.js @@ -25,7 +25,7 @@ const pkgs = { next: '9.1.9', }, vite: { - latest: '3.1.6', + latest: '3.1.7', }, '@vitejs/plugin-vue': { latest: '3.1.2',
005194a214a3b71554d218d5e138eebc4392a887
2022-02-23 15:08:09
fxy060608
release: v0.0.1-nvue3.3040020220223003
false
v0.0.1-nvue3.3040020220223003
release
diff --git a/package.json b/package.json index 3709657a570..99c41ceb065 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "workspaces": [ "packages/*" ], @@ -43,8 +43,8 @@ "devDependencies": { "@babel/preset-env": "^7.16.11", "@dcloudio/types": "^2.5.17", - "@dcloudio/uni-api": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-app": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-api": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-app": "0.0.1-nvue3.3040020220223003", "@jest/types": "^27.0.2", "@microsoft/api-extractor": "^7.19.2", "@rollup/plugin-alias": "^3.1.1", diff --git a/packages/size-check/package.json b/packages/size-check/package.json index b2330262b77..aca4b9f3c78 100644 --- a/packages/size-check/package.json +++ b/packages/size-check/package.json @@ -1,14 +1,14 @@ { "private": true, "name": "@dcloudio/size-check", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "devDependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-components": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-h5": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223002", - "@dcloudio/vite-plugin-uni": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-components": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-h5": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223003", + "@dcloudio/vite-plugin-uni": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/uni-api/package.json b/packages/uni-api/package.json index a731f2ad4b8..0bf5bbb6598 100644 --- a/packages/uni-api/package.json +++ b/packages/uni-api/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-api", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-api", "sideEffects": false, "repository": { @@ -14,6 +14,6 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/uni-app-plus/package.json b/packages/uni-app-plus/package.json index c6069b45534..c10f1a6cb2d 100644 --- a/packages/uni-app-plus/package.json +++ b/packages/uni-app-plus/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-app-plus", "files": [ "dist", @@ -28,18 +28,18 @@ "main": "dist/uni.compiler.js" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-components": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-h5": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-components": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-h5": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@types/pako": "1.0.2", "@vue/compiler-sfc": "3.2.31", "pako": "^1.0.11", "vue": "3.2.31" }, "dependencies": { - "@dcloudio/uni-app-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-app-vue": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-app-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-app-vue": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/uni-app-vite/package.json b/packages/uni-app-vite/package.json index 0ecda172e3b..38a622e54b4 100644 --- a/packages/uni-app-vite/package.json +++ b/packages/uni-app-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vite", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,10 +19,10 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-nvue-styler": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-nvue-styler": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@rollup/pluginutils": "^4.1.2", "@vitejs/plugin-vue": "^2.2.2", "@vue/compiler-dom": "3.2.31", diff --git a/packages/uni-app-vue/package.json b/packages/uni-app-vue/package.json index 46def3e0ca2..f179f212865 100644 --- a/packages/uni-app-vue/package.json +++ b/packages/uni-app-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-vue", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-app-vue", "main": "dist/service.runtime.esm.dev.js", "module": "dist/service.runtime.esm.dev.js", diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index 08b1c0d7a59..602e0358a41 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-app", "main": "./dist/uni-app.cjs.js", "module": "./dist/uni-app.es.js", @@ -24,12 +24,12 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-cloud": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-components": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-push": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-stat": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cloud": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-components": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-push": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-stat": "0.0.1-nvue3.3040020220223003", "@vue/shared": "3.2.31" } } diff --git a/packages/uni-automator/package.json b/packages/uni-automator/package.json index dbc20989f23..3bb2db902e1 100644 --- a/packages/uni-automator/package.json +++ b/packages/uni-automator/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-automator", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-automator", "main": "dist/index.js", "files": [ @@ -27,7 +27,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", "address": "^1.1.2", "cross-env": "^7.0.3", "debug": "^4.3.3", diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index 195ebcdad94..c4a2ab897a3 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-shared", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-cli-shared", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -21,8 +21,8 @@ "@babel/core": "^7.17.2", "@babel/parser": "^7.16.4", "@babel/types": "^7.16.8", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@rollup/pluginutils": "^4.1.2", "@vue/compiler-core": "3.2.31", "@vue/compiler-dom": "3.2.31", diff --git a/packages/uni-cloud/package.json b/packages/uni-cloud/package.json index 35dcca4a727..b5121e73892 100644 --- a/packages/uni-cloud/package.json +++ b/packages/uni-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cloud", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-cloud", "main": "dist/uni-cloud.cjs.js", "module": "dist/uni-cloud.es.js", @@ -20,8 +20,8 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/uni-components/package.json b/packages/uni-components/package.json index 07394594a5e..7fa0e22cd0f 100644 --- a/packages/uni-components/package.json +++ b/packages/uni-components/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-components", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-components", "main": "index.js", "files": [ @@ -18,7 +18,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@types/quill": "^1.3.7" } } diff --git a/packages/uni-core/package.json b/packages/uni-core/package.json index 0f3696fa920..f01b28f0994 100644 --- a/packages/uni-core/package.json +++ b/packages/uni-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-core", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-core", "sideEffects": false, "repository": { @@ -14,9 +14,9 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "safe-area-insets": "^1.4.1" } } diff --git a/packages/uni-h5-vite/package.json b/packages/uni-h5-vite/package.json index c15f32dc2ff..9490e89cf55 100644 --- a/packages/uni-h5-vite/package.json +++ b/packages/uni-h5-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vite", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-h5-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -19,8 +19,8 @@ "license": "Apache-2.0", "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@rollup/pluginutils": "^4.1.2", "@vue/compiler-dom": "3.2.31", "@vue/compiler-sfc": "3.2.31", diff --git a/packages/uni-h5-vue/package.json b/packages/uni-h5-vue/package.json index ecf55b5e256..ecae1428772 100644 --- a/packages/uni-h5-vue/package.json +++ b/packages/uni-h5-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-vue", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-h5-vue", "main": "dist/vue.runtime.cjs.js", "module": "dist/vue.runtime.esm.js", diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index 2bf4ecf1be5..243b6cdeec3 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-h5", "main": "./dist/uni-h5.cjs.js", "module": "./dist/uni-h5.es.js", @@ -29,10 +29,10 @@ "main": "dist/uni.compiler.js" }, "dependencies": { - "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-i18n": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@vue/server-renderer": "3.2.31", "@vue/shared": "3.2.31", "localstorage-polyfill": "^1.0.1", @@ -43,7 +43,7 @@ "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { "@dcloudio/uni-cli-i18n": "^2.0.0-32920211029004", - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", "@types/google.maps": "^3.45.6", "acorn-loose": "^8.2.1", "acorn-walk": "^8.2.0", diff --git a/packages/uni-i18n/package.json b/packages/uni-i18n/package.json index 79a3b1c19e8..2fda62d80ad 100644 --- a/packages/uni-i18n/package.json +++ b/packages/uni-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-i18n", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-i18n", "main": "./dist/uni-i18n.cjs.js", "module": "./dist/uni-i18n.es.js", diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index 1757db530f1..30556d8055c 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app mp-alipay", "main": "dist/index.js", "repository": { @@ -22,9 +22,9 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", "@vue/compiler-core": "3.2.31", "@vue/shared": "3.2.31" } diff --git a/packages/uni-mp-baidu/package.json b/packages/uni-mp-baidu/package.json index ca8d4a5cbdf..d8f1c5eeabf 100644 --- a/packages/uni-mp-baidu/package.json +++ b/packages/uni-mp-baidu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-baidu", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app mp-baidu", "main": "dist/index.js", "files": [ @@ -26,14 +26,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220223003", "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/uni-mp-compiler/package.json b/packages/uni-mp-compiler/package.json index bc74adfd917..c1bf6c0f777 100644 --- a/packages/uni-mp-compiler/package.json +++ b/packages/uni-mp-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-compiler", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-mp-compiler", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -22,8 +22,8 @@ "@babel/generator": "^7.16.0", "@babel/parser": "^7.16.4", "@babel/types": "^7.16.8", - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@vue/compiler-core": "3.2.31", "@vue/compiler-dom": "3.2.31", "@vue/shared": "3.2.31", diff --git a/packages/uni-mp-core/package.json b/packages/uni-mp-core/package.json index 896f5554aaa..12ab28cab81 100644 --- a/packages/uni-mp-core/package.json +++ b/packages/uni-mp-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-mp-core", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-mp-core", "sideEffects": false, "repository": { diff --git a/packages/uni-mp-kuaishou/package.json b/packages/uni-mp-kuaishou/package.json index 69dc6320458..3408bfcae5e 100644 --- a/packages/uni-mp-kuaishou/package.json +++ b/packages/uni-mp-kuaishou/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-kuaishou", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app mp-kuaishou", "main": "dist/index.js", "repository": { @@ -22,14 +22,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220223003", "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/uni-mp-lark/package.json b/packages/uni-mp-lark/package.json index 6c7899d0047..6fd3a62a68f 100644 --- a/packages/uni-mp-lark/package.json +++ b/packages/uni-mp-lark/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-lark", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app mp-lark", "main": "dist/index.js", "repository": { @@ -22,14 +22,14 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-toutiao": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-mp-toutiao": "0.0.1-nvue3.3040020220223003" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@vue/compiler-core": "3.2.31" } } diff --git a/packages/uni-mp-qq/package.json b/packages/uni-mp-qq/package.json index 21a0cca3b33..7ce7960b17e 100644 --- a/packages/uni-mp-qq/package.json +++ b/packages/uni-mp-qq/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-qq", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app mp-qq", "main": "dist/index.js", "repository": { @@ -22,15 +22,15 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-mp-weixin": "0.0.1-nvue3.3040020220223003", "@types/fs-extra": "^9.0.13", "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "fs-extra": "^10.0.0" } } diff --git a/packages/uni-mp-toutiao/package.json b/packages/uni-mp-toutiao/package.json index 34fb0925b37..7f969463a39 100644 --- a/packages/uni-mp-toutiao/package.json +++ b/packages/uni-mp-toutiao/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-toutiao", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app mp-toutiao", "main": "dist/index.js", "repository": { @@ -22,11 +22,11 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@vue/compiler-core": "3.2.31" } } diff --git a/packages/uni-mp-vite/package.json b/packages/uni-mp-vite/package.json index 74bbe5cb2d6..100f89bfdad 100644 --- a/packages/uni-mp-vite/package.json +++ b/packages/uni-mp-vite/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vite", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-mp-vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -18,10 +18,10 @@ }, "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-compiler": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@intlify/core-base": "9.1.9", "@intlify/shared": "9.1.9", "@intlify/vue-devtools": "9.1.9", diff --git a/packages/uni-mp-vue/package.json b/packages/uni-mp-vue/package.json index a894ff3e566..1cddd8618f9 100644 --- a/packages/uni-mp-vue/package.json +++ b/packages/uni-mp-vue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-vue", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-mp-vue", "main": "dist/vue.runtime.esm.js", "module": "dist/vue.runtime.esm.js", @@ -19,6 +19,6 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "devDependencies": { - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index d9c7abd1c45..e2b054e058f 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app mp-weixin", "main": "dist/index.js", "files": [ @@ -29,9 +29,9 @@ "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/uni-nvue-styler/package.json b/packages/uni-nvue-styler/package.json index 4e7a3cf6198..2bf1225aae3 100644 --- a/packages/uni-nvue-styler/package.json +++ b/packages/uni-nvue-styler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-nvue-styler", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-nvue-styler", "main": "./dist/uni-nvue-styler.cjs.js", "types": "./dist/uni-nvue-styler.d.ts", diff --git a/packages/uni-push/package.json b/packages/uni-push/package.json index 911aa338559..c6cce925854 100644 --- a/packages/uni-push/package.json +++ b/packages/uni-push/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-push", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-push", "main": "lib/uni-push.js", "module": "lib/uni-push.js", @@ -20,7 +20,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", "debug": "^4.3.3" }, "devDependencies": { diff --git a/packages/uni-quickapp-webview/package.json b/packages/uni-quickapp-webview/package.json index 0e44397b054..f13cac72dba 100644 --- a/packages/uni-quickapp-webview/package.json +++ b/packages/uni-quickapp-webview/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-quickapp-webview", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app quickapp-webview", "main": "dist/index.js", "repository": { @@ -25,10 +25,10 @@ "@vue/compiler-core": "3.2.31" }, "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vite": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@vue/shared": "3.2.31" } } diff --git a/packages/uni-shared/package.json b/packages/uni-shared/package.json index 55b13e5f65a..f6257d06422 100644 --- a/packages/uni-shared/package.json +++ b/packages/uni-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-shared", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-shared", "main": "./dist/uni-shared.cjs.js", "module": "./dist/uni-shared.es.js", diff --git a/packages/uni-stat/dist/uni-stat.cjs.js b/packages/uni-stat/dist/uni-stat.cjs.js index c79663909b9..f57891fb6e3 100644 --- a/packages/uni-stat/dist/uni-stat.cjs.js +++ b/packages/uni-stat/dist/uni-stat.cjs.js @@ -1,6 +1,6 @@ 'use strict'; -var version = "0.0.1-nvue3.3040020220223002"; +var version = "0.0.1-nvue3.3040020220223003"; const STAT_VERSION = version; const STAT_URL = 'https://tongji.dcloud.io/uni/stat'; diff --git a/packages/uni-stat/dist/uni-stat.es.js b/packages/uni-stat/dist/uni-stat.es.js index 40b23faff20..7147924ee9f 100644 --- a/packages/uni-stat/dist/uni-stat.es.js +++ b/packages/uni-stat/dist/uni-stat.es.js @@ -1,4 +1,4 @@ -var version = "0.0.1-nvue3.3040020220223002"; +var version = "0.0.1-nvue3.3040020220223003"; const STAT_VERSION = version; const STAT_URL = 'https://tongji.dcloud.io/uni/stat'; diff --git a/packages/uni-stat/package.json b/packages/uni-stat/package.json index fc69f1d674d..33afb794471 100644 --- a/packages/uni-stat/package.json +++ b/packages/uni-stat/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stat", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-stat", "main": "dist/uni-stat.es.js", "module": "dist/uni-stat.es.js", @@ -20,7 +20,7 @@ }, "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", "dependencies": { - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", "debug": "^4.3.3" }, "devDependencies": { diff --git a/packages/uni-vue/package.json b/packages/uni-vue/package.json index b41e5253a82..a0346e24d99 100644 --- a/packages/uni-vue/package.json +++ b/packages/uni-vue/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@dcloudio/uni-vue", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "@dcloudio/uni-vue", "files": [ "dist" @@ -17,7 +17,7 @@ "url": "https://github.com/dcloudio/uni-app/issues" }, "devDependencies": { - "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002" + "@dcloudio/uni-mp-vue": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003" } } diff --git a/packages/vite-plugin-uni/package.json b/packages/vite-plugin-uni/package.json index 2d4e7cd021b..37d3a9b03f8 100644 --- a/packages/vite-plugin-uni/package.json +++ b/packages/vite-plugin-uni/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vite-plugin-uni", - "version": "0.0.1-nvue3.3040020220223002", + "version": "0.0.1-nvue3.3040020220223003", "description": "uni-app vite plugin", "bin": { "uni": "bin/uni.js" @@ -25,8 +25,8 @@ "@babel/core": "^7.17.2", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-transform-typescript": "^7.16.8", - "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223002", - "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223002", + "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3040020220223003", + "@dcloudio/uni-shared": "0.0.1-nvue3.3040020220223003", "@rollup/pluginutils": "^4.1.2", "@vitejs/plugin-legacy": "^1.7.1", "@vitejs/plugin-vue": "^2.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5f1a62d9ae0..0fa5bdc5099 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ importers: specifiers: '@babel/preset-env': ^7.16.11 '@dcloudio/types': ^2.5.17 - '@dcloudio/uni-api': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-app': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-api': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-app': 0.0.1-nvue3.3040020220223003 '@jest/types': ^27.0.2 '@microsoft/api-extractor': ^7.19.2 '@rollup/plugin-alias': ^3.1.1 @@ -129,13 +129,13 @@ importers: packages/size-check: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-components': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-h5': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-h5-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-h5-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223002 - '@dcloudio/vite-plugin-uni': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-components': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-h5': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-h5-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-h5-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223003 + '@dcloudio/vite-plugin-uni': 0.0.1-nvue3.3040020220223003 devDependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-components': link:../uni-components @@ -147,18 +147,18 @@ importers: packages/uni-api: specifiers: - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 devDependencies: '@dcloudio/uni-shared': link:../uni-shared packages/uni-app: specifiers: - '@dcloudio/uni-cloud': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-components': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-push': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-stat': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cloud': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-components': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-push': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-stat': 0.0.1-nvue3.3040020220223003 '@vue/shared': 3.2.31 dependencies: '@dcloudio/uni-cloud': link:../uni-cloud @@ -171,13 +171,13 @@ importers: packages/uni-app-plus: specifiers: - '@dcloudio/uni-app-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-app-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-components': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-h5': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-app-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-app-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-components': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-h5': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@types/pako': 1.0.2 '@vue/compiler-sfc': 3.2.31 pako: ^1.0.11 @@ -198,10 +198,10 @@ importers: packages/uni-app-vite: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-nvue-styler': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-nvue-styler': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@rollup/pluginutils': ^4.1.2 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -240,7 +240,7 @@ importers: packages/uni-automator: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 address: ^1.1.2 @@ -274,8 +274,8 @@ importers: '@babel/core': ^7.17.2 '@babel/parser': ^7.16.4 '@babel/types': ^7.16.8 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@rollup/pluginutils': ^4.1.2 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -362,9 +362,9 @@ importers: packages/uni-cloud: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-i18n': link:../uni-i18n @@ -372,7 +372,7 @@ importers: packages/uni-components: specifiers: - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@types/quill': ^1.3.7 devDependencies: '@dcloudio/uni-shared': link:../uni-shared @@ -380,9 +380,9 @@ importers: packages/uni-core: specifiers: - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 safe-area-insets: ^1.4.1 devDependencies: '@dcloudio/uni-i18n': link:../uni-i18n @@ -393,11 +393,11 @@ importers: packages/uni-h5: specifiers: '@dcloudio/uni-cli-i18n': ^2.0.0-32920211029004 - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-h5-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-h5-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-h5-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-h5-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-i18n': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@types/google.maps': ^3.45.6 '@vue/server-renderer': 3.2.31 '@vue/shared': 3.2.31 @@ -429,8 +429,8 @@ importers: packages/uni-h5-vite: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@rollup/pluginutils': ^4.1.2 '@types/debug': ^4.1.7 '@types/fs-extra': ^9.0.13 @@ -474,9 +474,9 @@ importers: packages/uni-mp-alipay: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 '@vue/compiler-core': 3.2.31 '@vue/shared': 3.2.31 dependencies: @@ -488,12 +488,12 @@ importers: packages/uni-mp-baidu: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -510,8 +510,8 @@ importers: '@babel/generator': ^7.16.0 '@babel/parser': ^7.16.4 '@babel/types': ^7.16.8 - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@vue/compiler-core': 3.2.31 '@vue/compiler-dom': 3.2.31 '@vue/compiler-sfc': 3.2.31 @@ -537,12 +537,12 @@ importers: packages/uni-mp-kuaishou: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -556,12 +556,12 @@ importers: packages/uni-mp-lark: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-toutiao': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-toutiao': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -575,11 +575,11 @@ importers: packages/uni-mp-qq: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-weixin': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@types/fs-extra': ^9.0.13 '@vue/compiler-core': 3.2.31 fs-extra: ^10.0.0 @@ -596,11 +596,11 @@ importers: packages/uni-mp-toutiao: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -612,10 +612,10 @@ importers: packages/uni-mp-vite: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-compiler': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@intlify/core-base': 9.1.9 '@intlify/shared': 9.1.9 '@intlify/vue-devtools': 9.1.9 @@ -641,16 +641,16 @@ importers: packages/uni-mp-vue: specifiers: - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 devDependencies: '@dcloudio/uni-mp-vue': 'link:' packages/uni-mp-weixin: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@vue/compiler-core': 3.2.31 dependencies: '@dcloudio/uni-cli-shared': link:../uni-cli-shared @@ -672,7 +672,7 @@ importers: packages/uni-push: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 '@types/debug': ^4.1.7 debug: ^4.3.3 dependencies: @@ -683,10 +683,10 @@ importers: packages/uni-quickapp-webview: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vite': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@vue/compiler-core': 3.2.31 '@vue/shared': 3.2.31 dependencies: @@ -709,7 +709,7 @@ importers: packages/uni-stat: specifiers: - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 '@types/debug': ^4.1.7 debug: ^4.3.3 dependencies: @@ -720,8 +720,8 @@ importers: packages/uni-vue: specifiers: - '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-mp-vue': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 devDependencies: '@dcloudio/uni-mp-vue': link:../uni-mp-vue '@dcloudio/uni-shared': link:../uni-shared @@ -731,8 +731,8 @@ importers: '@babel/core': ^7.17.2 '@babel/plugin-syntax-import-meta': ^7.10.4 '@babel/plugin-transform-typescript': ^7.16.8 - '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223002 - '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223002 + '@dcloudio/uni-cli-shared': 0.0.1-nvue3.3040020220223003 + '@dcloudio/uni-shared': 0.0.1-nvue3.3040020220223003 '@rollup/pluginutils': ^4.1.2 '@types/debug': ^4.1.7 '@types/express': ^4.17.12 @@ -2526,7 +2526,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: callsites: 3.1.0 - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 source-map: 0.6.1 dev: true @@ -2545,7 +2545,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/test-result': 27.4.2 - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 jest-haste-map: 27.4.2 jest-runtime: 27.4.2 transitivePeerDependencies: @@ -3061,14 +3061,6 @@ packages: '@types/yargs-parser': 20.2.1 dev: true - /@types/yauzl/2.9.2: - resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==} - requiresBuild: true - dependencies: - '@types/node': 14.18.0 - dev: true - optional: true - /@typescript-eslint/parser/[email protected][email protected]: resolution: {integrity: sha512-JsXBU+kgQOAgzUn2jPrLA+Rd0Y1dswOlX3hp8MuRO1hQDs6xgHtbCXEiAu7bz5hyVURxbXcA2draasMbNqrhmg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3505,7 +3497,7 @@ packages: babel-plugin-istanbul: 6.1.1 babel-preset-jest: 27.4.0_@[email protected] chalk: 4.1.2 - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 slash: 3.0.0 transitivePeerDependencies: - supports-color @@ -3886,7 +3878,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /ci-info/1.6.0: resolution: {integrity: sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==} @@ -3926,7 +3918,7 @@ packages: object-assign: 4.1.1 string-width: 4.2.3 optionalDependencies: - colors: 1.4.0 + colors: registry.npmjs.org/colors/1.4.0 dev: true /cli-truncate/2.1.0: @@ -3986,13 +3978,6 @@ packages: engines: {node: '>=0.1.90'} dev: true - /colors/1.4.0: - resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==} - engines: {node: '>=0.1.90'} - requiresBuild: true - dev: true - optional: true - /combined-stream/1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -4516,316 +4501,28 @@ packages: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} dev: false - /esbuild-android-arm64/0.14.2: - resolution: {integrity: sha512-hEixaKMN3XXCkoe+0WcexO4CcBVU5DCSUT+7P8JZiWZCbAjSkc9b6Yz2X5DSfQmRCtI/cQRU6TfMYrMQ5NBfdw==} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /esbuild-android-arm64/0.14.21: - resolution: {integrity: sha512-Bqgld1TY0wZv8TqiQmVxQFgYzz8ZmyzT7clXBDZFkOOdRybzsnj8AZuK1pwcLVA7Ya6XncHgJqIao7NFd3s0RQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - optional: true - - /esbuild-darwin-64/0.14.2: - resolution: {integrity: sha512-Uq8t0cbJQkxkQdbUfOl2wZqZ/AtLZjvJulR1HHnc96UgyzG9YlCLSDMiqjM+NANEy7/zzvwKJsy3iNC9wwqLJA==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /esbuild-darwin-64/0.14.21: - resolution: {integrity: sha512-j+Eg+e13djzyYINVvAbOo2/zvZ2DivuJJTaBrJnJHSD7kUNuGHRkHoSfFjbI80KHkn091w350wdmXDNSgRjfYQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-darwin-arm64/0.14.2: - resolution: {integrity: sha512-619MSa17sr7YCIrUj88KzQu2ESA4jKYtIYfLU/smX6qNgxQt3Y/gzM4s6sgJ4fPQzirvmXgcHv1ZNQAs/Xh48A==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /esbuild-darwin-arm64/0.14.21: - resolution: {integrity: sha512-nDNTKWDPI0RuoPj5BhcSB2z5EmZJJAyRtZLIjyXSqSpAyoB8eyAKXl4lB8U2P78Fnh4Lh1le/fmpewXE04JhBQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-freebsd-64/0.14.2: - resolution: {integrity: sha512-aP6FE/ZsChZpUV6F3HE3x1Pz0paoYXycJ7oLt06g0G9dhJKknPawXCqQg/WMyD+ldCEZfo7F1kavenPdIT/SGQ==} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-freebsd-64/0.14.21: - resolution: {integrity: sha512-zIurkCHXhxELiDZtLGiexi8t8onQc2LtuE+S7457H/pP0g0MLRKMrsn/IN4LDkNe6lvBjuoZZi2OfelOHn831g==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-freebsd-arm64/0.14.2: - resolution: {integrity: sha512-LSm98WTb1QIhyS83+Po0KTpZNdd2XpVpI9ua5rLWqKWbKeNRFwOsjeiuwBaRNc+O32s9oC2ZMefETxHBV6VNkQ==} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-freebsd-arm64/0.14.21: - resolution: {integrity: sha512-wdxMmkJfbwcN+q85MpeUEamVZ40FNsBa9mPq8tAszDn8TRT2HoJvVRADPIIBa9SWWwlDChIMjkDKAnS3KS/sPA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-linux-32/0.14.2: - resolution: {integrity: sha512-8VxnNEyeUbiGflTKcuVc5JEPTqXfsx2O6ABwUbfS1Hp26lYPRPC7pKQK5Dxa0MBejGc50jy7YZae3EGQUQ8EkQ==} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-32/0.14.21: - resolution: {integrity: sha512-fmxvyzOPPh2xiEHojpCeIQP6pXcoKsWbz3ryDDIKLOsk4xp3GbpHIEAWP0xTeuhEbendmvBDVKbAVv3PnODXLg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-64/0.14.2: - resolution: {integrity: sha512-4bzMS2dNxOJoFIiHId4w+tqQzdnsch71JJV1qZnbnErSFWcR9lRgpSqWnTTFtv6XM+MvltRzSXC5wQ7AEBY6Hg==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-64/0.14.21: - resolution: {integrity: sha512-edZyNOv1ql+kpmlzdqzzDjRQYls+tSyi4QFi+PdBhATJFUqHsnNELWA9vMSzAaInPOEaVUTA5Ml28XFChcy4DA==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm/0.14.2: - resolution: {integrity: sha512-PaylahvMHhH8YMfJPMKEqi64qA0Su+d4FNfHKvlKes/2dUe4QxgbwXT9oLVgy8iJdcFMrO7By4R8fS8S0p8aVQ==} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-arm/0.14.21: - resolution: {integrity: sha512-aSU5pUueK6afqmLQsbU+QcFBT62L+4G9hHMJDHWfxgid6hzhSmfRH9U/f+ymvxsSTr/HFRU4y7ox8ZyhlVl98w==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm64/0.14.2: - resolution: {integrity: sha512-RlIVp0RwJrdtasDF1vTFueLYZ8WuFzxoQ1OoRFZOTyJHCGCNgh7xJIC34gd7B7+RT0CzLBB4LcM5n0LS+hIoww==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-arm64/0.14.21: - resolution: {integrity: sha512-t5qxRkq4zdQC0zXpzSB2bTtfLgOvR0C6BXYaRE/6/k8/4SrkZcTZBeNu+xGvwCU4b5dU9ST9pwIWkK6T1grS8g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-mips64le/0.14.2: - resolution: {integrity: sha512-Fdwrq2roFnO5oetIiUQQueZ3+5soCxBSJswg3MvYaXDomj47BN6oAWMZgLrFh1oVrtWrxSDLCJBenYdbm2s+qQ==} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-mips64le/0.14.21: - resolution: {integrity: sha512-jLZLQGCNlUsmIHtGqNvBs3zN+7a4D9ckf0JZ+jQTwHdZJ1SgV9mAjbB980OFo66LoY+WeM7t3WEnq3FjI1zw4A==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-ppc64le/0.14.2: - resolution: {integrity: sha512-vxptskw8JfCDD9QqpRO0XnsM1osuWeRjPaXX1TwdveLogYsbdFtcuiuK/4FxGiNMUr1ojtnCS2rMPbY8puc5NA==} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-ppc64le/0.14.21: - resolution: {integrity: sha512-4TWxpK391en2UBUw6GSrukToTDu6lL9vkm3Ll40HrI08WG3qcnJu7bl8e1+GzelDsiw1QmfAY/nNvJ6iaHRpCQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-riscv64/0.14.21: - resolution: {integrity: sha512-fElngqOaOfTsF+u+oetDLHsPG74vB2ZaGZUqmGefAJn3a5z9Z2pNa4WpVbbKgHpaAAy5tWM1m1sbGohj6Ki6+Q==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-s390x/0.14.21: - resolution: {integrity: sha512-brleZ6R5fYv0qQ7ZBwenQmP6i9TdvJCB092c/3D3pTLQHBGHJb5zWgKxOeS7bdHzmLy6a6W7GbFk6QKpjyD6QA==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-netbsd-64/0.14.2: - resolution: {integrity: sha512-I8+LzYK5iSNpspS9eCV9sW67Rj8FgMHimGri4mKiGAmN0pNfx+hFX146rYtzGtewuxKtTsPywWteHx+hPRLDsw==} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-netbsd-64/0.14.21: - resolution: {integrity: sha512-nCEgsLCQ8RoFWVV8pVI+kX66ICwbPP/M9vEa0NJGIEB/Vs5sVGMqkf67oln90XNSkbc0bPBDuo4G6FxlF7PN8g==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - optional: true - - /esbuild-openbsd-64/0.14.2: - resolution: {integrity: sha512-120HgMe9elidWUvM2E6mMf0csrGwx8sYDqUIJugyMy1oHm+/nT08bTAVXuwYG/rkMIqsEO9AlMxuYnwR6En/3Q==} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-openbsd-64/0.14.21: - resolution: {integrity: sha512-h9zLMyVD0T73MDTVYIb/qUTokwI6EJH9O6wESuTNq6+XpMSr6C5aYZ4fvFKdNELW+Xsod+yDS2hV2JTUAbFrLA==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - optional: true - - /esbuild-sunos-64/0.14.2: - resolution: {integrity: sha512-Q3xcf9Uyfra9UuCFxoLixVvdigo0daZaKJ97TL2KNA4bxRUPK18wwGUk3AxvgDQZpRmg82w9PnkaNYo7a+24ow==} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /esbuild-sunos-64/0.14.21: - resolution: {integrity: sha512-Kl+7Cot32qd9oqpLdB1tEGXEkjBlijrIxMJ0+vlDFaqsODutif25on0IZlFxEBtL2Gosd4p5WCV1U7UskNQfXA==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - optional: true - - /esbuild-windows-32/0.14.2: - resolution: {integrity: sha512-TW7O49tPsrq+N1sW8mb3m24j/iDGa4xzAZH4wHWwoIzgtZAYPKC0hpIhufRRG/LA30bdMChO9pjJZ5mtcybtBQ==} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-32/0.14.21: - resolution: {integrity: sha512-V7vnTq67xPBUCk/9UtlolmQ798Ecjdr1ZoI1vcSgw7M82aSSt0eZdP6bh5KAFZU8pxDcx3qoHyWQfHYr11f22A==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-64/0.14.2: - resolution: {integrity: sha512-Rym6ViMNmi1E2QuQMWy0AFAfdY0wGwZD73BnzlsQBX5hZBuy/L+Speh7ucUZ16gwsrMM9v86icZUDrSN/lNBKg==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-64/0.14.21: - resolution: {integrity: sha512-kDgHjKOHwjfJDCyRGELzVxiP/RBJBTA+wyspf78MTTJQkyPuxH2vChReNdWc+dU2S4gIZFHMdP1Qrl/k22ZmaA==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-arm64/0.14.2: - resolution: {integrity: sha512-ZrLbhr0vX5Em/P1faMnHucjVVWPS+m3tktAtz93WkMZLmbRJevhiW1y4CbulBd2z0MEdXZ6emDa1zFHq5O5bSA==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-arm64/0.14.21: - resolution: {integrity: sha512-8Sbo0zpzgwWrwjQYLmHF78f7E2xg5Ve63bjB2ng3V2aManilnnTGaliq2snYg+NOX60+hEvJHRdVnuIAHW0lVw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - optional: true - /esbuild/0.14.2: resolution: {integrity: sha512-l076A6o/PIgcyM24s0dWmDI/b8RQf41uWoJu9I0M71CtW/YSw5T5NUeXxs5lo2tFQD+O4CW4nBHJXx3OY5NpXg==} hasBin: true requiresBuild: true optionalDependencies: - esbuild-android-arm64: 0.14.2 - esbuild-darwin-64: 0.14.2 - esbuild-darwin-arm64: 0.14.2 - esbuild-freebsd-64: 0.14.2 - esbuild-freebsd-arm64: 0.14.2 - esbuild-linux-32: 0.14.2 - esbuild-linux-64: 0.14.2 - esbuild-linux-arm: 0.14.2 - esbuild-linux-arm64: 0.14.2 - esbuild-linux-mips64le: 0.14.2 - esbuild-linux-ppc64le: 0.14.2 - esbuild-netbsd-64: 0.14.2 - esbuild-openbsd-64: 0.14.2 - esbuild-sunos-64: 0.14.2 - esbuild-windows-32: 0.14.2 - esbuild-windows-64: 0.14.2 - esbuild-windows-arm64: 0.14.2 + esbuild-android-arm64: registry.npmjs.org/esbuild-android-arm64/0.14.2 + esbuild-darwin-64: registry.npmjs.org/esbuild-darwin-64/0.14.2 + esbuild-darwin-arm64: registry.npmjs.org/esbuild-darwin-arm64/0.14.2 + esbuild-freebsd-64: registry.npmjs.org/esbuild-freebsd-64/0.14.2 + esbuild-freebsd-arm64: registry.npmjs.org/esbuild-freebsd-arm64/0.14.2 + esbuild-linux-32: registry.npmjs.org/esbuild-linux-32/0.14.2 + esbuild-linux-64: registry.npmjs.org/esbuild-linux-64/0.14.2 + esbuild-linux-arm: registry.npmjs.org/esbuild-linux-arm/0.14.2 + esbuild-linux-arm64: registry.npmjs.org/esbuild-linux-arm64/0.14.2 + esbuild-linux-mips64le: registry.npmjs.org/esbuild-linux-mips64le/0.14.2 + esbuild-linux-ppc64le: registry.npmjs.org/esbuild-linux-ppc64le/0.14.2 + esbuild-netbsd-64: registry.npmjs.org/esbuild-netbsd-64/0.14.2 + esbuild-openbsd-64: registry.npmjs.org/esbuild-openbsd-64/0.14.2 + esbuild-sunos-64: registry.npmjs.org/esbuild-sunos-64/0.14.2 + esbuild-windows-32: registry.npmjs.org/esbuild-windows-32/0.14.2 + esbuild-windows-64: registry.npmjs.org/esbuild-windows-64/0.14.2 + esbuild-windows-arm64: registry.npmjs.org/esbuild-windows-arm64/0.14.2 dev: true /esbuild/0.14.21: @@ -4834,25 +4531,25 @@ packages: hasBin: true requiresBuild: true optionalDependencies: - esbuild-android-arm64: 0.14.21 - esbuild-darwin-64: 0.14.21 - esbuild-darwin-arm64: 0.14.21 - esbuild-freebsd-64: 0.14.21 - esbuild-freebsd-arm64: 0.14.21 - esbuild-linux-32: 0.14.21 - esbuild-linux-64: 0.14.21 - esbuild-linux-arm: 0.14.21 - esbuild-linux-arm64: 0.14.21 - esbuild-linux-mips64le: 0.14.21 - esbuild-linux-ppc64le: 0.14.21 - esbuild-linux-riscv64: 0.14.21 - esbuild-linux-s390x: 0.14.21 - esbuild-netbsd-64: 0.14.21 - esbuild-openbsd-64: 0.14.21 - esbuild-sunos-64: 0.14.21 - esbuild-windows-32: 0.14.21 - esbuild-windows-64: 0.14.21 - esbuild-windows-arm64: 0.14.21 + esbuild-android-arm64: registry.npmjs.org/esbuild-android-arm64/0.14.21 + esbuild-darwin-64: registry.npmjs.org/esbuild-darwin-64/0.14.21 + esbuild-darwin-arm64: registry.npmjs.org/esbuild-darwin-arm64/0.14.21 + esbuild-freebsd-64: registry.npmjs.org/esbuild-freebsd-64/0.14.21 + esbuild-freebsd-arm64: registry.npmjs.org/esbuild-freebsd-arm64/0.14.21 + esbuild-linux-32: registry.npmjs.org/esbuild-linux-32/0.14.21 + esbuild-linux-64: registry.npmjs.org/esbuild-linux-64/0.14.21 + esbuild-linux-arm: registry.npmjs.org/esbuild-linux-arm/0.14.21 + esbuild-linux-arm64: registry.npmjs.org/esbuild-linux-arm64/0.14.21 + esbuild-linux-mips64le: registry.npmjs.org/esbuild-linux-mips64le/0.14.21 + esbuild-linux-ppc64le: registry.npmjs.org/esbuild-linux-ppc64le/0.14.21 + esbuild-linux-riscv64: registry.npmjs.org/esbuild-linux-riscv64/0.14.21 + esbuild-linux-s390x: registry.npmjs.org/esbuild-linux-s390x/0.14.21 + esbuild-netbsd-64: registry.npmjs.org/esbuild-netbsd-64/0.14.21 + esbuild-openbsd-64: registry.npmjs.org/esbuild-openbsd-64/0.14.21 + esbuild-sunos-64: registry.npmjs.org/esbuild-sunos-64/0.14.21 + esbuild-windows-32: registry.npmjs.org/esbuild-windows-32/0.14.21 + esbuild-windows-64: registry.npmjs.org/esbuild-windows-64/0.14.21 + esbuild-windows-arm64: registry.npmjs.org/esbuild-windows-arm64/0.14.21 /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -4885,7 +4582,7 @@ packages: esutils: 2.0.3 optionator: 0.8.3 optionalDependencies: - source-map: 0.6.1 + source-map: registry.npmjs.org/source-map/0.6.1 dev: true /eslint-scope/5.1.1: @@ -5156,7 +4853,7 @@ packages: get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: - '@types/yauzl': 2.9.2 + '@types/yauzl': registry.npmjs.org/@types/yauzl/2.9.2 transitivePeerDependencies: - supports-color dev: true @@ -5359,13 +5056,6 @@ packages: resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=} dev: true - /fsevents/2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - optional: true - /function-bind/1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} @@ -6121,7 +5811,7 @@ packages: micromatch: 4.0.4 walker: 1.0.8 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 dev: true /jest-jasmine2/27.4.2: @@ -6307,7 +5997,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@types/node': 16.11.11 - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 dev: true /jest-snapshot/27.4.2: @@ -6538,7 +6228,7 @@ packages: /jsonfile/4.0.0: resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=} optionalDependencies: - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 dev: true /jsonfile/6.1.0: @@ -6546,7 +6236,7 @@ packages: dependencies: universalify: 2.0.0 optionalDependencies: - graceful-fs: 4.2.8 + graceful-fs: registry.npmjs.org/graceful-fs/4.2.8 /jsprim/2.0.2: resolution: {integrity: sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==} @@ -6843,7 +6533,7 @@ packages: resolution: {integrity: sha512-xTYd4JVHpSCW+aqDof6w/MebaMVNTVYBZhbB/vi513xXdiPT92JMVCo0Jq8W2UZnzYRFeVbQiQ+I25l13JuKvA==} hasBin: true optionalDependencies: - minimist: 1.2.5 + minimist: registry.npmjs.org/minimist/1.2.5 dev: true /make-plural/6.2.2: @@ -7878,7 +7568,7 @@ packages: engines: {node: '>=10.0.0'} hasBin: true optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 /run-parallel/1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -8591,7 +8281,7 @@ packages: resolve: 1.22.0 rollup: 2.60.2 optionalDependencies: - fsevents: 2.3.2 + fsevents: registry.npmjs.org/fsevents/2.3.2 dev: true /vlq/0.2.3: @@ -8852,5 +8542,423 @@ packages: lodash.isequal: 4.5.0 validator: 13.7.0 optionalDependencies: - commander: 2.20.3 + commander: registry.npmjs.org/commander/2.20.3 dev: true + + registry.npmjs.org/@types/yauzl/2.9.2: + resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.2.tgz} + name: '@types/yauzl' + version: 2.9.2 + requiresBuild: true + dependencies: + '@types/node': 14.18.0 + dev: true + optional: true + + registry.npmjs.org/colors/1.4.0: + resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/colors/-/colors-1.4.0.tgz} + name: colors + version: 1.4.0 + engines: {node: '>=0.1.90'} + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/commander/2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/commander/-/commander-2.20.3.tgz} + name: commander + version: 2.20.3 + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-android-arm64/0.14.2: + resolution: {integrity: sha512-hEixaKMN3XXCkoe+0WcexO4CcBVU5DCSUT+7P8JZiWZCbAjSkc9b6Yz2X5DSfQmRCtI/cQRU6TfMYrMQ5NBfdw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.2.tgz} + name: esbuild-android-arm64 + version: 0.14.2 + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-android-arm64/0.14.21: + resolution: {integrity: sha512-Bqgld1TY0wZv8TqiQmVxQFgYzz8ZmyzT7clXBDZFkOOdRybzsnj8AZuK1pwcLVA7Ya6XncHgJqIao7NFd3s0RQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.21.tgz} + name: esbuild-android-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-darwin-64/0.14.2: + resolution: {integrity: sha512-Uq8t0cbJQkxkQdbUfOl2wZqZ/AtLZjvJulR1HHnc96UgyzG9YlCLSDMiqjM+NANEy7/zzvwKJsy3iNC9wwqLJA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.2.tgz} + name: esbuild-darwin-64 + version: 0.14.2 + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-darwin-64/0.14.21: + resolution: {integrity: sha512-j+Eg+e13djzyYINVvAbOo2/zvZ2DivuJJTaBrJnJHSD7kUNuGHRkHoSfFjbI80KHkn091w350wdmXDNSgRjfYQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.21.tgz} + name: esbuild-darwin-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-darwin-arm64/0.14.2: + resolution: {integrity: sha512-619MSa17sr7YCIrUj88KzQu2ESA4jKYtIYfLU/smX6qNgxQt3Y/gzM4s6sgJ4fPQzirvmXgcHv1ZNQAs/Xh48A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.2.tgz} + name: esbuild-darwin-arm64 + version: 0.14.2 + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-darwin-arm64/0.14.21: + resolution: {integrity: sha512-nDNTKWDPI0RuoPj5BhcSB2z5EmZJJAyRtZLIjyXSqSpAyoB8eyAKXl4lB8U2P78Fnh4Lh1le/fmpewXE04JhBQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.21.tgz} + name: esbuild-darwin-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-freebsd-64/0.14.2: + resolution: {integrity: sha512-aP6FE/ZsChZpUV6F3HE3x1Pz0paoYXycJ7oLt06g0G9dhJKknPawXCqQg/WMyD+ldCEZfo7F1kavenPdIT/SGQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.2.tgz} + name: esbuild-freebsd-64 + version: 0.14.2 + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-freebsd-64/0.14.21: + resolution: {integrity: sha512-zIurkCHXhxELiDZtLGiexi8t8onQc2LtuE+S7457H/pP0g0MLRKMrsn/IN4LDkNe6lvBjuoZZi2OfelOHn831g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.21.tgz} + name: esbuild-freebsd-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-freebsd-arm64/0.14.2: + resolution: {integrity: sha512-LSm98WTb1QIhyS83+Po0KTpZNdd2XpVpI9ua5rLWqKWbKeNRFwOsjeiuwBaRNc+O32s9oC2ZMefETxHBV6VNkQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.2.tgz} + name: esbuild-freebsd-arm64 + version: 0.14.2 + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-freebsd-arm64/0.14.21: + resolution: {integrity: sha512-wdxMmkJfbwcN+q85MpeUEamVZ40FNsBa9mPq8tAszDn8TRT2HoJvVRADPIIBa9SWWwlDChIMjkDKAnS3KS/sPA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.21.tgz} + name: esbuild-freebsd-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-32/0.14.2: + resolution: {integrity: sha512-8VxnNEyeUbiGflTKcuVc5JEPTqXfsx2O6ABwUbfS1Hp26lYPRPC7pKQK5Dxa0MBejGc50jy7YZae3EGQUQ8EkQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.2.tgz} + name: esbuild-linux-32 + version: 0.14.2 + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-32/0.14.21: + resolution: {integrity: sha512-fmxvyzOPPh2xiEHojpCeIQP6pXcoKsWbz3ryDDIKLOsk4xp3GbpHIEAWP0xTeuhEbendmvBDVKbAVv3PnODXLg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.21.tgz} + name: esbuild-linux-32 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-64/0.14.2: + resolution: {integrity: sha512-4bzMS2dNxOJoFIiHId4w+tqQzdnsch71JJV1qZnbnErSFWcR9lRgpSqWnTTFtv6XM+MvltRzSXC5wQ7AEBY6Hg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.2.tgz} + name: esbuild-linux-64 + version: 0.14.2 + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-64/0.14.21: + resolution: {integrity: sha512-edZyNOv1ql+kpmlzdqzzDjRQYls+tSyi4QFi+PdBhATJFUqHsnNELWA9vMSzAaInPOEaVUTA5Ml28XFChcy4DA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.21.tgz} + name: esbuild-linux-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-arm/0.14.2: + resolution: {integrity: sha512-PaylahvMHhH8YMfJPMKEqi64qA0Su+d4FNfHKvlKes/2dUe4QxgbwXT9oLVgy8iJdcFMrO7By4R8fS8S0p8aVQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.2.tgz} + name: esbuild-linux-arm + version: 0.14.2 + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-arm/0.14.21: + resolution: {integrity: sha512-aSU5pUueK6afqmLQsbU+QcFBT62L+4G9hHMJDHWfxgid6hzhSmfRH9U/f+ymvxsSTr/HFRU4y7ox8ZyhlVl98w==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.21.tgz} + name: esbuild-linux-arm + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-arm64/0.14.2: + resolution: {integrity: sha512-RlIVp0RwJrdtasDF1vTFueLYZ8WuFzxoQ1OoRFZOTyJHCGCNgh7xJIC34gd7B7+RT0CzLBB4LcM5n0LS+hIoww==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.2.tgz} + name: esbuild-linux-arm64 + version: 0.14.2 + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-arm64/0.14.21: + resolution: {integrity: sha512-t5qxRkq4zdQC0zXpzSB2bTtfLgOvR0C6BXYaRE/6/k8/4SrkZcTZBeNu+xGvwCU4b5dU9ST9pwIWkK6T1grS8g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.21.tgz} + name: esbuild-linux-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-mips64le/0.14.2: + resolution: {integrity: sha512-Fdwrq2roFnO5oetIiUQQueZ3+5soCxBSJswg3MvYaXDomj47BN6oAWMZgLrFh1oVrtWrxSDLCJBenYdbm2s+qQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.2.tgz} + name: esbuild-linux-mips64le + version: 0.14.2 + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-mips64le/0.14.21: + resolution: {integrity: sha512-jLZLQGCNlUsmIHtGqNvBs3zN+7a4D9ckf0JZ+jQTwHdZJ1SgV9mAjbB980OFo66LoY+WeM7t3WEnq3FjI1zw4A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.21.tgz} + name: esbuild-linux-mips64le + version: 0.14.21 + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-ppc64le/0.14.2: + resolution: {integrity: sha512-vxptskw8JfCDD9QqpRO0XnsM1osuWeRjPaXX1TwdveLogYsbdFtcuiuK/4FxGiNMUr1ojtnCS2rMPbY8puc5NA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.2.tgz} + name: esbuild-linux-ppc64le + version: 0.14.2 + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-linux-ppc64le/0.14.21: + resolution: {integrity: sha512-4TWxpK391en2UBUw6GSrukToTDu6lL9vkm3Ll40HrI08WG3qcnJu7bl8e1+GzelDsiw1QmfAY/nNvJ6iaHRpCQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.21.tgz} + name: esbuild-linux-ppc64le + version: 0.14.21 + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-riscv64/0.14.21: + resolution: {integrity: sha512-fElngqOaOfTsF+u+oetDLHsPG74vB2ZaGZUqmGefAJn3a5z9Z2pNa4WpVbbKgHpaAAy5tWM1m1sbGohj6Ki6+Q==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.21.tgz} + name: esbuild-linux-riscv64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-linux-s390x/0.14.21: + resolution: {integrity: sha512-brleZ6R5fYv0qQ7ZBwenQmP6i9TdvJCB092c/3D3pTLQHBGHJb5zWgKxOeS7bdHzmLy6a6W7GbFk6QKpjyD6QA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.21.tgz} + name: esbuild-linux-s390x + version: 0.14.21 + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-netbsd-64/0.14.2: + resolution: {integrity: sha512-I8+LzYK5iSNpspS9eCV9sW67Rj8FgMHimGri4mKiGAmN0pNfx+hFX146rYtzGtewuxKtTsPywWteHx+hPRLDsw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.2.tgz} + name: esbuild-netbsd-64 + version: 0.14.2 + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-netbsd-64/0.14.21: + resolution: {integrity: sha512-nCEgsLCQ8RoFWVV8pVI+kX66ICwbPP/M9vEa0NJGIEB/Vs5sVGMqkf67oln90XNSkbc0bPBDuo4G6FxlF7PN8g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.21.tgz} + name: esbuild-netbsd-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-openbsd-64/0.14.2: + resolution: {integrity: sha512-120HgMe9elidWUvM2E6mMf0csrGwx8sYDqUIJugyMy1oHm+/nT08bTAVXuwYG/rkMIqsEO9AlMxuYnwR6En/3Q==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.2.tgz} + name: esbuild-openbsd-64 + version: 0.14.2 + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-openbsd-64/0.14.21: + resolution: {integrity: sha512-h9zLMyVD0T73MDTVYIb/qUTokwI6EJH9O6wESuTNq6+XpMSr6C5aYZ4fvFKdNELW+Xsod+yDS2hV2JTUAbFrLA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.21.tgz} + name: esbuild-openbsd-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-sunos-64/0.14.2: + resolution: {integrity: sha512-Q3xcf9Uyfra9UuCFxoLixVvdigo0daZaKJ97TL2KNA4bxRUPK18wwGUk3AxvgDQZpRmg82w9PnkaNYo7a+24ow==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.2.tgz} + name: esbuild-sunos-64 + version: 0.14.2 + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-sunos-64/0.14.21: + resolution: {integrity: sha512-Kl+7Cot32qd9oqpLdB1tEGXEkjBlijrIxMJ0+vlDFaqsODutif25on0IZlFxEBtL2Gosd4p5WCV1U7UskNQfXA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.21.tgz} + name: esbuild-sunos-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-32/0.14.2: + resolution: {integrity: sha512-TW7O49tPsrq+N1sW8mb3m24j/iDGa4xzAZH4wHWwoIzgtZAYPKC0hpIhufRRG/LA30bdMChO9pjJZ5mtcybtBQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.2.tgz} + name: esbuild-windows-32 + version: 0.14.2 + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-windows-32/0.14.21: + resolution: {integrity: sha512-V7vnTq67xPBUCk/9UtlolmQ798Ecjdr1ZoI1vcSgw7M82aSSt0eZdP6bh5KAFZU8pxDcx3qoHyWQfHYr11f22A==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.21.tgz} + name: esbuild-windows-32 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-64/0.14.2: + resolution: {integrity: sha512-Rym6ViMNmi1E2QuQMWy0AFAfdY0wGwZD73BnzlsQBX5hZBuy/L+Speh7ucUZ16gwsrMM9v86icZUDrSN/lNBKg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.2.tgz} + name: esbuild-windows-64 + version: 0.14.2 + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-windows-64/0.14.21: + resolution: {integrity: sha512-kDgHjKOHwjfJDCyRGELzVxiP/RBJBTA+wyspf78MTTJQkyPuxH2vChReNdWc+dU2S4gIZFHMdP1Qrl/k22ZmaA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.21.tgz} + name: esbuild-windows-64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/esbuild-windows-arm64/0.14.2: + resolution: {integrity: sha512-ZrLbhr0vX5Em/P1faMnHucjVVWPS+m3tktAtz93WkMZLmbRJevhiW1y4CbulBd2z0MEdXZ6emDa1zFHq5O5bSA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.2.tgz} + name: esbuild-windows-arm64 + version: 0.14.2 + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/esbuild-windows-arm64/0.14.21: + resolution: {integrity: sha512-8Sbo0zpzgwWrwjQYLmHF78f7E2xg5Ve63bjB2ng3V2aManilnnTGaliq2snYg+NOX60+hEvJHRdVnuIAHW0lVw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.21.tgz} + name: esbuild-windows-arm64 + version: 0.14.21 + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + registry.npmjs.org/fsevents/2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz} + name: fsevents + version: 2.3.2 + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + optional: true + + registry.npmjs.org/graceful-fs/4.2.8: + resolution: {integrity: sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz} + name: graceful-fs + version: 4.2.8 + + registry.npmjs.org/minimist/1.2.5: + resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz} + name: minimist + version: 1.2.5 + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/source-map/0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz} + name: source-map + version: 0.6.1 + engines: {node: '>=0.10.0'} + requiresBuild: true + dev: true + optional: true